create-lupine 1.2.0 → 1.3.1
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 +13 -7
- package/index.js +236 -109
- package/package.json +1 -1
- package/templates/common/.agents/skills/lupine-framework/SKILL.md +3 -3
- package/templates/common/.agents/skills/lupine-framework/references/backend-api.md +16 -1
- package/templates/common/.agents/skills/lupine-framework/references/icon-handling.md +1 -1
- package/templates/common/.agents/skills/lupine-framework/references/mobile-interactions.md +17 -88
- package/templates/common/.agents/skills/lupine-framework/references/native-apps.md +47 -24
- package/templates/common/.agents/skills/lupine-framework/references/navigation-and-routing.md +1 -0
- package/templates/common/.agents/skills/lupine-framework/references/reactivity-and-state.md +2 -2
- package/templates/common/.agents/skills/lupine-framework/references/styling-and-themes.md +3 -1
- package/templates/common/.env.development +2 -0
- package/templates/common/.env.mobile +4 -3
- package/templates/common/_env +10 -5
- 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 +33 -1
- 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 -14
- 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 -20
- package/templates/lupine-template-doc-starter/README.md +33 -1
- 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 -14
- 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 -20
- package/templates/lupine-template-fullstack-note/README.md +83 -0
- package/templates/{lupine-template-cv-starter → lupine-template-fullstack-note}/api/package.json +2 -2
- 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-fullstack-note/lupine.json +25 -0
- package/templates/lupine-template-fullstack-note/web/assets/favicon.ico +0 -0
- package/templates/{lupine-template-doc-starter/api → lupine-template-fullstack-note/web}/package.json +2 -2
- package/templates/lupine-template-fullstack-note/web/src/index.html +23 -0
- package/templates/lupine-template-fullstack-note/web/src/index.tsx +15 -0
- package/templates/lupine-template-fullstack-starter/README.md +64 -14
- package/templates/lupine-template-fullstack-starter/api/resources/install.mysql.sql +2 -2
- package/templates/lupine-template-fullstack-starter/api/resources/install.sqlite.sql +2 -2
- package/templates/lupine-template-fullstack-starter/api/src/service/contact-api.ts +2 -2
- package/templates/lupine-template-fullstack-starter/api/src/service/user-api.ts +72 -47
- 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 +6 -7
- package/templates/lupine-template-fullstack-starter/web/src/admin/admin-patch.tsx +34 -0
- package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/home-search-component.tsx +18 -25
- package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-card.tsx +17 -8
- package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-list.tsx +1 -2
- package/templates/lupine-template-fullstack-starter/web/src/{admin_dev → admin}/index.html +1 -0
- package/templates/lupine-template-fullstack-starter/web/src/{admin_dev → admin}/index.tsx +13 -28
- package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-cfg.tsx +23 -19
- package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-item-edit.tsx +3 -4
- package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-item-list.tsx +2 -3
- package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-user.tsx +15 -20
- package/templates/lupine-template-fullstack-starter/web/src/index.html +8 -2
- package/templates/lupine-template-fullstack-starter/web/src/index.tsx +11 -150
- package/templates/lupine-template-fullstack-starter/web/src/services/fetch-data.ts +7 -25
- package/templates/lupine-template-fullstack-starter/web/src/styles/base-css.ts +0 -3
- package/templates/lupine-template-fullstack-starter/web/src/styles/theme.ts +1 -2
- package/templates/lupine-template-responsive-starter/README.md +46 -2
- 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 -25
- 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 -22
- package/templates/common/apps/server/src/app-loader.ts +0 -4
- package/templates/lupine-template-cv-starter/api/resources/config_default.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/client-env-keys.ts +0 -5
- package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +0 -15
- 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-fullstack-starter/web/src/admin_dev/admin-about.tsx +0 -16
- package/templates/lupine-template-fullstack-starter/web/src/admin_dev/admin-patch.ts +0 -22
- package/templates/lupine-template-fullstack-starter/web/src/components/footer-menu.tsx +0 -52
- package/templates/lupine-template-fullstack-starter/web/src/components/footer.tsx +0 -15
- package/templates/lupine-template-fullstack-starter/web/src/components/header.tsx +0 -75
- package/templates/lupine-template-fullstack-starter/web/src/components/login-code-zh.tsx +0 -162
- package/templates/lupine-template-fullstack-starter/web/src/components/login-code.tsx +0 -165
- package/templates/lupine-template-fullstack-starter/web/src/components/login-zh.tsx +0 -118
- package/templates/lupine-template-fullstack-starter/web/src/components/login.tsx +0 -122
- package/templates/lupine-template-fullstack-starter/web/src/components/not-found-page.tsx +0 -12
- package/templates/lupine-template-fullstack-starter/web/src/components/register-zh.tsx +0 -161
- package/templates/lupine-template-fullstack-starter/web/src/components/register.tsx +0 -163
- package/templates/lupine-template-fullstack-starter/web/src/components/reset-password-zh.tsx +0 -166
- package/templates/lupine-template-fullstack-starter/web/src/components/reset-password.tsx +0 -177
- package/templates/lupine-template-fullstack-starter/web/src/components/user-info.tsx +0 -84
- package/templates/lupine-template-fullstack-starter/web/src/frames/admin-page-frame.tsx +0 -48
- package/templates/lupine-template-fullstack-starter/web/src/frames/frame1-page-frame.tsx +0 -61
- package/templates/lupine-template-fullstack-starter/web/src/frames/frame2-page-frame.tsx +0 -61
- package/templates/lupine-template-fullstack-starter/web/src/frames/top-frame.tsx +0 -23
- package/templates/lupine-template-fullstack-starter/web/src/frames/user-page-frame.tsx +0 -90
- package/templates/lupine-template-fullstack-starter/web/src/models/index.ts +0 -15
- package/templates/lupine-template-fullstack-starter/web/src/pages/contact.tsx +0 -105
- package/templates/lupine-template-fullstack-starter/web/src/pages/page1-page.tsx +0 -38
- package/templates/lupine-template-fullstack-starter/web/src/pages/page2-page.tsx +0 -38
- package/templates/lupine-template-fullstack-starter/web/src/pages/user-favorite-page.tsx +0 -58
- package/templates/lupine-template-fullstack-starter/web/src/pages/user-home-page.tsx +0 -27
- package/templates/lupine-template-fullstack-starter/web/src/pages/user-mine-page.tsx +0 -54
- package/templates/lupine-template-fullstack-starter/web/src/pages/user-profile-page-zh.tsx +0 -112
- package/templates/lupine-template-fullstack-starter/web/src/pages/user-profile-page.tsx +0 -112
- package/templates/lupine-template-fullstack-starter/web/src/pages/user1-page.tsx +0 -57
- package/templates/lupine-template-fullstack-starter/web/src/services/shared-data.ts +0 -19
- package/templates/lupine-template-fullstack-starter/web/src/styles/app.css +0 -0
- package/templates/lupine-template-responsive-starter/api/package.json +0 -6
- 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 -87
- package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +0 -81
- package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +0 -211
- package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +0 -107
- package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +0 -110
- package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +0 -144
- package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +0 -188
- 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 -169
- package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +0 -53
- package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +0 -32
- package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +0 -35
- package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +0 -444
- package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +0 -318
- package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +0 -35
- 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 -17
- /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-responsive-starter → lupine-template-fullstack-note}/api/src/index.ts +0 -0
- /package/templates/lupine-template-fullstack-starter/{web/assets/images → app/assets}/sample.png +0 -0
- /package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-props.ts +0 -0
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { createSignal, CssProps, onMount, PageProps } from 'lupine.web';
|
|
2
|
-
import {
|
|
3
|
-
SliderFrame,
|
|
4
|
-
SliderFrameHookProps,
|
|
5
|
-
MobileHeaderCenter,
|
|
6
|
-
MobileHeaderEmptyIcon,
|
|
7
|
-
MobileHeaderTitleIcon,
|
|
8
|
-
MobileTopSysIcon,
|
|
9
|
-
} from 'lupine.web.components';
|
|
10
|
-
import { MineService, MineStats } from '../services/mine-service';
|
|
11
|
-
import { MineSettingsPage } from '../components/mine-settings-page';
|
|
12
|
-
import { MinePremiumPage } from '../components/mine-premium-page';
|
|
13
|
-
|
|
14
|
-
export const MinePage = async (props: PageProps) => {
|
|
15
|
-
const [dom, setDom] = createSignal<any>('');
|
|
16
|
-
const sliderFrameHook: SliderFrameHookProps = {};
|
|
17
|
-
|
|
18
|
-
const renderDashboard = () => {
|
|
19
|
-
const stats: MineStats = MineService.getStats();
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div class='mine-dashboard'>
|
|
23
|
-
<div class='dashboard-title'>Data Overview</div>
|
|
24
|
-
|
|
25
|
-
<div class='stat-grid'>
|
|
26
|
-
<div class='stat-card' style={{ borderTopColor: 'var(--primary-accent-color)' }}>
|
|
27
|
-
<div class='stat-icon'>
|
|
28
|
-
<i class='ifc-icon ma-text-box-outline' style={{ color: 'var(--primary-accent-color)' }} />
|
|
29
|
-
</div>
|
|
30
|
-
<div class='stat-value'>{stats.noteCount}</div>
|
|
31
|
-
<div class='stat-label'>Notes</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const refreshRender = () => {
|
|
39
|
-
setDom(
|
|
40
|
-
<div class='mine-page-container'>
|
|
41
|
-
<SliderFrame hook={sliderFrameHook} />
|
|
42
|
-
|
|
43
|
-
{/* Profile Header Block */}
|
|
44
|
-
<div class='profile-header'>
|
|
45
|
-
<div class='profile-info'>
|
|
46
|
-
<div class='avatar'>
|
|
47
|
-
<i class='ifc-icon ma-account' />
|
|
48
|
-
</div>
|
|
49
|
-
<div class='user-details'>
|
|
50
|
-
<div class='user-name'>Demo User</div>
|
|
51
|
-
<div class='user-tagline'>Local Workspace Offline</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<div class='profile-nav'>
|
|
55
|
-
<div class='flex-1'></div>
|
|
56
|
-
<div
|
|
57
|
-
class='settings-btn'
|
|
58
|
-
onClick={() => {
|
|
59
|
-
sliderFrameHook.load!(
|
|
60
|
-
<MineSettingsPage sliderFrameHook={sliderFrameHook} onDataChanged={refreshRender} />
|
|
61
|
-
);
|
|
62
|
-
}}
|
|
63
|
-
>
|
|
64
|
-
<i class='ifc-icon ma-cog-outline' />
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<div class='mine-scroll-content'>
|
|
70
|
-
{/* Dashboard Blocks */}
|
|
71
|
-
{renderDashboard()}
|
|
72
|
-
|
|
73
|
-
{/* Premium Banner Mock */}
|
|
74
|
-
<div class='premium-banner'>
|
|
75
|
-
<div class='banner-content'>
|
|
76
|
-
<div class='banner-title'>
|
|
77
|
-
<i class='ifc-icon ma-star' /> Upgrade to Premium
|
|
78
|
-
</div>
|
|
79
|
-
<div class='banner-desc'>Unlock cloud sync, custom themes, and unlimited media storage.</div>
|
|
80
|
-
</div>
|
|
81
|
-
<button
|
|
82
|
-
class='banner-btn'
|
|
83
|
-
onClick={() => {
|
|
84
|
-
sliderFrameHook.load!(<MinePremiumPage sliderFrameHook={sliderFrameHook} />);
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
View Plans
|
|
88
|
-
</button>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const css: CssProps = {
|
|
96
|
-
display: 'flex',
|
|
97
|
-
flexDirection: 'column',
|
|
98
|
-
height: '100%',
|
|
99
|
-
position: 'relative',
|
|
100
|
-
|
|
101
|
-
'.mine-page-container': {
|
|
102
|
-
display: 'flex',
|
|
103
|
-
flexDirection: 'column',
|
|
104
|
-
height: '100%',
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
// 1. Profile Header
|
|
108
|
-
'.profile-header': {
|
|
109
|
-
padding: '16px 20px 24px 20px',
|
|
110
|
-
borderBottomLeftRadius: '24px',
|
|
111
|
-
borderBottomRightRadius: '24px',
|
|
112
|
-
boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
|
|
113
|
-
zIndex: 10,
|
|
114
|
-
},
|
|
115
|
-
'.profile-nav': {
|
|
116
|
-
display: 'flex',
|
|
117
|
-
marginBottom: '16px',
|
|
118
|
-
},
|
|
119
|
-
'.settings-btn': {
|
|
120
|
-
width: '36px',
|
|
121
|
-
height: '36px',
|
|
122
|
-
borderRadius: '18px',
|
|
123
|
-
backgroundColor: 'var(--secondary-bg-color)',
|
|
124
|
-
display: 'flex',
|
|
125
|
-
alignItems: 'center',
|
|
126
|
-
justifyContent: 'center',
|
|
127
|
-
cursor: 'pointer',
|
|
128
|
-
color: 'var(--primary-color)',
|
|
129
|
-
transition: 'background-color 0.2s',
|
|
130
|
-
'&:active': {
|
|
131
|
-
backgroundColor: 'rgba(0,0,0,0.05)',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
'.profile-info': {
|
|
135
|
-
display: 'flex',
|
|
136
|
-
alignItems: 'center',
|
|
137
|
-
gap: '16px',
|
|
138
|
-
},
|
|
139
|
-
'.avatar': {
|
|
140
|
-
width: '64px',
|
|
141
|
-
height: '64px',
|
|
142
|
-
borderRadius: '32px',
|
|
143
|
-
backgroundColor: 'var(--primary-accent-color)',
|
|
144
|
-
color: 'white',
|
|
145
|
-
display: 'flex',
|
|
146
|
-
alignItems: 'center',
|
|
147
|
-
justifyContent: 'center',
|
|
148
|
-
fontSize: '36px',
|
|
149
|
-
boxShadow: '0 4px 12px rgba(24, 144, 255, 0.3)',
|
|
150
|
-
},
|
|
151
|
-
'.user-name': {
|
|
152
|
-
fontSize: '22px',
|
|
153
|
-
fontWeight: 'bold',
|
|
154
|
-
color: 'var(--primary-color)',
|
|
155
|
-
marginBottom: '4px',
|
|
156
|
-
},
|
|
157
|
-
'.user-tagline': {
|
|
158
|
-
fontSize: '14px',
|
|
159
|
-
color: 'var(--secondary-color)',
|
|
160
|
-
opacity: 0.8,
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
// Scrollable Rest of the Page
|
|
164
|
-
'.mine-scroll-content': {
|
|
165
|
-
flex: 1,
|
|
166
|
-
overflowY: 'auto',
|
|
167
|
-
padding: '24px 16px',
|
|
168
|
-
display: 'flex',
|
|
169
|
-
flexDirection: 'column',
|
|
170
|
-
gap: '24px',
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
// 2. Dashboard
|
|
174
|
-
'.mine-dashboard': {
|
|
175
|
-
display: 'flex',
|
|
176
|
-
flexDirection: 'column',
|
|
177
|
-
gap: '16px',
|
|
178
|
-
},
|
|
179
|
-
'.dashboard-title': {
|
|
180
|
-
fontSize: '18px',
|
|
181
|
-
fontWeight: 'bold',
|
|
182
|
-
color: 'var(--primary-color)',
|
|
183
|
-
},
|
|
184
|
-
'.stat-grid': {
|
|
185
|
-
display: 'grid',
|
|
186
|
-
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
187
|
-
gap: '12px',
|
|
188
|
-
},
|
|
189
|
-
'.stat-card': {
|
|
190
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
191
|
-
borderRadius: '12px',
|
|
192
|
-
padding: '16px 12px',
|
|
193
|
-
display: 'flex',
|
|
194
|
-
flexDirection: 'column',
|
|
195
|
-
alignItems: 'center',
|
|
196
|
-
boxShadow: '0 2px 8px rgba(0,0,0,0.04)',
|
|
197
|
-
borderTop: '4px solid transparent',
|
|
198
|
-
},
|
|
199
|
-
'.stat-icon': {
|
|
200
|
-
fontSize: '24px',
|
|
201
|
-
marginBottom: '8px',
|
|
202
|
-
},
|
|
203
|
-
'.stat-value': {
|
|
204
|
-
fontSize: '20px',
|
|
205
|
-
fontWeight: 'bold',
|
|
206
|
-
color: 'var(--primary-color)',
|
|
207
|
-
marginBottom: '4px',
|
|
208
|
-
},
|
|
209
|
-
'.stat-label': {
|
|
210
|
-
fontSize: '12px',
|
|
211
|
-
color: 'var(--secondary-color)',
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
'.usage-bar-container': {
|
|
215
|
-
backgroundColor: 'var(--primary-bg-color)',
|
|
216
|
-
borderRadius: '12px',
|
|
217
|
-
padding: '16px',
|
|
218
|
-
boxShadow: '0 2px 8px rgba(0,0,0,0.04)',
|
|
219
|
-
},
|
|
220
|
-
'.usage-bar-labels': {
|
|
221
|
-
display: 'flex',
|
|
222
|
-
justifyContent: 'space-between',
|
|
223
|
-
fontSize: '13px',
|
|
224
|
-
color: 'var(--secondary-color)',
|
|
225
|
-
marginBottom: '12px',
|
|
226
|
-
fontWeight: '500',
|
|
227
|
-
},
|
|
228
|
-
'.usage-bar': {
|
|
229
|
-
height: '12px',
|
|
230
|
-
borderRadius: '6px',
|
|
231
|
-
display: 'flex',
|
|
232
|
-
overflow: 'hidden',
|
|
233
|
-
backgroundColor: 'rgba(0,0,0,0.05)',
|
|
234
|
-
gap: '2px', // tiny visual gap between segments
|
|
235
|
-
},
|
|
236
|
-
'.usage-bar-segment': {
|
|
237
|
-
height: '100%',
|
|
238
|
-
transition: 'width 0.5s ease',
|
|
239
|
-
},
|
|
240
|
-
'.usage-bar-segment.empty': { backgroundColor: 'transparent' },
|
|
241
|
-
'.usage-bar-segment.note': { backgroundColor: 'var(--primary-accent-color)' },
|
|
242
|
-
'.usage-bar-segment.diary': { backgroundColor: '#eb2f96' },
|
|
243
|
-
'.usage-bar-segment.finance': { backgroundColor: '#52c41a' },
|
|
244
|
-
|
|
245
|
-
// 3. Premium Banner
|
|
246
|
-
'.premium-banner': {
|
|
247
|
-
background: 'linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%)',
|
|
248
|
-
borderRadius: '16px',
|
|
249
|
-
padding: '20px',
|
|
250
|
-
display: 'flex',
|
|
251
|
-
flexDirection: 'column',
|
|
252
|
-
gap: '16px',
|
|
253
|
-
color: '#333',
|
|
254
|
-
boxShadow: '0 8px 16px rgba(255, 154, 158, 0.3)',
|
|
255
|
-
position: 'relative',
|
|
256
|
-
overflow: 'hidden',
|
|
257
|
-
},
|
|
258
|
-
'.banner-content': {
|
|
259
|
-
position: 'relative',
|
|
260
|
-
zIndex: 2,
|
|
261
|
-
},
|
|
262
|
-
'.banner-title': {
|
|
263
|
-
fontSize: '18px',
|
|
264
|
-
fontWeight: 'bold',
|
|
265
|
-
marginBottom: '8px',
|
|
266
|
-
display: 'flex',
|
|
267
|
-
alignItems: 'center',
|
|
268
|
-
gap: '8px',
|
|
269
|
-
},
|
|
270
|
-
'.banner-title i': {
|
|
271
|
-
color: '#FFD700',
|
|
272
|
-
},
|
|
273
|
-
'.banner-desc': {
|
|
274
|
-
fontSize: '14px',
|
|
275
|
-
opacity: 0.9,
|
|
276
|
-
lineHeight: '1.4',
|
|
277
|
-
},
|
|
278
|
-
'.banner-btn': {
|
|
279
|
-
alignSelf: 'flex-start',
|
|
280
|
-
backgroundColor: '#fff',
|
|
281
|
-
color: '#FF9A9E',
|
|
282
|
-
border: 'none',
|
|
283
|
-
padding: '8px 20px',
|
|
284
|
-
borderRadius: '20px',
|
|
285
|
-
fontWeight: 'bold',
|
|
286
|
-
fontSize: '14px',
|
|
287
|
-
cursor: 'pointer',
|
|
288
|
-
boxShadow: '0 4px 8px rgba(0,0,0,0.1)',
|
|
289
|
-
position: 'relative',
|
|
290
|
-
zIndex: 2,
|
|
291
|
-
},
|
|
292
|
-
'.mine-page-content-wrapper': {
|
|
293
|
-
flex: 1,
|
|
294
|
-
overflowY: 'auto',
|
|
295
|
-
display: 'flex',
|
|
296
|
-
flexDirection: 'column',
|
|
297
|
-
},
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
onMount(refreshRender);
|
|
301
|
-
|
|
302
|
-
return (
|
|
303
|
-
<div css={css}>
|
|
304
|
-
<MobileHeaderCenter>
|
|
305
|
-
<MobileHeaderTitleIcon
|
|
306
|
-
title='Mine'
|
|
307
|
-
left={<MobileHeaderEmptyIcon />}
|
|
308
|
-
right={
|
|
309
|
-
<div class='flex-center-gap-12'>
|
|
310
|
-
<MobileTopSysIcon />
|
|
311
|
-
</div>
|
|
312
|
-
}
|
|
313
|
-
/>
|
|
314
|
-
</MobileHeaderCenter>
|
|
315
|
-
<div class='mine-page-content-wrapper no-scrollbar-container'>{dom}</div>
|
|
316
|
-
</div>
|
|
317
|
-
);
|
|
318
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CssProps, PageProps } from 'lupine.web';
|
|
2
|
-
import { MobileHeaderCenter, MobileHeaderEmptyIcon, MobileHeaderTitleIcon, MobileTopSysIcon } from 'lupine.web.components';
|
|
3
|
-
|
|
4
|
-
export const ToolsPage = async (props: PageProps) => {
|
|
5
|
-
const css: CssProps = {
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexDirection: 'column',
|
|
8
|
-
height: '100%',
|
|
9
|
-
position: 'relative',
|
|
10
|
-
'.tools-list-container': {
|
|
11
|
-
padding: '32px 24px',
|
|
12
|
-
display: 'flex',
|
|
13
|
-
flexDirection: 'column',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div css={css}>
|
|
20
|
-
<MobileHeaderCenter>
|
|
21
|
-
<MobileHeaderTitleIcon
|
|
22
|
-
title='Tools'
|
|
23
|
-
left={<MobileHeaderEmptyIcon />}
|
|
24
|
-
right={
|
|
25
|
-
<div class='flex-center-gap-12'>
|
|
26
|
-
<MobileTopSysIcon />
|
|
27
|
-
</div>
|
|
28
|
-
}
|
|
29
|
-
/>
|
|
30
|
-
</MobileHeaderCenter>
|
|
31
|
-
|
|
32
|
-
<div class='tools-list-container no-scrollbar-container'>This is a demo tools page.</div>
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
};
|
package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export interface LocalNoteProps {
|
|
2
|
-
id: number;
|
|
3
|
-
title: string;
|
|
4
|
-
content: string; // HTML string
|
|
5
|
-
updatedAt: number;
|
|
6
|
-
images?: string[]; // Optional base64 strings
|
|
7
|
-
color?: string; // Optional color tag
|
|
8
|
-
orderIndex?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const STORAGE_KEY = 'lj_notes';
|
|
12
|
-
|
|
13
|
-
export const LocalNotesService = {
|
|
14
|
-
getAllNotes: (): LocalNoteProps[] => {
|
|
15
|
-
try {
|
|
16
|
-
const data = localStorage.getItem(STORAGE_KEY);
|
|
17
|
-
const notes: LocalNoteProps[] = data ? JSON.parse(data) : [];
|
|
18
|
-
return notes.sort((a, b) => {
|
|
19
|
-
const orderA = a.orderIndex !== undefined ? a.orderIndex : a.id;
|
|
20
|
-
const orderB = b.orderIndex !== undefined ? b.orderIndex : b.id;
|
|
21
|
-
// Default sort: descending (newest/highest first), unless orderIndex dictates otherwise.
|
|
22
|
-
// If we want manual ordering, let's just sort descending by orderIndex.
|
|
23
|
-
return orderB - orderA;
|
|
24
|
-
});
|
|
25
|
-
} catch (e) {
|
|
26
|
-
console.error('Failed to load notes', e);
|
|
27
|
-
return [];
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
getNoteById: (id: number): LocalNoteProps | undefined => {
|
|
32
|
-
return LocalNotesService.getAllNotes().find((n) => n.id === id);
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
saveNote: (note: LocalNoteProps): LocalNoteProps => {
|
|
36
|
-
const notes = LocalNotesService.getAllNotes();
|
|
37
|
-
note.updatedAt = Date.now();
|
|
38
|
-
|
|
39
|
-
if (note.id <= 0) {
|
|
40
|
-
note.id = Date.now();
|
|
41
|
-
// Calculate next highest order index
|
|
42
|
-
const maxOrder = notes.length > 0 ? Math.max(...notes.map((n) => n.orderIndex ?? n.id)) : Date.now();
|
|
43
|
-
note.orderIndex = maxOrder + 1;
|
|
44
|
-
notes.unshift(note);
|
|
45
|
-
} else {
|
|
46
|
-
const index = notes.findIndex((n) => n.id === note.id);
|
|
47
|
-
if (index > -1) {
|
|
48
|
-
notes[index] = note;
|
|
49
|
-
} else {
|
|
50
|
-
notes.unshift(note);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
localStorage.setItem(STORAGE_KEY, JSON.stringify(notes));
|
|
55
|
-
return note;
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
updateNoteOrders: (orderedIds: number[]): boolean => {
|
|
59
|
-
// orderedIds is passed from top to bottom. Top has highest orderIndex.
|
|
60
|
-
const notes = LocalNotesService.getAllNotes();
|
|
61
|
-
let updated = false;
|
|
62
|
-
const len = orderedIds.length;
|
|
63
|
-
orderedIds.forEach((id, idx) => {
|
|
64
|
-
const note = notes.find((n) => n.id === id);
|
|
65
|
-
if (note) {
|
|
66
|
-
note.orderIndex = len - idx; // Highest index for first item
|
|
67
|
-
updated = true;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
if (updated) {
|
|
72
|
-
localStorage.setItem(STORAGE_KEY, JSON.stringify(notes));
|
|
73
|
-
}
|
|
74
|
-
return updated;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
deleteNote: (id: number): boolean => {
|
|
78
|
-
let notes = LocalNotesService.getAllNotes();
|
|
79
|
-
const len = notes.length;
|
|
80
|
-
notes = notes.filter((n) => n.id !== id);
|
|
81
|
-
if (notes.length !== len) {
|
|
82
|
-
localStorage.setItem(STORAGE_KEY, JSON.stringify(notes));
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
return false;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LocalNotesService } from './local-notes-service';
|
|
2
|
-
|
|
3
|
-
export interface MineStats {
|
|
4
|
-
noteCount: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface BackupData {
|
|
8
|
-
notes: any[];
|
|
9
|
-
timestamp: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const MineService = {
|
|
13
|
-
getStats: (): MineStats => {
|
|
14
|
-
const notes = LocalNotesService.getAllNotes();
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
noteCount: notes.length,
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
exportBackup: (): string => {
|
|
22
|
-
const data: BackupData = {
|
|
23
|
-
notes: LocalNotesService.getAllNotes(),
|
|
24
|
-
timestamp: new Date().toISOString(),
|
|
25
|
-
};
|
|
26
|
-
return JSON.stringify(data, null, 2);
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
importBackup: (jsonStr: string): boolean => {
|
|
30
|
-
try {
|
|
31
|
-
const data: BackupData = JSON.parse(jsonStr);
|
|
32
|
-
if (Array.isArray(data.notes)) {
|
|
33
|
-
localStorage.setItem('lj_notes', JSON.stringify(data.notes));
|
|
34
|
-
}
|
|
35
|
-
return true;
|
|
36
|
-
} catch (e) {
|
|
37
|
-
console.error('Failed to import backup', e);
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
clearAllData: () => {
|
|
43
|
-
localStorage.removeItem('lj_notes');
|
|
44
|
-
},
|
|
45
|
-
};
|
|
File without changes
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { CssProps } from 'lupine.web';
|
|
2
|
-
import { appIconsCss } from '../app-icons';
|
|
3
|
-
|
|
4
|
-
export const baseCss: CssProps = {
|
|
5
|
-
...appIconsCss,
|
|
6
|
-
'.user-page-placeholder': {
|
|
7
|
-
width: '100%',
|
|
8
|
-
height: '100%',
|
|
9
|
-
},
|
|
10
|
-
'.flex-center-gap-12': {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
gap: '12px',
|
|
14
|
-
},
|
|
15
|
-
'.icon-14': {
|
|
16
|
-
fontSize: '14px',
|
|
17
|
-
},
|
|
18
|
-
'.icon-20-pointer': {
|
|
19
|
-
fontSize: '20px',
|
|
20
|
-
cursor: 'pointer',
|
|
21
|
-
},
|
|
22
|
-
'.icon-btn-secondary': {
|
|
23
|
-
fontSize: '14px',
|
|
24
|
-
marginLeft: '8px',
|
|
25
|
-
color: 'var(--secondary-color)',
|
|
26
|
-
},
|
|
27
|
-
'.text-danger': {
|
|
28
|
-
color: '#ff4d4f',
|
|
29
|
-
},
|
|
30
|
-
'.color-preview-box': {
|
|
31
|
-
width: '20px',
|
|
32
|
-
height: '20px',
|
|
33
|
-
borderRadius: '4px',
|
|
34
|
-
border: '1px solid var(--primary-border-color)',
|
|
35
|
-
},
|
|
36
|
-
'.fab-button': {
|
|
37
|
-
position: 'absolute',
|
|
38
|
-
right: '24px',
|
|
39
|
-
bottom: '24px',
|
|
40
|
-
width: '56px',
|
|
41
|
-
height: '56px',
|
|
42
|
-
borderRadius: '28px',
|
|
43
|
-
color: 'white',
|
|
44
|
-
display: 'flex',
|
|
45
|
-
justifyContent: 'center',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
boxShadow: '0 4px 12px rgba(0,0,0,0.2)',
|
|
48
|
-
cursor: 'pointer',
|
|
49
|
-
zIndex: 10,
|
|
50
|
-
fontFamily: 'monospace',
|
|
51
|
-
},
|
|
52
|
-
'.fab-icon': {
|
|
53
|
-
fontSize: '32px',
|
|
54
|
-
lineHeight: '1',
|
|
55
|
-
},
|
|
56
|
-
'.note-card-wrapper': {
|
|
57
|
-
position: 'relative',
|
|
58
|
-
marginBottom: '16px',
|
|
59
|
-
borderRadius: '12px',
|
|
60
|
-
overflow: 'hidden',
|
|
61
|
-
boxShadow: 'var(--cover-box-shadow)',
|
|
62
|
-
backgroundColor: 'transparent',
|
|
63
|
-
transition: 'transform 0.2s ease, box-shadow 0.2s ease',
|
|
64
|
-
},
|
|
65
|
-
};
|