Refactoring
This commit is contained in:
parent
1d6791e4c2
commit
71d6394bc8
9 changed files with 34 additions and 34 deletions
|
|
@ -13,7 +13,7 @@
|
|||
import Vue from 'vue';
|
||||
import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
|
||||
import { url as local } from '../config';
|
||||
import XUrlPreview from './url-preview-popup.vue';
|
||||
import MkUrlPreview from './url-preview-popup.vue';
|
||||
|
||||
export default Vue.extend({
|
||||
props: {
|
||||
|
|
@ -44,7 +44,7 @@ export default Vue.extend({
|
|||
if (!document.body.contains(this.$el)) return;
|
||||
if (this.preview) return;
|
||||
|
||||
this.preview = new XUrlPreview({
|
||||
this.preview = new MkUrlPreview({
|
||||
parent: this,
|
||||
propsData: {
|
||||
url: this.url,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
<x-media-list :media-list="appearNote.files"/>
|
||||
</div>
|
||||
<x-poll v-if="appearNote.poll" :note="appearNote" ref="pollViewer"/>
|
||||
<x-url-preview v-for="url in urls" :url="url" :key="url" :compact="true" class="url-preview"/>
|
||||
<mk-url-preview v-for="url in urls" :url="url" :key="url" :compact="true" class="url-preview"/>
|
||||
<div class="renote" v-if="appearNote.renote"><x-note-preview :note="appearNote.renote"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -97,7 +97,7 @@ import XReactionsViewer from './reactions-viewer.vue';
|
|||
import XMediaList from './media-list.vue';
|
||||
import XCwButton from './cw-button.vue';
|
||||
import XPoll from './poll.vue';
|
||||
import XUrlPreview from './url-preview.vue';
|
||||
import MkUrlPreview from './url-preview.vue';
|
||||
import MkReactionPicker from './reaction-picker.vue';
|
||||
import pleaseLogin from '../scripts/please-login';
|
||||
import { focusPrev, focusNext } from '../scripts/focus';
|
||||
|
|
@ -115,7 +115,7 @@ export default Vue.extend({
|
|||
XMediaList,
|
||||
XCwButton,
|
||||
XPoll,
|
||||
XUrlPreview,
|
||||
MkUrlPreview,
|
||||
},
|
||||
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
<template>
|
||||
<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }">
|
||||
<x-url-preview :url="url"/>
|
||||
<mk-url-preview :url="url"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import i18n from '../i18n';
|
||||
import XUrlPreview from './url-preview.vue';
|
||||
import MkUrlPreview from './url-preview.vue';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n,
|
||||
|
||||
components: {
|
||||
XUrlPreview
|
||||
MkUrlPreview
|
||||
},
|
||||
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import Vue from 'vue';
|
|||
import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
|
||||
import { toUnicode as decodePunycode } from 'punycode';
|
||||
import { url as local } from '../config';
|
||||
import XUrlPreview from './url-preview-popup.vue';
|
||||
import MkUrlPreview from './url-preview-popup.vue';
|
||||
|
||||
export default Vue.extend({
|
||||
props: {
|
||||
|
|
@ -70,7 +70,7 @@ export default Vue.extend({
|
|||
if (!document.body.contains(this.$el)) return;
|
||||
if (this.preview) return;
|
||||
|
||||
this.preview = new XUrlPreview({
|
||||
this.preview = new MkUrlPreview({
|
||||
parent: this,
|
||||
propsData: {
|
||||
url: this.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue