luckyphoenix 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/css/alist_skin_v2.css +219 -219
- package/css/alist_skin_v3.css +8 -7
- package/css/alist_wallpaper.css +2 -2
- package/css/colorful.css +26 -26
- package/css/font-awesome.css +2947 -2947
- package/css/lxgw-style.css +1 -1
- package/js/Meting2.min.js +1 -0
- package/js/alist_skin.js +33 -33
- package/package.json +1 -1
- package/js/yaml/js-yaml.js +0 -3874
- package/js/yaml/js-yaml.min.js +0 -2
- package/js/yaml/js-yaml.mjs +0 -3851
- /package/js/{jquery-3.6.0.min.js → jquery.min.js} +0 -0
package/css/lxgw-style.css
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
!function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function e(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var p={};function h(){}function m(){}function d(){}var y={};s(y,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(P([])));g&&g!==e&&n.call(g,a)&&(y=g);var w=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=d,o(w,"constructor",{value:d,configurable:!0}),o(d,"constructor",{value:m,configurable:!0}),m.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var u={};(function(t,e){var r={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function n(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function o(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);e&&document.getElementsByTagName("head")[0].removeChild(e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=t,c=e.timeout||r.timeout,u=e.jsonpCallback||r.jsonpCallback,s=void 0;return new Promise((function(r,l){var f=e.jsonpCallbackFunction||n(),p=u+"_"+f;window[f]=function(t){r({ok:!0,json:function(){return Promise.resolve(t)}}),s&&clearTimeout(s),i(p),o(f)},a+=-1===a.indexOf("?")?"?":"&";var h=document.createElement("script");h.setAttribute("src",""+a+u+"="+f),e.charset&&h.setAttribute("charset",e.charset),e.nonce&&h.setAttribute("nonce",e.nonce),e.referrerPolicy&&h.setAttribute("referrerPolicy",e.referrerPolicy),h.id=p,document.getElementsByTagName("head")[0].appendChild(h),s=setTimeout((function(){l(new Error("JSONP request to "+t+" timed out")),o(f),i(p),window[f]=function(){o(f)}}),c),h.onerror=function(){l(new Error("JSONP request to "+t+" failed")),o(f),i(p),s&&clearTimeout(s)}}))}e.exports=a})(0,{get exports(){return u},set exports(t){u=t}});var s=u,l=function(){var t=o(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.map(function(){var t=o(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.url&&!e.url.startsWith("@")){t.next=11;break}return t.prev=1,t.next=4,f(e.songmid);case 4:e.url=t.sent,t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0),e.url="";case 11:return t.abrupt("return",e);case 12:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var t=o(r().mark((function t(e){var n,o,i,a,c,u,l,f,h;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=e.split(","),"","",n={s:"M500",e:".mp3"},e.map((t=>"".concat(n.s).concat(t).concat(t).concat(n.e))),o=(1e7*Math.random()).toFixed(0),i="",a={req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:o,songmid:e,songtype:[0],uin:"",loginflag:1,platform:"20"}},comm:{uin:"",format:"json",ct:19,cv:0,authst:""}},c={"-":"getplaysongvkey",g_tk:5381,loginUin:"",hostUin:0,format:"json",inCharset:"utf8",outCharset:"utf-8¬ice=0",platform:"yqq.json",needNewCode:0,data:JSON.stringify(a)},u=p(c,"https://u.y.qq.com/cgi-bin/musicu.fcg"),t.next=13,s(u);case 13:return l=t.sent,t.next=16,l.json();case 16:return(l=t.sent).req_0&&l.req_0.data&&l.req_0.data.midurlinfo&&(i=l.req_0.data.midurlinfo[0].purl),f=l.req_0.data.sip.find((t=>!t.startsWith("http://ws")))||l.req_0.data.sip[0],h="".concat(f).concat(i).replace("http://","https://"),t.abrupt("return",h);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function p(t,r){var n=function(t,e){try{var r=e.split("?");if(!(r.length>1))return t?void 0:{};var n=r[1].split("&"),o={};return n.forEach((t=>{var e=t.split("=");o[e[0]]=decodeURIComponent(e[1])})),t?o[t]:o}catch(e){return t?"":{}}}(null,r),o=r.split("?")[0],i=e(e({},n),t),a=[];return Object.keys(i).forEach((t=>{void 0!==i[t]&&""!==i[t]&&a.push("".concat(t,"=").concat(encodeURIComponent(i[t])))})),"".concat(o,"?").concat(a.join("&")).replace(/\?$/,"")}var h={qq_get_url_from_json:l};class m extends HTMLElement{connectedCallback(){window.APlayer&&window.fetch&&(this._init(),this._parse().catch((t=>{console.error(t);var e=new CustomEvent("parse-error",{detail:{error:t}});this.dispatchEvent(e)})))}disconnectedCallback(){this.lock||this.aplayer.destroy()}_camelize(t){return t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((t,e)=>e.toUpperCase()))}_init(){for(var t={},e=0;e<this.attributes.length;e+=1)t[this._camelize(this.attributes[e].name)]=this.attributes[e].value;this.meta={};for(var r=0,n=["server","type","id","api","auth","auto","lock","name","title","artist","author","url","cover","pic","lyric","lrc"];r<n.length;r++){var o=n[r];this.meta[o]=t[o],delete t[o]}this.config=t,this.api=this.meta.api||window.meting_api||"https://meting-dd.2333332.xyz/api?server=:server&type=:type&id=:id&r=:r",this.meta.auto&&this._parse_link()}_parse_link(){for(var t=0,e=[["music.163.com.*song.*id=(\\d+)","netease","song"],["music.163.com.*album.*id=(\\d+)","netease","album"],["music.163.com.*artist.*id=(\\d+)","netease","artist"],["music.163.com.*playlist.*id=(\\d+)","netease","playlist"],["music.163.com.*discover/toplist.*id=(\\d+)","netease","playlist"],["y.qq.com.*song/(\\w+)(\\.html)?","tencent","song"],["y.qq.com.*album/(\\w+)(\\.html)?","tencent","album"],["y.qq.com.*singer/(\\w+)(\\.html)?","tencent","artist"],["y.qq.com.*playsquare/(\\w+)(\\.html)?","tencent","playlist"],["y.qq.com.*playlist/(\\w+)(\\.html)?","tencent","playlist"],["xiami.com.*song/(\\w+)","xiami","song"],["xiami.com.*album/(\\w+)","xiami","album"],["xiami.com.*artist/(\\w+)","xiami","artist"],["xiami.com.*collect/(\\w+)","xiami","playlist"]];t<e.length;t++){var r=e[t],n=new RegExp(r[0]).exec(this.meta.auto);if(null!==n)return this.meta.server=r[1],this.meta.type=r[2],void(this.meta.id=n[1])}}_parse(){var t=this;return o(r().mark((function e(){var n,o,i,c,u,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.meta.url){e.next=6;break}return(n={name:t.meta.name||t.meta.title||"Audio name",artist:t.meta.artist||t.meta.author||"Audio artist",url:t.meta.url,cover:t.meta.cover||t.meta.pic,lrc:t.meta.lrc||t.meta.lyric||"",type:t.meta.type||"auto"}).lrc||(t.meta.lrcType=0),t.innerText&&(n.lrc=t.innerText,t.meta.lrcType=2),t._loadPlayer([n]),e.abrupt("return");case 6:return o=t.api.replace(":server",t.meta.server).replace(":type",t.meta.type).replace(":id",t.meta.id).replace(":auth",t.meta.auth).replace(":r",Math.random()),e.next=9,fetch(o);case 9:return i=e.sent,e.next=12,i.json();case 12:if(!(i=e.sent)[0].url.startsWith("@")){e.next=18;break}return c=i[0].url.split("@").slice(1),u=a(c,1),s=u[0],e.next=17,h[s](i);case 17:i=e.sent;case 18:t._loadPlayer(i);case 19:case"end":return e.stop()}}),e)})))()}_loadPlayer(t){var r={audio:t,mutex:!0,lrcType:this.meta.lrcType||3,storageName:"metingjs"};if(t.length){var n=e(e({},r),this.config);for(var o in n)"true"!==n[o]&&"false"!==n[o]||(n[o]="true"===n[o]);var i=document.createElement("div");n.container=i,this.appendChild(i),this.aplayer=new APlayer(n);var a=new CustomEvent("load",{detail:this});this.dispatchEvent(a)}}}console.log("\n %c MetingJS v2.0.6 %c https://github.com/xizeyoupan/MetingJS \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),window.customElements&&!window.customElements.get("meting-js")&&(window.MetingJSElement=m,window.customElements.define("meting-js",m))}();
|
package/js/alist_skin.js
CHANGED
@@ -8,45 +8,45 @@
|
|
8
8
|
var x = true;
|
9
9
|
|
10
10
|
$("html").click(function () {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
34
|
-
code += '< /ul>';
|
35
|
-
|
36
|
-
// 代码写入视觉程序
|
37
|
-
$(".header").append(code);
|
11
|
+
if (x) {
|
12
|
+
var title = document.title,
|
13
|
+
// 个人信息编写区域+星环博客提供技术支持+ —————— ON
|
14
|
+
|
15
|
+
// 头像链接地址
|
16
|
+
headimg = "../img/logo/phoenix.svg",
|
17
|
+
// 博主铭言句子
|
18
|
+
motto = "心向云霄,哪管风雨袭身,日夜不歇,只为翱翔九天",
|
19
|
+
// 配置 - 导航内容及链接【注:名称和链接需要一一对应,用英文逗号隔开】
|
20
|
+
linkname = ["首页"],
|
21
|
+
link = ["/"],
|
22
|
+
code = "";
|
23
|
+
|
24
|
+
// 个人信息编写区域+星环博客提供技术支持+ —————— END
|
25
|
+
|
26
|
+
// 程序化代码
|
27
|
+
code += '<h3>' + title + '</h3>';
|
28
|
+
code += '<div >< img src = "' + headimg + '" alt = "[ ' + title + ' ]" / >< /div>';
|
29
|
+
code += '<p>' + motto + '</p >';
|
30
|
+
code += '< ul >';
|
31
|
+
for (vo in linkname) {
|
32
|
+
code += '<li> < a href = "' + link[vo] + '" > ' + linkname[vo] + ' < /a></li >';
|
38
33
|
}
|
34
|
+
code += '< /ul>';
|
35
|
+
|
36
|
+
// 代码写入视觉程序
|
37
|
+
$(".header").append(code);
|
38
|
+
}
|
39
39
|
})
|
40
40
|
|
41
41
|
// 支持样式代码
|
42
42
|
$(document).on('click', '.buttons>span:eq(1) svg', function () {
|
43
|
-
|
44
|
-
|
43
|
+
var $viwe = $(this).attr('viewBox');
|
44
|
+
alert($viwe);
|
45
45
|
})
|
46
46
|
|
47
47
|
window.onload = function () {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
setTimeout(function () {
|
49
|
+
$("html").click();
|
50
|
+
x = false;
|
51
|
+
}, 100);
|
52
52
|
}
|