Commit ff66554b authored by Esteban Choque's avatar Esteban Choque

Se cambiaron las url locales

parent 94c589f7
......@@ -12,10 +12,10 @@ import { createStore } from './store.js'
/* Plugins */
import nuxt_plugin_pluginseo_bb17baec from 'nuxt_plugin_pluginseo_bb17baec' // Source: ./nuxt-i18n/plugin.seo.js
import nuxt_plugin_pluginrouting_2c039cfe from 'nuxt_plugin_pluginrouting_2c039cfe' // Source: ./nuxt-i18n/plugin.routing.js
import nuxt_plugin_pluginmain_679f118e from 'nuxt_plugin_pluginmain_679f118e' // Source: ./nuxt-i18n/plugin.main.js
import nuxt_plugin_axios_b57579b6 from 'nuxt_plugin_axios_b57579b6' // Source: ./axios.js
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_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_bb17baec === 'function') await nuxt_plugin_pluginseo_bb17baec(app.context, inject)
if (typeof nuxt_plugin_pluginrouting_2c039cfe === 'function') await nuxt_plugin_pluginrouting_2c039cfe(app.context, inject)
if (typeof nuxt_plugin_pluginmain_679f118e === 'function') await nuxt_plugin_pluginmain_679f118e(app.context, inject)
if (typeof nuxt_plugin_axios_b57579b6 === 'function') await nuxt_plugin_axios_b57579b6(app.context, inject)
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_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,20 +2,16 @@ import Vue from 'vue'
import Router from 'vue-router'
import { interopDefault } from './utils'
const _7e35a645 = () => interopDefault(import('../src/pages/api.vue' /* webpackChunkName: "pages/api" */))
const _6246cc1c = () => interopDefault(import('../src/pages/aula-digital/index.vue' /* webpackChunkName: "pages/aula-digital/index" */))
const _1a399415 = () => interopDefault(import('../src/pages/example.vue' /* webpackChunkName: "pages/example" */))
const _46fe44ca = () => interopDefault(import('../src/pages/participa/index.vue' /* webpackChunkName: "pages/participa/index" */))
const _4599c98e = () => interopDefault(import('../src/pages/participa/nuevo-debate.vue' /* webpackChunkName: "pages/participa/nuevo-debate" */))
const _dcfdc180 = () => interopDefault(import('../src/pages/participa/_id_forum/indexx.vue' /* webpackChunkName: "pages/participa/_id_forum/indexx" */))
const _06340925 = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/index.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/index" */))
const _7da204a8 = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/indexx.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/indexx" */))
const _2ee4394b = () => 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 _7eeac92e = () => interopDefault(import('../src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/indexx.vue' /* webpackChunkName: "pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/_id_post/indexx" */))
const _55fd215b = () => 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 _21c43f86 = () => interopDefault(import('../src/pages/index.vue' /* webpackChunkName: "pages/index" */))
const _002e36c8 = () => interopDefault(import('../src/pages/_page/index.vue' /* webpackChunkName: "pages/_page/index" */))
const _67b57a8c = () => interopDefault(import('../src/pages/_page/_post/index.vue' /* webpackChunkName: "pages/_page/_post/index" */))
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" */))
Vue.use(Router)
......@@ -76,115 +72,83 @@ export function createRouter() {
routes: [{
path: "/en/api",
component: _7e35a645,
component: _65a81e24,
name: "api___en"
}, {
path: "/api",
component: _7e35a645,
component: _65a81e24,
name: "api___es"
}, {
path: "/en/aula-digital",
component: _6246cc1c,
component: _96708b46,
name: "aula-digital___en"
}, {
path: "/aula-digital",
component: _6246cc1c,
component: _96708b46,
name: "aula-digital___es"
}, {
path: "/en/example",
component: _1a399415,
component: _dc41f718,
name: "example___en"
}, {
path: "/example",
component: _1a399415,
component: _dc41f718,
name: "example___es"
}, {
path: "/en/participa",
component: _46fe44ca,
component: _55c9020c,
name: "participa___en"
}, {
path: "/participa",
component: _46fe44ca,
component: _55c9020c,
name: "participa___es"
}, {
path: "/en/participa/nuevo-debate",
component: _4599c98e,
name: "participa-nuevo-debate___en"
}, {
path: "/participa/nuevo-debate",
component: _4599c98e,
name: "participa-nuevo-debate___es"
}, {
path: "/en/participa/:id_forum/indexx",
component: _dcfdc180,
name: "participa-id_forum-indexx___en"
}, {
path: "/participa/:id_forum/indexx",
component: _dcfdc180,
name: "participa-id_forum-indexx___es"
}, {
path: "/en/participa/:id_forum/:name_forum?",
component: _06340925,
component: _2dd06d78,
name: "participa-id_forum-name_forum___en"
}, {
path: "/participa/:id_forum/:name_forum?",
component: _06340925,
component: _2dd06d78,
name: "participa-id_forum-name_forum___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/indexx",
component: _7da204a8,
name: "participa-id_forum-name_forum-id_topic-indexx___en"
}, {
path: "/participa/:id_forum/:name_forum?/:id_topic/indexx",
component: _7da204a8,
name: "participa-id_forum-name_forum-id_topic-indexx___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/:name_topic?",
component: _2ee4394b,
component: _b70cefac,
name: "participa-id_forum-name_forum-id_topic-name_topic___en"
}, {
path: "/participa/:id_forum/:name_forum?/:id_topic/:name_topic?",
component: _2ee4394b,
component: _b70cefac,
name: "participa-id_forum-name_forum-id_topic-name_topic___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/:name_topic?/:id_post/indexx",
component: _7eeac92e,
name: "participa-id_forum-name_forum-id_topic-name_topic-id_post-indexx___en"
}, {
path: "/participa/:id_forum/:name_forum?/:id_topic/:name_topic?/:id_post/indexx",
component: _7eeac92e,
name: "participa-id_forum-name_forum-id_topic-name_topic-id_post-indexx___es"
}, {
path: "/en/participa/:id_forum/:name_forum?/:id_topic/:name_topic?/:id_post/:name_post?",
component: _55fd215b,
component: _79c56a8c,
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: _55fd215b,
component: _79c56a8c,
name: "participa-id_forum-name_forum-id_topic-name_topic-id_post-name_post___es"
}, {
path: "/en/",
component: _21c43f86,
component: _785c4748,
name: "index___en"
}, {
path: "/",
component: _21c43f86,
component: _785c4748,
name: "index___es"
}, {
path: "/en/:page",
component: _002e36c8,
component: _4c910d7b,
name: "page___en"
}, {
path: "/:page",
component: _002e36c8,
component: _4c910d7b,
name: "page___es"
}, {
path: "/en/:page/:post",
component: _67b57a8c,
component: _b7a57faa,
name: "page-post___en"
}, {
path: "/:page/:post",
component: _67b57a8c,
component: _b7a57faa,
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://localhost/wordpress/index.php?rest_route=/wp/v2/","entidad":{"nombre":"Bolivia Digital 2025"}}
env: {"baseUrl":"http://localhost:4000","wpApi":"http://172.29.1.4/wp/index.php?rest_route=/wp/v2/","entidad":{"nombre":"Bolivia Digital 2025"}}
}
// Only set once
if (context.req) app.context.req = context.req
......
......@@ -29,7 +29,7 @@ module.exports = {
*/
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:4000', // URL API externo
wpApi: process.env.WP_API || 'http://localhost/wordpress/index.php?rest_route=/wp/v2/', // URL API wordpress,
wpApi: process.env.WP_API || 'http://172.29.1.4/wp/index.php?rest_route=/wp/v2/', // URL API wordpress,
entidad: {
nombre: 'Bolivia Digital 2025'
}
......
......@@ -105,7 +105,7 @@ export default {
},
methods: {
getTopics() {
axios.get('http://localhost/wordpress/index.php?rest_route=/fm/v1/')
axios.get('http://172.29.1.4/wp/index.php?rest_route=/fm/v1/')
.then(response => {
this.forums = response.data;
console.log('ffs');
......
......@@ -117,7 +117,7 @@ export default {
},
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)
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)
.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://localhost/wordpress/index.php?rest_route=/addTopicPost/v1/', this.params)
axios.post('http://172.29.1.4/wp/index.php?rest_route=/addTopicPost/v1/', this.params)
.then(response => {
/*this.replies = response.data;
console.log("metodo post "+this.replies);*/
......
<template>
<section
class="container page">
<div class="page-header">
<!--<div
class="page-img-main"
:style="{ 'background-image': `url(http://localhost/wordpress/wp-content/uploads/2019/04/Mesa-de-trabajo-1-copia.png)` }"></div>-->
<div class="page-title">
<h1 v-html="'Holaa Estático'"></h1>
</div>
</div>
<h2>slug: {{ $route.params.id_post }}</h2>
<p-box></p-box>
</section>
</template>
<script>
export default {
head () {
return {
title: 'Página de ejemplo'
};
},
data() {
return {
tableData: [{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}]
};
},
mounted () {
this.$store.commit('CLOSE_MENU');
this.$util.setBackgroundImage();
console.log("el id es: "+this.$route.params.id);
},
methods: {
getTopics() {
axios.get('http://localhost/wordpress/index.php?rest_route=/ruta_prueba/v1/')
.then(response => {
this.topics = response.data;
console.log('ffs');
console.log('wtf '+this.topics.data);
//console.log(response.data); // ex.: { user: 'Your User'}
console.log("qq "+this.topics[1].topic);
console.log(response.data[1].post[1]);
console.log(response.data[1].post[2]);
console.log(response.data[1].post[3]);
console.log(response.data[1].post[4]);
console.log(response.data[2].forum);
console.log(response.data[3].forum);
console.log(response.data[4].forum);
console.log(response.data[5].forum);
console.log(response.status); // ex.: 200
});
}
}
};
</script>
<style lang="scss" src="./page.scss"></style>
<style lang="scss">
.topic
{
background-image: url("/_nuxt/src/assets/images/resources/bg-blue.svg");
background-size: cover;
padding-left: 25px;
padding-top: 5px;
padding-bottom: 5px;
color:#fff;
}
.publicacion
{
background: #ffffff;
padding-left: 25px;
padding-top: 15px;
padding-bottom: 15px;
border-bottom:1px solid #e8e8e8;
display: block;
}
.publicacion_last
{
background: #fff;
padding-left: 25px;
padding-top: 15px;
padding-bottom: 15px;
display: block;
}
.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;
}
</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
......@@ -127,7 +127,7 @@ export default {
},
methods: {
getTopics() {
axios.get('http://localhost/wordpress/index.php?rest_route=/topic_posts/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic)
axios.get('http://172.29.1.4/wp/index.php?rest_route=/topic_posts/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic)
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_tit = this.forum.topics[this.$route.params.id_topic].name;
......@@ -210,7 +210,7 @@ export default {
}
/*axios.post('http://localhost/wordpress/index.php?rest_route=/addPublicacion/v1/', this.params)
axios.post('http://172.29.1.4/wp/index.php?rest_route=/addPublicacion/v1/', this.params)
.then(response => {
console.log(response.status); // ex.: 200
this.pagina(1);
......@@ -218,10 +218,10 @@ export default {
this.correo = "";
this.titulo = "";
this.contenido = "";
});*/
});
},
pagina (start) {
axios.get('http://localhost/wordpress/index.php?rest_route=/paginador/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic+'/start='+((start-1)*10))
axios.get('http://172.29.1.4/wp/index.php?rest_route=/paginador/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic+'/start='+((start-1)*10))
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_num_posts = parseInt(this.forum.topics[this.$route.params.id_topic].num_posts);
......
<template>
<section
class="container page">
<div class="page-header">
<!--<div
class="page-img-main"
:style="{ 'background-image': `url(http://localhost/wordpress/wp-content/uploads/2019/04/Mesa-de-trabajo-1-copia.png)` }"></div>-->
<div class="page-title">
<h1 v-html="'Tecnologia Para la Vida Estático'"></h1>
</div>
</div>
<h2>slug: {{ $route.params.id_topic }}</h2>
<h2>slug: {{ $route.params.name_topic }}</h2>
<p-box></p-box>
</section>
</template>
<script>
export default {
head () {
return {
title: 'Página de ejemplo'
};
},
data() {
return {
tableData: [{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}, {
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles'
}]
};
},
mounted () {
this.$store.commit('CLOSE_MENU');
this.$util.setBackgroundImage();
console.log("el id es: "+this.$route.params.id);
},
methods: {
getTopics() {
axios.get('http://localhost/wordpress/index.php?rest_route=/ruta_prueba/v1/')
.then(response => {
this.topics = response.data;
console.log('ffs');
console.log('wtf '+this.topics.data);
//console.log(response.data); // ex.: { user: 'Your User'}
console.log("qq "+this.topics[1].topic);
console.log(response.data[1].post[1]);
console.log(response.data[1].post[2]);
console.log(response.data[1].post[3]);
console.log(response.data[1].post[4]);
console.log(response.data[2].forum);
console.log(response.data[3].forum);
console.log(response.data[4].forum);
console.log(response.data[5].forum);
console.log(response.status); // ex.: 200
});
}
}
};
</script>
<style lang="scss" src="./page.scss"></style>
<style lang="scss">
.topic
{
background-image: url("/_nuxt/src/assets/images/resources/bg-blue.svg");
background-size: cover;
padding-left: 25px;
padding-top: 5px;
padding-bottom: 5px;
color:#fff;
}
.publicacion