moves admin store to `stores/portal`
This commit is contained in:
parent
8d02e017df
commit
cd9af13668
|
@ -2,7 +2,6 @@ import { getFrontendStore } from "./store/frontend"
|
||||||
import { getAutomationStore } from "./store/automation"
|
import { getAutomationStore } from "./store/automation"
|
||||||
import { getHostingStore } from "./store/hosting"
|
import { getHostingStore } from "./store/hosting"
|
||||||
import { getThemeStore } from "./store/theme"
|
import { getThemeStore } from "./store/theme"
|
||||||
import { getAdminStore } from "./store/admin"
|
|
||||||
import { derived, writable } from "svelte/store"
|
import { derived, writable } from "svelte/store"
|
||||||
import analytics from "analytics"
|
import analytics from "analytics"
|
||||||
import { FrontendTypes, LAYOUT_NAMES } from "../constants"
|
import { FrontendTypes, LAYOUT_NAMES } from "../constants"
|
||||||
|
@ -12,7 +11,6 @@ export const store = getFrontendStore()
|
||||||
export const automationStore = getAutomationStore()
|
export const automationStore = getAutomationStore()
|
||||||
export const themeStore = getThemeStore()
|
export const themeStore = getThemeStore()
|
||||||
export const hostingStore = getHostingStore()
|
export const hostingStore = getHostingStore()
|
||||||
export const adminPanelStore = getAdminStore()
|
|
||||||
|
|
||||||
export const currentAsset = derived(store, $store => {
|
export const currentAsset = derived(store, $store => {
|
||||||
const type = $store.currentFrontEndType
|
const type = $store.currentFrontEndType
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
import { writable } from "svelte/store"
|
|
||||||
|
|
||||||
const INITIAL_ADMIN_STATE = {
|
|
||||||
oauth: [],
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getAdminStore = () => {
|
|
||||||
const store = writable({ ...INITIAL_ADMIN_STATE })
|
|
||||||
store.actions = {}
|
|
||||||
return store
|
|
||||||
}
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { writable } from "svelte/store"
|
||||||
|
|
||||||
|
const INITIAL_ADMIN_STATE = {
|
||||||
|
oauth: [],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const admin = writable({ ...INITIAL_ADMIN_STATE })
|
|
@ -1 +1,2 @@
|
||||||
export { organisation } from "./organisation"
|
export { organisation } from "./organisation"
|
||||||
|
export { admin } from "./admin"
|
||||||
|
|
Loading…
Reference in New Issue