Removed nuxt/image

This commit is contained in:
2021-06-01 23:11:37 +02:00
parent e54c98461d
commit e0fd887a51
4 changed files with 104 additions and 0 deletions

35
types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,35 @@
import { NuxtAxiosInstance } from '@nuxtjs/axios'
import VueI18n, {IVueI18n} from "vue-i18n";
import {ColorModeInstance} from "@nuxtjs/color-mode/types/color-mode";
import {NuxtApp} from "@nuxt/types/app";
import {NuxtStorage} from "@nuxtjs/universal-storage";
declare module 'vue/types/vue' {
interface Vue {
$axios: NuxtAxiosInstance,
i18n: VueI18n & IVueI18n
}
}
declare module '@nuxt/types' {
interface NuxtAppOptions {
$axios: NuxtAxiosInstance,
i18n: VueI18n & IVueI18n
}
interface Context {
$axios: NuxtAxiosInstance,
i18n: VueI18n & IVueI18n
$colorMode: ColorModeInstance,
$app: NuxtApp,
$storage: NuxtStorage
}
}
declare module 'vuex/types/index' {
interface Store<S> {
$axios: NuxtAxiosInstance,
i18n: VueI18n & IVueI18n
}
}

64
types/types.ts Normal file
View File

@@ -0,0 +1,64 @@
interface Form {
email: string,
name: string,
content: string,
subject: string
}
interface InfoData {
age: number
hiring: {
status: string,
color: string
}
}
interface Skill {
title: string,
color: string,
cover: string,
slug: string
}
interface Experience {
slug: string,
title: string,
company: string,
location: string,
begin_date: string,
end_date: string
}
interface Formation {
slug: string,
title: string,
description: string,
location: string,
begin_date: string,
end_date: string
}
interface Tag {
slug: string
}
interface Post {
slug: string,
title: string,
description: string,
reading_time: number,
tags: Array<Tag>,
cover: string,
date: string
}
interface Project {
slug: string,
title: string,
description: string,
url: string,
cover: string,
tags: Array<Tag>,
}
export { Form, InfoData, Skill, Experience, Formation, Post, Tag, Project }

4
types/vue-shim.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}