diff --git a/frontend/src/components/shared/Blob.vue b/frontend/src/components/shared/Blob.vue index 40edebf39..02c987b34 100644 --- a/frontend/src/components/shared/Blob.vue +++ b/frontend/src/components/shared/Blob.vue @@ -95,7 +95,7 @@
+
+
+
{{ formatBytes(size) }}
+
+
+

+ {{ $t('shared.tooLargeFile') }} + {{ $t('shared.tooLargeFile2') }} + + {{ $t('shared.tooLargeFile3') }} +

+
+
{ + const url = `/${prefixPath}/${props.namespacePath}/download/${path.value}?ref=${props.currentBranch}` + + try { + const { data, error } = await useFetchApi(url).blob() + + if (error.value) { + ElMessage({ + message: error.value.msg, + type: 'warning' + }) + } else { + const downloadUrl = window.URL.createObjectURL(data.value) + createAndClickAnchor(downloadUrl, path.value) + } + } catch (error) { + console.error(error) + } + } + onMounted(() => { fetchFileContent() }) diff --git a/frontend/src/components/user_settings/AccessTokenSettings.vue b/frontend/src/components/user_settings/AccessTokenSettings.vue index d1de7a3ef..04e84e1b6 100644 --- a/frontend/src/components/user_settings/AccessTokenSettings.vue +++ b/frontend/src/components/user_settings/AccessTokenSettings.vue @@ -6,7 +6,7 @@ class="max-w-[411px] md:mb-[24px]" :name="profileName" > -
+

diff --git a/frontend/src/components/user_settings/SshKeySettings.vue b/frontend/src/components/user_settings/SshKeySettings.vue index 64b631891..34497dd8d 100644 --- a/frontend/src/components/user_settings/SshKeySettings.vue +++ b/frontend/src/components/user_settings/SshKeySettings.vue @@ -7,7 +7,7 @@ :name="name" > -
+

SSH Keys