Commit 83ec8f6d authored by Anton's avatar Anton

Update mbjs-quasar, motion bank api based stores optional

If authentication is OAuth2, the stores do not get initialized, the custom ones can be disabled as features in quasar.conf.js
parent d5d422dd
Pipeline #31610 passed with stage
in 1 minute and 19 seconds
......@@ -10903,9 +10903,9 @@
}
},
"mbjs-quasar": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/mbjs-quasar/-/mbjs-quasar-2.3.1.tgz",
"integrity": "sha512-xpO2/vcVGSGvN0sLV8krvU5hpbaAKqJzf524TqktVXzW1SivRSHAWFffoPeLbFWVnrW4w2xpzBLm8vH9h6Yvsg==",
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/mbjs-quasar/-/mbjs-quasar-2.3.2.tgz",
"integrity": "sha512-/kLfLv1uj2TIm2jsLY0TqBuCf1n8S1Dmm+uysoNUhNO+6ByVDUcqPyd2L9bJzqMZQe6/PHM08EpFXyWuKEv0bA==",
"requires": {
"marked": "^0.5.2",
"sanitize-html": "^1.19.2",
......
......@@ -106,7 +106,14 @@ module.exports = function (ctx) {
BUILD_NAME_EXT: JSON.stringify(process.env.BUILD_NAME_EXT || null),
USE_RESOURCE_CACHE: JSON.stringify(process.env.USE_RESOURCE_CACHE || false),
UI_VERSION: JSON.stringify(process.env.UI_VERSION || require('./package.json').version),
FLUENTFFMPEG_COV: JSON.stringify(false)
FLUENTFFMPEG_COV: JSON.stringify(false),
//
// Features
//
USE_ACL: JSON.stringify(process.env.USE_ACL || true),
USE_FILES: JSON.stringify(process.env.USE_FILES || true),
USE_TAGS: JSON.stringify(process.env.USE_TAGS || true),
USE_METADATA: JSON.stringify(process.env.USE_TAGS || true)
}
},
devServer: {
......
......@@ -65,27 +65,40 @@ else {
/**
* Set up VueX store
*/
const mobaApiModules = {
/** Basic resources using API Client */
annotations: makeResourceModule(apiClient, Annotation, 'annotation'),
maps: makeResourceModule(apiClient, Map, 'map'),
cells: makeResourceModule(apiClient, Cell, 'cell'),
documents: makeResourceModule(apiClient, Document, 'document'),
profiles: makeResourceModule(apiClient, undefined, 'profile'),
sessions: makeResourceModule(apiClient, undefined, 'session')
}
const modules = {
/** Custom stores */
auth,
mosys,
notifications,
swimLane,
vocabularies
}
for (let key in mobaApiModules) {
if (mobaApiModules[key]) modules[key] = mobaApiModules[key]
}
if (process.env.USE_ACL) {
modules.acl = acl
}
if (process.env.USE_FILES) {
modules.files = files
}
if (process.env.USE_TAGS) {
modules.tags = tags
}
if (process.env.USE_METADATA) {
modules.metadata = Platform.is.electron ? require('./modules/metadata-ffprobe').default : metadata
}
const store = new Vuex.Store({
modules: {
/** Basic resources using API Client */
annotations: makeResourceModule(apiClient, Annotation, 'annotation'),
maps: makeResourceModule(apiClient, Map, 'map'),
cells: makeResourceModule(apiClient, Cell, 'cell'),
documents: makeResourceModule(apiClient, Document, 'document'),
profiles: makeResourceModule(apiClient, undefined, 'profile'),
sessions: makeResourceModule(apiClient, undefined, 'session'),
/** Custom stores */
acl,
auth,
files,
tags,
metadata: Platform.is.electron ? require('./modules/metadata-ffprobe').default : metadata,
mosys,
notifications,
swimLane,
vocabularies
}
modules
})
export default store
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment