1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

moves admin store to stores/portal

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 18:52:45 +02:00
parent 8d02e017df
commit cd9af13668
4 changed files with 10 additions and 13 deletions

View file

@ -2,7 +2,6 @@ import { getFrontendStore } from "./store/frontend"
import { getAutomationStore } from "./store/automation"
import { getHostingStore } from "./store/hosting"
import { getThemeStore } from "./store/theme"
import { getAdminStore } from "./store/admin"
import { derived, writable } from "svelte/store"
import analytics from "analytics"
import { FrontendTypes, LAYOUT_NAMES } from "../constants"
@ -12,7 +11,6 @@ export const store = getFrontendStore()
export const automationStore = getAutomationStore()
export const themeStore = getThemeStore()
export const hostingStore = getHostingStore()
export const adminPanelStore = getAdminStore()
export const currentAsset = derived(store, $store => {
const type = $store.currentFrontEndType

View file

@ -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
}

View file

@ -0,0 +1,9 @@
import { writable } from "svelte/store"
const INITIAL_ADMIN_STATE = {
oauth: [],
}
export const admin = writable({ ...INITIAL_ADMIN_STATE })

View file

@ -1 +1,2 @@
export { organisation } from "./organisation"
export { admin } from "./admin"