Commit Graph

38 Commits

Author SHA1 Message Date
Pierre Goiffon
9eac12bd9c Fix CSS precompilation signature check on non Linux OS
* fix images paths comparison
* fix MD5

Were depending on platform : \ThemeHandlerTest::testGetIncludedImages test passed on Linux, not on Windows due to different DIRECTORY_SEPARATOR
2020-09-24 12:38:16 +02:00
odain
1eba8ba4ac Merge branch 'support/2.7' into develop 2020-09-07 16:48:15 +02:00
Eric
bb892cc180 N°3078 - Fix error on login while in maintenance mode 2020-08-27 17:10:37 +02:00
odain
a4842f9e5c N°2996 - Remove iTop version from css-variable.scss
Fix PCRE non backward compatibility between PHP 7.2 and 7.3
2020-08-27 09:37:10 +02:00
odain
9a0d9d2c38 Merge branch 'feature/fast-theme-compilation2' into develop
N°2982 - speedup themes/scss compilation during setup
N°2996 - Remove iTop version from css-variable.scss
2020-08-26 17:59:31 +02:00
odain
a538e3c1a2 N°2996 Remove iTop version from css variables
- $version does not exit anymore in css-variables.css. now its value is computed during setup and equals setup timestamp instead.
    - use precompiled files (declared in datamodels XML files) to check if theme compilation is required or not.
    - referenced images in scss files are included in precompiled file signatures just like scss files md5sum.
    - images declared in scss files with v=$version are reloaded automatically on browser side after each theme compilation (see xxx.png?v=timestamp)
    - precompiled files are replaced if theme compilation occurred. this will avoid same time consuming operation at next setup.
    - code cleanup: arrays / variables renamed
2020-08-14 17:03:16 +02:00
odain-cbd
7b8c390a80 Revert "Faster compilation of themes" 2020-08-07 16:20:12 +02:00
odain
ec0f726c26 💚 fix tests 2020-08-05 14:39:00 +02:00
odain
08414296b6 tmp work: save timestamp + few fixes 2020-07-21 23:22:50 +02:00
odain
307713d326 N°2996 - Remove iTop version from css-variable.scss
Include images in precompilation check
2020-07-16 18:41:55 +02:00
odain
2d8b888a18 N°2982 - speedup themes/scss compilation during setup 2020-07-16 18:41:01 +02:00
Denis Flaven
6b2b56cf72 Faster compilation of themes
- Ability to provided precompiled themes in the datamodel
- Check that a precompiled theme is still up-to-date based on a signature
2020-07-16 18:33:13 +02:00
odain
6e4f9a9b93 small fix 2020-06-12 09:14:09 +02:00
odain
4d3aefe2a4 fix all the tests 2020-06-11 21:29:03 +02:00
odain
c9c833a868 IssueLog instead of echo in ThemeHandler 2020-06-04 22:50:45 +02:00
odain
7cad4ac444 adapt testValidatePrecompiledStyles 2020-06-04 22:47:50 +02:00
odain
001680906d molkobain remarks in PR 2020-06-04 21:58:03 +02:00
odain-cbd
ed355cb8cf Update application/themehandler.class.inc.php
Co-authored-by: Molkobain <guillaume.lajarige@combodo.com>
2020-06-04 21:52:02 +02:00
odain-cbd
fa036ee724 Update application/themehandler.class.inc.php
Co-authored-by: Molkobain <guillaume.lajarige@combodo.com>
2020-06-04 21:47:02 +02:00
odain-cbd
e04548a61c Update application/themehandler.class.inc.php
Co-authored-by: Molkobain <guillaume.lajarige@combodo.com>
2020-06-04 21:45:29 +02:00
odain-cbd
25c55bdaf4 Update application/themehandler.class.inc.php
Co-authored-by: Molkobain <guillaume.lajarige@combodo.com>
2020-06-04 21:43:17 +02:00
odain-cbd
c1c43c7d5d Update application/themehandler.class.inc.php
Co-authored-by: Molkobain <guillaume.lajarige@combodo.com>
2020-06-04 21:43:00 +02:00
odain
b7ffa9e3c0 bug2996: include images in precompiled signature 2020-06-04 08:55:28 +02:00
odain
d13591ca85 create parameters.json folder when necessary 2020-05-04 15:24:45 +02:00
odain
c1b3cb1e7b avoid to read SCSS signature when no file touched and itop theme loading only + create parameters.json folder when necessary 2020-05-04 15:16:26 +02:00
odain
d43c72b3ac avoid to read SCSS signature when no file touched and itop theme loading only 2020-05-04 14:42:55 +02:00
odain
3ee4b564f0 add a test to always validate datamodel declared precompiled CSS 2020-05-04 11:16:51 +02:00
odain
0988c8ccbf Mock compiler caller for test + Cover with tests + small css compilation fixes 2020-05-02 00:45:15 +02:00
Denis Flaven
5cfa06e36f Faster compilation of themes
- Ability to provided precompiled themes in the datamodel
- Check that a precompiled theme is still up-to-date based on a signature
2020-04-22 16:11:02 +02:00
Molkobain
649e2f8e6a Internal: Remove unused import 2020-02-27 15:10:41 +01:00
Molkobain
3c3d744747 N°2314 - Refactor part of the compilation in dedicated helpers 2020-02-27 15:09:57 +01:00
Stephen Abello
10d04756ee N°2314 - Markup extensibility: Fall back on iTop's default theme when a non existing theme is selected 2020-02-03 15:12:59 +01:00
Molkobain
3ae2058f6f N°2314 - Markup extensibility: Refactor utils::GetCSSFromSASS() to enable SCSS compilation out of a file 2020-01-24 17:02:02 +01:00
Molkobain
ba8a2c1b15 N°2710 - Fix setup crash due to PHP notices (regression introduced in 59678955) 2020-01-22 13:32:31 +01:00
Molkobain
5967895561 N°2710 - Fix extremely slow page load for first user after setup (regression introduced in N°2314) 2020-01-21 17:19:16 +01:00
Molkobain
d100ce8005 PHPDoc and code formatting 2020-01-21 15:35:09 +01:00
Molkobain
d963fbd8cf N°2314 - Markup extensibility: Fix crash when no <theme> defined in datamodel 2020-01-21 12:20:59 +01:00
Stephen Abello
611e828d1a N°2314 Introduce custom themes for iTop's console 2019-12-12 15:46:03 +01:00