@undp/create-app 0.2.23 → 0.4.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 (448) hide show
  1. package/README.md +3 -1
  2. package/bin/generateFiles/generateGitIgnore.js +0 -1
  3. package/bin/generateFiles/generatePackageJson.js +62 -61
  4. package/bin/generateFiles/generatePageForNext.js +3 -3
  5. package/bin/generateFiles/generateViteConfig.js +12 -4
  6. package/bin/templates/next/auth/README.md +2 -1
  7. package/bin/templates/next/auth/app/about/page.tsx +51 -51
  8. package/bin/templates/next/auth/app/layout.tsx +31 -31
  9. package/bin/templates/next/auth/app/login/page.tsx +1 -1
  10. package/bin/templates/next/auth/app/page.tsx +75 -75
  11. package/bin/templates/next/auth/app/user/page.tsx +1 -1
  12. package/bin/templates/next/auth/biome.json +70 -67
  13. package/bin/templates/next/auth/next.config.ts +10 -10
  14. package/bin/templates/next/auth/postcss.config.mjs +7 -7
  15. package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  16. package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  17. package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  18. package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  19. package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  20. package/bin/templates/next/auth/public/fonts/UNBangla-Bold.woff2 +0 -0
  21. package/bin/templates/next/auth/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  22. package/bin/templates/next/auth/public/fonts/UNBangla-Italic.woff2 +0 -0
  23. package/bin/templates/next/auth/public/fonts/UNBangla-Regular.woff2 +0 -0
  24. package/bin/templates/next/auth/public/fonts/UNBangla-Thin.woff2 +0 -0
  25. package/bin/templates/next/auth/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  26. package/bin/templates/next/auth/public/fonts/proximanova-black-webfont.woff2 +0 -0
  27. package/bin/templates/next/auth/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  28. package/bin/templates/next/auth/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  29. package/bin/templates/next/auth/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  30. package/bin/templates/next/auth/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  31. package/bin/templates/next/auth/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  32. package/bin/templates/next/auth/public/fonts/proximanova-light-webfont.woff2 +0 -0
  33. package/bin/templates/next/auth/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  34. package/bin/templates/next/auth/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  35. package/bin/templates/next/auth/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  36. package/bin/templates/next/auth/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  37. package/bin/templates/next/auth/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  38. package/bin/templates/next/auth/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  39. package/bin/templates/next/auth/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  40. package/bin/templates/next/auth/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  41. package/bin/templates/next/auth/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  42. package/bin/templates/next/auth/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  43. package/bin/templates/next/auth/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  44. package/bin/templates/next/auth/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  45. package/bin/templates/next/auth/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  46. package/bin/templates/next/auth/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  47. package/bin/templates/next/auth/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  48. package/bin/templates/next/auth/public/imgs/Zustand-logo.svg +265 -265
  49. package/bin/templates/next/auth/stores/counter.ts +23 -23
  50. package/bin/templates/next/auth/tsconfig.json +34 -34
  51. package/bin/templates/next/basic/README.md +2 -1
  52. package/bin/templates/next/basic/app/about/page.tsx +51 -51
  53. package/bin/templates/next/basic/app/layout.tsx +32 -32
  54. package/bin/templates/next/basic/app/page.tsx +75 -75
  55. package/bin/templates/next/basic/biome.json +70 -67
  56. package/bin/templates/next/basic/next.config.ts +7 -7
  57. package/bin/templates/next/basic/postcss.config.mjs +7 -7
  58. package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  59. package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  60. package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  61. package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  62. package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  63. package/bin/templates/next/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
  64. package/bin/templates/next/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  65. package/bin/templates/next/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
  66. package/bin/templates/next/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
  67. package/bin/templates/next/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
  68. package/bin/templates/next/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  69. package/bin/templates/next/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
  70. package/bin/templates/next/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  71. package/bin/templates/next/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  72. package/bin/templates/next/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  73. package/bin/templates/next/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  74. package/bin/templates/next/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  75. package/bin/templates/next/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
  76. package/bin/templates/next/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  77. package/bin/templates/next/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  78. package/bin/templates/next/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  79. package/bin/templates/next/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  80. package/bin/templates/next/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  81. package/bin/templates/next/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  82. package/bin/templates/next/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  83. package/bin/templates/next/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  84. package/bin/templates/next/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  85. package/bin/templates/next/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  86. package/bin/templates/next/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  87. package/bin/templates/next/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  88. package/bin/templates/next/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  89. package/bin/templates/next/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  90. package/bin/templates/next/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  91. package/bin/templates/next/basic/public/imgs/Zustand-logo.svg +265 -265
  92. package/bin/templates/next/basic/stores/counter.ts +23 -23
  93. package/bin/templates/next/basic/tsconfig.json +34 -34
  94. package/bin/templates/vite/basic/README.md +2 -1
  95. package/bin/templates/vite/basic/biome.json +70 -67
  96. package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  97. package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  98. package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  99. package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  100. package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  101. package/bin/templates/vite/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
  102. package/bin/templates/vite/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  103. package/bin/templates/vite/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
  104. package/bin/templates/vite/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
  105. package/bin/templates/vite/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
  106. package/bin/templates/vite/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  107. package/bin/templates/vite/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
  108. package/bin/templates/vite/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  109. package/bin/templates/vite/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  110. package/bin/templates/vite/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  111. package/bin/templates/vite/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  112. package/bin/templates/vite/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  113. package/bin/templates/vite/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
  114. package/bin/templates/vite/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  115. package/bin/templates/vite/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  116. package/bin/templates/vite/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  117. package/bin/templates/vite/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  118. package/bin/templates/vite/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  119. package/bin/templates/vite/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  120. package/bin/templates/vite/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  121. package/bin/templates/vite/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  122. package/bin/templates/vite/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  123. package/bin/templates/vite/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  124. package/bin/templates/vite/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  125. package/bin/templates/vite/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  126. package/bin/templates/vite/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  127. package/bin/templates/vite/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  128. package/bin/templates/vite/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  129. package/bin/templates/vite/basic/public/imgs/Vitejs-logo.svg +15 -15
  130. package/bin/templates/vite/basic/public/imgs/Zustand-logo.svg +265 -265
  131. package/bin/templates/vite/basic/src/App.tsx +3 -3
  132. package/bin/templates/vite/basic/src/stores/counter.ts +23 -23
  133. package/bin/templates/vite/basic/src/styles/fonts.css +135 -135
  134. package/bin/templates/vite/basic/src/styles/style.css +2 -2
  135. package/bin/templates/vite/basic/tsconfig.json +1 -1
  136. package/bin/templates/vite/basic/vite.config.ts +1 -7
  137. package/bin/templates/vite/query/README.md +2 -1
  138. package/bin/templates/vite/query/biome.json +70 -67
  139. package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  140. package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  141. package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  142. package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  143. package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  144. package/bin/templates/vite/query/public/fonts/UNBangla-Bold.woff2 +0 -0
  145. package/bin/templates/vite/query/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  146. package/bin/templates/vite/query/public/fonts/UNBangla-Italic.woff2 +0 -0
  147. package/bin/templates/vite/query/public/fonts/UNBangla-Regular.woff2 +0 -0
  148. package/bin/templates/vite/query/public/fonts/UNBangla-Thin.woff2 +0 -0
  149. package/bin/templates/vite/query/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  150. package/bin/templates/vite/query/public/fonts/proximanova-black-webfont.woff2 +0 -0
  151. package/bin/templates/vite/query/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  152. package/bin/templates/vite/query/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  153. package/bin/templates/vite/query/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  154. package/bin/templates/vite/query/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  155. package/bin/templates/vite/query/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  156. package/bin/templates/vite/query/public/fonts/proximanova-light-webfont.woff2 +0 -0
  157. package/bin/templates/vite/query/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  158. package/bin/templates/vite/query/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  159. package/bin/templates/vite/query/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  160. package/bin/templates/vite/query/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  161. package/bin/templates/vite/query/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  162. package/bin/templates/vite/query/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  163. package/bin/templates/vite/query/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  164. package/bin/templates/vite/query/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  165. package/bin/templates/vite/query/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  166. package/bin/templates/vite/query/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  167. package/bin/templates/vite/query/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  168. package/bin/templates/vite/query/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  169. package/bin/templates/vite/query/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  170. package/bin/templates/vite/query/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  171. package/bin/templates/vite/query/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  172. package/bin/templates/vite/query/public/imgs/Vitejs-logo.svg +15 -15
  173. package/bin/templates/vite/query/public/imgs/Zustand-logo.svg +265 -265
  174. package/bin/templates/vite/query/src/App.tsx +4 -4
  175. package/bin/templates/vite/query/src/stores/counter.ts +23 -23
  176. package/bin/templates/vite/query/src/styles/fonts.css +135 -135
  177. package/bin/templates/vite/query/src/styles/style.css +2 -2
  178. package/bin/templates/vite/query/tsconfig.json +1 -1
  179. package/bin/templates/vite/query/vite.config.ts +1 -7
  180. package/bin/templates/vite/query+router/README.md +2 -1
  181. package/bin/templates/vite/query+router/biome.json +70 -67
  182. package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  183. package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  184. package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  185. package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  186. package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  187. package/bin/templates/vite/query+router/public/fonts/UNBangla-Bold.woff2 +0 -0
  188. package/bin/templates/vite/query+router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  189. package/bin/templates/vite/query+router/public/fonts/UNBangla-Italic.woff2 +0 -0
  190. package/bin/templates/vite/query+router/public/fonts/UNBangla-Regular.woff2 +0 -0
  191. package/bin/templates/vite/query+router/public/fonts/UNBangla-Thin.woff2 +0 -0
  192. package/bin/templates/vite/query+router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  193. package/bin/templates/vite/query+router/public/fonts/proximanova-black-webfont.woff2 +0 -0
  194. package/bin/templates/vite/query+router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  195. package/bin/templates/vite/query+router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  196. package/bin/templates/vite/query+router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  197. package/bin/templates/vite/query+router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  198. package/bin/templates/vite/query+router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  199. package/bin/templates/vite/query+router/public/fonts/proximanova-light-webfont.woff2 +0 -0
  200. package/bin/templates/vite/query+router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  201. package/bin/templates/vite/query+router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  202. package/bin/templates/vite/query+router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  203. package/bin/templates/vite/query+router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  204. package/bin/templates/vite/query+router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  205. package/bin/templates/vite/query+router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  206. package/bin/templates/vite/query+router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  207. package/bin/templates/vite/query+router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  208. package/bin/templates/vite/query+router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  209. package/bin/templates/vite/query+router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  210. package/bin/templates/vite/query+router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  211. package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  212. package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  213. package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  214. package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  215. package/bin/templates/vite/query+router/public/imgs/Vitejs-logo.svg +15 -15
  216. package/bin/templates/vite/query+router/public/imgs/Zustand-logo.svg +265 -265
  217. package/bin/templates/vite/query+router/src/App.tsx +2 -2
  218. package/bin/templates/vite/query+router/src/routes/queryDemo.tsx +2 -2
  219. package/bin/templates/vite/query+router/src/stores/counter.ts +23 -23
  220. package/bin/templates/vite/query+router/src/styles/fonts.css +135 -135
  221. package/bin/templates/vite/query+router/src/styles/style.css +2 -2
  222. package/bin/templates/vite/query+router/tsconfig.json +1 -1
  223. package/bin/templates/vite/query+router/vite.config.ts +1 -7
  224. package/bin/templates/vite/router/README.md +2 -1
  225. package/bin/templates/vite/router/biome.json +70 -67
  226. package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  227. package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  228. package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  229. package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  230. package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  231. package/bin/templates/vite/router/public/fonts/UNBangla-Bold.woff2 +0 -0
  232. package/bin/templates/vite/router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  233. package/bin/templates/vite/router/public/fonts/UNBangla-Italic.woff2 +0 -0
  234. package/bin/templates/vite/router/public/fonts/UNBangla-Regular.woff2 +0 -0
  235. package/bin/templates/vite/router/public/fonts/UNBangla-Thin.woff2 +0 -0
  236. package/bin/templates/vite/router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  237. package/bin/templates/vite/router/public/fonts/proximanova-black-webfont.woff2 +0 -0
  238. package/bin/templates/vite/router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  239. package/bin/templates/vite/router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  240. package/bin/templates/vite/router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  241. package/bin/templates/vite/router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  242. package/bin/templates/vite/router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  243. package/bin/templates/vite/router/public/fonts/proximanova-light-webfont.woff2 +0 -0
  244. package/bin/templates/vite/router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  245. package/bin/templates/vite/router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  246. package/bin/templates/vite/router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  247. package/bin/templates/vite/router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  248. package/bin/templates/vite/router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  249. package/bin/templates/vite/router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  250. package/bin/templates/vite/router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  251. package/bin/templates/vite/router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  252. package/bin/templates/vite/router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  253. package/bin/templates/vite/router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  254. package/bin/templates/vite/router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  255. package/bin/templates/vite/router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  256. package/bin/templates/vite/router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  257. package/bin/templates/vite/router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  258. package/bin/templates/vite/router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  259. package/bin/templates/vite/router/public/imgs/Vitejs-logo.svg +15 -15
  260. package/bin/templates/vite/router/public/imgs/Zustand-logo.svg +265 -265
  261. package/bin/templates/vite/router/src/App.tsx +2 -2
  262. package/bin/templates/vite/router/src/routes/about.tsx +1 -1
  263. package/bin/templates/vite/router/src/stores/counter.ts +23 -23
  264. package/bin/templates/vite/router/src/styles/fonts.css +135 -135
  265. package/bin/templates/vite/router/src/styles/style.css +2 -2
  266. package/bin/templates/vite/router/tsconfig.json +1 -1
  267. package/bin/templates/vite/router/vite.config.ts +1 -7
  268. package/bin/templates/viteWithLanguage/basic/README.md +2 -1
  269. package/bin/templates/viteWithLanguage/basic/biome.json +70 -67
  270. package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  271. package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  272. package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  273. package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  274. package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  275. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
  276. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  277. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
  278. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
  279. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
  280. package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  281. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
  282. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  283. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  284. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  285. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  286. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  287. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
  288. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  289. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  290. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  291. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  292. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  293. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  294. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  295. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  296. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  297. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  298. package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  299. package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  300. package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  301. package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  302. package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  303. package/bin/templates/viteWithLanguage/basic/public/imgs/Vitejs-logo.svg +15 -15
  304. package/bin/templates/viteWithLanguage/basic/public/imgs/Zustand-logo.svg +265 -265
  305. package/bin/templates/viteWithLanguage/basic/src/App.tsx +3 -3
  306. package/bin/templates/viteWithLanguage/basic/src/locales/en/common.json +6 -6
  307. package/bin/templates/viteWithLanguage/basic/src/stores/counter.ts +23 -23
  308. package/bin/templates/viteWithLanguage/basic/src/styles/fonts.css +135 -135
  309. package/bin/templates/viteWithLanguage/basic/src/styles/style.css +2 -2
  310. package/bin/templates/viteWithLanguage/basic/tsconfig.json +1 -1
  311. package/bin/templates/viteWithLanguage/basic/vite.config.ts +1 -7
  312. package/bin/templates/viteWithLanguage/query/README.md +2 -1
  313. package/bin/templates/viteWithLanguage/query/biome.json +70 -67
  314. package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  315. package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  316. package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  317. package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  318. package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  319. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Bold.woff2 +0 -0
  320. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  321. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Italic.woff2 +0 -0
  322. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Regular.woff2 +0 -0
  323. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Thin.woff2 +0 -0
  324. package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  325. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-black-webfont.woff2 +0 -0
  326. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  327. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  328. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  329. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  330. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  331. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-light-webfont.woff2 +0 -0
  332. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  333. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  334. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  335. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  336. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  337. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  338. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  339. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  340. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  341. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  342. package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  343. package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  344. package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  345. package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  346. package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  347. package/bin/templates/viteWithLanguage/query/public/imgs/Vitejs-logo.svg +15 -15
  348. package/bin/templates/viteWithLanguage/query/public/imgs/Zustand-logo.svg +265 -265
  349. package/bin/templates/viteWithLanguage/query/src/App.tsx +4 -4
  350. package/bin/templates/viteWithLanguage/query/src/locales/en/common.json +8 -8
  351. package/bin/templates/viteWithLanguage/query/src/stores/counter.ts +23 -23
  352. package/bin/templates/viteWithLanguage/query/src/styles/fonts.css +135 -135
  353. package/bin/templates/viteWithLanguage/query/src/styles/style.css +2 -2
  354. package/bin/templates/viteWithLanguage/query/tsconfig.json +1 -1
  355. package/bin/templates/viteWithLanguage/query/vite.config.ts +1 -7
  356. package/bin/templates/viteWithLanguage/query+router/README.md +2 -1
  357. package/bin/templates/viteWithLanguage/query+router/biome.json +70 -67
  358. package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  359. package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  360. package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  361. package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  362. package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  363. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Bold.woff2 +0 -0
  364. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  365. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Italic.woff2 +0 -0
  366. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Regular.woff2 +0 -0
  367. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Thin.woff2 +0 -0
  368. package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  369. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-black-webfont.woff2 +0 -0
  370. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  371. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  372. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  373. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  374. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  375. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-light-webfont.woff2 +0 -0
  376. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  377. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  378. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  379. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  380. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  381. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  382. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  383. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  384. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  385. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  386. package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  387. package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  388. package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  389. package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  390. package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  391. package/bin/templates/viteWithLanguage/query+router/public/imgs/Vitejs-logo.svg +15 -15
  392. package/bin/templates/viteWithLanguage/query+router/public/imgs/Zustand-logo.svg +265 -265
  393. package/bin/templates/viteWithLanguage/query+router/src/App.tsx +2 -2
  394. package/bin/templates/viteWithLanguage/query+router/src/components/Header.tsx +1 -1
  395. package/bin/templates/viteWithLanguage/query+router/src/locales/en/common.json +13 -13
  396. package/bin/templates/viteWithLanguage/query+router/src/routes/queryDemo.tsx +2 -2
  397. package/bin/templates/viteWithLanguage/query+router/src/stores/counter.ts +23 -23
  398. package/bin/templates/viteWithLanguage/query+router/src/styles/fonts.css +135 -135
  399. package/bin/templates/viteWithLanguage/query+router/src/styles/style.css +2 -2
  400. package/bin/templates/viteWithLanguage/query+router/tsconfig.json +1 -1
  401. package/bin/templates/viteWithLanguage/query+router/vite.config.ts +1 -7
  402. package/bin/templates/viteWithLanguage/router/README.md +2 -1
  403. package/bin/templates/viteWithLanguage/router/biome.json +70 -67
  404. package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
  405. package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
  406. package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
  407. package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
  408. package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
  409. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Bold.woff2 +0 -0
  410. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
  411. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Italic.woff2 +0 -0
  412. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Regular.woff2 +0 -0
  413. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Thin.woff2 +0 -0
  414. package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
  415. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-black-webfont.woff2 +0 -0
  416. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
  417. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
  418. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
  419. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
  420. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
  421. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-light-webfont.woff2 +0 -0
  422. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
  423. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
  424. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
  425. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
  426. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
  427. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
  428. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
  429. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
  430. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
  431. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
  432. package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
  433. package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
  434. package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
  435. package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
  436. package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
  437. package/bin/templates/viteWithLanguage/router/public/imgs/Vitejs-logo.svg +15 -15
  438. package/bin/templates/viteWithLanguage/router/public/imgs/Zustand-logo.svg +265 -265
  439. package/bin/templates/viteWithLanguage/router/src/App.tsx +2 -2
  440. package/bin/templates/viteWithLanguage/router/src/components/Header.tsx +1 -1
  441. package/bin/templates/viteWithLanguage/router/src/locales/en/common.json +11 -11
  442. package/bin/templates/viteWithLanguage/router/src/routes/about.tsx +1 -1
  443. package/bin/templates/viteWithLanguage/router/src/stores/counter.ts +23 -23
  444. package/bin/templates/viteWithLanguage/router/src/styles/fonts.css +135 -135
  445. package/bin/templates/viteWithLanguage/router/src/styles/style.css +2 -2
  446. package/bin/templates/viteWithLanguage/router/tsconfig.json +1 -1
  447. package/bin/templates/viteWithLanguage/router/vite.config.ts +1 -7
  448. package/package.json +36 -36
