Use GraphQL, Set current location in store
This commit is contained in:
13
src/store.js
13
src/store.js
@@ -1,15 +1,18 @@
|
||||
import * as fn from './functions'
|
||||
import { writable } from 'svelte/store'
|
||||
import { readable, writable } from 'svelte/store'
|
||||
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
Site related
|
||||
========================================================================== */
|
||||
export let currentLocation = {}
|
||||
export const api = {
|
||||
graphql: '//api.housesof.localhost/how/gql?access_token=NJk0urljsdSvApUDzWxGgoO6',
|
||||
rest: '//api.housesof.localhost/how'
|
||||
}
|
||||
export let currentLocation = writable()
|
||||
export let loaded = writable(false)
|
||||
|
||||
// Data
|
||||
export let locations = writable()
|
||||
export let countries = writable()
|
||||
export let site = writable()
|
||||
export let countries = writable()
|
||||
export let locations = writable()
|
||||
|
||||
Reference in New Issue
Block a user