Skip to content

Commit

Permalink
✨ new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 15, 2022
1 parent e23b7fb commit a9fca0d
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 60 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div align="center">
<a href="https://www.anu.edu.au/" target="_blank">
<img src="public/img/logo.svg" alt="ANU logo">
</a>
<img width="96px" height="96px" src="public/img/logo.svg" alt="Vidat logo">

# Vidat

Expand Down
105 changes: 103 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"dependencies": {
"@quasar/extras": "^1.12.5",
"@vueuse/core": "^8.0.1",
"jszip": "^3.7.1",
"lodash.clonedeep": "^4.5.0",
"monaco-editor": "^0.32.1",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
10 changes: 10 additions & 0 deletions public/img/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 9 additions & 55 deletions public/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
size="md"
>
<img
v-if="q.dark.isActive"
src="/img/logo-dark.svg"
alt="logo"
>
<img
v-else
src="/img/logo.svg"
alt="logo"
>
Expand Down Expand Up @@ -97,6 +103,7 @@
</template>

<script setup>
import { useFavicon, usePreferredDark } from '@vueuse/core'
import { storeToRefs } from 'pinia'
import { useQuasar } from 'quasar'
import { computed } from 'vue'
Expand Down Expand Up @@ -291,11 +298,16 @@ if (showPopup) {
preferenceStore.showPopup = false
}
}
// un-save notice
document.addEventListener('beforeunload', event => {
if (annotationStore.hasVideo && !mainStore.isSaved) {
event.returnValue = 'The annotations are not saved!'
}
})
// auto change favicon
const isDark = usePreferredDark()
const favicon = computed(() => isDark.value ? '/img/logo-dark.svg' : '/img/logo.svg')
useFavicon(favicon)
</script>
<style lang="sass">
Expand Down
9 changes: 9 additions & 0 deletions src/pages/annotation/components/AnnotationSkeleton.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<template>
<div class="column flex-center">
<img
v-if="q.dark.isActive"
style="width: 150px; padding: 100px 0 50px 0;"
src="/img/logo-dark.svg"
alt="Logo"
>
<img
v-else
style="width: 150px; padding: 100px 0 50px 0;"
src="/img/logo.svg"
alt="Logo"
Expand Down Expand Up @@ -48,10 +55,12 @@
</template>

<script setup>
import { useQuasar } from 'quasar'
import VersionBadge from '~/components/VersionBadge.vue'
import { useAnnotation } from '~/hooks/annotation.js'
import { useVideo } from '~/hooks/video.js'
const q = useQuasar()
const { handleOpen } = useVideo()
const { handleLoad } = useAnnotation()
</script>

0 comments on commit a9fca0d

Please sign in to comment.