Skip to content

Commit f10ae22

Browse files
committed
server/types: add email confirmation states & user preferences
1 parent dd4c6e6 commit f10ae22

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

server/types/email.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/** Possible email confirmation states */
2+
export enum EmailConfirmationStates {
3+
Verified = 'verified',
4+
Sent = 'sent',
5+
Resent = 'resent'
6+
}
7+
18
/** Rendered mail data for the mailer service, without the 'from' property, which will be automatically added */
29
export interface RenderedMailerData {
310
to: string;

server/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './email';
2+
export * from './userPreferences';

server/types/userPreferences.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export enum AppThemeOptions {
2+
LIGHT = 'light',
3+
DARK = 'dark',
4+
CONTRAST = 'contrast'
5+
}
6+
7+
export interface UserPreferences {
8+
fontSize: number;
9+
lineNumbers: boolean;
10+
indentationAmount: number;
11+
isTabIndent: boolean;
12+
autosave: boolean;
13+
linewrap: boolean;
14+
lintWarning: boolean;
15+
textOutput: boolean;
16+
gridOutput: boolean;
17+
theme: AppThemeOptions;
18+
autorefresh: boolean;
19+
language: string;
20+
autocloseBracketsQuotes: boolean;
21+
autocompleteHinter: boolean;
22+
}
23+
24+
export enum CookieConsentOptions {
25+
NONE = 'none',
26+
ESSENTIAL = 'essential',
27+
ALL = 'all'
28+
}

0 commit comments

Comments
 (0)