Skip to content

Commit b21ad9b

Browse files
committed
Remove IE11 support
With master now on 1.13, it's time to drop IE11 for good. The woff variants are also in use by Opera Mini but it has even less market share and I can only imagine how broken the UI is in it. Fixes: go-gitea#6147
1 parent 7fd60c6 commit b21ad9b

9 files changed

+9
-42
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
"updates": "10.2.11"
5959
},
6060
"browserslist": [
61-
"defaults"
61+
"defaults",
62+
"not ie > 0",
63+
"not ie_mob > 0"
6264
]
6365
}

web_src/js/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
44

55
import './publicpath.js';
6-
import './polyfills.js';
76

87
import Vue from 'vue';
98
import 'jquery.are-you-sure';

web_src/js/polyfills.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

web_src/js/publicpath.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// This sets up webpack's chunk loading to load resources from the 'public'
22
// directory. This file must be imported before any lazy-loading is being attempted.
33

4-
if (document.currentScript && document.currentScript.src) {
5-
const url = new URL(document.currentScript.src);
6-
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');
7-
} else {
8-
// compat: IE11
9-
const script = document.querySelector('script[src*="/index.js"]');
10-
__webpack_public_path__ = script.getAttribute('src').replace(/\/[^/]*?\/[^/]*?$/, '/');
11-
}
4+
const url = new URL(document.currentScript.src);
5+
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');

web_src/less/_base.less

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
local('Roboto'),
88
local('Roboto-Regular'),
99
/* Chrome 26+, Opera 23+, Firefox 39+ */
10-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2'),
11-
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
12-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff') format('woff');
10+
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2');
1311
}
1412

1513
/* roboto-italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
@@ -20,10 +18,7 @@
2018
src:
2119
local('Roboto Italic'),
2220
local('Roboto-Italic'),
23-
/* Chrome 26+, Opera 23+, Firefox 39+ */
24-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2'),
25-
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
26-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff') format('woff');
21+
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2');
2722
}
2823

2924
/* roboto-700 - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
@@ -34,10 +29,7 @@
3429
src:
3530
local('Roboto Bold'),
3631
local('Roboto-Bold'),
37-
/* Chrome 26+, Opera 23+, Firefox 39+ */
38-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2'),
39-
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
40-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff') format('woff');
32+
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2');
4133
}
4234

4335
/* roboto-700italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
@@ -48,10 +40,7 @@
4840
src:
4941
local('Roboto Bold Italic'),
5042
local('Roboto-BoldItalic'),
51-
/* Chrome 26+, Opera 23+, Firefox 39+ */
52-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2'),
53-
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
54-
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff') format('woff');
43+
url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2');
5544
}
5645

5746
@font-face {

0 commit comments

Comments
 (0)