Sanitize lib paths
This commit is contained in:
parent
df31c4dcd1
commit
e9a906fbfb
@ -7,7 +7,7 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { actions } from '../stores/actions';
|
||||
import { actions } from '$lib/stores/actions';
|
||||
|
||||
export let flush = false;
|
||||
|
@ -7,8 +7,8 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import DateRangeFormat from '../components/DateRangeFormat.svelte';
|
||||
import { alarmsExceptions } from '../stores/alarmexceptions';
|
||||
import DateRangeFormat from '$lib/components/DateRangeFormat.svelte';
|
||||
import { alarmsExceptions } from '$lib/stores/alarmexceptions';
|
||||
|
||||
export let flush = false;
|
||||
</script>
|
@ -7,8 +7,8 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { weekdayStr } from '../lib/alarmrepeated';
|
||||
import { alarmsRepeated } from '../stores/alarmrepeated';
|
||||
import { weekdayStr } from '$lib/alarmrepeated';
|
||||
import { alarmsRepeated } from '$lib/stores/alarmrepeated';
|
||||
|
||||
export let flush = false;
|
||||
</script>
|
@ -7,8 +7,8 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import DateFormat from '../components/DateFormat.svelte';
|
||||
import { alarmsSingle } from '../stores/alarmsingle';
|
||||
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||
import { alarmsSingle } from '$lib/stores/alarmsingle';
|
||||
|
||||
export let flush = false;
|
||||
</script>
|
@ -13,7 +13,7 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { actions_idx } from '../stores/actions';
|
||||
import { actions_idx } from '$lib/stores/actions';
|
||||
|
||||
export let routine = {
|
||||
name: "Classique",
|
@ -8,7 +8,7 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { gongs } from '../stores/gongs';
|
||||
import { gongs } from '$lib/stores/gongs';
|
||||
|
||||
function chooseGong(gong) {
|
||||
gong.setDefault().then(() => {
|
@ -5,7 +5,7 @@
|
||||
ToastHeader,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { ToastsStore } from '../stores/toasts';
|
||||
import { ToastsStore } from '$lib/stores/toasts';
|
||||
</script>
|
||||
|
||||
<div class="toast-container position-absolute top-0 end-0 p-3">
|
@ -8,7 +8,7 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { tracks } from '../stores/tracks';
|
||||
import { tracks } from '$lib/stores/tracks';
|
||||
|
||||
export let flush = false;
|
||||
export let edit = false;
|
@ -1,6 +1,6 @@
|
||||
import { derived, writable } from 'svelte/store';
|
||||
|
||||
import { getActions } from '../lib/action'
|
||||
import { getActions } from '$lib/action'
|
||||
|
||||
function createActionsStore() {
|
||||
const { subscribe, set, update } = writable({list: null, fileIdx: null});
|
@ -1,6 +1,6 @@
|
||||
import { derived, writable } from 'svelte/store';
|
||||
|
||||
import { getAlarmsException } from '../lib/alarmexception'
|
||||
import { getAlarmsException } from '$lib/alarmexception'
|
||||
|
||||
function createAlarmsExceptionStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -1,6 +1,6 @@
|
||||
import { derived, writable } from 'svelte/store';
|
||||
|
||||
import { getAlarmsRepeated } from '../lib/alarmrepeated'
|
||||
import { getAlarmsRepeated } from '$lib/alarmrepeated'
|
||||
|
||||
function createAlarmsRepeatedStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -1,6 +1,6 @@
|
||||
import { derived, writable } from 'svelte/store';
|
||||
|
||||
import { getAlarmsSingle } from '../lib/alarmsingle'
|
||||
import { getAlarmsSingle } from '$lib/alarmsingle'
|
||||
|
||||
function createAlarmsSingleStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -1,6 +1,6 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
import { getGongs } from '../lib/gong'
|
||||
import { getGongs } from '$lib/gong'
|
||||
|
||||
function createGongsStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -1,6 +1,6 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
import { getRoutines } from '../lib/routine'
|
||||
import { getRoutines } from '$lib/routine'
|
||||
|
||||
function createRoutinesStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -1,6 +1,6 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
import { getTracks } from '../lib/track'
|
||||
import { getTracks } from '$lib/track'
|
||||
|
||||
function createTracksStore() {
|
||||
const { subscribe, set, update } = writable({list: null});
|
@ -6,8 +6,8 @@
|
||||
//Styles,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import Header from '../components/Header.svelte';
|
||||
import Toaster from '../components/Toaster.svelte';
|
||||
import Header from '$lib/components/Header.svelte';
|
||||
import Toaster from '$lib/components/Toaster.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
@ -4,12 +4,12 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import CycleCounter from '../components/CycleCounter.svelte';
|
||||
import DateFormat from '../components/DateFormat.svelte';
|
||||
import CycleCounter from '$lib/components/CycleCounter.svelte';
|
||||
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||
import { isAlarmActive, alarmNextTrack, runAlarm, alarmStop } from '$lib/alarm';
|
||||
import { getNextAlarm, newNCyclesAlarm } from '$lib/alarmsingle';
|
||||
import { alarmsSingle } from '../stores/alarmsingle';
|
||||
import { quotes } from '../stores/quotes';
|
||||
import { alarmsSingle } from '$lib/stores/alarmsingle';
|
||||
import { quotes } from '$lib/stores/quotes';
|
||||
|
||||
let nextAlarmP = getNextAlarm();
|
||||
let isActiveP = isAlarmActive();
|
||||
|
@ -6,9 +6,9 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import AlarmSingleList from '../../components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '../../components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '../../components/AlarmExceptionList.svelte';
|
||||
import AlarmSingleList from '$lib/components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '$lib/components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '$lib/components/AlarmExceptionList.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="flex-fill d-flex flex-column py-2">
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import AlarmSingleList from '../../../components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '../../../components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '../../../components/AlarmExceptionList.svelte';
|
||||
import AlarmSingleList from '$lib/components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '$lib/components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '$lib/components/AlarmExceptionList.svelte';
|
||||
|
||||
function slugToComponent(slug) {
|
||||
switch(slug) {
|
||||
|
@ -5,9 +5,9 @@
|
||||
Container,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import AlarmSingleList from '../../../components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '../../../components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '../../../components/AlarmExceptionList.svelte';
|
||||
import AlarmSingleList from '$lib/components/AlarmSingleList.svelte';
|
||||
import AlarmRepeatedList from '$lib/components/AlarmRepeatedList.svelte';
|
||||
import AlarmExceptionList from '$lib/components/AlarmExceptionList.svelte';
|
||||
|
||||
function slugToComponent(slug) {
|
||||
switch(slug) {
|
||||
|
@ -13,14 +13,14 @@
|
||||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import DateFormat from '../../../../components/DateFormat.svelte';
|
||||
import DateRangeFormat from '../../../../components/DateRangeFormat.svelte';
|
||||
import { getAlarmSingle } from '../../../../lib/alarmsingle';
|
||||
import { getAlarmRepeated, weekdayStr } from '../../../../lib/alarmrepeated';
|
||||
import { getAlarmException } from '../../../../lib/alarmexception';
|
||||
import { alarmsRepeated } from '../../../../stores/alarmrepeated';
|
||||
import { alarmsSingle } from '../../../../stores/alarmsingle';
|
||||
import { alarmsExceptions } from '../../../../stores/alarmexceptions';
|
||||
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||
import DateRangeFormat from '$lib/components/DateRangeFormat.svelte';
|
||||
import { getAlarmSingle } from '$lib/alarmsingle';
|
||||
import { getAlarmRepeated, weekdayStr } from '$lib/alarmrepeated';
|
||||
import { getAlarmException } from '$lib/alarmexception';
|
||||
import { alarmsRepeated } from '$lib/stores/alarmrepeated';
|
||||
import { alarmsSingle } from '$lib/stores/alarmsingle';
|
||||
import { alarmsExceptions } from '$lib/stores/alarmexceptions';
|
||||
|
||||
function slugToTitle(slug) {
|
||||
switch(slug) {
|
||||
|
@ -15,14 +15,14 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import DateTimeInput from '../../../../components/DateTimeInput.svelte';
|
||||
import { AlarmSingle } from '../../../../lib/alarmsingle';
|
||||
import { AlarmRepeated } from '../../../../lib/alarmrepeated';
|
||||
import { AlarmException } from '../../../../lib/alarmexception';
|
||||
import { alarmsRepeated } from '../../../../stores/alarmrepeated';
|
||||
import { alarmsSingle } from '../../../../stores/alarmsingle';
|
||||
import { alarmsExceptions } from '../../../../stores/alarmexceptions';
|
||||
import { routines } from '../../../../stores/routines';
|
||||
import DateTimeInput from '$lib/components/DateTimeInput.svelte';
|
||||
import { AlarmSingle } from '$lib/alarmsingle';
|
||||
import { AlarmRepeated } from '$lib/alarmrepeated';
|
||||
import { AlarmException } from '$lib/alarmexception';
|
||||
import { alarmsRepeated } from '$lib/stores/alarmrepeated';
|
||||
import { alarmsSingle } from '$lib/stores/alarmsingle';
|
||||
import { alarmsExceptions } from '$lib/stores/alarmexceptions';
|
||||
import { routines } from '$lib/stores/routines';
|
||||
|
||||
function slugToTitle(slug) {
|
||||
switch(slug) {
|
||||
|
@ -6,9 +6,9 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import CardStatAlarms from '../../components/CardStatAlarms.svelte';
|
||||
import CardStatTimeAwaking from '../../components/CardStatTimeAwaking.svelte';
|
||||
import CardStatRoutines from '../../components/CardStatRoutines.svelte';
|
||||
import CardStatAlarms from '$lib/components/CardStatAlarms.svelte';
|
||||
import CardStatTimeAwaking from '$lib/components/CardStatTimeAwaking.svelte';
|
||||
import CardStatRoutines from '$lib/components/CardStatRoutines.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="flex-fill d-flex flex-column justify-content-center py-2">
|
||||
|
@ -6,9 +6,9 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import MusiksLastPlayedList from '../../components/MusiksLastPlayedList.svelte';
|
||||
import TrackList from '../../components/TrackList.svelte';
|
||||
import GongsList from '../../components/GongsList.svelte';
|
||||
import MusiksLastPlayedList from '$lib/components/MusiksLastPlayedList.svelte';
|
||||
import TrackList from '$lib/components/TrackList.svelte';
|
||||
import GongsList from '$lib/components/GongsList.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="flex-fill d-flex flex-column py-2">
|
||||
|
@ -7,7 +7,7 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import GongsList from '../../../components/GongsList.svelte';
|
||||
import GongsList from '$lib/components/GongsList.svelte';
|
||||
</script>
|
||||
|
||||
<div class="d-flex flex-fill flex-column">
|
||||
|
@ -4,7 +4,7 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import TrackList from '../../../components/TrackList.svelte';
|
||||
import TrackList from '$lib/components/TrackList.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="py-2 d-none d-md-flex flex-column justify-content-center align-items-center">
|
||||
|
@ -9,7 +9,7 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { getGong } from '../../../../lib/gong';
|
||||
import { getGong } from '$lib/gong';
|
||||
</script>
|
||||
|
||||
{#await getGong($page.params.gid)}
|
||||
|
@ -7,7 +7,7 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import TrackList from '../../../components/TrackList.svelte';
|
||||
import TrackList from '$lib/components/TrackList.svelte';
|
||||
</script>
|
||||
|
||||
<div class="d-flex flex-fill flex-column">
|
||||
|
@ -4,7 +4,7 @@
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import TrackList from '../../../components/TrackList.svelte';
|
||||
import TrackList from '$lib/components/TrackList.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="py-2 d-none d-md-flex flex-column justify-content-center align-items-center">
|
||||
|
@ -1,15 +1,17 @@
|
||||
<script>
|
||||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import {
|
||||
Container,
|
||||
Icon,
|
||||
Input,
|
||||
ListGroup,
|
||||
ListGroupItem,
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { getTrack } from '../../../../lib/track';
|
||||
import { getTrack } from '$lib/track';
|
||||
</script>
|
||||
|
||||
{#await getTrack($page.params.tid)}
|
||||
|
@ -8,10 +8,10 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { routines } from '../../stores/routines';
|
||||
import { routines } from '$lib/stores/routines';
|
||||
|
||||
import CardRoutine from '../../components/CardRoutine.svelte';
|
||||
import ActionList from '../../components/ActionList.svelte';
|
||||
import CardRoutine from '$lib/components/CardRoutine.svelte';
|
||||
import ActionList from '$lib/components/ActionList.svelte';
|
||||
</script>
|
||||
|
||||
<Container fluid class="flex-fill d-flex flex-column py-2">
|
||||
|
@ -11,8 +11,8 @@
|
||||
Spinner,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { actions } from '../../stores/actions';
|
||||
import { getSettings } from '../../lib/settings';
|
||||
import { actions } from '$lib/stores/actions';
|
||||
import { getSettings } from '$lib/settings';
|
||||
|
||||
let settingsP = getSettings();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user