mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Refactor: removed default exports.
This commit is contained in:
parent
cd944e14ce
commit
f83a12d6cd
343 changed files with 555 additions and 1046 deletions
|
|
@ -59,4 +59,4 @@ export function setDateRange(dateRange: string | object) {
|
|||
store.setState({ dateRange });
|
||||
}
|
||||
|
||||
export default store;
|
||||
export const useApp = store;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export function setValue(key: string, value: any) {
|
|||
store.setState({ [key]: value });
|
||||
}
|
||||
|
||||
export default store;
|
||||
export const useCache = store;
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ export function saveDashboard(settings) {
|
|||
setItem(DASHBOARD_CONFIG, store.getState());
|
||||
}
|
||||
|
||||
export default store;
|
||||
export const useDashboard = store;
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
import { create } from 'zustand';
|
||||
|
||||
const store = create(() => ({}));
|
||||
|
||||
export function touch(key: string) {
|
||||
store.setState({ [key]: Date.now() });
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
|
@ -52,4 +52,4 @@ export async function checkVersion() {
|
|||
);
|
||||
}
|
||||
|
||||
export default store;
|
||||
export const useVersion = store;
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@ export function setWebsiteDateCompare(websiteId: string, dateCompare: string) {
|
|||
);
|
||||
}
|
||||
|
||||
export default store;
|
||||
export const useWebsites = store;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue