-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
266 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- | ||
- Copyright (c) 2023, Terwer . All rights reserved. | ||
- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
- | ||
- This code is free software; you can redistribute it and/or modify it | ||
- under the terms of the GNU General Public License version 2 only, as | ||
- published by the Free Software Foundation. Terwer designates this | ||
- particular file as subject to the "Classpath" exception as provided | ||
- by Terwer in the LICENSE file that accompanied this code. | ||
- | ||
- This code is distributed in the hope that it will be useful, but WITHOUT | ||
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
- version 2 for more details (a copy is included in the LICENSE file that | ||
- accompanied this code). | ||
- | ||
- You should have received a copy of the GNU General Public License version | ||
- 2 along with this work; if not, write to the Free Software Foundation, | ||
- Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
- | ||
- Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com | ||
- or visit www.terwer.space if you need additional information or have any | ||
- questions. | ||
--> | ||
|
||
<script setup lang="ts"> | ||
const title = "帮助文档" | ||
const seoMeta = { | ||
title: title, | ||
ogTitle: title, | ||
} as any | ||
useSeoMeta(seoMeta) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
请查看 | ||
<nuxt-link | ||
to="https://github.com/terwer/siyuan-plugin-blog/blob/dev/README_zh_CN.md#%E6%A0%B8%E5%BF%83%E7%89%B9%E8%89%B2" | ||
target="_blank" | ||
>帮助文档</nuxt-link | ||
> | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,156 @@ | ||
<script setup lang="ts"> | ||
import { useSettingStore } from "~/stores/useSettingStore" | ||
import { useRouteQuery } from "@vueuse/router" | ||
const { t } = useI18n() | ||
const { getSetting } = useSettingStore() | ||
const id = useRouteQuery("id", "") | ||
const origin = useRouteQuery("origin", "") | ||
const isSsr = useRouteQuery("isSsr", "") | ||
const basePath = String(isSsr.value) === "true" ? "/plugins/siyuan-blog" : "/plugins/siyuan-blog/#" | ||
const setting = await getSetting() | ||
const title = `${t("blog.share")} - ${t("blog.share.options")}` | ||
const seoMeta = { | ||
title: title, | ||
ogTitle: title, | ||
} as any | ||
useSeoMeta(seoMeta) | ||
// datas | ||
const formData = reactive({ | ||
shared: false, | ||
shareLink: `${origin.value}${basePath}/s/${id.value}`, | ||
}) | ||
// methods | ||
const goSetting = async () => { | ||
await navigateTo("/setting") | ||
} | ||
const goHelp = async () => { | ||
window.open("https://blog.terwer.space/docs") | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<el-input /> | ||
<el-input /> | ||
<el-input /> | ||
<el-input /> | ||
<el-button></el-button> | ||
<div id="share"> | ||
<div class="el-page-header__content share-item"> | ||
<div class="flex items-center"> | ||
<span class="share-icon"> | ||
<el-icon> | ||
<el-icon-chrome-filled /> | ||
</el-icon> | ||
</span> | ||
<span class="text-large font-600 mr-3 share-title"> {{ t("share.to.web") }} </span> | ||
<span class="text-sm mr-2 share-description" style="color: var(--el-text-color-regular)"> | ||
{{ t("share.to.web.before.tip") }} | ||
</span> | ||
<span class="item-right"> | ||
<el-switch v-model="formData.shared" /> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div class="share-item"> | ||
<div class="item-left item-copy-link"> | ||
<el-input v-model="formData.shareLink" /> | ||
</div> | ||
<div class="item-right"> | ||
<el-button type="default">{{ t("share.copy.web.link") }}</el-button> | ||
</div> | ||
</div> | ||
|
||
<div class="share-item"> | ||
<div class="item-left item-copy-link"> | ||
<el-space direction="vertical"> | ||
<el-text> | ||
{{ t("share.show.link.option") }} | ||
<el-icon> | ||
<el-icon-arrow-down /> | ||
</el-icon> | ||
</el-text> | ||
</el-space> | ||
</div> | ||
<div class="item-right"></div> | ||
</div> | ||
|
||
<div class="share-item"> | ||
<div class="expires-link expires-link-label"> | ||
{{ t("share.other.option.link.expires") }} | ||
</div> | ||
<div class="expires-link expires-link-input"> | ||
<el-input :placeholder="t('share.link.expires.time.placeholder')" /> | ||
</div> | ||
<div class="item-right"> | ||
<el-switch /> | ||
</div> | ||
</div> | ||
|
||
<div class="share-item text-center other-setting"> | ||
<div class="item-middle" @click="goSetting">{{ t("share.other.option") }}</div> | ||
</div> | ||
|
||
<div class="share-item"> | ||
<div class="item-left"> | ||
<el-space direction="vertical"> | ||
<el-text @click="goHelp"> | ||
<el-icon> | ||
<el-icon-help /> | ||
</el-icon> | ||
{{ t("share.help") }} | ||
</el-text> | ||
</el-space> | ||
</div> | ||
<!-- | ||
<div class="item-right"> | ||
<el-button :icon="Share" type="text">{{ t("share.copy.link") }}</el-button> | ||
</div> | ||
--> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> | ||
<style lang="stylus" scoped> | ||
.text-center | ||
text-align center | ||
#share | ||
.share-item | ||
padding 6px 10px | ||
&:hover, &:focus | ||
cursor pointer | ||
//border-radius 5px | ||
//border-color var(--el-border-color) | ||
//background-color var(--b3-list-hover) | ||
.share-icon | ||
vertical-align middle | ||
font-size 26px | ||
fill rgba(55, 53, 47, 0.35) | ||
.share-title | ||
font-size 16px | ||
.share-description | ||
font-size 12px | ||
.item-left | ||
display inline-block | ||
.item-copy-link | ||
width 90% | ||
::v-deep(.el-space__item) | ||
padding 0 !important | ||
.item-right | ||
display inline-block | ||
float right | ||
.item-middle | ||
display inline-block | ||
background-color transparent | ||
.expires-link | ||
display inline-block | ||
.expires-link-label | ||
margin-right 10px | ||
.expires-link-input | ||
width 84% | ||
.other-setting | ||
border-radius 4px | ||
background-color var(--b3-list-hover) | ||
//background var(--b3-theme-background) | ||
</style> |
Oops, something went wrong.