chore: update version strings
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@quasar/app-vite": "^1.9.1",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/github": "^10.0.6",
|
||||
"@semantic-release/npm": "^12.0.1",
|
||||
"@types/node": "^12.20.21",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
||||
"@typescript-eslint/parser": "^5.10.0",
|
||||
@@ -34,8 +37,10 @@
|
||||
"eslint": "^8.10.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-vue": "^9.0.0",
|
||||
"git-commit-info": "^2.0.2",
|
||||
"prettier": "^2.5.1",
|
||||
"quasar": "^2.16.0",
|
||||
"semantic-release": "^24.0.0",
|
||||
"typescript": "~5.3.0",
|
||||
"vite-plugin-checker": "^0.6.4",
|
||||
"vue-tsc": "^1.8.22",
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
|
||||
const { configure } = require('quasar/wrappers');
|
||||
const packageJson = require('./package.json');
|
||||
const gitCommitInfo = require('git-commit-info');
|
||||
|
||||
module.exports = configure(function (/* ctx */) {
|
||||
module.exports = configure(function ({ dev }) {
|
||||
return {
|
||||
eslint: {
|
||||
// fix: true,
|
||||
@@ -50,7 +51,9 @@ module.exports = configure(function (/* ctx */) {
|
||||
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
|
||||
build: {
|
||||
env: {
|
||||
VUE_APP_VERSION: packageJson.version,
|
||||
VUE_APP_VERSION: dev
|
||||
? 'dev-' + gitCommitInfo().shortHash
|
||||
: packageJson.version,
|
||||
},
|
||||
target: {
|
||||
browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user