Skip to content

Commit ce10a25

Browse files
authored
Merge pull request #21 from x0k/sveltekit
Migrate to Sveltekit
2 parents 1bbcd6c + 822aa22 commit ce10a25

233 files changed

Lines changed: 3760 additions & 6303 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.

.github/workflows/deploy.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@ on:
99
workflow_dispatch:
1010

1111
# Allow this job to clone the repo and create a page deployment
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
1712
jobs:
1813
build:
1914
runs-on: ubuntu-latest
2015
steps:
2116
- name: Checkout your repository using git
22-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
2318

2419
- name: Setup pnpm
2520
uses: pnpm/action-setup@v4
2621

2722
- name: Setup node
28-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2924
with:
30-
node-version: 20
25+
node-version: 24
3126
cache: pnpm
3227

3328
- name: Install dependencies
@@ -43,18 +38,26 @@ jobs:
4338
4439
- name: Build
4540
run: pnpm run build
41+
env:
42+
BASE_PATH: "/${{ github.event.repository.name }}"
4643

4744
- name: Upload Pages Artifact
48-
uses: actions/upload-pages-artifact@v3
45+
uses: actions/upload-pages-artifact@v4
4946
with:
5047
path: "apps/ppp/dist/"
5148

5249
deploy:
5350
needs: build
5451
runs-on: ubuntu-latest
52+
53+
permissions:
54+
pages: write
55+
id-token: write
56+
5557
environment:
5658
name: github-pages
5759
url: ${{ steps.deployment.outputs.page_url }}
60+
5861
steps:
5962
- name: Deploy to GitHub Pages
6063
id: deployment

apps/ppp/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*
24+
25+
# Paraglide
26+
src/lib/paraglide

apps/ppp/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

apps/ppp/.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock
5+
bun.lock
6+
bun.lockb
7+
8+
# Miscellaneous
9+
/static/

apps/ppp/.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
],
15+
"tailwindStylesheet": "./src/app.css"
16+
}

apps/ppp/.vscode/extensions.json

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

apps/ppp/astro.config.mjs

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

apps/ppp/eslint.config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import prettier from 'eslint-config-prettier';
2+
import { fileURLToPath } from 'node:url';
3+
import { includeIgnoreFile } from '@eslint/compat';
4+
import js from '@eslint/js';
5+
import svelte from 'eslint-plugin-svelte';
6+
import { defineConfig } from 'eslint/config';
7+
import globals from 'globals';
8+
import ts from 'typescript-eslint';
9+
import svelteConfig from './svelte.config.js';
10+
11+
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
12+
13+
export default defineConfig(
14+
includeIgnoreFile(gitignorePath),
15+
js.configs.recommended,
16+
...ts.configs.recommended,
17+
...svelte.configs.recommended,
18+
prettier,
19+
...svelte.configs.prettier,
20+
{
21+
languageOptions: {
22+
globals: { ...globals.browser, ...globals.node }
23+
},
24+
rules: {
25+
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
26+
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
27+
'no-undef': 'off'
28+
}
29+
},
30+
{
31+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
32+
languageOptions: {
33+
parserOptions: {
34+
projectService: true,
35+
extraFileExtensions: ['.svelte'],
36+
parser: ts.parser,
37+
svelteConfig
38+
}
39+
}
40+
}
41+
);

apps/ppp/messages/en.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
3+
"hello_world": "Hello, {name} from en!",
34
"problemsPageTitle": "Problems",
45
"editorPageTitle": "Editor",
56
"designPatterns": "Design Patterns",
@@ -11,5 +12,6 @@
1112
"stop": "Stop",
1213
"forceStop": "Force stop",
1314
"executionTimeout": "Execution timeout (ms)",
14-
"executionTimeoutDescription": "Use zero to disable"
15-
}
15+
"executionTimeoutDescription": "Use zero to disable",
16+
"currently_untranslated_problem": "This problem has not yet been translated for your language"
17+
}

apps/ppp/messages/ru.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
3+
"hello_world": "Hello, {name} from ru!",
34
"problemsPageTitle": "Проблемы",
45
"editorPageTitle": "Редактор",
56
"designPatterns": "Паттерны проектирования",
@@ -11,5 +12,6 @@
1112
"stop": "Остановить",
1213
"forceStop": "Остановить принудительно",
1314
"executionTimeout": "Таймаут выполнения (мс)",
14-
"executionTimeoutDescription": "Используйте ноль для отключения"
15+
"executionTimeoutDescription": "Используйте ноль для отключения",
16+
"currently_untranslated_problem": "Данная проблема пока не переведена для вашего языка"
1517
}

0 commit comments

Comments
 (0)