Преглед изворни кода

fix: update menu item paths and add video files

- Change menu item paths for Cloudflare Stream, WebRTC Stream, and related demo items for consistency
- Add new video files to the project for testing purposes
- Ensure package.json has a newline at the end of the file
yb пре 2 недеља
родитељ
комит
2bf204c0ef
5 измењених фајлова са 14 додато и 14 уклоњено
  1. BIN
      go_stream/videos/1.mp4
  2. BIN
      go_stream/videos/2.mp4
  3. 1 1
      package.json
  4. 6 6
      src/layout/index.vue
  5. 7 7
      src/router/index.ts

BIN
go_stream/videos/1.mp4


BIN
go_stream/videos/2.mp4


+ 1 - 1
package.json

@@ -79,4 +79,4 @@
     "vitest": "^4.0.16",
     "vue-tsc": "2.1.10"
   }
-}
+}

+ 6 - 6
src/layout/index.vue

@@ -32,12 +32,12 @@
           <template #title>{{ t('用户管理') }}</template>
         </el-menu-item>
 
-        <el-menu-item index="/cloudflare-stream">
+        <el-menu-item index="/demo/cc">
           <el-icon><VideoCamera /></el-icon>
           <template #title>{{ t('Cloudflare Stream') }}</template>
         </el-menu-item>
 
-        <el-menu-item index="/webrtc-stream">
+        <el-menu-item index="/demo/webrtc">
           <el-icon><Connection /></el-icon>
           <template #title>{{ t('WebRTC 流') }}</template>
         </el-menu-item>
@@ -47,15 +47,15 @@
             <el-icon><VideoPlay /></el-icon>
             <span>{{ t('视频测试') }}</span>
           </template>
-          <el-menu-item index="/demo/direct-url">
+          <el-menu-item index="/demo/directurl">
             <el-icon><Link /></el-icon>
             <template #title>{{ t('直接 URL') }}</template>
           </el-menu-item>
-          <el-menu-item index="/demo/rtsp-stream">
+          <el-menu-item index="/demo/rtsp">
             <el-icon><Connection /></el-icon>
             <template #title>{{ t('RTSP 流') }}</template>
           </el-menu-item>
-          <el-menu-item index="/demo/sample-videos">
+          <el-menu-item index="/demo/samples">
             <el-icon><Film /></el-icon>
             <template #title>{{ t('测试视频') }}</template>
           </el-menu-item>
@@ -78,7 +78,7 @@
             <el-icon><Setting /></el-icon>
             <template #title>{{ t('Stream 配置') }}</template>
           </el-menu-item>
-          <el-menu-item index="/stream-test">
+          <el-menu-item index="/streamtest">
             <el-icon><Monitor /></el-icon>
             <template #title>{{ t('快速测试') }}</template>
           </el-menu-item>

+ 7 - 7
src/router/index.ts

@@ -51,7 +51,7 @@ const routes: RouteRecordRaw[] = [
         meta: { title: '视频播放', hidden: true }
       },
       {
-        path: 'stream-test',
+        path: 'streamtest',
         name: 'StreamTest',
         component: () => import('@/views/camera/stream-test.vue'),
         meta: { title: 'Stream 测试', icon: 'Monitor' }
@@ -81,13 +81,13 @@ const routes: RouteRecordRaw[] = [
         meta: { title: '用户管理', icon: 'User' }
       },
       {
-        path: 'cloudflare-stream',
+        path: 'demo/cc',
         name: 'CloudflareStream',
         component: () => import('@/views/demo/cloudflare-stream.vue'),
         meta: { title: 'Cloudflare Stream', icon: 'VideoCamera' }
       },
       {
-        path: 'webrtc-stream',
+        path: 'demo/webrtc',
         name: 'WebrtcStream',
         component: () => import('@/views/demo/webrtc-stream.vue'),
         meta: { title: 'WebRTC 流', icon: 'Connection' }
@@ -105,19 +105,19 @@ const routes: RouteRecordRaw[] = [
         meta: { title: '审计日志', icon: 'Document' }
       },
       {
-        path: 'demo/direct-url',
+        path: 'demo/directurl',
         name: 'DirectUrl',
         component: () => import('@/views/demo/direct-url.vue'),
         meta: { title: '直接 URL', icon: 'Link' }
       },
       {
-        path: 'demo/rtsp-stream',
+        path: 'demo/rtsp',
         name: 'RtspStream',
         component: () => import('@/views/demo/rtsp-stream.vue'),
         meta: { title: 'RTSP 流', icon: 'Connection' }
       },
       {
-        path: 'demo/sample-videos',
+        path: 'demo/samples',
         name: 'SampleVideos',
         component: () => import('@/views/demo/sample-videos.vue'),
         meta: { title: '测试视频', icon: 'Film' }
@@ -136,7 +136,7 @@ const router = createRouter({
 })
 
 // 白名单(无需登录即可访问)
-const whiteList = ['/login', '/stream-test']
+const whiteList = ['/login', '/streamtest']
 
 router.beforeEach((to, _from, next) => {
   // 开始进度条