feat: initial commit
This commit is contained in:
+9
@@ -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;
|
||||
}>;
|
||||
@@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user