Updated front dependencies
This commit is contained in:
parent
a7e7ad20a4
commit
7819c60164
|
@ -1,5 +1,5 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
'@vue/app'
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.18.0",
|
||||
"core-js": "^3.6.4",
|
||||
"diff": "^4.0.1",
|
||||
"django-channels": "^1.1.6",
|
||||
"fomantic-ui-css": "^2.8.3",
|
||||
|
@ -40,22 +41,25 @@
|
|||
"vuex-router-sync": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^3.0.0",
|
||||
"@vue/cli-plugin-eslint": "^3.0.0",
|
||||
"@vue/cli-plugin-pwa": "^4.1.2",
|
||||
"@vue/cli-plugin-unit-mocha": "^3.0.0",
|
||||
"@vue/cli-service": "^3.0.0",
|
||||
"@vue/cli-plugin-babel": "~4.2.2",
|
||||
"@vue/cli-plugin-eslint": "~4.2.2",
|
||||
"@vue/cli-plugin-pwa": "~4.2.2",
|
||||
"@vue/cli-plugin-unit-mocha": "~4.2.2",
|
||||
"@vue/cli-service": "~4.2.2",
|
||||
"@vue/test-utils": "^1.0.0-beta.20",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"chai": "^4.1.2",
|
||||
"easygettext": "^2.6.3",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-html": "^4.0.5",
|
||||
"eslint-plugin-vue": "^6.1.2",
|
||||
"glob-all": "^3.1.0",
|
||||
"mocha": "^5.2.0",
|
||||
"moxios": "^0.4.0",
|
||||
"node-sass": "^4.9.3",
|
||||
"preload-webpack-plugin": "^3.0.0-beta.4",
|
||||
"purgecss-webpack-plugin": "^1.6.0",
|
||||
"sass-loader": "^7.1.0",
|
||||
"sass-loader": "^8.0.2",
|
||||
"sinon": "^6.1.5",
|
||||
"vue-template-compiler": "^2.5.17",
|
||||
"webpack-bundle-size-analyzer": "^3.0.0"
|
||||
|
|
|
@ -71,7 +71,7 @@ export default {
|
|||
},
|
||||
onResponse: function (initialResponse) {
|
||||
let results = {}
|
||||
let isEmptyResults = true
|
||||
let isEmptyResults = true
|
||||
let categories = [
|
||||
{
|
||||
code: 'artists',
|
||||
|
@ -140,7 +140,7 @@ export default {
|
|||
results: []
|
||||
}
|
||||
initialResponse[category.code].forEach(result => {
|
||||
isEmptyResults = false
|
||||
isEmptyResults = false
|
||||
let id = category.getId(result)
|
||||
results[category.code].results.push({
|
||||
title: category.getTitle(result),
|
||||
|
@ -156,8 +156,8 @@ export default {
|
|||
})
|
||||
})
|
||||
return {
|
||||
results: isEmptyResults ? {} : results
|
||||
}
|
||||
results: isEmptyResults ? {} : results
|
||||
}
|
||||
},
|
||||
url: this.$store.getters['instance/absoluteUrl']('api/v1/search?query={query}')
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ export default new Router({
|
|||
path: "/front",
|
||||
name: "front",
|
||||
redirect: to => {
|
||||
const { hash, params, query } = to
|
||||
const { hash, query } = to
|
||||
return { name: 'index', hash, query }
|
||||
}
|
||||
},
|
||||
|
|
|
@ -159,7 +159,7 @@ describe('store/auth', () => {
|
|||
payload: {credentials: credentials, onError: spy}
|
||||
}, () => {
|
||||
expect(spy.calledOnce).to.equal(true)
|
||||
done()
|
||||
done() // eslint-disable-line no-undef
|
||||
})
|
||||
})
|
||||
it('fetchProfile', () => {
|
||||
|
|
|
@ -94,10 +94,15 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config.plugins.delete('prefetch-embed')
|
||||
config.plugins.delete('preload-embed')
|
||||
config.plugins.delete('prefetch-index')
|
||||
|
||||
// config.plugins.delete('prefetch-embed')
|
||||
// config.plugins.delete('preload-embed')
|
||||
// config.plugins.delete('prefetch-index')
|
||||
// TODO: Remove this workaround once https://github.com/vuejs/vue-cli/issues/2463 is fixed
|
||||
// Remove preload plugins for multi-page build to prevent infinite recursion
|
||||
['embed', 'index'].forEach(page => {
|
||||
config.plugins.delete(`preload-${page}`)
|
||||
config.plugins.delete(`prefetch-${page}`)
|
||||
})
|
||||
// needed to avoid having big dependedncies included in our lightweight
|
||||
// embed.html, cf https://github.com/vuejs/vue-cli/issues/2381
|
||||
const options = module.exports
|
||||
|
|
4076
front/yarn.lock
4076
front/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue