Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDEV-390 Add a carousel view mode to the new gallery #180

Merged
merged 50 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7d69d52
Add view menu item
rlamacraft Oct 31, 2024
03daecb
Pass listing to Carousel
rlamacraft Oct 31, 2024
ce38c0d
Basic image prototype
rlamacraft Oct 31, 2024
233f969
Layout
rlamacraft Oct 31, 2024
a154740
Show thumbnails for files that aren't images
rlamacraft Oct 31, 2024
962e05d
Update selection
rlamacraft Oct 31, 2024
de884fa
Zoomable
rlamacraft Nov 4, 2024
5c5fee2
Remove need for calculating height
rlamacraft Nov 4, 2024
0788f39
Smooth animated zoom
rlamacraft Nov 4, 2024
134e415
Fix scroll by scaling from corner
rlamacraft Nov 4, 2024
6c56406
Suppress flow
rlamacraft Nov 4, 2024
ca4194e
Double clicking the carousel preview
rlamacraft Nov 4, 2024
16cdb59
Show message when listing is empty
rlamacraft Nov 5, 2024
6b8fbeb
Make the whole bordered region clickable
rlamacraft Nov 5, 2024
fe916e1
Remove unncessary use of calc
rlamacraft Nov 5, 2024
c45dcf3
Whitespace tweak
rlamacraft Nov 5, 2024
877484a
Arrow keys
rlamacraft Nov 5, 2024
1e37170
Disabled next and previous when they don't apply
rlamacraft Nov 5, 2024
447e338
Styled zoom buttons
rlamacraft Nov 5, 2024
0488cf0
Prevent zooming out beyond all of the image
rlamacraft Nov 5, 2024
e072c1a
Default to viewing already selected file
rlamacraft Nov 5, 2024
059fc36
Stop flickering of name field
rlamacraft Nov 5, 2024
82df7e8
Automatically paginate
rlamacraft Nov 6, 2024
b8ae67c
Use canPreviewAsImage for preview conditional logic
rlamacraft Nov 6, 2024
93d4ad8
Preview PDF
rlamacraft Nov 6, 2024
437efe0
Fix scroll issue
rlamacraft Nov 6, 2024
aa3dd42
Zoom pdf
rlamacraft Nov 6, 2024
38d0ff3
Untested: cache collabora and office supported extensions
rlamacraft Nov 6, 2024
657be98
Generate previews with aspose
rlamacraft Nov 6, 2024
14acb71
Error handling for aspose
rlamacraft Nov 6, 2024
377c587
Arrow icons on buttons
rlamacraft Nov 6, 2024
e1bf2ed
Use thumbnail if aspose isn't possible
rlamacraft Nov 7, 2024
4fb52a3
Use thumbnail if aspose fails
rlamacraft Nov 7, 2024
240cfff
Prevent content from being hidden under floating info panel
rlamacraft Nov 7, 2024
c832abe
Drag to pan
rlamacraft Nov 7, 2024
48507aa
Take colours from theme
rlamacraft Nov 7, 2024
8bb1b95
Reset zoom icon
rlamacraft Nov 8, 2024
d29c4a1
Progress count
rlamacraft Nov 8, 2024
69909c4
Consistent use of full stops
rlamacraft Nov 8, 2024
b0149c9
Prevent accidental drag-and-drop in gallery picker
rlamacraft Nov 11, 2024
08e8fa4
Use strict typing
rlamacraft Nov 11, 2024
c07b76e
Assert indicator of progres through listing
rlamacraft Nov 11, 2024
d756db6
Alt text
rlamacraft Nov 11, 2024
c0a278a
Default to viewing already selected file test
rlamacraft Nov 11, 2024
84c0d5f
Always mock import.meta
rlamacraft Nov 11, 2024
6fbb578
Automatically loading pages test
rlamacraft Nov 11, 2024
cc220ff
Next button resets zoom
rlamacraft Nov 11, 2024
16518e4
Use library for mocking import.meta
rlamacraft Nov 11, 2024
e8c750f
fixup! Use strict typing
rlamacraft Nov 12, 2024
9554d5b
fixup! Automatically loading pages test
rlamacraft Nov 12, 2024
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
35 changes: 0 additions & 35 deletions src/main/webapp/ui/.babelrc

This file was deleted.

38 changes: 38 additions & 0 deletions src/main/webapp/ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const test = process.env.NODE_ENV === "test";

module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current",
},
},
],
"@babel/preset-react",
"@babel/preset-flow",
],
plugins: [
[
"@babel/plugin-proposal-decorators",
{
legacy: true,
},
],
[
"@babel/plugin-proposal-class-properties",
{
loose: false,
},
],
[
"@babel/plugin-transform-runtime",
{
regenerator: true,
},
],
["babel-plugin-syntax-hermes-parser"],
...(test ? ["babel-plugin-transform-import-meta"] : []),
],
};
1 change: 1 addition & 0 deletions src/main/webapp/ui/flow-typed/testing-library/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare module "@testing-library/react" {

declare export type Element = {|
checked: boolean,
disabled: boolean,
value: string,
textContent: string,
className: string,
Expand Down
86 changes: 86 additions & 0 deletions src/main/webapp/ui/package-lock.json

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

2 changes: 2 additions & 0 deletions src/main/webapp/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@testing-library/user-event": "^14.5.2",
"axios-mock-adapter": "^1.20.0",
"babel-loader": "=9.1.2",
"babel-plugin-transform-import-meta": "^2.2.1",
"canvas": "^2.11.2",
"clean-webpack-plugin": "=4.0.0",
"css-loader": "=6.7.1",
Expand All @@ -53,6 +54,7 @@
"jest-environment-jsdom": "=29.7.0",
"prettier": "=2.8.3",
"style-loader": "=3.3.3",
"url": "^0.11.4",
"webpack": "=5.89.0",
"webpack-cli": "=5.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/ui/src/eln/gallery/common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@flow
//@flow strict

import { COLORS as baseThemeColors } from "../../theme";
import Result from "../../util/result";
Expand Down
Loading
Loading