chore: run a full eslint

This commit is contained in:
Wesley F. Young committed 2024-08-10 19:58:31 +08:00
1 parent 9a9511aad6
commit 116a04e081
198 files changed
+8187 -7744

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import { SettingOption } from './SettingOption';
interface MouseEventExtend extends MouseEvent {
target: HTMLElement
target: HTMLElement;
}
// <ob-setting-select>
@@ -81,4 +81,4 @@ export const SettingSelect = (items: Array<{ text: string; value: string }>, con
})
.join('')}
</ob-setting-select>`;
};
};
+35 -30
View File
@@ -1,42 +1,45 @@
export interface OB11Config {
[key: string]: any;
http: {
enable: boolean;
host: '';
port: number;
secret: '';
enableHeart: boolean;
enablePost: boolean;
postUrls: string[];
};
ws: {
enable: boolean;
host: '';
port: number;
};
reverseWs: {
enable: boolean;
urls: string[];
};
GroupLocalTime: {
Record: boolean,
RecordList: Array<string>
};
debug: boolean;
heartInterval: number;
messagePostFormat: 'array' | 'string';
enableLocalFile2Url: boolean;
musicSignUrl: '';
reportSelfMessage: boolean;
token: '';
[key: string]: any;
http: {
enable: boolean;
host: '';
port: number;
secret: '';
enableHeart: boolean;
enablePost: boolean;
postUrls: string[];
};
ws: {
enable: boolean;
host: '';
port: number;
};
reverseWs: {
enable: boolean;
urls: string[];
};
GroupLocalTime: {
Record: boolean,
RecordList: Array<string>
};
debug: boolean;
heartInterval: number;
messagePostFormat: 'array' | 'string';
enableLocalFile2Url: boolean;
musicSignUrl: '';
reportSelfMessage: boolean;
token: '';
}
class WebUiApiOB11ConfigWrapper {
private retCredential: string = '';
async Init(Credential: string) {
this.retCredential = Credential;
}
async GetOB11Config(): Promise<OB11Config> {
const ConfigResponse = await fetch('../api/OB11Config/GetConfig', {
method: 'POST',
@@ -53,6 +56,7 @@ class WebUiApiOB11ConfigWrapper {
}
return {} as OB11Config;
}
async SetOB11Config(config: OB11Config): Promise<boolean> {
const ConfigResponse = await fetch('../api/OB11Config/SetConfig', {
method: 'POST',
@@ -71,4 +75,5 @@ class WebUiApiOB11ConfigWrapper {
return false;
}
}
export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper();