mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
feat: enhance Immich integration documentation and add warnings for localhost usage
This commit is contained in:
parent
a4df852744
commit
9e4846a66a
5 changed files with 16 additions and 4 deletions
|
@ -20,7 +20,7 @@ To integrate Immich with AdventureLog, you need to have an Immich server running
|
||||||
- Click `New API Key` and name it something like `AdventureLog`.
|
- Click `New API Key` and name it something like `AdventureLog`.
|
||||||
- Copy the generated API Key, you will need it in the next step.
|
- Copy the generated API Key, you will need it in the next step.
|
||||||
2. Go to the AdventureLog web interface, click on your user profile picture, go to `Settings` and scroll down to the `Immich Integration` section.
|
2. Go to the AdventureLog web interface, click on your user profile picture, go to `Settings` and scroll down to the `Immich Integration` section.
|
||||||
- Enter the URL of your Immich server, e.g. `https://immich.example.com`.
|
- Enter the URL of your Immich server, e.g. `https://immich.example.com`. Note that `localhost` or `127.0.0.1` will probably not work because Immich and AdventureLog are running on different docker networks. It is recommended to use the IP address of the server where Immich is running ex `http://my-server-ip:port` or a domain name.
|
||||||
- Paste the API Key you obtained in the previous step.
|
- Paste the API Key you obtained in the previous step.
|
||||||
- Click `Enable Immich` to save the settings.
|
- Click `Enable Immich` to save the settings.
|
||||||
3. Now, when you are adding images to an adventure, you will see an option to search for images in Immich or upload from an album.
|
3. Now, when you are adding images to an adventure, you will see an option to search for images in Immich or upload from an album.
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
<div>
|
<div>
|
||||||
<label for="content">{$t('notes.content')}</label><br />
|
<label for="content">{$t('notes.content')}</label><br />
|
||||||
{#if !isReadOnly}
|
{#if !isReadOnly}
|
||||||
<MarkdownEditor bind:text={newNote.content} editor_height={'h-32'} />
|
<MarkdownEditor bind:text={newNote.content} editor_height={'h-72'} />
|
||||||
{:else if note}
|
{:else if note}
|
||||||
<p class="text-sm text-muted-foreground" style="white-space: pre-wrap;"></p>
|
<p class="text-sm text-muted-foreground" style="white-space: pre-wrap;"></p>
|
||||||
<article
|
<article
|
||||||
|
|
|
@ -296,7 +296,7 @@ export function getRandomBackground() {
|
||||||
|
|
||||||
const newYearsStart = new Date(today.getFullYear() - 1, 11, 31);
|
const newYearsStart = new Date(today.getFullYear() - 1, 11, 31);
|
||||||
newYearsStart.setHours(0, 0, 0, 0);
|
newYearsStart.setHours(0, 0, 0, 0);
|
||||||
const newYearsEnd = new Date(today.getFullYear(), 0, 7);
|
const newYearsEnd = new Date(today.getFullYear(), 0, 2);
|
||||||
newYearsEnd.setHours(23, 59, 59, 999);
|
newYearsEnd.setHours(23, 59, 59, 999);
|
||||||
if (today >= newYearsStart && today <= newYearsEnd) {
|
if (today >= newYearsStart && today <= newYearsEnd) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -514,6 +514,8 @@
|
||||||
"api_key": "Immich API Key",
|
"api_key": "Immich API Key",
|
||||||
"enable_immich": "Enable Immich",
|
"enable_immich": "Enable Immich",
|
||||||
"update_integration": "Update Integration",
|
"update_integration": "Update Integration",
|
||||||
"immich_integration": "Immich Integration"
|
"immich_integration": "Immich Integration",
|
||||||
|
"localhost_note": "Note: localhost will most likely not work unless you have setup docker networks accordingly. It is recommended to use the IP address of the server or the domain name.",
|
||||||
|
"documentation": "Immich Integration Documentation"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -433,6 +433,11 @@
|
||||||
<div class="bg-neutral p-6 rounded-lg shadow-md">
|
<div class="bg-neutral p-6 rounded-lg shadow-md">
|
||||||
<p class="text-center text-neutral-content">
|
<p class="text-center text-neutral-content">
|
||||||
{$t('immich.immich_desc')}
|
{$t('immich.immich_desc')}
|
||||||
|
<a
|
||||||
|
class="link link-primary"
|
||||||
|
href="https://adventurelog.app/docs/configuration/immich_integration.html"
|
||||||
|
target="_blank">{$t('immich.documentation')}</a
|
||||||
|
>
|
||||||
</p>
|
</p>
|
||||||
{#if immichIntegration}
|
{#if immichIntegration}
|
||||||
<div class="flex flex-col items-center justify-center mt-1 space-y-2">
|
<div class="flex flex-col items-center justify-center mt-1 space-y-2">
|
||||||
|
@ -469,6 +474,11 @@
|
||||||
{$t('immich.api_note')}
|
{$t('immich.api_note')}
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if newImmichIntegration.server_url && (newImmichIntegration.server_url.indexOf('localhost') !== -1 || newImmichIntegration.server_url.indexOf('127.0.0.1') !== -1)}
|
||||||
|
<p class="text-s text-warning mt-2">
|
||||||
|
{$t('immich.localhost_note')}
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<label for="immich_api_key" class="text-sm font-medium text-neutral-content"
|
<label for="immich_api_key" class="text-sm font-medium text-neutral-content"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue