create-lupine 1.0.31 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/index.js +238 -112
- package/package.json +1 -1
- package/templates/common/.agents/skills/lupine-framework/SKILL.md +63 -0
- package/templates/common/.agents/skills/lupine-framework/references/backend-api.md +113 -0
- package/templates/common/.agents/skills/lupine-framework/references/icon-handling.md +71 -0
- package/templates/common/.agents/skills/lupine-framework/references/mobile-interactions.md +29 -0
- package/templates/common/.agents/skills/lupine-framework/references/native-apps.md +190 -0
- package/templates/common/.agents/skills/lupine-framework/references/navigation-and-routing.md +55 -0
- package/templates/common/.agents/skills/lupine-framework/references/reactivity-and-state.md +108 -0
- package/templates/common/.agents/skills/lupine-framework/references/styling-and-themes.md +121 -0
- package/templates/common/.env.mobile +4 -3
- package/templates/common/_env +10 -4
- package/templates/common/apps/server/README.md +10 -0
- package/templates/common/dev/cp-folder.js +9 -4
- package/templates/lupine-template-cv-starter/README.md +37 -0
- package/templates/lupine-template-cv-starter/app/package.json +20 -0
- package/templates/lupine-template-cv-starter/app/src/app.tsx +6 -0
- package/templates/lupine-template-cv-starter/app/src/index.native.tsx +4 -0
- package/templates/lupine-template-cv-starter/app/src/index.test.tsx +71 -0
- package/templates/lupine-template-cv-starter/app/src/index.web.tsx +28 -0
- package/templates/lupine-template-cv-starter/app/tsconfig.json +17 -0
- package/templates/lupine-template-cv-starter/lupine.json +8 -7
- package/templates/lupine-template-cv-starter/web/src/index.html +9 -2
- package/templates/lupine-template-cv-starter/web/src/index.tsx +9 -23
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.html +9 -2
- package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +4 -29
- package/templates/lupine-template-doc-starter/README.md +37 -0
- package/templates/lupine-template-doc-starter/app/package.json +20 -0
- package/templates/lupine-template-doc-starter/app/src/app.tsx +6 -0
- package/templates/lupine-template-doc-starter/app/src/index.native.tsx +4 -0
- package/templates/lupine-template-doc-starter/app/src/index.test.tsx +78 -0
- package/templates/lupine-template-doc-starter/app/src/index.web.tsx +28 -0
- package/templates/lupine-template-doc-starter/app/tsconfig.json +17 -0
- package/templates/lupine-template-doc-starter/lupine.json +8 -7
- package/templates/lupine-template-doc-starter/web/src/index.html +9 -2
- package/templates/lupine-template-doc-starter/web/src/index.tsx +9 -23
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html +9 -2
- package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +4 -29
- package/templates/lupine-template-fullstack-note/README.md +83 -0
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/api/package.json +1 -1
- package/templates/lupine-template-fullstack-note/api/resources/install.mysql.sql +32 -0
- package/templates/lupine-template-fullstack-note/api/resources/install.sqlite.sql +27 -0
- package/templates/lupine-template-fullstack-note/api/src/service/answer.ts +39 -0
- package/templates/lupine-template-fullstack-note/api/src/service/api.ts +52 -0
- package/templates/lupine-template-fullstack-note/api/src/service/db.ts +78 -0
- package/templates/lupine-template-fullstack-note/api/src/service/notes-api.ts +86 -0
- package/templates/lupine-template-fullstack-note/api/src/service/root-api.ts +19 -0
- package/templates/lupine-template-fullstack-note/api/src/service/user-api.ts +182 -0
- package/templates/lupine-template-fullstack-note/app/package.json +19 -0
- package/templates/lupine-template-fullstack-note/app/src/app.tsx +75 -0
- package/templates/lupine-template-fullstack-note/app/src/index.native.tsx +4 -0
- package/templates/lupine-template-fullstack-note/app/src/index.test.tsx +373 -0
- package/templates/lupine-template-fullstack-note/app/src/index.web.tsx +20 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/components.tsx +65 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/details.tsx +38 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/discover.tsx +25 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/home.tsx +76 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/inbox.tsx +49 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/login.tsx +54 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/me.tsx +32 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/notes.tsx +128 -0
- package/templates/lupine-template-fullstack-note/app/src/pages/settings.tsx +45 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/AppMenu.tsx +44 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/api.ts +159 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/data.ts +20 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/locales/ja.ts +80 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/locales/zh-CN.ts +80 -0
- package/templates/lupine-template-fullstack-note/app/src/shell/texts.ts +14 -0
- package/templates/lupine-template-fullstack-note/app/tsconfig.json +17 -0
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/lupine.json +4 -2
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/package.json +1 -1
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/src/index.html +10 -3
- package/templates/lupine-template-fullstack-note/web/src/index.tsx +15 -0
- package/templates/lupine-template-fullstack-starter/README.md +70 -0
- package/templates/lupine-template-fullstack-starter/api/package.json +10 -0
- package/templates/lupine-template-fullstack-starter/api/resources/install.mysql.sql +107 -0
- package/templates/lupine-template-fullstack-starter/api/resources/install.sqlite.sql +75 -0
- package/templates/lupine-template-fullstack-starter/api/src/lang/api-lang-en.ts +39 -0
- package/templates/lupine-template-fullstack-starter/api/src/lang/api-lang-zh-cn.ts +37 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/admin-api.ts +139 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/api.ts +111 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/contact-api.ts +50 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/file-api-base.ts +30 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/root-api.ts +28 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/send-email.ts +47 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/setting-api.ts +60 -0
- package/templates/lupine-template-fullstack-starter/api/src/service/user-api.ts +1046 -0
- package/templates/lupine-template-fullstack-starter/app/assets/sample.png +0 -0
- package/templates/lupine-template-fullstack-starter/app/package.json +20 -0
- package/templates/lupine-template-fullstack-starter/app/src/app.tsx +76 -0
- package/templates/lupine-template-fullstack-starter/app/src/index.native.tsx +4 -0
- package/templates/lupine-template-fullstack-starter/app/src/index.test.tsx +276 -0
- package/templates/lupine-template-fullstack-starter/app/src/index.web.tsx +28 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/about.tsx +27 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/contact.tsx +41 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/favorite.tsx +27 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/home.tsx +63 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/login.tsx +63 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/mine.tsx +44 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/profile.tsx +58 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/register.tsx +48 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/reset-password.tsx +41 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/settings.tsx +33 -0
- package/templates/lupine-template-fullstack-starter/app/src/pages/story.tsx +46 -0
- package/templates/lupine-template-fullstack-starter/app/src/shell/api.ts +127 -0
- package/templates/lupine-template-fullstack-starter/app/src/shell/parts.tsx +100 -0
- package/templates/lupine-template-fullstack-starter/app/src/shell/stories.ts +65 -0
- package/templates/lupine-template-fullstack-starter/app/src/shell/texts.ts +79 -0
- package/templates/lupine-template-fullstack-starter/app/tsconfig.json +17 -0
- package/templates/lupine-template-fullstack-starter/lupine.json +31 -0
- package/templates/lupine-template-fullstack-starter/web/assets/android-chrome-192x192.png +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/apple-touch-icon.png +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/favicon-16x16.png +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/favicon-32x32.png +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/favicon.ico +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/icons-font/License-carbon-icons.txt +71 -0
- package/templates/lupine-template-fullstack-starter/web/assets/icons-font/License-material-design.txt +20 -0
- package/templates/lupine-template-fullstack-starter/web/assets/icons-font/i-font.woff2 +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/icons-font/sample.html +124 -0
- package/templates/lupine-template-fullstack-starter/web/assets/icons-font/style.css +103 -0
- package/templates/lupine-template-fullstack-starter/web/assets/lupine-flower.png +0 -0
- package/templates/lupine-template-fullstack-starter/web/assets/lupine.svg +71 -0
- package/templates/lupine-template-fullstack-starter/web/assets/site.webmanifest +14 -0
- package/templates/lupine-template-fullstack-starter/web/icons-font.config.js +129 -0
- package/templates/{lupine-template-responsive-starter/api → lupine-template-fullstack-starter/web}/package.json +1 -1
- package/templates/lupine-template-fullstack-starter/web/src/admin/admin-patch.tsx +34 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/components/home-search-component.tsx +125 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-card.tsx +105 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-list.tsx +105 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-props.ts +34 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/index.html +23 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/index.tsx +49 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-cfg.tsx +144 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-item-edit.tsx +20 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-item-list.tsx +23 -0
- package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-user.tsx +145 -0
- package/templates/lupine-template-fullstack-starter/web/src/index.html +28 -0
- package/templates/lupine-template-fullstack-starter/web/src/index.tsx +16 -0
- package/templates/lupine-template-fullstack-starter/web/src/services/fetch-data.ts +37 -0
- package/templates/lupine-template-fullstack-starter/web/src/styles/base-css.ts +14 -0
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-starter}/web/src/styles/global.css +10 -57
- package/templates/{lupine-template-hello-world → lupine-template-fullstack-starter}/web/src/styles/theme.ts +2 -1
- package/templates/lupine-template-responsive-starter/README.md +51 -0
- package/templates/lupine-template-responsive-starter/app/package.json +19 -0
- package/templates/lupine-template-responsive-starter/app/src/app.tsx +80 -0
- package/templates/lupine-template-responsive-starter/app/src/index.native.tsx +4 -0
- package/templates/lupine-template-responsive-starter/app/src/index.test.tsx +283 -0
- package/templates/lupine-template-responsive-starter/app/src/index.web.tsx +31 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/about.tsx +23 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/finance.tsx +48 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/mine.tsx +60 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/not-found.tsx +9 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/note-detail.tsx +43 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/note-edit.tsx +45 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/note-search.tsx +62 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/notes.tsx +71 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/settings.tsx +55 -0
- package/templates/lupine-template-responsive-starter/app/src/pages/tools.tsx +112 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/icons.ts +7 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/layout.ts +18 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/locales/zh-CN.ts +89 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/menu.tsx +81 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/nav.ts +12 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/store.ts +72 -0
- package/templates/lupine-template-responsive-starter/app/src/shell/texts.ts +11 -0
- package/templates/lupine-template-responsive-starter/app/tsconfig.json +17 -0
- package/templates/lupine-template-responsive-starter/lupine.json +7 -6
- package/templates/lupine-template-responsive-starter/web/src/index.html +9 -2
- package/templates/lupine-template-responsive-starter/web/src/index.tsx +9 -34
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.html +12 -6
- package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +12 -31
- package/templates/common/AI_CONTEXT.md +0 -1002
- package/templates/common/apps/server/src/app-loader.ts +0 -4
- package/templates/lupine-template-cv-starter/api/package.json +0 -6
- package/templates/lupine-template-cv-starter/api/resources/install.sqlite.sql +0 -4
- package/templates/lupine-template-cv-starter/api/src/index.ts +0 -15
- package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +0 -15
- package/templates/lupine-template-doc-starter/api/package.json +0 -6
- package/templates/lupine-template-doc-starter/api/resources/config_default.json +0 -6
- package/templates/lupine-template-doc-starter/api/resources/install.sqlite.sql +0 -4
- package/templates/lupine-template-doc-starter/api/src/index.ts +0 -15
- package/templates/lupine-template-doc-starter/api/src/resources/config_default.json +0 -6
- package/templates/lupine-template-doc-starter/api/src/resources/install.sqlite.sql +0 -4
- package/templates/lupine-template-doc-starter/web/src/client-env-keys.ts +0 -5
- package/templates/lupine-template-doc-starter/web/src/styles/base-css.ts +0 -15
- package/templates/lupine-template-hello-world/api/resources/config_default.json +0 -6
- package/templates/lupine-template-hello-world/api/resources/install.sqlite.sql +0 -4
- package/templates/lupine-template-hello-world/api/src/service/root-api.ts +0 -18
- package/templates/lupine-template-hello-world/web/src/index.tsx +0 -73
- package/templates/lupine-template-hello-world/web/src/styles/app.css +0 -0
- package/templates/lupine-template-hello-world/web/src/styles/base-css.ts +0 -1
- package/templates/lupine-template-responsive-starter/api/resources/config_default.json +0 -6
- package/templates/lupine-template-responsive-starter/api/resources/install.sqlite.sql +0 -4
- package/templates/lupine-template-responsive-starter/api/src/service/root-api.ts +0 -18
- package/templates/lupine-template-responsive-starter/web/src/app-icons.ts +0 -76
- package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx +0 -93
- package/templates/lupine-template-responsive-starter/web/src/components/mine-about-page.tsx +0 -86
- package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +0 -80
- package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +0 -220
- package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +0 -119
- package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +0 -116
- package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +0 -154
- package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +0 -193
- package/templates/lupine-template-responsive-starter/web/src/components/search-input.tsx +0 -95
- package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +0 -182
- package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +0 -52
- package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +0 -43
- package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +0 -46
- package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +0 -452
- package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +0 -325
- package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +0 -46
- package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts +0 -87
- package/templates/lupine-template-responsive-starter/web/src/services/mine-service.ts +0 -45
- package/templates/lupine-template-responsive-starter/web/src/styles/app.css +0 -0
- package/templates/lupine-template-responsive-starter/web/src/styles/base-css.ts +0 -65
- package/templates/lupine-template-responsive-starter/web/src/styles/global.css +0 -2130
- package/templates/lupine-template-responsive-starter/web/src/styles/theme.ts +0 -16
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/01-experience/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/02-projects/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/03-skills/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/04-education/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/01-experience/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/02-projects/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/03-skills/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/04-education/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/index.md +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/01-experience/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/02-projects/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/03-skills/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/04-education/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/01-experience/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/02-projects/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/03-skills/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/04-education/index.html +0 -0
- /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/index.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/list.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/install.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/started.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/index.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/index.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/index.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/list.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/install.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/started.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/index.md +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/index.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/list.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/install.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/started.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/index.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/index.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/index.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/list.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/install.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/started.html +0 -0
- /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
- /package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/api/src/index.ts +0 -0
- /package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/assets/favicon.ico +0 -0
- /package/templates/{lupine-template-cv-starter → lupine-template-fullstack-starter}/api/resources/config_default.json +0 -0
- /package/templates/{lupine-template-responsive-starter → lupine-template-fullstack-starter}/api/src/index.ts +0 -0
- /package/templates/{lupine-template-cv-starter/web/src → lupine-template-fullstack-starter/web/src/models}/client-env-keys.ts +0 -0
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CssProps,
|
|
3
|
-
HtmlVar,
|
|
4
|
-
MobileHeaderCenter,
|
|
5
|
-
MobileHeaderTitleIcon,
|
|
6
|
-
PageProps,
|
|
7
|
-
RefProps,
|
|
8
|
-
SliderFrame,
|
|
9
|
-
SliderFrameHookProps,
|
|
10
|
-
MobileHeaderEmptyIcon,
|
|
11
|
-
MobileTopSysIcon,
|
|
12
|
-
ActionSheetSelect,
|
|
13
|
-
createDragUtil,
|
|
14
|
-
DomUtils,
|
|
15
|
-
} from 'lupine.components';
|
|
16
|
-
import { NoteSearchComponent } from '../components/note-search-page';
|
|
17
|
-
import { LocalNoteProps, LocalNotesService } from '../services/local-notes-service';
|
|
18
|
-
import { NoteEditComponent } from '../components/note-edit';
|
|
19
|
-
import { NoteDetailComponent } from '../components/note-detail';
|
|
20
|
-
|
|
21
|
-
const extractText = (html: string) => {
|
|
22
|
-
const tmp = document.createElement('DIV');
|
|
23
|
-
tmp.innerHTML = html;
|
|
24
|
-
return tmp.textContent || tmp.innerText || '';
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const HomePage = async (props: PageProps) => {
|
|
28
|
-
let currentSearchQuery = '';
|
|
29
|
-
const dom = new HtmlVar('');
|
|
30
|
-
const sliderFrameHook: SliderFrameHookProps = {};
|
|
31
|
-
|
|
32
|
-
let draggedAmount = 0;
|
|
33
|
-
let menuClosedJustNow = false;
|
|
34
|
-
|
|
35
|
-
const onOpenSearch = () => {
|
|
36
|
-
resetSwipeMenus();
|
|
37
|
-
sliderFrameHook.load!(<NoteSearchComponent sliderFrameHook={sliderFrameHook} />);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const onAddNote = () => {
|
|
41
|
-
sliderFrameHook.load!(<NoteEditComponent sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
|
|
42
|
-
resetSwipeMenus();
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const onEditNote = (note: LocalNoteProps) => {
|
|
46
|
-
sliderFrameHook.load!(<NoteEditComponent note={note} sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
const onViewNote = (note: LocalNoteProps) => {
|
|
50
|
-
resetSwipeMenus();
|
|
51
|
-
sliderFrameHook.load!(<NoteDetailComponent note={note} sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const onDeleteNote = async (id: number, e: Event) => {
|
|
55
|
-
e.stopPropagation(); // prevent edit trigger
|
|
56
|
-
await ActionSheetSelect.show({
|
|
57
|
-
title: 'Are you sure you want to delete this note?',
|
|
58
|
-
options: ['Remove'],
|
|
59
|
-
cancelButtonText: 'Cancel',
|
|
60
|
-
handleClicked: async (index: number, close: () => void) => {
|
|
61
|
-
close();
|
|
62
|
-
if (index === 0) {
|
|
63
|
-
LocalNotesService.deleteNote(id);
|
|
64
|
-
refreshList();
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const dragUtil = createDragUtil();
|
|
71
|
-
dragUtil.setOnMoveCallback((clientX, clientY, movedX) => {
|
|
72
|
-
const dragDom = dragUtil.getDraggingDom();
|
|
73
|
-
if (!dragDom) return;
|
|
74
|
-
|
|
75
|
-
if (dragDom.classList.contains('note-card')) {
|
|
76
|
-
let translateX = movedX;
|
|
77
|
-
if (translateX > 0) translateX = 0;
|
|
78
|
-
if (translateX < -100) translateX = -100;
|
|
79
|
-
dragDom.style.transform = `translateX(${translateX}px)`;
|
|
80
|
-
draggedAmount = Math.abs(movedX);
|
|
81
|
-
|
|
82
|
-
const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
|
|
83
|
-
if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
|
|
84
|
-
actionLayer.style.opacity = translateX < -5 ? '1' : '0';
|
|
85
|
-
}
|
|
86
|
-
} else if (dragDom.classList.contains('note-card-drag-handle')) {
|
|
87
|
-
resetSwipeMenus();
|
|
88
|
-
const cardWrapper = dragDom.closest('.note-card-wrapper') as HTMLDivElement;
|
|
89
|
-
if (!cardWrapper) return;
|
|
90
|
-
|
|
91
|
-
// visual feedback for dragging
|
|
92
|
-
cardWrapper.style.opacity = '0.9';
|
|
93
|
-
cardWrapper.style.transform = 'scale(1.02)';
|
|
94
|
-
cardWrapper.style.boxShadow = '0 12px 24px rgba(0,0,0,0.15)';
|
|
95
|
-
cardWrapper.style.outline = '2px solid var(--primary-accent-color)';
|
|
96
|
-
cardWrapper.style.zIndex = '100';
|
|
97
|
-
|
|
98
|
-
const container = DomUtils.bySelector('.note-list-container') as HTMLDivElement;
|
|
99
|
-
if (!container) return;
|
|
100
|
-
|
|
101
|
-
const cards = container.querySelectorAll('.note-card-wrapper') as NodeListOf<HTMLDivElement>;
|
|
102
|
-
if (cards.length <= 1) return;
|
|
103
|
-
const rect = container.getBoundingClientRect();
|
|
104
|
-
const relativeY = clientY - rect.top + container.scrollTop;
|
|
105
|
-
|
|
106
|
-
let index = -1;
|
|
107
|
-
for (let i = 0; i < cards.length; i++) {
|
|
108
|
-
const cardTop = cards[i].offsetTop;
|
|
109
|
-
const cardBottom = cardTop + cards[i].offsetHeight;
|
|
110
|
-
if (relativeY >= cardTop && relativeY <= cardBottom) {
|
|
111
|
-
index = i;
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if (index >= 0) {
|
|
117
|
-
const targetCard = cards[index];
|
|
118
|
-
if (cardWrapper !== targetCard) {
|
|
119
|
-
let index2 = -1;
|
|
120
|
-
for (let i = 0; i < cards.length; i++) {
|
|
121
|
-
if (cards[i] === cardWrapper) {
|
|
122
|
-
index2 = i;
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (index2 >= 0) {
|
|
127
|
-
if (index2 < index) {
|
|
128
|
-
targetCard.parentNode?.insertBefore(cardWrapper, targetCard.nextSibling);
|
|
129
|
-
} else {
|
|
130
|
-
targetCard.parentNode?.insertBefore(cardWrapper, targetCard);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
// Set grabbed amount explicitly to avoid triggering any click events later
|
|
136
|
-
draggedAmount = 100;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
dragUtil.setOnMoveEndCallback(() => {
|
|
141
|
-
const dragDom = dragUtil.getDraggingDom();
|
|
142
|
-
if (!dragDom) return;
|
|
143
|
-
|
|
144
|
-
if (dragDom.classList.contains('note-card')) {
|
|
145
|
-
const currentTransform = dragDom.style.transform;
|
|
146
|
-
const match = currentTransform.match(/translateX\(([-\d\.]+)px\)/);
|
|
147
|
-
if (match) {
|
|
148
|
-
const x = parseFloat(match[1]);
|
|
149
|
-
if (x < -50) {
|
|
150
|
-
dragDom.style.transform = `translateX(-100px)`;
|
|
151
|
-
} else {
|
|
152
|
-
dragDom.style.transform = `translateX(0px)`;
|
|
153
|
-
const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
|
|
154
|
-
if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
|
|
155
|
-
actionLayer.style.opacity = '0';
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
} else {
|
|
159
|
-
dragDom.style.transform = `translateX(0px)`;
|
|
160
|
-
const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
|
|
161
|
-
if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
|
|
162
|
-
actionLayer.style.opacity = '0';
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
} else if (dragDom.classList.contains('note-card-drag-handle')) {
|
|
166
|
-
const cardWrapper = dragDom.closest('.note-card-wrapper') as HTMLDivElement;
|
|
167
|
-
if (cardWrapper) {
|
|
168
|
-
cardWrapper.style.opacity = '1';
|
|
169
|
-
cardWrapper.style.transform = 'scale(1)';
|
|
170
|
-
cardWrapper.style.boxShadow = '0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05)';
|
|
171
|
-
cardWrapper.style.outline = 'none';
|
|
172
|
-
cardWrapper.style.zIndex = '';
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const container = DomUtils.bySelector('.note-list-container') as HTMLDivElement;
|
|
176
|
-
if (!container) return;
|
|
177
|
-
const cards = container.querySelectorAll('.note-card') as NodeListOf<HTMLDivElement>;
|
|
178
|
-
const newOrderIds: number[] = [];
|
|
179
|
-
cards.forEach((c) => newOrderIds.push(parseInt(c.getAttribute('data-id') || '0')));
|
|
180
|
-
if (newOrderIds.length > 0) {
|
|
181
|
-
LocalNotesService.updateNoteOrders(newOrderIds);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
const resetSwipeMenus = (excludeId?: number): boolean => {
|
|
187
|
-
let closedAny = false;
|
|
188
|
-
const cards = document.querySelectorAll('.note-list-container .note-card') as NodeListOf<HTMLDivElement>;
|
|
189
|
-
cards.forEach((c) => {
|
|
190
|
-
if (excludeId !== undefined) {
|
|
191
|
-
const id = parseInt(c.getAttribute('data-id') || '-1');
|
|
192
|
-
if (id === excludeId) return;
|
|
193
|
-
}
|
|
194
|
-
const transform = c.style.transform;
|
|
195
|
-
const match = transform.match(/translateX\(([-\d\.]+)px\)/);
|
|
196
|
-
if (match && parseFloat(match[1]) < -5) {
|
|
197
|
-
c.style.transform = 'translateX(0px)';
|
|
198
|
-
const actionLayer = c.previousElementSibling as HTMLDivElement;
|
|
199
|
-
if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
|
|
200
|
-
actionLayer.style.opacity = '0';
|
|
201
|
-
}
|
|
202
|
-
closedAny = true;
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
return closedAny;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
const handleBgTouch = (e: Event) => {
|
|
210
|
-
let target = e.target as Element;
|
|
211
|
-
if (target && target.closest && target.closest('.action-btn')) return;
|
|
212
|
-
if (target && target.closest && target.closest('.note-card')) return;
|
|
213
|
-
resetSwipeMenus();
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
const refreshList = () => {
|
|
217
|
-
const allNotes = LocalNotesService.getAllNotes();
|
|
218
|
-
const filteredNotes = currentSearchQuery
|
|
219
|
-
? allNotes.filter(
|
|
220
|
-
(n) =>
|
|
221
|
-
n.title.toLowerCase().includes(currentSearchQuery.toLowerCase()) ||
|
|
222
|
-
n.content.toLowerCase().includes(currentSearchQuery.toLowerCase())
|
|
223
|
-
)
|
|
224
|
-
: allNotes;
|
|
225
|
-
|
|
226
|
-
if (filteredNotes.length === 0) {
|
|
227
|
-
dom.value = <div class='note-empty-state'>No search results</div>;
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
dom.value = (
|
|
232
|
-
<div class='note-list-container' style={{ position: 'relative' }}>
|
|
233
|
-
{filteredNotes.map((note) => (
|
|
234
|
-
<div class='note-card-wrapper'>
|
|
235
|
-
<div class='note-card-actions-layer'>
|
|
236
|
-
<div
|
|
237
|
-
class='action-btn edit-btn'
|
|
238
|
-
onClick={(e) => {
|
|
239
|
-
e.stopPropagation();
|
|
240
|
-
onEditNote(note);
|
|
241
|
-
}}
|
|
242
|
-
>
|
|
243
|
-
<i class='ifc-icon ma-pencil-outline' />
|
|
244
|
-
</div>
|
|
245
|
-
<div
|
|
246
|
-
class='action-btn delete-btn'
|
|
247
|
-
onClick={(e) => {
|
|
248
|
-
onDeleteNote(note.id, e);
|
|
249
|
-
}}
|
|
250
|
-
>
|
|
251
|
-
<i class='ifc-icon ma-delete-off-outline' />
|
|
252
|
-
</div>
|
|
253
|
-
</div>
|
|
254
|
-
<div
|
|
255
|
-
class='note-card row-box'
|
|
256
|
-
style={{ borderLeft: note.color ? `6px solid ${note.color}` : '' }}
|
|
257
|
-
data-id={note.id}
|
|
258
|
-
onMouseDown={(e) => {
|
|
259
|
-
resetSwipeMenus(note.id);
|
|
260
|
-
draggedAmount = 0;
|
|
261
|
-
dragUtil.onMouseDown(e);
|
|
262
|
-
}}
|
|
263
|
-
onTouchStart={(e) => {
|
|
264
|
-
resetSwipeMenus(note.id);
|
|
265
|
-
draggedAmount = 0;
|
|
266
|
-
dragUtil.onTouchStart(e);
|
|
267
|
-
}}
|
|
268
|
-
onClick={(e) => {
|
|
269
|
-
if (draggedAmount > 5) return;
|
|
270
|
-
const cardDom = e.currentTarget as HTMLElement;
|
|
271
|
-
const transform = cardDom.style.transform;
|
|
272
|
-
const match = transform.match(/translateX\(([-\d\.]+)px\)/);
|
|
273
|
-
if (match && parseFloat(match[1]) < -5) {
|
|
274
|
-
// user clicked the opened card itself, just close it
|
|
275
|
-
cardDom.style.transform = 'translateX(0px)';
|
|
276
|
-
const actionLayer = cardDom.previousElementSibling as HTMLDivElement;
|
|
277
|
-
if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
|
|
278
|
-
actionLayer.style.opacity = '0';
|
|
279
|
-
}
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
const closedOther = resetSwipeMenus();
|
|
283
|
-
if (closedOther) return; // if it was open on another card, swallow the click
|
|
284
|
-
onViewNote(note);
|
|
285
|
-
}}
|
|
286
|
-
>
|
|
287
|
-
<div class='note-card-content flex-1' style={{ minWidth: 0 }}>
|
|
288
|
-
<div class='note-card-title'>{note.title}</div>
|
|
289
|
-
<div class='note-card-preview ellipsis'>{extractText(note.content)}</div>
|
|
290
|
-
<div class='note-card-date'>{new Date(note.updatedAt).toLocaleString()}</div>
|
|
291
|
-
</div>
|
|
292
|
-
<div
|
|
293
|
-
class='note-card-drag-handle'
|
|
294
|
-
onMouseDown={(e) => {
|
|
295
|
-
e.stopPropagation();
|
|
296
|
-
dragUtil.onMouseDown(e);
|
|
297
|
-
}}
|
|
298
|
-
onTouchStart={(e) => {
|
|
299
|
-
e.stopPropagation();
|
|
300
|
-
dragUtil.onTouchStart(e);
|
|
301
|
-
}}
|
|
302
|
-
>
|
|
303
|
-
<i class='ifc-icon bs-list' />
|
|
304
|
-
</div>
|
|
305
|
-
</div>
|
|
306
|
-
</div>
|
|
307
|
-
))}
|
|
308
|
-
</div>
|
|
309
|
-
);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
const ref: RefProps = {
|
|
313
|
-
onLoad: async () => {
|
|
314
|
-
refreshList();
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
const css: CssProps = {
|
|
319
|
-
display: 'flex',
|
|
320
|
-
flexDirection: 'column',
|
|
321
|
-
height: '100%',
|
|
322
|
-
position: 'relative',
|
|
323
|
-
|
|
324
|
-
'.note-home-scroll': {
|
|
325
|
-
flex: 1,
|
|
326
|
-
overflowY: 'auto',
|
|
327
|
-
padding: '16px',
|
|
328
|
-
},
|
|
329
|
-
'.note-empty-state': {
|
|
330
|
-
display: 'flex',
|
|
331
|
-
justifyContent: 'center',
|
|
332
|
-
alignItems: 'center',
|
|
333
|
-
height: '100%',
|
|
334
|
-
color: 'var(--secondary-color)',
|
|
335
|
-
fontSize: '16px',
|
|
336
|
-
},
|
|
337
|
-
'.note-card': {
|
|
338
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
339
|
-
borderRadius: '12px',
|
|
340
|
-
padding: '16px',
|
|
341
|
-
cursor: 'pointer',
|
|
342
|
-
alignItems: 'center',
|
|
343
|
-
transition: 'transform 0.2s ease, box-shadow 0.2s ease',
|
|
344
|
-
position: 'relative',
|
|
345
|
-
zIndex: 2,
|
|
346
|
-
},
|
|
347
|
-
'.note-card-actions-layer': {
|
|
348
|
-
position: 'absolute',
|
|
349
|
-
top: 0,
|
|
350
|
-
left: 0,
|
|
351
|
-
right: 0,
|
|
352
|
-
bottom: 0,
|
|
353
|
-
display: 'flex',
|
|
354
|
-
justifyContent: 'flex-end',
|
|
355
|
-
alignItems: 'center',
|
|
356
|
-
zIndex: 1,
|
|
357
|
-
backgroundColor: 'transparent', // explicitly prevent background bleeding
|
|
358
|
-
borderRadius: '12px',
|
|
359
|
-
overflow: 'hidden',
|
|
360
|
-
opacity: 0,
|
|
361
|
-
transition: 'opacity 0.2s ease',
|
|
362
|
-
},
|
|
363
|
-
'.action-btn': {
|
|
364
|
-
height: '100%',
|
|
365
|
-
width: '50px',
|
|
366
|
-
display: 'flex',
|
|
367
|
-
alignItems: 'center',
|
|
368
|
-
justifyContent: 'center',
|
|
369
|
-
color: 'white',
|
|
370
|
-
cursor: 'pointer',
|
|
371
|
-
},
|
|
372
|
-
'.action-btn.edit-btn': { backgroundColor: 'var(--primary-accent-color)' },
|
|
373
|
-
'.action-btn.delete-btn': {
|
|
374
|
-
backgroundColor: '#ff4d4f',
|
|
375
|
-
borderTopRightRadius: '12px',
|
|
376
|
-
borderBottomRightRadius: '12px',
|
|
377
|
-
},
|
|
378
|
-
'.action-btn i': { color: 'white' },
|
|
379
|
-
'.note-card-drag-handle': {
|
|
380
|
-
padding: '8px',
|
|
381
|
-
cursor: 'grab',
|
|
382
|
-
color: 'var(--secondary-color)',
|
|
383
|
-
opacity: 0.5,
|
|
384
|
-
zIndex: 10,
|
|
385
|
-
},
|
|
386
|
-
'.note-card-drag-handle:active': { cursor: 'grabbing' },
|
|
387
|
-
'.note-card-title': {
|
|
388
|
-
fontSize: '16px',
|
|
389
|
-
fontWeight: 'bold',
|
|
390
|
-
color: 'var(--primary-color)',
|
|
391
|
-
marginBottom: '4px',
|
|
392
|
-
whiteSpace: 'nowrap',
|
|
393
|
-
overflow: 'hidden',
|
|
394
|
-
textOverflow: 'ellipsis',
|
|
395
|
-
},
|
|
396
|
-
'.note-card-preview': {
|
|
397
|
-
fontSize: '14px',
|
|
398
|
-
color: 'var(--secondary-color)',
|
|
399
|
-
marginBottom: '6px',
|
|
400
|
-
display: '-webkit-box',
|
|
401
|
-
WebkitLineClamp: 2,
|
|
402
|
-
WebkitBoxOrient: 'vertical',
|
|
403
|
-
overflow: 'hidden',
|
|
404
|
-
},
|
|
405
|
-
'.note-card-date': {
|
|
406
|
-
fontSize: '12px',
|
|
407
|
-
color: 'var(--secondary-color)',
|
|
408
|
-
opacity: 0.8,
|
|
409
|
-
},
|
|
410
|
-
'.fab-button': {
|
|
411
|
-
backgroundColor: 'var(--primary-accent-color, #1890ff)',
|
|
412
|
-
},
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
return (
|
|
416
|
-
<div
|
|
417
|
-
css={css}
|
|
418
|
-
ref={ref}
|
|
419
|
-
onMouseDown={handleBgTouch}
|
|
420
|
-
onTouchStart={handleBgTouch}
|
|
421
|
-
onMouseMove={dragUtil.onMouseMove}
|
|
422
|
-
onMouseUp={dragUtil.onMouseUp}
|
|
423
|
-
onTouchMove={dragUtil.onTouchMove}
|
|
424
|
-
onTouchEnd={dragUtil.onTouchEnd}
|
|
425
|
-
>
|
|
426
|
-
<MobileHeaderCenter>
|
|
427
|
-
<MobileHeaderTitleIcon
|
|
428
|
-
title='Notes'
|
|
429
|
-
left={<MobileHeaderEmptyIcon />}
|
|
430
|
-
right={
|
|
431
|
-
<div class='flex-center-gap-12'>
|
|
432
|
-
<i class='ifc-icon bs-search icon-20-pointer' onClick={onOpenSearch}></i>
|
|
433
|
-
<MobileTopSysIcon />
|
|
434
|
-
</div>
|
|
435
|
-
}
|
|
436
|
-
/>
|
|
437
|
-
</MobileHeaderCenter>
|
|
438
|
-
<div class='note-home-scroll no-scrollbar-container'>
|
|
439
|
-
<SliderFrame
|
|
440
|
-
hook={sliderFrameHook}
|
|
441
|
-
afterClose={async () => {
|
|
442
|
-
await resetSwipeMenus();
|
|
443
|
-
}}
|
|
444
|
-
/>
|
|
445
|
-
{dom.node}
|
|
446
|
-
</div>
|
|
447
|
-
<div class='fab-button' onClick={onAddNote}>
|
|
448
|
-
<span class='fab-icon'>+</span>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
);
|
|
452
|
-
};
|