Skip to content

Commit d95fcca

Browse files
committed
Initial commit
1 parent 49cd83c commit d95fcca

File tree

96 files changed

+10921
-6105
lines changed

Some content is hidden

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

96 files changed

+10921
-6105
lines changed

.eslintrc.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"src-tauri/**/*", // ignore nodeJs files
5+
"dist/**/*",
6+
"release/**/*"
7+
],
8+
"overrides": [
9+
{
10+
"files": [
11+
"*.ts"
12+
],
13+
"parserOptions": {
14+
"project": [
15+
"./tsconfig.serve.json",
16+
"./src/tsconfig.app.json",
17+
"./src/tsconfig.spec.json"
18+
],
19+
"createDefaultProgram": true
20+
},
21+
"extends": [
22+
"plugin:@angular-eslint/ng-cli-compat",
23+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
24+
"plugin:@angular-eslint/template/process-inline-templates"
25+
],
26+
"rules": {
27+
"prefer-arrow/prefer-arrow-functions": 0,
28+
"@angular-eslint/directive-selector": 0,
29+
"@angular-eslint/component-selector": [
30+
"error",
31+
{
32+
"type": "element",
33+
"prefix": "app",
34+
"style": "kebab-case"
35+
}
36+
],
37+
// in order to ignore __TAURI__
38+
"no-underscore-dangle": 0,
39+
"@typescript-eslint/naming-convention": 0
40+
}
41+
},
42+
{
43+
"files": [
44+
"*.html"
45+
],
46+
"extends": [
47+
"plugin:@angular-eslint/template/recommended"
48+
],
49+
"rules": {
50+
}
51+
}
52+
]
53+
}

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: maximegris
4+
patreon: user?u=37550953
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: maximegris # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
- OS: [e.g. iOS]
28+
29+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Description
2+
3+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
Fixes # (issue)
6+
7+
## Type of change
8+
9+
Please delete options that are not relevant.
10+
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] This change requires a documentation update
15+
16+
# Checklist:
17+
18+
- [ ] I have performed a self-review of my own code
19+
- [ ] I have made corresponding changes to the documentation
20+
- [ ] My changes generate no new warnings
21+
- [ ] I have run tests (npm run test) that prove my fix is effective or that my feature works

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 15
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/build.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: 'Tauri Build'
3+
4+
# Controls when the action will run.
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the main branch
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
18+
jobs:
19+
build:
20+
strategy:
21+
matrix:
22+
node-version: [16]
23+
platform: [macos-latest, ubuntu-latest, windows-latest]
24+
25+
# The type of runner that the job will run on
26+
runs-on: ${{ matrix.platform }}
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Cache node modules
32+
uses: actions/cache@v2
33+
env:
34+
cache-name: cache-node-modules
35+
with:
36+
# npm cache files are stored in `~/.npm`
37+
path: ~/.npm
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-build-${{ env.cache-name }}-
41+
${{ runner.os }}-build-
42+
${{ runner.os }}-
43+
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
49+
- name: install rust stable
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: stable
53+
profile: minimal
54+
55+
- name: install dependencies (ubuntu only)
56+
if: matrix.platform == 'ubuntu-latest'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
60+
61+
- name: Install Dependencies
62+
run: npm i && npm i -D cli-truncate
63+
64+
- name: Check lint
65+
run: npm run lint
66+
67+
- name: Run headless unit test
68+
if: matrix.platform == 'ubuntu-latest'
69+
uses: GabrielBB/xvfb-action@v1
70+
with:
71+
run: npm test
72+
73+
- name: build tauri app
74+
uses: tauri-apps/tauri-action@v0
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
8-
/bazel-out
7+
/app-builds
8+
/release
9+
main.js
10+
src/**/*.js
11+
!src/karma.conf.js
12+
*.js.map
913

1014
# dependencies
11-
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15+
node_modules
1516

1617
# IDEs and editors
17-
/.idea
18+
.idea
1819
.project
1920
.classpath
2021
.c9/
@@ -24,22 +25,26 @@ chrome-profiler-events*.json
2425

2526
# IDE - VSCode
2627
.vscode/*
27-
!.vscode/settings.json
28+
.vscode/settings.json
2829
!.vscode/tasks.json
2930
!.vscode/launch.json
3031
!.vscode/extensions.json
31-
.history/*
3232

3333
# misc
34+
/.angular/cache
3435
/.sass-cache
3536
/connect.lock
3637
/coverage
3738
/libpeerconnection.log
3839
npm-debug.log
39-
yarn-error.log
4040
testem.log
4141
/typings
4242

4343
# System Files
4444
.DS_Store
4545
Thumbs.db
46+
47+
48+
# Tauri
49+
src-tauri/target
50+
src-tauri/WixTools

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save=true
2+
save-exact=true

0 commit comments

Comments
 (0)