web/src/types/Service.ts

50 lines · 911 bytes

5 symbols in this file
 1export interface ShortService {
 2  name: string;
 3  description: string;
 4  url: string;
 5}
 6
 7export interface Service {
 8  name: string;
 9  description: string;
10  url: string;
11  github?: string;
12  codeberg?: string;
13  git?: 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
45export interface AwesomePrivacy {
46  categories: Array<{
47    name: string;
48    sections: Array<Section>;
49  }>;
50}