-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
62 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,57 @@ | ||
<script lang="ts"> | ||
import { config } from "../store"; | ||
import { createQuery } from "@tanstack/svelte-query"; | ||
import { apiRequest } from "../util"; | ||
const config = createQuery({ | ||
queryKey: ["/config/"], | ||
queryFn: apiRequest<Config>, | ||
}); | ||
</script> | ||
|
||
<footer class="bg-inherit shadow-even shadow-black text-sm py-1 z-10"> | ||
<nav> | ||
<ul class="flex flex-row flex-wrap gap-y-1"> | ||
<li class="flex-none w-full md:w-1/3 px-2 text-center md:text-left"> | ||
<a | ||
href="https://www.room3b.eu/pages/projects/digital-museum-map.html" | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>Find out more about how this works</a | ||
> | ||
</li> | ||
<li | ||
class="flex-none w-full md:w-1/3 pt-1 md:pt-0 md:py-0 text-center" | ||
<nav> | ||
<ul class="flex flex-row flex-wrap gap-y-1"> | ||
<li class="flex-none w-full md:w-1/3 px-2 text-center md:text-left"> | ||
<a | ||
href="https://www.room3b.eu/pages/projects/digital-museum-map.html" | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>Find out more about how this works</a | ||
> | ||
</li> | ||
<li class="flex-none w-full md:w-1/3 pt-1 md:pt-0 md:py-0 text-center"> | ||
{#if $config.isSuccess && $config.data.footer && $config.data.footer.center} | ||
{#if $config.data.footer.center.url} | ||
<a | ||
href={$config.data.footer.center.url} | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>{@html $config.data.footer.center.label}</a | ||
> | ||
{#if $config && $config.footer && $config.footer.center} | ||
{#if $config.footer.center.url} | ||
<a | ||
href={$config.footer.center.url} | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>{@html $config.footer.center.label}</a | ||
> | ||
{:else} | ||
<span>{@html $config.footer.center.label}</span> | ||
{/if} | ||
{/if} | ||
</li> | ||
<li | ||
class="flex-none w-full md:w-1/3 px-2 pt-1 md:pt-0 text-center md:text-right" | ||
{:else} | ||
<span>{@html $config.data.footer.center.label}</span> | ||
{/if} | ||
{/if} | ||
</li> | ||
<li | ||
class="flex-none w-full md:w-1/3 px-2 pt-1 md:pt-0 text-center md:text-right" | ||
> | ||
{#if $config.isSuccess && $config.data.footer && $config.data.footer.right} | ||
{#if $config.data.footer.right.url} | ||
<a | ||
href={$config.data.footer.right.url} | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>{@html $config.data.footer.right.label}</a | ||
> | ||
{#if $config && $config.footer && $config.footer.right} | ||
{#if $config.footer.right.url} | ||
<a | ||
href={$config.footer.right.url} | ||
target="_blank" | ||
rel="noopener" | ||
class="underline decoration-dotted hover:decoration-solid focus:decoration-solid" | ||
>{@html $config.footer.right.label}</a | ||
> | ||
{:else} | ||
<span>{@html $config.footer.right.label}</span> | ||
{/if} | ||
{/if} | ||
</li> | ||
</ul> | ||
</nav> | ||
{:else} | ||
<span>{@html $config.data.footer.right.label}</span> | ||
{/if} | ||
{/if} | ||
</li> | ||
</ul> | ||
</nav> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,16 @@ | ||
import { busyCounter, isBusy } from './busy'; | ||
import { itemOfTheDay, randomItemsSelection } from './picks'; | ||
import { floorTopics, majorCollections, floors, currentFloor } from './floors'; | ||
import { rooms, currentRooms, currentRoom } from './rooms'; | ||
import { items, currentItems, currentItem } from './items'; | ||
import { config } from './config'; | ||
import { cachedTopics, loadTopics } from './topics'; | ||
import { localPreferences } from './preferences'; | ||
import { searchTerm, searchRoom, matchingFloors, matchingRooms, matchingItems } from './search'; | ||
import { searchTerm, searchRoom } from './search'; | ||
import { consent, ageBand } from './consent'; | ||
import { tracker } from './tracking'; | ||
import { status, isConnected, isUpdatable, isReady } from "./status"; | ||
import { loadingProgress, isLoaded } from './loading'; | ||
|
||
export { | ||
busyCounter, | ||
isBusy, | ||
|
||
itemOfTheDay, | ||
randomItemsSelection, | ||
|
||
floorTopics, | ||
majorCollections, | ||
floors, | ||
currentFloor, | ||
|
||
currentRoom, | ||
currentRooms, | ||
rooms, | ||
|
||
items, | ||
currentItems, | ||
currentItem, | ||
|
||
cachedTopics, | ||
loadTopics, | ||
|
||
config, | ||
|
||
localPreferences, | ||
|
||
searchTerm, | ||
searchRoom, | ||
matchingFloors, | ||
matchingRooms, | ||
matchingItems, | ||
|
||
consent, | ||
ageBand, | ||
|
||
tracker, | ||
|
||
status, | ||
isConnected, | ||
isUpdatable, | ||
isReady, | ||
|
||
loadingProgress, | ||
isLoaded, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.