You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flagon.apache.org by po...@apache.org on 2022/04/05 01:24:42 UTC
[incubator-flagon-useralejs] branch test updated: adding userale filter and addl options to make example more responsive
This is an automated email from the ASF dual-hosted git repository.
poorejc pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git
The following commit(s) were added to refs/heads/test by this push:
new ae7ac10 adding userale filter and addl options to make example more responsive
ae7ac10 is described below
commit ae7ac10d8d66e50bddd412951b0268d640e9b571
Author: poorejc <po...@apache.org>
AuthorDate: Mon Apr 4 21:24:29 2022 -0400
adding userale filter and addl options to make example more responsive
---
example/react-app-example/src/App.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/example/react-app-example/src/App.js b/example/react-app-example/src/App.js
index 07c7701..6daf237 100644
--- a/example/react-app-example/src/App.js
+++ b/example/react-app-example/src/App.js
@@ -25,7 +25,16 @@ function App() {
}
userale.options({
- autostart: false
+ autostart: false,
+ logCountThreshold: '1',
+ transmitInterval: '1000',
+ toolName: "Apache UserALE.js React Example"
+ })
+
+ userale.filter(function (log) {
+ var type_array = ['mouseup', 'mouseover', 'mousedown', 'keydown', 'dblclick', 'blur', 'focus', 'input', 'wheel', 'scroll'];
+ var logType_array = ['interval'];
+ return !type_array.includes(log.type) && !logType_array.includes(log.logType);
})
return (