Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
"@fullcalendar/list": "^5.11.3",
"@fullcalendar/luxon2": "^5.11.3",
"@fullcalendar/timegrid": "^5.11.3",
"@juggle/resize-observer": "^3.4.0",
"@stomp/stompjs": "^6.1.2",
"dompurify": "^2.4.1",
"google-code-prettify": "^1.0.5",
"highlight.js": "<11",
"imagesloaded": "^4.1.4",
"intersection-observer": "^0.12.2",
"jquery": "^3.6.1",
"jquery-jcrop": "^0.9.13",
"luxon": "2.4.0",
Expand All @@ -29,21 +26,17 @@
"photoswipe": "^4.1.3",
"pikaday": "^1.8.0",
"prettier": "^2.8.0",
"prismjs": "^1.29.0",
"promise-polyfill": "^8.2.3",
"screenfull": "^6.0.2",
"select2": "^3.5.1",
"showdown": "^2.1.0",
"showdown-prettify": "^1.3.0",
"slick-carousel": "^1.8.1",
"slides": "git+https://github.com/Patternslib/slides.git",
"spectrum-colorpicker": "^1.8.0",
"tippy.js": "^6.3.7",
"url-polyfill": "^1.1.9",
"whatwg-fetch": "^3.4.0"
"tippy.js": "^6.3.7"
},
"devDependencies": {
"@patternslib/dev": "^3.1.5",
"@patternslib/dev": "^3.1.6",
"@patternslib/pat-content-mirror": "^3.0.0",
"@patternslib/pat-doclock": "^3.0.0",
"@patternslib/pat-shopping-cart": "^3.0.0",
Expand Down Expand Up @@ -71,7 +64,6 @@
},
"browserslist": [
">0.2%",
"ie >= 11",
"not dead"
],
"author": {
Expand Down
1 change: 0 additions & 1 deletion src/pat/collapsible/collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Pattern extends BasePattern {
static name = "collapsible";
static trigger = ".pat-collapsible";
static parser = parser;
jquery_plugin = true;

transitions = {
"none": { closed: "hide", open: "show" },
Expand Down
28 changes: 2 additions & 26 deletions src/polyfills-loader.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,2 @@
var script_source = function () {
// See: https://stackoverflow.com/a/984656/1337474
var scripts = document.getElementsByTagName("script");
var script = scripts[scripts.length - 1];

if (script.getAttribute.length !== undefined) {
return script.src;
}

// Some IE quirks
return script.getAttribute("src", -1);
};

(function () {
// https://stackoverflow.com/a/8578840/1337474
// if IE
if (/*@cc_on!@*/ false || !!document.documentMode) {
var script_url = script_source();
script_url = script_url.substring(0, script_url.lastIndexOf("/")) + "/";

var script_tag = document.createElement("script");
script_tag.type = "text/javascript";
script_tag.src = script_url + "bundle-polyfills.min.js";
document.getElementsByTagName("head")[0].appendChild(script_tag);
}
})();
// TODO: REMOVE with next major release
// BBB backwards compatibility
69 changes: 0 additions & 69 deletions src/polyfills.js

This file was deleted.

2 changes: 2 additions & 0 deletions src/public_path.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// DEPRECATED. Webpack handles the public path by iteself.
// TODO: REMOVE with next major release
// NOTE: Import this file before any other files
// Overwrite path to load resources or use default one.
__webpack_public_path__ = window.__patternslib_public_path__; // eslint-disable-line no-undef
Expand Down
1 change: 0 additions & 1 deletion webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = () => {
let config = {
entry: {
"bundle.min": path.resolve(__dirname, "../src/index.js"),
"bundle-polyfills.min": path.resolve(__dirname, "../src/polyfills.js"),
},
};

Expand Down
Loading