Remove unused $moment and $emitter from globalProperties
These were set for Options API (this.$moment, this.$emitter) but all components now use <script setup> with direct imports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,8 +15,6 @@ import { createApp, markRaw } from "vue";
|
|||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
import router from "./router";
|
import router from "./router";
|
||||||
import pinia from '@/stores/main';
|
import pinia from '@/stores/main';
|
||||||
import moment from 'moment';
|
|
||||||
import emitter from '@/utils/emitter';
|
|
||||||
import ToastPlugin from 'vue-toast-notification';
|
import ToastPlugin from 'vue-toast-notification';
|
||||||
import cytoscape from 'cytoscape';
|
import cytoscape from 'cytoscape';
|
||||||
import dagre from 'cytoscape-dagre';
|
import dagre from 'cytoscape-dagre';
|
||||||
@@ -63,12 +61,6 @@ pinia.use(({ store }) => {
|
|||||||
store.$router = markRaw(router);
|
store.$router = markRaw(router);
|
||||||
});
|
});
|
||||||
|
|
||||||
// can use `this.$moment` in Vue.js
|
|
||||||
app.config.globalProperties.$moment = moment;
|
|
||||||
app.config.globalProperties.$emitter = emitter;
|
|
||||||
app.config.globalProperties.$cytoscape = cytoscape;
|
|
||||||
|
|
||||||
|
|
||||||
// Cytoscape.js's style
|
// Cytoscape.js's style
|
||||||
cytoscape.use( dagre );
|
cytoscape.use( dagre );
|
||||||
cytoscape.use( popper((ref) => ref) );
|
cytoscape.use( popper((ref) => ref) );
|
||||||
|
|||||||
Reference in New Issue
Block a user