-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…B-5954-ldap-configuration
- Loading branch information
Showing
40 changed files
with
814 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...es/io.cloudbeaver.model/src/io/cloudbeaver/model/session/monitor/TaskProgressMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* DBeaver - Universal Database Manager | ||
* Copyright (C) 2010-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache 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 | ||
* | ||
* http://www.apache.org/licenses/LICENSE-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. | ||
*/ | ||
package io.cloudbeaver.model.session.monitor; | ||
|
||
import io.cloudbeaver.model.WebAsyncTaskInfo; | ||
import io.cloudbeaver.model.session.WebSession; | ||
import io.cloudbeaver.utils.WebEventUtils; | ||
import org.jkiss.code.NotNull; | ||
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor; | ||
import org.jkiss.dbeaver.model.runtime.ProxyProgressMonitor; | ||
|
||
/** | ||
* Task progress monitor. | ||
* Used by async GQL requests. | ||
*/ | ||
public class TaskProgressMonitor extends ProxyProgressMonitor { | ||
|
||
@NotNull | ||
private final WebAsyncTaskInfo asyncTask; | ||
private final WebSession webSession; | ||
|
||
public TaskProgressMonitor(DBRProgressMonitor original, @NotNull WebSession webSession, @NotNull WebAsyncTaskInfo asyncTask) { | ||
super(original); | ||
this.webSession = webSession; | ||
this.asyncTask = asyncTask; | ||
} | ||
|
||
@Override | ||
public void beginTask(String name, int totalWork) { | ||
super.beginTask(name, totalWork); | ||
asyncTask.setStatus(name); | ||
WebEventUtils.sendAsyncTaskEvent(webSession, asyncTask); | ||
} | ||
|
||
@Override | ||
public void subTask(String name) { | ||
super.subTask(name); | ||
asyncTask.setStatus(name); | ||
WebEventUtils.sendAsyncTaskEvent(webSession, asyncTask); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
webapp/packages/core-cli/_templates/plugin/new/index.ts.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
to: <%= name %>/src/index.ts | ||
--- | ||
import { <%= h.changeCase.camel(name) %>Manifest } from './manifest.js'; | ||
|
||
export default <%= h.changeCase.camel(name) %>Manifest; | ||
export { <%= h.changeCase.camel(name) %>Manifest }; |
12 changes: 12 additions & 0 deletions
12
webapp/packages/core-cli/_templates/plugin/new/manifest.ts.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
to: <%= name %>/src/manifest.ts | ||
--- | ||
import type { PluginManifest } from '@cloudbeaver/core-di'; | ||
|
||
export const <%= h.changeCase.camel(name) %>Manifest: PluginManifest = { | ||
info: { | ||
name: '<%= h.changeCase.sentence(name) %>', | ||
}, | ||
|
||
providers: [() => import('./<%= h.changeCase.pascal(name) %>ServiceBootstrap.js').then(m => m.<%= h.changeCase.pascal(name) %>ServiceBootstrap)], | ||
}; |
31 changes: 31 additions & 0 deletions
31
webapp/packages/core-cli/_templates/plugin/new/package.json.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
to: <%= name %>/package.json | ||
--- | ||
{ | ||
"name": "@cloudbeaver/<%= name %>", | ||
"type": "module", | ||
"sideEffects": [ | ||
"src/**/*.css", | ||
"src/**/*.scss", | ||
"public/**/*" | ||
], | ||
"version": "0.1.0", | ||
"description": "", | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "tsc -b", | ||
"clean": "rimraf --glob dist", | ||
"lint": "eslint ./src/ --ext .ts,.tsx", | ||
"test": "core-cli-test", | ||
"validate-dependencies": "core-cli-validate-dependencies", | ||
"update-ts-references": "yarn run clean && typescript-resolve-references" | ||
}, | ||
"dependencies": { | ||
"@cloudbeaver/core-di": "^0" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"typescript": "^5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
module.exports = [ | ||
{ | ||
type: 'input', | ||
name: 'name', | ||
message: 'What is the name of your plugin?', | ||
}, | ||
]; |
Oops, something went wrong.