Skip to content

Commit

Permalink
added breaks to talk schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
samipe committed Jan 24, 2024
1 parent 0a6ba2f commit db191d2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/css/app.1ff55cd8.css → dist/css/app.d4e21f86.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/js/app.6f51c23a.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/js/app.ba68131a.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": "e95655492352bb42ce3b",
"url": "dist/css/app.1ff55cd8.css"
"revision": "9fbbc4f74f610a5be363",
"url": "dist/css/app.d4e21f86.css"
},
{
"revision": "27679e61bfd27e1093f4bf200900b8e7",
Expand Down Expand Up @@ -188,12 +188,12 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "dist/img/ticket-depth.jpg"
},
{
"revision": "45288e0386a25e9f5bc44eeff90169ec",
"revision": "efa9661610b5a55bee57010de6394c07",
"url": "dist/index.html"
},
{
"revision": "e95655492352bb42ce3b",
"url": "dist/js/app.6f51c23a.js"
"revision": "9fbbc4f74f610a5be363",
"url": "dist/js/app.ba68131a.js"
},
{
"revision": "93488b24d25139a6649c",
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.a2cfdf263e720bae0a1d58437be918c0.js"
"dist/precache-manifest.892186c412c695b760866b5f6dd8b0a4.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.1ff55cd8.css" rel="preload" as="style"><link href="dist/js/app.6f51c23a.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.2b43d562.js" rel="preload" as="script"><link href="dist/css/app.1ff55cd8.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.2b43d562.js"></script><script src="dist/js/app.6f51c23a.js"></script></body></html>
}(window.location))</script><link href="dist/css/app.d4e21f86.css" rel="preload" as="style"><link href="dist/js/app.ba68131a.js" rel="preload" as="script"><link href="dist/js/chunk-vendors.2b43d562.js" rel="preload" as="script"><link href="dist/css/app.d4e21f86.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.2b43d562.js"></script><script src="dist/js/app.ba68131a.js"></script></body></html>
30 changes: 19 additions & 11 deletions src/components/Talks24.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,37 @@
<div
v-for="talk in shownTalks"
:key="talk.id"
class=" mt-large card p-small"
class="mt-large card p-small"
:class="talk.isBreak && 'bg-secondary sharper'"
>
<a
v-if="!talk.isBreak"
class="anchor"
:id="getSlug(talk.title, selectedTrack)"
></a>
<div class="flex between">
<h3>
{{ talk.title }}
{{ talk.isBreak ? talk.description.en : talk.title }}
</h3>
<a
v-if="!$store.state.isMobile"
v-if="!$store.state.isMobile && !talk.isBreak"
title="get link to talk"
:href="`#${getSlug(talk.title, selectedTrack)}`"
>
<link-icon style="transform: translateY(2px)" />
</a>
</div>
<p class="type-small m-none">
{{ format(new Date(talk.slot.start), 'MMM dd') }} {{ getShownTime(talk.slot.start) }} - {{ getShownTime(talk.slot.end) }} ({{Intl.DateTimeFormat().resolvedOptions().timeZone}})
{{ format(new Date(talk.slot?.start || talk.start), 'MMM dd') }} {{ getShownTime(talk.slot?.start || talk.start) }} - {{ getShownTime(talk.slot?.end || talk.end) }} ({{Intl.DateTimeFormat().resolvedOptions().timeZone}})
</p>
<div v-html="parseText(talk.abstract)" />
<details class="details">
<div v-if="talk.abstract" v-html="parseText(talk.abstract)" />
<details v-if="!talk.isBreak && talk.description" class="details">
<summary>
Full description
</summary>
<div v-html="parseText(talk.description)" class="p-small" />
</details>
<h3 class="mt-xlarge">Presenters</h3>
<h3 v-if="!talk.isBreak" class="mt-xlarge">Presenters</h3>
<details
v-for="speaker in talk.speakers"
:key="speaker.code"
Expand Down Expand Up @@ -94,14 +96,20 @@ export default {
fetch('https://pretalx.com/api/events/robocon-2024/schedules/latest/')
.then((res) => res.json())
.then((res) => {
this.talksLive = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboCon')
this.talksLive = [
...res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboCon'),
...res?.breaks?.filter((b) => b?.room?.en === 'RoboCon').map((b) => ({ ...b, isBreak: true }))
]
.sort((a, b) => {
if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
if (new Date(a.slot?.start || a.start) < new Date(b.slot?.start || b.start)) return -1
return 1
})
this.talksOnline = res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboConOnline')
this.talksOnline = [
...res?.slots?.filter((talk) => talk?.slot?.room?.en === 'RoboConOnline'),
...res?.breaks?.filter((b) => b?.room?.en === 'RoboConOnline').map((b) => ({ ...b, isBreak: true }))
]
.sort((a, b) => {
if (new Date(a.slot?.start) < new Date(b.slot?.start)) return -1
if (new Date(a.slot?.start || a.start) < new Date(b.slot?.start || b.start)) return -1
return 1
})
})
Expand Down

0 comments on commit db191d2

Please sign in to comment.