@@ -1,23 +1,23 @@
1
- import { create } from 'zustand';
2
-
3
- type Actions = {
4
- increment: (d?: number) => void;
5
- decrement: (d?: number) => void;
6
- };
7
-
8
- type Store = {
9
- count: number;
10
- actions: Actions;
11
- };
12
-
13
- export const useCounterStore = create<Store>(set => ({
14
- count: 0,
15
- actions: {
16
- increment: (d = 1) => set(state => ({ count: state.count + d })),
17
- decrement: (d = 1) => set(state => ({ count: state.count - d })),
18
- },
19
- }));
20
-
21
- export const useCounter = () => useCounterStore(s => s.count);
22
-
23
- export const useCounterActions = () => useCounterStore(s => s.actions);
1
+ import { create } from 'zustand';
2
+
3
+ type Actions = {
4
+ increment: (d?: number) => void;
5
+ decrement: (d?: number) => void;
6
+ };
7
+
8
+ type Store = {
9
+ count: number;
10
+ actions: Actions;
11
+ };
12
+
13
+ export const useCounterStore = create<Store>(set => ({
14
+ count: 0,
15
+ actions: {
16
+ increment: (d = 1) => set(state => ({ count: state.count + d })),
17
+ decrement: (d = 1) => set(state => ({ count: state.count - d })),
18
+ },
19
+ }));
20
+
21
+ export const useCounter = () => useCounterStore(s => s.count);
22
+
23
+ export const useCounterActions = () => useCounterStore(s => s.actions);
@@ -1,34 +1,34 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "noEmit": true,
9
- "esModuleInterop": true,
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "jsx": "react-jsx",
15
- "incremental": true,
16
- "plugins": [
17
- {
18
- "name": "next"
19
- }
20
- ],
21
- "paths": {
22
- "@/*": ["./*"]
23
- }
24
- },
25
- "include": [
26
- "next-env.d.ts",
27
- "**/*.ts",
28
- "**/*.tsx",
29
- ".next/types/**/*.ts",
30
- ".next/dev/types/**/*.ts",
31
- "**/*.mts"
32
- ],
33
- "exclude": ["node_modules"]
34
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "react-jsx",
15
+ "incremental": true,
16
+ "plugins": [
17
+ {
18
+ "name": "next"
19
+ }
20
+ ],
21
+ "paths": {
22
+ "@/*": ["./*"]
23
+ }
24
+ },
25
+ "include": [
26
+ "next-env.d.ts",
27
+ "**/*.ts",
28
+ "**/*.tsx",
29
+ ".next/types/**/*.ts",
30
+ ".next/dev/types/**/*.ts",
31
+ "**/*.mts"
32
+ ],
33
+ "exclude": ["node_modules"]
34
+ }
@@ -32,7 +32,8 @@ The page will reload if you make edits. You will also see any lint errors in the
32
32
  - `npm run build`: Executes `next build` and builds the app for production and deployment.
