Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Dec 5, 2023
1 parent 0273ccf commit 783701c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

app = "nvd-rs"
primary_region = "nrt"
primary_region = "hkg"

[http_service]
internal_port = 8888
Expand Down
8 changes: 4 additions & 4 deletions nvd-yew/src/component/cve_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ impl Component for CVERow {
html! {
<>
<tr class="table-group-divider">
<td>
<th scope="row">
<Link<Route> classes={classes!("text-reset")} to={Route::Cve{id:{cve_id.clone()}}}>
<i class="ti ti-external-link"></i>
{cve_id.clone()}
</Link<Route>>
</td>
</th>
<td>
{
vendor.clone().into_iter().enumerate().filter(|(index,_)|index.lt(&2)).map(|(_index,value)| {
Expand Down Expand Up @@ -95,8 +95,8 @@ impl Component for CVERow {
{update}
</td>
</tr>
<tr class="table">
<td colspan="7" class="table text-truncate" style="max-width: 150px;">{description.join("")}</td>
<tr class="table table-success">
<th scope="row" colspan="7" class="table text-truncate" style="max-width: 150px;">{description.join("")}</th>
</tr>
</>
}
Expand Down
18 changes: 9 additions & 9 deletions nvd-yew/src/routes/cve_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ impl Component for CveInfoList {
<div class="card">
{self.query(ctx)}
<div class="table-responsive">
<table class="table card-table table-vcenter datatable table-striped table-sm">
<thead>
<table class="table card-table table-vcenter table-striped table-sm">
<thead class="sticky-top">
<tr>
<th>{"CVE"}</th>
<th>{"Vendors"}</th>
<th>{"Products"}</th>
<th>{"CWE"}</th>
<th>{"CVSS v2"}</th>
<th>{"CVSS v3"}</th>
<th>{"Updated"}</th>
<th scope="col">{"CVE"}</th>
<th scope="col">{"Vendors"}</th>
<th scope="col">{"Products"}</th>
<th scope="col">{"CWE"}</th>
<th scope="col">{"CVSS v2"}</th>
<th scope="col">{"CVSS v3"}</th>
<th scope="col">{"Updated"}</th>
</tr>
</thead>
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/src/routes/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Component for Home {
<div class="row align-items-center">
<div class="col-10">
<h3 class="h1">{"NVD"}</h3>
<div class="markdown text-secondary">
<div class="text-secondary">
{"The NVD is the U.S. government repository of standards based vulnerability management data represented using the Security Content Automation Protocol (SCAP)."}
</div>
<div class="mt-3">
Expand Down

0 comments on commit 783701c

Please sign in to comment.