Commit 5376efaf authored by Bill's avatar Bill
Browse files

Update

parent 1019f00b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import TabView from "./components/TabView.vue";
import RealtimeMap from './components/RealtimeMap.vue'
import WeatherSpan from './components/weather-span.vue'
import BusChartVue from './components/BusChartVue.vue'
// import AdsenseUnit from './components/adsense-inline-article.vue'
import CanteenTraffic from './components/CanteenTraffic.vue'

export default defineClientConfig({
  enhance({ app }) {
@@ -13,6 +13,6 @@ export default defineClientConfig({
    app.component("RealtimeMap", RealtimeMap)
    app.component("WeatherSpan", WeatherSpan)
    app.component("BusChartVue", BusChartVue)
    // app.component("AdsenseUnit", AdsenseUnit)
    add.component("CanteenTraffic", CanteenTraffic)
  },
})
+29 −0
Original line number Diff line number Diff line
<template>
  <div id="weather-container">
    <span id="weather">{{ text }}</span>
  </div>
</template>


<script>
import axios from 'axios';

export default {
  name: "CanteenTraffic",
  data: () => ({
    text: ""
  }),
  mounted() {
    this.load_weather();
  },

  methods: {
    load_weather() {
      axios.get("https://api.sustech.online/weather")
          .then((res) => {
            this.text = res.data.msg;
          })
    },
  },
};
</script>
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@
    <li><a href="http://live.cra.moe/">校园风景直播</a></li>
    </ul>
    </th>
    <th class="tg-0lax">
    <h3><a href="./susteen/">饭堂<svg aria-hidden="true" x="0px" y="0px" width="15" height="15" class="icon outbound"><use href="#link-icon" /></svg></a></h3>
    </th>
  </tr>
</thead>
</table>

docs/susteen/README.md

0 → 100644
+6 −0
Original line number Diff line number Diff line
# ☕️饭堂服务

## 食堂实时排队人数
<ClientOnly>
  <CanteenTraffic></CanteenTraffic>
</ClientOnly>
 No newline at end of file