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,220 +0,0 @@
1
- import {
2
- ActionSheetSelect,
3
- CssProps,
4
- HeaderWithBackFrame,
5
- HtmlVar,
6
- NotificationColor,
7
- NotificationMessage,
8
- RefProps,
9
- refreshPage,
10
- SliderFrame,
11
- SliderFrameHookProps,
12
- ToggleSwitch,
13
- ToggleSwitchSize,
14
- } from 'lupine.components';
15
- import { MineService } from '../services/mine-service';
16
- import { MineAboutPage } from './mine-about-page';
17
-
18
- export const MineSettingsPage = (props: { sliderFrameHook: SliderFrameHookProps; onDataChanged: () => void }) => {
19
- const innerSliderHook: SliderFrameHookProps = {};
20
-
21
- const onClearAll = async () => {
22
- await ActionSheetSelect.show({
23
- title: 'DANGER: Are you sure you want to permanently delete ALL local data? This cannot be undone.',
24
- options: ['Erase Everything'],
25
- cancelButtonText: 'Cancel',
26
- handleClicked: async (index: number, close: () => void) => {
27
- close();
28
- if (index === 0) {
29
- MineService.clearAllData();
30
- props.onDataChanged();
31
- }
32
- },
33
- });
34
- };
35
-
36
- const onClearCache = async () => {
37
- // Fake mock loading for UX
38
- const loader = document.createElement('div');
39
- loader.style.position = 'fixed';
40
- loader.style.top = '50%';
41
- loader.style.left = '50%';
42
- loader.style.transform = 'translate(-50%, -50%)';
43
- loader.style.background = 'rgba(0,0,0,0.8)';
44
- loader.style.color = '#fff';
45
- loader.style.padding = '16px 24px';
46
- loader.style.borderRadius = '8px';
47
- loader.style.zIndex = '9999';
48
- loader.innerText = 'Clearing cache...';
49
- document.body.appendChild(loader);
50
-
51
- setTimeout(() => {
52
- document.body.removeChild(loader);
53
- NotificationMessage.sendMessage('Cache cleared.', NotificationColor.Success);
54
- }, 800);
55
- };
56
-
57
- const renderContent = () => {
58
- const css: CssProps = {
59
- display: 'flex',
60
- flexDirection: 'column',
61
- flex: '1',
62
- padding: '0 16px',
63
- backgroundColor: 'var(--secondary-bg-color)',
64
- overflowY: 'auto',
65
-
66
- '.setting-section-group': {
67
- marginBottom: '24px',
68
- },
69
- '.setting-section-title': {
70
- fontSize: '14px',
71
- color: 'var(--secondary-color)',
72
- marginBottom: '8px',
73
- paddingLeft: '16px',
74
- marginTop: '16px',
75
- },
76
- '.setting-section-block': {
77
- backgroundColor: 'var(--primary-bg-color)',
78
- borderRadius: '12px',
79
- overflow: 'hidden',
80
- },
81
- '.setting-section-item': {
82
- display: 'flex',
83
- alignItems: 'center',
84
- justifyContent: 'space-between',
85
- padding: '16px',
86
- borderBottom: '1px solid var(--primary-border-color)',
87
- cursor: 'pointer',
88
- transition: 'background-color 0.2s',
89
- },
90
- '.setting-section-item:last-child': {
91
- borderBottom: 'none',
92
- },
93
- '.setting-section-item:active': {
94
- backgroundColor: 'rgba(0,0,0,0.02)',
95
- },
96
- '.setting-section-item-text': {
97
- fontSize: '16px',
98
- color: 'var(--primary-color)',
99
- },
100
- '.setting-section-item-text.danger': {
101
- color: '#ff4d4f',
102
- },
103
- '.setting-section-item-icon': {
104
- color: 'var(--secondary-color)',
105
- opacity: 0.5,
106
- },
107
- 'a.setting-section-item': {
108
- textDecoration: 'none',
109
- },
110
- };
111
-
112
- const ref: RefProps = {
113
- onLoad: async (el: Element) => {
114
- // any sub loaders
115
- },
116
- };
117
-
118
- return (
119
- <div css={css} ref={ref} class='user-settings-top'>
120
- <div class='setting-section-group'>
121
- <div class='setting-section-title'>App Layout</div>
122
- <div class='setting-section-block'>
123
- <div class='setting-section-item'>
124
- <div class='setting-section-item-text'>
125
- <div style={{ fontWeight: 'bold' }}>Desktop Menu</div>
126
- <div style={{ fontSize: '14px', color: 'var(--secondary-color)', marginTop: '4px' }}>
127
- {(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu' ? 'Sidebar Menu' : 'Bottom Tabs'}
128
- </div>
129
- </div>
130
- <div class='setting-section-item-icon' style={{ opacity: 1 }}>
131
- <ToggleSwitch
132
- size={ToggleSwitchSize.Medium}
133
- checked={(localStorage.getItem('app-layout') || 'tabs') === 'sidemenu'}
134
- disabled={false}
135
- onClick={async (v) => {
136
- const newLayout = v ? 'sidemenu' : 'tabs';
137
- localStorage.setItem('app-layout', newLayout);
138
- dom.value = renderContent(); // Re-render first
139
-
140
- await ActionSheetSelect.show({
141
- title: 'Layout changed. Restart app to apply?',
142
- options: ['Restart Now'],
143
- cancelButtonText: 'Later',
144
- handleClicked: async (index: number, close: () => void) => {
145
- close();
146
- if (index === 0) {
147
- await refreshPage('/');
148
- }
149
- },
150
- });
151
- }}
152
- />
153
- </div>
154
- </div>
155
- </div>
156
- </div>
157
-
158
- <div class='setting-section-group'>
159
- <div class='setting-section-title'>Application</div>
160
- <div class='setting-section-block'>
161
- <a
162
- class='setting-section-item'
163
- href='javascript:void(0)'
164
- onClick={() => {
165
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
166
- }}
167
- >
168
- <div class='setting-section-item-text'>Feedback & Support</div>
169
- <div class='setting-section-item-icon'>
170
- <i class='ifc-icon ma-chevron-right' />
171
- </div>
172
- </a>
173
- <div class='setting-section-item' onClick={onClearCache}>
174
- <div class='setting-section-item-text'>Clear Temporary Cache</div>
175
- <div class='setting-section-item-icon'>
176
- <i class='ifc-icon ma-chevron-right' />
177
- </div>
178
- </div>
179
- <div
180
- class='setting-section-item'
181
- onClick={() => {
182
- // props.sliderFrameHook.addClass!('desktop-slide-left');
183
- // innerSliderHook.addClass!('desktop-slide-right');
184
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
185
- }}
186
- >
187
- <div class='setting-section-item-text'>About</div>
188
- <div class='setting-section-item-icon'>
189
- <i class='ifc-icon ma-chevron-right' />
190
- </div>
191
- </div>
192
- </div>
193
- </div>
194
-
195
- <div class='setting-section-group'>
196
- <div class='setting-section-title text-danger'>Danger Zone</div>
197
- <div class='setting-section-block'>
198
- <div class='setting-section-item' onClick={onClearAll}>
199
- <div class='setting-section-item-text danger'>Clear All Application Data</div>
200
- <div class='setting-section-item-icon'>
201
- <i class='ifc-icon ma-delete-outline text-danger' />
202
- </div>
203
- </div>
204
- </div>
205
- </div>
206
- </div>
207
- );
208
- };
209
-
210
- const dom = new HtmlVar(renderContent());
211
-
212
- return (
213
- <HeaderWithBackFrame title='Settings' onBack={(event) => props.sliderFrameHook.close!(event)}>
214
- <>
215
- <SliderFrame hook={innerSliderHook} />
216
- {dom.node}
217
- </>
218
- </HeaderWithBackFrame>
219
- );
220
- };
@@ -1,119 +0,0 @@
1
- import { CssProps, RefProps } from 'lupine.components';
2
- import { MobileTopSysIcon } from 'lupine.components';
3
-
4
- // Helper hook pattern to pass search calls back to the Homepage
5
- export const NoteSearchHelper: {
6
- triggerSearch?: (query: string) => void;
7
- } = {};
8
-
9
- export const MobileTopSearchMenu = () => {
10
- const css: CssProps = {
11
- display: 'flex',
12
- flexDirection: 'row',
13
- width: '100%',
14
- alignItems: 'center',
15
-
16
- '.mobile-top-menu-left': {
17
- display: 'flex',
18
- flexDirection: 'row',
19
- flex: 1,
20
- alignItems: 'center',
21
- fontSize: '18px',
22
- fontWeight: 'bold',
23
- color: 'var(--primary-color)',
24
- },
25
- '.mobile-top-menu-right': {
26
- display: 'flex',
27
- flexDirection: 'row',
28
- alignItems: 'center',
29
- gap: '12px',
30
- },
31
- '.mtm-input-group': {
32
- display: 'none',
33
- flex: 1,
34
- marginRight: '12px',
35
- },
36
- '.mtm-input-box': {
37
- width: '100%',
38
- padding: '4px 8px',
39
- borderRadius: '4px',
40
- border: '1px solid var(--secondary-border-color)',
41
- backgroundColor: 'var(--primary-bg-color)',
42
- color: 'var(--primary-color)',
43
- },
44
- '.mtm-search-icon, .mtm-menu-icon, .mtm-search-cancel': {
45
- cursor: 'pointer',
46
- display: 'flex',
47
- },
48
- '.mtm-search-cancel': {
49
- display: 'none',
50
- fontSize: '14px',
51
- color: 'var(--primary-color)',
52
- },
53
-
54
- // Toggle state specific styles
55
- '&.show-search': {
56
- '.mobile-title': { display: 'none' },
57
- '.mtm-search-icon': { display: 'none' },
58
- '.mtm-input-group': { display: 'flex' },
59
- '.mtm-search-cancel': { display: 'flex' },
60
- },
61
- };
62
-
63
- const ref: RefProps = {
64
- onLoad: async () => {
65
- ref.$('.mtm-input-box')?.addEventListener('keyup', (e: Event) => {
66
- if ((e as KeyboardEvent).key === 'Enter') {
67
- onStartSearch();
68
- }
69
- });
70
- },
71
- };
72
-
73
- const toggleSearchMode = () => {
74
- const root = ref.current;
75
- if (root) {
76
- const isSearchMode = root.classList.toggle('show-search');
77
- if (isSearchMode) {
78
- (ref.$('.mtm-input-box') as HTMLElement)?.focus();
79
- } else {
80
- // Clear search when canceling
81
- (ref.$('.mtm-input-box') as HTMLInputElement).value = '';
82
- NoteSearchHelper.triggerSearch?.('');
83
- }
84
- }
85
- };
86
-
87
- const onStartSearch = () => {
88
- const val = (ref.$('.mtm-input-box') as HTMLInputElement).value;
89
- NoteSearchHelper.triggerSearch?.(val);
90
- };
91
-
92
- return (
93
- <div ref={ref} css={css} class='mobile-top-menu-box'>
94
- <div class='mobile-top-menu-left'>
95
- <div class='mobile-title'>Notes</div>
96
- <div class='mtm-input-group'>
97
- <input
98
- type='text'
99
- spellcheck={false}
100
- class='mtm-input-box'
101
- placeholder='Search notes...'
102
- autocomplete='off'
103
- />
104
- </div>
105
- </div>
106
- <div class='mobile-top-menu-right'>
107
- <div class='mtm-search-cancel' onClick={toggleSearchMode}>
108
- Cancel
109
- </div>
110
- <div class='mtm-search-icon' onClick={toggleSearchMode}>
111
- <i class='ifc-icon bs-search'></i>
112
- </div>
113
- <div class='mtm-menu-icon'>
114
- <MobileTopSysIcon />
115
- </div>
116
- </div>
117
- </div>
118
- );
119
- };
@@ -1,116 +0,0 @@
1
- import {
2
- CssProps,
3
- PageProps,
4
- RefProps,
5
- SliderFrameHookProps,
6
- HeaderWithBackFrame,
7
- ActionSheetSelect,
8
- } from 'lupine.components';
9
- import { LocalNoteProps, LocalNotesService } from '../services/local-notes-service';
10
- import { NoteEditComponent } from './note-edit';
11
-
12
- interface NoteDetailProps {
13
- note: LocalNoteProps;
14
- sliderFrameHook: SliderFrameHookProps;
15
- onSaved: () => void;
16
- }
17
-
18
- export const NoteDetailComponent = async (props: NoteDetailProps) => {
19
- const css: CssProps = {
20
- flex: 1,
21
- overflowY: 'auto',
22
- padding: '24px',
23
- backgroundColor: 'var(--primary-bg-color)',
24
-
25
- '.note-detail-title': {
26
- fontSize: '24px',
27
- fontWeight: 'bold',
28
- color: 'var(--primary-color)',
29
- marginBottom: '12px',
30
- lineHeight: '1.4',
31
- },
32
- '.note-detail-date': {
33
- fontSize: '13px',
34
- color: 'var(--secondary-color)',
35
- },
36
- '.note-detail-meta': {
37
- display: 'flex',
38
- gap: '12px',
39
- alignItems: 'center',
40
- marginBottom: '24px',
41
- paddingBottom: '16px',
42
- borderBottom: '1px solid var(--primary-border-color)',
43
- },
44
- '.note-detail-content': {
45
- fontSize: '16px',
46
- color: 'var(--primary-color)',
47
- lineHeight: '1.6',
48
- whiteSpace: 'pre-wrap',
49
- wordBreak: 'break-word',
50
- },
51
- '.header-action-icon': {
52
- fontSize: '20px',
53
- padding: '4px',
54
- cursor: 'pointer',
55
- color: 'var(--primary-color)',
56
- },
57
- '.header-actions-container': {
58
- display: 'flex',
59
- gap: '16px',
60
- alignItems: 'center',
61
- },
62
- '.header-action-delete': {
63
- color: '#ff4d4f',
64
- },
65
- '.note-detail-color-marker': {
66
- width: '16px',
67
- height: '16px',
68
- borderRadius: '4px',
69
- },
70
- };
71
-
72
- const onEdit = () => {
73
- // Open edit component and pass the current note
74
- props.sliderFrameHook.load!(
75
- <NoteEditComponent note={props.note} sliderFrameHook={props.sliderFrameHook} onSaved={props.onSaved} />
76
- );
77
- };
78
-
79
- const onDelete = async () => {
80
- await ActionSheetSelect.show({
81
- title: 'Are you sure you want to delete this note?',
82
- options: ['Remove'],
83
- cancelButtonText: 'Cancel',
84
- handleClicked: async (index: number, close: () => void) => {
85
- close();
86
- if (index === 0) {
87
- LocalNotesService.deleteNote(props.note.id);
88
- props.onSaved(); // trigger list refresh
89
- props.sliderFrameHook.close!(new MouseEvent('click')); // close detail view
90
- }
91
- },
92
- });
93
- };
94
-
95
- const pageRight = (
96
- <div class='header-actions-container'>
97
- <i class='ifc-icon ma-pencil-outline header-action-icon' onClick={onEdit}></i>
98
- <i class='ifc-icon ma-delete-off-outline header-action-icon header-action-delete' onClick={onDelete}></i>
99
- </div>
100
- );
101
-
102
- return (
103
- <HeaderWithBackFrame title='Details' onBack={(e: Event) => props.sliderFrameHook.close!(e)} right={pageRight}>
104
- <div css={css} class='note-detail-wrapper no-scrollbar-container flex-col h-100'>
105
- <div class='note-detail-title'>{props.note.title}</div>
106
- <div class='note-detail-meta'>
107
- {props.note.color && (
108
- <div class='note-detail-color-marker' style={{ backgroundColor: props.note.color }}></div>
109
- )}
110
- <div class='note-detail-date'>{new Date(props.note.updatedAt).toLocaleString()}</div>
111
- </div>
112
- <div class='note-detail-content'>{props.note.content}</div>
113
- </div>
114
- </HeaderWithBackFrame>
115
- );
116
- };
@@ -1,154 +0,0 @@
1
- import {
2
- CssProps,
3
- NotificationColor,
4
- NotificationMessage,
5
- RefProps,
6
- SliderFrameHookProps,
7
- HeaderWithBackFrame,
8
- ActionSheetColorPicker,
9
- } from 'lupine.components';
10
- // HEditor relies on complex setup in original app, fallback to simple textarea for robustness here
11
- import { LocalNoteProps, LocalNotesService } from '../services/local-notes-service';
12
-
13
- export const NoteEditComponent = (props: {
14
- note?: LocalNoteProps;
15
- sliderFrameHook: SliderFrameHookProps;
16
- onSaved: () => void;
17
- }) => {
18
- const isEdit = !!props.note;
19
- const noteId = props.note ? props.note.id : -1;
20
- const defaultTitle = props.note ? props.note.title : '';
21
- const defaultContent = props.note ? props.note.content : '';
22
-
23
- const ref: RefProps = {
24
- onLoad: async () => {
25
- // Auto-focus title if new note
26
- if (!isEdit) {
27
- const tInput = ref.$('.note-edit-title-input') as HTMLInputElement;
28
- tInput?.focus();
29
- }
30
- },
31
- };
32
-
33
- let selectedColor = props.note?.color || '';
34
-
35
- const pickColor = async () => {
36
- const res = await ActionSheetColorPicker({
37
- value: selectedColor,
38
- title: 'Select Color Tag',
39
- });
40
- if (res !== undefined) {
41
- selectedColor = res;
42
- const ind = ref.$('.note-color-preview') as HTMLDivElement;
43
- if (ind) ind.style.backgroundColor = res || 'transparent';
44
- }
45
- };
46
-
47
- const onSave = () => {
48
- const title = (ref.$('.note-edit-title-input') as HTMLInputElement).value.trim();
49
- const content = (ref.$('.note-edit-body-input') as HTMLTextAreaElement).value.trim();
50
-
51
- if (!title) {
52
- NotificationMessage.sendMessage('Please enter a note title', NotificationColor.Error);
53
- return;
54
- }
55
-
56
- LocalNotesService.saveNote({
57
- id: noteId,
58
- title,
59
- content,
60
- color: selectedColor,
61
- updatedAt: Date.now(),
62
- });
63
-
64
- NotificationMessage.sendMessage(isEdit ? 'Modified and saved' : 'Note added', NotificationColor.Success);
65
- props.onSaved();
66
- props.sliderFrameHook.close!(new MouseEvent('click'));
67
- };
68
-
69
- const css: CssProps = {
70
- display: 'flex',
71
- flexDirection: 'column',
72
- height: '100%',
73
- backgroundColor: 'var(--primary-bg-color)',
74
- padding: '16px',
75
-
76
- '.note-edit-title-input': {
77
- width: '100%',
78
- fontSize: '20px',
79
- fontWeight: 'bold',
80
- padding: '8px',
81
- backgroundColor: 'transparent',
82
- color: 'var(--primary-color)',
83
- outline: 'none',
84
- marginBottom: '16px',
85
- '&:focus': {
86
- borderBottomColor: 'var(--primary-accent-color)',
87
- },
88
- },
89
- '.note-edit-body-input': {
90
- flex: 1,
91
- padding: '12px',
92
- backgroundColor: 'transparent',
93
- color: 'var(--primary-color)',
94
- fontSize: '16px',
95
- resize: 'none',
96
- outline: 'none',
97
- lineHeight: '1.6',
98
- },
99
- '.note-edit-color-row': {
100
- display: 'flex',
101
- alignItems: 'center',
102
- padding: '12px',
103
- cursor: 'pointer',
104
- backgroundColor: 'var(--secondary-bg-color)',
105
- borderRadius: '8px',
106
- marginBottom: '16px',
107
- color: 'var(--primary-color)',
108
- fontWeight: 'bold',
109
- fontSize: '16px',
110
- },
111
- };
112
-
113
- return (
114
- <HeaderWithBackFrame
115
- title={isEdit ? 'Edit Note' : 'New Note'}
116
- onBack={(e: Event) => props.sliderFrameHook.close!(e)}
117
- right={
118
- <div
119
- onClick={onSave}
120
- style={{
121
- color: 'var(--primary-accent-color)',
122
- fontWeight: 'bold',
123
- fontSize: '16px',
124
- padding: '0 8px',
125
- cursor: 'pointer',
126
- }}
127
- >
128
- Save
129
- </div>
130
- }
131
- >
132
- <div ref={ref} css={css} class='note-edit-container flex-col h-100'>
133
- <input
134
- type='text'
135
- class='input-base note-edit-title-input'
136
- placeholder='Title...'
137
- value={defaultTitle}
138
- maxLength={50}
139
- />
140
- <div class='note-edit-color-row' onClick={pickColor}>
141
- <div class='flex-1'>Color Tag</div>
142
- <div
143
- class='note-color-preview color-preview-box'
144
- style={{ backgroundColor: selectedColor || 'transparent' }}
145
- ></div>
146
- <i class='ifc-icon ma-pencil-outline icon-btn-secondary' />
147
- </div>
148
- <textarea class='input-base note-edit-body-input' placeholder='Write your note...'>
149
- {defaultContent}
150
- </textarea>
151
- </div>
152
- </HeaderWithBackFrame>
153
- );
154
- };