Skip to content
Open
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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

- name: Run tests with coverage
run: npx vitest run --coverage

- name: Upload coverage report
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage
39 changes: 39 additions & 0 deletions HappySudoku-new/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy

on:
push:
branches:
- master

permissions:
contents: write

jobs:
build-deploy:
name: Build & Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Setup 🔧
uses: actions/[email protected]

- name: Install ♻
run: npm install

- name: Build 🏗
run: npm run build

- name: CNAME 🧾
run: echo sudoku.jonasgeiler.com > dist/CNAME

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
folder: dist
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
7 changes: 7 additions & 0 deletions HappySudoku-new/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/node_modules/
/dist/

.DS_Store
.idea
tailwind-full.config.js
pnpm-lock.yaml
10 changes: 10 additions & 0 deletions HappySudoku-new/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# [sudoku](https://sudoku.jonasgeiler.com)

This is a very simple sudoku game built with Svelte and TailwindCSS.

Have fun! 😉

> [!WARNING]
> Unfortunately not all features are done yet. Specifically:
> - Undoing/redoing moves
> - Creating your own sudoku games
72 changes: 72 additions & 0 deletions HappySudoku-new/h -u origin feature-wiki-integration
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
* f7090f7 (HEAD -> feature-wiki-integration) 完成题目导入的导入url部分
* 3e95992 (origin/main, origin/HEAD) chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates (#1)
* 37060f4 docs: updated readme
* 6746555 chore(deps): pin dependencies
* ce9543d ci: fixed indentation
* bb6b175 chore: updated domain and branding
* acf0a03 Updated bot user
* 9f3fbb4 Added analytics
* 146fff2 Improved imports
* 185b6d6 improved UX
* a3f1f41 Fixed tailwindcss config (again)
* 7a2df88 Fixed tailwindcss config
* 3d1fa52 Updated build procedure
* 7ea1567 Added random gameover message
* 382d865 Changed wording from 'Sudoku' to 'Sudoku puzzle' and added confirmation modal when changing to creator mode
* 3596d5c A11Y improvements
* adb04d6 Update actions/setup-node
* 675edf1 Open native share popup if possible and some rebranding
* ef808d3 Added game over screen
* 0c447e9 Made candidates better looking
* 3182960 Actually fixed cursor bug
* 56ad6c7 Fixed cursor bug
* bed2deb Changed cursor position to zero-based
* 1c39fde Added candidates/notes feature First draft
* 176a5b5 Improved font scaling
* 7b126cb Jump to other end when moving cursor out of bounds
* 0a2ff81 Show a message in welcome modal when opening a shared sudoku
* bbb781d Slight A11Y improvement of welcome modal
* f12585e Added welcome modal
* c4274a7 Added some comments
* cd94384 Wait a bit before resuming game after dropdown
* 5818b97 Improved timer store
* 1079d3a Did a lot of refactoring
* 3847c7a Added notes store
* a4e1f7f Only display number as red when user number
* 2157a81 User Grid now inherits Grid and moved all cell calculations into board and other improvements
* 129f342 Improved hints store
* 539d74d improved invalidCells store
* 7f3f133 Improved validation
* 07795db Validate cells
* 7455062 Added WASD support
* b8e7e86 Added keyboard support
* c5b870d Made Controls even more responsive
* 3d95b29 Made Controls more responsive
* fe9e124 Increased maximum amount of hints
* 8309580 Improved timeToString function
* de3a543 Removed some more unused imports
* bea8160 Removed some unused files and imports
* a9501ac Reduced need of get() store function
* 0795f1b Improved timer and start/stop it when opening modals
* 2cc5f91 Added hints setting and store
* ae0d0f5 Implemented Pause Game
* 97258e2 Fixed same number highlight bug
* 1faabb6 Share modal now showing actual sencode
* 7ef09f4 Added basic grid functionality
* fc7dd78 Improved share and QR code modals Share has close button, QR code has back button
* b885676 Auto-close dropdown after difficulty change
* d147a74 Improved live reload
* a8e3974 Improved PurgeCSS
* 41f6527 Fixed purgecss config
* 363ca4b Made 404 page independent
* fd56b91 Improved build and inlined critical css
* 6a1e560 Dumped Sapper and use Svelte only
* c7c0119 Updated manifest.json
* f4f4991 Added github workflow
* 38c64ea Added Modals, added stores, moved components
* 978991a Refactored @sudoku module
* 66a1678 Complete rework of the Project
* f9985d7 Rename index.php to index.html
* f5f4637 Added screenshot
* 7a5177d Initial Commit locally
* adc7fb1 Initial commit
Loading