Skip to content

Commit

Permalink
fly:cvssv2
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Mar 18, 2024
1 parent fcfaf72 commit 607934b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ on:
push:
tags:
- "v*"
workflow_call:
inputs:
deploy_to_fly:
description: '[Auto Fly Deploy]'
required: false
type: boolean
default: false
workflow_dispatch:
inputs:
deploy_to_fly:
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@ name: pre-commit
on:
pull_request:
push:
branches: [main]
branches: [ main ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
deploy:
if: github.repository == 'emo-crab/scap-rs' && github.actor == 'cn-kali-team' && contains(github.event.head_commit.message, 'fly:')
uses: ./.github/workflows/docker-publish.yml
with:
deploy_to_fly: true
needs:
- docker
secrets: inherit
4 changes: 2 additions & 2 deletions nvd-yew/src/component/cvss_tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@ impl Component for V2CardTag {
<div class="justify-content-between align-items-start">
<li class="card card-sm card-link card-link-pop">
<div class={classes!(["card-status-start",class_str])}></div>
<div class="card-header p-2"><h5 class="card-title">{name}</h5>
<div class="card-header p-2"><h5 class="card-title">{self.i18n.t(name)}</h5>
<div class="card-actions">
<TooltipPopover
toggle={"toggle"}
placement={"top"}
content={des}>
<span class={classes!(["badge",class_str])}>
<i class={classes!( ["ti",icon])}></i>{value}
<i class={classes!( ["ti",icon])}></i>{self.i18n.t(&value)}
</span>
</TooltipPopover>
</div>
Expand Down

0 comments on commit 607934b

Please sign in to comment.