🔧 chore(spicetify): update stats custom app
This commit is contained in:
parent
eca72df196
commit
ae8e9ca921
5 changed files with 12433 additions and 1902 deletions
55
.config/spicetify/CustomApps/stats/cache.js
Normal file
55
.config/spicetify/CustomApps/stats/cache.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
(async function() {
|
||||
while (!Spicetify.React || !Spicetify.ReactDOM) {
|
||||
await new Promise(resolve => setTimeout(resolve, 10));
|
||||
}
|
||||
"use strict";
|
||||
var stats = (() => {
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/extensions/cache.ts
|
||||
var cache_exports = {};
|
||||
__export(cache_exports, {
|
||||
cacher: () => cacher,
|
||||
invalidator: () => invalidator
|
||||
});
|
||||
var cache = {};
|
||||
var set = (key, value) => {
|
||||
cache[key] = value;
|
||||
};
|
||||
var invalidate = (key) => {
|
||||
delete cache[key];
|
||||
};
|
||||
var cacher = (cb) => {
|
||||
return async ({ queryKey }) => {
|
||||
const key = queryKey.join("-");
|
||||
if (cache[key])
|
||||
return cache[key];
|
||||
const result = await cb();
|
||||
set(key, result);
|
||||
return result;
|
||||
};
|
||||
};
|
||||
var invalidator = (queryKey, refetch) => {
|
||||
invalidate(queryKey.join("-"));
|
||||
refetch();
|
||||
};
|
||||
return __toCommonJS(cache_exports);
|
||||
})();
|
||||
|
||||
})();
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,7 @@
|
|||
"active-icon": "<svg xmlns=\"http://www.w3.org/2000/svg\"\r\n\t width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" style=\"fill:currentColor\" >\r\n<path d=\"M3,23L3,23c-0.55,0-1-0.45-1-1v-9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v9C4,22.55,3.55,23,3,23z\"/>\r\n<path d=\"M9,23L9,23c-0.55,0-1-0.45-1-1V9c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v13C10,22.55,9.55,23,9,23z\"/>\r\n<path d=\"M15,23L15,23c-0.55,0-1-0.45-1-1V11c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v11C16,22.55,15.55,23,15,23z\"/>\r\n<path d=\"M21,23L21,23c-0.55,0-1-0.45-1-1V8c0-0.55,0.45-1,1-1h0c0.55,0,1,0.45,1,1v14C22,22.55,21.55,23,21,23z\"/>\r\n<path d=\"M22.86,1.5c-0.28-0.48-0.89-0.64-1.37-0.37l-6.54,3.74l-6-2.33C8.52,2.38,8.22,2.41,7.88,2.73L1.29,7.71\r\n\tC0.86,8.05,0.8,8.68,1.15,9.11s0.98,0.49,1.41,0.14l6.2-4.65l5.69,2.2C15,6.99,15.3,6.96,15.83,6.68l6.67-3.82\r\n\tC22.98,2.59,23.14,1.97,22.86,1.5z\"/>\r\n</svg>\r\n",
|
||||
"subfiles": [],
|
||||
"subfiles_extension": [
|
||||
"cache.js",
|
||||
"extension.js"
|
||||
]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
/* ../../../AppData/Local/Temp/tmp-17120-n3iWRzissBjg/18f3cbbb4bc3/navBar.module.css */
|
||||
/* ../../../AppData/Local/Temp/tmp-8216-VCWpAfv0Bkqy/1909217e9563/navBar.module.css */
|
||||
.navBar-module__topBarHeaderItem___piw4C_stats {
|
||||
-webkit-app-region: no-drag;
|
||||
display: inline-block;
|
||||
|
@ -46,7 +46,7 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
/* ../../../AppData/Local/Temp/tmp-17120-n3iWRzissBjg/18f3cbbb33e0/app.css */
|
||||
/* ../../../AppData/Local/Temp/tmp-8216-VCWpAfv0Bkqy/1909217e7ff0/app.css */
|
||||
#stats-app .stats-gridInline {
|
||||
--grid-gap: 24px;
|
||||
grid-template-columns: repeat(10, 180px) !important;
|
||||
|
@ -54,6 +54,9 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
scroll-behavior: smooth;
|
||||
margin-top: 5px;
|
||||
}
|
||||
#stats-app .grid:nth-child(2) {
|
||||
margin-top: 24px;
|
||||
}
|
||||
#stats-app [data-scroll=both] {
|
||||
-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
|
||||
mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
|
||||
|
@ -125,6 +128,9 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
font-size: 0.875rem;
|
||||
margin-left: 7px;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#stats-app .stats-genreValue {
|
||||
color: var(--spice-text);
|
||||
|
@ -138,6 +144,35 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
#stats-app .main-trackList-rowPlayPauseIcon {
|
||||
fill: currentColor;
|
||||
}
|
||||
#stats-app .badge {
|
||||
position: absolute;
|
||||
top: 3%;
|
||||
left: 3%;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
border-radius: 50%;
|
||||
background-color: rgb(65, 110, 170);
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
#stats-app .extend-button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
font-size: 14px;
|
||||
color: var(--spice-subtext);
|
||||
}
|
||||
#stats-app .extend-button:hover {
|
||||
color: var(--spice-text);
|
||||
}
|
||||
.GenericModal[aria-label="Playlist Stats"] .main-embedWidgetGenerator-container {
|
||||
width: 80vw;
|
||||
height: 80vh;
|
||||
|
@ -147,7 +182,7 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
color: var(--spice-text);
|
||||
}
|
||||
|
||||
/* ../../../AppData/Local/Temp/tmp-17120-n3iWRzissBjg/18f3cbbb48b1/config_modal.css */
|
||||
/* ../../../AppData/Local/Temp/tmp-8216-VCWpAfv0Bkqy/1909217e92e1/config_modal.css */
|
||||
.config-container {
|
||||
gap: 10px;
|
||||
display: flex;
|
||||
|
@ -224,7 +259,7 @@ div.navBar-module__topBarHeaderItemLink___xA4uv_stats {
|
|||
width: 200px;
|
||||
}
|
||||
|
||||
/* ../../../AppData/Local/Temp/tmp-17120-n3iWRzissBjg/18f3cbbb49f2/shared.css */
|
||||
/* ../../../AppData/Local/Temp/tmp-8216-VCWpAfv0Bkqy/1909217e93c2/shared.css */
|
||||
.grid {
|
||||
--grid-gap: 24px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
|
||||
|
|
Loading…
Add table
Reference in a new issue