adding in navbar and other components

This commit is contained in:
talksik
2022-06-11 06:06:16 -05:00
parent 8ee5cc0886
commit 11c4ec5a53
10 changed files with 282 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
type Shortcut = { label: string; shortcutKey: string };
export const KeyboardShortcuts: Record<string, Shortcut> = {
search: {
label: '/',
shortcutKey: '/',
},
escape: {
shortcutKey: 'Escape',
label: 'esc',
},
};
+9
View File
@@ -0,0 +1,9 @@
// the rules of the game
export const NirvanaRules = {
maxMembersPerConversation: 8,
maxPriorityConvos: 5,
topXConversationsWithShortcuts: 3,
};
+4
View File
@@ -0,0 +1,4 @@
/**
* The string that should be used to search for the support account, regardless of the environment
*/
export const SUPPORT_DISPLAY_NAME = 'Nirvana | Team';
+7
View File
@@ -0,0 +1,7 @@
export const toTitleCase = (str: string) => {
return str
.toLowerCase()
.split(' ')
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
.join(' ');
};
+15
View File
@@ -0,0 +1,15 @@
import { ContentBlock } from '@nirvana/core/models/content.model';
import Conversation from '@nirvana/core/models/conversation.model';
import User from '@nirvana/core/models/user.model';
export type ConversationMap = {
[conversationId: string]: Conversation;
};
export type UserMap = {
[userId: string]: User;
};
export type ConversationContentMap = {
[conversationId: string]: ContentBlock[];
};