This commit is contained in:
2024-10-15 19:28:32 +05:30
parent 6928c76951
commit 5e91ea959c
7 changed files with 2921 additions and 166 deletions

92
dev-dist/sw.js Normal file
View 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} didnt 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

File diff suppressed because it is too large Load Diff

BIN
public/icon512_maskable.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
public/icon512_rounded.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

23
public/manifest.json Normal file
View 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"
}

View File

@@ -35,7 +35,7 @@ const Home = () => {
backgroundSize="contain"
backgroundRepeat="no-repeat">
<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"}>
<Box w={'100%'} display={"flex"} alignItems={"center"} >
<InputGroup
@@ -115,7 +115,7 @@ const Home = () => {
</Container>
</VStack>
<AmountCard />
<Container maxW="6xl" p={{base:"2rem 1rem",md:"4rem 1rem"}}>
<Container maxW="6xl" p={{base: "2rem 1rem",md:"4rem 1rem"}}>
<Box
p={5}
rounded={10}

View File

@@ -16,35 +16,27 @@ export default defineConfig({
enabled: true,
},
manifest: {
name: "Rebix",
short_name: "RB",
description: "Join your community now",
start_url: "/",
display: "standalone",
theme_color: "#222935",
background_color: "#222935",
icons: [
"theme_color": "#8936FF",
"background_color": "#2f0174",
"icons": [
{
src: "/icon-192x192.png",
sizes: "192x192",
type: "image/png",
"purpose": "maskable",
"sizes": "512x512",
"src": "icon512_maskable.png",
"type": "image/png"
},
{
src: "/icon-256x256.png",
sizes: "256x256",
type: "image/png",
},
{
src: "/icon-384x384.png",
sizes: "384x384",
type: "image/png",
},
{
src: "/icon-512x512.png",
sizes: "512x512",
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"
},
}),
],