Skip to content

Commit 7f7f858

Browse files
committed
Remove jQuery from docs/repo.
Some of the snippets need to be updated later.
1 parent 1da5b9f commit 7f7f858

File tree

23 files changed

+30
-58
lines changed

23 files changed

+30
-58
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ includes code changes) and under the terms of the
224224
- 2 spaces (no tabs)
225225
- strict mode
226226
- "Attractive"
227-
- Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](https://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](https://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded.
228227

229228
### Checking coding style
230229

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ bootstrap/
101101
└── bootstrap.min.js.map
102102
```
103103

104-
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/), but not [jQuery](https://jquery.com/).
104+
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/).
105105

106106

107107
## Bugs and feature requests

_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ cdn:
5555
js_hash: "sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
5656
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"
5757
js_bundle_hash: "sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o"
58-
jquery: "https://code.jquery.com/jquery-3.3.1.slim.min.js"
59-
jquery_hash: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
6058
popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
6159
popper_hash: "sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
6260

build/generate-sri.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const fs = require('fs')
1717
const path = require('path')
1818
const sh = require('shelljs')
1919

20-
const pkg = require('../package.json')
21-
2220
sh.config.fatal = true
2321

2422
const configFile = path.join(__dirname, '../_config.yml')
@@ -39,10 +37,6 @@ const files = [
3937
file: 'dist/js/bootstrap.bundle.min.js',
4038
configPropertyName: 'js_bundle_hash'
4139
},
42-
{
43-
file: `site/docs/${pkg.version_short}/assets/js/vendor/jquery-slim.min.js`,
44-
configPropertyName: 'jquery_hash'
45-
},
4640
{
4741
file: 'node_modules/popper.js/dist/umd/popper.min.js',
4842
configPropertyName: 'popper_hash'

nuget/bootstrap.nuspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<copyright>Copyright 2017-2019</copyright>
1717
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1818
<dependencies>
19-
<dependency id="jQuery" version="[3.0.0,4)" />
2019
<dependency id="popper.js" version="[1.14.0,2)" />
2120
</dependencies>
2221
<tags>css mobile-first responsive front-end framework web</tags>

nuget/bootstrap.sass.nuspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<copyright>Copyright 2017-2019</copyright>
1717
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1818
<dependencies>
19-
<dependency id="jQuery" version="[3.0.0,4)" />
2019
<dependency id="popper.js" version="[1.14.0,2)" />
2120
</dependencies>
2221
<tags>css sass mobile-first responsive front-end framework web</tags>

package.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Package.describe({
99

1010
Package.onUse(function (api) {
1111
api.versionsFrom('[email protected]');
12-
api.use('jquery', 'client');
1312
api.addFiles([
1413
'dist/css/bootstrap.css',
1514
'dist/js/bootstrap.js'

site/_layouts/examples.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
{{ content }}
3939

4040
{%- if page.include_js != false -%}
41-
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
42-
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
43-
4441
{%- if jekyll.environment == "production" -%}
4542
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
4643
{%- else -%}

site/docs/4.3/assets/js/src/application.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@
6767
var exampleModal = document.getElementById('exampleModal')
6868
if (exampleModal) {
6969
exampleModal.addEventListener('show.bs.modal', function (event) {
70-
var button = event.relatedTarget // Button that triggered the modal
70+
var button = event.relatedTarget // Button that triggered the modal
7171
var recipient = button.getAttribute('data-whatever') // Extract info from data-* attributes
7272

73-
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
74-
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
73+
// Update the modal's content.
7574
var modalTitle = exampleModal.querySelector('.modal-title')
7675
var modalBodyInput = exampleModal.querySelector('.modal-body input')
7776

site/docs/4.3/assets/js/vendor/jquery-slim.min.js

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

0 commit comments

Comments
 (0)