Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
35839bc
Updated build command for PDF.js. Also added dependency description t…
Jun 13, 2015
3368216
Added basic support for password protected PDF files.
Jun 13, 2015
5238af4
Added basic printing functionallity. Currently only works for one page.
Jun 13, 2015
88b1d8d
Updated PDFjs to 1.1.114
Jun 13, 2015
ef5f711
Local changes for my fileviewer plugin
Jun 13, 2015
c0a3395
Merged #28 - ImageViewerPlugin.js
Jun 16, 2015
528342f
Improved ImageViewerPlugin.js
Jun 16, 2015
c23240b
Added BMP Image support.
Jun 16, 2015
b1779d2
First implementation of VideoJS
Jun 16, 2015
e69edc9
Added support for Audio and Video files
Jun 17, 2015
d46387f
Do not load videjs from cdn
Jul 1, 2015
9eca904
tmp commit
Jul 15, 2015
7748999
Merge pull request #1 from h44z/VideoViewer
h44z Jul 15, 2015
8c4b98f
Merge remote-tracking branch 'upstream/master'
Aug 11, 2015
5f0e7c4
Updated PDF.js to v1.1.366
Aug 11, 2015
936f593
Issue : Using arrow keys in "ImagePreviewerPlugin" duplicates the rot…
chintankukadiya18 Nov 7, 2015
732f3ac
Merge pull request #2 from chintansoni54/bugfix-ImageViewerPlugin
h44z Nov 8, 2015
136dc71
updated video-js to 5.0.2
Nov 10, 2015
937de1a
Prevented document name to go on multiple lines #164
Nov 10, 2015
a5d0aa0
Merge remote-tracking branch 'upstream/master'
Nov 10, 2015
33d0fa3
Updated version number and WebODF to 0.5.10
Nov 10, 2015
6afcca4
Fixed flash fallback for video-js
Nov 10, 2015
d632ab1
Fixed PdfJS version, compilation ok
Ryusei217 Apr 5, 2016
36ebc2c
style points
vandernorth Jul 7, 2016
1b830ab
Move stuff around
vandernorth Jul 7, 2016
544608a
Moved more stuff around
vandernorth Jul 7, 2016
28fd7b6
Added files to release
vandernorth Jul 7, 2016
0f24746
pdf.js 1.4.x
vandernorth Jul 7, 2016
77b7f4d
v0.6.3
vandernorth Jul 7, 2016
eb8cf37
v0.6.4
vandernorth Jul 7, 2016
fc928a7
Update build files
kosssi Oct 26, 2016
d68211f
Remove .idea folder on npm :dash:
kosssi Oct 26, 2016
fca5d69
Add params ?mimetype
kosssi Oct 26, 2016
986587b
Build
kosssi Oct 26, 2016
412b653
Add params
kosssi Oct 28, 2016
52ad722
Build
kosssi Oct 28, 2016
f29341d
Fix port display
kosssi Oct 28, 2016
41d97d0
Add cozy design
kosssi Nov 2, 2016
8f95770
Add video/audio to cozy viewer
kosssi Nov 3, 2016
23f3980
Add video.js with npm
kosssi Nov 15, 2016
8034f1a
Upgrade video.js
kosssi Nov 15, 2016
16f7bd6
Build with new video.js
kosssi Nov 15, 2016
cc30a11
Fix padding
kosssi Nov 15, 2016
e4d9654
Remove big-play-button
kosssi Nov 16, 2016
f41c152
Fix video playOrPause
kosssi Nov 17, 2016
d7de2b6
Upgrade pdfjs
kosssi Nov 23, 2016
4b564f8
Remove fullscreen on audio player
kosssi Nov 23, 2016
8bad0f0
Add composer.js to let PHP developers to keep track of cozy/Viewer.js…
fabiomontefuscolo Apr 2, 2017
572b856
change username to have this on packagist
fabiomontefuscolo Apr 25, 2017
2cfe278
v0.6.5 - Added loading indicator, fixed bug in download button. Forma…
vandernorth May 17, 2017
42ccba6
v0.6.6 - Fixed: Loading indicator was not removed on older browsers. …
vandernorth May 17, 2017
d2642df
merge parts from vendernorth/ViewerJS
giftnuss May 20, 2017
48dd3cc
rm videojs zip
giftnuss May 20, 2017
a3bac51
build clean
giftnuss May 20, 2017
a9d48af
use composer for installing js as a component, use my name for testin…
giftnuss May 20, 2017
e04559a
do not use a priviliged port testing
giftnuss May 20, 2017
a086c87
html/docx viewer
ile Feb 5, 2018
8e975e2
hide titlebar
ile Feb 11, 2018
dd10a85
#canvasContainer to top:0
ile Feb 11, 2018
2040d57
TextViewerPlugin
ile Feb 11, 2018
721b87f
htmlviewer height
ile Feb 11, 2018
b7ba3f8
json
ile Feb 11, 2018
b442474
bgcolor
ile Feb 11, 2018
92a35c1
htmlviewer css
ile Feb 13, 2018
8c7f4f1
v0.6.7 - No longer have git-dependencies
Sep 19, 2018
9caaf59
added zoom widget for slideshow
putuyuwono Dec 16, 2018
e44ee9e
Fix plugin paths to be compatible with fingerprinters
boris-petrov Nov 26, 2019
452d6c5
Merge pull request #3 from profuz/fix-plugin-paths
vandernorth Nov 29, 2019
8976826
v0.7.1 release/bump
Nov 29, 2019
3827748
Comment-out usage of an undefined variable
boris-petrov Jan 7, 2020
7372934
show titlebar
ile Jul 2, 2020
434b28f
fix
ile Jul 2, 2020
c71f059
fix
ile Jul 2, 2020
e670f61
..
ile Dec 18, 2020
27b31a5
Merge remote-tracking branch 'giftnuss/master'
Apr 5, 2021
cd6f92e
Fixed merging.
Apr 5, 2021
9d4cc22
Fixed names.
Apr 5, 2021
3dd2749
Fixed server message.
Apr 5, 2021
b10964e
Removed specific cozy code.
Apr 5, 2021
b29b168
Readded video-js to release.
Apr 5, 2021
124c7b0
Updated composer.json.
Apr 5, 2021
64f65ff
Merge remote-tracking branch 'webodf/master'
Apr 5, 2021
6347fe9
Merge remote-tracking branch 'putuyuwono/master'
Apr 5, 2021
ab38ecb
Merge remote-tracking branch 'vandernorth/master'
Apr 5, 2021
57d5fb0
Merge remote-tracking branch 'borispetrov/fix-use-of-undefined-variable'
Apr 5, 2021
c1666f9
Fixed merging.
Apr 5, 2021
7665efd
Renamed test files.
Apr 5, 2021
8ddb595
Added OpenDocument test files.
Apr 5, 2021
fb9ad54
Updated build.
Apr 5, 2021
6eef81f
Used minified pdf.js and video.js.
Apr 5, 2021
e637774
Updated pdf.js and video.js.
Apr 5, 2021
db1cae2
Allowed to use arg "file" instead of hash for the url to display.
Apr 5, 2021
21777f0
Updated composer.json.
Apr 5, 2021
eb4c371
Updated readme.
Apr 5, 2021
d7a3dc6
Released version 0.7.2.
Apr 5, 2021
915b190
Replace `git://` with `https://`
boris-petrov Jan 11, 2022
a4b87cd
Adding support for pdf with charset
lk77 Mar 28, 2022
c0c16c0
Update to `video.js` 8
boris-petrov Feb 9, 2023
73c5378
Update `pdfjs-dist`
boris-petrov May 26, 2023
d86a0e2
Support viewing Adobe Illustrator
boris-petrov Jul 9, 2024
c4e53a1
Merge pull request #5 from lk77/patch-1
Jan 6, 2025
8e2d5eb
Updated description in composer.json and package.json.
Aug 31, 2026
9951692
Fixed use of arbitrary js via a crafted font matrix.
Aug 31, 2026
a1f6e9a
Added support of images apng, avif, svg and webp.
Aug 31, 2026
6c90a3a
Updated video.js to 8.23.9.
Aug 31, 2026
5193c48
Added skip buttons to the multimedia viewer.
Aug 31, 2026
e9374e7
Updated pdf.js to 6.2.108.
Aug 31, 2026
d05a110
Updated version of node for pdf.js.
Aug 31, 2026
a54bd4f
Fixed navigation with the page number field.
Aug 31, 2026
8715538
Updated webodf to 0.6.0.
Aug 31, 2026
d24ae1b
Supported OpenDocument graphics and formula (odg, odf).
Aug 31, 2026
c2f9aa9
Named the repository the sources are taken from, and named it over ht…
Aug 31, 2026
19564a9
Taken library of OpenDocument from package.
Aug 31, 2026
64ebcbf
Displayed odt paginated.
Aug 31, 2026
c9390ff
Updated video.js to 8.24.0.
Aug 31, 2026
159dc69
Updated automatically versions of dependencies.
Aug 31, 2026
216e68f
Fixed downloading file.
Aug 31, 2026
3e6c629
Showed image fully on load.
Aug 31, 2026
cb03e1e
Displayed video at its own size.
Aug 31, 2026
0a44b91
Added the release of the viewer on github.
Aug 31, 2026
0e98753
Added the release of the viewer on gitlab.
Aug 31, 2026
98f55a0
Updated readme.
Aug 31, 2026
42caf4a
Released version 0.8.0.
Aug 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Builds the viewer and publishes it with the release of github. Gitlab builds
# and publishes its own, see ".gitlab-ci.yml": neither forge pushes a file to
# the other.
#
# The product is one archive of the directory "release", which is the viewer
# itself: it is copied in a web server as it is, or taken by a module that
# holds it, see "README.md".
name: Release

