mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	chore(web): update eslint and prettier packages (#2437)
Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
		@@ -91,7 +91,7 @@
 | 
			
		||||
		<p class="text-sm dark:text-immich-dark-fg">USER USAGE DETAIL</p>
 | 
			
		||||
		<table class="text-left w-full mt-5">
 | 
			
		||||
			<thead
 | 
			
		||||
				class="border rounded-md mb-4 bg-gray-50 dark:bg-immich-dark-gray dark:border-immich-dark-gray flex text-immich-primary dark:text-immich-dark-primary  w-full h-12"
 | 
			
		||||
				class="border rounded-md mb-4 bg-gray-50 dark:bg-immich-dark-gray dark:border-immich-dark-gray flex text-immich-primary dark:text-immich-dark-primary w-full h-12"
 | 
			
		||||
			>
 | 
			
		||||
				<tr class="flex w-full place-items-center">
 | 
			
		||||
					<th class="text-center w-1/4 font-medium text-sm">User</th>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@
 | 
			
		||||
<ConfirmDialogue title="Disable Login" on:cancel on:confirm>
 | 
			
		||||
	<svelte:fragment slot="prompt">
 | 
			
		||||
		<div class="flex flex-col gap-4 p-3">
 | 
			
		||||
			<p class="text-md  text-center">
 | 
			
		||||
			<p class="text-md text-center">
 | 
			
		||||
				Are you sure you want to disable all login methods? Login will be completely disabled.
 | 
			
		||||
			</p>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
		<button
 | 
			
		||||
			on:click={toggle}
 | 
			
		||||
			aria-expanded={isOpen}
 | 
			
		||||
			class="immich-circle-icon-button hover:bg-immich-primary/10 dark:text-immich-dark-fg hover:dark:bg-immich-dark-primary/20  rounded-full p-3 flex place-items-center place-content-center transition-all"
 | 
			
		||||
			class="immich-circle-icon-button hover:bg-immich-primary/10 dark:text-immich-dark-fg hover:dark:bg-immich-dark-primary/20 rounded-full p-3 flex place-items-center place-content-center transition-all"
 | 
			
		||||
		>
 | 
			
		||||
			<svg
 | 
			
		||||
				style="tran"
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
	export let showResetToDefault = true;
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<div class="flex justify-between gap-2  mt-8">
 | 
			
		||||
<div class="flex justify-between gap-2 mt-8">
 | 
			
		||||
	<div class="left">
 | 
			
		||||
		{#if showResetToDefault}
 | 
			
		||||
			<button
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
		</svelte:fragment>
 | 
			
		||||
	</ControlAppBar>
 | 
			
		||||
 | 
			
		||||
	<section class="flex flex-wrap gap-14  px-20 overflow-y-auto">
 | 
			
		||||
	<section class="flex flex-wrap gap-14 px-20 overflow-y-auto">
 | 
			
		||||
		<!-- Image grid -->
 | 
			
		||||
		<div class="flex flex-wrap gap-[2px]">
 | 
			
		||||
			{#each album.assets as asset}
 | 
			
		||||
 
 | 
			
		||||
@@ -103,7 +103,7 @@
 | 
			
		||||
								{user.firstName}
 | 
			
		||||
								{user.lastName}
 | 
			
		||||
							</p>
 | 
			
		||||
							<p class="text-xs ">
 | 
			
		||||
							<p class="text-xs">
 | 
			
		||||
								{user.email}
 | 
			
		||||
							</p>
 | 
			
		||||
						</div>
 | 
			
		||||
@@ -118,7 +118,7 @@
 | 
			
		||||
		{/if}
 | 
			
		||||
 | 
			
		||||
		{#if selectedUsers.length > 0}
 | 
			
		||||
			<div class="flex place-content-end p-5 ">
 | 
			
		||||
			<div class="flex place-content-end p-5">
 | 
			
		||||
				<Button size="sm" rounded="lg" on:click={() => dispatch('add-user', { selectedUsers })}>
 | 
			
		||||
					Add
 | 
			
		||||
				</Button>
 | 
			
		||||
 
 | 
			
		||||
@@ -334,7 +334,7 @@
 | 
			
		||||
			on:keydown={navigateAssetBackward}
 | 
			
		||||
		>
 | 
			
		||||
			<button
 | 
			
		||||
				class="rounded-full p-3 hover:bg-gray-500 hover:text-gray-700 z-[1000]  text-gray-500 mx-4"
 | 
			
		||||
				class="rounded-full p-3 hover:bg-gray-500 hover:text-gray-700 z-[1000] text-gray-500 mx-4"
 | 
			
		||||
				class:navigation-button-hover={halfLeftHover}
 | 
			
		||||
				on:click={navigateAssetBackward}
 | 
			
		||||
			>
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@
 | 
			
		||||
	id="immich-modal"
 | 
			
		||||
	style:z-index={zIndex}
 | 
			
		||||
	transition:fade={{ duration: 100, easing: quintOut }}
 | 
			
		||||
	class="fixed top-0 left-0 w-full h-full  bg-black/50 flex place-items-center place-content-center overflow-hidden"
 | 
			
		||||
	class="fixed top-0 left-0 w-full h-full bg-black/50 flex place-items-center place-content-center overflow-hidden"
 | 
			
		||||
>
 | 
			
		||||
	<div
 | 
			
		||||
		use:clickOutside
 | 
			
		||||
 
 | 
			
		||||
@@ -56,7 +56,7 @@
 | 
			
		||||
						selected = option;
 | 
			
		||||
						isOpen = false;
 | 
			
		||||
					}}
 | 
			
		||||
					class="bg-gray-200 dark:bg-gray-500 dark:hover:bg-gray-700 w-full flex p-2 hover:bg-gray-300 transition-all "
 | 
			
		||||
					class="bg-gray-200 dark:bg-gray-500 dark:hover:bg-gray-700 w-full flex p-2 hover:bg-gray-300 transition-all"
 | 
			
		||||
				>
 | 
			
		||||
					{option}
 | 
			
		||||
				</button>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
<section
 | 
			
		||||
	in:fade={{ duration: 100 }}
 | 
			
		||||
	out:fade={{ duration: 100 }}
 | 
			
		||||
	class="absolute left-0 top-0 w-full h-full bg-black/40 z-[990] flex place-items-center place-content-center "
 | 
			
		||||
	class="absolute left-0 top-0 w-full h-full bg-black/40 z-[990] flex place-items-center place-content-center"
 | 
			
		||||
>
 | 
			
		||||
	<div class="z-[9999]" use:clickOutside on:outclick={() => dispatch('clickOutside')}>
 | 
			
		||||
		<slot />
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@
 | 
			
		||||
 | 
			
		||||
<div
 | 
			
		||||
	id="immich-scrubbable-scrollbar"
 | 
			
		||||
	class="fixed right-0 bg-immich-bg z-[100] hover:cursor-row-resize select-none "
 | 
			
		||||
	class="fixed right-0 bg-immich-bg z-[100] hover:cursor-row-resize select-none"
 | 
			
		||||
	style:width={isDragging ? '100vw' : '60px'}
 | 
			
		||||
	style:background-color={isDragging ? 'transparent' : 'transparent'}
 | 
			
		||||
	on:mouseenter={() => (isHover = true)}
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
		<input
 | 
			
		||||
			type="text"
 | 
			
		||||
			name="q"
 | 
			
		||||
			class="w-full transition-all  {grayTheme
 | 
			
		||||
			class="w-full transition-all {grayTheme
 | 
			
		||||
				? 'dark:bg-immich-dark-gray'
 | 
			
		||||
				: 'dark:bg-immich-dark-bg'} text-immich-fg/75 dark:text-immich-dark-fg px-14 py-4 {showBigSearchBar
 | 
			
		||||
				? 'rounded-t-3xl bg-white  border border-gray-200 dark:border-gray-800'
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@
 | 
			
		||||
	</div>
 | 
			
		||||
 | 
			
		||||
	<div
 | 
			
		||||
		class="transition-[height] group-hover:sm:overflow-visible md:overflow-visible overflow-hidden duration-100 delay-1000  sm:group-hover:h-auto md:h-auto h-0"
 | 
			
		||||
		class="transition-[height] group-hover:sm:overflow-visible md:overflow-visible overflow-hidden duration-100 delay-1000 sm:group-hover:h-auto md:h-auto h-0"
 | 
			
		||||
	>
 | 
			
		||||
		{#if $$slots.moreInformation}
 | 
			
		||||
			<div
 | 
			
		||||
 
 | 
			
		||||
@@ -89,7 +89,7 @@
 | 
			
		||||
		<div class="text-xs hidden md:block group-hover:sm:block">
 | 
			
		||||
			<p class="text-sm font-medium text-immich-primary dark:text-immich-dark-primary">Server</p>
 | 
			
		||||
 | 
			
		||||
			<div class="flex justify-items-center justify-between mt-2 ">
 | 
			
		||||
			<div class="flex justify-items-center justify-between mt-2">
 | 
			
		||||
				<p>Status</p>
 | 
			
		||||
 | 
			
		||||
				{#if isServerOk}
 | 
			
		||||
@@ -99,7 +99,7 @@
 | 
			
		||||
				{/if}
 | 
			
		||||
			</div>
 | 
			
		||||
 | 
			
		||||
			<div class="flex justify-items-center justify-between mt-2 ">
 | 
			
		||||
			<div class="flex justify-items-center justify-between mt-2">
 | 
			
		||||
				<p>Version</p>
 | 
			
		||||
				<p class="font-medium text-immich-primary dark:text-immich-dark-primary">
 | 
			
		||||
					{serverVersion}
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@
 | 
			
		||||
				class="bg-immich-primary h-[15px] rounded-md transition-all"
 | 
			
		||||
				style={`width: ${uploadAsset.progress}%`}
 | 
			
		||||
			/>
 | 
			
		||||
			<p class="absolute h-full w-full text-center top-0 text-[10px] ">
 | 
			
		||||
			<p class="absolute h-full w-full text-center top-0 text-[10px]">
 | 
			
		||||
				{uploadAsset.progress}/100
 | 
			
		||||
			</p>
 | 
			
		||||
		</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@
 | 
			
		||||
		{#if showDetail}
 | 
			
		||||
			<div
 | 
			
		||||
				in:scale={{ duration: 250, easing: quartInOut }}
 | 
			
		||||
				class="bg-gray-200 p-4 text-sm w-[300px] rounded-lg shadow-sm border "
 | 
			
		||||
				class="bg-gray-200 p-4 text-sm w-[300px] rounded-lg shadow-sm border"
 | 
			
		||||
			>
 | 
			
		||||
				<div class="flex justify-between place-item-center mb-4">
 | 
			
		||||
					<p class="text-xs text-gray-500">UPLOADING {$uploadAssetsStore.length}</p>
 | 
			
		||||
@@ -70,7 +70,7 @@
 | 
			
		||||
				<button
 | 
			
		||||
					in:scale={{ duration: 250, easing: quartInOut }}
 | 
			
		||||
					on:click={() => (showDetail = true)}
 | 
			
		||||
					class="bg-gray-300 p-5 rounded-full w-16 h-16 flex place-items-center place-content-center text-sm shadow-lg "
 | 
			
		||||
					class="bg-gray-300 p-5 rounded-full w-16 h-16 flex place-items-center place-content-center text-sm shadow-lg"
 | 
			
		||||
				>
 | 
			
		||||
					<div class="animate-pulse">
 | 
			
		||||
						<CloudUploadOutline size="30" color="#4250af" />
 | 
			
		||||
 
 | 
			
		||||
@@ -43,7 +43,7 @@
 | 
			
		||||
{#if showModal}
 | 
			
		||||
	<FullScreenModal on:clickOutside={() => (showModal = false)}>
 | 
			
		||||
		<div
 | 
			
		||||
			class="border bg-immich-bg dark:bg-immich-dark-gray dark:border-immich-dark-gray shadow-sm max-w-lg rounded-3xl py-10 px-8 dark:text-immich-dark-fg "
 | 
			
		||||
			class="border bg-immich-bg dark:bg-immich-dark-gray dark:border-immich-dark-gray shadow-sm max-w-lg rounded-3xl py-10 px-8 dark:text-immich-dark-fg"
 | 
			
		||||
		>
 | 
			
		||||
			<p class="text-2xl mb-4">🎉 NEW VERSION AVAILABLE 🎉</p>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -61,7 +61,7 @@
 | 
			
		||||
			<div class="text-sm flex flex-col justify-center">
 | 
			
		||||
				<button
 | 
			
		||||
					on:click={() => dispatcher('delete')}
 | 
			
		||||
					class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700  rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
					class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700 rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
					title="Log out"
 | 
			
		||||
				>
 | 
			
		||||
					<TrashCanOutline size="16" />
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@
 | 
			
		||||
							{user.firstName}
 | 
			
		||||
							{user.lastName}
 | 
			
		||||
						</p>
 | 
			
		||||
						<p class="text-xs ">
 | 
			
		||||
						<p class="text-xs">
 | 
			
		||||
							{user.email}
 | 
			
		||||
						</p>
 | 
			
		||||
					</div>
 | 
			
		||||
@@ -75,7 +75,7 @@
 | 
			
		||||
		{/if}
 | 
			
		||||
 | 
			
		||||
		{#if selectedUsers.length > 0}
 | 
			
		||||
			<div class="flex place-content-end p-5 ">
 | 
			
		||||
			<div class="flex place-content-end p-5">
 | 
			
		||||
				<Button size="sm" rounded="lg" on:click={() => dispatch('add-users', selectedUsers)}>
 | 
			
		||||
					Add
 | 
			
		||||
				</Button>
 | 
			
		||||
 
 | 
			
		||||
@@ -156,13 +156,13 @@
 | 
			
		||||
								<td class="text-sm px-4 w-1/3 text-ellipsis">
 | 
			
		||||
									<button
 | 
			
		||||
										on:click={() => (editKey = key)}
 | 
			
		||||
										class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700  rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
										class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700 rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
									>
 | 
			
		||||
										<PencilOutline size="16" />
 | 
			
		||||
									</button>
 | 
			
		||||
									<button
 | 
			
		||||
										on:click={() => (deleteKey = key)}
 | 
			
		||||
										class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700  rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
										class="bg-immich-primary dark:bg-immich-dark-primary text-gray-100 dark:text-gray-700 rounded-full p-3 transition-all duration-150 hover:bg-immich-primary/75"
 | 
			
		||||
									>
 | 
			
		||||
										<TrashCanOutline size="16" />
 | 
			
		||||
									</button>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user