Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(cloud): clarify managed storage for free workspaces

Timothy Yin763a27dae3b4
diff --git a/apps/cloud/app/components/CloudStorageSettings.vue b/apps/cloud/app/components/CloudStorageSettings.vue
index c6d0c863..52898795 100644
--- a/apps/cloud/app/components/CloudStorageSettings.vue
+++ b/apps/cloud/app/components/CloudStorageSettings.vue
@@ -18,7 +18,9 @@ const {
<p>
{{
$t(
- 'cloud.messages.connectAPrivateS3CompatibleBucketForYourPhotographs',
+ allowance?.byosLimits.byos
+ ? 'cloud.messages.connectAPrivateS3CompatibleBucketForYourPhotographs'
+ : 'cloud.storageAllowance.managedHelp',
)
}}
</p>
@@ -42,10 +44,12 @@ const {
"
>
{{
- $t('cloud.ui.connectionRevision', {
- bucket: connection.config.bucket,
- revision: connection.current_revision,
- })
+ connection.pool_id
+ ? $t('cloud.messages.platformStorage')
+ : $t('cloud.ui.connectionRevision', {
+ bucket: connection.config.bucket,
+ revision: connection.current_revision,
+ })
}}
</option>
</select></label
diff --git a/apps/cloud/app/components/CloudUploadDrawer.vue b/apps/cloud/app/components/CloudUploadDrawer.vue
index a3bc7729..0ff08524 100644
--- a/apps/cloud/app/components/CloudUploadDrawer.vue
+++ b/apps/cloud/app/components/CloudUploadDrawer.vue
@@ -58,7 +58,12 @@ async function dropFiles(event: DragEvent) {
c.uploads_enabled !== 0 &&
(c.pool_id || allowance?.byosLimits.byos),
)
- .map((c) => ({ label: c.config.bucket, value: c.id }))
+ .map((c) => ({
+ label: c.pool_id
+ ? $t('cloud.messages.platformStorage')
+ : c.config.bucket,
+ value: c.id,
+ }))
"
class="w-full"
:disabled="uploading"
diff --git a/apps/cloud/i18n/locales/en.json b/apps/cloud/i18n/locales/en.json
index c243e0f7..3487f025 100644
--- a/apps/cloud/i18n/locales/en.json
+++ b/apps/cloud/i18n/locales/en.json
@@ -574,7 +574,8 @@
"description": "Storage is provided by your plan. Empty galleries are published automatically; uploading photographs is optional.",
"fileLimit": "Up to {size} MiB per photograph, including its paired video.",
"noCustomDomains": "Your plan does not include custom domains. Your default site address remains available.",
- "unavailable": "Platform uploads are temporarily unavailable. Your site remains published; no custom storage setup is required."
+ "unavailable": "Platform uploads are temporarily unavailable. Your site remains published; no custom storage setup is required.",
+ "managedHelp": "Your plan includes platform storage. No bucket setup is needed."
}
}
}
diff --git a/apps/cloud/i18n/locales/zh-Hans.json b/apps/cloud/i18n/locales/zh-Hans.json
index 821b5c92..879a880e 100644
--- a/apps/cloud/i18n/locales/zh-Hans.json
+++ b/apps/cloud/i18n/locales/zh-Hans.json
@@ -574,7 +574,8 @@
"description": "按套餐提供平台存储。创建站点后自动发布,上传照片不是发布前置条件。",
"fileLimit": "每张照片最大 {size} MiB(包含配对视频)",
"noCustomDomains": "当前套餐不包含自定义域名,你仍可使用站点的默认地址。",
- "unavailable": "平台上传暂不可用。你的站点仍已发布,无需配置自定义存储。"
+ "unavailable": "平台上传暂不可用。你的站点仍已发布,无需配置自定义存储。",
+ "managedHelp": "套餐已包含平台存储,无需自行配置存储桶。"
}
}
}