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.
Files changed (87) hide show
  1. package/express/.vscode/extensions.json +6 -0
  2. package/express/.vscode/settings.json +37 -26
  3. package/express/biome.json +99 -66
  4. package/express/package.json +54 -27
  5. package/express/src/database/migrations/sqlite/0000_init.sql +47 -60
  6. package/express/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
  7. package/express/src/database/migrations/sqlite/meta/_journal.json +1 -1
  8. package/express/src/database/schema.ts +0 -1
  9. package/express/src/framework/facade.ts +12 -1
  10. package/express/src/framework/maker-cli/db/core.mjs +291 -288
  11. package/express/src/framework/maker-cli/module/core.mjs +125 -87
  12. package/express/src/framework/maker-cli/module/index.mjs +3 -3
  13. package/express/src/framework/maker-cli/stubs/notification/controller.ts.stub +61 -62
  14. package/express/src/framework/maker-cli/stubs/notification/job.ts.stub +11 -13
  15. package/express/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
  16. package/express/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
  17. package/express/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
  18. package/express/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
  19. package/express/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
  20. package/express/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
  21. package/express/src/framework/notification/index.ts +49 -87
  22. package/express/src/framework/providers/adapter.ts +24 -10
  23. package/express/src/framework/providers/contracts.ts +80 -10
  24. package/express/src/framework/providers/registry.ts +27 -1
  25. package/express/src/resources/src/components/Checkbox.vue +32 -29
  26. package/express/src/resources/src/components/Input.vue +243 -223
  27. package/express/src/resources/src/components/InputGroup.vue +147 -145
  28. package/express/src/resources/src/components/InputPasswordToggle.vue +229 -213
  29. package/express/src/resources/src/components/Modal.vue +71 -55
  30. package/express/src/resources/src/components/Refresh.vue +19 -0
  31. package/express/src/resources/src/helpers/assets.ts +51 -0
  32. package/express/src/resources/src/main.ts +4 -2
  33. package/express/src/resources/src/pages/auth/forgetPassword.vue +1 -1
  34. package/express/src/resources/src/pages/auth/login.vue +1 -1
  35. package/express/src/resources/src/pages/auth/register.vue +1 -1
  36. package/express/src/resources/src/pages/auth/resetPassword.vue +1 -1
  37. package/express/src/resources/src/pages/auth/verifyEmail.vue +1 -1
  38. package/express/src/resources/src/pages/dashboard/index.vue +66 -66
  39. package/express/src/resources/src/plugins/gum.ts +1 -1
  40. package/express/src/resources/src/stores/auth.ts +184 -164
  41. package/express/src/resources/vite.config.ts +9 -2
  42. package/express/src/storage/database/nexwire.sqlite +0 -0
  43. package/hono/.vscode/extensions.json +6 -0
  44. package/hono/.vscode/settings.json +37 -26
  45. package/hono/biome.json +25 -2
  46. package/hono/package.json +50 -23
  47. package/hono/src/database/migrations/sqlite/0000_init.sql +47 -60
  48. package/hono/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
  49. package/hono/src/database/migrations/sqlite/meta/_journal.json +1 -1
  50. package/hono/src/database/schema.ts +0 -1
  51. package/hono/src/framework/facade.ts +12 -1
  52. package/hono/src/framework/maker-cli/db/core.mjs +291 -288
  53. package/hono/src/framework/maker-cli/module/core.mjs +93 -52
  54. package/hono/src/framework/maker-cli/module/index.mjs +3 -3
  55. package/hono/src/framework/maker-cli/stubs/notification/controller.ts.stub +63 -58
  56. package/hono/src/framework/maker-cli/stubs/notification/job.ts.stub +10 -12
  57. package/hono/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
  58. package/hono/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
  59. package/hono/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
  60. package/hono/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
  61. package/hono/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
  62. package/hono/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
  63. package/hono/src/framework/notification/index.ts +49 -87
  64. package/hono/src/framework/providers/adapter.ts +24 -10
  65. package/hono/src/framework/providers/contracts.ts +80 -10
  66. package/hono/src/framework/providers/registry.ts +27 -1
  67. package/hono/src/resources/src/components/Checkbox.vue +32 -29
  68. package/hono/src/resources/src/components/Input.vue +243 -234
  69. package/hono/src/resources/src/components/InputGroup.vue +147 -149
  70. package/hono/src/resources/src/components/InputPasswordToggle.vue +229 -222
  71. package/hono/src/resources/src/components/Modal.vue +71 -55
  72. package/hono/src/resources/src/components/Refresh.vue +19 -0
  73. package/hono/src/resources/src/helpers/assets.ts +51 -0
  74. package/hono/src/resources/src/main.ts +4 -2
  75. package/hono/src/resources/src/pages/auth/forgetPassword.vue +1 -1
  76. package/hono/src/resources/src/pages/auth/login.vue +1 -1
  77. package/hono/src/resources/src/pages/auth/register.vue +1 -1
  78. package/hono/src/resources/src/pages/auth/resetPassword.vue +1 -1
  79. package/hono/src/resources/src/pages/auth/verifyEmail.vue +1 -1
  80. package/hono/src/resources/src/pages/dashboard/index.vue +66 -66
  81. package/hono/src/resources/src/plugins/gum.ts +1 -1
  82. package/hono/src/resources/src/stores/auth.ts +184 -164
  83. package/hono/src/resources/vite.config.ts +9 -2
  84. package/hono/src/storage/database/nexwire.sqlite +0 -0
  85. package/package.json +10 -10
  86. package/express/src/modules/auth/database/models/notification.ts +0 -24
  87. package/hono/src/modules/auth/database/models/notification.ts +0 -24
@@ -1,5 +1,5 @@
1
1
  import "@/plugins/axios";
2
- import { createHead } from "@vueuse/head";
2
+ import { createHead } from "@unhead/vue/client";
3
3
  import { createPinia } from "pinia";
4
4
  import { createApp } from "vue";
5
5
  import { DialogPlugin } from "@/plugins/dialog";
@@ -15,7 +15,9 @@ import "bootstrap/dist/js/bootstrap.bundle.min.js";
15
15
 
16
16
  const app = createApp(App);
17
17
  const pinia = createPinia();
18
- const head = createHead({ titleTemplate: (title) => (title ? `${title} | nexwire` : "nexwire") });
18
+ const head = createHead({
19
+ init: [{ titleTemplate: (title) => (title ? `${title} | nexwire` : "nexwire") }],
20
+ });
19
21
 
20
22
  app.use(pinia);
21
23
  app.use(router);
@@ -43,7 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script setup lang="ts">
46
- import { useHead } from "@vueuse/head";
46
+ import { useHead } from "@unhead/vue";
47
47
  import { ref } from "vue";
48
48
  import Button from "@/components/Button.vue";
49
49
  import Input from "@/components/Input.vue";
@@ -47,7 +47,7 @@
47
47
  </template>
48
48
 
49
49
  <script setup lang="ts">
50
- import { useHead } from "@vueuse/head";
50
+ import { useHead } from "@unhead/vue";
51
51
  import { ref } from "vue";
52
52
  import { useRouter } from "vue-router";
53
53
  import Button from "@/components/Button.vue";
@@ -65,7 +65,7 @@
65
65
  </template>
66
66
 
67
67
  <script setup lang="ts">
68
- import { useHead } from "@vueuse/head";
68
+ import { useHead } from "@unhead/vue";
69
69
  import { ref } from "vue";
70
70
  import { useRouter } from "vue-router";
71
71
  import Button from "@/components/Button.vue";
@@ -53,7 +53,7 @@
53
53
  </template>
54
54
 
55
55
  <script setup lang="ts">
56
- import { useHead } from "@vueuse/head";
56
+ import { useHead } from "@unhead/vue";
57
57
  import { ref } from "vue";
58
58
  import { useRoute, useRouter } from "vue-router";
