Changeset - 611c3e97de2f
[Not reviewed]
default
0 4 1
drewp@bigasterisk.com - 20 months ago 2023-05-18 17:49:16
drewp@bigasterisk.com
factor out the show-specific strs
5 files changed with 17 insertions and 12 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/Light9AscoltamiUi.ts
Show inline comments
 
@@ -9,6 +9,7 @@ import { PlainViewState } from "../web/L
 
import { getTopGraph } from "../web/RdfdbSyncedGraph";
 
import { SyncedGraph } from "../web/SyncedGraph";
 
import { TimingUpdate } from "./main";
 
import { showRoot } from "light9/web/show_specific";
 
export { Light9TimelineAudio } from "../web/light9-timeline-audio";
 
export { Light9CursorCanvas } from "../web/Light9CursorCanvas";
 
export { RdfdbSyncedGraph } from "../web/RdfdbSyncedGraph";
 
@@ -303,7 +304,7 @@ export class Light9AscoltamiUi extends L
 
    try {
 
      const playList = this.graph.uriValue(
 
        //
 
        this.graph.Uri("http://light9.bigasterisk.com/show/dance2023"),
 
        this.graph.Uri(showRoot),
 
        this.graph.Uri(":playList")
 
      );
 
      log(playList);
light9/fade/web/Light9FadeUi.ts
Show inline comments
 
@@ -5,6 +5,7 @@ import { customElement, property } from 
 
import { NamedNode } from "n3";
 
import { getTopGraph } from "../../web/RdfdbSyncedGraph";
 
import { SyncedGraph } from "../../web/SyncedGraph";
 
import { shortShow, showRoot } from "light9/web/show_specific";
 
export { EditChoice } from "../../web/EditChoice";
 

	
 
provideFASTDesignSystem().register(fastSlider(), fastSliderLabel());
 
@@ -40,14 +41,14 @@ export class Light9FadeUi extends LitEle
 
      this.graph = g;
 
      // todo: start with a page, then find the faders on that page
 
      this.faders = [
 
        g.Uri(":show/dance2019/fadePage1f0"),
 
        g.Uri(":show/dance2019/fadePage1f1"),
 
        g.Uri(":show/dance2019/fadePage1f2"),
 
        g.Uri(":show/dance2019/fadePage1f3"),
 
        g.Uri(":show/dance2019/fadePage1f4"),
 
        g.Uri(":show/dance2019/fadePage1f5"),
 
        g.Uri(":show/dance2019/fadePage1f6"),
 
        g.Uri(":show/dance2019/fadePage1f7"),
 
        g.Uri(`:show/${shortShow}/fadePage1f0`),
 
        g.Uri(`:show/${shortShow}/fadePage1f1`),
 
        g.Uri(`:show/${shortShow}/fadePage1f2`),
 
        g.Uri(`:show/${shortShow}/fadePage1f3`),
 
        g.Uri(`:show/${shortShow}/fadePage1f4`),
 
        g.Uri(`:show/${shortShow}/fadePage1f5`),
 
        g.Uri(`:show/${shortShow}/fadePage1f6`),
 
        g.Uri(`:show/${shortShow}/fadePage1f7`),
 
      ];
 
    });
 
  }
 
@@ -86,7 +87,7 @@ export class Light9Fader extends LitElem
 
  }
 

	
 
  graph!: SyncedGraph;
 
  ctx: NamedNode = new NamedNode("http://light9.bigasterisk.com/show/dance2019/fade");
 
  ctx: NamedNode = new NamedNode(showRoot + "/fade");
 
  @property() uri!: NamedNode;
 
  @property() column!: string;
 
  @property() effect: NamedNode | null = null;
light9/web/live/Effect.ts
Show inline comments
 
@@ -3,6 +3,7 @@ import { Literal, NamedNode, Quad_Object
 
import { some } from "underscore";
 
import { Patch, patchContainsPreds, patchUpdate } from "../patch";
 
import { SyncedGraph } from "../SyncedGraph";
 
import { shortShow } from "../show_specific";
 

	
 
type Color = string;
 
export type ControlValue = number | Color | NamedNode;
 
@@ -33,7 +34,7 @@ export class Effect {
 
    // called if the graph changes our values and not when the caller uses edit()
 
    private onValuesChanged: (values: void) => void
 
  ) {
 
    this.ctxForEffect = this.graph.Uri(this.uri.value.replace("light9.bigasterisk.com/effect", "light9.bigasterisk.com/show/dance2019/effect"));
 
    this.ctxForEffect = this.graph.Uri(this.uri.value.replace("light9.bigasterisk.com/effect", `light9.bigasterisk.com/show/${shortShow}/effect`));
 
    graph.runHandler(this.rebuildSettingsFromGraph.bind(this), `effect sync ${uri.value}`);
 
  }
 

	
light9/web/show_specific.ts
Show inline comments
 
new file 100644
 
export const shortShow = "dance2023";
 
export const showRoot = `http://light9.bigasterisk.com/show/${shortShow}`;
 
\ No newline at end of file
light9/web/timeline/TimelineEditor.coffee
Show inline comments
 
@@ -85,7 +85,7 @@ class TimelineEditor extends LitElement
 

	
 
  _onGraph: (graph) ->
 
    @project = new Project(graph)
 
    @show = 'http://light9.bigasterisk.com/show/dance2019'
 
    @show = showRoot
 

	
 
  _onSetAdjuster: () ->
 
    @makeZoomAdjs()
0 comments (0 inline, 0 general)