use ES6 modules for all JavaScript
This commit is contained in:
parent
b945ab3cac
commit
b23ea7474c
@ -1,5 +1,6 @@
|
||||
{
|
||||
"browser": true,
|
||||
"module": true,
|
||||
"devel": true,
|
||||
"esversion": 6,
|
||||
"strict": "global"
|
||||
|
@ -7,7 +7,7 @@ set -o errexit
|
||||
rm -rf static_tmp
|
||||
cp -a static static_tmp
|
||||
json_reformat -m < static_tmp/manifest.webmanifest | sponge static_tmp/manifest.webmanifest
|
||||
find static_tmp -name '*.js' -exec terser -cmo {} {} \;
|
||||
find static_tmp -name '*.js' -exec terser --module -cmo {} {} \;
|
||||
find static_tmp -regex '\(.+/LICENSE\|.+\.\(css\|html\|ico\|js\|svg\|txt\|webmanifest\|xml\)\)' -exec zopfli {} \; -exec touch -r {} {}.gz \;
|
||||
|
||||
remote=www-data@grapheneos.org
|
||||
|
@ -23,6 +23,7 @@
|
||||
<link rel="stylesheet" href="/grapheneos.css?16"/>
|
||||
<link rel="manifest" href="/manifest.webmanifest"/>
|
||||
<link rel="canonical" href="https://grapheneos.org/build"/>
|
||||
<script type="module" src="/redirect.js?6"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@ -935,6 +936,5 @@ export PATH="$PATH:$HOME/sdk/tools:$HOME/sdk/tools/bin:$HOME/sdk/platform-tools:
|
||||
<li><a href="https://reddit.com/r/GrapheneOS">Reddit</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script src="/redirect.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -23,6 +23,7 @@
|
||||
<link rel="stylesheet" href="/grapheneos.css?16"/>
|
||||
<link rel="manifest" href="/manifest.webmanifest"/>
|
||||
<link rel="canonical" href="https://grapheneos.org/faq"/>
|
||||
<script type="module" src="/redirect.js?6"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@ -653,6 +654,5 @@
|
||||
<li><a href="https://reddit.com/r/GrapheneOS">Reddit</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script src="/redirect.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -23,6 +23,7 @@
|
||||
<link rel="stylesheet" href="/grapheneos.css?16"/>
|
||||
<link rel="manifest" href="/manifest.webmanifest"/>
|
||||
<link rel="canonical" href="https://grapheneos.org/"/>
|
||||
<script type="module" src="/redirect.js?6"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@ -114,6 +115,5 @@
|
||||
<li><a href="https://reddit.com/r/GrapheneOS">Reddit</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script src="/redirect.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,7 +1,5 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
|
||||
|
||||
"use strict";
|
||||
|
||||
// Client-side redirects for fragments (anchors)
|
||||
//
|
||||
// It should be possible to do this with server-side redirects, but it was never implemented or
|
||||
|
@ -23,6 +23,8 @@
|
||||
<link rel="stylesheet" href="/grapheneos.css?16"/>
|
||||
<link rel="manifest" href="/manifest.webmanifest"/>
|
||||
<link rel="canonical" href="https://grapheneos.org/releases"/>
|
||||
<script type="module" src="/releases.js?12"></script>
|
||||
<script type="module" src="/redirect.js?6"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@ -1098,7 +1100,5 @@
|
||||
<li><a href="https://reddit.com/r/GrapheneOS">Reddit</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script src="/releases.js?11"></script>
|
||||
<script src="/redirect.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,7 +1,5 @@
|
||||
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
|
||||
|
||||
"use strict";
|
||||
|
||||
const baseUrl = "https://releases.grapheneos.org/";
|
||||
const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/";
|
||||
const devices = ["bonito", "sargo", "crosshatch", "blueline", "taimen", "walleye"];
|
||||
|
@ -23,6 +23,7 @@
|
||||
<link rel="stylesheet" href="/grapheneos.css?16"/>
|
||||
<link rel="manifest" href="/manifest.webmanifest"/>
|
||||
<link rel="canonical" href="https://grapheneos.org/usage"/>
|
||||
<script type="module" src="/redirect.js?6"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@ -335,6 +336,5 @@
|
||||
<li><a href="https://reddit.com/r/GrapheneOS">Reddit</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script src="/redirect.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user