SYNC: Merge pull request #9 from dbgate/feature/apps

This commit is contained in:
Jan Prochazka
2025-09-11 13:10:36 +02:00
committed by Diflow
parent ef15f299d2
commit 11a4f0ef32
40 changed files with 1770 additions and 754 deletions

View File

@@ -268,6 +268,23 @@ if (isProApp()) {
});
}
if (isProApp()) {
registerCommand({
id: 'new.application',
category: 'New',
icon: 'img app',
name: 'Application',
menuName: 'New application',
onClick: () => {
openNewTab({
title: 'Application #',
icon: 'img app',
tabComponent: 'AppEditorTab',
});
},
});
}
registerCommand({
id: 'new.diagram',
category: 'New',
@@ -297,22 +314,22 @@ registerCommand({
},
});
registerCommand({
id: 'new.application',
category: 'New',
icon: 'img app',
name: 'Application',
onClick: () => {
showModal(InputTextModal, {
value: '',
label: 'New application name',
header: 'Create application',
onConfirm: async folder => {
apiCall('apps/create-folder', { folder });
},
});
},
});
// registerCommand({
// id: 'new.application',
// category: 'New',
// icon: 'img app',
// name: 'Application',
// onClick: () => {
// showModal(InputTextModal, {
// value: '',
// label: 'New application name',
// header: 'Create application',
// onConfirm: async folder => {
// apiCall('apps/create-folder', { folder });
// },
// });
// },
// });
registerCommand({
id: 'new.table',