59
59
  import Button from "@/components/Button.vue";
@@ -23,7 +23,7 @@
23
23
  </template>
24
24
 
25
25
  <script setup lang="ts">
26
- import { useHead } from "@vueuse/head";
26
+ import { useHead } from "@unhead/vue";
27
27
  import { ref } from "vue";
28
28
  import { useRoute } from "vue-router";
29
29
  import { useGum } from "@/plugins/gum";
@@ -1,66 +1,66 @@
1
- <template>
2
- <Pagebar title="Dashboard" />
3
-
4
- <div class="dashboard-placeholder">
5
- <div class="row g-2 mb-2">
6
- <div class="col-12 col-md-4">
7
- <div class="placeholder-card"></div>
8
- </div>
9
- <div class="col-12 col-md-4">
10
- <div class="placeholder-card"></div>
11
- </div>
12
- <div class="col-12 col-md-4">
13
- <div class="placeholder-card"></div>
14
- </div>
15
- </div>
16
-
17
- <div class="placeholder-panel"></div>
18
- </div>
19
- </template>
20
-
21
- <script setup lang="ts">
22
- import { useHead } from "@vueuse/head";
23
- import { onMounted, onUnmounted } from "vue";
24
- import Pagebar from "@/components/Pagebar.vue";
25
- import { useAuth } from "@/composables/useAuth";
26
- import { pulse } from "@/plugins/pulse";
27
-
28
- useHead({ title: "Dashboard" });
29
-
30
- const { user } = useAuth();
31
-
32
- onMounted(() => {
33
- const ch = pulse.channel("user");
34
- ch.listen("user.changed", () => alert("me"));
35
- onUnmounted(() => ch.stopListening("user.changed"));
36
- });
37
-
38
- // const hardRefresh = () => window.location.reload();
39
- </script>
40
-
41
- <style scoped>
42
- .placeholder-card,
43
- .placeholder-panel {
44
- border: 1px solid var(--app-border);
45
- border-radius: 0.3rem;
46
- background: var(--app-surface);
47
- }
48
-
49
- .placeholder-card {
50
- min-height: 220px;
51
- }
52
-
53
- .placeholder-panel {
54
- min-height: 520px;
55
- }
56
-
57
- @media (max-width: 768px) {
58
- .placeholder-card {
59
- min-height: 160px;
60
- }
61
-
62
- .placeholder-panel {
63
- min-height: 360px;
64
- }
65
- }
66
- </style>
1
+ <template>
2
+ <Pagebar title="Dashboard" />
3
+
4
+ <div class="dashboard-placeholder">
5
+ <div class="row g-2 mb-2">
6
+ <div class="col-12 col-md-4">
7
+ <div class="placeholder-card"></div>
8
+ </div>
9
+ <div class="col-12 col-md-4">
10
+ <div class="placeholder-card"></div>
11
+ </div>
12
+ <div class="col-12 col-md-4">
13
+ <div class="placeholder-card"></div>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="placeholder-panel"></div>
18
+ </div>
19
+ </template>
20
+
21
+ <script setup lang="ts">
22
+ import { useHead } from "@unhead/vue";
23
+ import { onMounted, onUnmounted } from "vue";
24
+ import Pagebar from "@/components/Pagebar.vue";
25
+ import { useAuth } from "@/composables/useAuth";
26
+ import { pulse } from "@/plugins/pulse";
27
+
28
+ useHead({ title: "Dashboard" });
29
+
30
+ const { user } = useAuth();
31
+
32
+ onMounted(() => {
33
+ const ch = pulse.channel("user");
34
+ ch.listen("user.changed", () => alert("me"));
35
+ onUnmounted(() => ch.stopListening("user.changed"));
36
+ });
37
+
38
+ // const hardRefresh = () => window.location.reload();
39
+ </script>
40
+
41
+ <style scoped>
42
+ .placeholder-card,
43
+ .placeholder-panel {
44
+ border: 1px solid var(--app-border);
45
+ border-radius: 0.3rem;
46
+ background: var(--app-surface);
47
+ }
48
+
49
+ .placeholder-card {
50
+ min-height: 220px;
51
+ }
52
+
53
+ .placeholder-panel {
54
+ min-height: 520px;
55
+ }
56
+
57
+ @media (max-width: 768px) {
58
+ .placeholder-card {
59
+ min-height: 160px;
60
+ }
61
+
62
+ .placeholder-panel {
63
+ min-height: 360px;
64
+ }
65
+ }
66
+ </style>
@@ -50,7 +50,7 @@ type ValidationErrorPayload = {
50
50
  };
51
51
 
52
52
  function normalizeValidationErrors(payload?: ValidationErrorPayload): NormalizedErrors {
53
- const normalized: NormalizedErrors = { ...(payload?.errors || {}) };
53
+ const normalized: NormalizedErrors = { ...payload?.errors };
54
54
 
55
55
  const issues = payload?.error?.issues;
56
56
  if (Array.isArray(issues)) {
@@ -1,164 +1,184 @@
1
- import axios from "axios";
2
- import { defineStore } from "pinia";
3
- import { ref } from "vue";
4
- import { type AuthUser, clearUser, setUser } from "@/composables/useAuth";
5
-
6
- type LoginPayload = { email: string; password: string; remember?: boolean };
7
- type RegisterPayload = {
8
- name: string;
9
- email: string;
10
- password: string;
11
- password_confirmation: string;
12
- };
13
- type VerifyEmailPayload = { email: string; token: string };
14
- type ForgotPayload = { email: string };
15
- type ResetPayload = {
16
- email: string;
17
- token: string;
18
- password: string;
19
- password_confirmation: string;
20
- };
21
-
22
- type ApiResponse<T> = { message: string; data?: T };
23
- type AuthData = { user: AuthUser };
24
-
25
- async function request<T>(method: "GET" | "POST", path: string, payload?: unknown): Promise<ApiResponse<T>> {
26
- try {
27
- const response = await axios.request<ApiResponse<T>>({
28
- method,
29
- url: `/api/auth${path}`,
30
- data: payload
31
- });
32
-
33
- return response.data;
34
- } catch (error: unknown) {
35
- if (axios.isAxiosError(error)) {
36
- throw new Error(String(error.response?.data?.message || error.message || "Request failed"));
37
- }
38
- throw new Error("Request failed");
39
- }
40
- }
41
-
42
- const MAX_BOOTSTRAP_ATTEMPTS = 5;
43
- const BOOTSTRAP_BACKOFF_MS = 500;
44
-
45
- const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
46
-
47
- export const useAuthStore = defineStore("auth", () => {
48
- const user = ref<AuthUser | null>(null);
49
- const isAuthenticated = ref(false);
50
- const processing = ref(false);
51
- const initialized = ref(false);
52
-
53
- const syncUser = (value: AuthUser | null) => {
54
- user.value = value;
55
- isAuthenticated.value = !!value;
56
- if (value) setUser(value);
57
- else clearUser();
58
- };
59
-
60
- const bootstrap = async () => {
61
- if (initialized.value) return;
62
-
63
- for (let attempt = 1; attempt <= MAX_BOOTSTRAP_ATTEMPTS; attempt++) {
64
- try {
65
- const response = await axios.get<ApiResponse<AuthUser>>("/api/auth/me");
66
- syncUser((response.data?.data || null) as AuthUser | null);
67
- break;
68
- } catch (error) {
69
- const backendUnreachable = axios.isAxiosError(error) && !error.response;
70
- if (!backendUnreachable || attempt === MAX_BOOTSTRAP_ATTEMPTS) {
71
- syncUser(null);
72
- break;
73
- }
74
- await sleep(BOOTSTRAP_BACKOFF_MS * 2 ** (attempt - 1));
75
- }
76
- }
77
-
78
- initialized.value = true;
79
- };
80
-
81
- const login = async (payload: LoginPayload) => {
82
- processing.value = true;
83
- try {
84
- const data = await request<AuthData>("POST", "/login", payload);
85
- syncUser((data?.data?.user || null) as AuthUser | null);
86
- initialized.value = true;
87
- return data.message || "Login successful";
88
- } finally {
89
- processing.value = false;
90
- }
91
- };
92
-
93
- const register = async (payload: RegisterPayload) => {
94
- processing.value = true;
95
- try {
96
- const data = await request<AuthData>("POST", "/register", payload);
97
- const createdUser = (data?.data?.user || null) as AuthUser | null;
98
- if (createdUser) {
99
- syncUser(createdUser);
100
- initialized.value = true;
101
- } else {
102
- syncUser(null);
103
- }
104
- return data.message || "Registration successful";
105
- } finally {
106
- processing.value = false;
107
- }
108
- };
109
-
110
- const verifyEmail = async (payload: VerifyEmailPayload) => {
111
- processing.value = true;
112
- try {
113
- const data = await request<unknown>("POST", "/verify-email", payload);
114
- return data.message || "Email verified successfully";
115
- } finally {
116
- processing.value = false;
117
- }
118
- };
119
-
120
- const forgotPassword = async (payload: ForgotPayload) => {
121
- processing.value = true;
122
- try {
123
- const data = await request<unknown>("POST", "/forgot-password", payload);
124
- return data.message || "If this email exists, a reset link has been sent";
125
- } finally {
126
- processing.value = false;
127
- }
128
- };
129
-
130
- const resetPassword = async (payload: ResetPayload) => {
131
- processing.value = true;
132
- try {
133
- const data = await request<unknown>("POST", "/reset-password", payload);
134
- return data.message || "Password reset successfully";
135
- } finally {
136
- processing.value = false;
137
- }
138
- };
139
-
140
- const logout = async () => {
141
- processing.value = true;
142
- try {
143
- await request<unknown>("POST", "/logout");
144
- } finally {
145
- syncUser(null);
146
- processing.value = false;
147
- initialized.value = true;
148
- }
149
- };
150
-
151
- return {
152
- user,
153
- isAuthenticated,
154
- processing,
155
- initialized,
156
- bootstrap,
157
- register,
158
- login,
159
- forgotPassword,
160
- resetPassword,
161
- verifyEmail,
162
- logout
163
- };
164
- });
1
+ import axios from "axios";
2
+ import { defineStore } from "pinia";
3
+ import { ref } from "vue";
4
+ import { type AuthUser, clearUser, setUser } from "@/composables/useAuth";
5
+
6
+ type LoginPayload = { email?: string; phone?: string; password: string; remember?: boolean };
7
+ type VerifyEmailPayload = { email: string; token: string };
8
+ type ForgotPayload = { email: string };
9
+
10
+ type RegisterPayload = {
11
+ name: string;
12
+ email?: string;
13
+ phone?: string;
14
+ password: string;
15
+ password_confirmation: string;
16
+ };
17
+
18
+ type ResetPayload = {
19
+ email: string;
20
+ token: string;
21
+ password: string;
22
+ password_confirmation: string;
23
+ };
24
+
25
+ type ApiResponse<T> = { message: string; data?: T };
26
+ type AuthData = { user: AuthUser };
27
+
28
+ async function request<T>(method: "GET" | "POST", path: string, payload?: unknown): Promise<ApiResponse<T>> {
29
+ try {
30
+ const response = await axios.request<ApiResponse<T>>({
31
+ method,
32
+ url: `/api/auth${path}`,
33
+ data: payload
34
+ });
35
+
36
+ return response.data;
37
+ } catch (error: unknown) {
38
+ if (axios.isAxiosError(error)) {
39
+ throw new Error(String(error.response?.data?.message || error.message || "Request failed"));
40
+ }
41
+ throw new Error("Request failed");
42
+ }
43
+ }
44
+
45
+ const MAX_BOOTSTRAP_ATTEMPTS = 5;
46
+ const BOOTSTRAP_BACKOFF_MS = 500;
47
+
48
+ const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
49
+
50
+ export const useAuthStore = defineStore("auth", () => {
51
+ const user = ref<AuthUser | null>(null);
52
+ const isAuthenticated = ref(false);
53
+ const processing = ref(false);
54
+ const initialized = ref(false);
55
+
56
+ const syncUser = (value: AuthUser | null) => {
57
+ user.value = value;
58
+ isAuthenticated.value = !!value;
59
+ if (value) setUser(value);
60
+ else clearUser();
61
+ };
62
+
63
+ let bootstrapPromise: Promise<void> | null = null;
64
+ const bootstrap = async () => {
65
+ if (initialized.value) return;
66
+
67
+ // Reuse the same request if multiple navigations call bootstrap.
68
+ if (bootstrapPromise) {
69
+ return bootstrapPromise;
70
+ }
71
+
72
+ bootstrapPromise = (async () => {
73
+ for (let attempt = 1; attempt <= MAX_BOOTSTRAP_ATTEMPTS; attempt++) {
74
+ try {
75
+ const response = await axios.get<ApiResponse<AuthUser>>("/api/auth/me");
76
+
77
+ syncUser((response.data?.data || null) as AuthUser | null);
78
+ initialized.value = true;
79
+ return;
80
+ } catch (error) {
81
+ const backendUnreachable = axios.isAxiosError(error) && !error.response;
82
+
83
+ if (!backendUnreachable || attempt === MAX_BOOTSTRAP_ATTEMPTS) {
84
+ syncUser(null);
85
+ initialized.value = true;
86
+ return;
87
+ }
88
+
89
+ await sleep(BOOTSTRAP_BACKOFF_MS * 2 ** (attempt - 1));
90
+ }
91
+ }
92
+ })();
93
+
94
+ try {
95
+ await bootstrapPromise;
96
+ } finally {
97
+ bootstrapPromise = null;
98
+ }
99
+ };
100
+
101
+ const login = async (payload: LoginPayload) => {
102
+ processing.value = true;
103
+ try {
104
+ const data = await request<AuthData>("POST", "/login", payload);
105
+ syncUser((data?.data?.user || null) as AuthUser | null);
106
+ initialized.value = true;
107
+ return data.message || "Login successful";
108
+ } finally {
109
+ processing.value = false;
110
+ }
111
+ };
112
+
113
+ const register = async (payload: RegisterPayload) => {
114
+ processing.value = true;
115
+ try {
116
+ const data = await request<AuthData>("POST", "/register", payload);
117
+ const createdUser = (data?.data?.user || null) as AuthUser | null;
118
+ if (createdUser) {
119
+ syncUser(createdUser);
120
+ initialized.value = true;
121
+ } else {
122
+ syncUser(null);
123
+ }
124
+ return data.message || "Registration successful";
125
+ } finally {
126
+ processing.value = false;
127
+ }
128
+ };
129
+
130
+ const verifyEmail = async (payload: VerifyEmailPayload) => {
131
+ processing.value = true;
132
+ try {
133
+ const data = await request<unknown>("POST", "/verify-email", payload);
134
+ return data.message || "Email verified successfully";
135
+ } finally {
136
+ processing.value = false;
137
+ }
138
+ };
139
+
140
+ const forgotPassword = async (payload: ForgotPayload) => {
141
+ processing.value = true;
142
+ try {
143
+ const data = await request<unknown>("POST", "/forgot-password", payload);
144
+ return data.message || "If this email exists, a reset link has been sent";
145
+ } finally {
146
+ processing.value = false;
147
+ }
148
+ };
149
+
150
+ const resetPassword = async (payload: ResetPayload) => {
151
+ processing.value = true;
152
+ try {
153
+ const data = await request<unknown>("POST", "/reset-password", payload);
154
+ return data.message || "Password reset successfully";
155
+ } finally {
156
+ processing.value = false;
157
+ }
158
+ };
159
+
160
+ const logout = async () => {
161
+ processing.value = true;
162
+ try {
163
+ await request<unknown>("POST", "/logout");
164
+ } finally {
165
+ syncUser(null);
166
+ processing.value = false;
167
+ initialized.value = true;
168
+ }
169
+ };
170
+
171
+ return {
172
+ user,
173
+ isAuthenticated,
174
+ processing,
175
+ initialized,
176
+ bootstrap,
177
+ register,
178
+ login,
179
+ forgotPassword,
180
+ resetPassword,
181
+ verifyEmail,
182
+ logout
183
+ };
184
+ });
@@ -20,13 +20,20 @@ export default defineConfig({
20
20
  __SOCKET_ENABLED__: socketEnabled,
21
21
  __API_URL__: JSON.stringify(apiUrl)
22
22
  },
23
- root: "src/resources",
23
+ root: fileURLToPath(new URL(".", import.meta.url)),
24
24
  cacheDir: path.join(cacheBase, "nexwire", "vite-cache", "resources"),
25
25
  plugins: [vue()],
26
26
  css: {
27
27
  preprocessorOptions: {
28
28
  scss: {
29
- quietDeps: true
29
+ quietDeps: true,
30
+ silenceDeprecations: [
31
+ "import",
32
+ "if-function",
33
+ "global-builtin",
34
+ "color-functions",
35
+ "slash-div",
36
+ ],
30
37
  }
31
38
  }
32
39
  },
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "biomejs.biome",
4
+ "editorconfig.editorconfig"
5
+ ]
6
+ }
@@ -1,26 +1,37 @@
1
- {
2
- "editor.defaultFormatter": "biomejs.biome",
3
- "[typescript]": {
4
- "editor.defaultFormatter": "biomejs.biome"
5
- },
6
- "[typescriptreact]": {
7
- "editor.defaultFormatter": "biomejs.biome"
8
- },
9
- "[javascript]": {
10
- "editor.defaultFormatter": "biomejs.biome"
11
- },
12
- "[javascriptreact]": {
13
- "editor.defaultFormatter": "biomejs.biome"
14
- },
15
- "[json]": {
16
- "editor.defaultFormatter": "biomejs.biome"
17
- },
18
- "[jsonc]": {
19
- "editor.defaultFormatter": "biomejs.biome"
20
- },
21
- "editor.codeActionsOnSave": {
22
- "source.organizeImports.biome": "explicit",
23
- "source.fixAll.biome": "explicit"
24
- },
25
- "files.eol": "\n"
26
- }
1
+ {
2
+ "editor.defaultFormatter": "biomejs.biome",
3
+ "[typescript]": {
4
+ "editor.defaultFormatter": "biomejs.biome"
5
+ },
6
+ "[typescriptreact]": {
7
+ "editor.defaultFormatter": "biomejs.biome"
8
+ },
9
+ "[javascript]": {
10
+ "editor.defaultFormatter": "biomejs.biome"
11
+ },
12
+ "[javascriptreact]": {
13
+ "editor.defaultFormatter": "biomejs.biome"
14
+ },
15
+ "[json]": {
16
+ "editor.defaultFormatter": "biomejs.biome"
17
+ },
18
+ "[jsonc]": {
19
+ "editor.defaultFormatter": "biomejs.biome"
20
+ },
21
+ "[vue]": {
22
+ "editor.defaultFormatter": "biomejs.biome"
23
+ },
24
+ "[css]": {
25
+ "editor.defaultFormatter": "biomejs.biome"
26
+ },
27
+ "[scss]": {
28
+ "editor.defaultFormatter": "biomejs.biome"
29
+ },
30
+ "editor.codeActionsOnSave": {
31
+ "source.organizeImports.biome": "explicit",
32
+ "source.fixAll.biome": "explicit"
33
+ },
34
+ "files.eol": "\n",
35
+ "files.trimTrailingWhitespace": true,
36
+ "files.insertFinalNewline": true
37
+ }