Skip to content

Commit

Permalink
improve merchant page loading and rm last splash
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 14, 2023
1 parent 199c6df commit 4370980
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 926 deletions.
35 changes: 0 additions & 35 deletions src/components/LoadingSplash.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/MerchantEvent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Time from 'svelte-time';
export let action: EventType;
export let user: User | '';
export let user: User | undefined;
export let time: string;
export let latest: boolean;
Expand Down
1 change: 0 additions & 1 deletion src/lib/comp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export { default as LatestTagger } from '../components/LatestTagger.svelte';
export { default as LeaderboardItem } from '../components/LeaderboardItem.svelte';
export { default as LeaderboardSkeleton } from '../components/LeaderboardSkeleton.svelte';
export { default as LoadingSpinner } from '../components/LoadingSpinner.svelte';
export { default as LoadingSplash } from '../components/LoadingSplash.svelte';
export { default as MapLoadingEmbed } from '../components/MapLoadingEmbed.svelte';
export { default as MapLoadingMain } from '../components/MapLoadingMain.svelte';
export { default as MerchantButton } from '../components/MerchantButton.svelte';
Expand Down
4 changes: 2 additions & 2 deletions src/lib/map/setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { InfoTooltip } from '$lib/comp';
import { boost, exchangeRate, resetBoost, showMore, showTags, theme } from '$lib/store';
import type { DomEventType, ElementOSM, Leaflet, OSMTags } from '$lib/types';
import type { DomEventType, ElementOSM, Leaflet, OSMTags, PayMerchant } from '$lib/types';
import { detectTheme, errToast } from '$lib/utils';
import axios from 'axios';
import axiosRetry from 'axios-retry';
Expand Down Expand Up @@ -651,7 +651,7 @@ export const generateMarker = (
long: number,
icon: DivIcon,
element: ElementOSM,
payment: { type: string; url?: string; username?: string } | undefined,
payment: PayMerchant,
L: Leaflet,
verifiedDate: number,
verify: boolean,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ export interface SearchResult extends SearchElement {
distanceMi: number;
}

export type PayMerchant = { type: string; url?: string; username?: string } | undefined;

// leaderboards

export type TaggerLeaderboard = {
Expand Down
44 changes: 0 additions & 44 deletions src/routes/merchant/[id]/+layout.svelte

This file was deleted.

Loading

0 comments on commit 4370980

Please sign in to comment.