@futo-org/backups-orchestrator-ui 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/backends/BackendItem.svelte +17 -13
- package/dist/components/backends/BackendsList.svelte +4 -3
- package/dist/components/backends/dialogs/CreateLocalBackendModal.svelte +6 -5
- package/dist/components/backends/dialogs/OAuthDeviceFlowModal.svelte +3 -2
- package/dist/components/backends/dialogs/SelectBackendModal.svelte +7 -6
- package/dist/components/backups/BackupItem.svelte +13 -12
- package/dist/components/backups/BackupStatus.svelte +45 -40
- package/dist/components/backups/BackupsList.svelte +6 -5
- package/dist/components/backups/dialogs/ConfigureRepositoryModal.svelte +9 -8
- package/dist/components/backups/dialogs/CreateRepositoryModal.svelte +8 -4
- package/dist/components/backups/dialogs/ImportRepositoryModal.svelte +5 -4
- package/dist/components/backups/dialogs/ReconfigureRepositoryBackendModal.svelte +3 -3
- package/dist/components/backups/dialogs/RestoreSnapshotModal.svelte +16 -15
- package/dist/components/backups/dialogs/RollbackSnapshotModal.svelte +9 -8
- package/dist/components/backups/dialogs/SelectRepositoryModal.svelte +13 -7
- package/dist/components/backups/dialogs/ViewStatusModal.svelte +50 -19
- package/dist/components/backups/metrics-history/MetricsHistoryModal.svelte +37 -21
- package/dist/components/backups/run-history/RepositoryRunHistory.svelte +4 -3
- package/dist/components/backups/run-history/RepositoryRunHistoryItem.svelte +32 -12
- package/dist/components/backups/run-history/RepositoryRunHistoryPage.svelte +16 -14
- package/dist/components/backups/run-history/RunHistoryModal.svelte +5 -1
- package/dist/components/backups/snapshots-list/RepositorySnapshotsList.svelte +5 -4
- package/dist/components/backups/snapshots-list/RepositorySnapshotsListItem.svelte +15 -5
- package/dist/components/backups/snapshots-list/RepositorySnapshotsPage.svelte +7 -6
- package/dist/components/backups/snapshots-list/SnapshotsListModal.svelte +5 -1
- package/dist/components/dashboard/DashboardAvgBackupTime.svelte +2 -1
- package/dist/components/dashboard/DashboardBackupHealth.svelte +14 -10
- package/dist/components/dashboard/DashboardCurrentUsage.svelte +2 -1
- package/dist/components/dashboard/DashboardDailyBackupTime.svelte +2 -1
- package/dist/components/dashboard/DashboardInstall.svelte +3 -2
- package/dist/components/dashboard/DashboardRecentBackups.svelte +9 -4
- package/dist/components/dashboard/DashboardTotalStored.svelte +7 -2
- package/dist/components/integrations/immich/ImmichBackupSettingsPage.svelte +2 -0
- package/dist/components/integrations/immich/ImmichBackupsAdminNavButton.svelte +2 -1
- package/dist/components/integrations/immich/ImmichBackupsSidebarItem.svelte +22 -14
- package/dist/components/integrations/immich/ImmichDatabaseDumpAlert.svelte +43 -0
- package/dist/components/integrations/immich/ImmichDatabaseDumpAlert.svelte.d.ts +18 -0
- package/dist/components/integrations/immich/ImmichManageBackupOverview.svelte +15 -14
- package/dist/components/integrations/immich/ImmichManageBackupPage.svelte +5 -2
- package/dist/components/integrations/immich/ImmichOnboardingSetupFlow.svelte +2 -1
- package/dist/components/integrations/immich/settings/ImmichSettingsBackupContents.svelte +32 -31
- package/dist/components/integrations/immich/settings/ImmichSettingsBandwidth.svelte +140 -0
- package/dist/components/integrations/immich/settings/ImmichSettingsBandwidth.svelte.d.ts +3 -0
- package/dist/components/integrations/immich/settings/ImmichSettingsSchedule.svelte +16 -15
- package/dist/components/integrations/immich/settings/ImmichSettingsStorage.svelte +19 -18
- package/dist/components/onboarding/OnboardingBootstrapError.svelte +5 -4
- package/dist/components/onboarding/OnboardingLogin.svelte +4 -4
- package/dist/components/onboarding/RecoveryKeyDisplay.svelte +5 -4
- package/dist/components/onboarding/SampleOnboarding.svelte +4 -3
- package/dist/components/onboarding/dialogs/BackupsRecoveryKeyModal.svelte +4 -3
- package/dist/components/onboarding/restore-point-flow/RestorePointFlow.svelte +2 -1
- package/dist/components/onboarding/restore-point-flow/RestorePointFlow2SelectSnapshot.svelte +8 -4
- package/dist/components/onboarding/restore-point-flow/RestorePointFlow3ConfirmRestore.svelte +9 -8
- package/dist/components/onboarding/restore-point-flow/RestorePointFlow4Restore.svelte +2 -1
- package/dist/components/onboarding/stages/OnboardingStageBackupServices.svelte +9 -6
- package/dist/components/onboarding/stages/OnboardingStageKeyImport.svelte +6 -5
- package/dist/components/onboarding/stages/OnboardingStageTelemetry.svelte +6 -7
- package/dist/components/onboarding/steps/OnboardingStep1FinishSetup.svelte +12 -11
- package/dist/components/onboarding/steps/OnboardingStep2ConnectAccount.svelte +13 -12
- package/dist/components/onboarding/steps/OnboardingStep3SaveRecoveryKey.svelte +5 -4
- package/dist/components/onboarding/steps/OnboardingStep4FirstBackup.svelte +8 -8
- package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte +11 -14
- package/dist/components/onboarding/upsell/UpsellBackupFeaturesGrid.svelte.d.ts +2 -17
- package/dist/components/onboarding/upsell/UpsellExplainFutoBackups.svelte +10 -5
- package/dist/components/onboarding/upsell/UpsellFrequentlyAskedQuestions.svelte +2 -1
- package/dist/components/onboarding/upsell/UpsellFutoBackupsBadge.svelte +2 -1
- package/dist/components/onboarding/upsell/UpsellHowItWorks.svelte +10 -10
- package/dist/components/onboarding/upsell/UpsellProtectYourImmichLibrary.svelte +14 -11
- package/dist/components/schedules/RepositoryPicker.svelte +8 -7
- package/dist/components/schedules/ScheduleItem.svelte +6 -5
- package/dist/components/schedules/ScheduleList.svelte +4 -3
- package/dist/components/schedules/dialogs/ConfigureScheduleModal.svelte +4 -3
- package/dist/components/schedules/dialogs/CreateScheduleModal.svelte +7 -3
- package/dist/components/settings/SettingsBackends.svelte +3 -2
- package/dist/components/settings/SettingsBilling.svelte +13 -12
- package/dist/components/settings/SettingsNotifications.svelte +11 -10
- package/dist/components/ui/PageLayout.svelte +3 -2
- package/dist/components/ui/Pagination.svelte +4 -3
- package/dist/components/ui/PathListField.svelte +5 -4
- package/dist/components/ui/PathPickerField.svelte +4 -3
- package/dist/components/ui/PathPickerModal.svelte +16 -13
- package/dist/components/ui/StackListItem.svelte +2 -1
- package/dist/components/util/DeviceFlowAction.svelte +3 -2
- package/dist/components/util/DeviceFlowCode.svelte +4 -3
- package/dist/components/util/RelativeTime.svelte +2 -1
- package/dist/fetch-client.d.ts +24 -0
- package/dist/fetch-client.js +25 -0
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.js +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/en-XA.d.ts +2 -0
- package/dist/locales/en-XA.js +1 -0
- package/dist/locales/en-XA.po +2198 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/en.js +1 -0
- package/dist/locales/en.po +2446 -0
- package/dist/services/backend.service.d.ts +2 -1
- package/dist/services/backend.service.js +6 -5
- package/dist/services/config.service.d.ts +17 -0
- package/dist/services/config.service.js +37 -0
- package/dist/services/deviceFlow.service.svelte.js +6 -5
- package/dist/services/filesystem.service.js +2 -1
- package/dist/services/immich.integration.service.d.ts +6 -1
- package/dist/services/immich.integration.service.js +32 -6
- package/dist/services/integrations.service.js +4 -3
- package/dist/services/log.service.svelte.js +9 -3
- package/dist/services/onboarding.service.js +8 -7
- package/dist/services/repository.service.d.ts +2 -1
- package/dist/services/repository.service.js +19 -18
- package/dist/services/runHistory.service.d.ts +2 -1
- package/dist/services/runHistory.service.js +5 -4
- package/dist/services/schedule.service.d.ts +2 -1
- package/dist/services/schedule.service.js +18 -17
- package/dist/services/session.service.js +2 -1
- package/dist/services/snapshot.service.d.ts +2 -1
- package/dist/services/snapshot.service.js +15 -14
- package/dist/services/task.service.js +3 -2
- package/dist/utils/format.js +10 -8
- package/dist/utils/handle-error.js +2 -1
- package/package.json +12 -5
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { LocalRepositoryDto } from "../../../fetch-client";
|
|
3
3
|
import { Modal, ModalBody } from "@immich/ui";
|
|
4
4
|
import RepositoryRunHistoryPage from "./RepositoryRunHistoryPage.svelte";
|
|
5
|
+
import { t } from "svelte-i18n-lingui";
|
|
5
6
|
|
|
6
7
|
type Props = {
|
|
7
8
|
repository: LocalRepositoryDto;
|
|
@@ -11,7 +12,10 @@
|
|
|
11
12
|
let { repository, onClose }: Props = $props();
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
|
-
<Modal title={
|
|
15
|
+
<Modal title={$t({
|
|
16
|
+
message: "Run History for {name}",
|
|
17
|
+
values: { name: repository.name },
|
|
18
|
+
})} size="giant" {onClose}>
|
|
15
19
|
<ModalBody>
|
|
16
20
|
<RepositoryRunHistoryPage {repository} />
|
|
17
21
|
</ModalBody>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
} from "../../../services/snapshot.service";
|
|
13
13
|
import { Button, HStack } from "@immich/ui";
|
|
14
14
|
import RepositorySnapshotsListItem from "./RepositorySnapshotsListItem.svelte";
|
|
15
|
+
import { t } from "svelte-i18n-lingui";
|
|
15
16
|
|
|
16
17
|
type Props = {
|
|
17
18
|
repository: LocalRepositoryDto;
|
|
@@ -32,12 +33,12 @@
|
|
|
32
33
|
|
|
33
34
|
<StackList>
|
|
34
35
|
{#snippet title()}
|
|
35
|
-
Snapshots
|
|
36
|
+
{$t`Snapshots`}
|
|
36
37
|
{/snippet}
|
|
37
38
|
|
|
38
39
|
{#snippet action()}
|
|
39
40
|
{#if onViewAll && query.data?.length}
|
|
40
|
-
<Button variant="ghost" size="small" onclick={onViewAll}>View all</Button>
|
|
41
|
+
<Button variant="ghost" size="small" onclick={onViewAll}>{$t`View all`}</Button>
|
|
41
42
|
{/if}
|
|
42
43
|
{/snippet}
|
|
43
44
|
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
{/each}
|
|
53
54
|
|
|
54
55
|
{#if snapshots.length === 0}
|
|
55
|
-
<StackListPlaceholder>No backups yet</StackListPlaceholder>
|
|
56
|
+
<StackListPlaceholder>{$t`No backups yet`}</StackListPlaceholder>
|
|
56
57
|
{/if}
|
|
57
58
|
{/snippet}
|
|
58
59
|
</Suspense>
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
size="small"
|
|
65
66
|
variant="outline"
|
|
66
67
|
onclick={() => handlePruneRepository(repository.id)}
|
|
67
|
-
>Clean up old backups now</Button
|
|
68
|
+
>{$t`Clean up old backups now`}</Button
|
|
68
69
|
>
|
|
69
70
|
</HStack>
|
|
70
71
|
{/if}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { FormatBytes, Icon } from "@immich/ui";
|
|
7
7
|
import { mdiHistory } from "@mdi/js";
|
|
8
8
|
import { DateTime } from "luxon";
|
|
9
|
+
import { t, plural } from "svelte-i18n-lingui";
|
|
9
10
|
|
|
10
11
|
type Props = {
|
|
11
12
|
repositoryId: string;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
|
|
16
17
|
const { repositoryId, snapshot, immich = false }: Props = $props();
|
|
17
18
|
const { Restore, Rollback, Delete } = $derived(
|
|
18
|
-
getSnapshotActions(repositoryId, snapshot, immich),
|
|
19
|
+
getSnapshotActions(repositoryId, snapshot, $t, immich),
|
|
19
20
|
);
|
|
20
21
|
|
|
21
22
|
const title = $derived(
|
|
@@ -31,15 +32,24 @@
|
|
|
31
32
|
<RelativeTime time={snapshot.time} />
|
|
32
33
|
|
|
33
34
|
{#if snapshot.summary}
|
|
34
|
-
·
|
|
35
|
-
{snapshot.summary.totalFiles
|
|
35
|
+
·
|
|
36
|
+
{$plural(snapshot.summary.totalFiles, {
|
|
37
|
+
one: "# file",
|
|
38
|
+
other: "# files",
|
|
39
|
+
})} ·
|
|
36
40
|
<FormatBytes bytes={snapshot.summary.totalBytes} />
|
|
37
41
|
|
|
38
42
|
{#if snapshot.summary.filesNew > 0}
|
|
39
|
-
· {
|
|
43
|
+
· {$t({
|
|
44
|
+
message: "{count} new",
|
|
45
|
+
values: { count: snapshot.summary.filesNew.toLocaleString() },
|
|
46
|
+
})}
|
|
40
47
|
{/if}
|
|
41
48
|
{#if snapshot.summary.filesChanged > 0}
|
|
42
|
-
· {
|
|
49
|
+
· {$t({
|
|
50
|
+
message: "{count} changed",
|
|
51
|
+
values: { count: snapshot.summary.filesChanged.toLocaleString() },
|
|
52
|
+
})}
|
|
43
53
|
{/if}
|
|
44
54
|
{/if}
|
|
45
55
|
</StackListItem>
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { mdiRadioboxBlank, mdiRadioboxMarked } from "@mdi/js";
|
|
15
15
|
import { DateTime } from "luxon";
|
|
16
16
|
import RepositorySnapshotsListItem from "./RepositorySnapshotsListItem.svelte";
|
|
17
|
+
import { msg, t } from "svelte-i18n-lingui";
|
|
17
18
|
|
|
18
19
|
type Props = {
|
|
19
20
|
repository: LocalRepositoryDto;
|
|
@@ -37,15 +38,15 @@
|
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
const sortOptions = [
|
|
40
|
-
{ newest: true, title:
|
|
41
|
-
{ newest: false, title:
|
|
41
|
+
{ newest: true, title: msg`Newest first` },
|
|
42
|
+
{ newest: false, title: msg`Oldest first` },
|
|
42
43
|
];
|
|
43
44
|
|
|
44
45
|
const sort = $derived({
|
|
45
|
-
label: newestFirst ?
|
|
46
|
+
label: newestFirst ? $t`Newest first` : $t`Oldest first`,
|
|
46
47
|
items: sortOptions.map(
|
|
47
48
|
(option): ActionItem => ({
|
|
48
|
-
title: option.title,
|
|
49
|
+
title: $t(option.title),
|
|
49
50
|
icon: newestFirst === option.newest
|
|
50
51
|
? mdiRadioboxMarked
|
|
51
52
|
: mdiRadioboxBlank,
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
<OnEvents {onRunUpdate} />
|
|
94
95
|
|
|
95
96
|
<Stack gap={4}>
|
|
96
|
-
<ListToolbar placeholder=
|
|
97
|
+
<ListToolbar placeholder={$t`Search snapshots`} {search} {onSearch} {sort} />
|
|
97
98
|
|
|
98
99
|
<StackList>
|
|
99
100
|
<Suspense {query}>
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
{/each}
|
|
107
108
|
|
|
108
109
|
{#if filtered.length === 0}
|
|
109
|
-
<StackListPlaceholder>No snapshots found</StackListPlaceholder>
|
|
110
|
+
<StackListPlaceholder>{$t`No snapshots found`}</StackListPlaceholder>
|
|
110
111
|
{/if}
|
|
111
112
|
</Suspense>
|
|
112
113
|
</StackList>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { LocalRepositoryDto } from "../../../fetch-client";
|
|
3
3
|
import { Modal, ModalBody } from "@immich/ui";
|
|
4
4
|
import RepositorySnapshotsPage from "./RepositorySnapshotsPage.svelte";
|
|
5
|
+
import { t } from "svelte-i18n-lingui";
|
|
5
6
|
|
|
6
7
|
type Props = {
|
|
7
8
|
repository: LocalRepositoryDto;
|
|
@@ -11,7 +12,10 @@
|
|
|
11
12
|
let { repository, onClose }: Props = $props();
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
|
-
<Modal title={
|
|
15
|
+
<Modal title={$t({
|
|
16
|
+
message: "Snapshots for {name}",
|
|
17
|
+
values: { name: repository.name },
|
|
18
|
+
})} size="giant" {onClose}>
|
|
15
19
|
<ModalBody>
|
|
16
20
|
<RepositorySnapshotsPage {repository} />
|
|
17
21
|
</ModalBody>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { LocalRepositoryDto } from "../../fetch-client";
|
|
3
3
|
import { formatDuration } from "../../utils/format";
|
|
4
4
|
import { Card, CardBody } from "@immich/ui";
|
|
5
|
+
import { t } from "svelte-i18n-lingui";
|
|
5
6
|
import VisualisationGauge from "../ui/VisualisationGauge.svelte";
|
|
6
7
|
|
|
7
8
|
type Props = {
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
<Card class="border-primary-100 shadow-none">
|
|
28
29
|
<CardBody>
|
|
29
30
|
<VisualisationGauge
|
|
30
|
-
title=
|
|
31
|
+
title={$t`Avg. Backup Time`}
|
|
31
32
|
content={avgBackupTime != null ? formatDuration(avgBackupTime) : "—"}
|
|
32
33
|
/>
|
|
33
34
|
</CardBody>
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import { getProvider } from "../../providers";
|
|
12
12
|
import { getBackupOutcome } from "../../utils/backup-status";
|
|
13
13
|
import VisualisationSegmentedBar from "../ui/VisualisationSegmentedBar.svelte";
|
|
14
|
+
import { t } from "svelte-i18n-lingui";
|
|
14
15
|
|
|
15
16
|
type Props = {
|
|
16
17
|
repositories: LocalRepositoryDto[];
|
|
@@ -64,52 +65,55 @@
|
|
|
64
65
|
<Card class="border-primary-100 shadow-none">
|
|
65
66
|
<CardHeader>
|
|
66
67
|
<HStack class="justify-between">
|
|
67
|
-
<CardTitle>Your Backups</CardTitle>
|
|
68
|
+
<CardTitle>{$t`Your Backups`}</CardTitle>
|
|
68
69
|
{#if onViewBackups}
|
|
69
70
|
<Button variant="outline" size="tiny" onclick={onViewBackups}>
|
|
70
|
-
View all
|
|
71
|
+
{$t`View all`}
|
|
71
72
|
</Button>
|
|
72
73
|
{/if}
|
|
73
74
|
</HStack>
|
|
74
75
|
</CardHeader>
|
|
75
76
|
<CardBody>
|
|
76
77
|
<VisualisationSegmentedBar
|
|
77
|
-
title=
|
|
78
|
-
summary=
|
|
78
|
+
title={$t`Backup Health`}
|
|
79
|
+
summary={$t({
|
|
80
|
+
message: "{successful} of {total} successful",
|
|
81
|
+
values: { successful: status.success, total },
|
|
82
|
+
})}
|
|
79
83
|
segments={[
|
|
80
84
|
{
|
|
81
85
|
value: status.success,
|
|
82
|
-
label:
|
|
86
|
+
label: $t`Successful`,
|
|
83
87
|
color: "var(--immich-ui-success-500)",
|
|
84
88
|
badge: "success",
|
|
85
89
|
},
|
|
86
90
|
{
|
|
87
91
|
value: status.incomplete,
|
|
88
|
-
label:
|
|
92
|
+
label: $t`In-progress or incomplete`,
|
|
89
93
|
color: "var(--immich-ui-info-400)",
|
|
90
94
|
badge: "info",
|
|
91
95
|
},
|
|
92
96
|
{
|
|
93
97
|
value: status.offline,
|
|
94
|
-
label:
|
|
98
|
+
label: $t`Offline`,
|
|
95
99
|
color: "var(--immich-ui-warning-500)",
|
|
96
100
|
badge: "warning",
|
|
97
101
|
},
|
|
98
102
|
{
|
|
99
103
|
value: status.warned,
|
|
100
|
-
label:
|
|
104
|
+
label: $t`With warnings`,
|
|
101
105
|
color: "var(--immich-ui-warning-500)",
|
|
102
106
|
badge: "warning",
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
value: status.failed,
|
|
106
|
-
label:
|
|
110
|
+
label: $t`Failed`,
|
|
107
111
|
color: "var(--immich-ui-danger-500)",
|
|
108
112
|
badge: "danger",
|
|
109
113
|
},
|
|
110
114
|
{
|
|
111
115
|
value: status.neverRun,
|
|
112
|
-
label:
|
|
116
|
+
label: $t`Never Run`,
|
|
113
117
|
color: "var(--immich-ui-light-400)",
|
|
114
118
|
badge: "secondary",
|
|
115
119
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Card, CardBody } from "@immich/ui";
|
|
3
|
+
import { t } from "svelte-i18n-lingui";
|
|
3
4
|
import VisualisationGauge from "../ui/VisualisationGauge.svelte";
|
|
4
5
|
</script>
|
|
5
6
|
|
|
6
7
|
<Card class="border-primary-100 shadow-none">
|
|
7
8
|
<CardBody>
|
|
8
|
-
<VisualisationGauge title=
|
|
9
|
+
<VisualisationGauge title={$t`Current Usage`} content="$-/mo" />
|
|
9
10
|
</CardBody>
|
|
10
11
|
</Card>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { LocalRepositoryDto } from "../../fetch-client";
|
|
3
3
|
import { formatDuration } from "../../utils/format";
|
|
4
4
|
import { Card, CardBody } from "@immich/ui";
|
|
5
|
+
import { t } from "svelte-i18n-lingui";
|
|
5
6
|
import VisualisationGauge from "../ui/VisualisationGauge.svelte";
|
|
6
7
|
|
|
7
8
|
type Props = {
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
<Card class="border-primary-100 shadow-none">
|
|
25
26
|
<CardBody>
|
|
26
27
|
<VisualisationGauge
|
|
27
|
-
title=
|
|
28
|
+
title={$t`Daily Backup Time`}
|
|
28
29
|
content={dailyBackupTime != null ? formatDuration(dailyBackupTime) : "—"}
|
|
29
30
|
/>
|
|
30
31
|
</CardBody>
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Button, Card, CardBody, CardHeader, CardTitle, Logo } from "@immich/ui";
|
|
3
|
+
import { t } from "svelte-i18n-lingui";
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
6
|
<Card class="border-primary-100 shadow-none">
|
|
6
7
|
<CardHeader>
|
|
7
|
-
<CardTitle>Install FUTO Backups</CardTitle>
|
|
8
|
+
<CardTitle>{$t`Install FUTO Backups`}</CardTitle>
|
|
8
9
|
</CardHeader>
|
|
9
10
|
<CardBody>
|
|
10
11
|
<Button href="https://my.immich.app/link?target=backups" variant="outline" size="small">
|
|
11
12
|
<Logo variant="icon" size="tiny" />
|
|
12
|
-
Setup on Immich
|
|
13
|
+
{$t`Setup on Immich`}
|
|
13
14
|
</Button>
|
|
14
15
|
</CardBody>
|
|
15
16
|
</Card>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import StackListPlaceholder from "../ui/StackListPlaceholder.svelte";
|
|
14
14
|
import StackListItem from "../ui/StackListItem.svelte";
|
|
15
15
|
import RelativeTime from "../util/RelativeTime.svelte";
|
|
16
|
+
import { t } from "svelte-i18n-lingui";
|
|
16
17
|
|
|
17
18
|
type Props = {
|
|
18
19
|
repositories: LocalRepositoryDto[];
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
? []
|
|
38
39
|
: [
|
|
39
40
|
{
|
|
40
|
-
title:
|
|
41
|
+
title: $t`View history`,
|
|
41
42
|
icon: mdiHistory,
|
|
42
43
|
onAction: () =>
|
|
43
44
|
void modalManager.open(MetricsHistoryModal, { repository }),
|
|
@@ -47,12 +48,12 @@
|
|
|
47
48
|
|
|
48
49
|
<StackList>
|
|
49
50
|
{#snippet title()}
|
|
50
|
-
Recent backups
|
|
51
|
+
{$t`Recent backups`}
|
|
51
52
|
{/snippet}
|
|
52
53
|
|
|
53
54
|
{#if recentAttempts.length === 0}
|
|
54
55
|
<StackListPlaceholder>
|
|
55
|
-
Completed backups will appear here once your first backup runs
|
|
56
|
+
{$t`Completed backups will appear here once your first backup runs.`}
|
|
56
57
|
</StackListPlaceholder>
|
|
57
58
|
{/if}
|
|
58
59
|
|
|
@@ -69,7 +70,11 @@
|
|
|
69
70
|
<Icon icon={failed ? mdiCloudOffOutline : mdiCloudCheckOutline} />
|
|
70
71
|
{/snippet}
|
|
71
72
|
|
|
72
|
-
{failed
|
|
73
|
+
{failed
|
|
74
|
+
? $t`Attempted`
|
|
75
|
+
: outcome === "warn"
|
|
76
|
+
? $t`Backed up with warnings`
|
|
77
|
+
: $t`Backed up`}
|
|
73
78
|
<RelativeTime time={repository.metrics.lastBackup!} />
|
|
74
79
|
</StackListItem>
|
|
75
80
|
{/each}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { LocalRepositoryDto } from "../../fetch-client";
|
|
3
3
|
import { Badge, Card, CardBody, getByteUnitString } from "@immich/ui";
|
|
4
4
|
import VisualisationGauge from "../ui/VisualisationGauge.svelte";
|
|
5
|
+
import { t } from "svelte-i18n-lingui";
|
|
5
6
|
|
|
6
7
|
type Props = {
|
|
7
8
|
repositories: LocalRepositoryDto[];
|
|
@@ -21,11 +22,15 @@
|
|
|
21
22
|
<Card class="border-primary-100 shadow-none">
|
|
22
23
|
<CardBody>
|
|
23
24
|
<VisualisationGauge
|
|
24
|
-
title=
|
|
25
|
+
title={$t`Total Stored`}
|
|
25
26
|
content={getByteUnitString(totalStored)}
|
|
26
27
|
>
|
|
27
28
|
{#snippet subtitle()}
|
|
28
|
-
<Badge size="tiny"
|
|
29
|
+
<Badge size="tiny"
|
|
30
|
+
>{$t({
|
|
31
|
+
message: "Estimated {size}",
|
|
32
|
+
values: { size: getByteUnitString(estimatedStored) },
|
|
33
|
+
})}</Badge
|
|
29
34
|
>
|
|
30
35
|
{/snippet}
|
|
31
36
|
</VisualisationGauge>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Container } from "@immich/ui";
|
|
3
3
|
import ImmichConfiguredGate from "./ImmichConfiguredGate.svelte";
|
|
4
4
|
import ImmichSettingsBackupContents from "./settings/ImmichSettingsBackupContents.svelte";
|
|
5
|
+
import ImmichSettingsBandwidth from "./settings/ImmichSettingsBandwidth.svelte";
|
|
5
6
|
import ImmichSettingsSchedule from "./settings/ImmichSettingsSchedule.svelte";
|
|
6
7
|
import ImmichSettingsStorage from "./settings/ImmichSettingsStorage.svelte";
|
|
7
8
|
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
<Container size="large" center>
|
|
18
19
|
<ImmichSettingsBackupContents />
|
|
19
20
|
<ImmichSettingsSchedule />
|
|
21
|
+
<ImmichSettingsBandwidth />
|
|
20
22
|
<ImmichSettingsStorage />
|
|
21
23
|
</Container>
|
|
22
24
|
{/snippet}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { page } from "$app/state";
|
|
8
8
|
import { Icon, Text } from "@immich/ui";
|
|
9
9
|
import { mdiCloudUpload, mdiCloudUploadOutline } from "@mdi/js";
|
|
10
|
+
import { t } from "svelte-i18n-lingui";
|
|
10
11
|
|
|
11
12
|
type Props = {
|
|
12
13
|
href: string;
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
color={configured && !active ? undefined : "primary"}
|
|
47
48
|
class="flex-1 truncate"
|
|
48
49
|
>
|
|
49
|
-
{configured ?
|
|
50
|
+
{configured ? $t`Backups` : $t`Set up Backups`}
|
|
50
51
|
</Text>
|
|
51
52
|
</a>
|
|
52
53
|
</div>
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
} from "../../../services/immich.integration.service";
|
|
8
8
|
import { HStack, Icon, LoadingSpinner, Text } from "@immich/ui";
|
|
9
9
|
import {
|
|
10
|
+
mdiAlertCircleOutline,
|
|
10
11
|
mdiChevronRight,
|
|
11
12
|
mdiCloudAlertOutline,
|
|
12
13
|
mdiCloudCheckVariantOutline,
|
|
13
14
|
mdiCloudOffOutline,
|
|
14
15
|
mdiCloudUploadOutline,
|
|
15
16
|
} from "@mdi/js";
|
|
17
|
+
import { t } from "svelte-i18n-lingui";
|
|
16
18
|
|
|
17
19
|
type Color = "primary" | "secondary" | "success" | "warning" | "danger";
|
|
18
20
|
|
|
@@ -29,6 +31,10 @@
|
|
|
29
31
|
const configured = $derived(status.kind !== "unconfigured");
|
|
30
32
|
|
|
31
33
|
const appearance = $derived.by(() => {
|
|
34
|
+
if (backup.needsAttention) {
|
|
35
|
+
return { color: "warning", icon: mdiAlertCircleOutline } as const;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
switch (status.kind) {
|
|
33
39
|
case "loading": {
|
|
34
40
|
return { color: "secondary", icon: undefined } as const;
|
|
@@ -85,36 +91,38 @@
|
|
|
85
91
|
{/if}
|
|
86
92
|
|
|
87
93
|
<Text size="tiny" class="flex-1 leading-tight">
|
|
88
|
-
{#if
|
|
89
|
-
|
|
94
|
+
{#if backup.needsAttention}
|
|
95
|
+
{$t`Needs attention`}
|
|
96
|
+
{:else if status.kind === "loading"}
|
|
97
|
+
{$t`Checking backup status`}
|
|
90
98
|
{:else if status.kind === "offline"}
|
|
91
|
-
Backup service is offline
|
|
99
|
+
{$t`Backup service is offline`}
|
|
92
100
|
{:else if status.kind === "missing"}
|
|
93
|
-
Backup missing on service
|
|
101
|
+
{$t`Backup missing on service`}
|
|
94
102
|
{:else if status.kind === "running"}
|
|
95
|
-
Backing up now
|
|
103
|
+
{$t`Backing up now`}
|
|
96
104
|
{:else if status.kind === "failed"}
|
|
97
|
-
Backup failed
|
|
105
|
+
{$t`Backup failed`}
|
|
98
106
|
{:else if status.kind === "warn"}
|
|
99
|
-
Backed up with warnings <RelativeTime time={status.lastBackup} />
|
|
107
|
+
{$t`Backed up with warnings`} <RelativeTime time={status.lastBackup} />
|
|
100
108
|
{:else if status.kind === "incomplete"}
|
|
101
|
-
Backup did not complete <RelativeTime time={status.lastBackup} />
|
|
109
|
+
{$t`Backup did not complete`} <RelativeTime time={status.lastBackup} />
|
|
102
110
|
{:else if status.kind === "cancelled"}
|
|
103
|
-
Backup was cancelled <RelativeTime time={status.lastBackup} />
|
|
111
|
+
{$t`Backup was cancelled`} <RelativeTime time={status.lastBackup} />
|
|
104
112
|
{:else if status.kind === "paused"}
|
|
105
|
-
Backups paused
|
|
113
|
+
{$t`Backups paused`}
|
|
106
114
|
{:else if status.kind === "unconfigured"}
|
|
107
|
-
Not backed up
|
|
115
|
+
{$t`Not backed up`}
|
|
108
116
|
{:else if status.kind === "complete"}
|
|
109
|
-
Last backup <RelativeTime time={status.lastBackup} />
|
|
117
|
+
{$t`Last backup`} <RelativeTime time={status.lastBackup} />
|
|
110
118
|
{:else}
|
|
111
|
-
Finish setting up backups
|
|
119
|
+
{$t`Finish setting up backups`}
|
|
112
120
|
{/if}
|
|
113
121
|
</Text>
|
|
114
122
|
|
|
115
123
|
<HStack gap={0}>
|
|
116
124
|
{#if !configured}
|
|
117
|
-
<Text size="tiny" color="primary" class="shrink-0">Set up</Text>
|
|
125
|
+
<Text size="tiny" color="primary" class="shrink-0">{$t`Set up`}</Text>
|
|
118
126
|
{/if}
|
|
119
127
|
|
|
120
128
|
<Icon
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
useConfigureImmichDatabaseDump,
|
|
4
|
+
useIgnoreImmichDatabaseDumpWarning,
|
|
5
|
+
useImmichBackupStatus,
|
|
6
|
+
} from "../../../services/immich.integration.service";
|
|
7
|
+
import { Alert, Button, HStack, Stack, Text } from "@immich/ui";
|
|
8
|
+
import { t } from "svelte-i18n-lingui";
|
|
9
|
+
|
|
10
|
+
const backup = useImmichBackupStatus();
|
|
11
|
+
const configure = useConfigureImmichDatabaseDump();
|
|
12
|
+
const ignore = useIgnoreImmichDatabaseDumpWarning();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
{#if backup.needsAttention}
|
|
16
|
+
<Alert color="warning" title={$t`Immich database backups are still enabled`}>
|
|
17
|
+
<Stack gap={3}>
|
|
18
|
+
<Text size="small">
|
|
19
|
+
{$t`FUTO Backups already creates the same database backups as Immich.`}
|
|
20
|
+
<br />
|
|
21
|
+
{$t`Most users should select "use FUTO Backups only".`}
|
|
22
|
+
</Text>
|
|
23
|
+
<HStack gap={2}>
|
|
24
|
+
<Button
|
|
25
|
+
size="small"
|
|
26
|
+
color="primary"
|
|
27
|
+
loading={configure.isPending}
|
|
28
|
+
onclick={() => configure.mutate({ enabled: false })}
|
|
29
|
+
>
|
|
30
|
+
{$t`Use FUTO Backups only`}
|
|
31
|
+
</Button>
|
|
32
|
+
<Button
|
|
33
|
+
size="small"
|
|
34
|
+
variant="ghost"
|
|
35
|
+
loading={ignore.isPending}
|
|
36
|
+
onclick={() => ignore.mutate()}
|
|
37
|
+
>
|
|
38
|
+
{$t`Ignore`}
|
|
39
|
+
</Button>
|
|
40
|
+
</HStack>
|
|
41
|
+
</Stack>
|
|
42
|
+
</Alert>
|
|
43
|
+
{/if}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const ImmichDatabaseDumpAlert: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type ImmichDatabaseDumpAlert = InstanceType<typeof ImmichDatabaseDumpAlert>;
|
|
18
|
+
export default ImmichDatabaseDumpAlert;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
mdiStopCircleOutline,
|
|
18
18
|
} from "@mdi/js";
|
|
19
19
|
import cronstrue from "cronstrue";
|
|
20
|
+
import { t } from "svelte-i18n-lingui";
|
|
20
21
|
|
|
21
22
|
type Props = {
|
|
22
23
|
repository: LocalRepositoryDto;
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
</script>
|
|
56
57
|
|
|
57
58
|
<StackList>
|
|
58
|
-
<StackListItem title=
|
|
59
|
+
<StackListItem title={$t`Your library`} footerColor={appearance.color}>
|
|
59
60
|
{#snippet icon()}
|
|
60
61
|
<Icon icon={mdiArchiveOutline} />
|
|
61
62
|
{/snippet}
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
{#if repository.meter}
|
|
64
65
|
<FormatBytes bytes={repository.meter.sizeBytes} />
|
|
65
66
|
{:else}
|
|
66
|
-
Estimated <FormatBytes bytes={repository.metrics.sizeBytes} />
|
|
67
|
+
{$t`Estimated`} <FormatBytes bytes={repository.metrics.sizeBytes} />
|
|
67
68
|
{/if} ·
|
|
68
69
|
<span class="lowercase">
|
|
69
70
|
{cronstrue.toString(schedule.cron, { verbose: true })}
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
leadingIcon={mdiStopCircleOutline}
|
|
80
81
|
onclick={() => void handleCancelTask(repository.id)}
|
|
81
82
|
>
|
|
82
|
-
Cancel backup
|
|
83
|
+
{$t`Cancel backup`}
|
|
83
84
|
</Button>
|
|
84
85
|
{:else}
|
|
85
86
|
<Button
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
leadingIcon={mdiCloudUploadOutline}
|
|
90
91
|
onclick={() => void handleCreateBackup(repository.id)}
|
|
91
92
|
>
|
|
92
|
-
Back up now
|
|
93
|
+
{$t`Back up now`}
|
|
93
94
|
</Button>
|
|
94
95
|
{/if}
|
|
95
96
|
{/snippet}
|
|
@@ -98,25 +99,25 @@
|
|
|
98
99
|
<Icon icon={appearance.icon} />
|
|
99
100
|
|
|
100
101
|
{#if status.kind === "offline"}
|
|
101
|
-
Backup storage is offline
|
|
102
|
+
{$t`Backup storage is offline.`}
|
|
102
103
|
{:else if status.kind === "missing"}
|
|
103
|
-
Backup is missing on the service
|
|
104
|
+
{$t`Backup is missing on the service.`}
|
|
104
105
|
{:else if status.kind === "running"}
|
|
105
|
-
Backup in progress
|
|
106
|
+
{$t`Backup in progress`}
|
|
106
107
|
{:else if status.kind === "failed"}
|
|
107
|
-
Last backup failed <RelativeTime time={status.lastBackup} />
|
|
108
|
+
{$t`Last backup failed`} <RelativeTime time={status.lastBackup} />
|
|
108
109
|
{:else if status.kind === "warn"}
|
|
109
|
-
Last backup finished with warnings <RelativeTime time={status.lastBackup} />
|
|
110
|
+
{$t`Last backup finished with warnings`} <RelativeTime time={status.lastBackup} />
|
|
110
111
|
{:else if status.kind === "incomplete"}
|
|
111
|
-
Last backup did not complete <RelativeTime time={status.lastBackup} />
|
|
112
|
+
{$t`Last backup did not complete`} <RelativeTime time={status.lastBackup} />
|
|
112
113
|
{:else if status.kind === "cancelled"}
|
|
113
|
-
Last backup was cancelled <RelativeTime time={status.lastBackup} />
|
|
114
|
+
{$t`Last backup was cancelled`} <RelativeTime time={status.lastBackup} />
|
|
114
115
|
{:else if status.kind === "complete"}
|
|
115
|
-
Last backup successful <RelativeTime time={status.lastBackup} />
|
|
116
|
+
{$t`Last backup successful`} <RelativeTime time={status.lastBackup} />
|
|
116
117
|
{:else if status.kind === "paused"}
|
|
117
|
-
Backups paused
|
|
118
|
+
{$t`Backups paused`}
|
|
118
119
|
{:else}
|
|
119
|
-
Backup is yet to run
|
|
120
|
+
{$t`Backup is yet to run.`}
|
|
120
121
|
{/if}
|
|
121
122
|
{/snippet}
|
|
122
123
|
</StackListItem>
|