diff options
author | silverwind <me@silverwind.io> | 2020-05-20 05:28:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 23:28:59 -0400 |
commit | 34e6a4e05734a642883037ba1a9f78750c1a0583 (patch) | |
tree | 02f05d48cc76b6cfecb3e3adaf7d91554f8a0364 | |
parent | 6da87eda8bcfca49a008c07f7e3cff001df921bf (diff) | |
download | gitea-34e6a4e05734a642883037ba1a9f78750c1a0583.tar.gz gitea-34e6a4e05734a642883037ba1a9f78750c1a0583.zip |
Remove IE11 support (#11470)
* 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: https://github.com/go-gitea/gitea/issues/6147
* update docs
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-rw-r--r-- | docs/content/doc/features/authentication.en-us.md | 4 | ||||
-rw-r--r-- | docs/content/page/index.en-us.md | 4 | ||||
-rw-r--r-- | package.json | 4 | ||||
-rw-r--r-- | public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff | bin | 66260 -> 0 bytes | |||
-rw-r--r-- | public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff | bin | 70756 -> 0 bytes | |||
-rw-r--r-- | public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff | bin | 70252 -> 0 bytes | |||
-rw-r--r-- | public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff | bin | 66044 -> 0 bytes | |||
-rw-r--r-- | web_src/js/index.js | 1 | ||||
-rw-r--r-- | web_src/js/polyfills.js | 17 | ||||
-rw-r--r-- | web_src/js/publicpath.js | 10 | ||||
-rw-r--r-- | web_src/less/_base.less | 19 |
11 files changed, 14 insertions, 45 deletions
diff --git a/docs/content/doc/features/authentication.en-us.md b/docs/content/doc/features/authentication.en-us.md index 4a016fc134..bc4c33ad4d 100644 --- a/docs/content/doc/features/authentication.en-us.md +++ b/docs/content/doc/features/authentication.en-us.md @@ -238,9 +238,9 @@ Before activating SSPI single sign-on authentication (SSO) you have to prepare y - Sign in to a client computer in the same domain with any domain user (client computer, different from the server running `gitea.exe`) -- If you are using Chrome, Edge or Internet Explorer, add the URL of the web app to the Local intranet sites (`Internet Options -> Security -> Local intranet -> Sites`) +- If you are using Chrome or Edge, add the URL of the web app to the Local intranet sites (`Internet Options -> Security -> Local intranet -> Sites`) -- Start Chrome, Edge or Internet Explorer and navigate to the FQDN URL of gitea (eg. `http://host.domain.local:3000`) +- Start Chrome or Edge and navigate to the FQDN URL of gitea (eg. `http://host.domain.local:3000`) - Click the `Sign In` button on the dashboard and choose SSPI to be automatically logged in with the same user that is currently logged on to the computer diff --git a/docs/content/page/index.en-us.md b/docs/content/page/index.en-us.md index 0924865f6a..ed053f04b3 100644 --- a/docs/content/page/index.en-us.md +++ b/docs/content/page/index.en-us.md @@ -261,7 +261,9 @@ Windows, on architectures like amd64, i386, ARM, PowerPC, and others. ## Browser Support -- Please see [Semantic UI](https://github.com/Semantic-Org/Semantic-UI#browser-support) for specific versions of supported browsers. +- Last 2 versions of Chrome, Firefox and Safari +- Firefox ESR +- Edge 14+ ## Components diff --git a/package.json b/package.json index 7fb8246af2..e48bb20819 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,8 @@ "updates": "10.2.11" }, "browserslist": [ - "defaults" + "defaults", + "not ie > 0", + "not ie_mob > 0" ] } diff --git a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff b/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff Binary files differdeleted file mode 100644 index 8c9b024103..0000000000 --- a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff +++ /dev/null diff --git a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff b/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff Binary files differdeleted file mode 100644 index 55befb6958..0000000000 --- a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff +++ /dev/null diff --git a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff b/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff Binary files differdeleted file mode 100644 index cd91cce9c5..0000000000 --- a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff +++ /dev/null diff --git a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff b/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff Binary files differdeleted file mode 100644 index 7245f5cae7..0000000000 --- a/public/vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff +++ /dev/null diff --git a/web_src/js/index.js b/web_src/js/index.js index b808812372..af1c4acd46 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3,7 +3,6 @@ /* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */ import './publicpath.js'; -import './polyfills.js'; import Vue from 'vue'; import 'jquery.are-you-sure'; diff --git a/web_src/js/polyfills.js b/web_src/js/polyfills.js deleted file mode 100644 index 0063b6d253..0000000000 --- a/web_src/js/polyfills.js +++ /dev/null @@ -1,17 +0,0 @@ -// compat: IE11 -if (!Element.prototype.matches) { - Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; -} - -// compat: IE11 -if (!Element.prototype.closest) { - Element.prototype.closest = function (s) { - let el = this; - - do { - if (el.matches(s)) return el; - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }; -} diff --git a/web_src/js/publicpath.js b/web_src/js/publicpath.js index 392c03e700..892bb459aa 100644 --- a/web_src/js/publicpath.js +++ b/web_src/js/publicpath.js @@ -1,11 +1,5 @@ // This sets up webpack's chunk loading to load resources from the 'public' // directory. This file must be imported before any lazy-loading is being attempted. -if (document.currentScript && document.currentScript.src) { - const url = new URL(document.currentScript.src); - __webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/'); -} else { - // compat: IE11 - const script = document.querySelector('script[src*="/index.js"]'); - __webpack_public_path__ = script.getAttribute('src').replace(/\/[^/]*?\/[^/]*?$/, '/'); -} +const url = new URL(document.currentScript.src); +__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/'); diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 823ad151d3..03dc61a987 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -7,9 +7,7 @@ local('Roboto'), local('Roboto-Regular'), /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2'), - /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff') format('woff'); + url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2'); } /* roboto-italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */ @@ -20,10 +18,7 @@ src: local('Roboto Italic'), local('Roboto-Italic'), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2'), - /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff') format('woff'); + url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2'); } /* roboto-700 - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */ @@ -34,10 +29,7 @@ src: local('Roboto Bold'), local('Roboto-Bold'), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2'), - /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff') format('woff'); + url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2'); } /* roboto-700italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */ @@ -48,10 +40,7 @@ src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2'), - /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ - url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff') format('woff'); + url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2'); } @font-face { |