docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
update(props: IClientsFindEntry): ClientsFindEntry { | <mask> });
<mask> return isError;
<mask> }
<mask>
<mask> update(props: Partial<IClientsFindEntry>): ClientsFindEntry {
<mask> return new ClientsFindEntry({ ...this.serialize(), ...props });
<mask> }
<mask> }
</s> Pull request #961: New client dashboard
Merge in DNS/adguard... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ClientsFindEntry.ts |
* Description: The result of searching the other DHCP server.
* | <mask>
<mask> readonly _found: string | undefined;
<mask>
<mask> /**
<mask> * Description: yes|no|error
<mask> * Example: no
<mask> */
<mask> get found(): string | undefined {
<mask> return this._found;
<mask> }
</s> Pull request #961: New client dashboard
Merge in D... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/DhcpSearchResultOtherServer.ts |
* Description: The result of determining static IP address.
* | <mask>
<mask> readonly _static: string | undefined;
<mask>
<mask> /**
<mask> * Description: yes|no|error
<mask> * Example: yes
<mask> */
<mask> get static(): string | undefined {
<mask> return this._static;
<mask> }
</s> Pull request #961: New client dashboard
Merge ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/DhcpSearchResultStaticIP.ts |
last_updated: string; | <mask> // All changes will be overwrited on commit.
<mask> export interface IFilter {
<mask> enabled: boolean;
<mask> id: number;
<mask> lastUpdated: string;
<mask> name: string;
<mask> rulesCount: number;
<mask> url: string;
<mask> }
<mask>
</s> Pull request #961: New client dashboa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
rules_count: number; | <mask> enabled: boolean;
<mask> id: number;
<mask> lastUpdated: string;
<mask> name: string;
<mask> rulesCount: number;
<mask> url: string;
<mask> }
<mask>
<mask> export default class Filter {
<mask> readonly _enabled: boolean;
</s> Pull request #961: New client dashboard
Merge ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
readonly _last_updated: string; | <mask> static idValidate(id: number): boolean {
<mask> return typeof id === 'number';
<mask> }
<mask>
<mask> readonly _lastUpdated: string;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: 2018-10-30T12:18:57+03:00
<mask> */
</s> Pull request #961: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
return this._last_updated; | <mask> * Description: undefined
<mask> * Example: 2018-10-30T12:18:57+03:00
<mask> */
<mask> get lastUpdated(): string {
<mask> return this._lastUpdated;
<mask> }
<mask>
<mask> static lastUpdatedValidate(lastUpdated: string): boolean {
<mask> return typeof lastUpdate... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
readonly _rules_count: number; | <mask> static nameValidate(name: string): boolean {
<mask> return typeof name === 'string' && !!name.trim();
<mask> }
<mask>
<mask> readonly _rulesCount: number;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: 5912
<mask> */
</s> Pull request #961:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
return this._rules_count; | <mask> * Description: undefined
<mask> * Example: 5912
<mask> */
<mask> get rulesCount(): number {
<mask> return this._rulesCount;
<mask> }
<mask>
<mask> static rulesCountValidate(rulesCount: number): boolean {
<mask> return typeof rulesCount === 'number';
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
this._last_updated = props.last_updated.trim(); | <mask>
<mask> constructor(props: IFilter) {
<mask> this._enabled = props.enabled;
<mask> this._id = props.id;
<mask> this._lastUpdated = props.lastUpdated.trim();
<mask> this._name = props.name.trim();
<mask> this._rulesCount = props.rulesCount;
<mask> this._... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
this._rules_count = props.rules_count; | <mask> this._enabled = props.enabled;
<mask> this._id = props.id;
<mask> this._lastUpdated = props.lastUpdated.trim();
<mask> this._name = props.name.trim();
<mask> this._rulesCount = props.rulesCount;
<mask> this._url = props.url.trim();
<mask> }
<mask>
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
last_updated: this._last_updated, | <mask> serialize(): IFilter {
<mask> const data: IFilter = {
<mask> enabled: this._enabled,
<mask> id: this._id,
<mask> lastUpdated: this._lastUpdated,
<mask> name: this._name,
<mask> rulesCount: this._rulesCount,
<mask> url: th... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
rules_count: this._rules_count, | <mask> enabled: this._enabled,
<mask> id: this._id,
<mask> lastUpdated: this._lastUpdated,
<mask> name: this._name,
<mask> rulesCount: this._rulesCount,
<mask> url: this._url,
<mask> };
<mask> return data;
<mask> }
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
last_updated: typeof this._last_updated === 'string' && !this._last_updated ? true : this._last_updated, | <mask> validate(): string[] {
<mask> const validate = {
<mask> enabled: typeof this._enabled === 'boolean',
<mask> id: typeof this._id === 'number',
<mask> lastUpdated: typeof this._lastUpdated === 'string' && !this._lastUpdated ? true : this._lastUpdated,
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
rules_count: typeof this._rules_count === 'number', | <mask> enabled: typeof this._enabled === 'boolean',
<mask> id: typeof this._id === 'number',
<mask> lastUpdated: typeof this._lastUpdated === 'string' && !this._lastUpdated ? true : this._lastUpdated,
<mask> name: typeof this._name === 'string' && !this._name ? true :... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Filter.ts |
name?: string; | <mask> // All changes will be overwrited on commit.
<mask> export interface ILogin {
<mask> password?: string;
<mask> }
<mask>
<mask> export default class Login {
<mask> readonly _name: string | undefined;
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
<mask> // This file was autogenerated. Please do not change.
<mask> // All changes will be overwrited on commit.
<mask> export interface ILogin {
<mask> password?: string;
<mask> username?: string;
<mask> }
<mask>
<mask> export default class Login {
<mask> readonly _password: string | undefined;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts | |
readonly _name: string | undefined; | <mask> username?: string;
<mask> }
<mask>
<mask> export default class Login {
<mask> readonly _password: string | undefined;
<mask>
<mask> /** */
<mask> get password(): string | undefined {
<mask> return this._password;
<mask> }
</s> Pull request #961: New client dashboard
Merg... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
get name(): string | undefined {
return this._name; | <mask> export default class Login {
<mask> readonly _password: string | undefined;
<mask>
<mask> /** */
<mask> get password(): string | undefined {
<mask> return this._password;
<mask> }
<mask>
<mask> readonly _username: string | undefined;
<mask>
<mask> /** */
</s> Pull r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
readonly _password: string | undefined; | <mask> get password(): string | undefined {
<mask> return this._password;
<mask> }
<mask>
<mask> readonly _username: string | undefined;
<mask>
<mask> /** */
<mask> get username(): string | undefined {
<mask> return this._username;
<mask> }
</s> Pull request #961: Ne... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
get password(): string | undefined {
return this._password; | <mask>
<mask> readonly _username: string | undefined;
<mask>
<mask> /** */
<mask> get username(): string | undefined {
<mask> return this._username;
<mask> }
<mask>
<mask> constructor(props: ILogin) {
<mask> if (typeof props.password === 'string') {
<mask> t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
if (typeof props.name === 'string') {
this._name = props.name.trim();
} | <mask>
<mask> constructor(props: ILogin) {
<mask> if (typeof props.password === 'string') {
<mask> this._password = props.password.trim();
<mask> }
<mask> }
<mask>
<mask> serialize(): ILogin {
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
<mask> constructor(props: ILogin) {
<mask> if (typeof props.password === 'string') {
<mask> this._password = props.password.trim();
<mask> }
<mask> if (typeof props.username === 'string') {
<mask> this._username = props.username.trim();
<mask> }
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts | |
if (typeof this._name !== 'undefined') {
data.name = this._name;
} | <mask> serialize(): ILogin {
<mask> const data: ILogin = {
<mask> };
<mask> if (typeof this._password !== 'undefined') {
<mask> data.password = this._password;
<mask> }
<mask> return data;
<mask> }
<mask>
</s> Pull request #961: New client dashboard... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
<mask> };
<mask> if (typeof this._password !== 'undefined') {
<mask> data.password = this._password;
<mask> }
<mask> if (typeof this._username !== 'undefined') {
<mask> data.username = this._username;
<mask> }
<mask> return data;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts | |
name: !this._name ? true : typeof this._name === 'string' && !this._name ? true : this._name, | <mask> }
<mask>
<mask> validate(): string[] {
<mask> const validate = {
<mask> username: !this._username ? true : typeof this._username === 'string' && !this._username ? true : this._username,
<mask> password: !this._password ? true : typeof this._password === 'string' && ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Login.ts |
* Description: Flags could be any combination of the following values, divided by the "|" character: "up", "broadcast", "loopback", "pointtopoint" and "multicast".
* | <mask> export default class NetInterface {
<mask> readonly _flags: string;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: up|broadcast|multicast
<mask> */
<mask> get flags(): string {
<mask> return this._flags;
<mask> }
</s> Pull request #961: New ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/NetInterface.ts |
client_id?: string; | <mask> answer?: IDnsAnswer[];
<mask> answer_dnssec?: boolean;
<mask> client?: string;
<mask> client_proto?: any;
<mask> elapsedMs?: string;
<mask> filterId?: number;
<mask> original_answer?: IDnsAnswer[];
<mask> question?: IDnsQuestion;
</s> Pull request #961: New client dashboa... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
* Description: The client's IP address.
* | <mask>
<mask> readonly _client: string | undefined;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: 192.168.0.1
<mask> */
<mask> get client(): string | undefined {
<mask> return this._client;
<mask> }
</s> Pull request #961: New client dashboard
M... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
readonly _client_id: string | undefined;
/**
* Description: The client ID, if provided in DOH, DOQ, or DOT.
*
* Example: cli123
*/
get clientId(): string | undefined {
return this._client_id;
}
| <mask> get client(): string | undefined {
<mask> return this._client;
<mask> }
<mask>
<mask> readonly _client_proto: any | undefined;
<mask>
<mask> get clientProto(): any | undefined {
<mask> return this._client_proto;
<mask> }
</s> Pull request #961: New client dashboard... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
if (typeof props.client_id === 'string') {
this._client_id = props.client_id.trim();
} | <mask> if (typeof props.client === 'string') {
<mask> this._client = props.client.trim();
<mask> }
<mask> if (props.client_proto) {
<mask> this._client_proto = props.client_proto;
<mask> }
<mask> if (typeof props.elapsedMs === 'string') {
</s> Pull... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
if (typeof this._client_id !== 'undefined') {
data.client_id = this._client_id;
} | <mask> }
<mask> if (typeof this._client !== 'undefined') {
<mask> data.client = this._client;
<mask> }
<mask> if (typeof this._client_proto !== 'undefined') {
<mask> data.client_proto = this._client_proto;
<mask> }
<mask> if (typeof this._e... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
client_id: !this._client_id ? true : typeof this._client_id === 'string' && !this._client_id ? true : this._client_id, | <mask> answer_dnssec: !this._answer_dnssec ? true : typeof this._answer_dnssec === 'boolean',
<mask> client: !this._client ? true : typeof this._client === 'string' && !this._client ? true : this._client,
<mask> elapsedMs: !this._elapsedMs ? true : typeof this._elapsedMs === 'stri... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/QueryLogItem.ts |
dns_addresses: string[]; | <mask> // This file was autogenerated. Please do not change.
<mask> // All changes will be overwrited on commit.
<mask> export interface IServerStatus {
<mask> dhcp_available?: boolean;
<mask> dns_address: string;
<mask> dns_port: number;
<mask> language: string;
<mask> protection_enabled: b... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
http_port: number; | <mask> export interface IServerStatus {
<mask> dhcp_available?: boolean;
<mask> dns_addresses: string[];
<mask> dns_port: number;
<mask> language: string;
<mask> protection_enabled: boolean;
<mask> running: boolean;
<mask> version: string;
<mask> }
</s> Pull request #961: New clien... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
<mask> dns_address: string;
<mask> dns_port: number;
<mask> language: string;
<mask> protection_enabled: boolean;
<mask> querylog_enabled: boolean;
<mask> running: boolean;
<mask> version: string;
<mask> }
<mask>
<mask> export default class ServerStatus {
</s> Pull request #961: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts | |
readonly _dns_addresses: string[]; | <mask> get dhcpAvailable(): boolean | undefined {
<mask> return this._dhcp_available;
<mask> }
<mask>
<mask> readonly _dns_address: string;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: 127.0.0.1
<mask> */
</s> Pull request #961: New client dashb... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
get dnsAddresses(): string[] {
return this._dns_addresses; | <mask> /**
<mask> * Description: undefined
<mask> * Example: 127.0.0.1
<mask> */
<mask> get dnsAddress(): string {
<mask> return this._dns_address;
<mask> }
<mask>
<mask> static dnsAddressValidate(dnsAddress: string): boolean {
<mask> return typeof dnsAddress ==... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
static dnsAddressesValidate(dnsAddresses: string[]): boolean {
return dnsAddresses.reduce<boolean>((result, p) => result && (typeof p === 'string' && !!p.trim()), true); | <mask> get dnsAddress(): string {
<mask> return this._dns_address;
<mask> }
<mask>
<mask> static dnsAddressValidate(dnsAddress: string): boolean {
<mask> return typeof dnsAddress === 'string' && !!dnsAddress.trim();
<mask> }
<mask>
<mask> readonly _dns_port: number;
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
<mask> static protectionEnabledValidate(protectionEnabled: boolean): boolean {
<mask> return typeof protectionEnabled === 'boolean';
<mask> }
<mask>
<mask> readonly _querylog_enabled: boolean;
<mask>
<mask> get querylogEnabled(): boolean {
<mask> return this._querylog_enabled;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts | |
this._dns_addresses = props.dns_addresses; | <mask> constructor(props: IServerStatus) {
<mask> if (typeof props.dhcp_available === 'boolean') {
<mask> this._dhcp_available = props.dhcp_available;
<mask> }
<mask> this._dns_address = props.dns_address.trim();
<mask> this._dns_port = props.dns_port;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
this._http_port = props.http_port; | <mask> this._dhcp_available = props.dhcp_available;
<mask> }
<mask> this._dns_addresses = props.dns_addresses;
<mask> this._dns_port = props.dns_port;
<mask> this._language = props.language.trim();
<mask> this._protection_enabled = props.protection_enabled;
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
<mask> this._dns_address = props.dns_address.trim();
<mask> this._dns_port = props.dns_port;
<mask> this._language = props.language.trim();
<mask> this._protection_enabled = props.protection_enabled;
<mask> this._querylog_enabled = props.querylog_enabled;
<mask> thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts | |
dns_addresses: this._dns_addresses, | <mask> }
<mask>
<mask> serialize(): IServerStatus {
<mask> const data: IServerStatus = {
<mask> dns_address: this._dns_address,
<mask> dns_port: this._dns_port,
<mask> language: this._language,
<mask> protection_enabled: this._protection_enabled,
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
http_port: this._http_port, | <mask> const data: IServerStatus = {
<mask> dns_addresses: this._dns_addresses,
<mask> dns_port: this._dns_port,
<mask> language: this._language,
<mask> protection_enabled: this._protection_enabled,
<mask> running: this._running,
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
<mask> dns_address: this._dns_address,
<mask> dns_port: this._dns_port,
<mask> language: this._language,
<mask> protection_enabled: this._protection_enabled,
<mask> querylog_enabled: this._querylog_enabled,
<mask> running: this._running,
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts | |
dns_addresses: this._dns_addresses.reduce((result, p) => result && typeof p === 'string', true), | <mask> }
<mask>
<mask> validate(): string[] {
<mask> const validate = {
<mask> dns_address: typeof this._dns_address === 'string' && !this._dns_address ? true : this._dns_address,
<mask> dns_port: this._dns_port >= 1 && this._dns_port <= 65535,
<mask> protecti... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
http_port: this._http_port >= 1 && this._http_port <= 65535, | <mask> validate(): string[] {
<mask> const validate = {
<mask> dns_addresses: this._dns_addresses.reduce((result, p) => result && typeof p === 'string', true),
<mask> dns_port: this._dns_port >= 1 && this._dns_port <= 65535,
<mask> protection_enabled: typeof this._pr... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts |
<mask> dns_address: typeof this._dns_address === 'string' && !this._dns_address ? true : this._dns_address,
<mask> dns_port: this._dns_port >= 1 && this._dns_port <= 65535,
<mask> protection_enabled: typeof this._protection_enabled === 'boolean',
<mask> dhcp_available... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/ServerStatus.ts | |
* Description: Time units | <mask>
<mask> readonly _time_units: string | undefined;
<mask>
<mask> /**
<mask> * Description: Time units (hours | days)
<mask> * Example: hours
<mask> */
<mask> get timeUnits(): string | undefined {
<mask> return this._time_units;
<mask> }
</s> Pull request #961: Ne... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/Stats.ts |
[key: string]: number | undefined; | <mask> // This file was autogenerated. Please do not change.
<mask> // All changes will be overwrited on commit.
<mask> export interface ITopArrayEntry {
<mask> domain_or_ip?: number;
<mask> }
<mask>
<mask> export default class TopArrayEntry {
<mask> readonly _domain_or_ip: number | undefined;
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/TopArrayEntry.ts |
readonly numberData: Record<string, number>;
| <mask> }
<mask>
<mask> constructor(props: ITopArrayEntry) {
<mask> this.numberData = Object.entries(props).reduce<Record<string, number>>((prev, [key, value]) => {
<mask> prev[key] = value!;
<mask> return prev;
<mask> }, {})
<mask> }
</s> Pull request #961: ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/TopArrayEntry.ts |
this.numberData = Object.entries(props).reduce<Record<string, number>>((prev, [key, value]) => {
prev[key] = value!;
return prev;
}, {}) | <mask> return this._domain_or_ip;
<mask> }
<mask>
<mask> constructor(props: ITopArrayEntry) {
<mask> if (typeof props.domain_or_ip === 'number') {
<mask> this._domain_or_ip = props.domain_or_ip;
<mask> }
<mask> }
<mask>
<mask> serialize(): ITopArrayEntry {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/TopArrayEntry.ts |
return Object.entries(this.numberData).reduce<Record<string, number>>((prev, [key, value]) => {
prev[key] = value;
return prev;
}, {}) | <mask> }
<mask> }
<mask>
<mask> serialize(): ITopArrayEntry {
<mask> const data: ITopArrayEntry = {
<mask> };
<mask> if (typeof this._domain_or_ip !== 'undefined') {
<mask> data.domain_or_ip = this._domain_or_ip;
<mask> }
<mask> return data;... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/TopArrayEntry.ts |
[key: string]: string; | <mask> // This file was autogenerated. Please do not change.
<mask> // All changes will be overwrited on commit.
<mask> export interface IUpstreamsConfigResponse {
<mask> }
<mask>
<mask> export default class UpstreamsConfigResponse {
<mask> readonly data: Record<string, string>;
<mask>
</s> Pull request ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
readonly data: Record<string, string>;
| <mask>
<mask> export default class UpstreamsConfigResponse {
<mask> constructor(props: IUpstreamsConfigResponse) {
<mask> this.data = Object.entries(props).reduce<Record<string, string>>((prev, [key, value]) => {
<mask> prev[key] = value!;
<mask> return prev;
</s> Pull reques... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
this.data = Object.entries(props).reduce<Record<string, string>>((prev, [key, value]) => {
prev[key] = value!;
return prev;
}, {}) | <mask> readonly data: Record<string, string>;
<mask>
<mask> constructor(props: IUpstreamsConfigResponse) {
<mask> }
<mask>
<mask> serialize(): IUpstreamsConfigResponse {
<mask> return Object.entries(this.data).reduce<Record<string, string>>((prev, [key, value]) => {
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
return Object.entries(this.data).reduce<Record<string, string>>((prev, [key, value]) => {
prev[key] = value;
return prev;
}, {}) | <mask> constructor(props: IUpstreamsConfigResponse) {
<mask> }
<mask>
<mask> serialize(): IUpstreamsConfigResponse {
<mask> const data: IUpstreamsConfigResponse = {
<mask> };
<mask> return data;
<mask> }
<mask>
<mask> validate(): string[] {
<mask> const v... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
return [] | <mask> return data;
<mask> }
<mask>
<mask> validate(): string[] {
<mask> const validate = {
<mask> };
<mask> const isError: string[] = [];
<mask> Object.keys(validate).forEach((key) => {
<mask> if (!(validate as any)[key]) {
<mask> i... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
update(props: IUpstreamsConfigResponse): UpstreamsConfigResponse { | <mask> });
<mask> return isError;
<mask> }
<mask>
<mask> update(props: Partial<IUpstreamsConfigResponse>): UpstreamsConfigResponse {
<mask> return new UpstreamsConfigResponse({ ...this.serialize(), ...props });
<mask> }
<mask> }
</s> Pull request #961: New client dashboard
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/UpstreamsConfigResponse.ts |
disabled: boolean; | <mask> announcement_url?: string;
<mask> can_autoupdate?: boolean;
<mask> new_version?: string;
<mask> }
<mask>
<mask> export default class VersionInfo {
<mask> readonly _announcement: string | undefined;
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-da... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/VersionInfo.ts |
readonly _disabled: boolean;
/** */
get disabled(): boolean {
return this._disabled;
}
static disabledValidate(disabled: boolean): boolean {
return typeof disabled === 'boolean';
}
| <mask> }
<mask>
<mask> readonly _new_version: string | undefined;
<mask>
<mask> /**
<mask> * Description: undefined
<mask> * Example: v0.9
<mask> */
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the f... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/VersionInfo.ts |
this._disabled = props.disabled; | <mask> }
<mask> if (typeof props.can_autoupdate === 'boolean') {
<mask> this._can_autoupdate = props.can_autoupdate;
<mask> }
<mask> if (typeof props.new_version === 'string') {
<mask> this._new_version = props.new_version.trim();
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/VersionInfo.ts |
disabled: this._disabled, | <mask>
<mask> serialize(): IVersionInfo {
<mask> const data: IVersionInfo = {
<mask> };
<mask> if (typeof this._announcement !== 'undefined') {
<mask> data.announcement = this._announcement;
<mask> }
<mask> if (typeof this._announcement_url !== 'undefined... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/VersionInfo.ts |
disabled: typeof this._disabled === 'boolean', | <mask> validate(): string[] {
<mask> const validate = {
<mask> new_version: !this._new_version ? true : typeof this._new_version === 'string' && !this._new_version ? true : this._new_version,
<mask> announcement: !this._announcement ? true : typeof this._announcement === 'string'... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/VersionInfo.ts |
[key: string]: string; | <mask> // This file was autogenerated. Please do not change.
<mask> // All changes will be overwrited on commit.
<mask> export interface IWhoisInfo {
<mask> key?: string;
<mask> }
<mask>
<mask> export default class WhoisInfo {
<mask> readonly _key: string | undefined;
<mask>
</s> Pull request #961: ... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
readonly data: Record<string, string>; | <mask> key?: string;
<mask> }
<mask>
<mask> export default class WhoisInfo {
<mask> readonly _key: string | undefined;
<mask>
<mask> get key(): string | undefined {
<mask> return this._key;
<mask> }
<mask>
<mask> constructor(props: IWhoisInfo) {
<mask> if (typeof props... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
this.data = Object.entries(props).reduce<Record<string, string>>((prev, [key, value]) => {
prev[key] = value!;
return prev;
}, {}) | <mask> return this._key;
<mask> }
<mask>
<mask> constructor(props: IWhoisInfo) {
<mask> if (typeof props.key === 'string') {
<mask> this._key = props.key.trim();
<mask> }
<mask> }
<mask>
<mask> serialize(): IWhoisInfo {
<mask> const data: IWhoisIn... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
return Object.entries(this.data).reduce<Record<string, string>>((prev, [key, value]) => {
prev[key] = value;
return prev;
}, {}) | <mask> }
<mask> }
<mask>
<mask> serialize(): IWhoisInfo {
<mask> const data: IWhoisInfo = {
<mask> };
<mask> if (typeof this._key !== 'undefined') {
<mask> data.key = this._key;
<mask> }
<mask> return data;
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
return [] | <mask> return data;
<mask> }
<mask>
<mask> validate(): string[] {
<mask> const validate = {
<mask> key: !this._key ? true : typeof this._key === 'string' && !this._key ? true : this._key,
<mask> };
<mask> const isError: string[] = [];
<mask> Object.k... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
update(props: IWhoisInfo): WhoisInfo { | <mask> });
<mask> return isError;
<mask> }
<mask>
<mask> update(props: Partial<IWhoisInfo>): WhoisInfo {
<mask> return new WhoisInfo({ ...this.serialize(), ...props });
<mask> }
<mask> }
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/entities/WhoisInfo.ts |
<mask> .layout {
<mask> min-height: 100vh;
<mask> background-color: var(--gray100);
<mask>
<mask> @media (--m-viewport) {
<mask> background-image: url('../../assets/img/install.png');
<mask> background-position: center 20px;
<mask> background-repeat: no-repeat;
<mask> ... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",... | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/Install.module.pcss | |
&.gray {
color: var(--gray900);
&:hover,
&:focus {
color: var(--gray700);
}
&:active {
color: var(--gray700);
}
} | <mask> &:active {
<mask> color: var(--green400);
<mask> }
<mask> }
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the following:
commit 7bbd67c1e3d2af62b96bf41bb356cd6b784e473e
Merge: 113743a6 9cd9054c
Author: Vlad <v... | [
"keep",
"keep",
"add",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/Link.module.pcss |
.code {
padding: 3px 5px;
font-size: 14px;
font-family: var(--font-family-monospace);
background-color: var(--gray300);
border-radius: 2px;
}
| <mask> .regular {
<mask> font-weight: 400;
<mask> }
<mask>
<mask> .danger {
<mask> text-transform: uppercase;
<mask> color: var(--red400);
<mask> font-weight: bold;
<mask> }
<mask>
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
S... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/Text.module.pcss |
import content from './Content.module.pcss';
import { colors } from './colors'; | <mask> import install from './Install.module.pcss';
<mask> import link from './Link.module.pcss';
<mask>
<mask> const theme = {
<mask> form,
<mask> chartColors: colors,
<mask> text,
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/index.ts |
chartColors: colors, | <mask> const theme = {
<mask> form,
<mask> text,
<mask> install,
<mask> link,
<mask> content,
<mask> };
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the following:
commit 7bbd67c1e3d2af62b96bf41bb356cd6b784e4... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/index.ts |
content, | <mask> text,
<mask> install,
<mask> link,
<mask> };
<mask>
<mask> export default theme;
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the following:
commit 7bbd67c1e3d2af62b96bf41bb356cd6b784e473e
Merge: 113743a6 9cd9... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/lib/theme/index.ts |
import { Locale, DatePickerLocale, messages, DEFAULT_LOCALE, LANGUAGES } from './locales'; | <mask> import T from './Translator';
<mask> import { Locale } from './locales';
<mask>
<mask> export { messages, DatePickerLocale, Locale, DEFAULT_LOCALE, LANGUAGES, reactFormater } from './locales';
<mask> export type Translator = T<Locale>;
<mask> export default T;
</s> Pull request #961: New client dashboard... | [
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/index.ts |
export { Locale, DatePickerLocale, messages, DEFAULT_LOCALE, LANGUAGES };
export const i18n = (lang: Locale) => ({
getMessage: (key: string) => messages[lang][key],
getUILanguage: () => lang,
getBaseMessage: (key: string) => messages[DEFAULT_LOCALE][key] || key,
getBaseUILanguage: () => DEFAULT_LOCALE,
... | <mask> import T from './Translator';
<mask> import { Locale } from './locales';
<mask>
<mask> export { messages, DatePickerLocale, Locale, DEFAULT_LOCALE, LANGUAGES, reactFormater } from './locales';
<mask> export type Translator = T<Locale>;
<mask> export default T;
</s> Pull request #961: New client dashboard... | [
"keep",
"keep",
"keep",
"replace",
"replace",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/index.ts |
"install_configure_dhcp": "You can't set a custom DNS server on some types of routers. In this case it may help if you set up <dhcp>AdGuard Home as a DHCP server</dhcp>. Otherwise, you should search for the manual on how to customize DNS servers for your particular router model.",
"header_adguard_status_enable... | <mask> "install_configure_macos": "<p>Click on Apple icon and go to System Preferences.</p><p>Click on Network.</p><p>Select the first connection in your list and click Advanced.</p><p>Select the DNS tab and enter your AdGuard Home server addresses.</p>",
<mask> "install_configure_android": "<p>From the Andro... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/locales/en.json |
<mask> import React from 'react';
<mask> import 'dayjs/locale/ru';
<mask>
<mask> import { PickerLocale } from 'antd/es/date-picker/generatePicker';
<mask> import ruPicker from 'antd/es/date-picker/locale/ru_RU';
<mask> import enPicker from 'antd/es/date-picker/locale/en_GB';
</s> Pull request #961: New client d... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/locales/index.ts | |
// TODO get languages and default locale from .twosky file | <mask> [Locale.ru]: ruLang,
<mask> [Locale.en]: enLang,
<mask> };
<mask>
<mask> export const DEFAULT_LOCALE = Locale.en;
<mask>
<mask> export const LANGUAGES: { code: Locale; name: string }[] = [
<mask> {
<mask> code: Locale.en,
<mask> name: 'English',
</s> Pull request #961: Ne... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/locales/index.ts |
<mask> };
<mask>
<mask> export const DEFAULT_LOCALE = Locale.en;
<mask>
<mask> export const reactFormater = (data: (JSX.Element | string)[]) => {
<mask> if (data.every((d) => typeof d === 'string')) {
<mask> return data.join('');
<mask> }
<mask> return React.Children.toArray(data);
<mask... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/localization/locales/index.ts | |
--black: #131313; | <mask> --gray300: #d8d8d8;
<mask> --gray400: #a4a4a4;
<mask> --gray700: #888888;
<mask> --gray900: #4d4d4d;
<mask> --black: #000000;
<mask> --green400: #67b279;
<mask> --green700: #4d995f;
<mask> --red400: #c23814;
<mask> --transition: 0.3s cubic-bezier(0.645, 0.045... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/main.pcss |
--text-selection: #e7efff;
--header-height: 48px; | <mask> --black: #131313;
<mask> --green400: #67b279;
<mask> --green700: #4d995f;
<mask> --red400: #c23814;
<mask> --transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
<mask> --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
<mask>... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/main.pcss |
font-size: 16px; | <mask> --font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
<mask> }
<mask>
<mask> body {
<mask> font-size: 14px;
<mask> color: var(--gray900);
<mask> }
<mask>
<mask> @custom-media --m-viewport (min-width: 768px);
<mask> @custom-media --l-viewport (min-... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/main.pcss |
::selection {
background: var(--text-selection);
color: var(--black);
}
| <mask> color: var(--gray900);
<mask> }
<mask>
<mask> @custom-media --m-viewport (min-width: 768px);
<mask> @custom-media --l-viewport (min-width: 992px);
<mask> @custom-media --xl-viewport (min-width: 1200px);
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/main.pcss |
import Login from './stores/Login';
import Dashboard from './stores/Dasnboard';
import System from './stores/System';
import GeneralSettings from './stores/GeneralSettings'; | <mask> import { createContext } from 'react';
<mask> import UI from './stores/ui';
<mask>
<mask> export class Store {
<mask> ui: UI;
<mask>
<mask> login: Login;
<mask>
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/store.ts |
login: Login;
dashboard: Dashboard;
system: System;
generalSettings: GeneralSettings;
| <mask> ui: UI;
<mask>
<mask> constructor() {
<mask> this.ui = new UI(this);
<mask> this.login = new Login(this);
<mask> this.dashboard = new Dashboard(this);
<mask> this.system = new System(this);
<mask> this.generalSettings = new GeneralSettings(this);
</s> Pul... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/store.ts |
this.login = new Login(this);
this.dashboard = new Dashboard(this);
this.system = new System(this);
this.generalSettings = new GeneralSettings(this);
}
init() {
this.dashboard.init();
this.system.init(); | <mask> constructor() {
<mask> this.ui = new UI(this);
<mask> }
<mask> }
<mask>
<mask> export const storeValue = new Store();
<mask>
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commit of the following:
commit 7bbd67c1e3d... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/store.ts |
import { Store } from 'Store/installStore'; | <mask> import { IInitialConfigurationBeta } from 'Entities/InitialConfigurationBeta';
<mask> import { errorChecker } from 'Helpers/apiErrors';
<mask> import { flow, makeAutoObservable } from 'mobx';
<mask>
<mask> import { Store } from 'Store';
<mask>
<mask> export default class Install {
<mask> rootStore:... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/Install.ts |
import React from 'react';
import { makeAutoObservable, observable, action } from 'mobx';
import { translate } from '@adguard/translate'; | <mask> import { makeAutoObservable, observable } from 'mobx';
<mask>
<mask> import Translator, { DEFAULT_LOCALE, messages, Locale, reactFormater } from 'Localization';
<mask> import { Store } from 'Store';
<mask>
<mask> export default class UI {
</s> Pull request #961: New client dashboard
Merge in DNS/adguar... | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
import { Locale, DEFAULT_LOCALE, i18n } from 'Localization'; | <mask> import { makeAutoObservable, observable } from 'mobx';
<mask>
<mask> import Translator, { DEFAULT_LOCALE, messages, Locale, reactFormater } from 'Localization';
<mask> import { Store } from 'Store';
<mask>
<mask> export default class UI {
<mask> rootStore: Store;
<mask>
</s> Pull request #961: Ne... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
import { Store as InstallStore } from 'Store/installStore'; | <mask> import { translate } from '@adguard/translate';
<mask>
<mask> import { Locale, DEFAULT_LOCALE, i18n } from 'Localization';
<mask> import { Store } from 'Store';
<mask>
<mask> export default class UI {
<mask> rootStore: Store | InstallStore;
<mask>
</s> Pull request #961: New client dashboard
Mer... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
rootStore: Store | InstallStore; | <mask> import Translator, { DEFAULT_LOCALE, messages, Locale, reactFormater } from 'Localization';
<mask> import { Store } from 'Store';
<mask>
<mask> export default class UI {
<mask> rootStore: Store;
<mask>
<mask> currentLang = DEFAULT_LOCALE;
<mask>
<mask> intl = new Translator<Locale>(Locale... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
intl = translate.createReactTranslator<any>(i18n(this.currentLang), React); | <mask> rootStore: Store;
<mask>
<mask> currentLang = DEFAULT_LOCALE;
<mask>
<mask> intl = new Translator<Locale>(Locale.en, messages, DEFAULT_LOCALE, reactFormater);
<mask>
<mask> constructor(rootStore: Store) {
<mask> this.rootStore = rootStore;
<mask> makeAutoObservable(thi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
sidebarOpen = false;
constructor(rootStore: Store | InstallStore) { | <mask> currentLang = DEFAULT_LOCALE;
<mask>
<mask> intl = new Translator<Locale>(Locale.en, messages, DEFAULT_LOCALE, reactFormater);
<mask>
<mask> constructor(rootStore: Store) {
<mask> this.rootStore = rootStore;
<mask> makeAutoObservable(this, {
<mask> intl: observab... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
sidebarOpen: observable,
toggleSidebar: action, | <mask> makeAutoObservable(this, {
<mask> intl: observable.struct,
<mask> rootStore: false,
<mask> });
<mask> }
<mask>
<mask> updateLang = (lang: Locale) => {
<mask> this.currentLang = lang;
</s> Pull request #961: New client dashboard
Merge in DNS/adgua... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
this.intl = translate.createReactTranslator<any>(i18n(this.currentLang), React);
};
toggleSidebar = () => {
this.sidebarOpen = !this.sidebarOpen; | <mask> }
<mask>
<mask> updateLang = (lang: Locale) => {
<mask> this.currentLang = lang;
<mask> this.intl = this.intl.updateTranslator(lang);
<mask> };
<mask> }
</s> Pull request #961: New client dashboard
Merge in DNS/adguard-home from new-client-dashboard to master
Squashed commi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/src/store/stores/ui.ts |
"Paths": ["components/App/Routes/Paths"], | <mask> "Hooks": ["lib/hooks"],
<mask> "Helpers/*": ["lib/helpers/*"],
<mask> "Lib/*": ["lib/*"],
<mask> "Localization": ["localization/index"],
<mask> "Routes": ["lib/routes"],
<mask> "Store": ["store/store"],
<mask> "Store/*": ["store/*"]
<mask> },
<mask> "typ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/0c127039cfa55d4cadfce20bcfa2c542840bd7ed | client2/tsconfig.json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.