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.
Files changed (269) hide show
  1. package/README.md +31 -0
  2. package/index.js +238 -112
  3. package/package.json +1 -1
  4. package/templates/common/.agents/skills/lupine-framework/SKILL.md +63 -0
  5. package/templates/common/.agents/skills/lupine-framework/references/backend-api.md +113 -0
  6. package/templates/common/.agents/skills/lupine-framework/references/icon-handling.md +71 -0
  7. package/templates/common/.agents/skills/lupine-framework/references/mobile-interactions.md +29 -0
  8. package/templates/common/.agents/skills/lupine-framework/references/native-apps.md +190 -0
  9. package/templates/common/.agents/skills/lupine-framework/references/navigation-and-routing.md +55 -0
  10. package/templates/common/.agents/skills/lupine-framework/references/reactivity-and-state.md +108 -0
  11. package/templates/common/.agents/skills/lupine-framework/references/styling-and-themes.md +121 -0
  12. package/templates/common/.env.mobile +4 -3
  13. package/templates/common/_env +10 -4
  14. package/templates/common/apps/server/README.md +10 -0
  15. package/templates/common/dev/cp-folder.js +9 -4
  16. package/templates/lupine-template-cv-starter/README.md +37 -0
  17. package/templates/lupine-template-cv-starter/app/package.json +20 -0
  18. package/templates/lupine-template-cv-starter/app/src/app.tsx +6 -0
  19. package/templates/lupine-template-cv-starter/app/src/index.native.tsx +4 -0
  20. package/templates/lupine-template-cv-starter/app/src/index.test.tsx +71 -0
  21. package/templates/lupine-template-cv-starter/app/src/index.web.tsx +28 -0
  22. package/templates/lupine-template-cv-starter/app/tsconfig.json +17 -0
  23. package/templates/lupine-template-cv-starter/lupine.json +8 -7
  24. package/templates/lupine-template-cv-starter/web/src/index.html +9 -2
  25. package/templates/lupine-template-cv-starter/web/src/index.tsx +9 -23
  26. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.html +9 -2
  27. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +4 -29
  28. package/templates/lupine-template-doc-starter/README.md +37 -0
  29. package/templates/lupine-template-doc-starter/app/package.json +20 -0
  30. package/templates/lupine-template-doc-starter/app/src/app.tsx +6 -0
  31. package/templates/lupine-template-doc-starter/app/src/index.native.tsx +4 -0
  32. package/templates/lupine-template-doc-starter/app/src/index.test.tsx +78 -0
  33. package/templates/lupine-template-doc-starter/app/src/index.web.tsx +28 -0
  34. package/templates/lupine-template-doc-starter/app/tsconfig.json +17 -0
  35. package/templates/lupine-template-doc-starter/lupine.json +8 -7
  36. package/templates/lupine-template-doc-starter/web/src/index.html +9 -2
  37. package/templates/lupine-template-doc-starter/web/src/index.tsx +9 -23
  38. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html +9 -2
  39. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +4 -29
  40. package/templates/lupine-template-fullstack-note/README.md +83 -0
  41. package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/api/package.json +1 -1
  42. package/templates/lupine-template-fullstack-note/api/resources/install.mysql.sql +32 -0
  43. package/templates/lupine-template-fullstack-note/api/resources/install.sqlite.sql +27 -0
  44. package/templates/lupine-template-fullstack-note/api/src/service/answer.ts +39 -0
  45. package/templates/lupine-template-fullstack-note/api/src/service/api.ts +52 -0
  46. package/templates/lupine-template-fullstack-note/api/src/service/db.ts +78 -0
  47. package/templates/lupine-template-fullstack-note/api/src/service/notes-api.ts +86 -0
  48. package/templates/lupine-template-fullstack-note/api/src/service/root-api.ts +19 -0
  49. package/templates/lupine-template-fullstack-note/api/src/service/user-api.ts +182 -0
  50. package/templates/lupine-template-fullstack-note/app/package.json +19 -0
  51. package/templates/lupine-template-fullstack-note/app/src/app.tsx +75 -0
  52. package/templates/lupine-template-fullstack-note/app/src/index.native.tsx +4 -0
  53. package/templates/lupine-template-fullstack-note/app/src/index.test.tsx +373 -0
  54. package/templates/lupine-template-fullstack-note/app/src/index.web.tsx +20 -0
  55. package/templates/lupine-template-fullstack-note/app/src/pages/components.tsx +65 -0
  56. package/templates/lupine-template-fullstack-note/app/src/pages/details.tsx +38 -0
  57. package/templates/lupine-template-fullstack-note/app/src/pages/discover.tsx +25 -0
  58. package/templates/lupine-template-fullstack-note/app/src/pages/home.tsx +76 -0
  59. package/templates/lupine-template-fullstack-note/app/src/pages/inbox.tsx +49 -0
  60. package/templates/lupine-template-fullstack-note/app/src/pages/login.tsx +54 -0
  61. package/templates/lupine-template-fullstack-note/app/src/pages/me.tsx +32 -0
  62. package/templates/lupine-template-fullstack-note/app/src/pages/notes.tsx +128 -0
  63. package/templates/lupine-template-fullstack-note/app/src/pages/settings.tsx +45 -0
  64. package/templates/lupine-template-fullstack-note/app/src/shell/AppMenu.tsx +44 -0
  65. package/templates/lupine-template-fullstack-note/app/src/shell/api.ts +159 -0
  66. package/templates/lupine-template-fullstack-note/app/src/shell/data.ts +20 -0
  67. package/templates/lupine-template-fullstack-note/app/src/shell/locales/ja.ts +80 -0
  68. package/templates/lupine-template-fullstack-note/app/src/shell/locales/zh-CN.ts +80 -0
  69. package/templates/lupine-template-fullstack-note/app/src/shell/texts.ts +14 -0
  70. package/templates/lupine-template-fullstack-note/app/tsconfig.json +17 -0
  71. package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/lupine.json +4 -2
  72. package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/package.json +1 -1
  73. package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/src/index.html +10 -3
  74. package/templates/lupine-template-fullstack-note/web/src/index.tsx +15 -0
  75. package/templates/lupine-template-fullstack-starter/README.md +70 -0
  76. package/templates/lupine-template-fullstack-starter/api/package.json +10 -0
  77. package/templates/lupine-template-fullstack-starter/api/resources/install.mysql.sql +107 -0
  78. package/templates/lupine-template-fullstack-starter/api/resources/install.sqlite.sql +75 -0
  79. package/templates/lupine-template-fullstack-starter/api/src/lang/api-lang-en.ts +39 -0
  80. package/templates/lupine-template-fullstack-starter/api/src/lang/api-lang-zh-cn.ts +37 -0
  81. package/templates/lupine-template-fullstack-starter/api/src/service/admin-api.ts +139 -0
  82. package/templates/lupine-template-fullstack-starter/api/src/service/api.ts +111 -0
  83. package/templates/lupine-template-fullstack-starter/api/src/service/contact-api.ts +50 -0
  84. package/templates/lupine-template-fullstack-starter/api/src/service/file-api-base.ts +30 -0
  85. package/templates/lupine-template-fullstack-starter/api/src/service/root-api.ts +28 -0
  86. package/templates/lupine-template-fullstack-starter/api/src/service/send-email.ts +47 -0
  87. package/templates/lupine-template-fullstack-starter/api/src/service/setting-api.ts +60 -0
  88. package/templates/lupine-template-fullstack-starter/api/src/service/user-api.ts +1046 -0
  89. package/templates/lupine-template-fullstack-starter/app/assets/sample.png +0 -0
  90. package/templates/lupine-template-fullstack-starter/app/package.json +20 -0
  91. package/templates/lupine-template-fullstack-starter/app/src/app.tsx +76 -0
  92. package/templates/lupine-template-fullstack-starter/app/src/index.native.tsx +4 -0
  93. package/templates/lupine-template-fullstack-starter/app/src/index.test.tsx +276 -0
  94. package/templates/lupine-template-fullstack-starter/app/src/index.web.tsx +28 -0
  95. package/templates/lupine-template-fullstack-starter/app/src/pages/about.tsx +27 -0
  96. package/templates/lupine-template-fullstack-starter/app/src/pages/contact.tsx +41 -0
  97. package/templates/lupine-template-fullstack-starter/app/src/pages/favorite.tsx +27 -0
  98. package/templates/lupine-template-fullstack-starter/app/src/pages/home.tsx +63 -0
  99. package/templates/lupine-template-fullstack-starter/app/src/pages/login.tsx +63 -0
  100. package/templates/lupine-template-fullstack-starter/app/src/pages/mine.tsx +44 -0
  101. package/templates/lupine-template-fullstack-starter/app/src/pages/profile.tsx +58 -0
  102. package/templates/lupine-template-fullstack-starter/app/src/pages/register.tsx +48 -0
  103. package/templates/lupine-template-fullstack-starter/app/src/pages/reset-password.tsx +41 -0
  104. package/templates/lupine-template-fullstack-starter/app/src/pages/settings.tsx +33 -0
  105. package/templates/lupine-template-fullstack-starter/app/src/pages/story.tsx +46 -0
  106. package/templates/lupine-template-fullstack-starter/app/src/shell/api.ts +127 -0
  107. package/templates/lupine-template-fullstack-starter/app/src/shell/parts.tsx +100 -0
  108. package/templates/lupine-template-fullstack-starter/app/src/shell/stories.ts +65 -0
  109. package/templates/lupine-template-fullstack-starter/app/src/shell/texts.ts +79 -0
  110. package/templates/lupine-template-fullstack-starter/app/tsconfig.json +17 -0
  111. package/templates/lupine-template-fullstack-starter/lupine.json +31 -0
  112. package/templates/lupine-template-fullstack-starter/web/assets/android-chrome-192x192.png +0 -0
  113. package/templates/lupine-template-fullstack-starter/web/assets/apple-touch-icon.png +0 -0
  114. package/templates/lupine-template-fullstack-starter/web/assets/favicon-16x16.png +0 -0
  115. package/templates/lupine-template-fullstack-starter/web/assets/favicon-32x32.png +0 -0
  116. package/templates/lupine-template-fullstack-starter/web/assets/favicon.ico +0 -0
  117. package/templates/lupine-template-fullstack-starter/web/assets/icons-font/License-carbon-icons.txt +71 -0
  118. package/templates/lupine-template-fullstack-starter/web/assets/icons-font/License-material-design.txt +20 -0
  119. package/templates/lupine-template-fullstack-starter/web/assets/icons-font/i-font.woff2 +0 -0
  120. package/templates/lupine-template-fullstack-starter/web/assets/icons-font/sample.html +124 -0
  121. package/templates/lupine-template-fullstack-starter/web/assets/icons-font/style.css +103 -0
  122. package/templates/lupine-template-fullstack-starter/web/assets/lupine-flower.png +0 -0
  123. package/templates/lupine-template-fullstack-starter/web/assets/lupine.svg +71 -0
  124. package/templates/lupine-template-fullstack-starter/web/assets/site.webmanifest +14 -0
  125. package/templates/lupine-template-fullstack-starter/web/icons-font.config.js +129 -0
  126. package/templates/{lupine-template-responsive-starter/api → lupine-template-fullstack-starter/web}/package.json +1 -1
  127. package/templates/lupine-template-fullstack-starter/web/src/admin/admin-patch.tsx +34 -0
  128. package/templates/lupine-template-fullstack-starter/web/src/admin/components/home-search-component.tsx +125 -0
  129. package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-card.tsx +105 -0
  130. package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-list.tsx +105 -0
  131. package/templates/lupine-template-fullstack-starter/web/src/admin/components/story-props.ts +34 -0
  132. package/templates/lupine-template-fullstack-starter/web/src/admin/index.html +23 -0
  133. package/templates/lupine-template-fullstack-starter/web/src/admin/index.tsx +49 -0
  134. package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-cfg.tsx +144 -0
  135. package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-item-edit.tsx +20 -0
  136. package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-item-list.tsx +23 -0
  137. package/templates/lupine-template-fullstack-starter/web/src/admin/pages/admin-user.tsx +145 -0
  138. package/templates/lupine-template-fullstack-starter/web/src/index.html +28 -0
  139. package/templates/lupine-template-fullstack-starter/web/src/index.tsx +16 -0
  140. package/templates/lupine-template-fullstack-starter/web/src/services/fetch-data.ts +37 -0
  141. package/templates/lupine-template-fullstack-starter/web/src/styles/base-css.ts +14 -0
  142. package/templates/{lupine-template-hello-world → lupine-template-fullstack-starter}/web/src/styles/global.css +10 -57
  143. package/templates/{lupine-template-hello-world → lupine-template-fullstack-starter}/web/src/styles/theme.ts +2 -1
  144. package/templates/lupine-template-responsive-starter/README.md +51 -0
  145. package/templates/lupine-template-responsive-starter/app/package.json +19 -0
  146. package/templates/lupine-template-responsive-starter/app/src/app.tsx +80 -0
  147. package/templates/lupine-template-responsive-starter/app/src/index.native.tsx +4 -0
  148. package/templates/lupine-template-responsive-starter/app/src/index.test.tsx +283 -0
  149. package/templates/lupine-template-responsive-starter/app/src/index.web.tsx +31 -0
  150. package/templates/lupine-template-responsive-starter/app/src/pages/about.tsx +23 -0
  151. package/templates/lupine-template-responsive-starter/app/src/pages/finance.tsx +48 -0
  152. package/templates/lupine-template-responsive-starter/app/src/pages/mine.tsx +60 -0
  153. package/templates/lupine-template-responsive-starter/app/src/pages/not-found.tsx +9 -0
  154. package/templates/lupine-template-responsive-starter/app/src/pages/note-detail.tsx +43 -0
  155. package/templates/lupine-template-responsive-starter/app/src/pages/note-edit.tsx +45 -0
  156. package/templates/lupine-template-responsive-starter/app/src/pages/note-search.tsx +62 -0
  157. package/templates/lupine-template-responsive-starter/app/src/pages/notes.tsx +71 -0
  158. package/templates/lupine-template-responsive-starter/app/src/pages/settings.tsx +55 -0
  159. package/templates/lupine-template-responsive-starter/app/src/pages/tools.tsx +112 -0
  160. package/templates/lupine-template-responsive-starter/app/src/shell/icons.ts +7 -0
  161. package/templates/lupine-template-responsive-starter/app/src/shell/layout.ts +18 -0
  162. package/templates/lupine-template-responsive-starter/app/src/shell/locales/zh-CN.ts +89 -0
  163. package/templates/lupine-template-responsive-starter/app/src/shell/menu.tsx +81 -0
  164. package/templates/lupine-template-responsive-starter/app/src/shell/nav.ts +12 -0
  165. package/templates/lupine-template-responsive-starter/app/src/shell/store.ts +72 -0
  166. package/templates/lupine-template-responsive-starter/app/src/shell/texts.ts +11 -0
  167. package/templates/lupine-template-responsive-starter/app/tsconfig.json +17 -0
  168. package/templates/lupine-template-responsive-starter/lupine.json +7 -6
  169. package/templates/lupine-template-responsive-starter/web/src/index.html +9 -2
  170. package/templates/lupine-template-responsive-starter/web/src/index.tsx +9 -34
  171. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.html +12 -6
  172. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +12 -31
  173. package/templates/common/AI_CONTEXT.md +0 -1002
  174. package/templates/common/apps/server/src/app-loader.ts +0 -4
  175. package/templates/lupine-template-cv-starter/api/package.json +0 -6
  176. package/templates/lupine-template-cv-starter/api/resources/install.sqlite.sql +0 -4
  177. package/templates/lupine-template-cv-starter/api/src/index.ts +0 -15
  178. package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +0 -15
  179. package/templates/lupine-template-doc-starter/api/package.json +0 -6
  180. package/templates/lupine-template-doc-starter/api/resources/config_default.json +0 -6
  181. package/templates/lupine-template-doc-starter/api/resources/install.sqlite.sql +0 -4
  182. package/templates/lupine-template-doc-starter/api/src/index.ts +0 -15
  183. package/templates/lupine-template-doc-starter/api/src/resources/config_default.json +0 -6
  184. package/templates/lupine-template-doc-starter/api/src/resources/install.sqlite.sql +0 -4
  185. package/templates/lupine-template-doc-starter/web/src/client-env-keys.ts +0 -5
  186. package/templates/lupine-template-doc-starter/web/src/styles/base-css.ts +0 -15
  187. package/templates/lupine-template-hello-world/api/resources/config_default.json +0 -6
  188. package/templates/lupine-template-hello-world/api/resources/install.sqlite.sql +0 -4
  189. package/templates/lupine-template-hello-world/api/src/service/root-api.ts +0 -18
  190. package/templates/lupine-template-hello-world/web/src/index.tsx +0 -73
  191. package/templates/lupine-template-hello-world/web/src/styles/app.css +0 -0
  192. package/templates/lupine-template-hello-world/web/src/styles/base-css.ts +0 -1
  193. package/templates/lupine-template-responsive-starter/api/resources/config_default.json +0 -6
  194. package/templates/lupine-template-responsive-starter/api/resources/install.sqlite.sql +0 -4
  195. package/templates/lupine-template-responsive-starter/api/src/service/root-api.ts +0 -18
  196. package/templates/lupine-template-responsive-starter/web/src/app-icons.ts +0 -76
  197. package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx +0 -93
  198. package/templates/lupine-template-responsive-starter/web/src/components/mine-about-page.tsx +0 -86
  199. package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +0 -80
  200. package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +0 -220
  201. package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +0 -119
  202. package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +0 -116
  203. package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +0 -154
  204. package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +0 -193
  205. package/templates/lupine-template-responsive-starter/web/src/components/search-input.tsx +0 -95
  206. package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +0 -182
  207. package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +0 -52
  208. package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +0 -43
  209. package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +0 -46
  210. package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +0 -452
  211. package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +0 -325
  212. package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +0 -46
  213. package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts +0 -87
  214. package/templates/lupine-template-responsive-starter/web/src/services/mine-service.ts +0 -45
  215. package/templates/lupine-template-responsive-starter/web/src/styles/app.css +0 -0
  216. package/templates/lupine-template-responsive-starter/web/src/styles/base-css.ts +0 -65
  217. package/templates/lupine-template-responsive-starter/web/src/styles/global.css +0 -2130
  218. package/templates/lupine-template-responsive-starter/web/src/styles/theme.ts +0 -16
  219. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/01-experience/index.md +0 -0
  220. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/02-projects/index.md +0 -0
  221. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/03-skills/index.md +0 -0
  222. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/04-education/index.md +0 -0
  223. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/index.md +0 -0
  224. /package/templates/lupine-template-cv-starter/{web → app}/markdown/index.md +0 -0
  225. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/01-experience/index.md +0 -0
  226. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/02-projects/index.md +0 -0
  227. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/03-skills/index.md +0 -0
  228. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/04-education/index.md +0 -0
  229. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/index.md +0 -0
  230. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/01-experience/index.html +0 -0
  231. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/02-projects/index.html +0 -0
  232. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/03-skills/index.html +0 -0
  233. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/04-education/index.html +0 -0
  234. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/index.html +0 -0
  235. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/index.html +0 -0
  236. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
  237. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/01-experience/index.html +0 -0
  238. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/02-projects/index.html +0 -0
  239. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/03-skills/index.html +0 -0
  240. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/04-education/index.html +0 -0
  241. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
  242. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/index.md +0 -0
  243. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/list.md +0 -0
  244. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/install.md +0 -0
  245. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/started.md +0 -0
  246. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/index.md +0 -0
  247. /package/templates/lupine-template-doc-starter/{web → app}/markdown/index.md +0 -0
  248. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/index.md +0 -0
  249. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/list.md +0 -0
  250. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/install.md +0 -0
  251. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/started.md +0 -0
  252. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/index.md +0 -0
  253. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/index.html +0 -0
  254. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/list.html +0 -0
  255. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/install.html +0 -0
  256. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/started.html +0 -0
  257. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/index.html +0 -0
  258. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/index.html +0 -0
  259. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
  260. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/index.html +0 -0
  261. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/list.html +0 -0
  262. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/install.html +0 -0
  263. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/started.html +0 -0
  264. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
  265. /package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/api/src/index.ts +0 -0
  266. /package/templates/{lupine-template-hello-world → lupine-template-fullstack-note}/web/assets/favicon.ico +0 -0
  267. /package/templates/{lupine-template-cv-starter → lupine-template-fullstack-starter}/api/resources/config_default.json +0 -0
  268. /package/templates/{lupine-template-responsive-starter → lupine-template-fullstack-starter}/api/src/index.ts +0 -0
  269. /package/templates/{lupine-template-cv-starter/web/src → lupine-template-fullstack-starter/web/src/models}/client-env-keys.ts +0 -0
