Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Dec 5, 2023
1 parent bce6e77 commit 607ecf3
Show file tree
Hide file tree
Showing 9 changed files with 3,048 additions and 1,329 deletions.
3,897 changes: 2,809 additions & 1,088 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "getfit",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
Expand All @@ -20,38 +21,38 @@
"pinia": "^2.1.6",
"ramda": "^0.29.1",
"uuid": "^9.0.1",
"vue": "^3.3.4",
"vue-i18n": "^9.5.0",
"vue": "^3.3.10",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5",
"vue3-mq": "^3.1.3",
"vuedraggable": "^4.1.0",
"vuetify": "3.3.6"
},
"devDependencies": {
"@pinia/testing": "^0.1.3",
"@rushstack/eslint-patch": "^1.5.1",
"@rushstack/eslint-patch": "^1.6.0",
"@tsconfig/node18": "^18.2.2",
"@types/jsdom": "^21.1.4",
"@types/node": "^20.8.7",
"@types/ramda": "^0.29.7",
"@types/uuid": "^9.0.6",
"@vitejs/plugin-vue": "^4.4.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.10.3",
"@types/ramda": "^0.29.9",
"@types/uuid": "^9.0.7",
"@vitejs/plugin-vue": "^4.5.1",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.1",
"@vue/test-utils": "^2.4.3",
"@vue/tsconfig": "^0.4.0",
"cypress": "^13.3.2",
"eslint": "^8.52.0",
"cypress": "^13.6.0",
"eslint": "^8.55.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.17.0",
"jsdom": "^22.1.0",
"eslint-plugin-vue": "^9.19.2",
"jsdom": "^23.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"sass": "^1.69.4",
"prettier": "^3.1.0",
"sass": "^1.69.5",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-vuetify": "^1.0.2",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.20"
"vitest": "^1.0.1",
"vue-tsc": "^1.8.24"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`PrintViewTable > mounts 1`] = `
"<div class=\\"v-table v-table--has-top v-theme--light v-table--density-default print-view__table\\">
<h2 class=\\"text-h5 pl-4\\">My table</h2>
<div class=\\"v-table__wrapper\\">
"<div class="v-table v-table--has-top v-theme--light v-table--density-default print-view__table">
<h2 class="text-h5 pl-4">My table</h2>
<div class="v-table__wrapper">
<table>
<thead>
<tr>
Expand Down
356 changes: 178 additions & 178 deletions src/components/__tests__/__snapshots__/ScheduleSettings.spec.ts.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`SimpleTrainingCard > mounts 1`] = `
"<div data-v-d91f3409=\\"\\" class=\\"simple-training-card mt-4\\">
<div data-v-d91f3409=\\"\\" class=\\"simple-training-card__title text-body-1\\"><i data-v-d91f3409=\\"\\" class=\\"mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-default simple-training-card__activity-icon\\" aria-hidden=\\"true\\" title=\\"Boxing\\" aria-label=\\"Boxing\\"></i> Boxing</div>
<div data-v-d91f3409=\\"\\" class=\\"simple-training-card__duration text-body-1\\"><i data-v-d91f3409=\\"\\" class=\\"mdi-timer mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Duration\\"></i> 1 h</div>
<div data-v-d91f3409=\\"\\" class=\\"simple-training-card__location text-body-1\\"><i data-v-d91f3409=\\"\\" class=\\"mdi-map-marker mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Location\\"></i> Total wreck gym</div>
<div data-v-d91f3409=\\"\\" class=\\"simple-training-card__intensity text-body-1\\"><i data-v-d91f3409=\\"\\" class=\\"mdi-speedometer mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Intensity\\"></i> Medium</div>
"<div data-v-d91f3409="" class="simple-training-card mt-4">
<div data-v-d91f3409="" class="simple-training-card__title text-body-1"><i data-v-d91f3409="" class="mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-default simple-training-card__activity-icon" aria-hidden="true" title="Boxing" aria-label="Boxing"></i> Boxing</div>
<div data-v-d91f3409="" class="simple-training-card__duration text-body-1"><i data-v-d91f3409="" class="mdi-timer mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Duration"></i> 1 h</div>
<div data-v-d91f3409="" class="simple-training-card__location text-body-1"><i data-v-d91f3409="" class="mdi-map-marker mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Location"></i> Total wreck gym</div>
<div data-v-d91f3409="" class="simple-training-card__intensity text-body-1"><i data-v-d91f3409="" class="mdi-speedometer mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Intensity"></i> Medium</div>
</div>"
`;
52 changes: 26 additions & 26 deletions src/components/__tests__/__snapshots__/TrainingCard.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`TrainingCard > mounts 1`] = `
"<div data-v-24c3dbf4=\\"\\" class=\\"v-card v-theme--light v-card--density-default v-card--variant-elevated training-card mx-2 mt-4 mb-2\\" style=\\"max-width: 400px; min-width: 400px;\\">
"<div data-v-24c3dbf4="" class="v-card v-theme--light v-card--density-default v-card--variant-elevated training-card mx-2 mt-4 mb-2" style="max-width: 400px; min-width: 400px;">
<!---->
<div class=\\"v-card__loader\\">
<div class=\\"v-progress-linear v-theme--light v-locale--is-ltr\\" style=\\"top: 0px; height: 0px; --v-progress-linear-height: 2px; left: 50%; transform: translateX(-50%);\\" role=\\"progressbar\\" aria-hidden=\\"true\\" aria-valuemin=\\"0\\" aria-valuemax=\\"100\\">
<!---->
<div class=\\"v-progress-linear__background\\" style=\\"width: 100%;\\"></div>
<transition-stub name=\\"fade-transition\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\">
<div class=\\"v-progress-linear__indeterminate\\">
<div class=\\"v-progress-linear__indeterminate long\\"></div>
<div class=\\"v-progress-linear__indeterminate short\\"></div>
<div class="v-card__loader">
<div class="v-progress-linear v-theme--light v-locale--is-ltr" style="top: 0px; height: 0px; --v-progress-linear-height: 2px; left: 50%; transform: translateX(-50%);" role="progressbar" aria-hidden="true" aria-valuemin="0" aria-valuemax="100">
<!---->
<div class="v-progress-linear__background" style="width: 100%;"></div>
<transition-stub name="fade-transition" appear="false" persisted="false" css="true">
<div class="v-progress-linear__indeterminate">
<div class="v-progress-linear__indeterminate long"></div>
<div class="v-progress-linear__indeterminate short"></div>
</div>
</transition-stub>
<!---->
</div>
</div>
<!---->
<!---->
<div data-v-24c3dbf4=\\"\\" class=\\"v-card-item training-card__title-wrapper text-white\\" style=\\"background-color: rgb(255, 165, 0);\\">
<div data-v-24c3dbf4="" class="v-card-item training-card__title-wrapper text-white" style="background-color: rgb(255, 165, 0);">
<!---->
<div class=\\"v-card-item__content\\">
<!---->
<!----><i data-v-24c3dbf4=\\"\\" class=\\"mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-x-large training-card__activity-icon\\" style=\\"color: rgb(255, 165, 0); caret-color: #ffa500;\\" aria-hidden=\\"true\\" title=\\"Boxing\\" aria-label=\\"Boxing\\"></i>
<div data-v-24c3dbf4=\\"\\" class=\\"v-card-title d-flex ml-15 flex-column justify-top\\">
<div data-v-24c3dbf4=\\"\\" class=\\"training-card__title\\">Boxing</div>
<div data-v-24c3dbf4=\\"\\" class=\\"training-card__duration text-subtitle-2\\"><i data-v-24c3dbf4=\\"\\" class=\\"mdi-timer mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Duration\\"></i> 1 h</div>
<div data-v-24c3dbf4=\\"\\" class=\\"training-card__location text-subtitle-2\\"><i data-v-24c3dbf4=\\"\\" class=\\"mdi-map-marker mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Location\\"></i> Total wreck gym</div>
<div data-v-24c3dbf4=\\"\\" class=\\"training-card__intensity text-subtitle-2\\"><i data-v-24c3dbf4=\\"\\" class=\\"mdi-speedometer mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" aria-label=\\"Training Intensity\\"></i> Medium</div>
<div class="v-card-item__content">
<!---->
<!----><i data-v-24c3dbf4="" class="mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-x-large training-card__activity-icon" style="color: rgb(255, 165, 0); caret-color: #ffa500;" aria-hidden="true" title="Boxing" aria-label="Boxing"></i>
<div data-v-24c3dbf4="" class="v-card-title d-flex ml-15 flex-column justify-top">
<div data-v-24c3dbf4="" class="training-card__title">Boxing</div>
<div data-v-24c3dbf4="" class="training-card__duration text-subtitle-2"><i data-v-24c3dbf4="" class="mdi-timer mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Duration"></i> 1 h</div>
<div data-v-24c3dbf4="" class="training-card__location text-subtitle-2"><i data-v-24c3dbf4="" class="mdi-map-marker mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Location"></i> Total wreck gym</div>
<div data-v-24c3dbf4="" class="training-card__intensity text-subtitle-2"><i data-v-24c3dbf4="" class="mdi-speedometer mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" aria-label="Training Intensity"></i> Medium</div>
</div>
</div>
<!---->
</div>
<div data-v-24c3dbf4=\\"\\" class=\\"v-card-text training-card__text\\">
<div data-v-cdff331d=\\"\\" class=\\"training-card-summary__description text-body-1\\">Sparring at the gym</div>
<transition-stub data-v-cdff331d=\\"\\" name=\\"expand-transition\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\">
<div data-v-24c3dbf4="" class="v-card-text training-card__text">
<div data-v-cdff331d="" class="training-card-summary__description text-body-1">Sparring at the gym</div>
<transition-stub data-v-cdff331d="" name="expand-transition" appear="false" persisted="false" css="true">
<!--v-if-->
</transition-stub>
</div>
<div data-v-24c3dbf4=\\"\\" class=\\"v-card-actions justify-center\\"><button type=\\"button\\" class=\\"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat training-card__edit-button\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span><span class=\\"v-btn__prepend\\"><i class=\\"mdi-pen mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Edit</span>
<div data-v-24c3dbf4="" class="v-card-actions justify-center"><button type="button" class="v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat training-card__edit-button"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span><span class="v-btn__prepend"><i class="mdi-pen mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span><span class="v-btn__content" data-no-activator="">Edit</span>
<!---->
<!---->
</button><button type=\\"button\\" class=\\"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat\\" aria-haspopup=\\"menu\\" aria-expanded=\\"false\\" aria-owns=\\"v-menu-1\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span>
<!----><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Actions</span><span class=\\"v-btn__append\\"><i class=\\"mdi-chevron-right mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span>
</button><button type="button" class="v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat" aria-haspopup="menu" aria-expanded="false" aria-owns="v-menu-1"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
<!----><span class="v-btn__content" data-no-activator="">Actions</span><span class="v-btn__append"><i class="mdi-chevron-right mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span>
<!---->
</button>
<!--teleport start-->
<!--teleport end--><button type=\\"button\\" class=\\"v-btn v-theme--light text-error v-btn--density-default v-btn--size-default v-btn--variant-outlined training-card__delete-button\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span><span class=\\"v-btn__prepend\\"><i class=\\"mdi-delete mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Delete</span>
<!--teleport end--><button type="button" class="v-btn v-theme--light text-error v-btn--density-default v-btn--size-default v-btn--variant-outlined training-card__delete-button"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span><span class="v-btn__prepend"><i class="mdi-delete mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span><span class="v-btn__content" data-no-activator="">Delete</span>
<!---->
<!---->
</button>
</div>
<!---->
<!----><span class=\\"v-card__underlay\\"></span>
<!----><span class="v-card__underlay"></span>
</div>"
`;
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`WeekCalendarActions > mounts 1`] = `
"<div class=\\"week-calendar__actions d-flex mt-4\\"><button type=\\"button\\" class=\\"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat\\" data-test-id=\\"week-1-add-training-button\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span><span class=\\"v-btn__prepend\\"><i class=\\"mdi-plus mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Add training</span>
"<div class="week-calendar__actions d-flex mt-4"><button type="button" class="v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat" data-test-id="week-1-add-training-button"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span><span class="v-btn__prepend"><i class="mdi-plus mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span><span class="v-btn__content" data-no-activator="">Add training</span>
<!---->
<!---->
</button><button type=\\"button\\" class=\\"v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat\\" aria-label=\\"Copy Week 1\\" data-test-id=\\"week-1-copy-button\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span><span class=\\"v-btn__prepend\\"><i class=\\"mdi-content-copy mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Copy Week </span>
</button><button type="button" class="v-btn v-theme--light v-btn--density-default v-btn--size-default v-btn--variant-flat" aria-label="Copy Week 1" data-test-id="week-1-copy-button"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span><span class="v-btn__prepend"><i class="mdi-content-copy mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span><span class="v-btn__content" data-no-activator="">Copy Week </span>
<!---->
<!---->
</button><button type=\\"button\\" class=\\"v-btn v-theme--light text-error v-btn--density-default v-btn--size-default v-btn--variant-outlined\\" aria-label=\\"Delete Week 1\\" data-test-id=\\"week-1-delete-button\\"><span class=\\"v-btn__overlay\\"></span><span class=\\"v-btn__underlay\\"></span><span class=\\"v-btn__prepend\\"><i class=\\"mdi-delete mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\"></i></span><span class=\\"v-btn__content\\" data-no-activator=\\"\\">Delete Week </span>
</button><button type="button" class="v-btn v-theme--light text-error v-btn--density-default v-btn--size-default v-btn--variant-outlined" aria-label="Delete Week 1" data-test-id="week-1-delete-button"><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span><span class="v-btn__prepend"><i class="mdi-delete mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true"></i></span><span class="v-btn__content" data-no-activator="">Delete Week </span>
<!---->
<!---->
</button></div>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`WeekSupplement > mounts 1`] = `
"<div data-v-22de64f8=\\"\\">
<div data-v-22de64f8=\\"\\" class=\\"mt-4 text-subtitle-1\\">Monday</div>
<ul data-v-22de64f8=\\"\\">
<li data-v-22de64f8=\\"\\" class=\\"mt-1 week-supplement__instruction text-body-1\\"><span data-v-22de64f8=\\"\\"><i data-v-22de64f8=\\"\\" class=\\"mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-default\\" aria-hidden=\\"true\\" title=\\"Boxing\\" aria-label=\\"Boxing\\"></i> Boxing:&nbsp;</span><span data-v-22de64f8=\\"\\">Sparring at the gym</span></li>
"<div data-v-22de64f8="">
<div data-v-22de64f8="" class="mt-4 text-subtitle-1">Monday</div>
<ul data-v-22de64f8="">
<li data-v-22de64f8="" class="mt-1 week-supplement__instruction text-body-1"><span data-v-22de64f8=""><i data-v-22de64f8="" class="mdi-boxing-glove mdi v-icon notranslate v-theme--light v-icon--size-default" aria-hidden="true" title="Boxing" aria-label="Boxing"></i> Boxing:&nbsp;</span><span data-v-22de64f8="">Sparring at the gym</span></li>
</ul>
</div>"
`;
7 changes: 2 additions & 5 deletions vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import {vi} from 'vitest';
import {DOMWrapper, VueWrapper, config} from '@vue/test-utils';
import {VueWrapper, config} from '@vue/test-utils';
import {createVuetify} from 'vuetify';
import i18n from '@/i18n';
import {createTestingPinia} from '@pinia/testing';

config.global.plugins = [createTestingPinia(), createVuetify(), i18n];

const dataTestIdPlugin = (wrapper: VueWrapper) => ({
findByTestId: (testId: string) => {
const element = wrapper.element.querySelector(`[data-test-id='${testId}']`);
return new DOMWrapper(element);
},
findByTestId: (testId: string) => wrapper.find(`[data-test-id='${testId}']`),
});

config.plugins.VueWrapper.install(dataTestIdPlugin);
Expand Down

0 comments on commit 607ecf3

Please sign in to comment.