Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.6] Remove all polyfill.io #9381

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Remove all polyfill.io
  • Loading branch information
sbrunner committed Jun 27, 2024
commit df465cb1f389f3bf907fb9662345ea4c9633e606
5 changes: 0 additions & 5 deletions api/dist/apihelp/apihelp.html
Original file line number Diff line number Diff line change
@@ -39,7 +39,6 @@
}
</style>
<link href="github.css" rel="stylesheet" type="text/css" media="screen">
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="rainbow-custom.min.js"></script>
<script src="../api.js"></script>
<link href="../api.css" rel="stylesheet" type="text/css">
@@ -54,10 +53,6 @@ <h1>Simple API Help</h1>
<h2>Basis</h2>
<p>To use the API you should add the following HTML:</p>
<pre><code data-language="html">
&lt;script
src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values"
crossorigin="anonymous"&gt;
&lt;/script&gt;
&lt;link href="https://geomapfish-demo-2-6.camptocamp.com/api.css" rel="stylesheet"&gt;
&lt;script src="https://geomapfish-demo-2-6.camptocamp.com/api.js?version=2"&gt;&lt;/script&gt;
&lt;script&gt;
1 change: 0 additions & 1 deletion buildtools/check-example.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

Check failure on line 22 in buildtools/check-example.js

GitHub Actions / Continuous integration

incorrect header

const path = require('path');
const fs = require('fs');
@@ -227,7 +227,6 @@
const url = request.url();
if (
!url.startsWith('https://www.camptocamp.com/') &&
!url.startsWith('https://cdn.polyfill.io/') &&
!url.startsWith('https://maps.googleapis.com/')
) {
console.log(`Request failed on: ${url}`);
1 change: 0 additions & 1 deletion contribs/gmf/apps/desktop/index.html.ejs
Original file line number Diff line number Diff line change
@@ -336,7 +336,6 @@
ngeo-resizemap-state="mainCtrl.queryGridActive">
</gmf-displayquerygrid>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
1 change: 0 additions & 1 deletion contribs/gmf/apps/desktop_alt/index.html.ejs
Original file line number Diff line number Diff line change
@@ -424,7 +424,6 @@
</gmf-lidarprofile>
</div>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyA3NVIy-HOYT0a0CkChA6nFwqEFqHYWBVk"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
1 change: 0 additions & 1 deletion contribs/gmf/apps/iframe_api/index.html.ejs
Original file line number Diff line number Diff line change
@@ -72,7 +72,6 @@
<gmf-share ng-if="mainCtrl.modalShareShown"></gmf-share>
</ngeo-modal>
</main>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
1 change: 0 additions & 1 deletion contribs/gmf/apps/mobile/index.html.ejs
Original file line number Diff line number Diff line change
@@ -188,7 +188,6 @@
gmf-mobile-nav-back="mainCtrl.gmfUser.username !== null">
</gmf-authentication>
</nav>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
1 change: 0 additions & 1 deletion contribs/gmf/apps/mobile_alt/index.html.ejs
Original file line number Diff line number Diff line change
@@ -173,7 +173,6 @@
gmf-mobile-nav-back="mainCtrl.gmfUser.username !== null">
</gmf-authentication>
</nav>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
1 change: 0 additions & 1 deletion contribs/gmf/apps/oeedit/index.html.ejs
Original file line number Diff line number Diff line change
@@ -153,7 +153,6 @@
ngeo-resizemap-state="profileChartActive">
</gmf-profile>
</footer>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values" crossorigin="anonymous"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}" crossorigin="anonymous"></script>
<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>" crossorigin="anonymous"></script>
14 changes: 0 additions & 14 deletions contribs/gmf/src/controllers/bootstrap.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import $ from 'jquery';

Check failure on line 22 in contribs/gmf/src/controllers/bootstrap.js

GitHub Actions / Continuous integration

incorrect header
import angular from 'angular';

/**
@@ -28,20 +28,6 @@
* @param {angular.IModule} module The module
*/
function bootstrap(module) {
// Hack to make the bootstrap type check working with polyfill.io
const oldObjectToString = Object.prototype.toString;
if (!oldObjectToString.toString().includes('[native code]')) {
Object.prototype.toString = function () {
if (this === null) {
return '[object Null]';
}
if (this === undefined) {
return '[object Undefined]';
}
return oldObjectToString.call(this);
};
}

const interface_ = $('meta[name=interface]')[0].getAttribute('content');
const dynamicUrl_ = $('meta[name=dynamicUrl]')[0].getAttribute('content');
const search = document.location ? document.location.search || '' : '';
Loading