Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/8fba3eee1df1fad15377d44aae542a018b50b321
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
17 additions and
20 deletions
@ -5,7 +5,7 @@ description: Tube Archivist Widget Configuration
Learn more about [Tube Archivist ](https://github.com/tubearchivist/tubearchivist ).
Requires API key.
You must be running at least version 0.4.4
Allowed fields: `["downloads", "videos", "channels", "playlists"]` .
@ -13,5 +13,5 @@ Allowed fields: `["downloads", "videos", "channels", "playlists"]`.
widget:
type: tubearchivist
url: http://tubearchivist.host.or.ip
key: apikeyapikeyapikeyapikey apikey
key: tubearchivist apikey
```
@ -32,16 +32,10 @@ export default function Component({ service }) {
return (
< Container service = { service } >
< Block
label = "tubearchivist.downloads"
value = { t ( "common.number" , { value : downloadsData ? . paginate ? . total _hits } ) }
/ >
< Block label = "tubearchivist.videos" value = { t ( "common.number" , { value : videosData ? . paginate ? . total _hits } ) } / >
< Block label = "tubearchivist.channels" value = { t ( "common.number" , { value : channelsData ? . paginate ? . total _hits } ) } / >
< Block
label = "tubearchivist.playlists"
value = { t ( "common.number" , { value : playlistsData ? . paginate ? . total _hits } ) }
/ >
< Block label = "tubearchivist.downloads" value = { t ( "common.number" , { value : downloadsData . pending ? ? 0 } ) } / >
< Block label = "tubearchivist.videos" value = { t ( "common.number" , { value : videosData . doc _count ? ? 0 } ) } / >
< Block label = "tubearchivist.channels" value = { t ( "common.number" , { value : channelsData . doc _count ? ? 0 } ) } / >
< Block label = "tubearchivist.playlists" value = { t ( "common.number" , { value : playlistsData . doc _count ? ? 0 } ) } / >
< / Container >
) ;
}
@ -6,20 +6,23 @@ const widget = {
mappings : {
downloads : {
endpoint : " download",
validate : [ "p aginate "] ,
endpoint : " stats/ download",
validate : [ "p ending "] ,
} ,
videos : {
endpoint : " video",
validate : [ " paginate "] ,
endpoint : " stats/ video",
validate : [ " doc_count "] ,
} ,
channels : {
endpoint : " channel",
validate : [ " paginate "] ,
endpoint : " stats/ channel",
validate : [ " doc_count "] ,
} ,
playlists : {
endpoint : "playlist" ,
validate : [ "paginate" ] ,
endpoint : "stats/playlist" ,
validate : [ "doc_count" ] ,
} ,
stats : {
endpoint : "stats" ,
} ,
} ,
} ;