[F] Fix vue-tsc vue-facing-decorator toNative
https://github.com/facing-dev/vue-facing-decorator/issues/163
This commit is contained in:
+2
-3
@@ -33,7 +33,6 @@
|
||||
"tslib": "^2.6.3",
|
||||
"typescript": "^5.5.4",
|
||||
"vite": "^7.1.12",
|
||||
"vue-tsc": "^2.0.29"
|
||||
},
|
||||
"packageManager": "yarn@4.3.1"
|
||||
"vue-tsc": "3.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -29,13 +29,13 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { ComponentPublicInstance } from 'vue';
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Component, Vue, toNative } from 'vue-facing-decorator'
|
||||
import router from "@/scripts/router";
|
||||
import { RouteLocationNormalized, RouteLocationNormalizedLoaded, Router } from "vue-router";
|
||||
import { TranslateResult } from "vue-i18n";
|
||||
|
||||
@Component
|
||||
export default class App extends Vue
|
||||
class App extends Vue
|
||||
{
|
||||
currentRoute = ''
|
||||
currentLink: Element = null as never as Element
|
||||
@@ -111,6 +111,8 @@ export default class App extends Vue
|
||||
`border-width: ${width}px 20px ${width}px 50px;`
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(App)
|
||||
</script>
|
||||
|
||||
<style lang="sass">
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
import Tag from "@/components/Tag.vue";
|
||||
import {pushQuery} from "@/scripts/router";
|
||||
import {BlogMeta} from "@/scripts/models";
|
||||
import {globals} from "@/scripts/global";
|
||||
|
||||
@Component({components: {Tag}})
|
||||
export default class BlogIndexLinks extends Vue
|
||||
class BlogIndexLinks extends Vue
|
||||
{
|
||||
@Prop({default: 'tags'}) mode: 'tags' | 'categories' = 'tags'
|
||||
|
||||
@@ -36,6 +36,8 @@ export default class BlogIndexLinks extends Vue
|
||||
pushQuery({tag: tag[0], category: null})
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(BlogIndexLinks)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
import {$} from '@/scripts/constants';
|
||||
|
||||
@Component
|
||||
export default class Collapse extends Vue
|
||||
class Collapse extends Vue
|
||||
{
|
||||
@Prop title!: string
|
||||
@Prop({default: false}) active = false
|
||||
@@ -30,6 +30,7 @@ export default class Collapse extends Vue
|
||||
active: this.active})
|
||||
}
|
||||
}
|
||||
export default toNative(Collapse)
|
||||
</script>
|
||||
|
||||
<style lang="sass">
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class MetaTable extends Vue
|
||||
class MetaTable extends Vue
|
||||
{
|
||||
@Prop({required: true}) table!: {[id: string]: unknown}
|
||||
|
||||
@@ -32,6 +32,8 @@ export default class MetaTable extends Vue
|
||||
return t
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(MetaTable)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
import moment from "moment";
|
||||
import MetaTable from "@/components/MetaTable.vue";
|
||||
import {capitalize} from "@/scripts/utils";
|
||||
@@ -33,7 +33,7 @@ import {$} from '@/scripts/constants';
|
||||
import {ZoteroData, ZoteroItem} from "@/scripts/zotero";
|
||||
|
||||
@Component({components: {MetaTable}})
|
||||
export default class ZoteroPublicationView extends Vue
|
||||
class ZoteroPublicationView extends Vue
|
||||
{
|
||||
@Prop({required: true}) item!: ZoteroItem
|
||||
|
||||
@@ -60,6 +60,8 @@ export default class ZoteroPublicationView extends Vue
|
||||
heightStyle: "content"})
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(ZoteroPublicationView)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
+4
-2
@@ -10,7 +10,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
import {marked} from 'marked';
|
||||
import emojiRegex from 'emoji-regex';
|
||||
import {parseExtensions} from '@/scripts/extended_markdown'
|
||||
@@ -20,7 +20,7 @@ import Loading from "@/components/Loading.vue";
|
||||
import {ZoteroAttachment, ZoteroItem} from "@/scripts/zotero";
|
||||
|
||||
@Component({components: {Loading, ZoteroPublication}})
|
||||
export default class About extends Vue
|
||||
class About extends Vue
|
||||
{
|
||||
html = ""
|
||||
publications: ZoteroItem[] = []
|
||||
@@ -48,6 +48,8 @@ export default class About extends Vue
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(About)
|
||||
</script>
|
||||
|
||||
<style lang="sass">
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
import {fab, hosts} from "@/scripts/constants";
|
||||
import {shuffle} from "@/scripts/utils";
|
||||
|
||||
@@ -42,7 +42,7 @@ const icons = {
|
||||
}
|
||||
|
||||
@Component
|
||||
export default class Friends extends Vue
|
||||
class Friends extends Vue
|
||||
{
|
||||
friends: Friend[] = []
|
||||
|
||||
@@ -73,6 +73,7 @@ export default class Friends extends Vue
|
||||
})
|
||||
}
|
||||
}
|
||||
export default toNative(Friends)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
@@ -24,14 +24,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
|
||||
export enum Flavor
|
||||
{
|
||||
light,
|
||||
normal,
|
||||
salty
|
||||
}
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
|
||||
export interface MenuItem
|
||||
{
|
||||
@@ -142,7 +135,7 @@ export const menu: MenuCategory[] = [
|
||||
]
|
||||
|
||||
@Component
|
||||
export default class Menu extends Vue
|
||||
class Menu extends Vue
|
||||
{
|
||||
max_cols = 2
|
||||
cols: MenuCategory[][] = new Array(this.max_cols)
|
||||
@@ -173,6 +166,8 @@ export default class Menu extends Vue
|
||||
this.cols.forEach(col => col.forEach(cat => cat.items.forEach(it => it.id = id++)))
|
||||
}
|
||||
}
|
||||
|
||||
export default toNative(Menu)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-facing-decorator'
|
||||
import { Component, Vue, Prop, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class Projects extends Vue
|
||||
class Projects extends Vue
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
export default toNative(Projects)
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
|
||||
Reference in New Issue
Block a user