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

Added event.preventDefault(); #83

Merged
merged 1 commit into from
Jun 3, 2023
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 package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 47 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h2 class="mb-5">Locale</h2>
const client = new Appwrite.Client();

client
.setEndpoint("http://localhost/v1") // Set your own appwrite server endpoint here, if not sure, you can get this value from your project settings page.
.setEndpoint("https://cloud.appwrite.io/v1") // Set your own appwrite server endpoint here, if not sure, you can get this value from your project settings page.
christyjacob4 marked this conversation as resolved.
Show resolved Hide resolved
.setProject("test"); // Your Appwrite Project UID, you can get it from your project settings page.

// Prepare all services we are going to use
Expand Down Expand Up @@ -246,6 +246,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function getUserName() {
Expand All @@ -259,6 +261,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function getUserEmail() {
Expand All @@ -272,6 +276,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function getSessions() {
Expand All @@ -290,6 +296,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function getLogs() {
Expand All @@ -308,6 +316,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function register(event) {
Expand All @@ -326,6 +336,8 @@ <h2 class="mb-5">Locale</h2>
alert("Failed to create account");
}
);

event.preventDefault();
}

function loginAnonymously() {
Expand All @@ -337,6 +349,8 @@ <h2 class="mb-5">Locale</h2>
alert("failed to create session");
}
);

event.preventDefault();
}

function createJWT() {
Expand All @@ -349,6 +363,8 @@ <h2 class="mb-5">Locale</h2>
alert("failed to create session");
}
);

event.preventDefault();
}

function login(event) {
Expand All @@ -369,6 +385,8 @@ <h2 class="mb-5">Locale</h2>
alert("Failed to create session");
}
);

event.preventDefault();
}

function loginWithGoogle(event) {
Expand All @@ -391,6 +409,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function loginWithFacebook(event) {
Expand All @@ -414,6 +434,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function loginWithGithub(event) {
Expand All @@ -437,6 +459,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function loginWithApple(event) {
Expand All @@ -459,6 +483,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function deleteSessions() {
Expand All @@ -472,6 +498,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function deleteCurrentSession() {
Expand All @@ -485,6 +513,8 @@ <h2 class="mb-5">Locale</h2>
console.log(error); // Failure
}
);

event.preventDefault();
}

function createTeam() {
Expand All @@ -498,6 +528,8 @@ <h2 class="mb-5">Locale</h2>
alert(error); // Failure
}
);

event.preventDefault();
}

function createTeamMembership() {
Expand All @@ -513,6 +545,8 @@ <h2 class="mb-5">Locale</h2>
alert(error); // Failure
}
);

event.preventDefault();
}

function createFile() {
Expand All @@ -524,6 +558,8 @@ <h2 class="mb-5">Locale</h2>
}, function (error) {
console.log(error); // Failure
});

event.preventDefault();
}

function listFiles() {
Expand All @@ -545,6 +581,8 @@ <h2 class="mb-5">Locale</h2>
}, function (error) {
console.log(error); // Failure
});

event.preventDefault();
}

function getFile(file_id) {
Expand All @@ -556,6 +594,8 @@ <h2 class="mb-5">Locale</h2>
}, function (error) {
console.log(error); // Failure
});

event.preventDefault();
}

function getLocation() {
Expand All @@ -574,6 +614,8 @@ <h2 class="mb-5">Locale</h2>
alert("No User is Logged!");
}
);

event.preventDefault();
}

function getIP() {
Expand All @@ -587,6 +629,8 @@ <h2 class="mb-5">Locale</h2>
alert("Failed to get user locale.");
}
);

event.preventDefault();
}

function isEU() {
Expand All @@ -604,6 +648,8 @@ <h2 class="mb-5">Locale</h2>
alert("Failed to get user locale.");
}
);

event.preventDefault();
}

// let promise = appwrite.database.createDocument('5dac4fc8d9f0c', {
Expand Down