Skip to content

Commit

Permalink
feat: added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jul 1, 2023
1 parent 23c22f6 commit f29f9b0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script type="application/javascript" src="js/vue3-sfc-loader.js"></script>
<script type="application/javascript" src="js/login-canvas.js"></script>
<script type="application/javascript" src="simplemde/simplemde.js"></script>
<script type="application/javascript" src="https://buttons.github.io/buttons.js"></script>
<!-- <script type="module" src="/node_modules/vue/dist/vue.runtime.global.prod.js"></script>-->
<!-- <script type="module" src="/node_modules/vue-router/dist/vue-router.esm-browser.js"></script>-->
<!-- <script type="module" src="/node_modules/element-plus/dist/index.full.min.mjs"></script>-->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawlab-ui",
"version": "0.6.2-2",
"version": "0.6.2-3",
"private": false,
"author": {
"name": "Marvin Zhang",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/lang/en/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const global: LGlobal = {
upgrade: {
pro: 'Upgrade to Pro Edition',
},
docs: 'Docs',
github: 'GitHub',
};

export default global;
2 changes: 2 additions & 0 deletions src/i18n/lang/zh/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const global: LGlobal = {
upgrade: {
pro: '升级到专业版',
},
docs: '文档',
github: 'GitHub',
};

export default global;
2 changes: 2 additions & 0 deletions src/interfaces/i18n/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ export declare global {
upgrade: {
pro: string;
};
docs: string;
github: string;
}
}
20 changes: 20 additions & 0 deletions src/layouts/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,35 @@
<div class="left">
</div>
<div class="right">
<iframe
class="item"
src="https://ghbtns.com/github-btn.html?user=crawlab-team&repo=crawlab&type=star&count=true"
frameborder="0"
scrolling="0"
width="105"
height="20"
title="GitHub"
/>
<el-link
v-if="systemInfo.edition === 'global.edition.community'"
v-track="{code: 'click_header_pro'}"
class="item"
href="https://www.crawlab.cn/prices"
target="_blank"
type="warning"
>
<font-awesome-icon class="icon" :icon="['fa', 'arrow-up']"/>
{{ t('global.upgrade.pro') }}
</el-link>
<el-link
v-track="{code: 'click_header_docs'}"
class="item"
:href="`https://docs.crawlab.cn/${locale}/`"
target="_blank"
>
<font-awesome-icon class="icon" :icon="['fa', 'book']"/>
{{ t('global.docs') }}
</el-link>
<el-dropdown class="lang">
<span class="el-dropdown-link item action ">
<font-awesome-icon class="icon" :icon="['fa', 'globe']"/>
Expand Down

0 comments on commit f29f9b0

Please sign in to comment.