Skip to content

Commit d993597

Browse files
committed
Merge branch 'main' of https://github.com/g122622/gcrypt
2 parents b121bb7 + 8b02018 commit d993597

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ jobs:
9595
prerelease: true
9696
files: "dist_electron/**"
9797
env:
98-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/components/ImageViewer/ImageViewer.vue

+13-9
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@
1515

1616
<script setup lang="ts">
1717
// import { onMounted } from "vue"
18-
import { ref, onMounted, onUnmounted } from "vue"
18+
// import { ref, onMounted, nextTick, onUnmounted } from "vue"
19+
// import Viewer from 'viewerjs';
20+
// import 'viewerjs/dist/viewer.css'
1921
20-
const loading = ref<boolean>(true)
21-
let viewer = null
22-
interface Props {
22+
// const loading = ref<boolean>(true)
23+
// let viewer: Viewer = null
24+
// interface Props {
2325
images: Array<{
2426
src: string
2527
}>
2628
}
27-
const props = defineProps<Props>()
29+
// const props = defineProps<Props>()
2830
29-
const options = {
31+
/* const options = {
3032
inline: false,
3133
button: true,
3234
navbar: true,
@@ -47,15 +49,17 @@ const options = {
4749
}
4850
4951
onMounted(async () => {
50-
// viewer = new Viewer(document.getElementById('view-img'), {
51-
// ...options
52-
// })
52+
viewer = new Viewer(document.getElementById('view-img'), {
53+
...options
54+
})
5355
viewer.show()
5456
loading.value = false
5557
})
5658
onUnmounted(async () => {
5759
viewer.destroy()
5860
})
61+
62+
*/
5963
</script>
6064

6165
<!-- Add "scoped" attribute to limit CSS to this component only -->

0 commit comments

Comments
 (0)