mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 22:15:12 +00:00
Update vetur
This commit is contained in:
parent
6848f05ea5
commit
629991443a
15 changed files with 70 additions and 29 deletions
6
src/client/@types/vue.d.ts
vendored
6
src/client/@types/vue.d.ts
vendored
|
@ -1,5 +1,5 @@
|
||||||
declare module '*.vue' {
|
declare module '*.vue' {
|
||||||
import { defineComponent } from 'vue';
|
import type { DefineComponent } from 'vue'
|
||||||
const component: ReturnType<typeof defineComponent>;
|
const component: DefineComponent<{}, {}, any>
|
||||||
export default component;
|
export default component
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
||||||
import { extractAvgColorFromBlurhash } from '@/scripts/extract-avg-color-from-blurhash';
|
import { extractAvgColorFromBlurhash } from '@/scripts/extract-avg-color-from-blurhash';
|
||||||
import { acct, userPage } from '../filters/user';
|
import { acct, userPage } from '@/filters/user';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
|
@ -8,7 +8,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
||||||
import { twemojiSvgBase } from '../../misc/twemoji-base';
|
import { twemojiSvgBase } from '@/../misc/twemoji-base';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
|
@ -11,7 +11,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
|
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkButton from './ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import MfmCore from './mfm';
|
import MfmCore from '@/components/mfm';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
|
@ -1,16 +1,16 @@
|
||||||
import { App } from 'vue';
|
import { App } from 'vue';
|
||||||
|
|
||||||
import mfm from './misskey-flavored-markdown.vue';
|
import mfm from './global/misskey-flavored-markdown.vue';
|
||||||
import a from './ui/a.vue';
|
import a from './global/a.vue';
|
||||||
import acct from './acct.vue';
|
import acct from './global/acct.vue';
|
||||||
import avatar from './avatar.vue';
|
import avatar from './global/avatar.vue';
|
||||||
import emoji from './emoji.vue';
|
import emoji from './global/emoji.vue';
|
||||||
import userName from './user-name.vue';
|
import userName from './global/user-name.vue';
|
||||||
import ellipsis from './ellipsis.vue';
|
import ellipsis from './global/ellipsis.vue';
|
||||||
import time from './time.vue';
|
import time from './global/time.vue';
|
||||||
import url from './url.vue';
|
import url from './global/url.vue';
|
||||||
import loading from './loading.vue';
|
import loading from './global/loading.vue';
|
||||||
import error from './error.vue';
|
import error from './global/error.vue';
|
||||||
|
|
||||||
export default function(app: App) {
|
export default function(app: App) {
|
||||||
app.component('Mfm', mfm);
|
app.component('Mfm', mfm);
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
import { VNode, defineComponent, h } from 'vue';
|
import { VNode, defineComponent, h } from 'vue';
|
||||||
import { MfmForest } from '../../mfm/prelude';
|
import { MfmForest } from '@/../mfm/prelude';
|
||||||
import { parse, parsePlain } from '../../mfm/parse';
|
import { parse, parsePlain } from '@/../mfm/parse';
|
||||||
import MkUrl from './url.vue';
|
import MkUrl from '@/components/global/url.vue';
|
||||||
import MkLink from './link.vue';
|
import MkLink from '@/components/link.vue';
|
||||||
import MkMention from './mention.vue';
|
import MkMention from '@/components/mention.vue';
|
||||||
import MkEmoji from './emoji.vue';
|
import MkEmoji from '@/components/global/emoji.vue';
|
||||||
import { concat } from '../../prelude/array';
|
import { concat } from '@/../prelude/array';
|
||||||
import MkFormula from './formula.vue';
|
import MkFormula from '@/components/formula.vue';
|
||||||
import MkCode from './code.vue';
|
import MkCode from '@/components/code.vue';
|
||||||
import MkGoogle from './google.vue';
|
import MkGoogle from '@/components/google.vue';
|
||||||
import MkA from './ui/a.vue';
|
import MkA from '@/components/global/a.vue';
|
||||||
import { host } from '@/config';
|
import { host } from '@/config';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
41
vetur.config.js
Normal file
41
vetur.config.js
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
// vetur.config.js
|
||||||
|
/** @type {import('vls').VeturConfig} */
|
||||||
|
module.exports = {
|
||||||
|
// **optional** default: `{}`
|
||||||
|
// override vscode settings
|
||||||
|
// Notice: It only affects the settings used by Vetur.
|
||||||
|
settings: {
|
||||||
|
"vetur.useWorkspaceDependencies": true,
|
||||||
|
"vetur.experimental.templateInterpolationService": true
|
||||||
|
},
|
||||||
|
// **optional** default: `[{ root: './' }]`
|
||||||
|
// support monorepos
|
||||||
|
projects: [
|
||||||
|
{
|
||||||
|
// **required**
|
||||||
|
// Where is your project?
|
||||||
|
// It is relative to `vetur.config.js`.
|
||||||
|
root: './src/client',
|
||||||
|
// **optional** default: `'package.json'`
|
||||||
|
// Where is `package.json` in the project?
|
||||||
|
// We use it to determine the version of vue.
|
||||||
|
// It is relative to root property.
|
||||||
|
package: './package.json',
|
||||||
|
// **optional**
|
||||||
|
// Where is TypeScript config file in the project?
|
||||||
|
// It is relative to root property.
|
||||||
|
tsconfig: './src/client/tsconfig.json',
|
||||||
|
// **optional** default: `'./.vscode/vetur/snippets'`
|
||||||
|
// Where is vetur custom snippets folders?
|
||||||
|
snippetFolder: './.vscode/vetur/snippets',
|
||||||
|
// **optional** default: `[]`
|
||||||
|
// Register globally Vue component glob.
|
||||||
|
// If you set it, you can get completion by that components.
|
||||||
|
// It is relative to root property.
|
||||||
|
// Notice: It won't actually do it. You need to use `require.context` or `Vue.component`
|
||||||
|
globalComponents: [
|
||||||
|
'./src/clients/components/global/*.vue'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue