Remove errors on pages
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
import { browser } from '$app/env'
|
import { browser } from '$app/env'
|
||||||
import { navigating, page } from '$app/stores'
|
import { navigating, page } from '$app/stores'
|
||||||
import { beforeNavigate } from '$app/navigation'
|
import { beforeNavigate } from '$app/navigation'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { onMount, setContext } from 'svelte'
|
import { onMount, setContext } from 'svelte'
|
||||||
import { pageLoading, previousPage } from '$utils/stores'
|
import { pageLoading, previousPage } from '$utils/stores'
|
||||||
import { DURATION } from '$utils/contants'
|
import { DURATION } from '$utils/contants'
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
import Footer from '$components/organisms/Footer.svelte'
|
import Footer from '$components/organisms/Footer.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
|
|
||||||
// Fonts to preload
|
// Fonts to preload
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { navigating } from '$app/stores'
|
import { navigating } from '$app/stores'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { getContext, onMount } from 'svelte'
|
import { getContext, onMount } from 'svelte'
|
||||||
import { timeline, stagger } from 'motion'
|
import { timeline, stagger } from 'motion'
|
||||||
import { DELAY } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const { settings, locations }: any = getContext('global')
|
const { settings, locations }: any = getContext('global')
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page, navigating } from '$app/stores'
|
import { page, navigating } from '$app/stores'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { stagger, timeline } from 'motion'
|
import { stagger, timeline } from 'motion'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
import ShopModule from '$components/organisms/ShopModule.svelte'
|
import ShopModule from '$components/organisms/ShopModule.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const { params } = $page
|
const { params } = $page
|
||||||
let { photos }: { photos: any[] } = data
|
let { photos }: { photos: any[] } = data
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { browser } from '$app/env'
|
import { browser } from '$app/env'
|
||||||
import { page, navigating } from '$app/stores'
|
import { page, navigating } from '$app/stores'
|
||||||
import { goto } from '$app/navigation'
|
import { goto } from '$app/navigation'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { onMount, tick } from 'svelte'
|
import { onMount, tick } from 'svelte'
|
||||||
import { fade, scale } from 'svelte/transition'
|
import { fade, scale } from 'svelte/transition'
|
||||||
import { quartOut } from 'svelte/easing'
|
import { quartOut } from 'svelte/easing'
|
||||||
@@ -27,7 +27,6 @@
|
|||||||
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
|
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
let { photos, currentIndex }: { photos: any[], currentIndex: number } = data
|
let { photos, currentIndex }: { photos: any[], currentIndex: number } = data
|
||||||
const { location, countPhotos, limit, offset }: { location: any, countPhotos: number, limit: number, offset: number } = data
|
const { location, countPhotos, limit, offset }: { location: any, countPhotos: number, limit: number, offset: number } = data
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount, afterUpdate } from 'svelte'
|
import { onMount, afterUpdate } from 'svelte'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { map } from '$utils/functions'
|
import { map } from '$utils/functions'
|
||||||
import { scroll, animate, inView, type ScrollOptions } from 'motion'
|
import { scroll, animate, inView, type ScrollOptions } from 'motion'
|
||||||
// Components
|
// Components
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
// console.log(data)
|
// console.log(data)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { navigating } from '$app/stores'
|
import { navigating } from '$app/stores'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { stagger, timeline } from 'motion'
|
import { stagger, timeline } from 'motion'
|
||||||
import { DELAY } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
import InteractiveGlobe2 from '$components/organisms/InteractiveGlobe2.svelte'
|
import InteractiveGlobe2 from '$components/organisms/InteractiveGlobe2.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page, navigating } from '$app/stores'
|
import { page, navigating } from '$app/stores'
|
||||||
import { goto } from '$app/navigation'
|
import { goto } from '$app/navigation'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { getContext, onMount } from 'svelte'
|
import { getContext, onMount } from 'svelte'
|
||||||
import { fly } from 'svelte/transition'
|
import { fly } from 'svelte/transition'
|
||||||
import { quartOut as quartOutSvelte } from 'svelte/easing'
|
import { quartOut as quartOutSvelte } from 'svelte/easing'
|
||||||
@@ -31,7 +31,6 @@
|
|||||||
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
import NewsletterModule from '$components/organisms/NewsletterModule.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
let { photos }: { photos: any[] } = data
|
let { photos }: { photos: any[] } = data
|
||||||
const { totalPhotos, filteredCountryExists }: { totalPhotos: number, filteredCountryExists: boolean } = data
|
const { totalPhotos, filteredCountryExists }: { totalPhotos: number, filteredCountryExists: boolean } = data
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { setContext } from 'svelte'
|
import { setContext } from 'svelte'
|
||||||
import { cartNotifications } from '$utils/stores/shop'
|
import { cartNotifications } from '$utils/stores/shop'
|
||||||
// Components
|
// Components
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
import NotificationCart from '$components/molecules/NotificationCart.svelte'
|
import NotificationCart from '$components/molecules/NotificationCart.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const { shop, locations, posters, shopProducts } = data
|
const { shop, locations, posters, shopProducts } = data
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
import { shopCurrentProductSlug } from '$utils/stores/shop'
|
import { shopCurrentProductSlug } from '$utils/stores/shop'
|
||||||
// Components
|
// Components
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
import PosterLayout from '$components/layouts/PosterLayout.svelte'
|
import PosterLayout from '$components/layouts/PosterLayout.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const { product, shopProduct } = data
|
const { product, shopProduct } = data
|
||||||
const { posters } = getContext('shop')
|
const { posters } = getContext('shop')
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
import { capitalizeFirstLetter } from '$utils/functions'
|
import { capitalizeFirstLetter } from '$utils/functions'
|
||||||
// Components
|
// Components
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
import PosterLayout from '$components/layouts/PosterLayout.svelte'
|
import PosterLayout from '$components/layouts/PosterLayout.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const { posters } = getContext('shop')
|
const { posters } = getContext('shop')
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { navigating } from '$app/stores'
|
import { navigating } from '$app/stores'
|
||||||
import type { PageData, Errors } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { stagger, timeline } from 'motion'
|
import { stagger, timeline } from 'motion'
|
||||||
import { DELAY } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
import InteractiveGlobe2 from '$components/organisms/InteractiveGlobe2.svelte'
|
import InteractiveGlobe2 from '$components/organisms/InteractiveGlobe2.svelte'
|
||||||
|
|
||||||
export let data: PageData
|
export let data: PageData
|
||||||
export let errors: Errors
|
|
||||||
|
|
||||||
const latestIssue = data.issues[0]
|
const latestIssue = data.issues[0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user