Skip to content

Commit 5fac7a9

Browse files
authored
Merge pull request #14 from effector/add-tree-todo-list
Add tree todo list
2 parents c7e1343 + c9e4c65 commit 5fac7a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3203
-1016
lines changed

.changeset/effector-model-7.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@effector/model': patch
3+
---
4+
5+
- Add `InputType` and `KeyvalWithState` type helpers
6+
- Add `isKeyval` method
7+
- Add recursive keyval support
8+
- Implement lazy initialization for keyval body
9+
- Add support for filling nested keyvals on `.edit.add`
10+
- Fix `onMount` types

.changeset/effector-model-react-7.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@effector/model-react': patch
3+
---
4+
5+
- Implement tree render support in `useEntityList`
6+
- Add `useEditKeyval` public hook
7+
- Fix `useEditItemField` types
8+
- Fix peerDependencies

apps/tree-todo-list/.babelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": [],
3+
"plugins": ["effector/babel-plugin"]
4+
}

apps/tree-todo-list/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

apps/tree-todo-list/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tree todo list app
2+
3+
Run `npx nx run tree-todo-list:serve` to start

apps/tree-todo-list/index.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Tree todo list effector model app</title>
8+
<style>
9+
#root {
10+
max-width: 500px;
11+
margin: auto;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<div id="root"></div>
17+
<script type="module" src="/src/main.tsx"></script>
18+
</body>
19+
</html>

apps/tree-todo-list/package.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "@effector/tree-todo-list-app",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"dependencies": {
7+
"effector-action": "^1.1.0"
8+
},
9+
"devDependencies": {
10+
"@vitejs/plugin-react": "^3.1.0",
11+
"vite": "^4.2.1"
12+
}
13+
}

apps/tree-todo-list/project.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "tree-todo-list",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/tree-todo-list/src",
5+
"projectType": "application",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/vite:build",
9+
"options": {
10+
"outputPath": "dist/apps/tree-todo-list"
11+
}
12+
},
13+
"serve": {
14+
"executor": "@nrwl/vite:dev-server",
15+
"options": {
16+
"buildTarget": "tree-todo-list:build"
17+
}
18+
},
19+
"lint": {
20+
"executor": "@nrwl/linter:eslint",
21+
"outputs": ["{options.outputFile}"],
22+
"options": {
23+
"lintFilePatterns": ["apps/tree-todo-list/**/*.{ts,js}"]
24+
}
25+
},
26+
"preview": {
27+
"executor": "@nrwl/vite:preview-server",
28+
"defaultConfiguration": "development",
29+
"options": {
30+
"buildTarget": "tree-todo-list:build"
31+
},
32+
"configurations": {
33+
"development": {
34+
"buildTarget": "tree-todo-list:build:development"
35+
},
36+
"production": {
37+
"buildTarget": "tree-todo-list:build:production"
38+
}
39+
}
40+
}
41+
},
42+
"tags": []
43+
}

apps/tree-todo-list/public/vite.svg

+1
Loading

apps/tree-todo-list/src/main.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { StrictMode } from 'react';
2+
import { createRoot } from 'react-dom/client';
3+
4+
import { App } from './view/App';
5+
6+
createRoot(document.getElementById('root')!).render(
7+
<StrictMode>
8+
<App />
9+
</StrictMode>,
10+
);

0 commit comments

Comments
 (0)