Skip to content

Commit

Permalink
Few more bootstrap changes caught
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed May 2, 2024
1 parent aba9ec7 commit 53b41b7
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 22 deletions.
27 changes: 20 additions & 7 deletions website/src/components/broadcast/roots/ClientOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@
<b-button class="mt-2" variant="danger" @click="reloadAll"><i class="fas fa-redo fa-fw"></i> Reload all sources</b-button>

<table class="my-3">
<tr v-for="overlay in sortedOverlays" :key="overlay.socket" :class="{ 'overlay-minor': overlay.minor || overlay.forHumans, 'overlay-for-humans': overlay.forHumans, 'overlay-active bg-danger': overlay.active }">
<td><b-button @click="sendToOverlay(overlay.socket, 'reload')" size="sm" variant="dark"><i class="fa fa-fw fa-sync"></i></b-button></td>
<td><b-button size="sm" variant="dark" :href="overlay.fullPath" target="_blank"><i class="fa fa-fw fa-external-link"></i></b-button></td>
<td><span class="b-pad"><i class="fa fa-fw" :class="{'fa-eye': overlay.visible, 'fa-eye-slash': !overlay.visible}"></i></span></td>
<td><span class="b-pad fw-bold">{{ overlay.component }}</span></td>
<td><span class="b-pad">{{ decodeURIComponent(overlay.fullPath.replace(overlay.path, "")) }}</span></td>
</tr>
<tbody>
<tr v-for="overlay in sortedOverlays" :key="overlay.socket"
:class="{ 'overlay-minor': overlay.minor || overlay.forHumans, 'overlay-for-humans': overlay.forHumans, 'overlay-active bg-danger': overlay.active }">
<td>
<b-button @click="sendToOverlay(overlay.socket, 'reload')" size="sm" variant="dark"><i class="fa fa-fw fa-sync"></i></b-button>
</td>
<td>
<b-button size="sm" variant="dark" :href="overlay.fullPath" target="_blank"><i class="fa fa-fw fa-external-link"></i></b-button>
</td>
<td>
<span class="b-pad"><i class="fa fa-fw" :class="{'fa-eye': overlay.visible, 'fa-eye-slash': !overlay.visible}"></i></span>
</td>
<td>
<span class="b-pad fw-bold">{{ overlay.component }}</span>
</td>
<td>
<span class="b-pad">{{ decodeURIComponent(overlay.fullPath.replace(overlay.path, "")) }}</span>
</td>
</tr>
</tbody>
</table>

<div class="remote-obs-data">
Expand Down
1 change: 1 addition & 0 deletions website/src/components/website/ContentThing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default {
}
.content-thing:hover {
color: inherit;
text-decoration: underline;
}
.icon-internal {
Expand Down
1 change: 1 addition & 0 deletions website/src/components/website/bracket/Bracket.vue
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ export default {
margin: 0 var(--margin-width);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.column.gap-right {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</b-button>
</b-button-group>
</div>
<b-modal ref="modal" id="break-display" title="Break display settings">
<b-modal ref="modal" id="break-display" title="Break display settings" :hide-footer="selectedTab !== 'Display'">
<b-form-radio-group class="w-100 mb-3" v-model="selectedTab" :options="tabs" buttons button-variant="outline-primary" />
<BreakTimeControls :broadcast="broadcast" v-if="selectedTab === 'Countdown'" />
<BreakTextTab :broadcast="broadcast" v-if="selectedTab === 'Text'" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {

<style scoped>
.label {
margin-bottom: .15em;
margin-bottom: .25em;
height: 19px;
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/utils/reactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import store from "../thing-store";
import { queueThings, resolveThing } from "@/utils/fetch";
import { cleanID } from "@/utils/content-utils";

export function ReactiveRoot (id, structure) {
export function ReactiveRoot(id, structure) {
// console.log("[reactive-root]", id);
id = cleanID(id);
const data = store.getters.thing(id);
Expand Down
34 changes: 22 additions & 12 deletions website/src/views/sub-views/PlayerPartners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,28 @@
<div>{{ partners?.length }} partner{{ partners?.length === 1 ? '' : 's' }}</div>
</div>
<table class="table table-bordered table-dark table-sm" v-if="chosenPartnerType">
<tr>
<th>Partner</th>
<th>Matches together</th>
<th>Last match together</th>
</tr>
<tr v-for="partner in partners" :key="partner.player.id">
<td><router-link :to="`/player/${partner.player.id}/partners`">{{ partner.player.name }}</router-link></td>
<td>{{ partner.matches }}</td>
<td>{{ formatTime(partner.lastMatch.start, {format: "{day} {date-ordinal} {month} {year}", tz: $store.state.timezone, use24HourTime: $store.state.use24HourTime}) }} -
<span v-if="partner.lastMatch?.event"><router-link :to="url('event', partner.lastMatch?.event)">{{ partner.lastMatch?.event?.name || '...' }}</router-link> - </span>
<router-link :to="url('match', partner.lastMatch)">{{ partner.lastMatch?.name || '...' }}</router-link></td>
</tr>
<thead>
<tr>
<th>Partner</th>
<th>Matches together</th>
<th>Last match together</th>
</tr>
</thead>
<tbody>
<tr v-for="partner in partners" :key="partner.player.id">
<td>
<router-link :to="`/player/${partner.player.id}/partners`">{{partner.player.name}}</router-link>
</td>
<td>{{ partner.matches }}</td>
<td>
{{ formatTime(partner.lastMatch.start, { format: "{day} {date-ordinal} {month} {year}", tz: $store.state.timezone, use24HourTime: $store.state.use24HourTime }) }} -
<span v-if="partner.lastMatch?.event">
<router-link :to="url('event', partner.lastMatch?.event)">{{ partner.lastMatch?.event?.name || "..." }}</router-link> -
</span>
<router-link :to="url('match', partner.lastMatch)">{{ partner.lastMatch?.name || "..." }}</router-link>
</td>
</tr>
</tbody>
</table>
</div>
</template>
Expand Down

0 comments on commit 53b41b7

Please sign in to comment.