@undp/create-app 0.1.0 → 0.2.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 +62 -0
- package/bin/generateFiles/generateIndexHtml.js +18 -0
- package/bin/generateFiles/generatePackageJson.js +160 -0
- package/bin/{generateTemplates/templates/configFiles/vite.config.ts.txt → generateFiles/generateViteConfig.js} +14 -12
- package/bin/generateFiles/index.js +3 -0
- package/bin/generateFiles.js +42 -2
- package/bin/index.js +38 -14
- package/bin/promptUser.js +60 -37
- package/bin/templates/next/withDataViz/auth/README.md +108 -0
- package/bin/templates/next/withDataViz/auth/app/about/page.tsx +33 -0
- package/bin/templates/next/withDataViz/auth/app/api/auth/[...all]/route.ts +5 -0
- package/bin/templates/next/withDataViz/auth/app/favicon.ico +0 -0
- package/bin/templates/next/withDataViz/auth/app/globals.css +3 -0
- package/bin/templates/next/withDataViz/auth/app/layout.tsx +30 -0
- package/bin/templates/next/withDataViz/auth/app/login/page.tsx +45 -0
- package/bin/templates/next/withDataViz/auth/app/page.tsx +33 -0
- package/bin/templates/next/withDataViz/auth/app/user/page.tsx +86 -0
- package/bin/templates/next/withDataViz/auth/components/Footer.tsx +16 -0
- package/bin/templates/next/withDataViz/auth/components/Header.tsx +56 -0
- package/bin/templates/next/withDataViz/auth/eslint.config.mjs +103 -0
- package/bin/templates/next/withDataViz/auth/lib/auth-client.ts +7 -0
- package/bin/templates/next/withDataViz/auth/lib/auth.ts +30 -0
- package/bin/templates/next/withDataViz/auth/next.config.ts +10 -0
- package/bin/templates/next/withDataViz/auth/postcss.config.mjs +7 -0
- package/bin/templates/next/withDataViz/auth/public/next.svg +1 -0
- package/bin/templates/next/withDataViz/auth/tsconfig.json +34 -0
- package/bin/templates/next/withDataViz/basic/.prettierrc +10 -0
- package/bin/templates/next/withDataViz/basic/README.md +56 -0
- package/bin/templates/next/withDataViz/basic/app/about/page.tsx +33 -0
- package/bin/templates/next/withDataViz/basic/app/favicon.ico +0 -0
- package/bin/templates/next/withDataViz/basic/app/globals.css +3 -0
- package/bin/templates/next/withDataViz/basic/app/layout.tsx +31 -0
- package/bin/templates/next/withDataViz/basic/app/page.tsx +33 -0
- package/bin/templates/next/withDataViz/basic/components/Footer.tsx +16 -0
- package/bin/templates/next/withDataViz/basic/components/Header.tsx +27 -0
- package/bin/templates/next/withDataViz/basic/eslint.config.mjs +103 -0
- package/bin/templates/next/withDataViz/basic/next.config.ts +7 -0
- package/bin/templates/next/withDataViz/basic/postcss.config.mjs +7 -0
- package/bin/templates/next/withDataViz/basic/public/next.svg +1 -0
- package/bin/templates/next/withDataViz/basic/public/undp-logo-blue.svg +1 -0
- package/bin/templates/next/withDataViz/basic/tailwind.config.js +7 -0
- package/bin/templates/next/withDataViz/basic/tsconfig.json +34 -0
- package/bin/templates/next/withoutDataViz/auth/.prettierrc +10 -0
- package/bin/templates/next/withoutDataViz/auth/README.md +107 -0
- package/bin/templates/next/withoutDataViz/auth/app/about/page.tsx +33 -0
- package/bin/templates/next/withoutDataViz/auth/app/api/auth/[...all]/route.ts +5 -0
- package/bin/templates/next/withoutDataViz/auth/app/favicon.ico +0 -0
- package/bin/templates/next/withoutDataViz/auth/app/globals.css +3 -0
- package/bin/templates/next/withoutDataViz/auth/app/layout.tsx +30 -0
- package/bin/templates/next/withoutDataViz/auth/app/login/page.tsx +45 -0
- package/bin/templates/next/withoutDataViz/auth/app/page.tsx +33 -0
- package/bin/templates/next/withoutDataViz/auth/app/user/page.tsx +86 -0
- package/bin/templates/next/withoutDataViz/auth/components/Footer.tsx +16 -0
- package/bin/templates/next/withoutDataViz/auth/components/Header.tsx +56 -0
- package/bin/templates/next/withoutDataViz/auth/eslint.config.mjs +103 -0
- package/bin/templates/next/withoutDataViz/auth/lib/auth-client.ts +7 -0
- package/bin/templates/next/withoutDataViz/auth/lib/auth.ts +30 -0
- package/bin/templates/next/withoutDataViz/auth/next.config.ts +10 -0
- package/bin/templates/next/withoutDataViz/auth/postcss.config.mjs +7 -0
- package/bin/templates/next/withoutDataViz/auth/public/next.svg +1 -0
- package/bin/templates/next/withoutDataViz/auth/public/undp-logo-blue.svg +1 -0
- package/bin/templates/next/withoutDataViz/auth/tailwind.config.js +7 -0
- package/bin/templates/next/withoutDataViz/auth/tsconfig.json +34 -0
- package/bin/templates/next/withoutDataViz/basic/.prettierrc +10 -0
- package/bin/templates/next/withoutDataViz/basic/README.md +55 -0
- package/bin/templates/next/withoutDataViz/basic/app/about/page.tsx +33 -0
- package/bin/templates/next/withoutDataViz/basic/app/favicon.ico +0 -0
- package/bin/templates/next/withoutDataViz/basic/app/globals.css +3 -0
- package/bin/templates/next/withoutDataViz/basic/app/layout.tsx +31 -0
- package/bin/templates/next/withoutDataViz/basic/app/page.tsx +33 -0
- package/bin/templates/next/withoutDataViz/basic/components/Footer.tsx +16 -0
- package/bin/templates/next/withoutDataViz/basic/components/Header.tsx +27 -0
- package/bin/templates/next/withoutDataViz/basic/eslint.config.mjs +103 -0
- package/bin/templates/next/withoutDataViz/basic/next.config.ts +7 -0
- package/bin/templates/next/withoutDataViz/basic/postcss.config.mjs +7 -0
- package/bin/templates/next/withoutDataViz/basic/public/next.svg +1 -0
- package/bin/templates/next/withoutDataViz/basic/public/undp-logo-blue.svg +1 -0
- package/bin/templates/next/withoutDataViz/basic/tailwind.config.js +7 -0
- package/bin/templates/next/withoutDataViz/basic/tsconfig.json +34 -0
- package/bin/templates/vite/withDataViz/basic/.prettierrc +10 -0
- package/bin/templates/vite/withDataViz/basic/README.md +76 -0
- package/bin/{generateTemplates/generateIndexHtml.js → templates/vite/withDataViz/basic/index.html} +3 -5
- package/bin/templates/vite/withDataViz/basic/public/favicon.ico +0 -0
- package/bin/templates/vite/withDataViz/basic/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withDataViz/basic/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withDataViz/basic/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/basic/src/App.tsx +38 -0
- package/bin/templates/vite/withDataViz/basic/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/basic/src/components/Footer.tsx +14 -0
- package/bin/{generateTemplates/templates/router/components/Header.txt → templates/vite/withDataViz/basic/src/components/Header.tsx} +8 -12
- package/bin/templates/vite/withDataViz/basic/src/styles/style.css +4 -0
- package/bin/templates/vite/withDataViz/basic/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withDataViz/basic/tailwind.config.js +7 -0
- package/bin/{generateTemplates/templates/configFiles → templates/vite/withDataViz/basic}/tsconfig.json +1 -1
- package/bin/{generateTemplates/templates/configFiles/viteWithoutPostCss.config.ts.txt → templates/vite/withDataViz/basic/vite.config.ts} +17 -1
- package/bin/templates/vite/withDataViz/query/.prettierrc +10 -0
- package/bin/templates/vite/withDataViz/query/README.md +80 -0
- package/bin/templates/vite/withDataViz/query/eslint.config.mjs +97 -0
- package/bin/templates/vite/withDataViz/query/index.html +13 -0
- package/bin/templates/vite/withDataViz/query/public/favicon.ico +0 -0
- package/bin/templates/vite/withDataViz/query/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withDataViz/query/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withDataViz/query/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withDataViz/query/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/query/src/App.tsx +70 -0
- package/bin/templates/vite/withDataViz/query/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/query/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withDataViz/query/src/components/Header.tsx +25 -0
- package/bin/templates/vite/withDataViz/query/src/integration/tanstack-query.tsx +27 -0
- package/bin/templates/vite/withDataViz/query/src/main.tsx +21 -0
- package/bin/templates/vite/withDataViz/query/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withDataViz/query/src/styles/style.css +4 -0
- package/bin/templates/vite/withDataViz/query/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withDataViz/query/tailwind.config.js +7 -0
- package/bin/templates/vite/withDataViz/query/tsconfig.json +29 -0
- package/bin/templates/vite/withDataViz/query/tsconfig.node.json +9 -0
- package/bin/templates/vite/withDataViz/query/vite.config.ts +75 -0
- package/bin/templates/vite/withDataViz/query+router/.prettierrc +10 -0
- package/bin/templates/vite/withDataViz/query+router/README.md +112 -0
- package/bin/templates/vite/withDataViz/query+router/eslint.config.mjs +97 -0
- package/bin/templates/vite/withDataViz/query+router/index.html +13 -0
- package/bin/templates/vite/withDataViz/query+router/public/favicon.ico +0 -0
- package/bin/templates/vite/withDataViz/query+router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withDataViz/query+router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withDataViz/query+router/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withDataViz/query+router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/query+router/src/App.tsx +42 -0
- package/bin/templates/vite/withDataViz/query+router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/query+router/src/components/Footer.tsx +14 -0
- package/bin/{generateTemplates/templates/router+query/components/Header.txt → templates/vite/withDataViz/query+router/src/components/Header.tsx} +8 -12
- package/bin/{generateTemplates/templates/router+query/integration/tanstack-query.txt → templates/vite/withDataViz/query+router/src/integration/tanstack-query.tsx} +5 -5
- package/bin/{generateTemplates/templates/router+query/main.txt → templates/vite/withDataViz/query+router/src/main.tsx} +15 -11
- package/bin/templates/vite/withDataViz/query+router/src/routes/queryDemo.tsx +73 -0
- package/bin/templates/vite/withDataViz/query+router/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withDataViz/query+router/src/styles/style.css +4 -0
- package/bin/templates/vite/withDataViz/query+router/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withDataViz/query+router/tailwind.config.js +7 -0
- package/bin/templates/vite/withDataViz/query+router/tsconfig.json +29 -0
- package/bin/templates/vite/withDataViz/query+router/tsconfig.node.json +9 -0
- package/bin/templates/vite/withDataViz/query+router/vite.config.ts +75 -0
- package/bin/templates/vite/withDataViz/router/.prettierrc +10 -0
- package/bin/templates/vite/withDataViz/router/README.md +107 -0
- package/bin/templates/vite/withDataViz/router/eslint.config.mjs +97 -0
- package/bin/templates/vite/withDataViz/router/index.html +13 -0
- package/bin/templates/vite/withDataViz/router/public/favicon.ico +0 -0
- package/bin/templates/vite/withDataViz/router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withDataViz/router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withDataViz/router/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withDataViz/router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/router/src/App.tsx +51 -0
- package/bin/templates/vite/withDataViz/router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withDataViz/router/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withDataViz/router/src/components/Header.tsx +25 -0
- package/bin/{generateTemplates/templates/router/main.txt → templates/vite/withDataViz/router/src/main.tsx} +18 -12
- package/bin/templates/vite/withDataViz/router/src/routes/about.tsx +73 -0
- package/bin/templates/vite/withDataViz/router/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withDataViz/router/src/styles/style.css +4 -0
- package/bin/templates/vite/withDataViz/router/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withDataViz/router/tailwind.config.js +7 -0
- package/bin/templates/vite/withDataViz/router/tsconfig.json +29 -0
- package/bin/templates/vite/withDataViz/router/tsconfig.node.json +9 -0
- package/bin/templates/vite/withDataViz/router/vite.config.ts +75 -0
- package/bin/templates/vite/withoutDataViz/basic/.prettierrc +10 -0
- package/bin/templates/vite/withoutDataViz/basic/README.md +75 -0
- package/bin/templates/vite/withoutDataViz/basic/eslint.config.mjs +97 -0
- package/bin/templates/vite/withoutDataViz/basic/index.html +13 -0
- package/bin/templates/vite/withoutDataViz/basic/public/favicon.ico +0 -0
- package/bin/templates/vite/withoutDataViz/basic/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withoutDataViz/basic/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withoutDataViz/basic/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/basic/src/App.tsx +38 -0
- package/bin/templates/vite/withoutDataViz/basic/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/basic/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withoutDataViz/basic/src/components/Header.tsx +25 -0
- package/bin/templates/vite/withoutDataViz/basic/src/main.tsx +10 -0
- package/bin/templates/vite/withoutDataViz/basic/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withoutDataViz/basic/src/styles/style.css +3 -0
- package/bin/templates/vite/withoutDataViz/basic/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withoutDataViz/basic/tailwind.config.js +7 -0
- package/bin/templates/vite/withoutDataViz/basic/tsconfig.json +29 -0
- package/bin/templates/vite/withoutDataViz/basic/tsconfig.node.json +9 -0
- package/bin/templates/vite/withoutDataViz/basic/vite.config.ts +75 -0
- package/bin/templates/vite/withoutDataViz/query/.prettierrc +10 -0
- package/bin/templates/vite/withoutDataViz/query/README.md +80 -0
- package/bin/templates/vite/withoutDataViz/query/eslint.config.mjs +97 -0
- package/bin/templates/vite/withoutDataViz/query/index.html +13 -0
- package/bin/templates/vite/withoutDataViz/query/public/favicon.ico +0 -0
- package/bin/templates/vite/withoutDataViz/query/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withoutDataViz/query/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withoutDataViz/query/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query/src/App.tsx +70 -0
- package/bin/templates/vite/withoutDataViz/query/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withoutDataViz/query/src/components/Header.tsx +25 -0
- package/bin/templates/vite/withoutDataViz/query/src/integration/tanstack-query.tsx +27 -0
- package/bin/templates/vite/withoutDataViz/query/src/main.tsx +21 -0
- package/bin/templates/vite/withoutDataViz/query/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withoutDataViz/query/src/styles/style.css +3 -0
- package/bin/templates/vite/withoutDataViz/query/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withoutDataViz/query/tailwind.config.js +7 -0
- package/bin/templates/vite/withoutDataViz/query/tsconfig.json +29 -0
- package/bin/templates/vite/withoutDataViz/query/tsconfig.node.json +9 -0
- package/bin/templates/vite/withoutDataViz/query/vite.config.ts +75 -0
- package/bin/templates/vite/withoutDataViz/query+router/.prettierrc +10 -0
- package/bin/templates/vite/withoutDataViz/query+router/README.md +111 -0
- package/bin/templates/vite/withoutDataViz/query+router/eslint.config.mjs +97 -0
- package/bin/templates/vite/withoutDataViz/query+router/index.html +13 -0
- package/bin/templates/vite/withoutDataViz/query+router/public/favicon.ico +0 -0
- package/bin/templates/vite/withoutDataViz/query+router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query+router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withoutDataViz/query+router/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withoutDataViz/query+router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/App.tsx +42 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/components/Header.tsx +25 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/integration/tanstack-query.tsx +27 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/main.tsx +73 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/routes/queryDemo.tsx +73 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/styles/style.css +3 -0
- package/bin/templates/vite/withoutDataViz/query+router/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withoutDataViz/query+router/tailwind.config.js +7 -0
- package/bin/templates/vite/withoutDataViz/query+router/tsconfig.json +29 -0
- package/bin/templates/vite/withoutDataViz/query+router/tsconfig.node.json +9 -0
- package/bin/templates/vite/withoutDataViz/query+router/vite.config.ts +75 -0
- package/bin/templates/vite/withoutDataViz/router/.prettierrc +10 -0
- package/bin/templates/vite/withoutDataViz/router/README.md +106 -0
- package/bin/templates/vite/withoutDataViz/router/eslint.config.mjs +97 -0
- package/bin/templates/vite/withoutDataViz/router/index.html +13 -0
- package/bin/templates/vite/withoutDataViz/router/public/favicon.ico +0 -0
- package/bin/templates/vite/withoutDataViz/router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/vite/withoutDataViz/router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/vite/withoutDataViz/router/public/imgs/logo-color-600.png +0 -0
- package/bin/templates/vite/withoutDataViz/router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/router/src/App.tsx +51 -0
- package/bin/templates/vite/withoutDataViz/router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/vite/withoutDataViz/router/src/components/Footer.tsx +14 -0
- package/bin/templates/vite/withoutDataViz/router/src/components/Header.tsx +25 -0
- package/bin/templates/vite/withoutDataViz/router/src/main.tsx +66 -0
- package/bin/templates/vite/withoutDataViz/router/src/routes/about.tsx +73 -0
- package/bin/templates/vite/withoutDataViz/router/src/styles/fonts.css +213 -0
- package/bin/templates/vite/withoutDataViz/router/src/styles/style.css +4 -0
- package/bin/templates/vite/withoutDataViz/router/src/vite-env.d.ts +1 -0
- package/bin/templates/vite/withoutDataViz/router/tailwind.config.js +7 -0
- package/bin/templates/vite/withoutDataViz/router/tsconfig.json +29 -0
- package/bin/templates/vite/withoutDataViz/router/tsconfig.node.json +9 -0
- package/bin/templates/vite/withoutDataViz/router/vite.config.ts +75 -0
- package/bin/utils/printSuccess.js +0 -9
- package/package.json +6 -2
- package/bin/generateTemplates/copyTemplate.js +0 -18
- package/bin/generateTemplates/generatePackageJson.js +0 -105
- package/bin/generateTemplates/generateReadme.js +0 -143
- package/bin/generateTemplates/generateStyleCss.js +0 -6
- package/bin/generateTemplates/index.js +0 -6
- package/bin/generateTemplates/templates/basic/App.txt +0 -32
- package/bin/generateTemplates/templates/basic/AppWithContainer.txt +0 -32
- package/bin/generateTemplates/templates/configFiles/staticwebapp.config.json +0 -44
- package/bin/generateTemplates/templates/configFiles/vite-env.txt +0 -1
- package/bin/generateTemplates/templates/query/App.txt +0 -57
- package/bin/generateTemplates/templates/query/AppWithContainer.txt +0 -67
- package/bin/generateTemplates/templates/query/main.txt +0 -29
- package/bin/generateTemplates/templates/router/App.txt +0 -30
- package/bin/generateTemplates/templates/router/components/Footer.txt +0 -20
- package/bin/generateTemplates/templates/router/routes/About.txt +0 -28
- package/bin/generateTemplates/templates/router+query/App.txt +0 -30
- package/bin/generateTemplates/templates/router+query/components/Footer.txt +0 -20
- package/bin/generateTemplates/templates/router+query/routes/queryDemo.txt +0 -56
- /package/bin/{generateTemplates/templates/configFiles → templates/next/withDataViz/auth}/.prettierrc +0 -0
- /package/bin/{generateTemplates/templates/configFiles/icon.txt → templates/next/withDataViz/auth/public/undp-logo-blue.svg} +0 -0
- /package/bin/{generateTemplates/templates/configFiles → templates/next/withDataViz/auth}/tailwind.config.js +0 -0
- /package/bin/{generateTemplates/templates/configFiles/eslint.config.js → templates/vite/withDataViz/basic/eslint.config.mjs} +0 -0
- /package/bin/{generateTemplates/templates/basic/main.txt → templates/vite/withDataViz/basic/src/main.tsx} +0 -0
- /package/bin/{generateTemplates/templates/css → templates/vite/withDataViz/basic/src/styles}/fonts.css +0 -0
- /package/bin/{generateTemplates/templates/configFiles → templates/vite/withDataViz/basic}/tsconfig.node.json +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Footer,
|
|
3
|
-
FooterLogoUnit,
|
|
4
|
-
FooterCopyrightUnit,
|
|
5
|
-
} from '@undp/design-system-react/Footer';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default function Header() {
|
|
10
|
-
return (
|
|
11
|
-
<Footer>
|
|
12
|
-
<FooterLogoUnit>
|
|
13
|
-
subscribe to email
|
|
14
|
-
</FooterLogoUnit>
|
|
15
|
-
<FooterCopyrightUnit>
|
|
16
|
-
Footnote can be added here
|
|
17
|
-
</FooterCopyrightUnit>
|
|
18
|
-
</Footer>
|
|
19
|
-
)
|
|
20
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { createRoute } from '@tanstack/react-router';
|
|
2
|
-
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import type { RootRoute } from '@tanstack/react-router';
|
|
4
|
-
import { Spinner } from '@undp/design-system-react/Spinner';
|
|
5
|
-
|
|
6
|
-
function useTodoData() {
|
|
7
|
-
return useQuery({
|
|
8
|
-
queryKey: ['todos'],
|
|
9
|
-
queryFn: () =>
|
|
10
|
-
Promise.resolve([
|
|
11
|
-
{ id: 1, name: 'Alice' },
|
|
12
|
-
{ id: 2, name: 'Bob' },
|
|
13
|
-
{ id: 3, name: 'Charlie' },
|
|
14
|
-
]),
|
|
15
|
-
initialData: [],
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function TanStackQueryDemo() {
|
|
20
|
-
const { data, isLoading, isError } = useTodoData();
|
|
21
|
-
|
|
22
|
-
if (isLoading) return <Spinner size='lg' className='my-20 m-auto' />;
|
|
23
|
-
|
|
24
|
-
if (isError)
|
|
25
|
-
return (
|
|
26
|
-
<div className='px-4 mx-auto'>
|
|
27
|
-
<div>Error</div>
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
return (
|
|
31
|
-
<div className='m-5'>
|
|
32
|
-
<div>
|
|
33
|
-
<img
|
|
34
|
-
src={undpLogo}
|
|
35
|
-
className='logo react mb-8'
|
|
36
|
-
alt='React logo'
|
|
37
|
-
width='72px'
|
|
38
|
-
style={{ marginLeft: 'auto', marginRight: 'auto' }}
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
<H3 className='text-center'>
|
|
42
|
-
Data loaded successfully
|
|
43
|
-
<br />
|
|
44
|
-
<br />
|
|
45
|
-
{data.length} elements in the query
|
|
46
|
-
</H3>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export default (parentRoute: RootRoute) =>
|
|
52
|
-
createRoute({
|
|
53
|
-
path: '/query-demo',
|
|
54
|
-
component: TanStackQueryDemo,
|
|
55
|
-
getParentRoute: () => parentRoute,
|
|
56
|
-
});
|
/package/bin/{generateTemplates/templates/configFiles → templates/next/withDataViz/auth}/.prettierrc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|