File tree Expand file tree Collapse file tree 7 files changed +436
-0
lines changed
Expand file tree Collapse file tree 7 files changed +436
-0
lines changed Original file line number Diff line number Diff line change 1+ 23.6.1
Original file line number Diff line number Diff line change 1+ export enum Platforms {
2+ TWITCH = 'TWITCH' ,
3+ DISCORD = 'DISCORD' ,
4+ SPOTIFY = 'SPOTIFY' ,
5+ LASTFM = 'LASTFM' ,
6+ KICK = 'KICK' ,
7+ YOUTUBE = 'YOUTUBE' ,
8+ STV = 'STV' ,
9+ BTTV = 'BTTV' ,
10+ FFZ = 'FFZ' ,
11+ ANILIST = 'ANILIST' ,
12+ MAL = 'MAL' ,
13+ MONKEY_TYPE = 'MONKEYTYPE' ,
14+ STEAM = 'STEAM'
15+ }
16+
17+ export type EmoteProviders =
18+ | Platforms . BTTV
19+ | Platforms . FFZ
20+ | Platforms . STV
21+ | Platforms . TWITCH
22+ | Platforms . KICK
23+ | Platforms . DISCORD
24+ | 'EMOJI' ;
25+
26+ export interface EmoteMetricUse {
27+ readonly emote_id : string ;
28+ readonly emote_name : string ;
29+ readonly emote_alias ?: string ;
30+ readonly provider : EmoteProviders ;
31+ readonly count : string ;
32+ readonly url : string ;
33+ }
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export const fetchBackend = async <T = unknown>(
127127 options ?: ExtendedOptions
128128) : Promise < ParsedRes < GenericResponse < T > > > => {
129129 const result = await makeRequest < GenericResponse < T > > (
130+ /** @todo load from env */
130131 `https://api.potat.app/${ url } ` ,
131132 options
132133 ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Settings from './tabs/settings.svelte';
44import CustomCommands from './tabs/custom-commands.svelte' ;
55import ModActions from './tabs/mod-actions.svelte' ;
66import EmoteActions from './tabs/emote-history.svelte' ;
7+ import EmoteStats from './tabs/emote-stats.svelte' ;
78
89export const tabs : TabConfig [ ] = [
910 {
@@ -12,6 +13,12 @@ export const tabs: TabConfig[] = [
1213 icon : Settings2 ,
1314 component : EmoteActions ,
1415 } ,
16+ {
17+ id : 'emote-stats' ,
18+ label : 'Emote Stats' ,
19+ icon : Settings2 ,
20+ component : EmoteStats ,
21+ } ,
1522 {
1623 id : 'custom-commands' ,
1724 label : 'Custom Commands' ,
You can’t perform that action at this time.
0 commit comments