@@ -1,325 +0,0 @@
1
- import {
2
- CssProps,
3
- HtmlVar,
4
- PageProps,
5
- RefProps,
6
- SliderFrame,
7
- SliderFrameHookProps,
8
- MobileHeaderCenter,
9
- MobileHeaderEmptyIcon,
10
- MobileHeaderTitleIcon,
11
- MobileTopSysIcon,
12
- } from 'lupine.components';
13
- import { MineService, MineStats } from '../services/mine-service';
14
- import { MineSettingsPage } from '../components/mine-settings-page';
15
- import { MinePremiumPage } from '../components/mine-premium-page';
16
-
17
- export const MinePage = async (props: PageProps) => {
18
- const dom = new HtmlVar('');
19
- const sliderFrameHook: SliderFrameHookProps = {};
20
-
21
- const renderDashboard = () => {
22
- const stats: MineStats = MineService.getStats();
23
-
24
- return (
25
- <div class='mine-dashboard'>
26
- <div class='dashboard-title'>Data Overview</div>
27
-
28
- <div class='stat-grid'>
29
- <div class='stat-card' style={{ borderTopColor: 'var(--primary-accent-color)' }}>
30
- <div class='stat-icon'>
31
- <i class='ifc-icon ma-text-box-outline' style={{ color: 'var(--primary-accent-color)' }} />
32
- </div>
33
- <div class='stat-value'>{stats.noteCount}</div>
34
- <div class='stat-label'>Notes</div>
35
- </div>
36
- </div>
37
- </div>
38
- );
39
- };
40
-
41
- const refreshRender = () => {
42
- dom.value = (
43
- <div class='mine-page-container'>
44
- <SliderFrame hook={sliderFrameHook} />
45
-
46
- {/* Profile Header Block */}
47
- <div class='profile-header'>
48
- <div class='profile-info'>
49
- <div class='avatar'>
50
- <i class='ifc-icon ma-account' />
51
- </div>
52
- <div class='user-details'>
53
- <div class='user-name'>Demo User</div>
54
- <div class='user-tagline'>Local Workspace Offline</div>
55
- </div>
56
- </div>
57
- <div class='profile-nav'>
58
- <div class='flex-1'></div>
59
- <div
60
- class='settings-btn'
61
- onClick={() => {
62
- sliderFrameHook.load!(
63
- <MineSettingsPage sliderFrameHook={sliderFrameHook} onDataChanged={refreshRender} />
64
- );
65
- }}
66
- >
67
- <i class='ifc-icon ma-cog-outline' />
68
- </div>
69
- </div>
70
- </div>
71
-
72
- <div class='mine-scroll-content'>
73
- {/* Dashboard Blocks */}
74
- {renderDashboard()}
75
-
76
- {/* Premium Banner Mock */}
77
- <div class='premium-banner'>
78
- <div class='banner-content'>
79
- <div class='banner-title'>
80
- <i class='ifc-icon ma-star' /> Upgrade to Premium
81
- </div>
82
- <div class='banner-desc'>Unlock cloud sync, custom themes, and unlimited media storage.</div>
83
- </div>
84
- <button
85
- class='banner-btn'
86
- onClick={() => {
87
- sliderFrameHook.load!(<MinePremiumPage sliderFrameHook={sliderFrameHook} />);
88
- }}
89
- >
90
- View Plans
91
- </button>
92
- </div>
93
- </div>
94
- </div>
95
- );
96
- };
97
-
98
- const css: CssProps = {
99
- display: 'flex',
100
- flexDirection: 'column',
101
- height: '100%',
102
- position: 'relative',
103
-
104
- '.mine-page-container': {
105
- display: 'flex',
106
- flexDirection: 'column',
107
- height: '100%',
108
- },
109
-
110
- // 1. Profile Header
111
- '.profile-header': {
112
- padding: '16px 20px 24px 20px',
113
- borderBottomLeftRadius: '24px',
114
- borderBottomRightRadius: '24px',
115
- boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
116
- zIndex: 10,
117
- },
118
- '.profile-nav': {
119
- display: 'flex',
120
- marginBottom: '16px',
121
- },
122
- '.settings-btn': {
123
- width: '36px',
124
- height: '36px',
125
- borderRadius: '18px',
126
- backgroundColor: 'var(--secondary-bg-color)',
127
- display: 'flex',
128
- alignItems: 'center',
129
- justifyContent: 'center',
130
- cursor: 'pointer',
131
- color: 'var(--primary-color)',
132
- transition: 'background-color 0.2s',
133
- '&:active': {
134
- backgroundColor: 'rgba(0,0,0,0.05)',
135
- },
136
- },
137
- '.profile-info': {
138
- display: 'flex',
139
- alignItems: 'center',
140
- gap: '16px',
141
- },
142
- '.avatar': {
143
- width: '64px',
144
- height: '64px',
145
- borderRadius: '32px',
146
- backgroundColor: 'var(--primary-accent-color)',
147
- color: 'white',
148
- display: 'flex',
149
- alignItems: 'center',
150
- justifyContent: 'center',
151
- fontSize: '36px',
152
- boxShadow: '0 4px 12px rgba(24, 144, 255, 0.3)',
153
- },
154
- '.user-name': {
155
- fontSize: '22px',
156
- fontWeight: 'bold',
157
- color: 'var(--primary-color)',
158
- marginBottom: '4px',
159
- },
160
- '.user-tagline': {
161
- fontSize: '14px',
162
- color: 'var(--secondary-color)',
163
- opacity: 0.8,
164
- },
165
-
166
- // Scrollable Rest of the Page
167
- '.mine-scroll-content': {
168
- flex: 1,
169
- overflowY: 'auto',
170
- padding: '24px 16px',
171
- display: 'flex',
172
- flexDirection: 'column',
173
- gap: '24px',
174
- },
175
-
176
- // 2. Dashboard
177
- '.mine-dashboard': {
178
- display: 'flex',
179
- flexDirection: 'column',
180
- gap: '16px',
181
- },
182
- '.dashboard-title': {
183
- fontSize: '18px',
184
- fontWeight: 'bold',
185
- color: 'var(--primary-color)',
186
- },
187
- '.stat-grid': {
188
- display: 'grid',
189
- gridTemplateColumns: 'repeat(3, 1fr)',
190
- gap: '12px',
191
- },
192
- '.stat-card': {
193
- backgroundColor: 'var(--primary-bg-color)',
194
- borderRadius: '12px',
195
- padding: '16px 12px',
196
- display: 'flex',
197
- flexDirection: 'column',
198
- alignItems: 'center',
199
- boxShadow: '0 2px 8px rgba(0,0,0,0.04)',
200
- borderTop: '4px solid transparent',
201
- },
202
- '.stat-icon': {
203
- fontSize: '24px',
204
- marginBottom: '8px',
205
- },
206
- '.stat-value': {
207
- fontSize: '20px',
208
- fontWeight: 'bold',
209
- color: 'var(--primary-color)',
210
- marginBottom: '4px',
211
- },
212
- '.stat-label': {
213
- fontSize: '12px',
214
- color: 'var(--secondary-color)',
215
- },
216
-
217
- '.usage-bar-container': {
218
- backgroundColor: 'var(--primary-bg-color)',
219
- borderRadius: '12px',
220
- padding: '16px',
221
- boxShadow: '0 2px 8px rgba(0,0,0,0.04)',
222
- },
223
- '.usage-bar-labels': {
224
- display: 'flex',
225
- justifyContent: 'space-between',
226
- fontSize: '13px',
227
- color: 'var(--secondary-color)',
228
- marginBottom: '12px',
229
- fontWeight: '500',
230
- },
231
- '.usage-bar': {
232
- height: '12px',
233
- borderRadius: '6px',
234
- display: 'flex',
235
- overflow: 'hidden',
236
- backgroundColor: 'rgba(0,0,0,0.05)',
237
- gap: '2px', // tiny visual gap between segments
238
- },
239
- '.usage-bar-segment': {
240
- height: '100%',
241
- transition: 'width 0.5s ease',
242
- },
243
- '.usage-bar-segment.empty': { backgroundColor: 'transparent' },
244
- '.usage-bar-segment.note': { backgroundColor: 'var(--primary-accent-color)' },
245
- '.usage-bar-segment.diary': { backgroundColor: '#eb2f96' },
246
- '.usage-bar-segment.finance': { backgroundColor: '#52c41a' },
247
-
248
- // 3. Premium Banner
249
- '.premium-banner': {
250
- background: 'linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%)',
251
- borderRadius: '16px',
252
- padding: '20px',
253
- display: 'flex',
254
- flexDirection: 'column',
255
- gap: '16px',
256
- color: '#333',
257
- boxShadow: '0 8px 16px rgba(255, 154, 158, 0.3)',
258
- position: 'relative',
259
- overflow: 'hidden',
260
- },
261
- '.banner-content': {
262
- position: 'relative',
263
- zIndex: 2,
264
- },
265
- '.banner-title': {
266
- fontSize: '18px',
267
- fontWeight: 'bold',
268
- marginBottom: '8px',
269
- display: 'flex',
270
- alignItems: 'center',
271
- gap: '8px',
272
- },
273
- '.banner-title i': {
274
- color: '#FFD700',
275
- },
276
- '.banner-desc': {
277
- fontSize: '14px',
278
- opacity: 0.9,
279
- lineHeight: '1.4',
280
- },
281
- '.banner-btn': {
282
- alignSelf: 'flex-start',
283
- backgroundColor: '#fff',
284
- color: '#FF9A9E',
285
- border: 'none',
286
- padding: '8px 20px',
287
- borderRadius: '20px',
288
- fontWeight: 'bold',
289
- fontSize: '14px',
290
- cursor: 'pointer',
291
- boxShadow: '0 4px 8px rgba(0,0,0,0.1)',
292
- position: 'relative',
293
- zIndex: 2,
294
- },
295
- '.mine-page-content-wrapper': {
296
- flex: 1,
297
- overflowY: 'auto',
298
- display: 'flex',
299
- flexDirection: 'column',
300
- },
301
- };
302
-
303
- const ref: RefProps = {
304
- onLoad: async () => {
305
- refreshRender();
306
- },
307
- };
308
-
309
- return (
310
- <div css={css} ref={ref}>
311
- <MobileHeaderCenter>
312
- <MobileHeaderTitleIcon
313
- title='Mine'
314
- left={<MobileHeaderEmptyIcon />}
315
- right={
316
- <div class='flex-center-gap-12'>
317
- <MobileTopSysIcon />
318
- </div>
319
- }
320
- />
321
- </MobileHeaderCenter>
322
- <div class='mine-page-content-wrapper no-scrollbar-container'>{dom.node}</div>
323
- </div>
324
- );
325
- };
@@ -1,46 +0,0 @@
1
- import {
2
- CssProps,
3
- MobileHeaderCenter,
4
- MobileHeaderEmptyIcon,
5
- MobileHeaderTitleIcon,
6
- MobileTopSysIcon,
7
- PageProps,
8
- RefProps,
9
- } from 'lupine.components';
10
-
11
- export const ToolsPage = async (props: PageProps) => {
12
- const css: CssProps = {
13
- display: 'flex',
14
- flexDirection: 'column',
15
- height: '100%',
16
- position: 'relative',
17
- '.tools-list-container': {
18
- padding: '32px 24px',
19
- display: 'flex',
20
- flexDirection: 'column',
21
- alignItems: 'center',
22
- },
23
- };
24
-
25
- const ref: RefProps = {
26
- onLoad: async () => {},
27
- };
28
-
29
- return (
30
- <div css={css} ref={ref}>
31
- <MobileHeaderCenter>
32
- <MobileHeaderTitleIcon
33
- title='Tools'
34
- left={<MobileHeaderEmptyIcon />}
35
- right={
36
- <div class='flex-center-gap-12'>
37
- <MobileTopSysIcon />
38
- </div>
39
- }
40
- />
41
- </MobileHeaderCenter>
42
-
43
- <div class='tools-list-container no-scrollbar-container'>This is a demo tools page.</div>
44
- </div>
45
- );
46
- };
@@ -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
- };
@@ -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
- };