Skip to content

Add tree todo list #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
10 changes: 10 additions & 0 deletions .changeset/effector-model-7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@effector/model': patch
---

- Add `InputType` and `KeyvalWithState` type helpers
- Add `isKeyval` method
- Add recursive keyval support
- Implement lazy initialization for keyval body
- Add support for filling nested keyvals on `.edit.add`
- Fix `onMount` types
8 changes: 8 additions & 0 deletions .changeset/effector-model-react-7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@effector/model-react': patch
---

- Implement tree render support in `useEntityList`
- Add `useEditKeyval` public hook
- Fix `useEditItemField` types
- Fix peerDependencies
4 changes: 4 additions & 0 deletions apps/tree-todo-list/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": [],
"plugins": ["effector/babel-plugin"]
}
24 changes: 24 additions & 0 deletions apps/tree-todo-list/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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?
3 changes: 3 additions & 0 deletions apps/tree-todo-list/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Tree todo list app

Run `npx nx run tree-todo-list:serve` to start
19 changes: 19 additions & 0 deletions apps/tree-todo-list/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!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>Tree todo list effector model app</title>
<style>
#root {
max-width: 500px;
margin: auto;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions apps/tree-todo-list/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@effector/tree-todo-list-app",
"private": true,
"version": "0.0.0",
"type": "module",
"dependencies": {
"effector-action": "^1.1.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.2.1"
}
}
43 changes: 43 additions & 0 deletions apps/tree-todo-list/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "tree-todo-list",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/tree-todo-list/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/vite:build",
"options": {
"outputPath": "dist/apps/tree-todo-list"
}
},
"serve": {
"executor": "@nrwl/vite:dev-server",
"options": {
"buildTarget": "tree-todo-list:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/tree-todo-list/**/*.{ts,js}"]
}
},
"preview": {
"executor": "@nrwl/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "tree-todo-list:build"
},
"configurations": {
"development": {
"buildTarget": "tree-todo-list:build:development"
},
"production": {
"buildTarget": "tree-todo-list:build:production"
}
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions apps/tree-todo-list/public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions apps/tree-todo-list/src/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

import { App } from './view/App';

createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
);
Loading