Skip to content

Commit

Permalink
readded Live Tutorials
Browse files Browse the repository at this point in the history
Signed-off-by: René <[email protected]>
  • Loading branch information
Snooz82 committed Feb 25, 2024
1 parent 739fe2a commit 8578eb4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dist/css/app.84f5bd58.css → dist/css/app.c3b49191.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/js/app.334d8f8f.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/js/app.54e6b3ad.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "dist/404.html"
},
{
"revision": "66d442ee1692536b2d2e",
"url": "dist/css/app.84f5bd58.css"
"revision": "9886b89dc575ba23fc2b",
"url": "dist/css/app.c3b49191.css"
},
{
"revision": "27679e61bfd27e1093f4bf200900b8e7",
Expand Down Expand Up @@ -188,12 +188,12 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "dist/img/ticket-depth.jpg"
},
{
"revision": "cf07555b342e0ff603661c557c9dc35a",
"revision": "d1eee2d179f876fa0b8300b4feddca22",
"url": "dist/index.html"
},
{
"revision": "66d442ee1692536b2d2e",
"url": "dist/js/app.334d8f8f.js"
"revision": "9886b89dc575ba23fc2b",
"url": "dist/js/app.54e6b3ad.js"
},
{
"revision": "55879d9a3902f34e3b7b",
Expand Down
2 changes: 1 addition & 1 deletion dist/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"dist/precache-manifest.304b0c8af51153673b0d3efea8f69adf.js"
"dist/precache-manifest.618b0452cf8574244f3368ddd35e50fd.js"
);

workbox.core.setCacheNameDetails({prefix: "robot-framework"});
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))</script><link href="dist/css/app.84f5bd58.css" rel="preload" as="style"><link href="dist/js/app.334d8f8f.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.56623bf9.js" rel="preload" as="script"><link href="dist/css/app.84f5bd58.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="dist/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="dist/img/icons/favicon-16x16.png"><link rel="manifest" href="dist/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="robot-framework"><link rel="apple-touch-icon" href="dist/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="dist/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="dist/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but robot-framework doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="dist/js/chunk-vendors.56623bf9.js"></script><script src="dist/js/app.334d8f8f.js"></script></body></html>
}(window.location))</script><link href="dist/css/app.c3b49191.css" rel="preload" as="style"><link href="dist/js/app.54e6b3ad.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.56623bf9.js" rel="preload" as="script"><link href="dist/css/app.c3b49191.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="dist/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="dist/img/icons/favicon-16x16.png"><link rel="manifest" href="dist/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="robot-framework"><link rel="apple-touch-icon" href="dist/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="dist/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="dist/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but robot-framework doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="dist/js/chunk-vendors.56623bf9.js"></script><script src="dist/js/app.54e6b3ad.js"></script></body></html>
40 changes: 20 additions & 20 deletions src/components/Tutorials24.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div class="mt-small w-100">
<button
v-for="type in ['online']"
v-for="type in ['online', 'Helsinki']"
:key="type"
class="theme mr-xsmall"
:class="shownTutorials === type && 'active'"
@click="shownTutorials = type">
{{ type }}
</button>
<div
v-for="tutorial in shownTutorials === 'live' ? tutorials : tutorialsOnline"
v-for="tutorial in shownTutorials === 'Helsinki' ? tutorials : tutorialsOnline"
:key="tutorial.id"
class=" mt-large card p-small"
>
Expand Down Expand Up @@ -102,21 +102,21 @@ export default {
fetch('https://pretalx.com/api/events/robocon-2024/schedules/latest/')
.then((res) => res.json())
.then((res) => {
// this.tutorials = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'Eficode')
// .sort((a, b) => {
// if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
// return 1
// })
// this.tutorialsOnline = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboConOnline' && talk?.submission_type?.en === 'Tutorial')
// .sort((a, b) => {
// if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
// return 1
// })
// this.tutorials = talksStatic.filter((talk) => talk['Session type']?.en === 'Tutorial' && talk.Room?.en === 'Eficode')
// .sort((a, b) => {
// if (new Date(a.Start) < new Date(b.Start)) return -1
// return 1
// })
this.tutorials = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'Eficode')
.sort((a, b) => {
if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
return 1
})
this.tutorialsOnline = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboConOnline' && talk?.submission_type?.en === 'Tutorial')
.sort((a, b) => {
if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
return 1
})
this.tutorials = talksStatic.filter((talk) => talk['Session type']?.en === 'Tutorial' && talk.Room?.en === 'Eficode')
.sort((a, b) => {
if (new Date(a.Start) < new Date(b.Start)) return -1
return 1
})
this.tutorialsOnline = talksStatic.filter((talk) => talk['Session type']?.en === 'Tutorial' && talk.Room?.en === 'RoboConOnline')
.sort((a, b) => {
if (new Date(a.Start) < new Date(b.Start)) return -1
Expand All @@ -125,7 +125,7 @@ export default {
})
.then(() => {
const hash = window.location.hash
if (hash.includes('online')) this.shownTutorials = 'online'
if (hash.includes('live')) this.shownTutorials = 'Helsinki'
this.$nextTick(() => {
const el = document.getElementById(hash.slice(1))
if (el) el.scrollIntoView()
Expand All @@ -152,9 +152,9 @@ export default {
},
getSlug(title, tab) {
if (!title) return ''
let tabPrefix = 'live'
let tabPrefix = 'online'
console.log(tab)
if (tab === 'online') tabPrefix = 'online'
if (tab === 'Helsinki') tabPrefix = 'live'
return `${tabPrefix}-${title.replace(/[ ]/g, '-').replace(/[^a-zA-Z0-9-]/g, '').toLowerCase()}`
},
getIsNow(start, end) {
Expand Down

0 comments on commit 8578eb4

Please sign in to comment.