Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minification and tabbings #475

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Angular/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 14 additions & 14 deletions examples/Symbolication/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
};
}
2 changes: 1 addition & 1 deletion examples/example_apm.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions examples/example_apm_async.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -24,7 +24,7 @@
// Countly.customSourceCountlyBoomerang = "../somewhere/countly_boomerang.js";

//start pushing function calls to queue:

// track sessions automatically
Countly.q.push(['track_sessions']);

Expand Down Expand Up @@ -70,4 +70,4 @@ <h1>Async Countly Implementation</h1>
</center>
</body>

</html>
</html>
6 changes: 3 additions & 3 deletions examples/example_async.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -62,4 +62,4 @@ <h1>Async Countly Implementation</h1>
</center>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion examples/example_fb.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions examples/example_formdata.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<script type='text/javascript'>

const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";

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
Countly.init({
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
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
Countly.init({
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
});
Countly.begin_session();
Expand Down
4 changes: 2 additions & 2 deletions examples/example_ga_adapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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"){
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;
Expand Down Expand Up @@ -191,4 +191,4 @@ <h1>Google Analytics Adaptor</h1>
</center>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion examples/example_gdpr.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
2 changes: 1 addition & 1 deletion examples/example_helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
44 changes: 22 additions & 22 deletions examples/example_multiple_instances.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
Countly.q = Countly.q || [];

//initializing first instance, which will be global Countly
const COUNTLY_SERVER_KEY = "https://your.server.ly";
const COUNTLY_APP_KEY = "YOUR_APP_KEY";
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"){
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
Countly.init({
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
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
Countly.init({
app_key: COUNTLY_APP_KEY,
url: COUNTLY_SERVER_KEY, //your server goes here
debug: true
})
//report event to first app
Expand All @@ -32,16 +32,16 @@


//initialize second instance for another app synchronously
const COUNTLY_SERVER_KEY2 = "https://your.server.ly";
const COUNTLY_APP_KEY2 = "YOUR_APP_KEY2";
const COUNTLY_SERVER_KEY2 = "https://your.server.ly";
const COUNTLY_APP_KEY2 = "YOUR_APP_KEY2";

if(COUNTLY_APP_KEY2 === "YOUR_APP_KEY2" || COUNTLY_SERVER_KEY2 === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
var Countly2 = Countly.init({
app_key: COUNTLY_APP_KEY2,
url: COUNTLY_SERVER_KEY2, //your server goes here
if (COUNTLY_APP_KEY2 === "YOUR_APP_KEY2" || COUNTLY_SERVER_KEY2 === "https://your.server.ly") {
console.warn("Please do not use default set of app key and server url")
}
// initializing countly with params
var Countly2 = Countly.init({
app_key: COUNTLY_APP_KEY2,
url: COUNTLY_SERVER_KEY2, //your server goes here
debug: true
});

Expand All @@ -51,11 +51,11 @@
});

const COUNTLY_SERVER_KEY3 = "https://your.server.ly";
const COUNTLY_APP_KEY3 = "YOUR_APP_KEY3";
const COUNTLY_APP_KEY3 = "YOUR_APP_KEY3";

if(COUNTLY_APP_KEY3 === "YOUR_APP_KEY3" || COUNTLY_SERVER_KEY2 === "https://your.server.ly"){
console.warn("Please do not use default set of app key and server url")
}
if (COUNTLY_APP_KEY3 === "YOUR_APP_KEY3" || COUNTLY_SERVER_KEY2 === "https://your.server.ly") {
console.warn("Please do not use default set of app key and server url")
}

//initialize third instance for another app asynchronously
Countly.q.push(["init", {
Expand Down
2 changes: 1 addition & 1 deletion examples/example_opt_out.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
2 changes: 1 addition & 1 deletion examples/example_rating_widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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
Expand Down
2 changes: 1 addition & 1 deletion examples/example_remote_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
2 changes: 1 addition & 1 deletion examples/example_sync.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
2 changes: 1 addition & 1 deletion examples/examples_feedback_widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
Expand Down
Loading
Loading