Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2021-10-13 06:55:33 +0300
committerGitHub <noreply@github.com>2021-10-13 06:55:33 +0300
commitb5e591c7d70fe64c5a3d375812d9e1bc20b25558 (patch)
tree98fa10365dbb5a2fca9bd9687c8cd447f82f070e /plugins/CoreHome/vue/src/Alert/Alert.adapter.ts
parent68674d8fdf1464e0342f8413372ae702e7b7bc43 (diff)
[Vue] add promise api to ajaxHelper and deprecate piwikApi service (#18114)
* incomplete conversion * get ajax helper migration to work * delete old periods.spec.js * remove global-ajax-queue.js file * migrate piwik service and test (w/ hacks to get it the test to work) * rebuild and remove old files + get tests to pass * unfinished commit * return jqxhr object so promise api can be used * move hasBlockedContent and deprecate piwikApi service * remove alert files * convert piwikHelper.spec.js * in new vue code, use "Matomo" everywhere possible instead of "piwik" and rebuild vue files * add another needed export line in command * include polyfills after vue so we can add to vue engine * Add HTML sanitizer for use w/ migrating ng-bind-html uses. * fix broken merge, rebuild js, fix issue in build command * add sanitize to other components for consistency (will be replaced by utility function eventually) * add output when no plugins to build * update expected screenshot
Diffstat (limited to 'plugins/CoreHome/vue/src/Alert/Alert.adapter.ts')
-rw-r--r--plugins/CoreHome/vue/src/Alert/Alert.adapter.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/CoreHome/vue/src/Alert/Alert.adapter.ts b/plugins/CoreHome/vue/src/Alert/Alert.adapter.ts
index c1f32e8461..5cecb97a81 100644
--- a/plugins/CoreHome/vue/src/Alert/Alert.adapter.ts
+++ b/plugins/CoreHome/vue/src/Alert/Alert.adapter.ts
@@ -40,6 +40,7 @@ export default function alertAdapter(): ng.IDirective {
};
},
});
+ app.config.globalProperties.$sanitize = window.vueSanitize;
app.component('alert', Alert);
const vm = app.mount(element[0]);