Skip to content

Commit 4d5f83e

Browse files
Initial import
1 parent 0bc66d8 commit 4d5f83e

94 files changed

Lines changed: 9724 additions & 29 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"src-tauri/**/*", // ignore nodeJs files
5+
"dist/**/*",
6+
"release/**/*",
7+
"src/environments/*.ts"
8+
],
9+
"overrides": [
10+
{
11+
"files": [
12+
"*.ts"
13+
],
14+
"parserOptions": {
15+
"project": [
16+
"./tsconfig.serve.json",
17+
"./src/tsconfig.app.json",
18+
"./src/tsconfig.spec.json"
19+
],
20+
"createDefaultProgram": true
21+
},
22+
"extends": [
23+
"plugin:@angular-eslint/recommended",
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+
}

.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/copilot-instructions.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
applyTo: "**"
3+
---
4+
5+
**CRITICAL**:
6+
7+
- English is the ONLY acceptable language for code and comments
8+
- If you catch yourself writing in French, immediately correct to English
9+
- This applies to ALL code-related content without exception
10+
11+
**commit messages**:
12+
feat:
13+
14+
Addition of a new feature.
15+
Ex: feat: add the date filter for search
16+
17+
fix:
18+
19+
Bug fix.
20+
Ex: fix: fix pagination on the product list
21+
22+
chore:
23+
24+
Miscellaneous tasks without functional changes (maintenance).
25+
Ex: chore: update dependencies
26+
27+
refactor:
28+
29+
Code modification without behavior change (improvement, reorganization).
30+
Ex: refactor: simplify validation logic
31+
32+
docs:
33+
34+
Changes related to documentation.
35+
Ex: docs: add installation procedure
36+
37+
style:
38+
39+
Changes that do not impact the code (formatting, indentation, eslint, prettier).
40+
Ex: style: fix formatting
41+
42+
test:
43+
44+
Addition or modification of tests.
45+
Ex: test: add unit tests for the Button component
46+
47+
perf:
48+
49+
Performance improvement.
50+
Ex: perf: optimize the SQL query
51+
52+
build:
53+
54+
Changes affecting the build system or dependencies.
55+
Ex: build: update webpack
56+
57+
ci:
58+
59+
Changes related to CI/CD.

.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: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# This is a basic workflow to help you get started with Actions name: 'Tauri Build'
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+
fail-fast: false
22+
matrix:
23+
platform: [macos-latest, ubuntu-22.04, windows-latest]
24+
25+
# The type of runner that the job will run on
26+
runs-on: ${{ matrix.platform }}
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Node.js 22
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 22
36+
37+
- name: Cache Node modules
38+
uses: actions/cache@v4
39+
with:
40+
# npm cache files are stored in ~/.npm
41+
path: ~/.npm
42+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
43+
restore-keys: |
44+
${{ runner.os }}-node-
45+
46+
- name: Setup Rust toolchain (stable)
47+
uses: dtolnay/rust-toolchain@stable
48+
with:
49+
# Only required targets will be downloaded depending on platform
50+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
51+
52+
# ----------------------------
53+
# MACOS ONLY FIX
54+
# ----------------------------
55+
- name: Install macOS dependencies
56+
if: matrix.platform == 'macos-latest'
57+
run: |
58+
brew install gnu-tar coreutils
59+
echo "Homebrew dependencies installed"
60+
61+
# ----------------------------
62+
# UBUNTU ONLY
63+
# ----------------------------
64+
- name: Install dependencies (Linux only)
65+
if: matrix.platform == 'ubuntu-22.04'
66+
run: |
67+
sudo apt-get update
68+
sudo apt-get install -y \
69+
libgtk-3-dev \
70+
libappindicator3-dev \
71+
librsvg2-dev \
72+
patchelf \
73+
libsoup-3.0 \
74+
libwebkit2gtk-4.1-dev
75+
76+
- name: Install Node dependencies
77+
run: npm install
78+
79+
- name: Check lint
80+
run: npm run lint
81+
82+
- name: Run unit tests (Linux only)
83+
if: matrix.platform == 'ubuntu-22.04'
84+
uses: GabrielBB/xvfb-action@v1
85+
with:
86+
run: npm run test
87+
88+
# ----------------------------
89+
# BUILD TAURI
90+
# ----------------------------
91+
- name: Build Tauri app
92+
uses: tauri-apps/tauri-action@v0
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)