Commit Graph

32 Commits

Author SHA1 Message Date
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
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
Jeanne Lespinasse
6efaf624ef Revert "WebUI: Fix dist dir path"
This reverts commit 86998236af.

Change-Id: I9ee7a7b43bc8a03f41df83792efe8d3605073148
2019-09-17 17:27:02 +02:00
Lespinasse
86998236af WebUI: Fix dist dir path
Change-Id: Ie8060a3da6dc55206aeff8c4eaa592e9c0f8368e
For: S913-015
2019-09-16 18:46:42 +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
9cd1e25abc WebUI: put tests in production
- Creation of a custom karma module, for the need of GAIA

For R114-008

Change-Id: I7678538fcb855796256eaed63236e495a306b71c
2018-01-31 14:52:14 +01:00
Lespinasse
6337358312 Make the projects, dirs and files lists sortable in webui
WebUI :

	Patch to sort the projects lists and files lists
	Changes in all the files of src/app/project-explorer/
	Some changes in src/gnat.d.ts to adapt the interfaces

 For R105-013

Change-Id: I456d01d3d6559fc117480befae7e1da7fced9c7b
2018-01-13 13:46:28 +01: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
Charly Delay
8be778e163 feat(html-report): report component now shows the source tree
Change-Id: I119e3706f55c9b111c2bfdfefeb87acabd0ed515
2016-12-12 18:16:24 -05:00
Charly Delay
1350c0e35f chore(webui): move scripts to head with defer
Change-Id: Ic3b37e59d1e706b97b6ad8f10aae3069d7bcb625
2016-10-25 18:32:39 +02:00
Charly Delay
30d51b53d5 chore(package): use webpack v2 and angular 2.1.0
Change-Id: Ib7095adc50950da79380f6dbe62a93fb01434cbb
2016-10-25 18:32:39 +02:00
Charly Delay
59007eef0e chore(webui): embrace ng2 styleguide
Change-Id: Ie68ae16f1f1524ad5aa6e0829596ae7fcbfc4889
2016-10-10 16:57:55 +02:00
Charly Delay
b057828137 fix: Angular2 dependency warning
See https://github.com/angular/angular/issues/11580 for details.

Change-Id: I1a3829e2b9939d34f71db9acedf55932bc9abbc9
2016-09-19 11:04:49 -04:00
Charly Delay
90c858f2c3 feat(webui): use Pygments for syntax highlighting
Syntax highlighting on the client-end is costly and doesn't make much
sense in the context of statically served source files. Switch from
using client-side code highlighting library HighlightJS to using
Pygments during the HTML report generation for source code highlighting.

Change-Id: I654fea2442674d16a6df0c8b233073d3bd71f8c2
Depends-On: I34beb3e4f3f922be96ab79dfbd372ea738a17f77
TN: P308-014
2016-09-15 18:15:18 -04:00
Charly Delay
44055efa4f chore(webui): remove unused string-replace-loader
It is used to support lay loading of Component, which is a feature
currently unused in this project.

Since it breaks the builds on Windows because the installation is
missing the proper certificates, this patch simply removes it for now.

Change-Id: I1b18ffc0f72a763cd961da705eeb6d53feb99fdb
2016-09-08 08:53:39 -04:00
Charly Delay
a2e3aacdc4 Bump Angular2 framework to version 2.0.0-rc.6
Change-Id: Iae28499322a9c4582aace7b1a0ed2ce6d2d00ea7
2016-09-07 18:51:44 -04:00