@dartix-software-solutions/create-fullstack-app 2.0.12 → 2.0.14
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/dist/backends/fastapi/templates/app/core/config.py.hbs +13 -13
- package/dist/backends/fastapi/templates/app/main.py.hbs +31 -31
- package/dist/backends/fastapi/templates/app/routers/health.py.hbs +8 -8
- package/dist/backends/fastapi/templates/app/routers/users.py.hbs +30 -30
- package/dist/backends/fastapi/templates/app/schemas/user.py.hbs +12 -12
- package/dist/backends/fastapi/templates/requirements.txt.hbs +6 -6
- package/dist/bin/create-fullstack-app.js +1 -1
- package/dist/{chunk-36CSXSDC.js → chunk-JQDTKR4K.js} +110 -43
- package/dist/databases/mongodb/templates/connection.ts.hbs +15 -15
- package/dist/databases/mongodb/templates/health-check.ts.hbs +11 -11
- package/dist/databases/mysql/templates/connection.ts.hbs +14 -14
- package/dist/databases/mysql/templates/health-check.ts.hbs +12 -12
- package/dist/databases/postgres/templates/connection.ts.hbs +14 -14
- package/dist/databases/postgres/templates/health-check.ts.hbs +12 -12
- package/dist/databases/redis/templates/connection.ts.hbs +14 -14
- package/dist/databases/redis/templates/health-check.ts.hbs +10 -10
- package/dist/databases/sqlite/templates/connection.ts.hbs +12 -12
- package/dist/databases/sqlite/templates/health-check.ts.hbs +10 -10
- package/dist/frontend-extras/react-table/templates/components/SampleTable.tsx.hbs +25 -25
- package/dist/frontend-extras/react-table/templates/data/sample-table-data.ts.hbs +4 -4
- package/dist/frontends/mobile/expo/templates/App.react-navigation.tsx.hbs +10 -10
- package/dist/frontends/mobile/expo/templates/app/(auth)/_layout.tsx.hbs +5 -5
- package/dist/frontends/mobile/expo/templates/app/(auth)/login.tsx.hbs +3 -3
- package/dist/frontends/mobile/expo/templates/app/(auth)/register.tsx.hbs +3 -3
- package/dist/frontends/mobile/expo/templates/app/(tabs)/_layout.tsx.hbs +11 -11
- package/dist/frontends/mobile/expo/templates/app/(tabs)/index.tsx.hbs +3 -3
- package/dist/frontends/mobile/expo/templates/app/(tabs)/profile.tsx.hbs +3 -3
- package/dist/frontends/mobile/expo/templates/app/(tabs)/settings.tsx.hbs +3 -3
- package/dist/frontends/mobile/expo/templates/app/+not-found.tsx.hbs +14 -14
- package/dist/frontends/mobile/expo/templates/app/_layout.tsx.hbs +11 -11
- package/dist/frontends/mobile/expo/templates/app/index.tsx.hbs +29 -29
- package/dist/frontends/mobile/expo/templates/types/router.ts.hbs +10 -10
- package/dist/frontends/mobile/react-native-cli/templates/app.json.hbs +4 -4
- package/dist/frontends/mobile/react-native-cli/templates/babel.config.js.hbs +14 -14
- package/dist/frontends/mobile/react-native-cli/templates/components/Avatar.tsx.hbs +29 -29
- package/dist/frontends/mobile/react-native-cli/templates/types/env.d.ts.hbs +3 -3
- package/dist/frontends/web/angular/templates/index.html.hbs +12 -12
- package/dist/frontends/web/angular/templates/main.ts.hbs +5 -5
- package/dist/frontends/web/angular/templates/pages/dashboard/dashboard.component.html.hbs +3 -3
- package/dist/frontends/web/angular/templates/pages/dashboard/dashboard.component.ts.hbs +10 -10
- package/dist/frontends/web/angular/templates/styles.css.hbs +11 -11
- package/dist/frontends/web/vue/templates/App.vue.hbs +9 -9
- package/dist/frontends/web/vue/templates/components/Layout.vue.hbs +17 -17
- package/dist/frontends/web/vue/templates/components/LoadingSpinner.vue.hbs +7 -7
- package/dist/frontends/web/vue/templates/components/Navbar.vue.hbs +24 -24
- package/dist/frontends/web/vue/templates/composables/useApi.ts.hbs +8 -8
- package/dist/frontends/web/vue/templates/composables/useAuth.ts.hbs +20 -20
- package/dist/frontends/web/vue/templates/env.d.ts.hbs +1 -1
- package/dist/frontends/web/vue/templates/index.html.hbs +12 -12
- package/dist/frontends/web/vue/templates/lib/config.ts.hbs +2 -2
- package/dist/frontends/web/vue/templates/main.ts.hbs +9 -9
- package/dist/frontends/web/vue/templates/pages/About.vue.hbs +6 -6
- package/dist/frontends/web/vue/templates/pages/Dashboard.vue.hbs +21 -21
- package/dist/frontends/web/vue/templates/pages/Home.vue.hbs +19 -19
- package/dist/frontends/web/vue/templates/pages/Login.vue.hbs +34 -34
- package/dist/frontends/web/vue/templates/pages/NotFound.vue.hbs +7 -7
- package/dist/frontends/web/vue/templates/router/index.ts.hbs +34 -34
- package/dist/frontends/web/vue/templates/stores/app.ts.hbs +8 -8
- package/dist/frontends/web/vue/templates/tsconfig.json.hbs +15 -15
- package/dist/frontends/web/vue/templates/vite.config.ts.hbs +6 -6
- package/dist/index.js +1 -1
- package/dist/orms/prisma/file-map.js +1 -0
- package/dist/orms/prisma/meta.js +5 -2
- package/dist/orms/prisma/templates/db-client.ts.hbs +10 -1
- package/dist/orms/prisma/templates/injection-module-import.hbs +1 -1
- package/dist/orms/prisma/templates/injection-module-register.hbs +1 -1
- package/dist/orms/prisma/templates/models/user.ts.hbs +3 -3
- package/dist/orms/prisma/templates/prisma.config.ts.hbs +12 -0
- package/dist/orms/prisma/templates/prisma.module.ts.hbs +9 -9
- package/dist/orms/prisma/templates/prisma.service.ts.hbs +24 -13
- package/dist/orms/prisma/templates/schema.prisma.hbs +0 -1
- package/dist/orms/prisma/templates/services/user.service.nestjs.ts.hbs +16 -16
- package/dist/orms/prisma/templates/services/user.service.ts.hbs +10 -10
- package/package.json +1 -1
- package/dist/plugins/devops/docker/templates/.dockerignore.hbs +0 -5
- package/dist/plugins/devops/gitlab-ci/templates/.gitlab-ci.yml.hbs +0 -14
- package/dist/plugins/devtools/eslint/templates/.eslintignore.hbs +0 -3
- package/dist/plugins/devtools/lint-staged/templates/.lintstagedrc.hbs +0 -5
- package/dist/plugins/devtools/prettier/templates/.prettierignore.hbs +0 -4
- package/dist/plugins/devtools/prettier/templates/.prettierrc.hbs +0 -6
- package/dist/plugins/mobile-navigation/expo-router/templates/.gitkeep +0 -0
- package/dist/plugins/testing/detox/templates/.detoxrc.js.hbs +0 -7
- package/dist/plugins/testing/maestro/templates/.maestro/home.yaml.hbs +0 -4
- package/dist/plugins/testing/maestro/templates/.maestro/login.yaml.hbs +0 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
2
|
-
import type { User } from '../models/user.js';
|
|
3
|
-
import { PrismaService } from '../prisma/prisma.service.js';
|
|
4
|
-
|
|
5
|
-
@Injectable()
|
|
6
|
-
export class UsersPrismaService {
|
|
7
|
-
constructor(private readonly prisma: PrismaService) {}
|
|
8
|
-
|
|
9
|
-
findAll(): Promise<User[]> {
|
|
10
|
-
return this.prisma.user.findMany();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
findOne(id: number): Promise<User | null> {
|
|
14
|
-
return this.prisma.user.findUnique({ where: { id } });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
import type { User } from '../models/user.js';
|
|
3
|
+
import { PrismaService } from '../prisma/prisma.service.js';
|
|
4
|
+
|
|
5
|
+
@Injectable()
|
|
6
|
+
export class UsersPrismaService {
|
|
7
|
+
constructor(private readonly prisma: PrismaService) {}
|
|
8
|
+
|
|
9
|
+
findAll(): Promise<User[]> {
|
|
10
|
+
return this.prisma.user.findMany();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
findOne(id: number): Promise<User | null> {
|
|
14
|
+
return this.prisma.user.findUnique({ where: { id } });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { prisma } from '../lib/db.js';
|
|
2
|
-
import type { User } from '../models/user.js';
|
|
3
|
-
|
|
4
|
-
export async function listUsers(): Promise<User[]> {
|
|
5
|
-
return prisma.user.findMany();
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export async function findUserById(id: number): Promise<User | null> {
|
|
9
|
-
return prisma.user.findUnique({ where: { id } });
|
|
10
|
-
}
|
|
1
|
+
import { prisma } from '../lib/db.js';
|
|
2
|
+
import type { User } from '../models/user.js';
|
|
3
|
+
|
|
4
|
+
export async function listUsers(): Promise<User[]> {
|
|
5
|
+
return prisma.user.findMany();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export async function findUserById(id: number): Promise<User | null> {
|
|
9
|
+
return prisma.user.findUnique({ where: { id } });
|
|
10
|
+
}
|
package/package.json
CHANGED
|
File without changes
|