Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions designer-demo/src/composable/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const procession = {
let loginVM = null

const showError = (url, message) => {
if (message === 'canceled') return // 取消请求场景不报错
globalNotify({
type: 'error',
title: '接口报错',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

### 前端代码改动

在`tiny-engine/packages/plugins/robot/src/js/useRobot.ts`文件改动如下
在`tiny-engine/packages/plugins/robot/src/composables/useRobot.ts`文件改动如下

![](./imgs/ai-image23.png)

Expand Down
2 changes: 1 addition & 1 deletion packages/common/js/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const fetchAiInlineCompletion = (codeBeforeCursor, codeAfterCursor) => {
{
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${apiKey}`
Authorization: `Bearer ${apiKey || ''}`
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export default {
iconSearchValue: '',
icon: {
name: props.modelValue,
component: props.modelValue && SvgICons[props.modelValue]()
component: props.modelValue && SvgICons[props.modelValue]?.()
},
defaultIcon: {
name: props.modelValue,
component: props.modelValue && SvgICons[props.modelValue]()
component: props.modelValue && SvgICons[props.modelValue]?.()
}
})

Expand Down
1 change: 0 additions & 1 deletion packages/layout/src/DesignSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ export default {
display: flex;
flex-direction: column;
position: absolute;
top: var(--base-top-panel-height);
right: var(--base-nav-panel-width);
z-index: 999;

Expand Down
1 change: 1 addition & 0 deletions packages/layout/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default {
display: flex;
flex-flow: row nowrap;
z-index: 4;
position: relative;
}
:deep(.monaco-editor .suggest-widget) {
border-width: 0;
Expand Down
4 changes: 4 additions & 0 deletions packages/plugins/robot/assets/failed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/plugins/robot/assets/success.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
4 changes: 3 additions & 1 deletion packages/plugins/robot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import entry from './src/Main.vue'
import metaData from './meta'
import './src/styles/vars.less'
import '@opentiny/tiny-robot/dist/style.css'
import { RobotService } from './src/js/index'
import { RobotService } from './src/composables/index'

export default {
...metaData,
entry,
metas: [RobotService]
}

initDebugWindow()
Empty file.
15 changes: 8 additions & 7 deletions packages/plugins/robot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@
"license": "MIT",
"homepage": "https://opentiny.design/tiny-engine",
"dependencies": {
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-engine-common": "workspace:*",
"@opentiny/tiny-engine-meta-register": "workspace:*",
"@opentiny/tiny-engine-utils": "workspace:*",
"@opentiny/tiny-robot": "0.3.0-rc.0",
"@opentiny/tiny-robot-kit": "0.3.0-rc.0",
"@opentiny/tiny-robot-svgs": "0.3.0-rc.0",
"@opentiny/tiny-robot": "0.3.0-rc.5",
"@opentiny/tiny-robot-kit": "0.3.0-rc.5",
"@opentiny/tiny-robot-svgs": "0.3.0-rc.5",
"@opentiny/tiny-schema-renderer": "1.0.0-beta.6",
"fast-json-patch": "~3.1.1",
"@vueuse/core": "^9.13.0",
"dompurify": "^3.0.1",
"fast-json-patch": "~3.1.1",
"highlight.js": "^11.11.1",
"markdown-it": "^14.1.0",
"jsonrepair": "3.13.0"
"jsonrepair": "3.13.0",
"markdown-it": "^14.1.0"
},
"devDependencies": {
"@opentiny/tiny-engine-vite-plugin-meta-comments": "workspace:*",
Expand Down
58 changes: 0 additions & 58 deletions packages/plugins/robot/src/BuildLoadingRenderer.vue

This file was deleted.

Loading