54 Commits

Author SHA1 Message Date
Matthieu Eyraud
28f11c3b28 Transition WebUI to Angular 13
This commit transition the application to Angular 13, and refactors the
build process to use the Angular CLI instead of hacking a webpack config.

It also removes a lot of things: junk code, or features that are no longer
needed, like the following:

    * The Codepeer history view of the various runs is removed

    * The refresh review / add review buttons with their associated dialog
      are removed

Change-Id: I8adb19aa2ec8303aa23bd38a916fac35947ee69a
Depends-On: Ie50b0def8c0c2485f890eb46317b53b62b4382dd
TN: V316-059
2022-08-24 17:02:53 +00:00
Adrien Boulanger
e4f9554a45 T416-023: Update webui to python3
Remove node-sass which is not yet compatible with python3
(need to wait for the 5+ release) => replace it by dart-sass.
Remove angular-cli which is expecting node-sass.
Update node-gyp to a version using python3.
Update the packaging script via 2to3.

Change-Id: Ie4c659253ffa4d2f942c4b4a9cfcda802e47a7b2
2020-09-21 17:44:47 +02:00
Lespinasse
505a9f2617 WebUI: Add firefox to karma test
Change-Id: Idd063f2c667f8784b88502a82a0e6e21fd9c3513
For: T122-010
2020-01-24 15:38:00 +01:00
Lespinasse
1df2510ee3 WebUI: Rework of the testsuites
- Added rule only for Karma in makefile
	- Picked the right version to run Karma wothout error
	- Review existing spec.ts

Change-Id: Ibf59f8359cb33738f56562ddd14a64667914becb
For: S923-005
2020-01-21 11:23:49 +01:00
Lespinasse
497f2aa618 WebUI: Add codepeer history
- Create new page for codepeer history
	- Create chart to show info
	- Create table to show info
	- Erase codepeer-run-info pop-up/dialog
	- Merge codepeer-run-info in the new page
	- Review design of tables
	- Add filter to the chart
	- Rename title of page and button
	- Change tooltip template

Change-Id: I8550e5949e605412add4a30ee6a18951b1f04d06
For: RC20-011
2019-10-30 12:11:28 +01:00
Lespinasse
14f62cf028 WebUI: Create thirdparty for offline build
Change-Id: I12e64c389422b6e62ffb6e36660c635192b26e66
For: S920-024
2019-10-17 14:28:05 +02:00
Lespinasse
1c111cbb95 WebUI: Scrolling not working
- Install a new module to scroll smoothly.

Change-Id: I38d63acf23180bc2036f4ade13671ddabf49c3d0
For: S918-039
2019-09-25 17:28:06 +02:00
assamoi
72dedb6bee Fix webui build process
Use es6 target for typescript
Use proper node modules versions
Remove dll budles plugin: this plugin was a shortcut
to generate vendor bundle + reference it in the bundled app,
but in fact it was forcing the vendor entry point name to "vendor"
when it should have been the same as the name defined in
the bundle-manifest.json: vendor_lib.
Hence the 'vendor_lib' not defined.

So make it work, do:

> npm install
> npm run build:dev
> npm run server:dev
  (after having put the data dir content in /dist/data)

And it requires at least node 8.0.0

TO-DO: the final js files are a bit under 2M, some minification
might be good to reduce it a bit, but as it's a loaded locally,
it's no big deal.

Part of S913-015

Change-Id: I9c37f86e54adeed938f684f5a8e23646e93c0291
2019-09-18 13:57:26 +02:00
Lespinasse
ff5fd22e42 WebUI : Migration from Angular2 to Angular8
This reverts commit 975c77e553.

Fix for error with Uglify-JS on Linux machine
Fix for webpack-cli error

For: S724-007

Change-Id: I463764ac88670cb034aa4015d3cc2c2aed74f771
2019-09-03 18:36:14 +02:00
Jeanne Lespinasse
975c77e553 Revert "Revert "Revert "Revert "Revert "Revert "Revert "WebUI : Migration from Angular2 to Angular8"""""""
This reverts commit 52d80b7446.

Change-Id: I7e1a3d7ee2ab8a41c15cacb9346008b5f1b011a8
2019-08-28 00:18:32 +02:00
Jeanne Lespinasse
52d80b7446 Revert "Revert "Revert "Revert "Revert "Revert "WebUI : Migration from Angular2 to Angular8""""""
This reverts commit 88fe734f0c.

