|
|
@@ -380,57 +380,59 @@
|
|
|
|
|
|
// const resp = await axios.get('https://blog.gemeinschaffen.com/wp-json/wp/v2/tags');
|
|
|
|
|
|
- axios.get('https://blog.gemeinschaffen.com/wp-json/wp/v2/tags').then(resp => {
|
|
|
- console.log(resp.data);
|
|
|
- var q = jsonQuery('[*slug=gemeinschaffen]', {
|
|
|
- data: resp.data
|
|
|
- });
|
|
|
+ axios.get('https://blog.gemeinschaffen.com/wp-json/wp/v2/tags').then(resp => {
|
|
|
+ console.log(resp.data);
|
|
|
+ var q = jsonQuery('[*slug=gemeinschaffen]', {
|
|
|
+ data: resp.data
|
|
|
+ });
|
|
|
|
|
|
- posturl = "https://blog.gemeinschaffen.com/wp-json/wp/v2/posts?tags=" + q.value[0].id;
|
|
|
+ posturl = "https://blog.gemeinschaffen.com/wp-json/wp/v2/posts?tags=" + q.value[0].id;
|
|
|
|
|
|
- axios.get(posturl).then(resp => {
|
|
|
+ axios.get(posturl).then(resp => {
|
|
|
|
|
|
- function myFunction(value, index, array) {
|
|
|
- console.log( value.link );
|
|
|
- }
|
|
|
+ function myFunction(value, index, array) {
|
|
|
+ console.log( value.link );
|
|
|
+ }
|
|
|
|
|
|
- resp.data.forEach(myFunction);
|
|
|
+ resp.data.forEach(myFunction);
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
|
+ // const TodoList = {
|
|
|
+ // data() {
|
|
|
+ // return {
|
|
|
+ // groceryList: [
|
|
|
+ // { id: 0, text: 'Vegetables' },
|
|
|
+ // { id: 1, text: 'Cheese' },
|
|
|
+ // { id: 2, text: 'Whatever else humans are supposed to eat' }
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // const app = Vue.createApp(TodoList)
|
|
|
+ //
|
|
|
+ // app.component('todo-item', {
|
|
|
+ // props: ['todo'],
|
|
|
+ // template: `<li>{{ todo.text }}</li>`
|
|
|
+ // })
|
|
|
+ //
|
|
|
+ // app.mount('#todo-list-app')
|
|
|
|
|
|
</script>
|
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
|
|
- // const TodoList = {
|
|
|
- // data() {
|
|
|
- // return {
|
|
|
- // groceryList: [
|
|
|
- // { id: 0, text: 'Vegetables' },
|
|
|
- // { id: 1, text: 'Cheese' },
|
|
|
- // { id: 2, text: 'Whatever else humans are supposed to eat' }
|
|
|
- // ]
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- //
|
|
|
- // const app = Vue.createApp(TodoList)
|
|
|
- //
|
|
|
- // app.component('todo-item', {
|
|
|
- // props: ['todo'],
|
|
|
- // template: `<li>{{ todo.text }}</li>`
|
|
|
- // })
|
|
|
- //
|
|
|
- // app.mount('#todo-list-app')
|
|
|
|
|
|
|
|
|
-</script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
{% endblock %}
|