Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First release #5

Merged
merged 15 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules

/src-tauri
/dist
src/bindings.ts

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = {
}
],
rules: {
'prettier/prettier': 'warn',
complexity: ['error', 8],
'prefer-const': 'error'
}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lints-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
commit-check:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Check conventional commit compliance
steps:
- uses: actions/checkout@v4
Expand All @@ -22,7 +22,7 @@ jobs:
uses: cocogitto/cocogitto-action@v3

frontend-checks:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Frontend checks
needs: [commit-check]
steps:
Expand Down Expand Up @@ -51,22 +51,22 @@ jobs:
retention-days: 30

backend-checks:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Backend checks
needs: [commit-check]
needs: [commit-check, frontend-checks]
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
shared-key: whooosh-ubuntu-latest
shared-key: whooosh-ubuntu-20.04
workspaces: src-tauri

- uses: dtolnay/rust-toolchain@stable

- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0

- name: Backend check
Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
upload_license:
name: Upload License
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [macos-latest, windows-latest, ubuntu-latest]
platform: [macos-latest, windows-latest, ubuntu-20.04]

steps:
- uses: actions/checkout@v4
Expand All @@ -44,18 +44,11 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- if: matrix.platform == 'ubuntu-20.04'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0

- run: yarn install --immutable

Expand All @@ -70,7 +63,7 @@ jobs:
upload_to_release:
needs: [build, upload_license]
name: Publish binaries
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: ${{ github.ref_type == 'tag' }}
steps:
- uses: actions/download-artifact@v4
Expand All @@ -89,7 +82,7 @@ jobs:
cp -r LICENSE/LICENSE windows/
tar -czf windows.tar.gz windows/*

mv artifact-ubuntu-latest linux
mv artifact-ubuntu-20.04 linux
chmod +x -R linux
cp -r LICENSE/LICENSE linux/
tar -czf linux.tar.gz linux/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ permissions:

jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Wait on conventinal commit compliance check
- name: Wait on checks
uses: lewagon/wait-on-check-action@master
with:
ref: ${{ github.sha }}
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: true
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -33,18 +33,11 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- if: matrix.platform == 'ubuntu-20.04'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0

- run: yarn install --immutable

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dist-ssr
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
!.vscode/*.code-snippets
.idea
.DS_Store
*.suo
Expand All @@ -30,3 +31,5 @@ dist-ssr
/blob-report/
/playwright/.cache/
/coverage

.env
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ package-lock.json
yarn.lock

/src-tauri
src/bindings.ts
/.vscode
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"svelte.svelte-vscode",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
"rust-lang.rust-analyzer",
"fivethree.vscode-svelte-snippets"
]
}
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"editor.insertSpaces": false,
"files.insertFinalNewline": true,
"svelte.enable-ts-plugin": true,
"eslint.workingDirectories": ["./src"],
"eslint.enable": true,
"eslint.validate": ["javascript", "svelte", "typescript"],
"stylelint.enable": true,
Expand All @@ -11,5 +10,10 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
}
},
"typescript.inlayHints.parameterNames.enabled": "all",
"typescript.inlayHints.variableTypes.enabled": false,
"typescript.inlayHints.functionLikeReturnTypes.enabled": false,
"typescript.inlayHints.parameterTypes.enabled": true,
"typescript.inlayHints.enumMemberValues.enabled": true
}
26 changes: 26 additions & 0 deletions .vscode/workspace.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"emoji": {
"scope": "javascript,typescript",
"prefix": "emoji",
"body": [
"'&#$1;', // $2"
],
"description": "HTML character code template for emojis"
},
"s-script-ts": {
"scope": "svelte",
"prefix": "s-script-ts",
"body": [
"<script lang=\"ts\">$1</script>"
],
"description": "Svelte lang ts script block"
},
"s-style-scoped": {
"scope": "svelte",
"prefix": "s-style-scoped",
"body": [
"<style scoped>$1</style>"
],
"description": "Svelte scoped style block"
},
}
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ add-git-hook:
# Adding Cocogitto hook to local repository
@just _check-app cog
@cog install-hook pre-push

watch:
@yarn && yarn tauri dev

lint:
@yarn lint
@cd src-tauri && cargo fmt --all -- --check && cargo clippy
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,48 @@
"clean:all": "rm -rf node_modules .yarn dist yarn.lock"
},
"dependencies": {
"@tauri-apps/api": "^1.5.2"
"@floating-ui/dom": "1.6.3",
"@tauri-apps/api": "1.5.3",
"dayjs": "1.11.10",
"tauri-plugin-window-state-api": "https://github.com/tauri-apps/tauri-plugin-window-state#v1",
"ts-toolbelt": "^9.6.0"
},
"devDependencies": {
"@playwright/test": "^1.42.0",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tauri-apps/cli": "^1.5.8",
"@tsconfig/svelte": "^5.0.2",
"@types/eslint": "8.56.4",
"@types/node": "^20.11.22",
"@playwright/test": "1.42.1",
"@sveltejs/vite-plugin-svelte": "3.0.2",
"@tauri-apps/cli": "1.5.10",
"@tsconfig/svelte": "5.0.2",
"@types/eslint": "8.56.5",
"@types/node": "20.11.24",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"@vitest/coverage-v8": "^1.3.1",
"@vitest/ui": "^1.3.1",
"@vitest/coverage-v8": "1.3.1",
"@vitest/ui": "1.3.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-svelte": "2.35.1",
"jsdom": "^24.0.0",
"jsdom": "24.0.0",
"npm-run-all2": "6.1.2",
"postcss": "8.4.35",
"postcss-html": "1.6.0",
"prettier": "3.2.5",
"prettier-plugin-svelte": "3.2.2",
"stylelint": "^16.2.1",
"stylelint": "16.2.1",
"stylelint-config-recommended": "14.0.0",
"stylelint-config-recommended-scss": "14.0.0",
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.0",
"svelte": "^4.2.8",
"svelte-check": "3.6.5",
"tslib": "^2.6.0",
"typescript": "^5.0.2",
"vite": "^5.0.0",
"svelte": "4.2.12",
"svelte-check": "3.6.6",
"tslib": "2.6.2",
"typescript": "5.3.3",
"vite": "5.1.4",
"vitest": "1.3.1"
},
"volta": {
"node": "20.11.1",
"yarn": "4.1.0"
"yarn": "4.1.1"
}
}
Binary file added public/fonts/Montserrat-Medium.ttf
Binary file not shown.
Binary file added public/img/emojis/capybara.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 public/img/github-mark.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 public/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading