Cian Butler
3 years ago
committed by
GitHub
14 changed files with 780 additions and 659 deletions
@ -1,107 +1,136 @@ |
|||||
window.inflateOptions([ |
window.inflateOptions([ |
||||
{ |
{ |
||||
type: "text", |
type: 'text', |
||||
name: "Font Family", |
name: 'Font Family', |
||||
description: "The font family for terminal text.", |
description: 'The font family for terminal text.', |
||||
path: ["xterm", "fontFamily"], |
path: ['xterm', 'fontFamily'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Font Size", |
name: 'Font Size', |
||||
description: "The font size in CSS pixels for terminal text.", |
description: 'The font size in CSS pixels for terminal text.', |
||||
path: ["xterm", "fontSize"], |
path: ['xterm', 'fontSize'], |
||||
min: 4, |
min: 4, |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "enum", |
type: 'enum', |
||||
name: "Regular Font Weight", |
name: 'Regular Font Weight', |
||||
description: "The font weight for non-bold text.", |
description: 'The font weight for non-bold text.', |
||||
path: ["xterm", "fontWeight"], |
path: ['xterm', 'fontWeight'], |
||||
enum: ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"], |
enum: [ |
||||
}, |
'normal', |
||||
{ |
'bold', |
||||
type: "enum", |
'100', |
||||
name: "Bold Font Weight", |
'200', |
||||
description: "The font weight for bold text.", |
'300', |
||||
path: ["xterm", "fontWeightBold"], |
'400', |
||||
enum: ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"], |
'500', |
||||
}, |
'600', |
||||
{ |
'700', |
||||
type: "boolean", |
'800', |
||||
name: "Fit Terminal", |
'900', |
||||
description: "Automatically fits the terminal to the page, overriding terminal columns and rows.", |
], |
||||
path: ["wettyFitTerminal"], |
}, |
||||
}, |
{ |
||||
{ |
type: 'enum', |
||||
type: "number", |
name: 'Bold Font Weight', |
||||
name: "Terminal Columns", |
description: 'The font weight for bold text.', |
||||
description: "The number of columns in the terminal. Overridden by the Fit Terminal option.", |
path: ['xterm', 'fontWeightBold'], |
||||
path: ["xterm", "cols"], |
enum: [ |
||||
|
'normal', |
||||
|
'bold', |
||||
|
'100', |
||||
|
'200', |
||||
|
'300', |
||||
|
'400', |
||||
|
'500', |
||||
|
'600', |
||||
|
'700', |
||||
|
'800', |
||||
|
'900', |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
type: 'boolean', |
||||
|
name: 'Fit Terminal', |
||||
|
description: |
||||
|
'Automatically fits the terminal to the page, overriding terminal columns and rows.', |
||||
|
path: ['wettyFitTerminal'], |
||||
|
}, |
||||
|
{ |
||||
|
type: 'number', |
||||
|
name: 'Terminal Columns', |
||||
|
description: |
||||
|
'The number of columns in the terminal. Overridden by the Fit Terminal option.', |
||||
|
path: ['xterm', 'cols'], |
||||
nullable: true, |
nullable: true, |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Terminal Rows", |
name: 'Terminal Rows', |
||||
description: "The number of rows in the terminal. Overridden by the Fit Terminal option.", |
description: |
||||
path: ["xterm", "rows"], |
'The number of rows in the terminal. Overridden by the Fit Terminal option.', |
||||
|
path: ['xterm', 'rows'], |
||||
nullable: true, |
nullable: true, |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "enum", |
type: 'enum', |
||||
name: "Cursor Style", |
name: 'Cursor Style', |
||||
description: "The style of the cursor", |
description: 'The style of the cursor', |
||||
path: ["xterm", "cursorStyle"], |
path: ['xterm', 'cursorStyle'], |
||||
enum: ["block", "underline", "bar"], |
enum: ['block', 'underline', 'bar'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "boolean", |
type: 'boolean', |
||||
name: "Blinking Cursor", |
name: 'Blinking Cursor', |
||||
description: "Whether the cursor blinks", |
description: 'Whether the cursor blinks', |
||||
path: ["xterm", "cursorBlink"], |
path: ['xterm', 'cursorBlink'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Bar Cursor Width", |
name: 'Bar Cursor Width', |
||||
description: "The width of the cursor in CSS pixels. Only applies when Cursor Style is set to 'bar'.", |
description: |
||||
path: ["xterm", "cursorWidth"], |
"The width of the cursor in CSS pixels. Only applies when Cursor Style is set to 'bar'.", |
||||
|
path: ['xterm', 'cursorWidth'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "boolean", |
type: 'boolean', |
||||
name: "Draw Bold Text In Bright Colors", |
name: 'Draw Bold Text In Bright Colors', |
||||
description: "Whether to draw bold text in bright colors", |
description: 'Whether to draw bold text in bright colors', |
||||
path: ["xterm", "drawBoldTextInBrightColors"], |
path: ['xterm', 'drawBoldTextInBrightColors'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Scroll Sensitivity", |
name: 'Scroll Sensitivity', |
||||
description: "The scroll speed multiplier for regular scrolling.", |
description: 'The scroll speed multiplier for regular scrolling.', |
||||
path: ["xterm", "scrollSensitivity"], |
path: ['xterm', 'scrollSensitivity'], |
||||
float: true, |
float: true, |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "enum", |
type: 'enum', |
||||
name: "Fast Scroll Key", |
name: 'Fast Scroll Key', |
||||
description: "The modifier key to hold to multiply scroll speed.", |
description: 'The modifier key to hold to multiply scroll speed.', |
||||
path: ["xterm", "fastScrollModifier"], |
path: ['xterm', 'fastScrollModifier'], |
||||
enum: ["none", "alt", "shift", "ctrl"], |
enum: ['none', 'alt', 'shift', 'ctrl'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Fast Scroll Multiplier", |
name: 'Fast Scroll Multiplier', |
||||
description: "The scroll speed multiplier used for fast scrolling.", |
description: 'The scroll speed multiplier used for fast scrolling.', |
||||
path: ["xterm", "fastScrollSensitivity"], |
path: ['xterm', 'fastScrollSensitivity'], |
||||
float: true, |
float: true, |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Scrollback Rows", |
name: 'Scrollback Rows', |
||||
description: "The amount of scrollback rows, rows you can scroll up to after they leave the viewport, to keep.", |
description: |
||||
path: ["xterm", "scrollback"], |
'The amount of scrollback rows, rows you can scroll up to after they leave the viewport, to keep.', |
||||
|
path: ['xterm', 'scrollback'], |
||||
}, |
}, |
||||
{ |
{ |
||||
type: "number", |
type: 'number', |
||||
name: "Tab Stop Width", |
name: 'Tab Stop Width', |
||||
description: "The size of tab stops in the terminal.", |
description: 'The size of tab stops in the terminal.', |
||||
path: ["xterm", "tabStopWidth"], |
path: ['xterm', 'tabStopWidth'], |
||||
}, |
}, |
||||
]); |
]); |
||||
|
@ -1,5 +1,5 @@ |
|||||
caches.keys().then(cacheNames => { |
caches.keys().then((cacheNames) => { |
||||
cacheNames.forEach(cacheName => { |
cacheNames.forEach((cacheName) => { |
||||
caches.delete(cacheName); |
caches.delete(cacheName); |
||||
}); |
}); |
||||
}); |
}); |
||||
|
Loading…
Reference in new issue