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,35 +0,0 @@
1
- import { CssProps, PageProps } from 'lupine.web';
2
- import { MobileHeaderCenter, MobileHeaderEmptyIcon, MobileHeaderTitleIcon, MobileTopSysIcon } from 'lupine.web.components';
3
-
4
- export const FinancePage = async (props: PageProps) => {
5
- const css: CssProps = {
6
- display: 'flex',
7
- flexDirection: 'column',
8
- height: '100%',
9
- position: 'relative',
10
- '.finance-list-container': {
11
- padding: '32px 24px',
12
- display: 'flex',
13
- flexDirection: 'column',
14
- alignItems: 'center',
15
- },
16
- };
17
-
18
- return (
19
- <div css={css}>
20
- <MobileHeaderCenter>
21
- <MobileHeaderTitleIcon
22
- title='Finance'
23
- left={<MobileHeaderEmptyIcon />}
24
- right={
25
- <div class='flex-center-gap-12'>
26
- <MobileTopSysIcon />
27
- </div>
28
- }
29
- />
30
- </MobileHeaderCenter>
31
-
32
- <div class='finance-list-container no-scrollbar-container'>This is a finance demo page.</div>
33
- </div>
34
- );
35
- };
@@ -1,444 +0,0 @@
1
- import { createSignal, CssProps, onMount, PageProps } from 'lupine.web';
2
- import {
3
- MobileHeaderCenter,
4
- MobileHeaderTitleIcon,
5
- SliderFrame,
6
- SliderFrameHookProps,
7
- MobileHeaderEmptyIcon,
8
- MobileTopSysIcon,
9
- ActionSheetSelect,
10
- createDragUtil,
11
- DomUtils,
12
- } from 'lupine.web.components';
13
- import { NoteSearchComponent } from '../components/note-search-page';
14
- import { LocalNoteProps, LocalNotesService } from '../services/local-notes-service';
15
- import { NoteEditComponent } from '../components/note-edit';
16
- import { NoteDetailComponent } from '../components/note-detail';
17
-
18
- const extractText = (html: string) => {
19
- const tmp = document.createElement('DIV');
20
- tmp.innerHTML = html;
21
- return tmp.textContent || tmp.innerText || '';
22
- };
23
-
24
- export const HomePage = async (props: PageProps) => {
25
- let currentSearchQuery = '';
26
- const [dom, setDom] = createSignal<any>('');
27
- const sliderFrameHook: SliderFrameHookProps = {};
28
-
29
- let draggedAmount = 0;
30
- let menuClosedJustNow = false;
31
-
32
- const onOpenSearch = () => {
33
- resetSwipeMenus();
34
- sliderFrameHook.load!(<NoteSearchComponent sliderFrameHook={sliderFrameHook} />);
35
- };
36
-
37
- const onAddNote = () => {
38
- sliderFrameHook.load!(<NoteEditComponent sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
39
- resetSwipeMenus();
40
- };
41
-
42
- const onEditNote = (note: LocalNoteProps) => {
43
- sliderFrameHook.load!(<NoteEditComponent note={note} sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
44
- };
45
-
46
- const onViewNote = (note: LocalNoteProps) => {
47
- resetSwipeMenus();
48
- sliderFrameHook.load!(<NoteDetailComponent note={note} sliderFrameHook={sliderFrameHook} onSaved={refreshList} />);
49
- };
50
-
51
- const onDeleteNote = async (id: number, e: Event) => {
52
- e.stopPropagation(); // prevent edit trigger
53
- await ActionSheetSelect.show({
54
- title: 'Are you sure you want to delete this note?',
55
- options: ['Remove'],
56
- cancelButtonText: 'Cancel',
57
- handleClicked: async (index: number, close: () => void) => {
58
- close();
59
- if (index === 0) {
60
- LocalNotesService.deleteNote(id);
61
- refreshList();
62
- }
63
- },
64
- });
65
- };
66
-
67
- const dragUtil = createDragUtil();
68
- dragUtil.setOnMoveCallback((clientX, clientY, movedX) => {
69
- const dragDom = dragUtil.getDraggingDom();
70
- if (!dragDom) return;
71
-
72
- if (dragDom.classList.contains('note-card')) {
73
- let translateX = movedX;
74
- if (translateX > 0) translateX = 0;
75
- if (translateX < -100) translateX = -100;
76
- dragDom.style.transform = `translateX(${translateX}px)`;
77
- draggedAmount = Math.abs(movedX);
78
-
79
- const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
80
- if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
81
- actionLayer.style.opacity = translateX < -5 ? '1' : '0';
82
- }
83
- } else if (dragDom.classList.contains('note-card-drag-handle')) {
84
- resetSwipeMenus();
85
- const cardWrapper = dragDom.closest('.note-card-wrapper') as HTMLDivElement;
86
- if (!cardWrapper) return;
87
-
88
- // visual feedback for dragging
89
- cardWrapper.style.opacity = '0.9';
90
- cardWrapper.style.transform = 'scale(1.02)';
91
- cardWrapper.style.boxShadow = '0 12px 24px rgba(0,0,0,0.15)';
92
- cardWrapper.style.outline = '2px solid var(--primary-accent-color)';
93
- cardWrapper.style.zIndex = '100';
94
-
95
- const container = DomUtils.bySelector('.note-list-container') as HTMLDivElement;
96
- if (!container) return;
97
-
98
- const cards = container.querySelectorAll('.note-card-wrapper') as NodeListOf<HTMLDivElement>;
99
- if (cards.length <= 1) return;
100
- const rect = container.getBoundingClientRect();
101
- const relativeY = clientY - rect.top + container.scrollTop;
102
-
103
- let index = -1;
104
- for (let i = 0; i < cards.length; i++) {
105
- const cardTop = cards[i].offsetTop;
106
- const cardBottom = cardTop + cards[i].offsetHeight;
107
- if (relativeY >= cardTop && relativeY <= cardBottom) {
108
- index = i;
109
- break;
110
- }
111
- }
112
-
113
- if (index >= 0) {
114
- const targetCard = cards[index];
115
- if (cardWrapper !== targetCard) {
116
- let index2 = -1;
117
- for (let i = 0; i < cards.length; i++) {
118
- if (cards[i] === cardWrapper) {
119
- index2 = i;
120
- break;
121
- }
122
- }
123
- if (index2 >= 0) {
124
- if (index2 < index) {
125
- targetCard.parentNode?.insertBefore(cardWrapper, targetCard.nextSibling);
126
- } else {
127
- targetCard.parentNode?.insertBefore(cardWrapper, targetCard);
128
- }
129
- }
130
- }
131
- }
132
- // Set grabbed amount explicitly to avoid triggering any click events later
133
- draggedAmount = 100;
134
- }
135
- });
136
-
137
- dragUtil.setOnMoveEndCallback(() => {
138
- const dragDom = dragUtil.getDraggingDom();
139
- if (!dragDom) return;
140
-
141
- if (dragDom.classList.contains('note-card')) {
142
- const currentTransform = dragDom.style.transform;
143
- const match = currentTransform.match(/translateX\(([-\d\.]+)px\)/);
144
- if (match) {
145
- const x = parseFloat(match[1]);
146
- if (x < -50) {
147
- dragDom.style.transform = `translateX(-100px)`;
148
- } else {
149
- dragDom.style.transform = `translateX(0px)`;
150
- const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
151
- if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
152
- actionLayer.style.opacity = '0';
153
- }
154
- }
155
- } else {
156
- dragDom.style.transform = `translateX(0px)`;
157
- const actionLayer = dragDom.previousElementSibling as HTMLDivElement;
158
- if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
159
- actionLayer.style.opacity = '0';
160
- }
161
- }
162
- } else if (dragDom.classList.contains('note-card-drag-handle')) {
163
- const cardWrapper = dragDom.closest('.note-card-wrapper') as HTMLDivElement;
164
- if (cardWrapper) {
165
- cardWrapper.style.opacity = '1';
166
- cardWrapper.style.transform = 'scale(1)';
167
- cardWrapper.style.boxShadow = '0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05)';
168
- cardWrapper.style.outline = 'none';
169
- cardWrapper.style.zIndex = '';
170
- }
171
-
172
- const container = DomUtils.bySelector('.note-list-container') as HTMLDivElement;
173
- if (!container) return;
174
- const cards = container.querySelectorAll('.note-card') as NodeListOf<HTMLDivElement>;
175
- const newOrderIds: number[] = [];
176
- cards.forEach((c) => newOrderIds.push(parseInt(c.getAttribute('data-id') || '0')));
177
- if (newOrderIds.length > 0) {
178
- LocalNotesService.updateNoteOrders(newOrderIds);
179
- }
180
- }
181
- });
182
-
183
- const resetSwipeMenus = (excludeId?: number): boolean => {
184
- let closedAny = false;
185
- const cards = document.querySelectorAll('.note-list-container .note-card') as NodeListOf<HTMLDivElement>;
186
- cards.forEach((c) => {
187
- if (excludeId !== undefined) {
188
- const id = parseInt(c.getAttribute('data-id') || '-1');
189
- if (id === excludeId) return;
190
- }
191
- const transform = c.style.transform;
192
- const match = transform.match(/translateX\(([-\d\.]+)px\)/);
193
- if (match && parseFloat(match[1]) < -5) {
194
- c.style.transform = 'translateX(0px)';
195
- const actionLayer = c.previousElementSibling as HTMLDivElement;
196
- if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
197
- actionLayer.style.opacity = '0';
198
- }
199
- closedAny = true;
200
- }
201
- });
202
-
203
- return closedAny;
204
- };
205
-
206
- const handleBgTouch = (e: Event) => {
207
- let target = e.target as Element;
208
- if (target && target.closest && target.closest('.action-btn')) return;
209
- if (target && target.closest && target.closest('.note-card')) return;
210
- resetSwipeMenus();
211
- };
212
-
213
- const refreshList = () => {
214
- const allNotes = LocalNotesService.getAllNotes();
215
- const filteredNotes = currentSearchQuery
216
- ? allNotes.filter(
217
- (n) =>
218
- n.title.toLowerCase().includes(currentSearchQuery.toLowerCase()) ||
219
- n.content.toLowerCase().includes(currentSearchQuery.toLowerCase())
220
- )
221
- : allNotes;
222
-
223
- if (filteredNotes.length === 0) {
224
- setDom(<div class='note-empty-state'>No search results</div>);
225
- return;
226
- }
227
-
228
- setDom(
229
- <div class='note-list-container' style={{ position: 'relative' }}>
230
- {filteredNotes.map((note) => (
231
- <div class='note-card-wrapper'>
232
- <div class='note-card-actions-layer'>
233
- <div
234
- class='action-btn edit-btn'
235
- onClick={(e) => {
236
- e.stopPropagation();
237
- onEditNote(note);
238
- }}
239
- >
240
- <i class='ifc-icon ma-pencil-outline' />
241
- </div>
242
- <div
243
- class='action-btn delete-btn'
244
- onClick={(e) => {
245
- onDeleteNote(note.id, e);
246
- }}
247
- >
248
- <i class='ifc-icon ma-delete-off-outline' />
249
- </div>
250
- </div>
251
- <div
252
- class='note-card row-box'
253
- style={{ borderLeft: note.color ? `6px solid ${note.color}` : '' }}
254
- data-id={note.id}
255
- onMouseDown={(e) => {
256
- resetSwipeMenus(note.id);
257
- draggedAmount = 0;
258
- dragUtil.onMouseDown(e);
259
- }}
260
- onTouchStart={(e) => {
261
- resetSwipeMenus(note.id);
262
- draggedAmount = 0;
263
- dragUtil.onTouchStart(e);
264
- }}
265
- onClick={(e) => {
266
- if (draggedAmount > 5) return;
267
- const cardDom = e.currentTarget as HTMLElement;
268
- const transform = cardDom.style.transform;
269
- const match = transform.match(/translateX\(([-\d\.]+)px\)/);
270
- if (match && parseFloat(match[1]) < -5) {
271
- // user clicked the opened card itself, just close it
272
- cardDom.style.transform = 'translateX(0px)';
273
- const actionLayer = cardDom.previousElementSibling as HTMLDivElement;
274
- if (actionLayer && actionLayer.classList.contains('note-card-actions-layer')) {
275
- actionLayer.style.opacity = '0';
276
- }
277
- return;
278
- }
279
- const closedOther = resetSwipeMenus();
280
- if (closedOther) return; // if it was open on another card, swallow the click
281
- onViewNote(note);
282
- }}
283
- >
284
- <div class='note-card-content flex-1' style={{ minWidth: 0 }}>
285
- <div class='note-card-title'>{note.title}</div>
286
- <div class='note-card-preview ellipsis'>{extractText(note.content)}</div>
287
- <div class='note-card-date'>{new Date(note.updatedAt).toLocaleString()}</div>
288
- </div>
289
- <div
290
- class='note-card-drag-handle'
291
- onMouseDown={(e) => {
292
- e.stopPropagation();
293
- dragUtil.onMouseDown(e);
294
- }}
295
- onTouchStart={(e) => {
296
- e.stopPropagation();
297
- dragUtil.onTouchStart(e);
298
- }}
299
- >
300
- <i class='ifc-icon bs-list' />
301
- </div>
302
- </div>
303
- </div>
304
- ))}
305
- </div>
306
- );
307
- };
308
-
309
- onMount(() => refreshList());
310
-
311
- const css: CssProps = {
312
- display: 'flex',
313
- flexDirection: 'column',
314
- height: '100%',
315
- position: 'relative',
316
-
317
- '.note-home-scroll': {
318
- flex: 1,
319
- overflowY: 'auto',
320
- padding: '16px',
321
- },
322
- '.note-empty-state': {
323
- display: 'flex',
324
- justifyContent: 'center',
325
- alignItems: 'center',
326
- height: '100%',
327
- color: 'var(--secondary-color)',
328
- fontSize: '16px',
329
- },
330
- '.note-card': {
331
- backgroundColor: 'var(--primary-bg-color)',
332
- borderRadius: '12px',
333
- padding: '16px',
334
- cursor: 'pointer',
335
- alignItems: 'center',
336
- transition: 'transform 0.2s ease, box-shadow 0.2s ease',
337
- position: 'relative',
338
- zIndex: 2,
339
- },
340
- '.note-card-actions-layer': {
341
- position: 'absolute',
342
- top: 0,
343
- left: 0,
344
- right: 0,
345
- bottom: 0,
346
- display: 'flex',
347
- justifyContent: 'flex-end',
348
- alignItems: 'center',
349
- zIndex: 1,
350
- backgroundColor: 'transparent', // explicitly prevent background bleeding
351
- borderRadius: '12px',
352
- overflow: 'hidden',
353
- opacity: 0,
354
- transition: 'opacity 0.2s ease',
355
- },
356
- '.action-btn': {
357
- height: '100%',
358
- width: '50px',
359
- display: 'flex',
360
- alignItems: 'center',
361
- justifyContent: 'center',
362
- color: 'white',
363
- cursor: 'pointer',
364
- },
365
- '.action-btn.edit-btn': { backgroundColor: 'var(--primary-accent-color)' },
366
- '.action-btn.delete-btn': {
367
- backgroundColor: '#ff4d4f',
368
- borderTopRightRadius: '12px',
369
- borderBottomRightRadius: '12px',
370
- },
371
- '.action-btn i': { color: 'white' },
372
- '.note-card-drag-handle': {
373
- padding: '8px',
374
- cursor: 'grab',
375
- color: 'var(--secondary-color)',
376
- opacity: 0.5,
377
- zIndex: 10,
378
- },
379
- '.note-card-drag-handle:active': { cursor: 'grabbing' },
380
- '.note-card-title': {
381
- fontSize: '16px',
382
- fontWeight: 'bold',
383
- color: 'var(--primary-color)',
384
- marginBottom: '4px',
385
- whiteSpace: 'nowrap',
386
- overflow: 'hidden',
387
- textOverflow: 'ellipsis',
388
- },
389
- '.note-card-preview': {
390
- fontSize: '14px',
391
- color: 'var(--secondary-color)',
392
- marginBottom: '6px',
393
- display: '-webkit-box',
394
- WebkitLineClamp: 2,
395
- WebkitBoxOrient: 'vertical',
396
- overflow: 'hidden',
397
- },
398
- '.note-card-date': {
399
- fontSize: '12px',
400
- color: 'var(--secondary-color)',
401
- opacity: 0.8,
402
- },
403
- '.fab-button': {
404
- backgroundColor: 'var(--primary-accent-color, #1890ff)',
405
- },
406
- };
407
-
408
- return (
409
- <div
410
- css={css}
411
- onMouseDown={handleBgTouch}
412
- onTouchStart={handleBgTouch}
413
- onMouseMove={dragUtil.onMouseMove}
414
- onMouseUp={dragUtil.onMouseUp}
415
- onTouchMove={dragUtil.onTouchMove}
416
- onTouchEnd={dragUtil.onTouchEnd}
417
- >
418
- <MobileHeaderCenter>
419
- <MobileHeaderTitleIcon
420
- title='Notes'
421
- left={<MobileHeaderEmptyIcon />}
422
- right={
423
- <div class='flex-center-gap-12'>
424
- <i class='ifc-icon bs-search icon-20-pointer' onClick={onOpenSearch}></i>
425
- <MobileTopSysIcon />
426
- </div>
427
- }
428
- />
429
- </MobileHeaderCenter>
430
- <div class='note-home-scroll no-scrollbar-container'>
431
- <SliderFrame
432
- hook={sliderFrameHook}
433
- afterClose={async () => {
434
- await resetSwipeMenus();
435
- }}
436
- />
437
- {dom}
438
- </div>
439
- <div class='fab-button' onClick={onAddNote}>
440
- <span class='fab-icon'>+</span>
441
- </div>
442
- </div>
443
- );
444
- };