mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
feat: add settings page parser (#154)
* feat: add settings page parsers * fix(AccountManager): small ts error * feat: add `CopyLink` & `SettingsCheckbox` * deps: remove “flat” dependency
This commit is contained in:
23
src/parser/classes/SettingsCheckbox.ts
Normal file
23
src/parser/classes/SettingsCheckbox.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import Text from './misc/Text';
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class SettingsCheckbox extends YTNode {
|
||||
static type = 'SettingsCheckbox';
|
||||
|
||||
title: Text;
|
||||
help_text: Text;
|
||||
enabled: boolean;
|
||||
disabled: boolean;
|
||||
id: string;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.title = new Text(data.title);
|
||||
this.help_text = new Text(data.helpText);
|
||||
this.enabled = data.enabled;
|
||||
this.disabled = data.disabled;
|
||||
this.id = data.id;
|
||||
}
|
||||
}
|
||||
|
||||
export default SettingsCheckbox;
|
||||
Reference in New Issue
Block a user