-
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
243 additions
and
236 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
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,46 +1,24 @@ | ||
<script lang="ts"> | ||
import "bulma/css/bulma.css"; | ||
import Server from "./Server.svelte"; | ||
import Widget from "./Widget.svelte"; | ||
import RoomList from "./RoomList.svelte"; | ||
import Settings from './Settings.svelte' | ||
import { server_list, selected } from "./store"; | ||
let status: Array<string> = [] | ||
function get_status_icon (key: string): string { | ||
switch (key) { | ||
case 'ok': | ||
return 'check_circle' | ||
case 'laden': | ||
return 'loop' | ||
default: | ||
return 'offline_bolt' | ||
} | ||
} | ||
</script> | ||
</script> | ||
|
||
<div class="container"> | ||
<div class="tabs"> | ||
<ul> | ||
{#each $server_list as s,i} | ||
<li class:is-active={$selected === s}> | ||
<!-- svelte-ignore a11y-missing-attribute --> | ||
<a on:click={(_) => ($selected = s)} | ||
>{s.name || "Namenloser Server"} | ||
<i class="material-icons"> {get_status_icon(status[i])}</i> | ||
</a> | ||
</li> | ||
{/each} | ||
<li> | ||
<!-- svelte-ignore a11y-missing-attribute --> | ||
<a> | ||
<i | ||
class="material-icons is-clickable" | ||
on:click={server_list.add}>add</i | ||
> | ||
</a> | ||
</li> | ||
</ul> | ||
<div class="section"> | ||
<div class="columns"> | ||
<div class="column is-one-third"> | ||
{#each $server_list as server} | ||
<Widget {server} on:click={_=>$selected = server} active={$selected === server}></Widget> | ||
{/each} | ||
<button class="button is-fullwidth" on:click={server_list.add}> | ||
<i class="material-icons">add</i> | ||
</button> | ||
</div> | ||
<div class="column"><RoomList server={$selected} /></div> | ||
</div> | ||
</div> | ||
{#each $server_list as s,i} | ||
<Server server={s} bind:status={status[i]}/> | ||
{/each} | ||
</div> | ||
<Settings /> |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<script lang="ts"> | ||
import Meeting from './Meeting.svelte' | ||
import type { Server } from './server' | ||
import type {meeting} from './types' | ||
export let server: Server | ||
let meetings: meeting[] | ||
$: meetings = $server?.meetings | ||
</script> | ||
|
||
{#if meetings} | ||
{#each meetings.filter((m) => !m.isBreakout) as meeting} | ||
<Meeting {meeting}> | ||
{#each meetings.filter((b) => | ||
[meeting.breakoutRooms?.breakout].flat().includes(b.meetingID) | ||
) as breakout} | ||
<Meeting meeting={breakout} /> | ||
{/each} | ||
</Meeting> | ||
{:else} Zur Zeit keine Räume geöffnet auf diesem Server. Mach doch mal wieder eine Videokonferenz! | ||
{/each} | ||
{/if} |
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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<script lang="ts"> | ||
import type {Server} from './server' | ||
import {settings} from './store' | ||
export let server: Server; | ||
export let active: boolean | ||
</script> | ||
|
||
<div class="block" on:click > | ||
<div class="card"> | ||
<header class="card-header" class:has-background-primary-light={active}> | ||
<p class="card-header-title"> | ||
<span class="has-text-{$server.status}">●</span> {$server.name} | ||
</p> | ||
<div class="card-header-icon" aria-label="more options"> | ||
<span class="icon"> | ||
<i class="material-icons is-clickable has-text-grey" on:click={_=>$settings = true}>settings</i> | ||
</span> | ||
</div> | ||
</header> | ||
<div class="card-content"> | ||
<div class="content"> | ||
<nav class="level is-mobile"> | ||
{#if $server.meetings} | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Räume</p> | ||
<p class="title">{$server.meetings.length}</p> | ||
</div> | ||
</div> | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Teilnehmer</p> | ||
<p class="title"> | ||
{$server.teilnehmer} | ||
</p> | ||
</div> | ||
</div> | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Audio</p> | ||
<p class="title"> | ||
{$server.audio} | ||
</p> | ||
</div> | ||
</div> | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Video</p> | ||
<p class="title"> | ||
{$server.video} | ||
</p> | ||
</div> | ||
</div> | ||
{:else if $server.status === 'success' && !$server.meetings} | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Es sind momentan keine Räume offen</p> | ||
</div> | ||
</div> | ||
{:else} | ||
<div class="level-item has-text-centered"> | ||
<div> | ||
<p class="heading">Keine Verbindung zum Server</p> | ||
</div> | ||
</div> | ||
{/if} | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.