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