'use strict' ; import fs , { readFileSync } from 'fs' ; import { join } from 'path' ; const Vue = require ( 'vue/dist/vue.js' ) ; Vue . config . productionTip = false ; Vue . config . devtools = false ; let panel = null ; let $vm ; export const style = readFileSync ( join ( __dirname , '../index.css' ) , 'utf8' ) ; export const template = readFileSync ( join ( __dirname , '../../static/template/index.html' ) , 'utf8' ) ; export const $ = { shadergraph : '.shadergraph' , } ; export const methods = { } ; export const messages = { } ; export async function ready ( tab , params ) { panel = this ; const manager = require ( './components/manager' ) ; manager . el = panel . $ . shadergraph ; await manager . init ( ) ; $vm = new Vue ( manager ) ; } export async function beforeClose ( ) { } export async function close ( ) { }