Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ccac1cf
init
subkitmashup Aug 19, 2025
0262b6a
add providers
subkitmashup Aug 19, 2025
7057314
Add welcome and Loggin screens
buj7 Aug 19, 2025
6b476ed
Merge branch 'ENDGAME' of https://github.com/MikeBild/introduction-re…
buj7 Aug 19, 2025
6e586de
added toDoList and toDoListitem components
SilkeDH Aug 19, 2025
b6d8b33
initial layout
bep2sgm Aug 19, 2025
0bbb541
refactor types
subkitmashup Aug 19, 2025
89ed38a
login signup story and styling
buj7 Aug 19, 2025
f0c429c
Renamed TodoList; fixed something
DeJasch Aug 19, 2025
68dde51
Added missing default export
DeJasch Aug 19, 2025
b3e0ffb
Fixed imports
DeJasch Aug 19, 2025
59cb915
split signup and login in two components
buj7 Aug 19, 2025
fe9b5cc
Added styling; made todoList optional
DeJasch Aug 19, 2025
6bf50b2
Merge branch 'ENDGAME' of https://github.com/MikeBild/introduction-re…
DeJasch Aug 19, 2025
6fdcf56
username input validation
buj7 Aug 19, 2025
241a6c9
add auth
subkitmashup Aug 19, 2025
d6569be
adapted layout
bep2sgm Aug 19, 2025
544f3e0
add layout log in/out example
subkitmashup Aug 19, 2025
ccd7854
to do input
buj7 Aug 19, 2025
8a28475
Merge branch 'ENDGAME' of https://github.com/MikeBild/introduction-re…
buj7 Aug 19, 2025
a9d1acd
add register/login example
subkitmashup Aug 19, 2025
dce659a
add key to todolist
subkitmashup Aug 19, 2025
935eee6
key as itemKey
subkitmashup Aug 19, 2025
547ace6
args for username
subkitmashup Aug 19, 2025
8dee782
build the app
subkitmashup Aug 19, 2025
7aa951a
remove todo list item
subkitmashup Aug 19, 2025
c437778
clean usage of todos store
subkitmashup Aug 19, 2025
a3facad
code cleanup
subkitmashup Aug 19, 2025
69107ba
restructure using router
subkitmashup Aug 19, 2025
5bcb708
add tests
subkitmashup Aug 19, 2025
37fa041
fix key
subkitmashup Aug 20, 2025
ca4c899
fix typing
subkitmashup Aug 20, 2025
b96070e
fix key
subkitmashup Aug 20, 2025
943d2ed
more tests
subkitmashup Aug 20, 2025
829449b
add tests
subkitmashup Aug 20, 2025
20e80b0
add api provider
subkitmashup Aug 20, 2025
575ea87
add describe to test
subkitmashup Aug 20, 2025
3ab47e4
adjust testid
subkitmashup Aug 20, 2025
e74a0cd
adjust imports
subkitmashup Aug 20, 2025
2f60c3b
fix missing isLoading
subkitmashup Aug 20, 2025
8561a1d
remove text toggle
buj7 Aug 20, 2025
0240d5d
Added test for MyToDoList.
DeJasch Aug 20, 2025
fc06ff3
layout tests
bep2sgm Aug 20, 2025
3285133
add coverage
subkitmashup Aug 20, 2025
3c7d6f1
error
subkitmashup Aug 20, 2025
a5cec20
Merge branch 'ENDGAME' of https://github.com/MikeBild/introduction-re…
buj7 Aug 20, 2025
fd844b0
add remove todo
subkitmashup Aug 20, 2025
2a7ab17
fix id
subkitmashup Aug 20, 2025
28dfcbe
useRef
subkitmashup Aug 20, 2025
005b8ac
add abort
subkitmashup Aug 20, 2025
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
29 changes: 29 additions & 0 deletions examples/endgame/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*storybook.log
storybook-static

coverage
20 changes: 20 additions & 0 deletions examples/endgame/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
"addons": [
"@chromatic-com/storybook",
"@storybook/addon-docs",
"@storybook/addon-onboarding",
"@storybook/addon-a11y",
"@storybook/addon-vitest"
],
"framework": {
"name": "@storybook/react-vite",
"options": {}
}
};
export default config;
21 changes: 21 additions & 0 deletions examples/endgame/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Preview } from '@storybook/react-vite'

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},

a11y: {
// 'todo' - show a11y violations in the test UI only
// 'error' - fail CI on a11y violations
// 'off' - skip a11y checks entirely
test: 'todo'
}
},
};

export default preview;
7 changes: 7 additions & 0 deletions examples/endgame/.storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
import { setProjectAnnotations } from '@storybook/react-vite';
import * as projectAnnotations from './preview';

// This is an important step to apply the right configuration when testing your stories.
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);
69 changes: 69 additions & 0 deletions examples/endgame/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...

// Remove tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,

// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```
26 changes: 26 additions & 0 deletions examples/endgame/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from "eslint-plugin-storybook";

import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { globalIgnores } from 'eslint/config'

export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
], storybook.configs["flat/recommended"]);
13 changes: 13 additions & 0 deletions examples/endgame/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Endgame</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading