diff --git a/.env.development b/.env.development index 85e7e97..a0487ba 100644 --- a/.env.development +++ b/.env.development @@ -11,4 +11,6 @@ VITE_API_URL = http://192.168.1.101:13080 VITE_WS_URL = ws://192.168.1.101:13080/ws # explanation -VITE_INSPECTION_TYPE = "inspection" \ No newline at end of file +VITE_INSPECTION_TYPE = "inspection" + +VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/" \ No newline at end of file diff --git a/.env.production b/.env.production index 4c5aa50..4ce673e 100644 --- a/.env.production +++ b/.env.production @@ -17,4 +17,6 @@ VITE_API_URL = http://192.168.28.10:13080 VITE_WS_URL = ws://192.168.0.201:13080/ws # explanation -VITE_INSPECTION_TYPE = "inspection" \ No newline at end of file +VITE_INSPECTION_TYPE = "inspection" + +VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/" \ No newline at end of file diff --git a/package.json b/package.json index c97dfe2..1aa4046 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@vueup/vue-quill": "1.2.0", "@vueuse/core": "10.11.0", "ace-builds": "^1.43.0", + "autofit.js": "^3.2.8", "axios": "0.28.1", "clipboard": "2.0.11", "dayjs": "^1.11.13", diff --git a/src/api/corpusManger/speech_synthesis.js b/src/api/corpusManger/speech_synthesis.js index e593b28..2ccd336 100644 --- a/src/api/corpusManger/speech_synthesis.js +++ b/src/api/corpusManger/speech_synthesis.js @@ -43,4 +43,20 @@ export function regenerateApi(id) { url: `/tts/task/regenerate/${id}`, method: 'post' }) +} + +export function generalizationApi(data) { + return request({ + url: '/tts/task/llm/query', + method: 'post', + data: data + }) +} + +export function batchTaskApi(data) { + return request({ + url: '/tts/task/batch', + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index 7758f8b..1f62deb 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -1,7 +1,8 @@ #app { .main-container { - min-height: 100%; + // min-height: 100%; + height: 100%; transition: margin-left .28s; margin-left: $base-sidebar-width; position: relative; diff --git a/src/components/IPlayer/config.ts b/src/components/IPlayer/config.ts new file mode 100644 index 0000000..3048428 --- /dev/null +++ b/src/components/IPlayer/config.ts @@ -0,0 +1,59 @@ +export const conf = { + /** + * 基础功能配置 + * */ + autoplay: false, // 是否自动播放,不自动播放,浏览器有限制规则 + autoplayMuted: false, // 是否自动播放(静音播放) + videoInit: true, // 是否默认初始化video,默认初始化,默认true + playsinline: true, // 是否启用内联播放模式,仅移动端生效 + defaultPlaybackRate: 1, // 默认播放速度(可选:0.5/0.75/1/1.5/2等) + volume: 0.72, // 播放音量(可选:0 ~ 1) + loop: false, // 是否循环播放,默认不循环播放 + startTime: 0, // 点播模式下,初始起播时间 + videoAttributes: {}, // video扩展属性,暂且不配置 + lang: 'zh-cn', // 播放器初始显示语言,设置为中文 + fluid: true, // 是否流式布局(宽高优先于流失布局,默认16:9)注掉上方宽高看效果 + fitVideoSize: 'fixed', // 保持容器宽/高,不做适配,按照容器来 + videoFillMode: 'auto', // 宽高不够自动底色填充(fill拉伸填充等...) + seekedStatus: 'play', // 跳转后继续播放 + // 播放器进度条故事点信息数组 + progressDot: [ + { + id: 0, // 唯一标识,用于删除的时候索引 + time: 30, // 展示的时间点,例子为在播放到10s钟的时候展示 + text: '进度条信息提示...', // hover的时候展示文案,可以为空 + duration: 1, // 展示时间跨度,单位为s + style: { // 指定样式 + backgroundColor: 'white' + } + }, + ], + thumbnail: null, // 进度条预览图配置,普通业务用不到 + marginControls: false, // 是否开启画面和控制栏分离模式,不开启空间多一些 + domEventType: 'default', // 响应的事件类型,不用指定,用默认的即可 + /** + * 交互功能配置(一般使用默认即可) + * */ + /** + * 插件配置,根据需求自选 + * */ + icons: {}, // 使用默认的icon图标 + i18n: [], // 使用默认的中文 + // 自定义一些颜色 + commonStyle: { + progressColor: 'green', // 整个进度条颜色 + playedColor: 'chocolate', // 已播放的进度条颜色 + volumeColor: 'pink', // 音量大小竖向滑块颜色 + }, + controls: true, // 是否使用底部控制栏,默认使用 + miniprogress: true, // 是否使用mini进度条(当底部控制栏隐藏时生效) + screenShot: false, // 关闭截图功能 + rotate: true, // 是否使用视频旋转插件,默认不使用 + download: true, // 是否使用下载按钮,一般不用,一般自定义控制 + pip: true, // 使用使用画中画模式,默认不用 + mini: true, // 是否使用小屏幕控件 + cssFullscreen: true, // 是否使用网页样式全屏按钮开关 + playbackRate: [0.5, 1, 1.5, 2, 3], //传入倍速可选数组 + // playbackRate: true, //false,禁用倍速播放(即控制栏不显示) + keyShortcut: false, // 是否开启快捷键模式 +} diff --git a/src/components/IPlayer/index.vue b/src/components/IPlayer/index.vue new file mode 100644 index 0000000..55be899 --- /dev/null +++ b/src/components/IPlayer/index.vue @@ -0,0 +1,62 @@ + + + + + + diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index e3204de..c52ebb3 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -37,7 +37,7 @@ function addIframe() { @import "@/assets/styles/variables.module"; .app-main { /* 50= navbar 50 */ - height: calc(100vh - 84px); + height: calc(100% - 84px); padding: 20px; width: 100%; position: relative; @@ -54,7 +54,7 @@ function addIframe() { .hasTagsView { .app-main { /* 84 = navbar + tags-view = 50 + 34 */ - height: calc(100vh - 84px); + height: calc(100% - 84px); } .fixed-header + .app-main { diff --git a/src/views/corpusManger/corpus/components/CorpusList.vue b/src/views/corpusManger/corpus/components/CorpusList.vue index 3068a83..5ef4e09 100644 --- a/src/views/corpusManger/corpus/components/CorpusList.vue +++ b/src/views/corpusManger/corpus/components/CorpusList.vue @@ -1,19 +1,13 @@ \ No newline at end of file diff --git a/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue b/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue index 7f33bf9..ef5addc 100644 --- a/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue +++ b/src/views/corpusManger/speech_synthesis/components/MainWorkspace.vue @@ -1,20 +1,77 @@ @@ -107,28 +129,24 @@ \ No newline at end of file diff --git a/src/views/corpusManger/speech_synthesis/index.vue b/src/views/corpusManger/speech_synthesis/index.vue index d5136c2..4b9dac6 100644 --- a/src/views/corpusManger/speech_synthesis/index.vue +++ b/src/views/corpusManger/speech_synthesis/index.vue @@ -7,17 +7,28 @@
- +
- +