repo_name
string
dataset
string
owner
string
lang
string
func_name
string
code
string
docstring
string
url
string
sha
string
Slack
github_2023
qiwentaidi
typescript
Client.GetADAdmins
public GetADAdmins(): SearchResult | null { return null; }
/** * GetADAdmins returns all AD admins * using FilterIsPerson, FilterAccountEnabled and FilterIsAdmin filter query * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * const admins = client.GetADAdmins()...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L340-L342
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.GetADUserKerberoastable
public GetADUserKerberoastable(): SearchResult | null { return null; }
/** * GetADUserKerberoastable returns all AD users that are kerberoastable * using FilterIsPerson, FilterAccountEnabled and FilterHasServicePrincipalName filter query * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'ac...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L356-L358
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.GetADUserAsRepRoastable
public GetADUserAsRepRoastable(): SearchResult | null { return null; }
/** * GetADUserAsRepRoastable returns all AD users that are AsRepRoastable * using FilterIsPerson, and FilterDontRequirePreauth filter query * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * const AsRe...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L372-L374
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.GetADDomainSID
public GetADDomainSID(): string { return ""; }
/** * GetADDomainSID returns the SID of the AD domain * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * const domainSID = client.GetADDomainSID(); * log(domainSID); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L387-L389
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.Authenticate
public Authenticate(username: string): void { return; }
/** * Authenticate authenticates with the ldap server using the given username and password * performs NTLMBind first and then Bind/UnauthenticatedBind if NTLMBind fails * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L402-L404
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.AuthenticateWithNTLMHash
public AuthenticateWithNTLMHash(username: string): void { return; }
/** * AuthenticateWithNTLMHash authenticates with the ldap server using the given username and NTLM hash * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * client.AuthenticateWithNTLMHash('pdtm', 'hash'); ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L416-L418
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.Search
public Search(filter: string, attributes: any): SearchResult | null { return null; }
/** * Search accepts whatever filter and returns a list of maps having provided attributes * as keys and associated values mirroring the ones returned by ldap * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com')...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L431-L433
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.AdvancedSearch
public AdvancedSearch(Scope: number, TypesOnly: boolean, Filter: string, Attributes: string[], Controls: any): SearchResult | null { return null; }
/** * AdvancedSearch accepts all values of search request type and return Ldap Entry * its up to user to handle the response * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * const results = client.Adv...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L446-L448
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.CollectMetadata
public CollectMetadata(): Metadata | null { return null; }
/** * CollectLdapMetadata collects metadata from ldap server. * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * const metadata = client.CollectMetadata(); * log(to_json(metadata)); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L461-L463
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.Close
public Close(): void { return; }
/** * close the ldap connection * @example * ```javascript * const ldap = require('nuclei/ldap'); * const client = new ldap.Client('ldap://ldap.example.com', 'acme.com'); * client.Close(); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ldap.ts#L475-L477
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MSSQLClient.constructor
constructor() {}
// Constructor of MSSQLClient
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mssql.ts#L16-L16
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MSSQLClient.Connect
public Connect(host: string, port: number, username: string): boolean | null { return null; }
/** * Connect connects to MS SQL database using given credentials. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * The connection is closed after the function returns. * @example * ```javascript * const mssql = require('nuclei/ms...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mssql.ts#L29-L31
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MSSQLClient.ConnectWithDB
public ConnectWithDB(host: string, port: number, username: string): boolean | null { return null; }
/** * ConnectWithDB connects to MS SQL database using given credentials and database name. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * The connection is closed after the function returns. * @example * ```javascript * const ms...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mssql.ts#L46-L48
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MSSQLClient.IsMssql
public IsMssql(host: string, port: number): boolean | null { return null; }
/** * IsMssql checks if the given host is running MS SQL database. * If the host is running MS SQL database, it returns true. * If the host is not running MS SQL database, it returns false. * @example * ```javascript * const mssql = require('nuclei/mssql'); * const isMssql = mssql.IsMssql('a...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mssql.ts#L61-L63
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.constructor
constructor() {}
// Constructor of MySQLClient
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L33-L33
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.IsMySQL
public IsMySQL(host: string, port: number): boolean | null { return null; }
/** * IsMySQL checks if the given host is running MySQL database. * If the host is running MySQL database, it returns true. * If the host is not running MySQL database, it returns false. * @example * ```javascript * const mysql = require('nuclei/mysql'); * const isMySQL = mysql.IsMySQL('acme...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L44-L46
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.Connect
public Connect(host: string, port: number, username: string): boolean | null { return null; }
/** * Connect connects to MySQL database using given credentials. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * The connection is closed after the function returns. * @example * ```javascript * const mysql = require('nuclei/mys...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L61-L63
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.FingerprintMySQL
public FingerprintMySQL(host: string, port: number): MySQLInfo | null { return null; }
/** * returns MySQLInfo when fingerpint is successful * @example * ```javascript * const mysql = require('nuclei/mysql'); * const info = mysql.FingerprintMySQL('acme.com', 3306); * log(to_json(info)); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L75-L77
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.ConnectWithDSN
public ConnectWithDSN(dsn: string): boolean | null { return null; }
/** * ConnectWithDSN connects to MySQL database using given DSN. * we override mysql dialer with fastdialer so it respects network policy * If connection is successful, it returns true. * @example * ```javascript * const mysql = require('nuclei/mysql'); * const client = new mysql.MySQLClient...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L91-L93
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.ExecuteQueryWithOpts
public ExecuteQueryWithOpts(opts: MySQLOptions, query: string): SQLResult | null | null { return null; }
/** * ExecuteQueryWithOpts connects to Mysql database using given credentials * and executes a query on the db. * @example * ```javascript * const mysql = require('nuclei/mysql'); * const options = new mysql.MySQLOptions(); * options.Host = 'acme.com'; * options.Port = 3306; * const ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L109-L111
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.ExecuteQuery
public ExecuteQuery(host: string, port: number, username: string): SQLResult | null | null { return null; }
/** * ExecuteQuery connects to Mysql database using given credentials * and executes a query on the db. * @example * ```javascript * const mysql = require('nuclei/mysql'); * const result = mysql.ExecuteQuery('acme.com', 3306, 'username', 'password', 'SELECT * FROM users'); * log(to_json(resu...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L124-L126
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
MySQLClient.ExecuteQueryOnDB
public ExecuteQueryOnDB(host: string, port: number, username: string): SQLResult | null | null { return null; }
/** * ExecuteQuery connects to Mysql database using given credentials * and executes a query on the db. * @example * ```javascript * const mysql = require('nuclei/mysql'); * const result = mysql.ExecuteQueryOnDB('acme.com', 3306, 'username', 'password', 'dbname', 'SELECT * FROM users'); * lo...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/mysql.ts#L139-L141
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.constructor
constructor() {}
// Constructor of NetConn
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L46-L46
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.Close
public Close(): void { return; }
/** * Close closes the connection. * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * conn.Close(); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L56-L58
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.SetTimeout
public SetTimeout(value: number): void { return; }
/** * SetTimeout sets read/write timeout for the connection (in seconds). * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * conn.SetTimeout(10); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L70-L72
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.SendArray
public SendArray(data: any): void { return; }
/** * SendArray sends array data to connection * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * conn.SendArray(['hello', 'world']); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L84-L86
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.SendHex
public SendHex(data: string): void { return; }
/** * SendHex sends hex data to connection * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * conn.SendHex('68656c6c6f'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L98-L100
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.Send
public Send(data: string): void { return; }
/** * Send sends data to the connection with a timeout. * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * conn.Send('hello'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L112-L114
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.RecvFull
public RecvFull(N: number): Uint8Array | null { return null; }
/** * RecvFull receives data from the connection with a timeout. * If N is 0, it will read all data sent by the server with 8MB limit. * it tries to read until N bytes or timeout is reached. * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme....
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L128-L130
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.Recv
public Recv(N: number): Uint8Array | null { return null; }
/** * Recv is similar to RecvFull but does not guarantee full read instead * it creates a buffer of N bytes and returns whatever is returned by the connection * for reading headers or initial bytes from the server this is usually used. * for reading a fixed number of already known bytes (ex: body based ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L146-L148
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.RecvFullString
public RecvFullString(N: number): string | null { return null; }
/** * RecvFullString receives data from the connection with a timeout * output is returned as a string. * If N is 0, it will read all data sent by the server with 8MB limit. * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', 'acme.com:80'); * c...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L162-L164
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.RecvString
public RecvString(N: number): string | null { return null; }
/** * RecvString is similar to RecvFullString but does not guarantee full read, instead * it creates a buffer of N bytes and returns whatever is returned by the connection * for reading headers or initial bytes from the server this is usually used. * for reading a fixed number of already known bytes (ex...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L179-L181
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.RecvFullHex
public RecvFullHex(N: number): string | null { return null; }
/** * RecvFullHex receives data from the connection with a timeout * in hex format. * If N is 0,it will read all data sent by the server with 8MB limit. * until N bytes or timeout is reached. * @example * ```javascript * const net = require('nuclei/net'); * const conn = net.Open('tcp', '...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L196-L198
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
NetConn.RecvHex
public RecvHex(N: number): string | null { return null; }
/** * RecvHex is similar to RecvFullHex but does not guarantee full read instead * it creates a buffer of N bytes and returns whatever is returned by the connection * for reading headers or initial bytes from the server this is usually used. * for reading a fixed number of already known bytes (ex: body ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/net.ts#L213-L215
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
PGClient.constructor
constructor() {}
// Constructor of PGClient
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/postgres.ts#L16-L16
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
PGClient.IsPostgres
public IsPostgres(host: string, port: number): boolean | null { return null; }
/** * IsPostgres checks if the given host and port are running Postgres database. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * @example * ```javascript * const postgres = require('nuclei/postgres'); * const isPostgres = postgr...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/postgres.ts#L27-L29
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
PGClient.Connect
public Connect(host: string, port: number, username: string): boolean | null { return null; }
/** * Connect connects to Postgres database using given credentials. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * The connection is closed after the function returns. * @example * ```javascript * const postgres = require('nucl...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/postgres.ts#L44-L46
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
PGClient.ExecuteQuery
public ExecuteQuery(host: string, port: number, username: string): SQLResult | null | null { return null; }
/** * ExecuteQuery connects to Postgres database using given credentials and database name. * and executes a query on the db. * If connection is successful, it returns the result of the query. * @example * ```javascript * const postgres = require('nuclei/postgres'); * const client = new post...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/postgres.ts#L61-L63
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
PGClient.ConnectWithDB
public ConnectWithDB(host: string, port: number, username: string): boolean | null { return null; }
/** * ConnectWithDB connects to Postgres database using given credentials and database name. * If connection is successful, it returns true. * If connection is unsuccessful, it returns false and error. * The connection is closed after the function returns. * @example * ```javascript * const ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/postgres.ts#L78-L80
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMBClient.constructor
constructor() {}
// Constructor of SMBClient
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smb.ts#L17-L17
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMBClient.ConnectSMBInfoMode
public ConnectSMBInfoMode(host: string, port: number): SMBLog | null | null { return null; }
/** * ConnectSMBInfoMode tries to connect to provided host and port * and discovery SMB information * Returns handshake log and error. If error is not nil, * state will be false * @example * ```javascript * const smb = require('nuclei/smb'); * const client = new smb.SMBClient(); * co...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smb.ts#L31-L33
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMBClient.ListSMBv2Metadata
public ListSMBv2Metadata(host: string, port: number): ServiceSMB | null | null { return null; }
/** * ListSMBv2Metadata tries to connect to provided host and port * and list SMBv2 metadata. * Returns metadata and error. If error is not nil, * state will be false * @example * ```javascript * const smb = require('nuclei/smb'); * const client = new smb.SMBClient(); * const metadat...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smb.ts#L49-L51
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMBClient.ListShares
public ListShares(host: string, port: number, user: string): string[] | null { return null; }
/** * ListShares tries to connect to provided host and port * and list shares by using given credentials. * Credentials cannot be blank. guest or anonymous credentials * can be used by providing empty password. * @example * ```javascript * const smb = require('nuclei/smb'); * const clien...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smb.ts#L69-L71
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMBClient.DetectSMBGhost
public DetectSMBGhost(host: string, port: number): boolean | null { return null; }
/** * DetectSMBGhost tries to detect SMBGhost vulnerability * by using SMBv3 compression feature. * If the host is vulnerable, it returns true. * @example * ```javascript * const smb = require('nuclei/smb'); * const isSMBGhost = smb.DetectSMBGhost('acme.com', 445); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smb.ts#L84-L86
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.constructor
constructor(public host: string, public port: string ) {}
// Constructor of Client
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L15-L15
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.IsSMTP
public IsSMTP(): SMTPResponse | null { return null; }
/** * IsSMTP checks if a host is running a SMTP server. * @example * ```javascript * const smtp = require('nuclei/smtp'); * const client = new smtp.Client('acme.com', 25); * const isSMTP = client.IsSMTP(); * log(isSMTP) * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L28-L30
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.IsOpenRelay
public IsOpenRelay(msg: SMTPMessage): boolean | null { return null; }
/** * IsOpenRelay checks if a host is an open relay. * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.From('xyz@projectdiscovery.io'); * message.To('xyz2@projectdiscoveyr.io'); * message.Subject('hello'); * message....
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L47-L49
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
Client.SendMail
public SendMail(msg: SMTPMessage): boolean | null { return null; }
/** * SendMail sends an email using the SMTP protocol. * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.From('xyz@projectdiscovery.io'); * message.To('xyz2@projectdiscoveyr.io'); * message.Subject('hello'); * messag...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L67-L69
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.constructor
constructor() {}
// Constructor of SMTPMessage
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L89-L89
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.From
public From(email: string): SMTPMessage { return this; }
/** * From adds the from field to the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.From('xyz@projectdiscovery.io'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L99-L101
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.To
public To(email: string): SMTPMessage { return this; }
/** * To adds the to field to the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.To('xyz@projectdiscovery.io'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L113-L115
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.Subject
public Subject(sub: string): SMTPMessage { return this; }
/** * Subject adds the subject field to the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.Subject('hello'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L127-L129
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.Body
public Body(msg: Uint8Array): SMTPMessage { return this; }
/** * Body adds the message body to the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.Body('hello'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L141-L143
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.Auth
public Auth(username: string): SMTPMessage { return this; }
/** * Auth when called authenticates using username and password before sending the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.Auth('username', 'password'); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L155-L157
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SMTPMessage.String
public String(): string { return ""; }
/** * String returns the string representation of the message * @example * ```javascript * const smtp = require('nuclei/smtp'); * const message = new smtp.SMTPMessage(); * message.From('xyz@projectdiscovery.io'); * message.To('xyz2@projectdiscoveyr.io'); * message.Subject('hello'); *...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/smtp.ts#L173-L175
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.constructor
constructor() {}
// Constructor of SSHClient
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L16-L16
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.SetTimeout
public SetTimeout(sec: number): void { return; }
/** * SetTimeout sets the timeout for the SSH connection in seconds * @example * ```javascript * const ssh = require('nuclei/ssh'); * const client = new ssh.SSHClient(); * client.SetTimeout(10); * ``` */
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L26-L28
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.Connect
public Connect(host: string, port: number, username: string): boolean | null { return null; }
/** * Connect tries to connect to provided host and port * with provided username and password with ssh. * Returns state of connection and error. If error is not nil, * state will be false * @example * ```javascript * const ssh = require('nuclei/ssh'); * const client = new ssh.SSHClient(...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L43-L45
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.ConnectWithKey
public ConnectWithKey(host: string, port: number, username: string): boolean | null { return null; }
/** * ConnectWithKey tries to connect to provided host and port * with provided username and private_key. * Returns state of connection and error. If error is not nil, * state will be false * @example * ```javascript * const ssh = require('nuclei/ssh'); * const client = new ssh.SSHClient...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L61-L63
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.ConnectSSHInfoMode
public ConnectSSHInfoMode(host: string, port: number): HandshakeLog | null | null { return null; }
/** * ConnectSSHInfoMode tries to connect to provided host and port * with provided host and port * Returns HandshakeLog and error. If error is not nil, * state will be false * HandshakeLog is a struct that contains information about the * ssh connection * @example * ```javascript * ...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L81-L83
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.Run
public Run(cmd: string): string | null { return null; }
/** * Run tries to open a new SSH session, then tries to execute * the provided command in said session * Returns string and error. If error is not nil, * state will be false * The string contains the command output * @example * ```javascript * const ssh = require('nuclei/ssh'); * co...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L101-L103
be1155d9ae7c179e92054971d51e0e3da8d36b28
Slack
github_2023
qiwentaidi
typescript
SSHClient.Close
public Close(): boolean | null { return null; }
/** * Close closes the SSH connection and destroys the client * Returns the success state and error. If error is not nil, * state will be false * @example * ```javascript * const ssh = require('nuclei/ssh'); * const client = new ssh.SSHClient(); * client.Connect('acme.com', 22, 'username...
https://github.com/qiwentaidi/Slack/blob/be1155d9ae7c179e92054971d51e0e3da8d36b28/lib/nuclei/pkg/js/generated/ts/ssh.ts#L118-L120
be1155d9ae7c179e92054971d51e0e3da8d36b28
obsidian-better-export-pdf
github_2023
l1xnan
typescript
ExportConfigModal.appendWebview
async appendWebview(e: HTMLDivElement, doc: Document) { const webview = createWebview(this.scale); const preview = e.appendChild(webview); this.webviews.push(preview); this.preview = preview; preview.addEventListener("dom-ready", async (e) => { this.completed = true; getAllStyles().forEa...
/** * append webview * @param e HTMLDivElement * @param render Rerender or not */
https://github.com/l1xnan/obsidian-better-export-pdf/blob/39546003e7326fe97d1ead30750eab334a36be0c/src/modal.ts#L237-L263
39546003e7326fe97d1ead30750eab334a36be0c
obsidian-better-export-pdf
github_2023
l1xnan
typescript
createOutline
const createOutline = (outlines: readonly PDFOutline[], parent: PDFRef) => { const { length } = outlines; for (let i = 0; i < length; i += 1) { const outline = outlines[i]; const outlineRef = refMap.get(outline)!; const destOrAction = (() => { // if (typeof outline.to === 'string') {...
// Outlines
https://github.com/l1xnan/obsidian-better-export-pdf/blob/39546003e7326fe97d1ead30750eab334a36be0c/src/pdf.ts#L199-L251
39546003e7326fe97d1ead30750eab334a36be0c
eslint-react
github_2023
Rel1cx
typescript
isValidHTMLTagInJSX
function isValidHTMLTagInJSX(childNode) { const tagConvention = /^[a-z][^-]*$/; if (tagConvention.test(childNode.parent.name.name)) { return !childNode.parent.attributes.some((attrNode) => attrNode.type === "JSXAttribute" && attrNode.name.type === "JSXIdentifier" && attrNode.name.name === "is"...
// ------------------------------------------------------------------------------
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L938-L950
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
normalizeAttributeCase
function normalizeAttributeCase(name) { return DOM_PROPERTIES_IGNORE_CASE.find((element) => element.toLowerCase() === name.toLowerCase()) || name; }
/** * Checks if the attribute name is included in the attributes that are excluded * from the camel casing. * * // returns 'charSet' * @example normalizeAttributeCase('charset') * * Note - these exclusions are not made by React core team, but `eslint-plugin-react` community. * @param name - Attribute name to be...
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L963-L965
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
isValidDataAttribute
function isValidDataAttribute(name) { return !/^data-xml/i.test(name) && /^data-[^:]*$/.test(name); }
/** * Checks if an attribute name is a valid `data-*` attribute: * if the name starts with "data-" and has alphanumeric words (browsers require lowercase, but React and TS lowercase them), * not start with any casing of "xml", and separated by hyphens (-) (which is also called "kebab case" or "dash case"), * then t...
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L975-L977
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
hasUpperCaseCharacter
function hasUpperCaseCharacter(name) { return name.toLowerCase() !== name; }
/** * Checks if an attribute name has at least one uppercase characters * @param name * @returns Result */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L984-L986
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
isValidAriaAttribute
function isValidAriaAttribute(name) { return ARIA_PROPERTIES.some((element) => element === name); }
/** * Checks if an attribute name is a standard aria attribute by compering it to a list * of standard aria property names * @param {string} name - Attribute name to be tested * @returns {boolean} Result */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L995-L997
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getTagName
function getTagName(node) { if ( node?.parent?.name ) { return node.parent.name.name; } return null; }
/** * Extracts the tag name for the JSXAttribute * @param node - JSXAttribute being tested. * @returns tag name */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L1004-L1011
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
tagNameHasDot
function tagNameHasDot(node) { return !!( node.parent?.name && node.parent.name.type === "JSXMemberExpression" ); }
/** * Test wether the tag name for the JSXAttribute is * something like <Foo.bar /> * @param node - JSXAttribute being tested. * @returns result */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L1019-L1024
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getStandardName
function getStandardName(name, context) { if (has(DOM_ATTRIBUTE_NAMES, name)) { return DOM_ATTRIBUTE_NAMES[name]; } if (has(SVGDOM_ATTRIBUTE_NAMES, name)) { return SVGDOM_ATTRIBUTE_NAMES[name]; } const names = getDOMPropertyNames(context); // Let's find a possible attribute match with a case-insensi...
/** * Get the standard name of the attribute. * @param name - Name of the attribute. * @param context - eslint context * @returns The standard name of the attribute, or undefined if no standard name was found. */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-dom/src/rules/no-unknown-property.ts#L1032-L1042
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getCallKind
function getCallKind(node: TSESTree.CallExpression): CallKind { switch (true) { case node.callee.type === T.Identifier && isMatching(P.union("setInterval", "clearInterval"))(node.callee.name): return node.callee.name; case node.callee.type === T.MemberExpression && node.callee.property.type ...
// #endregion
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-web-api/src/rules/no-leaked-interval.ts#L40-L52
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
isNewResizeObserver
function isNewResizeObserver(node: TSESTree.Node | _) { return node?.type === T.NewExpression && node.callee.type === T.Identifier && node.callee.name === "ResizeObserver"; }
// #endregion
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-web-api/src/rules/no-leaked-resize-observer.ts#L43-L47
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getCallKind
function getCallKind(node: TSESTree.CallExpression): CallKind { switch (true) { case node.callee.type === T.Identifier && isMatching(P.union("setTimeout", "clearTimeout"))(node.callee.name): return node.callee.name; case node.callee.type === T.MemberExpression && node.callee.property.type ==...
// #endregion
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-web-api/src/rules/no-leaked-timeout.ts#L40-L52
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
isReactChildrenMethod
function isReactChildrenMethod(name: string): name is typeof reactChildrenMethod[number] { return reactChildrenMethod.some((method) => method === name); }
// #endregion
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-x/src/rules/no-array-index-key.ts#L49-L51
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
inspectVariantTypes
function inspectVariantTypes(types: ts.Type[]) { const variantTypes = new Set<VariantType>(); if (types.some(tsHelpers.isUnknownType)) { variantTypes.add("unknown"); return variantTypes; } if (types.some(tsHelpers.isNullishType)) { variantTypes.add("nullish"); } const booleans = types.filter(tsH...
/** * Ported from https://github.com/typescript-eslint/typescript-eslint/blob/eb736bbfc22554694400e6a4f97051d845d32e0b/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts#L826 with some enhancements * Check union variants for the types we care about * @param types The types to inspect * @returns The vari...
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-x/src/rules/no-leaked-conditional-rendering.ts#L105-L171
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getName
function getName(node: TSESTree.Expression | TSESTree.PrivateIdentifier): string | _ { if (AST.isTypeExpression(node)) { return getName(node.expression); } if (node.type === T.Identifier || node.type === T.PrivateIdentifier) { return node.name; } if (node.type === T.Literal) { return node.value?.t...
// Return the name of an identifier or the string value of a literal. Useful
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/plugins/eslint-plugin-react-x/src/rules/no-unused-class-component-members.ts#L44-L59
49551c581829bb648ade462bf12b7212a7acf6a6
eslint-react
github_2023
Rel1cx
typescript
getDocsUrl
const getDocsUrl = (pluginName: string) => (ruleName: string) => { if (pluginName === "x") { return `${WEBSITE_URL}/docs/rules/${ruleName}`; } return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`; };
/** * Get the URL for the documentation of a rule in a plugin. * @internal * @param pluginName The name of the plugin. * @returns The URL for the documentation of a rule. */
https://github.com/Rel1cx/eslint-react/blob/49551c581829bb648ade462bf12b7212a7acf6a6/packages/shared/src/create-rule.ts#L11-L16
49551c581829bb648ade462bf12b7212a7acf6a6
mantine-analytics-dashboard
github_2023
design-sparx
typescript
ActionButton
const ActionButton = ({ iconSize, ...others }: ActionButtonProps) => { return ( <ActionIcon variant="subtle" {...others}> <IconUser size={iconSize || rem(16)} stroke={1.5} /> </ActionIcon> ); };
/** * For more docs see - https://mantine.dev/core/action-icon/ * @param iconSize * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Buttons/ActionButton.tsx#L12-L18
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
ActionButton
const ActionButton = ({ iconSize, orientation, ...others }: ActionButtonProps) => { return ( <ActionIcon.Group orientation={orientation}> <ActionIcon variant="default" size="lg" aria-label="Messages" {...others}> <IconMessage size={iconSize || rem(14)} stroke={1.5} /> </ActionIcon> ...
/** * For more docs see - https://mantine.dev/core/action-icon/#actionicongroup */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Buttons/ActionButtonGroup.tsx#L16-L41
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
Buttons
const Buttons = ({ ...others }: ButtonsProps) => { return ( <Button variant="filled" {...others}> {others.children || 'Button'} </Button> ); };
/** * For more docs see - https://mantine.dev/core/button/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Buttons/Buttons.tsx#L10-L16
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
Buttons
const Buttons = ({ orientation, ...others }: ButtonsProps) => { return ( <Button.Group orientation={orientation}> <Button variant="default" {...others}> First </Button> <Button variant="default" {...others}> Second </Button> <Button variant="default" {...others}> ...
/** * For more docs see - https://mantine.dev/core/button/#buttongroup * @param orientation * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Buttons/ButtonsGroup.tsx#L11-L25
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
CalendarView
const CalendarView = ({ ...others }: CalendarViewProps) => { return <Calendar {...others} />; };
/** * For more docs see - https://mantine.dev/dates/calendar/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/CalendarView/CalendarView.tsx#L10-L12
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
DateField
const DateField = ({ ...others }: DateFieldProps) => { const [value, setValue] = useState<Date | null>(null); return ( // @ts-ignore <DateInput label="Pick date" placeholder="Pick date" {...others} /> ); };
/** * For more docs see - https://mantine.dev/dates/date-input/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Dates/DateField.tsx#L14-L20
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
DateTimeField
const DateTimeField = ({ ...others }: DateTimeFieldProps) => { return ( <DateTimePicker label="Pick date and time" placeholder="Pick date and time" {...others} /> ); };
/** * For more docs see - https://mantine.dev/dates/date-time-picker/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Dates/DateTimeField.tsx#L10-L18
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
MonthField
const MonthField = ({ ...others }: MonthFieldProps) => { const [value, setValue] = useState<Date | null>(null); return ( <MonthPickerInput label="Pick date" placeholder="Pick date" value={value} // @ts-ignore onChange={setValue} {...others} /> ); };
/** * For more docs see - https://mantine.dev/dates/month-picker-input/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Dates/MonthField.tsx#L14-L27
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
YearField
const YearField = ({ ...others }: YearFieldProps) => { const [value, setValue] = useState<Date | null>(null); return ( <YearPickerInput label="Pick date" placeholder="Pick date" value={value} // @ts-ignore onChange={setValue} {...others} /> ); };
/** * For more docs see - https://mantine.dev/dates/year-picker-input/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/Dates/YearField.tsx#L14-L27
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
RangeSliderInput
const RangeSliderInput = ({ ...others }) => { return ( <RangeSlider color="blue" marks={[ { value: 0, label: 'xs' }, { value: 25, label: 'sm' }, { value: 50, label: 'md' }, { value: 75, label: 'lg' }, { value: 100, label: 'xl' }, ]} {...others} /...
/** * For more docs see - https://mantine.dev/core/slider/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/SliderInput/RangeSliderInput.tsx#L12-L26
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
mantine-analytics-dashboard
github_2023
design-sparx
typescript
SliderInput
const SliderInput = ({ ...others }) => { return ( <Slider color="blue" marks={[ { value: 20, label: '20%' }, { value: 50, label: '50%' }, { value: 80, label: '80%' }, ]} {...others} /> ); };
/** * For more docs see - https://mantine.dev/core/slider/ * @param others * @constructor */
https://github.com/design-sparx/mantine-analytics-dashboard/blob/09ced207c0b317ba7c291f7a77e68b3c8185d7ad/components/SliderInput/SliderInput.tsx#L12-L24
09ced207c0b317ba7c291f7a77e68b3c8185d7ad
obsidian-epub-importer
github_2023
aoout
typescript
EpubImporterPlugin.onload
async onload() { // Initialize i18n i18next.init({ lng: translationLanguage, fallbackLng: "en", resources: resources, returnNull: false, }); // Initialize plugin //@ts-expect-error this.vaultPath = this.app.vault.adapter.basePath; await this.loadSettings(); this.addSettingTab(new EpubImport...
// Plugin lifecycle methods
https://github.com/aoout/obsidian-epub-importer/blob/7f7b1f204b08893bf5764208993490fe45dacb02/src/main.ts#L31-L52
7f7b1f204b08893bf5764208993490fe45dacb02
obsidian-epub-importer
github_2023
aoout
typescript
EpubImporterPlugin.loadSettings
async loadSettings(): Promise<void> { this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); }
// Settings management
https://github.com/aoout/obsidian-epub-importer/blob/7f7b1f204b08893bf5764208993490fe45dacb02/src/main.ts#L55-L57
7f7b1f204b08893bf5764208993490fe45dacb02
obsidian-epub-importer
github_2023
aoout
typescript
EpubImporterPlugin.registerCommands
private registerCommands() { // Import epub command this.addCommand({ id: "import-epub", name: i18next.t("import-epub"), callback: () => { new EpubImporterModal(this.app, this.settings.libraries, async (result) => { await this.epubProcessor.importEpub(result); }).open(); }, }); // Sync...
// Command registration
https://github.com/aoout/obsidian-epub-importer/blob/7f7b1f204b08893bf5764208993490fe45dacb02/src/main.ts#L64-L106
7f7b1f204b08893bf5764208993490fe45dacb02
obsidian-epub-importer
github_2023
aoout
typescript
EpubImporterPlugin.registerEventHandlers
private registerEventHandlers() { // Drag and drop handler this.registerDomEvent(document, "drop", async (e) => { await this.handleDragAndDrop(e); }); // File open handler this.registerEvent( this.app.workspace.on("file-open", async (file) => { await this.handleFileOpen(file); }) ); }
// Event handlers registration
https://github.com/aoout/obsidian-epub-importer/blob/7f7b1f204b08893bf5764208993490fe45dacb02/src/main.ts#L109-L121
7f7b1f204b08893bf5764208993490fe45dacb02
obsidian-epub-importer
github_2023
aoout
typescript
EpubParser.processOneUnmappedFile
private processOneUnmappedFile(href: string, indexs: number[], k: number) { const hrefs = this.opfParser.getHtmlFiles(); const hrefIndex = hrefs.indexOf(href); console.log("indexs:",indexs); const parentIndex = indexs.findLastIndex(idx => idx < hrefIndex); if (parentIndex >= 0) { if (this.moreLog) console...
/** * Process a single unmapped file and either add it to an existing chapter or create a new chapter for it * @param href - The path/URL of the unmapped HTML file to process * @param indexs - Array of indexes of files that are already mapped to chapters * @param k - Position where to insert the new chapter if ...
https://github.com/aoout/obsidian-epub-importer/blob/7f7b1f204b08893bf5764208993490fe45dacb02/src/lib/EpubParser/EpubParser.ts#L169-L196
7f7b1f204b08893bf5764208993490fe45dacb02
chatflow
github_2023
apssouza22
typescript
parseCommandResponse
function parseCommandResponse(resp: any, chat: string): TaskCommand { let command = resp.data.command as Command; if (command?.args?.url?.indexOf(LOCALHOST_URL) > -1) { command.args.url = command.args.url.replace(LOCALHOST_URL, process.env.REACT_APP_SERVER_URL) } let speak = resp.data?.thoughts...
// @ts-ignore
https://github.com/apssouza22/chatflow/blob/0a5a548d10f68496f9b3f1eb2068003698afd807/chat-ui/src/domain/command/CommandFinder.tsx#L122-L140
0a5a548d10f68496f9b3f1eb2068003698afd807
chatflow
github_2023
apssouza22
typescript
RtcConnHandler.addStream
addStream(userUserMediaStream) { const audioTracks = userUserMediaStream.getAudioTracks(); const videoTracks = userUserMediaStream.getVideoTracks(); for (const audioTrack of audioTracks) { console.log(`Using audio device: ${audioTrack.label}`); } for (const videoTrack...
/** * * @param {MediaStream} userUserMediaStream */
https://github.com/apssouza22/chatflow/blob/0a5a548d10f68496f9b3f1eb2068003698afd807/chat-ui/src/domain/videocall/RtcConnHandler.ts#L71-L84
0a5a548d10f68496f9b3f1eb2068003698afd807
obsidian-sets
github_2023
Canna71
typescript
IntrinsicAttributeDefinition.getPropertyWidget
getPropertyWidget() { switch(this._key){ case IntrinsicAttributeKey.FileCreationDate: case IntrinsicAttributeKey.FileModificationDate: return this._app.metadataTypeManager.registeredTypeWidgets["date"]; case IntrinsicAttributeKey.FileName: case Int...
// TODO: remove dependency from app
https://github.com/Canna71/obsidian-sets/blob/1f5108589e23722ec5d890dda020ab89a61b2145/src/Data/IntrinsicAttributeDefinition.ts#L58-L68
1f5108589e23722ec5d890dda020ab89a61b2145
obsidian-sets
github_2023
Canna71
typescript
MetadataAttributeDefinition.getPropertyWidget
getPropertyWidget() { const key = this._key; const propertyInfo = this._app.metadataTypeManager.getPropertyInfo(key); const type = this._app.metadataTypeManager.getAssignedType(key) || propertyInfo?.type; const widget = this._app.metadataTypeManager.registeredTypeWidgets[type]; r...
// TODO: remove dependency from app
https://github.com/Canna71/obsidian-sets/blob/1f5108589e23722ec5d890dda020ab89a61b2145/src/Data/MetadataAttributeDefinition.ts#L30-L36
1f5108589e23722ec5d890dda020ab89a61b2145
obsidian-sets
github_2023
Canna71
typescript
Query.constructor
protected constructor(db: VaultDB,scope: Scope, clauses: Clause[], sort: SortField[], context?: ObjectData) { this._db = db; this._scope = scope[0]; this._scopeSpecifier = scope[1]; this._clauses = clauses; this._settings = getSetsSettings(); switch(this._scope){ ...
// private _newFile: string | undefined;
https://github.com/Canna71/obsidian-sets/blob/1f5108589e23722ec5d890dda020ab89a61b2145/src/Data/Query.ts#L32-L70
1f5108589e23722ec5d890dda020ab89a61b2145