Browse Source

moves admin store to `stores/portal`

master
Keviin Åberg Kultalahti 5 years ago
parent
commit
3b570fff83
  1. 2
      packages/builder/src/builderStore/index.js
  2. 11
      packages/builder/src/builderStore/store/admin.js
  3. 9
      packages/builder/src/stores/portal/admin.js
  4. 1
      packages/builder/src/stores/portal/index.js

2
packages/builder/src/builderStore/index.js

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

11
packages/builder/src/builderStore/store/admin.js

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

9
packages/builder/src/stores/portal/admin.js

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

1
packages/builder/src/stores/portal/index.js

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

Loading…
Cancel
Save