Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
883c0dd
copy frontend to frontend-old
BacLuc Oct 4, 2025
440a2e4
docker-compose: run both frontends side by side
BacLuc Oct 4, 2025
9bbd911
frontend: apply changes for vue3 migration
manuelmeister Oct 4, 2025
62df7cd
fix container names
usu Oct 4, 2025
b095542
add missing @use sass:map
pmattmann Oct 4, 2025
cc8e1f1
Fix camp list item lines
manuelmeister Oct 4, 2025
7728ca5
Fix simple button designs
manuelmeister Oct 4, 2025
de0695f
Naive fix for trivial $listeners uses
carlobeltrame Oct 4, 2025
f34a86c
Fix duplicate attr
carlobeltrame Oct 4, 2025
aa9dc05
Fix vue-i18n deprecation message, without actually having to do any work
carlobeltrame Oct 4, 2025
2c94b28
Fix toolbar title inline padding
manuelmeister Oct 4, 2025
cf4cee7
Remove double padding in expansion panel
manuelmeister Oct 4, 2025
ab4d467
frontend: readd fonts again
BacLuc Oct 4, 2025
c579589
frontend: comment out ValidationProvider in EAutocomplete
BacLuc Oct 4, 2025
e8722b3
Rename v-subheader to v-list-subheader
simfeld Oct 4, 2025
54abdc8
IconButton remove duplicated $attrs
pmattmann Oct 4, 2025
ac4df92
frontend: silence scss and sass Deprecations "mixed-decls" in vite.co…
pmattmann Oct 4, 2025
6ab0c2e
frontend: remove vue2 lint rules
BacLuc Oct 4, 2025
fc3d488
$vuetify.breakpoint -> $vuetify.display
pmattmann Oct 4, 2025
3f6c0e7
revert fix in frontend-old
pmattmann Oct 4, 2025
ae69085
fix icon on ChecklistLists
pmattmann Oct 4, 2025
6abe416
replace v-list-item-action
pmattmann Oct 4, 2025
b22de08
replace v-list-item-icon
pmattmann Oct 4, 2025
2aba550
replace v-list-item-icon
pmattmann Oct 4, 2025
32b52e6
style: fix dashboard select chips
manuelmeister Oct 4, 2025
9e36c68
style: fix dashboard select chips unselected
manuelmeister Oct 4, 2025
41ab6fa
replace v-list-item-icon
pmattmann Oct 4, 2025
df39193
$vuetify.display.xsOnly -> $vuetify.display.xs
pmattmann Oct 4, 2025
a0c4ae7
frontend: add new export from i18n plugin componentI18n
BacLuc Oct 4, 2025
fc32e69
frontend: fix this is undefined in default props function for apiProp…
BacLuc Oct 4, 2025
ea49309
frontend: fix validationObserver is undefined in ApiWrapper.vue
BacLuc Oct 4, 2025
f8d83a7
frontend: veeErrors is undefined in ESelect.vue
BacLuc Oct 4, 2025
e35535b
fix validation for ETextField
usu Oct 4, 2025
2db9ad5
camp/checklist fix icon
pmattmann Oct 4, 2025
5e4b9d2
style: replace sass with sass-embedded
manuelmeister Oct 4, 2025
f3724a0
frontend: pass required parameter path to ApiWrapper in ApiSelect.vue
BacLuc Oct 4, 2025
a78af04
frontend: use title for ESelect to describe value, use TranslateOptio…
BacLuc Oct 4, 2025
1d540b1
frontend: fix null veeErrors when ValidationProvider is not instantia…
BacLuc Oct 4, 2025
7d9cc21
Fix model prop for LockButton and LockUnlockListItem
simfeld Oct 4, 2025
a320e83
style: fix dashboard
manuelmeister Oct 4, 2025
05605fe
takeover of previous changes in ETextField
usu Oct 4, 2025
e7f244d
frontend: improve Register.vue
BacLuc Oct 4, 2025
820b732
frontend: uncomment the store.commits for the language
BacLuc Oct 4, 2025
083f6a2
frontend: run lint fix
BacLuc Oct 4, 2025
568ce92
No set usage in setPreferenceValue
simfeld Oct 4, 2025
2ca56e7
frontend: move comment outside of element in Register.vue
BacLuc Oct 4, 2025
a6b4a84
frontend: fix eslint error "on" is unused
BacLuc Oct 4, 2025
bb1ca2b
frontend: replace daysInWeek with days
BacLuc Oct 4, 2025
56b726e
frontend: fix lint for CampCreateStep2.vue
BacLuc Oct 4, 2025
2a0b64c
style: fix dashboard skeletons
manuelmeister Oct 4, 2025
d3a9246
frontend: load user again
BacLuc Oct 4, 2025
3b64bc8
frontend: fix display text for DayResponsibles.vue
BacLuc Oct 4, 2025
df2dc01
fix ApiTextField
usu Oct 4, 2025
f8026d2
frontend: remove superfluous console.log in App.vue
BacLuc Oct 4, 2025
113a6d5
style: fix help link icon
manuelmeister Oct 4, 2025
e788bc1
fix ApiWrapper listeners
usu Oct 4, 2025
f268f20
fix ApiWrapper v-bind
usu Oct 4, 2025
ad3d6e6
frontend: fix props passing in ESelect.vue
BacLuc Oct 4, 2025
8938fd8
frontend: connect i18n with vuetify
BacLuc Oct 4, 2025
319bee7
frontend: fix slot passing
BacLuc Oct 4, 2025
39cb837
frontend: use fix select for ActivityResponsibles.vue
BacLuc Oct 4, 2025
a1e9289
style: fix top navigation
manuelmeister Oct 4, 2025
e0c05eb
frontend: use fix select for ActivityProgressLabels
BacLuc Oct 4, 2025
f259761
style: fix bottom navigation
manuelmeister Oct 4, 2025
69534cb
style: fix bottom navigation lint
manuelmeister Oct 4, 2025
bfe9ee5
style: fix mobile side nav
manuelmeister Oct 4, 2025
8e490b9
style: fix content card on mobile
manuelmeister Oct 4, 2025
a949359
style: fix camps loading
manuelmeister Oct 4, 2025
d71e953
style: fix mobile bottom nav item sizing
manuelmeister Oct 4, 2025
3e3fa79
style: fix mobile side nav scrim & modelvalue
manuelmeister Oct 4, 2025
76e0ef9
change language for veeValidate
usu Oct 4, 2025
b076686
style: fix dashboard filters
manuelmeister Oct 4, 2025
e06adf7
chore: remove pluralization (new order)
manuelmeister Oct 4, 2025
cb43f92
style: fix icon left/right to start/end
manuelmeister Oct 4, 2025
1720f4a
style: fix comments wrapper
manuelmeister Oct 4, 2025
2631c1e
style: fix comments wrapper order
manuelmeister Oct 4, 2025
a582d47
frontend: implement event display and drag and drop with vuetify cale…
BacLuc Oct 4, 2025
81435cf
fix ECheckbox with validation; first working version of Register view
usu Oct 4, 2025
833542d
fix ESwitch
usu Oct 4, 2025
61683dd
style: make sidebar component visible
manuelmeister Oct 4, 2025
daf5a3b
frontend: migrate value -> modelValue
BacLuc Oct 4, 2025
b99c7ef
frontend: allow submitting DialogForm and DialogBottomSheet without V…
BacLuc Oct 4, 2025
246fb69
frontend: fix this.$set is not a function
BacLuc Oct 4, 2025
c3c0035
frontend: temporarily disable date comparison vee-validate rules
BacLuc Oct 4, 2025
e82b5f4
frontend: fix category-chip for DialogActivityForm
BacLuc Oct 4, 2025
9b5140c
style: fix day switcher
manuelmeister Oct 4, 2025
8329936
Refactor: Extract filter reparation code into separate file
carlobeltrame Oct 4, 2025
1d894d7
Don't clean up filter attributes while they are still loading
carlobeltrame Oct 4, 2025
eb26d4f
fix ESelect/ApiSelect
usu Oct 5, 2025
6fa0f33
Fix UserMeta warnings
carlobeltrame Oct 5, 2025
26861b9
frontend: fix vue-toastification
BacLuc Oct 5, 2025
b428d1a
cross validation example: Register password confirmation
usu Oct 5, 2025
ac7e4d0
frontend: remove comment for dayjs
BacLuc Oct 5, 2025
2f52780
style: fix activity dropdown items
manuelmeister Oct 5, 2025
83a06ab
Fix personal invitations view
carlobeltrame Oct 5, 2025
6954163
style: fix collaborators page
manuelmeister Oct 5, 2025
7e73fce
style: fix admin sidebar
manuelmeister Oct 5, 2025
4825ab0
frontend: readd sentry
BacLuc Oct 5, 2025
7e29187
Fix authUser is null
carlobeltrame Oct 5, 2025
3495864
style: fix admin activity overview
manuelmeister Oct 5, 2025
2794af2
Drop $refs usage
simfeld Oct 5, 2025
1664f50
style: fix admin info danger colors
manuelmeister Oct 5, 2025
a887e44
style: fix admin info j+s
manuelmeister Oct 5, 2025
c5bcd67
style: fix admin info periods
manuelmeister Oct 5, 2025
d40857a
style: fix admin info sharing
manuelmeister Oct 5, 2025
aa5ec10
style: fix admin material lists
manuelmeister Oct 5, 2025
2903d73
style: fix admin checklists
manuelmeister Oct 5, 2025
2f88fdb
custom validation rules
usu Oct 5, 2025
0446b9e
frontend: fix select for DialogActivityForm
BacLuc Oct 5, 2025
0106712
fix ENumberField/ApiNumberField; also fix api components for Checkbox…
usu Oct 5, 2025
d71fe7b
frontend: rectify with eslint-plugin-vuetify
BacLuc Oct 5, 2025
fbc416e
frontend: remove eslint-plugin-vuetify again
BacLuc Oct 5, 2025
2156dc2
frontend: allow to update scheduleentry via picasso
BacLuc Oct 5, 2025
4f8ccca
frontend: activate ClipBoardInfoDialog again
BacLuc Oct 5, 2025
63a6f45
frontend: fix duplicate attribute in LAThematicArea
BacLuc Oct 5, 2025
bb52f4d
frontend: fix duplicate attribute variant in Login.vue
BacLuc Oct 5, 2025
ab52307
frontend: fix duplicate attribute in CampActivityProgressLabels
BacLuc Oct 5, 2025
41c8270
frontend: fix duplicate attribute in SortableChecklistItem
BacLuc Oct 5, 2025
98f4e38
frontend: fix duplicate attribute in BooleanFilter
BacLuc Oct 5, 2025
6c080a5
frontend: fix duplicate attribute in Comment
BacLuc Oct 5, 2025
8661266
frontend: fix lint for duplicate attr errors
BacLuc Oct 5, 2025
eb7dcec
fix EDatePicker / ApiDatePicker
usu Oct 5, 2025
44f1e8a
style: fix dayswitcher size
manuelmeister Oct 5, 2025
610c1a2
style: lint comments
manuelmeister Oct 5, 2025
6614b3e
chore: update vuedraggable
manuelmeister Oct 5, 2025
d486d23
Use the dedicated flag for checking activation of menu
carlobeltrame Oct 5, 2025
0294726
Temporarily fix opening dialogs
carlobeltrame Oct 5, 2025
3bd10d3
chore: implement item key for draggable for storyboard
manuelmeister Oct 5, 2025
bf61cd0
chore: implement item key for draggable for checklists
manuelmeister Oct 5, 2025
5814ba5
fix TimePicker and TimeField
usu Oct 5, 2025
99b9059
Disable validationobserver for now
carlobeltrame Oct 5, 2025
beab3ec
fix ColorPicker and ColorField
usu Oct 5, 2025
4d74d6d
chore: implement item key for apisortable
manuelmeister Oct 5, 2025
0bbb02a
style: fix sortable list items
manuelmeister Oct 5, 2025
39550b9
fix: TipTap and ApiRichText
simfeld Oct 5, 2025
92689d6
style: fix icontooltip
manuelmeister Oct 5, 2025
1620636
fix: model-value in Comments
simfeld Oct 5, 2025
c54fd31
style: fix content node design
manuelmeister Oct 5, 2025
ebe155f
Fix vite reloading the page constantly
carlobeltrame Oct 5, 2025
351dabf
Fix dialog and popover open state handling
carlobeltrame Oct 5, 2025
53121bd
e-select: do not use append-icon anymore, use menu-icon
BacLuc Oct 9, 2025
2a8b1e8
controls: add column with disabled/readonly fields
BacLuc Oct 9, 2025
493b0c3
frontend: apply lint on BasePicker.vue
BacLuc Oct 9, 2025
ecd2dd2
frontend: do not use append-icon anymore, use menu-icon in e-autocomp…
BacLuc Oct 9, 2025
9960aac
frontend: remove second mdi-menu-down icon for api-select
BacLuc Oct 9, 2025
bf4be47
frontend: disable validation for now in campCreate dialog
BacLuc Oct 9, 2025
a295548
frontend: fix campCreate without selecting a prototype
BacLuc Oct 9, 2025
a2eb808
frontend: fix availableLocales in PrintConfigurator.vue
BacLuc Oct 10, 2025
9efe888
frontend: fix and enable unhead again to set window title
BacLuc Oct 11, 2025
43a4fd3
frontend: fix method order in App.vue
BacLuc Oct 11, 2025
2a71578
frontend: the prop Comment needs a default value in Comment.vue
BacLuc Oct 11, 2025
e43c03f
frontend: fix method order in Comment.vue
BacLuc Oct 11, 2025
f708ad9
frontend: ignore vue-scoped-css/no-unused-selector in ResponsiveLayou…
BacLuc Oct 11, 2025
fd0ef58
frontend: ignore vue-scoped-css/no-unused-selector in ResizableColumn…
BacLuc Oct 11, 2025
0c45539
frontend: fix ::v-deep is deprecated in ContentNodeCard
BacLuc Oct 11, 2025
a0f180b
frontend: ignore unused selector in StoryboardRowDense
BacLuc Oct 11, 2025
4045772
frontend: ignore unused selector in StoryboardSortable
BacLuc Oct 11, 2025
ef542d3
frontend: fix this.$set is deprecated in StoryboardSortable
BacLuc Oct 11, 2025
8d04c84
frontend: ignore unused selector in CategoryTemplate
BacLuc Oct 11, 2025
e27b95e
frontend: ignore unused selector in SortableChecklistItem
BacLuc Oct 11, 2025
bb5617f
frontend: ignore unused selector in Comment
BacLuc Oct 11, 2025
eb52ab5
frontend: ignore unused selector in CommentWrapper.vue
BacLuc Oct 11, 2025
fe5c400
frontend: ignore unused selector in ApiSortable
BacLuc Oct 11, 2025
c479cda
frontend: ignore unused selector in ApiWrapper
BacLuc Oct 11, 2025
d8965d6
frontend: fix element cannot have multiple template elements in Detai…
BacLuc Oct 12, 2025
5cd971e
frontend: ignore unused selector in MaterialCreateItem
BacLuc Oct 12, 2025
b1e31ce
frontend: fix this.$set and this.$delete is deprecated in MaterialTable
BacLuc Oct 15, 2025
6409506
frontend: fix ::v-deep is deprecated in MaterialTable
BacLuc Oct 15, 2025
d8d5282
frontend: fix :v-deep is deprecated in PrintConfigurator
BacLuc Oct 15, 2025
99f9047
frontend: fix :v-deep is deprecated in Picasso
BacLuc Oct 15, 2025
29711aa
frontend: ignore unused selector in PicassoEntry
BacLuc Oct 15, 2025
ccf8c4d
frontend: fix Missing attribute `scoped` in Category
BacLuc Oct 15, 2025
36c0643
frontend: fix :v-deep is deprecated in NavBottombar
BacLuc Oct 15, 2025
f5464d8
frontend: fix Missing attribute `scoped` in CampProgram
BacLuc Oct 15, 2025
69566d4
frontend: delete Performance
BacLuc Oct 15, 2025
5953cc1
frontend: fix no template shadow in Camps
BacLuc Oct 15, 2025
418ca89
fixup! frontend: delete Performance
BacLuc Oct 15, 2025
05f26fc
frontend: fix lint in Invitations
BacLuc Oct 15, 2025
7bc4f26
frontend/store/index.js: remove unused variables
BacLuc Oct 15, 2025
d40609f
preferences.js: remove unused import
BacLuc Oct 15, 2025
fee3263
frontend: ignore unused selector in PicassoEntry
BacLuc Oct 15, 2025
8cd46e4
frontend: fix props passing in ERichtext.vue
BacLuc Oct 18, 2025
5a857d5
frontend: fix unused variable in ETextField
BacLuc Oct 18, 2025
395bc9b
frontend: fix props passing in ETextarea.vue
BacLuc Oct 18, 2025
5a94986
frontend: fix prettier in settings.scss
BacLuc Oct 18, 2025
6ca3ef8
frontend: fix i18n in ServerErrorContent.vue
BacLuc Oct 18, 2025
31d3a4a
frontend: fix i18n in toasts.js
BacLuc Oct 18, 2025
7585375
frontend: fix i18n in ButtonNestedContentNodeAdd
BacLuc Oct 18, 2025
fc13925
frontend: fix i18n in CampListItem
BacLuc Oct 18, 2025
c7ec607
frontend: fix i18n in generatePdfMixin.js
BacLuc Oct 18, 2025
4f9a3d1
frontend: fix i18n in PrintPreviewClient.vue
BacLuc Oct 18, 2025
3d838f2
frontend: fix browserPreferredLocale in Login and Register
BacLuc Oct 18, 2025
7b95108
frontend: fix language switching in profile
BacLuc Oct 18, 2025
a0e22f4
frontend: fix validation in DialogForm
BacLuc Oct 18, 2025
d8dd9eb
frontend: fix reference errors in own veeValidate rules
BacLuc Oct 18, 2025
0b2a1be
frontend: fix locale.replaceAll is not a function
BacLuc Oct 18, 2025
fe2ee4a
Revert "frontend: disable validation for now in campCreate dialog"
BacLuc Oct 10, 2025
1630f91
fixup! frontend: fix reference errors in own veeValidate rules
BacLuc Oct 18, 2025
0b40617
frontend: readd validation to camp create dialog
BacLuc Oct 18, 2025
f0d5329
frontend: fix time validation in FormScheduleEntryItem
BacLuc Oct 18, 2025
93c7a7a
frontend: fix selecting an item in ETimeDropdown
BacLuc Oct 19, 2025
a639077
frontend: apply changes for DialogForm to DialogBottomSheet
BacLuc Oct 19, 2025
e59689c
frontend: change :value to :model-value in DetailPane
BacLuc Oct 19, 2025
d9a84be
frontend: fix slot passing in DialogBottomSheet variant for DetailPane
BacLuc Oct 19, 2025
c3ac804
frontend: fix referenceError in oneEmojiOrTwoCharacters.js
BacLuc Oct 19, 2025
734bb4a
frontend: strip reactive parts from serialized print config in print …
BacLuc Oct 19, 2025
5cc41d0
frontend: fix vue-toastification in frontend print part
BacLuc Oct 19, 2025
13557ee
frontend: fix PagesOverview
BacLuc Oct 19, 2025
9dd912b
frontend: remove @ from login.infoText.dev in en,fr,it,rm
BacLuc Aug 24, 2025
4e58f58
frontend: fix TypeError: can't access property "split", path is null …
BacLuc Oct 25, 2025
6f96de7
frontend: fix falling back to global scope warning in Login.vue
BacLuc Oct 25, 2025
9ae6dcf
frontend: replace v-list-item-avatar with v-avatar in DialogActivityC…
BacLuc Oct 25, 2025
8257ba1
frontend: use tailwind like classes to center button in ClipboardInfo…
BacLuc Oct 25, 2025
5146d1c
frontend: enable vue/no-deprecated-dollar-listeners-api eslint rule
BacLuc Oct 25, 2025
442c27e
frontend: set vue/no-deprecated-delete-set eslint to error
BacLuc Oct 25, 2025
920baeb
frontend: enable vue/no-deprecated-destroyed-lifecycle eslint rule
BacLuc Oct 25, 2025
48c0b46
frontend: enable vue/no-deprecated-dollar-scopedslots-api eslint rule
BacLuc Oct 25, 2025
cc4ba2e
frontend: enable vue/no-deprecated-filter eslint rule
BacLuc Oct 25, 2025
05079ca
frontend: enable vue/no-deprecated-props-default-this eslint rule
BacLuc Oct 25, 2025
c2a33db
frontend: enable vue/no-deprecated-slot-attribute eslint rule
BacLuc Oct 25, 2025
22bb6da
frontend: enable vue/no-deprecated-slot-scope-attribute eslint rule
BacLuc Oct 25, 2025
2e983c2
frontend: enable vue/no-deprecated-v-on-native-modifier eslint rule
BacLuc Oct 25, 2025
8381f9c
frontend: enable vue/no-v-for-template-key-on-child eslint rule
BacLuc Oct 25, 2025
7dfc22e
frontend: enable 'vue/no-v-model-argument' eslint rule
BacLuc Oct 25, 2025
5de6e33
frontend: wrap ERichtext with Field
BacLuc Oct 25, 2025
ed6b56c
frontend: improve materialTable forms
BacLuc Oct 25, 2025
3c0f768
frontend: remove v-stepper-content in CampCreateStep
BacLuc Oct 25, 2025
4438577
frontend: fix greaterThan.spec.js
BacLuc Oct 25, 2025
382fa02
style: fix navbar
manuelmeister Oct 28, 2025
70aedc4
style: fix container spacing
manuelmeister Oct 28, 2025
d3581f3
style: fix picasso scroller
manuelmeister Oct 28, 2025
5481a83
nav: fix redirect
manuelmeister Oct 28, 2025
4fcbd4f
style: fix add section button
manuelmeister Oct 28, 2025
6b179bf
style: fix toolbar title
manuelmeister Oct 28, 2025
8c89398
head: add old suffix
manuelmeister Oct 28, 2025
915be85
picasso: remove weekday
manuelmeister Oct 28, 2025
c957116
fix user-menu top right
pmattmann Oct 28, 2025
a15cf6f
draggable: fix item-key
manuelmeister Oct 28, 2025
f95ca35
draggable: fix item-key
manuelmeister Oct 28, 2025
8d5addc
Merge remote-tracking branch 'upstream/devel' into vue3
BacLuc Oct 28, 2025
0f7f7a7
frontend: revert changes in frontend from devel
BacLuc Oct 28, 2025
b8181d0
PersonalInvitations, fix layout
pmattmann Oct 28, 2025
3502c6d
Fix hyphens typo
simfeld Oct 28, 2025
5ce79ab
fix t$ calls
pmattmann Oct 28, 2025
6255d14
Make faq button visible
simfeld Oct 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
/frontend/dist
/frontend/.env.*
/frontend/public/environment.*
/frontend-old/data
/frontend-old/dist
/frontend-old/.env.*
/frontend-old/public/environment.*
**/vendor/
**/node_modules/
60 changes: 30 additions & 30 deletions common/eslint-local-rules/__tests__/matchingTranslationKeys.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,37 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
valid: [
{
name: 'allows correct key in js',
code: '$tc("components.hello.world")',
code: '$t("components.hello.world")',
options: options,
filename: '/src/components/hello.js',
},
{
name: 'allows correct key in vue component js',
code: '<script>$tc("components.helloWorld.foo")</script>',
code: '<script>$t("components.helloWorld.foo")</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
},
{
name: 'allows correct key in vue component setup script',
code: '<script setup>const translation = $tc("components.helloWorld.foo")</script>',
code: '<script setup>const translation = $t("components.helloWorld.foo")</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
},
{
name: 'allows correct key in scoped use in vue component js',
code: '<script>export default { computed: { translate() { return this.$tc("components.helloWorld.foo") } } }</script>',
code: '<script>export default { computed: { translate() { return this.$t("components.helloWorld.foo") } } }</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
},
{
name: 'allows correct key in vue component template mustache syntax',
code: '<template>{{ $tc("components.helloWorld.foo") }}</template>',
code: '<template>{{ $t("components.helloWorld.foo") }}</template>',
options: options,
filename: '/src/components/HelloWorld.vue',
},
{
name: 'allows correct key in vue component template v-bind',
code: '<template><div :title="$tc(\'components.helloWorld.foo\')"></div></template>',
code: '<template><div :title="$t(\'components.helloWorld.foo\')"></div></template>',
options: options,
filename: '/src/components/HelloWorld.vue',
},
Expand All @@ -93,37 +93,37 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'allows global key, based on ignoreKeysRegex',
code: '$tc("global.something")',
code: '$t("global.something")',
options: options,
filename: '/src/components/hello.js',
},
{
name: 'allows correct key with complex directory names',
code: '$tc("components.camelCase.kebabCase.pascalCase.withPeriod.hello.world")',
code: '$t("components.camelCase.kebabCase.pascalCase.withPeriod.hello.world")',
options: options,
filename: '/src/components/camelCase/kebab-case/PascalCase/with.period/hello.js',
},
{
name: 'allows correct key with single quotes',
code: "$tc('components.hello.world')",
code: "$t('components.hello.world')",
options: options,
filename: '/src/components/hello.js',
},
{
name: 'allows correct key with single quotes',
code: '$tc(\'components.hello.world\', 0, { test: "foo" })',
code: '$t(\'components.hello.world\', 0, { test: "foo" })',
options: options,
filename: '/src/components/hello.js',
},
{
name: 'allows correct key with backticks',
code: '$tc(`components.hello.world`)',
code: '$t(`components.hello.world`)',
options: options,
filename: '/src/components/hello.js',
},
{
name: 'allows correct key with arguments',
code: '$tc("components.hello.world", 0, { test: "foo" })',
code: '$t("components.hello.world", 0, { test: "foo" })',
options: options,
filename: '/src/components/hello.js',
},
Expand All @@ -135,37 +135,37 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'ignores call without arguments',
code: '$tc()',
code: '$t()',
options: options,
filename: '/src/components/hello.js',
},
{
name: 'ignores unrelated file type',
code: "$tc('hello.world')",
code: "$t('hello.world')",
options: options,
filename: '/src/components/hello.json',
},
{
name: 'ignores test file',
code: "$tc('hello.world')",
code: "$t('hello.world')",
options: options,
filename: '/src/components/hello.spec.js',
},
{
name: 'ignores test helper file',
code: "$tc('hello.world')",
code: "$t('hello.world')",
options: options,
filename: '/src/components/__tests__/hello.js',
},
{
name: 'ignores e2e test file',
code: "$tc('hello.world')",
code: "$t('hello.world')",
options: options,
filename: '/src/e2e/hello.js',
},
{
name: 'accepts source file paths which do not start with /src',
code: '$tc("components.hello.world")',
code: '$t("components.hello.world")',
options: options,
filename: '/components/hello.js',
},
Expand All @@ -174,7 +174,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
invalid: [
{
name: 'lints incorrect key in js',
code: '$tc("hello.world")',
code: '$t("hello.world")',
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -186,7 +186,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key in vue component js',
code: '<script>$tc("hello.world")</script>',
code: '<script>$t("hello.world")</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
errors: [
Expand All @@ -198,7 +198,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key in vue component setup script',
code: '<script setup>const translation = $tc("hello.world")</script>',
code: '<script setup>const translation = $t("hello.world")</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
errors: [
Expand All @@ -210,7 +210,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints correct key in scoped use in vue component js',
code: '<script>export default { computed: { translate() { return this.$tc("hello.world") } } }</script>',
code: '<script>export default { computed: { translate() { return this.$t("hello.world") } } }</script>',
options: options,
filename: '/src/components/HelloWorld.vue',
errors: [
Expand All @@ -222,7 +222,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key in vue component template mustache syntax',
code: '<template>{{ $tc("hello.world") }}</template>',
code: '<template>{{ $t("hello.world") }}</template>',
options: options,
filename: '/src/components/HelloWorld.vue',
errors: [
Expand All @@ -234,7 +234,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key in vue component template v-bind',
code: '<template><div :title="$tc(\'hello.world\')"></div></template>',
code: '<template><div :title="$t(\'hello.world\')"></div></template>',
options: options,
filename: '/src/components/HelloWorld.vue',
errors: [
Expand Down Expand Up @@ -270,7 +270,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect global key, based on ignoreKeysRegex',
code: '$tc("something.containing.global.hello.world")',
code: '$t("something.containing.global.hello.world")',
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -282,7 +282,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key with single quotes',
code: "$tc('hello.world')",
code: "$t('hello.world')",
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -294,7 +294,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key with backticks',
code: '$tc(`hello.world`)',
code: '$t(`hello.world`)',
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -306,7 +306,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints incorrect key with arguments',
code: '$tc(\'hello.world\', 0, { test: "foo" })',
code: '$t(\'hello.world\', 0, { test: "foo" })',
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -330,7 +330,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints empty key in js',
code: '$tc("")',
code: '$t("")',
options: options,
filename: '/src/components/hello.js',
errors: [
Expand All @@ -342,7 +342,7 @@ ruleTester.run('local-rules/matching-translation-keys', ruleInstance, {
},
{
name: 'lints in file with path which does not start with src/',
code: '$tc("hello.world")',
code: '$t("hello.world")',
options: options,
filename: '/components/hello.js',
errors: [
Expand Down
1 change: 0 additions & 1 deletion common/helpers/dateHelperUTCFormatted.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function timeDurationShort(start, end, tc) {
: duration.minutes() === 0
? 'global.datetime.duration.hoursOnly'
: 'global.datetime.duration.hoursAndMinutes',
0,
{
days: Math.floor(duration.asDays()),
hours: duration.hours(),
Expand Down
Loading
Loading