diff --git a/Makefile b/Makefile index 259759c2b6..3dcdf0806f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ dev: rm -rf ./server/dist && docker-compose -f ./docker/docker-compose.dev.yml up --remove-orphans +dev-new: + rm -rf ./server/dist && docker compose -f ./docker/docker-compose.dev.yml up --remove-orphans + dev-update: rm -rf ./server/dist && docker-compose -f ./docker/docker-compose.dev.yml up --build -V --remove-orphans diff --git a/web/src/app.css b/web/src/app.css index 5ea02ea1d9..05b6772e32 100644 --- a/web/src/app.css +++ b/web/src/app.css @@ -6,85 +6,86 @@ @tailwind utilities; :root { - font-family: 'Work Sans', sans-serif; - /* --immich-icon-button-hover-color: #d3d3d3; */ + font-family: 'Work Sans', sans-serif; + /* --immich-icon-button-hover-color: #d3d3d3; */ } html { - height: 100%; - width: 100%; + height: 100%; + width: 100%; } html::-webkit-scrollbar { - width: 8px; + width: 8px; } /* Track */ html::-webkit-scrollbar-track { - background: #f1f1f1; - border-radius: 16px; + background: #f1f1f1; + border-radius: 16px; } /* Handle */ html::-webkit-scrollbar-thumb { - background: rgba(85, 86, 87, 0.408); - border-radius: 16px; + background: rgba(85, 86, 87, 0.408); + border-radius: 16px; } /* Handle on hover */ html::-webkit-scrollbar-thumb:hover { - background: #4250afad; - border-radius: 16px; + background: #4250afad; + border-radius: 16px; } body { - /* min-height: 100vh; */ - margin: 0; - background-color: #f6f8fe; - color: #5f6368; + /* min-height: 100vh; */ + margin: 0; + background-color: #f6f8fe; + color: #5f6368; } input:focus-visible { - outline-offset: 0px !important; - outline: none !important; + outline-offset: 0px !important; + outline: none !important; } + @layer utilities { - .immich-form-input { - @apply bg-slate-100 p-2 rounded-md focus:border-immich-primary text-sm; - } + .immich-form-input { + @apply bg-slate-100 p-2 rounded-md focus:border-immich-primary text-sm ; + } - .immich-form-label { - @apply font-medium text-sm text-gray-500; - } + .immich-form-label { + @apply font-medium text-sm text-gray-500; + } - .immich-btn-primary { - @apply bg-immich-primary text-gray-100 border rounded-xl py-2 px-4 transition-all duration-150 hover:bg-immich-primary hover:shadow-lg text-sm font-medium; - } + .immich-btn-primary { + @apply bg-immich-primary text-gray-100 border rounded-xl py-2 px-4 transition-all duration-150 hover:bg-immich-primary hover:shadow-lg text-sm font-medium; + } - .immich-text-button { - @apply flex place-items-center place-content-center gap-2 hover:bg-immich-primary/5 p-2 rounded-lg font-medium; - } + .immich-text-button { + @apply flex place-items-center place-content-center gap-2 hover:bg-immich-primary/5 p-2 rounded-lg font-medium; + } - /* width */ - .immich-scrollbar::-webkit-scrollbar { - width: 8px; - } + /* width */ + .immich-scrollbar::-webkit-scrollbar { + width: 8px; + } - /* Track */ - .immich-scrollbar::-webkit-scrollbar-track { - background: #f1f1f1; - border-radius: 16px; - } + /* Track */ + .immich-scrollbar::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 16px; + } - /* Handle */ - .immich-scrollbar::-webkit-scrollbar-thumb { - background: rgba(85, 86, 87, 0.408); - border-radius: 16px; - } + /* Handle */ + .immich-scrollbar::-webkit-scrollbar-thumb { + background: rgba(85, 86, 87, 0.408); + border-radius: 16px; + } - /* Handle on hover */ - .immich-scrollbar::-webkit-scrollbar-thumb:hover { - background: #4250afad; - border-radius: 16px; - } + /* Handle on hover */ + .immich-scrollbar::-webkit-scrollbar-thumb:hover { + background: #4250afad; + border-radius: 16px; + } } diff --git a/web/src/lib/components/admin-page/user-management.svelte b/web/src/lib/components/admin-page/user-management.svelte index 62d60f8ffc..7728e23119 100644 --- a/web/src/lib/components/admin-page/user-management.svelte +++ b/web/src/lib/components/admin-page/user-management.svelte @@ -31,6 +31,9 @@ {user.lastName} - + diff --git a/web/src/lib/components/forms/create-user-form.svelte b/web/src/lib/components/forms/create-user-form.svelte index dff83a7d37..b1135028c4 100644 --- a/web/src/lib/components/forms/create-user-form.svelte +++ b/web/src/lib/components/forms/create-user-form.svelte @@ -1,122 +1,122 @@ -
-
- immich-logo -

Create new user

-

- Please provide your user with the password, they will have to change it on their first sign - in. -

-
+
+
+ immich-logo +

Create new user

+

+ Please provide your user with the password, they will have to change it on their first sign + in. +

+
-
-
- - -
+ +
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
- {#if error} -

{error}

- {/if} + {#if error} +

{error}

+ {/if} - {#if success} -

{success}

- {/if} -
- -
-
+ {#if success} +

{success}

+ {/if} +
+ +
+
diff --git a/web/src/lib/components/forms/edit-user-form.svelte b/web/src/lib/components/forms/edit-user-form.svelte new file mode 100644 index 0000000000..83b2a4ba79 --- /dev/null +++ b/web/src/lib/components/forms/edit-user-form.svelte @@ -0,0 +1,103 @@ + + +
+
+ + +

Edit user

+
+ +
+
+ + +
+ + +
+ + +
+ +
+ + +
+ + + {#if error} +

{error}

+ {/if} + + {#if success} +

{success}

+ {/if} +
+ + +
+
+
diff --git a/web/src/routes/admin/index.svelte b/web/src/routes/admin/index.svelte index c7e523db13..8220a7c3f7 100644 --- a/web/src/routes/admin/index.svelte +++ b/web/src/routes/admin/index.svelte @@ -1,114 +1,181 @@ - Administration - Immich + Administration - Immich - + {#if shouldShowCreateUserForm} - (shouldShowCreateUserForm = false)}> -
- -
-
+ (shouldShowCreateUserForm = false)}> + + {/if} +{#if shouldShowEditUserForm} + (shouldShowEditUserForm = false)}> + + +{/if} + +{#if shouldShowInfoPanel} + (shouldShowInfoPanel = false)}> + +
+

Password reset success

+ +

+ The user's password has been reset to the default password +
+ Please inform the user, and they will need to change the password at the next log-on. +

+ +
+ +
+
+
+{/if} + +
-
- +
+ -
- -
-
-
-
-

{selectedAction}

-
-
+
+ +
+
+
+
+

{selectedAction}

+
+
+ + +
+
+ {#if selectedAction === AdminSideBarSelection.USER_MANAGEMENT} + (shouldShowCreateUserForm = true)} + on:edit-user={editUserHandler} + /> + {/if} +
+
+
-
-
- {#if selectedAction === AdminSideBarSelection.USER_MANAGEMENT} - (shouldShowCreateUserForm = true)} /> - {/if} -
-
-
diff --git a/web/src/routes/index.svelte b/web/src/routes/index.svelte index 188547b830..58bd979bdc 100644 --- a/web/src/routes/index.svelte +++ b/web/src/routes/index.svelte @@ -1,56 +1,58 @@ - Welcome 🎉 - Immich - + Welcome 🎉 - Immich +
-
-
- immich-logo -
-

Welcome to IMMICH Web

- -
+
+
+ immich-logo +
+

Welcome to IMMICH Web

+ +
diff --git a/web/src/routes/sharing/index.svelte b/web/src/routes/sharing/index.svelte index 1e9f923259..affd3710e1 100644 --- a/web/src/routes/sharing/index.svelte +++ b/web/src/routes/sharing/index.svelte @@ -1,119 +1,120 @@ - Albums - Immich + Albums - Immich
- {}} /> + {}}/>
- + -
-
- -
-
-

Sharing

-
+
+
+ +
+
+

Sharing

+
-
- -
-
+

Create shared album

+ +
+
-
-
-
+
+
+
- -
- {#each sharedAlbums as album} - - - {/each} -
+ +
+ {#each sharedAlbums as album} + + + + {/each} +
- - {#if sharedAlbums.length === 0} -
- Empty shared album -

- Create a shared album to share photos and videos with people in your network -

-
- {/if} - - + + {#if sharedAlbums.length === 0} +
+ Empty shared album +

+ Create a shared album to share photos and videos with people in your network +

+
+ {/if} + +