feat: initial commit

This commit is contained in:
s.esmaeili
2026-09-09 06:46:27 +03:30
commit 0ed6bed028
214 changed files with 20177 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/**
* Placeholder for the logged-in admin's identity. No auth module exists yet
* (see migration notes) — this just tracks UI selection state until then.
*/
export declare const useSessionStore: import("pinia").StoreDefinition<"session", {
selectedCustomerId: string | null;
}, {}, {
selectCustomer(customerId: string): void;
}>;
+15
View File
@@ -0,0 +1,15 @@
import { defineStore } from 'pinia';
/**
* Placeholder for the logged-in admin's identity. No auth module exists yet
* (see migration notes) — this just tracks UI selection state until then.
*/
export const useSessionStore = defineStore('session', {
state: () => ({
selectedCustomerId: null,
}),
actions: {
selectCustomer(customerId) {
this.selectedCustomerId = customerId;
},
},
});
+16
View File
@@ -0,0 +1,16 @@
import { defineStore } from 'pinia';
/**
* Placeholder for the logged-in admin's identity. No auth module exists yet
* (see migration notes) — this just tracks UI selection state until then.
*/
export const useSessionStore = defineStore('session', {
state: () => ({
selectedCustomerId: null as string | null,
}),
actions: {
selectCustomer(customerId: string) {
this.selectedCustomerId = customerId;
},
},
});