Skip to content

Commit

Permalink
Change location of self-hosted OFL data to support different base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Jan 7, 2024
1 parent eaf1506 commit 40bad24
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Empty file added public/.gitkeep
Empty file.
4 changes: 3 additions & 1 deletion src/stage/fixtures/dmx/fixtureLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useLocalStorage } from "@vueuse/core";
import { defineStore } from "pinia";
import { Fixture, OFLManufacturers } from "./open-fixture";

import SelfHostedOfl from "./ofl_export_ofl.zip?url";

export interface Manufacturer {
name: string;
fixtures: Fixture[];
Expand All @@ -29,7 +31,7 @@ export const useFixtureLibrary = defineStore("fixtureLibrary", () => {
try {
updating.value = true;
const axios = (await import("axios")).default;
const response = await axios.get("/ofl_export_ofl.zip", {
const response = await axios.get(SelfHostedOfl, {
responseType: "blob",
});
return response.data;
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/stage/visualization/stageRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export class StageRenderer {
}

public onFixtureConfigUpdate<T extends VisualizationType>(fixtureId: string, config: FixtureRendererConfig<T>) {
console.log("Updating fixture config", fixtureId, config);
const fixtureRenderer = this.fixtureRenderers.get(fixtureId);
if (fixtureRenderer) {
fixtureRenderer.onConfigUpdate(config);
Expand Down

0 comments on commit 40bad24

Please sign in to comment.