feat: add new logo assets and manifest for frontend
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1083"><g id="c"><ellipse id="d" cx="644.89" cy="644.5" rx="97.36" ry="99"/><path id="e" d="M508.34,338.5h3.14c65.24,0,106.01,70.62,73.39,127.12l-160.44,277.88h0c-66.63,0-108.27-72.13-74.96-129.83l158.87-275.17Z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 326 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1083"><g id="c"><rect y="1" width="1080" height="1082" fill="#fff"/></g><g id="d"><ellipse id="e" cx="644.89" cy="644.5" rx="97.36" ry="99"/><path id="f" d="M508.34,338.5h3.14c65.24,0,106.01,70.62,73.39,127.12l-160.44,277.88h0c-66.63,0-108.27-72.13-74.96-129.83l158.87-275.17Z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 392 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1080 1082"><defs><linearGradient id="d" x1="672.85" y1="463.7" x2="99.41" y2="1037.14" gradientUnits="userSpaceOnUse"><stop offset=".08" stop-color="#fff"/><stop offset=".26" stop-color="#bfbfbf"/><stop offset=".56" stop-color="#595959"/><stop offset=".77" stop-color="#191919"/><stop offset=".87" stop-color="#000"/></linearGradient></defs><g id="c"><path id="e" d="M644.89,544.5c53.77,0,97.36,44.32,97.36,99,0,54.68-43.59,99-97.36,99-53.77,0-97.36-44.32-97.36-99s43.59-99,97.36-99ZM349.47,612.67c-33.32,57.7,8.33,129.83,74.96,129.83h0l160.44-277.88c32.62-56.5-8.15-127.12-73.39-127.12h-3.14l-158.87,275.17Z" fill="url(#d)"/></g></svg>
|
||||
|
After Width: | Height: | Size: 777 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1080 1083"><defs><linearGradient id="e" x1="672.85" y1="464.7" x2="99.41" y2="1038.14" gradientUnits="userSpaceOnUse"><stop offset=".08" stop-color="#fff"/><stop offset=".26" stop-color="#bfbfbf"/><stop offset=".56" stop-color="#595959"/><stop offset=".77" stop-color="#191919"/><stop offset=".87" stop-color="#000"/></linearGradient></defs><g id="c"><g id="d"><rect width="1080" height="1082"/></g><path id="f" d="M644.89,545.5c53.77,0,97.36,44.32,97.36,99,0,54.68-43.59,99-97.36,99-53.77,0-97.36-44.32-97.36-99s43.59-99,97.36-99ZM349.47,613.67c-33.32,57.7,8.33,129.83,74.96,129.83h0l160.44-277.88c32.62-56.5-8.15-127.12-73.39-127.12h-3.14l-158.87,275.17Z" fill="url(#e)"/></g></svg>
|
||||
|
After Width: | Height: | Size: 825 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1082"><g id="c"><ellipse id="d" cx="644.89" cy="644.5" rx="97.36" ry="99" fill="#fff"/><path id="e" d="M508.34,338.5h3.14c65.24,0,106.01,70.62,73.39,127.12l-160.44,277.88h0c-66.63,0-108.27-72.13-74.96-129.83l158.87-275.17Z" fill="#fff"/></g></svg>
|
||||
|
After Width: | Height: | Size: 350 B |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg id="b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1083"><g id="c"><rect y="1" width="1080" height="1082"/></g><g id="d"><ellipse id="e" cx="644.89" cy="644.5" rx="97.36" ry="99" fill="#fff"/><path id="f" d="M508.34,338.5h3.14c65.24,0,106.01,70.62,73.39,127.12l-160.44,277.88h0c-66.63,0-108.27-72.13-74.96-129.83l158.87-275.17Z" fill="#fff"/></g></svg>
|
||||
|
After Width: | Height: | Size: 404 B |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 228 B |
|
After Width: | Height: | Size: 473 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "AIOStreams",
|
||||
"short_name": "AIO",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"start_url": ".",
|
||||
"background_color": "black",
|
||||
"display": "standalone"
|
||||
}
|
||||
@@ -137,11 +137,22 @@ builtinsRouter.use('/torrent-galaxy', torrentGalaxy);
|
||||
app.use('/builtins', builtinsRouter);
|
||||
|
||||
app.get(
|
||||
['/_next/*any', '/assets/*any', '/favicon.ico', '/logo.png'],
|
||||
[
|
||||
'/_next/*any',
|
||||
'/assets/*any',
|
||||
'/favicon.ico',
|
||||
'/logo.png',
|
||||
'/manifest.json',
|
||||
'/android-chrome-192x192.png',
|
||||
'/android-chrome-512x512.png',
|
||||
'/apple-touch-icon.png',
|
||||
'/favicon-16x16.png',
|
||||
'/favicon-32x32.png',
|
||||
],
|
||||
staticRateLimiter,
|
||||
(req, res, next) => {
|
||||
const filePath = path.resolve(frontendRoot, req.path.replace(/^\//, ''));
|
||||
if (filePath.startsWith(frontendRoot)) {
|
||||
if (filePath.startsWith(frontendRoot) && fs.existsSync(filePath)) {
|
||||
res.sendFile(filePath);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -47,12 +47,9 @@ const manifest = async (config?: UserData): Promise<Manifest> => {
|
||||
typeof resource === 'string' ? [resource] : resource.types;
|
||||
return [...new Set([...types, ...resourceTypes])];
|
||||
}, [] as string[]),
|
||||
background:
|
||||
config?.addonBackground ||
|
||||
'https://raw.githubusercontent.com/Viren070/AIOStreams/refs/heads/main/packages/frontend/public/assets/background.png',
|
||||
logo:
|
||||
config?.addonLogo ||
|
||||
'https://raw.githubusercontent.com/Viren070/AIOStreams/refs/heads/main/packages/frontend/public/assets/logo.png',
|
||||
'https://raw.githubusercontent.com/Viren070/AIOStreams/refs/heads/main/packages/frontend/public/logo.png',
|
||||
behaviorHints: {
|
||||
configurable: true,
|
||||
configurationRequired: config ? false : true,
|
||||
|
||||