-
Tom Darneix authored
* empty color files * change header * change header * add header * rename color_css.php into style-color.css * change file format * improve header file, remove old functionnalities, update headers, add first step of theme selection * remove old directory * clean file * Duplicate Theme to init dark theme * improve SQL schema in order to manage theme * clean file * Add possibility to manage theme * linting * add query to get contact_theme * remove dark mode * update database column * change Centreon-Light for light * delete template value in ptions table * replace php by css file * remove useless folder and fix linting * add carriage return * lint css * fix clapi test * fix indent * remove kb php warning * fix css issues catched with sonarqube * linting in htmlheader * linting * Delete unnecessary CSS file * Set centreon-frontend branch to dark mode's one * Fix build * Fix build * Re-generate package-loc * Update centreon-frontend * Fix tests * Merge remote-tracking branch 'origin/develop' into MON-11932-dark-mode * Re-generate package-lock * refactor(header) : replace header scss module with material make styles service component (#10658) * Replace Header scss module with material makeStyles serviceComponent * Replace Header scss module with material makeStyles for service component * replace header css module for service component * fix zIndex Co-authored-by: vagrant <vagrant@localhost.localdomain> * refactor(header) : replace header scss module with material make styles host component (#10659) * Replace Header scss module with material makeStyles hostComponent * replace header scss module with material make styles host component * replace header scss module with material make styles host component Co-authored-by: vagrant <vagrant@localhost.localdomain> * Replace Header scss module with material makeStyles hedaerIndex (#10656) Co-authored-by: vagrant <vagrant@localhost.localdomain> * refactor(header): replace header scss module with material make styles poller menu (#10662) * Replace Header scss module with material makeStyles pollerMenu * replace header scss module with material make styles poller menu * fix eslint issue Co-authored-by: vagrant <vagrant@localhost.localdomain> * Manage Header and Footer (#10680) * add selected theme to user informations endpoint (#10641) * add selected theme to user informations endpoint * updating user informations api doc * Fix changes theme property in contact entity Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> * Adapt changes from develop * refactor(userMenu): refactor user menu to use standard buttons and links (#10688) * Refactor User menu to use standard buttons and links * Refactor User menu to use standard buttons and links * Refactor User menu to use standard buttons and links * Refactor User menu to use standard buttons and links * fix ts rules * fix ts rules * Update www/front_src/src/Header/userMenu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * refactor user menu to use standard buttons and links * Update www/front_src/src/Header/userMenu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Header/userMenu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Header/userMenu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Header/userMenu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * fix conflict and adapt userMenu Co-authored-by: Tom Darneix <tomdar87@outlook.com> *
🚧 fix(chore): exclude branch's job from analysis (#10741) * Revert "🚧 fix(chore): exclude branch's job from analysis (#10741)" This reverts commit aeffcb61 . * Fix build * Fix E2E test * Fix aria fet * fix(php): fix php warning in header.php (#10767) Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * enh: centreon dark mode for resources status detail component (#10716) * adapt color for detail ResourcesPage * package-lock * enh: centreon dark mode for resources status-graph component- (#10707) * adapt color of container header -component detail- * 11989 adapt color for legend graph * 11989 adapt color for graph component * fix color * fix fontSize of graph * fix fontSize graph * package-lock *🚧 fix(chore): exclude branch's job from analysis (#10741) * Revert "🚧 fix(chore): exclude branch's job from analysis (#10741)" This reverts commit 7cd2b34d481a3443002798816c486e4107f9645d. Co-authored-by: sc979 <34628915+sc979@users.noreply.github.com> Co-authored-by: schapron <schapron@centreon.com> * Remove Module and Widget features * enh(ui): use css variables for colors (#10671) * adding color variables file and exporting from 1000 lines -> end in style.css * Exportation of all variables [Centreon-light] * fixes missing variables and imports * Fix all paths * change primary color legacy * Move all variables to variables.css * resolve duplications and conflicts with variables * change background body color * fix retours * Fix linting Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> * Mon 12354 (#10704) * adding color variables file and exporting from 1000 lines -> end in style.css * Exportation of all variables [Centreon-light] * fixes missing variables and imports * Fix all paths * change primary color legacy * Move all variables to variables.css * resolve duplications and conflicts with variables * change background body color * fix retours * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * adding more color variables and fix indentations * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * linking some of varibles to their colors variables * add all colors of template * fix import variables * fix imports * fix retours * Fix linting error * fix errors phpcs Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> * Centreon Dark mode for Custom Views (#10790) * adding color variables file and exporting from 1000 lines -> end in style.css * Exportation of all variables [Centreon-light] * fixes missing variables and imports * Fix all paths * Move all variables to variables.css * resolve duplications and conflicts with variables * change background body color * fix retours * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * adding more color variables and fix indentations * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * linking some of varibles to their colors variables * add all colors of template * inversing colors in widget tabs to be blue as active and white as passive (#10719) Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> * enh(theme): Create dark theme for background, tabs and buttons (#10740) * add borders to unselected tabs to make them visible * switching custom view tabs and background to dark mode * changing tabs colors to match newer versions * add primary colors * fix bug variables.css * switch primary dark to light mode and light to dark mode * applying dark mode to mini popups in custom view Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * Mon 12372 (#10760) * switching custom view tabs and background to dark mode * WIP * add drak mode to widget preferences * Adaptation & rebase on MON-12371 * fixing primary dark color and tweaking some styles * changing checkbox colors to match light and dark mode * update style of checkbox Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * delete empty variables.css Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: hyahiaoui-ext <97593234+hyahiaoui-ext@users.noreply.github.com> * Centreon legacy components to dark mode (#10793) * adding color variables file and exporting from 1000 lines -> end in style.css * Exportation of all variables [Centreon-light] * fixes missing variables and imports * Fix all paths * Move all variables to variables.css * resolve duplications and conflicts with variables * change background body color * fix retours * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * adding more color variables and fix indentations * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * linking some of varibles to their colors variables * add all colors of template * inversing colors in widget tabs to be blue as active and white as passive (#10719) Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> * enh(theme): Create dark theme for background, tabs and buttons (#10740) * add borders to unselected tabs to make them visible * switching custom view tabs and background to dark mode * changing tabs colors to match newer versions * add primary colors * fix bug variables.css * switch primary dark to light mode and light to dark mode * applying dark mode to mini popups in custom view Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * Mon 12372 (#10760) * switching custom view tabs and background to dark mode * WIP * add drak mode to widget preferences * Adaptation & rebase on MON-12371 * fixing primary dark color and tweaking some styles * changing checkbox colors to match light and dark mode * update style of checkbox Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * adding color variables file and exporting from 1000 lines -> end in style.css * Exportation of all variables [Centreon-light] * fixes missing variables and imports * Fix all paths * change primary color legacy * Move all variables to variables.css * resolve duplications and conflicts with variables * change background body color * centralizing styles in a generic theme and creating ligh and dark themes * Implementation of the generic theme * adding more color variables and fix indentations * linking some of varibles to their colors variables * enh(theme): Create dark theme for background, tabs and buttons (#10740) * add borders to unselected tabs to make them visible * switching custom view tabs and background to dark mode * changing tabs colors to match newer versions * add primary colors * fix bug variables.css * switch primary dark to light mode and light to dark mode * applying dark mode to mini popups in custom view Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * switching custom view tabs and background to dark mode * WIP * add drak mode to widget preferences * Adaptation & rebase on MON-12371 * fixing primary dark color and tweaking some styles * changing checkbox colors to match light and dark mode * enh(ui): adapt Select2 component to dark mode (#10776) * exportation of style2.css color variables * applying dark mode to select2 and changing it to match react * add dark mode to new selected tags select 2 Co-authored-by: Kevin Duret <kduret@centreon.com> * adapt radio button to light and dark mode (#10786) refs: MON-12034 Co-authored-by: yassine JABRI <yassine.jabri@goandev.net> * Mon 12372 (#10760) * switching custom view tabs and background to dark mode * WIP * add drak mode to widget preferences * Adaptation & rebase on MON-12371 * fixing primary dark color and tweaking some styles * changing checkbox colors to match light and dark mode * update style of checkbox Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * Mon 12372 (#10760) * switching custom view tabs and background to dark mode * WIP * add drak mode to widget preferences * Adaptation & rebase on MON-12371 * fixing primary dark color and tweaking some styles * changing checkbox colors to match light and dark mode * update style of checkbox Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * add dark mode to normal select 2 * Update variables.css * Apply suggestions from code review Fix retours Co-authored-by: Kevin Duret <kduret@centreon.com> * fix pointless variables.css file Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: ataghzout <97593248+ataghzout@users.noreply.github.com> Co-authored-by: Kevin Duret <kduret@centreon.com> Co-authored-by: yayassssine <61753581+yayassssine@users.noreply.github.com> Co-authored-by: yassine JABRI <yassine.jabri@goandev.net> * Adding dark mode to Host's form (#10801) * add dark mode to host's form * fixing text area and another select input's dark mode * fix retour variable * re-generate package-lock * enh(Extensions): Refacto Extension (code style) and adapt dark mode colors if needed (#10769) * add the Criterias Query to Filter of Extension. * Extension Filter complete with Criterias Selector and Search Bar * Extension add Listing * Complete Extension and Code Optimisation * Extension change and Optimisation step 1 * delete comment * Extension code fixe * fix labels and disable buttons instead of hiding * change Updated to UpToDate * correct labelLicenseNotValid name Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * adabt tables and border to dark mode (#10802) * adabt tables and border to dark mode Centreon Dark mode Configuration and Admin listings * fix return * fix status color * change variable (fix return) Co-authored-by: yassine JABRI <yassine.jabri@goandev.net> * updating icons in custom view's widgets (#10811) * updating icons in custom view widget * Fix PR change request Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> * make change in timeline in (menu access) also check user view in (Resources Access) to dark mode (#10815) * Fix eslint warning * Re-generate package-lock * re-generate package-lock * Branch containing all changements for widgets (#10887) * Add theme to user session for widget usage (#10833) * add theme to user session for widget usage * fix list font colors in dark mode * fix undefined array key user theme * enh(Poller Wizard): refacto - poller Wizard (#10816) * add shared makeStyle file * update serverConfigurationWizard on deleting Form-redux * add jotai Atoms * delete form redux in poller steps * fixes * fix eslint warning * fixes * delete form redux in poller steps * from Classe to function component * changes and add atom for remoter server data * title fix * validation form for pollerStep1 * fixes * validation form for remoteServerStep1 * add loading button to wizard step2 * change wizard installing page design * label and models fixed * simplifie error hundling in form * apply button loading fix * delete comment * fix error handling * add new label * add translation to Extension and poller labels * fixe * fixes and updates * use pick in options map * fixes * Fixes * add space * Conflict Fixe * fixes * Update www/front_src/src/Main/useUser.ts Co-authored-by: Bruno d'Auria <bdauria@centreon.com> Co-authored-by: Tom Darneix <tomdar87@outlook.com> * consume the theme api (#10890) * refactor(navigation): left menu (#10830) * remove old files * remove old files * adapt logo for menu * add sidebar * add menu for sidebar * add menuItems * add arrowIcon component * add collapsableItems * add navigationItemSelectedAtom for sidebar * adapt navigation * remove gab from menu * adapt menu * adapt icons * adapt style * adapt style * adapt style * update style * fix align of menu * adapt style * adapt style * fix eslint * fix eslint * fix eslint * add id du sideBar * adapt style * refactore names * updtae addNavigationItemSelected * update centreon-test-lib version * remove disabled eslint * remove eslint-disable-next-line * update centreon-test-lib * update align of items * update addNavigationItemSelected * update collapsableItems * updatecollapsableItems * update slight border * update style * upgrade centreon-test-lib * mutate navigationItemSelected indirectly * refactore names * refactore names * refactore names * refactore code * update deleteNavigationItemsSelected * refactore names * set items hovered by default * update searchItemsHoveredByDefault and isItemHoveredByDefault functions * reafactore code * resetSelectedNavigationItems * refactore code * refactore code * refactore code * refactore code * Update www/front_src/src/Navigation/Sidebar/Logo/LogoMini/Centreon_Logo_Blanc_C.svg Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Logo/LogoMini/Centreon_Logo_Noir_RVB_C.svg Co-authored-by: Tom Darneix <tomdar87@outlook.com> * update logo and logoMini * refactore code * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * Update www/front_src/src/Navigation/Sidebar/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * unified concept of selectedNavigationItems atom * refactore and add hoveredNavigationItems * refactore code * refactore code * fixes * updates * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * fixe eslint * update memoization * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * refactore ans updates * updates * add small elevation to collapsible items list * Fix items hovered by default * delete divider from menu * resize menu Co-authored-by: Kevin Duret <kduret@centreon.com> Co-authored-by: Tom Darneix <tomdar87@outlook.com> Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * delete unused js and scss files (#10910) * enh(chore): Remove sass-loader and unecessary files (#10908) * enh(SVG): Displays the SVG file in HTML (#10928) * Refactoring dark mode (#10845) * fixing some dark mode issues and applying new colors * refactoring all variables hexa & adapt colors * adapt colors of all legacy component * change color legend of chart * changing radio buttons in dashboard pages * changing leftover checkbox to match the other ones * applying dark mode to performance's chart title * changing header title text color * add dark mode for disabled rows in list * changing butoon for rules configuration * change style checkbox service by host * fixing some dark mode issues and applying new colors * refactoring all variables hexa & adapt colors * adapt colors of all legacy component * change color legend of chart * changing radio buttons in dashboard pages * changing leftover checkbox to match the other ones * applying dark mode to performance's chart title * changing header title text color * add dark mode for disabled rows in list * changing butoon for rules configuration * change style checkbox service by host * fix(test): check properly checkbox * apply dark mode for graphs * Allows to activate the checkbox by clicking on the parent div (necessary to pass the TA) Co-authored-by: YAHIAOUI Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: Kevin Duret <kduret@centreon.com> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> * Re-generate package-lock * Fix tests * Fix eslint error * Apply new version of jotai * Fix tests * Fix eslint error * enh(user): Create an API endpoint to update the user's theme (#10953) * fix(Navigation) : left menu (#10915) * fix hoveredNavigationItems for left menu * add derived atom to avoid code duplication * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts Co-authored-by: Tom Darneix <tomdar87@outlook.com> * update ramda import * update * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts Co-authored-by: Tom Darneix <tomdar87@outlook.com> * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx Co-authored-by: Tom Darneix <tomdar87@outlook.com> * update import and fix eslint Co-authored-by: Tom Darneix <tomdar87@outlook.com> * style(Logo):update logo login (#10933) * update logo for dark mode * rename image of logo * add memoization * fix names Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * feat : Mon 12668 switch mode (#10960) * add switch mode * updates * updates * implement logic of switch * update memoization of nac menu * updates * consume api * update memoization for filter of resources * extract svg * Update www/front_src/src/Header/switchMode/index.tsx Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * update names Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * Update dependencies * Fix tests * Fix test * Fix eslint error * Fix eslint * Update centreon-frontend * Remove React import for TypeScript files * Update centreon-frontend * codemod + fix tests * Fix typings * fix(header/themeMode-switch): Make the themeMode switch non-blocking (#10988) * update switch mode * Update www/front_src/src/Header/SwitchThemeMode /index.tsx Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * fixes Co-authored-by: Bruno d'Auria <bdauria@centreon.com> * Improve suspense on routes * Fix eslint error * replace classnames by clsx (#10987) * fix white background displayed during pages navigation when the theme mode is dark (#10991) * Remove unused code * Fix spacing in directory * Fix build * Fix tests * Fix tests * Replacing png/gif icons with SVGs (#10981) Replacing most of png/gif icons so they can coop with centreon's current theme. * enh(style): Changing more global style for dark mode implementation (#10946) Applying more DM to other global styles * Remove mock createRange * Fix package-lock * Fix test * Apply codemod * Fix react import * Fix react imports made by hands (: * Fix import * Fix E2E tests * Update centreon-frontend * Fix eslint hooks sort * Align composer files Co-authored-by: Julien Mathis <jmathis@centreon.com> Co-authored-by: Kevin Duret <kduret@centreon.com> Co-authored-by: Jérémy Jaouen <jjaouen@centreon.com> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> Co-authored-by: Bruno d'Auria <bdauria@centreon.com> Co-authored-by: Noha-ElAbrouki <97687698+Noha-ElAbrouki@users.noreply.github.com> Co-authored-by: vagrant <vagrant@localhost.localdomain> Co-authored-by: hyahiaoui-ext <97593234+hyahiaoui-ext@users.noreply.github.com> Co-authored-by: Yahiaoui Hamza <hamza.yahiaoui@goandev.net> Co-authored-by: sc979 <34628915+sc979@users.noreply.github.com> Co-authored-by: schapron <schapron@centreon.com> Co-authored-by: ataghzout <97593248+ataghzout@users.noreply.github.com> Co-authored-by: Ayoub TAGHZOUT <ayoub.taghzout@goandev.net> Co-authored-by: yayassssine <61753581+yayassssine@users.noreply.github.com> Co-authored-by: yassine JABRI <yassine.jabri@goandev.net> Co-authored-by: Yassir-BenBOUBKER <97686091+Yassir-BenBOUBKER@users.noreply.github.com>c06d15f1