a3fa4b0f3c
* 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
56 lines
1.3 KiB
JavaScript
56 lines
1.3 KiB
JavaScript
// 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 Vuex from 'vuex'
|
|
import 'es6-promise/auto' //Vuex likes promises
|
|
import store from './stores/mainStore';
|
|
|
|
import App from './App'
|
|
import router from './router'
|
|
|
|
import 'fomantic-ui-css/semantic.css';
|
|
require('./assets/semantic-helper.css')
|
|
// Fonts
|
|
require('./assets/roboto-latin.woff2')
|
|
require('./assets/roboto-latin-bold.woff2')
|
|
|
|
|
|
require('./assets/squire.js')
|
|
|
|
//Import socket io, init using nginx configured socket path
|
|
import io from 'socket.io-client';
|
|
const socket = io({ path:'/socket' });
|
|
|
|
//integrate connected socket into vue instance
|
|
Object.defineProperties(Vue.prototype, {
|
|
$io: {
|
|
get: () => socket
|
|
}
|
|
})
|
|
|
|
|
|
|
|
// This callback runs before every route change, including on page load.
|
|
// Sets the title of the page using vue router
|
|
router.beforeEach((to, from, next) => {
|
|
document.title = to.meta.title + ' - Solid Scribe';
|
|
next();
|
|
});
|
|
|
|
//Attach event bus to main vue object, all components will inherit event bus
|
|
import EventBus from './EventBus'
|
|
import Helpers from './Helpers'
|
|
|
|
Vue.use(Vuex)
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
store,
|
|
components: { App },
|
|
template: '<App/>'
|
|
}) |