- color doesn't apply on labels anymore, it has to be handled by widgets

- toggle redesigned
This commit is contained in:
jean-emmanuel 2015-09-14 17:59:23 +02:00 • committed by bordun
parent 6fc7c4a656
commit eee00a7a2c
5 changed files with 104 additions and 899 deletions

View file

@ -23,7 +23,7 @@ $color-accent:#528bff;
$color-border:mix($color-fg,$color-base,65);
$nav-height:50rem;
$bg-button-flat:rgba(white,.05);
$bg-button-flat:mix(white,$color-fg,5);
$bg-button-fade:linear-gradient(mix($color-text,$color-fg,5), mix($color-text,$color-fg,1));
$bg-button:linear-gradient(mix($color-text,$color-fg,8), mix($color-text,$color-fg,5));
@ -422,7 +422,7 @@ a {
.tab {
display:block;
display:block;text-align: justify;
height:0rem;
width: 0rem;
overflow: hidden;
@ -676,59 +676,44 @@ form {
.toggle-container {
width:100rem;
flex-shrink: 0
flex-shrink: 0;
padding:0!important;
.label {
position: relative;
padding:29rem 10rem 26rem;
line-height: 1rem;
background: none!important;
text-align: center;
}
box-shadow: 0 0 0 1px $color-bg inset;
&:hover {
background: $bg-button-hover;
}
background:$bg-button;
// box-shadow: 0 0 0 1px $color-bg inset;
cursor: pointer;
}
.toggle {
padding:10rem 1px 0;
cursor: pointer;
div {
box-shadow: 0 0 0 1px $color-bg inset;
&:hover {
background: $bg-button-hover;
}
width:100%;
text-align: center;
padding-bottom: 50%;
position: relative;
p {
white-space: nowrap;
text-overflow: ellipsis;
z-index: 1;
position: absolute;
top:0;right:0;
bottom:0;left:0;
display: flex;
align-items: center;
justify-content: center;
span {
}
}
background:$bg-button;
// box-shadow: 0 0 0 1px $color-bg inset;
color:$color-text-fade;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
z-index: 1;
.light {
position: absolute;
left:4rem;
right:4rem;
top:4rem;
height:4rem;
background: $color-border;
border-radius: 3rem;
}
&.on {
p {
color:$color-border;
}
div:after {
content:"";
position: absolute;
top:10rem;
left:10rem;
right:10rem;
bottom:10rem;
background:$color-accent;
z-index:0;
border-radius: 3rem;
opacity: .6;
}
&.on .light {
background: $color-accent;
}
}
@ -1100,7 +1085,7 @@ form {
}
.knob-wrapper {
padding:20rem 20rem 20rem 20rem ;
padding:10rem 20rem 20rem 20rem ;
overflow:hidden;
//height:100%;
width:95rem;
@ -1172,6 +1157,19 @@ form {
border-right-color: $color-accent;
}
span {
position: absolute;
border-top:6rem solid $bg-button-flat;
border-left:5rem solid transparent;
border-right:5rem solid transparent;
margin:9rem 0 0 -9rem;
left:50%;
top:50%;
transform-origin: center -6rem;
transform: rotate(45deg);
}
// no color gauge test
&.dot:after {
content:"";

View file

@ -15,8 +15,9 @@ parsetabs = function(tabs,parent,sub){
}
for (i in tabs) {
var tabData = tabs[i],
id = parent?parent.attr('id')+tabData.id:tabData.id
var tabData = tabs[i];
tabData.id = tabData.id.replace(' ','_')
var id = parent?parent.attr('id')+tabData.id:tabData.id
label= tabData.label||tabData.id
navtabs.append('<li><a data-tab="#'+id+'"><span>'+label+'</span></a></li>');
@ -60,7 +61,7 @@ parsewidgets = function(widgets,parent) {
var widgetContainer = $('\
<div class="widget '+type+'-container" widgetType="'+type+'" widgetId="'+id+'" path="'+path+'">\
<div class="label '+accentclass+'" '+color+'>'+label+'</div>\
<div class="label">'+label+'</div>\
</div>\
');

View file

@ -41,9 +41,10 @@ createWidget.toggle = createWidget.button = function(widgetData) {
var widget = $('\
<div class="toggle">\
<div class="value"><p><span>'+widgetData.off+'</span></p></div>\
<div class="light"></div>\
</div>\
');
'),
led = widget.find('.light')
widget.value = widget.find('span')
@ -62,11 +63,11 @@ createWidget.toggle = createWidget.button = function(widgetData) {
off= widgetData.off
if (v==on) {
widget.addClass('on')
widget.value.text(on)
if (widgetData.color) led.attr('style','background:'+widgetData.color)
if (send) widget.sendValue(v)
} else if (v==off) {
widget.removeClass('on')
widget.value.text(off)
if (widgetData.color) led.attr('style','')
if (send) widget.sendValue(v)
}
@ -416,7 +417,7 @@ createWidget.fader = function(widgetData,container){
for (i in scale) {
var pip = $('<div class="pip"></div>')
if (range[i]!=undefined) {
var piptext = Math.abs(range[i])>1000?range[i]/1000+'k':range[i]
var piptext = Math.abs(range[i])>=1000?range[i]/1000+'k':range[i]
pip.addClass('val').append('<span>'+piptext+'</span>')
}
pips.append(pip)
@ -487,7 +488,7 @@ createWidget.knob = function(widgetData) {
<div class="knob-wrapper-outer">\
<div class="knob-wrapper">\
<div class="knob-mask">\
<div class="knob"></div>\
<div class="knob"><span></span></div>\
</div>\
<div class="pip min"></div>\
<div class="pip max"></div>\
@ -501,8 +502,8 @@ createWidget.knob = function(widgetData) {
unit = widgetData.unit?' '+widgetData.unit.trim(): '';
var pipmin = Math.abs(range.min)>1000?range.min/1000+'k':range.min,
pipmax = Math.abs(range.max)>1000?range.max/1000+'k':range.max;
var pipmin = Math.abs(range.min)>=1000?range.min/1000+'k':range.min,
pipmax = Math.abs(range.max)>=1000?range.max/1000+'k':range.max;
widget.find('.pip.min').text(pipmin)
widget.find('.pip.max').text(pipmax)

View file

@ -4,8 +4,8 @@
"recentSessions": [
"/home/bordun/oscwork/oschtmlgui/sessions/demo.js",
"/home/bordun/oscwork/oschtmlgui/sessions/sebkhachott.js",
"/home/bordun/oscwork/oschtmlgui/sessions/monitorsdagz.js",
"/home/bordun/oscwork/oschtmlgui/sessions/monitorsjeannot.js",
"/home/bordun/oscwork/oschtmlgui/sessions/monitorsdagz.js",
"/home/bordun/oscwork/oschtmlgui/sessions/monitorsorl.js"
],
"oscInPort": "2222",

View file

@ -1,841 +1,46 @@
nmRange = {'min': -70,'20%': -40,'45%': -20,'60%': -10,'71%':-6,'78%':-3,'85%':0,'92%':3,'max': 6}
TABS = function(){
var db = {'min': -70,'20%': -40,'45%': -20,'60%': -10,'71%':-6,'78%':-3,'85%':0,'92%':3,'max': 6}
var tabs = new Array()
tabs.push(function(){
var tab = {}
tab.id = 'Audio Surface'
tab.widgets = new Array()
TABS =
[
{
id:"lines",
widgets: [
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"led"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
},
{
id:"strip",
type:"strip",
widgets:[
{
id: "a",
type:"knob"
}
,
{
id: "a",
type:"fader"
}
,
{
id: "a",
type:"toggle"
}
]
}
]
},
{
id: "testingshits",
widgets: [
{
id: "BassesXXX",
type: "knob",
target: "localhost:6666",
path: "/osc/path/",
color: "cyan",
unit:'xx',
range: {
min: -70,
max: 6
}
},
{
id: "BassesXXXa",
type: "switch",
target: "localhost:6666",
path: "/osc/path/",
color: "#555522",
values: [0,1,2,3,4,6,7]
},
{
id: "striptest",
type: "strip",
widgets: [
{
id: "BassesXXXa",
type: "switch",
target: "localhost:6666",
path: "/osc/path/",
color: "#555522",
values: [0,1,2,3,4]
},
{
id: "BassesXXX",
type: "knob",
target: "localhost:6666",
path: "/osc/path/",
color: "cyan",
range: {
min: -70,
max: 6
for (i in [0,1,2,3,4,5,6,7,8,9]) {
tab.widgets.push({
id:'strip_'+i,
type:'strip',
widgets: [
{
id:'knob_'+i,
type:"knob"
},
{
id:'fader_'+i,
type:"fader",
range:db
},
{
id:'toggle1_'+i,
label:'Mute',
type:"toggle",
// color:'orange'
}
},
{
id: "BassesXXX",
label: "BassesXXX",
range: nmRange,
target: "localhost:6666 127.0.0.1:125",
path: "/test2"
},
]
{
id: "button1",
type: "toggle",
target: "localhost:6666",
path: "/osc/path/",
color: "#555522"
}
]
},
})
{
id: "button1",
type: "toggle",
target: "localhost:6666",
path: "/osc/path/",
color: "#555522"
},
{
id: "xypad_test2",
label: "XY Pad",
type: "xy",
target: "localhost:6666",
path: "/SHIT"
}
]
},
{
id: "MainMix",
label: "MainMix",
widgets: [
{
id: "xypad_test",
label: "XY Pad",
type: "rgb",
target: "localhost:6666",
path: "/pad"
},
{
id: "Drums",
label: "Drums",
range: nmRange,
target: "localhost:6666",
path: "/strip/Drums/Gain/Gain%20(dB)/unscaled"
},
{
id: "Basses",
label: "Basses",
range: nmRange,
target: "localhost:6666",
path: "/strip/Basses/Gain/Gain%20(dB)/unscaled"
},
{
id: "Guitars",
label: "Guitars",
range: nmRange,
target: "localhost:6666",
path: "/strip/Guitars/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxSynths",
label: "MxSynths",
range: nmRange,
target: "localhost:6666",
path: "/strip/MxSynths/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxDrums",
label: "MxDrums",
range: nmRange,
target: "localhost:6666",
path: "/strip/MxDrums/Gain/Gain%20(dB)/unscaled"
},
{
id: "Vocals",
label: "Vocals",
range: nmRange,
target: "localhost:6666",
path: "/strip/Vocals/Gain/Gain%20(dB)/unscaled"
},
{
id: "Acoustics",
label: "Acoustics",
range: nmRange,
target: "localhost:6666",
path: "/strip/Acoustics/Gain/Gain%20(dB)/unscaled"
},
{
id: "FOH",
label: "FOH",
range: nmRange,
target: "localhost:6678",
path: "/strip/FOH/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "Drums",
label: "Drums",
tabs: [
{
id: "Drumset",
label: "Drumset",
widgets: [
{
id: "Kick",
label: "Kick",
range: nmRange,
target: "localhost:6667",
path: "/strip/Kick/Gain/Gain%20(dB)/unscaled"
},
{
id: "Snare",
label: "Snare",
range: nmRange,
target: "localhost:6667",
path: "/strip/Snare/Gain/Gain%20(dB)/unscaled"
},
{
id: "Toms",
label: "Toms",
range: nmRange,
target: "localhost:6667",
path: "/strip/Toms/Gain/Gain%20(dB)/unscaled"
},
{
id: "OH_L",
label: "OH-L",
range: nmRange,
target: "localhost:6667",
path: "/strip/OH-L/Gain/Gain%20(dB)/unscaled"
},
{
id: "OH_R",
label: "OH-R",
range: nmRange,
target: "localhost:6667",
path: "/strip/OH-R/Gain/Gain%20(dB)/unscaled"
},
{
id: "Drums",
label: "Drums",
range: nmRange,
target: "localhost:6666",
path: "/strip/Drums/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "Toms",
widgets: [
{
id: "Tom1",
label: "Tom1",
range: nmRange,
target: "localhost:6673",
path: "/strip/Tom1/Gain/Gain%20(dB)/unscaled"
},
{
id: "Tom2",
label: "Tom2",
range: nmRange,
target: "localhost:6673",
path: "/strip/Tom2/Gain/Gain%20(dB)/unscaled"
},
{
id: "Tom3",
label: "Tom3",
range: nmRange,
target: "localhost:6673",
path: "/strip/Tom3/Gain/Gain%20(dB)/unscaled"
},
{
id: "Toms",
label: "Toms",
range: nmRange,
target: "localhost:6667",
path: "/strip/Toms/Gain/Gain%20(dB)/unscaled",
color: "#777"
},
{
id: "striptest",
type: "strip",
widgets: [
{
id: "BassesXXX",
label: "BassesXXX",
range: nmRange,
target: "localhost:6666 127.0.0.1:125",
path: "/test2"
},
{
id: "xypad_test2",
label: "XY Pad",
type: "xy",
target: "localhost:6666",
path: "/pad"
},
{
id: "xGuitars",
label: "Guitars",
range: nmRange,
target: "localhost:6666",
path: "/strip/Guitars/Gain/Gain%20(dB)/unscaled"
},
{
id: "button1",
type: "toggle",
target: "localhost:6666",
path: "/osc/path/",
color: "#555522"
}
]
}
]
}
]
},
{
id: "Basses",
label: "Basses",
widgets: [
{
id: "Bass_ORL",
label: "Bass_ORL",
range: nmRange,
target: "localhost:6668",
path: "/strip/Bass_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "Oct_Bass_ORL",
label: "Oct_Bass_ORL",
range: nmRange,
target: "localhost:6668",
path: "/strip/Oct_Bass_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Bass_ORL",
label: "FX_Bass_ORL",
range: nmRange,
target: "localhost:6668",
path: "/strip/FX_Bass_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "Bass_Dag",
label: "Bass_Dag",
range: nmRange,
target: "localhost:6668",
path: "/strip/Bass_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Oct_Bass_Dag",
label: "Oct_Bass_Dag",
range: nmRange,
target: "localhost:6668",
path: "/strip/Oct_Bass_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Bass_Dag",
label: "FX_Bass_Dag",
range: nmRange,
target: "localhost:6668",
path: "/strip/FX_Bass_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Basses",
label: "Basses",
range: nmRange,
target: "localhost:6666",
path: "/strip/Basses/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "Guitars",
label: "Guitars",
widgets: [
{
id: "Guitar_ORL",
label: "Guitar_ORL",
range: nmRange,
target: "localhost:6669",
path: "/strip/Guitar_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_ORL_1",
label: "FX_Gtr_ORL_1",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_ORL_1/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_ORL_2",
label: "FX_Gtr_ORL_2",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_ORL_2/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_ORL",
label: "FX_Gtr_ORL",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "Guitar_Dag",
label: "Guitar_Dag",
range: nmRange,
target: "localhost:6669",
path: "/strip/Guitar_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_Dag_1",
label: "FX_Gtr_Dag_1",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_Dag_1/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_Dag_2",
label: "FX_Gtr_Dag_2",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_Dag_2/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Gtr_Dag",
label: "FX_Gtr_Dag",
range: nmRange,
target: "localhost:6669",
path: "/strip/FX_Gtr_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Scape_Gtr_Dag",
label: "Scape_Gtr_Dag",
range: nmRange,
target: "localhost:6669",
path: "/strip/Scape_Gtr_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Guitars",
label: "Guitars",
range: nmRange,
target: "localhost:6666",
path: "/strip/Guitars/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "MxSynths",
label: "MxSynths",
widgets: [
{
id: "MxBass",
label: "MxBass",
range: nmRange,
target: "localhost:6670",
path: "/strip/MxBass/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxChords",
label: "MxChords",
range: nmRange,
target: "localhost:6670",
path: "/strip/MxChords/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxLead",
label: "MxLead",
range: nmRange,
target: "localhost:6670",
path: "/strip/MxLead/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxCtLead",
label: "MxCtLead",
range: nmRange,
target: "localhost:6670",
path: "/strip/MxCtLead/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxClassical",
label: "MxClassical",
range: nmRange,
target: "localhost:6670",
path: "/strip/MxClassical/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxSynths",
label: "MxSynths",
range: nmRange,
target: "localhost:6666",
path: "/strip/MxSynths/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "MxDrums",
label: "MxDrums",
widgets: [
{
id: "MxKicks",
label: "MxKicks",
range: nmRange,
target: "localhost:6671",
path: "/strip/MxKicks/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxSnares",
label: "MxSnares",
range: nmRange,
target: "localhost:6671",
path: "/strip/MxSnares/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxCymbs",
label: "MxCymbs",
range: nmRange,
target: "localhost:6671",
path: "/strip/MxCymbs/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxCont",
label: "MxCont",
range: nmRange,
target: "localhost:6671",
path: "/strip/MxCont/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxSamples",
label: "MxSamples",
range: nmRange,
target: "localhost:6671",
path: "/strip/MxSamples/Gain/Gain%20(dB)/unscaled"
},
{
id: "MxDrums",
label: "MxDrums",
range: nmRange,
target: "localhost:6666",
path: "/strip/MxDrums/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "Acoustics",
label: "Acoustics",
widgets: [
{
id: "PianoToy",
label: "PianoToy",
range: nmRange,
target: "localhost:6674",
path: "/strip/PianoToy/Gain/Gain%20(dB)/unscaled"
},
{
id: "Cymbalum",
label: "Cymbalum",
range: nmRange,
target: "localhost:6674",
path: "/strip/Cymbalum/Gain/Gain%20(dB)/unscaled"
},
{
id: "GuitarAc",
label: "GuitarAc",
range: nmRange,
target: "localhost:6674",
path: "/strip/GuitarAc/Gain/Gain%20(dB)/unscaled"
},
{
id: "Acoustics",
label: "Acoustics",
range: nmRange,
target: "localhost:6666",
path: "/strip/Acoustics/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
},
{
id: "Vocals",
label: "Vocals",
widgets: [
{
id: "Vx_ORL",
label: "Vx_ORL",
range: nmRange,
target: "localhost:6672",
path: "/strip/Vx_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_ORL_1",
label: "FX_Vx_ORL_1",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_ORL_1/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_ORL_2",
label: "FX_Vx_ORL_2",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_ORL_2/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_ORL",
label: "FX_Vx_ORL",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_ORL/Gain/Gain%20(dB)/unscaled"
},
{
id: "Vx_Dag",
label: "Vx_Dag",
range: nmRange,
target: "localhost:6672",
path: "/strip/Vx_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_Dag_1",
label: "FX_Vx_Dag_1",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_Dag_1/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_Dag_2",
label: "FX_Vx_Dag_2",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_Dag_2/Gain/Gain%20(dB)/unscaled"
},
{
id: "FX_Vx_Dag",
label: "FX_Vx_Dag",
range: nmRange,
target: "localhost:6672",
path: "/strip/FX_Vx_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Scape_Vx_Dag",
label: "Scape_Vx_Dag",
range: nmRange,
target: "localhost:6672",
path: "/strip/Scape_Vx_Dag/Gain/Gain%20(dB)/unscaled"
},
{
id: "Vx_Jeannot",
label: "Vx_Jeannot",
range: nmRange,
target: "localhost:6672",
path: "/strip/Vx_Jeannot/Gain/Gain%20(dB)/unscaled"
},
{
id: "Vocals",
label: "Vocals",
range: nmRange,
target: "localhost:6666",
path: "/strip/Vocals/Gain/Gain%20(dB)/unscaled",
color: "#777"
}
]
}
]
}
return tab
}())
return tabs
}()
console.log(TABS)