зеркало из https://github.com/nextcloud/text.git
rename {Rich,Plain}textReader to {Rich,Plain}TextReader
Be consistent with other uses of `RichText` and `PlainText`. Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Родитель
77a499e063
Коммит
eed9f8bbd4
|
@ -10,7 +10,7 @@
|
|||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module">
|
||||
import { RichtextReader } from './src/package.js'
|
||||
import { RichTextReader } from './src/package.js'
|
||||
import Vue from 'vue'
|
||||
const app = new Vue({
|
||||
data() {
|
||||
|
@ -34,7 +34,7 @@
|
|||
},
|
||||
},
|
||||
}, [app.content]),
|
||||
h(RichtextReader, {
|
||||
h(RichTextReader, {
|
||||
props: { content: app.content }
|
||||
}),
|
||||
]),
|
||||
|
|
|
@ -31,7 +31,7 @@ import { EditorContent } from '@tiptap/vue-2'
|
|||
import escapeHtml from 'escape-html'
|
||||
|
||||
export default {
|
||||
name: 'PlaintextReader',
|
||||
name: 'PlainTextReader',
|
||||
components: { EditorContent },
|
||||
props: {
|
||||
content: {
|
|
@ -21,19 +21,19 @@
|
|||
-->
|
||||
|
||||
<template>
|
||||
<RichtextReader v-if="isRichText"
|
||||
<RichTextReader v-if="isRichText"
|
||||
:content="content" />
|
||||
<PlaintextReader v-else
|
||||
<PlainTextReader v-else
|
||||
:content="content" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PlaintextReader from './PlaintextReader.vue'
|
||||
import RichtextReader from './RichtextReader.vue'
|
||||
import PlainTextReader from './PlainTextReader.vue'
|
||||
import RichTextReader from './RichTextReader.vue'
|
||||
|
||||
export default {
|
||||
name: 'Reader',
|
||||
components: { PlaintextReader, RichtextReader },
|
||||
components: { PlainTextReader, RichTextReader },
|
||||
props: {
|
||||
content: {
|
||||
type: String,
|
||||
|
|
|
@ -31,7 +31,7 @@ import { EditorContent } from '@tiptap/vue-2'
|
|||
import markdownit from './../markdownit/index.js'
|
||||
|
||||
export default {
|
||||
name: 'RichtextReader',
|
||||
name: 'RichTextReader',
|
||||
components: { EditorContent },
|
||||
props: {
|
||||
content: {
|
|
@ -20,6 +20,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import RichtextReader from './components/RichtextReader.vue'
|
||||
import RichTextReader from './components/RichTextReader.vue'
|
||||
|
||||
export { RichtextReader }
|
||||
export { RichTextReader }
|
||||
|
|
Загрузка…
Ссылка в новой задаче