Change-Id: I1204c75712689a85175e5c0058d82c2dde517c78
2019-08-27 22:00:18 +02:00
Jeanne Lespinasse
88fe734f0c Revert "Revert "Revert "Revert "Revert "WebUI : Migration from Angular2 to Angular8"""""
This reverts commit 287d236522.

Change-Id: I6801b630cf826f49bc7d1079db63acf2ae051af1
2019-08-27 21:36:10 +02:00
Jeanne Lespinasse
287d236522 Revert "Revert "Revert "Revert "WebUI : Migration from Angular2 to Angular8""""
This reverts commit 10dc1ef404.

Change-Id: I425912172824d2c78ff2ac0e8b6102f319cf46a2
2019-08-27 18:59:20 +02:00
Jeanne Lespinasse
10dc1ef404 Revert "Revert "Revert "WebUI : Migration from Angular2 to Angular8"""
This reverts commit f14e208954.

Change-Id: I11f4c2999d50bb5f7d187fd9fbb2b23678edcbe9
2019-08-06 14:25:39 +01:00
Jeanne Lespinasse
f14e208954 Revert "Revert "WebUI : Migration from Angular2 to Angular8""
This reverts commit 18e3019ab0.

Change-Id: I9198679004837b844aae18d58d86422bfa6aebb3
2019-08-05 09:17:30 +01:00
Jeanne Lespinasse
18e3019ab0 Revert "WebUI : Migration from Angular2 to Angular8"
This reverts commit c9aa3122d0.

Change-Id: I3721dfb6e422f6a4c33db3019dbc6d884079f879
2019-07-24 11:28:27 +01:00
Lespinasse
c9aa3122d0 WebUI : Migration from Angular2 to Angular8
- Reviewed all package.json
	- Creation of package-lock.json
	- Change the routing process
	- Rework the little detail

For: RC09-006

Change-Id: I981e429a93ff7b0e16aae5b1a81a5d244404850a
2019-07-12 16:12:06 +02:00
Lespinasse
c223c50b26 WebUI : Enhance Angular2 performance
- Work on html for loop to have faster results

Change-Id: Idcd3a52f5dc2579b669b213e535c083f77989720
For: RA22-027
2018-10-23 17:59:54 +02:00
Lespinasse
31da272166 WebUI : Link WebUI with codepeer_bridge for user review
- Add a user review
	- Get the user review from codepeer
	- Link data between Gnathub and Codepeer

For : R626-026

Change-Id: I1f8ea96d114080e5e7d35d6e5bcc29172bc67290
2018-07-11 19:21:31 +02:00
Lespinasse
46eceb3a2e WebUI : Clean up of node dependencies (dev version)
- added two dependencies needed for build:dev

For R116-038

Change-Id: I101306f4bd5365edaba78c6aeb3658d734af6c01
2018-02-20 17:32:55 +01:00
Lespinasse
120ddccc99 WebUi: clean-up node dependencies
- All un-imported modules are erased (almost 400)
- New package.json with all dependencies

Next step is to verify that all imported modules are used
Also check gulp-utils wich is deprecated

For R116-038

Change-Id: Id437457557b0793bca8ec10ea89f57a2f08d7170
2018-01-31 14:52:29 +01:00
Nicolas Setton
26b9a4febf Fix the version of node-sass to under 4.7.x
Because this doesn't work on older versions of Linux.
For QB21-045

Change-Id: I3bb54a7f4d7bc7e7e252e3088a1faffc0a6549c2
2018-01-04 15:06:59 -05:00
Charly Delay
394d6bacd3 webui: update annotated source view
Change-Id: I3b72fdbf855cdddef87578ad7bd9a1aa1b8838b6
2017-01-23 14:42:55 -05:00
Charly Delay
bee4754daa webui: bump versions for webpack
Change-Id: If6e1a6e063a7c0be0d8a14b4f069ac782fe31b85
2017-01-23 10:09:12 -05:00
Charly Delay
92991a92d2 webui: upgrade Angular 2.4.3
Also upgrade other dependencies such as the latest and greatest Webpack.
Refactor sources to comply to the coding style in order to have a clean
run for tests.

Change-Id: Ic10271c92c4b8c4b7991acfb28670d80b03a1f2b
2017-01-20 09:03:27 -05:00