1. 12 May, 2022 1 commit
  2. 09 May, 2022 1 commit
  3. 03 May, 2022 1 commit
    • Tom Darneix's avatar
      enh(core): Upgrade to react 18 🎉 (#10990) · c06d15f1
      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: default avatarvagrant <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: default avatarvagrant <vagrant@localhost.localdomain>
      
      * Replace Header scss module with material makeStyles hedaerIndex (#10656)
      
      Co-authored-by: default avatarvagrant <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: default avatarvagrant <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: default avatarYahiaoui 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: default avatarTom 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: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Header/userMenu/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Header/userMenu/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Header/userMenu/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * fix conflict and adapt userMenu
      
      Co-authored-by: default avatarTom 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: default avatarAyoub 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: default avatarsc979 <34628915+sc979@users.noreply.github.com>
      Co-authored-by: default avatarschapron <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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avatarLaurent 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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avatarLaurent 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: default avatarYahiaoui 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: default avatarAyoub 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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      
      * delete empty variables.css
      
      Co-authored-by: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avatarhyahiaoui-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: default avatarYahiaoui 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: default avatarAyoub 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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub 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: default avatarAyoub 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: default avatarKevin Duret <kduret@centreon.com>
      
      * adapt radio button to light and dark mode (#10786)
      
      refs: MON-12034
      
      Co-authored-by: default avataryassine 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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub 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: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub 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: default avatarKevin Duret <kduret@centreon.com>
      
      * fix pointless variables.css file
      
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avatarataghzout <97593248+ataghzout@users.noreply.github.com>
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avataryayassssine <61753581+yayassssine@users.noreply.github.com>
      Co-authored-by: default avataryassine 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: default avatarBruno 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: default avataryassine 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: default avatarAyoub 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: default avatarBruno d'Auria <bdauria@centreon.com>
      Co-authored-by: default avatarTom 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: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Logo/LogoMini/Centreon_Logo_Noir_RVB_C.svg
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * update logo and logoMini
      
      * refactore code
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx
      
      Co-authored-by: default avatarBruno d'Auria <bdauria@centreon.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx
      
      Co-authored-by: default avatarBruno d'Auria <bdauria@centreon.com>
      
      * Update www/front_src/src/Navigation/Sidebar/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/index.tsx
      
      Co-authored-by: default avatarTom 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: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * fixe eslint
      
      * update memoization
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom 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: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      Co-authored-by: default avatarBruno 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: default avatarYAHIAOUI Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarLaurent 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: default avatarTom Darneix <tomdar87@outlook.com>
      
      * update ramda import
      
      * update
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/sideBarAtoms.ts
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * Update www/front_src/src/Navigation/Sidebar/Menu/CollapsibleItems.tsx
      
      Co-authored-by: default avatarTom Darneix <tomdar87@outlook.com>
      
      * update import and fix eslint
      
      Co-authored-by: default avatarTom 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: default avatarBruno 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: default avatarBruno d'Auria <bdauria@centreon.com>
      
      * update names
      
      Co-authored-by: default avatarBruno 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: default avatarBruno d'Auria <bdauria@centreon.com>
      
      * fixes
      
      Co-authored-by: default avatarBruno 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: default avatarJulien Mathis <jmathis@centreon.com>
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarJérémy Jaouen <jjaouen@centreon.com>
      Co-authored-by: default avatarLaurent Calvet <lcalvet@centreon.com>
      Co-authored-by: default avatarBruno d'Auria <bdauria@centreon.com>
      Co-authored-by: default avatarNoha-ElAbrouki <97687698+Noha-ElAbrouki@users.noreply.github.com>
      Co-authored-by: default avatarvagrant <vagrant@localhost.localdomain>
      Co-authored-by: default avatarhyahiaoui-ext <97593234+hyahiaoui-ext@users.noreply.github.com>
      Co-authored-by: default avatarYahiaoui Hamza <hamza.yahiaoui@goandev.net>
      Co-authored-by: default avatarsc979 <34628915+sc979@users.noreply.github.com>
      Co-authored-by: default avatarschapron <schapron@centreon.com>
      Co-authored-by: default avatarataghzout <97593248+ataghzout@users.noreply.github.com>
      Co-authored-by: default avatarAyoub TAGHZOUT <ayoub.taghzout@goandev.net>
      Co-authored-by: default avataryayassssine <61753581+yayassssine@users.noreply.github.com>
      Co-authored-by: default avataryassine JABRI <yassine.jabri@goandev.net>
      Co-authored-by: default avatarYassir-BenBOUBKER <97686091+Yassir-BenBOUBKER@users.noreply.github.com>
      c06d15f1
  4. 02 May, 2022 1 commit
    • Kevin Duret's avatar
      feat(ui): implement dark mode (#10586) · 9ae0fe31
      Kevin Duret authored
      Improve CSS file by removing dynamique CSS in order to manage different colors on tab menu. Now menu colors are managed by hardcoded value, so it's useless.
      I also add the ability to select a theme in the personal parameters in order to simplify the dark theme development.
      thanks @julienmathis
      9ae0fe31
  5. 14 Apr, 2022 1 commit
  6. 17 Mar, 2022 1 commit
    • Tom Darneix's avatar
      feat(UI): Renew password when expired (#10808) · c1e9505f
      Tom Darneix authored
      
      
      * feat(api): doc on update password endpoint
      
      * fix(conf) fix contact update when user is not admin (#10695)
      
      * enh(API): Interfaces for renew password use case (#10728)
      
      * fix present method signature
      
      * enh(api): implements infrastructure for renew password use case (#10736)
      
      * enh(api): finish implementation for renew password use case (#10752)
      
      * enh(backend): Refactor configuration security policy (#10756)
      
      * feat(login): apply blocking and expiration policy on login (#10770)
      
      Refs: MON-12420
      
      * enh(api): get password remaining time in legacy user endpoint (#10782)
      
      Refs: MON-12519
      
      * enh(Authentication): Add page to renew password (#10724)
      
      * Add basic code to manage password expiration status
      
      * Implement page to reset the password
      
      * Update centreon-frontend to specific branch
      
      * Adapt User context props
      
      * Adapt user context props
      
      * Add a divider between current password and new passwords
      
      * Remove debug url
      
      * Adds tests
      
      * Display warning when the password is about to expire
      
      * Load user when password is renewed
      
      * Revert some changes and add message about password expiration
      
      * Remove unused import
      
      * Remove prop for user context
      
      * Rename variables
      
      * Add translations
      
      * Fix test
      
      * Fix critical error
      
      * Fix password expiration display
      
      * Update www/front_src/src/Login/index.test.tsx
      
      Co-authored-by: default avatarBruno d'Auria <bdauria@centreon.com>
      
      * Add login endpoint call when resetting password
      
      * Fix centreon logo path
      
      * set cookie header manually
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avataralaunois <alaunois@centreon.com>
      Co-authored-by: default avatarJérémy Jaouen <jjaouen@centreon.com>
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      Co-authored-by: default avatarBruno d'Auria <bdauria@centreon.com>
      c1e9505f
  7. 03 Mar, 2022 1 commit
  8. 10 Feb, 2022 1 commit
    • Tom Darneix's avatar
      feat(Authentication): Login with local providers (#10601) · fba68d15
      Tom Darneix authored
      
      
      * doc(api): define contract to get centreon web versions
      
      * doc(api): fix provider configuration endpoint
      
      * fix(authentication): set php session id cookie on authentication
      
      * Remove authentication APIT test
      
      * enh(API): add default_page to current user parameters (#10516)
      
      * enh(API): Interfaces for find web versions use case (#10522)
      
      * enh(API): Interfaces for logout session use case (#10525)
      
      * fix(phpstan): phpstan issues in LogoutControllerTest
      
      * fix(test): fix unit tests of LogoutSessionControllerTest
      
      * enh(UI): Update React Router (#10470)
      
      * Update react router dependency
      
      * Remove connected router from redux
      
      * Migrate routing to react router v6 and refacto
      
      * Fix login redirection
      
      * Add poller wizard about redirections
      
      * Fix progress bar path
      
      * Fix redirection from top counter
      
      * Fix tests
      
      * Fix package import name
      
      * Remove ThemeProvider defined twice
      
      * Improve filter function on top counters
      
      * Remove comment
      
      * Fix package-lock
      
      * Fix navigation using the double click
      
      * Fix request
      
      * Remove irrevelant file
      
      * Support base tag
      
      * Fix redirectino to the poller list
      
      * Fix all pollers display
      
      * Fix resource actions skeleton
      
      * Remove irrevelant code
      
      * Fix breadcrumb redirection on legacy page
      
      * Remove the whole part
      
      * Manage tab switching on legacy pages
      
      * Handle external URL
      
      * Improve redirection for most cases on legacy pages
      
      * Support target to blank page
      
      * Remove unused variable
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * feat(auth): implement session logout (#10550)
      
      Refs: MON-6687
      
      * update doc for installation status endpoint
      
      * enh(phpstan) : fix phpstan errors in centreon/src (part 4) (#10530)
      
      * fix phpstan errors
      
      * fix phpstan errors
      
      * fix jenkins errors
      
      * fix jenkins errors
      
      * fix jenkin errors
      
      * fix centreon bot errors
      
      * revert self to static
      
      * fix typehinting errors
      
      * fix typehinting errors
      
      * fix errors
      
      * Update src/CentreonModule/Tests/Infrastructure/Source/ModuleSourceTest.php
      
      Co-authored-by: default avataralaunois <alaunois@centreon.com>
      
      Co-authored-by: default avataralaunois <alaunois@centreon.com>
      
      * chore(api): Implement AbstractPresenter (#10548)
      
      * add constructor to abstract class (#10549)
      
      * fix(phpstan): fix phpstan issue in LogoutSessionController
      
      * enh(UI): Reduce Redux usage and rework poller wizard (#10477)
      
      * Update react router dependency
      
      * Remove connected router from redux
      
      * Migrate routing to react router v6 and refacto
      
      * Fix login redirection
      
      * Add poller wizard about redirections
      
      * Fix progress bar path
      
      * Fix redirection from top counter
      
      * Fix tests
      
      * Fix package import name
      
      * Remove ThemeProvider defined twice
      
      * Improve filter function on top counters
      
      * Remove comment
      
      * Implement navigation and external compoennts on Jotai
      
      * Migrate breadcrumb to jotai
      
      * Remove redux from top counter components
      
      * Remove redux integration from component that use navigation and external components
      
      * Remove redirection with poller wizard
      
      * Refactor poller wizard according to the new routing
      
      * Fix eslint
      
      * Add test for external components
      
      * Add react hooks testing library
      
      * Remove unused import
      
      * Add tests for navigation data
      
      * Fix tests
      
      * Remove react-redux and redux-form from externals
      
      * Fix eslint errors
      
      * Rename components
      
      * Add missing space
      
      * Enable disabled eslint rules
      
      * Rename 'exists' function
      
      * Fix user menu
      
      * Fix typo
      
      * Fix package-lock
      
      * Fix breaking changes
      
      * Fix navigation using the double click
      
      * Fix request
      
      * Remove irrevelant file
      
      * Support base tag
      
      * Fix redirectino to the poller list
      
      * Fix all pollers display
      
      * Remove hard coded labels
      
      * Fix resource actions skeleton
      
      * Remove irrevelant code
      
      * Fix breadcrumb redirection on legacy page
      
      * Remove the whole part
      
      * Manage tab switching on legacy pages
      
      * Handle external URL
      
      * Improve redirection for most cases on legacy pages
      
      * Support target to blank page
      
      * Remove unused variable
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * enh(API): Implements classes for find installation status use case (#10555)
      
      * feat(UI): Implement new login page (#10507)
      
      * Update react router dependency
      
      * Remove connected router from redux
      
      * Migrate routing to react router v6 and refacto
      
      * Fix login redirection
      
      * Add poller wizard about redirections
      
      * Fix progress bar path
      
      * Fix redirection from top counter
      
      * Fix tests
      
      * Fix package import name
      
      * Remove ThemeProvider defined twice
      
      * Improve filter function on top counters
      
      * Remove comment
      
      * Implement navigation and external compoennts on Jotai
      
      * Migrate breadcrumb to jotai
      
      * Remove redux from top counter components
      
      * Remove redux integration from component that use navigation and external components
      
      * Remove redirection with poller wizard
      
      * Refactor poller wizard according to the new routing
      
      * Fix eslint
      
      * Add test for external components
      
      * Add react hooks testing library
      
      * Remove unused import
      
      * Add tests for navigation data
      
      * Fix tests
      
      * Remove react-redux and redux-form from externals
      
      * Fix eslint errors
      
      * Rename components
      
      * Add missing space
      
      * Enable disabled eslint rules
      
      * Rename 'exists' function
      
      * Fix user menu
      
      * Fix typo
      
      * Fix package-lock
      
      * Fix breaking changes
      
      * Fix navigation using the double click
      
      * Fix request
      
      * Remove irrevelant file
      
      * Support base tag
      
      * Add api stuff
      
      * Restructure component hierarchy
      
      * Fix redirections
      
      * Fetch translations only one time
      
      * Fix login route map
      
      * Improve error handling on permission denied
      
      * Add disconnection message
      
      * Implement a basic login page
      
      * Display copyright and web version
      
      * Implement base loader component
      
      * Add a temporary to disconnect
      
      * Fix main loader display
      
      * Remove Fade component
      
      * Implement base test
      
      * Finish up App tests
      
      * Fetch translations earlier
      
      * Add translations
      
      * Fix requests order and redirection when connected or not
      
      * Remove unused import and code
      
      * Adapt tests
      
      * Adapt tests
      
      * Add login page tests
      
      * Fix eslint
      
      * Change apache config preparation
      
      * Update puppeteer script
      
      * Fix hook and react router loading
      
      * Increase login form padding and width
      
      * Refactor main components
      
      * Add width and height on centreon logo
      
      * Fix eslint error
      
      * Rename function
      
      * Fix redirectino to the poller list
      
      * Fix all pollers display
      
      * Rework and fix the not allowed page
      
      * Add translations
      
      * Move the not allowed page component
      
      * Fix redirection on 404
      
      * Add a real 404 page
      
      * Add translations
      
      * Do not show component when hard redirection will occur
      
      * Import components lazily
      
      * Adapt apache config
      
      * Redirect on default pathname
      
      * Fix user language
      
      * Extract complex check
      
      * Refactor some conditions
      
      * Remove unused import
      
      * Remove hard coded labels
      
      * Remove unused fonts and css files
      
      * Rename AppPage
      
      * Refactor condition
      
      * Improve form validation
      
      * Update centreon-frontend to fix error on Http status
      
      * Fix Login tests
      
      * Remove unused translations
      
      * Fix Main tests
      
      * Fix Cypress tests
      
      * Manage default page to user context
      
      * remove base uri from redirection_uri
      
      * Fix redirect uri
      
      * Adapt code due to webVersions response body changes
      
      * Adapt tests
      
      * Fix up Main tests
      
      * Fix resource actions skeleton
      
      * Migrate login page to new MUI version
      
      * Remove irrevelant code
      
      * Fix breadcrumb redirection on legacy page
      
      * Remove the whole part
      
      * Manage tab switching on legacy pages
      
      * Handle external URL
      
      * Improve redirection for most cases on legacy pages
      
      * Support target to blank page
      
      * Remove unused variable
      
      * Fix eslint errors
      
      * Adapt Web versions
      
      * Implement logout
      
      * Improve login page overall display and add password accessibility
      
      * Fix decoder
      
      * Fix snackbar provider breaking changes
      
      * fix string format
      
      * Fix dates inputs that uses timezones and locales
      
      * Fix eslint errors
      
      * Adapt web versions endpoint body
      
      * Rename "web versions" related variables to "platform installation status"
      
      * Add snackbar message when logged out
      
      * Logout when keep alive is logged out
      
      * Refactor log in and log out process for existing tests
      
      Co-authored-by: default avatarBruno d'Auria <bdauria@users.noreply.github.com>
      
      * Remove unused import
      
      * Remove keep alive when logged out
      
      * Implement end to end tests for Login page
      
      * Catch request execption
      
      * Fix assertion
      
      * Fix centreon-frontend dependency
      
      * Adapt eslint config
      
      * Resolve Bruno's comments
      
      * Update centreon-frontend
      
      * Fix alias
      
      * Fix tests
      
      Co-authored-by: default avatarJérémy Jaouen <jjaouen@centreon.com>
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarBruno d'Auria <bdauria@users.noreply.github.com>
      Co-authored-by: default avatarvagrant <vagrant@ip-10-0-2-15.eu-west-1.compute.internal>
      
      * Fix eslint errors
      
      * Fix webpack dev config
      
      * Invert env variable condition
      
      * Fix user data
      
      * Fix user password
      
      * update composer.lock to use last centreon-test-lib
      
      * Fix crash due to useTranslation is loaded while i18n is not
      
      * update centreon-test-lib
      
      * Invert check
      
      * Update centreno-test-lib
      
      * remove login at tests
      
      * update centreon-test-lib
      
      * Update centreon-test-lib
      
      * Attempt to fix uncaught exception
      
      This happens only in CI environment
      
      * update centreon-test-lib
      
      * enh(legacy): move login logic into index.php (#10676)
      
      * Attempt to remove translation hook mess up
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      Co-authored-by: default avatarJérémy Jaouen <jjaouen@centreon.com>
      Co-authored-by: default avatarAssanDiomande <adiomande-ext@centreon.com>
      Co-authored-by: default avataralaunois <alaunois@centreon.com>
      Co-authored-by: default avatarBruno d'Auria <bdauria@users.noreply.github.com>
      Co-authored-by: default avatarvagrant <vagrant@ip-10-0-2-15.eu-west-1.compute.internal>
      fba68d15