@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.
- package/README.md +3 -1
- package/bin/generateFiles/generateGitIgnore.js +0 -1
- package/bin/generateFiles/generatePackageJson.js +62 -61
- package/bin/generateFiles/generatePageForNext.js +3 -3
- package/bin/generateFiles/generateViteConfig.js +12 -4
- package/bin/templates/next/auth/README.md +2 -1
- package/bin/templates/next/auth/app/about/page.tsx +51 -51
- package/bin/templates/next/auth/app/layout.tsx +31 -31
- package/bin/templates/next/auth/app/login/page.tsx +1 -1
- package/bin/templates/next/auth/app/page.tsx +75 -75
- package/bin/templates/next/auth/app/user/page.tsx +1 -1
- package/bin/templates/next/auth/biome.json +70 -67
- package/bin/templates/next/auth/next.config.ts +10 -10
- package/bin/templates/next/auth/postcss.config.mjs +7 -7
- package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/next/auth/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/next/auth/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/next/auth/stores/counter.ts +23 -23
- package/bin/templates/next/auth/tsconfig.json +34 -34
- package/bin/templates/next/basic/README.md +2 -1
- package/bin/templates/next/basic/app/about/page.tsx +51 -51
- package/bin/templates/next/basic/app/layout.tsx +32 -32
- package/bin/templates/next/basic/app/page.tsx +75 -75
- package/bin/templates/next/basic/biome.json +70 -67
- package/bin/templates/next/basic/next.config.ts +7 -7
- package/bin/templates/next/basic/postcss.config.mjs +7 -7
- package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/next/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/next/basic/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/next/basic/stores/counter.ts +23 -23
- package/bin/templates/next/basic/tsconfig.json +34 -34
- package/bin/templates/vite/basic/README.md +2 -1
- package/bin/templates/vite/basic/biome.json +70 -67
- package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/vite/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/vite/basic/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/vite/basic/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/vite/basic/src/App.tsx +3 -3
- package/bin/templates/vite/basic/src/stores/counter.ts +23 -23
- package/bin/templates/vite/basic/src/styles/fonts.css +135 -135
- package/bin/templates/vite/basic/src/styles/style.css +2 -2
- package/bin/templates/vite/basic/tsconfig.json +1 -1
- package/bin/templates/vite/basic/vite.config.ts +1 -7
- package/bin/templates/vite/query/README.md +2 -1
- package/bin/templates/vite/query/biome.json +70 -67
- package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/vite/query/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/vite/query/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/vite/query/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/vite/query/src/App.tsx +4 -4
- package/bin/templates/vite/query/src/stores/counter.ts +23 -23
- package/bin/templates/vite/query/src/styles/fonts.css +135 -135
- package/bin/templates/vite/query/src/styles/style.css +2 -2
- package/bin/templates/vite/query/tsconfig.json +1 -1
- package/bin/templates/vite/query/vite.config.ts +1 -7
- package/bin/templates/vite/query+router/README.md +2 -1
- package/bin/templates/vite/query+router/biome.json +70 -67
- package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/vite/query+router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/vite/query+router/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/vite/query+router/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/vite/query+router/src/App.tsx +2 -2
- package/bin/templates/vite/query+router/src/routes/queryDemo.tsx +2 -2
- package/bin/templates/vite/query+router/src/stores/counter.ts +23 -23
- package/bin/templates/vite/query+router/src/styles/fonts.css +135 -135
- package/bin/templates/vite/query+router/src/styles/style.css +2 -2
- package/bin/templates/vite/query+router/tsconfig.json +1 -1
- package/bin/templates/vite/query+router/vite.config.ts +1 -7
- package/bin/templates/vite/router/README.md +2 -1
- package/bin/templates/vite/router/biome.json +70 -67
- package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/vite/router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/vite/router/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/vite/router/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/vite/router/src/App.tsx +2 -2
- package/bin/templates/vite/router/src/routes/about.tsx +1 -1
- package/bin/templates/vite/router/src/stores/counter.ts +23 -23
- package/bin/templates/vite/router/src/styles/fonts.css +135 -135
- package/bin/templates/vite/router/src/styles/style.css +2 -2
- package/bin/templates/vite/router/tsconfig.json +1 -1
- package/bin/templates/vite/router/vite.config.ts +1 -7
- package/bin/templates/viteWithLanguage/basic/README.md +2 -1
- package/bin/templates/viteWithLanguage/basic/biome.json +70 -67
- package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/viteWithLanguage/basic/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/viteWithLanguage/basic/src/App.tsx +3 -3
- package/bin/templates/viteWithLanguage/basic/src/locales/en/common.json +6 -6
- package/bin/templates/viteWithLanguage/basic/src/stores/counter.ts +23 -23
- package/bin/templates/viteWithLanguage/basic/src/styles/fonts.css +135 -135
- package/bin/templates/viteWithLanguage/basic/src/styles/style.css +2 -2
- package/bin/templates/viteWithLanguage/basic/tsconfig.json +1 -1
- package/bin/templates/viteWithLanguage/basic/vite.config.ts +1 -7
- package/bin/templates/viteWithLanguage/query/README.md +2 -1
- package/bin/templates/viteWithLanguage/query/biome.json +70 -67
- package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/viteWithLanguage/query/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/viteWithLanguage/query/src/App.tsx +4 -4
- package/bin/templates/viteWithLanguage/query/src/locales/en/common.json +8 -8
- package/bin/templates/viteWithLanguage/query/src/stores/counter.ts +23 -23
- package/bin/templates/viteWithLanguage/query/src/styles/fonts.css +135 -135
- package/bin/templates/viteWithLanguage/query/src/styles/style.css +2 -2
- package/bin/templates/viteWithLanguage/query/tsconfig.json +1 -1
- package/bin/templates/viteWithLanguage/query/vite.config.ts +1 -7
- package/bin/templates/viteWithLanguage/query+router/README.md +2 -1
- package/bin/templates/viteWithLanguage/query+router/biome.json +70 -67
- package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/viteWithLanguage/query+router/src/App.tsx +2 -2
- package/bin/templates/viteWithLanguage/query+router/src/components/Header.tsx +1 -1
- package/bin/templates/viteWithLanguage/query+router/src/locales/en/common.json +13 -13
- package/bin/templates/viteWithLanguage/query+router/src/routes/queryDemo.tsx +2 -2
- package/bin/templates/viteWithLanguage/query+router/src/stores/counter.ts +23 -23
- package/bin/templates/viteWithLanguage/query+router/src/styles/fonts.css +135 -135
- package/bin/templates/viteWithLanguage/query+router/src/styles/style.css +2 -2
- package/bin/templates/viteWithLanguage/query+router/tsconfig.json +1 -1
- package/bin/templates/viteWithLanguage/query+router/vite.config.ts +1 -7
- package/bin/templates/viteWithLanguage/router/README.md +2 -1
- package/bin/templates/viteWithLanguage/router/biome.json +70 -67
- package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Light.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Medium.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/NotoSansMyanmar-SemiBold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Bold.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-BoldItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Italic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Regular.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-Thin.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/UNBangla-ThinItalic.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-black-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-blackit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-bold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-boldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-extrabold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-extraboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-light-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-lightit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-medium-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-mediumit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-regular-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-regularit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semibold-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semibold-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semiboldit-webfont-2.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-semiboldit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-thin-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/proximanova-thinit-webfont.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-dreiviertelfett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-dreiviertelfett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-fett-kursiv.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/fonts/soehne-breit-web-fett.woff2 +0 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Vitejs-logo.svg +15 -15
- package/bin/templates/viteWithLanguage/router/public/imgs/Zustand-logo.svg +265 -265
- package/bin/templates/viteWithLanguage/router/src/App.tsx +2 -2
- package/bin/templates/viteWithLanguage/router/src/components/Header.tsx +1 -1
- package/bin/templates/viteWithLanguage/router/src/locales/en/common.json +11 -11
- package/bin/templates/viteWithLanguage/router/src/routes/about.tsx +1 -1
- package/bin/templates/viteWithLanguage/router/src/stores/counter.ts +23 -23
- package/bin/templates/viteWithLanguage/router/src/styles/fonts.css +135 -135
- package/bin/templates/viteWithLanguage/router/src/styles/style.css +2 -2
- package/bin/templates/viteWithLanguage/router/tsconfig.json +1 -1
- package/bin/templates/viteWithLanguage/router/vite.config.ts +1 -7
- 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
|
|
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='
|
|
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='
|
|
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
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|