This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: move secman desktop and spinner to
secman
repo and build s…
…m monorepo
- Loading branch information
Showing
138 changed files
with
17,737 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ logs | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.turbo | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { CryptoTools } from "./main"; | ||
|
||
const string = "Hi Secman"; | ||
|
||
const hash = CryptoTools.sha256Encrypt(string); | ||
|
||
console.log(`String: ${string}\nHash: ${hash}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export declare const isBase64: (value: any) => boolean; | ||
export declare class CryptoTools { | ||
static transmissionKey: any; | ||
static encryptKey: any; | ||
static sha1(msg: any): string; | ||
static hmac(msg: any, transmissionKey?: any): string; | ||
static encrypt(message: any, password?: any): string; | ||
static decrypt(transitMessage: any, password?: any): string; | ||
static pbkdf2Encrypt(masterPassword: any, secret: any): string; | ||
static sha256Encrypt(value: any): string; | ||
static aesEncrypt(value: any, key?: any): string; | ||
static aesDecrypt(value: any, key?: any): string; | ||
static encryptFields(data: any, encryptKey?: any): void; | ||
static decryptFields(data: any, keyList: any, encryptKey?: any): void; | ||
static encryptPayload( | ||
data: any, | ||
keyList: any, | ||
encryptKey?: any, | ||
transmissionKey?: any | ||
): { | ||
data: string; | ||
}; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "@secman/crypto", | ||
"version": "0.0.1", | ||
"main": "./main.ts", | ||
"types": "./main.ts", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "ts-node ./example.ts", | ||
"clean": "rimraf *.d.ts", | ||
"build": "yarn clean && npx -p typescript tsc *.ts --declaration --emitDeclarationOnly --esModuleInterop --outDir ." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
|
||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:lts-alpine as build-stage | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
COPY . . | ||
|
||
RUN yarn && yarn build | ||
|
||
FROM nginx:1.21-alpine as production-stage | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
|
||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Secman Desktop | ||
|
||
<p align="center"> | ||
<img src="https://assets.secman.dev/apps/desktop.svg" /> | ||
</p> | ||
|
||
<p align="center"> | ||
🖥️ <strong>Secman Desktop</strong> is the desktop client for secman. | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://secman.dev/download"><strong>secman.dev/download</strong></a> | ||
</p> | ||
|
||
> Secman Desktop is built with [Vue.js](https://vuejs.org/) and and [PWA](https://developers.google.com/web/progressive-web-apps/). | ||
## Installation | ||
|
||
Visit [desktop.secman.dev](https://desktop.secman.dev/) to download the desktop client. | ||
|
||
1. Wait until `App is available` is displayed in the status bar. | ||
2. Click the `Install Secman Desktop` button. | ||
3. When the installation is complete, and secman desktop is displayed, refresh the page. | ||
|
||
## Build & Run | ||
|
||
> First sign up via [**Secman Authorize Website**](https://auth.secman.dev) | ||
### Requirements | ||
|
||
- [**Node.js**](https://nodejs.org) | ||
- [**Vue**](https://vuejs.org) | ||
|
||
### Run | ||
|
||
``` bash | ||
# install deps | ||
yarn | ||
|
||
# run secman desktop in dev mode | ||
yarn serve | ||
|
||
# build application for production | ||
yarn build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
presets: ["@vue/cli-plugin-babel/preset"], | ||
plugins: [ | ||
[ | ||
"module-resolver", | ||
{ | ||
root: ["./src"], | ||
alias: { | ||
"@": "./src", | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@secman/desktop", | ||
"version": "1.1.2", | ||
"description": "🖥️ Secman Desktop is the desktop client for secman.", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "vue-cli-service serve", | ||
"build": "vue-cli-service build" | ||
}, | ||
"dependencies": { | ||
"@secman/crypto": "*", | ||
"core-js": "^3.21.0", | ||
"dotenv": "^11.0.0", | ||
"localforage": "^1.10.0", | ||
"papaparse": "^5.3.1", | ||
"register-service-worker": "^1.7.1", | ||
"v-tooltip": "^2.0.3", | ||
"vee-validate": "^2.2.15", | ||
"vue": "^2.6.11", | ||
"vue-class-component": "^7.2.3", | ||
"vue-clipboard2": "^0.3.3", | ||
"vue-debounce": "^2.5.4", | ||
"vue-i18n": "^8.27.0", | ||
"vue-notification": "^1.3.20", | ||
"vue-outside-events": "^1.1.3", | ||
"vue-property-decorator": "^9.1.2", | ||
"vue-router": "^3.0.1", | ||
"vue-snotify": "^3.2.1", | ||
"vue-wait": "^1.4.8", | ||
"vue2-perfect-scrollbar": "^1.5.5", | ||
"vuex": "^3.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/crypto-js": "^4.1.0", | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
"@vue/cli-plugin-pwa": "~4.5.0", | ||
"@vue/cli-plugin-router": "~4.5.0", | ||
"@vue/cli-plugin-typescript": "~4.5.0", | ||
"@vue/cli-plugin-vuex": "~4.5.0", | ||
"@vue/cli-service": "~4.5.0", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"sass": "^1.48.0", | ||
"sass-loader": "^8.0.2", | ||
"typescript": "~4.1.5", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^15.2.4", | ||
"vue-property-decorator": "^9.1.2", | ||
"vue-style-loader": "^4.1.0", | ||
"vue-template-compiler": "^2.6.11" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html lang=""> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<meta | ||
property="og:image" | ||
content="https://assets.secman.dev/apps/icons/dsk.svg" | ||
/> | ||
|
||
<link | ||
rel="icon" | ||
type="image/svg" | ||
href="https://assets.secman.dev/apps/icons/dsk.svg" | ||
/> | ||
|
||
<link | ||
rel="apple-touch-icon" | ||
href="https://assets.secman.dev/apps/icons/dsk.svg" | ||
/> | ||
|
||
<title>Secman Desktop</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong | ||
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work | ||
properly without JavaScript enabled. Please enable it to | ||
continue.</strong | ||
> | ||
</noscript> | ||
|
||
<script> | ||
(function (d, t) { | ||
var CHATWOOT_URL = "https://app.chatwoot.com"; | ||
var g = d.createElement(t), | ||
s = d.getElementsByTagName(t)[0]; | ||
|
||
g.src = CHATWOOT_URL + "/packs/js/sdk.js"; | ||
g.defer = true; | ||
g.async = true; | ||
s.parentNode.insertBefore(g, s); | ||
|
||
g.onload = function () { | ||
window.chatwootSDK.run({ | ||
websiteToken: "tzvY3mqAKzsGScGG9oSxS1bi", | ||
baseUrl: CHATWOOT_URL, | ||
}); | ||
}; | ||
})(document, "script"); | ||
</script> | ||
|
||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: |
Oops, something went wrong.