|
|
@ -808,28 +808,29 @@ export class accountsList {
|
|
|
|
|
|
|
|
|
|
|
|
private _queries: { [field: string]: { name: string, getter: string, bool: boolean, string: boolean, date: boolean, dependsOnTableHeader?: string, show?: boolean }} = {
|
|
|
|
private _queries: { [field: string]: { name: string, getter: string, bool: boolean, string: boolean, date: boolean, dependsOnTableHeader?: string, show?: boolean }} = {
|
|
|
|
"id": {
|
|
|
|
"id": {
|
|
|
|
name: "Jellyfin ID",
|
|
|
|
// We don't use a translation here to circumvent the name substitution feature.
|
|
|
|
|
|
|
|
name: "Jellyfin/Emby ID",
|
|
|
|
getter: "id",
|
|
|
|
getter: "id",
|
|
|
|
bool: false,
|
|
|
|
bool: false,
|
|
|
|
string: true,
|
|
|
|
string: true,
|
|
|
|
date: false
|
|
|
|
date: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"label": {
|
|
|
|
name: "Label",
|
|
|
|
name: window.lang.strings("label"),
|
|
|
|
getter: "label",
|
|
|
|
getter: "label",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: true,
|
|
|
|
string: true,
|
|
|
|
date: false
|
|
|
|
date: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"username": {
|
|
|
|
name: "Username",
|
|
|
|
name: window.lang.strings("username"),
|
|
|
|
getter: "name",
|
|
|
|
getter: "name",
|
|
|
|
bool: false,
|
|
|
|
bool: false,
|
|
|
|
string: true,
|
|
|
|
string: true,
|
|
|
|
date: false
|
|
|
|
date: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"name": {
|
|
|
|
name: "Username",
|
|
|
|
name: window.lang.strings("username"),
|
|
|
|
getter: "name",
|
|
|
|
getter: "name",
|
|
|
|
bool: false,
|
|
|
|
bool: false,
|
|
|
|
string: true,
|
|
|
|
string: true,
|
|
|
@ -837,21 +838,21 @@ export class accountsList {
|
|
|
|
show: false
|
|
|
|
show: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"admin": {
|
|
|
|
"admin": {
|
|
|
|
name: "Admin",
|
|
|
|
name: window.lang.strings("admin"),
|
|
|
|
getter: "admin",
|
|
|
|
getter: "admin",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: false,
|
|
|
|
string: false,
|
|
|
|
date: false
|
|
|
|
date: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"disabled": {
|
|
|
|
"disabled": {
|
|
|
|
name: "Disabled",
|
|
|
|
name: window.lang.strings("disabled"),
|
|
|
|
getter: "disabled",
|
|
|
|
getter: "disabled",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: false,
|
|
|
|
string: false,
|
|
|
|
date: false
|
|
|
|
date: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"access-jfa": {
|
|
|
|
"access-jfa": {
|
|
|
|
name: "Access jfa-go",
|
|
|
|
name: window.lang.strings("accessJFA"),
|
|
|
|
getter: "accounts_admin",
|
|
|
|
getter: "accounts_admin",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: false,
|
|
|
|
string: false,
|
|
|
@ -859,7 +860,7 @@ export class accountsList {
|
|
|
|
dependsOnTableHeader: "accounts-header-access-jfa"
|
|
|
|
dependsOnTableHeader: "accounts-header-access-jfa"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"email": {
|
|
|
|
name: "Email",
|
|
|
|
name: window.lang.strings("emailAddress"),
|
|
|
|
getter: "email",
|
|
|
|
getter: "email",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: true,
|
|
|
|
string: true,
|
|
|
@ -891,7 +892,7 @@ export class accountsList {
|
|
|
|
dependsOnTableHeader: "accounts-header-discord"
|
|
|
|
dependsOnTableHeader: "accounts-header-discord"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"expiry": {
|
|
|
|
"expiry": {
|
|
|
|
name: "Expiry",
|
|
|
|
name: window.lang.strings("expiry"),
|
|
|
|
getter: "expiry",
|
|
|
|
getter: "expiry",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: false,
|
|
|
|
string: false,
|
|
|
@ -899,7 +900,7 @@ export class accountsList {
|
|
|
|
dependsOnTableHeader: "accounts-header-expiry"
|
|
|
|
dependsOnTableHeader: "accounts-header-expiry"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"last-active": {
|
|
|
|
"last-active": {
|
|
|
|
name: "Last Active",
|
|
|
|
name: window.lang.strings("lastActiveTime"),
|
|
|
|
getter: "last_active",
|
|
|
|
getter: "last_active",
|
|
|
|
bool: true,
|
|
|
|
bool: true,
|
|
|
|
string: false,
|
|
|
|
string: false,
|
|
|
@ -908,6 +909,7 @@ export class accountsList {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
search = (query: String): string[] => {
|
|
|
|
search = (query: String): string[] => {
|
|
|
|
|
|
|
|
console.log(this._queries);
|
|
|
|
this._filterArea.textContent = "";
|
|
|
|
this._filterArea.textContent = "";
|
|
|
|
|
|
|
|
|
|
|
|
query = query.toLowerCase();
|
|
|
|
query = query.toLowerCase();
|
|
|
|