upd: rename file

This commit is contained in:
purocean
2022-03-07 19:08:45 +08:00
parent f1f8d8815e
commit c01cebb5d1
5 changed files with 26 additions and 26 deletions
+4 -4
View File
@@ -62,10 +62,10 @@
</div>
<template v-if="localHtml">
<div style="margin: 10px 0">
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.inlineLocalImage" type="checkbox" /> {{$t('copy-rendered-content.inline-image')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.uploadLocalImage" type="checkbox" /> {{$t('copy-rendered-content.upload-image')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.inlineStyle" type="checkbox" /> {{$t('copy-rendered-content.inline-style')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.highlightCode" type="checkbox" /> {{$t('copy-rendered-content.highlight-code')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.inlineLocalImage" type="checkbox" /> {{$t('copy-content.inline-image')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.uploadLocalImage" type="checkbox" /> {{$t('copy-content.upload-image')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.inlineStyle" type="checkbox" /> {{$t('copy-content.inline-style')}} </label>
<label style="display: block; margin-bottom: 10px;"><input v-model="convert.localHtmlOptions.highlightCode" type="checkbox" /> {{$t('copy-content.highlight-code')}} </label>
</div>
</template>
</template>
+2 -2
View File
@@ -46,7 +46,7 @@ import markdownHeadingNumber from '@fe/plugins/markdown-heading-number'
import syncScroll from '@fe/plugins/sync-scroll'
import imageLocalization from '@fe/plugins/image-localization'
import imageHostingPicgo from '@fe/plugins/image-hosting-picgo'
import copyRenderedContent from '@fe/plugins/copy-rendered-content'
import copyContent from '@fe/plugins/copy-content'
import sharePreview from '@fe/plugins/share-preview'
export default [
@@ -98,6 +98,6 @@ export default [
syncScroll,
imageLocalization,
imageHostingPicgo,
copyRenderedContent,
copyContent,
sharePreview,
]
@@ -2,7 +2,7 @@ import type { Plugin } from '@fe/context'
import type Token from 'markdown-it/lib/token'
export default {
name: 'copy-rendered-content',
name: 'copy-content',
register: (ctx) => {
const options = ctx.lib.vue.reactive({
inlineStyle: false,
@@ -24,22 +24,22 @@ export default {
}
})
return () => <div class="copy-rendered-content">
return () => <div class="copy-content">
<div>
<div class="label">{ctx.i18n.t('copy-rendered-content.type')}</div>
<div class="label">{ctx.i18n.t('copy-content.type')}</div>
<div>
<label><input v-model={options.type} type="radio" value="rtf" /> {ctx.i18n.t('copy-rendered-content.rtf')}</label>
<label><input v-model={options.type} type="radio" value="rtf" /> {ctx.i18n.t('copy-content.rtf')}</label>
<label><input v-model={options.type} type="radio" value="html" /> HTML </label>
<label><input v-model={options.type} type="radio" value="markdown" /> Markdown </label>
</div>
</div>
<div>
<div class="label">{ctx.i18n.t('copy-rendered-content.options')}</div>
<div class="label">{ctx.i18n.t('copy-content.options')}</div>
<div>
<label><input v-model={options.inlineLocalImage} type="checkbox" /> {ctx.i18n.t('copy-rendered-content.inline-image')} </label>
<label><input v-model={options.uploadLocalImage} type="checkbox" /> {ctx.i18n.t('copy-rendered-content.upload-image')} </label>
{options.type !== 'markdown' && <label><input v-model={options.inlineStyle} type="checkbox" /> {ctx.i18n.t('copy-rendered-content.inline-style')} </label>}
{options.type !== 'markdown' && <label><input v-model={options.highlightCode} type="checkbox" /> {ctx.i18n.t('copy-rendered-content.highlight-code')} </label>}
<label><input v-model={options.inlineLocalImage} type="checkbox" /> {ctx.i18n.t('copy-content.inline-image')} </label>
<label><input v-model={options.uploadLocalImage} type="checkbox" /> {ctx.i18n.t('copy-content.upload-image')} </label>
{options.type !== 'markdown' && <label><input v-model={options.inlineStyle} type="checkbox" /> {ctx.i18n.t('copy-content.inline-style')} </label>}
{options.type !== 'markdown' && <label><input v-model={options.highlightCode} type="checkbox" /> {ctx.i18n.t('copy-content.highlight-code')} </label>}
</div>
</div>
</div>
@@ -108,7 +108,7 @@ export default {
: await ctx.view.getContentHtml(options)
if (Date.now() - startedAt > 3000) {
await ctx.ui.useModal().alert({ content: ctx.i18n.t('copy-rendered-content.complete') })
await ctx.ui.useModal().alert({ content: ctx.i18n.t('copy-content.complete') })
}
if (options.type === 'rtf') {
@@ -127,7 +127,7 @@ export default {
ctx.statusBar.tapMenus(menus => {
menus['status-bar-tool']?.list?.push(
{
id: 'plugin.copy-rendered-content.copy-content',
id: 'plugin.copy-content.copy-content',
type: 'normal',
title: ctx.i18n.t('status-bar.tool.copy-content'),
onClick: () => copyContent()
@@ -136,26 +136,26 @@ export default {
})
ctx.theme.addStyles(`
.copy-rendered-content {
.copy-content {
margin-top: 20px;
}
.copy-rendered-content > div {
.copy-content > div {
padding: 4px 12px;
display: flex;
}
.copy-rendered-content > div > div {
.copy-content > div > div {
display: flex;
flex-wrap: wrap;
}
.copy-rendered-content .label {
.copy-content .label {
width: 100px;
flex: none;
}
.copy-rendered-content label {
.copy-content label {
margin-left: 12px;
white-space: nowrap;
margin-bottom: 8px;
+2 -2
View File
@@ -222,7 +222,7 @@ const data = {
'tool': 'Tool',
'convert-img-link': 'Download Remote Image',
'macro-copy-markdown': 'Copy Markdown after Macro Replacement',
'copy-content': 'Copy Rendered Content',
'copy-content': 'Copy Content',
'doc-history': 'Document History',
'share-preview': 'Share Preview',
},
@@ -483,7 +483,7 @@ const data = {
'hint': 'Input some message (optional)',
},
},
'copy-rendered-content': {
'copy-content': {
'options': 'Options: ',
'type': 'Copy Type: ',
'inline-style': 'Inline Style',
+2 -2
View File
@@ -223,7 +223,7 @@ const data: BaseLanguage = {
'tool': '工具',
'convert-img-link': '下载外链图片',
'macro-copy-markdown': '复制宏替换后的 Markdown',
'copy-content': '复制渲染内容',
'copy-content': '复制内容',
'doc-history': '文档历史版本',
'share-preview': '分享预览',
},
@@ -484,7 +484,7 @@ const data: BaseLanguage = {
'hint': '输入一些信息(可选)',
},
},
'copy-rendered-content': {
'copy-content': {
'options': '选项: ',
'type': '复制类型: ',
'inline-style': '内联样式',