Browse Source

add img

master
skrabanek 3 years ago
parent
commit
67d0facb42
  1. 1
      .gitignore
  2. BIN
      vue-json/src/assets/img/image_01.jpg
  3. BIN
      vue-json/src/assets/img/image_02.jpg
  4. BIN
      vue-json/src/assets/img/image_03.jpg
  5. BIN
      vue-json/src/assets/img/image_04.jpg
  6. BIN
      vue-json/src/assets/img/image_05.jpg
  7. BIN
      vue-json/src/assets/img/image_06.jpg
  8. BIN
      vue-json/src/assets/img/image_07.jpg
  9. BIN
      vue-json/src/assets/img/image_08.jpg
  10. BIN
      vue-json/src/assets/img/image_09.jpg
  11. BIN
      vue-json/src/assets/img/image_10.jpg
  12. BIN
      vue-json/src/assets/img/image_11.jpg
  13. BIN
      vue-json/src/assets/img/image_12.jpg
  14. BIN
      vue-json/src/assets/img/image_13.jpg
  15. BIN
      vue-json/src/assets/img/image_14.jpg
  16. BIN
      vue-json/src/assets/img/image_15.jpg
  17. BIN
      vue-json/src/assets/img/image_16.jpg
  18. BIN
      vue-json/src/assets/img/image_17.jpg
  19. BIN
      vue-json/src/assets/img/image_18.jpg
  20. BIN
      vue-json/src/assets/img/image_19.jpg
  21. BIN
      vue-json/src/assets/img/image_20.jpg
  22. BIN
      vue-json/src/assets/img/image_21.jpg
  23. BIN
      vue-json/src/assets/img/image_22.jpg
  24. BIN
      vue-json/src/assets/img/image_23.jpg
  25. BIN
      vue-json/src/assets/img/image_24.jpg
  26. BIN
      vue-json/src/assets/img/image_25.jpg
  27. BIN
      vue-json/src/assets/img/image_26.jpg
  28. BIN
      vue-json/src/assets/img/image_27.jpg
  29. BIN
      vue-json/src/assets/img/image_28.jpg
  30. BIN
      vue-json/src/assets/img/image_29.jpg
  31. BIN
      vue-json/src/assets/img/image_30.jpg
  32. BIN
      vue-json/src/assets/img/image_31.jpg
  33. BIN
      vue-json/src/assets/img/image_32.jpg
  34. BIN
      vue-json/src/assets/img/image_33.jpg
  35. BIN
      vue-json/src/assets/img/image_34.jpg
  36. BIN
      vue-json/src/assets/img/image_35.jpg
  37. BIN
      vue-json/src/assets/img/image_36.jpg
  38. BIN
      vue-json/src/assets/img/image_37.jpg
  39. BIN
      vue-json/src/assets/img/image_38.jpg
  40. BIN
      vue-json/src/assets/img/image_39.jpg
  41. BIN
      vue-json/src/assets/img/image_40.jpg
  42. BIN
      vue-json/src/assets/img/image_41.jpg
  43. BIN
      vue-json/src/assets/img/image_42.jpg
  44. 54
      vue-json/src/assets/jsondata.json
  45. 19
      vue-json/src/components/jsonview.vue

1
.gitignore

@ -171,3 +171,4 @@ npm-debug.log
yarn-error.log
# End of https://www.toptal.com/developers/gitignore/api/vuejs,node,visualstudiocode
vuejs-json.rar

BIN
vue-json/src/assets/img/image_01.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
vue-json/src/assets/img/image_02.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
vue-json/src/assets/img/image_03.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
vue-json/src/assets/img/image_04.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
vue-json/src/assets/img/image_05.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
vue-json/src/assets/img/image_06.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
vue-json/src/assets/img/image_07.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
vue-json/src/assets/img/image_08.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
vue-json/src/assets/img/image_09.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
vue-json/src/assets/img/image_10.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
vue-json/src/assets/img/image_11.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
vue-json/src/assets/img/image_12.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

BIN
vue-json/src/assets/img/image_13.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

BIN
vue-json/src/assets/img/image_14.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

BIN
vue-json/src/assets/img/image_15.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

BIN
vue-json/src/assets/img/image_16.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

BIN
vue-json/src/assets/img/image_17.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

BIN
vue-json/src/assets/img/image_18.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
vue-json/src/assets/img/image_19.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
vue-json/src/assets/img/image_20.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
vue-json/src/assets/img/image_21.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
vue-json/src/assets/img/image_22.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
vue-json/src/assets/img/image_23.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
vue-json/src/assets/img/image_24.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
vue-json/src/assets/img/image_25.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

BIN
vue-json/src/assets/img/image_26.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
vue-json/src/assets/img/image_27.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
vue-json/src/assets/img/image_28.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

BIN
vue-json/src/assets/img/image_29.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
vue-json/src/assets/img/image_30.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
vue-json/src/assets/img/image_31.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
vue-json/src/assets/img/image_32.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
vue-json/src/assets/img/image_33.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
vue-json/src/assets/img/image_34.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
vue-json/src/assets/img/image_35.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
vue-json/src/assets/img/image_36.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

BIN
vue-json/src/assets/img/image_37.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
vue-json/src/assets/img/image_38.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
vue-json/src/assets/img/image_39.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

BIN
vue-json/src/assets/img/image_40.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
vue-json/src/assets/img/image_41.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
vue-json/src/assets/img/image_42.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

54
vue-json/src/assets/jsondata.json

@ -2,72 +2,80 @@
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"1. 3. 2022"
"date": "9. 3. 2022",
"img": "image_01.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"2. 3. 2022"
},
{
"title":"Nadpis1",
"content": "Obsah1 ",
"date":"3. 3. 2022"
"date":"10. 3. 2022",
"img": "image_02.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"4. 3. 2022"
"date":"11. 3. 2022",
"img": "image_03.jpg"
},
{
"title":"NadpisA",
"content": "ObsahA",
"date":"5. 3. 2022"
"title":"Nadpis2",
"content": "Obsah2",
"date":"12. 3. 2022",
"img": "image_04.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"6. 3. 2022"
"date":"13. 3. 2022",
"img": "image_05.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"7. 3. 2022"
"date":"14. 3. 2022",
"img": "image_06.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"8. 3. 2022"
"date":"15. 3. 2022",
"img": "image_07.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"9. 3. 2022"
"date":"16. 3. 2022",
"img": "image_08.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah nebude psan",
"date":"10. 3. 2022"
"content": "Obsah2",
"date":"21. 3. 2022",
"img": "image_09.jpg"
},
{
"title":"Olejovita skvrna",
"content": "Obsah se bude měnit",
"date":"11. 3. 2022"
"title":"Nadpis2",
"content": "Obsah2",
"date":"22. 3. 2022",
"img": "image_10.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"12. 3. 2022"
"date":"23. 3. 2022",
"img": "image_11.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"13. 3. 2022"
"date":"24. 3. 2022",
"img": "image_12.jpg"
},
{
"title":"Nadpis2",
"content": "Obsah2",
"date":"14. 3. 2022"
"date":"25. 3. 2022",
"img": "image_13.jpg"
}
]

19
vue-json/src/components/jsonview.vue

@ -2,17 +2,18 @@
<div>
<!-- jsonhead -> hlavička pro navigaci a změnu datumu -->
<div id="jsonhead">
<h2>JSON</h2>
<h1>JSON</h1>
<p>Použi navigační tlačítka pro změnu datumu</p>
<button @click="increment()">+</button>
<button @click="resetdate()">RESET</button>
<button @click="decrement()">-</button>
<button class="navigace" @click="increment()">+</button>
<button class="navigace" @click="resetdate()">RESET</button>
<button class="navigace" @click="decrement()">-</button>
</div>
<!-- jsonmain -> div pro zobrazeni hlavní části-->
<div id="jsonmain">
<h4 v-for="data1 in selectDatum(selectDate(date,numberino))" :key="data1.date">
<b>{{data1.title}}</b> - {{data1.content}} - <i>{{data1.date}}</i>
</h4>
<div v-for="data1 in selectDatum(selectDate(date,numberino))" :key="data1.date">
<b>{{data1.title}}</b> - {{data1.content}} - <i>{{data1.date}}</i> <br>
<img :src="getImgUrl(data1.img)" v-bind:alt="data1.img">
</div>
</div>
<!-- DEBUG SEKCE -->
@ -37,6 +38,7 @@
<!-- h2 -> vypisování formátovaného JSON pro zpracovávání -->
<h2 v-for="data in todayData()" :key="data.date">
<b>{{data.title}}</b> - {{data.content}} - <i>{{data.date}}</i>
</h2>
<!-- Vypisování neformátovaných JSON dat na dynamicky měněný datum -->
@ -77,6 +79,9 @@ export default {
return this.jsondata.filter(
jsondata => jsondata.date == datum);
},
getImgUrl(pic) {
return require('../assets/img/'+pic);
},
increment(){

Loading…
Cancel
Save