2021-02-06 11:14:28 +01:00
|
|
|
<script lang="ts">
|
|
|
|
import {Component, Vue} from 'nuxt-property-decorator'
|
2021-02-13 19:55:45 +01:00
|
|
|
import ToolWrapper from '~/components/ToolWrapper.vue'
|
|
|
|
import {ToolConfig} from '~/types/ToolConfig'
|
2021-02-06 11:14:28 +01:00
|
|
|
|
|
|
|
@Component({components: {ToolWrapper}})
|
|
|
|
export default class Tool extends Vue {
|
2021-02-13 19:55:45 +01:00
|
|
|
config(): ToolConfig {
|
|
|
|
throw new Error('You need to specify a config() method your custom Tool.')
|
|
|
|
};
|
2021-02-06 11:14:28 +01:00
|
|
|
|
|
|
|
public head() {
|
2021-02-13 19:55:45 +01:00
|
|
|
const {title, description, keywords} = this.config()
|
2021-02-06 11:14:28 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
title,
|
2021-02-13 19:55:45 +01:00
|
|
|
meta: [
|
|
|
|
{
|
|
|
|
name: 'description',
|
|
|
|
content: description
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'keywords',
|
|
|
|
content: keywords
|
|
|
|
}
|
|
|
|
]
|
2021-02-06 11:14:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|