⚠️ 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,19 +1,19 @@
|
||||
<script>
|
||||
import { onMount, createEventDispatcher } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import { currentLocation, fullscreen } from '../utils/store'
|
||||
import { getThumbnail, formatDate } from '../utils/functions'
|
||||
import { currentLocation, fullscreen } from 'utils/store'
|
||||
import { getThumbnail, formatDate } from 'utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import SwipeListener from 'swipe-listener'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/Carousel'
|
||||
import { animateIn } from 'animations/Carousel'
|
||||
|
||||
// Components
|
||||
import IconArrow from '../atoms/IconArrow'
|
||||
import Counter from '../atoms/Counter'
|
||||
import PaginationDots from '../molecules/PaginationDots'
|
||||
import IconArrow from 'atoms/IconArrow'
|
||||
import Counter from 'atoms/Counter'
|
||||
import PaginationDots from 'molecules/PaginationDots'
|
||||
|
||||
// Props
|
||||
export let photos
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script>
|
||||
// Svelte
|
||||
import { site, currentLocation } from '../utils/store'
|
||||
import { site, currentLocation } from 'utils/store'
|
||||
|
||||
// Components
|
||||
import LinkTranslate from '../atoms/LinkTranslate'
|
||||
import Switcher from '../molecules/Switcher'
|
||||
import LinkTranslate from 'atoms/LinkTranslate'
|
||||
import Switcher from 'molecules/Switcher'
|
||||
</script>
|
||||
|
||||
<footer class="footer">
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<script>
|
||||
import { fullscreen } from '../utils/store'
|
||||
import { throttle, getThumbnail } from '../utils/functions'
|
||||
import { fullscreen } from 'utils/store'
|
||||
import { throttle, getThumbnail } from 'utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import imagesLoaded from 'imagesloaded'
|
||||
|
||||
// Components
|
||||
import IconGlobe from '../atoms/IconGlobe'
|
||||
import IconZoomOut from '../atoms/IconZoomOut'
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
import IconZoomOut from 'atoms/IconZoomOut'
|
||||
|
||||
// Variables
|
||||
let scope
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { flip } from 'svelte/animate'
|
||||
import { receive, send } from '../animations/crossfade'
|
||||
import { locations, countries, continents } from '../utils/store'
|
||||
import { throttle } from '../utils/functions'
|
||||
import { receive, send } from 'animations/crossfade'
|
||||
import { locations, countries, continents } from 'utils/store'
|
||||
import { throttle } from 'utils/functions'
|
||||
|
||||
// Components
|
||||
import Button from '../atoms/Button'
|
||||
import Location from '../molecules/Location'
|
||||
import Button from 'atoms/Button'
|
||||
import Location from 'molecules/Location'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/Locations'
|
||||
import { animateIn } from 'animations/Locations'
|
||||
|
||||
// Variables
|
||||
const transitionDuration = 800
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { onMount, createEventDispatcher } from 'svelte'
|
||||
import { currentLocation } from '../utils/store'
|
||||
import { currentLocation } from 'utils/store'
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
// Props
|
||||
|
||||
Reference in New Issue
Block a user