feat: showing recipe list values
- add displaying for values in recipe list, with some editable fields except topping, string params, feed pattern/level Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
4866674f26
commit
dbb5ce466c
14 changed files with 640 additions and 37 deletions
|
|
@ -22,7 +22,19 @@ export const recipeFromMachineLoading = writable(false);
|
|||
export const recipeFromMachineError = writable<string | null>(null);
|
||||
|
||||
export const recipeFromServerQuery = writable<any>({});
|
||||
export const materialFromServerQuery = writable<any>({});
|
||||
export const materialFromServerQuery = writable<any>([]);
|
||||
export const toppingListFromServerQuery = writable<any>([]);
|
||||
export const toppingGroupFromServerQuery = writable<any>([]);
|
||||
|
||||
// latest recipe data (use for interacting)
|
||||
export const latestRecipeToppingData = writable<any>([]);
|
||||
|
||||
// edit data update
|
||||
export const recipeDataEvent = writable<{
|
||||
event_type: string;
|
||||
payload: any;
|
||||
index: number | undefined;
|
||||
} | null>(null);
|
||||
|
||||
// NOTE: must not have any nested structures
|
||||
// { recipe: {}, materials: {}, toppings: { groups: {}, lists: {} } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue