Skip to content

Commit

Permalink
Remove Polyfill (#456)
Browse files Browse the repository at this point in the history
* Remove Polyfill

* fix
  • Loading branch information
coliff committed Jun 27, 2024
1 parent 6b371fd commit a5b9417
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 23 deletions.
13 changes: 4 additions & 9 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@
"hjsv",
"hljs",
"hodgeman",
"holo",
"homepage",
"hornung",
"horz",
Expand Down Expand Up @@ -746,6 +747,7 @@
"overlines",
"overrides",
"Pagespeed",
"pagestyle",
"pageview",
"paginations",
"pandoc",
Expand Down Expand Up @@ -1168,15 +1170,8 @@
"hte",
"whitelist"
],
"language": "en,en-US",
"ignoreRegExpList": [
"<!-- prettier-ignore -->\\n(`{3,})\\w*\\n[\\s\\S]+?\\1",
"\\[(\\*{2})?@\\w+?\\1\\]",
"\\[`\\w+`\\]",
"\\/.*?\\/",
"\\_\\w+",
"\\#\\w+"
],
"language": "en,en-US,lorem",
"ignoreRegExpList": ["\\#\\w+"],
"ignorePaths": [
".cspell.json",
"**/inputs.md",
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20.15.0
2 changes: 0 additions & 2 deletions content/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ If you want to also use the Modus Framework layout (top nav, left nav, and conte
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@{{< modus-bootstrap-version >}}/dist/modus-layout.css">
<script src="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@{{< modus-bootstrap-version >}}/dist/modus-layout.js"></script>
<!-- For Internet Explorer compatibility -->
<script nomodule src="https://polyfill.io/v3/polyfill.min.js"></script>
```

Learn more about [using the layout CSS/JS](/layout/).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint-js": "eslint \"assets/js/*.js\" \"layouts/**/*.html\" --fix",
"lint-links": "npx linkinator ./build --recurse --silent",
"lint-markdown": "npx markdownlint-cli content/**/*.md",
"lint-spellcheck": "npx cspell \"content/**/*.md\" --no-progress",
"lint-spell": "npx cspell \"content/**/*.*\" --no-progress",
"pa11y": "npx pa11y https://modus-bootstrap.trimble.com/",
"prettier": "prettier --write \"**/*.{json,scss,yml}\"",
"serve": "npm run lint-js && hugo serve --port 5000 --disableFastRender --navigateToChanged",
Expand All @@ -39,7 +39,7 @@
"eslint": "8.57.0",
"eslint-plugin-html": "8.1.1",
"htmlhint": "1.1.4",
"hugo-bin": "0.124.0",
"hugo-bin": "0.125.0",
"list.js": "2.3.1",
"npm-run-all": "4.1.5",
"postcss": "8.4.38",
Expand Down
8 changes: 3 additions & 5 deletions static/examples/maps-webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
<title>Modus Bootstrap Map Example</title>

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@trimble-oss/modus-icons@1.8.0/dist/transportation/fonts/modus-icons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimblemaps/trimblemaps-js@3.12.0/trimblemaps.css" />
href="https://cdn.jsdelivr.net/npm/@trimble-oss/modus-icons@1.14.0/dist/transportation/fonts/modus-icons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimblemaps/trimblemaps-js@3.16.0/trimblemaps.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@1/dist/modus-layout.min.css" />
<link id="pagestyle" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@1.6.2/dist/modus.min.css" />
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>Ⓜ️</text></svg>">
<!-- IE11 polyfill for Modus Layout-->
<script nomodule crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
</head>

<body>
Expand Down Expand Up @@ -264,7 +262,7 @@ <h5 class="card-title">Panel Content</h5>
<script src="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@1.6.2/dist/modus-layout.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@trimblemaps/trimblemaps-js@3.12.0/trimblemaps.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@trimblemaps/trimblemaps-js@3.16.0/trimblemaps.min.js"></script>
<script>
TrimbleMaps.APIKey = "68B06901AF7DA34884CE5FB7A202A743";

Expand Down
4 changes: 0 additions & 4 deletions static/examples/modus-layout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Modus Bootstrap - Layout</title>

<!-- Faster Loading Google Fonts - https://www.cdnplanet.com/blog/faster-google-webfonts-preconnect/ -->
Expand All @@ -19,9 +18,6 @@
<!-- Modus layout CSS must load before Modus Bootstrap CSS so that colors are overwritten -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@1/dist/modus-layout.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@trimbleinc/modus-bootstrap@1/dist/modus.min.css">

<!-- IE11 polyfill for Modus Layout-->
<script nomodule crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
</head>

<body>
Expand Down

0 comments on commit a5b9417

Please sign in to comment.