[-] Remove unneeded script tags
This commit is contained in:
@@ -5,14 +5,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import {Options, Vue} from 'vue-class-component';
|
|
||||||
@Options({components: {}})
|
|
||||||
export default class Loading extends Vue
|
|
||||||
{
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
#Loading
|
#Loading
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -21,8 +13,7 @@ export default class Loading extends Vue
|
|||||||
flex-direction: column
|
flex-direction: column
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: center
|
justify-content: center
|
||||||
//background: white
|
|
||||||
//opacity: 0.6
|
|
||||||
img
|
img
|
||||||
width: 150px
|
width: 150px
|
||||||
.text
|
.text
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script lang="ts" setup>
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
direction: { type: String, default: 'left' }, // 'left' | 'right'
|
direction: { type: String, default: 'left' }, // 'left' | 'right'
|
||||||
tagName: String
|
tagName: String
|
||||||
|
|||||||
@@ -31,87 +31,7 @@ import MetaTable from "@/components/MetaTable.vue";
|
|||||||
import {capitalize} from "@/scripts/utils";
|
import {capitalize} from "@/scripts/utils";
|
||||||
import linkifyUrls from "linkify-urls";
|
import linkifyUrls from "linkify-urls";
|
||||||
import {$} from '@/scripts/constants';
|
import {$} from '@/scripts/constants';
|
||||||
|
import {ZoteroData, ZoteroItem} from "@/scripts/zotero";
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Options({components: {MetaTable}})
|
@Options({components: {MetaTable}})
|
||||||
export default class ZoteroPublicationView extends Vue
|
export default class ZoteroPublicationView extends Vue
|
||||||
|
|||||||
@@ -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
@@ -14,9 +14,10 @@ import {Options, Vue} from 'vue-class-component';
|
|||||||
import {marked} from 'marked';
|
import {marked} from 'marked';
|
||||||
import emojiRegex from 'emoji-regex';
|
import emojiRegex from 'emoji-regex';
|
||||||
import {parseExtensions} from '@/scripts/extended_markdown'
|
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 {hosts} from "@/scripts/constants";
|
||||||
import Loading from "@/components/Loading.vue";
|
import Loading from "@/components/Loading.vue";
|
||||||
|
import {ZoteroAttachment, ZoteroItem} from "@/scripts/zotero";
|
||||||
|
|
||||||
@Options({components: {Loading, ZoteroPublication}})
|
@Options({components: {Loading, ZoteroPublication}})
|
||||||
export default class About extends Vue
|
export default class About extends Vue
|
||||||
|
|||||||
@@ -7,16 +7,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import {Options, Vue} from 'vue-class-component';
|
|
||||||
|
|
||||||
@Options({components: {}})
|
|
||||||
export default class Home extends Vue
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
#box
|
#box
|
||||||
font-size: 3em
|
font-size: 3em
|
||||||
|
|||||||
+1
-9
@@ -14,17 +14,9 @@
|
|||||||
</TgBlog>
|
</TgBlog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import {Options, Vue} from 'vue-class-component';
|
|
||||||
import { TgBlog } from "tg-blog";
|
import { TgBlog } from "tg-blog";
|
||||||
import 'tg-blog/dist/style.css'
|
import 'tg-blog/dist/style.css'
|
||||||
|
|
||||||
@Options({components: {
|
|
||||||
TgBlog
|
|
||||||
}})
|
|
||||||
export default class Blog extends Vue
|
|
||||||
{
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user