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

Links(routes) redirect to "/" on reload #6

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
d634073
[New] Deploy common possible values
blcham Nov 29, 2023
db7aa2c
[Upd] Support extensions in configuration
LaChope Nov 30, 2023
6cf2678
[Upd] Changed label of doctor to regular user
LaChope Nov 30, 2023
2c4d2e3
[Fix] Fix broken navigation to user's profile from navigation menu.
ledsoft Dec 5, 2023
12fb3fa
[Fix] Fix React warning about null institution email passed to input.
ledsoft Dec 5, 2023
08ecaee
Merge pull request #24 from akaene/main
blcham Dec 5, 2023
3e68e85
[#17] Fix onClick handler to be called with no parameters
kostobog Dec 5, 2023
5cf9982
Merge pull request #27 from kbss-cvut/issues/17-view-records-button-d…
blcham Dec 6, 2023
ab74dba
[#29] Fix include regex for intelligent-tree-select to be compatible …
kostobog Dec 6, 2023
5ac3f82
Merge pull request #30 from kbss-cvut/issues/29-cannot-build-in-windows
blcham Dec 6, 2023
bdae508
Merge remote-tracking branch 'origin/main'
LaChope Dec 7, 2023
21b52d5
[Upd #246] Bump s-forms to change date picker time format
LaChope Dec 7, 2023
efa2eed
[New #26] Added export records UI
LaChope Dec 7, 2023
5070ca3
Merge pull request #31 from kbss-cvut/change-time-format
blcham Dec 7, 2023
106fb0c
[Upd #26] Added Export records ui for regular user
LaChope Dec 7, 2023
c1cc707
[Fix #26] Fixed tests considering new buttons
LaChope Dec 7, 2023
3a89f73
[#25] In Record, render RecordForm only when is record.formTemplate i…
kostobog Dec 7, 2023
3e37c3a
[#25] Load record form wizard only when record.formTemplate is defined
kostobog Dec 7, 2023
4411604
[#25] Make sure the loader appears between events a) selection of rec…
kostobog Dec 7, 2023
ddd8f76
[#25] Allow typeahead to be disabled.
kostobog Dec 7, 2023
7838520
[#25] Disable form-template field when record.formTemplate is defined.
kostobog Dec 7, 2023
a9d1650
[Upd] Refactor keycloak auth to directory with prefix -no-proxy
blcham Dec 7, 2023
e9e4ccc
[Upd] Share s-pipes-engine service setup across deployments
blcham Dec 8, 2023
0456316
[New] Copy deployment configuration of internal-auth
blcham Dec 8, 2023
2bd83db
[Upd] Change internal-auth copy to keycloak-based deployment
blcham Dec 8, 2023
441a19b
[Upd] Map s-pipes engines read-only
blcham Dec 8, 2023
69acbb0
Merge pull request #35 from kbss-cvut/provide-keycloak-auth-with-reve…
blcham Dec 8, 2023
15a6d8e
[Upd #26] Changed position of export button in Records
LaChope Dec 8, 2023
e707a57
[Fix #28] Bumped s-forms to fix skos:broader relation
LaChope Dec 11, 2023
05d2b5e
[Upd #12] Disable and hide buttons that require keycloak auth
LaChope Dec 11, 2023
514bc80
[#25] Simplify condition testing TypeaheadAnswer.props.isDisabled
kostobog Dec 11, 2023
0f38ac0
Merge pull request #33 from kbss-cvut/issues/25-admin-cant-create-record
blcham Dec 11, 2023
c3c188c
Merge pull request #39 from kbss-cvut/fix-broader-relation
blcham Dec 11, 2023
81cd957
Merge pull request #32 from kbss-cvut/export-records
blcham Dec 11, 2023
a32a501
[Upd #12] Added conditional UI depending on auth method
LaChope Dec 12, 2023
3b5edde
[#41] Set record.formTemplate from props.formTemplate in Record inste…
kostobog Dec 12, 2023
792a0a9
[#41] Move condition to render form in Record to RecordForm component.
kostobog Dec 12, 2023
d2a7240
[Upd] Remove obsolete example with keycloak auth
blcham Dec 12, 2023
3596605
Merge pull request #42 from kbss-cvut/issues/41-load-record-form-in-u…
blcham Dec 12, 2023
e1a4f87
Update development.md
blcham Dec 12, 2023
8d5b66a
Update development.md
blcham Dec 12, 2023
6ef41e6
[New] Add .env configuration for keycloak authorization example
blcham Dec 12, 2023
d04a32e
[New #18] Added redirection to keycloak when admin wants to update us…
LaChope Dec 13, 2023
2488108
[Fix #18] Fixed UI when not auth with Oidc
LaChope Dec 13, 2023
fae0844
[Fix #18] Fixed not disabled username
LaChope Dec 13, 2023
f235d52
[New #43] Added institution name to record table
LaChope Dec 13, 2023
fa70760
[Fix #43] Fixed UI when logged as admin or user
LaChope Dec 13, 2023
073998d
Update js/components/record/RecordTable.js
blcham Dec 13, 2023
df19973
Update js/components/record/RecordRow.js
blcham Dec 13, 2023
b74b1d5
Merge pull request #44 from kbss-cvut/add-institution-name-to-record-…
blcham Dec 13, 2023
257620b
[Upd] Unify container names
blcham Dec 12, 2023
a678b65
[Fix] Disable role change when logged as user
blcham Dec 13, 2023
03bec65
[Fix] Add missing save button
blcham Dec 13, 2023
7ffa550
Merge pull request #40 from kbss-cvut/ui-support-keycloack
blcham Dec 13, 2023
e881f18
[New #49] Handling user management with keycloak
LaChope Dec 14, 2023
48c3644
[Fix #46] With keycloak auth, users can now modify only their own pro…
LaChope Dec 14, 2023
8025ff3
[Upd #49] Refactor for readability
LaChope Dec 14, 2023
c6fbfea
[kbss-cvut/record-manager-ui#37] Add export records dropdown button.
ledsoft Dec 15, 2023
d1c8dac
[kbss-cvut/record-manager-ui#37] Add export records dropdown button a…
ledsoft Dec 15, 2023
c1769f6
[kbss-cvut/record-manager-ui#37] Implement export of records to JSON.
ledsoft Dec 15, 2023
72c674e
Merge pull request #52 from akaene/main
blcham Dec 15, 2023
ff3b7cb
Merge pull request #51 from kbss-cvut/fix-buttons
blcham Dec 15, 2023
872afac
[New #18] Added role specific buttons depending on extension
LaChope Nov 30, 2023
4ce6727
[Upd #18] Added i18n for specific buttons
LaChope Nov 30, 2023
c5977e1
[New #18] Added Publish button for Admin Operator
LaChope Nov 30, 2023
8a1b3bd
[New #18] Added record in progress icon and set it as default
LaChope Nov 30, 2023
9e21e5d
[New #18] Added rejected, completed and published buttons
LaChope Dec 13, 2023
62c74a7
[New #18] Added record status tooltip for rejected and published phases
LaChope Dec 13, 2023
46df9bb
[New #18] Added loading wheel for buttons
LaChope Dec 13, 2023
39eba0e
[Upd #18] Added validation for reject and complete buttons
LaChope Dec 13, 2023
d1dd48a
[Upd #18] Changed label of record status
LaChope Dec 13, 2023
39702f4
[Upd #18] Record status is now visible by regular user
LaChope Dec 13, 2023
a16f664
[Upd #18] Updated buttons hiding dependent on user role
LaChope Dec 13, 2023
033e1fc
[Fix #18] Fix tests
LaChope Dec 14, 2023
8cc6289
[TMP] Disabling failing tests
blcham Dec 17, 2023
1fb10e4
Merge pull request #53 from kbss-cvut/add-role-buttons-simpliefied
blcham Dec 17, 2023
9e8d118
[#57] Make local name field optional
kostobog Dec 19, 2023
a7aeced
[#57] Save user provided value in local name field
kostobog Dec 19, 2023
7bebb8f
Merge pull request #59 from kbss-cvut/issues/57-fix-name-field-in-rec…
blcham Dec 19, 2023
eb5ecd3
[#58] Fix not visible workflow buttons
blcham Dec 20, 2023
3695ec3
Merge pull request #60 from kbss-cvut/not-visible-workflow-buttons
blcham Dec 20, 2023
18fa8ff
[Fix] Ensure reasonable display when record has no phase set.
ledsoft Dec 22, 2023
912e2ad
[kbss-cvut/record-manager-ui#38] Implement basic import of records.
ledsoft Dec 22, 2023
da7541d
[Fix] Fix issue with cleared typeahead answer values when navigating …
blcham Dec 22, 2023
1749420
[Ref] Refactor user admin check into one place that is referenced fro…
ledsoft Dec 23, 2023
894785a
[Ref] Add a generic messaging component and action API.
ledsoft Dec 23, 2023
694742b
[kbss-cvut/record-manager-ui#38] Inform user about record import result.
ledsoft Dec 23, 2023
b0b52f7
[kbss-cvut/record-manager-ui#38] Add records import button to records…
ledsoft Dec 23, 2023
363527c
Add promise tracking loader and use it in records import.
ledsoft Dec 24, 2023
ebeeb9b
[Doc] Add documentation on how to use messages and promise tracking m…
ledsoft Dec 24, 2023
e9065eb
Merge branch 'kbss-cvut:main' into main
ledsoft Dec 24, 2023
be5bcd7
[kbss-cvut/record-manager-ui#38] Show error message on failed import,…
ledsoft Dec 27, 2023
129feca
Merge pull request #65 from akaene/main
blcham Dec 27, 2023
8c00ab3
[kbss-cvut/record-manager-ui#56] Fix broken dropdowns by updating to …
ledsoft Dec 28, 2023
cabc9c3
[Doc] Add a link to React-bootstrap components documentation.
ledsoft Dec 28, 2023
857c5bc
Merge branch 'kbss-cvut:main' into main
ledsoft Dec 28, 2023
7cc46c0
Merge pull request #67 from akaene/main
blcham Dec 28, 2023
2b0c5d2
[kbss-cvut/23ava-distribution#31] Render OIDC callback views exclusiv…
ledsoft Jan 2, 2024
7ac5e7b
[kbss-cvut/23ava-distribution#31] Remove unnecessary debug logging call.
ledsoft Jan 2, 2024
cd577d8
Merge pull request #68 from akaene/main
blcham Jan 2, 2024
80f4cb9
[Upd] Reformat
blcham Jan 3, 2024
b216097
[Upd] Refactor
blcham Jan 3, 2024
04895e7
[kbss-cvut/record-manager-ui#61] Save impersonator's id_token and use…
ledsoft Jan 4, 2024
7cca678
[kbss-cvut/record-manager-ui#61] Remove unnecessary token exchange pa…
ledsoft Jan 4, 2024
13e5a96
Merge pull request #70 from akaene/main
blcham Jan 4, 2024
7909e2d
[kbss-cvut/record-manager-ui#66] Refactor Statistics.js to use the ne…
ledsoft Jan 7, 2024
74dc3e7
[kbss-cvut/record-manager-ui#66] Refactor institutions to use the new…
ledsoft Jan 7, 2024
26307f1
[kbss-cvut/record-manager-ui#66] Refactor institution to use the new …
ledsoft Jan 7, 2024
92f2577
[kbss-cvut/record-manager-ui#66] Refactor institution members to use …
ledsoft Jan 7, 2024
23ec2de
[New] Make docker build image globally independant
blcham Jan 9, 2024
8493f8e
[Upd #3] Migrate to React 18
LaChope Nov 22, 2023
382134e
[Bump] Bump jsonld-utils
LaChope Jan 10, 2024
4f53e79
[Bump] s-forms package
LaChope Jan 10, 2024
df718a2
[Bump] Bump jsonld-utils
LaChope Jan 10, 2024
520647d
[Bump] s-forms and jsonld-utils packages
LaChope Jan 10, 2024
cf9eaae
[Fix #75] Fixed dependencies issue
LaChope Jan 11, 2024
b17c1d0
Merge pull request #75 from kbss-cvut/bump-jsonld-utils
blcham Jan 11, 2024
bc0f462
[Fix #63] Bumped s-forms to show saved tree value
LaChope Jan 11, 2024
e6a9272
Merge pull request #76 from kbss-cvut/fix-tree-value-not-saved
blcham Jan 11, 2024
3366134
[kbss-cvut/record-manager-ui#66] Refactor users to use the new messag…
ledsoft Jan 14, 2024
dff9cbd
[kbss-cvut/record-manager-ui#66] Refactor history detail to use the n…
ledsoft Jan 15, 2024
91b3481
[kbss-cvut/record-manager-ui#66] Refactor history list to use the new…
ledsoft Jan 15, 2024
6911e21
[kbss-cvut/record-manager-ui#66] Refactor records table to use the ne…
ledsoft Jan 15, 2024
cb9a57e
[kbss-cvut/record-manager-ui#66] Refactor records to use the new mess…
ledsoft Jan 15, 2024
c86c656
[kbss-cvut/record-manager-ui#66] Refactor record detail to use the ne…
ledsoft Jan 16, 2024
5b57253
[kbss-cvut/record-manager-ui#66] Refactor user detail to use the new …
ledsoft Jan 16, 2024
3546bef
[kbss-cvut/record-manager-ui#66] Refactor user password change to use…
ledsoft Jan 16, 2024
b2b5782
[kbss-cvut/record-manager-ui#66] Refactor record form to use the new …
ledsoft Jan 16, 2024
4ef10db
Merge branch 'kbss-cvut:main' into main
ledsoft Jan 16, 2024
fc54eb7
[Fix] Fix incorrect path to Keycloak realm export data in docker-comp…
ledsoft Jan 16, 2024
1b89850
[Upd #73] Updated s-forms package to handle time format per question
LaChope Jan 17, 2024
9b73223
Merge pull request #78 from kbss-cvut/time-format
blcham Jan 23, 2024
4cc898f
[kbss-cvut/record-manager-ui#66] PR feedback - check for publishMessa…
ledsoft Jan 24, 2024
41d16c4
Merge pull request #77 from akaene/main
blcham Jan 26, 2024
a7e6d7a
Merge branch 'main' into migration-react-18
LaChope Feb 2, 2024
781cebd
[Ref] Simplify RecordTable and RecordRow.
ledsoft Feb 6, 2024
5ff3a9f
[kbss-cvut/record-manager-ui#71] Refactor action history pagination t…
ledsoft Feb 6, 2024
b54a69c
[Ref] Refactor HistoryTable to hooks.
ledsoft Feb 6, 2024
2f3fd84
[kbss-cvut/record-manager-ui#71] Support paging of records.
ledsoft Feb 6, 2024
2ac5e75
[kbss-cvut/record-manager-ui#71] Support sorting of records by date.
ledsoft Feb 6, 2024
bb07890
[Ref] Unify minimum width of buttons.
ledsoft Feb 6, 2024
f4dba4b
[kbss-cvut/record-manager-ui#71] Implement record filtering.
ledsoft Feb 8, 2024
a58af89
[kbss-cvut/record-manager-ui#71] Indicate that filters are active, al…
ledsoft Feb 8, 2024
448e51e
[kbss-cvut/record-manager-ui#71] Export records based on selected fil…
ledsoft Feb 8, 2024
c467ae9
[kbss-cvut/record-manager-ui#71] Support filtering by multiple phases.
ledsoft Feb 8, 2024
b3ff15c
Add support for macOS
blcham Feb 10, 2024
3116ae5
[Fix] Testing arm64 vs. amd64 in dockerfile
blcham Feb 10, 2024
257a54e
Fix docker build for arm64
blcham Feb 10, 2024
1f02b45
Merge remote-tracking branch 'origin/main' into migration-react-18
blcham Feb 13, 2024
3941b73
[kbss-cvut/record-manager-ui#71] Move filters into popups in column h…
ledsoft Feb 14, 2024
887913c
[kbss-cvut/record-manager-ui#71] Indicate that filters/sorting is act…
ledsoft Feb 14, 2024
fda9043
[kbss-cvut/record-manager-ui#71] Refactor records table header into s…
ledsoft Feb 14, 2024
43f6432
chore: add .env to gitignore
shellyear Feb 14, 2024
ab15445
fix: error handling in authActions
shellyear Feb 14, 2024
82efe25
[kbss-cvut/record-manager-ui#71] Allow selecting page size for tables.
ledsoft Feb 14, 2024
f5b677d
[Fix] Prevent application crash when records are not loaded.
ledsoft Feb 14, 2024
9956524
fix: scripts in package.json
shellyear Feb 14, 2024
670ab66
[kbss-cvut/record-manager-ui#71] Set default page size to 10 so that …
ledsoft Feb 14, 2024
be13081
fix: @kbss-cvut/s-forms version, include it's css;
shellyear Feb 14, 2024
cc1a07c
[TMP] Temporary disabled tests for the React 18
shellyear Feb 15, 2024
ae334bc
Merge pull request #1 from akaene/react-18-migration
blcham Feb 16, 2024
517702c
Merge pull request #89 from akaene/main
blcham Feb 16, 2024
6bc3fb2
Merge branch 'main' into kbss-cvut/record-manager-ui#71-record-filter…
blcham Feb 16, 2024
ea72bbf
Merge pull request #82 from akaene/kbss-cvut/record-manager-ui#71-rec…
blcham Feb 16, 2024
fd64edd
[Fix] Fix failing build
blcham Feb 16, 2024
4d534b1
fix: webpack build error with parse-link-header
shellyear Feb 16, 2024
a54e718
Merge pull request #90 from akaene/main
blcham Feb 16, 2024
be53e14
chore: rename js folder to src;
shellyear Feb 22, 2024
773003d
chore: rename files containing jsx from js to jsx
shellyear Feb 22, 2024
64b8944
chore: move files, and folders; add webpack rules; add public folder;…
shellyear Feb 22, 2024
5139f12
[Fix] Add path to main icon with template prefix
blcham Feb 23, 2024
14404b1
Update public/index.html
blcham Feb 23, 2024
09e9600
Merge pull request #100 from akaene/main
blcham Feb 23, 2024
91eb863
[feature] migrate webpack to vite;
shellyear Feb 27, 2024
159ace9
Merge pull request #4 from akaene/feature/final-vite-migration
blcham Mar 2, 2024
18b4948
Merge pull request #105 from akaene/main
blcham Mar 2, 2024
c2dc679
[New #106] Add Prettier + pre-commit
blcham Mar 2, 2024
fa117be
Merge pull request #107 from kbss-cvut/configure-prettier
blcham Mar 2, 2024
4aa0627
[Upd] Reformat with prettier
blcham Mar 2, 2024
0586fcc
Merge pull request #108 from kbss-cvut/reformat-with-prettier
blcham Mar 2, 2024
88160a7
[feature] add plugins for eslint js
shellyear Mar 5, 2024
6493db4
[chore] replace .eslintrc with .eslintrc.js
shellyear Mar 5, 2024
4b4ac5f
[feature] make eslint work; add vite-eslint plugin; prevent dist dir …
shellyear Mar 6, 2024
60e591a
[chore] add env to eslintrc
shellyear Mar 6, 2024
cdfbf2d
[feature] test plugin react/recommended, add @babel/eslint-parser to…
shellyear Mar 6, 2024
a27c4d8
[feature] use @babel/eslint-parser in eslintrc and solve errors
shellyear Mar 6, 2024
aece51b
[chore] remove unused dependencies
shellyear Mar 6, 2024
412a954
[chore] disable rule in withI18.jsx; prop type type errors fix
shellyear Mar 6, 2024
df439d4
Merge pull request #109 from akaene/feature/eslint
blcham Mar 6, 2024
2057a3d
[kbss-cvut/record-manager-ui#85] Display loading mask only over row s…
ledsoft Mar 10, 2024
008b9b2
[kbss-cvut/record-manager-ui#85] Move records load after record delet…
ledsoft Mar 10, 2024
18357bd
[Chore] Fix prettier configuration, reformat i18n files.
ledsoft Mar 10, 2024
7327757
[chore] remove unnecessary security warning comment
shellyear Mar 11, 2024
39819b3
Merge pull request #121 from akaene/chore/remove-comment
blcham Mar 14, 2024
d091028
Merge pull request #119 from akaene/kbss-cvut/record-manager-ui#85-de…
blcham Mar 14, 2024
8f31d07
[fix] remove disabled rule (deprecated findDOMnode); reimplement user…
shellyear Mar 15, 2024
f744d6b
[fix] remove disabled rule (findDOMNode) in Input;
shellyear Mar 15, 2024
9673ac6
[fix] remove string ref in Instituion.jsx (eslint react/no-string-ref)
shellyear Mar 15, 2024
3065118
[fix] 'react/display-name' eslint rule
shellyear Mar 15, 2024
d673724
[fix] eslint react/no-string-refs
shellyear Mar 15, 2024
c820b04
[fix] eslint react/prop-types
shellyear Mar 15, 2024
3fa9c2d
Merge pull request #120 from akaene/fix/disabled-rule-files
blcham Mar 15, 2024
8adb913
[fix] proptypes runtime errors
shellyear Mar 7, 2024
82c612c
[fix] prevent prompting rollup 'pure' invalid annotation onwarn
shellyear Mar 7, 2024
1087a7e
[fix] temporarily disable css minification because of esbuild warning
shellyear Mar 8, 2024
1cef625
[fix] 'externalized for browser compatibility' warning by using vite-…
shellyear Mar 8, 2024
5a39de1
[fix] prevent showing eval warning caused by one of @kbss-cvut/s-form…
shellyear Mar 8, 2024
c01c12c
[fix] add aliases for externalized node packages(by vite) in build; r…
shellyear Mar 13, 2024
ff8ff1e
[fix] change src for config script in index.html (build warning)
shellyear Mar 13, 2024
f34ba50
[fix] 'url has been externalized' warning by using url-parse as alias…
shellyear Mar 14, 2024
b562e24
[chore] add explanatory commits in vite.config.js
shellyear Mar 15, 2024
e699495
[fix] remove eslint-disabled rule (no-find-dom-node) in Input, Horizo…
shellyear Mar 15, 2024
a1cf959
chore
shellyear Mar 15, 2024
90d65fc
[fix] eslint react/no-string-refs
shellyear Mar 15, 2024
913e685
[fix] eslint react/prop-types
shellyear Mar 15, 2024
cb1c7a8
Add missing reference to workaround
blcham Mar 15, 2024
9802dd2
Merge branch 'main' into fix/remaining-eslint-warnings
blcham Mar 15, 2024
75efb4e
Fixed accidentally deleted new line
blcham Mar 15, 2024
8a569ea
Merge pull request #116 from akaene/fix/remaining-eslint-warnings
blcham Mar 15, 2024
175372b
[Upd #101] Update SForms dependency to support basic validation
LaChope Mar 11, 2024
41214c6
[Upd #101] State of the form is now accessible from Record
LaChope Mar 11, 2024
50eced7
[New #101] Add modal to handle invalid and incomplete form
LaChope Mar 12, 2024
8006279
[New #101] Add s-forms validation visitor
LaChope Mar 15, 2024
76e9f9d
[New #101] Add s-forms validation visitor
LaChope Mar 19, 2024
0a83c8f
[Upd #101] Bump s-forms
LaChope Mar 19, 2024
faefe19
[Upd #101] Refactor for readability
LaChope Mar 19, 2024
cd34dd2
[Upd #101] Bump s-forms
LaChope Mar 21, 2024
78e0e28
Add i18n for validation messages and refactor Utils functions for rea…
LaChope Mar 21, 2024
5480e29
Correct cs for i18n
LaChope Mar 22, 2024
6eae04c
[Upd] Reformat traversal of questions
blcham Mar 21, 2024
7a5fe3f
[Upd] Remove unused methods
blcham Mar 21, 2024
51e75f8
[Upd #101] Use traverse question from s-forms
LaChope Mar 22, 2024
b472f2e
[Upd #101] Bump s-forms
LaChope Mar 23, 2024
3e5c1cd
[Fix] Fixed dependency issues
LaChope Mar 23, 2024
1bc4b96
Merge pull request #123 from kbss-cvut/basic-validation
LaChope Mar 23, 2024
a15f4d9
[Upd] Use node v18 in CI workflow
blcham Mar 25, 2024
513f97a
[fix] use .jsx extention for tests
shellyear Mar 24, 2024
48b4ed6
[fix] wrong paths in test files
shellyear Mar 12, 2024
6e93a7d
Merge pull request #131 from akaene/chore/pretest
blcham Mar 25, 2024
cbc4b6b
[feature] add basic vitest config; remove jest config
shellyear Mar 24, 2024
583a00d
[fix] explicitly use 'it, describe, expect, beforeEach, afterEach' fr…
shellyear Mar 24, 2024
d174a82
[fix] unknown .css file extention, by inlining @kbss-cvut/s-forms in …
shellyear Mar 24, 2024
5271b50
[fix] use vi.mock and vi.spyOn
shellyear Mar 24, 2024
542cb6b
[chore] remove jest, @cfaester/enzyme-adapter-react-18 and enzyme (wi…
shellyear Mar 25, 2024
4e58056
[fix] use test.skip explicitly in tests instead of global xit
shellyear Mar 25, 2024
deb4d3c
[fix] callback style of declaring tests in deprecated; use promise to…
shellyear Mar 25, 2024
a990a0d
[chore] remove globals for tests in config
shellyear Mar 26, 2024
03235d8
[fix] timeout error for DELETE_RECORD_SUCCESS by setting setTimeout t…
shellyear Mar 27, 2024
ffe7043
Merge pull request #130 from akaene/feature/vitest
blcham Mar 28, 2024
28be988
[chore] update react-router-dom package
shellyear Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 0 additions & 31 deletions .babelrc

This file was deleted.

7 changes: 5 additions & 2 deletions .docker/config.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ window.__config__ = {
LANGUAGE: '${LANGUAGE}',
NAVIGATOR_LANGUAGE: '${NAVIGATOR_LANGUAGE}',
BASENAME: '${BASENAME}',
EXTENSIONS: '${EXTENSIONS}'
}
EXTENSIONS: '${EXTENSIONS}',
AUTHENTICATION: '${AUTHENTICATION}',
AUTH_SERVER_URL: '${AUTH_SERVER_URL}',
AUTH_CLIENT_ID: '${AUTH_CLIENT_ID}'
}
2 changes: 1 addition & 1 deletion .docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
set -eu

envsubst '${API_URL} ${APP_TITLE} ${LANGUAGE} ${NAVIGATOR_LANGUAGE} ${BASENAME} ${EXTENSIONS}' < /etc/nginx/config.js.template > /var/www/config.js
envsubst '${API_URL} ${APP_TITLE} ${LANGUAGE} ${NAVIGATOR_LANGUAGE} ${BASENAME} ${EXTENSIONS} ${AUTHENTICATION} ${AUTH_SERVER_URL} ${AUTH_CLIENT_ID}' < /etc/nginx/config.js.template > /var/www/config.js

cp /etc/nginx/index.html.template /var/www/index.html
sed -i "s|%RECORD_MANAGER_BASENAME%|${BASENAME}|g" /var/www/index.html
Expand Down
33 changes: 18 additions & 15 deletions .docker/error.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta charset="utf-8" />
<title>
<!--# echo var="status" default="" --> <!--# echo var="status_text" default="Something goes wrong" -->
| SGoV Data Management
<!--# echo var="status" default="" --> <!--# echo var="status_text" default="Something goes wrong" --> | SGoV Data
Management
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--# if expr="$status = 502" -->
<meta http-equiv="refresh" content="2">
<meta http-equiv="refresh" content="2" />
<!--# endif -->
</head>
<style type="text/css">
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #fff;
height: 100vh;
margin: 0;
Expand All @@ -24,12 +24,15 @@
justify-content: center;
}
</style>
<body>
<!--# if expr="$status = 502" -->
<h1>We are updating our website </h1>
<body>
<!--# if expr="$status = 502" -->
<h1>We are updating our website</h1>
<p>This is only for a few seconds, you will be redirected.</p>
<!--# else -->
<h1><!--# echo var="status" default="" --> <!--# echo var="status_text" default="Something goes wrong" --></h1>
<!--# endif -->
</body>
</html>
<!--# else -->
<h1>
<!--# echo var="status" default="" -->
<!--# echo var="status_text" default="Something goes wrong" -->
</h1>
<!--# endif -->
</body>
</html>
10 changes: 10 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RECORD_MANAGER_API_URL=http://localhost:1235/record-manager/services/record-manager-server
RECORD_MANAGER_APP_TITLE=Record Manager
RECORD_MANAGER_APP_INFO=
RECORD_MANAGER_LANGUAGE=cs
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
RECORD_MANAGER_BASENAME=/
RECORD_MANAGER_EXTENSIONS=supplier
RECORD_MANAGER_AUTHENTICATION=internal
RECORD_MANAGER_AUTH_SERVER_URL=
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager-ui
14 changes: 11 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ RECORD_MANAGER_PROD_SERVER_PORT=8080
RECORD_MANAGER_LANGUAGE=cs
# Flag if language of the UI should be determined from browser settings. Possible values: true, false.
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
# Context path added to URL or "" in case application path should not be modified.
# Context path added to URL or "/" in case application path should not be modified.
RECORD_MANAGER_BASENAME=/record-manager
# List of extensions seperated by comma, currently supports only values: "kodi"
RECORD_MANAGER_EXTENSIONS=kodi
# List of extensions separated by comma, currently supports only values: "kodi"
RECORD_MANAGER_EXTENSIONS=kodi
# Authentication method - use "internal" for internal authentication or "oidc" for an external auth service compatible with OIDC
RECORD_MANAGER_AUTHENTICATION=internal
# Authentication server URL, applicable when AUTHENTICATION=oidc. In case of Keycloak, this would be the server URL including the
# realm used to authenticate users, e.g. http://localhost:8080/realms/record-manager
RECORD_MANAGER_AUTH_SERVER_URL=
# Client ID of this application in the OIDC authentication server. The client should have public access and valid redirect and origin URIs
# configured
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager-ui
11 changes: 11 additions & 0 deletions .env.internal-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RECORD_MANAGER_API_URL=http://localhost:1235/record-manager/services/record-manager-server
RECORD_MANAGER_APP_TITLE=Record Manager
RECORD_MANAGER_DEV_SERVER_PORT=3000
RECORD_MANAGER_PROD_SERVER_PORT=8080
RECORD_MANAGER_LANGUAGE=cs
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
RECORD_MANAGER_BASENAME=/
RECORD_MANAGER_EXTENSIONS=supplier
RECORD_MANAGER_AUTHENTICATION=internal
RECORD_MANAGER_AUTH_SERVER_URL=
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager-ui
11 changes: 11 additions & 0 deletions .env.keycloak-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RECORD_MANAGER_API_URL=http://localhost:1235/record-manager/services/record-manager-server
RECORD_MANAGER_APP_TITLE=Record Manager
RECORD_MANAGER_DEV_SERVER_PORT=3000
RECORD_MANAGER_PROD_SERVER_PORT=8080
RECORD_MANAGER_LANGUAGE=cs
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
RECORD_MANAGER_BASENAME=/
RECORD_MANAGER_EXTENSIONS=supplier
RECORD_MANAGER_AUTHENTICATION=oidc
RECORD_MANAGER_AUTH_SERVER_URL=http://localhost:1235/record-manager/services/auth/realms/record-manager
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager
10 changes: 10 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RECORD_MANAGER_API_URL=http://localhost:1235/record-manager/services/record-manager-server
RECORD_MANAGER_APP_TITLE=Record Manager
RECORD_MANAGER_APP_INFO=
RECORD_MANAGER_LANGUAGE=cs
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
RECORD_MANAGER_BASENAME=/
RECORD_MANAGER_EXTENSIONS=supplier
RECORD_MANAGER_AUTHENTICATION=internal
RECORD_MANAGER_AUTH_SERVER_URL=
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager-ui
11 changes: 11 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RECORD_MANAGER_API_URL=http://localhost:8080/record-manager
RECORD_MANAGER_APP_TITLE=OFN Record Manager
RECORD_MANAGER_DEV_SERVER_PORT=3000
RECORD_MANAGER_PROD_SERVER_PORT=8080
RECORD_MANAGER_LANGUAGE=en
RECORD_MANAGER_NAVIGATOR_LANGUAGE=false
RECORD_MANAGER_BASENAME=/record-manager
RECORD_MANAGER_EXTENSIONS=
RECORD_MANAGER_AUTHENTICATION=internal
RECORD_MANAGER_AUTH_SERVER_URL=
RECORD_MANAGER_AUTH_CLIENT_ID=
27 changes: 0 additions & 27 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
parser: "@babel/eslint-parser",
extends: ["plugin:react/recommended", "prettier"],
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ["@babel/preset-react"],
},
},
plugins: ["react", "react-hooks"],
rules: {}, // add specific rules here
ignorePatterns: ["dist", "tests", ".eslintrc.cjs"],
settings: {
react: {
version: "detect",
},
"import/resolver": {
node: {
extensions: [".js", ".jsx"],
},
},
},
env: {
browser: true,
},
};
37 changes: 37 additions & 0 deletions .github/workflows/merge-to-protected.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [main]
pull_request:
branches: [main]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Install
run: npm install
- name: Build
run: npm run-script build
env:
CI: ""
- name: Test
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: npm run-script test
49 changes: 49 additions & 0 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish Docker Image

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
# Last fragment of identifier of the docker image
IMAGE_NAME: ${{ github.repository }}
# Group identifier of the docker image, typically ${{ github.repository_owner }} or ${{ github.repository }}
IMAGE_GROUP_NAME: ${{ github.repository_owner }}
MAIN_BRANCH_NAME: main

jobs:
build-and-publish:
# Skip if PR is from a fork
if: github.event_name != 'pull_request' || github.event.repository.full_name == github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build docker image
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log in to the Container registry
run: echo "${{ github.token }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/$IMAGE_GROUP_NAME/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Get branch name if merge to a branch
GIT_BRANCH_NAME=$(echo "${{ github.ref }}" | grep 'refs/heads/.*' | cut -d"/" -f 3)
# Get pull request id (e.g. "pr-123" from "/pulls/123")
PULL_REQUEST_ID=$(echo "${{ github.event.pull_request.number }}" | grep -v "^$" | sed 's/^/pr-/')
# Get tag id while strip "v" prefix (e.g. "1.2" from "v1.2")
TAG_ID=$(echo "${{ github.ref }}" | grep 'refs/tags/.*' | cut -d"/" -f 3 | sed -e 's/^v//')
# Version is either "git branch name"/"pull request id"/"tag id"
VERSION=${GIT_BRANCH_NAME:-${PULL_REQUEST_ID:-${TAG_ID}}}
# Use Docker `latest` tag convention
[ "$VERSION" == $MAIN_BRANCH_NAME ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea
*.iml
node_modules
build
dist
coverage
junit.xml
.DS_store

.env
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package.json
package-lock.json
dist
README.md
public
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 120
}
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BASE STAGE
# Prepare node, copy package.json
FROM node:14 AS base
FROM node:16 AS base
WORKDIR /usr/src/app
COPY package.json package-lock.json ./

Expand Down Expand Up @@ -30,7 +30,7 @@ ENV BASENAME=""
ENV APP_INFO='<a href="https://github.com/blcham" target="_blank" rel="noopener noreferrer" title="github.com/blcham, 2023">©&nbsp;github.com/blcham, 2023</a>'

# Copy the react build from Build Stage
COPY --from=build /usr/src/app/build /var/www
COPY --from=build /usr/src/app/dist /var/www

# Copy error page
COPY .docker/error.html /usr/share/nginx/html
Expand All @@ -42,7 +42,7 @@ COPY .docker/nginx.conf /etc/nginx/nginx.conf
COPY .docker/config.js.template /etc/nginx/config.js.template

# Copy our custom html template
COPY --from=build /usr/src/app/build/index.html /etc/nginx/index.html.template
COPY --from=build /usr/src/app/dist/index.html /etc/nginx/index.html.template

# from the outside.
EXPOSE 80
Expand Down
13 changes: 0 additions & 13 deletions WEB-INF/web.xml

This file was deleted.

Loading