Updated all Javascript dependencies
parent
5c919f0f86
commit
d7c42979f1
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -14,37 +14,37 @@
|
|||
"postbuild": "mkdir dettect-editor; mv dist/* dettect-editor; mv dettect-editor dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap-vue": "^2.18.1",
|
||||
"bootstrap-vue": "^2.21.2",
|
||||
"case-insensitive": "^1.0.0",
|
||||
"file-saver": "^2.0.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"jquery": "^3.5.1",
|
||||
"js-yaml": "^3.14.0",
|
||||
"lodash": "^4.17.20",
|
||||
"js-yaml": "^4.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"moment": "^2.29.1",
|
||||
"node-sass": "^4.14.1",
|
||||
"sass-loader": "^8.0.2",
|
||||
"sass-loader": "^10.1.1",
|
||||
"vue": "^2.6.12",
|
||||
"vue-directive-tooltip": "^1.6.3",
|
||||
"vue-js-toggle-button": "^1.3.3",
|
||||
"vue-resource": "^1.5.1",
|
||||
"vue-router": "^3.4.8",
|
||||
"vue-router-prefetch": "^1.6.0",
|
||||
"vue-router": "^3.5.1",
|
||||
"vue-router-prefetch": "^1.6.1",
|
||||
"vue-scrollto": "^2.20.0",
|
||||
"vue-showdown": "^2.4.1",
|
||||
"vue-simple-suggest": "^1.10.3",
|
||||
"vue-slider-component": "^3.2.10",
|
||||
"vue-slider-component": "^3.2.11",
|
||||
"vue2-transitions": "^0.3.0",
|
||||
"vuejs-datepicker": "^1.6.2",
|
||||
"vuejs-smart-table": "0.0.5",
|
||||
"webpack": "^4.44.2"
|
||||
"vuejs-smart-table": "0.0.7",
|
||||
"webpack": "^4.46.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^4.5.8",
|
||||
"@vue/cli-plugin-eslint": "^4.5.8",
|
||||
"@vue/cli-service": "^4.5.8",
|
||||
"eslint": "^7.12.1",
|
||||
"@vue/cli-plugin-babel": "^4.5.11",
|
||||
"@vue/cli-plugin-eslint": "^4.5.11",
|
||||
"@vue/cli-service": "^4.5.11",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-loader": "^4.0.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"eslint-plugin-vue": "^7.6.0",
|
||||
"vue-template-compiler": "^2.6.12"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
|
@ -105,58 +105,59 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
newScore: this.defaultScore,
|
||||
componentKey: 0,
|
||||
componentKey: 0
|
||||
};
|
||||
},
|
||||
mixins: [notificationMixin],
|
||||
props: {
|
||||
item: {
|
||||
type: Array,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
scores: {
|
||||
type: Array,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
scoresTooltip: {
|
||||
type: Object,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
defaultScore: {
|
||||
type: Number,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
showAutoGenerated: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
default: false
|
||||
},
|
||||
modalId: {
|
||||
type: String,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
emptyScoreEntry: {
|
||||
type: Object,
|
||||
required: true,
|
||||
required: true
|
||||
},
|
||||
cb_function: {
|
||||
type: Function,
|
||||
required: false,
|
||||
},
|
||||
required: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
DatePicker,
|
||||
ScoreSlider,
|
||||
ToggleButton,
|
||||
Icons,
|
||||
ExtendedTextarea,
|
||||
ExtendedTextarea
|
||||
},
|
||||
mounted() {
|
||||
this.sortOnDates();
|
||||
},
|
||||
methods: {
|
||||
forceRerender() {
|
||||
// this functions make sure to force a re-render of the component when called
|
||||
// This functions make sure to force a re-render of the component when called.
|
||||
// (note: it will cause a vue js warning msg in the browser console when in dev mode)
|
||||
this.componentKey += 1;
|
||||
},
|
||||
addNewItem() {
|
||||
|
@ -209,8 +210,8 @@ export default {
|
|||
},
|
||||
showHelptextScore(event) {
|
||||
this.$emit('showHelptextScoreNow', event);
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ export const pageMixin = {
|
|||
let newDoc = _.cloneDeep(this.doc);
|
||||
this.convertBeforeDownload(newDoc);
|
||||
|
||||
var blob = new Blob([jsyaml.safeDump(newDoc, { lineWidth: 2000 })], {
|
||||
var blob = new Blob([jsyaml.dump(newDoc, { lineWidth: 2000 })], {
|
||||
type: 'text/plain;charset=utf-8'
|
||||
});
|
||||
var FileSaver = require('file-saver');
|
||||
|
|
|
@ -159,7 +159,7 @@ export default {
|
|||
readFile(event) {
|
||||
// Loads and checks the file content
|
||||
try {
|
||||
let yaml_input = jsyaml.safeLoad(event.result);
|
||||
let yaml_input = jsyaml.load(event.result);
|
||||
|
||||
if (yaml_input['file_type'] == 'data-source-administration') {
|
||||
if (yaml_input['version'] != constants.YAML_DATASOURCES_VERSION) {
|
||||
|
|
|
@ -127,19 +127,19 @@ export default {
|
|||
filters: {
|
||||
filter: {
|
||||
value: '',
|
||||
keys: ['group_name', 'campaign', 'enabled'],
|
||||
},
|
||||
keys: ['group_name', 'campaign', 'enabled']
|
||||
}
|
||||
},
|
||||
data_columns: ['group_name', 'campaign', 'enabled'],
|
||||
groupFileToRender: 'https://raw.githubusercontent.com/wiki/rabobank-cdc/DeTTECT/YAML-administration-groups.md',
|
||||
groupHelpText: null,
|
||||
emptyGroupObject: constants.YAML_OBJ_GROUP,
|
||||
emptyGroupObject: constants.YAML_OBJ_GROUP
|
||||
};
|
||||
},
|
||||
mixins: [pageMixin, notificationMixin],
|
||||
components: {
|
||||
GroupsDetail,
|
||||
Icons,
|
||||
Icons
|
||||
},
|
||||
created: function() {
|
||||
this.preloadMarkDown();
|
||||
|
@ -148,7 +148,7 @@ export default {
|
|||
readFile(event) {
|
||||
// Loads and checks the file content
|
||||
try {
|
||||
let yaml_input = jsyaml.safeLoad(event.result);
|
||||
let yaml_input = jsyaml.load(event.result);
|
||||
|
||||
if (yaml_input['file_type'] == 'group-administration') {
|
||||
if (yaml_input['version'] != constants.YAML_DATASOURCES_VERSION) {
|
||||
|
@ -302,7 +302,7 @@ export default {
|
|||
},
|
||||
notifyInvalidFileType(filename) {
|
||||
this.notifyDanger('Invalid YAML file type', "The file '" + filename + "' is not a valid group administration file.");
|
||||
},
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
listToString: function(value) {
|
||||
|
@ -311,8 +311,8 @@ export default {
|
|||
} else {
|
||||
return value;
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ export default {
|
|||
readFile(event) {
|
||||
// Loads and checks the file content
|
||||
try {
|
||||
let yaml_input = jsyaml.safeLoad(event.result);
|
||||
let yaml_input = jsyaml.load(event.result);
|
||||
|
||||
if (yaml_input['file_type'] == 'technique-administration') {
|
||||
if (yaml_input['version'] != constants.YAML_TECHNIQUES_VERSION) {
|
||||
|
|
Loading…
Reference in New Issue