Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VSwipe from 'vswipe'
Vue.use(VSwipe)
import BackButton from '@/components/BackButton'
Vue.component('back-button', BackButton)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
template: '',
components: { App }
})
import '@/permission' // permission control
/**
* This project originally used easy-mock to simulate data,
* but its official service is very unstable,
* and you can build your own service if you need it.
* So here I use Mock.js for local emulation,
* it will intercept your request, so you won't see the request in the network.
* If you remove `../mock` it will automatically request easy-mock data.
*/
if (process.env.NODE_ENV === 'mock') {
require('../mock') // simulation data
}
Vue.use(ElementUI, { locale })
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
const csrftoken = Cookies.get('csrftoken')
Vue.http.headers.common['X-CSRFTOKEN'] = csrftoken
const routes = [
{ path: '/', name: 'contact-list', component: ContactList },
{ path: '/:pk(\\d+)', name: 'contact-detail', component: ContactDetail },
{ path: '/:category([\\w%]+)', name: 'contact-list-filtered', component: ContactList }
]
export var router = new VueRouter({
routes,
linkActiveClass: 'active'
})
Vue.config.productionTip = false
// eslint-disable-next-line no-new
new Vue({
render: h => h(App),
router,
store
}).$mount('#app')
/* global userLang */
Vue.config.language = userLang
import './assets/animations.sass'
// Prism sytax highlighter
import './assets/prism'
import './assets/prism.css'
// vue-fluent import
import '../../lib/index.sass'
import VueFluent from '../../lib/index'
Vue.use(VueFluent, {
defaultIconPack: 'fas',
})
Vue.config.productionTip = false
new Vue({
router,
render: h => h(App),
}).$mount('#app')
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
Vue.config.productionTip = false;
new Vue({
render: h => h(App),
router
}).$mount("#app");
import { getNode } from './scene';
import { registerKeyboardShortcut } from './keyboardShortcut';
import { showUI, hideUI } from './ui';
import { addMenuItem, injectMenuItem } from './menuItem';
import Vue from 'vue';
import React from 'react';
import ReactDOM from 'react-dom';
Vue.config.productionTip = false;
export const figmaPlus = {
Vue: Vue,
React: React,
ReactDOM: ReactDOM,
getNodeById: nodeId => {
return getNode(nodeId);
},
styles: {
findAll: callback => {
const flattenedFiles = [].concat.apply(
[],
Object.values(App._state.library.published.styles).map(org => Object.values(org))
);
const flattenedStyles = [].concat.apply([], flattenedFiles.map(team => Object.values(team)));
const publishedStyles = flattenedStyles.map(style => {
import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App';
import { routes } from './router';
import { isMobile } from '../common';
import '../common/iframe-router';
if (process.env.NODE_ENV !== 'production') {
Vue.config.productionTip = false;
}
Vue.use(VueRouter);
if (isMobile) {
location.replace('mobile.html' + location.hash);
}
const router = new VueRouter({
mode: 'hash',
routes,
scrollBehavior(to) {
if (to.hash) {
return { selector: to.hash };
}
let i18nHandler = function() {
const vuei18n = Object.getPrototypeOf(this || Vue).$t;
if (typeof vuei18n === 'function' && !!Vue.locale) {
if (!merged) {
merged = true;
Vue.locale(
Vue.config.lang,
deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true })
);
}
return vuei18n.apply(this, arguments);
}
};
import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';
Vue.config.devtools = true;
Vue.config.productionTip = false;
new Vue({
router,
store,
render: h => h(App),
}).$mount('#app');