mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(web): move enum out of .svelte file (#14144)
* chore(web): clean up todo task * chore(web): move enums out of .svelte file
This commit is contained in:
parent
d6a70bc7e5
commit
d1085e8a02
8 changed files with 26 additions and 31 deletions
|
|
@ -1,11 +1,5 @@
|
|||
<script module lang="ts">
|
||||
export enum ProgressBarStatus {
|
||||
Playing = 'playing',
|
||||
Paused = 'paused',
|
||||
}
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { ProgressBarStatus } from '$lib/constants';
|
||||
import { handlePromiseError } from '$lib/utils';
|
||||
|
||||
import { onMount } from 'svelte';
|
||||
|
|
|
|||
|
|
@ -2,12 +2,7 @@
|
|||
import type { SearchLocationFilter } from './search-location-section.svelte';
|
||||
import type { SearchDisplayFilters } from './search-display-section.svelte';
|
||||
import type { SearchDateFilter } from './search-date-section.svelte';
|
||||
|
||||
export enum MediaType {
|
||||
All = 'all',
|
||||
Image = 'image',
|
||||
Video = 'video',
|
||||
}
|
||||
import { MediaType } from '$lib/constants';
|
||||
|
||||
export type SearchFilter = {
|
||||
query: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<script lang="ts">
|
||||
import RadioButton from '$lib/components/elements/radio-button.svelte';
|
||||
import { MediaType } from './search-filter-modal.svelte';
|
||||
import { MediaType } from '$lib/constants';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
interface Props {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue