General discussion on installation and configuration of SOGo

Text archives Help


[SOGo] change angular-material & make -C UI/WebServerResources prod


Chronological Thread 
  • From: "Ivan Zakharyaschev" ( ) < >
  • To:
  • Subject: [SOGo] change angular-material & make -C UI/WebServerResources prod
  • Date: Wed, 7 Feb 2018 01:24:41 +0300 (MSK)
  • Dmarc-filter: OpenDMARC Filter v1.2.0 mail.inverse.ca A11D01040067

Hello!

Can you please tell me how to change UI/WebServerResources/angular-material/ sources and then recompile so that the changes take effect?

Example of what I did to try out some changes (an attempt to fix a problem reported several times like https://sogo.nu/bugs/view.php?id=4103 and test the new code) and it didn't work, i.e. they didn't take effect:

Updated the submodule UI/WebServerResources/angular-material and committed the new changes -- https://github.com/imz/material/tree/chips-separator-keys .

Committed the new submodule state -- the second top commit 0d8ef8fca38e4df3f202c2d05f980e678076f57e in http://git.altlinux.org/people/imz/packages/sogo3.git?p=sogo3.git;a=shortlog;h=refs/heads/chips-separator-keys .
Read Documentation/SOGoDevelopersGuide.asciidoc (section: Building frontend), did all the commands (npm etc.)

Run make -C UI/WebServerResources prod .

The result: it regenerated and committed some JS files -- in cdf0a77f681bcb9006217e2971e025251dfecefd , second top in http://git.altlinux.org/people/imz/packages/sogo3.git?p=sogo3.git;a=shortlog;h=refs/heads/altM/80P .

But the changed angular-material code didn't get into the result. To check:

$ cd UI/WebServerResources/angular-material/
$ git --no-pager grep -iFe inputKeypress
src/components/chips/js/chipsController.js:MdChipsCtrl.prototype.inputKeypress = function(event) {
src/components/chips/js/chipsController.js: * Common code for both inputKeydown and inputKeypress
src/components/chips/js/chipsController.js: .on('keypress', function(event) { scopeApplyFn(event, ctrl.inputKeypress) })
src/components/chips/js/chipsDirective.js: ng-keypress="$mdChipsCtrl.inputKeypress($event)"\
$ cd ..
$ git --no-pager grep -iFe inputKeypress | wc -l
0
$

Compare that to the old code:

$ cd UI/WebServerResources/angular-material/
$ git --no-pager grep -iFe inputKeydown
src/components/chips/chips.spec.js: ctrl.inputKeydown(event);
src/components/chips/js/chipsController.js:MdChipsCtrl.prototype.inputKeydown = function(event) {
src/components/chips/js/chipsController.js: * Common code for both inputKeydown and inputKeypress
src/components/chips/js/chipsController.js: .on('keydown', function(event) { scopeApplyFn(event, ctrl.inputKeydown) })
src/components/chips/js/chipsDirective.js: ng-keydown="$mdChipsCtrl.inputKeydown($event)">';
$ cd ..
$ git --no-pager grep -iFe inputKeydown | wc -l
4
$

--
Best regards,
Ivan


  • [SOGo] change angular-material & make -C UI/WebServerResources prod, Ivan Zakharyaschev, 02/06/2018

Archive powered by MHonArc 2.6.18.

Top of page