-
Notifications
You must be signed in to change notification settings - Fork 552
dbeaver/pro#9999 api for ai engine icon #4518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
018ffc8
8d4aef2
77c51df
9319658
04ba353
c776071
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ query getEngines { | |
| engines: aiListEngines { | ||
| id | ||
| name | ||
| icon | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,9 @@ | |
| { | ||
| "path": "../core-utils" | ||
| }, | ||
| { | ||
| "path": "../plugin-ai" | ||
| }, | ||
| { | ||
| "path": "../plugin-data-grid" | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,9 @@ | |
| { | ||
| "path": "../core-view" | ||
| }, | ||
| { | ||
| "path": "../plugin-ai" | ||
| }, | ||
| { | ||
| "path": "../plugin-codemirror6" | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # dependencies | ||
| /node_modules | ||
|
|
||
| # testing | ||
| /coverage | ||
|
|
||
| # production | ||
| /lib | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| .env* | ||
|
|
||
| # debug | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "name": "@cloudbeaver/plugin-ai", | ||
| "type": "module", | ||
| "sideEffects": [ | ||
| "./lib/module.js", | ||
| "./lib/index.js", | ||
| "src/**/*.css", | ||
| "public/**/*" | ||
| ], | ||
| "version": "0.1.0", | ||
| "description": "", | ||
| "license": "Apache-2.0", | ||
| "exports": { | ||
| ".": "./lib/index.js", | ||
| "./module": "./lib/module.js" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc -b", | ||
| "clean": "rimraf --glob lib", | ||
| "lint": "eslint ./src/ --ext .ts,.tsx", | ||
| "validate-dependencies": "core-cli-validate-dependencies" | ||
| }, | ||
| "dependencies": { | ||
| "@cloudbeaver/core-di": "workspace:*", | ||
| "@cloudbeaver/core-resource": "workspace:*", | ||
| "@cloudbeaver/core-root": "workspace:*", | ||
| "@cloudbeaver/core-sdk": "workspace:*", | ||
| "mobx": "^6", | ||
| "mobx-react-lite": "^4", | ||
| "react": "^19", | ||
| "react-dom": "^19", | ||
| "tslib": "^2" | ||
| }, | ||
| "devDependencies": { | ||
| "@cloudbeaver/core-cli": "workspace:*", | ||
| "@cloudbeaver/tsconfig": "workspace:*", | ||
| "@types/react": "^19", | ||
| "rimraf": "^6", | ||
| "typescript": "^5" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* | ||
| * CloudBeaver - Cloud Database Manager | ||
| * Copyright (C) 2020-2026 DBeaver Corp and others | ||
| * | ||
| * Licensed under the Apache License, Version 2.0. | ||
| * you may not use this file except in compliance with the License. | ||
| */ | ||
|
|
||
| import './module.js'; | ||
|
|
||
| export * from './AiEnginesResource.js'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /* | ||
| * CloudBeaver - Cloud Database Manager | ||
| * Copyright (C) 2020-2026 DBeaver Corp and others | ||
| * | ||
| * Licensed under the Apache License, Version 2.0. | ||
| * you may not use this file except in compliance with the License. | ||
| */ | ||
|
|
||
| import { Dependency, ModuleRegistry, proxy } from '@cloudbeaver/core-di'; | ||
|
|
||
| import { AiEnginesResource } from './AiEnginesResource.js'; | ||
|
|
||
| export default ModuleRegistry.add({ | ||
| name: '@cloudbeaver/plugin-ai', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. plugin-ai is too common name. in the future we may want to place everything to it instead of decomposing ai-features to the plugins, I guess
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have plugin-ai-administration, so it seems like plugin-ai would be a suitable public plugin name here, at least for now |
||
|
|
||
| configure: serviceCollection => { | ||
| serviceCollection.addSingleton(Dependency, proxy(AiEnginesResource)).addSingleton(AiEnginesResource); | ||
| }, | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "extends": "@cloudbeaver/tsconfig/tsconfig.json", | ||
| "compilerOptions": { | ||
| "rootDir": "src", | ||
| "outDir": "lib", | ||
| "tsBuildInfoFile": "lib/tsconfig.tsbuildinfo", | ||
| "composite": true | ||
| }, | ||
| "exclude": [ | ||
| "lib/**/*", | ||
| "**/node_modules" | ||
| ], | ||
| "references": [ | ||
| { | ||
| "path": "../core-cli" | ||
| }, | ||
| { | ||
| "path": "../core-di" | ||
| }, | ||
| { | ||
| "path": "../core-resource" | ||
| }, | ||
| { | ||
| "path": "../core-root" | ||
| }, | ||
| { | ||
| "path": "../core-sdk" | ||
| } | ||
| ], | ||
| "include": [ | ||
| "__custom_mocks__/**/*", | ||
| "src/**/*", | ||
| "src/**/*.json", | ||
| "src/**/*.css" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets show and icon and the engine name. users cannot know each engine by only icon. right now they have to hover too see the name and we can easily avoid this action since there is enough space in the table