on:
push:
tags: ['[0-9]+.[0-9]+.[0-9]+']
workflow_dispatch:

jobs:
release:
name: Release of github
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v5

- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm

- name: Dependencies of the build
run: npm ci

- name: Viewer
run: npm run build

# The name carries the version of the package, which the tag names too.
- name: Archive
run: |
version=$(node -p "require('./package.json').version")
mkdir -p products
(cd release && zip -rq ../products/viewerjs-$version.zip .)
ls -l products

# "archive: false" hands the archive over as it is: an artifact is
# wrapped in a zip otherwise, and whoever downloads it unpacks twice.
- uses: actions/upload-artifact@v7
with:
path: products/viewerjs-*.zip
archive: false
if-no-files-found: error

# A release that stands already is written to rather than opened again,
# so that the workflow can be run a second time on the same tag.
- name: Release of github
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
if gh release view "$TAG" >/dev/null 2>&1; then
gh release upload "$TAG" products/* --clobber
else
gh release create "$TAG" --title "$TAG" \
--notes "The viewer of $TAG." products/*
fi
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*~
components/
node_modules/
release/video-js/examples/
release/video-js/ie8/
release/video-js/*.zip
vendor/
.idea/
88 changes: 88 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Builds the viewer and publishes it with the release of gitlab. Github builds
# and publishes its own, see ".github/workflows/release.yml": neither forge
# pushes a file to the other.
#
# The product is one archive of the directory "release", which is the viewer
# itself: the module of Omeka S reads it from the release, see "README.md".

stages:
- build
- release

variables:
PACKAGE: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/viewerjs

build:
stage: build
image: node:22
rules:
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
before_script:
- apt-get update && apt-get install --no-install-recommends -y zip
- npm ci
script:
- npm run build
- version=$(node -p "require('./package.json').version")
- mkdir -p products
- (cd release && zip -rq ../products/viewerjs-$version.zip .)
- ls -l products
artifacts:
paths:
- products
expire_in: 1 week

release:
stage: release
# The image is the one of the build, for the client of http it holds: the
# image of "release-cli" holds none, and its "update" takes no link, so the
# api of the releases is called instead.
image: node:22
rules:
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
needs:
- job: build
artifacts: true
before_script:
- apt-get update
- apt-get install --no-install-recommends -y curl ca-certificates
script:
# The archive goes to the generic package registry of the project, whose
# token is the one of the job: no token of a person is needed. The release
# then links to it by a stable path, which is the url the module of
# Omeka S holds.
- |
set -eu
name=viewerjs-$CI_COMMIT_TAG.zip
url=$PACKAGE/$CI_COMMIT_TAG/$name
curl --fail --silent --show-error --upload-file "products/$name" \
--header "JOB-TOKEN: $CI_JOB_TOKEN" "$url"
# A release that stands already is given the link it has not got yet,
# rather than opened again, so that the pipeline can be run a second time
# on the same tag. A link that is there answers 400, which is not a
# failure here.
- |
set -eu
api=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases
auth="JOB-TOKEN: $CI_JOB_TOKEN"
json='Content-Type: application/json'
link="{\"name\":\"$name\",\"url\":\"$url\",
\"link_type\":\"package\",\"direct_asset_path\":\"/$name\"}"
code=$(curl --silent --output /dev/null --write-out '%{http_code}' \
--header "$auth" "$api/$CI_COMMIT_TAG")
if [ "$code" = "404" ]; then
curl --fail --silent --show-error --request POST \
--header "$auth" --header "$json" \
--data "{\"tag_name\":\"$CI_COMMIT_TAG\",
\"name\":\"$CI_COMMIT_TAG\",
\"description\":\"The viewer of $CI_COMMIT_TAG.\",
\"assets\":{\"links\":[$link]}}" \
"$api"
else
code=$(curl --silent --output /dev/null --write-out '%{http_code}' \
--request POST --header "$auth" --header "$json" \
--data "$link" "$api/$CI_COMMIT_TAG/assets/links")
case $code in
2*|400) ;;
*) echo "the link of $name was refused ($code)"; exit 1 ;;
esac
fi
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.idea
Loading