Compare commits
2 Commits
e8fe077b89
...
pruebas
| Author | SHA1 | Date | |
|---|---|---|---|
| 220b44bd94 | |||
| 4667e34747 |
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/png href=assets/icono.png><title>Portal Editorial Acatlán</title><link href=css/app.afa3884b.css rel=preload as=style><link href=css/chunk-vendors.138628b4.css rel=preload as=style><link href=js/app.79cc18fa.js rel=preload as=script><link href=js/chunk-vendors.67046eec.js rel=preload as=script><link href=css/chunk-vendors.138628b4.css rel=stylesheet><link href=css/app.afa3884b.css rel=stylesheet></head><body><noscript><strong>We're sorry but portal doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.67046eec.js></script><script src=js/app.79cc18fa.js></script></body></html>
|
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/png href=assets/icono.png><title>Portal Editorial Acatlán</title><link href=css/app.d2fdfe7d.css rel=preload as=style><link href=css/chunk-vendors.138628b4.css rel=preload as=style><link href=js/app.3c2f55de.js rel=preload as=script><link href=js/chunk-vendors.67046eec.js rel=preload as=script><link href=css/chunk-vendors.138628b4.css rel=stylesheet><link href=css/app.d2fdfe7d.css rel=stylesheet></head><body><noscript><strong>We're sorry but portal doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.67046eec.js></script><script src=js/app.3c2f55de.js></script></body></html>
|
||||||
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-2
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Generated
+12484
-12484
File diff suppressed because it is too large
Load Diff
+36
-36
@@ -1,36 +1,36 @@
|
|||||||
{
|
{
|
||||||
"name": "portal",
|
"name": "portal",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"bootstrap": "^4.5.2",
|
"bootstrap": "^4.5.2",
|
||||||
"bootstrap-vue": "^2.21.2",
|
"bootstrap-vue": "^2.21.2",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"jquery": "^3.5.1",
|
"jquery": "^3.5.1",
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
"sweetalert2": "^10.13.0",
|
"sweetalert2": "^10.13.0",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-router": "^3.3.4",
|
"vue-router": "^3.3.4",
|
||||||
"vuex": "^3.6.0"
|
"vuex": "^3.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.4.0",
|
"@vue/cli-plugin-babel": "~4.4.0",
|
||||||
"@vue/cli-plugin-eslint": "~4.4.0",
|
"@vue/cli-plugin-eslint": "~4.4.0",
|
||||||
"@vue/cli-service": "~4.4.0",
|
"@vue/cli-service": "~4.4.0",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^7.17.0",
|
"eslint": "^7.17.0",
|
||||||
"eslint-config-airbnb-base": "^14.2.1",
|
"eslint-config-airbnb-base": "^14.2.1",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.22.1",
|
||||||
"eslint-plugin-prettier": "^3.1.3",
|
"eslint-plugin-prettier": "^3.1.3",
|
||||||
"eslint-plugin-vue": "^7.4.1",
|
"eslint-plugin-vue": "^7.4.1",
|
||||||
"prettier": "1.19.1",
|
"prettier": "1.19.1",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+87
-82
@@ -1,82 +1,87 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="divMaster row ">
|
<div class="divMaster row ">
|
||||||
<div
|
<div
|
||||||
id="carouselExampleControls"
|
id="carouselExampleControls"
|
||||||
class="carousel slide col-md-10 col-lg-10 col-xl-10 my-5 col-12 mx-auto"
|
class="carousel slide col-md-10 col-lg-10 col-xl-10 my-5 col-12 mx-auto"
|
||||||
data-ride="carousel"
|
data-ride="carousel"
|
||||||
>
|
>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<div
|
<div
|
||||||
class="carousel-item"
|
class="carousel-item"
|
||||||
v-bind:key="libro.id"
|
v-bind:key="libro.id"
|
||||||
v-for="(libro, idx) in Libros"
|
v-for="(libro, idx) in Libros"
|
||||||
:class="{ active: idx == 0 }"
|
:class="{ active: idx == 0 }"
|
||||||
>
|
>
|
||||||
<img :src="libro.img" class="d-block w-100 img-fluid" alt="img" />
|
<img :src="libro.img" class="d-block w-100 img-fluid" alt="img" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
class="carousel-control-prev"
|
class="carousel-control-prev"
|
||||||
href="#carouselExampleControls"
|
href="#carouselExampleControls"
|
||||||
role="button"
|
role="button"
|
||||||
data-slide="prev"
|
data-slide="prev"
|
||||||
>
|
>
|
||||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Previous</span>
|
<span class="sr-only">Previous</span>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="carousel-control-next"
|
class="carousel-control-next"
|
||||||
href="#carouselExampleControls"
|
href="#carouselExampleControls"
|
||||||
role="button"
|
role="button"
|
||||||
data-slide="next"
|
data-slide="next"
|
||||||
>
|
>
|
||||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Next</span>
|
<span class="sr-only">Next</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import config from "../config/config.js";
|
import config from "../config/config.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
Libros: []
|
Libros: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
try {
|
try {
|
||||||
let path = `${config.api}/imagenCarrusel?nombre=`;
|
let path = `${config.api}/imagenCarrusel?nombre=`;
|
||||||
let nombres = await axios.get(`${config.api}/nombreCarrusel`);
|
let nombres = await axios.get(`${config.api}/nombreCarrusel`);
|
||||||
nombres = nombres.data.data;
|
nombres = nombres.data.data;
|
||||||
for (let i = 0; i < nombres.length; i++) {
|
for (let i = 0; i < nombres.length; i++) {
|
||||||
//console.log(path);
|
//console.log(path);
|
||||||
let config = {
|
let config = {
|
||||||
// example url
|
// example url
|
||||||
url: `${path}${nombres[i]}`,
|
url: `${path}${nombres[i]}`,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
responseType: "blob"
|
responseType: "blob"
|
||||||
};
|
};
|
||||||
await axios(config).then(response => {
|
try{
|
||||||
let reader = new FileReader();
|
await axios(config).then(response => {
|
||||||
reader.readAsDataURL(response.data);
|
let reader = new FileReader();
|
||||||
reader.onload = () => {
|
reader.readAsDataURL(response.data);
|
||||||
this.Libros.push({ id: i, img: reader.result });
|
reader.onload = () => {
|
||||||
};
|
this.Libros.push({ id: i, img: reader.result });
|
||||||
});
|
};
|
||||||
}
|
});
|
||||||
} catch (error) {
|
}
|
||||||
console.log(`Ocurrio un error msj: ${error}`);
|
catch(error){
|
||||||
}
|
console.log(error);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
</script>
|
} catch (error) {
|
||||||
|
console.log(`Ocurrio un error msj: ${error}`);
|
||||||
<style scoped>
|
}
|
||||||
.divMaster {
|
}
|
||||||
height: auto;
|
};
|
||||||
}
|
</script>
|
||||||
</style>
|
|
||||||
|
<style scoped>
|
||||||
|
.divMaster {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -127,13 +127,18 @@ export default {
|
|||||||
method: "GET",
|
method: "GET",
|
||||||
responseType: "blob"
|
responseType: "blob"
|
||||||
};
|
};
|
||||||
await axios(config).then(response => {
|
try{
|
||||||
let reader = new FileReader();
|
await axios(config).then(response => {
|
||||||
reader.readAsDataURL(response.data);
|
let reader = new FileReader();
|
||||||
reader.onload = () => {
|
reader.readAsDataURL(response.data);
|
||||||
this.imagenesBanner.push({ id: i, img: reader.result, nombreImagen: nombres[i]});
|
reader.onload = () => {
|
||||||
};
|
this.imagenesBanner.push({ id: i, img: reader.result, nombreImagen: nombres[i]});
|
||||||
});
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch(error){
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`Ocurrio un error msj: ${error}`);
|
console.log(`Ocurrio un error msj: ${error}`);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<footer class="container-fluid Azul-puma footer py-3 ">
|
<footer class="container-fluid Azul-puma footer py-3 ">
|
||||||
<div row>
|
<div row>
|
||||||
<p class="mb-0 ">Hecho en México, todos los derechos reservados 2020.</p>
|
<p class="mb-0 ">Hecho en México, todos los derechos reservados 2021.</p>
|
||||||
<p class="my-0 ">
|
<p class="my-0 ">
|
||||||
Esta página puede ser reproducida con fines no lucrativos, siempre y
|
Esta página puede ser reproducida con fines no lucrativos, siempre y
|
||||||
cuando no se mutile, se cite la fuente
|
cuando no se mutile, se cite la fuente
|
||||||
|
|||||||
+38
-38
@@ -1,38 +1,38 @@
|
|||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
import "bootstrap";
|
import "bootstrap";
|
||||||
import "bootstrap/dist/css/bootstrap.min.css";
|
import "bootstrap/dist/css/bootstrap.min.css";
|
||||||
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
|
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
import VueRouter from "vue-router";
|
import VueRouter from "vue-router";
|
||||||
import { routes } from "./routes";
|
import { routes } from "./routes";
|
||||||
|
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
Vue.use(BootstrapVue);
|
Vue.use(BootstrapVue);
|
||||||
Vue.use(IconsPlugin);
|
Vue.use(IconsPlugin);
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
routes
|
routes
|
||||||
});
|
});
|
||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
selectNav: "EditarLibro",
|
selectNav: "EditarLibro",
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
cambiarNav (state, selectNav) {
|
cambiarNav (state, selectNav) {
|
||||||
state.selectNav = selectNav
|
state.selectNav = selectNav
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: "#app",
|
el: "#app",
|
||||||
render: h => h(App),
|
render: h => h(App),
|
||||||
router,
|
router,
|
||||||
store: store,
|
store: store,
|
||||||
});
|
});
|
||||||
|
|||||||
+78
-78
@@ -1,78 +1,78 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Header />
|
<Header />
|
||||||
<h1 class="my-5">Inicia Sesión</h1>
|
<h1 class="my-5">Inicia Sesión</h1>
|
||||||
<div class="row d-flex justify-content-center">
|
<div class="row d-flex justify-content-center">
|
||||||
<div class="col-12 col-md-8 col-lg-6 col-xl-6">
|
<div class="col-12 col-md-8 col-lg-6 col-xl-6">
|
||||||
<form class="row d-flex justify-content-center">
|
<form class="row d-flex justify-content-center">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
v-model="email"
|
v-model="email"
|
||||||
class="form-control col-8"
|
class="form-control col-8"
|
||||||
name="login"
|
name="login"
|
||||||
placeholder="Usuario"
|
placeholder="Usuario"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
class="form-control col-8 my-3"
|
class="form-control col-8 my-3"
|
||||||
name="login"
|
name="login"
|
||||||
placeholder="Contraseña"
|
placeholder="Contraseña"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
type="button"
|
type="button"
|
||||||
@click="login"
|
@click="login"
|
||||||
class="btn bg-primary text-white col-5"
|
class="btn bg-primary text-white col-5"
|
||||||
value="Ingresar"
|
value="Ingresar"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Header from "./../components/header.vue";
|
import Header from "./../components/header.vue";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import config from "../config/config.js";
|
import config from "../config/config.js";
|
||||||
import Swal from 'sweetalert2'
|
import Swal from 'sweetalert2'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
email: "",
|
email: "",
|
||||||
password: ""
|
password: ""
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
login() {
|
login() {
|
||||||
const datos = {
|
const datos = {
|
||||||
usuario: this.email,
|
usuario: this.email,
|
||||||
password: this.password
|
password: this.password
|
||||||
}
|
}
|
||||||
axios.post( `${config.api}/loginAdmin`, datos ).then(async response =>{
|
axios.post( `${config.api}/loginAdmin`, datos ).then(async response =>{
|
||||||
localStorage.setItem('tokenPortal', response.data.token);
|
localStorage.setItem('tokenPortal', response.data.token);
|
||||||
await Swal.fire(
|
await Swal.fire(
|
||||||
'Bienvenido',
|
'Bienvenido',
|
||||||
'',
|
'',
|
||||||
'success'
|
'success'
|
||||||
);
|
);
|
||||||
this.$router.replace('/panelAdmin');
|
this.$router.replace('/panelAdmin');
|
||||||
|
|
||||||
}).catch(() =>{
|
}).catch(() =>{
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
title: 'El usuario o la contraseña es incorrecta',
|
title: 'El usuario o la contraseña es incorrecta',
|
||||||
text: `Intentalo de nuevo.`,
|
text: `Intentalo de nuevo.`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
Header
|
Header
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user