chore: update version strings

This commit is contained in:
2024-06-13 20:35:13 -04:00
parent 475ba45248
commit 1a78f82c5e
5 changed files with 2786 additions and 81 deletions

View File

@@ -14,23 +14,9 @@ import type { Router } from 'vue-router';
const client = new Client();
// let VITE_APPWRITE_API_ENDPOINT, VITE_APPWRITE_API_PROJECT;
// Private self-hosted appwrite
// if (
// process.env.VITE_APPWRITE_API_ENDPOINT &&
// process.env.VITE_APPWRITE_API_PROJECT
// ) {
const VITE_APPWRITE_API_ENDPOINT = import.meta.env.VITE_APPWRITE_API_ENDPOINT;
const VITE_APPWRITE_API_PROJECT = import.meta.env.VITE_APPWRITE_API_PROJECT;
// }
// } else if (process.env.DEV) {
// VITE_APPWRITE_API_ENDPOINT = 'http://localhost:4000/api/v1';
// VITE_APPWRITE_API_PROJECT = '65ede55a213134f2b688';
// } else {
// VITE_APPWRITE_API_ENDPOINT = 'https://appwrite.oys.undock.ca/v1';
// VITE_APPWRITE_API_PROJECT = 'bab';
// }
if (VITE_APPWRITE_API_ENDPOINT && VITE_APPWRITE_API_PROJECT) {
client
.setEndpoint(VITE_APPWRITE_API_ENDPOINT)
@@ -41,6 +27,7 @@ if (VITE_APPWRITE_API_ENDPOINT && VITE_APPWRITE_API_PROJECT) {
);
}
console.log(process.env);
const pwresetUrl = process.env.DEV
? 'http://localhost:4000/pwreset'
: 'https://oys.undock.ca/pwreset';

View File

@@ -81,6 +81,8 @@ import { login } from 'boot/appwrite';
const email = ref('');
const password = ref('');
console.log('version: process.env.VUE_APP_VERSION');
const doLogin = async () => {
login(email.value, password.value);
};