moves admin store to `stores/portal`

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 18:52:45 +02:00
parent 725a9ec2cc
commit 3b570fff83
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"