Restructure utility files, Use a bundle.css to fix CSS issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
28
src/utils/store.js
Normal file
28
src/utils/store.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// Svelte
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
// Define environment
|
||||
export const dev = process.env.NODE_ENV === 'development'
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
Site related
|
||||
========================================================================== */
|
||||
const apiEndpoint = dev ? 'http://api.housesof.localhost/how' : 'https://api.housesof.world/_'
|
||||
export const apiEndpoints = {
|
||||
gql: apiEndpoint + '/gql?access_token=NJk0urljsdSvApUDzWxGgoO6',
|
||||
rest: apiEndpoint
|
||||
}
|
||||
|
||||
// Data
|
||||
export let site = writable()
|
||||
export let continents = writable()
|
||||
export let countries = writable()
|
||||
export let locations = writable()
|
||||
|
||||
// Derived data
|
||||
export let currentLocation = writable()
|
||||
export let currentPhotos = writable()
|
||||
|
||||
// State
|
||||
export let loaded = writable(false)
|
||||
Reference in New Issue
Block a user