Speiseplan der Mensen der Georg-August-Universität Göttingen https://mensa.schneider-hosting.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
634 B

7 years ago
7 years ago
7 years ago
  1. <template>
  2. <div class="hello">
  3. <p>
  4. {{ $route.fullPath }}
  5. </p>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'mensa',
  11. data () {
  12. return {
  13. meals: []
  14. }
  15. },
  16. created () {
  17. fetch(`/static/${this.$route.params.mensa}.${this.$route.params.tag}.json`)
  18. .then(res => res.json())
  19. .then(menu => {this.meals = menu.meals})
  20. }
  21. }
  22. </script>
  23. <!-- Add "scoped" attribute to limit CSS to this component only -->
  24. <style scoped>
  25. h1, h2 {
  26. font-weight: normal;
  27. }
  28. ul {
  29. list-style-type: none;
  30. padding: 0;
  31. }
  32. li {
  33. display: inline-block;
  34. margin: 0 10px;
  35. }
  36. a {
  37. color: #42b983;
  38. }
  39. </style>