Skip to content

Commit f916477

Browse files
committed
Move bootstrap & github-buttons to web_modules
- removing legacy scripts from plugins page
1 parent e7952a9 commit f916477

22 files changed

+7774
-31
lines changed

micro_files/plugin-search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
'use strict';
2-
1+
import '/web_modules/bootstrap.js';
2+
import '/web_modules/github-buttons.js';
33
import '/web_modules/whatwg-fetch.js';
44
import html from '/web_modules/nanohtml/lib/browser.js';
55
import pMap from '/web_modules/p-map.js';

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
}
2525
},
2626
"dependencies": {
27+
"bootstrap": "^3.4.1",
28+
"github-buttons": "^2.7.0",
2729
"nanohtml": "^1.9.0",
2830
"p-map": "^3.0.0",
2931
"semver": "^7.1.3",
@@ -46,6 +48,10 @@
4648
"webDependencies": [
4749
"nanohtml/lib/browser.js",
4850
"p-map",
51+
"github-buttons",
52+
"bootstrap",
53+
"bootstrap/dist/css/**",
54+
"bootstrap/dist/fonts/**",
4955
"semver/functions/rcompare.js",
5056
"strip-json-comments",
5157
"whatwg-fetch"

plugins.html

+2-9
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@
88
<meta name="description" content="">
99
<meta name="author" content="">
1010
<link rel="icon" href="./micro_files/icon.png">
11-
<script async defer src="https://buttons.github.io/buttons.js"></script>
12-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
13-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
14-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
1511

1612
<title>Micro - Plugins</title>
1713

18-
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
19-
<link href="micro_files/ie10-viewport-bug-workaround.css" rel="stylesheet">
20-
14+
<link rel="stylesheet" href="/web_modules/bootstrap/dist/css/bootstrap.min.css">
2115
<!-- Custom styles for this template -->
2216
<link href="micro_files/micro.css" rel="stylesheet">
2317

@@ -84,8 +78,7 @@ <h2>Plugins</h2>
8478
</footer>
8579
</div> <!-- /container -->
8680

87-
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
88-
<script src="micro_files/ie10-viewport-bug-workaround.js"></script>
81+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
8982
<script type="module" src="/micro_files/plugin-search.js"></script>
9083
<script nomodule src="/web_modules/plugin-search.bundle.js"></script>
9184
</body>

web_modules/bootstrap.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web_modules/bootstrap.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)