Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/download/DownloadDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ const dialogTab = ref(props.initialTab);
disabled>
<!-- TODO -->
</el-tab-pane>
<el-tab-pane :label="t('DownloadDetails.downloadDockerContainers')" name="docker" disabled />
<el-tab-pane
:label="t('DownloadDetails.downloadDockerContainers')"
name="docker">
<DownloadDetailsDocker />
</el-tab-pane>
<el-tab-pane :label="t('DownloadDetails.downloadVmImages')" name="vm" disabled />
</el-tabs>
</template>
18 changes: 18 additions & 0 deletions components/download/DownloadDetailsDocker.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script setup>
const { t } = useI18n();
</script>

<template>
<div class="flex flex-col gap-2">
<p>
{{ t('DownloadDetailsDocker.text1') }}
<AppLink to="https://hub.docker.com/r/aosc/aosc-os" target="_blank">Docker Hub</AppLink>
{{ t('DownloadDetailsDocker.text2') }}
</p>

<p>{{ t('DownloadDetailsDocker.text3') }}</p>
<CopyButton :content="`docker pull aosc/aosc-os`"/>
</div>
</template>

<style scoped></style>
5 changes: 5 additions & 0 deletions i18n/locales/en-us/DownloadDetailsDocker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"text1": "AOSC OS container images are published on",
"text2": "",
"text3": "Pull the image with:"
}
5 changes: 5 additions & 0 deletions i18n/locales/zh-cn/DownloadDetailsDocker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"text1": "安同 OS 的容器镜像于",
"text2": "发布",
"text3": "使用如下命令即可拉取:"
}