Merge pull request #564 from HaveAGitGat/switch

Clarify switch input type
This commit is contained in:
HaveAGitGat 2023-11-30 06:02:35 +00:00 committed by GitHub
commit 0e77c7c044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 32 additions and 151 deletions

View file

@ -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.',
},

View file

@ -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',
},
@ -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',
},

View file

@ -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 ",
},

View file

@ -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',
},
@ -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',
},
@ -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',
},

View file

@ -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',
},
@ -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)',
},

View file

@ -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',
},
@ -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',
},

View file

@ -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',
},

View file

@ -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',
},

View file

@ -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',
},
@ -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',
},

View file

@ -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.',

View file

@ -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',
@ -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',

View file

@ -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,

View file

@ -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',
},
@ -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',
},
@ -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',
},

View file

@ -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',
},
@ -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)',
},

View file

@ -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',
},
@ -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',
},

View file

@ -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',
},

View file

@ -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',
},

View file

@ -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',
},
@ -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',
},

View file

@ -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>,