camera.ui3 0.0.34-alpha.6 → 0.0.35-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +1 -0
- package/LICENSE.md +22 -0
- package/README.md +1 -0
- package/dist/{server/bin/cameraui.d.ts → cameraui.d.ts} +24 -17
- package/dist/{server/bin/cameraui.js → cameraui.js} +195 -208
- package/dist/cameraui.js.map +1 -0
- package/dist/installer/base.js.map +1 -0
- package/dist/{server/bin/installer → installer}/darwin.d.ts +0 -8
- package/dist/{server/bin/installer → installer}/darwin.js +9 -49
- package/dist/installer/darwin.js.map +1 -0
- package/dist/{server/bin/installer → installer}/freebsd.js +3 -2
- package/dist/installer/freebsd.js.map +1 -0
- package/dist/{server/bin/installer → installer}/linux.d.ts +1 -1
- package/dist/{server/bin/installer → installer}/linux.js +9 -24
- package/dist/installer/linux.js.map +1 -0
- package/dist/{server/bin/installer → installer}/win32.js +4 -2
- package/dist/installer/win32.js.map +1 -0
- package/dist/{server/bin/logger.js → logger.js} +2 -2
- package/dist/logger.js.map +1 -0
- package/dist/manager.d.ts +26 -0
- package/dist/manager.js +203 -0
- package/dist/manager.js.map +1 -0
- package/nodemon.json +14 -0
- package/package.json +21 -88
- package/dist/interface/@babel.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@intlify.DXtFJcML.0.0.34-alpha.6.js +0 -15
- package/dist/interface/@mdi.C1UTQKuc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@react-dnd.CcwRs9xb.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@socket.io.Dkula2eQ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@tanstack.COISQUaa.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@turf.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@vee-validate.vQEQxxhx.0.0.34-alpha.6.js +0 -5
- package/dist/interface/@vue.2olsU3zX.0.0.34-alpha.6.js +0 -17
- package/dist/interface/@vueform.CPzo51Ad.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@vueuse.D9NHhWYc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@xterm.DqCFPTCA.0.0.34-alpha.6.js +0 -66
- package/dist/interface/Account.C8tdLL9c.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Adminpanel.CCt65nrb.0.0.34-alpha.6.js +0 -2
- package/dist/interface/Appearance.HvJsFiT3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Backup.CSkOoG27.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Camera.CpRZjMgc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Cameras.DjwMkoT7.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Camview.o4nbp_Qw.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Config.CQCi3KNu.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Console.Dkyww3wB.0.0.34-alpha.6.js +0 -4
- package/dist/interface/FirstSteps.Bmr0_gA-.0.0.34-alpha.6.js +0 -1
- package/dist/interface/NewCamera.Bs1_J7Ad.0.0.34-alpha.6.js +0 -448
- package/dist/interface/Plugin.C8Vz5xoF.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Plugins.CZL0KQFh.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Recordings.B6pZqLF3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Recordings.BEvZE5cV.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Settings.C997IgdZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/System.DuQ37voG.0.0.34-alpha.6.js +0 -4
- package/dist/interface/User.DlMcGeNz.0.0.34-alpha.6.js +0 -1
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js +0 -2
- package/dist/interface/VConsole.DNiPpzW6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/VPlayer.CUKkadJU.0.0.34-alpha.6.js +0 -4
- package/dist/interface/VPluginCard.B7M71ABH.0.0.34-alpha.6.js +0 -4
- package/dist/interface/ace-builds.DndaCQ18.0.0.34-alpha.6.js +0 -970
- package/dist/interface/apexcharts.6HWN1GNB.0.0.34-alpha.6.js +0 -795
- package/dist/interface/assets/@vueform.0.0.34-alpha.6.CroAHJs8.css +0 -1
- package/dist/interface/assets/@xterm.0.0.34-alpha.6.CFbL2ovg.css +0 -32
- package/dist/interface/assets/Account.0.0.34-alpha.6.J7oAjogS.css +0 -1
- package/dist/interface/assets/Adminpanel.0.0.34-alpha.6.a3t1v3MB.css +0 -1
- package/dist/interface/assets/Backup.0.0.34-alpha.6.CX0rT0QJ.css +0 -1
- package/dist/interface/assets/Camera.0.0.34-alpha.6.D1I-fW4q.css +0 -1
- package/dist/interface/assets/Cameras.0.0.34-alpha.6.Buf1Dgce.css +0 -1
- package/dist/interface/assets/Camview.0.0.34-alpha.6.B7Cja2ry.css +0 -1
- package/dist/interface/assets/Config.0.0.34-alpha.6.DNGo2krN.css +0 -1
- package/dist/interface/assets/Console.0.0.34-alpha.6.Bh8l9QnM.css +0 -1
- package/dist/interface/assets/FirstSteps.0.0.34-alpha.6.sPEcItZ6.css +0 -1
- package/dist/interface/assets/NewCamera.0.0.34-alpha.6.Cq8GzeJ7.css +0 -1
- package/dist/interface/assets/Plugin.0.0.34-alpha.6.DJbgaQc1.css +0 -1
- package/dist/interface/assets/Plugins.0.0.34-alpha.6.DXSoO9M1.css +0 -1
- package/dist/interface/assets/Settings.0.0.34-alpha.6.CVmui2kE.css +0 -1
- package/dist/interface/assets/User.0.0.34-alpha.6.BiGtIFqt.css +0 -1
- package/dist/interface/assets/VConsole.0.0.34-alpha.6.BCqKHpmJ.css +0 -1
- package/dist/interface/assets/VPlayer.0.0.34-alpha.6.DNtDNhfg.css +0 -1
- package/dist/interface/assets/VPluginCard.0.0.34-alpha.6.C8Lj6X-J.css +0 -1
- package/dist/interface/assets/highlight.0.0.34-alpha.6.Ch2EwETz.css +0 -1
- package/dist/interface/assets/logo-256.0.0.34-alpha.6.BCQk9H1-.png +0 -0
- package/dist/interface/assets/logo-512.0.0.34-alpha.6.DLKVOU2S.png +0 -0
- package/dist/interface/assets/logo.0.0.34-alpha.6.DmEiRk0z.png +0 -0
- package/dist/interface/assets/main.0.0.34-alpha.6.DNhh__S1.css +0 -1
- package/dist/interface/assets/mode-json.0.0.34-alpha.6.Br7xisR1.js +0 -275
- package/dist/interface/assets/mode-yaml.0.0.34-alpha.6.CIYL8U3d.js +0 -395
- package/dist/interface/assets/vue3-toastify.0.0.34-alpha.6.DHXAGmwn.css +0 -1
- package/dist/interface/assets/vuetify.0.0.34-alpha.6.CgGsw6iO.css +0 -5
- package/dist/interface/axios.C-n2IhIP.0.0.34-alpha.6.js +0 -6
- package/dist/interface/birpc.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/browserconfig.xml +0 -11
- package/dist/interface/compare-versions.DqEOhma6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js +0 -1
- package/dist/interface/dnd-core.DjhjiPK9.0.0.34-alpha.6.js +0 -1
- package/dist/interface/draggabilly.CzAcRWAL.0.0.34-alpha.6.js +0 -6
- package/dist/interface/engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js +0 -1
- package/dist/interface/entities.C20TfXL6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/ev-emitter.DdBIoR-C.0.0.34-alpha.6.js +0 -1
- package/dist/interface/fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.js +0 -1
- package/dist/interface/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dist/interface/get-size.D1dS-IaP.0.0.34-alpha.6.js +0 -5
- package/dist/interface/highlight.js.D0GppvQT.0.0.34-alpha.6.js +0 -2
- package/dist/interface/hookable.B8xFkYCm.0.0.34-alpha.6.js +0 -1
- package/dist/interface/index.html +0 -374
- package/dist/interface/linkify-it.BnwKCzGP.0.0.34-alpha.6.js +0 -1
- package/dist/interface/main.CjELdG9A.0.0.34-alpha.6.js +0 -5
- package/dist/interface/manifest.webmanifest +0 -1
- package/dist/interface/markdown-it.BmdsAkr5.0.0.34-alpha.6.js +0 -15
- package/dist/interface/mdurl.k9Sl0PQj.0.0.34-alpha.6.js +0 -2
- package/dist/interface/nprogress.CO0HPuzU.0.0.34-alpha.6.js +0 -2
- package/dist/interface/perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js +0 -1
- package/dist/interface/pinia.CBIup3aH.0.0.34-alpha.6.js +0 -5
- package/dist/interface/plugins.DkVCVMms.0.0.34-alpha.6.js +0 -1
- package/dist/interface/point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/punycode.js.Dj65hjkv.0.0.34-alpha.6.js +0 -1
- package/dist/interface/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-828x1792.png +0 -0
- package/dist/interface/pwa/apple-touch-icon-180x180.png +0 -0
- package/dist/interface/pwa/favicon-16.ico +0 -0
- package/dist/interface/pwa/favicon-32.ico +0 -0
- package/dist/interface/pwa/favicon-48.ico +0 -0
- package/dist/interface/pwa/favicon-64.ico +0 -0
- package/dist/interface/pwa/logo.svg +0 -1
- package/dist/interface/pwa/maskable-icon-1240x600.png +0 -0
- package/dist/interface/pwa/maskable-icon-512x512.png +0 -0
- package/dist/interface/pwa/maskable-icon-620x300.png +0 -0
- package/dist/interface/pwa/pwa-1024x1024.png +0 -0
- package/dist/interface/pwa/pwa-120x120.png +0 -0
- package/dist/interface/pwa/pwa-144x144.png +0 -0
- package/dist/interface/pwa/pwa-152x152.png +0 -0
- package/dist/interface/pwa/pwa-167x167.png +0 -0
- package/dist/interface/pwa/pwa-180x180.png +0 -0
- package/dist/interface/pwa/pwa-192x192.png +0 -0
- package/dist/interface/pwa/pwa-24x24.png +0 -0
- package/dist/interface/pwa/pwa-300x300.png +0 -0
- package/dist/interface/pwa/pwa-36x36.png +0 -0
- package/dist/interface/pwa/pwa-48x48.png +0 -0
- package/dist/interface/pwa/pwa-50x50.png +0 -0
- package/dist/interface/pwa/pwa-64x64.png +0 -0
- package/dist/interface/pwa/pwa-72x72.png +0 -0
- package/dist/interface/pwa/pwa-88x88.png +0 -0
- package/dist/interface/pwa/pwa-96x96.png +0 -0
- package/dist/interface/qrcode.BgXQ059Y.0.0.34-alpha.6.js +0 -8
- package/dist/interface/react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.6.js +0 -2
- package/dist/interface/react-dnd-touch-backend.CuSdTpqi.0.0.34-alpha.6.js +0 -1
- package/dist/interface/redux.CuxFRhX_.0.0.34-alpha.6.js +0 -1
- package/dist/interface/registerSW.js +0 -1
- package/dist/interface/robots.txt +0 -2
- package/dist/interface/rxjs.DKQuv6LI.0.0.34-alpha.6.js +0 -3
- package/dist/interface/socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js +0 -1
- package/dist/interface/socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js +0 -1
- package/dist/interface/sw.js +0 -1
- package/dist/interface/sweepline-intersections.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/system.DBHlJaL3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/tslib.9k7AwCpt.0.0.34-alpha.6.js +0 -1
- package/dist/interface/types.Cz9TaZAP.0.0.34-alpha.6.js +0 -1
- package/dist/interface/uc.micro.kMc2yuuw.0.0.34-alpha.6.js +0 -1
- package/dist/interface/unidragger.bJ3WxeD3.0.0.34-alpha.6.js +0 -5
- package/dist/interface/utils.mAKpSMLY.0.0.34-alpha.6.js +0 -1
- package/dist/interface/uuid.DvF23Exx.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vee-validate.CghN0yPF.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue-router.DbntwPAd.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-apexcharts.Ep6IiXnK.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-dnd._duUsn6W.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vuetify.dlIDGkOi.0.0.34-alpha.6.js +0 -5
- package/dist/interface/workbox-3e911b1d.js +0 -1
- package/dist/interface/zod.DnW1_kUe.0.0.34-alpha.6.js +0 -1
- package/dist/server/bin/cameraui.js.map +0 -1
- package/dist/server/bin/installer/base.js.map +0 -1
- package/dist/server/bin/installer/darwin.js.map +0 -1
- package/dist/server/bin/installer/freebsd.js.map +0 -1
- package/dist/server/bin/installer/linux.js.map +0 -1
- package/dist/server/bin/installer/win32.js.map +0 -1
- package/dist/server/bin/logger.js.map +0 -1
- package/dist/server/package.json +0 -139
- package/dist/server/requirements.txt +0 -14
- package/dist/server/src/api/controllers/api.controller.d.ts +0 -7
- package/dist/server/src/api/controllers/api.controller.js +0 -14
- package/dist/server/src/api/controllers/api.controller.js.map +0 -1
- package/dist/server/src/api/controllers/auth.controller.d.ts +0 -16
- package/dist/server/src/api/controllers/auth.controller.js +0 -233
- package/dist/server/src/api/controllers/auth.controller.js.map +0 -1
- package/dist/server/src/api/controllers/backup.controller.d.ts +0 -10
- package/dist/server/src/api/controllers/backup.controller.js +0 -52
- package/dist/server/src/api/controllers/backup.controller.js.map +0 -1
- package/dist/server/src/api/controllers/cameras.controller.d.ts +0 -38
- package/dist/server/src/api/controllers/cameras.controller.js +0 -632
- package/dist/server/src/api/controllers/cameras.controller.js.map +0 -1
- package/dist/server/src/api/controllers/config.controller.d.ts +0 -14
- package/dist/server/src/api/controllers/config.controller.js +0 -89
- package/dist/server/src/api/controllers/config.controller.js.map +0 -1
- package/dist/server/src/api/controllers/files.controller.d.ts +0 -8
- package/dist/server/src/api/controllers/files.controller.js +0 -28
- package/dist/server/src/api/controllers/files.controller.js.map +0 -1
- package/dist/server/src/api/controllers/frameWorkers.controller.d.ts +0 -11
- package/dist/server/src/api/controllers/frameWorkers.controller.js +0 -93
- package/dist/server/src/api/controllers/frameWorkers.controller.js.map +0 -1
- package/dist/server/src/api/controllers/plugins.controller.d.ts +0 -61
- package/dist/server/src/api/controllers/plugins.controller.js +0 -1353
- package/dist/server/src/api/controllers/plugins.controller.js.map +0 -1
- package/dist/server/src/api/controllers/system.controller.d.ts +0 -21
- package/dist/server/src/api/controllers/system.controller.js +0 -207
- package/dist/server/src/api/controllers/system.controller.js.map +0 -1
- package/dist/server/src/api/controllers/users.controller.d.ts +0 -28
- package/dist/server/src/api/controllers/users.controller.js +0 -509
- package/dist/server/src/api/controllers/users.controller.js.map +0 -1
- package/dist/server/src/api/database/checks.d.ts +0 -55
- package/dist/server/src/api/database/checks.js +0 -183
- package/dist/server/src/api/database/checks.js.map +0 -1
- package/dist/server/src/api/database/constants.d.ts +0 -8
- package/dist/server/src/api/database/constants.js +0 -9
- package/dist/server/src/api/database/constants.js.map +0 -1
- package/dist/server/src/api/database/index.d.ts +0 -31
- package/dist/server/src/api/database/index.js +0 -276
- package/dist/server/src/api/database/index.js.map +0 -1
- package/dist/server/src/api/database/migration.d.ts +0 -13
- package/dist/server/src/api/database/migration.js +0 -113
- package/dist/server/src/api/database/migration.js.map +0 -1
- package/dist/server/src/api/database/selfcheck.d.ts +0 -48
- package/dist/server/src/api/database/selfcheck.js +0 -397
- package/dist/server/src/api/database/selfcheck.js.map +0 -1
- package/dist/server/src/api/database/types.d.ts +0 -100
- package/dist/server/src/api/database/types.js +0 -2
- package/dist/server/src/api/database/types.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/application.d.ts +0 -9
- package/dist/server/src/api/go2rtc/api/application.js +0 -39
- package/dist/server/src/api/go2rtc/api/application.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/config.d.ts +0 -8
- package/dist/server/src/api/go2rtc/api/config.js +0 -44
- package/dist/server/src/api/go2rtc/api/config.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/index.d.ts +0 -1
- package/dist/server/src/api/go2rtc/api/index.js +0 -29
- package/dist/server/src/api/go2rtc/api/index.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/snapshot.d.ts +0 -8
- package/dist/server/src/api/go2rtc/api/snapshot.js +0 -34
- package/dist/server/src/api/go2rtc/api/snapshot.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/streams.d.ts +0 -11
- package/dist/server/src/api/go2rtc/api/streams.js +0 -59
- package/dist/server/src/api/go2rtc/api/streams.js.map +0 -1
- package/dist/server/src/api/go2rtc/index.d.ts +0 -14
- package/dist/server/src/api/go2rtc/index.js +0 -30
- package/dist/server/src/api/go2rtc/index.js.map +0 -1
- package/dist/server/src/api/go2rtc/queue.d.ts +0 -10
- package/dist/server/src/api/go2rtc/queue.js +0 -38
- package/dist/server/src/api/go2rtc/queue.js.map +0 -1
- package/dist/server/src/api/go2rtc/types.d.ts +0 -92
- package/dist/server/src/api/go2rtc/types.js +0 -2
- package/dist/server/src/api/go2rtc/types.js.map +0 -1
- package/dist/server/src/api/index.d.ts +0 -20
- package/dist/server/src/api/index.js +0 -213
- package/dist/server/src/api/index.js.map +0 -1
- package/dist/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
- package/dist/server/src/api/middlewares/authPermission.middleware.js +0 -28
- package/dist/server/src/api/middlewares/authPermission.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
- package/dist/server/src/api/middlewares/authValidation.middleware.js +0 -129
- package/dist/server/src/api/middlewares/authValidation.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
- package/dist/server/src/api/middlewares/pagination.middleware.js +0 -65
- package/dist/server/src/api/middlewares/pagination.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/socketAuth.middleware.d.ts +0 -41
- package/dist/server/src/api/middlewares/socketAuth.middleware.js +0 -81
- package/dist/server/src/api/middlewares/socketAuth.middleware.js.map +0 -1
- package/dist/server/src/api/plugins/header.plugin.d.ts +0 -2
- package/dist/server/src/api/plugins/header.plugin.js +0 -13
- package/dist/server/src/api/plugins/header.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/logger.plugin.d.ts +0 -7
- package/dist/server/src/api/plugins/logger.plugin.js +0 -29
- package/dist/server/src/api/plugins/logger.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/socket.plugin.d.ts +0 -11
- package/dist/server/src/api/plugins/socket.plugin.js +0 -12
- package/dist/server/src/api/plugins/socket.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/system.plugin.d.ts +0 -18
- package/dist/server/src/api/plugins/system.plugin.js +0 -22
- package/dist/server/src/api/plugins/system.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/useragent.plugin.d.ts +0 -8
- package/dist/server/src/api/plugins/useragent.plugin.js +0 -10
- package/dist/server/src/api/plugins/useragent.plugin.js.map +0 -1
- package/dist/server/src/api/routes/api.routes.d.ts +0 -2
- package/dist/server/src/api/routes/api.routes.js +0 -7
- package/dist/server/src/api/routes/api.routes.js.map +0 -1
- package/dist/server/src/api/routes/auth.routes.d.ts +0 -2
- package/dist/server/src/api/routes/auth.routes.js +0 -47
- package/dist/server/src/api/routes/auth.routes.js.map +0 -1
- package/dist/server/src/api/routes/backup.routes.d.ts +0 -2
- package/dist/server/src/api/routes/backup.routes.js +0 -23
- package/dist/server/src/api/routes/backup.routes.js.map +0 -1
- package/dist/server/src/api/routes/cameras.routes.d.ts +0 -2
- package/dist/server/src/api/routes/cameras.routes.js +0 -217
- package/dist/server/src/api/routes/cameras.routes.js.map +0 -1
- package/dist/server/src/api/routes/config.routes.d.ts +0 -2
- package/dist/server/src/api/routes/config.routes.js +0 -55
- package/dist/server/src/api/routes/config.routes.js.map +0 -1
- package/dist/server/src/api/routes/files.routes.d.ts +0 -2
- package/dist/server/src/api/routes/files.routes.js +0 -12
- package/dist/server/src/api/routes/files.routes.js.map +0 -1
- package/dist/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
- package/dist/server/src/api/routes/frameWorkers.routes.js +0 -33
- package/dist/server/src/api/routes/frameWorkers.routes.js.map +0 -1
- package/dist/server/src/api/routes/index.d.ts +0 -6
- package/dist/server/src/api/routes/index.js +0 -32
- package/dist/server/src/api/routes/index.js.map +0 -1
- package/dist/server/src/api/routes/plugins.routes.d.ts +0 -2
- package/dist/server/src/api/routes/plugins.routes.js +0 -363
- package/dist/server/src/api/routes/plugins.routes.js.map +0 -1
- package/dist/server/src/api/routes/system.routes.d.ts +0 -2
- package/dist/server/src/api/routes/system.routes.js +0 -83
- package/dist/server/src/api/routes/system.routes.js.map +0 -1
- package/dist/server/src/api/routes/users.routes.d.ts +0 -2
- package/dist/server/src/api/routes/users.routes.js +0 -139
- package/dist/server/src/api/routes/users.routes.js.map +0 -1
- package/dist/server/src/api/schemas/backup.schema.d.ts +0 -118
- package/dist/server/src/api/schemas/backup.schema.js +0 -75
- package/dist/server/src/api/schemas/backup.schema.js.map +0 -1
- package/dist/server/src/api/schemas/cameras.schema.d.ts +0 -980
- package/dist/server/src/api/schemas/cameras.schema.js +0 -333
- package/dist/server/src/api/schemas/cameras.schema.js.map +0 -1
- package/dist/server/src/api/schemas/config.schema.d.ts +0 -114
- package/dist/server/src/api/schemas/config.schema.js +0 -42
- package/dist/server/src/api/schemas/config.schema.js.map +0 -1
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +0 -703
- package/dist/server/src/api/schemas/go2rtc.schema.js +0 -180
- package/dist/server/src/api/schemas/go2rtc.schema.js.map +0 -1
- package/dist/server/src/api/schemas/plugins.schema.d.ts +0 -72
- package/dist/server/src/api/schemas/plugins.schema.js +0 -103
- package/dist/server/src/api/schemas/plugins.schema.js.map +0 -1
- package/dist/server/src/api/schemas/system.schema.d.ts +0 -9
- package/dist/server/src/api/schemas/system.schema.js +0 -8
- package/dist/server/src/api/schemas/system.schema.js.map +0 -1
- package/dist/server/src/api/schemas/users.schema.d.ts +0 -1013
- package/dist/server/src/api/schemas/users.schema.js +0 -157
- package/dist/server/src/api/schemas/users.schema.js.map +0 -1
- package/dist/server/src/api/services/auth.service.d.ts +0 -24
- package/dist/server/src/api/services/auth.service.js +0 -191
- package/dist/server/src/api/services/auth.service.js.map +0 -1
- package/dist/server/src/api/services/backup.service.d.ts +0 -11
- package/dist/server/src/api/services/backup.service.js +0 -109
- package/dist/server/src/api/services/backup.service.js.map +0 -1
- package/dist/server/src/api/services/cameras.service.d.ts +0 -57
- package/dist/server/src/api/services/cameras.service.js +0 -790
- package/dist/server/src/api/services/cameras.service.js.map +0 -1
- package/dist/server/src/api/services/plugins.service.d.ts +0 -26
- package/dist/server/src/api/services/plugins.service.js +0 -148
- package/dist/server/src/api/services/plugins.service.js.map +0 -1
- package/dist/server/src/api/services/system.service.d.ts +0 -7
- package/dist/server/src/api/services/system.service.js +0 -23
- package/dist/server/src/api/services/system.service.js.map +0 -1
- package/dist/server/src/api/services/users.service.d.ts +0 -25
- package/dist/server/src/api/services/users.service.js +0 -198
- package/dist/server/src/api/services/users.service.js.map +0 -1
- package/dist/server/src/api/types/index.d.ts +0 -592
- package/dist/server/src/api/types/index.js +0 -9
- package/dist/server/src/api/types/index.js.map +0 -1
- package/dist/server/src/api/utils/cameraSource.d.ts +0 -2
- package/dist/server/src/api/utils/cameraSource.js +0 -34
- package/dist/server/src/api/utils/cameraSource.js.map +0 -1
- package/dist/server/src/api/utils/cert.d.ts +0 -11
- package/dist/server/src/api/utils/cert.js +0 -204
- package/dist/server/src/api/utils/cert.js.map +0 -1
- package/dist/server/src/api/utils/constants.d.ts +0 -13
- package/dist/server/src/api/utils/constants.js +0 -14
- package/dist/server/src/api/utils/constants.js.map +0 -1
- package/dist/server/src/api/utils/fetch.d.ts +0 -2
- package/dist/server/src/api/utils/fetch.js +0 -24
- package/dist/server/src/api/utils/fetch.js.map +0 -1
- package/dist/server/src/api/utils/moveFiles.d.ts +0 -1
- package/dist/server/src/api/utils/moveFiles.js +0 -39
- package/dist/server/src/api/utils/moveFiles.js.map +0 -1
- package/dist/server/src/api/utils/parse.d.ts +0 -2
- package/dist/server/src/api/utils/parse.js +0 -12
- package/dist/server/src/api/utils/parse.js.map +0 -1
- package/dist/server/src/api/websocket/index.d.ts +0 -16
- package/dist/server/src/api/websocket/index.js +0 -76
- package/dist/server/src/api/websocket/index.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/logs.d.ts +0 -17
- package/dist/server/src/api/websocket/nsp/logs.js +0 -151
- package/dist/server/src/api/websocket/nsp/logs.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/main.d.ts +0 -7
- package/dist/server/src/api/websocket/nsp/main.js +0 -8
- package/dist/server/src/api/websocket/nsp/main.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/metrics.d.ts +0 -24
- package/dist/server/src/api/websocket/nsp/metrics.js +0 -169
- package/dist/server/src/api/websocket/nsp/metrics.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/notifications.d.ts +0 -12
- package/dist/server/src/api/websocket/nsp/notifications.js +0 -30
- package/dist/server/src/api/websocket/nsp/notifications.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/plugins.d.ts +0 -13
- package/dist/server/src/api/websocket/nsp/plugins.js +0 -28
- package/dist/server/src/api/websocket/nsp/plugins.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/server.d.ts +0 -26
- package/dist/server/src/api/websocket/nsp/server.js +0 -171
- package/dist/server/src/api/websocket/nsp/server.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/status.d.ts +0 -15
- package/dist/server/src/api/websocket/nsp/status.js +0 -55
- package/dist/server/src/api/websocket/nsp/status.js.map +0 -1
- package/dist/server/src/api/websocket/types.d.ts +0 -41
- package/dist/server/src/api/websocket/types.js +0 -2
- package/dist/server/src/api/websocket/types.js.map +0 -1
- package/dist/server/src/api.d.ts +0 -28
- package/dist/server/src/api.js +0 -109
- package/dist/server/src/api.js.map +0 -1
- package/dist/server/src/camera/controller.d.ts +0 -62
- package/dist/server/src/camera/controller.js +0 -537
- package/dist/server/src/camera/controller.js.map +0 -1
- package/dist/server/src/camera/frameWorker.d.ts +0 -42
- package/dist/server/src/camera/frameWorker.js +0 -305
- package/dist/server/src/camera/frameWorker.js.map +0 -1
- package/dist/server/src/camera/types.d.ts +0 -11
- package/dist/server/src/camera/types.js +0 -2
- package/dist/server/src/camera/types.js.map +0 -1
- package/dist/server/src/go2rtc/index.d.ts +0 -25
- package/dist/server/src/go2rtc/index.js +0 -233
- package/dist/server/src/go2rtc/index.js.map +0 -1
- package/dist/server/src/go2rtc/types.d.ts +0 -14
- package/dist/server/src/go2rtc/types.js +0 -73
- package/dist/server/src/go2rtc/types.js.map +0 -1
- package/dist/server/src/main.d.ts +0 -2
- package/dist/server/src/main.js +0 -112
- package/dist/server/src/main.js.map +0 -1
- package/dist/server/src/nats/index.d.ts +0 -40
- package/dist/server/src/nats/index.js +0 -164
- package/dist/server/src/nats/index.js.map +0 -1
- package/dist/server/src/nats/proxy/cameraDevice.d.ts +0 -22
- package/dist/server/src/nats/proxy/cameraDevice.js +0 -254
- package/dist/server/src/nats/proxy/cameraDevice.js.map +0 -1
- package/dist/server/src/nats/proxy/coreManager.d.ts +0 -14
- package/dist/server/src/nats/proxy/coreManager.js +0 -68
- package/dist/server/src/nats/proxy/coreManager.js.map +0 -1
- package/dist/server/src/nats/proxy/deviceManager.d.ts +0 -14
- package/dist/server/src/nats/proxy/deviceManager.js +0 -101
- package/dist/server/src/nats/proxy/deviceManager.js.map +0 -1
- package/dist/server/src/nats/server.d.ts +0 -38
- package/dist/server/src/nats/server.js +0 -328
- package/dist/server/src/nats/server.js.map +0 -1
- package/dist/server/src/nats/types.d.ts +0 -18
- package/dist/server/src/nats/types.js +0 -2
- package/dist/server/src/nats/types.js.map +0 -1
- package/dist/server/src/nats/utils.d.ts +0 -2
- package/dist/server/src/nats/utils.js +0 -12
- package/dist/server/src/nats/utils.js.map +0 -1
- package/dist/server/src/nats/websocket.d.ts +0 -27
- package/dist/server/src/nats/websocket.js +0 -218
- package/dist/server/src/nats/websocket.js.map +0 -1
- package/dist/server/src/plugins/index.d.ts +0 -29
- package/dist/server/src/plugins/index.js +0 -243
- package/dist/server/src/plugins/index.js.map +0 -1
- package/dist/server/src/plugins/plugin.d.ts +0 -36
- package/dist/server/src/plugins/plugin.js +0 -193
- package/dist/server/src/plugins/plugin.js.map +0 -1
- package/dist/server/src/plugins/types.d.ts +0 -7
- package/dist/server/src/plugins/types.js +0 -3
- package/dist/server/src/plugins/types.js.map +0 -1
- package/dist/server/src/plugins/worker.d.ts +0 -55
- package/dist/server/src/plugins/worker.js +0 -444
- package/dist/server/src/plugins/worker.js.map +0 -1
- package/dist/server/src/services/config/constants.d.ts +0 -7
- package/dist/server/src/services/config/constants.js +0 -67
- package/dist/server/src/services/config/constants.js.map +0 -1
- package/dist/server/src/services/config/index.d.ts +0 -66
- package/dist/server/src/services/config/index.js +0 -462
- package/dist/server/src/services/config/index.js.map +0 -1
- package/dist/server/src/services/config/types.d.ts +0 -157
- package/dist/server/src/services/config/types.js +0 -11
- package/dist/server/src/services/config/types.js.map +0 -1
- package/dist/server/src/services/logger/index.d.ts +0 -16
- package/dist/server/src/services/logger/index.js +0 -67
- package/dist/server/src/services/logger/index.js.map +0 -1
- package/dist/server/src/types.d.ts +0 -7
- package/dist/server/src/types.js +0 -2
- package/dist/server/src/types.js.map +0 -1
- package/localdeps.txt +0 -6
- package/upgrade-server.sh +0 -206
- /package/dist/{server/bin/installer → installer}/base.d.ts +0 -0
- /package/dist/{server/bin/installer → installer}/base.js +0 -0
- /package/dist/{server/bin/installer → installer}/freebsd.d.ts +0 -0
- /package/dist/{server/bin/installer → installer}/win32.d.ts +0 -0
- /package/dist/{server/bin/logger.d.ts → logger.d.ts} +0 -0
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
import{C as xe,c as ke,_ as Se}from"./VPlayer.CUKkadJU.0.0.34-alpha.6.js";import{f as Te,w as Pe,d as Re}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{G as Ae,r as v,D as Ie,c as Ce,w as He,b as d,d as k,R as n,ab as a,u as e,i as G,g as Y,f as u,a9 as l,a7 as h,m as H,Q as K,ad as J,aa as P,p as _,k as M,ac as Ve}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import{H as A,t as je,y as Ee,j as Oe,p as Ge}from"./highlight.js.D0GppvQT.0.0.34-alpha.6.js";import{e as q,s as Me,D as Ue,L as $e,W as X,X as Le,Y as We}from"./@mdi.C1UTQKuc.0.0.34-alpha.6.js";import{i as De}from"./@vueuse.D9NHhWYc.0.0.34-alpha.6.js";import{M as Be}from"./markdown-it.BmdsAkr5.0.0.34-alpha.6.js";import{F as I,a as ze}from"./vee-validate.CghN0yPF.0.0.34-alpha.6.js";import{s as Fe}from"./utils.mAKpSMLY.0.0.34-alpha.6.js";import{a as Ne}from"./vue-router.DbntwPAd.0.0.34-alpha.6.js";import{b as S,e as x,J as Q,K as Z,L as ee,M as te,c as oe,y as L,m as Ye,N as Ke,V as ae}from"./vuetify.dlIDGkOi.0.0.34-alpha.6.js";import"./qrcode.BgXQ059Y.0.0.34-alpha.6.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js";import"./zod.DnW1_kUe.0.0.34-alpha.6.js";import"./pinia.CBIup3aH.0.0.34-alpha.6.js";import"./@vee-validate.vQEQxxhx.0.0.34-alpha.6.js";import"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import"./plugins.DkVCVMms.0.0.34-alpha.6.js";import"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import"./draggabilly.CzAcRWAL.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./get-size.D1dS-IaP.0.0.34-alpha.6.js";import"./unidragger.bJ3WxeD3.0.0.34-alpha.6.js";import"./ev-emitter.DdBIoR-C.0.0.34-alpha.6.js";import"./VConsole.DNiPpzW6.0.0.34-alpha.6.js";import"./vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js";import"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import"./axios.C-n2IhIP.0.0.34-alpha.6.js";import"./uuid.DvF23Exx.0.0.34-alpha.6.js";import"./socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js";import"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js";import"./rxjs.DKQuv6LI.0.0.34-alpha.6.js";import"./tslib.9k7AwCpt.0.0.34-alpha.6.js";import"./vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";import"./nprogress.CO0HPuzU.0.0.34-alpha.6.js";import"./mdurl.k9Sl0PQj.0.0.34-alpha.6.js";import"./uc.micro.kMc2yuuw.0.0.34-alpha.6.js";import"./entities.C20TfXL6.0.0.34-alpha.6.js";import"./linkify-it.BnwKCzGP.0.0.34-alpha.6.js";import"./punycode.js.Dj65hjkv.0.0.34-alpha.6.js";const ne=["bubble://","dvrip://","echo:","exec:","expr:","ffmpeg:","gopro://","hass:","homekit://","http://","https://","httpx://","isapi://","ivideon:","kasa://","nest:","onvif://","roborock://","rtmp://","rtsp://","rtspx://","tapo://","tcp://","webrtc:","webtorrent:"],Je=["#backchannel=0","#header=","#media=audio","#media=video","#timeout=10","#timeout=20","#timeout=30","#transport="],se=["#audio=aac","#audio=aac/16000","#audio=mp3","#audio=opus","#audio=pcm","#audio=pcm/8000","#audio=pcm/16000","#audio=pcm/48000","#audio=pcma","#audio=pcma/8000","#audio=pcma/16000","#audio=pcma/48000","#audio=pcml","#audio=pcml/8000","#audio=pcml/44100","#audio=pcmu","#audio=pcmu/8000","#audio=pcmu/16000","#audio=pcmu/48000","#drawtext","#hardware","#hardware=cuda","#hardware=dxva2","#hardware=rkmpp","#hardware=v4l2m2m","#hardware=vaapi","#hardware=videotoolbox","#height=","#raw=","#rotate=-90","#rotate=90","#rotate=180","#rotate=270","#video=copy","#video=h264","#video=h265","#video=mjpeg","#width="],qe=["client_id=","client_private=","device_id=","device_public="],Xe=["#header="],Qe=["client_id=","client_secret=","refresh_token=","project_id=","device_id="],Ze=["#client_id=","#format=openipc","#format=wyze","#format=kinesis","#ice_servers="],et="#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/AlexxIT/go2rtc#source-bubble)_\n",tt="#### Source: DVRIP\n\nOther names: DVR-IP, NetSurveillance, Sofia protocol (NETsurveillance ActiveX plugin XMeye SDK).\n\n- you can skip `username`, `password`, `port`, `channel` and `subtype` if they are default\n- setup separate streams for different channels\n- use `subtype=0` for Main stream, and `subtype=1` for Extra1 stream\n- only the TCP protocol is supported\n\n```yaml\nstreams:\n only_stream: dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n only_tts: dvrip://username:password@192.168.1.123:34567?backchannel=1\n two_way_audio:\n - dvrip://username:password@192.168.1.123:34567?channel=0&subtype=0\n - dvrip://username:password@192.168.1.123:34567?backchannel=1\n```\n\n_Source: [Go2Rtc DVRIP](https://github.com/AlexxIT/go2rtc#source-dvrip)_\n",ot=`#### Source: Echo
|
|
2
|
-
|
|
3
|
-
Some sources may have a dynamic link. And you will need to get it using a bash or python script. Your script should echo a link to the source. RTSP, FFmpeg or any of the [supported sources](https://github.com/AlexxIT/go2rtc#module-streams).
|
|
4
|
-
|
|
5
|
-
**Docker** and **Hass Add-on** users has preinstalled \`python3\`, \`curl\`, \`jq\`.
|
|
6
|
-
Check examples in [wiki](https://github.com/AlexxIT/go2rtc/wiki/Source-Echo-examples).
|
|
7
|
-
|
|
8
|
-
\`\`\`yaml
|
|
9
|
-
streams:
|
|
10
|
-
apple_hls: echo:python3 hls.py https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html
|
|
11
|
-
\`\`\`
|
|
12
|
-
|
|
13
|
-
_Source: [Go2Rtc Echo](https://github.com/AlexxIT/go2rtc#source-echo)_
|
|
14
|
-
`,at=`#### Source: Exec
|
|
15
|
-
|
|
16
|
-
Exec source can run any external application and expect data from it. Two transports are supported - **pipe** and **RTSP**.
|
|
17
|
-
|
|
18
|
-
If you want to use **RTSP** transport - the command must contain the \`{output}\` argument in any place. On launch, it will be replaced by the local address of the RTSP server.
|
|
19
|
-
|
|
20
|
-
**pipe** reads data from app stdout in different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**.
|
|
21
|
-
|
|
22
|
-
The source can be used with:
|
|
23
|
-
|
|
24
|
-
- [FFmpeg](https://ffmpeg.org/) - go2rtc ffmpeg source just a shortcut to exec source
|
|
25
|
-
- [GStreamer](https://gstreamer.freedesktop.org/)
|
|
26
|
-
- [Raspberry Pi Cameras](https://www.raspberrypi.com/documentation/computers/camera_software.html)
|
|
27
|
-
- any your own software
|
|
28
|
-
|
|
29
|
-
\`\`\`yaml
|
|
30
|
-
streams:
|
|
31
|
-
stream: exec:ffmpeg -re -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {output}
|
|
32
|
-
picam_h264: exec:libcamera-vid -t 0 --inline -o -
|
|
33
|
-
picam_mjpeg: exec:libcamera-vid -t 0 --codec mjpeg -o -
|
|
34
|
-
\`\`\`
|
|
35
|
-
|
|
36
|
-
_Source: [Go2Rtc Exec](https://github.com/AlexxIT/go2rtc#source-exec)_
|
|
37
|
-
`,nt=`#### Source: Expr
|
|
38
|
-
|
|
39
|
-
[Expr](https://github.com/antonmedv/expr) - expression language and expression evaluation for Go.
|
|
40
|
-
|
|
41
|
-
- [language definition](https://expr.medv.io/docs/Language-Definition) - takes best from JS, Python, Jinja2 syntax
|
|
42
|
-
- your expression should return a link of any supported source
|
|
43
|
-
- expression supports multiple operation, but:
|
|
44
|
-
- all operations must be separated by a semicolon
|
|
45
|
-
- all operations, except the last one, must declare a new variable (\`let s = "abc";\`)
|
|
46
|
-
- the last operation should return a string
|
|
47
|
-
- go2rtc supports additional functions:
|
|
48
|
-
- \`fetch\` - JS-like HTTP requests
|
|
49
|
-
- \`match\` - JS-like RegExp queries
|
|
50
|
-
|
|
51
|
-
## Examples
|
|
52
|
-
|
|
53
|
-
**Two way audio for Dahua VTO**
|
|
54
|
-
|
|
55
|
-
\`\`\`yaml
|
|
56
|
-
streams:
|
|
57
|
-
dahua_vto: |
|
|
58
|
-
expr: let host = "admin:password@192.168.1.123";
|
|
59
|
-
fetch("http://"+host+"/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Audio.Compression=G.711A&Encode[0].MainFormat[0].Audio.Frequency=8000").ok
|
|
60
|
-
? "rtsp://"+host+"/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" : ""
|
|
61
|
-
\`\`\`
|
|
62
|
-
|
|
63
|
-
**dom.ru**
|
|
64
|
-
|
|
65
|
-
You can get credentials via:
|
|
66
|
-
|
|
67
|
-
- https://github.com/alexmorbo/domru (file \`/share/domru/accounts\`)
|
|
68
|
-
- https://github.com/ad/domru
|
|
69
|
-
|
|
70
|
-
\`\`\`yaml
|
|
71
|
-
streams:
|
|
72
|
-
dom_ru: |
|
|
73
|
-
expr: let camera = "99999999"; let token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; let operator = 99;
|
|
74
|
-
fetch("https://myhome.novotelecom.ru/rest/v1/forpost/cameras/"+camera+"/video", {
|
|
75
|
-
headers: {Authorization: "Bearer "+token, Operator: operator}
|
|
76
|
-
}).json().data.URL
|
|
77
|
-
\`\`\`
|
|
78
|
-
|
|
79
|
-
**Parse HLS files from Apple**
|
|
80
|
-
|
|
81
|
-
Same example in two languages - python and expr.
|
|
82
|
-
|
|
83
|
-
\`\`\`yaml
|
|
84
|
-
streams:
|
|
85
|
-
example_python: |
|
|
86
|
-
echo:python -c 'from urllib.request import urlopen; import re
|
|
87
|
-
|
|
88
|
-
# url1 = "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8"
|
|
89
|
-
html1 = urlopen("https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html").read().decode("utf-8")
|
|
90
|
-
url1 = re.search(r"https.+?m3u8", html1)[0]
|
|
91
|
-
|
|
92
|
-
# url2 = "gear1/prog_index.m3u8"
|
|
93
|
-
html2 = urlopen(url1).read().decode("utf-8")
|
|
94
|
-
url2 = re.search(r"^[a-z0-1/_]+\\.m3u8$", html2, flags=re.MULTILINE)[0]
|
|
95
|
-
|
|
96
|
-
# url3 = "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear1/prog_index.m3u8"
|
|
97
|
-
url3 = url1[:url1.rindex("/")+1] + url2
|
|
98
|
-
|
|
99
|
-
print("ffmpeg:" + url3 + "#video=copy")'
|
|
100
|
-
|
|
101
|
-
example_expr: |
|
|
102
|
-
expr:
|
|
103
|
-
|
|
104
|
-
let html1 = fetch("https://developer.apple.com/streaming/examples/basic-stream-osx-ios5.html").text;
|
|
105
|
-
let url1 = match(html1, "https.+?m3u8")[0];
|
|
106
|
-
|
|
107
|
-
let html2 = fetch(url1).text;
|
|
108
|
-
let url2 = match(html2, "^[a-z0-1/_]+\\\\.m3u8$", "m")[0];
|
|
109
|
-
|
|
110
|
-
let url3 = url1[:lastIndexOf(url1, "/")+1] + url2;
|
|
111
|
-
|
|
112
|
-
"ffmpeg:" + url3 + "#video=copy"
|
|
113
|
-
\`\`\`
|
|
114
|
-
|
|
115
|
-
## Comparsion
|
|
116
|
-
|
|
117
|
-
| expr | python | js |
|
|
118
|
-
| ---------------------------- | -------------------------- | ------------------------------ |
|
|
119
|
-
| let x = 1; | x = 1 | let x = 1 |
|
|
120
|
-
| {a: 1, b: 2} | {"a": 1, "b": 2} | {a: 1, b: 2} |
|
|
121
|
-
| let r = fetch(url, {method}) | r = request(method, url) | r = await fetch(url, {method}) |
|
|
122
|
-
| r.ok | r.ok | r.ok |
|
|
123
|
-
| r.status | r.status_code | r.status |
|
|
124
|
-
| r.text | r.text | await r.text() |
|
|
125
|
-
| r.json() | r.json() | await r.json() |
|
|
126
|
-
| r.headers | r.headers | r.headers |
|
|
127
|
-
| let m = match(text, "abc") | m = re.search("abc", text) | let m = text.match(/abc/) |
|
|
128
|
-
`,st="#### Source: FFmpeg\n\nYou can get any stream or file or device via FFmpeg and push it to go2rtc. The app will automatically start FFmpeg with the proper arguments when someone starts watching the stream.\n\n- FFmpeg preistalled for **Docker** and **Hass Add-on** users\n- **Hass Add-on** users can target files from [/media](https://www.home-assistant.io/more-info/local-media/setup-media/) folder\n\nFormat: `ffmpeg:{input}#{param1}#{param2}#{param3}`. Examples:\n\n```yaml\nstreams:\n # [FILE] all tracks will be copied without transcoding codecs\n file1: ffmpeg:/media/BigBuckBunny.mp4\n\n # [FILE] video will be transcoded to H264, audio will be skipped\n file2: ffmpeg:/media/BigBuckBunny.mp4#video=h264\n\n # [FILE] video will be copied, audio will be transcoded to pcmu\n file3: ffmpeg:/media/BigBuckBunny.mp4#video=copy#audio=pcmu\n\n # [HLS] video will be copied, audio will be skipped\n hls: ffmpeg:https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8#video=copy\n\n # [MJPEG] video will be transcoded to H264\n mjpeg: ffmpeg:http://185.97.122.128/cgi-bin/faststream.jpg#video=h264\n\n # [RTSP] video with rotation, should be transcoded, so select H264\n rotate: ffmpeg:rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90\n```\n\nAll trascoding formats has [built-in templates](https://github.com/AlexxIT/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go): `h264`, `h265`, `opus`, `pcmu`, `pcmu/16000`, `pcmu/48000`, `pcma`, `pcma/16000`, `pcma/48000`, `aac`, `aac/16000`.\n\nBut you can override them via YAML config. You can also add your own formats to config and use them with source params.\n\n```yaml\nffmpeg:\n bin: ffmpeg # path to ffmpeg binary\n h264: '-codec:v libx264 -g:v 30 -preset:v superfast -tune:v zerolatency -profile:v main -level:v 4.1'\n mycodec: '-any args that supported by ffmpeg...'\n myinput: '-fflags nobuffer -flags low_delay -timeout 5000000 -i {input}'\n myraw: '-ss 00:00:20'\n```\n\n- You can use go2rtc stream name as ffmpeg input (ex. `ffmpeg:camera1#video=h264`)\n- You can use `video` and `audio` params multiple times (ex. `#video=copy#audio=copy#audio=pcmu`)\n- You can use `rotate` param with `90`, `180`, `270` or `-90` values, important with transcoding (ex. `#video=h264#rotate=90`)\n- You can use `width` and/or `height` params, important with transcoding (ex. `#video=h264#width=1280`)\n- You can use `drawtext` to add a timestamp (ex. `drawtext=x=2:y=2:fontsize=12:fontcolor=white:box=1:boxcolor=black`)\n - This will greatly increase the CPU of the server, even with hardware acceleration\n- You can use `raw` param for any additional FFmpeg arguments (ex. `#raw=-vf transpose=1`)\n- You can use `input` param to override default input template (ex. `#input=rtsp/udp` will change RTSP transport from TCP to UDP+TCP)\n - You can use raw input value (ex. `#input=-timeout 5000000 -i {input}`)\n - You can add your own input templates\n\nRead more about [hardware acceleration](https://github.com/AlexxIT/go2rtc/wiki/Hardware-acceleration).\n\n**PS.** It is recommended to check the available hardware in the WebUI add page.\n\n<hr>\n\n#### Source: FFmpeg Device\n\nYou can get video from any USB-camera or Webcam as RTSP or WebRTC stream. This is part of FFmpeg integration.\n\n- check available devices in Web interface\n- `video_size` and `framerate` must be supported by your camera!\n- for Linux supported only video for now\n- for macOS you can stream Facetime camera or whole Desktop!\n- for macOS important to set right framerate\n\nFormat: `ffmpeg:device?{input-params}#{param1}#{param2}#{param3}`\n\n```yaml\nstreams:\n linux_usbcam: ffmpeg:device?video=0&video_size=1280x720#video=h264\n windows_webcam: ffmpeg:device?video=0#video=h264\n macos_facetime: ffmpeg:device?video=0&audio=1&video_size=1280x720&framerate=30#video=h264#audio=pcma\n```\n\n**PS.** It is recommended to check the available devices in the WebUI add page.\n\n_Source: [Go2Rtc FFmpeg](https://github.com/AlexxIT/go2rtc#source-ffmpeg) & [Go2Rtc FFmpeg Device](https://github.com/AlexxIT/go2rtc#source-ffmpeg-device)_\n",rt=`#### Source: GoPro
|
|
129
|
-
|
|
130
|
-
Supported models: HERO9, HERO10, HERO11, HERO12.
|
|
131
|
-
Supported OS: Linux, Mac, Windows, [HassOS](https://www.home-assistant.io/installation/)
|
|
132
|
-
|
|
133
|
-
The other camera models have different APIs. I will try to add them in the next versions.
|
|
134
|
-
|
|
135
|
-
## Config
|
|
136
|
-
|
|
137
|
-
- USB-connected cameras create a new network interface in the system
|
|
138
|
-
- Linux users do not need to install anything
|
|
139
|
-
- Windows users should install the [network driver](https://community.gopro.com/s/article/GoPro-Webcam)
|
|
140
|
-
- if the camera is detected but the stream does not start - you need to disable firewall
|
|
141
|
-
|
|
142
|
-
1. Discover camera address: WebUI > Add > GoPro
|
|
143
|
-
2. Add camera to config
|
|
144
|
-
|
|
145
|
-
\`\`\`yaml
|
|
146
|
-
streams:
|
|
147
|
-
hero12: gopro://172.20.100.51
|
|
148
|
-
\`\`\`
|
|
149
|
-
|
|
150
|
-
## Useful links
|
|
151
|
-
|
|
152
|
-
- https://gopro.github.io/OpenGoPro/
|
|
153
|
-
|
|
154
|
-
_Source: [Go2Rtc Hass](https://github.com/AlexxIT/go2rtc#source-hass)_
|
|
155
|
-
`,it=`#### Source: Hass
|
|
156
|
-
|
|
157
|
-
Support import camera links from [Home Assistant](https://www.home-assistant.io/) config files:
|
|
158
|
-
|
|
159
|
-
- [Generic Camera](https://www.home-assistant.io/integrations/generic/), setup via GUI
|
|
160
|
-
- [HomeKit Camera](https://www.home-assistant.io/integrations/homekit_controller/)
|
|
161
|
-
- [ONVIF](https://www.home-assistant.io/integrations/onvif/)
|
|
162
|
-
- [Roborock](https://github.com/humbertogontijo/homeassistant-roborock) vacuums with camera
|
|
163
|
-
|
|
164
|
-
\`\`\`yaml
|
|
165
|
-
hass:
|
|
166
|
-
config: '/config' # skip this setting if you Hass Add-on user
|
|
167
|
-
|
|
168
|
-
streams:
|
|
169
|
-
generic_camera: hass:Camera1 # Settings > Integrations > Integration Name
|
|
170
|
-
aqara_g3: hass:Camera-Hub-G3-AB12
|
|
171
|
-
\`\`\`
|
|
172
|
-
|
|
173
|
-
**WebRTC Cameras**
|
|
174
|
-
|
|
175
|
-
Any cameras in WebRTC format are supported. But at the moment Home Assistant only supports some [Nest](https://www.home-assistant.io/integrations/nest/) cameras in this fomat.
|
|
176
|
-
|
|
177
|
-
The Nest API only allows you to get a link to a stream for 5 minutes. So every 5 minutes the stream will be reconnected.
|
|
178
|
-
|
|
179
|
-
\`\`\`yaml
|
|
180
|
-
streams:
|
|
181
|
-
# link to Home Assistant Supervised
|
|
182
|
-
hass-webrtc1: hass://supervisor?entity_id=camera.nest_doorbell
|
|
183
|
-
# link to external Hass with Long-Lived Access Tokens
|
|
184
|
-
hass-webrtc2: hass://192.168.1.123:8123?entity_id=camera.nest_doorbell&token=eyXYZ...
|
|
185
|
-
\`\`\`
|
|
186
|
-
|
|
187
|
-
**RTSP Cameras**
|
|
188
|
-
|
|
189
|
-
By default, the Home Assistant API does not allow you to get dynamic RTSP link to a camera stream. So more cameras, like [Tuya](https://www.home-assistant.io/integrations/tuya/), and possibly others can also be imported by using [this method](https://github.com/felipecrs/hass-expose-camera-stream-source#importing-home-assistant-cameras-to-go2rtc-andor-frigate).
|
|
190
|
-
|
|
191
|
-
_Source: [Go2Rtc Hass](https://github.com/AlexxIT/go2rtc#source-hass)_
|
|
192
|
-
`,ct=`#### Source: HomeKit
|
|
193
|
-
|
|
194
|
-
**Important:**
|
|
195
|
-
|
|
196
|
-
- You can use HomeKit Cameras **without Apple devices** (iPhone, iPad, etc.), it's just a yet another protocol
|
|
197
|
-
- HomeKit device can be paired with only one ecosystem. So, if you have paired it to an iPhone (Apple Home) - you can't pair it with Home Assistant or go2rtc. Or if you have paired it to go2rtc - you can't pair it with iPhone
|
|
198
|
-
- HomeKit device should be in same network with working [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) between device and go2rtc
|
|
199
|
-
|
|
200
|
-
go2rtc support import paired HomeKit devices from [Home Assistant](https://github.com/AlexxIT/go2rtc#source-hass). So you can use HomeKit camera with Hass and go2rtc simultaneously. If you using Hass, I recommend pairing devices with it, it will give you more options.
|
|
201
|
-
|
|
202
|
-
You can pair device with go2rtc on the HomeKit page. If you can't see your devices - reload the page. Also try reboot your HomeKit device (power off). If you still can't see it - you have a problems with mDNS.
|
|
203
|
-
|
|
204
|
-
If you see a device but it does not have a pair button - it is paired to some ecosystem (Apple Home, Home Assistant, HomeBridge etc). You need to delete device from that ecosystem, and it will be available for pairing. If you cannot unpair device, you will have to reset it.
|
|
205
|
-
|
|
206
|
-
**Important:**
|
|
207
|
-
|
|
208
|
-
- HomeKit audio uses very non-standard **AAC-ELD** codec with very non-standard params and specification violation
|
|
209
|
-
- Audio can't be played in \`VLC\` and probably any other player
|
|
210
|
-
- Audio should be transcoded for using with MSE, WebRTC, etc.
|
|
211
|
-
|
|
212
|
-
Recommended settings for using HomeKit Camera with WebRTC, MSE, MP4, RTSP:
|
|
213
|
-
|
|
214
|
-
\`\`\`
|
|
215
|
-
streams:
|
|
216
|
-
aqara_g3:
|
|
217
|
-
- hass:Camera-Hub-G3-AB12
|
|
218
|
-
- ffmpeg:aqara_g3#audio=aac#audio=opus
|
|
219
|
-
\`\`\`
|
|
220
|
-
|
|
221
|
-
RTSP link with "normal" audio for any player: \`rtsp://192.168.1.123:8554/aqara_g3?video&audio=aac\`
|
|
222
|
-
|
|
223
|
-
**This source is in active development!** Tested only with [Aqara Camera Hub G3](https://www.aqara.com/eu/product/camera-hub-g3) (both EU and CN versions).
|
|
224
|
-
|
|
225
|
-
_Source: [Go2Rtc HomeKit](https://github.com/AlexxIT/go2rtc#source-homekit)_
|
|
226
|
-
`,lt=`#### Source: HTTP
|
|
227
|
-
|
|
228
|
-
Support Content-Type:
|
|
229
|
-
|
|
230
|
-
- **HTTP-FLV** (\`video/x-flv\`) - same as RTMP, but over HTTP
|
|
231
|
-
- **HTTP-JPEG** (\`image/jpeg\`) - camera snapshot link, can be converted by go2rtc to MJPEG stream
|
|
232
|
-
- **HTTP-MJPEG** (\`multipart/x\`) - simple MJPEG stream over HTTP
|
|
233
|
-
- **MPEG-TS** (\`video/mpeg\`) - legacy [streaming format](https://en.wikipedia.org/wiki/MPEG_transport_stream)
|
|
234
|
-
|
|
235
|
-
Source also support HTTP and TCP streams with autodetection for different formats: **MJPEG**, **H.264/H.265 bitstream**, **MPEG-TS**.
|
|
236
|
-
|
|
237
|
-
\`\`\`yaml
|
|
238
|
-
streams:
|
|
239
|
-
# [HTTP-FLV] stream in video/x-flv format
|
|
240
|
-
http_flv: http://192.168.1.123:20880/api/camera/stream/780900131155/657617
|
|
241
|
-
|
|
242
|
-
# [JPEG] snapshots from Dahua camera, will be converted to MJPEG stream
|
|
243
|
-
dahua_snap: http://admin:password@192.168.1.123/cgi-bin/snapshot.cgi?channel=1
|
|
244
|
-
|
|
245
|
-
# [MJPEG] stream will be proxied without modification
|
|
246
|
-
http_mjpeg: https://mjpeg.sanford.io/count.mjpeg
|
|
247
|
-
|
|
248
|
-
# [MJPEG or H.264/H.265 bitstream or MPEG-TS]
|
|
249
|
-
tcp_magic: tcp://192.168.1.123:12345
|
|
250
|
-
|
|
251
|
-
# Add custom header
|
|
252
|
-
custom_header: 'https://mjpeg.sanford.io/count.mjpeg#header=Authorization: Bearer XXX'
|
|
253
|
-
\`\`\`
|
|
254
|
-
|
|
255
|
-
**PS.** Dahua camera has bug: if you select MJPEG codec for RTSP second stream - snapshot won't work.
|
|
256
|
-
|
|
257
|
-
_Source: [Go2Rtc Http](https://github.com/AlexxIT/go2rtc#source-http)_
|
|
258
|
-
`,mt=`#### Source: ISAPI
|
|
259
|
-
|
|
260
|
-
This source type support only backchannel audio for Hikvision ISAPI protocol. So it should be used as second source in addition to the RTSP protocol.
|
|
261
|
-
|
|
262
|
-
\`\`\`yaml
|
|
263
|
-
streams:
|
|
264
|
-
hikvision1:
|
|
265
|
-
- rtsp://admin:password@192.168.1.123:554/Streaming/Channels/101
|
|
266
|
-
- isapi://admin:password@192.168.1.123:80/
|
|
267
|
-
\`\`\`
|
|
268
|
-
|
|
269
|
-
_Source: [Go2Rtc Isapi](https://github.com/AlexxIT/go2rtc#source-isapi)_
|
|
270
|
-
`,ut=`#### Source: Ivideon
|
|
271
|
-
|
|
272
|
-
Support public cameras from service [Ivideon](https://tv.ivideon.com/).
|
|
273
|
-
|
|
274
|
-
\`\`\`yaml
|
|
275
|
-
streams:
|
|
276
|
-
quailcam: ivideon:100-tu5dkUPct39cTp9oNEN2B6/0
|
|
277
|
-
\`\`\`
|
|
278
|
-
|
|
279
|
-
_Source: [Go2Rtc Ivideon](https://github.com/AlexxIT/go2rtc#source-ivideon)_
|
|
280
|
-
`,pt=`#### Source: Kasa
|
|
281
|
-
|
|
282
|
-
[TP-Link Kasa](https://www.kasasmart.com/) non-standard protocol [more info](https://medium.com/@hu3vjeen/reverse-engineering-tp-link-kc100-bac4641bf1cd).
|
|
283
|
-
|
|
284
|
-
\`\`\`yaml
|
|
285
|
-
streams:
|
|
286
|
-
kasa: kasa://user:pass@192.168.1.123:19443/https/stream/mixed
|
|
287
|
-
\`\`\`
|
|
288
|
-
|
|
289
|
-
_Source: [Go2Rtc Kasa](https://github.com/AlexxIT/go2rtc#source-kasa)_
|
|
290
|
-
`,dt=`#### Source: Nest
|
|
291
|
-
|
|
292
|
-
Currently only WebRTC cameras are supported. Stream reconnects every 5 minutes.
|
|
293
|
-
|
|
294
|
-
For simplicity, it is recommended to connect the Nest/WebRTC camera to the [Home Assistant](https://github.com/AlexxIT/go2rtc#source-hass). But if you can somehow get the below parameters - Nest/WebRTC source will work without Hass.
|
|
295
|
-
|
|
296
|
-
\`\`\`yaml
|
|
297
|
-
streams:
|
|
298
|
-
nest-doorbell: nest:?client_id=***&client_secret=***&refresh_token=***&project_id=***&device_id=***
|
|
299
|
-
\`\`\`
|
|
300
|
-
|
|
301
|
-
_Source: [Go2Rtc Nest](https://github.com/AlexxIT/go2rtc#source-nest)_
|
|
302
|
-
`,ht=`#### Source: ONVIF
|
|
303
|
-
|
|
304
|
-
The source is not very useful if you already know RTSP and snapshot links for your camera. But it can be useful if you don't.
|
|
305
|
-
|
|
306
|
-
**WebUI > Add** webpage support ONVIF autodiscovery. Your server must be on the same subnet as the camera. If you use docker, you must use "network host".
|
|
307
|
-
|
|
308
|
-
\`\`\`yaml
|
|
309
|
-
streams:
|
|
310
|
-
dahua1: onvif://admin:password@192.168.1.123
|
|
311
|
-
reolink1: onvif://admin:password@192.168.1.123:8000
|
|
312
|
-
tapo1: onvif://admin:password@192.168.1.123:2020
|
|
313
|
-
\`\`\`
|
|
314
|
-
|
|
315
|
-
_Source: [Go2Rtc Onvif](https://github.com/AlexxIT/go2rtc#source-onvif)_
|
|
316
|
-
`,gt=`#### Source: Roborock
|
|
317
|
-
|
|
318
|
-
This source type support Roborock vacuums with cameras. Known working models:
|
|
319
|
-
|
|
320
|
-
- Roborock S6 MaxV - only video (the vacuum has no microphone)
|
|
321
|
-
- Roborock S7 MaxV - video and two way audio
|
|
322
|
-
|
|
323
|
-
Source support load Roborock credentials from Home Assistant [custom integration](https://github.com/humbertogontijo/homeassistant-roborock). Otherwise, you need to log in to your Roborock account (MiHome account is not supported). Go to: go2rtc WebUI > Add webpage. Copy \`roborock://...\` source for your vacuum and paste it to \`go2rtc.yaml\` config.
|
|
324
|
-
|
|
325
|
-
If you have graphic pin for your vacuum - add it as numeric pin (lines: 123, 456, 678) to the end of the roborock-link.
|
|
326
|
-
|
|
327
|
-
_Source: [Go2Rtc Roborock](https://github.com/AlexxIT/go2rtc#source-roborock)_
|
|
328
|
-
`,ft=`#### Source: RTMP
|
|
329
|
-
|
|
330
|
-
You can get stream from RTMP server, for example [Frigate](https://docs.frigate.video/configuration/rtmp).
|
|
331
|
-
|
|
332
|
-
\`\`\`yaml
|
|
333
|
-
streams:
|
|
334
|
-
rtmp_stream: rtmp://192.168.1.123/live/camera1
|
|
335
|
-
\`\`\`
|
|
336
|
-
|
|
337
|
-
_Source: [Go2Rtc RTMP](https://github.com/AlexxIT/go2rtc#source-rtmp)_
|
|
338
|
-
`,bt=`#### Source: RTSP
|
|
339
|
-
|
|
340
|
-
\`\`\`yaml
|
|
341
|
-
streams:
|
|
342
|
-
sonoff_camera: rtsp://rtsp:12345678@192.168.1.123/av_stream/ch0
|
|
343
|
-
dahua_camera:
|
|
344
|
-
- rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
|
|
345
|
-
- rtsp://admin:password@192.168.1.123/cam/realmonitor?channel=1&subtype=1
|
|
346
|
-
amcrest_doorbell:
|
|
347
|
-
- rtsp://username:password@192.168.1.123:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
|
|
348
|
-
unifi_camera: rtspx://192.168.1.123:7441/fD6ouM72bWoFijxK
|
|
349
|
-
glichy_camera: ffmpeg:rstp://username:password@192.168.1.123/live/ch00_1
|
|
350
|
-
\`\`\`
|
|
351
|
-
|
|
352
|
-
**Recommendations**
|
|
353
|
-
|
|
354
|
-
- **Amcrest Doorbell** users may want to disable two way audio, because with an active stream you won't have a call button working. You need to add \`#backchannel=0\` to the end of your RTSP link in YAML config file
|
|
355
|
-
- **Dahua Doorbell** users may want to change backchannel [audio codec](https://github.com/AlexxIT/go2rtc/issues/52)
|
|
356
|
-
- **Reolink** users may want NOT to use RTSP protocol at all, some camera models have a very awful unusable stream implementation
|
|
357
|
-
- **Ubiquiti UniFi** users may want to disable HTTPS verification. Use \`rtspx://\` prefix instead of \`rtsps://\`. And don't use \`?enableSrtp\` [suffix](https://github.com/AlexxIT/go2rtc/issues/81)
|
|
358
|
-
- **TP-Link Tapo** users may skip login and password, because go2rtc support login [without them](https://drmnsamoliu.github.io/video.html)
|
|
359
|
-
- If your camera has two RTSP links - you can add both of them as sources. This is useful when streams has different codecs, as example AAC audio with main stream and PCMU/PCMA audio with second stream
|
|
360
|
-
- If the stream from your camera is glitchy, try using [ffmpeg source](https://github.com/AlexxIT/go2rtc#source-ffmpeg). It will not add CPU load if you won't use transcoding
|
|
361
|
-
- If the stream from your camera is very glitchy, try to use transcoding with [ffmpeg source](#source-ffmpeg)
|
|
362
|
-
|
|
363
|
-
**Other options**
|
|
364
|
-
|
|
365
|
-
Format:
|
|
366
|
-
|
|
367
|
-
\`rtsp...#{param1}#{param2}#{param3}\`
|
|
368
|
-
|
|
369
|
-
- Add custom timeout \`#timeout=30\` (in seconds)
|
|
370
|
-
- Ignore audio - \`#media=video\` or ignore video - \`#media=audio\`
|
|
371
|
-
- Ignore two way audio API \`#backchannel=0\` - important for some glitchy cameras
|
|
372
|
-
- Use WebSocket transport \`#transport=ws...\`
|
|
373
|
-
|
|
374
|
-
**RTSP over WebSocket**
|
|
375
|
-
|
|
376
|
-
\`\`\`yaml
|
|
377
|
-
streams:
|
|
378
|
-
# WebSocket with authorization, RTSP - without
|
|
379
|
-
axis-rtsp-ws: rtsp://192.168.1.123:4567/axis-media/media.amp?overview=0&camera=1&resolution=1280x720&videoframeskipmode=empty&Axis-Orig-Sw=true#transport=ws://user:pass@192.168.1.123:4567/rtsp-over-websocket
|
|
380
|
-
# WebSocket without authorization, RTSP - with
|
|
381
|
-
dahua-rtsp-ws: rtsp://user:pass@192.168.1.123/cam/realmonitor?channel=1&subtype=1&proto=Private3#transport=ws://192.168.1.123/rtspoverwebsocket
|
|
382
|
-
\`\`\`
|
|
383
|
-
|
|
384
|
-
_Source: [Go2Rtc RTSP](https://github.com/AlexxIT/go2rtc#source-rtsp)_
|
|
385
|
-
`,wt=`#### Source: Tapo
|
|
386
|
-
|
|
387
|
-
[TP-Link Tapo](https://www.tapo.com/) proprietary camera protocol with **two way audio** support.
|
|
388
|
-
|
|
389
|
-
- stream quality is the same as [RTSP protocol](https://www.tapo.com/en/faq/34/)
|
|
390
|
-
- use the **cloud password**, this is not the RTSP password! you do not need to add a login!
|
|
391
|
-
- you can also use UPPERCASE MD5 hash from your cloud password with \`admin\` username
|
|
392
|
-
|
|
393
|
-
\`\`\`yaml
|
|
394
|
-
streams:
|
|
395
|
-
# cloud password without username
|
|
396
|
-
camera1: tapo://cloud-password@192.168.1.123
|
|
397
|
-
# admin username and UPPERCASE MD5 cloud-password hash
|
|
398
|
-
camera2: tapo://admin:MD5-PASSWORD-HASH@192.168.1.123
|
|
399
|
-
\`\`\`
|
|
400
|
-
|
|
401
|
-
_Source: [Go2Rtc Tapo](https://github.com/AlexxIT/go2rtc#source-tapo)_
|
|
402
|
-
`,vt=`#### Source: WebRTC
|
|
403
|
-
|
|
404
|
-
This source type support four connection formats.
|
|
405
|
-
|
|
406
|
-
**whep**
|
|
407
|
-
|
|
408
|
-
[WebRTC/WHEP](https://www.ietf.org/id/draft-murillo-whep-02.html) - is an unapproved standard for WebRTC video/audio viewers. But it may already be supported in some third-party software. It is supported in go2rtc.
|
|
409
|
-
|
|
410
|
-
**go2rtc**
|
|
411
|
-
|
|
412
|
-
This format is only supported in go2rtc. Unlike WHEP it supports asynchronous WebRTC connection and two way audio.
|
|
413
|
-
|
|
414
|
-
**openipc**
|
|
415
|
-
|
|
416
|
-
Support connection to [OpenIPC](https://openipc.org/) cameras.
|
|
417
|
-
|
|
418
|
-
**wyze**
|
|
419
|
-
|
|
420
|
-
Supports connection to [Wyze](https://www.wyze.com/) cameras, using WebRTC protocol. You can use [docker-wyze-bridge](https://github.com/mrlt8/docker-wyze-bridge) project to get connection credentials.
|
|
421
|
-
|
|
422
|
-
**kinesis**
|
|
423
|
-
|
|
424
|
-
Supports [Amazon Kinesis Video Streams](https://aws.amazon.com/kinesis/video-streams/), using WebRTC protocol. You need to specify signalling WebSocket URL with all credentials in query params, \`client_id\` and \`ice_servers\` list in [JSON format](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer).
|
|
425
|
-
|
|
426
|
-
\`\`\`yaml
|
|
427
|
-
streams:
|
|
428
|
-
webrtc-whep: webrtc:http://192.168.1.123:1984/api/webrtc?src=camera1
|
|
429
|
-
webrtc-go2rtc: webrtc:ws://192.168.1.123:1984/api/websocket?src=camera1
|
|
430
|
-
webrtc-openipc: webrtc:ws://192.168.1.123/webrtc_ws#format=openipc#ice_servers=[{"urls":"stun:stun.kinesisvideo.eu-north-1.amazonaws.com:443"}]
|
|
431
|
-
webrtc-wyze: webrtc:http://192.168.1.123:5000/signaling/camera1?kvs#format=wyze
|
|
432
|
-
webrtc-kinesis: webrtc:wss://...amazonaws.com/?...#format=kinesis#client_id=...#ice_servers=[{...},{...}]
|
|
433
|
-
\`\`\`
|
|
434
|
-
|
|
435
|
-
**PS.** For \`kinesis\` sources you can use [echo](https://github.com/AlexxIT/go2rtc#source-echo) to get connection params using \`bash\`/\`python\` or any other script language.
|
|
436
|
-
|
|
437
|
-
_Source: [Go2Rtc WebRTC](https://github.com/AlexxIT/go2rtc#source-webrtc)_
|
|
438
|
-
`,_t=`#### Source: WebTorrent
|
|
439
|
-
|
|
440
|
-
This source can get a stream from another go2rtc via [WebTorrent](https://github.com/AlexxIT/go2rtc#module-webtorrent) protocol.
|
|
441
|
-
|
|
442
|
-
\`\`\`yaml
|
|
443
|
-
streams:
|
|
444
|
-
webtorrent1: webtorrent:?share=huofssuxaty00izc&pwd=k3l2j9djeg8v8r7e
|
|
445
|
-
\`\`\`
|
|
446
|
-
|
|
447
|
-
_Source: [Go2Rtc Webtorrent](https://github.com/AlexxIT/go2rtc#source-webtorrent)_
|
|
448
|
-
`,yt={class:"page-title"},xt={class:"window"},kt={class:"subview-title text-color"},St={class:"relative"},Tt={for:"name",class:"v-label"},Pt={class:"mt-5"},Rt={class:"subview-title text-color"},At={class:"flex flex-row items-center justify-center ml-auto"},It={class:"relative w-full flex flex-col"},Ct=["for"],Ht=["for"],Vt=["for"],jt={key:0,class:"w-full flex flex-row justify-center my-1"},Et={class:"ml-2 flex items-center justify-center",style:{"max-height":"44px"}},Ot={class:"w-full flex flex-row justify-center my-1"},Gt={class:"ml-2 flex items-center justify-center",style:{"max-height":"44px"}},Mt={class:"flex items-center ml-auto"},Ut={class:"flex flex-row w-full items-center justify-center mt-3"},$t={key:0,class:"w-full h-full"},Lt=["innerHTML"],Wt={key:1,class:"w-full h-full flex items-center justify-center"},Dt={key:0,class:"w-full h-full flex items-center justify-center"},Bt=Ae({__name:"NewCamera",setup(zt){A.registerLanguage("typescript",je),A.registerLanguage("yaml",Ee),A.registerLanguage("json",Oe),A.registerLanguage("python",Ge);const{smallMobileActive:V,extraSmallMobileActive:U}=Te(),re=Ne(),W=new xe,ie=v(new Set),ce=v(),le=v(!1),$=v(0),j=v([0]),R=v(),me=v(["high-resolution","mid-resolution","low-resolution","snapshot"]),E=Ie(),C=v(!1),O=v(!1),f=v({disabled:!1,name:"",info:{manufacturer:"",model:"",hardware:"",serialNumber:"",firmwareVersion:"",supportUrl:""},sources:[{name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}],internal:!1}],recording:{enabled:!1},interface:{streamingMode:"webrtc",streamingSource:"high-resolution"},extensions:{hub:[],plugins:[]}}),{mutate:ue,isPending:pe}=W.createCameraQuery(),{mutateAsync:de,isPending:he}=W.previewCameraQuery(),p=Ce(()=>pe.value||le.value),D=Be("commonmark",{highlight(o,t){if(t&&A.getLanguage(t))try{return'<pre><code class="hljs">'+A.highlight(o,{language:t,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+D.utils.escapeHtml(o)+"</code></pre>"}});He(C,o=>{o||setTimeout(()=>{E.value={presets:[],md:void 0}},300)});const ge=o=>{f.value.sources[o].urls.push({protocol:"rtsp://",url:[]})},fe=(o,t)=>{f.value.sources[o].urls.splice(t,1)},be=()=>{f.value.sources.push({name:"",roles:[],urls:[{protocol:"rtsp://",url:[]}],internal:!1}),j.value=[f.value.sources.length]},we=o=>{f.value.sources.splice(o,1)},B=o=>{let t,s,b;switch(o){case"bubble://":t=[],s=Object.assign({"../markdowns/bubble.md":et});break;case"dvrip://":t=[],s=Object.assign({"../markdowns/dvrip.md":tt});break;case"echo:":t=[],s=Object.assign({"../markdowns/echo.md":ot});break;case"exec:":t=[],s=Object.assign({"../markdowns/exec.md":at});break;case"expr:":t=[],s=Object.assign({"../markdowns/expr.md":nt});break;case"ffmpeg:":t=se,s=Object.assign({"../markdowns/ffmpeg.md":st});break;case"gopro://":t=se,s=Object.assign({"../markdowns/gopro.md":rt});break;case"hass:":t=[],s=Object.assign({"../markdowns/hass.md":it});break;case"homekit://":t=qe,s=Object.assign({"../markdowns/homekit.md":ct});break;case"http://":case"https://":case"httpx://":case"tcp://":t=Xe,s=Object.assign({"../markdowns/http.md":lt});break;case"isapi://":t=[],s=Object.assign({"../markdowns/isapi.md":mt});break;case"ivideon:":t=[],s=Object.assign({"../markdowns/ivideon.md":ut});break;case"kasa://":t=[],s=Object.assign({"../markdowns/kasa.md":pt});break;case"nest:":t=Qe,s=Object.assign({"../markdowns/nest.md":dt});break;case"onvif://":t=[],s=Object.assign({"../markdowns/onvif.md":ht});break;case"roborock://":t=[],s=Object.assign({"../markdowns/roborock.md":gt});break;case"rtmp://":t=[],s=Object.assign({"../markdowns/rtmp.md":ft});break;case"rtsp://":case"rtspx://":t=Je,s=Object.assign({"../markdowns/rtsp.md":bt});break;case"tapo://":t=[],s=Object.assign({"../markdowns/tapo.md":wt});break;case"webrtc:":t=Ze,s=Object.assign({"../markdowns/webrtc.md":vt});break;case"webtorrent:":t=[],s=Object.assign({"../markdowns/webtorrent.md":_t});break;default:t=[],s=void 0;break}return s&&(b=Object.values(s)[0]),E.value={presets:t,md:b},{presets:t,md:b}},z=o=>{B(o),C.value=!0},ve=async o=>{R.value=void 0,O.value=!0;const t=o.url.join(""),b={url:t.includes(o.protocol)?t:`${o.protocol}${t}`},r=await de({cameraData:b});R.value=r?`data:image/jpeg;base64,${r}`:"ERROR",R.value!=="ERROR"&&ie.value.add(b.url)},_e=o=>({...o,pluginId:"native",type:"camera",isCloud:!1,hasLight:!1,hasSiren:!1,hasBinarySensor:!1,hasBattery:!1,snapshotTTL:600,activityZones:[],activitySettings:{motion:{timeout:20},object:{confidence:.7}},frameWorkerSettings:{decoder:"wasm",fps:0,resolution:"640x360"},sources:o.sources.map(s=>{const b=s.urls.map(r=>{if(r.url){const c=r.url.join("");return c.includes(r.protocol)?c:`${r.protocol}${c}`}}).filter(Boolean);return{_id:"",...s,urls:b,internal:!1}})}),ye=o=>{const{isLoading:t}=De(0,{parent:".topbar"});t.value=!0;const s=_e(o);ue({cameraData:s},{onSuccess:async()=>{t.value=!1,await Fe(500),re.push({path:"/cameras"})}})},F=(o,t)=>{t.protocol=o};return(o,t)=>{const s=Pe,b=Se;return d(),k("main",{class:Y(["w-full h-full",{"px-0":e(V)}])},[n(e(ze),{ref_key:"cameraVeeForm",ref:ce,class:"firststeps-form flex flex-col h-full w-full","validation-schema":e(ke),"initial-values":e(f),onSubmit:t[3]||(t[3]=r=>ye(r))},{default:a(()=>[u("div",{class:Y(["mb-3 flex items-center",{"mx-2":e(V)}]),style:{height:"30px"}},[u("h1",yt,l(o.$t("views.new_camera.title")),1),n(S,{loading:e(p),variant:"text",color:"green",type:"submit",class:"ml-auto"},{default:a(()=>[n(x,{size:"15",class:"mr-1"},{default:a(()=>[h(l(e(q)),1)]),_:1}),h(" "+l(o.$t("components.form.button.add")),1)]),_:1},8,["loading"])],2),u("div",xt,[u("div",null,[u("span",kt,l(o.$t("components.form.label.camera")),1),n(Q,{modelValue:e($),"onUpdate:modelValue":t[1]||(t[1]=r=>G($)?$.value=r:null),class:"inner-component mt-2"},{default:a(()=>[n(Z,{elevation:"0",value:1},{default:a(()=>[n(ee,{style:{height:"48px"},class:"truncate"},{default:a(()=>[h(l(o.$t("views.new_camera.camera")),1)]),_:1}),n(te,{eager:""},{default:a(()=>[u("div",St,[n(e(I),{modelValue:e(f).name,"onUpdate:modelValue":t[0]||(t[0]=r=>e(f).name=r),name:"name"},{default:a(({field:r,errorMessage:c,errors:i})=>[u("label",Tt,l(o.$t("components.form.label.name")),1),n(oe,H({loading:e(p),variant:"outlined",name:"name",type:"text",density:"compact"},r,{error:i.length>0,"error-messages":c}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),u("div",Pt,[u("span",Rt,l(o.$t("components.form.label.sources")),1),n(Q,{modelValue:e(j),"onUpdate:modelValue":t[2]||(t[2]=r=>G(j)?j.value=r:null),class:"inner-component mt-2",multiple:"",variant:"accordion"},{default:a(()=>[(d(!0),k(K,null,J(e(f).sources,(r,c)=>(d(),P(Z,{key:c,value:c+1,elevation:"0",style:Ve(e(V)?"border-radius: 0px !important":"")},{default:a(()=>[n(ee,{style:{height:"48px"},class:"truncate"},{actions:a(({expanded:i})=>[u("div",At,[n(S,{disabled:e(f).sources.length<2||e(p),size:"22.5",rounded:"",color:"red",variant:"text",class:"mx-2",onClick:_(g=>we(c),["stop"])},{default:a(()=>[n(x,null,{default:a(()=>[h(l(e(Me)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),i?(d(),P(x,{key:0,size:"22.5"},{default:a(()=>[h(l(e(Ue)),1)]),_:1})):(d(),P(x,{key:1,size:"22.5"},{default:a(()=>[h(l(e($e)),1)]),_:1}))])]),default:a(()=>[h(l(o.$t("views.new_camera.source")+": "+c)+" ",1)]),_:2},1024),n(te,{eager:""},{default:a(()=>[u("div",It,[n(e(I),{modelValue:r.name,"onUpdate:modelValue":i=>r.name=i,name:`sources[${c}].name`},{default:a(({field:i,errorMessage:g,errors:m})=>[u("label",{for:`sources[${c}].name`,class:"v-label"},l(o.$t("components.form.label.source_name")),9,Ct),n(oe,H({loading:e(p),variant:"outlined",name:`sources[${c}].name`,type:"text",density:"compact",ref_for:!0},i,{error:m.length>0,"error-messages":g}),null,16,["loading","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),n(e(I),{modelValue:r.roles,"onUpdate:modelValue":i=>r.roles=i,name:`sources[${c}].roles`},{default:a(({field:i,errorMessage:g,errors:m})=>[u("label",{for:`sources[${c}].roles`,class:"v-label"},l(o.$t("components.form.label.source_role")),9,Ht),n(L,H({loading:e(p),items:e(me).filter(y=>!e(f).sources.some((T,w)=>{var N;return((N=T.roles)==null?void 0:N.includes(y))&&w!==c})),variant:"outlined",name:`sources[${c}].roles`,type:"text",density:"compact",chips:"",multiple:"",clearable:"",ref_for:!0},i,{error:m.length>0,"error-messages":g,"model-value":i.value,onKeydown:_(()=>null,["prevent"])}),{chip:a(({item:y})=>[n(Ye,{color:"#df2a4c"},{default:a(()=>[h(l(y.title),1)]),_:2},1024)]),_:2},1040,["loading","items","name","error","error-messages","model-value"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),u("label",{for:`sources[${c}].urls[].url`,class:"v-label"},l(o.$t("components.form.label.sources")),9,Vt),(d(!0),k(K,null,J(r.urls,(i,g)=>(d(),k("div",{key:g},[e(U)?(d(),k("div",jt,[n(e(I),{modelValue:i.protocol,"onUpdate:modelValue":m=>i.protocol=m,name:`sources[${c}].urls[${g}].protocol`},{default:a(({field:m,errors:y,errorMessage:T})=>[n(L,H({loading:e(p),items:e(ne),"hide-no-data":"","hide-details":"",variant:"outlined",name:`sources[${c}].urls[${g}].protocol`,type:"text",density:"compact",class:"camera-protocol",ref_for:!0},m,{error:y.length>0,"error-messages":T,"model-value":m.value,onKeydown:_(()=>null,["prevent"]),"onUpdate:modelValue":w=>F(w,i)}),null,16,["loading","items","name","error","error-messages","model-value","onUpdate:modelValue"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),u("div",Et,[n(S,{disabled:e(p),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:_(m=>z(i.protocol),["prevent"])},{default:a(()=>[n(x,{size:"20"},{default:a(()=>[h(l(e(X)),1)]),_:1})]),_:2},1032,["disabled","onClick"])])])):M("",!0),u("div",Ot,[e(U)?M("",!0):(d(),P(e(I),{key:0,modelValue:i.protocol,"onUpdate:modelValue":m=>i.protocol=m,name:`sources[${c}].urls[${g}].protocol`},{default:a(({field:m,errors:y,errorMessage:T})=>[n(L,H({loading:e(p),items:e(ne),"hide-no-data":"","hide-details":"",variant:"outlined",name:`sources[${c}].urls[${g}].protocol`,type:"text",density:"compact",style:{"min-width":"125px","max-width":"125px","min-height":"40px","max-height":"40px"},class:"camera-protocol",ref_for:!0},m,{error:y.length>0,"error-messages":T,"model-value":m.value,onKeydown:_(()=>null,["prevent"]),"onUpdate:modelValue":w=>F(w,i)}),null,16,["loading","items","name","error","error-messages","model-value","onUpdate:modelValue"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"])),n(e(I),{modelValue:i.url,"onUpdate:modelValue":m=>i.url=m,name:`sources[${c}].urls[${g}].url`},{default:a(({field:m,errorMessage:y,errors:T})=>[n(Ke,{modelValue:i.url,"onUpdate:modelValue":[w=>i.url=w,w=>m.value=w],loading:e(p),clearable:"",chips:"",multiple:"",items:B(i.protocol).presets,variant:"outlined",name:`sources[${c}].urls[${g}].url`,type:"text",density:"compact",class:"camera-source",error:T.length>0,"error-messages":y},{"append-inner":a(()=>[r.urls.length>1?(d(),P(S,{key:0,size:"28",variant:"text",rounded:"",density:"compact",color:"red",disabled:r.urls.length<2||e(p),onClick:_(w=>fe(c,g),["prevent"])},{default:a(()=>[n(x,{size:"20"},{default:a(()=>[h(l(e(Le)),1)]),_:1})]),_:2},1032,["disabled","onClick"])):M("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","loading","items","name","error","error-messages"])]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),u("div",Gt,[n(S,{disabled:!i.protocol||!i.url.length||e(p),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:_(m=>ve(i),["prevent"])},{default:a(()=>[n(x,{size:"20"},{default:a(()=>[h(l(e(We)),1)]),_:1})]),_:2},1032,["disabled","onClick"]),e(U)?M("",!0):(d(),P(S,{key:0,disabled:e(p),color:"#5e5e5e",density:"compact",icon:"",variant:"text",onClick:_(m=>z(i.protocol),["prevent"])},{default:a(()=>[n(x,{size:"20"},{default:a(()=>[h(l(e(X)),1)]),_:1})]),_:2},1032,["disabled","onClick"]))])])]))),128)),u("div",Mt,[n(S,{disabled:e(p),color:"#df2a4c",variant:"flat",onClick:_(i=>ge(c),["prevent"])},{default:a(()=>[h(l(o.$t("components.form.button.add_source")),1)]),_:2},1032,["disabled","onClick"])])])]),_:2},1024)]),_:2},1032,["value","style"]))),128))]),_:1},8,["modelValue"]),u("div",Ut,[n(S,{disabled:e(p),variant:"text",color:"#df2a4c",icon:"",onClick:_(be,["prevent"])},{default:a(()=>[n(x,{size:"30"},{default:a(()=>[h(l(e(q)),1)]),_:1})]),_:1},8,["disabled"])])])])]),_:1},8,["validation-schema","initial-values"]),n(s,{modelValue:e(C),"onUpdate:modelValue":t[4]||(t[4]=r=>G(C)?C.value=r:null),title:o.$t("components.dialog.title.information"),loading:e(p),"hide-confirm-button":""},{content:a(()=>{var r;return[(r=e(E))!=null&&r.md?(d(),k("div",$t,[u("div",{class:"w-full markdown-body",innerHTML:e(D).render(e(E).md)},null,8,Lt)])):(d(),k("div",Wt,[n(ae,{color:"#df2a4c",indeterminate:""})]))]}),_:1},8,["modelValue","title","loading"]),n(s,{modelValue:e(O),"onUpdate:modelValue":t[5]||(t[5]=r=>G(O)?O.value=r:null),title:o.$t("components.dialog.title.preview"),loading:e(p),"hide-confirm-button":""},{content:a(()=>[!e(R)||e(he)?(d(),k("div",Dt,[n(ae,{color:"#df2a4c",indeterminate:""})])):(d(),P(b,{key:1,class:"mt-5 inner-component","show-camera-name":"","current-camera":e(R),"border-radius":e(V)?0:3,border:!1,target:"preview","preview-src":e(R),"button-elevation":"1"},null,8,["current-camera","border-radius","preview-src"]))]),_:1},8,["modelValue","title","loading"])],2)}}}),Mo=Re(Bt,[["__scopeId","data-v-fa1d327f"]]);export{Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as we,b as at,C as lt,d as it,e as rt,g as ut}from"./VPlayer.CUKkadJU.0.0.34-alpha.6.js";import{_ as ct}from"./VPluginCard.B7M71ABH.0.0.34-alpha.6.js";import{G as $e,t as Ee,r as l,c as Y,w as X,b as a,d as u,f as s,u as e,a9 as d,k as w,g as G,a7 as R,R as f,ab as g,p as S,aa as O,n as te,i as fe,S as dt,P as ft,ac as Be,Q as Pe,ad as De}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import{X as Fe,k as ce,i as oe,c as Ne}from"./@mdi.C1UTQKuc.0.0.34-alpha.6.js";import{i as ze}from"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import{P as ke}from"./plugins.DkVCVMms.0.0.34-alpha.6.js";import{A as Me,M as Ve,i as Ue,d as Ie,z as Je,C as Le,w as Ye,D as Re,E as je,y as mt,f as pt,F as vt}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{e as ae,b as me,V as de,S as gt,U as _t,C as ht,w as yt,F as He,f as qe,H as bt,I as xt,n as wt,x as $t}from"./vuetify.dlIDGkOi.0.0.34-alpha.6.js";import{H as se,t as kt,y as It,j as Ct,p as St}from"./highlight.js.D0GppvQT.0.0.34-alpha.6.js";import{M as Pt}from"./markdown-it.BmdsAkr5.0.0.34-alpha.6.js";import{u as Dt}from"./vue-router.DbntwPAd.0.0.34-alpha.6.js";import{t as Vt}from"./@vueuse.D9NHhWYc.0.0.34-alpha.6.js";import"./qrcode.BgXQ059Y.0.0.34-alpha.6.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js";import"./vee-validate.CghN0yPF.0.0.34-alpha.6.js";import"./zod.DnW1_kUe.0.0.34-alpha.6.js";import"./pinia.CBIup3aH.0.0.34-alpha.6.js";import"./@vee-validate.vQEQxxhx.0.0.34-alpha.6.js";import"./draggabilly.CzAcRWAL.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./get-size.D1dS-IaP.0.0.34-alpha.6.js";import"./unidragger.bJ3WxeD3.0.0.34-alpha.6.js";import"./ev-emitter.DdBIoR-C.0.0.34-alpha.6.js";import"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import"./VConsole.DNiPpzW6.0.0.34-alpha.6.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js";import"./ace-builds.DndaCQ18.0.0.34-alpha.6.js";import"./@vueform.CPzo51Ad.0.0.34-alpha.6.js";import"./types.Cz9TaZAP.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";import"./vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js";import"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import"./axios.C-n2IhIP.0.0.34-alpha.6.js";import"./uuid.DvF23Exx.0.0.34-alpha.6.js";import"./socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js";import"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js";import"./rxjs.DKQuv6LI.0.0.34-alpha.6.js";import"./tslib.9k7AwCpt.0.0.34-alpha.6.js";import"./vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js";import"./nprogress.CO0HPuzU.0.0.34-alpha.6.js";import"./mdurl.k9Sl0PQj.0.0.34-alpha.6.js";import"./uc.micro.kMc2yuuw.0.0.34-alpha.6.js";import"./entities.C20TfXL6.0.0.34-alpha.6.js";import"./linkify-it.BnwKCzGP.0.0.34-alpha.6.js";import"./punycode.js.Dj65hjkv.0.0.34-alpha.6.js";const Lt={class:"w-full"},jt={key:0,class:"w-full"},zt={class:"flex flex-col justify-center items-center mb-5"},Et={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Ft=["accept"],Ot={key:0,class:"text-red text-sm"},At={key:1,class:"w-full flex flex-col items-center justify-center"},Tt={class:"relative mb-4 w-full"},Qt=["src","type"],Bt={class:"flex items-center justify-center"},Nt={class:"mx-2"},Mt={class:"disabled-text"},Ut={class:"mt-10"},Jt={class:"box-title w-full mb-3"},Rt={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Ht=$e({__name:"VAudioDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(Me.join(",")),Q=l(""),z=l({}),h=l(!1),D=l(),_=l(!0),{mutateAsync:E,isPending:B}=A.detectAudioQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"audioDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),Q.value="",D.value=void 0)},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Me.includes(t.type)&&t.size<=Ve?(i.value.push(t),te(()=>{I(t)})):t.size>Ve?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=Ve?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0;const t=new Audio;t.src=URL.createObjectURL(n),t.onloadedmetadata=()=>{D.value={mimeType:n.type},h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n)),t.append("metadata",JSON.stringify(D.value));try{await E({pluginName:T.value,formData:t})?ze.info(Ue.global.t("components.detection_interface.audio_detected")):ze.info(Ue.global.t("components.detection_interface.audio_not_detected"))}catch(o){console.error("Error detecting audio",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):(Q.value="",D.value=void 0,_.value=!0)},{immediate:!0,deep:!0}),(n,t)=>{const o=we;return a(),u("div",Lt,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(m=>V(m),["prevent"])),onDragover:t[2]||(t[2]=S(m=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(m=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(m=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",At,[s("div",Tt,[s("audio",{ref_key:"audioPlayer",ref:k,controls:"",class:"w-full"},[s("source",{src:e(Q),type:e(i)[0].type},null,8,Qt),t[5]||(t[5]=R(" Your browser does not support the audio element. "))],512)]),s("div",Bt,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(m=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",Nt,d(e(i)[0].name),1),s("span",Mt,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",jt,[s("div",zt,[s("label",Et,d(n.$t("components.detection_interface.drop_or_select_audio_to_detect")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(j),onChange:K},null,40,Ft),e(p)?(a(),u("p",Ot,d(n.$t("components.detection_interface.only_one_audio_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.audio_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",Ut,[s("div",Jt,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_audio"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Rt,d(n.$t("components.detection_interface.no_interface_config")),1))])])}}}),qt=Ie(Ht,[["__scopeId","data-v-6f1f3d41"]]),Yt={class:"w-full"},Xt={key:0,class:"w-full"},Gt={class:"flex flex-col justify-center items-center mb-5"},Kt={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Zt=["accept"],Wt={key:0,class:"text-red text-sm"},en={key:1,class:"w-full flex flex-col items-center justify-center"},tn={class:"relative mb-4"},nn=["src"],on={class:"flex items-center justify-center"},sn={class:"mx-2"},an={class:"disabled-text"},ln={class:"mt-10"},rn={class:"box-title w-full mb-3"},un={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},cn={class:"relative"},dn=["src"],fn=$e({__name:"VObjectDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(Je.join(",")),j=l(""),Q=l({}),z=l(!1),h=l(),D=l([]),_=l(!1),E=l(!0),{mutateAsync:B,isPending:F}=A.detectObjectsQuery(),{data:U,isLoading:H}=A.getPluginInterfaceQuery(T.value,{type:"objectDetection"}),x=Y(()=>F.value||H.value||z.value),V=t=>{const o=i.value.findIndex(m=>m.name===t);o>-1&&(i.value.splice(o,1),W(),j.value="",h.value=void 0)},K=t=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],t.dataTransfer)if(t.dataTransfer.files.length>1)p.value=!0;else{const o=t.dataTransfer.files[0];Je.includes(o.type)&&o.size<=Le?(i.value.push(o),te(()=>{I(o)})):o.size>Le?y.value=!0:p.value=!0}},Z=t=>{var m;p.value=!1,y.value=!1,i.value=[];const o=t.target;if(o&&o.files){if(((m=o.files)==null?void 0:m.length)>1)p.value=!0;else if(o.files.length===1){const L=o.files[0];L.size<=Le?(i.value.push(L),te(()=>{I(L)})):y.value=!0}}},W=()=>{$.value&&($.value.value="")},I=t=>{z.value=!0;const o=new Image;o.src=URL.createObjectURL(t),o.onload=()=>{j.value=o.src,h.value={width:o.width,height:o.height},z.value=!1}},q=t=>t<1024?t+" bytes":t<1048576?(t/1024).toFixed(1)+" KB":(t/1048576).toFixed(1)+" MB",n=async t=>{if(!i.value.length){P.value=!0;return}z.value=!0;const o=new FormData;o.append("upload",i.value[0]),o.append("config",JSON.stringify(t)),o.append("metadata",JSON.stringify(h.value));try{const m=await B({pluginName:T.value,formData:o});_.value=!0,setTimeout(()=>{D.value=m},300)}catch(m){console.error("Error detecting objects",m)}finally{z.value=!1}};return X(i,t=>{t.length>0?(P.value=!1,E.value=!1):(j.value="",h.value=void 0,E.value=!0)},{immediate:!0,deep:!0}),(t,o)=>{const m=we,L=at,Ce=Ye;return a(),u("div",Yt,[s("div",{class:"file-upload-box p-4",onDrop:o[1]||(o[1]=S(J=>K(J),["prevent"])),onDragover:o[2]||(o[2]=S(J=>b.value=!0,["prevent"])),onDragenter:o[3]||(o[3]=S(J=>b.value=!0,["prevent"])),onDragleave:o[4]||(o[4]=S(J=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",en,[s("div",tn,[s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,nn)]),s("div",on,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:o[0]||(o[0]=S(J=>V(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",sn,d(e(i)[0].name),1),s("span",an,"("+d(q(e(i)[0].size))+")",1)])])):(a(),u("div",Xt,[s("div",Gt,[s("label",Kt,d(t.$t("components.detection_interface.drop_or_select_image_to_detect_objects")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(k),onChange:Z},null,40,Zt),e(p)?(a(),u("p",Wt,d(t.$t("components.detection_interface.only_one_image_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(t.$t("components.detection_interface.image_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(t.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",ln,[s("div",rn,d(t.$t("components.detection_interface.interface_config")),1),e(U)&&Object.keys(e(U)).length?(a(),O(m,{key:1,config:e(Q),"ui-schema":e(U),loading:e(x),"save-button-label":t.$t("components.detection_interface.detect_objects"),"disable-button":e(E),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:n},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",un,d(t.$t("components.detection_interface.no_interface_config")),1))]),f(Ce,{modelValue:e(_),"onUpdate:modelValue":o[5]||(o[5]=J=>fe(_)?_.value=J:null),title:t.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",cn,[f(L,{detections:e(D)},null,8,["detections"]),s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,dn)])]),_:1},8,["modelValue","title"])])}}}),mn=Ie(fn,[["__scopeId","data-v-0c981869"]]),pn={class:"w-full"},vn={key:0,class:"w-full"},gn={class:"flex flex-col justify-center items-center mb-5"},_n={for:"restoreInput",class:"cursor-pointer text-center text-sm"},hn=["accept"],yn={key:0,class:"text-red text-sm"},bn={key:1,class:"w-full flex flex-col items-center justify-center"},xn={class:"relative mb-4 w-full"},wn={class:"flex items-center justify-center"},$n={class:"mx-2"},kn={class:"disabled-text"},In={class:"mt-10"},Cn={class:"box-title w-full mb-3"},Sn={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Pn={class:"relative"},Dn=$e({__name:"VMotionDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(null),Q=l(Re.join(",")),z=l({}),h=l(!1),D=l(!1),_=l(!0),{mutateAsync:E,isPending:B}=A.detectMotionQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"motionDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),k.value.src="")},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Re.includes(t.type)&&t.size<=je?(i.value.push(t),te(()=>{I(t)})):t.size>je?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=je?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0,k.value.src=URL.createObjectURL(n),k.value.load(),k.value.onloadeddata=()=>{h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n));try{const o=await E({pluginName:T.value,formData:t}),m=new Blob([o],{type:"video/mp4"});D.value=!0,setTimeout(()=>{j.value&&(j.value.src=URL.createObjectURL(m),j.value.load())},300)}catch(o){console.error("Error detecting motion",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):_.value=!0},{immediate:!0,deep:!0}),(n,t)=>{const o=we,m=Ye;return a(),u("div",pn,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(L=>V(L),["prevent"])),onDragover:t[2]||(t[2]=S(L=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(L=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(L=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",bn,[s("div",xn,[s("video",{ref_key:"videoPlayer",ref:k,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)]),s("div",wn,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(L=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",$n,d(e(i)[0].name),1),s("span",kn,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",vn,[s("div",gn,[s("label",_n,d(n.$t("components.detection_interface.drop_or_select_video_to_detect_motion")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(Q),onChange:K},null,40,hn),e(p)?(a(),u("p",yn,d(n.$t("components.detection_interface.only_one_video_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.video_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",In,[s("div",Cn,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_motion"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Sn,d(n.$t("components.detection_interface.no_interface_config")),1))]),f(m,{modelValue:e(D),"onUpdate:modelValue":t[5]||(t[5]=L=>fe(D)?D.value=L:null),title:n.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",Pn,[s("video",{ref_key:"videoPlayerResult",ref:j,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)])]),_:1},8,["modelValue","title"])])}}}),Vn=Ie(Dn,[["__scopeId","data-v-18a3da94"]]),Ln={key:0,class:"flex items-center justify-center w-full h-full"},jn={key:1,class:"h-full w-full"},zn={class:"page-title"},En={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Fn={class:"box-title w-full mb-3"},On={key:0,class:"w-full h-full flex items-center justify-center"},An={key:1},Tn={class:"options-segments flex items-center justify-between"},Qn={class:"flex flex-col items-center justify-center"},Bn={class:"options-segments-text mt-2"},Nn={key:1},Mn={key:2},Un={key:3},Jn={key:4},Rn={class:"w-full full-inner-height"},Hn={class:"flex flex-col md:flex-row gap-2 h-full"},qn={class:"flex flex-col flex-1",style:{height:"200px","max-height":"200px"}},Yn={key:0,class:"w-full h-full flex items-center justify-center inner-component mt-0"},Xn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Gn={class:"box-title w-full mb-3"},Kn={key:0,class:"w-full h-full flex items-center justify-center"},Zn=["innerHTML"],Wn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},eo={class:"box-title w-full mb-3"},to={key:0,class:"w-full h-full flex items-center justify-center"},no=["innerHTML"],oo=["data-ignore-id"],so=$e({__name:"Plugin",setup(ne){se.registerLanguage("typescript",kt),se.registerLanguage("yaml",It),se.registerLanguage("json",Ct),se.registerLanguage("python",St);const A=new lt,C=new ke,T=mt(),i=Dt(),{mobileActive:b,smallMobileActive:p}=pt(),P=l(vt()),y=l(),$=l(!1),k=l([]),j=l(!1),Q=l(i.params.scope),z=l(i.params.pluginname),h=l(),D=l([]),_=l({name:"settings",icon:ce,isInterface:!1}),E=l(!1),B=l(),F=l(),[U,H]=Vt(),x=Y(()=>Q.value?`${Q.value}/${z.value}`:z.value);C.toggleQueryActivator("getPluginContractQuery",!1);const{data:V,isLoading:K}=C.getPluginQuery(x),{data:Z,isLoading:W}=C.getPluginConfigJsonQuery(x),{data:I,isLoading:q}=C.getPluginSchemaQuery(x),{data:n}=C.getPluginContractQuery(x),{data:t,isLoading:o}=C.getPluginReadmeQuery(x),{data:m,isLoading:L}=C.getPluginChangelogQuery(x),{mutateAsync:Ce,isPending:J}=C.actionButtonQuery(),{mutate:Xe,isPending:Ge}=C.patchPluginConfigQuery(),{mutate:Ke,isPending:Ze}=A.addCameraExtensionQuery(),{mutate:We,isPending:et}=A.removeCameraExtensionQuery(),Oe=Y(()=>!!(K.value||W.value||q.value||o.value||L.value)),pe=Y(()=>!!(Ze.value||et.value)),le=Y(()=>!!($.value||J.value||Ge.value)),ve=Y(()=>{var r,c,N;return!!(I.value||(r=n.value)!=null&&r.cameras.length||(c=n.value)!=null&&c.contract.extension||(N=n.value)!=null&&N.contract.supportAdditionalCameras)}),Se=Pt("commonmark",{highlight(r,c){if(c&&se.getLanguage(c))try{return'<pre><code class="hljs">'+se.highlight(r,{language:c,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+Se.utils.escapeHtml(r)+"</code></pre>"}});X(()=>i.params.pluginname,()=>{z.value=i.params.pluginname},{deep:!0,immediate:!0}),X(h,r=>{te(()=>j.value=!!r)}),X(I,()=>{q.value?C.toggleQueryActivator("getPluginContractQuery",!1):C.toggleQueryActivator("getPluginContractQuery",!0)},{deep:!0,immediate:!0}),X(n,()=>{var ge,_e,he,ye,be,xe,ie,re,ue,v;const r=[];let c=!1,N=!1;((ge=n.value)==null?void 0:ge.contract.extension)==="motionDetection"&&(N=!0,r.push({name:"motion_detection",icon:oe,isInterface:!0}),_.value={name:"motion_detection",icon:oe,isInterface:!0}),((_e=n.value)==null?void 0:_e.contract.extension)==="objectDetection"&&(N=!0,r.push({name:"object_detection",icon:oe,isInterface:!0}),_.value={name:"object_detection",icon:oe,isInterface:!0}),((he=n.value)==null?void 0:he.contract.extension)==="audioDetection"&&(N=!0,r.push({name:"audio_detection",icon:oe,isInterface:!0}),_.value={name:"audio_detection",icon:oe,isInterface:!0}),I.value&&I.value.schema&&Object.keys(I.value.schema).length&&(r.push({name:"settings",icon:ce,isInterface:!1}),c=!0,N||(_.value={name:"settings",icon:ce,isInterface:!1})),((ye=n.value)!=null&&ye.cameras.length||(be=n.value)!=null&&be.contract.extension||(xe=n.value)!=null&&xe.contract.supportAdditionalCameras)&&(r.push({name:"cameras",icon:Ne,isInterface:!1}),!c&&!N&&(_.value={name:"cameras",icon:Ne,isInterface:!1})),D.value=r,((ie=n.value)!=null&&ie.contract.extension||(re=n.value)!=null&&re.contract.supportAdditionalCameras)&&((ue=n.value)!=null&&ue.cameras.length)&&(k.value=(v=n.value)==null?void 0:v.cameras.filter(ee=>ee.extensions.plugins.includes(x.value)).map(ee=>ee.name))},{deep:!0,immediate:!0}),X(E,r=>{r||(B.value=void 0,F.value=void 0)});const tt=async r=>{if(!I.value)return;$.value=!0;const c=ut(I.value.schema,r);Xe({pluginName:x.value,configData:c},{onSettled:()=>{$.value=!1}})},nt=async r=>{$.value=!0,await Ce({pluginName:x.value,actionId:r.actionId,payload:r.payload},{onSuccess:c=>{c!=null&&c.toast&&ze[c.toast.type](c.toast.message),c!=null&&c.schema&&Object.keys(c.schema).length&&(F.value=r.payload,B.value=c,E.value=!0)},onSettled:()=>{$.value=!1}})},ot=async r=>{V.value&&(k.value.includes(r.name)?We({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=k.value.filter(c=>c!==r.name)}}):Ke({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=[...k.value,r.name]}}))};return dt(()=>{y.value=T.connectToNamespace("/plugins")}),ft(()=>{var r,c;(c=(r=y.value)==null?void 0:r.end)==null||c.call(r)}),(r,c)=>{var ie,re,ue;const N=we,ge=Vn,_e=mn,he=qt,ye=ct,be=it,xe=rt;return a(),u("main",{class:G(["w-full h-full",{"px-0":e(p)}])},[e(Oe)?(a(),u("div",Ln,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",jn,[s("div",{class:G(["mb-3 flex w-full items-center",{"px-2":e(p)}]),style:{height:"30px"}},[s("h1",zn,d((ie=e(V))==null?void 0:ie.displayName),1)],2),f(e(U),null,{default:g(()=>[s("div",{class:"plugin-settings-box flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"40%":"100%"})},[s("div",En,[s("div",Fn,d(r.$t("views.plugin.plugin_settings")),1),e(V)?(a(),u("div",An,[s("div",Tn,[f(gt,{modelValue:e(_),"onUpdate:modelValue":c[0]||(c[0]=v=>fe(_)?_.value=v:null),height:"100%",grow:"","slider-color":"#df2a4c","hide-slider":e(pe)||e(le)},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O(_t,{key:ee,value:v,disabled:e(Oe)||v.isInterface&&e(V).disabled,"min-width":"auto"},{default:g(()=>[s("div",Qn,[f(ae,{size:"20"},{default:g(()=>[R(d(v.icon),1)]),_:2},1024),s("span",Bn,d(v.isInterface?r.$t("views.plugin.segment_tab_interface"):r.$t(`views.plugin.segment_tab_${v.name.toLowerCase()}`)),1)])]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue","hide-slider"])]),e(pe)||e(le)?(a(),O(ht,{key:0,height:"2",color:"#df2a4c",indeterminate:"",style:{"margin-top":"-2px"}})):w("",!0),f(yt,{modelValue:e(_),"onUpdate:modelValue":c[1]||(c[1]=v=>fe(_)?_.value=v:null),class:"box-content w-full flex-1 mt-3",continuous:""},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O($t,{key:ee,value:{name:v.name,icon:v.icon,isInterface:v.isInterface},disabled:v.isInterface&&e(V).disabled},{default:g(()=>{var Ae;return[v.name==="settings"&&e(I)?(a(),O(N,{key:0,config:e(Z)||{},"ui-schema":e(I),loading:e(le),onOnFormSubmit:tt,onOnSubmit:nt},null,8,["config","ui-schema","loading"])):w("",!0),v.name==="cameras"?(a(),u("div",Nn,[(a(!0),u(Pe,null,De((Ae=e(n))==null?void 0:Ae.cameras,M=>{var Te,Qe;return a(),u("div",{key:M.name},[!((Te=e(n))!=null&&Te.contract.extension)&&!((Qe=e(n))!=null&&Qe.contract.supportAdditionalCameras)?(a(),O(He,{key:0,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onClick:select":()=>r.$router.push(`/cameras/${M.name}`)},{default:g(()=>[f(qe,{value:M.name,class:"px-2"},{append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value"])]),_:2},1032,["disabled","onClick:select"])):(a(),O(He,{key:1,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onUpdate:selected":()=>ot(M)},{default:g(()=>[f(qe,{class:"px-2",value:e(V).pluginName,active:e(k).includes(M.name)},{prepend:g(()=>[f(bt,{start:""},{default:g(()=>[f(xt,{"model-value":e(k).includes(M.name),color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value","active"])]),_:2},1032,["disabled","onUpdate:selected"])),f(wt,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"my-1"})])}),128))])):w("",!0),v.name==="motion_detection"?(a(),u("div",Mn,[f(ge,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="object_detection"?(a(),u("div",Un,[f(_e,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="audio_detection"?(a(),u("div",Jn,[f(he,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0)]}),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])])):(a(),u("div",On,[f(de,{color:"#df2a4c",indeterminate:""})]))])],4)]),_:1}),s("div",Rn,[s("div",Hn,[s("div",{class:"w-full flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"60%":"100%"})},[s("div",qn,[e(V)?(a(),O(ye,{key:1,ref:"pluginRef",plugin:e(V),"min-height":"175px",height:"100%",width:"100%","border-radius":"4px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":"",onIsLoading:c[2]||(c[2]=v=>$.value=v)},null,8,["plugin"])):(a(),u("div",Yn,[f(de,{color:"#df2a4c",indeterminate:""})]))]),e(ve)&&e(b)?(a(),O(e(H),{key:0})):w("",!0),s("div",Xn,[s("div",Gn,d(r.$t("views.plugin.readme")),1),e(o)?(a(),u("div",Kn,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(t)||r.$t("views.plugin.no_readme"))},null,8,Zn))]),s("div",Wn,[s("div",eo,d(r.$t("views.plugin.changelog")),1),e(L)?(a(),u("div",to,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(m)||r.$t("views.plugin.no_changelog"))},null,8,no))])],4),e(ve)&&!e(b)?(a(),O(e(H),{key:0})):w("",!0)])])])),e(h)?(a(),u("div",{key:2,"data-ignore-id":e(P)},[f(be,{"camera-name":e(h),show:e(j),onClose:c[3]||(c[3]=v=>h.value=void 0)},null,8,["camera-name","show"])],8,oo)):w("",!0),(ue=(re=e(B))==null?void 0:re.schema)!=null&&ue.config?(a(),O(xe,{key:3,modelValue:e(E),"onUpdate:modelValue":c[4]||(c[4]=v=>fe(E)?E.value=v:null),"ui-schema":{schema:e(B).schema},"plugin-config":e(F)||{},"plugin-name":e(x)},null,8,["modelValue","ui-schema","plugin-config","plugin-name"])):w("",!0)],2)}}}),ts=Ie(so,[["__scopeId","data-v-aa826472"]]);export{ts as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as S,d as C,y as I,w as R}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{_ as Q}from"./VPluginCard.B7M71ABH.0.0.34-alpha.6.js";import{P as z}from"./plugins.DkVCVMms.0.0.34-alpha.6.js";import{c as T,Q as j,m as A,n as F,C as U,b as G,A as q,e as E}from"./vuetify.dlIDGkOi.0.0.34-alpha.6.js";import{G as B,r,w as H,b as s,d as i,R as l,ab as f,f as n,a9 as c,u as e,i as L,a7 as M,ac as k,Q as P,ad as $,k as J,S as K,P as O,g as V,_ as W,p as X}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import{e as Y}from"./@mdi.C1UTQKuc.0.0.34-alpha.6.js";import"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import"./vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js";import"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import"./axios.C-n2IhIP.0.0.34-alpha.6.js";import"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import"./pinia.CBIup3aH.0.0.34-alpha.6.js";import"./vue-router.DbntwPAd.0.0.34-alpha.6.js";import"./@vueuse.D9NHhWYc.0.0.34-alpha.6.js";import"./nprogress.CO0HPuzU.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./vee-validate.CghN0yPF.0.0.34-alpha.6.js";import"./@vee-validate.vQEQxxhx.0.0.34-alpha.6.js";import"./zod.DnW1_kUe.0.0.34-alpha.6.js";import"./uuid.DvF23Exx.0.0.34-alpha.6.js";import"./socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js";import"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js";import"./rxjs.DKQuv6LI.0.0.34-alpha.6.js";import"./tslib.9k7AwCpt.0.0.34-alpha.6.js";import"./vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js";import"./ace-builds.DndaCQ18.0.0.34-alpha.6.js";import"./@vueform.CPzo51Ad.0.0.34-alpha.6.js";import"./VConsole.DNiPpzW6.0.0.34-alpha.6.js";import"./types.Cz9TaZAP.0.0.34-alpha.6.js";const Z={class:"v-label"},ee={class:"flex flex-row items-center justify-center w-full mt-8"},te={class:"flex flex-col items-center justify-center w-full mt-3"},le={key:0,class:"my-3"},oe={key:1,class:"search-container w-full overflow-scroll hide-scrollbar"},se=B({__name:"VPluginSearch",setup(N){const a=new z,{smallMobileActive:v}=S(),y=r({page:1,pageSize:-1}),w=r({}),u=r(""),d=r([]),{data:g,isLoading:p}=a.searchPluginsQuery(w,y);H(g,t=>{t!=null&&t.result&&(d.value=t.result.filter(o=>!o.installPath))},{immediate:!0,deep:!0});const h=t=>{t.preventDefault(),w.value.pluginname=u.value??""};return(t,o)=>{const x=Q;return s(),i("div",null,[l(j,{class:"ml-auto",onSubmit:h},{default:f(()=>[n("label",Z,c(t.$t("components.form.label.name")),1),l(T,{modelValue:e(u),"onUpdate:modelValue":o[0]||(o[0]=_=>L(u)?u.value=_:null),placeholder:"camera-ui-","hide-details":"",clearable:"",solo:"",variant:"outlined",density:"comfortable","onClick:clear":h},null,8,["modelValue"])]),_:1}),n("div",ee,[n("h3",null,c(t.$t("components.plugin_search.plugins")),1),l(A,{size:"small",class:"ml-auto",color:"#df2a4c"},{default:f(()=>[M(c(e(d).length),1)]),_:1})]),l(F,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"mt-3"}),l(U,{active:e(p),indeterminate:e(p),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"]),n("div",te,[!e(p)&&!e(d).length?(s(),i("div",le,c(t.$t("views.plugins.no_plugins")),1)):e(p)?J("",!0):(s(),i("div",oe,[n("div",{class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(v)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(d),(_,m)=>(s(),i("div",{key:m,class:"relative"},[l(x,{plugin:_,height:"200px","max-height":"200px",width:"100%",background:"var(--background-inner-component-card)","min-width":e(v)?"100%":"450px","show-install-button":"","show-plugin-type":!1,"show-plugin-code":!1,"show-full-plugin-name":""},null,8,["plugin","min-width"])]))),128))],4)]))])])}}}),ie=C(se,[["__scopeId","data-v-0d35625b"]]),ae={class:"page-title"},ne={class:"w-full flex justify-center items-center mt-3"},re=B({__name:"Plugins",setup(N){const{smallMobileActive:a}=S(),v=I(),y=new z,w=r(null),u=r(),d=r({page:1,pageSize:-1}),g=r(!1),{data:p,isLoading:h}=y.getPluginsQuery(d);return K(()=>{u.value=v.connectToNamespace("/plugins")}),O(()=>{var t,o;(o=(t=u.value)==null?void 0:t.end)==null||o.call(t)}),(t,o)=>{const x=ie,_=R;return s(),i("main",{class:V(["w-full h-full",{"px-0":e(a)}])},[n("div",{class:V(["mb-3 flex w-full items-center",{"px-2":e(a)}]),style:{height:"30px"}},[n("h1",ae,c(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1)],2),l(W,{name:"fade",tag:"div"},{default:f(()=>{var m;return[e(h)?(s(),i("div",{key:0,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(),i(P,null,$(15,b=>l(q,{key:b,elevation:1,type:"image",class:"relative",style:{"border-radius":"8px",overflow:"hidden"},height:175})),64))],4)):(m=e(p))!=null&&m.result.length?(s(),i("div",{key:2,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(p).result,(b,D)=>(s(),i("div",{key:D,class:"relative"},[l(Q,{ref_for:!0,ref_key:"pluginRef",ref:w,plugin:b,height:"200px","max-height":"200px",width:"100%","min-width":e(a)?"100%":"450px","border-radius":e(a)?"0px":"8px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":""},null,8,["plugin","min-width","border-radius"])]))),128))],4)):(s(),i("div",{key:1,class:V(["disabled-text",{"px-2":e(a)}])},c(t.$t("views.plugins.no_plugins")),3))]}),_:1}),n("div",ne,[l(G,{variant:"text",color:"#df2a4c",icon:"",onClick:o[0]||(o[0]=X(m=>g.value=!0,["prevent"]))},{default:f(()=>[l(E,{size:"30"},{default:f(()=>[M(c(e(Y)),1)]),_:1})]),_:1})]),l(_,{modelValue:e(g),"onUpdate:modelValue":o[1]||(o[1]=m=>L(g)?g.value=m:null),title:t.$t("components.dialog.title.search_plugin"),"hide-confirm-button":"",loading:e(h),fullscreen:""},{content:f(()=>[l(x)]),_:1},8,["modelValue","title","loading"])],2)}}}),qe=C(re,[["__scopeId","data-v-8648604f"]]);export{qe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as p}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{G as m,b as s,d as a,f as r,a9 as l,g as i,u as e}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import"./vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js";import"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import"./axios.C-n2IhIP.0.0.34-alpha.6.js";import"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import"./pinia.CBIup3aH.0.0.34-alpha.6.js";import"./vue-router.DbntwPAd.0.0.34-alpha.6.js";import"./@vueuse.D9NHhWYc.0.0.34-alpha.6.js";import"./nprogress.CO0HPuzU.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./vuetify.dlIDGkOi.0.0.34-alpha.6.js";import"./@mdi.C1UTQKuc.0.0.34-alpha.6.js";import"./vee-validate.CghN0yPF.0.0.34-alpha.6.js";import"./@vee-validate.vQEQxxhx.0.0.34-alpha.6.js";import"./zod.DnW1_kUe.0.0.34-alpha.6.js";import"./uuid.DvF23Exx.0.0.34-alpha.6.js";import"./socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js";import"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js";import"./rxjs.DKQuv6LI.0.0.34-alpha.6.js";import"./tslib.9k7AwCpt.0.0.34-alpha.6.js";import"./vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";const n={class:"page-title"},H=m({__name:"Recordings",setup(c){const{smallMobileActive:t}=p();return(o,f)=>(s(),a("main",{class:i(["w-full h-full",{"px-0":e(t)}])},[r("div",{class:i(["flex w-full items-center",{"px-2":e(t)}]),style:{height:"30px"}},[r("h1",n,l(o.$t(`views.${String(o.$route.name).toLowerCase()}.title`)),1)],2)],2))}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{b as o,d as t}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import"./vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js";import"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import"./axios.C-n2IhIP.0.0.34-alpha.6.js";import"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import"./pinia.CBIup3aH.0.0.34-alpha.6.js";import"./vue-router.DbntwPAd.0.0.34-alpha.6.js";import"./@vueuse.D9NHhWYc.0.0.34-alpha.6.js";import"./nprogress.CO0HPuzU.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./vuetify.dlIDGkOi.0.0.34-alpha.6.js";import"./@mdi.C1UTQKuc.0.0.34-alpha.6.js";import"./vee-validate.CghN0yPF.0.0.34-alpha.6.js";import"./@vee-validate.vQEQxxhx.0.0.34-alpha.6.js";import"./zod.DnW1_kUe.0.0.34-alpha.6.js";import"./uuid.DvF23Exx.0.0.34-alpha.6.js";import"./socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js";import"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js";import"./rxjs.DKQuv6LI.0.0.34-alpha.6.js";import"./tslib.9k7AwCpt.0.0.34-alpha.6.js";import"./vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";const i={};function m(p,e){return o(),t("div",null,"Test")}const G=r(i,[["render",m]]);export{G as default};
|