Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify switch input type #564

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Toggle whether to check the bitrate of the audio codec is within a range.',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Toggle whether to enable setting audio bitrate',
},
Expand Down Expand Up @@ -109,11 +105,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Toggle whether to enable setting audio samplerate',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: "\nSpecify if you want to force conform the file to the new container,\nThis is useful if not all streams are supported by the new container. \nFor example mkv does not support data streams.\n ",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use hardware encoding if available',
},
Expand All @@ -138,11 +134,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use hardware decoding if available',
},
Expand All @@ -152,11 +144,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to force encoding if stream already has the target codec',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand All @@ -116,11 +112,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to copy/move all files in the directory (excluding the original and working file)',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand All @@ -87,11 +83,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Make the copied file the working file',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use a JSON preset or not',
},
Expand Down
12 changes: 2 additions & 10 deletions FlowPlugins/CommunityFlowPlugins/input/inputFile/1.0.0/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Will check if input file and cache are readable and writable',
},
Expand All @@ -73,11 +69,7 @@ var details = function () { return ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'This will pause the node if the file access checks fail',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ const details = ():IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip:
'Toggle whether to check the bitrate of the audio codec is within a range.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip:
'Toggle whether to enable setting audio bitrate',
Expand Down Expand Up @@ -118,11 +114,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip:
'Toggle whether to enable setting audio samplerate',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: `
Specify if you want to force conform the file to the new container,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use hardware encoding if available',
},
Expand All @@ -106,11 +102,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use hardware decoding if available',
},
Expand All @@ -120,11 +112,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to force encoding if stream already has the target codec',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ Useful if, for example, you want to move things like subtitle files or cover art
type: 'boolean',
defaultValue: 'true',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand All @@ -84,11 +80,7 @@ Useful if, for example, you want to move things like subtitle files or cover art
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to copy/move all files in the directory (excluding the original and working file)',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand All @@ -52,11 +48,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Make the copied file the working file',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ const details = ():IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to keep the relative path',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Specify whether to use a JSON preset or not',
},
Expand Down
12 changes: 2 additions & 10 deletions FlowPluginsTs/CommunityFlowPlugins/input/inputFile/1.0.0/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'Will check if input file and cache are readable and writable',
},
Expand All @@ -41,11 +37,7 @@ const details = (): IpluginDetails => ({
type: 'boolean',
defaultValue: 'false',
inputUI: {
type: 'dropdown',
options: [
'false',
'true',
],
type: 'switch',
},
tooltip: 'This will pause the node if the file access checks fail',
},
Expand Down
3 changes: 2 additions & 1 deletion FlowPluginsTs/FlowHelpers/1.0.0/interfaces/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { IFileObject, Istreams } from './synced/IFileObject';
import Ijob from './synced/jobInterface';

export interface IpluginInputUi {
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider',
// boolean inputs will default to a switch
type: 'dropdown' | 'text' | 'textarea' | 'directory' | 'slider' | 'switch',
options?: string[],
sliderOptions?: {max: number, min: number, }
style?: Record<string, unknown>,
Expand Down