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.
Files changed (268) hide show
  1. package/README.md +13 -7
  2. package/index.js +236 -109
  3. package/package.json +1 -1
  4. package/templates/common/.agents/skills/lupine-framework/SKILL.md +3 -3
  5. package/templates/common/.agents/skills/lupine-framework/references/backend-api.md +16 -1
  6. package/templates/common/.agents/skills/lupine-framework/references/icon-handling.md +1 -1
  7. package/templates/common/.agents/skills/lupine-framework/references/mobile-interactions.md +17 -88
  8. package/templates/common/.agents/skills/lupine-framework/references/native-apps.md +47 -24
  9. package/templates/common/.agents/skills/lupine-framework/references/navigation-and-routing.md +1 -0
  10. package/templates/common/.agents/skills/lupine-framework/references/reactivity-and-state.md +2 -2
  11. package/templates/common/.agents/skills/lupine-framework/references/styling-and-themes.md +3 -1
  12. package/templates/common/.env.development +2 -0
  13. package/templates/common/.env.mobile +4 -3
  14. package/templates/common/_env +10 -5
  15. package/templates/common/apps/server/README.md +10 -0
  16. package/templates/common/dev/cp-folder.js +9 -4
  17. package/templates/lupine-template-cv-starter/README.md +33 -1
  18. package/templates/lupine-template-cv-starter/app/package.json +20 -0
  19. package/templates/lupine-template-cv-starter/app/src/app.tsx +6 -0
  20. package/templates/lupine-template-cv-starter/app/src/index.native.tsx +4 -0
  21. package/templates/lupine-template-cv-starter/app/src/index.test.tsx +71 -0
  22. package/templates/lupine-template-cv-starter/app/src/index.web.tsx +28 -0
  23. package/templates/lupine-template-cv-starter/app/tsconfig.json +17 -0
  24. package/templates/lupine-template-cv-starter/lupine.json +8 -7
  25. package/templates/lupine-template-cv-starter/web/src/index.html +9 -2
  26. package/templates/lupine-template-cv-starter/web/src/index.tsx +9 -14
  27. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.html +9 -2
  28. package/templates/lupine-template-cv-starter/web/src/lupine-template-cv-starter/index.tsx +4 -20
  29. package/templates/lupine-template-doc-starter/README.md +33 -1
  30. package/templates/lupine-template-doc-starter/app/package.json +20 -0
  31. package/templates/lupine-template-doc-starter/app/src/app.tsx +6 -0
  32. package/templates/lupine-template-doc-starter/app/src/index.native.tsx +4 -0
  33. package/templates/lupine-template-doc-starter/app/src/index.test.tsx +78 -0
  34. package/templates/lupine-template-doc-starter/app/src/index.web.tsx +28 -0
  35. package/templates/lupine-template-doc-starter/app/tsconfig.json +17 -0
  36. package/templates/lupine-template-doc-starter/lupine.json +8 -7
  37. package/templates/lupine-template-doc-starter/web/src/index.html +9 -2
  38. package/templates/lupine-template-doc-starter/web/src/index.tsx +9 -14
  39. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.html +9 -2
  40. package/templates/lupine-template-doc-starter/web/src/lupine-template-doc-starter/index.tsx +4 -20
  41. package/templates/lupine-template-fullstack-note/README.md +83 -0
  42. package/templates/{lupine-template-cv-starter → lupine-template-fullstack-note}/api/package.json +2 -2
  43. package/templates/lupine-template-fullstack-note/api/resources/install.mysql.sql +32 -0
  44. package/templates/lupine-template-fullstack-note/api/resources/install.sqlite.sql +27 -0
  45. package/templates/lupine-template-fullstack-note/api/src/service/answer.ts +39 -0
  46. package/templates/lupine-template-fullstack-note/api/src/service/api.ts +52 -0
  47. package/templates/lupine-template-fullstack-note/api/src/service/db.ts +78 -0
  48. package/templates/lupine-template-fullstack-note/api/src/service/notes-api.ts +86 -0
  49. package/templates/lupine-template-fullstack-note/api/src/service/root-api.ts +19 -0
  50. package/templates/lupine-template-fullstack-note/api/src/service/user-api.ts +182 -0
  51. package/templates/lupine-template-fullstack-note/app/package.json +19 -0
  52. package/templates/lupine-template-fullstack-note/app/src/app.tsx +75 -0
  53. package/templates/lupine-template-fullstack-note/app/src/index.native.tsx +4 -0
  54. package/templates/lupine-template-fullstack-note/app/src/index.test.tsx +373 -0
  55. package/templates/lupine-template-fullstack-note/app/src/index.web.tsx +20 -0
  56. package/templates/lupine-template-fullstack-note/app/src/pages/components.tsx +65 -0
  57. package/templates/lupine-template-fullstack-note/app/src/pages/details.tsx +38 -0
  58. package/templates/lupine-template-fullstack-note/app/src/pages/discover.tsx +25 -0
  59. package/templates/lupine-template-fullstack-note/app/src/pages/home.tsx +76 -0
  60. package/templates/lupine-template-fullstack-note/app/src/pages/inbox.tsx +49 -0
  61. package/templates/lupine-template-fullstack-note/app/src/pages/login.tsx +54 -0
  62. package/templates/lupine-template-fullstack-note/app/src/pages/me.tsx +32 -0
  63. package/templates/lupine-template-fullstack-note/app/src/pages/notes.tsx +128 -0
  64. package/templates/lupine-template-fullstack-note/app/src/pages/settings.tsx +45 -0
  65. package/templates/lupine-template-fullstack-note/app/src/shell/AppMenu.tsx +44 -0
  66. package/templates/lupine-template-fullstack-note/app/src/shell/api.ts +159 -0
  67. package/templates/lupine-template-fullstack-note/app/src/shell/data.ts +20 -0
  68. package/templates/lupine-template-fullstack-note/app/src/shell/locales/ja.ts +80 -0
  69. package/templates/lupine-template-fullstack-note/app/src/shell/locales/zh-CN.ts +80 -0
  70. package/templates/lupine-template-fullstack-note/app/src/shell/texts.ts +14 -0
  71. package/templates/lupine-template-fullstack-note/app/tsconfig.json +17 -0
  72. package/templates/lupine-template-fullstack-note/lupine.json +25 -0
  73. package/templates/lupine-template-fullstack-note/web/assets/favicon.ico +0 -0
  74. package/templates/{lupine-template-doc-starter/api → lupine-template-fullstack-note/web}/package.json +2 -2
  75. package/templates/lupine-template-fullstack-note/web/src/index.html +23 -0
  76. package/templates/lupine-template-fullstack-note/web/src/index.tsx +15 -0
  77. package/templates/lupine-template-fullstack-starter/README.md +64 -14
  78. package/templates/lupine-template-fullstack-starter/api/resources/install.mysql.sql +2 -2
  79. package/templates/lupine-template-fullstack-starter/api/resources/install.sqlite.sql +2 -2
  80. package/templates/lupine-template-fullstack-starter/api/src/service/contact-api.ts +2 -2
  81. package/templates/lupine-template-fullstack-starter/api/src/service/user-api.ts +72 -47
  82. package/templates/lupine-template-fullstack-starter/app/package.json +20 -0
  83. package/templates/lupine-template-fullstack-starter/app/src/app.tsx +76 -0
  84. package/templates/lupine-template-fullstack-starter/app/src/index.native.tsx +4 -0
  85. package/templates/lupine-template-fullstack-starter/app/src/index.test.tsx +276 -0
  86. package/templates/lupine-template-fullstack-starter/app/src/index.web.tsx +28 -0
  87. package/templates/lupine-template-fullstack-starter/app/src/pages/about.tsx +27 -0
  88. package/templates/lupine-template-fullstack-starter/app/src/pages/contact.tsx +41 -0
  89. package/templates/lupine-template-fullstack-starter/app/src/pages/favorite.tsx +27 -0
  90. package/templates/lupine-template-fullstack-starter/app/src/pages/home.tsx +63 -0
  91. package/templates/lupine-template-fullstack-starter/app/src/pages/login.tsx +63 -0
  92. package/templates/lupine-template-fullstack-starter/app/src/pages/mine.tsx +44 -0
  93. package/templates/lupine-template-fullstack-starter/app/src/pages/profile.tsx +58 -0
  94. package/templates/lupine-template-fullstack-starter/app/src/pages/register.tsx +48 -0
  95. package/templates/lupine-template-fullstack-starter/app/src/pages/reset-password.tsx +41 -0
  96. package/templates/lupine-template-fullstack-starter/app/src/pages/settings.tsx +33 -0
  97. package/templates/lupine-template-fullstack-starter/app/src/pages/story.tsx +46 -0
  98. package/templates/lupine-template-fullstack-starter/app/src/shell/api.ts +127 -0
  99. package/templates/lupine-template-fullstack-starter/app/src/shell/parts.tsx +100 -0
  100. package/templates/lupine-template-fullstack-starter/app/src/shell/stories.ts +65 -0
  101. package/templates/lupine-template-fullstack-starter/app/src/shell/texts.ts +79 -0
  102. package/templates/lupine-template-fullstack-starter/app/tsconfig.json +17 -0
  103. package/templates/lupine-template-fullstack-starter/lupine.json +6 -7
  104. package/templates/lupine-template-fullstack-starter/web/src/admin/admin-patch.tsx +34 -0
  105. package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/home-search-component.tsx +18 -25
  106. package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-card.tsx +17 -8
  107. package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-list.tsx +1 -2
  108. package/templates/lupine-template-fullstack-starter/web/src/{admin_dev → admin}/index.html +1 -0
  109. package/templates/lupine-template-fullstack-starter/web/src/{admin_dev → admin}/index.tsx +13 -28
  110. package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-cfg.tsx +23 -19
  111. package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-item-edit.tsx +3 -4
  112. package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-item-list.tsx +2 -3
  113. package/templates/lupine-template-fullstack-starter/web/src/{pages → admin/pages}/admin-user.tsx +15 -20
  114. package/templates/lupine-template-fullstack-starter/web/src/index.html +8 -2
  115. package/templates/lupine-template-fullstack-starter/web/src/index.tsx +11 -150
  116. package/templates/lupine-template-fullstack-starter/web/src/services/fetch-data.ts +7 -25
  117. package/templates/lupine-template-fullstack-starter/web/src/styles/base-css.ts +0 -3
  118. package/templates/lupine-template-fullstack-starter/web/src/styles/theme.ts +1 -2
  119. package/templates/lupine-template-responsive-starter/README.md +46 -2
  120. package/templates/lupine-template-responsive-starter/app/package.json +19 -0
  121. package/templates/lupine-template-responsive-starter/app/src/app.tsx +80 -0
  122. package/templates/lupine-template-responsive-starter/app/src/index.native.tsx +4 -0
  123. package/templates/lupine-template-responsive-starter/app/src/index.test.tsx +283 -0
  124. package/templates/lupine-template-responsive-starter/app/src/index.web.tsx +31 -0
  125. package/templates/lupine-template-responsive-starter/app/src/pages/about.tsx +23 -0
  126. package/templates/lupine-template-responsive-starter/app/src/pages/finance.tsx +48 -0
  127. package/templates/lupine-template-responsive-starter/app/src/pages/mine.tsx +60 -0
  128. package/templates/lupine-template-responsive-starter/app/src/pages/not-found.tsx +9 -0
  129. package/templates/lupine-template-responsive-starter/app/src/pages/note-detail.tsx +43 -0
  130. package/templates/lupine-template-responsive-starter/app/src/pages/note-edit.tsx +45 -0
  131. package/templates/lupine-template-responsive-starter/app/src/pages/note-search.tsx +62 -0
  132. package/templates/lupine-template-responsive-starter/app/src/pages/notes.tsx +71 -0
  133. package/templates/lupine-template-responsive-starter/app/src/pages/settings.tsx +55 -0
  134. package/templates/lupine-template-responsive-starter/app/src/pages/tools.tsx +112 -0
  135. package/templates/lupine-template-responsive-starter/app/src/shell/icons.ts +7 -0
  136. package/templates/lupine-template-responsive-starter/app/src/shell/layout.ts +18 -0
  137. package/templates/lupine-template-responsive-starter/app/src/shell/locales/zh-CN.ts +89 -0
  138. package/templates/lupine-template-responsive-starter/app/src/shell/menu.tsx +81 -0
  139. package/templates/lupine-template-responsive-starter/app/src/shell/nav.ts +12 -0
  140. package/templates/lupine-template-responsive-starter/app/src/shell/store.ts +72 -0
  141. package/templates/lupine-template-responsive-starter/app/src/shell/texts.ts +11 -0
  142. package/templates/lupine-template-responsive-starter/app/tsconfig.json +17 -0
  143. package/templates/lupine-template-responsive-starter/lupine.json +7 -6
  144. package/templates/lupine-template-responsive-starter/web/src/index.html +9 -2
  145. package/templates/lupine-template-responsive-starter/web/src/index.tsx +9 -25
  146. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.html +12 -6
  147. package/templates/lupine-template-responsive-starter/web/src/lupine-template-responsive-starter/index.tsx +12 -22
  148. package/templates/common/apps/server/src/app-loader.ts +0 -4
  149. package/templates/lupine-template-cv-starter/api/resources/config_default.json +0 -6
  150. package/templates/lupine-template-cv-starter/api/resources/install.sqlite.sql +0 -4
  151. package/templates/lupine-template-cv-starter/api/src/index.ts +0 -15
  152. package/templates/lupine-template-cv-starter/web/src/client-env-keys.ts +0 -5
  153. package/templates/lupine-template-cv-starter/web/src/styles/base-css.ts +0 -15
  154. package/templates/lupine-template-doc-starter/api/resources/config_default.json +0 -6
  155. package/templates/lupine-template-doc-starter/api/resources/install.sqlite.sql +0 -4
  156. package/templates/lupine-template-doc-starter/api/src/index.ts +0 -15
  157. package/templates/lupine-template-doc-starter/api/src/resources/config_default.json +0 -6
  158. package/templates/lupine-template-doc-starter/api/src/resources/install.sqlite.sql +0 -4
  159. package/templates/lupine-template-doc-starter/web/src/client-env-keys.ts +0 -5
  160. package/templates/lupine-template-doc-starter/web/src/styles/base-css.ts +0 -15
  161. package/templates/lupine-template-fullstack-starter/web/src/admin_dev/admin-about.tsx +0 -16
  162. package/templates/lupine-template-fullstack-starter/web/src/admin_dev/admin-patch.ts +0 -22
  163. package/templates/lupine-template-fullstack-starter/web/src/components/footer-menu.tsx +0 -52
  164. package/templates/lupine-template-fullstack-starter/web/src/components/footer.tsx +0 -15
  165. package/templates/lupine-template-fullstack-starter/web/src/components/header.tsx +0 -75
  166. package/templates/lupine-template-fullstack-starter/web/src/components/login-code-zh.tsx +0 -162
  167. package/templates/lupine-template-fullstack-starter/web/src/components/login-code.tsx +0 -165
  168. package/templates/lupine-template-fullstack-starter/web/src/components/login-zh.tsx +0 -118
  169. package/templates/lupine-template-fullstack-starter/web/src/components/login.tsx +0 -122
  170. package/templates/lupine-template-fullstack-starter/web/src/components/not-found-page.tsx +0 -12
  171. package/templates/lupine-template-fullstack-starter/web/src/components/register-zh.tsx +0 -161
  172. package/templates/lupine-template-fullstack-starter/web/src/components/register.tsx +0 -163
  173. package/templates/lupine-template-fullstack-starter/web/src/components/reset-password-zh.tsx +0 -166
  174. package/templates/lupine-template-fullstack-starter/web/src/components/reset-password.tsx +0 -177
  175. package/templates/lupine-template-fullstack-starter/web/src/components/user-info.tsx +0 -84
  176. package/templates/lupine-template-fullstack-starter/web/src/frames/admin-page-frame.tsx +0 -48
  177. package/templates/lupine-template-fullstack-starter/web/src/frames/frame1-page-frame.tsx +0 -61
  178. package/templates/lupine-template-fullstack-starter/web/src/frames/frame2-page-frame.tsx +0 -61
  179. package/templates/lupine-template-fullstack-starter/web/src/frames/top-frame.tsx +0 -23
  180. package/templates/lupine-template-fullstack-starter/web/src/frames/user-page-frame.tsx +0 -90
  181. package/templates/lupine-template-fullstack-starter/web/src/models/index.ts +0 -15
  182. package/templates/lupine-template-fullstack-starter/web/src/pages/contact.tsx +0 -105
  183. package/templates/lupine-template-fullstack-starter/web/src/pages/page1-page.tsx +0 -38
  184. package/templates/lupine-template-fullstack-starter/web/src/pages/page2-page.tsx +0 -38
  185. package/templates/lupine-template-fullstack-starter/web/src/pages/user-favorite-page.tsx +0 -58
  186. package/templates/lupine-template-fullstack-starter/web/src/pages/user-home-page.tsx +0 -27
  187. package/templates/lupine-template-fullstack-starter/web/src/pages/user-mine-page.tsx +0 -54
  188. package/templates/lupine-template-fullstack-starter/web/src/pages/user-profile-page-zh.tsx +0 -112
  189. package/templates/lupine-template-fullstack-starter/web/src/pages/user-profile-page.tsx +0 -112
  190. package/templates/lupine-template-fullstack-starter/web/src/pages/user1-page.tsx +0 -57
  191. package/templates/lupine-template-fullstack-starter/web/src/services/shared-data.ts +0 -19
  192. package/templates/lupine-template-fullstack-starter/web/src/styles/app.css +0 -0
  193. package/templates/lupine-template-responsive-starter/api/package.json +0 -6
  194. package/templates/lupine-template-responsive-starter/api/resources/config_default.json +0 -6
  195. package/templates/lupine-template-responsive-starter/api/resources/install.sqlite.sql +0 -4
  196. package/templates/lupine-template-responsive-starter/api/src/service/root-api.ts +0 -18
  197. package/templates/lupine-template-responsive-starter/web/src/app-icons.ts +0 -76
  198. package/templates/lupine-template-responsive-starter/web/src/components/input-history-component.tsx +0 -93
  199. package/templates/lupine-template-responsive-starter/web/src/components/mine-about-page.tsx +0 -87
  200. package/templates/lupine-template-responsive-starter/web/src/components/mine-premium-page.tsx +0 -81
  201. package/templates/lupine-template-responsive-starter/web/src/components/mine-settings-page.tsx +0 -211
  202. package/templates/lupine-template-responsive-starter/web/src/components/mobile-top-search-menu.tsx +0 -107
  203. package/templates/lupine-template-responsive-starter/web/src/components/note-detail.tsx +0 -110
  204. package/templates/lupine-template-responsive-starter/web/src/components/note-edit.tsx +0 -144
  205. package/templates/lupine-template-responsive-starter/web/src/components/note-search-page.tsx +0 -188
  206. package/templates/lupine-template-responsive-starter/web/src/components/search-input.tsx +0 -95
  207. package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +0 -169
  208. package/templates/lupine-template-responsive-starter/web/src/frames/app-responsive-frame.tsx +0 -53
  209. package/templates/lupine-template-responsive-starter/web/src/pages/about-page.tsx +0 -32
  210. package/templates/lupine-template-responsive-starter/web/src/pages/finance-page.tsx +0 -35
  211. package/templates/lupine-template-responsive-starter/web/src/pages/home-page.tsx +0 -444
  212. package/templates/lupine-template-responsive-starter/web/src/pages/mine-page.tsx +0 -318
  213. package/templates/lupine-template-responsive-starter/web/src/pages/tools-page.tsx +0 -35
  214. package/templates/lupine-template-responsive-starter/web/src/services/local-notes-service.ts +0 -87
  215. package/templates/lupine-template-responsive-starter/web/src/services/mine-service.ts +0 -45
  216. package/templates/lupine-template-responsive-starter/web/src/styles/app.css +0 -0
  217. package/templates/lupine-template-responsive-starter/web/src/styles/base-css.ts +0 -65
  218. package/templates/lupine-template-responsive-starter/web/src/styles/global.css +0 -2130
  219. package/templates/lupine-template-responsive-starter/web/src/styles/theme.ts +0 -17
  220. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/01-experience/index.md +0 -0
  221. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/02-projects/index.md +0 -0
  222. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/03-skills/index.md +0 -0
  223. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/04-education/index.md +0 -0
  224. /package/templates/lupine-template-cv-starter/{web → app}/markdown/en/index.md +0 -0
  225. /package/templates/lupine-template-cv-starter/{web → app}/markdown/index.md +0 -0
  226. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/01-experience/index.md +0 -0
  227. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/02-projects/index.md +0 -0
  228. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/03-skills/index.md +0 -0
  229. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/04-education/index.md +0 -0
  230. /package/templates/lupine-template-cv-starter/{web → app}/markdown/zh/index.md +0 -0
  231. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/01-experience/index.html +0 -0
  232. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/02-projects/index.html +0 -0
  233. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/03-skills/index.html +0 -0
  234. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/04-education/index.html +0 -0
  235. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/en/index.html +0 -0
  236. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/index.html +0 -0
  237. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
  238. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/01-experience/index.html +0 -0
  239. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/02-projects/index.html +0 -0
  240. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/03-skills/index.html +0 -0
  241. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/04-education/index.html +0 -0
  242. /package/templates/lupine-template-cv-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
  243. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/index.md +0 -0
  244. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/essentials/list.md +0 -0
  245. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/install.md +0 -0
  246. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/guide/started.md +0 -0
  247. /package/templates/lupine-template-doc-starter/{web → app}/markdown/en/index.md +0 -0
  248. /package/templates/lupine-template-doc-starter/{web → app}/markdown/index.md +0 -0
  249. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/index.md +0 -0
  250. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/essentials/list.md +0 -0
  251. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/install.md +0 -0
  252. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/guide/started.md +0 -0
  253. /package/templates/lupine-template-doc-starter/{web → app}/markdown/zh/index.md +0 -0
  254. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/index.html +0 -0
  255. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/essentials/list.html +0 -0
  256. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/install.html +0 -0
  257. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/guide/started.html +0 -0
  258. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/en/index.html +0 -0
  259. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/index.html +0 -0
  260. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/markdown-config.ts +0 -0
  261. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/index.html +0 -0
  262. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/essentials/list.html +0 -0
  263. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/install.html +0 -0
  264. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/guide/started.html +0 -0
  265. /package/templates/lupine-template-doc-starter/{web → app}/src/markdown-built/zh/index.html +0 -0
  266. /package/templates/{lupine-template-responsive-starter → lupine-template-fullstack-note}/api/src/index.ts +0 -0
  267. /package/templates/lupine-template-fullstack-starter/{web/assets/images → app/assets}/sample.png +0 -0
  268. /package/templates/lupine-template-fullstack-starter/web/src/{components → admin/components}/story-props.ts +0 -0
