Skip to content

Commit

Permalink
feat: move non route files to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed Mar 29, 2024
1 parent 99fcaac commit 3086e1b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
<script lang="ts">
import { t } from 'svelte-i18n';
import { fetchTeamsData, fetchTeamsLoadedOnce } from './store';
import { fetchTeamsData, fetchTeamsLoadedOnce } from './store.js';
$: data = $fetchTeamsData.map((t) => ({
id: t[0],
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script>
<script lang="ts">
import { t } from 'svelte-i18n';
import { dataToRequestParam } from './dataToRequestParam';
import { fetchTeamsGet, fetchTeamsIsLoading, dataParams } from './store';
import {dataToRequestParam} from "$lib/GenerateUrl/dataToRequestParam.js";
import {dataParams, fetchTeamsGet, fetchTeamsIsLoading} from "$lib/GenerateUrl/store.js";
let usernameTranslation = $t('generateUrl.form.username');
let passwordTranslation = $t('generateUrl.form.password');
Expand All @@ -12,8 +12,8 @@
let password = '';
let teamId = '';
let invalidUsername = null;
let invalidPassword = null;
let invalidUsername: boolean | null = null;
let invalidPassword: boolean | null = null;
function clicked() {
invalidUsername = username === '';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script>
<script lang="ts">
import LoginForm from './LoginForm.svelte';
import ListTeams from './ListTeams.svelte';
import ShowUrl from './ShowUrl.svelte';
</script>

<svelte:head>
<title>Sporteasy Calendar Converter</title>
<title>SportEasy Calendar Converter</title>
</svelte:head>

<main class="container">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
<script lang="ts">
import { t } from 'svelte-i18n';
import {dataParams, getOrigin} from './store';
import {dataParams, getOrigin} from './store.js';
const origin = getOrigin();
$: url = `${origin}?data=${$dataParams}`;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions web-app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import GenerateUrl from './GenerateUrl/Main.svelte'
<script lang="ts">
import GenerateUrl from '$lib/GenerateUrl/Main.svelte'
</script>

<GenerateUrl />

0 comments on commit 3086e1b

Please sign in to comment.