create-nexwire 4.2.3 → 4.2.5
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/express/.vscode/extensions.json +6 -0
- package/express/.vscode/settings.json +37 -26
- package/express/biome.json +99 -66
- package/express/package.json +54 -27
- package/express/src/database/migrations/sqlite/0000_init.sql +47 -60
- package/express/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
- package/express/src/database/migrations/sqlite/meta/_journal.json +1 -1
- package/express/src/database/schema.ts +0 -1
- package/express/src/framework/facade.ts +12 -1
- package/express/src/framework/maker-cli/db/core.mjs +291 -288
- package/express/src/framework/maker-cli/module/core.mjs +125 -87
- package/express/src/framework/maker-cli/module/index.mjs +3 -3
- package/express/src/framework/maker-cli/stubs/notification/controller.ts.stub +61 -62
- package/express/src/framework/maker-cli/stubs/notification/job.ts.stub +11 -13
- package/express/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
- package/express/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
- package/express/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
- package/express/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
- package/express/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
- package/express/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
- package/express/src/framework/notification/index.ts +49 -87
- package/express/src/framework/providers/adapter.ts +24 -10
- package/express/src/framework/providers/contracts.ts +80 -10
- package/express/src/framework/providers/registry.ts +27 -1
- package/express/src/resources/src/components/Checkbox.vue +32 -29
- package/express/src/resources/src/components/Input.vue +243 -223
- package/express/src/resources/src/components/InputGroup.vue +147 -145
- package/express/src/resources/src/components/InputPasswordToggle.vue +229 -213
- package/express/src/resources/src/components/Modal.vue +71 -55
- package/express/src/resources/src/components/Refresh.vue +19 -0
- package/express/src/resources/src/helpers/assets.ts +51 -0
- package/express/src/resources/src/main.ts +4 -2
- package/express/src/resources/src/pages/auth/forgetPassword.vue +1 -1
- package/express/src/resources/src/pages/auth/login.vue +1 -1
- package/express/src/resources/src/pages/auth/register.vue +1 -1
- package/express/src/resources/src/pages/auth/resetPassword.vue +1 -1
- package/express/src/resources/src/pages/auth/verifyEmail.vue +1 -1
- package/express/src/resources/src/pages/dashboard/index.vue +66 -66
- package/express/src/resources/src/plugins/gum.ts +1 -1
- package/express/src/resources/src/stores/auth.ts +184 -164
- package/express/src/resources/vite.config.ts +9 -2
- package/express/src/storage/database/nexwire.sqlite +0 -0
- package/hono/.vscode/extensions.json +6 -0
- package/hono/.vscode/settings.json +37 -26
- package/hono/biome.json +25 -2
- package/hono/package.json +50 -23
- package/hono/src/database/migrations/sqlite/0000_init.sql +47 -60
- package/hono/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
- package/hono/src/database/migrations/sqlite/meta/_journal.json +1 -1
- package/hono/src/database/schema.ts +0 -1
- package/hono/src/framework/facade.ts +12 -1
- package/hono/src/framework/maker-cli/db/core.mjs +291 -288
- package/hono/src/framework/maker-cli/module/core.mjs +93 -52
- package/hono/src/framework/maker-cli/module/index.mjs +3 -3
- package/hono/src/framework/maker-cli/stubs/notification/controller.ts.stub +63 -58
- package/hono/src/framework/maker-cli/stubs/notification/job.ts.stub +10 -12
- package/hono/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
- package/hono/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
- package/hono/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
- package/hono/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
- package/hono/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
- package/hono/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
- package/hono/src/framework/notification/index.ts +49 -87
- package/hono/src/framework/providers/adapter.ts +24 -10
- package/hono/src/framework/providers/contracts.ts +80 -10
- package/hono/src/framework/providers/registry.ts +27 -1
- package/hono/src/resources/src/components/Checkbox.vue +32 -29
- package/hono/src/resources/src/components/Input.vue +243 -234
- package/hono/src/resources/src/components/InputGroup.vue +147 -149
- package/hono/src/resources/src/components/InputPasswordToggle.vue +229 -222
- package/hono/src/resources/src/components/Modal.vue +71 -55
- package/hono/src/resources/src/components/Refresh.vue +19 -0
- package/hono/src/resources/src/helpers/assets.ts +51 -0
- package/hono/src/resources/src/main.ts +4 -2
- package/hono/src/resources/src/pages/auth/forgetPassword.vue +1 -1
- package/hono/src/resources/src/pages/auth/login.vue +1 -1
- package/hono/src/resources/src/pages/auth/register.vue +1 -1
- package/hono/src/resources/src/pages/auth/resetPassword.vue +1 -1
- package/hono/src/resources/src/pages/auth/verifyEmail.vue +1 -1
- package/hono/src/resources/src/pages/dashboard/index.vue +66 -66
- package/hono/src/resources/src/plugins/gum.ts +1 -1
- package/hono/src/resources/src/stores/auth.ts +184 -164
- package/hono/src/resources/vite.config.ts +9 -2
- package/hono/src/storage/database/nexwire.sqlite +0 -0
- package/package.json +10 -10
- package/express/src/modules/auth/database/models/notification.ts +0 -24
- package/hono/src/modules/auth/database/models/notification.ts +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nexwire",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Scaffold a new nexwire project",
|
|
6
6
|
"bin": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@socket.io/admin-ui": "^0.5",
|
|
52
52
|
"@socket.io/bun-engine": "^0.1",
|
|
53
53
|
"@socket.io/redis-adapter": "^8",
|
|
54
|
+
"@unhead/vue": "^3",
|
|
54
55
|
"@vitejs/plugin-vue": "^6",
|
|
55
56
|
"@vueuse/core": "^14",
|
|
56
|
-
"@vueuse/head": "^2",
|
|
57
57
|
"axios": "^1",
|
|
58
58
|
"bcryptjs": "^3",
|
|
59
59
|
"bootstrap": "^5",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"bullmq": "^5",
|
|
62
62
|
"bullmq-durable": "^0.2",
|
|
63
63
|
"chalk": "^5",
|
|
64
|
-
"commander": "^
|
|
64
|
+
"commander": "^15",
|
|
65
65
|
"croner": "^10",
|
|
66
66
|
"dotenv": "^17",
|
|
67
67
|
"dotenv-expand": "^13",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"ioredis": "^5",
|
|
73
73
|
"lodash-es": "^4",
|
|
74
74
|
"luxon": "^3",
|
|
75
|
-
"maildev": "^
|
|
75
|
+
"maildev": "^3",
|
|
76
76
|
"mysql2": "^3",
|
|
77
|
-
"nodemailer": "^
|
|
77
|
+
"nodemailer": "^10",
|
|
78
78
|
"pinia": "^3",
|
|
79
79
|
"pino": "^10",
|
|
80
80
|
"postgres": "^3",
|
|
81
81
|
"redis-commander": "^0.9.0",
|
|
82
|
-
"sass
|
|
82
|
+
"sass": "^1",
|
|
83
83
|
"socket.io": "^4",
|
|
84
84
|
"socket.io-client": "^4",
|
|
85
85
|
"stoker": "^2",
|
|
@@ -123,13 +123,13 @@
|
|
|
123
123
|
"@socket.io/redis-adapter": {
|
|
124
124
|
"optional": true
|
|
125
125
|
},
|
|
126
|
-
"@
|
|
126
|
+
"@unhead/vue": {
|
|
127
127
|
"optional": true
|
|
128
128
|
},
|
|
129
|
-
"@
|
|
129
|
+
"@vitejs/plugin-vue": {
|
|
130
130
|
"optional": true
|
|
131
131
|
},
|
|
132
|
-
"@vueuse/
|
|
132
|
+
"@vueuse/core": {
|
|
133
133
|
"optional": true
|
|
134
134
|
},
|
|
135
135
|
"axios": {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"redis-commander": {
|
|
208
208
|
"optional": true
|
|
209
209
|
},
|
|
210
|
-
"sass
|
|
210
|
+
"sass": {
|
|
211
211
|
"optional": true
|
|
212
212
|
},
|
|
213
213
|
"socket.io": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { relations } from "drizzle-orm";
|
|
2
|
-
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
3
|
-
import { users } from "@/modules/auth/database/models/user.js";
|
|
4
|
-
|
|
5
|
-
export const notifications = sqliteTable("notifications", {
|
|
6
|
-
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
7
|
-
userId: integer("user_id")
|
|
8
|
-
.notNull()
|
|
9
|
-
.references(() => users.id, { onUpdate: "cascade", onDelete: "cascade" }),
|
|
10
|
-
type: text("type").notNull(),
|
|
11
|
-
title: text("title").notNull(),
|
|
12
|
-
body: text("body"),
|
|
13
|
-
data: text("data"),
|
|
14
|
-
link: text("link"),
|
|
15
|
-
readAt: integer("read_at", { mode: "timestamp" }),
|
|
16
|
-
createdAt: integer("created_at", { mode: "timestamp" }).defaultNow().notNull()
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const notificationsRelations = relations(notifications, ({ one }) => ({
|
|
20
|
-
user: one(users, {
|
|
21
|
-
fields: [notifications.userId],
|
|
22
|
-
references: [users.id]
|
|
23
|
-
})
|
|
24
|
-
}));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { relations } from "drizzle-orm";
|
|
2
|
-
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
3
|
-
import { users } from "@/modules/auth/database/models/user.js";
|
|
4
|
-
|
|
5
|
-
export const notifications = sqliteTable("notifications", {
|
|
6
|
-
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
7
|
-
userId: integer("user_id")
|
|
8
|
-
.notNull()
|
|
9
|
-
.references(() => users.id, { onUpdate: "cascade", onDelete: "cascade" }),
|
|
10
|
-
type: text("type").notNull(),
|
|
11
|
-
title: text("title").notNull(),
|
|
12
|
-
body: text("body"),
|
|
13
|
-
data: text("data"),
|
|
14
|
-
link: text("link"),
|
|
15
|
-
readAt: integer("read_at", { mode: "timestamp" }),
|
|
16
|
-
createdAt: integer("created_at", { mode: "timestamp" }).defaultNow().notNull()
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const notificationsRelations = relations(notifications, ({ one }) => ({
|
|
20
|
-
user: one(users, {
|
|
21
|
-
fields: [notifications.userId],
|
|
22
|
-
references: [users.id]
|
|
23
|
-
})
|
|
24
|
-
}));
|