Skip to content
Compare
Choose a tag to compare
@joffreyBerrier joffreyBerrier released this 23 Apr 16:45
· 76 commits to master since this release
7772de3
  • Refacto the way to paginate on mobile side + Clean some useless code
  • Add /dist on gitignore
  • Add a button for paginate on mobile like airbnb :
  • remove lodash library
  • Clean css :
    -- Remove float: left. / right it's old way to do css
    -- Remove use v-if instead of --hidden-tablet --hidden-desktop
    -- Use css grid for calendar
  • Review the pagination on mobile side, use the same logique on desktop side increment an index and create month only when the index is superior to countOfMobileMonth / countOfDesktopMonth
  • Review some style of mobile calendar
  • Add v-if on <Day></Day> when day.belongsToThisMonth === false to avoid 10 day per month load for nothing at all
  • Increase the performance on mobile side
  • Sort props by ASC
  • Add v-if="isMobile" on computed when is not triggered on mobile
  • Remove duplicate <Day /> unify pagination for desktop and mobile
  • Create a <DatePickerWeekRow/> component for not duplicate content
  • Add a countOfTotalMonthByDefault props for generate x month on a created
  • Remove duplicate useless <baseInput />
  • Refacto the style of <baseInput />
  • Create / refacto the function for create month and put on a mounted part not created for get the correct device
  • Add a v-if="months.length" around the v-for

Screenshots :

Desktop

Capture d’écran 2021-04-22 à 11 57 59

Capture d’écran 2021-04-22 à 11 58 04

Mobile

Capture d’écran 2021-04-22 à 11 57 50

Capture d’écran 2021-04-22 à 11 57 54