@@ -1,87 +0,0 @@
1
- import { CssProps } from 'lupine.web';
2
- import { HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.web.components';
3
-
4
- export const MineAboutContent = () => {
5
- const css: CssProps = {
6
- flex: 1,
7
- overflowY: 'auto',
8
- padding: '32px 24px',
9
- backgroundColor: 'var(--primary-bg-color)',
10
- display: 'flex',
11
- flexDirection: 'column',
12
- alignItems: 'center',
13
-
14
- '.about-logo': {
15
- width: '80px',
16
- height: '80px',
17
- borderRadius: '20px',
18
- backgroundColor: 'var(--primary-accent-color)',
19
- color: 'white',
20
- display: 'flex',
21
- alignItems: 'center',
22
- justifyContent: 'center',
23
- fontSize: '48px',
24
- marginBottom: '16px',
25
- boxShadow: '0 4px 12px rgba(24, 144, 255, 0.3)',
26
- },
27
- '.about-title': {
28
- fontSize: '24px',
29
- fontWeight: 'bold',
30
- color: 'var(--primary-color)',
31
- marginBottom: '8px',
32
- },
33
- '.about-version': {
34
- fontSize: '14px',
35
- color: 'var(--secondary-color)',
36
- marginBottom: '32px',
37
- },
38
- '.about-content': {
39
- fontSize: '16px',
40
- color: 'var(--primary-color)',
41
- lineHeight: '1.8',
42
- textAlign: 'center',
43
- marginBottom: '32px',
44
- maxWidth: '500px',
45
- whiteSpace: 'pre-wrap',
46
- },
47
- '.about-link': {
48
- color: 'var(--primary-accent-color)',
49
- textDecoration: 'none',
50
- fontWeight: 'bold',
51
- padding: '12px 24px',
52
- border: '1px solid var(--primary-accent-color)',
53
- borderRadius: '24px',
54
- transition: 'all 0.2s',
55
- '&:active': {
56
- backgroundColor: 'rgba(24, 144, 255, 0.1)',
57
- },
58
- },
59
- };
60
-
61
- const textContent = `This is a demo application built for the full-stack framework Lupine.js.
62
- Using this template alongside AI, you can rapidly build and deploy cross-platform applications.`;
63
-
64
- return (
65
- <div css={css} class='about-page-wrapper no-scrollbar-container flex-col h-100'>
66
- <div class='about-logo'>
67
- <i class='ifc-icon ma-text-box-outline'></i>
68
- </div>
69
- <div class='about-title'>Lupine Note Starter</div>
70
- <div class='about-version'>Version 1.0.0</div>
71
-
72
- <div class='about-content'>{textContent}</div>
73
-
74
- <a class='about-link' href='https://github.com/uuware/lupine.js' target='_blank'>
75
- Learn More
76
- </a>
77
- </div>
78
- );
79
- };
80
-
81
- export const MineAboutPage = (props: { sliderFrameHook?: SliderFrameHookProps }) => {
82
- return (
83
- <HeaderWithBackFrame title='About' onBack={(e: Event) => props.sliderFrameHook?.close!(e)}>
84
- <MineAboutContent />
85
- </HeaderWithBackFrame>
86
- );
87
- };
@@ -1,81 +0,0 @@
1
- import { CssProps } from 'lupine.web';
2
- import { HeaderWithBackFrame, SliderFrameHookProps } from 'lupine.web.components';
3
-
4
- export const MinePremiumPage = (props: { sliderFrameHook: SliderFrameHookProps }) => {
5
- const css: CssProps = {
6
- flex: 1,
7
- overflowY: 'auto',
8
- padding: '32px 24px',
9
- backgroundColor: 'var(--primary-bg-color)',
10
- display: 'flex',
11
- flexDirection: 'column',
12
- alignItems: 'center',
13
-
14
- '.premium-logo': {
15
- width: '80px',
16
- height: '80px',
17
- borderRadius: '20px',
18
- background: 'linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%)',
19
- color: '#FFD700',
20
- display: 'flex',
21
- alignItems: 'center',
22
- justifyContent: 'center',
23
- fontSize: '48px',
24
- marginBottom: '16px',
25
- boxShadow: '0 4px 12px rgba(255, 154, 158, 0.3)',
26
- },
27
- '.premium-title': {
28
- fontSize: '24px',
29
- fontWeight: 'bold',
30
- color: 'var(--primary-color)',
31
- marginBottom: '8px',
32
- },
33
- '.premium-version': {
34
- fontSize: '14px',
35
- color: 'var(--secondary-color)',
36
- marginBottom: '32px',
37
- },
38
- '.premium-content': {
39
- fontSize: '16px',
40
- color: 'var(--primary-color)',
41
- lineHeight: '1.8',
42
- textAlign: 'center',
43
- marginBottom: '32px',
44
- maxWidth: '500px',
45
- whiteSpace: 'pre-wrap',
46
- },
47
- '.premium-link': {
48
- color: 'var(--primary-accent-color)',
49
- textDecoration: 'none',
50
- fontWeight: 'bold',
51
- padding: '12px 24px',
52
- border: '1px solid var(--primary-accent-color)',
53
- borderRadius: '24px',
54
- transition: 'all 0.2s',
55
- '&:active': {
56
- backgroundColor: 'rgba(24, 144, 255, 0.1)',
57
- },
58
- },
59
- };
60
-
61
- const textContent = `This is a demo application built for the full-stack framework Lupine.js.
62
- If you need customized special functions or premium features, please click the button below to open the github open source link and raise an issue.`;
63
-
64
- return (
65
- <HeaderWithBackFrame title='Premium Demo' onBack={(e: Event) => props.sliderFrameHook.close!(e)}>
66
- <div css={css} class='premium-page-wrapper no-scrollbar-container flex-col h-100'>
67
- <div class='premium-logo'>
68
- <i class='ifc-icon ma-star'></i>
69
- </div>
70
- <div class='premium-title'>Premium Features</div>
71
- <div class='premium-version'>Unlock the Full Potential</div>
72
-
73
- <div class='premium-content'>{textContent}</div>
74
-
75
- <a class='premium-link' href='https://github.com/uuware/lupine.js/issues/new' target='_blank'>
76
- Request Custom Features
77
- </a>
78
- </div>
79
- </HeaderWithBackFrame>
80
- );
81
- };
@@ -1,211 +0,0 @@
1
- import { createSignal, CssProps, refreshPage } from 'lupine.web';
2
- import {
3
- ActionSheetSelect,
4
- HeaderWithBackFrame,
5
- NotificationColor,
6
- NotificationMessage,
7
- SliderFrame,
8
- SliderFrameHookProps,
9
- ToggleSwitch,
10
- ToggleSwitchSize,
11
- } from 'lupine.web.components';
12
- import { MineService } from '../services/mine-service';
13
- import { MineAboutPage } from './mine-about-page';
14
-
15
- export const MineSettingsPage = (props: { sliderFrameHook: SliderFrameHookProps; onDataChanged: () => void }) => {
16
- const innerSliderHook: SliderFrameHookProps = {};
17
-
18
- const onClearAll = async () => {
19
- await ActionSheetSelect.show({
20
- title: 'DANGER: Are you sure you want to permanently delete ALL local data? This cannot be undone.',
21
- options: ['Erase Everything'],
22
- cancelButtonText: 'Cancel',
23
- handleClicked: async (index: number, close: () => void) => {
24
- close();
25
- if (index === 0) {
26
- MineService.clearAllData();
27
- props.onDataChanged();
28
- }
29
- },
30
- });
31
- };
32
-
33
- const onClearCache = async () => {
34
- // Fake mock loading for UX
35
- const loader = document.createElement('div');
36
- loader.style.position = 'fixed';
37
- loader.style.top = '50%';
38
- loader.style.left = '50%';
39
- loader.style.transform = 'translate(-50%, -50%)';
40
- loader.style.background = 'rgba(0,0,0,0.8)';
41
- loader.style.color = '#fff';
42
- loader.style.padding = '16px 24px';
43
- loader.style.borderRadius = '8px';
44
- loader.style.zIndex = '9999';
45
- loader.innerText = 'Clearing cache...';
46
- document.body.appendChild(loader);
47
-
48
- setTimeout(() => {
49
- document.body.removeChild(loader);
50
- NotificationMessage.sendMessage('Cache cleared.', NotificationColor.Success);
51
- }, 800);
52
- };
53
-
54
- const renderContent = () => {
55
- const css: CssProps = {
56
- display: 'flex',
57
- flexDirection: 'column',
58
- flex: '1',
59
- padding: '0 16px',
60
- backgroundColor: 'var(--secondary-bg-color)',
61
- overflowY: 'auto',
62
-
63
- '.setting-section-group': {
64
- marginBottom: '24px',
65
- },
66
- '.setting-section-title': {
67
- fontSize: '14px',
68
- color: 'var(--secondary-color)',
69
- marginBottom: '8px',
70
- paddingLeft: '16px',
71
- marginTop: '16px',
72
- },
73
- '.setting-section-block': {
74
- backgroundColor: 'var(--primary-bg-color)',
75
- borderRadius: '12px',
76
- overflow: 'hidden',
77
- },
78
- '.setting-section-item': {
79
- display: 'flex',
80
- alignItems: 'center',
81
- justifyContent: 'space-between',
82
- padding: '16px',
83
- borderBottom: '1px solid var(--primary-border-color)',
84
- cursor: 'pointer',
85
- transition: 'background-color 0.2s',
86
- },
87
- '.setting-section-item:last-child': {
88
- borderBottom: 'none',
89
- },
90
- '.setting-section-item:active': {
91
- backgroundColor: 'rgba(0,0,0,0.02)',
92
- },
93
- '.setting-section-item-text': {
94
- fontSize: '16px',
95
- color: 'var(--primary-color)',
96
- },
97
- '.setting-section-item-text.danger': {
98
- color: '#ff4d4f',
99
- },
100
- '.setting-section-item-icon': {
101
- color: 'var(--secondary-color)',
102
- opacity: 0.5,
103
- },
104
- 'a.setting-section-item': {
105
- textDecoration: 'none',
106
- },
107
- };
108
-
109
- return (
110
- <div css={css} class='user-settings-top'>
111
- <div class='setting-section-group'>
112
- <div class='setting-section-title'>App Layout</div>
113
- <div class='setting-section-block'>
114
- <div class='setting-section-item'>
115
- <div class='setting-section-item-text'>
116
- <div style={{ fontWeight: 'bold' }}>Desktop Menu</div>
117
- <div style={{ fontSize: '14px', color: 'var(--secondary-color)', marginTop: '4px' }}>
118
- {((typeof localStorage === 'object' && localStorage.getItem('app-layout')) || 'tabs') === 'sidemenu' ? 'Sidebar Menu' : 'Bottom Tabs'}
119
- </div>
120
- </div>
121
- <div class='setting-section-item-icon' style={{ opacity: 1 }}>
122
- <ToggleSwitch
123
- size={ToggleSwitchSize.Medium}
124
- checked={((typeof localStorage === 'object' && localStorage.getItem('app-layout')) || 'tabs') === 'sidemenu'}
125
- disabled={false}
126
- onClick={async (v) => {
127
- const newLayout = v ? 'sidemenu' : 'tabs';
128
- localStorage.setItem('app-layout', newLayout);
129
- setDom(renderContent()); // Re-render first
130
-
131
- await ActionSheetSelect.show({
132
- title: 'Layout changed. Restart app to apply?',
133
- options: ['Restart Now'],
134
- cancelButtonText: 'Later',
135
- handleClicked: async (index: number, close: () => void) => {
136
- close();
137
- if (index === 0) {
138
- await refreshPage('/');
139
- }
140
- },
141
- });
142
- }}
143
- />
144
- </div>
145
- </div>
146
- </div>
147
- </div>
148
-
149
- <div class='setting-section-group'>
150
- <div class='setting-section-title'>Application</div>
151
- <div class='setting-section-block'>
152
- <a
153
- class='setting-section-item'
154
- href='javascript:void(0)'
155
- onClick={() => {
156
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
157
- }}
158
- >
159
- <div class='setting-section-item-text'>Feedback & Support</div>
160
- <div class='setting-section-item-icon'>
161
- <i class='ifc-icon ma-chevron-right' />
162
- </div>
163
- </a>
164
- <div class='setting-section-item' onClick={onClearCache}>
165
- <div class='setting-section-item-text'>Clear Temporary Cache</div>
166
- <div class='setting-section-item-icon'>
167
- <i class='ifc-icon ma-chevron-right' />
168
- </div>
169
- </div>
170
- <div
171
- class='setting-section-item'
172
- onClick={() => {
173
- // props.sliderFrameHook.addClass!('desktop-slide-left');
174
- // innerSliderHook.addClass!('desktop-slide-right');
175
- innerSliderHook.load!(<MineAboutPage sliderFrameHook={innerSliderHook} />);
176
- }}
177
- >
178
- <div class='setting-section-item-text'>About</div>
179
- <div class='setting-section-item-icon'>
180
- <i class='ifc-icon ma-chevron-right' />
181
- </div>
182
- </div>
183
- </div>
184
- </div>
185
-
186
- <div class='setting-section-group'>
187
- <div class='setting-section-title text-danger'>Danger Zone</div>
188
- <div class='setting-section-block'>
189
- <div class='setting-section-item' onClick={onClearAll}>
190
- <div class='setting-section-item-text danger'>Clear All Application Data</div>
191
- <div class='setting-section-item-icon'>
192
- <i class='ifc-icon ma-delete-outline text-danger' />
193
- </div>
194
- </div>
195
- </div>
196
- </div>
197
- </div>
198
- );
199
- };
200
-
201
- const [dom, setDom] = createSignal<any>(renderContent());
202
-
203
- return (
204
- <HeaderWithBackFrame title='Settings' onBack={(event) => props.sliderFrameHook.close!(event)}>
205
- <>
206
- <SliderFrame hook={innerSliderHook} />
207
- {dom}
208
- </>
209
- </HeaderWithBackFrame>
210
- );
211
- };
@@ -1,107 +0,0 @@
1
- import { createSignal, CssProps, flush } from 'lupine.web';
2
- import { MobileTopSysIcon } from 'lupine.web.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 [searchMode, setSearchMode] = createSignal(false);
64
- let input!: HTMLInputElement;
65
-
66
- const toggleSearchMode = () => {
67
- setSearchMode(!searchMode());
68
- if (searchMode()) {
69
- flush(); // it can't get the focus while it is hidden
70
- input.focus();
71
- } else {
72
- // Clear search when canceling
73
- input.value = '';
74
- NoteSearchHelper.triggerSearch?.('');
75
- }
76
- };
77
-
78
- return (
79
- <div css={css} class={() => `mobile-top-menu-box ${searchMode() ? 'show-search' : ''}`}>
80
- <div class='mobile-top-menu-left'>
81
- <div class='mobile-title'>Notes</div>
82
- <div class='mtm-input-group'>
83
- <input
84
- ref={(el) => (input = el)}
85
- type='text'
86
- spellcheck={false}
87
- class='mtm-input-box'
88
- placeholder='Search notes...'
89
- autocomplete='off'
90
- onKeyUp={(e) => e.key === 'Enter' && NoteSearchHelper.triggerSearch?.(input.value)}
91
- />
92
- </div>
93
- </div>
94
- <div class='mobile-top-menu-right'>
95
- <div class='mtm-search-cancel' onClick={toggleSearchMode}>
96
- Cancel
97
- </div>
98
- <div class='mtm-search-icon' onClick={toggleSearchMode}>
99
- <i class='ifc-icon bs-search'></i>
100
- </div>
101
- <div class='mtm-menu-icon'>
102
- <MobileTopSysIcon />
103
- </div>
104
- </div>
105
- </div>
106
- );
107
- };
@@ -1,110 +0,0 @@
1
- import { CssProps, PageProps } from 'lupine.web';
2
- import { SliderFrameHookProps, HeaderWithBackFrame, ActionSheetSelect } from 'lupine.web.components';
3
- import { LocalNoteProps, LocalNotesService } from '../services/local-notes-service';
4
- import { NoteEditComponent } from './note-edit';
5
-
6
- interface NoteDetailProps {
7
- note: LocalNoteProps;
8
- sliderFrameHook: SliderFrameHookProps;
9
- onSaved: () => void;
10
- }
11
-
12
- export const NoteDetailComponent = async (props: NoteDetailProps) => {
13
- const css: CssProps = {
14
- flex: 1,
15
- overflowY: 'auto',
16
- padding: '24px',
17
- backgroundColor: 'var(--primary-bg-color)',
18
-
19
- '.note-detail-title': {
20
- fontSize: '24px',
21
- fontWeight: 'bold',
22
- color: 'var(--primary-color)',
23
- marginBottom: '12px',
24
- lineHeight: '1.4',
25
- },
26
- '.note-detail-date': {
27
- fontSize: '13px',
28
- color: 'var(--secondary-color)',
29
- },
30
- '.note-detail-meta': {
31
- display: 'flex',
32
- gap: '12px',
33
- alignItems: 'center',
34
- marginBottom: '24px',
35
- paddingBottom: '16px',
36
- borderBottom: '1px solid var(--primary-border-color)',
37
- },
38
- '.note-detail-content': {
39
- fontSize: '16px',
40
- color: 'var(--primary-color)',
41
- lineHeight: '1.6',
42
- whiteSpace: 'pre-wrap',
43
- wordBreak: 'break-word',
44
- },
45
- '.header-action-icon': {
46
- fontSize: '20px',
47
- padding: '4px',
48
- cursor: 'pointer',
49
- color: 'var(--primary-color)',
50
- },
51
- '.header-actions-container': {
52
- display: 'flex',
53
- gap: '16px',
54
- alignItems: 'center',
55
- },
56
- '.header-action-delete': {
57
- color: '#ff4d4f',
58
- },
59
- '.note-detail-color-marker': {
60
- width: '16px',
61
- height: '16px',
62
- borderRadius: '4px',
63
- },
64
- };
65
-
66
- const onEdit = () => {
67
- // Open edit component and pass the current note
68
- props.sliderFrameHook.load!(
69
- <NoteEditComponent note={props.note} sliderFrameHook={props.sliderFrameHook} onSaved={props.onSaved} />
70
- );
71
- };
72
-
73
- const onDelete = async () => {
74
- await ActionSheetSelect.show({
75
- title: 'Are you sure you want to delete this note?',
76
- options: ['Remove'],
77
- cancelButtonText: 'Cancel',
78
- handleClicked: async (index: number, close: () => void) => {
79
- close();
80
- if (index === 0) {
81
- LocalNotesService.deleteNote(props.note.id);
82
- props.onSaved(); // trigger list refresh
83
- props.sliderFrameHook.close!(new MouseEvent('click')); // close detail view
84
- }
85
- },
86
- });
87
- };
88
-
89
- const pageRight = (
90
- <div class='header-actions-container'>
91
- <i class='ifc-icon ma-pencil-outline header-action-icon' onClick={onEdit}></i>
92
- <i class='ifc-icon ma-delete-off-outline header-action-icon header-action-delete' onClick={onDelete}></i>
93
- </div>
94
- );
95
-
96
- return (
97
- <HeaderWithBackFrame title='Details' onBack={(e: Event) => props.sliderFrameHook.close!(e)} right={pageRight}>
98
- <div css={css} class='note-detail-wrapper no-scrollbar-container flex-col h-100'>
99
- <div class='note-detail-title'>{props.note.title}</div>
100
- <div class='note-detail-meta'>
101
- {props.note.color && (
102
- <div class='note-detail-color-marker' style={{ backgroundColor: props.note.color }}></div>
103
- )}
104
- <div class='note-detail-date'>{new Date(props.note.updatedAt).toLocaleString()}</div>
105
- </div>
106
- <div class='note-detail-content'>{props.note.content}</div>
107
- </div>
108
- </HeaderWithBackFrame>
109
- );
110
- };