You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.2 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import 'babel-polyfill'
import promise from 'es6-promise'
import Vue from 'vue'
import ElementUI from 'element-ui'
import App from './App'
import store from './store'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/styles/index.scss'
import { registerConfig } from '@gcpaas/data-room-ui'
import remoteComponents from '@/remoteComponents/exports.js'
import customDatasetComponents from '@/customDatasetComponents/exports.js'
Vue.use(ElementUI, { size: 'mini' })
registerConfig(
{
routers: {
// 大屏设计路由
designUrl: '/bigscreen/design',
// 预览路由
previewUrl: '/bigscreen/preview',
// 页面管理路由(带头部跳转路由)
pageManagementUrl: '/',
// 页面列表路由
pageListUrl: '/big-screen-list',
// 模版列表
templateListUrl: '/big-screen-template',
// 数据源管理
dataSourceUrl: '/big-screen-dataSource',
// 数据集管理
dataSetUrl: '/big-screen-dataSet',
// 资源管理
sourceUrl: '/big-screen-source',
// 组件库
componentUrl: '/big-screen-components'
},
httpConfigs: {
baseURL: window.CONFIG?.baseUrl
},
customTheme: {
'--bs-background-1': '#151a26', // 整体背景色
'--bs-background-2': '#232832', // 布局背景色
'--bs-el-background-1': '#151A26', // 组件背景色,输入框...
'--bs-el-background-2': '#35393F', // 组件背景色,按钮、分页、加载...
'--bs-el-background-3': '#303640', // 组件背景色表格头部、下拉框hover...
'--bs-el-title': '#ffffff', // 标题字体颜色
'--bs-el-text': '#ffffff', // 一般字体颜色
'--bs-el-color-primary': '#409EFF', // elment-ui主题色激活
// 主题色激活
'--bs-el-color-primary-active': '64, 158, 255', // => rgba(64, 158, 255, 1) = #409EFF
'--bs-el-border': 'transparent' // 边框颜色
},
customPlots: [],
// 远程组件列表
remoteComponents,
customDatasetComponents
},
router
)
promise.polyfill()
// 自定义指令
Vue.use(ElementUI, { size: 'mini' })
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
render: (h) => h(App)
})