44 Commits

Author SHA1 Message Date
Oliver Günther b36272cfd7 Remove npm run build:fast after esbuild introduction 2025-08-20 14:22:11 +02:00
Oliver Günther b151e8017d Use explicit fast build without source maps and minify for testing and PullPreview (#16563)
Use explicit fast build without source maps and minify for testing and PP
2024-08-30 10:41:53 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Oliver Günther 7f3a30f324 Fix load paths for production 2023-08-07 09:33:08 +02:00
Oliver Günther 773a41d1ac Disable terser plugin optionally with OPENPROJECT_ANGULAR_OPTIMIZATION=false 2023-08-07 09:23:34 +02:00
ulferts 3c7b6d0ecc load the environment to have the crowdin path added to I18n.load_path 2023-07-26 17:33:53 +02:00
Oliver Günther d1ac70db1b Don't use i18n command in favor of exporting in rake task directly 2023-07-19 10:11:46 +02:00
Oliver Günther bf6e9e037e Bump i18n-js to v4 2023-07-19 10:11:45 +02:00
ulferts a602295a6a Merge remote-tracking branch 'origin/release/12.5' into dev 2023-06-09 14:14:01 +02:00
Markus Kahl 0487e8d42a remove confusing, obsolete warning 2023-06-09 10:59:21 +02:00
Oliver Günther 6ea3d17bb2 Add build:ci npm build option 2023-05-25 21:17:30 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
luzpaz 2ae53bd252 Fix typos in user facing and non-user facing code (#9497)
* Fix typos in user facing and non-user facing code

Found via `codespell -q 3 -S ./config/locales -L ba,nd,parms,sur,varius`

* Fix strings in specs
2021-07-21 17:26:31 +02:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts b52b0d87ac prevent yarn from interfering 2021-01-04 20:36:14 +01:00
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00
Oliver Günther 10e21154f7 Move asset pipeline javascripts to frontend (#8482)
* ove reporting and reporting_engine js to frontend page

* Replace webhook assets javascript

* Add path augment service to dynamically load scripts

* Remove JS-Files that are not used/not needed any more

* Include AugmentingModule correctly

* Remove special handling for checkbox selection which is outdated and two jquery libs that are not used any more

* Load scripts dynamically that are not needed globally

* Move plugin JS to frontend

* Move toggable fieldsets to global listeners

* Move top-menu to global listeners and convert to TS

* Move action_menu to frontend and port to TS

* Move settings listener to frontend

* Remove global js assets that were not used anyway

* Move date range to timelog dynamic script where it's still used until removed

* Move colors to global-listeners and port to TS

* Replace tooltip with simple form instructions on the one place used

Tooltips were only used at the one place in our application, when changing a users password.
We can simply remove it there and use a modern solution the next time we need a tooltip

* Move danger zone validation to frontend and port to TS

* Move colorcontrast to backlogs vendor where it's used now

* Remove contents of application.js.erb

* Move project and user scripts to dynamically loaded

* Move onboarding tour to dynamically loaded

* Use correct syntax for jQuery so that $ is  known keyword within this function

* Fix onboarding tour

* Fix onboarding tour for scrum tour

* Fix specs after moving JS

* Remove application.js.erb

* Move locales and ckeditor to the frontend to dynamically load

* Remove bundles caches

These are no longer being used since angular cli

* Ensure locales are exported before angular

Co-authored-by: Henriette Darge <h.darge@openproject.com>
2020-07-09 11:02:43 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 009a808587 [30197] Use separate ENV to trigger frontend angular recompilation
This PR introduces two env variables for packaged installations:

- RECOMPILE_RAILS_ASSETS will be set when a server prefix set and
backend assets need to be recompiled or when a custom gemfile is present

- RECOMPILE_ANGULAR_ASSETS will be undefined by default and will result
in skipping angular recompilation if `RECOMPILE_RAILS_ASSETS=true`. Can
be manually set by the user if frontend recompilation is needed (due to
a custom frontend plugin).

https://community.openproject.com/wp/30197
2019-05-23 10:57:47 +02:00
Oliver Günther 4388ebb879 Add linked-plugins.module to gitignore and create placeholder 2018-06-26 09:52:40 +02:00
Oliver Günther 9d0fde462c Merge remote-tracking branch 'origin/dev' into angular-cli-plugin-context 2018-06-25 08:40:14 +02:00
Oliver Günther 3e55430bc4 Fix procfile and references to new linking 2018-06-22 09:59:29 +02:00
Oliver Günther 2ab1a51d7a Link legacy frontends in the same fashion 2018-06-21 14:00:38 +02:00
Oliver Günther 703ba007e7 Fix raising when RAILS_ENV is test 2018-06-20 08:57:33 +02:00
Oliver Günther 37c1e23797 Build legacy frontend in assets precompile, not postinstall
This would otherwise break on packager because bundle is not ready there
2018-06-20 08:26:24 +02:00
Oliver Günther 5a1f86b1d2 Add angular cli manifest helper 2018-06-01 10:30:48 +02:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Oliver Günther d9baf5748d Execute i18n export for tests
The middleware is only used for dev mode, and thus we need to enhance
the existing rake task to not only run webpack, but also the i18n
export.
2016-07-13 15:22:26 +02:00
Oliver Günther 2f57685327 Export locales as assets as part of assets:precompile 2016-07-13 08:49:19 +02:00
Oliver Günther 6498a1115f Add separate webpack config for production (#4440)
With https://github.com/opf/openproject/pull/4433, rake
assets:precompile also compiles the tests, which takes quite some time
(25s), despite not being needed.

This commit adds a separate webpack config for production that only
exposes the main config.
2016-05-20 13:52:29 +02:00
Alex Coles e0191e759c Update year in copyright header to 2015
[ci skip]
2015-01-01 00:02:57 +00:00
Alex Coles b95b3e7f8b Fix paths in Rake assets:clobber task
Changed in previous commit 3d34ff2e.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-26 13:58:30 +01:00
Alex Coles 47a302e1ec Update paths in Rake task for Webpack compilation
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-26 13:58:30 +01:00
Alex Coles b8b26cfcf0 Fix syntax (w/Rubocop) in tasks
Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-11-03 22:15:13 +01:00
Alex Coles 0f65bb5c1f Add Rake tasks for Webpack compilation
Hook Webpack build into standard Sprockets precompilation.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
2014-10-23 14:48:46 +02:00