Skip to content

Commit e31ac92

Browse files
authored
Merge pull request #168 from ctfguide-tech/dev
PWA support
2 parents 8601be1 + 38a7a44 commit e31ac92

File tree

129 files changed

+3165
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+3165
-65
lines changed

next.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
const removeImports = require("next-remove-imports")();
2+
const withPWA = require('next-pwa')({
3+
dest: 'public',
4+
disable: process.env.NODE_ENV === 'development',
5+
});
26

37
/** @type {import('next').NextConfig} */
48
const nextConfig = {
@@ -23,4 +27,4 @@ const nextConfig = {
2327
transpilePackages: ['react-md-editor']
2428
};
2529

26-
module.exports = removeImports(nextConfig);
30+
module.exports = withPWA(removeImports(nextConfig));

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"asciinema-player": "3.6.3",
3232
"autoprefixer": "^10.4.12",
3333
"babel-plugin-macros": "^3.1.0",
34+
"babel-plugin-transform-remove-imports": "^1.8.0",
3435
"chart.js": "^4.4.3",
3536
"clsx": "^1.2.1",
3637
"corepack": "^0.17.0",
@@ -44,6 +45,7 @@
4445
"marked": "^4.3.0",
4546
"material-ui-popup-state": "^5.0.5",
4647
"next": "^14.0.2",
48+
"next-pwa": "^5.6.0",
4749
"next-remove-imports": "^1.0.12",
4850
"postcss-focus-visible": "^6.0.4",
4951
"puppeteer": "^22.0.0",
7.42 KB
Loading
16.2 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading

public/icons/apple-touch-icon.png

6.88 KB
Loading

public/icons/browserconfig.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/icons/mstile-150x150.png"/>
6+
<TileColor>#da532c</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

public/icons/favicon-16x16.png

674 Bytes
Loading

public/icons/favicon-32x32.png

984 Bytes
Loading

public/icons/favicon.ico

7.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)