Skip to content

Commit 12b9198

Browse files
authored
Merge pull request #457 from Adamant-im/dev
Dev
2 parents fe10f17 + 1a3b149 commit 12b9198

File tree

247 files changed

+24184
-6559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+24184
-6559
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie > 0

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
insert_final_newline = true

.env.electron

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
env: {
7+
browser: true,
8+
node: true
9+
},
10+
extends: [
11+
'plugin:vue/vue3-essential',
12+
'eslint:recommended',
13+
'plugin:@typescript-eslint/eslint-recommended',
14+
'plugin:@typescript-eslint/recommended',
15+
'@vue/eslint-config-prettier/skip-formatting'
16+
],
17+
parser: 'vue-eslint-parser',
18+
parserOptions: {
19+
ecmaVersion: 'latest'
20+
}
21+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Electron [Linux]
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
env:
10+
GH_TOKEN: ${{ secrets.github_token }}
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository 🛎️
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Node version 🍀
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '16'
24+
25+
- name: Install dependencies ⚙️
26+
run: npm ci
27+
28+
- name: Build and Sign Electron App 🛠️
29+
run: |
30+
npm run electron:build
31+
32+
- name: Save artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: electron-release-app
36+
path: |
37+
release-electron/*.AppImage

.github/workflows/electron-mac.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Electron [Mac]
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
env:
10+
GH_TOKEN: ${{ secrets.github_token }}
11+
CSC_LINK: ${{ secrets.CSC_LINK }}
12+
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
13+
APPLE_ID: ${{ secrets.APPLE_ID }}
14+
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
15+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
16+
APPLE_NOTARIZE: true # notarize the app after build
17+
18+
jobs:
19+
release:
20+
runs-on: macos-latest
21+
22+
steps:
23+
- name: Checkout repository 🛎️
24+
uses: actions/checkout@v3
25+
26+
- name: Setup Node version 🍀
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: '16'
30+
31+
- name: Install dependencies ⚙️
32+
run: npm ci
33+
34+
- name: Build and Sign Electron App 🛠️
35+
run: |
36+
npm run electron:build
37+
38+
- name: Save artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: electron-release-app
42+
path: |
43+
release-electron/*.dmg
44+
release-electron/*.blockmap
45+
release-electron/*.yaml
46+
release-electron/*.yml
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Electron [Windows]
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
env:
10+
GH_TOKEN: ${{ secrets.github_token }}
11+
12+
jobs:
13+
release:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout repository 🛎️
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Node version 🍀
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '16'
24+
25+
- name: Install dependencies ⚙️
26+
run: npm ci
27+
28+
- name: Build and Sign Electron App 🛠️
29+
run: |
30+
npm run electron:build
31+
32+
- name: Save artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: electron-release-app
36+
path: |
37+
release-electron/*.exe
38+
release-electron/*.blockmap
39+
release-electron/*.yaml
40+
release-electron/*.yml
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Preview Teardown Workflow
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
8+
env:
9+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
10+
PREVIEW_DOMAIN: https://msg-adamant-pr-${{ github.event.number }}.surge.sh
11+
12+
jobs:
13+
tear-down-preview-domain:
14+
name: Tear down preview domain job
15+
runs-on: ubuntu-latest
16+
environment: testing
17+
permissions:
18+
pull-requests: write
19+
steps:
20+
- name: Tear down ${{ env.PREVIEW_DOMAIN }} preview domain 🥲
21+
run: |
22+
npm install --global surge
23+
surge teardown ${{ env.PREVIEW_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
24+
25+
- name: Comment PR 💬
26+
uses: thollander/actions-comment-pull-request@v2
27+
with:
28+
message: |
29+
Successfully tore down ${{ env.PREVIEW_DOMAIN }} 🥲
30+
comment_tag: teardown-message

.github/workflows/preview.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Preview Workflow
2+
3+
on:
4+
pull_request:
5+
type:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- closed
10+
11+
env:
12+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
13+
PREVIEW_DOMAIN: https://msg-adamant-pr-${{ github.event.number }}.surge.sh
14+
15+
jobs:
16+
build-and-deploy-to-surge:
17+
name: Build and Deploy to surge
18+
runs-on: ubuntu-latest
19+
environment: testing
20+
permissions:
21+
pull-requests: write
22+
steps:
23+
- name: Checkout repository 🛎️
24+
uses: actions/checkout@v3
25+
26+
- name: Setup Node version 🍀
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: '16'
30+
31+
- name: Install dependencies ⚙️
32+
run: npm ci
33+
34+
- name: Build PWA 🛠️
35+
run: npm run build
36+
37+
- name: Archive artifacts 📁
38+
uses: actions/upload-artifact@v3
39+
with:
40+
path: dist
41+
42+
- name: Deploy to surge 🚀
43+
run: |
44+
npm install --global surge
45+
surge ./dist ${{ env.PREVIEW_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}
46+
47+
- name: Comment PR 💬
48+
uses: thollander/actions-comment-pull-request@v2
49+
with:
50+
message: |
51+
Deployed to ${{ env.PREVIEW_DOMAIN }} 🚀
52+
comment_tag: deploy-message

.gitignore

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.DS_Store
22
node_modules
33
/dist
4+
# generated by vite-plugin-pwa
5+
/dev-dist
46
package1.json
57
package2.json
68
package3.json
@@ -11,6 +13,7 @@ package3.json
1113
# local env files
1214
.env.local
1315
.env.*.local
16+
electron-builder.env
1417

1518
# Log files
1619
npm-debug.log*
@@ -26,8 +29,14 @@ yarn-error.log*
2629
*.sln
2730
*.sw*
2831

29-
#Electron-builder output
30-
/dist_electron
32+
# Electron-builder output
33+
/dist-electron
34+
# Electron app will be placed here after packaging
35+
/release-electron
3136

32-
package-lock.json
33-
yarn.lock
37+
# Yarn
38+
.yarn
39+
.yarnrc.yml
40+
41+
# Vercel
42+
.vercel

0 commit comments

Comments
 (0)