update
This commit is contained in:
92
dev-dist/sw.js
Normal file
92
dev-dist/sw.js
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
/**
|
||||||
|
* Copyright 2018 Google Inc. All Rights Reserved.
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// If the loader is already loaded, just stop.
|
||||||
|
if (!self.define) {
|
||||||
|
let registry = {};
|
||||||
|
|
||||||
|
// Used for `eval` and `importScripts` where we can't get script URL by other means.
|
||||||
|
// In both cases, it's safe to use a global var because those functions are synchronous.
|
||||||
|
let nextDefineUri;
|
||||||
|
|
||||||
|
const singleRequire = (uri, parentUri) => {
|
||||||
|
uri = new URL(uri + ".js", parentUri).href;
|
||||||
|
return registry[uri] || (
|
||||||
|
|
||||||
|
new Promise(resolve => {
|
||||||
|
if ("document" in self) {
|
||||||
|
const script = document.createElement("script");
|
||||||
|
script.src = uri;
|
||||||
|
script.onload = resolve;
|
||||||
|
document.head.appendChild(script);
|
||||||
|
} else {
|
||||||
|
nextDefineUri = uri;
|
||||||
|
importScripts(uri);
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
.then(() => {
|
||||||
|
let promise = registry[uri];
|
||||||
|
if (!promise) {
|
||||||
|
throw new Error(`Module ${uri} didn’t register its module`);
|
||||||
|
}
|
||||||
|
return promise;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
self.define = (depsNames, factory) => {
|
||||||
|
const uri = nextDefineUri || ("document" in self ? document.currentScript.src : "") || location.href;
|
||||||
|
if (registry[uri]) {
|
||||||
|
// Module is already loading or loaded.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let exports = {};
|
||||||
|
const require = depUri => singleRequire(depUri, uri);
|
||||||
|
const specialDeps = {
|
||||||
|
module: { uri },
|
||||||
|
exports,
|
||||||
|
require
|
||||||
|
};
|
||||||
|
registry[uri] = Promise.all(depsNames.map(
|
||||||
|
depName => specialDeps[depName] || require(depName)
|
||||||
|
)).then(deps => {
|
||||||
|
factory(...deps);
|
||||||
|
return exports;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
define(['./workbox-b5f7729d'], (function (workbox) { 'use strict';
|
||||||
|
|
||||||
|
self.skipWaiting();
|
||||||
|
workbox.clientsClaim();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The precacheAndRoute() method efficiently caches and responds to
|
||||||
|
* requests for URLs in the manifest.
|
||||||
|
* See https://goo.gl/S9QRab
|
||||||
|
*/
|
||||||
|
workbox.precacheAndRoute([{
|
||||||
|
"url": "registerSW.js",
|
||||||
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
|
}, {
|
||||||
|
"url": "index.html",
|
||||||
|
"revision": "0.kb4eps7ip5"
|
||||||
|
}], {});
|
||||||
|
workbox.cleanupOutdatedCaches();
|
||||||
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
allowlist: [/^\/$/]
|
||||||
|
}));
|
||||||
|
|
||||||
|
}));
|
||||||
2926
package-lock.json
generated
2926
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
BIN
public/icon512_maskable.png
Normal file
BIN
public/icon512_maskable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
public/icon512_rounded.png
Normal file
BIN
public/icon512_rounded.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
23
public/manifest.json
Normal file
23
public/manifest.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"theme_color": "#8936FF",
|
||||||
|
"background_color": "#2f0174",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"purpose": "maskable",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"src": "icon512_maskable.png",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"purpose": "any",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"src": "icon512_rounded.png",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orientation": "any",
|
||||||
|
"display": "standalone",
|
||||||
|
"dir": "auto",
|
||||||
|
"lang": "en-US",
|
||||||
|
"name": "Rubix"
|
||||||
|
}
|
||||||
@@ -35,7 +35,7 @@ const Home = () => {
|
|||||||
backgroundSize="contain"
|
backgroundSize="contain"
|
||||||
backgroundRepeat="no-repeat">
|
backgroundRepeat="no-repeat">
|
||||||
<Box>
|
<Box>
|
||||||
<VStack pt={{base:28,md:28}} mb={{base:8,md: 14}}>
|
<VStack pt={{base:colorMode === "light"?28:24,md:28}} mb={{base:8,md: 14}}>
|
||||||
<Container maxW="3xl" position={"relative"}>
|
<Container maxW="3xl" position={"relative"}>
|
||||||
<Box w={'100%'} display={"flex"} alignItems={"center"} >
|
<Box w={'100%'} display={"flex"} alignItems={"center"} >
|
||||||
<InputGroup
|
<InputGroup
|
||||||
@@ -115,7 +115,7 @@ const Home = () => {
|
|||||||
</Container>
|
</Container>
|
||||||
</VStack>
|
</VStack>
|
||||||
<AmountCard />
|
<AmountCard />
|
||||||
<Container maxW="6xl" p={{base:"2rem 1rem",md:"4rem 1rem"}}>
|
<Container maxW="6xl" p={{base: "2rem 1rem",md:"4rem 1rem"}}>
|
||||||
<Box
|
<Box
|
||||||
p={5}
|
p={5}
|
||||||
rounded={10}
|
rounded={10}
|
||||||
|
|||||||
@@ -16,35 +16,27 @@ export default defineConfig({
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
manifest: {
|
manifest: {
|
||||||
name: "Rebix",
|
"theme_color": "#8936FF",
|
||||||
short_name: "RB",
|
"background_color": "#2f0174",
|
||||||
description: "Join your community now",
|
"icons": [
|
||||||
start_url: "/",
|
|
||||||
display: "standalone",
|
|
||||||
theme_color: "#222935",
|
|
||||||
background_color: "#222935",
|
|
||||||
icons: [
|
|
||||||
{
|
{
|
||||||
src: "/icon-192x192.png",
|
"purpose": "maskable",
|
||||||
sizes: "192x192",
|
"sizes": "512x512",
|
||||||
type: "image/png",
|
"src": "icon512_maskable.png",
|
||||||
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "/icon-256x256.png",
|
"purpose": "any",
|
||||||
sizes: "256x256",
|
"sizes": "512x512",
|
||||||
type: "image/png",
|
"src": "icon512_rounded.png",
|
||||||
},
|
"type": "image/png"
|
||||||
{
|
}
|
||||||
src: "/icon-384x384.png",
|
|
||||||
sizes: "384x384",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: "/icon-512x512.png",
|
|
||||||
sizes: "512x512",
|
|
||||||
type: "image/png",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
|
"orientation": "any",
|
||||||
|
"display": "standalone",
|
||||||
|
"dir": "auto",
|
||||||
|
"lang": "en-US",
|
||||||
|
"name": "Rubix"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user