From 6089dd74e7352cd13f4422c2256a081c94af85d0 Mon Sep 17 00:00:00 2001 From: turtledreams <62231246+turtledreams@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:49:43 +0900 Subject: [PATCH] minification and tabbings (#475) --- examples/Angular/main.ts | 2 +- examples/Symbolication/src/main.js | 28 ++-- examples/example_apm.html | 2 +- examples/example_apm_async.html | 8 +- examples/example_async.html | 6 +- examples/example_fb.html | 2 +- examples/example_formdata.html | 16 +-- examples/example_ga_adapter.html | 4 +- examples/example_gdpr.html | 2 +- examples/example_helpers.html | 2 +- examples/example_multiple_instances.html | 44 +++--- examples/example_opt_out.html | 2 +- examples/example_rating_widgets.html | 2 +- examples/example_remote_config.html | 2 +- examples/example_sync.html | 2 +- examples/examples_feedback_widgets.html | 2 +- examples/react/src/index.js | 2 +- lib/countly.min.js | 168 +++++++++++------------ 18 files changed, 148 insertions(+), 148 deletions(-) diff --git a/examples/Angular/main.ts b/examples/Angular/main.ts index d5a2eb30..bc6a4a84 100644 --- a/examples/Angular/main.ts +++ b/examples/Angular/main.ts @@ -11,7 +11,7 @@ window.Countly = Countly; const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; -if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ +if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params diff --git a/examples/Symbolication/src/main.js b/examples/Symbolication/src/main.js index a7033beb..ae06a4f3 100644 --- a/examples/Symbolication/src/main.js +++ b/examples/Symbolication/src/main.js @@ -3,7 +3,7 @@ import Countly from "countly-sdk-web"; const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; -if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ +if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params @@ -33,22 +33,22 @@ Countly.track_forms(); Countly.track_errors(); //let's cause some errors -function cause_error(){ - undefined_function(); +function cause_error() { + undefined_function(); } -window.onload = function() { - document.getElementById("handled_error").onclick = function handled_error(){ - Countly.add_log('Pressed handled button'); - try { - cause_error(); - } catch(err){ - Countly.log_error(err) - } +window.onload = function () { + document.getElementById("handled_error").onclick = function handled_error() { + Countly.add_log('Pressed handled button'); + try { + cause_error(); + } catch (err) { + Countly.log_error(err) + } }; - document.getElementById("unhandled_error").onclick = function unhandled_error(){ - Countly.add_log('Pressed unhandled button'); - cause_error(); + document.getElementById("unhandled_error").onclick = function unhandled_error() { + Countly.add_log('Pressed unhandled button'); + cause_error(); }; } diff --git a/examples/example_apm.html b/examples/example_apm.html index 28a13329..3059fd1b 100644 --- a/examples/example_apm.html +++ b/examples/example_apm.html @@ -13,7 +13,7 @@ const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; - if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params diff --git a/examples/example_apm_async.html b/examples/example_apm_async.html index bf56e48f..ad12b1cf 100644 --- a/examples/example_apm_async.html +++ b/examples/example_apm_async.html @@ -14,8 +14,8 @@ Countly.app_key = "YOUR_APP_KEY"; Countly.url = "https://your.server.ly"; //your server goes here - if(Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly"){ - console.warn("Please do not use default set of app key and server url") + if (Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly") { + console.warn("Please do not use default set of app key and server url") } Countly.debug = true; @@ -24,7 +24,7 @@ // Countly.customSourceCountlyBoomerang = "../somewhere/countly_boomerang.js"; //start pushing function calls to queue: - + // track sessions automatically Countly.q.push(['track_sessions']); @@ -70,4 +70,4 @@

Async Countly Implementation

- + \ No newline at end of file diff --git a/examples/example_async.html b/examples/example_async.html index 60923bcd..50d32389 100644 --- a/examples/example_async.html +++ b/examples/example_async.html @@ -14,8 +14,8 @@ Countly.app_key = "YOUR_APP_KEY"; Countly.url = "https://your.server.ly"; //your server goes here - if(Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly"){ - console.warn("Please do not use default set of app key and server url") + if (Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly") { + console.warn("Please do not use default set of app key and server url") } Countly.debug = true; @@ -62,4 +62,4 @@

Async Countly Implementation

- + \ No newline at end of file diff --git a/examples/example_fb.html b/examples/example_fb.html index ede51d39..b83f1019 100644 --- a/examples/example_fb.html +++ b/examples/example_fb.html @@ -14,7 +14,7 @@ const COUNTLY_SERVER_KEY = "https://your.server.ly"; const COUNTLY_APP_KEY = "YOUR_APP_KEY"; - if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + if (COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly") { console.warn("Please do not use default set of app key and server url") } // initializing countly with params diff --git a/examples/example_formdata.html b/examples/example_formdata.html index 6272a0a1..0538665b 100644 --- a/examples/example_formdata.html +++ b/examples/example_formdata.html @@ -12,15 +12,15 @@