* Menus open and close based on URL, allowing for back button on note menus to close Minor Updates: * Made night mode buttons green * Widend the global menu * Added a version display * Made the create note button real big * Made the creane note button more visible on mobile * Hide the note button if there are no notes * Changed quick menu item to "Quick Note" * Added reload option if version is clicked * Moved around menu buttons at the bottom of the note * Moved tags back into the main footer on note * Disabled hiding of toolbar on mobile when editor focused * Updated locked note display on main title card * Put last edit on note display * Tweaked display styles to be more minimal, added fade-in on hover * Added solid scribe to all title displays on the site * Reactivated help page and put some good help on it...decent help * Increased max upload size for files to 5MB * Shortened text on title display cards to make them all the same size
94 lines
2.2 KiB
JavaScript
94 lines
2.2 KiB
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
|
|
//Breaking components into function sections allows webpack to load them dynamically
|
|
//import HomePage from '@/pages/HomePage'
|
|
const HomePage = () => import('@/pages/HomePage')
|
|
|
|
// import LoginPage from '@/pages/LoginPage'
|
|
const LoginPage = () => import('@/pages/LoginPage')
|
|
|
|
// import HelpPage from '@/pages/HelpPage'
|
|
const HelpPage = () => import('@/pages/HelpPage')
|
|
|
|
// import SharePage from '@/pages/SharePage'
|
|
const SharePage = () => import('@/pages/SharePage')
|
|
|
|
//These guys can all be loaded as a chunk
|
|
import NotesPage from '@/pages/NotesPage'
|
|
import QuickPage from '@/pages/QuickPage'
|
|
import AttachmentsPage from '@/pages/AttachmentsPage'
|
|
|
|
Vue.use(Router)
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'HomePage',
|
|
meta: {title:'Home'},
|
|
component: HomePage
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'LoginPage',
|
|
meta: {title:'Login'},
|
|
component: LoginPage
|
|
},
|
|
{
|
|
path: '/notes',
|
|
name: 'Note Page', //don't change this
|
|
meta: {title:'Notes'},
|
|
component: NotesPage
|
|
},
|
|
{
|
|
path: '/notes/open/:id',
|
|
name: 'Open Note',
|
|
meta: {title: 'Open Note'},
|
|
component: NotesPage,
|
|
},
|
|
{
|
|
path: '/notes/open/:id/menu/:openMenu',
|
|
name: 'Open Note Menu',
|
|
meta: {title: 'Open Note Menu'},
|
|
component: NotesPage,
|
|
},
|
|
{
|
|
path: '/help',
|
|
name: 'Help',
|
|
meta: {title:'Help'},
|
|
component: HelpPage
|
|
},
|
|
{
|
|
path: '/share/:id',
|
|
name: 'Share',
|
|
meta: {title:'Shared'},
|
|
component: SharePage
|
|
},
|
|
{
|
|
path: '/quick',
|
|
name: 'Quick',
|
|
meta: {title:'Quick'},
|
|
component: QuickPage
|
|
},
|
|
{
|
|
path: '/attachments',
|
|
name: 'Attachments',
|
|
meta: {title:'Attachments'},
|
|
component: AttachmentsPage
|
|
},
|
|
{
|
|
path: '/attachments/note/:id',
|
|
name: 'Attachments for Note',
|
|
meta: {title:'Attachments for Note'},
|
|
component: AttachmentsPage
|
|
},
|
|
{
|
|
path: '/attachments/type/:type',
|
|
name: 'Attachments by Type',
|
|
meta: {title:'Attachments by Type'},
|
|
component: AttachmentsPage
|
|
},
|
|
]
|
|
})
|