This commit is contained in:
Himanshu
2026-02-03 22:16:44 +05:30
parent c19b918513
commit 1e80bf18d4
184 changed files with 184 additions and 184 deletions

View File

@@ -1 +1 @@
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of __getOwnPropNames(t))__hasOwnProp.call(e,o)||o===r||__defProp(e,o,{get:()=>t[o],enumerable:!(s=__getOwnPropDesc(t,o))||s.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,r)=>new Promise((s,o)=>{var a=e=>{try{i(r.next(e))}catch(e){o(e)}},n=e=>{try{i(r.throw(e))}catch(e){o(e)}},i=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,n);i((r=r.apply(e,t)).next())}),posts_exports={};__export(posts_exports,{getPosts:()=>getPosts,getSearchPosts:()=>getSearchPosts});var getPosts=__name(function(e){return __async(this,arguments,function*({filter:e,signal:t,providerContext:r}){var s;const{getBaseUrl:o,axios:a}=r,n=yield o("kissKh"),i=`${n+e}&type=0`;try{const e=null==(s=(yield a.get(i,{signal:t})).data)?void 0:s.data,r=[];return null==e||e.map(e=>{const t=e.title,s=n+`/api/DramaList/Drama/${null==e?void 0:e.id}?isq=false`,o=e.thumbnail;t&&s&&o&&r.push({title:t,link:s,image:o})}),r}catch(e){return[]}})},"getPosts"),getSearchPosts=__name(function(e){return __async(this,arguments,function*({searchQuery:e,signal:t,providerContext:r}){const{getBaseUrl:s,axios:o}=r,a=yield s("kissKh"),n=`${a}/api/DramaList/Search?q=${e}&type=0`;try{const e=(yield o.get(n,{signal:t})).data,r=[];return null==e||e.map(e=>{const t=e.title,s=a+`/api/DramaList/Drama/${null==e?void 0:e.id}?isq=false`,o=e.thumbnail;t&&s&&o&&r.push({title:t,link:s,image:o})}),r}catch(e){return[]}})},"getSearchPosts");exports.getPosts=getPosts,exports.getSearchPosts=getSearchPosts;
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(target,value)=>__defProp(target,"name",{value:value,configurable:!0}),__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),__async=(__this,__arguments,generator)=>new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}},rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}},step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),posts_exports={};__export(posts_exports,{getPosts:()=>getPosts,getSearchPosts:()=>getSearchPosts});var getPosts=__name(function(_0){return __async(this,arguments,function*({filter:filter,signal:signal,providerContext:providerContext}){var _a;const{getBaseUrl:getBaseUrl,axios:axios}=providerContext,baseUrl=yield getBaseUrl("kissKh"),url=`${baseUrl+filter}&type=0`;try{const data=null==(_a=(yield axios.get(url,{signal:signal})).data)?void 0:_a.data,catalog=[];return null==data||data.map(element=>{const title=element.title,link=baseUrl+`/api/DramaList/Drama/${null==element?void 0:element.id}?isq=false`,image=element.thumbnail;title&&link&&image&&catalog.push({title:title,link:link,image:image})}),catalog}catch(err){return console.error("kiss error ",err),[]}})},"getPosts"),getSearchPosts=__name(function(_0){return __async(this,arguments,function*({searchQuery:searchQuery,signal:signal,providerContext:providerContext}){const{getBaseUrl:getBaseUrl,axios:axios}=providerContext,baseUrl=yield getBaseUrl("kissKh"),url=`${baseUrl}/api/DramaList/Search?q=${searchQuery}&type=0`;try{const data=(yield axios.get(url,{signal:signal})).data,catalog=[];return null==data||data.map(element=>{const title=element.title,link=baseUrl+`/api/DramaList/Drama/${null==element?void 0:element.id}?isq=false`,image=element.thumbnail;title&&link&&image&&catalog.push({title:title,link:link,image:image})}),catalog}catch(err){return console.error("kiss error ",err),[]}})},"getSearchPosts");exports.getPosts=getPosts,exports.getSearchPosts=getSearchPosts;