Repository navigation
Expand file tree
/
Copy pathplugin.ts
More file actions
95 lines (85 loc) · 3.32 KB
/
Copy pathplugin.ts
File metadata and controls
95 lines (85 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//
// Copyright © 2022, 2023 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
import { type Client, type Doc, type Ref } from '@hcengineering/core'
import document, { type Document, documentId } from '@hcengineering/document'
import { mergeIds, type IntlString, type Resource } from '@hcengineering/platform'
import { type AnyComponent, type Location } from '@hcengineering/ui'
export default mergeIds(documentId, document, {
component: {
EditDoc: '' as AnyComponent,
MyDocuments: '' as AnyComponent,
NewDocumentHeader: '' as AnyComponent,
Revision: '' as AnyComponent,
CreateTeamspace: '' as AnyComponent
},
function: {
DocumentTitleProvider: '' as Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<string>>,
GetDocumentLink: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>,
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
GetDocumentLinkId: '' as Resource<(doc: Doc) => Promise<string>>,
ParseDocumentId: '' as Resource<(id: string) => Promise<Ref<Document> | undefined>>
},
string: {
DocumentNamePlaceholder: '' as IntlString,
Name: '' as IntlString,
Cancel: '' as IntlString,
Document: '' as IntlString,
SearchDocument: '' as IntlString,
Version: '' as IntlString,
Snapshot: '' as IntlString,
NoVersions: '' as IntlString,
NoBaseVersion: '' as IntlString,
DocumentApplication: '' as IntlString,
MyDocuments: '' as IntlString,
Teamspace: '' as IntlString,
Teamspaces: '' as IntlString,
Labels: '' as IntlString,
Authors: '' as IntlString,
Backlinks: '' as IntlString,
History: '' as IntlString,
SavedDocuments: '' as IntlString,
AddLabel: '' as IntlString,
NewTeamspace: '' as IntlString,
CreateTeamspace: '' as IntlString,
EditTeamspace: '' as IntlString,
TeamspaceTitle: '' as IntlString,
TeamspaceMembers: '' as IntlString,
TeamspaceTitlePlaceholder: '' as IntlString,
TeamspaceDescriptionPlaceholder: '' as IntlString,
ChooseIcon: '' as IntlString,
NoParentDocument: '' as IntlString,
NoBacklinks: '' as IntlString,
NoHistory: '' as IntlString,
Untitled: '' as IntlString,
Description: '' as IntlString,
DescriptionPlaceholder: '' as IntlString,
Star: '' as IntlString,
Unstar: '' as IntlString,
CopyDocumentUrl: '' as IntlString,
Lock: '' as IntlString,
Unlock: '' as IntlString,
Locked: '' as IntlString,
ViewMode: '' as IntlString,
EditMode: '' as IntlString,
SuggestMode: '' as IntlString,
ChildDocuments: '' as IntlString,
Embedding: '' as IntlString,
Embeddings: '' as IntlString,
CompareTo: '' as IntlString,
Color: '' as IntlString,
Icon: '' as IntlString,
RoleLabel: '' as IntlString
}
})