Skip to content

Commit f99d3b6

Browse files
committed
Update the Wave UI init.
1 parent 44ecd90 commit f99d3b6

File tree

2 files changed

+19
-26
lines changed

2 files changed

+19
-26
lines changed

src/main.js

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,28 @@ import 'core-js/stable'
33
import 'regenerator-runtime/runtime'
44

55
import { createApp, h } from 'vue'
6-
import WaveUI from './plugins/wave-ui'
6+
import WaveUI from 'wave-ui'
7+
import 'wave-ui/dist/wave-ui.css'
8+
9+
import App from './app'
10+
import router from './router/'
711

812
import '@fortawesome/fontawesome-free/css/fontawesome.css'
913
import '@fortawesome/fontawesome-free/css/brands.css'
1014

11-
import App from './app'
12-
import router from './router/'
15+
const app = createApp(App).use(router)
1316

14-
Vue.config.productionTip = false
17+
// eslint-disable-next-line no-new
18+
new WaveUI(app, {
19+
iconsLigature: 'material-icons',
20+
colors: {
21+
primary: '#ff5252',
22+
secondary: '#42b983',
23+
maintext: '#999',
24+
darktext: '#444',
25+
lightertext: '#ccc',
26+
lightgrey: '#eee'
27+
}
28+
})
1529

16-
new Vue({
17-
router,
18-
WaveUI,
19-
render: h => h(App)
20-
}).$mount('#app')
30+
app.mount('#app')

src/plugins/wave-ui.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)