feat: show price (WIP edit)
- fix: adb tcp connection unstable retry - fix: recipe not show by undefined machine status Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
60424ebe5a
commit
3b70cc9fe8
8 changed files with 269 additions and 48 deletions
|
|
@ -9,6 +9,21 @@ function updateMachineStatus(new_status: string) {
|
|||
current.status = new_status;
|
||||
|
||||
machineInfoStore.set(current);
|
||||
} else {
|
||||
machineInfoStore.set({
|
||||
boxId: '',
|
||||
versions: {
|
||||
firmware: '',
|
||||
brew: '',
|
||||
xmlengine: '',
|
||||
netcore: '',
|
||||
devbox: ''
|
||||
},
|
||||
devMode: true,
|
||||
country: '',
|
||||
status: new_status,
|
||||
errors: []
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { writable } from 'svelte/store';
|
|||
import type { RecipeOverview } from '../../../routes/(authed)/recipe/overview/columns';
|
||||
import type { Material } from '$lib/models/material.model';
|
||||
import type { RecipeVersion } from '$lib/models/recipe_version.model';
|
||||
import type { RecipePrice } from '$lib/models/price.model';
|
||||
|
||||
export const recipeData = writable<any>(null);
|
||||
export const recipeLoading = writable(false);
|
||||
|
|
@ -20,6 +21,8 @@ export const currentRecipeVersionsSelector = writable<RecipeVersion[]>([]);
|
|||
// from server
|
||||
export const recipeOverviewData = writable<RecipeOverview[] | null>(null);
|
||||
export const materialData = writable<Material | undefined>();
|
||||
// price from recipe repo
|
||||
export const priceRecipeData = writable<{ [key: string]: any }>({});
|
||||
|
||||
// machine recipe
|
||||
export const recipeFromMachine = writable<any>(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue