snort/packages/app/custom.d.ts

89 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-05-19 14:41:01 +00:00
/// <reference types="@webbtc/webln-types" />
2023-01-16 22:04:10 +00:00
declare module "*.jpg" {
2023-02-07 19:47:57 +00:00
const value: unknown;
export default value;
2023-01-16 22:04:10 +00:00
}
2023-01-25 18:08:53 +00:00
declare module "*.svg" {
2023-02-07 19:47:57 +00:00
const value: unknown;
export default value;
2023-01-25 18:08:53 +00:00
}
2023-01-31 09:43:14 +00:00
declare module "*.webp" {
2023-02-07 19:47:57 +00:00
const value: string;
export default value;
}
2023-02-09 12:26:54 +00:00
2023-03-02 15:23:53 +00:00
declare module "*.png" {
const value: string;
export default value;
}
2023-03-03 20:34:18 +00:00
declare module "*.css" {
const stylesheet: CSSStyleSheet;
export default stylesheet;
}
declare module "translations/*.json" {
const value: Record<string, string>;
export default value;
}
2023-07-13 21:44:26 +00:00
2023-11-02 17:39:42 +00:00
declare module "*.md" {
const value: string;
export default value;
}
2023-07-13 21:44:26 +00:00
declare module "emojilib" {
const value: Record<string, string>;
2023-07-18 15:14:38 +00:00
export default value;
2023-08-29 13:56:46 +00:00
}
declare const CONFIG: {
appName: string;
appNameCapitalized: string;
appTitle: string;
hostname: string;
nip05Domain: string;
favicon: string;
appleTouchIconUrl: string;
2023-11-27 14:30:20 +00:00
navLogo: string | null;
httpCache: string;
animalNamePlaceholders: boolean;
2023-11-28 08:40:36 +00:00
defaultZapPoolFee: number;
bypassImgProxyError: boolean;
features: {
2023-10-17 09:54:34 +00:00
analytics: boolean;
subscriptions: boolean;
2023-10-17 09:54:34 +00:00
deck: boolean;
zapPool: boolean;
};
2023-12-08 16:30:52 +00:00
defaultPreferences: {
checkSigs: boolean;
2023-12-08 16:32:50 +00:00
};
2023-11-28 09:52:20 +00:00
signUp: {
moderation: boolean;
};
2023-11-29 12:05:36 +00:00
// Filter urls from nav sidebar
2023-11-30 12:45:54 +00:00
hideFromNavbar: Array<string>;
2023-11-29 12:07:12 +00:00
// Limit deck to certain subscriber tier
2023-11-29 12:05:36 +00:00
deckSubKind?: number;
2023-12-06 08:13:01 +00:00
showDeck?: boolean;
2023-12-02 22:44:44 +00:00
// Create toast notifications when publishing notes
noteCreatorToast?: boolean;
2023-10-17 09:59:25 +00:00
eventLinkPrefix: NostrPrefix;
2023-10-17 18:50:11 +00:00
profileLinkPrefix: NostrPrefix;
2023-10-31 15:40:12 +00:00
defaultRelays: Record<string, RelaySettings>;
};
2023-10-31 15:40:12 +00:00
/**
* Single relay (Debug)
*/
2023-10-31 15:40:57 +00:00
declare const SINGLE_RELAY: string | undefined;
2023-11-02 17:39:42 +00:00
/**
* Build git hash
*/
2023-11-20 21:51:23 +00:00
declare const __SNORT_VERSION__: string;