aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/PULL_REQUEST_TEMPLATE/pull_request_template.md20
-rw-r--r--.github/workflows/build.yml34
-rw-r--r--.mailmap8
-rw-r--r--changelog.md16
-rw-r--r--compiler/ldgallery.1.md4
-rw-r--r--compiler/package.yaml8
-rw-r--r--compiler/src/Compiler.hs6
-rw-r--r--compiler/src/FileProcessors.hs24
-rw-r--r--compiler/src/Input.hs6
-rw-r--r--compiler/src/ItemProcessors.hs5
-rw-r--r--compiler/src/Resource.hs16
-rw-r--r--compiler/stack.yaml2
-rw-r--r--compiler/stack.yaml.lock8
-rw-r--r--devdoc/design-notes.md (renamed from design-notes.md)132
-rw-r--r--devdoc/viewer_index_v2.1.md167
-rw-r--r--example/src/Misc Media/A Trip to the Moon.mp4.yaml7
-rw-r--r--example/src/Misc Media/First Geneva Convention.epubbin0 -> 80897 bytes
-rw-r--r--example/src/gallery.yaml1
-rw-r--r--flake.lock24
-rw-r--r--flake.nix71
-rw-r--r--ldgallery-quickstart.7.md4
-rw-r--r--readme.md3
-rw-r--r--viewer/.env.development1
-rw-r--r--viewer/ldgallery-viewer.7.md16
-rw-r--r--viewer/package.json24
-rw-r--r--viewer/src/@types/gallery.ts6
-rw-r--r--viewer/src/@types/itemType.ts1
-rw-r--r--viewer/src/assets/scss/theme.scss3
-rw-r--r--viewer/src/components/async/AsyncLdMarkdown.vue14
-rw-r--r--viewer/src/locales/en.yml4
-rw-r--r--viewer/src/services/navigation.ts14
-rw-r--r--viewer/src/services/ui/ldItemResourceUrl.ts8
-rw-r--r--viewer/src/views/GalleryNavigation.vue2
-rw-r--r--viewer/src/views/ItemThumbnail.vue6
-rw-r--r--viewer/src/views/MainLayout.vue5
-rw-r--r--viewer/src/views/item_handlers/AudioViewer.vue15
-rw-r--r--viewer/src/views/item_handlers/DownloadViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/MarkdownViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/PdfViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/PictureViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/PlainTextViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/VideoViewer.vue4
-rw-r--r--viewer/src/views/item_handlers/async/AsyncEpubViewer.vue180
-rw-r--r--viewer/src/views/item_handlers/async/index.ts23
-rw-r--r--viewer/src/views/layout/left/LayoutInformation.vue8
-rw-r--r--viewer/src/views/layout/left/LayoutTagInput.vue16
-rw-r--r--viewer/src/views/layout/top/LayoutCommand.vue37
-rw-r--r--viewer/src/views/layout/top/LayoutTop.vue10
-rw-r--r--viewer/vue.config.js4
-rw-r--r--viewer/yarn.lock1787
50 files changed, 1895 insertions, 879 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
new file mode 100644
index 0000000..7c48653
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
@@ -0,0 +1,20 @@
1---
2name: Generic pull request
3about: Create a pull request to propose some changes.
4title: ''
5labels: ''
6assignees: ''
7---
8
9### What changed
10
11
12### Why the changes
13
14
15### Before-merge checklist
16
17- [ ] Changes are tested.
18- [ ] Documentation is up to date with the changes.
19- [ ] Commit history is clean and descriptive.
20
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f5ca509..7387fe7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,8 +5,8 @@ jobs:
5 build-viewer: 5 build-viewer:
6 runs-on: ubuntu-20.04 6 runs-on: ubuntu-20.04
7 steps: 7 steps:
8 - uses: actions/checkout@v2 8 - uses: actions/checkout@v3
9 - uses: actions/setup-node@v1 9 - uses: actions/setup-node@v3
10 with: 10 with:
11 # Latest version officially tested for Ld 11 # Latest version officially tested for Ld
12 node-version: 16.14.2 12 node-version: 16.14.2
@@ -16,7 +16,7 @@ jobs:
16 yarn 16 yarn
17 yarn run lint 17 yarn run lint
18 yarn run build 18 yarn run build
19 - uses: actions/upload-artifact@v2 19 - uses: actions/upload-artifact@v3
20 with: 20 with:
21 name: viewer-dist 21 name: viewer-dist
22 path: viewer/dist 22 path: viewer/dist
@@ -30,14 +30,14 @@ jobs:
30 os: [ ubuntu-20.04, windows-2019 ] 30 os: [ ubuntu-20.04, windows-2019 ]
31 runs-on: ${{ matrix.os }} 31 runs-on: ${{ matrix.os }}
32 steps: 32 steps:
33 - uses: actions/checkout@v2 33 - uses: actions/checkout@v3
34 - uses: actions/cache@v2 34 - uses: actions/cache@v3
35 with: 35 with:
36 path: ~/.stack 36 path: ~/.stack
37 key: compiler-${{ runner.os }}-${{ hashFiles('compiler/stack.yaml') }} 37 key: compiler-${{ runner.os }}-${{ hashFiles('compiler/stack.yaml') }}
38 - uses: haskell/actions/setup@v1 38 - uses: haskell/actions/setup@v2
39 with: 39 with:
40 ghc-version: 8.10.4 40 ghc-version: 9.2.4
41 enable-stack: true 41 enable-stack: true
42 - name: Build Haskell Stack project 42 - name: Build Haskell Stack project
43 working-directory: compiler 43 working-directory: compiler
@@ -49,7 +49,7 @@ jobs:
49 --flag ldgallery-compiler:portable \ 49 --flag ldgallery-compiler:portable \
50 --copy-bins \ 50 --copy-bins \
51 --local-bin-path dist 51 --local-bin-path dist
52 - uses: actions/upload-artifact@v2 52 - uses: actions/upload-artifact@v3
53 with: 53 with:
54 name: compiler-dist-${{ matrix.os }} 54 name: compiler-dist-${{ matrix.os }}
55 path: compiler/dist 55 path: compiler/dist
@@ -60,14 +60,14 @@ jobs:
60 needs: [ build-viewer, build-compiler ] 60 needs: [ build-viewer, build-compiler ]
61 runs-on: ubuntu-20.04 61 runs-on: ubuntu-20.04
62 steps: 62 steps:
63 - uses: actions/checkout@v2 63 - uses: actions/checkout@v3
64 - name: Bundle ldgallery viewer 64 - name: Bundle ldgallery viewer
65 uses: actions/download-artifact@v2 65 uses: actions/download-artifact@v3
66 with: 66 with:
67 name: viewer-dist 67 name: viewer-dist
68 path: dist/viewer 68 path: dist/viewer
69 - name: Bundle ldgallery compiler 69 - name: Bundle ldgallery compiler
70 uses: actions/download-artifact@v2 70 uses: actions/download-artifact@v3
71 with: 71 with:
72 name: compiler-dist-ubuntu-20.04 72 name: compiler-dist-ubuntu-20.04
73 path: dist 73 path: dist
@@ -82,7 +82,7 @@ jobs:
82 pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7 82 pandoc --standalone --to man viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7
83 cp changelog.md dist/ 83 cp changelog.md dist/
84 cp license.md dist/ 84 cp license.md dist/
85 - uses: actions/upload-artifact@v2 85 - uses: actions/upload-artifact@v3
86 with: 86 with:
87 name: archive-linux-amd64 87 name: archive-linux-amd64
88 path: dist 88 path: dist
@@ -91,18 +91,18 @@ jobs:
91 needs: [ build-viewer, build-compiler ] 91 needs: [ build-viewer, build-compiler ]
92 runs-on: ubuntu-20.04 92 runs-on: ubuntu-20.04
93 steps: 93 steps:
94 - uses: actions/checkout@v2 94 - uses: actions/checkout@v3
95 - uses: actions/cache@v2 95 - uses: actions/cache@v3
96 with: 96 with:
97 path: ~/downloads 97 path: ~/downloads
98 key: archive-windows-vendored 98 key: archive-windows-vendored
99 - name: Bundle ldgallery viewer 99 - name: Bundle ldgallery viewer
100 uses: actions/download-artifact@v2 100 uses: actions/download-artifact@v3
101 with: 101 with:
102 name: viewer-dist 102 name: viewer-dist
103 path: dist/viewer 103 path: dist/viewer
104 - name: Bundle ldgallery compiler 104 - name: Bundle ldgallery compiler
105 uses: actions/download-artifact@v2 105 uses: actions/download-artifact@v3
106 with: 106 with:
107 name: compiler-dist-windows-2019 107 name: compiler-dist-windows-2019
108 path: dist 108 path: dist
@@ -135,7 +135,7 @@ jobs:
135 7z e ~/downloads/"$MAGICK_LATEST" -so LICENSE.txt > dist/magick.license.txt 135 7z e ~/downloads/"$MAGICK_LATEST" -so LICENSE.txt > dist/magick.license.txt
136 7z e ~/downloads/"$MAGICK_LATEST" -so NOTICE.txt > dist/magick.notice.txt 136 7z e ~/downloads/"$MAGICK_LATEST" -so NOTICE.txt > dist/magick.notice.txt
137 7z e ~/downloads/"$MAGICK_LATEST" -so README.txt > dist/magick.readme.txt 137 7z e ~/downloads/"$MAGICK_LATEST" -so README.txt > dist/magick.readme.txt
138 - uses: actions/upload-artifact@v2 138 - uses: actions/upload-artifact@v3
139 with: 139 with:
140 name: archive-win64 140 name: archive-win64
141 path: dist 141 path: dist
diff --git a/.mailmap b/.mailmap
index f484a99..e5dab13 100644
--- a/.mailmap
+++ b/.mailmap
@@ -2,8 +2,8 @@
2# git config --global log.mailmap true 2# git config --global log.mailmap true
3# git log --use-mailmap 3# git log --use-mailmap
4 4
5zeroinformatique <10961896+zeroinformatique@users.noreply.github.com> <contact@zeroinformatique.fr> 5zeroinformatique <contact@zeroinformatique.fr> <contact@zeroinformatique.fr>
6zeroinformatique <10961896+zeroinformatique@users.noreply.github.com> <OzoneGrif@users.noreply.github.com> 6zeroinformatique <contact@zeroinformatique.fr> <10961896+zeroinformatique@users.noreply.github.com>
7zeroinformatique <contact@zeroinformatique.fr> <OzoneGrif@users.noreply.github.com>
7 8
8pacien <pacien@users.noreply.github.com> 9pacien <pacien.trangirard@pacien.net> <pacien@users.noreply.github.com>
9