UBERF-5603 (#4754)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-02-23 15:39:49 +07:00
committed by GitHub
parent cc8a1d549a
commit ffc8d1dfac
184 changed files with 2755 additions and 561 deletions
+37
View File
@@ -0,0 +1,37 @@
import { Class, Doc, Ref, Space } from '@hcengineering/core'
import type { Asset, Plugin } from '@hcengineering/platform'
import { plugin } from '@hcengineering/platform'
import { AnyComponent, Location } from '@hcengineering/ui'
export interface PublicLink extends Doc {
attachedTo: Ref<Doc>
url: string
location: Location
restrictions: Restrictions
revokable: boolean
}
export interface Restrictions {
readonly: boolean
disableComments: boolean
disableNavigation: boolean
disableActions: boolean
}
export const guestAccountEmail = '#guest@hc.engineering'
export const guestId = 'guest' as Plugin
export default plugin(guestId, {
class: {
PublicLink: '' as Ref<Class<PublicLink>>
},
icon: {
Link: '' as Asset
},
space: {
Links: '' as Ref<Space>
},
component: {
GuestApp: '' as AnyComponent
}
})