[-] Remove unneeded script tags

This commit is contained in:
Azalea Gui
2023-03-09 15:00:24 -05:00
parent 4ad27e0184
commit 0d02f65556
7 changed files with 87 additions and 112 deletions
+1 -10
View File
@@ -5,14 +5,6 @@
</div>
</template>
<script lang="ts">
import {Options, Vue} from 'vue-class-component';
@Options({components: {}})
export default class Loading extends Vue
{
}
</script>
<style lang="sass" scoped>
#Loading
width: 100%
@@ -21,8 +13,7 @@ export default class Loading extends Vue
flex-direction: column
align-items: center
justify-content: center
//background: white
//opacity: 0.6
img
width: 150px
.text
+1 -1
View File
@@ -7,7 +7,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const props = defineProps({
direction: { type: String, default: 'left' }, // 'left' | 'right'
tagName: String
+1 -81
View File
@@ -31,87 +31,7 @@ import MetaTable from "@/components/MetaTable.vue";
import {capitalize} from "@/scripts/utils";
import linkifyUrls from "linkify-urls";
import {$} from '@/scripts/constants';
export interface ZoteroLink
{
href: string // 'https://...'
type: string // 'text/html'
attachmentType?: string // 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
attachmentSize?: number // bytes?
title?: string
length?: string
}
export type ZoteroLinks = {[id: string]: ZoteroLink}
export interface ZoteroCreator
{
creatorType: string // 'author'
firstName: string
lastName: string
}
export interface ZoteroData
{
key: string
version: number
itemType: string // 'document'
title: string
creators: ZoteroCreator[]
abstractNote?: string
publisher?: string
date?: string // 'Dec 9 2021'
language?: string // 'en'
shortTitle?: string
url?: string
accessDate?: string
archive?: string
archiveLocation?: string
libraryCatalog?: string
rights?: string
extra?: string
}
export interface ZoteroLibrary
{
type: string // 'user'
id: number
name: string
links: ZoteroLinks
}
export interface ZoteroMeta
{
creatorSummary: string // Gui and Burton
parsedDate: string // 2021-12-09
numChildren: number
}
export interface ZoteroItem
{
key: string
version: number
library: ZoteroLibrary
meta: ZoteroMeta
data: ZoteroData
attachments: ZoteroAttachment[]
}
export interface ZoteroAttachment
{
links: ZoteroLinks
data: {
key: string
parentItem: string
itemType: string // == 'attachment'
title: string
contentType: string
fileName: string
md5: string
mtime: number
}
}
import {ZoteroData, ZoteroItem} from "@/scripts/zotero";
@Options({components: {MetaTable}})
export default class ZoteroPublicationView extends Vue
+81
View File
@@ -0,0 +1,81 @@
export interface ZoteroLink
{
href: string // 'https://...'
type: string // 'text/html'
attachmentType?: string // 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
attachmentSize?: number // bytes?
title?: string
length?: string
}
export type ZoteroLinks = {[id: string]: ZoteroLink}
export interface ZoteroCreator
{
creatorType: string // 'author'
firstName: string
lastName: string
}
export interface ZoteroData
{
key: string
version: number
itemType: string // 'document'
title: string
creators: ZoteroCreator[]
abstractNote?: string
publisher?: string
date?: string // 'Dec 9 2021'
language?: string // 'en'
shortTitle?: string
url?: string
accessDate?: string
archive?: string
archiveLocation?: string
libraryCatalog?: string
rights?: string
extra?: string
}
export interface ZoteroLibrary
{
type: string // 'user'
id: number
name: string
links: ZoteroLinks
}
export interface ZoteroMeta
{
creatorSummary: string // Gui and Burton
parsedDate: string // 2021-12-09
numChildren: number
}
export interface ZoteroItem
{
key: string
version: number
library: ZoteroLibrary
meta: ZoteroMeta
data: ZoteroData
attachments: ZoteroAttachment[]
}
export interface ZoteroAttachment
{
links: ZoteroLinks
data: {
key: string
parentItem: string
itemType: string // == 'attachment'
title: string
contentType: string
fileName: string
md5: string
mtime: number
}
}
+2 -1
View File
@@ -14,9 +14,10 @@ import {Options, Vue} from 'vue-class-component';
import {marked} from 'marked';
import emojiRegex from 'emoji-regex';
import {parseExtensions} from '@/scripts/extended_markdown'
import ZoteroPublication, {ZoteroAttachment, ZoteroItem} from "@/components/ZoteroPublication.vue";
import ZoteroPublication from "@/components/ZoteroPublication.vue";
import {hosts} from "@/scripts/constants";
import Loading from "@/components/Loading.vue";
import {ZoteroAttachment, ZoteroItem} from "@/scripts/zotero";
@Options({components: {Loading, ZoteroPublication}})
export default class About extends Vue
-10
View File
@@ -7,16 +7,6 @@
</div>
</template>
<script lang="ts">
import {Options, Vue} from 'vue-class-component';
@Options({components: {}})
export default class Home extends Vue
{
}
</script>
<style lang="sass" scoped>
#box
font-size: 3em
+1 -9
View File
@@ -14,17 +14,9 @@
</TgBlog>
</template>
<script lang="ts">
import {Options, Vue} from 'vue-class-component';
<script lang="ts" setup>
import { TgBlog } from "tg-blog";
import 'tg-blog/dist/style.css'
@Options({components: {
TgBlog
}})
export default class Blog extends Vue
{
}
</script>
<style lang="sass" scoped>