@banou/stub 0.0.14 → 0.0.18
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 +46 -40
- package/build/.well-known/fkn.json +1 -0
- package/build/_headers +5 -0
- package/build/assets/Preview-DG9nqCV0.js +1 -0
- package/build/assets/account-CTqTIqCB.js +1 -0
- package/build/assets/account-DQlY5DdH.js +1 -0
- package/build/assets/anime-index-Jbe1K3rX.js +1 -0
- package/build/assets/anime-seasons-CVM0BQGM.js +1 -0
- package/build/assets/api-D5uFVynV.js +1 -0
- package/build/assets/api-DLvscoll-DBsLjsEb.js +3 -0
- package/build/assets/build-BuC_lDPE.js +1 -0
- package/build/assets/compat-CusyxzKh.js +1 -0
- package/build/assets/custom-media-element-BDICDseJ.js +43 -0
- package/build/assets/dash.all.min-Dbg8AB-J.js +19 -0
- package/build/assets/dist-BgIerfpp.js +3136 -0
- package/build/assets/dist-BrpV89uJ.js +1 -0
- package/build/assets/dist-D-OKiX-f.js +1 -0
- package/build/assets/dist-D_XB-JLn.js +40 -0
- package/build/assets/embed-DBjG5JMH.js +1 -0
- package/build/assets/frizbee_wasm_bg-FO8dlm9E.wasm +0 -0
- package/build/assets/index-BHgdalnH.js +1401 -0
- package/build/assets/main-C8JOinyp.js +3349 -0
- package/build/assets/players-3a7RYKgR.css +1 -0
- package/build/assets/players-BIbP12aF.js +1530 -0
- package/build/assets/preload-helper-D2XUqLHy.js +1 -0
- package/build/assets/react-BDr8Ag8b.js +19 -0
- package/build/assets/react-BTju4bmn.js +22 -0
- package/build/assets/react-CLMfdUXR.js +2 -0
- package/build/assets/react-CjmRCHoG.js +34 -0
- package/build/assets/react-Cs34a503.js +19 -0
- package/build/assets/react-DKSDz1wJ.js +6 -0
- package/build/assets/react-bkM_mQGd.js +17 -0
- package/build/assets/react-kPj0f67l.js +21 -0
- package/build/assets/remote-CW2xewp5.js +1 -0
- package/build/assets/remote-DNcNpuT3.js +1 -0
- package/build/assets/rolldown-runtime-CNC7AqOf.js +1 -0
- package/build/assets/sacha_bg-CNH7LeJ_.wasm +0 -0
- package/build/embed.html +57 -0
- package/build/fkn.json +1 -0
- package/build/index.html +14 -4
- package/fkn.json +1 -0
- package/package.json +89 -89
- package/build/app.webmanifest +0 -18
- package/build/assets/logo.png +0 -0
- package/build/assets/logo.svg +0 -1
- package/build/assets/rust_seal-67a60e3f-6dee6344.js +0 -259
- package/build/assets/yoga-worker-b1f4e2b7.js +0 -25878
- package/build/index.js +0 -70240
- package/build/package.json +0 -102
- package/build/rust_seal-67a60e3f-6dee6344.js +0 -259
- package/build/style.css +0 -1
package/README.md
CHANGED
|
@@ -1,40 +1,46 @@
|
|
|
1
|
-
# Stub
|
|
2
|
-
|
|
3
|
-
Shows, Movies, Anime, all in one place from your browser
|
|
4
|
-
|
|
5
|
-
<!--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
https://
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
https://
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
# Stub
|
|
2
|
+
|
|
3
|
+
Shows, Movies, Anime, all in one place from your browser
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
Decisions to impl:
|
|
8
|
+
|
|
9
|
+
Sanitize data from the external sources handler, aka db side, not from the react UI
|
|
10
|
+
Offer markdown from the graphql API, not compute it from the react UI
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Dev steps:
|
|
14
|
+
|
|
15
|
+
You have to run `npm run copy-anitomy` first before being able to run `npm run dev`
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## todo:
|
|
20
|
+
|
|
21
|
+
make it so that shortDescriptions use the description if unset
|
|
22
|
+
|
|
23
|
+
re-implement the title infer system for low count searches using smith waterman + sorensen dice coef = magic alignment
|
|
24
|
+
|
|
25
|
+
make infered information (episode released so far based on start release date / weeks since then) special colors for the user to distinguish between factual informations
|
|
26
|
+
|
|
27
|
+
use the sneedex api to get best quality sources https://sneedex.moe/api/public/nyaa
|
|
28
|
+
|
|
29
|
+
make use of Taiga's https://github.com/erengy/anime-relations list to try and infer as accurate episode number as possible.
|
|
30
|
+
4k res?:
|
|
31
|
+
|
|
32
|
+
- https://github.com/bloc97/Anime4K/issues/7
|
|
33
|
+
- https://github.com/bloc97/Anime4K/issues/106
|
|
34
|
+
- https://github.com/Duke-13/Test_AnimeSuperResolutionForChromeExtensions
|
|
35
|
+
- https://gist.github.com/Juszoe/4680d0cb18811a459cc7fa83214e499c#gistcomment-3259179
|
|
36
|
+
- https://gist.github.com/NeuroWhAI/ce524cdf6913fae5eee830561bf32f40
|
|
37
|
+
|
|
38
|
+
check out if https://github.com/jmir1/aniyomi has some nice sources
|
|
39
|
+
|
|
40
|
+
https://thewiki.moe/en/tutorials/unblock
|
|
41
|
+
|
|
42
|
+
IMPL MAL INTEGRATION // https://github.com/prince-ao/myanimelist-oauth/blob/main/lib/malOauth.js
|
|
43
|
+
|
|
44
|
+
https://unsplash.com/photos/3dnZdTseNKg
|
|
45
|
+
|
|
46
|
+
-->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"v":1,"app":"fkn:app:1mv4iei5nrldfysclsmkxnadt4a2y3k6y7rsln6hkawsuep7bo3vq","root":"5Nagknk9CNeVCZoPl1lBbNe6I5JqTW7a7xoN8AXRg3E=","slug":"stub","keys":{"serial":0,"members":["UgFyOKUlOb5rt9YfoqiIofxArQt2evRREFbuRgHYOGE="],"sig":"905Et1WneOyEFktPt2HTN1KGXJtrfpUmCjSOWZHlrU7uDoK9fTBE0Na8LzVXYll/RW6KfUiCCmCbr7vzJG9zCA=="},"key":"UgFyOKUlOb5rt9YfoqiIofxArQt2evRREFbuRgHYOGE=","sources":["npm:@banou/stub","https:anime.fkn.app"],"name":"Stub","issuedAt":1789103478,"sig":"h1S5hox220GHipgcG3zMH4TyB+MFFe4PqMMtHiHpVW/E3r0wUb734FeNpQGygkWCIXw1sQoooDWgLTmyf3wQDg=="}
|
package/build/_headers
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# The broker on fkn.app fetches this file with credentials omitted, and platform-policy refuses to
|
|
2
|
+
# relay a *.fkn.app host, so a reply without this origin header lands as an absent manifest.
|
|
3
|
+
/.well-known/fkn.json
|
|
4
|
+
Access-Control-Allow-Origin: https://fkn.app
|
|
5
|
+
Cache-Control: max-age=300
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,i as t,x as n,y as r}from"./compat-CusyxzKh.js";e();var i=`64px`,a={},o=({src:e,light:o,oEmbedUrl:s,onClickPreview:c,playIcon:l,previewTabIndex:u,previewAriaLabel:d})=>{let[f,p]=n(null);r(()=>{!e||!o||!s||m({src:e,light:o,oEmbedUrl:s})},[e,o,s]);let m=async({src:e,light:n,oEmbedUrl:r})=>{if(t.isValidElement(n))return;if(typeof n==`string`){p(n);return}if(a[e]){p(a[e]);return}p(null);let i=await(await fetch(r.replace(`{url}`,e))).json();if(i.thumbnail_url){let t=i.thumbnail_url.replace(`height=100`,`height=480`).replace(`-d_295x166`,`-d_640`);p(t),a[e]=t}},h=e=>{(e.key===`Enter`||e.key===` `)&&c?.(e)},g=e=>{c?.(e)},_=t.isValidElement(o),v={display:`flex`,alignItems:`center`,justifyContent:`center`},y={preview:{width:`100%`,height:`100%`,backgroundImage:f&&!_?`url(${f})`:void 0,backgroundSize:`cover`,backgroundPosition:`center`,cursor:`pointer`,...v},shadow:{background:`radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)`,borderRadius:i,width:i,height:i,position:_?`absolute`:void 0,...v},playIcon:{borderStyle:`solid`,borderWidth:`16px 0 16px 26px`,borderColor:`transparent transparent transparent white`,marginLeft:`7px`}},b=t.createElement(`div`,{style:y.shadow,className:`react-player__shadow`},t.createElement(`div`,{style:y.playIcon,className:`react-player__play-icon`}));return t.createElement(`div`,{style:y.preview,className:`react-player__preview`,tabIndex:u,onClick:g,onKeyPress:h,...d?{"aria-label":d}:{}},_?o:null,l||b)};export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./account-DQlY5DdH.js";export{e as onChange};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,s as t,t as n}from"./api-DLvscoll-DBsLjsEb.js";var r=Object.defineProperty,i=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},a=i({info:()=>c,login:()=>o,logout:()=>s,onChange:()=>p}),o=async()=>typeof window>`u`?!1:(await n).account.login(location.origin).catch(()=>!1),s=async()=>{typeof window>`u`||await(await n).account.logout().catch(()=>{})},c=async()=>{if(typeof window>`u`)return null;let e=await n.then(e=>e.account.info()).catch(()=>null);return e?{name:e.name,image:e.image,premium:e.premium,premiumUntil:e.premiumUntil?Date.parse(e.premiumUntil):null}:null},l=new Set,u=()=>{for(let e of[...l])try{e()}catch{}},d=0,f=()=>{let e=t();!e||l.size===0||d===e.epoch||(d=e.epoch,Promise.resolve(e.remote.account.onChange(u)).catch(()=>{d===e.epoch&&(d=0)}))};typeof window<`u`&&e(f);var p=async e=>typeof window>`u`?()=>{}:(l.add(e),f(),()=>{l.delete(e)});export{c as a,s as i,p as n,i as o,a as r,o as t};
|