#542 feat(dashboard): Add graphic obs drag parameters

Open Clubwho Clubwho
Coverage Reach
lib/replicant/shared.js lib/replicant/replicant.js lib/replicant/schema-hacks.js lib/replicant/index.js lib/bundle-parser/panels.js lib/bundle-parser/config.js lib/bundle-parser/index.js lib/bundle-parser/graphics.js lib/bundle-parser/manifest.js lib/bundle-parser/sounds.js lib/bundle-parser/mounts.js lib/bundle-parser/assets.js lib/bundle-parser/git.js lib/bundle-parser/extension.js lib/server/index.js lib/server/extensions.js lib/api.js lib/login/index.js lib/login/tokens.js lib/login/UnauthorizedError.js lib/graphics/registration.js lib/graphics/index.js lib/browser/replicant.js lib/browser/logger.js lib/browser/config.js lib/bundle-manager.js lib/assets/index.js lib/assets/AssetFile.js lib/util/injectscripts.js lib/util/authcheck.js lib/util/raven-config.js lib/util/debounce-name.js lib/util/index.js lib/logger/browser.js lib/logger/server.js lib/logger/index.js lib/dashboard.js lib/replicator.js lib/sounds.js lib/config/loader.js lib/config/index.js lib/shared-sources.js lib/mounts.js src/dashboard/elements/graphics/ncg-graphic-instance.js src/dashboard/elements/graphics/ncg-graphic.js src/dashboard/elements/graphics/ncg-graphic-instance-diff.js src/dashboard/elements/graphics/ncg-graphics.js src/dashboard/elements/graphics/ncg-graphics-bundle.js src/dashboard/elements/ncg-workspace.js src/dashboard/elements/mixer/ncg-sound-cue.js src/dashboard/elements/mixer/ncg-sounds.js src/dashboard/elements/mixer/ncg-mixer.js src/dashboard/elements/ncg-dashboard.js src/dashboard/elements/assets/ncg-asset-category.js src/dashboard/elements/assets/ncg-asset-file.js src/dashboard/elements/assets/ncg-assets.js src/dashboard/elements/ncg-dialog.js src/dashboard/elements/ncg-dashboard-panel.js src/dashboard/elements/ui/ui-select.js src/dashboard/elements/settings/ncg-settings.js src/dashboard/elements/util-scrollable.js src/dashboard/js/dialog_opener.js src/dashboard/css/nodecg-theme.js src/instance/client_registration.js

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.

@@ -272,6 +272,7 @@
Loading
272 272
273 273
		const clipboard = new window.ClipboardJS(this.$.copyButton);
274 274
		this._initClipboard(clipboard);
275 +
		this.$.url.addEventListener('dragstart', this._onDrag.bind(this));
275 276
	}
276 277
277 278
	reloadAll() {
@@ -360,6 +361,14 @@
Loading
360 361
	_calcReloadAllDisabled(instances) {
361 362
		return !instances || instances.length <= 0;
362 363
	}
364 +
365 +
	_onDrag(event) {
366 +
		const dragged = event.target;
367 +
		const obsURL = `${dragged.href}?layer-name=${this.graphic.file.replace('.html', '')}&layer-height=${
368 +
			this.graphic.height
369 +
		}&layer-width=${this.graphic.width}`;
370 +
		event.dataTransfer.setData('text/uri-list', obsURL);
371 +
	}
363 372
}
364 373
365 374
customElements.define(NcgGraphic.is, NcgGraphic);

Learn more Showing 29 files with coverage changes found.

Changes in src/dashboard/elements/settings/ncg-settings.js
-11
+11
Loading file...
Changes in src/dashboard/css/nodecg-theme.js
-3
+3
Loading file...
Changes in src/dashboard/elements/assets/ncg-assets.js
-7
+7
Loading file...
Changes in src/instance/client_registration.js
-8
+8
Loading file...
Changes in src/dashboard/elements/graphics/ncg-graphics-bundle.js
-13
+13
Loading file...
Changes in src/dashboard/elements/ncg-workspace.js
-102
+102
Loading file...
Changes in src/dashboard/elements/mixer/ncg-mixer.js
-11
+11
Loading file...
Changes in src/dashboard/elements/assets/ncg-asset-file.js
-11
+11
Loading file...
Changes in src/dashboard/elements/graphics/ncg-graphic-instance.js
-50
+50
Loading file...
Changes in src/dashboard/elements/ncg-dialog.js
-35
+35
Loading file...
Changes in src/dashboard/elements/mixer/ncg-sounds.js
-27
+27
Loading file...
Changes in src/dashboard/elements/assets/ncg-asset-category.js
-39
+39
Loading file...
Changes in src/dashboard/elements/ncg-dashboard.js
-79
+79
Loading file...
Changes in src/dashboard/elements/ncg-dashboard-panel.js
-29
+29
Loading file...
Changes in src/dashboard/elements/graphics/ncg-graphics.js
-11
+11
Loading file...
Changes in src/dashboard/elements/graphics/ncg-graphic.js
-25
+25
Loading file...
Changes in src/dashboard/elements/graphics/ncg-graphic-instance-diff.js
-22
+22
Loading file...
Changes in src/dashboard/elements/mixer/ncg-sound-cue.js
-40
+40
Loading file...
Changes in src/dashboard/elements/ui/ui-select.js
-12
+12
Loading file...
Changes in src/dashboard/elements/util-scrollable.js
-3
+3
Loading file...
Changes in lib/util/debounce-name.js
-2
+2
Loading file...
Changes in src/dashboard/js/dialog_opener.js
-1
+1
Loading file...
Changes in lib/assets/index.js
-4
+4
Loading file...
Changes in lib/dashboard.js
-1
+1
Loading file...
Changes in lib/replicant/replicant.js
+5
Loading file...
Changes in lib/replicant/shared.js
+4
Loading file...
Changes in lib/replicator.js
-15
-2
Loading file...
Changes in lib/server/index.js
-2
Loading file...
Changes in lib/browser/replicant.js
-13
-3
Loading file...
Files Coverage
lib -0.09% 92.12%
src -85.78% 0.00%
Project Totals (64 files) 72.22%
Loading