36 lines
608 B
Vue
36 lines
608 B
Vue
<template>
|
|
<div>
|
|
<pre>
|
|
{{events}}
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import {useICalReader} from '@/utils/universal_functions'
|
|
import { baseURL, axiosApiInstance } from '@/utils/axios-api'
|
|
import { ref } from 'vue';
|
|
|
|
const burl = baseURL.slice(0,-1)
|
|
|
|
export default {
|
|
setup() {
|
|
const { events } = useICalReader(`${burl}/media/ical/calendar.ics`)
|
|
|
|
return {
|
|
events
|
|
}
|
|
// const { icsContent, fetchICalFile } = useICalReader(`${burl}/media/ical/calendar.ics`)
|
|
|
|
// return {
|
|
// icsContent, fetchICalFile
|
|
// }
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style> |