stable
Clone or download
Read-only
part of request #35894 Convert timetracking-overview-widget to Vue3 + TS In this contribution, vuex is replaced by pinia. It was tricky because several instances of the overview widget can exist on the same dashboard. Hence, it is needed to have separated store instances, in order to avoid conflicts between the different widgets. -- no functional change expected Change-Id: Ide45ff2a6410956a1a3c491732aac82fd0caf153
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/timetracking/scripts/timetracking-overview-widget/package.json | +3 | −2 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/pnpm-lock.yaml | +51 | −11 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/api/rest-querier.test.js | +1 | −0 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverview.test.js | +56 | −34 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverview.vue | +20 | −14 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTable.vue | +32 | −27 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTableRow.test.js | +59 | −46 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTableRow.vue | +9 | −6 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewUserList.test.js | +34 | −22 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewUserList.vue | +12 | −5 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimetrackingOverviewTable.test.js | +107 | −82 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingDates.vue | +8 | −5 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingMode.test.js | +38 | −31 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingMode.vue | +15 | −10 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewTrackerList.test.js | +28 | −20 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewTrackerList.vue | +8 | −4 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewProjectOption.vue | +8 | −1 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewTrackerList.vue | +7 | −5 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewTrackersOptions.vue | +9 | −4 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingDates.vue | +11 | −8 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingMode.vue | +9 | −5 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingTrackers.test.js | +55 | −37 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingTrackers.vue | +16 | −8 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/index.js | +10 | −7 | Go to diff View file |
D | plugins/timetracking/scripts/timetracking-overview-widget/src/store/actions.js | +0 | −159 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/store/actions.test.js | +66 | −53 | Go to diff View file |
D | plugins/timetracking/scripts/timetracking-overview-widget/src/store/getters.js | +0 | −71 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/store/getters.test.js | +34 | −32 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/store/index.js | +307 | −16 | Go to diff View file |
D | plugins/timetracking/scripts/timetracking-overview-widget/src/store/mutations.js | +0 | −145 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/store/mutations.test.js | +74 | −64 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/src/store/state.js | +1 | −3 | Go to diff View file |
M | plugins/timetracking/scripts/timetracking-overview-widget/tests/helpers/local-vue.js | +7 | −3 | Go to diff View file |
A | plugins/timetracking/scripts/timetracking-overview-widget/tests/helpers/pinia-test-store.js | +24 | −0 | Go to diff View file |