Skip to content
Permalink
Browse files

10050 FIX Fix GUI incompatiblities with IE11

The whole javascript functionality was broken with IE11 in previous 1.6.0
releases. We have now restored the most functionality for IE11. Some
advanced or rarely used features might still not work, please let us know.

Change-Id: I2ba7d19ffe9105b1e53870badeb44c329139efe8
  • Loading branch information...
LarsMichelsen committed Sep 19, 2019
1 parent 19bfdb4 commit 3ea49075f2bef9aabcaf359ea067c0063ffe8dd7
Showing with 107 additions and 73 deletions.
  1. +13 −0 .werks/10050
  2. +72 −67 package-lock.json
  3. +3 −2 package.json
  4. +3 −1 web/htdocs/js/index.js
  5. +1 −1 web/htdocs/js/side_index.js
  6. +15 −2 webpack.config.js
@@ -0,0 +1,13 @@
Title: Fix GUI incompatiblities with IE11
Level: 1
Component: multisite
Class: fix
Compatible: compat
Edition: cre
State: unknown
Version: 1.7.0i1
Date: 1568819684

The whole javascript functionality was broken with IE11 in previous 1.6.0
releases. We have now restored the most functionality for IE11. Some
advanced or rarely used features might still not work, please let us know.

Some generated files are not rendered by default. Learn more.

@@ -22,8 +22,8 @@
"author": "",
"license": "GPL-2.0",
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"autoprefixer": "^9.6.1",
"babel-loader": "^8.0.6",
"css-loader": "^3.2.0",
@@ -45,6 +45,7 @@
},
"dependencies": {
"@yaireo/tagify": "2.16.0",
"core-js": "^3.2.1",
"d3": "^5.11.0",
"d3-flextree": "^2.1.1",
"jquery": "^3.4.1",
@@ -22,6 +22,8 @@
// to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
// Boston, MA 02110-1301 USA.

import "core-js/stable";

import $ from "jquery";
import * as forms from "forms";
import * as ajax from "ajax";
@@ -74,7 +76,7 @@ $(() => {
element_dragging.register_event_handlers();
});

export default {
export const cmk_export = {
cmk: {
forms: forms,
prediction: prediction,
@@ -32,7 +32,7 @@ import * as quicksearch from "quicksearch";
import * as visibility_detection from "visibility_detection";
import * as valuespecs from "valuespecs";

export default {
export const cmk_export = {
get_url: ajax.get_url,
post_url: ajax.post_url,
call_ajax: ajax.call_ajax,
@@ -23,7 +23,7 @@ module.exports = {
// from HTML code to work with the modules. Until then we need to keep the old behaviour of loading
// all JS code in the global namespace
libraryTarget: "window",
libraryExport: "default"
libraryExport: "cmk_export"
},
resolve: {
modules: [
@@ -97,10 +97,23 @@ if (process.env.WEBPACK_MODE === "quick") {
console.log("using Babel in Webpack mode '" + process.env.WEBPACK_MODE + "'");
let babel_loader = {
test: /\.js$/,
// Do not try to execute babel on all node_modules. But some d3 stuff seems to need it's help.
include: [
path.resolve(__dirname, "web/htdocs/js"),
path.resolve(__dirname, "node_modules/d3"),
],
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
presets: [
["@babel/preset-env", {
//debug: true,
// This adds polyfills when needed. Requires core-js dependency.
// See https://babeljs.io/docs/en/babel-preset-env#usebuiltins
useBuiltIns: "usage",
corejs: 3
}]
],
}
}
};

0 comments on commit 3ea4907

Please sign in to comment.
You can’t perform that action at this time.