89 Commits

Author SHA1 Message Date
Alexander Brandon Coles 1e4d633fa0 Allow npm 11 alongside npm 10
Node 24 ships npm 11, which the previous `^10.9.8` range rejected with
an EBADENGINE warning.
2026-06-07 21:44:36 +01:00
Alexander Brandon Coles ead911e214 Bump Node to 22.22.3, npm to ^10.9.8
Bumps supported Node engines to `^22.22.3 || ^24.15.0`.

Updates to Node 22.22.3 for development, production, GitHub workflows
and in documentation.
2026-06-07 21:01:52 +01:00
Eric Schubert abbaf045c5 [chore] fix api spec validation
- validation script used unmaintained npm package
- switched to actively maintained package from same maintainer
- pipe full output to stdout
- bump node major version in development backend Dockerfile
- fix two api spec errors and two random warnings - boyscout, hell yeah
2026-02-11 14:11:20 +01:00
Oliver Günther 6bf4c0b67c Bump node to 22.21.0
Addresses CVE-2025-23166
2025-10-27 11:01:44 +01:00
Oliver Günther ef93c3040c Install xeokit dependency in root npm package 2025-06-23 15:08:12 +02:00
Oliver Günther fdea795a77 Bump Node.js and NPM (#18814)
* Bump nodejs to 22.15

* Update frontend docker
2025-05-05 15:30:22 +02:00
Oliver Günther 28df3ba7ae Remove webfonts-generator from root package.json 2023-11-06 11:42:28 +01:00
Eric Schubert 029c0596d4 [chore] bump backend node engine (#14034)
* [chore] bump backend node engine

- bump to v20, latest LTS

* [chore] replaced node versions in docs
2023-11-02 13:33:58 +01:00
Oliver Günther 3de2e70089 Use custom webpack config with terser to keep classnames 2023-07-25 16:25:46 +02:00
Oliver Günther 5ffdae0bde Remove fullcalender dependencies in root 2023-05-04 07:47:24 +02:00
Behrokh Satarnejad 30ce7a915d [45001] Create a new component to show the list of non-working days of a year (#11718)
* create a new component for showing list of NWD

* fix the method for fetching data from the database

* fix eslint errors

* add delete icon to the list of non-working days

* Change componenet name and add empty state handleing and add button for opening the date picker modal

* fix full calendar/list css import issue in anguar 14

* change confirm modal to show a list of data and a warning

* open confirmation modal in list of non-working days component while submitting the form

* format removed dates to be shown on the confirmation modal

* change a warning string

* make a connection between rails and calendar list component

* reinstall list in fullcalendar

* fetch data from non-working days API endpoint

* set suto to content height of calendar

* use id returned from the API

* Fix parameter name on WorkingDaysSettingsController

* Fix non working days attributes _deleted to _destroy

* Pass ruby variable to the op-non-working-days-list component

* fixup! Pass ruby variable to the op-non-working-days-list component

* Pass this.modifiedNonWorkingDays to the angular component

* add inputs to the form itself instead of row of calendar, while adding a new NWD

* Update the modified_non_working_days variable to also propagate the _destroy field to the frontend

* create hidden inputs only for added and deleted NWDs

* Fix specs

* Limit json attributes

* add non-working days as test

* add hidden inputs for a new nwd in ngoninit and add it to the calendar itself at the same time, when it is back from a failed proces

* add a method to check if a date is a NWD

* Add requests spec for deleting non working days

* Allow dangling underscore for _destroy

* fixup! Allow dangling underscore for _destroy

* WIP single date picker

* Use slots from single datepicker to wire up modal

* Add spec to add a NWD

* remove Non-working days only toggle

* WIP

* Add required validation

* show asterisks beside date in date-picker

* test if date ans name are entered then close the datepicke

* Add error when already added

* Rewrite into less implicit created elements

---------

Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2023-02-06 20:01:16 +01:00
Benjamin Bädorf a9e29279ea Feature/storybook (#10797)
Squash commit of storybook addition to aid design system documentation efforts.

The older commit titles were:

* Initial storybook commit

* Fix documentation.json links

* Don't track documentation.json in git

* Enable sass in storybook

* Initial version of a story that uses angular components

* Remove example stories, clean up button story

* More example stories

* Fix sb build

* Always use dev

* Try without auth header

* Update workflow name

* More logs

* Check if token set

* Use release/storybook branch for testing

* Send ref input to workflow

* Escape input to curl call

* Adding logging

* Different type of escaping

* Fix JOSN

* Use dev branch for opf/design-system storybook publishing

* Add plugin to message path to parent window

* Remove extraneous story

* Add a ton of docs

* Update stories

* Fix syntax error caused by multiple newlines inside of a JSX component

* Add text-field story

* Add basic html stories that don't work yet

* Try to get plain HTML examples working

* HTML Examples work, but slowly revert to components anyway

* Fix HTML examples

* Remove extraneous files

* Put storybook eslint rules back in

* Improve docs

* Show docs tab by default

* Add pullpreview for storybook

* Use the same pullpreview tag for both storybook and normal deployments

* Change name of second pullpreview workflow

* Pin node version to 16.17.0

* Initial update to docs

Added/updated:

Foundation pages:

- Colours (major update)
- Shadows (minor)
- Typography (new)

Blocks

- Checkbox (minor)
- Action bar (major)
- Buttons (new)
- Link (major)
- Modal Dialogue (new)
- Selector Field (new)

* Make sure all code is available during storybook pp build

* Change storybook pullpreview file name

* Add production target to docker-compose sb pp

* Fix acme check for sb pp

* Only run cd-storybook on dev branch

* Run without https on 8080

* Added intro and new page

- Introduction renamed to "Design System", page rewritten completely
- Added page "Devices and Accessibility"

* Remove domain from caddy

* Add port to listen command

* Remove double pullpreview workflows

* Added Divider component

* Change sorting of stories

* Update section titles and order for styles and blocks

* add extra action bar story

* Updated organising + new page

- Updated organisation into Styles, Components and Patterns.
- Added page "Using Storybook" (mostly a skeleton for now)

* Added note about colours not being implemented yet

* Minor

Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
2022-09-19 14:39:15 +00:00
Henriette Darge 79521f4aae Update node to v16 and npm to v8 2022-06-13 11:09:17 +02:00
Eric Schubert 29afa4da70 [#40228] added storage resource
- changed /download and /open to redirect responses
- fixed readOnly properties
- added storage path and model
- added permissions and descriptions on error responses
2022-01-25 14:44:42 +01:00
Benjamin Bädorf 8f54d68124 Add icons 2021-09-22 17:48:20 +02:00
Oliver Günther 4d7bb8b559 Downgrade npm to 6.x 2021-07-19 15:28:44 +02:00
Benjamin Bädorf 4f0850d208 Enable frontend unit tests in docker (#9480)
* Enable frontend unit tests in docker

* Update npm command names
2021-07-19 12:32:05 +00:00
Wieland Lindenthal b81499ab3a Update node to 14.17.0 and npm to latest version 2021-06-03 13:00:28 +02:00
Piyotaro, Kiiroi (きいろい ぴよ太郎) 6385150c6a Bump nodejs to v14.16.0 (#9046)
* Bump nodejs to v14.16.0

Lastest LTS version of nodejs is 14.16.0

* Bump nodejs to v14.16.0

Lastest LTS version of nodejs is 14.16.0
2021-02-24 20:21:03 +01:00
Oliver Günther 64e8514dba Bump required node to latest LTS 2020-07-31 14:27:29 +02:00
Oliver Günther 144c0bb8e7 Merge remote-tracking branch 'origin/dev' into housekeeping/remove-angularjs 2019-07-02 07:37:56 +02:00
Oliver Günther 8e32895ce3 Remove legacy frontend 2019-07-01 20:08:06 +02:00
Oliver Günther 4d1c16bc5f Ensure we install according to shrinkwrap 2019-06-25 15:14:08 +02:00
Oliver Günther 419e161538 Use correct node engine 2019-06-07 13:01:59 +02:00
Wieland Lindenthal 3cee485f46 Revert "Revert "Merge pull request #6964 from opf/spike/bim-bcf""
This reverts commit 766f958145.
2019-04-02 16:49:42 +02:00
Wieland Lindenthal 766f958145 Revert "Merge pull request #6964 from opf/spike/bim-bcf"
This reverts commit 20525deede, reversing
changes made to 27eb788f69.
2019-04-02 16:06:12 +02:00
Oliver Günther b367437131 BCF Import and exporBCF Import and export
[ci skip]
2019-01-14 13:20:30 +01:00
Oliver Günther 30f7de8108 Skip updating shrinkwrap in helper scripts
[ci skip]
2018-12-12 15:29:32 +01:00
Oliver Günther f98254fec7 Enforce LTS version in package.json
[ci skip]
2018-10-26 14:41:11 +02:00
Wieland Lindenthal 4a9b489bb0 Add separate script npm run serve-public for developing cross device.
Documentation updated.

[ci skip]
> openproject@0.1.0 serve-public /Users/wieland/Documents/Arbeit/forkmerge/clientes/openproject/openproject
> cd frontend && ./node_modules/.bin/ng serve --host 0.0.0.0

/Users/wieland/openproject/openproject/frontend for developing cross device. Documentation updated.
2018-08-29 14:51:14 +02:00
Oliver Günther 2a924dcc74 Add more useful setup_dev script
[ci skip]
2018-06-27 09:14:26 +02:00
Oliver Günther 3e55430bc4 Fix procfile and references to new linking 2018-06-22 09:59:29 +02:00
Oliver Günther 241106b197 Fix typechecks 2018-04-04 08:30:03 +02:00
Oliver Günther 9bcd61db16 Don't build test config by default 2017-03-08 10:56:14 +01:00
Oliver Günther 418cd5ec96 Loosen engine versions 2017-02-07 08:09:59 +01:00
Oliver Günther 039ba1dd2f Migrate to webpack 2 2017-01-30 20:35:57 +01:00
Oliver Günther eef3f0cc15 Remove duplicate @types/mousetrap 2016-12-20 11:07:32 +01:00
Oliver Günther bdc68134df Remove checbkoxes from WP table 2016-12-13 09:02:35 +01:00
Oliver Günther 4b2235aaf6 Force npm@4.0.0 due to shrinkwrap bug in 3.0.9
https://github.com/npm/npm/issues/14042
2016-10-26 12:41:47 +02:00
Oliver Günther 84b4104774 Bump node version for travis, packager and documentation 2016-10-25 15:14:04 +02:00
Roman Roelofsen 6b448b0b06 - TypeScript 2.0
- Use awesome-typescript-loader in WebPack
- Correctly name open-project.typings.d.ts (instead of wronglopen-project.typings.ts)
- Insert typings.d.ts to reference typings-folder outside of app folder
2016-10-10 15:21:46 +02:00
Oliver Günther e49c163d00 Remove gulp with simpler npm tasks
This removes `gulp` and provides a simpler `karma` and `webpack`,
`webpack-watch` npm scripts.

For actual development, users will need the Rails stack anyway, so it
won't make sense to keep a separate set of dependencies up to date.

* Instead of `gulp webpack`, use `npm run webpack`.
* Instead of `gulp watch`, use `npm run webpack-watch`, which is *drastically* faster than gulp watch-polling.
* Instead of `gulp tests:karma` use `npm run karma`, or just `npm test`.

This also removes all traces of express and restores the Rails
styleguide. It is not whitelisted for precompilation and is only
available in the context of the development mode.

To access the styleguide, use `/assets/styleguide.html`.
2016-04-26 07:56:31 +02:00
Oliver Günther d9be51c30f Remove protractor E2E tests (#4346)
In agreement with @furinvader, we have decided to remove protractor
testing from OpenProject.

Frontend tests are implemented in karma and test single units of work as
before.
Since the freshness of APIv3 JSON mocks are getting ouf hand and we have
covered almost all E2E protractor tests with Rails, we're going to
resort to Rails to write concise *actual* integration test with correct data.
2016-04-22 08:23:00 +02:00
Alex Coles 8c26649040 Create root package.json aliasing scripts
This should ensure CI and pkgr.io continue working as expected.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-12-01 09:13:55 +01:00
Alex Coles 25a6b61f2d Move remainder of Angular app under frontend
Templates, project infrastructure, configuration.

See 6ec5ca58.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-26 13:28:59 +01:00
Alex Coles 35f2c7a978 Add lodash (as npm dependency)
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-20 16:39:53 +01:00
Alex Coles dbc840e121 Add shelljs for synchronous command exec
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-20 15:39:42 +01:00
Alex Coles 548a88bb92 Expose I18n as global with Webpack expose-loader
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-20 15:39:42 +01:00
Alex Coles ef365c4e70 Bump Protractor to 1.4.0
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-17 13:07:41 +01:00
Alex Coles 2af78db7d9 Add jshint-stylish, configure as JSHint reporter
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-11 14:28:46 +01:00