Skip to content

Commit 147d075

Browse files
authored
Merge branch '5.x-dev' into dev-19682-existing
2 parents bb02e6a + c02891b commit 147d075

File tree

67 files changed

+810
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+810
-237
lines changed

.ddev/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,23 @@ ddev matomo:init:dev
4444

4545
This command will set up the environment for development, installing the additional dependencies required.
4646

47+
We have also added a parameter to the `ddev matomo:init:dev` command to enable source maps for Vue components.
48+
To enable them, you can run:
49+
```
50+
ddev matomo:init:dev --with-sourcemaps
51+
```
52+
53+
You can also disable sourcemaps at any time if you want to, just run the default command again:
54+
```
55+
ddev matomo:init:dev
56+
```
57+
NOTE: You should tick 'Disable cache' on your browser developer tools to see the changes.
58+
59+
To see help:
60+
```
61+
ddev help matomo:init:dev
62+
```
63+
4764
### 4. Set up the testing environment
4865

4966
After Matomo is set up, you can initialize the testing environment by running:

.ddev/commands/host/matomo_init_dev

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
#!/usr/bin/env bash
22

33
## Description: Initialize Matomo environment for development
4-
## Usage: matomo:init:dev
5-
## Example: ddev matomo:init:dev
4+
## Usage: matomo:init:dev [--with-sourcemaps]
5+
## Example: ddev matomo:init:dev --with-sourcemaps
6+
7+
WITH_MAPS=0
8+
for arg in "$@"; do
9+
if [ "$arg" = "--with-sourcemaps" ]; then
10+
WITH_MAPS=1
11+
fi
12+
done
13+
14+
MAP_FLAG_VALUE=$([ "$WITH_MAPS" -eq 1 ] && echo 1 || echo 0)
15+
616

717
echo "Run npm install ..."
818
ddev npm install
@@ -11,6 +21,10 @@ echo "Enable development mode and disable assets merging ..."
1121
ddev matomo:console development:enable
1222
ddev matomo:console config:set Development.disable_merged_assets=1
1323

24+
echo "Configure Vue source maps"
25+
ddev matomo:console config:set Development.allow_vue_sourcemaps=$MAP_FLAG_VALUE
26+
## recreate the htaccess files to include/exclude maps
27+
ddev matomo:console core:create-security-files
28+
1429
echo "Done: Matomo dev setup initialisation finished."
1530
echo ""
16-

composer.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/global.ini.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@
215215
; Note that for quick debugging, instead of using below setting, you can add `&disable_merged_assets=1` to the Matomo URL
216216
disable_merged_assets = 0
217217

218+
; if set to 1, the sourcemaps for built vue files will be allowed to be served.
219+
; this is useful for debugging vue files in the browser
220+
allow_vue_sourcemaps = 0
221+
218222
[General]
219223
; the following settings control whether Unique Visitors `nb_uniq_visitors` and Unique users `nb_users` will be processed for different period types.
220224
; year and range periods are disabled by default, to ensure optimal performance for high traffic Matomo instances

lang/ga.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@
476476
"Testing": "Tástáil…",
477477
"ThankYouForUsingMatomo": "Go raibh maith agat as Matomo a úsáid",
478478
"TheMatomoTeam": "Foireann Matomo",
479+
"ThirdPartyCookieSettingNote": "Ní mór fianáin tríú páirtí a dhíchumasú",
480+
"ThirdPartyCookieSettingTitle": "Fianáin tríú páirtí",
479481
"TimeAgo": "%s ó shin",
480482
"TimeFormat": "Formáid ama",
481483
"TimeOnPage": "Am ar an leathanach",

package-lock.json

Lines changed: 27 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)