web/src/types/Service.ts
51 lines · 877 bytes
1
2
3export interface ShortService {
4 name: string;
5 description: string;
6 url: string;
7}
8
9export interface Service {
10 name: string;
11 description: string;
12 url: string;
13 github?: string;
14 icon?: string;
15 links?: Array<{
16 title: string;
17 url: string;
18 }>;
19 followWith?: string;
20 securityAudited?: boolean;
21 openSource?: boolean;
22 acceptsCrypto?: boolean;
23 tosdrId?: string;
24 iosApp?: string;
25 androidApp?: string;
26 discordInvite?: string;
27 subreddit?: string;
28}
29
30export interface Section {
31 name: string;
32 services: Service[];
33 intro?: string;
34 notableMentions?: ShortService[] | string;
35 furtherInfo?: string;
36 wordOfWarning?: string;
37 alternativeTo?: string[];
38}
39
40export interface Category {
41 name: string;
42 sections: Section[];
43}
44
45
46export interface AwesomePrivacy {
47 categories: Array<{
48 name: string;
49 sections: Array<Section>;
50 }>;
51}