From adb1099e96da387ee7c73cd7f55a3924e61aa5e5 Mon Sep 17 00:00:00 2001 From: Alex Van Camp Date: Wed, 12 Dec 2018 12:24:35 -0600 Subject: [PATCH] refactor: rename OoT Bingo to Bingosync This system is accidentally a generic Bingosync system, and has almost nothing that makes it specific to OoT Bingo. This is good for us. --- dist/extension/bingosync.d.ts | 2 + dist/extension/bingosync.d.ts.map | 1 + dist/extension/{oot-bingo.js => bingosync.js} | 18 ++-- .../{oot-bingo.js.map => bingosync.js.map} | 2 +- dist/extension/intermissions.js | 2 +- dist/extension/oot-bingo.d.ts | 2 - dist/extension/oot-bingo.d.ts.map | 1 - dist/extension/twitter.js | 2 +- graphics/bingosync.html | 43 ++++++++ ...ashboard.html => bingosync_dashboard.html} | 8 +- .../atom-bingosync-board.html} | 10 +- .../atom-bingosync-board.js | 85 ++++++++++++++++ .../atom-bingosync-board.ts} | 4 +- .../atom-ootbingo-board.js | 85 ---------------- .../dash-bingosync.html} | 14 +-- .../dash-bingosync/dash-bingosync.js | 97 +++++++++++++++++++ .../dash-bingosync.ts} | 24 ++--- .../interfaces/dash-ootbingo/dash-ootbingo.js | 97 ------------------- .../gdq-bingosync-board.html} | 14 +-- .../gdq-bingosync-board.js | 90 +++++++++++++++++ .../gdq-bingosync-board.ts} | 12 +-- .../gdq-ootbingo-board/gdq-ootbingo-board.js | 90 ----------------- graphics/oot_bingo.html | 24 ----- package.json | 6 +- ...go%3Aboard.json => bingosync%3Aboard.json} | 0 ...%3Asocket.json => bingosync%3Asocket.json} | 0 scripts/schema-types.js | 48 --------- src/extension/{oot-bingo.ts => bingosync.ts} | 20 ++-- src/types/schemas/autoUpdateTotal.d.ts | 1 + src/types/schemas/autoUploadRecordings.d.ts | 1 + ...go%3Aboard.d.ts => bingosync%3Aboard.d.ts} | 3 +- ...%3Asocket.d.ts => bingosync%3Asocket.d.ts} | 3 +- src/types/schemas/bits%3Atotal.d.ts | 1 + src/types/schemas/canSeekSchedule.d.ts | 1 + src/types/schemas/caspar%3Aconnected.d.ts | 1 + src/types/schemas/caspar%3Afiles.d.ts | 1 + src/types/schemas/checklist.d.ts | 1 + src/types/schemas/checklistComplete.d.ts | 1 + src/types/schemas/configschema.d.ts | 1 + src/types/schemas/countdown.d.ts | 1 + src/types/schemas/countdownRunning.d.ts | 1 + src/types/schemas/currentHost.d.ts | 1 + src/types/schemas/currentIntermission.d.ts | 1 + src/types/schemas/currentRun.d.ts | 1 + src/types/schemas/fanartTweets.d.ts | 1 + src/types/schemas/gameAudioChannels.d.ts | 1 + src/types/schemas/gdq%3AcurrentLayout.d.ts | 1 + src/types/schemas/interview%3Anames.d.ts | 1 + .../schemas/interview%3AprizePlaylist.d.ts | 1 + .../schemas/interview%3AquestionShowing.d.ts | 1 + .../schemas/interview%3AquestionSortMap.d.ts | 1 + .../schemas/interview%3AquestionTweets.d.ts | 1 + .../interview%3AshowPrizesOnMonitor.d.ts | 1 + src/types/schemas/interview%3Astopwatch.d.ts | 1 + .../schemas/interview%3AthrowIncoming.d.ts | 1 + src/types/schemas/nextRun.d.ts | 1 + src/types/schemas/nowPlaying.d.ts | 1 + .../schemas/obs%3AcyclingRecordings.d.ts | 1 + src/types/schemas/recordTrackerEnabled.d.ts | 1 + src/types/schemas/scores.d.ts | 1 + src/types/schemas/smalttpData.d.ts | 1 + src/types/schemas/stopwatch.d.ts | 1 + src/types/schemas/total.d.ts | 1 + src/types/schemas/tweets.d.ts | 1 + src/types/schemas/twitch%3AcanPlayAd.d.ts | 1 + src/types/schemas/victorOps%3Aincidents.d.ts | 1 + .../schemas/victorOps%3AroutingKeys.d.ts | 1 + 67 files changed, 427 insertions(+), 417 deletions(-) create mode 100644 dist/extension/bingosync.d.ts create mode 100644 dist/extension/bingosync.d.ts.map rename dist/extension/{oot-bingo.js => bingosync.js} (94%) rename dist/extension/{oot-bingo.js.map => bingosync.js.map} (89%) delete mode 100644 dist/extension/oot-bingo.d.ts delete mode 100644 dist/extension/oot-bingo.d.ts.map create mode 100644 graphics/bingosync.html rename graphics/{oot_bingo_dashboard.html => bingosync_dashboard.html} (88%) rename graphics/elements/atoms/{atom-ootbingo-board/atom-ootbingo-board.html => atom-bingosync-board/atom-bingosync-board.html} (83%) create mode 100644 graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.js rename graphics/elements/atoms/{atom-ootbingo-board/atom-ootbingo-board.ts => atom-bingosync-board/atom-bingosync-board.ts} (92%) delete mode 100644 graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.js rename graphics/elements/interfaces/{dash-ootbingo/dash-ootbingo.html => dash-bingosync/dash-bingosync.html} (93%) create mode 100644 graphics/elements/interfaces/dash-bingosync/dash-bingosync.js rename graphics/elements/interfaces/{dash-ootbingo/dash-ootbingo.ts => dash-bingosync/dash-bingosync.ts} (73%) delete mode 100644 graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.js rename graphics/elements/molecules/{gdq-ootbingo-board/gdq-ootbingo-board.html => gdq-bingosync-board/gdq-bingosync-board.html} (75%) create mode 100644 graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.js rename graphics/elements/molecules/{gdq-ootbingo-board/gdq-ootbingo-board.ts => gdq-bingosync-board/gdq-bingosync-board.ts} (75%) delete mode 100644 graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.js delete mode 100644 graphics/oot_bingo.html rename schemas/{ootBingo%3Aboard.json => bingosync%3Aboard.json} (100%) rename schemas/{ootBingo%3Asocket.json => bingosync%3Asocket.json} (100%) delete mode 100644 scripts/schema-types.js rename src/extension/{oot-bingo.ts => bingosync.ts} (91%) rename src/types/schemas/{ootBingo%3Aboard.d.ts => bingosync%3Aboard.d.ts} (90%) rename src/types/schemas/{ootBingo%3Asocket.d.ts => bingosync%3Asocket.d.ts} (86%) diff --git a/dist/extension/bingosync.d.ts b/dist/extension/bingosync.d.ts new file mode 100644 index 0000000..0da42a1 --- /dev/null +++ b/dist/extension/bingosync.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=bingosync.d.ts.map \ No newline at end of file diff --git a/dist/extension/bingosync.d.ts.map b/dist/extension/bingosync.d.ts.map new file mode 100644 index 0000000..be0a707 --- /dev/null +++ b/dist/extension/bingosync.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bingosync.d.ts","sourceRoot":"","sources":["../../src/extension/bingosync.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/extension/oot-bingo.js b/dist/extension/bingosync.js similarity index 94% rename from dist/extension/oot-bingo.js rename to dist/extension/bingosync.js index de15a67..d551eef 100644 --- a/dist/extension/oot-bingo.js +++ b/dist/extension/bingosync.js @@ -11,11 +11,11 @@ const SOCKET_KEY_REGEX = /temporarySocketKey\s+=\s+"(\S+)"/; const nodecg = nodecgApiContext.get(); const log = new nodecg.Logger(`${nodecg.bundleName}:oot-bingo`); const request = RequestPromise.defaults({ jar: true }); // <= Automatically saves and re-uses cookies. -const boardRep = nodecg.Replicant('ootBingo:board'); -const socketRep = nodecg.Replicant('ootBingo:socket'); +const boardRep = nodecg.Replicant('bingosync:board'); +const socketRep = nodecg.Replicant('bingosync:socket'); let fullUpdateInterval; let websocket = null; -nodecg.listenFor('ootBingo:joinRoom', async (data, callback) => { +nodecg.listenFor('bingosync:joinRoom', async (data, callback) => { try { socketRep.value = Object.assign({}, socketRep.value, data); await joinRoom({ @@ -38,7 +38,7 @@ nodecg.listenFor('ootBingo:joinRoom', async (data, callback) => { } } }); -nodecg.listenFor('ootBingo:leaveRoom', (_data, callback) => { +nodecg.listenFor('bingosync:leaveRoom', (_data, callback) => { try { clearInterval(fullUpdateInterval); destroyWebsocket(); @@ -54,7 +54,7 @@ nodecg.listenFor('ootBingo:leaveRoom', (_data, callback) => { } } }); -nodecg.listenFor('ootBingo:selectLine', (lineString, callback) => { +nodecg.listenFor('bingosync:selectLine', (lineString, callback) => { try { boardRep.value.selectedLine = lineString; if (callback && !callback.handled) { @@ -67,7 +67,7 @@ nodecg.listenFor('ootBingo:selectLine', (lineString, callback) => { } } }); -nodecg.listenFor('ootBingo:toggleLineFocus', (_data, callback) => { +nodecg.listenFor('bingosync:toggleLineFocus', (_data, callback) => { try { boardRep.value.lineFocused = !boardRep.value.lineFocused; if (callback && !callback.handled) { @@ -80,7 +80,7 @@ nodecg.listenFor('ootBingo:toggleLineFocus', (_data, callback) => { } } }); -nodecg.listenFor('ootBingo:toggleCard', (_data, callback) => { +nodecg.listenFor('bingosync:toggleCard', (_data, callback) => { try { boardRep.value.cardHidden = !boardRep.value.cardHidden; if (callback && !callback.handled) { @@ -93,7 +93,7 @@ nodecg.listenFor('ootBingo:toggleCard', (_data, callback) => { } } }); -nodecg.listenFor('ootBingo:toggleEmbiggen', (_data, callback) => { +nodecg.listenFor('bingosync:toggleEmbiggen', (_data, callback) => { try { boardRep.value.embiggen = !boardRep.value.embiggen; if (callback && !callback.handled) { @@ -268,4 +268,4 @@ function destroyWebsocket() { } websocket = null; } -//# sourceMappingURL=oot-bingo.js.map \ No newline at end of file +//# sourceMappingURL=bingosync.js.map \ No newline at end of file diff --git a/dist/extension/oot-bingo.js.map b/dist/extension/bingosync.js.map similarity index 89% rename from dist/extension/oot-bingo.js.map rename to dist/extension/bingosync.js.map index e9c5cc9..2a81452 100644 --- a/dist/extension/oot-bingo.js.map +++ b/dist/extension/bingosync.js.map @@ -1 +1 @@ -{"version":3,"file":"oot-bingo.js","sourceRoot":"","sources":["../../src/extension/oot-bingo.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,WAAW;AACX,yDAAyD;AACzD,gCAAgC;AAChC,mCAAmC;AACnC,oCAAqC;AAErC,OAAO;AACP,8DAA8D;AAI9D,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAE5D,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC;AACtC,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,YAAY,CAAC,CAAC;AAChE,MAAM,OAAO,GAAG,cAAc,CAAC,Q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B,eAAe,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE;gBAChD,4CAA4C;gBAC5C,+DAA+D;YAChE,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB;IACxB,IAAI,CAAC,SAAS,EAAE;QACf,OAAO;KACP;IAED,IAAI;QACH,6BAA6B;QAC7B,SAAS,CAAC,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC5B,SAAS,CAAC,SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC/B,SAAS,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC7B,SAAS,CAAC,KAAK,EAAE,CAAC;QAClB,4BAA4B;KAC5B;IAAC,OAAO,MAAM,EAAE,EAAE,gCAAgC;QAClD,+BAA+B;KAC/B;IAED,SAAS,GAAG,IAAI,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"bingosync.js","sourceRoot":"","sources":["../../src/extension/bingosync.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,WAAW;AACX,yDAAyD;AACzD,gCAAgC;AAChC,mCAAmC;AACnC,oCAAqC;AAErC,OAAO;AACP,8DAA8D;AAI9D,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAE5D,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC;AACtC,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,YAAY,CAAC,CAAC;AAChE,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC,EAAC,GAAG,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,8CAA8C;AACpG,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAmB,iBAAiB,CAAC,CAAC;AACvE,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAoB,kBA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AgB;IACxB,IAAI,CAAC,SAAS,EAAE;QACf,OAAO;KACP;IAED,IAAI;QACH,6BAA6B;QAC7B,SAAS,CAAC,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC5B,SAAS,CAAC,SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC/B,SAAS,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAC7B,SAAS,CAAC,KAAK,EAAE,CAAC;QAClB,4BAA4B;KAC5B;IAAC,OAAO,MAAM,EAAE,EAAE,gCAAgC;QAClD,+BAA+B;KAC/B;IAED,SAAS,GAAG,IAAI,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/extension/intermissions.js b/dist/extension/intermissions.js index e76088b..437e578 100644 --- a/dist/extension/intermissions.js +++ b/dist/extension/intermissions.js @@ -490,4 +490,4 @@ async function sleep(milliseconds) { }, milliseconds); }); } -//# sourceMappingURL=intermissions.js.map +//# sourceMappingURL=intermissions.js.map \ No newline at end of file diff --git a/dist/extension/oot-bingo.d.ts b/dist/extension/oot-bingo.d.ts deleted file mode 100644 index 54d226e..0000000 --- a/dist/extension/oot-bingo.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=oot-bingo.d.ts.map \ No newline at end of file diff --git a/dist/extension/oot-bingo.d.ts.map b/dist/extension/oot-bingo.d.ts.map deleted file mode 100644 index c7b093d..0000000 --- a/dist/extension/oot-bingo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"oot-bingo.d.ts","sourceRoot":"","sources":["../../src/extension/oot-bingo.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/extension/twitter.js b/dist/extension/twitter.js index 4cd72cf..d73570f 100644 --- a/dist/extension/twitter.js +++ b/dist/extension/twitter.js @@ -145,4 +145,4 @@ function removeTweetById(idToRemove) { }); return didRemoveTweet; } -//# sourceMappingURL=twitter.js.map +//# sourceMappingURL=twitter.js.map \ No newline at end of file diff --git a/graphics/bingosync.html b/graphics/bingosync.html new file mode 100644 index 0000000..e9a1b07 --- /dev/null +++ b/graphics/bingosync.html @@ -0,0 +1,43 @@ + + + + + Bingosync Graphic + + + + + + + + + + + + + + + + + diff --git a/graphics/oot_bingo_dashboard.html b/graphics/bingosync_dashboard.html similarity index 88% rename from graphics/oot_bingo_dashboard.html rename to graphics/bingosync_dashboard.html index 3e00450..a7ef7de 100644 --- a/graphics/oot_bingo_dashboard.html +++ b/graphics/bingosync_dashboard.html @@ -2,7 +2,7 @@ - OoT Bingo Dashboard + Bingosync Dashboard @@ -13,7 +13,7 @@ + diff --git a/graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.js b/graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.js new file mode 100644 index 0000000..6161a61 --- /dev/null +++ b/graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.js @@ -0,0 +1,85 @@ +import * as tslib_1 from "tslib"; +const { customElement, property } = Polymer.decorators; +/** + * @customElement + * @polymer + * @appliesMixin Polymer.MutableData + */ +let AtomBingosyncBoardElement = class AtomBingosyncBoardElement extends Polymer.MutableData(Polymer.Element) { + /** + * @customElement + * @polymer + * @appliesMixin Polymer.MutableData + */ + constructor() { + super(...arguments); + this.lineFocused = true; + } + _computeLineFocused(lineFocused) { + return lineFocused; + } + _calcCells(cells, selectedLine, lineFocused) { + if (!lineFocused || !selectedLine) { + return cells; + } + switch (selectedLine) { + case 'row1': + case 'row2': + case 'row3': + case 'row4': + case 'row5': { + const rowIndex = parseInt(selectedLine.slice(3), 10) - 1; + const rowStart = rowIndex * 5; + return cells.slice(rowStart, rowStart + 5); + } + case 'col1': + case 'col2': + case 'col3': + case 'col4': + case 'col5': { + const columnStart = parseInt(selectedLine.slice(3), 10) - 1; + return [ + cells[columnStart], + cells[columnStart + 5], + cells[columnStart + 10], + cells[columnStart + 15], + cells[columnStart + 20] + ]; + } + case 'tl-br': { + return [ + cells[0], + cells[6], + cells[12], + cells[18], + cells[24] + ]; + } + case 'bl-tr': { + return [ + cells[20], + cells[16], + cells[12], + cells[8], + cells[4] + ]; + } + default: + return cells; + } + } + _calcComplete(cell) { + if (!cell || !cell.colors) { + return false; + } + return cell.colors.length > 0 && cell.colors !== 'none' && cell.colors !== 'blank'; + } +}; +tslib_1.__decorate([ + property({ type: Boolean, reflectToAttribute: true, computed: '_computeLineFocused(board.lineFocused)' }) +], AtomBingosyncBoardElement.prototype, "lineFocused", void 0); +AtomBingosyncBoardElement = tslib_1.__decorate([ + customElement('atom-bingosync-board') +], AtomBingosyncBoardElement); +export default AtomBingosyncBoardElement; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvbS1iaW5nb3N5bmMtYm9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhdG9tLWJpbmdvc3luYy1ib2FyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsTUFBTSxFQUFDLGFBQWEsRUFBRSxRQUFRLEVBQUMsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDO0FBUXJEOzs7O0dBSUc7QUFFSCxJQUFxQix5QkFBeUIsR0FBOUMsTUFBcUIseUJBQTBCLFNBQVEsT0FBTyxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDO0lBTjNGOzs7O09BSUc7SUFDSDs7UUFHQyxnQkFBVyxHQUFHLElBQUksQ0FBQztJQWlFcEIsQ0FBQztJQS9EQSxtQkFBbUIsQ0FBQyxXQUFvQjtRQUN2QyxPQUFPLFdBQVcsQ0FBQztJQUNwQixDQUFDO0lBRUQsVUFBVSxDQUFDLEtBQWtCLEVBQUUsWUFBb0IsRUFBRSxXQUFvQjtRQUN4RSxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsWUFBWSxFQUFFO1lBQ2xDLE9BQU8sS0FBSyxDQUFDO1NBQ2I7UUFFRCxRQUFRLFlBQVksRUFBRTtZQUN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UFDLENBQUM7b0JBQ1IsS0FBSyxDQUFDLEVBQUUsQ0FBQztvQkFDVCxLQUFLLENBQUMsRUFBRSxDQUFDO29CQUNULEtBQUssQ0FBQyxFQUFFLENBQUM7aUJBQ1QsQ0FBQzthQUNGO1lBQ0QsS0FBSyxPQUFPLENBQUMsQ0FBQztnQkFDYixPQUFPO29CQUNOLEtBQUssQ0FBQyxFQUFFLENBQUM7b0JBQ1QsS0FBSyxDQUFDLEVBQUUsQ0FBQztvQkFDVCxLQUFLLENBQUMsRUFBRSxDQUFDO29CQUNULEtBQUssQ0FBQyxDQUFDLENBQUM7b0JBQ1IsS0FBSyxDQUFDLENBQUMsQ0FBQztpQkFDUixDQUFDO2FBQ0Y7WUFDRDtnQkFDQyxPQUFPLEtBQUssQ0FBQztTQUNkO0lBQ0YsQ0FBQztJQUVELGFBQWEsQ0FBQyxJQUFnQjtRQUM3QixJQUFJLENBQUMsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRTtZQUMxQixPQUFPLEtBQUssQ0FBQztTQUNiO1FBRUQsT0FBTyxJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sR0FBRyxDQUFDLElBQUksSUFBSSxDQUFDLE1BQU0sS0FBSyxNQUFNLElBQUksSUFBSSxDQUFDLE1BQU0sS0FBSyxPQUFPLENBQUM7SUFDcEYsQ0FBQztDQUNELENBQUE7QUFqRUE7SUFEQyxRQUFRLENBQUMsRUFBQyxJQUFJLEVBQUUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsd0NBQXdDLEVBQUMsQ0FBQzs4REFDckY7QUFGQyx5QkFBeUI7SUFEN0MsYUFBYSxDQUFDLHNCQUFzQixDQUFDO0dBQ2pCLHlCQUF5QixDQW1FN0M7ZUFuRW9CLHlCQUF5QiJ9 \ No newline at end of file diff --git a/graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.ts b/graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.ts similarity index 92% rename from graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.ts rename to graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.ts index 25d18dd..c1e399e 100644 --- a/graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.ts +++ b/graphics/elements/atoms/atom-bingosync-board/atom-bingosync-board.ts @@ -11,8 +11,8 @@ interface BoardCell { * @polymer * @appliesMixin Polymer.MutableData */ -@customElement('atom-ootbingo-board') -export default class AtomOotbingoBoardElement extends Polymer.MutableData(Polymer.Element) { +@customElement('atom-bingosync-board') +export default class AtomBingosyncBoardElement extends Polymer.MutableData(Polymer.Element) { @property({type: Boolean, reflectToAttribute: true, computed: '_computeLineFocused(board.lineFocused)'}) lineFocused = true; diff --git a/graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.js b/graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.js deleted file mode 100644 index 6d6cb22..0000000 --- a/graphics/elements/atoms/atom-ootbingo-board/atom-ootbingo-board.js +++ /dev/null @@ -1,85 +0,0 @@ -import * as tslib_1 from "tslib"; -const { customElement, property } = Polymer.decorators; -/** - * @customElement - * @polymer - * @appliesMixin Polymer.MutableData - */ -let AtomOotbingoBoardElement = class AtomOotbingoBoardElement extends Polymer.MutableData(Polymer.Element) { - /** - * @customElement - * @polymer - * @appliesMixin Polymer.MutableData - */ - constructor() { - super(...arguments); - this.lineFocused = true; - } - _computeLineFocused(lineFocused) { - return lineFocused; - } - _calcCells(cells, selectedLine, lineFocused) { - if (!lineFocused || !selectedLine) { - return cells; - } - switch (selectedLine) { - case 'row1': - case 'row2': - case 'row3': - case 'row4': - case 'row5': { - const rowIndex = parseInt(selectedLine.slice(3), 10) - 1; - const rowStart = rowIndex * 5; - return cells.slice(rowStart, rowStart + 5); - } - case 'col1': - case 'col2': - case 'col3': - case 'col4': - case 'col5': { - const columnStart = parseInt(selectedLine.slice(3), 10) - 1; - return [ - cells[columnStart], - cells[columnStart + 5], - cells[columnStart + 10], - cells[columnStart + 15], - cells[columnStart + 20] - ]; - } - case 'tl-br': { - return [ - cells[0], - cells[6], - cells[12], - cells[18], - cells[24] - ]; - } - case 'bl-tr': { - return [ - cells[20], - cells[16], - cells[12], - cells[8], - cells[4] - ]; - } - default: - return cells; - } - } - _calcComplete(cell) { - if (!cell || !cell.colors) { - return false; - } - return cell.colors.length > 0 && cell.colors !== 'none' && cell.colors !== 'blank'; - } -}; -tslib_1.__decorate([ - property({ type: Boolean, reflectToAttribute: true, computed: '_computeLineFocused(board.lineFocused)' }) -], AtomOotbingoBoardElement.prototype, "lineFocused", void 0); -AtomOotbingoBoardElement = tslib_1.__decorate([ - customElement('atom-ootbingo-board') -], AtomOotbingoBoardElement); -export default AtomOotbingoBoardElement; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvbS1vb3RiaW5nby1ib2FyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImF0b20tb290YmluZ28tYm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQU0sRUFBQyxhQUFhLEVBQUUsUUFBUSxFQUFDLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztBQVFyRDs7OztHQUlHO0FBRUgsSUFBcUIsd0JBQXdCLEdBQTdDLE1BQXFCLHdCQUF5QixTQUFRLE9BQU8sQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQztJQU4xRjs7OztPQUlHO0lBQ0g7O1FBR0MsZ0JBQVcsR0FBRyxJQUFJLENBQUM7SUFpRXBCLENBQUM7SUEvREEsbUJBQW1CLENBQUMsV0FBb0I7UUFDdkMsT0FBTyxXQUFXLENBQUM7SUFDcEIsQ0FBQztJQUVELFVBQVUsQ0FBQyxLQUFrQixFQUFFLFlBQW9CLEVBQUUsV0FBb0I7UUFDeEUsSUFBSSxDQUFDLFdBQVcsSUFBSSxDQU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FtRTVDO2VBbkVvQix3QkFBd0IifQ== \ No newline at end of file diff --git a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.html b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.html similarity index 93% rename from graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.html rename to graphics/elements/interfaces/dash-bingosync/dash-bingosync.html index 9ef1bcc..b94673d 100644 --- a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.html +++ b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.html @@ -8,9 +8,9 @@ - + - + - + diff --git a/graphics/elements/interfaces/dash-bingosync/dash-bingosync.js b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.js new file mode 100644 index 0000000..e8ce4d2 --- /dev/null +++ b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.js @@ -0,0 +1,97 @@ +import * as tslib_1 from "tslib"; +const { customElement, property } = Polymer.decorators; +const boardRep = nodecg.Replicant('bingosync:board'); +/** + * @customElement + * @polymer + * @appliesMixin Polymer.MutableData + */ +let DashBingosyncElement = class DashBingosyncElement extends Polymer.MutableData(Polymer.Element) { + /** + * @customElement + * @polymer + * @appliesMixin Polymer.MutableData + */ + constructor() { + super(...arguments); + this._submitting = false; + } + ready() { + super.ready(); + this._$lineSelectors = Array.from(this.shadowRoot.querySelectorAll('.lineSelector')); + this._$lineSelectors.forEach(button => { + button.addEventListener('click', (event) => { + nodecg.sendMessage('bingosync:selectLine', event.target.innerText.toLowerCase()); + }); + }); + boardRep.on('change', newVal => { + if (!newVal) { + return; + } + this._$lineSelectors.forEach(button => { + if (button.innerText.toLowerCase() === newVal.selectedLine) { + button.setAttribute('selected', 'true'); + } + else { + button.removeAttribute('selected'); + } + }); + }); + } + toggleLineFocus() { + nodecg.sendMessage('bingosync:toggleLineFocus'); + } + toggleCard() { + nodecg.sendMessage('bingosync:toggleCard'); + } + toggleEmbiggen() { + nodecg.sendMessage('bingosync:toggleEmbiggen'); + } + async submit() { + this._submitting = true; + await nodecg.sendMessage('bingosync:joinRoom', { + siteUrl: this.$.siteUrl.value, + socketUrl: this.$.socketUrl.value, + playerName: this.$.playerName.value, + roomCode: this.$.roomCode.value, + passphrase: this.$.passphrase.value + }); + this._submitting = false; + } + defaults() { + this.$.siteUrl.value = 'https://bingosync.com'; + this.$.socketUrl.value = 'wss://sockets.bingosync.com'; + this.$.playerName.value = 'NodeCG'; + } + _computeStatus(socket) { + if (!socket) { + return 'disconnected'; + } + return socket.status; + } + _calcToggleClass(cardHidden) { + return cardHidden ? 'green' : 'red'; + } + _calcFocusToggleText(lineFocused) { + return lineFocused ? + 'See whole board' : + 'Focus on selected group'; + } + _calcToggleCardText(cardHidden) { + return cardHidden ? 'Show Card' : 'Hide Card'; + } + _calcToggleEmbiggenText(embiggen) { + return embiggen ? 'Debiggen Card' : 'Embiggen Card'; + } +}; +tslib_1.__decorate([ + property({ type: String }) +], DashBingosyncElement.prototype, "socket", void 0); +tslib_1.__decorate([ + property({ type: String, reflectToAttribute: true, computed: '_computeStatus(socket)' }) +], DashBingosyncElement.prototype, "status", void 0); +DashBingosyncElement = tslib_1.__decorate([ + customElement('dash-bingosync') +], DashBingosyncElement); +export default DashBingosyncElement; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaC1iaW5nb3N5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkYXNoLWJpbmdvc3luYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBR0EsTUFBTSxFQUFDLGFBQWEsRUFBRSxRQUFRLEVBQUMsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDO0FBQ3JELE1BQU0sUUFBUSxHQUFHLE1BQU0sQ0FBQyxTQUFTLENBQW1CLGlCQUFpQixDQUFDLENBQUM7QUFFdkU7Ozs7R0FJRztBQUVILElBQXFCLG9CQUFvQixHQUF6QyxNQUFxQixvQkFBcUIsU0FBUSxPQUFPLENBQUMsV0FBVyxDQUFD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b0IsQ0F5RnhDO2VBekZvQixvQkFBb0IifQ== \ No newline at end of file diff --git a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.ts b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.ts similarity index 73% rename from graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.ts rename to graphics/elements/interfaces/dash-bingosync/dash-bingosync.ts index 565a3ec..bd0e16f 100644 --- a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.ts +++ b/graphics/elements/interfaces/dash-bingosync/dash-bingosync.ts @@ -1,18 +1,18 @@ -import {OotBingo3Aboard} from '../../../../src/types/schemas/ootBingo%3Aboard'; -import {OotBingo3Asocket} from '../../../../src/types/schemas/ootBingo%3Asocket'; +import {Bingosync3Aboard} from '../../../../src/types/schemas/bingosync%3Aboard'; +import {Bingosync3Asocket} from '../../../../src/types/schemas/bingosync%3Asocket'; const {customElement, property} = Polymer.decorators; -const boardRep = nodecg.Replicant('ootBingo:board'); +const boardRep = nodecg.Replicant('bingosync:board'); /** * @customElement * @polymer * @appliesMixin Polymer.MutableData */ -@customElement('dash-ootbingo') -export default class DashOotbingoElement extends Polymer.MutableData(Polymer.Element) { +@customElement('dash-bingosync') +export default class DashBingosyncElement extends Polymer.MutableData(Polymer.Element) { @property({type: String}) - socket: OotBingo3Asocket; + socket: Bingosync3Asocket; @property({type: String, reflectToAttribute: true, computed: '_computeStatus(socket)'}) status: string; @@ -25,7 +25,7 @@ export default class DashOotbingoElement extends Polymer.MutableData(Polymer.Ele this._$lineSelectors = Array.from(this.shadowRoot!.querySelectorAll('.lineSelector')) as PaperButtonElement[]; this._$lineSelectors.forEach(button => { button.addEventListener('click', (event: Event) => { - nodecg.sendMessage('ootBingo:selectLine', (event.target as PaperButtonElement).innerText.toLowerCase()); + nodecg.sendMessage('bingosync:selectLine', (event.target as PaperButtonElement).innerText.toLowerCase()); }); }); @@ -45,20 +45,20 @@ export default class DashOotbingoElement extends Polymer.MutableData(Polymer.Ele } toggleLineFocus() { - nodecg.sendMessage('ootBingo:toggleLineFocus'); + nodecg.sendMessage('bingosync:toggleLineFocus'); } toggleCard() { - nodecg.sendMessage('ootBingo:toggleCard'); + nodecg.sendMessage('bingosync:toggleCard'); } toggleEmbiggen() { - nodecg.sendMessage('ootBingo:toggleEmbiggen'); + nodecg.sendMessage('bingosync:toggleEmbiggen'); } async submit() { this._submitting = true; - await nodecg.sendMessage('ootBingo:joinRoom', { + await nodecg.sendMessage('bingosync:joinRoom', { siteUrl: (this.$.siteUrl as PaperInputElement).value, socketUrl: (this.$.socketUrl as PaperInputElement).value, playerName: (this.$.playerName as PaperInputElement).value, @@ -74,7 +74,7 @@ export default class DashOotbingoElement extends Polymer.MutableData(Polymer.Ele (this.$.playerName as PaperInputElement).value = 'NodeCG'; } - _computeStatus(socket?: OotBingo3Asocket) { + _computeStatus(socket?: Bingosync3Asocket) { if (!socket) { return 'disconnected'; } diff --git a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.js b/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.js deleted file mode 100644 index 1a1e171..0000000 --- a/graphics/elements/interfaces/dash-ootbingo/dash-ootbingo.js +++ /dev/null @@ -1,97 +0,0 @@ -import * as tslib_1 from "tslib"; -const { customElement, property } = Polymer.decorators; -const boardRep = nodecg.Replicant('ootBingo:board'); -/** - * @customElement - * @polymer - * @appliesMixin Polymer.MutableData - */ -let DashOotbingoElement = class DashOotbingoElement extends Polymer.MutableData(Polymer.Element) { - /** - * @customElement - * @polymer - * @appliesMixin Polymer.MutableData - */ - constructor() { - super(...arguments); - this._submitting = false; - } - ready() { - super.ready(); - this._$lineSelectors = Array.from(this.shadowRoot.querySelectorAll('.lineSelector')); - this._$lineSelectors.forEach(button => { - button.addEventListener('click', (event) => { - nodecg.sendMessage('ootBingo:selectLine', event.target.innerText.toLowerCase()); - }); - }); - boardRep.on('change', newVal => { - if (!newVal) { - return; - } - this._$lineSelectors.forEach(button => { - if (button.innerText.toLowerCase() === newVal.selectedLine) { - button.setAttribute('selected', 'true'); - } - else { - button.removeAttribute('selected'); - } - }); - }); - } - toggleLineFocus() { - nodecg.sendMessage('ootBingo:toggleLineFocus'); - } - toggleCard() { - nodecg.sendMessage('ootBingo:toggleCard'); - } - toggleEmbiggen() { - nodecg.sendMessage('ootBingo:toggleEmbiggen'); - } - async submit() { - this._submitting = true; - await nodecg.sendMessage('ootBingo:joinRoom', { - siteUrl: this.$.siteUrl.value, - socketUrl: this.$.socketUrl.value, - playerName: this.$.playerName.value, - roomCode: this.$.roomCode.value, - passphrase: this.$.passphrase.value - }); - this._submitting = false; - } - defaults() { - this.$.siteUrl.value = 'https://bingosync.com'; - this.$.socketUrl.value = 'wss://sockets.bingosync.com'; - this.$.playerName.value = 'NodeCG'; - } - _computeStatus(socket) { - if (!socket) { - return 'disconnected'; - } - return socket.status; - } - _calcToggleClass(cardHidden) { - return cardHidden ? 'green' : 'red'; - } - _calcFocusToggleText(lineFocused) { - return lineFocused ? - 'See whole board' : - 'Focus on selected group'; - } - _calcToggleCardText(cardHidden) { - return cardHidden ? 'Show Card' : 'Hide Card'; - } - _calcToggleEmbiggenText(embiggen) { - return embiggen ? 'Debiggen Card' : 'Embiggen Card'; - } -}; -tslib_1.__decorate([ - property({ type: String }) -], DashOotbingoElement.prototype, "socket", void 0); -tslib_1.__decorate([ - property({ type: String, reflectToAttribute: true, computed: '_computeStatus(socket)' }) -], DashOotbingoElement.prototype, "status", void 0); -DashOotbingoElement = tslib_1.__decorate([ - customElement('dash-ootbingo') -], DashOotbingoElement); -export default DashOotbingoElement; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaC1vb3RiaW5nby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRhc2gtb290YmluZ28udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE1BQU0sRUFBQyxhQUFhLEVBQUUsUUFBUSxFQUFDLEdBQUcsT0FBTyxD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UM7bURBQ0E7QUFHekI7SUFEQyxRQUFRLENBQUMsRUFBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLGtCQUFrQixFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsd0JBQXdCLEVBQUMsQ0FBQzttREFDeEU7QUFMSyxtQkFBbUI7SUFEdkMsYUFBYSxDQUFDLGVBQWUsQ0FBQztHQUNWLG1CQUFtQixDQXlGdkM7ZUF6Rm9CLG1CQUFtQiJ9 \ No newline at end of file diff --git a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.html b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.html similarity index 75% rename from graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.html rename to graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.html index e46154c..0bb7fa9 100644 --- a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.html +++ b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.html @@ -1,7 +1,7 @@ - + - + - + diff --git a/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.js b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.js new file mode 100644 index 0000000..0534cf1 --- /dev/null +++ b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.js @@ -0,0 +1,90 @@ +import * as tslib_1 from "tslib"; +var GDQBingosyncBoardElement_1; +import { TweenLite, Sine, Power2 } from 'gsap'; +const { customElement, property } = Polymer.decorators; +const boardRep = nodecg.Replicant('bingosync:board'); +const urlParams = new URLSearchParams(window.location.search); +const embiggenUrlParam = urlParams.get('embiggen'); +let EMBIGGEN; +if (embiggenUrlParam === 'true') { + EMBIGGEN = true; + window.title += ' - EMBIGGENED'; +} +else if (embiggenUrlParam === 'false') { + EMBIGGEN = false; + window.title += ' - debiggened'; +} +else { + EMBIGGEN = null; +} +/** + * @customElement + * @polymer + */ +let GDQBingosyncBoardElement = GDQBingosyncBoardElement_1 = class GDQBingosyncBoardElement extends Polymer.Element { + /** + * @customElement + * @polymer + */ + constructor() { + super(...arguments); + this.embiggened = Boolean(EMBIGGEN); + this._embiggenState = false; + this._hiddenState = false; + } + ready() { + super.ready(); + boardRep.on('change', newVal => { + if (!newVal) { + return; + } + this._embiggenState = newVal.embiggen; + this._hiddenState = newVal.cardHidden; + }); + } + _embiggenStateChanged(newVal) { + if (EMBIGGEN === null) { + return; + } + if ((newVal && EMBIGGEN) || (!newVal && !EMBIGGEN)) { + TweenLite.to(this, 0.3, { + opacity: 1, + ease: Sine.easeInOut + }); + } + else { + TweenLite.to(this, 0.3, { + opacity: 0, + ease: Sine.easeInOut + }); + } + } + _hiddenStateChanged(newVal) { + if (newVal) { + TweenLite.to(this.$.cover, 0.3, { + y: '0%', + ease: Power2.easeOut + }); + } + else { + TweenLite.to(this.$.cover, 0.3, { + y: '-100%', + ease: Power2.easeIn + }); + } + } +}; +tslib_1.__decorate([ + property({ type: Boolean, reflectToAttribute: true }) +], GDQBingosyncBoardElement.prototype, "embiggened", void 0); +tslib_1.__decorate([ + property({ type: Boolean, observer: GDQBingosyncBoardElement_1.prototype._embiggenStateChanged }) +], GDQBingosyncBoardElement.prototype, "_embiggenState", void 0); +tslib_1.__decorate([ + property({ type: Boolean, observer: GDQBingosyncBoardElement_1.prototype._hiddenStateChanged }) +], GDQBingosyncBoardElement.prototype, "_hiddenState", void 0); +GDQBingosyncBoardElement = GDQBingosyncBoardElement_1 = tslib_1.__decorate([ + customElement('gdq-bingosync-board') +], GDQBingosyncBoardElement); +export default GDQBingosyncBoardElement; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2RxLWJpbmdvc3luYy1ib2FyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImdkcS1iaW5nb3N5bmMtYm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxPQUFPLEVBQUMsU0FBUyxFQUFFLElBQUks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O1NBQ0g7YUFBTTtZQUNOLFNBQVMsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsR0FBRyxFQUFFO2dCQUMvQixDQUFDLEVBQUUsT0FBTztnQkFDVixJQUFJLEVBQUUsTUFBTSxDQUFDLE1BQU07YUFDbkIsQ0FBQyxDQUFDO1NBQ0g7SUFDRixDQUFDO0NBQ0QsQ0FBQTtBQW5EQTtJQURDLFFBQVEsQ0FBQyxFQUFDLElBQUksRUFBRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsSUFBSSxFQUFDLENBQUM7NERBQ1o7QUFHeEM7SUFEQyxRQUFRLENBQUMsRUFBQyxJQUFJLEVBQUUsT0FBTyxFQUFFLFFBQVEsRUFBRSwwQkFBd0IsQ0FBQyxTQUFTLENBQUMscUJBQXFCLEVBQUMsQ0FBQztnRUFDdkU7QUFHdkI7SUFEQyxRQUFRLENBQUMsRUFBQyxJQUFJLEVBQUUsT0FBTyxFQUFFLFFBQVEsRUFBRSwwQkFBd0IsQ0FBQyxTQUFTLENBQUMsbUJBQW1CLEVBQUMsQ0FBQzs4REFDdkU7QUFSRCx3QkFBd0I7SUFENUMsYUFBYSxDQUFDLHFCQUFxQixDQUFDO0dBQ2hCLHdCQUF3QixDQXFENUM7ZUFyRG9CLHdCQUF3QiJ9 \ No newline at end of file diff --git a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.ts b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.ts similarity index 75% rename from graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.ts rename to graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.ts index 824d318..df23c8e 100644 --- a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.ts +++ b/graphics/elements/molecules/gdq-bingosync-board/gdq-bingosync-board.ts @@ -1,8 +1,8 @@ -import {OotBingo3Aboard} from '../../../../src/types/schemas/ootBingo%3Aboard'; +import {Bingosync3Aboard} from '../../../../src/types/schemas/bingosync%3Aboard'; import {TweenLite, Sine, Power2} from 'gsap'; const {customElement, property} = Polymer.decorators; -const boardRep = nodecg.Replicant('ootBingo:board'); +const boardRep = nodecg.Replicant('bingosync:board'); const urlParams = new URLSearchParams(window.location.search); const embiggenUrlParam = urlParams.get('embiggen'); let EMBIGGEN: boolean | null; @@ -20,15 +20,15 @@ if (embiggenUrlParam === 'true') { * @customElement * @polymer */ -@customElement('gdq-ootbingo-board') -export default class GDQOotbingoBoardElement extends Polymer.Element { +@customElement('gdq-bingosync-board') +export default class GDQBingosyncBoardElement extends Polymer.Element { @property({type: Boolean, reflectToAttribute: true}) embiggened: boolean = Boolean(EMBIGGEN); - @property({type: Boolean, observer: GDQOotbingoBoardElement.prototype._embiggenStateChanged}) + @property({type: Boolean, observer: GDQBingosyncBoardElement.prototype._embiggenStateChanged}) _embiggenState = false; - @property({type: Boolean, observer: GDQOotbingoBoardElement.prototype._hiddenStateChanged}) + @property({type: Boolean, observer: GDQBingosyncBoardElement.prototype._hiddenStateChanged}) _hiddenState = false; ready() { diff --git a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.js b/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.js deleted file mode 100644 index 49312c4..0000000 --- a/graphics/elements/molecules/gdq-ootbingo-board/gdq-ootbingo-board.js +++ /dev/null @@ -1,90 +0,0 @@ -import * as tslib_1 from "tslib"; -var GDQOotbingoBoardElement_1; -import { TweenLite, Sine, Power2 } from 'gsap'; -const { customElement, property } = Polymer.decorators; -const boardRep = nodecg.Replicant('ootBingo:board'); -const urlParams = new URLSearchParams(window.location.search); -const embiggenUrlParam = urlParams.get('embiggen'); -let EMBIGGEN; -if (embiggenUrlParam === 'true') { - EMBIGGEN = true; - window.title += ' - EMBIGGENED'; -} -else if (embiggenUrlParam === 'false') { - EMBIGGEN = false; - window.title += ' - debiggened'; -} -else { - EMBIGGEN = null; -} -/** - * @customElement - * @polymer - */ -let GDQOotbingoBoardElement = GDQOotbingoBoardElement_1 = class GDQOotbingoBoardElement extends Polymer.Element { - /** - * @customElement - * @polymer - */ - constructor() { - super(...arguments); - this.embiggened = Boolean(EMBIGGEN); - this._embiggenState = false; - this._hiddenState = false; - } - ready() { - super.ready(); - boardRep.on('change', newVal => { - if (!newVal) { - return; - } - this._embiggenState = newVal.embiggen; - this._hiddenState = newVal.cardHidden; - }); - } - _embiggenStateChanged(newVal) { - if (EMBIGGEN === null) { - return; - } - if ((newVal && EMBIGGEN) || (!newVal && !EMBIGGEN)) { - TweenLite.to(this, 0.3, { - opacity: 1, - ease: Sine.easeInOut - }); - } - else { - TweenLite.to(this, 0.3, { - opacity: 0, - ease: Sine.easeInOut - }); - } - } - _hiddenStateChanged(newVal) { - if (newVal) { - TweenLite.to(this.$.cover, 0.3, { - y: '0%', - ease: Power2.easeOut - }); - } - else { - TweenLite.to(this.$.cover, 0.3, { - y: '-100%', - ease: Power2.easeIn - }); - } - } -}; -tslib_1.__decorate([ - property({ type: Boolean, reflectToAttribute: true }) -], GDQOotbingoBoardElement.prototype, "embiggened", void 0); -tslib_1.__decorate([ - property({ type: Boolean, observer: GDQOotbingoBoardElement_1.prototype._embiggenStateChanged }) -], GDQOotbingoBoardElement.prototype, "_embiggenState", void 0); -tslib_1.__decorate([ - property({ type: Boolean, observer: GDQOotbingoBoardElement_1.prototype._hiddenStateChanged }) -], GDQOotbingoBoardElement.prototype, "_hiddenState", void 0); -GDQOotbingoBoardElement = GDQOotbingoBoardElement_1 = tslib_1.__decorate([ - customElement('gdq-ootbingo-board') -], GDQOotbingoBoardElement); -export default GDQOotbingoBoardElement; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2RxLW9vdGJpbmdvLWJvYXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZ2RxLW9vdGJpbmdvLWJvYXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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JBQ1AsSUFBSSxFQUFFLE1BQU0sQ0FBQyxPQUFPO2FBQ3BCLENBQUMsQ0FBQztTQUNIO2FBQU07WUFDTixTQUFTLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLEdBQUcsRUFBRTtnQkFDL0IsQ0FBQyxFQUFFLE9BQU87Z0JBQ1YsSUFBSSxFQUFFLE1BQU0sQ0FBQyxNQUFNO2FBQ25CLENBQUMsQ0FBQztTQUNIO0lBQ0YsQ0FBQztDQUNELENBQUE7QUFuREE7SUFEQyxRQUFRLENBQUMsRUFBQyxJQUFJLEVBQUUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLElBQUksRUFBQyxDQUFDOzJEQUNaO0FBR3hDO0lBREMsUUFBUSxDQUFDLEVBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUseUJBQXVCLENBQUMsU0FBUyxDQUFDLHFCQUFxQixFQUFDLENBQUM7K0RBQ3RFO0FBR3ZCO0lBREMsUUFBUSxDQUFDLEVBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUseUJBQXVCLENBQUMsU0FBUyxDQUFDLG1CQUFtQixFQUFDLENBQUM7NkRBQ3RFO0FBUkQsdUJBQXVCO0lBRDNDLGFBQWEsQ0FBQyxvQkFBb0IsQ0FBQztHQUNmLHVCQUF1QixDQXFEM0M7ZUFyRG9CLHVCQUF1QiJ9 \ No newline at end of file diff --git a/graphics/oot_bingo.html b/graphics/oot_bingo.html deleted file mode 100644 index 42f6393..0000000 --- a/graphics/oot_bingo.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - OoT Bingo Board - - - - - - - - - - - diff --git a/package.json b/package.json index 164e4ce..f1cfe07 100644 --- a/package.json +++ b/package.json @@ -282,12 +282,12 @@ "height": 1080 }, { - "file": "oot_bingo.html", + "file": "bingosync.html", "width": 474, "height": 355 }, { - "file": "oot_bingo_dashboard.html", + "file": "bingosync_dashboard.html", "width": 1920, "height": 1080 }, @@ -409,6 +409,6 @@ "generate-fixture-screenshots": "generate-fixture-screenshots", "debug-fixture-screenshots": "generate-fixture-screenshots --debug", "mock-donations": "node ./scripts/test_donation_server", - "schema-types": "node scripts/schema-types.js" + "schema-types": "nodecg schema-types" } } diff --git a/schemas/ootBingo%3Aboard.json b/schemas/bingosync%3Aboard.json similarity index 100% rename from schemas/ootBingo%3Aboard.json rename to schemas/bingosync%3Aboard.json diff --git a/schemas/ootBingo%3Asocket.json b/schemas/bingosync%3Asocket.json similarity index 100% rename from schemas/ootBingo%3Asocket.json rename to schemas/bingosync%3Asocket.json diff --git a/scripts/schema-types.js b/scripts/schema-types.js deleted file mode 100644 index 8881eda..0000000 --- a/scripts/schema-types.js +++ /dev/null @@ -1,48 +0,0 @@ -// Courtesy of @Hoishin: https://github.com/nodecg/nodecg/pull/432#issuecomment-413478698 -'use strict'; - -const fs = require('fs'); -const path = require('path'); -const util = require('util'); -const {compileFromFile} = require('json-schema-to-typescript'); -const appRoot = require('app-root-path'); - -const writeFilePromise = util.promisify(fs.writeFile); - -const outDir = appRoot.resolve('src/types/schemas'); -const schemasDir = appRoot.resolve('schemas'); -const schemas = fs.readdirSync(schemasDir).filter(f => f.endsWith('.json')); - -const style = { - singleQuote: true, - useTabs: true -}; - -const compile = (input, output, cwd = appRoot.path) => - compileFromFile(input, { - cwd, - declareExternallyReferenced: true, - enableConstEnums: true, - style - }) - .then(ts => writeFilePromise(output, ts)) - .then(() => { - console.log(output); - }) - .catch(err => { - console.error(err); - }); - -compile( - appRoot.resolve('configschema.json'), - path.resolve(outDir, 'configschema.d.ts'), - style -); - -for (const schema of schemas) { - compile( - path.resolve(schemasDir, schema), - path.resolve(outDir, schema.replace(/\.json$/i, '.d.ts')), - schemasDir - ); -} diff --git a/src/extension/oot-bingo.ts b/src/extension/bingosync.ts similarity index 91% rename from src/extension/oot-bingo.ts rename to src/extension/bingosync.ts index 5135864..444e9e4 100644 --- a/src/extension/oot-bingo.ts +++ b/src/extension/bingosync.ts @@ -8,20 +8,20 @@ import equal = require('deep-equal'); // Ours import * as nodecgApiContext from './util/nodecg-api-context'; -import {OotBingo3Aboard} from '../types/schemas/ootBingo%3Aboard'; -import {OotBingo3Asocket} from '../types/schemas/ootBingo%3Asocket'; +import {Bingosync3Aboard} from '../types/schemas/bingosync%3Aboard'; +import {Bingosync3Asocket} from '../types/schemas/bingosync%3Asocket'; const SOCKET_KEY_REGEX = /temporarySocketKey\s+=\s+"(\S+)"/; const nodecg = nodecgApiContext.get(); const log = new nodecg.Logger(`${nodecg.bundleName}:oot-bingo`); const request = RequestPromise.defaults({jar: true}); // <= Automatically saves and re-uses cookies. -const boardRep = nodecg.Replicant('ootBingo:board'); -const socketRep = nodecg.Replicant('ootBingo:socket'); +const boardRep = nodecg.Replicant('bingosync:board'); +const socketRep = nodecg.Replicant('bingosync:socket'); let fullUpdateInterval: NodeJS.Timer; let websocket: WebSocket | null = null; -nodecg.listenFor('ootBingo:joinRoom', async (data, callback) => { +nodecg.listenFor('bingosync:joinRoom', async (data, callback) => { try { socketRep.value = { ...socketRep.value, @@ -47,7 +47,7 @@ nodecg.listenFor('ootBingo:joinRoom', async (data, callback) => { } }); -nodecg.listenFor('ootBingo:leaveRoom', (_data, callback) => { +nodecg.listenFor('bingosync:leaveRoom', (_data, callback) => { try { clearInterval(fullUpdateInterval); destroyWebsocket(); @@ -63,7 +63,7 @@ nodecg.listenFor('ootBingo:leaveRoom', (_data, callback) => { } }); -nodecg.listenFor('ootBingo:selectLine', (lineString, callback) => { +nodecg.listenFor('bingosync:selectLine', (lineString, callback) => { try { boardRep.value.selectedLine = lineString; if (callback && !callback.handled) { @@ -76,7 +76,7 @@ nodecg.listenFor('ootBingo:selectLine', (lineString, callback) => { } }); -nodecg.listenFor('ootBingo:toggleLineFocus', (_data, callback) => { +nodecg.listenFor('bingosync:toggleLineFocus', (_data, callback) => { try { boardRep.value.lineFocused = !boardRep.value.lineFocused; if (callback && !callback.handled) { @@ -89,7 +89,7 @@ nodecg.listenFor('ootBingo:toggleLineFocus', (_data, callback) => { } }); -nodecg.listenFor('ootBingo:toggleCard', (_data, callback) => { +nodecg.listenFor('bingosync:toggleCard', (_data, callback) => { try { boardRep.value.cardHidden = !boardRep.value.cardHidden; if (callback && !callback.handled) { @@ -102,7 +102,7 @@ nodecg.listenFor('ootBingo:toggleCard', (_data, callback) => { } }); -nodecg.listenFor('ootBingo:toggleEmbiggen', (_data, callback) => { +nodecg.listenFor('bingosync:toggleEmbiggen', (_data, callback) => { try { boardRep.value.embiggen = !boardRep.value.embiggen; if (callback && !callback.handled) { diff --git a/src/types/schemas/autoUpdateTotal.d.ts b/src/types/schemas/autoUpdateTotal.d.ts index 4662925..6df4d36 100644 --- a/src/types/schemas/autoUpdateTotal.d.ts +++ b/src/types/schemas/autoUpdateTotal.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/autoUploadRecordings.d.ts b/src/types/schemas/autoUploadRecordings.d.ts index c33504d..c1cd264 100644 --- a/src/types/schemas/autoUploadRecordings.d.ts +++ b/src/types/schemas/autoUploadRecordings.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/ootBingo%3Aboard.d.ts b/src/types/schemas/bingosync%3Aboard.d.ts similarity index 90% rename from src/types/schemas/ootBingo%3Aboard.d.ts rename to src/types/schemas/bingosync%3Aboard.d.ts index 3192b0b..f1787e0 100644 --- a/src/types/schemas/ootBingo%3Aboard.d.ts +++ b/src/types/schemas/bingosync%3Aboard.d.ts @@ -1,10 +1,11 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ -export interface OotBingo3Aboard { +export interface Bingosync3Aboard { cells: { slot: string; colors: string; diff --git a/src/types/schemas/ootBingo%3Asocket.d.ts b/src/types/schemas/bingosync%3Asocket.d.ts similarity index 86% rename from src/types/schemas/ootBingo%3Asocket.d.ts rename to src/types/schemas/bingosync%3Asocket.d.ts index 36c145f..d99748c 100644 --- a/src/types/schemas/ootBingo%3Asocket.d.ts +++ b/src/types/schemas/bingosync%3Asocket.d.ts @@ -1,10 +1,11 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ -export interface OotBingo3Asocket { +export interface Bingosync3Asocket { status: 'connected' | 'connecting' | 'disconnected' | 'error'; siteUrl: string; socketUrl: string; diff --git a/src/types/schemas/bits%3Atotal.d.ts b/src/types/schemas/bits%3Atotal.d.ts index 5674eb6..3668f8d 100644 --- a/src/types/schemas/bits%3Atotal.d.ts +++ b/src/types/schemas/bits%3Atotal.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/canSeekSchedule.d.ts b/src/types/schemas/canSeekSchedule.d.ts index 458208a..879041d 100644 --- a/src/types/schemas/canSeekSchedule.d.ts +++ b/src/types/schemas/canSeekSchedule.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/caspar%3Aconnected.d.ts b/src/types/schemas/caspar%3Aconnected.d.ts index 011a78f..247b53d 100644 --- a/src/types/schemas/caspar%3Aconnected.d.ts +++ b/src/types/schemas/caspar%3Aconnected.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/caspar%3Afiles.d.ts b/src/types/schemas/caspar%3Afiles.d.ts index a40ef3f..4bde523 100644 --- a/src/types/schemas/caspar%3Afiles.d.ts +++ b/src/types/schemas/caspar%3Afiles.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/checklist.d.ts b/src/types/schemas/checklist.d.ts index c12b27f..ef020e2 100644 --- a/src/types/schemas/checklist.d.ts +++ b/src/types/schemas/checklist.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/checklistComplete.d.ts b/src/types/schemas/checklistComplete.d.ts index 576ddfa..28647a8 100644 --- a/src/types/schemas/checklistComplete.d.ts +++ b/src/types/schemas/checklistComplete.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/configschema.d.ts b/src/types/schemas/configschema.d.ts index 7c493b7..c3e6fca 100644 --- a/src/types/schemas/configschema.d.ts +++ b/src/types/schemas/configschema.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/countdown.d.ts b/src/types/schemas/countdown.d.ts index 6b5bdc6..a8d88f7 100644 --- a/src/types/schemas/countdown.d.ts +++ b/src/types/schemas/countdown.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/countdownRunning.d.ts b/src/types/schemas/countdownRunning.d.ts index b9a3fa2..583497b 100644 --- a/src/types/schemas/countdownRunning.d.ts +++ b/src/types/schemas/countdownRunning.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/currentHost.d.ts b/src/types/schemas/currentHost.d.ts index b3480da..3305aa0 100644 --- a/src/types/schemas/currentHost.d.ts +++ b/src/types/schemas/currentHost.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/currentIntermission.d.ts b/src/types/schemas/currentIntermission.d.ts index 90bb425..2dac8e1 100644 --- a/src/types/schemas/currentIntermission.d.ts +++ b/src/types/schemas/currentIntermission.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/currentRun.d.ts b/src/types/schemas/currentRun.d.ts index a44f069..a8ce35b 100644 --- a/src/types/schemas/currentRun.d.ts +++ b/src/types/schemas/currentRun.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/fanartTweets.d.ts b/src/types/schemas/fanartTweets.d.ts index 1631f45..31d7625 100644 --- a/src/types/schemas/fanartTweets.d.ts +++ b/src/types/schemas/fanartTweets.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/gameAudioChannels.d.ts b/src/types/schemas/gameAudioChannels.d.ts index d8d6789..81a49fe 100644 --- a/src/types/schemas/gameAudioChannels.d.ts +++ b/src/types/schemas/gameAudioChannels.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/gdq%3AcurrentLayout.d.ts b/src/types/schemas/gdq%3AcurrentLayout.d.ts index 03a4db1..4b8fc68 100644 --- a/src/types/schemas/gdq%3AcurrentLayout.d.ts +++ b/src/types/schemas/gdq%3AcurrentLayout.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3Anames.d.ts b/src/types/schemas/interview%3Anames.d.ts index 1a5ecd0..3ef52fe 100644 --- a/src/types/schemas/interview%3Anames.d.ts +++ b/src/types/schemas/interview%3Anames.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AprizePlaylist.d.ts b/src/types/schemas/interview%3AprizePlaylist.d.ts index e748c98..a3c6f3a 100644 --- a/src/types/schemas/interview%3AprizePlaylist.d.ts +++ b/src/types/schemas/interview%3AprizePlaylist.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AquestionShowing.d.ts b/src/types/schemas/interview%3AquestionShowing.d.ts index c43fe8b..464e5b9 100644 --- a/src/types/schemas/interview%3AquestionShowing.d.ts +++ b/src/types/schemas/interview%3AquestionShowing.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AquestionSortMap.d.ts b/src/types/schemas/interview%3AquestionSortMap.d.ts index ccb32c8..35ef3c8 100644 --- a/src/types/schemas/interview%3AquestionSortMap.d.ts +++ b/src/types/schemas/interview%3AquestionSortMap.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AquestionTweets.d.ts b/src/types/schemas/interview%3AquestionTweets.d.ts index 8e3e92c..abfd605 100644 --- a/src/types/schemas/interview%3AquestionTweets.d.ts +++ b/src/types/schemas/interview%3AquestionTweets.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AshowPrizesOnMonitor.d.ts b/src/types/schemas/interview%3AshowPrizesOnMonitor.d.ts index 7421344..7e4fb19 100644 --- a/src/types/schemas/interview%3AshowPrizesOnMonitor.d.ts +++ b/src/types/schemas/interview%3AshowPrizesOnMonitor.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3Astopwatch.d.ts b/src/types/schemas/interview%3Astopwatch.d.ts index 075482b..c73158c 100644 --- a/src/types/schemas/interview%3Astopwatch.d.ts +++ b/src/types/schemas/interview%3Astopwatch.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/interview%3AthrowIncoming.d.ts b/src/types/schemas/interview%3AthrowIncoming.d.ts index 0f4a305..083421f 100644 --- a/src/types/schemas/interview%3AthrowIncoming.d.ts +++ b/src/types/schemas/interview%3AthrowIncoming.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/nextRun.d.ts b/src/types/schemas/nextRun.d.ts index 09bb492..26b4474 100644 --- a/src/types/schemas/nextRun.d.ts +++ b/src/types/schemas/nextRun.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/nowPlaying.d.ts b/src/types/schemas/nowPlaying.d.ts index e71632b..bc799b8 100644 --- a/src/types/schemas/nowPlaying.d.ts +++ b/src/types/schemas/nowPlaying.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/obs%3AcyclingRecordings.d.ts b/src/types/schemas/obs%3AcyclingRecordings.d.ts index c00e6ac..c3062a5 100644 --- a/src/types/schemas/obs%3AcyclingRecordings.d.ts +++ b/src/types/schemas/obs%3AcyclingRecordings.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/recordTrackerEnabled.d.ts b/src/types/schemas/recordTrackerEnabled.d.ts index 55ce4d6..85a9dd3 100644 --- a/src/types/schemas/recordTrackerEnabled.d.ts +++ b/src/types/schemas/recordTrackerEnabled.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/scores.d.ts b/src/types/schemas/scores.d.ts index 137a65a..f263f3c 100644 --- a/src/types/schemas/scores.d.ts +++ b/src/types/schemas/scores.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/smalttpData.d.ts b/src/types/schemas/smalttpData.d.ts index 114230c..924f93e 100644 --- a/src/types/schemas/smalttpData.d.ts +++ b/src/types/schemas/smalttpData.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/stopwatch.d.ts b/src/types/schemas/stopwatch.d.ts index df384b1..acdf3eb 100644 --- a/src/types/schemas/stopwatch.d.ts +++ b/src/types/schemas/stopwatch.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/total.d.ts b/src/types/schemas/total.d.ts index 63112fb..e4dcce1 100644 --- a/src/types/schemas/total.d.ts +++ b/src/types/schemas/total.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/tweets.d.ts b/src/types/schemas/tweets.d.ts index 61f1d27..e7d0910 100644 --- a/src/types/schemas/tweets.d.ts +++ b/src/types/schemas/tweets.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/twitch%3AcanPlayAd.d.ts b/src/types/schemas/twitch%3AcanPlayAd.d.ts index ec56bbb..0837fa7 100644 --- a/src/types/schemas/twitch%3AcanPlayAd.d.ts +++ b/src/types/schemas/twitch%3AcanPlayAd.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/victorOps%3Aincidents.d.ts b/src/types/schemas/victorOps%3Aincidents.d.ts index 8c51a7f..ee92f41 100644 --- a/src/types/schemas/victorOps%3Aincidents.d.ts +++ b/src/types/schemas/victorOps%3Aincidents.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/src/types/schemas/victorOps%3AroutingKeys.d.ts b/src/types/schemas/victorOps%3AroutingKeys.d.ts index dfce0c1..c3a515f 100644 --- a/src/types/schemas/victorOps%3AroutingKeys.d.ts +++ b/src/types/schemas/victorOps%3AroutingKeys.d.ts @@ -1,3 +1,4 @@ +/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,