Skip to content

Commit 5fd5567

Browse files
committed
Merge remote-tracking branch 'origin/develop' into staging-new
Signed-off-by: Alexander Onnikov <[email protected]>
2 parents 5f661bf + d609290 commit 5fd5567

File tree

202 files changed

+5399
-685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+5399
-685
lines changed

desktop/src/ui/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export async function configurePlatform (onWorkbenchConnect?: () => Promise<void
339339

340340
setMetadata(billingPlugin.metadata.BillingURL, config.BILLING_URL ?? '')
341341

342-
const languages = myBranding.languages !== undefined && myBranding.languages !== '' ? myBranding.languages.split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de', 'ja']
342+
const languages = myBranding.languages !== undefined && myBranding.languages !== '' ? myBranding.languages.split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de', 'ja', 'tr']
343343

344344
setMetadata(uiPlugin.metadata.Languages, languages)
345345

dev/prod/src/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ export async function configurePlatform() {
496496

497497
const languages = myBranding.languages
498498
? (myBranding.languages as string).split(',').map((l) => l.trim())
499-
: ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de', 'ja']
499+
: ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de', 'ja', 'tr']
500500

501501
setMetadata(uiPlugin.metadata.Languages, languages)
502502

models/card/src/actions.ts

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
// Copyright © 2025 Hardcore Engineering Inc.
2+
//
3+
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License. You may
5+
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
//
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import { type Builder } from '@hcengineering/model'
15+
import presentation from '@hcengineering/model-presentation'
16+
import setting from '@hcengineering/model-setting'
17+
import view, { createAction } from '@hcengineering/model-view'
18+
import workbench from '@hcengineering/model-workbench'
19+
import card from './plugin'
20+
21+
export function createActions (builder: Builder): void {
22+
createAction(builder, {
23+
action: card.actionImpl.EditSpace,
24+
label: presentation.string.Edit,
25+
icon: view.icon.Edit,
26+
input: 'focus',
27+
category: view.category.General,
28+
target: card.class.CardSpace,
29+
visibilityTester: view.function.CanEditSpace,
30+
query: {},
31+
context: {
32+
mode: ['context', 'browser'],
33+
group: 'edit'
34+
}
35+
})
36+
37+
createAction(builder, {
38+
action: view.actionImpl.CopyTextToClipboard,
39+
actionProps: {
40+
textProvider: card.function.GetSpaceAccessPublicLink
41+
},
42+
label: card.string.GetIndividualPublicLink,
43+
icon: view.icon.CopyLink,
44+
input: 'any',
45+
category: view.category.General,
46+
target: card.class.CardSpace,
47+
query: {},
48+
visibilityTester: card.function.CanGetSpaceAccessPublicLink,
49+
context: {
50+
mode: ['context', 'browser']
51+
}
52+
})
53+
54+
createAction(
55+
builder,
56+
{
57+
action: view.actionImpl.ShowPopup,
58+
actionProps: {
59+
component: card.component.SetParentActionPopup,
60+
element: 'top',
61+
fillProps: {
62+
_objects: 'value'
63+
}
64+
},
65+
label: card.string.SetParent,
66+
icon: card.icon.MasterTag,
67+
input: 'none',
68+
category: card.category.Card,
69+
target: card.class.Card,
70+
context: {
71+
mode: ['context'],
72+
application: card.app.Card,
73+
group: 'associate'
74+
}
75+
},
76+
card.action.SetParent
77+
)
78+
79+
createAction(
80+
builder,
81+
{
82+
action: view.actionImpl.UpdateDocument,
83+
actionProps: {
84+
key: 'parent',
85+
value: null
86+
},
87+
query: {
88+
parent: { $ne: null, $exists: true }
89+
},
90+
label: card.string.UnsetParent,
91+
icon: card.icon.MasterTag,
92+
input: 'none',
93+
category: card.category.Card,
94+
target: card.class.Card,
95+
context: {
96+
mode: ['context'],
97+
application: card.app.Card,
98+
group: 'associate'
99+
}
100+
},
101+
card.action.UnsetParent
102+
)
103+
104+
createAction(builder, {
105+
action: view.actionImpl.ShowPopup,
106+
actionProps: {
107+
component: card.component.CreateTag,
108+
props: {
109+
_class: card.class.Tag
110+
},
111+
fillProps: {
112+
_object: 'parent'
113+
}
114+
},
115+
label: card.string.CreateTag,
116+
input: 'focus',
117+
icon: view.icon.Add,
118+
category: setting.category.Settings,
119+
target: card.class.MasterTag,
120+
context: {
121+
mode: ['context', 'browser'],
122+
group: 'edit'
123+
}
124+
})
125+
126+
createAction(builder, {
127+
action: view.actionImpl.ShowPopup,
128+
actionProps: {
129+
component: card.component.CreateTag,
130+
props: {
131+
_class: card.class.Tag
132+
},
133+
fillProps: {
134+
_object: 'parent'
135+
}
136+
},
137+
label: card.string.CreateTag,
138+
input: 'focus',
139+
icon: view.icon.Add,
140+
category: setting.category.Settings,
141+
target: card.class.Tag,
142+
context: {
143+
mode: ['context', 'browser'],
144+
group: 'edit'
145+
}
146+
})
147+
148+
createAction(
149+
builder,
150+
{
151+
action: card.actionImpl.DeleteMasterTag,
152+
label: workbench.string.Delete,
153+
icon: view.icon.Delete,
154+
input: 'any',
155+
category: view.category.General,
156+
target: card.class.MasterTag,
157+
context: {
158+
mode: ['context', 'browser'],
159+
group: 'remove'
160+
}
161+
},
162+
card.action.DeleteMasterTag
163+
)
164+
165+
createAction(builder, {
166+
action: card.actionImpl.DeleteMasterTag,
167+
label: workbench.string.Delete,
168+
icon: view.icon.Delete,
169+
input: 'any',
170+
category: view.category.General,
171+
target: card.class.Tag,
172+
context: {
173+
mode: ['context', 'browser'],
174+
group: 'remove'
175+
}
176+
})
177+
178+
createAction(builder, {
179+
action: view.actionImpl.ShowPopup,
180+
actionProps: {
181+
component: card.component.ChangeType,
182+
fillProps: {
183+
_object: 'value'
184+
}
185+
},
186+
label: card.string.ChangeType,
187+
input: 'focus',
188+
icon: card.icon.MasterTag,
189+
category: setting.category.Settings,
190+
target: card.class.Card,
191+
context: {
192+
mode: ['context', 'browser'],
193+
group: 'edit'
194+
}
195+
})
196+
197+
createAction(builder, {
198+
action: view.actionImpl.ShowPopup,
199+
actionProps: {
200+
component: card.component.CreateTag,
201+
props: {
202+
_class: card.class.MasterTag
203+
},
204+
fillProps: {
205+
_object: 'parent'
206+
}
207+
},
208+
label: card.string.CreateMasterTag,
209+
input: 'focus',
210+
icon: card.icon.MasterTag,
211+
category: setting.category.Settings,
212+
target: card.class.MasterTag,
213+
context: {
214+
mode: ['context', 'browser'],
215+
group: 'edit'
216+
}
217+
})
218+
}

0 commit comments

Comments
 (0)