Commit 12cbfec6 authored by Esteban Choque's avatar Esteban Choque

Se aumento el tamaño de 30 a 80% del dialog

parent ff66554b
......@@ -12,10 +12,10 @@ import { createStore } from './store.js'
/* Plugins */
import nuxt_plugin_pluginseo_c9e2782e from 'nuxt_plugin_pluginseo_c9e2782e' // Source: ./nuxt-i18n/plugin.seo.js
import nuxt_plugin_pluginrouting_30c9e940 from 'nuxt_plugin_pluginrouting_30c9e940' // Source: ./nuxt-i18n/plugin.routing.js
import nuxt_plugin_pluginmain_fb4ec7e2 from 'nuxt_plugin_pluginmain_fb4ec7e2' // Source: ./nuxt-i18n/plugin.main.js
import nuxt_plugin_axios_2d8420b4 from 'nuxt_plugin_axios_2d8420b4' // Source: ./axios.js
import nuxt_plugin_pluginseo_a4f16af4 from 'nuxt_plugin_pluginseo_a4f16af4' // Source: ./nuxt-i18n/plugin.seo.js
import nuxt_plugin_pluginrouting_6704fb7d from 'nuxt_plugin_pluginrouting_6704fb7d' // Source: ./nuxt-i18n/plugin.routing.js
import nuxt_plugin_pluginmain_821e2ddc from 'nuxt_plugin_pluginmain_821e2ddc' // Source: ./nuxt-i18n/plugin.main.js
import nuxt_plugin_axios_2d9ea2a9 from 'nuxt_plugin_axios_2d9ea2a9' // Source: ./axios.js
import nuxt_plugin_elementui_69306e1c from 'nuxt_plugin_elementui_69306e1c' // Source: ../src/plugins/element-ui
import nuxt_plugin_i18n_3032693c from 'nuxt_plugin_i18n_3032693c' // Source: ../src/plugins/i18n.js
import nuxt_plugin_wordpress_e45c7596 from 'nuxt_plugin_wordpress_e45c7596' // Source: ../src/plugins/wordpress.js
......@@ -160,10 +160,10 @@ async function createApp(ssrContext) {
// Plugin execution
if (typeof nuxt_plugin_pluginseo_c9e2782e === 'function') await nuxt_plugin_pluginseo_c9e2782e(app.context, inject)
if (typeof nuxt_plugin_pluginrouting_30c9e940 === 'function') await nuxt_plugin_pluginrouting_30c9e940(app.context, inject)
if (typeof nuxt_plugin_pluginmain_fb4ec7e2 === 'function') await nuxt_plugin_pluginmain_fb4ec7e2(app.context, inject)
if (typeof nuxt_plugin_axios_2d8420b4 === 'function') await nuxt_plugin_axios_2d8420b4(app.context, inject)
if (typeof nuxt_plugin_pluginseo_a4f16af4 === 'function') await nuxt_plugin_pluginseo_a4f16af4(app.context, inject)
if (typeof nuxt_plugin_pluginrouting_6704fb7d === 'function') await nuxt_plugin_pluginrouting_6704fb7d(app.context, inject)
if (typeof nuxt_plugin_pluginmain_821e2ddc === 'function') await nuxt_plugin_pluginmain_821e2ddc(app.context, inject)
if (typeof nuxt_plugin_axios_2d9ea2a9 === 'function') await nuxt_plugin_axios_2d9ea2a9(app.context, inject)
if (typeof nuxt_plugin_elementui_69306e1c === 'function') await nuxt_plugin_elementui_69306e1c(app.context, inject)
if (typeof nuxt_plugin_i18n_3032693c === 'function') await nuxt_plugin_i18n_3032693c(app.context, inject)
if (typeof nuxt_plugin_wordpress_e45c7596 === 'function') await nuxt_plugin_wordpress_e45c7596(app.context, inject)
......
......@@ -2,16 +2,17 @@ import Vue from 'vue'
import Router from 'vue-router'
import { interopDefault } from './utils'
const _65a81e24 = () => interopDefault(import('../src/pages/api.vue' /* webpackChunkName: "pages/api" */))
const _96708b46 = () => interopDefault(import('../src/pages/aula-digital/index.vue' /* webpackChunkName: "pages/aula-digital/index" */))
const _dc41f718 = () => interopDefault(import('../src/pages/example.vue' /* webpackChunkName: "pages/example" */))
const _55c9020c = () => interopDefault(import('../src/pages/participa/index.vue' /* webpackChunkName: "pages/participa/index" */))
const _2dd06d78 = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/index" */))
const _b70cefac = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/index" */))
const _79c56a8c = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/_name_post/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/_name_post/index" */))
const _785c4748 = () => interopDefault(import('../src/pages/index.vue' /* webpackChunkName: "pages/index" */))
const _4c910d7b = () => interopDefault(import('../src/pages/_page/index.vue' /* webpackChunkName: "pages/_page/index" */))
const _b7a57faa = () => interopDefault(import('../src/pages/_page/_post/index.vue' /* webpackChunkName: "pages/_page/_post/index" */))
const _d2b02f7e = () => interopDefault(import('../src/pages/api.vue' /* webpackChunkName: "pages/api" */))
const _2c80d2a0 = () => interopDefault(import('../src/pages/aula-digital/index.vue' /* webpackChunkName: "pages/aula-digital/index" */))
const _0eb778bb = () => interopDefault(import('../src/pages/contacto/index.vue' /* webpackChunkName: "pages/contacto/index" */))
const _4b827811 = () => interopDefault(import('../src/pages/example.vue' /* webpackChunkName: "pages/example" */))
const _30d7f4d2 = () => interopDefault(import('../src/pages/participa/index.vue' /* webpackChunkName: "pages/participa/index" */))
const _6f9a67be = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/index" */))
const _454f5172 = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/index" */))
const _065b2d52 = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/_name_post/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/_name_post/index" */))
const _97f0d98e = () => interopDefault(import('../src/pages/index.vue' /* webpackChunkName: "pages/index" */))
const _4c312ad0 = () => interopDefault(import('../src/pages/_page/index.vue' /* webpackChunkName: "pages/_page/index" */))
const _0ac2d8f0 = () => interopDefault(import('../src/pages/_page/_post/index.vue' /* webpackChunkName: "pages/_page/_post/index" */))
Vue.use(Router)
......@@ -72,83 +73,91 @@ export function createRouter() {
routes: [{
path: "/en/api",
component: _65a81e24,
component: _d2b02f7e,
name: "api___en"
}, {
path: "/api",
component: _65a81e24,
component: _d2b02f7e,
name: "api___es"
}, {
path: "/en/aula-digital",
component: _96708b46,
component: _2c80d2a0,
name: "aula-digital___en"
}, {
path: "/aula-digital",
component: _96708b46,
component: _2c80d2a0,
name: "aula-digital___es"
}, {
path: "/en/contacto",
component: _0eb778bb,
name: "contacto___en"
}, {
path: "/contacto",
component: _0eb778bb,
name: "contacto___es"
}, {
path: "/en/example",
component: _dc41f718,
component: _4b827811,
name: "example___en"
}, {
path: "/example",
component: _dc41f718,
component: _4b827811,
name: "example___es"
}, {
path: "/en/participa",
component: _55c9020c,
component: _30d7f4d2,
name: "participa___en"
}, {
path: "/participa",
component: _55c9020c,
component: _30d7f4d2,
name: "participa___es"
}, {
path: "/en/participa/:id_forum/:name_forum?",
component: _2dd06d78,
component: _6f9a67be,
name: "participa-id_forum-name_forum___en"
}, {
path: "/participa/:id_forum/:name_forum?",
component: _2dd06d78,
component: _6f9a67be,
name: "participa-id_forum-name_forum___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/:name_topic?",
component: _b70cefac,
component: _454f5172,
name: "participa-id_forum-name_forum-id_topic-name_topic___en"
}, {
path: "/participa/:id_forum/:name_forum?/:id_topic/:name_topic?",
component: _b70cefac,
component: _454f5172,
name: "participa-id_forum-name_forum-id_topic-name_topic___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/:name_topic?/:id_post/:name_post?",
component: _79c56a8c,
component: _065b2d52,
name: "participa-id_forum-name_forum-id_topic-name_topic-id_post-name_post___en"
}, {
path: "/participa/:id_forum/:name_forum?/:id_topic/:name_topic?/:id_post/:name_post?",
component: _79c56a8c,
component: _065b2d52,
name: "participa-id_forum-name_forum-id_topic-name_topic-id_post-name_post___es"
}, {
path: "/en/",
component: _785c4748,
component: _97f0d98e,
name: "index___en"
}, {
path: "/",
component: _785c4748,
component: _97f0d98e,
name: "index___es"
}, {
path: "/en/:page",
component: _4c910d7b,
component: _4c312ad0,
name: "page___en"
}, {
path: "/:page",
component: _4c910d7b,
component: _4c312ad0,
name: "page___es"
}, {
path: "/en/:page/:post",
component: _b7a57faa,
component: _0ac2d8f0,
name: "page-post___en"
}, {
path: "/:page/:post",
component: _b7a57faa,
component: _0ac2d8f0,
name: "page-post___es"
}],
......
......@@ -129,7 +129,7 @@ export async function setContext(app, context) {
payload: context.payload,
error: context.error,
base: '/',
env: {"baseUrl":"http://localhost:4000","wpApi":"http://172.29.1.4/wp/index.php?rest_route=/wp/v2/","entidad":{"nombre":"Bolivia Digital 2025"}}
env: {"baseUrl":"http://localhost:4000","wpApi":"http://localhost/wordpress/index.php?rest_route=/wp/v2/","foro":"http://localhost/wordpress/index.php?rest_route=","entidad":{"nombre":"Bolivia Digital 2025"}}
}
// Only set once
if (context.req) app.context.req = context.req
......
......@@ -29,7 +29,8 @@ module.exports = {
*/
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:4000', // URL API externo
wpApi: process.env.WP_API || 'http://172.29.1.4/wp/index.php?rest_route=/wp/v2/', // URL API wordpress,
wpApi: process.env.WP_API || 'http://localhost/wordpress/index.php?rest_route=/wp/v2/', // URL API wordpress,
foro: 'http://localhost/wordpress/index.php?rest_route=', // URL API wordpress foro,
entidad: {
nombre: 'Bolivia Digital 2025'
}
......
......@@ -46,7 +46,8 @@ export default {
url: 'https://www.youtube.com/channel/UCEJbZkvWhboLhVBSqC_XOoQ',
active: true
},
{
//Esto no estaba comentado
/*{
label: 'record',
icon: 'icon-record',
active: true
......@@ -60,7 +61,7 @@ export default {
label: 'phone',
icon: 'icon-phone',
active: true
},
},*/
{
label: 'link',
icon: 'icon-link',
......
......@@ -6,11 +6,12 @@
class="row-bg relative"
justify="space-between">
<div>
<div class="divider ml-0"></div>
<!-- Esto no estaba comentado -->
<!--<div class="divider ml-0"></div>
<nuxt-link :to="$i18n.path('contacto')">
{{ $t('contact.title') }}
</nuxt-link>
<div class="divider"></div>
<div class="divider"></div>-->
</div>
<div class="app-footer-servicio">
<b-servicio></b-servicio>
......
......@@ -59,6 +59,7 @@
</li>
</ul>
</li>
<div class="divider"></div>
<li
class="app-menu__item">
<a href="/participa">Participa</a>
......@@ -87,7 +88,7 @@
<app-lang></app-lang>
<!-- login/logout user -->
<div class="divider"></div>
<!--<div class="divider"></div>
<div class="app-header__options">
<el-dropdown
v-if="$store.state.authUser">
......@@ -112,10 +113,10 @@
@click="login"
v-else
>{{ $t('header.login') }}</el-button>
</div>
</div>-->
<!-- button search -->
<div class="divider"></div>
<!--<div class="divider"></div>
<div class="app-header__search">
<el-button
type="text"
......@@ -125,7 +126,7 @@
<span class="app-header__search-text">Buscar</span>
</el-button>
</div>
</div>-->
</div>
</transition>
<el-button
......
......@@ -2,9 +2,13 @@
<nuxt-link
class="app-logo-link"
:to="$i18n.path('')">
<img
<!--<img
class="app-logo-img"
src="~assets/images/bolivia-digital-2025.png"
alt="Bolivia">-->
<img
class="app-logo-img"
src="~assets/images/agetic-logo.png"
alt="Bolivia">
<div class="app-logo">
<div class="app-logo-title">Agetic</div>
......
......@@ -105,7 +105,7 @@ export default {
},
methods: {
getTopics() {
axios.get('http://172.29.1.4/wp/index.php?rest_route=/fm/v1/')
axios.get('http://localhost/wordpress/index.php?rest_route=/fm/v1/')
.then(response => {
this.forums = response.data;
console.log('ffs');
......
<template>
<section
class="container page">
<div class="page-header">
<div
class="page-img-main"
:style="{ 'background-image': `url(`+forum.img_dest+`)` }"></div>
<div class="page-title">
<h1 v-html=" post_title "></h1>
<div class="page-title-details">
<nuxt-link
:to="$i18n.path(`participa/`)">
Contacto
</nuxt-link>
</div>
</div>
</div>
<div
class="page-content">
<h3>Dirección</h3>
<p>Sopocachi, Calle Pedro Salazar Nº 631, esq. Andrés Muñoz.</p>
<p> Edificio del Fondo Nacional de Desarrollo Regional (FNDR). Pisos 4 y 5 </p>
<h3>Teléfono</h3>
<p>(+591 -2) 2128706 - (+591 -2) 2128707</p>
<p>La Paz - Bolivia</p>
<h3>Contacto</h3>
<p>contacto@agetic.gob.bo</p>
<h2>Formulario de contacto</h2>
<span class="demo-input-label">Nombre:</span>
<el-input
placeholder="Escribe tu nombre"
v-model="nombre"></el-input>
<span class="demo-input-label">Email (no será publicado)(requerido):</span>
<el-input
placeholder="Escribe tu correo electrónico"
v-model="correo"></el-input>
<span class="demo-input-label">Mensaje</span>
<el-input
type="textarea"
:autosize="{ minRows: 4, maxRows: 8}"
placeholder="Escribenos tu comentario ..."
v-model="contenido">
</el-input>
<el-row
type="flex"
class="row-bg"
justify="center">
<el-button
@click="sendReplie"
type="info"
class="btn_nuevo_debate">Enviar</el-button>
</el-row>
</div>
</section>
</template>
<script>
import axios from 'axios';
export default {
head () {
return {
title: this.post_title
};
},
data() {
return {
forum: [],
id_publicacion:'',
nombre: '',
correo: '',
titulo: '',
contenido: '',
page_tit: '',
post_title: '',
post_nombre: '',
post_body: '',
post_fecha_publicacion: '',
foro_nombre: '',
categoria_nombre: ''
};
},
mounted () {
this.$store.commit('CLOSE_MENU');
this.$util.setBackgroundImage();
this.getTopic();
},
methods: {
getTopic() {
axios.get('http://localhost/wordpress/index.php?rest_route=/getPost/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic+'/'+this.$route.params.id_post)
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_tit = this.forum.topics[this.$route.params.id_topic].name;
this.post_title = this.forum.topics[this.$route.params.id_topic].posts[this.$route.params.id_post].title;
this.post_nombre = this.forum.topics[this.$route.params.id_topic].posts[this.$route.params.id_post].nombre;
this.post_body = this.forum.topics[this.$route.params.id_topic].posts[this.$route.params.id_post].body;
this.post_fecha_publicacion = this.forum.topics[this.$route.params.id_topic].posts[this.$route.params.id_post].fecha_publicacion;
this.foro_nombre = this.forum.name;
this.categoria_nombre = this.forum.topics[this.$route.params.id_topic].name;
//console.log(response.data); // ex.: { user: 'Your User'}
console.log(response.status); // ex.: 200
});
},
sendReplie() {
this.params = {
id_publicacion: this.$route.params.id_post,
nombre: this.nombre,
correo: this.correo,
post_title: this.titulo,
the_content: this.contenido
};
axios.post('http://localhost/wordpress/index.php?rest_route=/addTopicPost/v1/', this.params)
.then(response => {
/*this.replies = response.data;
console.log("metodo post "+this.replies);*/
console.log("metodo post "+response.data);
console.log(response.status); // ex.: 200
this.getTopic();
this.nombre = "";
this.correo = "";
this.titulo = "";
this.contenido = "";
});
}
}
};
</script>
<style lang="scss" src="./page.scss"></style>
<style lang="scss">
.publicacion
{
background: #ffffff;
padding-left: 25px;
padding-bottom: 15px;
border-bottom:1px solid #e8e8e8;
display: block;
margin-top: -25px;
margin-left: -25px;
margin-right: -25px;
}
.demo-input-label {
display: inline-block;
/*width: 130px;*/
}
.btn_nuevo_debate
{
margin-top:20px;
}
.respuesta{
border-top:1px solid #e8e8e8;
border-bottom:1px solid #e8e8e8;
}
.separador_post
{
display: block !important;
margin-top: 0.5em !important;
margin-bottom: 0.5em !important;
margin-left: auto !important;
margin-right: auto !important;
border-style: inset !important;
border-width: 1px !important;
border-top: 1px solid #e8e8e8 !important;
}
.subtitle
{
background: #024f9b;
color:#fff;
margin-left: -25px;
margin-right: -25px;
padding-top: 15px;
padding-right: 25px;
padding-bottom: 15px;
padding-left: 25px;
text-align: left;
}
</style>
\ No newline at end of file
@import '~/assets/scss/_variables.scss';
.page {
padding-bottom: 50px;
.el-card {
border-radius: 0;
}
.post {
height: 400px;
position: relative;
}
.post-details {
position: absolute;
bottom: 0;
right: 0;
left: 0;
color: $colorMenu;
text-transform: uppercase;
background: linear-gradient(0, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
padding: 25px 15px 12px 15px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.post-image {
background-size: cover;
width: 100%;
height: 400px;
background-position: center;
background-color: #323232;
background-repeat: no-repeat;
}
.post-type {
position: absolute;
top: 0;
left: 0;
padding: 10px 12px;
background-color: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
color: white;
font-weight: 300;
}
}
.page-header {
margin-top: 30px;
position: relative;
}
.page-img-main {
height: 400px;
background-size: cover;
background-position: center;
}
.page-title {
color: $colorMenu;
padding: 15px 0 20px;
h1 {
font-weight: 300;
margin: 0;
}
}
.page-img-main + .page-title {
padding: 40px 15px 15px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(0, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}
.page-title-details {
font-style: italic;
color: lighten($warning, 20%);
font-size: .8rem;
margin-top: 5px;
a {
color: lighten($warning, 20%);
font-size: .8rem;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
.page-content {
border-top: 2px solid white;
background-color: rgba(255, 255, 255, .85);
padding: 25px;
font-size: 1.1rem;
line-height: 1.6rem;
hr {
border: none;
border-top: 1px solid $colorMenu;
margin: 0 0 15px 0;
}
h2 {
font-weight: 300;
margin: 0 0 15px;
}
p {
margin: 0 0 15px;
}
a {
color: $primary;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
iframe {
max-width: 100%;
}
figure {
margin: 10px;
}
.wp-block-image {
margin: 10px;
img {
max-width: 100%;
height: auto;
}
}
.aligncenter {
text-align: center;
}
.alignright {
text-align: right;
}
.alignleft {
text-align: left;
}
}
@media (max-width: 768px) {
.page {
.post, .post-image {
height: 200px;
}
.page-content {
figure,
.wp-block-image {
margin: 10px 0;
}
}
.page-img-main {
height: 300px;
}
.page-title {
h1 {
font-size: 1.5rem;
}
}
}
}
@media (min-width: 768px) {
.page {
.post, .post-image {
height: 250px;
}
}
}
@media (min-width: 992px) {
.page {
.post, .post-image {
height: 320px;
}
}
}
@media (min-width: 1200px) {
.page {
.post, .post-image {
height: 400px;
}
}
}
\ No newline at end of file
......@@ -21,7 +21,7 @@
:to="$i18n.path(`participa/`+$route.params.id_forum+`/`+$route.params.name_forum)">
{{ categoria_nombre }}
</nuxt-link> /
Publicado el <span>{{ post_fecha_publicacion }}</span>
Publicado el <span>{{ $datetime.format(post_fecha_publicacion, 'dd de MMM del YYYY Hrs. HH:mm') }}</span>
</div>
</div>
</div>
......@@ -117,7 +117,7 @@ export default {
},
methods: {
getTopic() {
axios.get('http://172.29.1.4/wp/index.php?rest_route=/getPost/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic+'/'+this.$route.params.id_post)
axios.get('http://localhost/wordpress/index.php?rest_route=/getPost/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic+'/'+this.$route.params.id_post)
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_tit = this.forum.topics[this.$route.params.id_topic].name;
......@@ -142,7 +142,7 @@ export default {
post_title: this.titulo,
the_content: this.contenido
};
axios.post('http://172.29.1.4/wp/index.php?rest_route=/addTopicPost/v1/', this.params)
axios.post('http://localhost/wordpress/index.php?rest_route=/addTopicPost/v1/', this.params)
.then(response => {
/*this.replies = response.data;
console.log("metodo post "+this.replies);*/
......
......@@ -22,8 +22,7 @@
<nuxt-link
:to="$i18n.path(`participa/`+$route.params.id_forum+`/`+$route.params.name_forum)">
{{ forum.name }}
</nuxt-link> /
Publicado el <span>03 de Abril del 2019 Hrs. 15:03</span>
</nuxt-link>
</div>
</div>
</div>
......@@ -127,7 +126,7 @@ export default {
},
methods: {
getTopics() {