@imksh/create 1.0.26 → 1.0.28
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/package.json +6 -3
- package/src/commands/create.js +2 -1
- package/src/index.js +1 -1
- package/src/utils/askTemplate.js +1 -0
- package/src/utils/composeTemplate.js +158 -0
- package/src/utils/copyTemplate.js +17 -39
- package/templates/{mern/server → layers/node/javascript}/src/controllers/auth.controller.js +14 -0
- package/templates/{node → layers/node/javascript}/src/models/pushSubscription.model.js +12 -4
- package/templates/{node → layers/node/javascript}/src/models/user.model.js +6 -0
- package/templates/{mern/server → layers/node/javascript}/src/services/auth.service.js +17 -0
- package/templates/{mern-ts/server → layers/node/typescript}/src/controllers/auth.controller.ts +14 -0
- package/templates/{mern-ts/server → layers/node/typescript}/src/models/pushSubscription.model.ts +15 -6
- package/templates/{mern-react-native/server → layers/node/typescript}/src/models/user.model.ts +1 -1
- package/templates/{mern-ts/server → layers/node/typescript}/src/routes/auth.route.ts +2 -0
- package/templates/{mern-ts/server → layers/node/typescript}/src/services/auth.service.ts +17 -0
- package/templates/layers/prisma/javascript/README.md +71 -0
- package/templates/{node → layers/prisma/javascript}/package.json +6 -3
- package/templates/layers/prisma/javascript/prisma/schema.prisma +41 -0
- package/templates/layers/prisma/javascript/src/config/db.js +16 -0
- package/templates/{node → layers/prisma/javascript}/src/controllers/auth.controller.js +7 -14
- package/templates/layers/prisma/javascript/src/controllers/push.controller.js +54 -0
- package/templates/layers/prisma/javascript/src/middleware/auth.middleware.js +44 -0
- package/templates/{node → layers/prisma/javascript}/src/services/auth.service.js +55 -55
- package/templates/layers/prisma/javascript/src/utils/pushHelper.js +22 -0
- package/templates/{node-ts → layers/prisma/typescript}/package.json +7 -6
- package/templates/layers/prisma/typescript/prisma/schema.prisma +41 -0
- package/templates/layers/prisma/typescript/src/config/db.ts +16 -0
- package/templates/{react/src/config → layers/react/javascript/src/assets/data}/navigation.js +10 -0
- package/templates/layers/react/javascript/src/components/common/Breadcrumbs.jsx +60 -0
- package/templates/layers/react/javascript/src/components/common/CircularProgress.jsx +65 -0
- package/templates/layers/react/javascript/src/components/common/Modal.jsx +108 -0
- package/templates/{mern/client → layers/react/javascript}/src/components/common/NotFound.jsx +1 -1
- package/templates/layers/react/javascript/src/components/common/PageTransition.jsx +34 -0
- package/templates/layers/react/javascript/src/components/common/Pagination.jsx +81 -0
- package/templates/{react → layers/react/javascript}/src/components/common/SEO.jsx +3 -11
- package/templates/{react → layers/react/javascript}/src/components/common/Scroll.jsx +1 -1
- package/templates/layers/react/javascript/src/components/common/Table.jsx +143 -0
- package/templates/layers/react/javascript/src/components/common/Tabs.jsx +134 -0
- package/templates/layers/react/javascript/src/components/common/modals/ConfirmModal.jsx +119 -0
- package/templates/layers/react/javascript/src/components/common/modals/DocViewerModal.jsx +31 -0
- package/templates/{next → layers/react/javascript}/src/components/modals/ConfirmModal.jsx +2 -11
- package/templates/{next → layers/react/javascript}/src/components/modals/Modal.jsx +4 -9
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/CardSkeleton.jsx +1 -3
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/DashboardSkeleton.jsx +1 -3
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/ListSkeleton.jsx +2 -5
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/PageSkeleton.jsx +2 -9
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/ProfileSkeleton.jsx +1 -5
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/Skeleton.jsx +1 -1
- package/templates/{next → layers/react/javascript}/src/components/skeletons/common/TableSkeleton.jsx +1 -1
- package/templates/{mern/client → layers/react/javascript}/src/components/ui/Header.jsx +19 -11
- package/templates/layers/react/javascript/src/components/ui/SidebarHeader.jsx +36 -0
- package/templates/layers/react/javascript/src/components/ui/sidebar.jsx +169 -0
- package/templates/{mern/client → layers/react/javascript}/src/config/api.js +1 -1
- package/templates/{react → layers/react/javascript}/src/config/appConfig.js +1 -1
- package/templates/{react → layers/react/javascript}/src/hooks/useLenis.js +1 -1
- package/templates/{react → layers/react/javascript}/src/hooks/usePwaInstall.js +4 -1
- package/templates/{next → layers/react/javascript}/src/hooks/useWindowSize.js +1 -2
- package/templates/{react → layers/react/javascript}/src/pages/Home.jsx +1 -1
- package/templates/{react → layers/react/javascript}/src/pages/Login.jsx +8 -2
- package/templates/layers/react/javascript/src/pages/Profile.jsx +7 -0
- package/templates/{react → layers/react/javascript}/src/services/authService.js +3 -6
- package/templates/{next → layers/react/javascript}/src/store/useAuthStore.js +7 -1
- package/templates/{mern/client → layers/react/javascript}/src/store/useUiStore.js +11 -14
- package/templates/{next → layers/react/javascript}/src/utils/getInitials.js +1 -1
- package/templates/layers/react/typescript/src/components/common/Breadcrumbs.tsx +49 -0
- package/templates/layers/react/typescript/src/components/common/CircularProgress.tsx +68 -0
- package/templates/{production-fullstack/client/src/components/ui → layers/react/typescript/src/components/common}/Modal.tsx +53 -18
- package/templates/layers/react/typescript/src/components/common/PageTransition.tsx +45 -0
- package/templates/layers/react/typescript/src/components/common/Pagination.tsx +91 -0
- package/templates/{mern-ts/client → layers/react/typescript}/src/components/common/Table.tsx +4 -2
- package/templates/layers/react/typescript/src/components/common/Tabs.tsx +145 -0
- package/templates/layers/react/typescript/src/components/common/modals/ConfirmModal.tsx +114 -0
- package/templates/layers/react/typescript/src/components/common/modals/DocViewerModal.tsx +41 -0
- package/templates/{mern-react-native/client → layers/react/typescript}/src/components/layout/SidebarLayout.tsx +1 -1
- package/templates/{mern/client/src/components/ui/sidebar.jsx → layers/react/typescript/src/components/ui/Sidebar.tsx} +4 -4
- package/templates/{mern-react-native/client → layers/react/typescript}/src/components/ui/SidebarHeader.tsx +15 -4
- package/templates/{react-ts → layers/react/typescript}/src/store/useUiStore.ts +17 -0
- package/templates/layers/react-native/base/package-lock.json +15108 -0
- package/templates/{mern-react-native/mobile → layers/react-native/base}/package.json +8 -0
- package/templates/{react-native → layers/react-native/base}/src/app/(tabs)/profile.tsx +20 -1
- package/templates/{react-native → layers/react-native/base}/src/app/_layout.tsx +20 -12
- package/templates/layers/react-native/base/src/app/doc-viewer.tsx +193 -0
- package/templates/{react-native → layers/react-native/base}/src/components/common/Typography.tsx +37 -10
- package/templates/layers/react-native/base/src/components/ui/BiometricLock.tsx +113 -0
- package/templates/{react-native → layers/react-native/base}/src/components/ui/BottomModal.tsx +20 -3
- package/templates/{production-fullstack/mobile → layers/react-native/base}/src/components/ui/ClassicTabBar.tsx +10 -27
- package/templates/layers/react-native/base/src/services/biometric.service.ts +24 -0
- package/templates/{mern-react-native/mobile → layers/react-native/base}/src/store/useAuthStore.ts +53 -12
- package/templates/presets/fullstack-prisma/overrides/package.json +15 -0
- package/templates/presets/fullstack-prisma/preset.json +22 -0
- package/templates/presets/mern/overrides/_gitignore +2 -0
- package/templates/presets/mern/preset.json +18 -0
- package/templates/presets/mern-react-native/preset.json +22 -0
- package/templates/presets/mern-ts/preset.json +18 -0
- package/templates/presets/next/preset.json +7 -0
- package/templates/presets/next-ts/preset.json +7 -0
- package/templates/presets/node/preset.json +6 -0
- package/templates/presets/node-prisma/preset.json +6 -0
- package/templates/presets/node-prisma-ts/preset.json +6 -0
- package/templates/presets/node-ts/preset.json +6 -0
- package/templates/presets/production-fullstack/overrides/client/package-lock.json +6065 -0
- package/templates/presets/production-fullstack/overrides/mobile/_gitignore +43 -0
- package/templates/{mern → presets/production-fullstack/overrides}/server/.env.example +3 -2
- package/templates/presets/production-fullstack/preset.json +5 -0
- package/templates/presets/react/preset.json +8 -0
- package/templates/presets/react-native/preset.json +6 -0
- package/templates/presets/react-ts/preset.json +7 -0
- package/templates/mern/client/src/components/common/Breadcrumbs.jsx +0 -27
- package/templates/mern/client/src/components/common/SEO.jsx +0 -67
- package/templates/mern/client/src/components/common/Scroll.jsx +0 -25
- package/templates/mern/client/src/config/appConfig.js +0 -44
- package/templates/mern/client/src/hooks/useLenis.js +0 -28
- package/templates/mern/client/src/pages/Home.jsx +0 -154
- package/templates/mern/client/src/pages/Login.jsx +0 -233
- package/templates/mern/client/src/pages/Profile.jsx +0 -9
- package/templates/mern/client/src/services/authService.js +0 -19
- package/templates/mern/server/src/models/pushSubscription.model.js +0 -32
- package/templates/mern/server/src/models/user.model.js +0 -43
- package/templates/mern/server/src/routes/auth.route.js +0 -24
- package/templates/mern-react-native/client/src/components/ui/sidebar.tsx +0 -152
- package/templates/mern-react-native/mobile/src/app/(tabs)/profile.tsx +0 -78
- package/templates/mern-react-native/mobile/src/app/_layout.tsx +0 -98
- package/templates/mern-react-native/server/package.json +0 -48
- package/templates/mern-react-native/server/src/controllers/auth.controller.ts +0 -207
- package/templates/mern-react-native/server/src/models/pushSubscription.model.ts +0 -45
- package/templates/mern-react-native/server/src/services/auth.service.ts +0 -167
- package/templates/mern-ts/client/package.json +0 -41
- package/templates/mern-ts/client/src/App.tsx +0 -68
- package/templates/mern-ts/client/src/components/common/Breadcrumbs.tsx +0 -27
- package/templates/mern-ts/client/src/components/common/Loading.tsx +0 -19
- package/templates/mern-ts/client/src/components/common/PwaInstallPrompt.tsx +0 -72
- package/templates/mern-ts/client/src/components/layout/ProtectedRoute.tsx +0 -23
- package/templates/mern-ts/client/src/components/layout/SidebarLayout.tsx +0 -37
- package/templates/mern-ts/client/src/components/modals/Modal.tsx +0 -106
- package/templates/mern-ts/client/src/components/ui/Header.tsx +0 -230
- package/templates/mern-ts/client/src/components/ui/SidebarHeader.tsx +0 -27
- package/templates/mern-ts/client/src/components/ui/sidebar.tsx +0 -152
- package/templates/mern-ts/client/src/config/api.ts +0 -22
- package/templates/mern-ts/client/src/config/appConfig.ts +0 -44
- package/templates/mern-ts/client/src/main.tsx +0 -24
- package/templates/mern-ts/client/src/pages/Home.tsx +0 -154
- package/templates/mern-ts/client/src/pages/Login.tsx +0 -233
- package/templates/mern-ts/client/src/services/authService.ts +0 -19
- package/templates/mern-ts/client/src/store/useUiStore.ts +0 -74
- package/templates/mern-ts/server/README.md +0 -71
- package/templates/mern-ts/server/src/config/db.ts +0 -15
- package/templates/mern-ts/server/src/index.ts +0 -17
- package/templates/mern-ts/server/src/middleware/auth.middleware.ts +0 -38
- package/templates/mern-ts/server/src/models/otp.model.ts +0 -27
- package/templates/mern-ts/server/src/models/user.model.ts +0 -57
- package/templates/mern-ts/server/src/routes/index.ts +0 -10
- package/templates/next/next.config.mjs +0 -23
- package/templates/next/public/manifest.json +0 -21
- package/templates/next/src/assets/data/navigation.js +0 -29
- package/templates/next/src/components/common/Table.jsx +0 -110
- package/templates/next/src/components/ui/SidebarHeader.jsx +0 -27
- package/templates/next/src/hooks/usePwaInstall.js +0 -45
- package/templates/next-ts/AGENTS.md +0 -37
- package/templates/next-ts/CLAUDE.md +0 -1
- package/templates/next-ts/_gitignore +0 -0
- package/templates/next-ts/src/components/common/Table.tsx +0 -118
- package/templates/next-ts/src/components/modals/ConfirmModal.tsx +0 -152
- package/templates/next-ts/src/store/useAuthStore.ts +0 -143
- package/templates/node/.env.example +0 -62
- package/templates/node/README.md +0 -67
- package/templates/node/_gitignore +0 -24
- package/templates/node/src/app.js +0 -42
- package/templates/node/src/config/cloudinary.js +0 -9
- package/templates/node/src/config/db.js +0 -14
- package/templates/node/src/config/dotenv.js +0 -2
- package/templates/node/src/config/email.js +0 -30
- package/templates/node/src/config/socket.js +0 -54
- package/templates/node/src/config/webPush.js +0 -9
- package/templates/node/src/controllers/upload.controller.js +0 -26
- package/templates/node/src/index.js +0 -24
- package/templates/node/src/middleware/auth.middleware.js +0 -43
- package/templates/node/src/middleware/errorHandler.js +0 -22
- package/templates/node/src/middleware/multer.js +0 -21
- package/templates/node/src/middleware/rateLimiter.js +0 -57
- package/templates/node/src/models/otp.model.js +0 -21
- package/templates/node/src/routes/auth.route.js +0 -22
- package/templates/node/src/routes/index.js +0 -12
- package/templates/node/src/routes/upload.route.js +0 -12
- package/templates/node/src/utils/authToken.js +0 -26
- package/templates/node/src/utils/cloudinary.js +0 -27
- package/templates/node/src/utils/cloudinaryUpload.js +0 -87
- package/templates/node/src/utils/emailOtp.js +0 -190
- package/templates/node/src/utils/genOtpToken.js +0 -20
- package/templates/node/src/utils/generateVapidKeys.js +0 -12
- package/templates/node/src/utils/jwt.js +0 -25
- package/templates/node/src/utils/logger.js +0 -25
- package/templates/node-prisma-ts/src/app.ts +0 -36
- package/templates/node-prisma-ts/src/config/cloudinary.ts +0 -9
- package/templates/node-prisma-ts/src/config/dotenv.ts +0 -2
- package/templates/node-prisma-ts/src/config/email.ts +0 -28
- package/templates/node-prisma-ts/src/config/socket.ts +0 -54
- package/templates/node-prisma-ts/src/config/webPush.ts +0 -9
- package/templates/node-prisma-ts/src/controllers/upload.controller.ts +0 -22
- package/templates/node-prisma-ts/src/routes/upload.route.ts +0 -11
- package/templates/node-prisma-ts/src/utils/cloudinaryUpload.ts +0 -44
- package/templates/node-prisma-ts/src/utils/emailOtp.ts +0 -30
- package/templates/node-prisma-ts/src/utils/generateVapidKeys.ts +0 -12
- package/templates/node-prisma-ts/src/utils/logger.ts +0 -27
- package/templates/node-ts/.env.example +0 -62
- package/templates/node-ts/README.md +0 -71
- package/templates/node-ts/src/app.ts +0 -36
- package/templates/node-ts/src/config/cloudinary.ts +0 -9
- package/templates/node-ts/src/config/db.ts +0 -15
- package/templates/node-ts/src/config/dotenv.ts +0 -2
- package/templates/node-ts/src/config/email.ts +0 -28
- package/templates/node-ts/src/config/socket.ts +0 -54
- package/templates/node-ts/src/config/webPush.ts +0 -9
- package/templates/node-ts/src/controllers/auth.controller.ts +0 -126
- package/templates/node-ts/src/controllers/upload.controller.ts +0 -22
- package/templates/node-ts/src/index.ts +0 -17
- package/templates/node-ts/src/middleware/auth.middleware.ts +0 -38
- package/templates/node-ts/src/middleware/errorHandler.ts +0 -16
- package/templates/node-ts/src/middleware/multer.ts +0 -20
- package/templates/node-ts/src/middleware/rateLimiter.ts +0 -53
- package/templates/node-ts/src/models/otp.model.ts +0 -27
- package/templates/node-ts/src/models/pushSubscription.model.ts +0 -45
- package/templates/node-ts/src/models/user.model.ts +0 -57
- package/templates/node-ts/src/routes/auth.route.ts +0 -22
- package/templates/node-ts/src/routes/index.ts +0 -12
- package/templates/node-ts/src/routes/upload.route.ts +0 -11
- package/templates/node-ts/src/services/auth.service.ts +0 -107
- package/templates/node-ts/src/types/express.d.ts +0 -10
- package/templates/node-ts/src/utils/cloudinaryUpload.ts +0 -44
- package/templates/node-ts/src/utils/emailOtp.ts +0 -30
- package/templates/node-ts/src/utils/genOtpToken.ts +0 -22
- package/templates/node-ts/src/utils/generateVapidKeys.ts +0 -12
- package/templates/node-ts/src/utils/jwt.ts +0 -27
- package/templates/node-ts/src/utils/logger.ts +0 -27
- package/templates/node-ts/tsconfig.json +0 -18
- package/templates/production-fullstack/client/index.html +0 -14
- package/templates/production-fullstack/client/public/_redirects +0 -1
- package/templates/production-fullstack/client/public/favicon.ico +0 -0
- package/templates/production-fullstack/client/public/favicon.svg +0 -1
- package/templates/production-fullstack/client/public/manifest.json +0 -24
- package/templates/production-fullstack/client/public/sw.js +0 -56
- package/templates/production-fullstack/client/src/assets/data/navigation.ts +0 -29
- package/templates/production-fullstack/client/src/assets/images/logo.png +0 -0
- package/templates/production-fullstack/client/src/components/layout/PublicLayout.tsx +0 -13
- package/templates/production-fullstack/client/src/components/shared/Breadcrumbs.tsx +0 -27
- package/templates/production-fullstack/client/src/components/shared/LottieIcon.tsx +0 -36
- package/templates/production-fullstack/client/src/components/shared/NotFound.tsx +0 -78
- package/templates/production-fullstack/client/src/components/shared/SEO.tsx +0 -67
- package/templates/production-fullstack/client/src/components/shared/Scroll.tsx +0 -25
- package/templates/production-fullstack/client/src/components/shared/Unauthorized.tsx +0 -76
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/CardSkeleton.tsx +0 -23
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/DashboardSkeleton.tsx +0 -19
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/ListSkeleton.tsx +0 -24
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/PageSkeleton.tsx +0 -26
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/ProfileSkeleton.tsx +0 -23
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/Skeleton.tsx +0 -18
- package/templates/production-fullstack/client/src/components/shared/skeletons/common/TableSkeleton.tsx +0 -33
- package/templates/production-fullstack/client/src/components/ui/ConfirmModal.tsx +0 -152
- package/templates/production-fullstack/client/src/components/ui/ToggleSwitch.tsx +0 -38
- package/templates/production-fullstack/client/src/constants/navigation.ts +0 -14
- package/templates/production-fullstack/client/src/features/core/pages/Profile.tsx +0 -9
- package/templates/production-fullstack/client/src/hooks/useLenis.ts +0 -28
- package/templates/production-fullstack/client/src/hooks/usePwaInstall.ts +0 -45
- package/templates/production-fullstack/client/src/hooks/useWindowSize.ts +0 -25
- package/templates/production-fullstack/client/src/index.css +0 -158
- package/templates/production-fullstack/client/src/store/useUiStore.ts +0 -74
- package/templates/production-fullstack/client/src/utils/formatDate.ts +0 -19
- package/templates/production-fullstack/client/src/utils/getInitials.ts +0 -10
- package/templates/production-fullstack/client/src/vite-env.d.ts +0 -1
- package/templates/production-fullstack/client/tsconfig.json +0 -25
- package/templates/production-fullstack/client/tsconfig.node.json +0 -10
- package/templates/production-fullstack/client/vite.config.ts +0 -8
- package/templates/production-fullstack/mobile/assets/animations/loading.json +0 -1
- package/templates/production-fullstack/mobile/assets/images/logo/logo.png +0 -0
- package/templates/production-fullstack/mobile/src/components/common/Typography.tsx +0 -113
- package/templates/production-fullstack/mobile/src/components/ui/BottomModal.tsx +0 -159
- package/templates/production-fullstack/server/src/common/middlewares/errorHandler.ts +0 -16
- package/templates/production-fullstack/server/src/common/middlewares/multer.ts +0 -20
- package/templates/production-fullstack/server/src/common/middlewares/rateLimiter.ts +0 -53
- package/templates/production-fullstack/server/src/common/types/express.d.ts +0 -10
- package/templates/production-fullstack/server/src/common/utils/genOtpToken.ts +0 -22
- package/templates/production-fullstack/server/src/common/utils/jwt.ts +0 -27
- package/templates/production-fullstack/server/tsconfig.json +0 -14
- package/templates/react/_gitignore +0 -24
- package/templates/react/index.html +0 -14
- package/templates/react/package.json +0 -38
- package/templates/react/public/_redirects +0 -1
- package/templates/react/public/favicon.ico +0 -0
- package/templates/react/public/favicon.svg +0 -1
- package/templates/react/public/logo.png +0 -0
- package/templates/react/public/manifest.json +0 -24
- package/templates/react/public/sw.js +0 -56
- package/templates/react/src/App.jsx +0 -68
- package/templates/react/src/assets/data/navigation.js +0 -29
- package/templates/react/src/assets/images/logo.png +0 -0
- package/templates/react/src/components/common/Breadcrumbs.jsx +0 -27
- package/templates/react/src/components/common/Loading.jsx +0 -19
- package/templates/react/src/components/common/LottieIcon.jsx +0 -36
- package/templates/react/src/components/common/NotFound.jsx +0 -78
- package/templates/react/src/components/common/PwaInstallPrompt.jsx +0 -72
- package/templates/react/src/components/common/Table.jsx +0 -110
- package/templates/react/src/components/common/ToggleSwitch.jsx +0 -38
- package/templates/react/src/components/common/Unauthorized.jsx +0 -76
- package/templates/react/src/components/layout/ProtectedRoute.jsx +0 -17
- package/templates/react/src/components/layout/PublicLayout.jsx +0 -13
- package/templates/react/src/components/layout/SidebarLayout.jsx +0 -37
- package/templates/react/src/components/modals/ConfirmModal.jsx +0 -135
- package/templates/react/src/components/modals/Modal.jsx +0 -94
- package/templates/react/src/components/skeletons/common/CardSkeleton.jsx +0 -23
- package/templates/react/src/components/skeletons/common/DashboardSkeleton.jsx +0 -19
- package/templates/react/src/components/skeletons/common/ListSkeleton.jsx +0 -24
- package/templates/react/src/components/skeletons/common/PageSkeleton.jsx +0 -26
- package/templates/react/src/components/skeletons/common/ProfileSkeleton.jsx +0 -23
- package/templates/react/src/components/skeletons/common/Skeleton.jsx +0 -18
- package/templates/react/src/components/skeletons/common/TableSkeleton.jsx +0 -33
- package/templates/react/src/components/ui/Header.jsx +0 -230
- package/templates/react/src/components/ui/SidebarHeader.jsx +0 -27
- package/templates/react/src/components/ui/sidebar.jsx +0 -152
- package/templates/react/src/config/api.js +0 -22
- package/templates/react/src/hooks/useWindowSize.js +0 -25
- package/templates/react/src/index.css +0 -158
- package/templates/react/src/main.jsx +0 -24
- package/templates/react/src/pages/Profile.jsx +0 -9
- package/templates/react/src/store/useAuthStore.js +0 -115
- package/templates/react/src/store/useUiStore.js +0 -54
- package/templates/react/src/utils/formatDate.js +0 -15
- package/templates/react/src/utils/getInitials.js +0 -10
- package/templates/react/vite.config.js +0 -8
- package/templates/react-native/LICENSE +0 -21
- package/templates/react-native/app.json +0 -84
- package/templates/react-native/assets/animations/celebrate.json +0 -1
- package/templates/react-native/assets/animations/infinity.json +0 -1
- package/templates/react-native/assets/animations/loading.json +0 -1
- package/templates/react-native/assets/fonts/Inter_Bold.ttf +0 -0
- package/templates/react-native/assets/fonts/Inter_ExtraBold.ttf +0 -0
- package/templates/react-native/assets/fonts/Inter_Medium.ttf +0 -0
- package/templates/react-native/assets/fonts/Inter_Regular.ttf +0 -0
- package/templates/react-native/assets/fonts/Inter_SemiBold.ttf +0 -0
- package/templates/react-native/assets/images/logo/logo.png +0 -0
- package/templates/react-native/assets/images/logo/logo.svg +0 -1
- package/templates/react-native/assets/images/logo/logoWithBg.png +0 -0
- package/templates/react-native/babel.config.js +0 -13
- package/templates/react-native/drizzle.config.ts +0 -8
- package/templates/react-native/eas.json +0 -24
- package/templates/react-native/eslint.config.js +0 -10
- package/templates/react-native/metro.config.js +0 -6
- package/templates/react-native/nativewind-env.d.ts +0 -3
- package/templates/react-native/package.json +0 -84
- package/templates/react-native/src/app/(auth)/_layout.tsx +0 -12
- package/templates/react-native/src/app/(auth)/change-password.tsx +0 -112
- package/templates/react-native/src/app/(auth)/edit-profile.tsx +0 -156
- package/templates/react-native/src/app/(auth)/forgot-password.tsx +0 -191
- package/templates/react-native/src/app/(auth)/login.tsx +0 -253
- package/templates/react-native/src/app/(tabs)/_layout.tsx +0 -38
- package/templates/react-native/src/app/(tabs)/dashboard.tsx +0 -13
- package/templates/react-native/src/app/(tabs)/index.tsx +0 -464
- package/templates/react-native/src/app/(tabs)/search.tsx +0 -12
- package/templates/react-native/src/app/global.css +0 -82
- package/templates/react-native/src/components/common/AnimatedHeader.tsx +0 -328
- package/templates/react-native/src/components/common/ConfirmationToast.tsx +0 -67
- package/templates/react-native/src/components/common/Loading.tsx +0 -26
- package/templates/react-native/src/components/common/LocationLoader.tsx +0 -591
- package/templates/react-native/src/components/common/ScreenHeader.tsx +0 -68
- package/templates/react-native/src/components/common/TabHeader.tsx +0 -58
- package/templates/react-native/src/components/common/Welcome.tsx +0 -55
- package/templates/react-native/src/components/ui/ClassicTabBar.tsx +0 -129
- package/templates/react-native/src/components/ui/CustomTabBar.tsx +0 -238
- package/templates/react-native/src/components/ui/Sidebar.tsx +0 -258
- package/templates/react-native/src/components/ui/buttons/Button.tsx +0 -180
- package/templates/react-native/src/components/ui/buttons/ButtonGroup.tsx +0 -32
- package/templates/react-native/src/components/ui/buttons/FloatingActionButton.tsx +0 -72
- package/templates/react-native/src/components/ui/buttons/IconButton.tsx +0 -84
- package/templates/react-native/src/components/ui/data-display/Accordion.tsx +0 -82
- package/templates/react-native/src/components/ui/data-display/Avatar.tsx +0 -47
- package/templates/react-native/src/components/ui/data-display/Badge.tsx +0 -104
- package/templates/react-native/src/components/ui/data-display/Card.tsx +0 -36
- package/templates/react-native/src/components/ui/data-display/Image.tsx +0 -43
- package/templates/react-native/src/components/ui/data-display/ImageViewer.tsx +0 -33
- package/templates/react-native/src/components/ui/data-display/SwipeableRow.tsx +0 -94
- package/templates/react-native/src/components/ui/feedback/CircularProgress.tsx +0 -38
- package/templates/react-native/src/components/ui/feedback/GestureWrapper.tsx +0 -114
- package/templates/react-native/src/components/ui/feedback/ProgressBar.tsx +0 -51
- package/templates/react-native/src/components/ui/feedback/Skeleton.tsx +0 -84
- package/templates/react-native/src/components/ui/feedback/Spinner.tsx +0 -50
- package/templates/react-native/src/components/ui/inputs/Checkbox.tsx +0 -54
- package/templates/react-native/src/components/ui/inputs/DatePicker.tsx +0 -186
- package/templates/react-native/src/components/ui/inputs/ImagePickerModal.tsx +0 -129
- package/templates/react-native/src/components/ui/inputs/Input.tsx +0 -158
- package/templates/react-native/src/components/ui/inputs/LocationPicker.tsx +0 -211
- package/templates/react-native/src/components/ui/inputs/OTPInput.tsx +0 -83
- package/templates/react-native/src/components/ui/inputs/PasswordInput.tsx +0 -16
- package/templates/react-native/src/components/ui/inputs/Radio.tsx +0 -54
- package/templates/react-native/src/components/ui/inputs/SearchBar.tsx +0 -53
- package/templates/react-native/src/components/ui/inputs/Slider.tsx +0 -49
- package/templates/react-native/src/components/ui/inputs/Switch.tsx +0 -75
- package/templates/react-native/src/components/ui/inputs/TextArea.tsx +0 -15
- package/templates/react-native/src/components/ui/inputs/WebLocationPicker.tsx +0 -321
- package/templates/react-native/src/components/ui/layout/Container.tsx +0 -23
- package/templates/react-native/src/components/ui/layout/Divider.tsx +0 -20
- package/templates/react-native/src/components/ui/layout/Grid.tsx +0 -62
- package/templates/react-native/src/components/ui/layout/KeyboardAvoidingViewWrapper.tsx +0 -16
- package/templates/react-native/src/components/ui/layout/ScrollContainer.tsx +0 -21
- package/templates/react-native/src/components/ui/layout/Section.tsx +0 -51
- package/templates/react-native/src/components/ui/layout/Spacer.tsx +0 -6
- package/templates/react-native/src/components/ui/layout/Stack.tsx +0 -34
- package/templates/react-native/src/components/ui/navigation/Pagination.tsx +0 -61
- package/templates/react-native/src/components/ui/navigation/ProgressStepper.tsx +0 -66
- package/templates/react-native/src/components/ui/navigation/Tabs.tsx +0 -173
- package/templates/react-native/src/config/api.ts +0 -27
- package/templates/react-native/src/config/sidebar.config.ts +0 -12
- package/templates/react-native/src/config/tabNavigation.ts +0 -34
- package/templates/react-native/src/constants/Colors.ts +0 -71
- package/templates/react-native/src/db/index.ts +0 -9
- package/templates/react-native/src/db/schema.ts +0 -14
- package/templates/react-native/src/hooks/useDebounce.ts +0 -17
- package/templates/react-native/src/services/auth.service.ts +0 -24
- package/templates/react-native/src/services/notification.service.ts +0 -22
- package/templates/react-native/src/services/permission.service.ts +0 -214
- package/templates/react-native/src/services/socket.service.ts +0 -36
- package/templates/react-native/src/store/localStore.ts +0 -7
- package/templates/react-native/src/store/useAuthStore.ts +0 -273
- package/templates/react-native/src/store/useNotificationStore.ts +0 -178
- package/templates/react-native/src/types/auth.type.ts +0 -14
- package/templates/react-native/src/types/images.d.ts +0 -24
- package/templates/react-native/src/utils/storage.ts +0 -55
- package/templates/react-native/src/utils/toast.ts +0 -26
- package/templates/react-native/tailwind.config.js +0 -71
- package/templates/react-native/tsconfig.json +0 -23
- package/templates/react-ts/_gitignore +0 -24
- package/templates/react-ts/index.html +0 -14
- package/templates/react-ts/package.json +0 -41
- package/templates/react-ts/public/_redirects +0 -1
- package/templates/react-ts/public/favicon.ico +0 -0
- package/templates/react-ts/public/favicon.svg +0 -1
- package/templates/react-ts/public/logo.png +0 -0
- package/templates/react-ts/public/manifest.json +0 -24
- package/templates/react-ts/public/sw.js +0 -56
- package/templates/react-ts/src/App.tsx +0 -68
- package/templates/react-ts/src/assets/animations/loading.json +0 -1
- package/templates/react-ts/src/assets/data/navigation.ts +0 -29
- package/templates/react-ts/src/assets/images/logo.png +0 -0
- package/templates/react-ts/src/components/common/Breadcrumbs.tsx +0 -27
- package/templates/react-ts/src/components/common/Loading.tsx +0 -19
- package/templates/react-ts/src/components/common/LottieIcon.tsx +0 -36
- package/templates/react-ts/src/components/common/NotFound.tsx +0 -78
- package/templates/react-ts/src/components/common/PwaInstallPrompt.tsx +0 -72
- package/templates/react-ts/src/components/common/SEO.tsx +0 -67
- package/templates/react-ts/src/components/common/Scroll.tsx +0 -25
- package/templates/react-ts/src/components/common/Table.tsx +0 -118
- package/templates/react-ts/src/components/common/ToggleSwitch.tsx +0 -38
- package/templates/react-ts/src/components/common/Unauthorized.tsx +0 -76
- package/templates/react-ts/src/components/layout/ProtectedRoute.tsx +0 -23
- package/templates/react-ts/src/components/layout/PublicLayout.tsx +0 -13
- package/templates/react-ts/src/components/layout/SidebarLayout.tsx +0 -37
- package/templates/react-ts/src/components/modals/ConfirmModal.tsx +0 -152
- package/templates/react-ts/src/components/modals/Modal.tsx +0 -106
- package/templates/react-ts/src/components/skeletons/common/CardSkeleton.tsx +0 -23
- package/templates/react-ts/src/components/skeletons/common/DashboardSkeleton.tsx +0 -19
- package/templates/react-ts/src/components/skeletons/common/ListSkeleton.tsx +0 -24
- package/templates/react-ts/src/components/skeletons/common/PageSkeleton.tsx +0 -26
- package/templates/react-ts/src/components/skeletons/common/ProfileSkeleton.tsx +0 -23
- package/templates/react-ts/src/components/skeletons/common/Skeleton.tsx +0 -18
- package/templates/react-ts/src/components/skeletons/common/TableSkeleton.tsx +0 -33
- package/templates/react-ts/src/components/ui/Header.tsx +0 -230
- package/templates/react-ts/src/components/ui/SidebarHeader.tsx +0 -27
- package/templates/react-ts/src/components/ui/sidebar.tsx +0 -152
- package/templates/react-ts/src/config/api.ts +0 -22
- package/templates/react-ts/src/config/appConfig.ts +0 -44
- package/templates/react-ts/src/config/navigation.ts +0 -14
- package/templates/react-ts/src/hooks/useLenis.ts +0 -28
- package/templates/react-ts/src/hooks/usePwaInstall.ts +0 -45
- package/templates/react-ts/src/hooks/useWindowSize.ts +0 -25
- package/templates/react-ts/src/index.css +0 -158
- package/templates/react-ts/src/main.tsx +0 -24
- package/templates/react-ts/src/pages/Home.tsx +0 -154
- package/templates/react-ts/src/pages/Login.tsx +0 -233
- package/templates/react-ts/src/pages/Profile.tsx +0 -9
- package/templates/react-ts/src/services/authService.ts +0 -19
- package/templates/react-ts/src/store/useAuthStore.ts +0 -143
- package/templates/react-ts/src/utils/formatDate.ts +0 -19
- package/templates/react-ts/src/utils/getInitials.ts +0 -10
- package/templates/react-ts/src/vite-env.d.ts +0 -1
- package/templates/react-ts/tsconfig.json +0 -25
- package/templates/react-ts/tsconfig.node.json +0 -10
- package/templates/react-ts/vite.config.ts +0 -8
- /package/templates/{next-ts → layers/next/base}/next.config.mjs +0 -0
- /package/templates/{next → layers/next/base}/postcss.config.js +0 -0
- /package/templates/{next-ts → layers/next/base}/public/manifest.json +0 -0
- /package/templates/{next → layers/next/javascript}/README.md +0 -0
- /package/templates/{mern-react-native/client → layers/next/javascript}/_gitignore +0 -0
- /package/templates/{next → layers/next/javascript}/package.json +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/(protected)/layout.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/(protected)/profile/page.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/api/hello/route.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/layout.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/login/page.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/app/page.js +0 -0
- /package/templates/{mern-react-native/client → layers/next/javascript}/src/assets/animations/loading.json +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/assets/data/navigation.js +0 -0
- /package/templates/{mern-react-native/client/public → layers/next/javascript/src/assets/images}/logo.png +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/Breadcrumbs.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/common/Loading.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/common/LottieIcon.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/NotFound.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/PwaInstallPrompt.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/SEO.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/Scroll.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/common/Table.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/common/ToggleSwitch.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/common/Unauthorized.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/layout/ProtectedRoute.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/layout/PublicLayout.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/layout/SidebarLayout.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/modals/ConfirmModal.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/modals/Modal.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/CardSkeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/DashboardSkeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/ListSkeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/PageSkeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/ProfileSkeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/Skeleton.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/skeletons/common/TableSkeleton.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/ui/Header.jsx +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/components/ui/SidebarHeader.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/components/ui/sidebar.jsx +0 -0
- /package/templates/{next → layers/next/javascript}/src/config/api.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/config/appConfig.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/config/navigation.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/hooks/useLenis.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/hooks/usePwaInstall.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/hooks/useWindowSize.js +0 -0
- /package/templates/{next-ts → layers/next/javascript}/src/index.css +0 -0
- /package/templates/{next → layers/next/javascript}/src/services/authService.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/store/useAuthStore.js +0 -0
- /package/templates/{next → layers/next/javascript}/src/store/useUiStore.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/utils/formatDate.js +0 -0
- /package/templates/{mern/client → layers/next/javascript}/src/utils/getInitials.js +0 -0
- /package/templates/{next-ts → layers/next/typescript}/.env.example +0 -0
- /package/templates/{next-ts → layers/next/typescript}/README.md +0 -0
- /package/templates/{mern-react-native/server → layers/next/typescript}/_gitignore +0 -0
- /package/templates/{next-ts → layers/next/typescript}/next-env.d.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/package.json +0 -0
- /package/templates/{next-ts → layers/next/typescript}/postcss.config.js +0 -0
- /package/templates/{mern-react-native/client/src/assets/images → layers/next/typescript/public}/logo.png +0 -0
- /package/templates/{next-ts → layers/next/typescript}/public/sw.js +0 -0
- /package/templates/{next-ts → layers/next/typescript}/public/workbox-f1770938.js +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/(protected)/layout.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/(protected)/profile/page.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/api/hello/route.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/error.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/layout.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/login/page.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/not-found.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/app/page.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/next/typescript/src}/assets/animations/loading.json +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/assets/data/navigation.ts +0 -0
- /package/templates/{mern-react-native/mobile/assets/images/logo → layers/next/typescript/src/assets/images}/logo.png +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/Breadcrumbs.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/Loading.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/LottieIcon.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/NotFound.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/PwaInstallPrompt.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/SEO.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/Scroll.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/common/Table.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/ToggleSwitch.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/common/Unauthorized.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/layout/ProtectedRoute.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/layout/PublicLayout.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/layout/SidebarLayout.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/modals/ConfirmModal.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/modals/Modal.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/CardSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/DashboardSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/ListSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/PageSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/ProfileSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/Skeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/components/skeletons/common/TableSkeleton.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/ui/Button.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/ui/Header.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/ui/Input.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/ui/SidebarHeader.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/components/ui/sidebar.tsx +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/config/api.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/config/appConfig.ts +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/config/navigation.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/hooks/useLenis.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/hooks/usePwaInstall.ts +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/hooks/useWindowSize.ts +0 -0
- /package/templates/{next → layers/next/typescript}/src/index.css +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/services/authService.ts +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/store/useAuthStore.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/src/store/useUiStore.ts +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/utils/formatDate.ts +0 -0
- /package/templates/{mern-react-native/client → layers/next/typescript}/src/utils/getInitials.ts +0 -0
- /package/templates/{next-ts → layers/next/typescript}/tsconfig.json +0 -0
- /package/templates/{mern-react-native/server → layers/node/javascript}/.env.example +0 -0
- /package/templates/{mern/server → layers/node/javascript}/README.md +0 -0
- /package/templates/{mern/client → layers/node/javascript}/_gitignore +0 -0
- /package/templates/{mern/server → layers/node/javascript}/package.json +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/app.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/config/cloudinary.js +0 -0
- /package/templates/{mern/server → layers/node/javascript}/src/config/db.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/config/dotenv.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/config/email.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/config/socket.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/config/webPush.js +0 -0
- /package/templates/{node → layers/node/javascript}/src/controllers/push.controller.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/controllers/upload.controller.js +0 -0
- /package/templates/{mern/server → layers/node/javascript}/src/index.js +0 -0
- /package/templates/{mern/server → layers/node/javascript}/src/middleware/auth.middleware.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/middleware/errorHandler.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/middleware/multer.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/middleware/rateLimiter.js +0 -0
- /package/templates/{mern/server → layers/node/javascript}/src/models/otp.model.js +0 -0
- /package/templates/{mern-react-native/server/src/routes/auth.route.ts → layers/node/javascript/src/routes/auth.route.js} +0 -0
- /package/templates/{mern/server → layers/node/javascript}/src/routes/index.js +0 -0
- /package/templates/{node → layers/node/javascript}/src/routes/push.route.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/routes/upload.route.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/authToken.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/cloudinary.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/cloudinaryUpload.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/emailOtp.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/genOtpToken.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/generateVapidKeys.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/jwt.js +0 -0
- /package/templates/{node-prisma → layers/node/javascript}/src/utils/logger.js +0 -0
- /package/templates/{node → layers/node/javascript}/src/utils/pushHelper.js +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/.env.example +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/README.md +0 -0
- /package/templates/{mern/server → layers/node/typescript}/_gitignore +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/package.json +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/app.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/config/cloudinary.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/config/db.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/config/dotenv.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/config/email.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/config/socket.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/config/webPush.ts +0 -0
- /package/templates/{node-ts → layers/node/typescript}/src/controllers/push.controller.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/controllers/upload.controller.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/index.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/middleware/auth.middleware.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/middleware/errorHandler.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/middleware/multer.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/middleware/rateLimiter.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/models/otp.model.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/routes/index.ts +0 -0
- /package/templates/{node-ts → layers/node/typescript}/src/routes/push.route.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/routes/upload.route.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/types/express.d.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/cloudinaryUpload.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/emailOtp.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node/typescript}/src/utils/expoNotification.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/genOtpToken.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/generateVapidKeys.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/jwt.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/src/utils/logger.ts +0 -0
- /package/templates/{node-ts → layers/node/typescript}/src/utils/pushHelper.ts +0 -0
- /package/templates/{mern-ts/server → layers/node/typescript}/tsconfig.json +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/javascript}/.env.example +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/README.md +0 -0
- /package/templates/{mern-ts/client → layers/node-prisma/javascript}/_gitignore +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/package.json +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/javascript}/prisma/schema.prisma +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/app.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/config/cloudinary.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/config/db.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/config/dotenv.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/config/email.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/config/socket.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/config/webPush.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/controllers/auth.controller.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/controllers/push.controller.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/controllers/upload.controller.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/index.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/middleware/auth.middleware.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/middleware/errorHandler.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/middleware/multer.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/middleware/rateLimiter.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/routes/auth.route.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/routes/index.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/routes/push.route.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/routes/upload.route.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/services/auth.service.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/authToken.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/cloudinary.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/cloudinaryUpload.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/emailOtp.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/genOtpToken.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/generateVapidKeys.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/jwt.js +0 -0
- /package/templates/{mern/server → layers/node-prisma/javascript}/src/utils/logger.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/javascript}/src/utils/pushHelper.js +0 -0
- /package/templates/{node-prisma → layers/node-prisma/typescript}/.env.example +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/README.md +0 -0
- /package/templates/{mern-ts/server → layers/node-prisma/typescript}/_gitignore +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/package.json +0 -0
- /package/templates/{node-prisma → layers/node-prisma/typescript}/prisma/schema.prisma +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/app.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/config/cloudinary.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/config/db.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/config/dotenv.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/config/email.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/config/socket.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/config/webPush.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/controllers/auth.controller.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/controllers/push.controller.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/controllers/upload.controller.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/index.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/middleware/auth.middleware.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/middleware/errorHandler.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/middleware/multer.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/middleware/rateLimiter.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/routes/auth.route.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/routes/index.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/routes/push.route.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/routes/upload.route.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/services/auth.service.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/types/express.d.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/cloudinaryUpload.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/emailOtp.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/genOtpToken.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/generateVapidKeys.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/jwt.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/src/utils/logger.ts +0 -0
- /package/templates/{node-prisma-ts → layers/node-prisma/typescript}/src/utils/pushHelper.ts +0 -0
- /package/templates/{mern-react-native/server → layers/node-prisma/typescript}/tsconfig.json +0 -0
- /package/templates/{production-fullstack/server → layers/prisma/javascript}/.env.example +0 -0
- /package/templates/{mern/client → layers/react/base}/index.html +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/public/_redirects +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/public/favicon.ico +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/public/favicon.svg +0 -0
- /package/templates/{mern-ts/client/src/assets/images → layers/react/base/public}/logo.png +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/public/manifest.json +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/public/sw.js +0 -0
- /package/templates/{mern/client → layers/react/base}/src/assets/animations/loading.json +0 -0
- /package/templates/{mern/client/public → layers/react/base/src/assets/images}/logo.png +0 -0
- /package/templates/{mern-react-native/client → layers/react/base}/src/index.css +0 -0
- /package/templates/{next → layers/react/javascript}/_gitignore +0 -0
- /package/templates/{mern/client → layers/react/javascript}/package.json +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/App.jsx +0 -0
- /package/templates/{next → layers/react/javascript}/src/components/common/Loading.jsx +0 -0
- /package/templates/{next → layers/react/javascript}/src/components/common/LottieIcon.jsx +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/components/common/PwaInstallPrompt.jsx +0 -0
- /package/templates/{next → layers/react/javascript}/src/components/common/ToggleSwitch.jsx +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/components/common/Unauthorized.jsx +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/components/layout/ProtectedRoute.jsx +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/components/layout/PublicLayout.jsx +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/components/layout/SidebarLayout.jsx +0 -0
- /package/templates/{next → layers/react/javascript}/src/config/navigation.js +0 -0
- /package/templates/{mern/client → layers/react/javascript}/src/main.jsx +0 -0
- /package/templates/{next → layers/react/javascript}/src/utils/formatDate.js +0 -0
- /package/templates/{mern/client → layers/react/javascript}/vite.config.js +0 -0
- /package/templates/{node-prisma-ts → layers/react/typescript}/_gitignore +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/index.html +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/package.json +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/public/_redirects +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/public/favicon.ico +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/public/favicon.svg +0 -0
- /package/templates/{mern/client/src/assets/images → layers/react/typescript/public}/logo.png +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/public/manifest.json +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/public/sw.js +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/App.tsx +0 -0
- /package/templates/{next-ts → layers/react/typescript}/src/assets/animations/loading.json +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/assets/data/navigation.ts +0 -0
- /package/templates/{next-ts/public → layers/react/typescript/src/assets/images}/logo.png +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/Loading.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/LottieIcon.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/NotFound.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/PwaInstallPrompt.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/SEO.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/Scroll.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/ToggleSwitch.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/common/Unauthorized.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/layout/ProtectedRoute.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/layout/PublicLayout.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/CardSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/DashboardSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/ListSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/PageSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/ProfileSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/Skeleton.tsx +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/components/skeletons/common/TableSkeleton.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/components/ui/Header.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/config/api.ts +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/config/appConfig.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/config/navigation.ts +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/hooks/useLenis.ts +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/hooks/usePwaInstall.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/hooks/useWindowSize.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/index.css +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/main.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/pages/Home.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/pages/Login.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/pages/Profile.tsx +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/services/authService.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/store/useAuthStore.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/utils/formatDate.ts +0 -0
- /package/templates/{mern-ts/client → layers/react/typescript}/src/utils/getInitials.ts +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/src/vite-env.d.ts +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/tsconfig.json +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/tsconfig.node.json +0 -0
- /package/templates/{mern-react-native/client → layers/react/typescript}/vite.config.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/LICENSE +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/_gitignore +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/app.json +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/animations/celebrate.json +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/animations/infinity.json +0 -0
- /package/templates/{mern-ts/client/src → layers/react-native/base}/assets/animations/loading.json +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/fonts/Inter_Bold.ttf +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/fonts/Inter_ExtraBold.ttf +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/fonts/Inter_Medium.ttf +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/fonts/Inter_Regular.ttf +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/fonts/Inter_SemiBold.ttf +0 -0
- /package/templates/{mern-ts/client/public → layers/react-native/base/assets/images/logo}/logo.png +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/images/logo/logo.svg +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/assets/images/logo/logoWithBg.png +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/babel.config.js +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/drizzle.config.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/eas.json +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/eslint.config.js +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/expo-env.d.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/metro.config.js +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/nativewind-env.d.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(auth)/_layout.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(auth)/change-password.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(auth)/edit-profile.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(auth)/forgot-password.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(auth)/login.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(tabs)/_layout.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(tabs)/dashboard.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(tabs)/index.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/(tabs)/search.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/app/global.css +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/AnimatedHeader.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/ConfirmationToast.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/Loading.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/LocationLoader.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/ScreenHeader.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/TabHeader.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/common/Welcome.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/CustomTabBar.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/Sidebar.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/buttons/Button.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/buttons/ButtonGroup.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/buttons/FloatingActionButton.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/buttons/IconButton.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/Accordion.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/Avatar.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/Badge.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/Card.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/Image.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/ImageViewer.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/data-display/SwipeableRow.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/feedback/CircularProgress.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/feedback/GestureWrapper.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/feedback/ProgressBar.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/feedback/Skeleton.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/feedback/Spinner.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/Checkbox.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/DatePicker.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/ImagePickerModal.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/Input.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/LocationPicker.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/OTPInput.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/PasswordInput.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/Radio.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/SearchBar.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/Slider.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/Switch.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/TextArea.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/inputs/WebLocationPicker.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Container.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Divider.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Grid.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/KeyboardAvoidingViewWrapper.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/ScrollContainer.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Section.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Spacer.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/layout/Stack.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/navigation/Pagination.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/navigation/ProgressStepper.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/components/ui/navigation/Tabs.tsx +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/config/api.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/config/sidebar.config.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/config/tabNavigation.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/constants/Colors.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/db/index.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/db/schema.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/hooks/useDebounce.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/services/auth.service.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/services/notification.service.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/services/permission.service.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/services/socket.service.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/store/localStore.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/store/useNotificationStore.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/types/auth.type.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/types/images.d.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/utils/storage.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/src/utils/toast.ts +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/tailwind.config.js +0 -0
- /package/templates/{mern-react-native/mobile → layers/react-native/base}/tsconfig.json +0 -0
- /package/templates/{mern-react-native → presets/fullstack-prisma/overrides}/_gitignore +0 -0
- /package/templates/{mern → presets/mern/overrides}/package.json +0 -0
- /package/templates/{mern-ts → presets/mern-react-native/overrides}/_gitignore +0 -0
- /package/templates/{mern-react-native → presets/mern-react-native/overrides}/package.json +0 -0
- /package/templates/{mern → presets/mern-ts/overrides}/_gitignore +0 -0
- /package/templates/{mern-ts → presets/mern-ts/overrides}/package.json +0 -0
- /package/templates/{node-prisma → presets/production-fullstack/overrides/client}/_gitignore +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/index.html +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/package.json +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/public/_redirects +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/public/favicon.ico +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/public/favicon.svg +0 -0
- /package/templates/{next-ts/src/assets/images → presets/production-fullstack/overrides/client/public}/logo.png +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/public/manifest.json +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/public/sw.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/App.tsx +0 -0
- /package/templates/{next → presets/production-fullstack/overrides/client}/src/assets/animations/loading.json +0 -0
- /package/templates/{next-ts → presets/production-fullstack/overrides/client}/src/assets/data/navigation.ts +0 -0
- /package/templates/{next → presets/production-fullstack/overrides/client}/src/assets/images/logo.png +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/layout/ProtectedRoute.tsx +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/src/components/layout/PublicLayout.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/layout/SidebarLayout.tsx +0 -0
- /package/templates/{mern-react-native/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/Breadcrumbs.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/LottieIcon.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/NotFound.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/shared/PwaInstallPrompt.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/SEO.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/Scroll.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/shared}/Unauthorized.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/CardSkeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/DashboardSkeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/ListSkeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/PageSkeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/ProfileSkeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/Skeleton.tsx +0 -0
- /package/templates/{next-ts/src/components → presets/production-fullstack/overrides/client/src/components/shared}/skeletons/common/TableSkeleton.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/modals → presets/production-fullstack/overrides/client/src/components/ui}/ConfirmModal.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/ui/Header.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/ui/Loading.tsx +0 -0
- /package/templates/{mern-react-native/client/src/components/modals → presets/production-fullstack/overrides/client/src/components/ui}/Modal.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/ui/SidebarHeader.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/ui/Table.tsx +0 -0
- /package/templates/{mern-ts/client/src/components/common → presets/production-fullstack/overrides/client/src/components/ui}/ToggleSwitch.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/components/ui/sidebar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/config/index.ts +0 -0
- /package/templates/{next-ts/src/config → presets/production-fullstack/overrides/client/src/constants}/navigation.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/features/auth/api/authService.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/features/auth/pages/Login.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/features/auth/store/useAuthStore.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/features/core/pages/Home.tsx +0 -0
- /package/templates/{mern-ts/client/src → presets/production-fullstack/overrides/client/src/features/core}/pages/Profile.tsx +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/src/hooks/useLenis.ts +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/src/hooks/usePwaInstall.ts +0 -0
- /package/templates/{next-ts → presets/production-fullstack/overrides/client}/src/hooks/useWindowSize.ts +0 -0
- /package/templates/{mern → presets/production-fullstack/overrides}/client/src/index.css +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/lib/axios.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/lib/dayjs.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/lib/query-client.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/lib/socket.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/client/src/main.tsx +0 -0
- /package/templates/{mern-react-native → presets/production-fullstack/overrides}/client/src/store/useUiStore.ts +0 -0
- /package/templates/{next-ts → presets/production-fullstack/overrides/client}/src/utils/formatDate.ts +0 -0
- /package/templates/{next-ts → presets/production-fullstack/overrides/client}/src/utils/getInitials.ts +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/src/vite-env.d.ts +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/tsconfig.json +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/tsconfig.node.json +0 -0
- /package/templates/{mern-ts → presets/production-fullstack/overrides}/client/vite.config.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/LICENSE +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/app.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/animations/celebrate.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/animations/infinity.json +0 -0
- /package/templates/{production-fullstack/client/src → presets/production-fullstack/overrides/mobile}/assets/animations/loading.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/fonts/Inter_Bold.ttf +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/fonts/Inter_ExtraBold.ttf +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/fonts/Inter_Medium.ttf +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/fonts/Inter_Regular.ttf +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/fonts/Inter_SemiBold.ttf +0 -0
- /package/templates/{production-fullstack/client/public → presets/production-fullstack/overrides/mobile/assets/images/logo}/logo.png +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/images/logo/logo.svg +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/assets/images/logo/logoWithBg.png +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/babel.config.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/drizzle.config.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/eas.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/eslint.config.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/expo-env.d.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/metro.config.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/nativewind-env.d.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/package.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/(auth)/_layout.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/(auth)/change-password.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/(auth)/edit-profile.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/(auth)/forgot-password.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/(auth)/login.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/_layout.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/app/global.css +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/AnimatedHeader.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/ConfirmationToast.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/Loading.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/LocationLoader.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/ScreenHeader.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/TabHeader.tsx +0 -0
- /package/templates/{mern-react-native → presets/production-fullstack/overrides}/mobile/src/components/common/Typography.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/common/Welcome.tsx +0 -0
- /package/templates/{mern-react-native → presets/production-fullstack/overrides}/mobile/src/components/ui/BottomModal.tsx +0 -0
- /package/templates/{mern-react-native → presets/production-fullstack/overrides}/mobile/src/components/ui/ClassicTabBar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/CustomTabBar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/Sidebar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/buttons/Button.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/buttons/ButtonGroup.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/buttons/FloatingActionButton.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/buttons/IconButton.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/Accordion.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/Avatar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/Badge.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/Card.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/Image.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/ImageViewer.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/data-display/SwipeableRow.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/feedback/CircularProgress.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/feedback/GestureWrapper.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/feedback/ProgressBar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/feedback/Skeleton.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/feedback/Spinner.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/Checkbox.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/DatePicker.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/ImagePickerModal.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/Input.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/LocationPicker.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/OTPInput.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/PasswordInput.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/Radio.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/SearchBar.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/Slider.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/Switch.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/TextArea.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/inputs/WebLocationPicker.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Container.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Divider.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Grid.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/KeyboardAvoidingViewWrapper.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/ScrollContainer.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Section.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Spacer.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/layout/Stack.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/navigation/Pagination.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/navigation/ProgressStepper.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/components/ui/navigation/Tabs.tsx +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/config/sidebar.config.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/config/tabNavigation.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/constants/Colors.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/db/index.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/db/schema.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/features/auth/api/auth.service.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/features/auth/store/useAuthStore.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/features/auth/types/auth.type.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/hooks/useDebounce.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/lib/axios.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/lib/query-client.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/lib/socket.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/lib/storage.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/services/permission.service.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/store/localStore.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/store/useNotificationStore.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/types/common.type.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/types/images.d.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/src/utils/toast.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/tailwind.config.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/mobile/tsconfig.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/README.md +0 -0
- /package/templates/{node-ts → presets/production-fullstack/overrides/server}/_gitignore +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/eslint.config.js +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/package.json +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/core/attachment.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/core/notification.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/core/permission.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/core/role.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/core/user.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/enums/common.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/enums/notification.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/enums/user.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma/schema/schema.prisma +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/prisma.config.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/app.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/middlewares/auth.middleware.ts +0 -0
- /package/templates/{node-prisma-ts/src/middleware → presets/production-fullstack/overrides/server/src/common/middlewares}/errorHandler.ts +0 -0
- /package/templates/{node-prisma-ts/src/middleware → presets/production-fullstack/overrides/server/src/common/middlewares}/multer.ts +0 -0
- /package/templates/{node-prisma-ts/src/middleware → presets/production-fullstack/overrides/server/src/common/middlewares}/rateLimiter.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/services/email.service.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/services/push.service.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/services/storage.service.ts +0 -0
- /package/templates/{node-prisma-ts/src → presets/production-fullstack/overrides/server/src/common}/types/express.d.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/utils/cloudinaryUpload.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/utils/emailOtp.ts +0 -0
- /package/templates/{node-prisma-ts/src → presets/production-fullstack/overrides/server/src/common}/utils/genOtpToken.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/utils/generateVapidKeys.ts +0 -0
- /package/templates/{node-prisma-ts/src → presets/production-fullstack/overrides/server/src/common}/utils/jwt.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/common/utils/pushHelper.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/config/env.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/config/logger.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/config/prisma.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/attachments/upload.controller.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/attachments/upload.routes.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/auth/auth.controller.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/auth/auth.routes.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/auth/auth.service.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/notifications/push.controller.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/features/notifications/push.routes.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/index.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/routes/index.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/auth.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/connection.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/emitters/assignment.emitter.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/emitters/attendance.emitter.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/emitters/exam.emitter.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/emitters/notification.emitter.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/events.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/handlers/attendance.handler.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/handlers/chat.handler.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/handlers/index.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/handlers/lms.handler.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/handlers/notification.handler.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/index.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/middleware.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/rooms.ts +0 -0
- /package/templates/{production-fullstack → presets/production-fullstack/overrides}/server/src/sockets/types.ts +0 -0
- /package/templates/{node-prisma-ts → presets/production-fullstack/overrides/server}/tsconfig.json +0 -0
- /package/templates/{react → presets/react/overrides}/.env.example +0 -0
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
TouchableWithoutFeedback,
|
|
5
|
-
Dimensions,
|
|
6
|
-
StyleSheet,
|
|
7
|
-
TouchableOpacity,
|
|
8
|
-
} from "react-native";
|
|
9
|
-
import Animated, {
|
|
10
|
-
useSharedValue,
|
|
11
|
-
useAnimatedStyle,
|
|
12
|
-
withTiming,
|
|
13
|
-
Easing,
|
|
14
|
-
runOnJS,
|
|
15
|
-
} from "react-native-reanimated";
|
|
16
|
-
import { Portal } from "react-native-paper";
|
|
17
|
-
import { useColorScheme } from "nativewind";
|
|
18
|
-
import { Colors } from "../../constants/Colors";
|
|
19
|
-
import { Txt } from "../common/Typography";
|
|
20
|
-
import { Ionicons } from "@expo/vector-icons";
|
|
21
|
-
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
22
|
-
import { useAuthStore } from "../../store/useAuthStore";
|
|
23
|
-
import { sidebarConfig } from "../../config/sidebar.config";
|
|
24
|
-
import { router } from "expo-router";
|
|
25
|
-
import Image from "./data-display/Image";
|
|
26
|
-
|
|
27
|
-
const { width } = Dimensions.get("window");
|
|
28
|
-
const SIDEBAR_WIDTH = width * 0.75;
|
|
29
|
-
|
|
30
|
-
interface SidebarProps {
|
|
31
|
-
isOpen: boolean;
|
|
32
|
-
onClose: () => void;
|
|
33
|
-
side?: "left" | "right";
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const MenuItem = ({
|
|
38
|
-
icon,
|
|
39
|
-
label,
|
|
40
|
-
onPress,
|
|
41
|
-
colors,
|
|
42
|
-
}: {
|
|
43
|
-
icon: any;
|
|
44
|
-
label: string;
|
|
45
|
-
onPress?: () => void;
|
|
46
|
-
colors: any;
|
|
47
|
-
}) => (
|
|
48
|
-
<TouchableOpacity
|
|
49
|
-
activeOpacity={0.7}
|
|
50
|
-
onPress={onPress}
|
|
51
|
-
className="flex-row items-center py-4 px-6 rounded-2xl mx-2"
|
|
52
|
-
>
|
|
53
|
-
<View className="w-10 h-10 rounded-full items-center justify-center bg-primary/10 mr-4">
|
|
54
|
-
<Ionicons name={icon} size={20} color={colors.primary} />
|
|
55
|
-
</View>
|
|
56
|
-
<Txt variant="md" className="text-base-content font-semibold">
|
|
57
|
-
{label}
|
|
58
|
-
</Txt>
|
|
59
|
-
</TouchableOpacity>
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export default function Sidebar({
|
|
63
|
-
isOpen,
|
|
64
|
-
onClose,
|
|
65
|
-
side = "left",
|
|
66
|
-
children,
|
|
67
|
-
}: SidebarProps) {
|
|
68
|
-
const { colorScheme } = useColorScheme();
|
|
69
|
-
const colors = Colors[colorScheme ?? "light"];
|
|
70
|
-
const insets = useSafeAreaInsets();
|
|
71
|
-
const { user, logout } = useAuthStore();
|
|
72
|
-
|
|
73
|
-
const startValue = side === "left" ? -SIDEBAR_WIDTH : SIDEBAR_WIDTH;
|
|
74
|
-
const translateX = useSharedValue(isOpen ? 0 : startValue);
|
|
75
|
-
const backdropOpacity = useSharedValue(0);
|
|
76
|
-
const [isRendered, setIsRendered] = useState(false);
|
|
77
|
-
|
|
78
|
-
if (isOpen && !isRendered) {
|
|
79
|
-
setIsRendered(true);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
useEffect(() => {
|
|
83
|
-
const targetValue = isOpen
|
|
84
|
-
? 0
|
|
85
|
-
: side === "left"
|
|
86
|
-
? -SIDEBAR_WIDTH
|
|
87
|
-
: SIDEBAR_WIDTH;
|
|
88
|
-
translateX.value = withTiming(targetValue, {
|
|
89
|
-
duration: 300,
|
|
90
|
-
easing: Easing.out(Easing.ease),
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
if (isOpen) {
|
|
94
|
-
backdropOpacity.value = withTiming(0.4, { duration: 300 });
|
|
95
|
-
} else {
|
|
96
|
-
backdropOpacity.value = withTiming(0, { duration: 300 }, (finished) => {
|
|
97
|
-
if (finished) {
|
|
98
|
-
runOnJS(setIsRendered)(false);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}, [isOpen, side, backdropOpacity, translateX, startValue]);
|
|
103
|
-
|
|
104
|
-
const sidebarAnimatedStyle = useAnimatedStyle(() => ({
|
|
105
|
-
transform: [{ translateX: translateX.value }],
|
|
106
|
-
}));
|
|
107
|
-
|
|
108
|
-
const backdropAnimatedStyle = useAnimatedStyle(() => ({
|
|
109
|
-
opacity: backdropOpacity.value,
|
|
110
|
-
}));
|
|
111
|
-
|
|
112
|
-
if (!isRendered && !isOpen) return null;
|
|
113
|
-
|
|
114
|
-
const role = user?.role?.toLowerCase() || "default";
|
|
115
|
-
const menuItems = sidebarConfig[role] || sidebarConfig.default;
|
|
116
|
-
|
|
117
|
-
return (
|
|
118
|
-
<Portal>
|
|
119
|
-
<View style={[StyleSheet.absoluteFill, { zIndex: 999 }]}>
|
|
120
|
-
{/* Backdrop Overlay */}
|
|
121
|
-
<TouchableWithoutFeedback onPress={onClose}>
|
|
122
|
-
<Animated.View
|
|
123
|
-
style={[
|
|
124
|
-
StyleSheet.absoluteFill,
|
|
125
|
-
{ backgroundColor: "#000" },
|
|
126
|
-
backdropAnimatedStyle,
|
|
127
|
-
]}
|
|
128
|
-
/>
|
|
129
|
-
</TouchableWithoutFeedback>
|
|
130
|
-
|
|
131
|
-
{/* Sliding Sidebar Panel */}
|
|
132
|
-
<Animated.View
|
|
133
|
-
style={[
|
|
134
|
-
{
|
|
135
|
-
position: "absolute",
|
|
136
|
-
top: 0,
|
|
137
|
-
bottom: 0,
|
|
138
|
-
left: side === "left" ? 0 : undefined,
|
|
139
|
-
right: side === "right" ? 0 : undefined,
|
|
140
|
-
width: SIDEBAR_WIDTH,
|
|
141
|
-
backgroundColor: colors.base100,
|
|
142
|
-
elevation: 24,
|
|
143
|
-
shadowColor: "#000",
|
|
144
|
-
shadowOffset: { width: side === "left" ? 5 : -5, height: 0 },
|
|
145
|
-
shadowOpacity: 0.2,
|
|
146
|
-
shadowRadius: 15,
|
|
147
|
-
overflow: "hidden",
|
|
148
|
-
},
|
|
149
|
-
sidebarAnimatedStyle,
|
|
150
|
-
]}
|
|
151
|
-
>
|
|
152
|
-
{children || (
|
|
153
|
-
<View className="flex-1">
|
|
154
|
-
{/* Sidebar Header */}
|
|
155
|
-
<View
|
|
156
|
-
className="px-6 bg-base-200 border-b border-base-300 items-center flex flex-row gap-4"
|
|
157
|
-
style={{
|
|
158
|
-
paddingTop: insets.top > 0 ? insets.top + 12 : 30,
|
|
159
|
-
paddingBottom: 16,
|
|
160
|
-
}}
|
|
161
|
-
>
|
|
162
|
-
<TouchableOpacity
|
|
163
|
-
onPress={() => {
|
|
164
|
-
onClose();
|
|
165
|
-
router.push("/(tenant)/profile");
|
|
166
|
-
}}
|
|
167
|
-
className="w-12 h-12 rounded-full bg-primary items-center justify-center"
|
|
168
|
-
style={{
|
|
169
|
-
shadowColor: colors.primary,
|
|
170
|
-
shadowOffset: { width: 0, height: 4 },
|
|
171
|
-
shadowOpacity: 0.4,
|
|
172
|
-
shadowRadius: 10,
|
|
173
|
-
elevation: 8,
|
|
174
|
-
}}
|
|
175
|
-
>
|
|
176
|
-
{user?.avatar?.url ? (
|
|
177
|
-
<View className="w-11 h-11 rounded-full border border-base-300 overflow-hidden">
|
|
178
|
-
<Image
|
|
179
|
-
src={user.avatar.url}
|
|
180
|
-
style={{ width: 44, height: 44 }}
|
|
181
|
-
/>
|
|
182
|
-
</View>
|
|
183
|
-
) : (
|
|
184
|
-
<View className="w-11 h-11 rounded-full bg-primary/15 items-center justify-center border border-primary/10">
|
|
185
|
-
<Ionicons
|
|
186
|
-
name="person"
|
|
187
|
-
size={22}
|
|
188
|
-
color={colors.primary}
|
|
189
|
-
/>
|
|
190
|
-
</View>
|
|
191
|
-
)}
|
|
192
|
-
</TouchableOpacity>
|
|
193
|
-
<View className="flex-1">
|
|
194
|
-
<Txt
|
|
195
|
-
variant="md"
|
|
196
|
-
className="font-bold text-base-content"
|
|
197
|
-
numberOfLines={1}
|
|
198
|
-
>
|
|
199
|
-
{user?.name || "User Name"}
|
|
200
|
-
</Txt>
|
|
201
|
-
<Txt
|
|
202
|
-
variant="xs"
|
|
203
|
-
className="text-base-content/50"
|
|
204
|
-
numberOfLines={1}
|
|
205
|
-
>
|
|
206
|
-
{user?.email || "user@example.com"}
|
|
207
|
-
</Txt>
|
|
208
|
-
</View>
|
|
209
|
-
</View>
|
|
210
|
-
|
|
211
|
-
{/* Menu Items */}
|
|
212
|
-
<View className="flex-1 pt-4">
|
|
213
|
-
{menuItems.map((item, index) => (
|
|
214
|
-
<MenuItem
|
|
215
|
-
key={index}
|
|
216
|
-
icon={item.icon}
|
|
217
|
-
label={item.label}
|
|
218
|
-
onPress={() => {
|
|
219
|
-
onClose();
|
|
220
|
-
router.push(item.route as any);
|
|
221
|
-
}}
|
|
222
|
-
colors={colors}
|
|
223
|
-
/>
|
|
224
|
-
))}
|
|
225
|
-
</View>
|
|
226
|
-
|
|
227
|
-
{/* Footer */}
|
|
228
|
-
<View
|
|
229
|
-
className="p-6 border-t border-base-300"
|
|
230
|
-
style={{
|
|
231
|
-
paddingBottom: insets.bottom > 0 ? insets.bottom + 10 : 20,
|
|
232
|
-
}}
|
|
233
|
-
>
|
|
234
|
-
<TouchableOpacity
|
|
235
|
-
activeOpacity={0.8}
|
|
236
|
-
className="flex-row items-center justify-center p-3 rounded-xl bg-error/10 border border-error/20"
|
|
237
|
-
onPress={() => {
|
|
238
|
-
onClose();
|
|
239
|
-
logout();
|
|
240
|
-
}}
|
|
241
|
-
>
|
|
242
|
-
<Ionicons
|
|
243
|
-
name="log-out-outline"
|
|
244
|
-
size={20}
|
|
245
|
-
color={colors.error}
|
|
246
|
-
/>
|
|
247
|
-
<Txt variant="md" className="ml-2 font-bold text-error">
|
|
248
|
-
Log Out
|
|
249
|
-
</Txt>
|
|
250
|
-
</TouchableOpacity>
|
|
251
|
-
</View>
|
|
252
|
-
</View>
|
|
253
|
-
)}
|
|
254
|
-
</Animated.View>
|
|
255
|
-
</View>
|
|
256
|
-
</Portal>
|
|
257
|
-
);
|
|
258
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
TouchableOpacity,
|
|
4
|
-
ActivityIndicator,
|
|
5
|
-
TouchableOpacityProps,
|
|
6
|
-
View,
|
|
7
|
-
} from "react-native";
|
|
8
|
-
import { useColorScheme } from "nativewind";
|
|
9
|
-
import { Colors } from "../../../constants/Colors";
|
|
10
|
-
import { Txt } from "../../common/Typography";
|
|
11
|
-
import { Ionicons } from "@expo/vector-icons";
|
|
12
|
-
|
|
13
|
-
export type ButtonVariant =
|
|
14
|
-
| "primary"
|
|
15
|
-
| "secondary"
|
|
16
|
-
| "accent"
|
|
17
|
-
| "info"
|
|
18
|
-
| "success"
|
|
19
|
-
| "warning"
|
|
20
|
-
| "error"
|
|
21
|
-
| "ghost"
|
|
22
|
-
| "outline";
|
|
23
|
-
export type ButtonSize = "xs" | "sm" | "base" | "md" | "lg";
|
|
24
|
-
|
|
25
|
-
export interface ButtonProps extends TouchableOpacityProps {
|
|
26
|
-
label: string;
|
|
27
|
-
variant?: ButtonVariant;
|
|
28
|
-
size?: ButtonSize;
|
|
29
|
-
isLoading?: boolean;
|
|
30
|
-
leftIcon?: keyof typeof Ionicons.glyphMap;
|
|
31
|
-
rightIcon?: keyof typeof Ionicons.glyphMap;
|
|
32
|
-
isFullWidth?: boolean;
|
|
33
|
-
soft?: boolean;
|
|
34
|
-
outline?: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default function Button({
|
|
38
|
-
label,
|
|
39
|
-
variant = "primary",
|
|
40
|
-
size = "base",
|
|
41
|
-
isLoading = false,
|
|
42
|
-
leftIcon,
|
|
43
|
-
rightIcon,
|
|
44
|
-
isFullWidth = false,
|
|
45
|
-
soft = false,
|
|
46
|
-
outline = false,
|
|
47
|
-
style,
|
|
48
|
-
disabled,
|
|
49
|
-
...props
|
|
50
|
-
}: ButtonProps) {
|
|
51
|
-
const { colorScheme } = useColorScheme();
|
|
52
|
-
const theme = Colors[colorScheme ?? "light"];
|
|
53
|
-
|
|
54
|
-
const getVariantStyles = (): {
|
|
55
|
-
bg: string;
|
|
56
|
-
text: string;
|
|
57
|
-
border?: string;
|
|
58
|
-
} => {
|
|
59
|
-
switch (variant) {
|
|
60
|
-
case "primary":
|
|
61
|
-
return { bg: theme.primary, text: theme.primaryContent };
|
|
62
|
-
case "secondary":
|
|
63
|
-
return { bg: theme.secondary, text: theme.secondaryContent };
|
|
64
|
-
case "accent":
|
|
65
|
-
return { bg: theme.accent, text: theme.accentContent };
|
|
66
|
-
case "info":
|
|
67
|
-
return { bg: theme.info, text: "#fff" };
|
|
68
|
-
case "success":
|
|
69
|
-
return { bg: theme.success, text: "#fff" };
|
|
70
|
-
case "warning":
|
|
71
|
-
return { bg: theme.warning, text: "#fff" };
|
|
72
|
-
case "error":
|
|
73
|
-
return { bg: theme.error, text: "#fff" };
|
|
74
|
-
case "ghost":
|
|
75
|
-
return { bg: "transparent", text: theme.baseContent };
|
|
76
|
-
case "outline":
|
|
77
|
-
return {
|
|
78
|
-
bg: "transparent",
|
|
79
|
-
text: theme.baseContent,
|
|
80
|
-
border: theme.base300,
|
|
81
|
-
};
|
|
82
|
-
default:
|
|
83
|
-
return { bg: theme.primary, text: theme.primaryContent };
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
const getSizeStyles = (): {
|
|
88
|
-
height: number;
|
|
89
|
-
px: number;
|
|
90
|
-
fontSize: number;
|
|
91
|
-
iconSize: number;
|
|
92
|
-
} => {
|
|
93
|
-
switch (size) {
|
|
94
|
-
case "xs":
|
|
95
|
-
return { height: 30, px: 10, fontSize: 12, iconSize: 14 };
|
|
96
|
-
case "sm":
|
|
97
|
-
return { height: 36, px: 12, fontSize: 13, iconSize: 16 };
|
|
98
|
-
case "base":
|
|
99
|
-
return { height: 40, px: 12, fontSize: 14, iconSize: 16 };
|
|
100
|
-
case "md":
|
|
101
|
-
return { height: 48, px: 16, fontSize: 15, iconSize: 20 };
|
|
102
|
-
case "lg":
|
|
103
|
-
return { height: 56, px: 24, fontSize: 17, iconSize: 24 };
|
|
104
|
-
default:
|
|
105
|
-
return { height: 40, px: 12, fontSize: 14, iconSize: 16 };
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
const vStyles = getVariantStyles();
|
|
110
|
-
if (outline) {
|
|
111
|
-
vStyles.border = vStyles.bg === "transparent" ? theme.base300 : vStyles.bg;
|
|
112
|
-
vStyles.text = vStyles.bg === "transparent" ? theme.baseContent : vStyles.bg;
|
|
113
|
-
vStyles.bg = "transparent";
|
|
114
|
-
} else if (soft && variant !== "ghost" && variant !== "outline") {
|
|
115
|
-
vStyles.text = vStyles.bg;
|
|
116
|
-
vStyles.bg = vStyles.bg + "26"; // ~15% opacity
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const sStyles = getSizeStyles();
|
|
120
|
-
|
|
121
|
-
const isDisabled = disabled || isLoading;
|
|
122
|
-
|
|
123
|
-
return (
|
|
124
|
-
<TouchableOpacity
|
|
125
|
-
activeOpacity={0.7}
|
|
126
|
-
disabled={isDisabled}
|
|
127
|
-
style={[
|
|
128
|
-
{
|
|
129
|
-
backgroundColor: vStyles.bg as any,
|
|
130
|
-
height: sStyles.height,
|
|
131
|
-
paddingHorizontal: sStyles.px,
|
|
132
|
-
borderRadius: 12,
|
|
133
|
-
flexDirection: "row",
|
|
134
|
-
alignItems: "center",
|
|
135
|
-
justifyContent: "center",
|
|
136
|
-
opacity: isDisabled ? 0.6 : 1,
|
|
137
|
-
borderWidth: (variant === "outline" || outline) ? 1 : 0,
|
|
138
|
-
borderColor: vStyles.border,
|
|
139
|
-
width: isFullWidth ? "100%" : undefined,
|
|
140
|
-
},
|
|
141
|
-
style,
|
|
142
|
-
]}
|
|
143
|
-
{...props}
|
|
144
|
-
>
|
|
145
|
-
{/* Loading overlay */}
|
|
146
|
-
{isLoading && (
|
|
147
|
-
<View style={{ position: "absolute", top: 0, left: 0, right: 0, bottom: 0, justifyContent: "center", alignItems: "center" }}>
|
|
148
|
-
<ActivityIndicator color={vStyles.text} size="small" />
|
|
149
|
-
</View>
|
|
150
|
-
)}
|
|
151
|
-
|
|
152
|
-
{/* Button content (hidden while loading to maintain dimensions) */}
|
|
153
|
-
<View style={{ flexDirection: "row", alignItems: "center", opacity: isLoading ? 0 : 1 }}>
|
|
154
|
-
{leftIcon && (
|
|
155
|
-
<Ionicons
|
|
156
|
-
name={leftIcon}
|
|
157
|
-
size={sStyles.iconSize}
|
|
158
|
-
color={vStyles.text}
|
|
159
|
-
style={{ marginRight: 8 }}
|
|
160
|
-
/>
|
|
161
|
-
)}
|
|
162
|
-
<Txt
|
|
163
|
-
color={vStyles.text}
|
|
164
|
-
weight="semibold"
|
|
165
|
-
style={{ fontSize: sStyles.fontSize }}
|
|
166
|
-
>
|
|
167
|
-
{label}
|
|
168
|
-
</Txt>
|
|
169
|
-
{rightIcon && (
|
|
170
|
-
<Ionicons
|
|
171
|
-
name={rightIcon}
|
|
172
|
-
size={sStyles.iconSize}
|
|
173
|
-
color={vStyles.text}
|
|
174
|
-
style={{ marginLeft: 8 }}
|
|
175
|
-
/>
|
|
176
|
-
)}
|
|
177
|
-
</View>
|
|
178
|
-
</TouchableOpacity>
|
|
179
|
-
);
|
|
180
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View, StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
|
|
4
|
-
export interface ButtonGroupProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
orientation?: "horizontal" | "vertical";
|
|
7
|
-
spacing?: number;
|
|
8
|
-
style?: StyleProp<ViewStyle>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default function ButtonGroup({
|
|
12
|
-
children,
|
|
13
|
-
orientation = "horizontal",
|
|
14
|
-
spacing = 8,
|
|
15
|
-
style,
|
|
16
|
-
}: ButtonGroupProps) {
|
|
17
|
-
const isHorizontal = orientation === "horizontal";
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<View
|
|
21
|
-
style={[
|
|
22
|
-
{
|
|
23
|
-
flexDirection: isHorizontal ? "row" : "column",
|
|
24
|
-
gap: spacing,
|
|
25
|
-
},
|
|
26
|
-
style,
|
|
27
|
-
]}
|
|
28
|
-
>
|
|
29
|
-
{children}
|
|
30
|
-
</View>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TouchableOpacity, StyleProp, ViewStyle, StyleSheet, ActivityIndicator } from "react-native";
|
|
3
|
-
import { Ionicons } from "@expo/vector-icons";
|
|
4
|
-
import { useColorScheme } from "nativewind";
|
|
5
|
-
import { Colors } from "../../../constants/Colors";
|
|
6
|
-
|
|
7
|
-
export interface FABProps {
|
|
8
|
-
icon: keyof typeof Ionicons.glyphMap;
|
|
9
|
-
onPress: () => void;
|
|
10
|
-
position?: "bottom-right" | "bottom-left" | "bottom-center";
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
style?: StyleProp<ViewStyle>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default function FloatingActionButton({
|
|
16
|
-
icon,
|
|
17
|
-
onPress,
|
|
18
|
-
position = "bottom-right",
|
|
19
|
-
isLoading = false,
|
|
20
|
-
style,
|
|
21
|
-
}: FABProps) {
|
|
22
|
-
const { colorScheme } = useColorScheme();
|
|
23
|
-
const theme = Colors[colorScheme ?? "light"];
|
|
24
|
-
|
|
25
|
-
const getPositionStyles = (): ViewStyle => {
|
|
26
|
-
switch (position) {
|
|
27
|
-
case "bottom-left":
|
|
28
|
-
return { bottom: 20, left: 20 };
|
|
29
|
-
case "bottom-center":
|
|
30
|
-
return { bottom: 20, alignSelf: "center" };
|
|
31
|
-
case "bottom-right":
|
|
32
|
-
default:
|
|
33
|
-
return { bottom: 20, right: 20 };
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<TouchableOpacity
|
|
39
|
-
activeOpacity={0.8}
|
|
40
|
-
onPress={onPress}
|
|
41
|
-
disabled={isLoading}
|
|
42
|
-
style={[
|
|
43
|
-
styles.fab,
|
|
44
|
-
{ backgroundColor: theme.primary, shadowColor: theme.primary },
|
|
45
|
-
getPositionStyles(),
|
|
46
|
-
style,
|
|
47
|
-
]}
|
|
48
|
-
>
|
|
49
|
-
{isLoading ? (
|
|
50
|
-
<ActivityIndicator color={theme.primaryContent} size="small" />
|
|
51
|
-
) : (
|
|
52
|
-
<Ionicons name={icon} size={28} color={theme.primaryContent} />
|
|
53
|
-
)}
|
|
54
|
-
</TouchableOpacity>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const styles = StyleSheet.create({
|
|
59
|
-
fab: {
|
|
60
|
-
position: "absolute",
|
|
61
|
-
width: 60,
|
|
62
|
-
height: 60,
|
|
63
|
-
borderRadius: 30,
|
|
64
|
-
alignItems: "center",
|
|
65
|
-
justifyContent: "center",
|
|
66
|
-
elevation: 8,
|
|
67
|
-
shadowOffset: { width: 0, height: 4 },
|
|
68
|
-
shadowOpacity: 0.3,
|
|
69
|
-
shadowRadius: 5,
|
|
70
|
-
zIndex: 999,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TouchableOpacity, ActivityIndicator, TouchableOpacityProps } from "react-native";
|
|
3
|
-
import { useColorScheme } from "nativewind";
|
|
4
|
-
import { Colors } from "../../../constants/Colors";
|
|
5
|
-
import { Ionicons } from "@expo/vector-icons";
|
|
6
|
-
import { ButtonVariant, ButtonSize } from "./Button";
|
|
7
|
-
|
|
8
|
-
export interface IconButtonProps extends TouchableOpacityProps {
|
|
9
|
-
icon: keyof typeof Ionicons.glyphMap;
|
|
10
|
-
variant?: ButtonVariant;
|
|
11
|
-
size?: ButtonSize;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
color?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default function IconButton({
|
|
17
|
-
icon,
|
|
18
|
-
variant = "ghost",
|
|
19
|
-
size = "md",
|
|
20
|
-
isLoading = false,
|
|
21
|
-
color,
|
|
22
|
-
style,
|
|
23
|
-
disabled,
|
|
24
|
-
...props
|
|
25
|
-
}: IconButtonProps) {
|
|
26
|
-
const { colorScheme } = useColorScheme();
|
|
27
|
-
const theme = Colors[colorScheme ?? "light"];
|
|
28
|
-
|
|
29
|
-
const getVariantStyles = (): { bg: string; iconColor: string; border?: string } => {
|
|
30
|
-
switch (variant) {
|
|
31
|
-
case "primary": return { bg: theme.primary, iconColor: theme.primaryContent };
|
|
32
|
-
case "secondary": return { bg: theme.secondary, iconColor: theme.secondaryContent };
|
|
33
|
-
case "accent": return { bg: theme.accent, iconColor: theme.accentContent };
|
|
34
|
-
case "info": return { bg: theme.info, iconColor: "#fff" };
|
|
35
|
-
case "success": return { bg: theme.success, iconColor: "#fff" };
|
|
36
|
-
case "warning": return { bg: theme.warning, iconColor: "#fff" };
|
|
37
|
-
case "error": return { bg: theme.error, iconColor: "#fff" };
|
|
38
|
-
case "ghost": return { bg: "transparent", iconColor: theme.baseContent };
|
|
39
|
-
case "outline": return { bg: "transparent", iconColor: theme.baseContent, border: theme.base300 };
|
|
40
|
-
default: return { bg: theme.primary, iconColor: theme.primaryContent };
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const getSizeStyles = (): { size: number; iconSize: number } => {
|
|
45
|
-
switch (size) {
|
|
46
|
-
case "sm": return { size: 36, iconSize: 18 };
|
|
47
|
-
case "md": return { size: 48, iconSize: 24 };
|
|
48
|
-
case "lg": return { size: 56, iconSize: 28 };
|
|
49
|
-
default: return { size: 48, iconSize: 24 };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const vStyles = getVariantStyles();
|
|
54
|
-
const sStyles = getSizeStyles();
|
|
55
|
-
const isDisabled = disabled || isLoading;
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
<TouchableOpacity
|
|
59
|
-
activeOpacity={0.7}
|
|
60
|
-
disabled={isDisabled}
|
|
61
|
-
style={[
|
|
62
|
-
{
|
|
63
|
-
backgroundColor: vStyles.bg,
|
|
64
|
-
width: sStyles.size,
|
|
65
|
-
height: sStyles.size,
|
|
66
|
-
borderRadius: sStyles.size / 2,
|
|
67
|
-
alignItems: "center",
|
|
68
|
-
justifyContent: "center",
|
|
69
|
-
opacity: isDisabled ? 0.6 : 1,
|
|
70
|
-
borderWidth: variant === "outline" ? 1 : 0,
|
|
71
|
-
borderColor: vStyles.border,
|
|
72
|
-
},
|
|
73
|
-
style,
|
|
74
|
-
]}
|
|
75
|
-
{...props}
|
|
76
|
-
>
|
|
77
|
-
{isLoading ? (
|
|
78
|
-
<ActivityIndicator color={color || vStyles.iconColor} size="small" />
|
|
79
|
-
) : (
|
|
80
|
-
<Ionicons name={icon} size={sStyles.iconSize} color={color || vStyles.iconColor} />
|
|
81
|
-
)}
|
|
82
|
-
</TouchableOpacity>
|
|
83
|
-
);
|
|
84
|
-
}
|