mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-05 04:19:07 +08:00
133 lines
3.8 KiB
JavaScript
133 lines
3.8 KiB
JavaScript
import '@babel/polyfill'
|
|
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import svgSpriteLoader from 'helpers/svg-sprite-loader'
|
|
import App from 'Components/App'
|
|
|
|
const __svg__ = { path: './assets/images/icons/*.svg', name: 'assets/images/[hash].sprite.svg' }
|
|
svgSpriteLoader(__svg__.filename)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('Components/Routes/Basic'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Basic',
|
|
},
|
|
},
|
|
{
|
|
path: '/menu-bubble',
|
|
component: () => import('Components/Routes/MenuBubble'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/MenuBubble',
|
|
},
|
|
},
|
|
{
|
|
path: '/floating-menu',
|
|
component: () => import('Components/Routes/FloatingMenu'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/FloatingMenu',
|
|
},
|
|
},
|
|
{
|
|
path: '/links',
|
|
component: () => import('Components/Routes/Links'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Links',
|
|
},
|
|
},
|
|
{
|
|
path: '/images',
|
|
component: () => import('Components/Routes/Images'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Images',
|
|
},
|
|
},
|
|
{
|
|
path: '/text-align',
|
|
component: () => import('Components/Routes/TextAlign'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/TextAlign',
|
|
},
|
|
},
|
|
{
|
|
path: '/hiding-menu-bar',
|
|
component: () => import('Components/Routes/HidingMenuBar'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/HidingMenuBar',
|
|
},
|
|
},
|
|
{
|
|
path: '/todo-list',
|
|
component: () => import('Components/Routes/TodoList'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/TodoList',
|
|
},
|
|
},
|
|
{
|
|
path: '/suggestions',
|
|
component: () => import('Components/Routes/Suggestions'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Suggestions',
|
|
},
|
|
},
|
|
{
|
|
path: '/markdown-shortcuts',
|
|
component: () => import('Components/Routes/MarkdownShortcuts'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/MarkdownShortcuts',
|
|
},
|
|
},
|
|
{
|
|
path: '/code-highlighting',
|
|
component: () => import('Components/Routes/CodeHighlighting'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/CodeHighlighting',
|
|
},
|
|
},
|
|
{
|
|
path: '/read-only',
|
|
component: () => import('Components/Routes/ReadOnly'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/ReadOnly',
|
|
},
|
|
},
|
|
{
|
|
path: '/embeds',
|
|
component: () => import('Components/Routes/Embeds'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Embeds',
|
|
},
|
|
},
|
|
{
|
|
path: '/placeholder',
|
|
component: () => import('Components/Routes/Placeholder'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Placeholder',
|
|
},
|
|
},
|
|
{
|
|
path: '/export',
|
|
component: () => import('Components/Routes/Export'),
|
|
meta: {
|
|
githubUrl: 'https://github.com/heyscrumpy/tiptap/tree/master/examples/Components/Routes/Export',
|
|
},
|
|
},
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
routes,
|
|
mode: 'history',
|
|
linkActiveClass: 'is-active',
|
|
linkExactActiveClass: 'is-exact-active',
|
|
})
|
|
|
|
new Vue({
|
|
router,
|
|
render: h => h(App),
|
|
}).$mount('#app')
|