chore: reorganize timeline into view/ and detail/ folders, move home.png to assets/
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
import WorldMap from './lib/world-map/WorldMap.svelte';
|
import WorldMap from './lib/world-map/WorldMap.svelte';
|
||||||
import JourneyView from './lib/world-map/JourneyView.svelte';
|
import JourneyView from './lib/world-map/JourneyView.svelte';
|
||||||
import StatsPanel from './lib/world-map/StatsPanel.svelte';
|
import StatsPanel from './lib/world-map/StatsPanel.svelte';
|
||||||
import TimelineView from './lib/timeline/TimelineView.svelte';
|
import TimelineView from './lib/timeline/view/TimelineView.svelte';
|
||||||
|
|
||||||
let screen = $state('worldmap');
|
let screen = $state('worldmap');
|
||||||
let journeyActive = $state(false);
|
let journeyActive = $state(false);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 436 KiB After Width: | Height: | Size: 436 KiB |
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getUser, getUserProfile, setHomeCountry } from './userStore.svelte.js';
|
import { getUser, getUserProfile, setHomeCountry } from './userStore.svelte.js';
|
||||||
import { countryNames } from '../shared/countries.js';
|
import { countryNames } from '../shared/countries.js';
|
||||||
import homeImg from '../../assets 2/home.png';
|
import homeImg from '../../assets/home.png';
|
||||||
|
|
||||||
let user = $derived(getUser());
|
let user = $derived(getUser());
|
||||||
let profile = $derived(getUserProfile());
|
let profile = $derived(getUserProfile());
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getEntries } from '../stores/entriesStore.svelte.js';
|
import { getEntries } from '../../stores/entriesStore.svelte.js';
|
||||||
import { addEntry, updateEntry } from '../stores/entriesStore.svelte.js';
|
import { addEntry, updateEntry } from '../../stores/entriesStore.svelte.js';
|
||||||
import { countryNames } from '../shared/countries.js';
|
import { countryNames } from '../../shared/countries.js';
|
||||||
import { getCitiesForCountry, ALL_CITIES } from '../shared/cities.js';
|
import { getCitiesForCountry, ALL_CITIES } from '../../shared/cities.js';
|
||||||
import SearchInput from '../shared/SearchInput.svelte';
|
import SearchInput from '../../shared/SearchInput.svelte';
|
||||||
import PhotoEditor from './PhotoEditor.svelte';
|
import PhotoEditor from './PhotoEditor.svelte';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { removeEntry } from '../stores/entriesStore.svelte.js';
|
import { removeEntry } from '../../stores/entriesStore.svelte.js';
|
||||||
import { flagEmoji } from '../shared/countries.js';
|
import { flagEmoji } from '../../shared/countries.js';
|
||||||
import DeleteConfirm from './DeleteConfirm.svelte';
|
import DeleteConfirm from './DeleteConfirm.svelte';
|
||||||
|
|
||||||
/** @type {{ entry: import('../shared/types.js').JournalEntry, onBack: () => void, onEdit: () => void }} */
|
/** @type {{ entry: import('../shared/types.js').JournalEntry, onBack: () => void, onEdit: () => void }} */
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
<script>
|
<script>
|
||||||
import { journals, addJournal } from '../stores/journalStore.js';
|
import { journals, addJournal } from '../../stores/journalStore.js';
|
||||||
import { get } from 'svelte/store';
|
import { get } from 'svelte/store';
|
||||||
import { flashCountry } from '../layout/selection.svelte.js';
|
import { flashCountry } from '../../layout/selection.svelte.js';
|
||||||
import { countryNames } from '../shared/countries.js';
|
import { countryNames } from '../../shared/countries.js';
|
||||||
import { countryCities } from '../shared/countryCities.js';
|
import { countryCities } from '../../shared/countryCities.js';
|
||||||
import SearchInput from '../shared/SearchInput.svelte';
|
import SearchInput from '../../shared/SearchInput.svelte';
|
||||||
import PhotoEditor from './PhotoEditor.svelte';
|
import PhotoEditor from './PhotoEditor.svelte';
|
||||||
import airplaneImg from '../../assets/airplane.png';
|
import airplaneImg from '../../../assets/airplane.png';
|
||||||
import trainImg from '../../assets/train.png';
|
import trainImg from '../../../assets/train.png';
|
||||||
import busImg from '../../assets/bus.png';
|
import busImg from '../../../assets/bus.png';
|
||||||
import carImg from '../../assets/car.png';
|
import carImg from '../../../assets/car.png';
|
||||||
import shipImg from '../../assets/ship.png';
|
import shipImg from '../../../assets/ship.png';
|
||||||
import walkImg from '../../assets/walk.png';
|
import walkImg from '../../../assets/walk.png';
|
||||||
|
|
||||||
let { initialCountry = '', onBack, onSaved = onBack } = $props();
|
let { initialCountry = '', onBack, onSaved = onBack } = $props();
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import { storage } from '../firebase.js';
|
import { storage } from '../../firebase.js';
|
||||||
import { ref, uploadBytes, getDownloadURL } from 'firebase/storage';
|
import { ref, uploadBytes, getDownloadURL } from 'firebase/storage';
|
||||||
|
|
||||||
/** @type {{ photos: string[], onchange: (photos: string[]) => void }} */
|
/** @type {{ photos: string[], onchange: (photos: string[]) => void }} */
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import { flagEmoji } from '../shared/countries.js';
|
import { flagEmoji } from '../../shared/countries.js';
|
||||||
|
|
||||||
/** @type {{ entry: import('../shared/types.js').JournalEntry, onClick: () => void }} */
|
/** @type {{ entry: import('../shared/types.js').JournalEntry, onClick: () => void }} */
|
||||||
let { entry, onClick } = $props();
|
let { entry, onClick } = $props();
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getEntries } from '../stores/entriesStore.svelte.js';
|
import { getEntries } from '../../stores/entriesStore.svelte.js';
|
||||||
import TimelineToolbar from './TimelineToolbar.svelte';
|
import TimelineToolbar from './TimelineToolbar.svelte';
|
||||||
import TimelineCard from './TimelineCard.svelte';
|
import TimelineCard from './TimelineCard.svelte';
|
||||||
import JournalDetail from './JournalDetail.svelte';
|
import JournalDetail from '../detail/JournalDetail.svelte';
|
||||||
import EditForm from './EditForm.svelte';
|
import EditForm from '../detail/EditForm.svelte';
|
||||||
import NewEntryForm from './NewEntryForm.svelte';
|
import NewEntryForm from '../detail/NewEntryForm.svelte';
|
||||||
import ShareCard from './ShareCard.svelte';
|
import ShareCard from './ShareCard.svelte';
|
||||||
import SharePreview from './SharePreview.svelte';
|
import SharePreview from './SharePreview.svelte';
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
import worldData from 'world-atlas/countries-50m.json';
|
import worldData from 'world-atlas/countries-50m.json';
|
||||||
import { getSelected, setTotalCount, getFlashing } from '../layout/selection.svelte.js';
|
import { getSelected, setTotalCount, getFlashing } from '../layout/selection.svelte.js';
|
||||||
import { getUserProfile } from '../auth/userStore.svelte.js';
|
import { getUserProfile } from '../auth/userStore.svelte.js';
|
||||||
import homeIconUrl from '../../assets 2/home.png';
|
import homeIconUrl from '../../assets/home.png';
|
||||||
import crayonCursorUrl from '../../assets/logo-cursor.png';
|
import crayonCursorUrl from '../../assets/logo-cursor.png';
|
||||||
|
|
||||||
let { onCountryClick = (_name) => {} } = $props();
|
let { onCountryClick = (_name) => {} } = $props();
|
||||||
|
|||||||
Reference in New Issue
Block a user