-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Graph updates * Component updates * new report view * Lazy load data
- Loading branch information
1 parent
1af18ad
commit 927ab8e
Showing
10 changed files
with
291 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { useProjectStore } from '@/stores/main' | ||
import { useMaterialStore } from '@/stores/material' | ||
|
||
import { getAssemblyList } from '@/utils/material' | ||
import { getRevaluBaseList } from '@/models/revaluDataSource' | ||
|
||
/** | ||
* Preload data needed for the dashboard view | ||
*/ | ||
export async function preloadDashboardData() { | ||
const projectStore = useProjectStore() | ||
const materialStore = useMaterialStore() | ||
|
||
try { | ||
// Example: Preload available parameter list | ||
await projectStore.getAvailableParameterList() | ||
|
||
materialStore.materialsFromJson() | ||
getAssemblyList() | ||
getRevaluBaseList() | ||
|
||
|
||
// Add more preload calls here if needed | ||
console.log('Dashboard data preloaded successfully.') | ||
} catch (error) { | ||
console.error('Error preloading dashboard data:', error) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.