-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try webpack * ignore dist * remove dist files * fix type checking * lint * add webpack to gulp * sync themes * try and fix pages loading via .vue files * Fix assets * Fix x-template components Don't register components twice. * Fix toggle button * Fix AsyncComputed * Enable Vue-DevTools * Spread operator in object literals is experimental * Ignore non-browser files in gulp tasks * Pin dependencies + update webpack-cli * Remove unused libraries - api.js - router.js - store.js - axios - http-vue-loader - vue - vue-async-computed - vue-in-viewport-mixin - vue-js-toggle-button - vue-meta - vue-native-websocket - vue-router - vuex * Move Snotify to webpack * Remove unused vendors files * Fix VueMeta * Fix apibuilder * Update gulpfile * Webpack optimization * Fix notification from store * Add `?${sbPID}` * Update changelog * Update script * fix cp not running * Fix optimization * add cp to webpack * add vue-loader * pin deps * Better components registration * Read themes from `package.json` * Clear ./dist/js before build * Remove webpack-stream * Make sure webpack is built in production mode for the time being * Re-enable `webpack.config.js` linting * eslint-plugin-unicorn is part of XO * remove globby (unused) * upgrade webpack * Fix vue-loader production mode * Disable webpack build for now
- Loading branch information
1 parent
55bfdaf
commit 6965b93
Showing
87 changed files
with
1,579 additions
and
41,707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.nyc_output | ||
coverage | ||
coverage.lcov | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import Vue from 'vue'; | ||
import Vuex, { mapState } from 'vuex'; | ||
import VueRouter from 'vue-router'; | ||
import AsyncComputed from 'vue-async-computed'; | ||
import ToggleButton from 'vue-js-toggle-button'; | ||
import Snotify from 'vue-snotify'; | ||
import store from './store'; | ||
import router from './router'; | ||
import AppHeader from './templates/app-header.vue'; | ||
import ScrollButtons from './templates/scroll-buttons.vue'; | ||
import AppLink from './templates/app-link.vue'; | ||
import Asset from './templates/asset.vue'; | ||
import FileBrowser from './templates/file-browser.vue'; | ||
import PlotInfo from './templates/plot-info.vue'; | ||
import NamePattern from './templates/name-pattern.vue'; | ||
import SelectList from './templates/select-list.vue'; | ||
import LanguageSelect from './templates/language-select.vue'; | ||
import RootDirs from './templates/root-dirs.vue'; | ||
import Backstretch from './templates/backstretch.vue'; | ||
|
||
Vue.config.devtools = true; | ||
Vue.config.performance = true; | ||
|
||
Vue.use(Vuex); | ||
Vue.use(VueRouter); | ||
Vue.use(AsyncComputed); | ||
Vue.use(ToggleButton); | ||
Vue.use(Snotify); | ||
|
||
// Load x-template components | ||
window.components.forEach(component => { | ||
console.debug(`Registering ${component.name}`); | ||
Vue.component(component.name, component); | ||
}); | ||
|
||
// Global components | ||
const globalComponents = [ | ||
AppHeader, | ||
ScrollButtons, | ||
AppLink, | ||
Asset, | ||
FileBrowser, | ||
PlotInfo, | ||
NamePattern, | ||
SelectList, | ||
LanguageSelect, | ||
RootDirs, | ||
Backstretch | ||
]; | ||
|
||
globalComponents.forEach(component => { | ||
Vue.component(component.name, component); | ||
}); | ||
|
||
const app = new Vue({ | ||
name: 'App', | ||
store, | ||
router, | ||
data() { | ||
return { | ||
globalLoading: false | ||
}; | ||
}, | ||
computed: Object.assign(mapState(['auth', 'config']), {}), | ||
mounted() { | ||
console.log('App Mounted!'); | ||
|
||
const { $store } = this; | ||
$store.dispatch('login', { username: window.username }); | ||
$store.dispatch('getConfig'); | ||
|
||
console.log('App Loaded!'); | ||
} | ||
}).$mount('#vue-wrap'); | ||
|
||
export default app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import Vue from 'vue'; | ||
import Vuex from 'vuex'; | ||
import VueMeta from 'vue-meta'; | ||
import VueRouter from 'vue-router'; | ||
import VueNativeSock from 'vue-native-websocket'; | ||
import VueInViewportMixin from 'vue-in-viewport-mixin'; | ||
import AsyncComputed from 'vue-async-computed'; | ||
import ToggleButton from 'vue-js-toggle-button'; | ||
import Snotify from 'vue-snotify'; | ||
import axios from 'axios'; | ||
import httpVueLoader from 'http-vue-loader'; | ||
import store from './store'; | ||
import router from './router'; | ||
import { apiRoute, apiv1, api } from './api'; | ||
|
||
if (window) { | ||
// Adding libs to window so mako files can use them | ||
window.Vue = Vue; | ||
window.Vuex = Vuex; | ||
window.VueMeta = VueMeta; | ||
window.VueRouter = VueRouter; | ||
window.VueNativeSock = VueNativeSock; | ||
window.VueInViewportMixin = VueInViewportMixin; | ||
window.AsyncComputed = AsyncComputed; | ||
window.ToggleButton = ToggleButton; | ||
window.Snotify = Snotify; | ||
window.axios = axios; | ||
window.httpVueLoader = httpVueLoader; | ||
window.store = store; | ||
window.router = router; | ||
window.apiRoute = apiRoute; | ||
window.apiv1 = apiv1; | ||
window.api = api; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.