Skip to content

Commit

Permalink
code change
Browse files Browse the repository at this point in the history
(cherry picked from commit be54d44)
  • Loading branch information
tongwl authored and zhaohehuhu committed Nov 3, 2023
1 parent 0ddc6d5 commit 7379c4e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions kyuubi-server/web-ui/src/layout/components/aside/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const MENUS = [
router: '/swagger'
},
{
label: 'SQL Lab',
label: 'SQL Editor',
icon: 'Cpu',
router: '/lab'
router: '/editor'
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

const routes = [
{
path: '/lab',
name: 'lab',
component: () => import('@/views/lab/index.vue')
path: '/editor',
name: 'editor',
component: () => import('@/views/editor/index.vue')
}
]

Expand Down
2 changes: 1 addition & 1 deletion kyuubi-server/web-ui/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import overviewRoutes from './overview'
import managementRoutes from './management'
import detailRoutes from './detail'
import swaggerRoutes from './swagger'
import labRoutes from './lab'
import labRoutes from './editor'

const routes = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
getSqlRowset,
getSqlMetadata,
log
} from '@/api/lab'
} from '@/api/editor'
import type { IResponse, ISqlResult, IFields, ILog } from './types'

const { t } = useI18n()
Expand Down Expand Up @@ -259,4 +259,3 @@
}
}
</style>
@/api/lab
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
v-fit-columns
stripe
:data="data"
class="lab-el-table">
class="editor-el-table">
<el-table-column type="index" width="50" />
<el-table-column
v-for="(_value, key) in data[0]"
Expand Down Expand Up @@ -89,7 +89,7 @@
</script>

<style lang="scss" scoped>
:deep(.lab-el-table.r-table) {
:deep(.editor-el-table.r-table) {
.cell {
display: inline-block;
white-space: nowrap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<el-tabs
v-model="editableTabsValue"
type="border-card"
class="lab-el-tabs"
class="editor-el-tabs"
editable
@edit="handleTabsEdit">
<el-tab-pane
Expand Down Expand Up @@ -86,7 +86,7 @@
margin: -20px;
}

:deep(.lab-el-tabs) {
:deep(.editor-el-tabs) {
height: 100%;
overflow: auto;
.el-tabs__header {
Expand Down

0 comments on commit 7379c4e

Please sign in to comment.