Skip to content

Commit

Permalink
close #144
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 10, 2022
1 parent 06e7bc2 commit a9f6da8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion src/pages/about/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
href="https://github.com/anucvml/vidat"
target="_blank"
><img
v-if="$q.dark.isActive"
style="height: 24px; margin-left: 6px;"
:src="$q.dark.isActive ? '/img/github-logo-dark.png' : '/img/github-logo-light.png'"
src="/img/github-logo-dark.png"
alt="github"
/><img
v-else
style="height: 24px; margin-left: 6px;"
src="/img/github-logo-light.png"
alt="github"
/></a></h5>
<div class="text-body1">Developed by the Australian National University Machine Learning and Computer Vision group
Expand Down
4 changes: 2 additions & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: [
{
name: 'annotation',
Expand Down
2 changes: 1 addition & 1 deletion src/worker/video-process-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ onmessage = async (event) => {
headers['Range'] = `bytes=${rightOffset}-${rightOffset + probeUnit -
1}`
}
const response = await fetch(event.data.src, {
const response = await fetch((new URL(event.data.src, new URL('..', event.target.location)).href), {
signal: abortController.signal,
headers
})
Expand Down
4 changes: 3 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { defineConfig } from 'vite'
import monacoEditorPlugin from 'vite-plugin-monaco-editor'

export default defineConfig({
base: '',
server: {
host: '0.0.0.0',
open: true
Expand All @@ -30,7 +31,8 @@ export default defineConfig({
autoImportComponentCase: 'pascal'
}),
monacoEditorPlugin({
languageWorkers: ['editorWorkerService', 'json']
languageWorkers: ['editorWorkerService', 'json'],
publicPath: 'https://unpkg.com/vite-plugin-monaco-editor@1.0.10/cdn'
})
],
define: {
Expand Down

0 comments on commit a9f6da8

Please sign in to comment.