mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 17:26:15 -04:00
feat: externalized tool configuration
This commit is contained in:
parent
c3adfe30ec
commit
690bd099ef
31 changed files with 387 additions and 300 deletions
12
mixins/tool-config.mixin.ts
Normal file
12
mixins/tool-config.mixin.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {Component, Vue} from 'nuxt-property-decorator'
|
||||
import {ToolConfig} from '~/types/ToolConfig'
|
||||
|
||||
@Component
|
||||
export class ToolConfigMixin extends Vue {
|
||||
public $toolConfig!: ToolConfig;
|
||||
|
||||
beforeCreate() {
|
||||
// @ts-ignore
|
||||
this.$toolConfig = this.$options.__toolConfig
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue