Skip to content

Commit

Permalink
refactor: update smui imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkier committed Nov 2, 2024
1 parent 2e8b0a1 commit 4c83af9
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
type BeeswarmParameters,
type Chart
} from '$lib/zenoapi';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Checkbox from '@smui/checkbox';
import Svelecte from 'svelecte';
import { EncodingMap } from '../encodingUtil';
import EncodingSection from './EncodingSection.svelte';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { clickOutside } from '$lib/util/clickOutside';
import type { Folder, ZenoService } from '$lib/zenoapi';
import { mdiChevronDown, mdiChevronRight, mdiDotsHorizontal } from '@mdi/js';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Checkbox from '@smui/checkbox';
import IconButton, { Icon } from '@smui/icon-button';
import Paper, { Content } from '@smui/paper';
import { getContext } from 'svelte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/popups/Confirm.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Paper, { Content } from '@smui/paper';
import { createEventDispatcher } from 'svelte';
import { fade } from 'svelte/transition';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/popups/CopyProjectPopup.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import type { Project, User, ZenoService } from '$lib/zenoapi';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Button from '@smui/button';
import Checkbox from '@smui/checkbox';
import { Content } from '@smui/paper';
import Textfield from '@smui/textfield';
import { createEventDispatcher, getContext } from 'svelte';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/popups/FeatureFlagsPopup.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { featureFlags } from '$lib/stores';
import { zenoFeatureFlags } from '$lib/util/features';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Button from '@smui/button';
import Checkbox from '@smui/checkbox';
import { Content } from '@smui/paper';
import { createEventDispatcher } from 'svelte';
import Popup from './Popup.svelte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/popups/NewReportPopup.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import type { ApiError, ZenoService } from '$lib/zenoapi';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import { Content } from '@smui/paper';
import Textfield from '@smui/textfield';
import { createEventDispatcher, getContext } from 'svelte';
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/lib/components/popups/OrganizationPopup.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<script lang="ts">
import type { Organization, User, ZenoService } from '$lib/zenoapi';
import { mdiClose } from '@mdi/js';
import { Icon } from '@smui/button';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import IconButton from '@smui/icon-button/src/IconButton.svelte';
import Button, { Icon } from '@smui/button';
import Checkbox from '@smui/checkbox';
import IconButton from '@smui/icon-button.svelte';
import { Content } from '@smui/paper';
import Textfield from '@smui/textfield';
import Svelecte from 'svelecte';
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/lib/components/popups/ProjectPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import { project } from '$lib/stores';
import type { Organization, Project, User, ZenoService } from '$lib/zenoapi';
import { mdiClose } from '@mdi/js';
import { Icon } from '@smui/button';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import IconButton from '@smui/icon-button/src/IconButton.svelte';
import Button, { Icon } from '@smui/button';
import Checkbox from '@smui/checkbox';
import IconButton from '@smui/icon-button';
import { Content } from '@smui/paper';
import Textfield from '@smui/textfield';
import Svelecte from 'svelecte';
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/lib/components/popups/ReportPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
import { page } from '$app/stores';
import type { Organization, Report, User, ZenoService } from '$lib/zenoapi';
import { mdiClose } from '@mdi/js';
import { Icon } from '@smui/button';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import IconButton from '@smui/icon-button/src/IconButton.svelte';
import Button, { Icon } from '@smui/button';
import Checkbox from '@smui/checkbox';
import IconButton from '@smui/icon-button';
import { Content } from '@smui/paper';
import Textfield from '@smui/textfield';
import Svelecte from 'svelecte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/settings/Account.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import type { User, ZenoService } from '$lib/zenoapi';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Textfield from '@smui/textfield';
import { getContext } from 'svelte';
import { fade } from 'svelte/transition';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import type { Organization, User, ZenoService } from '$lib/zenoapi';
import { mdiClose, mdiCog, mdiLogout, mdiPlus } from '@mdi/js';
import { Icon } from '@smui/button';
import IconButton from '@smui/icon-button/src/IconButton.svelte';
import IconButton from '@smui/icon-button';
import { getContext } from 'svelte';
import Confirm from '../popups/Confirm.svelte';
import NewOrganizationPopup from '../popups/NewOrganizationPopup.svelte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/instance-views/InstanceView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { elementMap, isComplexElement } from '$lib/instance-views/resolve.js';
import type { ViewSchema } from '$lib/instance-views/schema';
import schema from '$lib/instance-views/schema.json';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Checkbox from '@smui/checkbox';
import Ajv from 'ajv';
import { createEventDispatcher } from 'svelte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(user)/forgot/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { enhance } from '$app/forms';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Textfield from '@smui/textfield';
let username = '';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(user)/forgot/[username]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { enhance } from '$app/forms';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Textfield from '@smui/textfield';
export let form;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(user)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { browser } from '$app/environment';
import { enhance } from '$app/forms';
import Spinner from '$lib/components/general/Spinner.svelte';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Textfield from '@smui/textfield';
export let form;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/routes/(user)/signup/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { enhance } from '$app/forms';
import Button from '@smui/button/src/Button.svelte';
import Checkbox from '@smui/checkbox/src/Checkbox.svelte';
import Button from '@smui/button';
import Checkbox from '@smui/checkbox';
import Textfield from '@smui/textfield';
export let form;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(user)/verify/[username]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { enhance } from '$app/forms';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
import Textfield from '@smui/textfield';
export let form;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/auth/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { goto } from '$app/navigation';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button';
</script>

<div class="m-auto h-full bg-primary pt-20 text-center">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/playground/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import Error from '$lib/instance-views/Error.svelte';
import InstanceView from '$lib/instance-views/InstanceView.svelte';
import { json } from '@codemirror/lang-json';
import Button from '@smui/button/src/Button.svelte';
import Button from '@smui/button;
import CodeMirror from 'svelte-codemirror-editor';
import { samples } from './samples.js';
import { setURLParameters, type URLParams } from './util.js';
Expand Down

0 comments on commit 4c83af9

Please sign in to comment.