⚠️ Use alias Rollup plugin to omit full imports
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Define entries (utils, animations, etc) in the Rollup config in order to omit the whole back path (../../) when importing a file - Global revoleExtensions in the config (to avoid duplicates)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import { site } from '../utils/store'
|
||||
import { site } from 'utils/store'
|
||||
|
||||
// Components
|
||||
import IconArrow from '../atoms/IconArrow'
|
||||
import TitleSite from '../atoms/TitleSite'
|
||||
import Button from '../atoms/Button'
|
||||
import InteractiveGlobe from '../molecules/InteractiveGlobe'
|
||||
import Footer from '../organisms/Footer'
|
||||
import IconArrow from 'atoms/IconArrow'
|
||||
import TitleSite from 'atoms/TitleSite'
|
||||
import Button from 'atoms/Button'
|
||||
import InteractiveGlobe from 'molecules/InteractiveGlobe'
|
||||
import Footer from 'organisms/Footer'
|
||||
|
||||
// Props
|
||||
export let status
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script context="module">
|
||||
import { apiEndpoints, } from '../utils/store'
|
||||
import { apiEndpoints } from 'utils/store'
|
||||
|
||||
export async function preload (page, session) {
|
||||
const req = await this.fetch(apiEndpoints.gql, {
|
||||
@@ -71,11 +71,11 @@
|
||||
continents,
|
||||
countries,
|
||||
locations
|
||||
} from '../utils/store'
|
||||
} from 'utils/store'
|
||||
|
||||
// Components
|
||||
import Transition from '../utils/Transition'
|
||||
import AnalyticsTracker from '../utils/AnalyticsTracker'
|
||||
import Transition from 'utils/Transition'
|
||||
import AnalyticsTracker from 'utils/AnalyticsTracker'
|
||||
|
||||
// Variables
|
||||
const { page } = stores()
|
||||
|
||||
@@ -7,18 +7,18 @@
|
||||
currentPhotos,
|
||||
pageReady,
|
||||
pageTransition
|
||||
} from '../utils/store'
|
||||
} from 'utils/store'
|
||||
|
||||
// Components
|
||||
import IconArrow from '../atoms/IconArrow'
|
||||
import TitleSite from '../atoms/TitleSite'
|
||||
import Globe from '../molecules/InteractiveGlobe'
|
||||
import Locations from '../organisms/Locations'
|
||||
import Footer from '../organisms/Footer'
|
||||
import SocialMetas from '../utils/SocialMetas'
|
||||
import IconArrow from 'atoms/IconArrow'
|
||||
import TitleSite from 'atoms/TitleSite'
|
||||
import Globe from 'molecules/InteractiveGlobe'
|
||||
import Locations from 'organisms/Locations'
|
||||
import Footer from 'organisms/Footer'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/page'
|
||||
import { animateIn } from 'animations/page'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Variables
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import { site, pageReady, pageTransition } from '../utils/store'
|
||||
import { site, pageReady, pageTransition } from 'utils/store'
|
||||
|
||||
// Components
|
||||
import IconArrow from '../atoms/IconArrow'
|
||||
import TitleSite from '../atoms/TitleSite'
|
||||
import LinkTranslate from '../atoms/LinkTranslate'
|
||||
import InteractiveGlobe from '../molecules/InteractiveGlobe'
|
||||
import Footer from '../organisms/Footer'
|
||||
import SocialMetas from '../utils/SocialMetas'
|
||||
import IconArrow from 'atoms/IconArrow'
|
||||
import TitleSite from 'atoms/TitleSite'
|
||||
import LinkTranslate from 'atoms/LinkTranslate'
|
||||
import InteractiveGlobe from 'molecules/InteractiveGlobe'
|
||||
import Footer from 'organisms/Footer'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/page'
|
||||
import { animateIn } from 'animations/page'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Variables
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script context="module">
|
||||
import { site, apiEndpoints } from '../utils/store'
|
||||
|
||||
// Variables
|
||||
let limit
|
||||
|
||||
@@ -29,30 +27,32 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import {
|
||||
apiEndpoints,
|
||||
site,
|
||||
currentLocation,
|
||||
currentPhotos,
|
||||
pageReady,
|
||||
pageTransition
|
||||
} from '../utils/store'
|
||||
import { charsToSpan } from '../utils/functions'
|
||||
} from 'utils/store'
|
||||
import { charsToSpan } from 'utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import zenscroll from 'zenscroll'
|
||||
|
||||
// Components
|
||||
import Button from '../atoms/Button'
|
||||
import IconGlobeSmall from '../atoms/IconGlobeSmall'
|
||||
import IconGlobe from '../atoms/IconGlobe'
|
||||
import InteractiveGlobe from '../molecules/InteractiveGlobe'
|
||||
import Carousel from '../organisms/Carousel'
|
||||
import Fullscreen from '../organisms/Fullscreen'
|
||||
import Locations from '../organisms/Locations'
|
||||
import Footer from '../organisms/Footer'
|
||||
import SocialMetas from '../utils/SocialMetas'
|
||||
import Transition from '../utils/Transition'
|
||||
import Button from 'atoms/Button'
|
||||
import IconGlobeSmall from 'atoms/IconGlobeSmall'
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
import InteractiveGlobe from 'molecules/InteractiveGlobe'
|
||||
import Carousel from 'organisms/Carousel'
|
||||
import Fullscreen from 'organisms/Fullscreen'
|
||||
import Locations from 'organisms/Locations'
|
||||
import Footer from 'organisms/Footer'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
import Transition from 'utils/Transition'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/index'
|
||||
import { animateIn } from 'animations/index'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Props and variables
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script context="module">
|
||||
import { apiEndpoints } from '../../../utils/store'
|
||||
import { apiEndpoints } from 'utils/store'
|
||||
|
||||
// Preload data
|
||||
export async function preload (page, session) {
|
||||
@@ -30,25 +30,25 @@
|
||||
currentPhotos,
|
||||
pageReady,
|
||||
pageTransition
|
||||
} from '../../../utils/store'
|
||||
import { formatDate, relativeTime, getThumbnail } from '../../../utils/functions'
|
||||
} from 'utils/store'
|
||||
import { formatDate, relativeTime, getThumbnail } from 'utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import lazySizes from 'lazysizes'
|
||||
|
||||
// Components
|
||||
import IconGlobe from '../../../atoms/IconGlobe'
|
||||
import IconGlobeSmall from '../../../atoms/IconGlobeSmall'
|
||||
import LinkChange from '../../../atoms/LinkChange'
|
||||
import ToggleLayout from '../../../atoms/ToggleLayout'
|
||||
import Photo from '../../../molecules/Photo'
|
||||
import Switcher from '../../../molecules/Switcher'
|
||||
import Pagination from '../../../organisms/Pagination'
|
||||
import Footer from '../../../organisms/Footer'
|
||||
import SocialMetas from '../../../utils/SocialMetas'
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
import IconGlobeSmall from 'atoms/IconGlobeSmall'
|
||||
import LinkChange from 'atoms/LinkChange'
|
||||
import ToggleLayout from 'atoms/ToggleLayout'
|
||||
import Photo from 'molecules/Photo'
|
||||
import Switcher from 'molecules/Switcher'
|
||||
import Pagination from 'organisms/Pagination'
|
||||
import Footer from 'organisms/Footer'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../../../animations/place'
|
||||
import { animateIn } from 'animations/place'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Props and variables
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const fs = require('fs')
|
||||
const fetch = require('node-fetch')
|
||||
import { apiEndpoints } from '../utils/store'
|
||||
import { apiEndpoints } from 'utils/store'
|
||||
|
||||
|
||||
// Variables
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<script context="module">
|
||||
import { stores } from '@sapper/app'
|
||||
import { apiEndpoints } from '../../../../utils/store'
|
||||
|
||||
// Define either to preload data or use the store
|
||||
let preloaded
|
||||
currentPhotos.subscribe(store => preloaded = store ? store : undefined)
|
||||
@@ -31,25 +28,27 @@
|
||||
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import {
|
||||
apiEndpoints,
|
||||
site,
|
||||
locations,
|
||||
currentLocation,
|
||||
currentPhotos,
|
||||
pageReady,
|
||||
pageTransition
|
||||
} from '../../../../utils/store'
|
||||
import { getThumbnail } from '../../../../utils/functions'
|
||||
} from 'utils/store'
|
||||
import { getThumbnail } from 'utils/functions'
|
||||
|
||||
// Components
|
||||
import IconGlobe from '../../../../atoms/IconGlobe'
|
||||
import IconCross from '../../../../atoms/IconCross'
|
||||
import Carousel from '../../../../organisms/Carousel'
|
||||
import Fullscreen from '../../../../organisms/Fullscreen'
|
||||
import SocialMetas from '../../../../utils/SocialMetas'
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
import IconCross from 'atoms/IconCross'
|
||||
import Carousel from 'organisms/Carousel'
|
||||
import Fullscreen from 'organisms/Fullscreen'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../../../../animations/viewer'
|
||||
import { animateIn } from 'animations/viewer'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Props
|
||||
|
||||
Reference in New Issue
Block a user