fix: 更换壁纸 API 接口

This commit is contained in:
imsyy 2023-04-03 09:42:07 +08:00
parent faeb0b98fc
commit ab931acfb6
7 changed files with 11 additions and 3404 deletions

10
.hintrc
View File

@ -4,6 +4,14 @@
], ],
"hints": { "hints": {
"compat-api/html": "off", "compat-api/html": "off",
"no-protocol-relative-urls": "off" "no-protocol-relative-urls": "off",
"compat-api/css": [
"default",
{
"ignore": [
"backdrop-filter"
]
}
]
} }
} }

View File

@ -1 +0,0 @@
if('serviceWorker' in navigator) navigator.serviceWorker.register('/dev-sw.js?dev-sw', { scope: '/', type: 'classic' })

View File

@ -1 +0,0 @@
if(!self.define){let e,s={};const t=(t,i)=>(t=new URL(t+".js",i).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didnt register its module`);return e})));self.define=(i,n)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(i.map((e=>l[e]||c(e)))).then((e=>(n(...e),r)))}}define(["./workbox-082d0e8a"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"3ca0b8505b4bec776b69afdba2768812"},{revision:null,url:"index.html"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{allowlist:[/^index.html$/]})),e.registerRoute(/(.*?)\.(js|css|woff2|woff|ttf)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps)/,new e.CacheFirst({cacheName:"image-cache",plugins:[]}),"GET")}));

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -30,9 +30,9 @@ const changeBg = (type) => {
} else if (type == 1) { } else if (type == 1) {
bgUrl.value = "https://api.dujin.org/bing/1920.php"; bgUrl.value = "https://api.dujin.org/bing/1920.php";
} else if (type == 2) { } else if (type == 2) {
bgUrl.value = "https://api.ixiaowai.cn/gqapi/gqapi.php"; bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=fengjing&format=images";
} else if (type == 3) { } else if (type == 3) {
bgUrl.value = "https://api.ixiaowai.cn/api/api.php"; bgUrl.value = "https://www.dmoe.cc/random.php";
} }
}; };

View File

@ -45,10 +45,6 @@ export default ({
}), }),
VitePWA({ VitePWA({
registerType: 'autoUpdate', registerType: 'autoUpdate',
devOptions: {
enabled: true,
navigateFallbackAllowlist: [/^index.html$/]
},
workbox: { workbox: {
skipWaiting: true, skipWaiting: true,
clientsClaim: true, clientsClaim: true,