Skip to content

Commit

Permalink
More refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck committed Mar 6, 2024
1 parent 04d6423 commit a4cf9a7
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 30 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
ProgressRadial,
} from '@skeletonlabs/skeleton';
import * as api from '$lib/api';
import type { User } from './models/User';
import ErrorAlert from './component/error-alert.svelte';
import type { User } from '../models/User';
import ErrorAlert from './ErrorAlert.svelte';
type LongTermTokenResponse = {
userLongTermToken: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { page } from '$app/stores';
import DataSetStore from '$lib/store/Dataset';
import DataSetStore from '$lib/stores/dataset';
export let data = { cell: '', row: { archived: false } };
let toggleButton: HTMLButtonElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
import { DataHandler } from '@vincjo/datatables';
import ThSort from './accessories/sort.svelte';
import ThFilter from './accessories/filter.svelte';
import Search from './accessories/search.svelte';
import RowsPerPage from './accessories/rows.svelte';
import RowCount from './accessories/count.svelte';
import Pagination from './accessories/pagination.svelte';
import ThSort from './accessories/Sort.svelte';
import ThFilter from './accessories/Filter.svelte';
import Search from './accessories/Search.svelte';
import RowsPerPage from './accessories/Rows.svelte';
import RowCount from './accessories/Count.svelte';
import Pagination from './accessories/Pagination.svelte';
import type { Indexable } from '$lib/types';
interface Column {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/store/dataset.ts → src/lib/stores/dataset.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get, writable, derived, type Readable, type Writable } from 'svelte/store';

import { mapDataset, type DataSet } from '$lib/model/Dataset';
import { mapDataset, type DataSet } from '$lib/models/Dataset';
import * as api from '$lib/api';

const datasets: Writable<DataSet[]> = writable([]);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
getModalStore,
type ModalSettings,
} from '@skeletonlabs/skeleton';
import Navigation from '$lib/component/navigation.svelte';
import Navigation from '$lib/components/Navigation.svelte';
import '@fortawesome/fontawesome-free/css/all.min.css';
import '../app.postcss';
import { onMount } from 'svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { branding } from '$lib/configuration';
import { ProgressRadial } from '@skeletonlabs/skeleton';
import type { Value } from '$lib/models/value';
import type { Value } from '$lib/models/Value';
import * as api from '$lib/api';
import { goto } from '$app/navigation';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
</script>

<Content title="Admin">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/super/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
</script>

<Content title="Super Admin">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import UserToken from '$lib/UserToken.svelte';
import UserToken from '$lib/components/UserToken.svelte';
import { branding } from '$lib/configuration';
</script>

Expand Down
13 changes: 6 additions & 7 deletions src/routes/dataset/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script lang="ts">
import { ProgressBar } from '@skeletonlabs/skeleton';
import type { Indexable } from '$lib/types';
import DataSetStore from '$lib/store/Dataset';
import ErrorAlert from '$lib/component/ErrorAlert.svelte';
import Content from '$lib/component/Content.svelte';
import Datatable from '$lib/component/datatable/Table.svelte';
import CopyButton from '$lib/component/dataset/cell/CopyButton.svelte';
import Actions from '$lib/component/dataset/cell/Actions.svelte';
import DataSetStore from '$lib/stores/dataset';
import ErrorAlert from '$lib/components/ErrorAlert.svelte';
import Content from '$lib/components/Content.svelte';
import Datatable from '$lib/components/datatable/Table.svelte';
import CopyButton from '$lib/components/dataset/cell/CopyButton.svelte';
import Actions from '$lib/components/dataset/cell/Actions.svelte';
const columns = [
{ dataElement: 'name', label: 'Dataset ID Name' },
Expand Down
8 changes: 4 additions & 4 deletions src/routes/dataset/[uuid]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import { ProgressBar } from '@skeletonlabs/skeleton';
import { page } from '$app/stores';
import type { DataSet } from '$lib/model/Dataset';
import DataSetStore from '$lib/store/Dataset';
import Content from '$lib/component/Content.svelte';
import ErrorAlert from '$lib/component/ErrorAlert.svelte';
import type { DataSet } from '$lib/models/Dataset';
import DataSetStore from '$lib/stores/dataset';
import Content from '$lib/components/Content.svelte';
import ErrorAlert from '$lib/components/ErrorAlert.svelte';
const { getDataset } = DataSetStore;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/explorer/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
</script>

<Content title="Explorer/Query Builder">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/help/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
import { branding } from '$lib/configuration';
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/help/dummy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
import { page } from '$app/stores';
export const title = $page.url.searchParams.get('title') || 'Dummy';
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/users/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Content from '$lib/component/content.svelte';
import Content from '$lib/components/Content.svelte';
</script>

<Content title="Users">
Expand Down

0 comments on commit a4cf9a7

Please sign in to comment.