diff --git a/backend/hash_passwords.js b/backend/hash_passwords.js index 10db6f6..7a7b14a 100644 --- a/backend/hash_passwords.js +++ b/backend/hash_passwords.js @@ -2,14 +2,14 @@ import mysql from 'mysql2/promise' import bcrypt from 'bcrypt' import dotenv from 'dotenv' -dotenv.config({ path: '../.env' }) +dotenv.config() async function hashPasswords() { const db = await mysql.createConnection({ host: process.env.DB_HOST, - user: process.env.DB_USER, + user: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, - database: process.env.DB_NAME, + database: process.env.DB_DATABASE, port: process.env.DB_PORT, }) @@ -36,4 +36,4 @@ async function hashPasswords() { } } -hashPasswords() \ No newline at end of file +hashPasswords() diff --git a/backend/server.js b/backend/server.js index 398068c..8aeb7e7 100644 --- a/backend/server.js +++ b/backend/server.js @@ -22,9 +22,9 @@ async function startServer() { // --- Database Connection --- const db = mysql.createPool({ host: process.env.DB_HOST, - user: process.env.DB_USER, + user: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, - database: process.env.DB_NAME, + database: process.env.DB_DATABASE, port: process.env.DB_PORT, waitForConnections: true, connectionLimit: 10, diff --git a/package-lock.json b/package-lock.json index ee527ba..156df1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,7 @@ "qrcode": "^1.5.4", "uuid": "^11.1.0", "vue": "^3.5.13", + "vue-i18n": "^11.1.7", "vue-router": "^4.5.0" }, "devDependencies": { @@ -1269,6 +1270,50 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@intlify/core-base": { + "version": "11.1.7", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.1.7.tgz", + "integrity": "sha512-gYiGnQeJVp3kNBeXQ73m1uFOak0ry4av8pn+IkEWigyyPWEMGzB+xFeQdmGMFn49V+oox6294oGVff8bYOhtOw==", + "license": "MIT", + "dependencies": { + "@intlify/message-compiler": "11.1.7", + "@intlify/shared": "11.1.7" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.1.7", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.1.7.tgz", + "integrity": "sha512-0ezkep1AT30NyuKj8QbRlmvMORCCRlOIIu9v8RNU8SwDjjTiFCZzczCORMns2mCH4HZ1nXgrfkKzYUbfjNRmng==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "11.1.7", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.1.7", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.1.7.tgz", + "integrity": "sha512-4yZeMt2Aa/7n5Ehy4KalUlvt3iRLcg1tq9IBVfOgkyWFArN4oygn6WxgGIFibP3svpaH8DarbNaottq+p0gUZQ==", + "license": "MIT", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, "node_modules/@ionic/cli-framework-output": { "version": "2.2.8", "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.8.tgz", @@ -9479,6 +9524,26 @@ "eslint": "^8.57.0 || ^9.0.0" } }, + "node_modules/vue-i18n": { + "version": "11.1.7", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.1.7.tgz", + "integrity": "sha512-CDrU7Cmyh1AxJjerQmipV9nVa//exVBdhTcWGlbfcDCN8bKp/uAe7Le6IoN4//5emIikbsSKe9Uofmf/xXkhOA==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.1.7", + "@intlify/shared": "11.1.7", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-router": { "version": "4.5.1", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz", diff --git a/package.json b/package.json index 3837414..2f72148 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "qrcode": "^1.5.4", "uuid": "^11.1.0", "vue": "^3.5.13", + "vue-i18n": "^11.1.7", "vue-router": "^4.5.0" }, "devDependencies": { diff --git a/src/App.vue b/src/App.vue index 329fb42..6451f9b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,24 +1,26 @@