Use Bun. Use hash mode in router

master
Araozu 2024-02-28 20:21:49 -05:00
parent ff53bb35be
commit c74fac62dd
6 changed files with 18 additions and 1561 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shamefully-hoist=true

BIN
bun.lockb Executable file

Binary file not shown.

View File

@ -9,12 +9,18 @@
"type-check": "vue-tsc --noEmit" "type-check": "vue-tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"connect-history-api-fallback": "^1.6.0",
"express": "^4.18.2",
"mysql": "^2.18.1",
"mysql2": "^2.2.0",
"sass": "^1.71.1", "sass": "^1.71.1",
"vue": "^2.7.7", "vue": "^2.7.7",
"vue-router": "^3.5.4", "vue-router": "^3.5.4",
"yaml": "^2.4.0" "yaml": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^4.17.20",
"@types/mysql": "^2.15.23",
"@types/node": "^16.11.45", "@types/node": "^16.11.45",
"@vitejs/plugin-legacy": "^2.0.0", "@vitejs/plugin-legacy": "^2.0.0",
"@vitejs/plugin-vue2": "^1.1.2", "@vitejs/plugin-vue2": "^1.1.2",

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ import AnimeView from './views/AnimeView.vue'
Vue.use(Router); Vue.use(Router);
const rutas = { const rutas = {
mode: 'history', mode: 'hash',
base: "/", base: "/",
routes: [ routes: [
{ {

View File

@ -4,7 +4,10 @@ import mysql from "mysql2";
console.log("express??"); console.log("express??");
export default (app: core.Express) => { const app = express();
const port = 3000;
const expressApp = (app: core.Express) => {
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded()); app.use(express.urlencoded());
@ -51,4 +54,10 @@ export const conexionMySQL = (() => {
const color = '#cc2f66'; const color = '#cc2f66';
expressApp(app);
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});
// module.exports.conexionMySQL = conexionMySQL; // module.exports.conexionMySQL = conexionMySQL;