32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
export const CHROME_EXTENSION_URL =
|
|
'https://chromewebstore.google.com/detail/jpemjbopikggjlmikmclgbmkhhopjdgd?utm_source=item-share-cb'
|
|
|
|
export const CLAWHUB_SKILL_URL = 'https://clawhub.ai/lyingbug/weknora'
|
|
|
|
export type IntegrationTab = 'im' | 'embed' | 'api' | 'chrome' | 'claw'
|
|
|
|
export const INTEGRATION_TABS: IntegrationTab[] = ['im', 'embed', 'api', 'chrome', 'claw']
|
|
|
|
/** Aligns with Settings.vue SECTION_MIN_ROLE.api and router.go g.Owner() on /api-principal-config. */
|
|
export type IntegrationTabRole = 'viewer' | 'contributor' | 'admin' | 'owner'
|
|
|
|
export const INTEGRATION_TAB_MIN_ROLE: Partial<Record<IntegrationTab, IntegrationTabRole>> = {
|
|
api: 'owner',
|
|
}
|
|
|
|
export type IntegrationPreviewIcon =
|
|
| { type: 'icon'; name: string }
|
|
| { type: 'emoji'; value: string }
|
|
|
|
/** Sidebar hover preview + Integrations modal nav — add new entries here. */
|
|
export const INTEGRATION_PREVIEW_ITEMS: Array<{
|
|
key: IntegrationTab
|
|
icon: IntegrationPreviewIcon
|
|
}> = [
|
|
{ key: 'im', icon: { type: 'icon', name: 'chat-message' } },
|
|
{ key: 'embed', icon: { type: 'icon', name: 'code' } },
|
|
{ key: 'api', icon: { type: 'icon', name: 'secured' } },
|
|
{ key: 'chrome', icon: { type: 'icon', name: 'extension' } },
|
|
{ key: 'claw', icon: { type: 'emoji', value: '🦞' } },
|
|
]
|