Restructure utility files, Use a bundle.css to fix CSS issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-03 15:36:57 +01:00
parent 241c30fb52
commit d823f28054
23 changed files with 56 additions and 67 deletions

28
src/utils/store.js Normal file
View 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)