ISSUE-031 - Progress checkpoint.
A lot of work going on here. * Moved WorkspaceControls component to a new sub directory * Renamed overlay images * Started a static ChyronDriverBasic component (using Hamilton as an example) * Created a fancy DriverNumber rendering system * Defined DriverNumber style for Mercedes and no one else yet * A bunch of new states for the grid: cars, drivers, teams, etc * Defined a bunch of data for the drivers and teams * Created another string utility function to generate repeat strings; unit tests included
This commit is contained in:
1 parent
1c38137480
commit
db14bf902f
21 files changed
+787
-41
No files matched your search
@@ -10,11 +10,10 @@ import { overlayToolSelector } from "../../../features/overlayTool/overlayToolSe
|
||||
import { newWorkspace } from "../../../features/overlayTool/overlayToolSlice";
|
||||
|
||||
import { PreviewWindow, H2, ControlsContainer } from "./styles";
|
||||
import { WorkspaceControls } from "./WorkspaceControls";
|
||||
import { MockupBlock } from "../../Common/MockupBlock.styled";
|
||||
import { WorkspaceControls } from "./WorkspaceControls/WorkspaceControls";
|
||||
import { OverlayDisplay } from "../../OverlayTool";
|
||||
|
||||
import { workspaces } from "../workspaces";
|
||||
import { fetchBroadcastGraphic, workspaces } from "../../../domain/data/workspaces";
|
||||
|
||||
export const Workspace = () => {
|
||||
const dispatch = useDispatch();
|
||||
@@ -54,11 +53,7 @@ export const Workspace = () => {
|
||||
dimensions={workspaceProperties.previewWindowDimensions}
|
||||
animatedBG={animatedBG}
|
||||
>
|
||||
<MockupBlock
|
||||
color="#415bad"
|
||||
height="100px"
|
||||
width="100px"
|
||||
>Preview Item</MockupBlock>
|
||||
{fetchBroadcastGraphic(workspaceId)}
|
||||
<OverlayDisplay
|
||||
containerDimensions={workspaceProperties.previewWindowDimensions}
|
||||
/>
|
||||
|
||||
+4
-4
@@ -2,11 +2,11 @@ import { Grid } from "@bedrock-layout/grid";
|
||||
import { PadBox } from "@bedrock-layout/padbox";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
||||
import { workspaceSelector } from "../../../features/workspace/workspaceSelector";
|
||||
import { setAnimatedBG } from "../../../features/workspace/workspaceSlice";
|
||||
import { workspaceSelector } from "../../../../features/workspace/workspaceSelector";
|
||||
import { setAnimatedBG } from "../../../../features/workspace/workspaceSlice";
|
||||
|
||||
import { Toggle } from "../../Common/Inputs/Toggle";
|
||||
import { OverlayControl } from "../../OverlayTool";
|
||||
import { Toggle } from "../../../Common/Inputs/Toggle";
|
||||
import { OverlayControl } from "../../../OverlayTool";
|
||||
|
||||
export const WorkspaceControls = () => {
|
||||
const dispatch = useDispatch();
|
||||
@@ -5,7 +5,7 @@ import { WorkspaceListBox } from "./styles";
|
||||
import { Stack } from "@bedrock-layout/stack";
|
||||
import { MenuItem } from "../../Common/MenuItem.styled";
|
||||
|
||||
import { workspaces } from "../workspaces";
|
||||
import { workspaces } from "../../../domain/data/workspaces";
|
||||
|
||||
type WorkspaceListProps = {
|
||||
headerOffset?: number,
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import { WorkspaceProperties } from "../../types/state";
|
||||
|
||||
type WorkspaceObject = {
|
||||
[id: string]: WorkspaceProperties,
|
||||
};
|
||||
export const workspaces: WorkspaceObject = {
|
||||
chyronSimple: {
|
||||
name: "Chyron Simple",
|
||||
overlayIds: [
|
||||
"chyron-simple-full.png",
|
||||
"chyron-simple-opening-1.png",
|
||||
"chyron-simple-opening-2.png",
|
||||
],
|
||||
previewWindowDimensions: {
|
||||
width: 650,
|
||||
height: 200,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user