diff --git a/pages/events/pycast.vue b/pages/events/pycast.vue new file mode 100644 index 0000000000..68f6777cf2 --- /dev/null +++ b/pages/events/pycast.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/store/index.js b/store/index.js index ec2aca75a8..e6be31c95f 100644 --- a/store/index.js +++ b/store/index.js @@ -8,6 +8,7 @@ export const state = () => ({ youtubeInfo: [], speechesData: [], speechData: {}, + pycastData: [], }) export const mutations = { @@ -18,6 +19,7 @@ export const mutations = { setYoutubeInfo: set('youtubeInfo'), setSpeechesData: set('speechesData'), setSpeechData: set('speechData'), + setPycastData: set('pycastData'), } export const actions = { @@ -62,4 +64,8 @@ export const actions = { const speechData = await this.$http.$get(endpoint) commit('setSpeechData', speechData) }, + async $getPycastData({ commit }) { + const pycastList = await this.$http.$get('/api/events/pycast/') + commit('setPycastData', pycastList) + }, }