-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # apps/graphics/package-lock.json # apps/graphics/package.json
- Loading branch information
Showing
92 changed files
with
9,213 additions
and
9,194 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,22 +1,60 @@ | ||
import '@fortawesome/fontawesome-free/css/all.css' | ||
import 'vuetify/styles' | ||
import {createVuetify, ThemeDefinition} from 'vuetify' | ||
import {aliases, fa} from 'vuetify/iconsets/fa-svg'; | ||
|
||
const glimpseTheme: ThemeDefinition = { | ||
dark: true, | ||
colors: { | ||
background: "#2f3a4f" | ||
} | ||
} | ||
import 'vuetify/styles'; | ||
import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader | ||
import { createVuetify } from 'vuetify'; | ||
import { VNumberInput } from 'vuetify/labs/VNumberInput'; | ||
import { aliases, mdi } from 'vuetify/iconsets/mdi'; | ||
|
||
export default createVuetify({ | ||
components: { | ||
VNumberInput | ||
}, | ||
icons: { | ||
defaultSet: 'fa', | ||
defaultSet: 'mdi', | ||
aliases, | ||
sets: { fa } | ||
sets: { | ||
mdi, | ||
}, | ||
}, | ||
theme: { | ||
defaultTheme: 'dark' | ||
}, | ||
defaults: { | ||
VBtn: { | ||
variant: "outlined", | ||
class: "text-none", | ||
}, | ||
VChip: { | ||
label: true, | ||
variant: "outlined", | ||
}, | ||
VColorPicker: { | ||
hideInputs: true, | ||
modes: ["hex", "rgb"], | ||
}, | ||
VCombobox: { | ||
clearable: true, | ||
variant: "outlined", | ||
}, | ||
VExpansionPanels: { | ||
style: { | ||
width: "400px", | ||
}, | ||
variant: "accordion" | ||
}, | ||
VNumberInput: { | ||
variant: "outlined", | ||
step: 0.5 | ||
}, | ||
VSelect: { | ||
variant: "outlined" | ||
}, | ||
VSwitch: { | ||
inset: true, | ||
color: "primary", | ||
}, | ||
VTextField: { | ||
clearable: true, | ||
variant: "outlined" | ||
} | ||
} | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export class Credit { | ||
public people: string[]; | ||
public peopleColor: string; | ||
public peopleSize: number; | ||
public title: string; | ||
public titleColor: string; | ||
public titleSize: number; | ||
|
||
public constructor() { | ||
this.people = []; | ||
this.peopleColor = ""; | ||
this.peopleSize = 0; | ||
this.title = ""; | ||
this.titleColor = ""; | ||
this.titleSize = 0; | ||
} | ||
} |
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
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
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,9 @@ | ||
import { createApp } from 'vue'; | ||
import App from './fullscreen/main.vue'; | ||
import {pinia} from "./pinia"; | ||
import vuetify from "../../plugins/vuetify"; | ||
|
||
const app = createApp(App); | ||
app.use(pinia); | ||
app.use(vuetify); | ||
app.mount('#app'); |
43 changes: 43 additions & 0 deletions
43
apps/graphics/src/dashboard/fullscreen/Editors/CreditsEditor.vue
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,43 @@ | ||
<template> | ||
<v-expansion-panels> | ||
<v-expansion-panel title="Credits"> | ||
<v-expansion-panel-text> | ||
<div class="btns"> | ||
<v-btn @click="fullscreenCredits.credit.value = [...fullscreenCredits.credit.value, new Credit()]">Add Credit</v-btn> | ||
<v-spacer /> | ||
<v-btn @click="fullscreenCredits.credit.value = []" color="red" :disabled="fullscreenCredits.credit.value.length === 0">Delete All Credits</v-btn> | ||
</div> | ||
</v-expansion-panel-text> | ||
</v-expansion-panel> | ||
<v-expansion-panel v-for="(credit, i) in fullscreenCredits.credit.value" :key="i" :title="`Credit ${i + 1}`"> | ||
<v-expansion-panel-text> | ||
<v-combobox label="Title" :items="titles" v-model="credit.title" /> | ||
<v-number-input label="Title Size" v-model="credit.titleSize" /> | ||
<v-color-picker v-model="credit.titleColor" /> | ||
<v-text-field label="Title Color" v-model="credit.titleColor" width="300" /> | ||
<v-divider /> | ||
<br> | ||
<v-combobox label="People" multiple chips v-model="credit.people" /> | ||
<v-number-input label="People Size" v-model="credit.peopleSize" /> | ||
<v-color-picker v-model="credit.peopleColor" /> | ||
<v-text-field label="People Color" v-model="credit.peopleColor" width="300" /> | ||
<v-btn color="red" @click="fullscreenCredits.credit.value = fullscreenCredits.credit.value.toSpliced(i, 1)" >Delete Credit</v-btn> | ||
</v-expansion-panel-text> | ||
</v-expansion-panel> | ||
</v-expansion-panels> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { loadReplicants } from "../../../browser-common/replicants"; | ||
import { Credit } from "../../../common/Credit"; | ||
const replicants = await loadReplicants(); | ||
const fullscreenCredits = replicants.fullscreen.credits; | ||
const titles = ["Director", "Producer", "Replay", "Graphics", "Camera Operator"]; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.btns { | ||
display: flex; | ||
} | ||
</style> |
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,41 @@ | ||
<template> | ||
<div class="table"> | ||
<v-table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Preview</th> | ||
<th>Editor</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><h2>Credits</h2></td> | ||
<td><iframe :src="previewLocation + '?credits'" /></td> | ||
<td><CreditsEditor /></td> | ||
<td><v-switch v-model="replicants.fullscreen.credits.show.value" /></td> | ||
</tr> | ||
</tbody> | ||
</v-table> | ||
<br> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { loadReplicants } from "../../browser-common/replicants"; | ||
import { computed, ref } from "vue"; | ||
import CreditsEditor from "./Editors/CreditsEditor.vue"; | ||
const replicants = await loadReplicants(); | ||
const previewLocation = `/bundles/graphics/graphics/preview.html`; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
iframe { | ||
border: none; | ||
aspect-ratio: 16/9; | ||
width: 550px; | ||
background-color: white; | ||
} | ||
</style> |
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,20 @@ | ||
<template> | ||
<n-config-provider :theme="darkTheme"> | ||
<Suspense> | ||
<Fullscreen /> | ||
<template #fallback> | ||
Loading... | ||
</template> | ||
</Suspense> | ||
</n-config-provider> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {NConfigProvider, darkTheme} from "naive-ui"; | ||
import Fullscreen from "./Fullscreen.vue"; | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
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
Oops, something went wrong.