mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
New client edit avatar (#8955)
* Fixed some purchasing issues with backgrounds * Added more background styles * Fixed some menu styles * Initial old client removal * Added cross-env * removed bower and fixed lint * Made interceptor errors use notify * Removed old client tests and fixed lint
This commit is contained in:
@@ -9,7 +9,6 @@ import getStore from './store';
|
||||
import StoreModule from './libs/store';
|
||||
import './filters/registerGlobals';
|
||||
import i18n from './libs/i18n';
|
||||
import axios from 'axios';
|
||||
import Notifications from 'vue-notification';
|
||||
|
||||
const IS_PRODUCTION = process.env.NODE_ENV === 'production'; // eslint-disable-line no-process-env
|
||||
@@ -24,16 +23,6 @@ Vue.config.performance = !IS_PRODUCTION;
|
||||
// Disable annoying reminder abour production build in dev mode
|
||||
Vue.config.productionTip = IS_PRODUCTION;
|
||||
|
||||
axios.interceptors.response.use((response) => {
|
||||
return response;
|
||||
}, (error) => {
|
||||
if (error.response.status >= 400) {
|
||||
alert(error.response.data.message);
|
||||
}
|
||||
|
||||
return Promise.reject(error);
|
||||
});
|
||||
|
||||
Vue.use(Notifications);
|
||||
Vue.use(i18n);
|
||||
Vue.use(StoreModule);
|
||||
|
||||
Reference in New Issue
Block a user