Migrated to Fusebox
This commit is contained in:
20
client/index.js
Normal file
20
client/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict'
|
||||
|
||||
let logic = document.documentElement.dataset.logic
|
||||
|
||||
switch (logic) {
|
||||
case 'login':
|
||||
require('./scss/login.scss')
|
||||
require('./js/login.js')
|
||||
break
|
||||
case 'configure':
|
||||
require('./scss/configure.scss')
|
||||
require('./js/configure.js')
|
||||
break
|
||||
default:
|
||||
require('./node_modules/highlight.js/styles/tomorrow.css')
|
||||
require('./node_modules/simplemde/dist/simplemde.min.css')
|
||||
require('./scss/app.scss')
|
||||
require('./js/app.js')
|
||||
break
|
||||
}
|
@@ -1,6 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
/* global jQuery, _, io, Sticky, alertsData, Alerts */
|
||||
/* global alertsData */
|
||||
|
||||
import jQuery from 'jquery'
|
||||
import _ from 'lodash'
|
||||
import Sticky from 'sticky-js'
|
||||
import io from 'socket.io-client'
|
||||
import Alerts from './components/alerts.js'
|
||||
/* eslint-disable spaced-comment */
|
||||
|
||||
jQuery(document).ready(function ($) {
|
||||
|
@@ -1,11 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
/* global Vue, _ */
|
||||
import Vue from 'vue'
|
||||
import _ from 'lodash'
|
||||
|
||||
/**
|
||||
* Alerts
|
||||
*/
|
||||
class Alerts { // eslint-disable-line no-unused-vars
|
||||
class Alerts {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@@ -107,3 +108,5 @@ class Alerts { // eslint-disable-line no-unused-vars
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Alerts
|
||||
|
@@ -1,6 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
/* global jQuery, _, Vue, VeeValidate, axios */
|
||||
import jQuery from 'jquery'
|
||||
import _ from 'lodash'
|
||||
import Vue from 'vue'
|
||||
import VeeValidate from 'vee-validate'
|
||||
import axios from 'axios'
|
||||
|
||||
Vue.use(VeeValidate, {
|
||||
enableAutoClasses: true,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
'use strict'
|
||||
|
||||
/* global jQuery */
|
||||
import jQuery from 'jquery'
|
||||
|
||||
jQuery(document).ready(function ($) {
|
||||
$('#login-user').focus()
|
||||
|
@@ -26,4 +26,4 @@ $primary: 'indigo';
|
||||
//@import './layout/_content';
|
||||
|
||||
//@import './pages/_account';
|
||||
@import './pages/_welcome';
|
||||
@import './pages/_welcome';
|
||||
|
Reference in New Issue
Block a user