Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
flyfy1 committed Nov 13, 2024
1 parent f67f3db commit b07c099
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 10 deletions.
6 changes: 3 additions & 3 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.6b1f6b01.css",
"main.js": "/static/js/main.ea2b1840.js",
"main.js": "/static/js/main.b2fbde28.js",
"static/js/646.cf3f2924.chunk.js": "/static/js/646.cf3f2924.chunk.js",
"index.html": "/index.html",
"main.6b1f6b01.css.map": "/static/css/main.6b1f6b01.css.map",
"main.ea2b1840.js.map": "/static/js/main.ea2b1840.js.map",
"main.b2fbde28.js.map": "/static/js/main.b2fbde28.js.map",
"646.cf3f2924.chunk.js.map": "/static/js/646.cf3f2924.chunk.js.map"
},
"entrypoints": [
"static/css/main.6b1f6b01.css",
"static/js/main.ea2b1840.js"
"static/js/main.b2fbde28.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.ea2b1840.js"></script><link href="/static/css/main.6b1f6b01.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.b2fbde28.js"></script><link href="/static/css/main.6b1f6b01.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"start_url": ".",
"display": "standalone",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -18,8 +20,6 @@
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
22 changes: 22 additions & 0 deletions service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
self.addEventListener('install', (event) => {
event.waitUntil(
caches.open('my-cache').then((cache) => {
return cache.addAll([
'/',
'/index.html',
'/static/js/bundle.js',
'/static/js/main.js',
'/static/css/main.css',
// 添加其他需要缓存的资源
]);
})
);
});

self.addEventListener('fetch', (event) => {
event.respondWith(
caches.match(event.request).then((response) => {
return response || fetch(event.request);
})
);
});
6 changes: 3 additions & 3 deletions static/js/main.ea2b1840.js → static/js/main.b2fbde28.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions static/js/main.b2fbde28.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion static/js/main.ea2b1840.js.map

This file was deleted.

0 comments on commit b07c099

Please sign in to comment.