33
33
  - `npm run preview`: Executes `next start` and serves the static build output locally.
34
34
  - `npm run clean`: Executes `rimraf node_modules && rimraf .next && rimraf package-lock.json` and remove node_modules folder, dist folder and package-lock.json.
35
- - `npm run lint`: Executes `biome check . --write` and resolve all the linting and prettier errors.
35
+ - `npm run check`: Executes `biome check .` and lists all the linting and prettier errors.
36
+ - `npm run check:fix`: Executes `biome check --write .` and resolve all the linting and prettier errors.
36
37
 
37
38
  ## 🧰 Tooling Setup
38
39
 
@@ -1,51 +1,51 @@
1
- 'use client';
2
-
3
- import { P } from '@undp/design-system-react/Typography';
4
- import Image from 'next/image';
5
-
6
- export default function About() {
7
- return (
8
- <>
9
- <div className='flex gap-4 items-center justify-center my-8 mx-auto'>
10
- <Image
11
- className='dark:invert'
12
- src='/imgs/next.svg'
13
- alt='Next.js logo'
14
- width={100}
15
- height={20}
16
- priority
17
- />
18
- <P marginBottom='none'>&</P>
19
- <Image
20
- className='dark:invert'
21
- src='/imgs/Tailwind_CSS_Logo.svg'
22
- alt='Tailwind logo'
23
- width={40}
24
- height={20}
25
- priority
26
- />
27
- <P marginBottom='none'>&</P>
28
- <Image
29
- className='dark:invert'
30
- src='/imgs/Zustand-logo.svg'
31
- alt='Zustand logo'
32
- width={40}
33
- height={20}
34
- priority
35
- />
36
- <P marginBottom='none'>&</P>
37
- <Image
38
- className='dark:invert'
39
- src='/imgs/undp-logo-blue.svg'
40
- alt='UNDP logo'
41
- width={40}
42
- height={20}
43
- priority
44
- />
45
- </div>
46
- <P marginBottom='xl' className='text-center'>
47
- To edit this page, edit the page.tsx file in the about folder.
48
- </P>
49
- </>
50
- );
51
- }
1
+ 'use client';
2
+
3
+ import { P } from '@undp/design-system-react/Typography';
4
+ import Image from 'next/image';
5
+
6
+ export default function About() {
7
+ return (
8
+ <>
9
+ <div className='mx-auto my-8 flex items-center justify-center gap-4'>
10
+ <Image
11
+ className='dark:invert'
12
+ src='/imgs/next.svg'
13
+ alt='Next.js logo'
14
+ width={100}
15
+ height={20}
16
+ priority
17
+ />
18
+ <P marginBottom='none'>&</P>
19
+ <Image
20
+ className='dark:invert'
21
+ src='/imgs/Tailwind_CSS_Logo.svg'
22
+ alt='Tailwind logo'
23
+ width={40}
24
+ height={20}
25
+ priority
26
+ />
27
+ <P marginBottom='none'>&</P>
28
+ <Image
29
+ className='dark:invert'
30
+ src='/imgs/Zustand-logo.svg'
31
+ alt='Zustand logo'
32
+ width={40}
33
+ height={20}
34
+ priority
35
+ />
36
+ <P marginBottom='none'>&</P>
37
+ <Image
38
+ className='dark:invert'
39
+ src='/imgs/undp-logo-blue.svg'
40
+ alt='UNDP logo'
41
+ width={40}
42
+ height={20}
43
+ priority
44
+ />
45
+ </div>
46
+ <P marginBottom='xl' className='text-center'>
47
+ To edit this page, edit the page.tsx file in the about folder.
48
+ </P>
49
+ </>
50
+ );
51
+ }
@@ -1,32 +1,32 @@
1
- import type { Metadata } from 'next';
2
- import { ReactNode } from 'react';
3
-
4
- import HeaderEl from '@/components/Header';
5
- import FooterEl from '@/components/Footer';
6
-
7
- import './globals.css';
8
- import '@undp/design-system-react/style.css';
9
- import '@undp/data-viz/style.css';
10
-
11
- export const metadata: Metadata = {
12
- title: 'My Next + UNDP app',
13
- description: 'Generated by create undp app',
14
- };
15
-
16
- export default function RootLayout({
17
- children,
18
- }: Readonly<{
19
- children: ReactNode;
20
- }>) {
21
- return (
22
- <html lang='en'>
23
- <body className='flex flex-col gap-0 min-h-screen'>
24
- <HeaderEl />
25
- <main className='grow-1 flex flex-col justify-center'>
26
- <div className='flex flex-col justify-center'>{children}</div>
27
- </main>
28
- <FooterEl />
29
- </body>
30
- </html>
31
- );
32
- }
1
+ import type { Metadata } from 'next';
2
+ import { ReactNode } from 'react';
3
+
4
+ import HeaderEl from '@/components/Header';
5
+ import FooterEl from '@/components/Footer';
6
+
7
+ import './globals.css';
8
+ import '@undp/design-system-react/style.css';
9
+ import '@undp/data-viz/style.css';
10
+
11
+ export const metadata: Metadata = {
12
+ title: 'My Next + UNDP app',
13
+ description: 'Generated by create undp app',
14
+ };
15
+
16
+ export default function RootLayout({
17
+ children,
18
+ }: Readonly<{
19
+ children: ReactNode;
20
+ }>) {
21
+ return (
22
+ <html lang='en'>
23
+ <body className='flex flex-col gap-0 min-h-screen'>
24
+ <HeaderEl />
25
+ <main className='grow-1 flex flex-col justify-center'>
26
+ <div className='flex flex-col justify-center'>{children}</div>
27
+ </main>
28
+ <FooterEl />
29
+ </body>
30
+ </html>
31
+ );
32
+ }
@@ -1,75 +1,75 @@
1
- 'use client';
2
-
3
- import { P } from '@undp/design-system-react/Typography';
4
- import { Button } from '@undp/design-system-react/Button';
5
- import Image from 'next/image';
6
-
7
- import { useCounterActions, useCounter } from '@/stores/counter';
8
-
9
- export default function Home() {
10
- const count = useCounter();
11
- const { increment, decrement } = useCounterActions();
12
- return (
13
- <>
14
- <div className='flex gap-4 items-center justify-center my-8 mx-auto'>
15
- <Image
16
- className='dark:invert'
17
- src='/imgs/next.svg'
18
- alt='Next.js logo'
19
- width={100}
20
- height={20}
21
- priority
22
- />
23
- <P marginBottom='none'>&</P>
24
- <Image
25
- className='dark:invert'
26
- src='/imgs/Tailwind_CSS_Logo.svg'
27
- alt='Tailwind logo'
28
- width={40}
29
- height={20}
30
- priority
31
- />
32
- <P marginBottom='none'>&</P>
33
- <Image
34
- className='dark:invert'
35
- src='/imgs/Zustand-logo.svg'
36
- alt='Zustand logo'
37
- width={40}
38
- height={20}
39
- priority
40
- />
41
- <P marginBottom='none'>&</P>
42
- <Image
43
- className='dark:invert'
44
- src='/imgs/undp-logo-blue.svg'
45
- alt='UNDP logo'
46
- width={40}
47
- height={20}
48
- priority
49
- />
50
- </div>
51
- <P marginBottom='xl' className='text-center'>
52
- To get started, edit the App.tsx file.{' '}
53
- <span className='font-bold'>Count: {count}</span>
54
- </P>
55
- <div className='flex gap-4 justify-center'>
56
- <Button
57
- variant='tertiary'
58
- onClick={() => {
59
- increment();
60
- }}
61
- >
62
- Increase counter
63
- </Button>
64
- <Button
65
- variant='tertiary'
66
- onClick={() => {
67
- decrement();
68
- }}
69
- >
70
- Decrease counter
71
- </Button>
72
- </div>
73
- </>
74
- );
75
- }
1
+ 'use client';
2
+
3
+ import { P } from '@undp/design-system-react/Typography';
4
+ import { Button } from '@undp/design-system-react/Button';
5
+ import Image from 'next/image';
6
+
7
+ import { useCounterActions, useCounter } from '@/stores/counter';
8
+
9
+ export default function Home() {
10
+ const count = useCounter();
11
+ const { increment, decrement } = useCounterActions();
12
+ return (
13
+ <>
14
+ <div className='mx-auto my-8 flex items-center justify-center gap-4'>
15
+ <Image
16
+ className='dark:invert'
17
+ src='/imgs/next.svg'
18
+ alt='Next.js logo'
19
+ width={100}
20
+ height={20}
21
+ priority
22
+ />
23
+ <P marginBottom='none'>&</P>
24
+ <Image
25
+ className='dark:invert'
26
+ src='/imgs/Tailwind_CSS_Logo.svg'
27
+ alt='Tailwind logo'
28
+ width={40}
29
+ height={20}
30
+ priority
31
+ />
32
+ <P marginBottom='none'>&</P>
33
+ <Image
34
+ className='dark:invert'
35
+ src='/imgs/Zustand-logo.svg'
36
+ alt='Zustand logo'
37
+ width={40}
38
+ height={20}
39
+ priority
40
+ />
41
+ <P marginBottom='none'>&</P>
42
+ <Image
43
+ className='dark:invert'
44
+ src='/imgs/undp-logo-blue.svg'
45
+ alt='UNDP logo'
46
+ width={40}
47
+ height={20}
48
+ priority
49
+ />
50
+ </div>
51
+ <P marginBottom='xl' className='text-center'>
52
+ To get started, edit the App.tsx file.{' '}
53
+ <span className='font-bold'>Count: {count}</span>
54
+ </P>
55
+ <div className='flex justify-center gap-4'>
56
+ <Button
57
+ variant='tertiary'
58
+ onClick={() => {
59
+ increment();
60
+ }}
61
+ >
62
+ Increase counter
63
+ </Button>
64
+ <Button
65
+ variant='tertiary'
66
+ onClick={() => {
67
+ decrement();
68
+ }}
69
+ >
70
+ Decrease counter
71
+ </Button>
72
+ </div>
73
+ </>
74
+ );
75
+ }
@@ -1,67 +1,70 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
- "vcs": {
4
- "enabled": true,
5
- "clientKind": "git",
6
- "useIgnoreFile": true
7
- },
8
- "files": {
9
- "ignoreUnknown": true,
10
- "includes": ["**/*.{js,jsx,ts,tsx,css}"]
11
- },
12
- "formatter": {
13
- "enabled": true,
14
- "indentStyle": "space",
15
- "indentWidth": 2,
16
- "lineWidth": 100,
17
- "bracketSameLine": false
18
- },
19
- "linter": {
20
- "enabled": true,
21
- "rules": {
22
- "recommended": true,
23
- "suspicious": {
24
- "noExplicitAny": "warn",
25
- "noUnassignedVariables": "warn",
26
- "noUnusedExpressions": "warn",
27
- "noConsole": {
28
- "level": "warn",
29
- "options": {
30
- "allow": ["assert", "error", "info", "warn"]
31
- }
32
- },
33
- "noArrayIndexKey": "error"
34
- },
35
- "a11y": {
36
- "useAltText": "error",
37
- "useValidAnchor": "error"
38
- },
39
- "style": {
40
- "useConst": "error",
41
- "useSelfClosingElements": "error",
42
- "useConsistentCurlyBraces": "error",
43
- "useImportType": "warn"
44
- },
45
- "correctness": {
46
- "noUnusedVariables": "error",
47
- "noUndeclaredVariables": "error"
48
- }
49
- }
50
- },
51
- "javascript": {
52
- "formatter": {
53
- "quoteStyle": "single",
54
- "jsxQuoteStyle": "single",
55
- "semicolons": "always",
56
- "trailingCommas": "all"
57
- }
58
- },
59
- "assist": {
60
- "enabled": true,
61
- "actions": {
62
- "source": {
63
- "organizeImports": "on"
64
- }
65
- }
66
- }
67
- }
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "files": {
9
+ "ignoreUnknown": true,
10
+ "includes": ["**/*.{js,jsx,ts,tsx,css}"]
11
+ },
12
+ "formatter": {
13
+ "enabled": true,
14
+ "indentStyle": "space",
15
+ "indentWidth": 2,
16
+ "lineWidth": 100,
17
+ "bracketSameLine": false
18
+ },
19
+ "linter": {
20
+ "enabled": true,
21
+ "rules": {
22
+ "recommended": true,
23
+ "suspicious": {
24
+ "noExplicitAny": "warn",
25
+ "noUnassignedVariables": "warn",
26
+ "noUnusedExpressions": "warn",
27
+ "noConsole": {
28
+ "level": "warn",
29
+ "options": {
30
+ "allow": ["assert", "error", "info", "warn"]
31
+ }
32
+ },
33
+ "noArrayIndexKey": "error"
34
+ },
35
+ "a11y": {
36
+ "useAltText": "error",
37
+ "useValidAnchor": "error"
38
+ },
39
+ "style": {
40
+ "useConst": "error",
41
+ "useSelfClosingElements": "error",
42
+ "useConsistentCurlyBraces": "error",
43
+ "useImportType": "warn"
44
+ },
45
+ "correctness": {
46
+ "noUnusedVariables": "error",
47
+ "noUndeclaredVariables": "error"
48
+ },
49
+ "nursery": {
50
+ "useSortedClasses": "error"
51
+ }
52
+ }
53
+ },
54
+ "javascript": {
55
+ "formatter": {
56
+ "quoteStyle": "single",
57
+ "jsxQuoteStyle": "single",
58
+ "semicolons": "always",
59
+ "trailingCommas": "all"
60
+ }
61
+ },
62
+ "assist": {
63
+ "enabled": true,
64
+ "actions": {
65
+ "source": {
66
+ "organizeImports": "on"
67
+ }
68
+ }
69
+ }
70
+ }
@@ -1,7 +1,7 @@
1
- import type { NextConfig } from 'next';
2
-
3
- const nextConfig: NextConfig = {
4
- /* config options here */
5
- };
6
-
7
- export default nextConfig;
1
+ import type { NextConfig } from 'next';
2
+
3
+ const nextConfig: NextConfig = {
4
+ /* config options here */
5
+ };
6
+
7
+ export default nextConfig;
@@ -1,7 +1,7 @@
1
- const config = {
2
- plugins: {
3
- '@tailwindcss/postcss': {},
4
- },
5
- };
6
-
7
- export default config;
1
+ const config = {
2
+ plugins: {
3
+ '@tailwindcss/postcss': {},
4
+ },
5
+ };
6
+
7
+ export default config;