diff --git a/src/package.json b/src/package.json index 53fb5bca..fafca483 100644 --- a/src/package.json +++ b/src/package.json @@ -1,29 +1,34 @@ { "private": true, "scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "watch": "npm run development -- --watch", "watch-poll": "npm run watch -- --watch-poll", "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", "prod": "npm run production", - "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "lint": "eslint --ext .js,.vue resources && stylelint \"resources/sass/*.scss\" \"resources/vue/components/*.vue\"" }, "devDependencies": { + "@deveodk/vue-toastr": "^1.1.0", "axios": "^0.19", "bootstrap": "^4.3.1", "cross-env": "^5.1", + "eslint": "^6.8.0", + "eslint-plugin-vue": "^6.1.1", "jquery": "^3.4.1", "laravel-mix": "^4.0.7", "lodash": "^4.17.13", "popper.js": "^1.12", "resolve-url-loader": "^2.3.1", "sass": "^1.15.2", "sass-loader": "^7.1.0", + "stylelint": "^12.0.1", + "stylelint-config-standard": "^19.0.0", "vue": "^2.5.17", "vue-router": "^3.1.3", "vue-template-compiler": "^2.6.10", - "vuex": "^3.1.1", - "@deveodk/vue-toastr": "^1.1.0" + "vuex": "^3.1.1" } } diff --git a/src/resources/js/app.js b/src/resources/js/app.js index 226f6ff5..732780a2 100644 --- a/src/resources/js/app.js +++ b/src/resources/js/app.js @@ -1,85 +1,85 @@ /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap') window.Vue = require('vue') import AppComponent from '../vue/components/App' import MenuComponent from '../vue/components/Menu' import router from '../vue/js/routes.js' import VueToastr from '@deveodk/vue-toastr' // Add a response interceptor for general/validation error handler // This have to be before Vue and Router setup. Otherwise we would // not be able to handle axios responses initiated from inside // components created/mounted handlers (e.g. signup code verification link) window.axios.interceptors.response.use( response => { // Do nothing return response }, error => { var error_msg if (error.response && error.response.status == 422) { error_msg = "Form validation error" $.each(error.response.data.errors || {}, (idx, msg) => { $('form').each((i, form) => { const input_name = ($(form).data('validation-prefix') || '') + idx const input = $('#' + input_name) if (input.length) { input.addClass('is-invalid') .parent().append($('
Enter your email address to reset your password. You may need to check your spam folder or unblock noreply@kolabnow.com.
-We sent out a confirmation code to your external email address. Enter the code we sent you, or click the link in the message.
--
Sign up to start your free month.
-We sent out a confirmation code to your email address. Enter the code we sent you, or click the link in the message.
-Create your Kolab identity (you can choose additional addresses later).
-