Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-meshify committed Jul 21, 2023
0 parents commit 8462a25
Show file tree
Hide file tree
Showing 65 changed files with 52,553 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"plugin:prettier/recommended",
],
parserOptions: {
parser: "@babel/eslint-parser",
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
},
};
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

#Electron-builder output
/dist_electron
nettica-client.exe
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2023 Nettica Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# nettica-agent

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run electron:serve
```

### Compiles and minifies for production
```
npm run electron:build
```
### Build cross-platform/cross-architecture
```
npm run electron:build -- --linux deb --arm64 --dir # arm64 cross compile
npm run electron:build -- --linux deb --armv7l --dir # pi cross compile
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
};
Binary file added build/icon.icns
Binary file not shown.
Binary file added build/icon.ico
Binary file not shown.
Binary file added build/icon.ico.save
Binary file not shown.
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icon/icon_512x512x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icon_512x512x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions build/installer.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
!macro customInstall
ExecWait '"$INSTDIR\extra\nettica-client.exe" install'
ExecWait '"$INSTDIR\extra\nettica-client.exe" start'
CreateDirectory '$APPDATA\Nettica'
CreateDirectory '$APPDATA\Nettica\WireGuard'
!macroend

!macro customUninstall
ExecWait '"$INSTDIR\extra\nettica-client.exe" stop'
ExecWait '"$INSTDIR\extra\nettica-client.exe" remove'
!macroend
Binary file added build/nettica.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"pkg": {
"isRelocatable": false,
"overwriteAction": "upgrade"
},

"linux" : {
"icon": "build/icon.icns",
"category": "Network",
"target": [
"deb",
"rpm"
]
},

"win": {
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": true,
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": false,
"include": "build/installer.nsh",
"runAfterFinish": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"artifactName" : "${productName}-${version}.${ext}"
}
}

92 changes: 92 additions & 0 deletions electron-builder.json.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"appId": "meshifyapp",
"icon": "build/icon.png",
"mac": {
"category": "public.app-category.productivity",
"target": [
"dmg",
"pkg",
"zip",
"mas"
],
"icon": "build/icon.png",
"bundleVersion": "88",
"type": "distribution",
"artifactName": "meshifyapp-${version}-${os}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"provisioningProfile": "embedded.provisionprofile"
},
"dmg": {
"background": "build/background.png",
"contents": [
{
"type": "dir",
"x": 100,
"y": 211
},
{
"type": "link",
"path": "/Applications",
"x": 500,
"y": 211
}
]
},
"pkg": {
"isRelocatable": false,
"overwriteAction": "upgrade"
},
"mas": {
"hardenedRuntime": true,
"asarUnpack": [
"node_modules"
],
"artifactName": "meshifyapp-${version}-mas.${ext}"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},{
"target": "msi",
"arch": [
"x64"
]
},
{
"target": "zip",
"arch": [
"x64"
]
}
],
"icon": "build/icon.png",
"publisherName": "Nettica.app Inc.",
"legalTrademarks": "",
"verifyUpdateCodeSignature": false,
"requestedExecutionLevel": "asInvoker",
"signAndEditExecutable": false,
"signDlls": false,
"artifactName": "meshifyapp-${version}-${os}-${arch}.${ext}"
},
"nsis": {
"oneClick": true,
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": false,
"uninstallDisplayName": "${productName} ${version}",
"include": "build/installer.nsh",
"deleteAppDataOnUninstall": false,
"displayLanguageSelector": false,
"unicode": true,
"warningsAsErrors": true,
"runAfterFinish": true,
"createDesktopShortcut": "always",
"createStartMenuShortcut": true,
"menuCategory": false
}
}
7 changes: 7 additions & 0 deletions env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"apiIdentifier": "http://meshify-resource-server",
"auth0Domain": "auth.meshify.app",
"clientId": "FuE6p0feioTrAypLhkcMhoskpsVs8YfK",
"serverUrl": "https://my.meshify.app",
"appData": "C:\\ProgramData"
}
Binary file added extra/meshify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extra/nettica.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
Loading

0 comments on commit 8462a25

Please sign in to comment.