Skip to content

Commit

Permalink
feat: send wish history request to backend and display response (#182)
Browse files Browse the repository at this point in the history
* feat: send wish history request to backend and display response

* feat: add credentials to fetch request

* feat: improve login page

* fix: update lockfile

* feat: mutate wish history

* feat: add instructions to page

* feat: add more translatable strings

* feat: check more cases and encode authkey

* feat: add success check

* fix: use encodeUriComponent

* fix: completedTimestamp

* refactor: split application state and include new icon

* fix: regenerate pnpm-lock.yaml

* feat: add websocket support

* fix: regenerate lock file

* chore: require pnpm >= 9

* chore: remove unused eslint rules

* chore: remove unused gacha type

* chore: remove unused cookie function

* fix: github workflow pnpm step

* feat: fetch user profile

* fix: only fetch when authenticated

* fix: set isAuthenticated to false if backend returns AUTHENTICATION_REQUIRED

* fix: regenerate lock file

* feat: add spanish translation and make wish import page translatable

* fix: regenerate lockfile

* refactor: wish data table

* fix: unescape date

* fix: regenerate lockfile

* chore: set htmlWhitespaceSensitivity to ignore

* fix: add Arlecchino

* fix: regenerate lockfile

* chore: update fr translation

* fix: only translate title not url

* fix: query not updating

* feat: improve import experience by checking for gacha url

* fix: always show wish import button

* feat: basic requirements slot on default layout

* fix: annoying AUTHORIZATION_REQUIRED notifications

* fix: regenerate lockfile

* chore: update french translation

* chore: update german translation

* fix: add translation for PullDistributionByMonth.svelte chart

* fix: regenerate lockfile

* feat: added pity in overview and detailed view

* fix: await backend service and queryClient from layout and use generated types

---------

Co-authored-by: Ludovic <[email protected]>
  • Loading branch information
maalni and LudovicMalot authored May 21, 2024
1 parent 98dbcfc commit 73d26c8
Show file tree
Hide file tree
Showing 78 changed files with 10,126 additions and 7,630 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,13 @@ module.exports = {
'plugin:prettier/recommended'
],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'@typescript-eslint/naming-convention': [
'error',
{
selector: ['default'],
format: ['camelCase', 'PascalCase'],
leadingUnderscore: 'allow'
},
{
selector: ['variable'],
format: ['camelCase', 'UPPER_CASE']
},
{
selector: ['objectLiteralProperty'],
format: ['camelCase', 'UPPER_CASE']
},
{
selector: ['typeLike'],
format: ['PascalCase']
}
]
},
overrides: [
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/Iron
- run: npm install -g pnpm
- run: pnpm install
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: true
- name: Check TypeScript
run: pnpm tsc
check-prettier:
Expand All @@ -31,9 +34,13 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/Iron
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm run lint
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: true
- name: Check Prettier & Eslint
run: pnpm run lint
deploy-to-cloudflare:
needs: [check-typescript, check-prettier]
if: ${{ github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' }}
Expand All @@ -45,15 +52,15 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/Iron
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
version: 9
run_install: true
- name: Build
run: pnpm run build
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"endOfLine": "lf",
"tabWidth": 4,
"plugins": ["prettier-plugin-svelte"],
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.svelte",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@internationalized/date": "^3.5.3",
"@mdi/js": "^7.4.47",
"@tanstack/svelte-query": "^5.32.0",
"bits-ui": "^0.21.7",
"clsx": "^2.1.1",
"cmdk-sv": "^0.0.17",
Expand All @@ -25,6 +26,8 @@
"layerchart": "^0.36.5",
"lucide-svelte": "^0.378.0",
"mode-watcher": "^0.3.0",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"svelte-i18next": "^2.2.2",
"svelte-persisted-store": "^0.9.2",
"svelte-sonner": "^0.3.24",
Expand Down Expand Up @@ -69,7 +72,7 @@
"vite-plugin-pwa": "^0.20.0"
},
"engines": {
"pnpm": ">= 8",
"pnpm": ">= 9",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm"
}
Expand Down
Loading

0 comments on commit 73d26c8

Please sign in to comment.