Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
update README, add new task, update hub header, fix secman ui command
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Apr 6, 2022
1 parent e9fa07e commit b3dc002
Show file tree
Hide file tree
Showing 7 changed files with 466 additions and 157 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
| Project | Package | Version | Links |
| ----------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| **CLI** | [`scmn-dev/secman`](https://pkg.go.dev/github.com/scmn-dev/secman/v6) | ![version](https://img.shields.io/github/v/release/scmn-dev/secman?label=go%40latest&logo=go&style=flat-square) | [`README.md`](README.md) |
| **Scc** | [`@secman/scc`](https://github.com/scmn-dev/secman/tree/main/scc) | ![version)](https://img.shields.io/github/package-json/v/scmn-dev/secman?color=blue&filename=scc%2Fpackage.json&label=npm%40latest&logo=npm&logoColor=blue&style=flat-square) | [`README.md`](scc/README.md) |
| **Hub** | [`@secman/hub`](https://github.com/scmn-dev/secman/tree/main/hub) | ![version](https://img.shields.io/github/package-json/v/scmn-dev/secman?filename=hub%2Fpackage.json&label=npm%40latest&logo=npm&style=flat-square) | [`README.md`](hub/README.md) |
| **Scc** | [`@secman/scc`](https://github.com/scmn-dev/secman/tree/main/scc) | ![version)](https://img.shields.io/github/package-json/v/scmn-dev/secman?color=blue&filename=scc%2Fpackage.json&label=npm%40latest&logo=npm&logoColor=blue&style=flat-square) | [`README.md`](scc/README.md) |
| **Crypto** | [`@secman/crypto`](https://github.com/scmn-dev/secman/tree/main/crypto) | ![version)](https://img.shields.io/github/package-json/v/scmn-dev/secman?color=blue&filename=crypto%2Fpackage.json&label=npm%40latest&logo=npm&logoColor=blue&style=flat-square) | [`README.md`](crypto/README.md) |

## Featuers
Expand Down
4 changes: 4 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ tasks:
cmds:
- yarn dev

deploy:
cmds:
- yarn deploy

bfs:
desc: build from source
cmds:
Expand Down
1 change: 1 addition & 0 deletions hub/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<VIcon name="sm-logo" />
</button>
<button
v-if="!shown"
@click="installPWA"
v-tooltip="`Install Secman Hub as Desktop App`"
class="btn ml-1 trsn"
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"scripts": {
"dev": "turbo run dev --parallel",
"build": "turbo run build",
"clean": "rimraf node_modules && cd scc && rimraf node_modules && cd ../hub && rimraf node_modules && cd ../crypto && rimraf node_modules && cd ../tools/spinner && rimraf node_modules && cd ../.."
"clean": "rimraf node_modules && cd scc && rimraf node_modules && cd ../hub && rimraf node_modules && cd ../crypto && rimraf node_modules && cd ../tools/spinner && rimraf node_modules && cd ../..",
"deploy": "vercel"
},
"author": {
"name": "Secman, Inc.",
Expand All @@ -43,7 +44,8 @@
"glob-parent": "^5.1.2",
"node-forge": "^1.3.0",
"nth-check": "^2.0.1",
"turbo": "1.1.10"
"turbo": "1.1.10",
"vercel": "24.0.1"
},
"packageManager": "yarn@1.22.17"
}
4 changes: 2 additions & 2 deletions pkg/initx/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func Init() {
}

// Get SMUI
smuiLatest := gapi.LatestWithArgs("david-tomson/smui", "")
url := "https://github.com/david-tomson/smui/releases/download/" + smuiLatest + "/smui.zip"
smuiLatest := gapi.LatestWithArgs("scmn-dev/secman", "")
url := "https://github.com/scmn-dev/secman/releases/download/" + smuiLatest + "/smui.zip"

uCmd := fmt.Sprintf(`
if ! [ -d %s/ui ]; then
Expand Down
5 changes: 3 additions & 2 deletions pkg/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ func Update() {
}

func UpdateMain() {
smuiLatest := gapi.LatestWithArgs("david-tomson/smui", "")
url := "https://github.com/david-tomson/smui/releases/download/" + smuiLatest + "/smui.zip"
smuiLatest := gapi.LatestWithArgs("scmn-dev/secman", "")
url := "https://github.com/scmn-dev/secman/releases/download/" + smuiLatest + "/smui.zip"

currentSMUIVersion, err := dfs.ReadFileContent(filepath.Join(constants.SMUIPath, "tag.txt"))
message := ""

Expand Down
Loading

0 comments on commit b3dc002

Please sign in to comment.