@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
package/README.md
CHANGED
|
@@ -52,4 +52,6 @@ After running the CLI, navigate into your project and start the dev server:
|
|
|
52
52
|
cd my-undp-app && npm run dev
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
*Please note: If you have not installed the dependencies then you might want to run `npm install` before `npm run dev`.*
|
|
55
|
+
*Please note: If you have not installed the dependencies then you might want to run `npm install` before `npm run dev`.*
|
|
56
|
+
|
|
57
|
+
*Please note: The scaffolding tool installs Proxima Nova and Sonhe Breit fonts; you can only use these fonts if you have a license or are using the app as UNDP sub-domain.*
|
|
@@ -14,34 +14,34 @@ export function generatePackageJson(config) {
|
|
|
14
14
|
const designSystemVer = `^${getLatestVersion('@undp/design-system-react')}`
|
|
15
15
|
const zustandVer = `^${getLatestVersion('zustand')}`
|
|
16
16
|
const dependenciesTemp = config.libraries.includes('peer') && config.libraries.includes('@undp/data-viz') ? {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
'@undp/design-system-react': designSystemVer,
|
|
18
|
+
'@dnd-kit/core': '^6.3.1',
|
|
19
|
+
'@dnd-kit/modifiers': '^9.0.0',
|
|
20
|
+
'ajv': '^8.17.1',
|
|
21
|
+
'dom-to-svg': '^0.12.2',
|
|
22
|
+
'file-saver': '^2.0.5',
|
|
23
|
+
'handlebars': '^4.7.8',
|
|
24
|
+
'maplibre-gl': '^5.12.0',
|
|
25
|
+
'marked': '^16.4.1',
|
|
26
|
+
'math-expression-evaluator': '^2.0.7',
|
|
27
|
+
'pmtiles': '^4.3.0',
|
|
28
|
+
'react': '^19.2.3',
|
|
29
|
+
'react-dom': '^19.2.3',
|
|
30
|
+
'react-globe.gl': '^2.37.0',
|
|
31
|
+
'three': '^0.180.0',
|
|
32
|
+
'zustand': zustandVer
|
|
33
33
|
} : {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
'@undp/design-system-react': designSystemVer,
|
|
35
|
+
'react': '^19.2.3',
|
|
36
|
+
'react-dom': '^19.2.3',
|
|
37
|
+
'zustand': zustandVer
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
const dependencies = config.language && !config.framework.includes('next') ? {
|
|
41
41
|
...dependenciesTemp,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
'i18next': '^26.0.8',
|
|
43
|
+
'i18next-browser-languagedetector': '^8.2.1',
|
|
44
|
+
'react-i18next': '^17.0.6',
|
|
45
45
|
} : {...dependenciesTemp}
|
|
46
46
|
|
|
47
47
|
switch (config.framework) {
|
|
@@ -73,43 +73,40 @@ export function generatePackageJson(config) {
|
|
|
73
73
|
Object.entries(dependencies).sort(([a], [b]) => a.localeCompare(b))
|
|
74
74
|
);
|
|
75
75
|
const devDependencies = config.framework.includes('vite') ? {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"vite": "^8.0.13",
|
|
96
|
-
"vite-plugin-static-copy": "^4.1.0"
|
|
76
|
+
'@biomejs/biome': '^2.4.12',
|
|
77
|
+
'@tailwindcss/postcss': '^4.1.17',
|
|
78
|
+
'@tailwindcss/vite': '^4.3.0',
|
|
79
|
+
'@types/node': '^24.10.0',
|
|
80
|
+
'@types/react': '^19.2.7',
|
|
81
|
+
'@types/react-dom': '^19.2.3',
|
|
82
|
+
'@vitejs/plugin-react': '^6.0.2',
|
|
83
|
+
'autoprefixer': '^10.4.21',
|
|
84
|
+
'postcss': '^8.5.6',
|
|
85
|
+
'postcss-nested': '^7.0.2',
|
|
86
|
+
'rimraf': '^6.1.0',
|
|
87
|
+
'rollup-plugin-visualizer': '^6.0.5',
|
|
88
|
+
'tailwind-animate': '^0.2.10',
|
|
89
|
+
'tailwind-merge': '^3.4.0',
|
|
90
|
+
'tailwindcss': '^4.1.17',
|
|
91
|
+
'tailwindcss-animate': '^1.0.7',
|
|
92
|
+
'typescript': '^5.9.3',
|
|
93
|
+
'vite': '^8.0.13',
|
|
94
|
+
'vite-plugin-static-copy': '^4.1.0'
|
|
97
95
|
} : {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"typescript-eslint": "^8.46.3"
|
|
96
|
+
'@biomejs/biome': '^2.4.12',
|
|
97
|
+
'@tailwindcss/postcss': '^4.1.17',
|
|
98
|
+
'@types/node': '^24.10.0',
|
|
99
|
+
'@types/react': '^19.2.7',
|
|
100
|
+
'@types/react-dom': '^19.2.3',
|
|
101
|
+
'postcss': '^8.5.6',
|
|
102
|
+
'postcss-nested': '^7.0.2',
|
|
103
|
+
'rimraf': '^6.1.0',
|
|
104
|
+
'rollup-plugin-visualizer': '^6.0.5',
|
|
105
|
+
'tailwind-animate': '^0.2.10',
|
|
106
|
+
'tailwind-merge': '^3.3.1',
|
|
107
|
+
'tailwindcss': '^4.1.17',
|
|
108
|
+
'tailwindcss-animate': '^1.0.7',
|
|
109
|
+
'typescript': '^5.9.3',
|
|
113
110
|
};
|
|
114
111
|
const sortedDevDependencies = Object.fromEntries(
|
|
115
112
|
Object.entries(devDependencies).sort(([a], [b]) => a.localeCompare(b))
|
|
@@ -131,14 +128,18 @@ export function generatePackageJson(config) {
|
|
|
131
128
|
build: 'next build',
|
|
132
129
|
start: 'next start',
|
|
133
130
|
clean: 'rimraf node_modules && rimraf .next && rimraf package-lock.json',
|
|
134
|
-
|
|
131
|
+
check: 'biome check .',
|
|
132
|
+
'check:fix': 'biome check --write .',
|
|
133
|
+
'check:unsafe': 'biome check --write --unsafe .',
|
|
135
134
|
} : {
|
|
136
135
|
dev: 'vite',
|
|
137
136
|
build: 'tsc && vite build',
|
|
138
137
|
preview: 'vite preview',
|
|
139
138
|
clean: 'rimraf node_modules && rimraf dist && rimraf package-lock.json',
|
|
140
139
|
'install:build': 'npm install && tsc && vite build',
|
|
141
|
-
|
|
140
|
+
check: 'biome check .',
|
|
141
|
+
'check:fix': 'biome check --write .',
|
|
142
|
+
'check:unsafe': 'biome check --write --unsafe .',
|
|
142
143
|
},
|
|
143
144
|
dependencies: sortedDependencies,
|
|
144
145
|
devDependencies: sortedDevDependencies
|
|
@@ -27,12 +27,12 @@ export default function Home() {
|
|
|
27
27
|
|
|
28
28
|
const { data, isLoading, isError } = useTodoData();
|
|
29
29
|
|
|
30
|
-
if (isLoading) return <Spinner size='lg' className='my-20
|
|
30
|
+
if (isLoading) return <Spinner size='lg' className='mx-auto my-20' />;
|
|
31
31
|
|
|
32
32
|
if (isError) return <>Error</>;` : ''}
|
|
33
33
|
return (
|
|
34
34
|
<>
|
|
35
|
-
<div className='
|
|
35
|
+
<div className='mx-auto my-8 flex items-center justify-center gap-4'>
|
|
36
36
|
<Image
|
|
37
37
|
className='dark:invert'
|
|
38
38
|
src='/imgs/next.svg'
|
|
@@ -73,7 +73,7 @@ export default function Home() {
|
|
|
73
73
|
To get started, edit the App.tsx file.{' '}
|
|
74
74
|
<span className='font-bold'>Count: {count}</span>
|
|
75
75
|
</P>
|
|
76
|
-
<div className='flex
|
|
76
|
+
<div className='mb-8 flex justify-center gap-4'>
|
|
77
77
|
<Button
|
|
78
78
|
variant='tertiary'
|
|
79
79
|
onClick={() => {
|
|
@@ -95,12 +95,16 @@ export default defineConfig({
|
|
|
95
95
|
// 1. Append media first
|
|
96
96
|
mediaRules
|
|
97
97
|
.sort((a, b) => a.pxValue - b.pxValue)
|
|
98
|
-
.forEach(({ rule }) =>
|
|
98
|
+
.forEach(({ rule }) => {
|
|
99
|
+
root.append(rule);
|
|
100
|
+
});
|
|
99
101
|
|
|
100
102
|
// 2. Append container after
|
|
101
103
|
containerRules
|
|
102
104
|
.sort((a, b) => a.pxValue - b.pxValue)
|
|
103
|
-
.forEach(({ rule }) =>
|
|
105
|
+
.forEach(({ rule }) => {
|
|
106
|
+
root.append(rule);
|
|
107
|
+
});
|
|
104
108
|
},
|
|
105
109
|
},` : `
|
|
106
110
|
{
|
|
@@ -144,12 +148,16 @@ export default defineConfig({
|
|
|
144
148
|
// 1. Append media first
|
|
145
149
|
mediaRules
|
|
146
150
|
.sort((a, b) => a.pxValue - b.pxValue)
|
|
147
|
-
.forEach(({ rule }) =>
|
|
151
|
+
.forEach(({ rule }) => {
|
|
152
|
+
root.append(rule);
|
|
153
|
+
});
|
|
148
154
|
|
|
149
155
|
// 2. Append container after
|
|
150
156
|
containerRules
|
|
151
157
|
.sort((a, b) => a.pxValue - b.pxValue)
|
|
152
|
-
.forEach(({ rule }) =>
|
|
158
|
+
.forEach(({ rule }) => {
|
|
159
|
+
root.append(rule);
|
|
160
|
+
});
|
|
153
161
|
},
|
|
154
162
|
},`
|
|
155
163
|
}
|
|
@@ -33,7 +33,8 @@ The page will reload if you make edits. You will also see any lint errors in the
|
|
|
33
33
|
- `npm run build`: Executes `next build` and builds the app for production and deployment.
|
|
34
34
|
- `npm run preview`: Executes `next start` and serves the static build output locally.
|
|
35
35
|
- `npm run clean`: Executes `rimraf node_modules && rimraf .next && rimraf package-lock.json` and remove node_modules folder, dist folder and package-lock.json.
|
|
36
|
-
- `npm run
|
|
36
|
+
- `npm run check`: Executes `biome check .` and lists all the linting and prettier errors.
|
|
37
|
+
- `npm run check:fix`: Executes `biome check --write .` and resolve all the linting and prettier errors.
|
|
37
38
|
|
|
38
39
|
## 🧰 Tooling Setup
|
|
39
40
|
|
|
@@ -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,31 +1,31 @@
|
|
|
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
|
-
|
|
10
|
-
export const metadata: Metadata = {
|
|
11
|
-
title: 'My Next + UNDP app',
|
|
12
|
-
description: 'Generated by create undp app',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default function RootLayout({
|
|
16
|
-
children,
|
|
17
|
-
}: Readonly<{
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
}>) {
|
|
20
|
-
return (
|
|
21
|
-
<html lang='en'>
|
|
22
|
-
<body className='flex flex-col gap-0 min-h-screen'>
|
|
23
|
-
<HeaderEl />
|
|
24
|
-
<main className='grow-1 flex flex-col justify-center'>
|
|
25
|
-
<div className='flex flex-col justify-center'>{children}</div>
|
|
26
|
-
</main>
|
|
27
|
-
<FooterEl />
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
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
|
+
|
|
10
|
+
export const metadata: Metadata = {
|
|
11
|
+
title: 'My Next + UNDP app',
|
|
12
|
+
description: 'Generated by create undp app',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default function RootLayout({
|
|
16
|
+
children,
|
|
17
|
+
}: Readonly<{
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}>) {
|
|
20
|
+
return (
|
|
21
|
+
<html lang='en'>
|
|
22
|
+
<body className='flex flex-col gap-0 min-h-screen'>
|
|
23
|
+
<HeaderEl />
|
|
24
|
+
<main className='grow-1 flex flex-col justify-center'>
|
|
25
|
+
<div className='flex flex-col justify-center'>{children}</div>
|
|
26
|
+
</main>
|
|
27
|
+
<FooterEl />
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -16,7 +16,7 @@ export default function LoginPage() {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<>
|
|
19
|
-
<div className='
|
|
19
|
+
<div className='mx-auto my-8 flex items-center justify-center gap-4'>
|
|
20
20
|
<Image
|
|
21
21
|
className='dark:invert'
|
|
22
22
|
src='/imgs/next.svg'
|
|
@@ -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
|
+
}
|
|
@@ -26,7 +26,7 @@ export default function UserPage() {
|
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<>
|
|
29
|
-
<div className='
|
|
29
|
+
<div className='mx-auto my-8 flex items-center justify-center gap-4'>
|
|
30
30
|
<Image
|
|
31
31
|
className='dark:invert'
|
|
32
32
|
src='/imgs/next.svg'
|