mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Added endpoint for fetching server-side variables.
This commit is contained in:
parent
68d35c0fc4
commit
50e491af06
8 changed files with 62 additions and 15 deletions
|
|
@ -20,6 +20,7 @@ const initialState = {
|
|||
dashboard: getItem(DASHBOARD_CONFIG) || defaultDashboardConfig,
|
||||
shareToken: null,
|
||||
user: null,
|
||||
config: null,
|
||||
};
|
||||
|
||||
const store = create(() => ({ ...initialState }));
|
||||
|
|
@ -45,4 +46,8 @@ export function setDashboard(dashboard) {
|
|||
setItem(DASHBOARD_CONFIG, dashboard);
|
||||
}
|
||||
|
||||
export function setConfig(config) {
|
||||
store.setState({ config });
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue