adding in navbar and other components
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
type Shortcut = { label: string; shortcutKey: string };
|
||||
|
||||
export const KeyboardShortcuts: Record<string, Shortcut> = {
|
||||
search: {
|
||||
label: '/',
|
||||
shortcutKey: '/',
|
||||
},
|
||||
escape: {
|
||||
shortcutKey: 'Escape',
|
||||
label: 'esc',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
// the rules of the game
|
||||
|
||||
export const NirvanaRules = {
|
||||
maxMembersPerConversation: 8,
|
||||
|
||||
maxPriorityConvos: 5,
|
||||
|
||||
topXConversationsWithShortcuts: 3,
|
||||
};
|
||||
@@ -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';
|
||||
@@ -0,0 +1,7 @@
|
||||
export const toTitleCase = (str: string) => {
|
||||
return str
|
||||
.toLowerCase()
|
||||
.split(' ')
|
||||
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
||||
.join(' ');
|
||||
};
|
||||
@@ -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[];
|
||||
};
|
||||
Reference in New Issue
Block a user