Skip to content

Commit

Permalink
feat: 1.14 在线调试开发 (TencentBlueKing#67)
Browse files Browse the repository at this point in the history
* feat: 1.14 开发

* feat: 1.14 开发

* feat: 1.14 开发

* feat: 1.14 开发

* feat: 1.14 在线调试开发
  • Loading branch information
shuzhenyang authored Jul 21, 2024
1 parent 55ae1a8 commit 313fb63
Show file tree
Hide file tree
Showing 10 changed files with 2,293 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dashboard-front/src/components/ag-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ const props = defineProps({
readOnly: { type: Boolean, default: false },
width: { type: [String, Number], default: '100%' },
height: { type: [String, Number], default: '100%' },
theme: { type: String, default: 'vs-dark' },
});
const { modelValue, language, readOnly, width, height } = toRefs(props);
const { modelValue, language, readOnly, width, height, theme } = toRefs(props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down Expand Up @@ -67,7 +68,7 @@ const getValue = () => {
const initEditor = () => {
editor = monaco.editor.create(monacoEditor.value, {
value: modelValue.value,
theme: 'vs-dark', // 主题
theme: theme.value, // 主题
language: language.value,
folding: true, // 是否折叠
foldingHighlight: true, // 折叠等高线
Expand Down
65 changes: 65 additions & 0 deletions src/dashboard-front/src/components/online-test-top.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<template>
<div class="resource-top-bar" :style="stage.getNotUpdatedStages?.length ? 'top: 42px' : 'top: -1px'">
<div class="top-title-wrapper">
<div class="title">{{ t('在线调试') }}</div>
<div class="history">
<i class="apigateway-icon icon-ag-cc-history history-icon"></i>
<span>请求记录</span>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, computed } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { Message } from 'bkui-vue';
import { getResourceVersionsList } from '@/http';
import { useStage } from '@/store';
const { t } = useI18n();
const stage = useStage();
const route = useRoute();
const apigwId = computed(() => +route.params.id);
// const props = defineProps({
// });
</script>
<style lang="scss" scoped>
.resource-top-bar {
position: absolute;
width: 100%;
height: 52px;
box-sizing: border-box;
padding: 0 24px;
background: #FFFFFF;
display: flex;
align-items: center;
justify-content: space-between;
min-width: 1280px;
.top-title-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
.title {
font-size: 16px;
color: #313238;
margin-right: 8px;
}
.history {
color: #3A84FF;
cursor: pointer;
.history-icon {
font-size: 16px;
}
span {
font-size: 12px;
}
}
}
}
</style>
Loading

0 comments on commit 313fb63

Please sign in to comment.