type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
() => lifecycleService.shutdown() | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
event => {
if (storageService.hasPendingUpdate) {
event.veto(true, 'veto.pendingStorageUpdate'); // prevent data loss from pending storage update
}
} | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
() => storageService.close() | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
service => {
// Workspace
serviceCollection.set(IWorkspaceContextService, service);
// Configuration
serviceCollection.set(IWorkbenchConfigurationService, service);
return service;
} | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
service => {
// Storage
serviceCollection.set(IStorageService, service);
return service;
} | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
() => configurationService.updateWorkspaceTrust(workspaceTrustManagementService.isWorkpaceTrusted()) | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
ArrowFunction |
async () => {
let indexedDBLogProvider: IFileSystemProvider | null = null;
try {
indexedDBLogProvider = await indexedDB.createFileSystemProvider(logsPath.scheme, INDEXEDDB_LOGS_OBJECT_STORE);
} catch (error) {
onUnexpectedError(error);
}
if (indexedDBLogProvider) {
fileService.registerProvi... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private init(): void {
// Browser config
setFullscreen(!!detectFullscreen());
} | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
async open(): Promise<IWorkbench> {
// Init services and wait for DOM to be ready in parallel
const [services] = await Promise.all([this.initServices(), domContentLoaded()]);
// Create Workbench
const workbench = new Workbench(this.domElement, services.serviceCollection, services.logService);
// Listeners... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
async retrievePerformanceMarks() {
await timerService.whenReady();
return timerService.getPerformanceMarks();
} | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private registerListeners(workbench: Workbench, storageService: BrowserStorageService, logService: ILogService): void {
// Workbench Lifecycle
this._register(workbench.onBeforeShutdown(event => {
if (storageService.hasPendingUpdate) {
event.veto(true, 'veto.pendingStorageUpdate'); // prevent data loss from... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private async initServices(): Promise<{ serviceCollection: ServiceCollection, configurationService: IWorkbenchConfigurationService, logService: ILogService, storageService: BrowserStorageService }> {
const serviceCollection = new ServiceCollection();
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private async registerFileSystemProviders(environmentService: IWorkbenchEnvironmentService, fileService: IFileService, remoteAgentService: IRemoteAgentService, logService: BufferLogService, logsPath: URI): Promise<void> {
const indexedDB = new IndexedDB();
// Logger
(async () => {
let indexedDBLogProvider: I... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
async run(accessor: ServicesAccessor): Promise<void> {
const dialogService = accessor.get(IDialogService);
const hostService = accessor.get(IHostService);
const result = await dialogService.confirm({
message: localize('reset user data message', "Would you like to reset your data (settings, keybind... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private async createStorageService(payload: IWorkspaceInitializationPayload, environmentService: IWorkbenchEnvironmentService, fileService: IFileService, logService: ILogService): Promise<BrowserStorageService> {
const storageService = new BrowserStorageService(payload, environmentService, fileService);
try {
... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private async createWorkspaceService(payload: IWorkspaceInitializationPayload, environmentService: IWorkbenchEnvironmentService, fileService: FileService, remoteAgentService: IRemoteAgentService, uriIdentityService: IUriIdentityService, logService: ILogService): Promise<WorkspaceService> {
const workspaceService = n... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
MethodDeclaration |
private resolveWorkspaceInitializationPayload(): IWorkspaceInitializationPayload {
let workspace: IWorkspace | undefined = undefined;
if (this.configuration.workspaceProvider) {
workspace = this.configuration.workspaceProvider.workspace;
}
// Multi-root workspace
if (workspace && isWorkspaceToOpen(worksp... | Dekar13/vscode | src/vs/workbench/browser/web.main.ts | TypeScript |
FunctionDeclaration | // ref:
// https://github.com/google/mediapipe/blob/350fbb2100ad531bc110b93aaea23d96af5a5064/mediapipe/calculators/tflite/ssd_anchors_calculator.cc
export function createSsdAnchors(config: AnchorConfig): Rect[] {
// Set defaults.
if (config.reduceBoxesInLowestLayer == null) {
config.reduceBoxesInLowestLayer = f... | MrMoonKr/tfjs-models | shared/calculators/create_ssd_anchors.ts | TypeScript |
FunctionDeclaration |
function calculateScale(
minScale: number, maxScale: number, strideIndex: number,
numStrides: number) {
if (numStrides === 1) {
return (minScale + maxScale) * 0.5;
} else {
return minScale + (maxScale - minScale) * strideIndex / (numStrides - 1);
}
} | MrMoonKr/tfjs-models | shared/calculators/create_ssd_anchors.ts | TypeScript |
ClassDeclaration |
export declare class CodeError extends Error {
code: string;
constructor(code: string, message?: string);
} | 0131-NoCAP/universal-store | application/app/node_modules/logkitty/build/errors.d.ts | TypeScript |
ArrowFunction |
(): React.ReactElement => {
return (
<div className="play-game">
<h2>Get Started Now!</h2>
<p>
<a href="http://contest.storysquad.app">Play Game</a>
</p>
</div> | ss-mvp/ss-corp-homepage | src/components/pages/LandingPage/PlayGame/PlayGame.tsx | TypeScript |
ArrowFunction |
app => app.bundleId === bundleId | NathanaelA/nativescript-cli | lib/services/apple-portal/apple-portal-application-service.ts | TypeScript |
ClassDeclaration |
export class ApplePortalApplicationService implements IApplePortalApplicationService {
constructor(
private $applePortalSessionService: IApplePortalSessionService,
private $errors: IErrors,
private $httpClient: Server.IHttpClient
) { }
public async getApplications(credentials: ICredentials): Promise<IApplePo... | NathanaelA/nativescript-cli | lib/services/apple-portal/apple-portal-application-service.ts | TypeScript |
MethodDeclaration |
public async getApplications(credentials: ICredentials): Promise<IApplePortalApplicationSummary[]> {
let result: IApplePortalApplicationSummary[] = [];
const user = await this.$applePortalSessionService.createUserSession(credentials);
for (const account of user.associatedAccounts) {
const contentProviderId =... | NathanaelA/nativescript-cli | lib/services/apple-portal/apple-portal-application-service.ts | TypeScript |
MethodDeclaration |
public async getApplicationsByProvider(contentProviderId: number, dsId: string): Promise<IApplePortalApplication> {
const webSessionCookie = await this.$applePortalSessionService.createWebSession(contentProviderId, dsId);
const response = await this.$httpClient.httpRequest({
url: "https://appstoreconnect.apple.... | NathanaelA/nativescript-cli | lib/services/apple-portal/apple-portal-application-service.ts | TypeScript |
MethodDeclaration |
public async getApplicationByBundleId(credentials: ICredentials, bundleId: string): Promise<IApplePortalApplicationSummary> {
const applications = await this.getApplications(credentials);
if (!applications || !applications.length) {
this.$errors.failWithoutHelp(`Cannot find any registered applications for Apple... | NathanaelA/nativescript-cli | lib/services/apple-portal/apple-portal-application-service.ts | TypeScript |
ArrowFunction |
() => {
test('randomColor test', () => {
const str = randomColor();
expect(str.length).toEqual(7);
expect(/^#\w{6}$/.test(str)).toBeTruthy();
});
} | Hyhello/utils | src/Math/randomColor/randomColor.spec.ts | TypeScript |
ArrowFunction |
() => {
const str = randomColor();
expect(str.length).toEqual(7);
expect(/^#\w{6}$/.test(str)).toBeTruthy();
} | Hyhello/utils | src/Math/randomColor/randomColor.spec.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData返回参数结构体
*/
export interface DescribeCaptchaOperDataResponse {
/**
* 成功返回 0 其它失败
*/
CaptchaCode?: number;
/**
* 返回信息
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaMsg?: string;
/**
* 用户操作数据
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: CaptchaOperDat... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData方法 拦截情况type = 2 返回的数据结构
*/
export interface CaptchaOperDataInterceptUnit {
/**
* 时间
*/
DateKey: string;
/**
* 停止验证数量
*/
AllStopCnt: number;
/**
* 图片停止加载数量
*/
PicStopCnt: number;
/**
* 策略拦截数量
*/
StrategyStopCnt... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData方法 尝试次数分布 type = 4
*/
export interface CaptchaOperDataTryTimesDistributeUnit {
/**
* 尝试次数
*/
TryCount: number;
/**
* 用户请求数量
*/
UserCount: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniOperData返回参数结构体
*/
export interface DescribeCaptchaMiniOperDataResponse {
/**
* 成功返回 0 其它失败
*/
CaptchaCode?: number;
/**
* 返回信息
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaMsg?: string;
/**
* 用户操作数据
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: Captch... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniDataSum返回参数结构体
*/
export interface DescribeCaptchaMiniDataSumResponse {
/**
* 请求总量
注意:此字段可能返回 null,表示取不到有效值。
*/
GetSum?: number;
/**
* 请求验证成功量
注意:此字段可能返回 null,表示取不到有效值。
*/
VfySuccSum?: number;
/**
* 请求验证量
注意:此字段可能返回 null,表示取不到有效值。
*/
... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* UpdateCaptchaAppIdInfo请求参数结构体
*/
export interface UpdateCaptchaAppIdInfoRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 应用名
*/
AppName: string;
/**
* 域名限制
*/
DomainLimit: string;
/**
* 场景类型
*/
SceneType: number;
/**
... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData 接口 返回数据类型集合
*/
export interface CaptchaOperDataRes {
/**
* 验证码加载耗时数据返回
注意:此字段可能返回 null,表示取不到有效值。
*/
OperDataLoadTimeUnitArray: Array<CaptchaOperDataLoadTimeUnit>;
/**
* 验证码拦截情况数据返回
注意:此字段可能返回 null,表示取不到有效值。
*/
OperDataInterceptUnitArray: Array<Capt... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData 返回的数据结构
*/
export interface TicketInterceptUnit {
/**
* 时间
*/
DateKey: string;
/**
* 票据验证拦截量
*/
Intercept: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniData返回参数结构体
*/
export interface DescribeCaptchaMiniDataResponse {
/**
* 返回码 0 成功 其它失败
*/
CaptchaCode?: number;
/**
* 数据数组
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: Array<CaptchaQueryData>;
/**
* 返回信息描述
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaM... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* UpdateCaptchaAppIdInfo返回参数结构体
*/
export interface UpdateCaptchaAppIdInfoResponse {
/**
* 返回码 0 成功,其它失败
*/
CaptchaCode?: number;
/**
* 返回操作信息
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaMsg?: string;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
RequestId... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* 用户注册的APPID和应用名称对象
*/
export interface CaptchaUserAllAppId {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 注册应用名称
*/
AppName: string;
/**
* 腾讯云APPID
*/
TcAppId: number;
/**
* 渠道信息
*/
ChannelInfo: string;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaDataSum返回参数结构体
*/
export interface DescribeCaptchaDataSumResponse {
/**
* 请求总量
*/
GetSum?: number;
/**
* 请求验证成功量
*/
VfySuccSum?: number;
/**
* 请求验证量
*/
VfySum?: number;
/**
* 拦截攻击量
*/
AttackSum?: number;
/**
... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData请求参数结构体
*/
export interface DescribeCaptchaTicketDataRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniDataSum请求参数结构体
*/
export interface DescribeCaptchaMiniDataSumRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询结束时间
*/
End: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData操作数据查询尝试次数 type = 3
*/
export interface CaptchaOperDataTryTimesUnit {
/**
* 时间
*/
DateKey: string;
/**
* 平均尝试次数
*/
CntPerPass: Array<number>;
/**
* market平均尝试次数
*/
MarketCntPerPass: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaOperData请求参数结构体
*/
export interface DescribeCaptchaOperDataRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询类型
*/
Type: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaDataSum请求参数结构体
*/
export interface DescribeCaptchaDataSumRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询结束时间
*/
End: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData 返回的数据结构
*/
export interface TicketAmountUnit {
/**
* 时间
*/
DateKey: string;
/**
* 票据验证总量
*/
Amount: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* 该类型为DescribeCaptchaData 方法返回数据类型
*/
export interface CaptchaQueryData {
/**
* 数量
*/
Cnt: number;
/**
* 时间
*/
Date: string;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData 返回的数据结构
*/
export interface TicketThroughUnit {
/**
* 时间
*/
DateKey: string;
/**
* 票据验证的通过量
*/
Through: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaData返回参数结构体
*/
export interface DescribeCaptchaDataResponse {
/**
* 返回码 0 成功 其它失败
*/
CaptchaCode?: number;
/**
* 数据数组
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: Array<CaptchaQueryData>;
/**
* 返回信息描述
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaMsg?: str... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaResult请求参数结构体
*/
export interface DescribeCaptchaResultRequest {
/**
* 固定填值:9。可在控制台配置不同验证码类型。
*/
CaptchaType: number;
/**
* 前端回调函数返回的用户验证票据
*/
Ticket: string;
/**
* 用户操作来源的外网 IP
*/
UserIp: string;
/**
* 前端回调函数返回的随机字符串
*/
... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaResult返回参数结构体
*/
export interface DescribeCaptchaResultResponse {
/**
* 1 OK 验证通过
6 user code len error 验证码长度不匹配
7 captcha no match 验证码答案不匹配/Randstr参数不匹配
8 verify timeout 验证码签名超时
9 Sequnce repeat 验证码签名重放
10 Sequnce invalid 验证码签名序列
11 Cookie invalid 验证码cookie信息不合法
12 sig len error 签名长度错误... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* 操作数据查询方法DescribeCaptchaOperData 的返回结果,安全验证码加载耗时type = 1
*/
export interface CaptchaOperDataLoadTimeUnit {
/**
* 时间
*/
DateKey: string;
/**
* Market加载时间
*/
MarketLoadTime: number;
/**
* AppId加载时间
*/
AppIdLoadTime: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniOperData请求参数结构体
*/
export interface DescribeCaptchaMiniOperDataRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询类型
*/
Type: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaAppIdInfo请求参数结构体
*/
export interface DescribeCaptchaAppIdInfoRequest {
/**
* 验证码应用注册APPID
*/
CaptchaAppId: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaAppIdInfo返回参数结构体
*/
export interface DescribeCaptchaAppIdInfoResponse {
/**
* 界面风格
*/
SchemeColor?: string;
/**
* 语言
*/
Language?: number;
/**
* 场景
*/
SceneType?: number;
/**
* 防控风险等级
*/
EvilInterceptGrade?: number;
... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaUserAllAppId返回参数结构体
*/
export interface DescribeCaptchaUserAllAppIdResponse {
/**
* 用户注册的所有Appid和应用名称
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: Array<CaptchaUserAllAppId>;
/**
* 成功返回 0 其它失败
*/
CaptchaCode?: number;
/**
* 返回操作信息
注意:此字段可能返回 null,表示取不到有效值... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaData请求参数结构体
*/
export interface DescribeCaptchaDataRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询结束时间
*/
End: number;
/**
* 查询类型
*/
Type: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniResult请求参数结构体
*/
export interface DescribeCaptchaMiniResultRequest {
/**
* 固定填值:9(滑块验证码)
*/
CaptchaType: number;
/**
* 验证码返回给用户的票据
*/
Ticket: string;
/**
* 用户操作来源的外网 IP
*/
UserIp: string;
/**
* 验证码应用APPID
*/
Captc... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData返回参数结构体
*/
export interface DescribeCaptchaTicketDataResponse {
/**
* 成功返回 0 其它失败
*/
CaptchaCode?: number;
/**
* 返回信息
注意:此字段可能返回 null,表示取不到有效值。
*/
CaptchaMsg?: string;
/**
* 验证码票据信息
注意:此字段可能返回 null,表示取不到有效值。
*/
Data?: CaptchaTi... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaTicketData 接口 返回数据类型集合
*/
export interface CaptchaTicketDataRes {
/**
* 票据验证总量返回
*/
TicketAmountArray: Array<TicketAmountUnit>;
/**
* 票据验证通过量返回
*/
TicketThroughArray: Array<TicketThroughUnit>;
/**
* 票据验证拦截量返回
*/
TicketInterceptArray: Arr... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniResult返回参数结构体
*/
export interface DescribeCaptchaMiniResultResponse {
/**
* 1 ticket verification succeeded 票据验证成功
7 CaptchaAppId does not match 票据与验证码应用APPID不匹配
8 ticket expired 票据超时
10 ticket format error 票据格式不正确
15 ticket decryption faile... | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
InterfaceDeclaration | /**
* DescribeCaptchaMiniData请求参数结构体
*/
export interface DescribeCaptchaMiniDataRequest {
/**
* 验证码应用ID
*/
CaptchaAppId: number;
/**
* 查询开始时间
*/
Start: number;
/**
* 查询结束时间
*/
End: number;
/**
* 查询类型
*/
Type: number;
} | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
TypeAliasDeclaration | /**
* DescribeCaptchaUserAllAppId请求参数结构体
*/
export declare type DescribeCaptchaUserAllAppIdRequest = null; | zhutoutoutousan/tencentcloud-sdk-nodejs | tencentcloud/services/captcha/v20190722/captcha_models.d.ts | TypeScript |
ArrowFunction |
() => {
let sandbox: sinon.SinonSandbox;
let deployFunctionCommand: DeployFunction;
let commandBaseAskForStageStub: sinon.SinonStub;
let serverlessInvokeStub: sinon.SinonStub;
before(() => {
sandbox = sinon.createSandbox();
});
beforeEach(() => {
deployFunctionCommand = new DeployFunction(new TestContext(... | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
sandbox = sinon.createSandbox();
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
deployFunctionCommand = new DeployFunction(new TestContext());
commandBaseAskForStageStub = sandbox.stub(CommandBase, "askForStageAndRegion" as any);
serverlessInvokeStub = sandbox.stub(Serverless, "invoke");
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
sandbox.restore();
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
const testNodes: Array<{ node: ServerlessNode, shouldSucceed: boolean }> = [
{
node: new ServerlessNode("function node", NodeKind.FUNCTION),
shouldSucceed: true,
},
{
node: new ServerlessNode("container node", NodeKind.CONTAINER),
shouldSucceed: false,
},
{
node: new Server... | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
testNode => {
it(`should ${testNode.shouldSucceed ? "succeed" : "fail"} for ${testNode.node.name}`, () => {
commandBaseAskForStageStub.resolves(["stage", "region"]);
const expectation = expect(deployFunctionCommand.invoke(testNode.node));
if (testNode.shouldSucceed) {
return expectation.to.be.fulfi... | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
commandBaseAskForStageStub.resolves(["stage", "region"]);
const expectation = expect(deployFunctionCommand.invoke(testNode.node));
if (testNode.shouldSucceed) {
return expectation.to.be.fulfilled;
}
return expectation.to.be.rejected;
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
commandBaseAskForStageStub.resolves(["stage", "region"]);
return expect(deployFunctionCommand.invoke(new ServerlessNode("testNode", NodeKind.FUNCTION)))
.to.be.fulfilled
.then(() => {
expect(commandBaseAskForStageStub).to.have.been.calledOnce;
});
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
expect(commandBaseAskForStageStub).to.have.been.calledOnce;
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
commandBaseAskForStageStub.resolves(["stage", "region"]);
serverlessInvokeStub.resolves();
return expect(deployFunctionCommand.invoke(new ServerlessNode("testNode", NodeKind.FUNCTION)))
.to.be.fulfilled
.then(() => {
expect(serverlessInvokeStub).to.have.been.calledOnce;
expect(serverlessInvoke... | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
expect(serverlessInvokeStub).to.have.been.calledOnce;
expect(serverlessInvokeStub).to.have.been.calledWithExactly("deploy function", {
cwd: "",
function: "testNode",
region: "region",
stage: "stage",
});
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
ArrowFunction |
() => {
commandBaseAskForStageStub.resolves(["stage", "region"]);
serverlessInvokeStub.rejects(new Error("Serverless error"));
return expect(deployFunctionCommand.invoke(new ServerlessNode("testNode", NodeKind.FUNCTION)))
.to.be.rejectedWith("Serverless error");
} | HyperBrain/serverless-vscode | test/lib/commands/DeployFunction.test.ts | TypeScript |
FunctionDeclaration |
export function findTargetTriple(line: string): string | null {
const target_triple_re = /^Target:\s+(.*)/;
const target_triple_match = target_triple_re.exec(line);
if (target_triple_match !== null) {
return target_triple_match[1];
}
const target_triple_re_old = /.*gcc-lib[/\\]([^/\\]*)[/\\]/;
const ta... | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
FunctionDeclaration |
export function computeTargetTriple(target: TargetTriple): string {
let triple = target.targetArch;
if (target.vendors.length > 0) {
const vendor = target.vendors.join('_');
triple += `-${vendor}`;
}
triple += `-${target.targetOs}`;
if (target.abi.length > 0) {
triple += `-${target.abi}`;
}
i... | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
FunctionDeclaration |
export function parseTargetTriple(triple: string): TargetTriple | undefined {
const triples = triple.split("-");
let foundArch = "unknow";
let foundOs = 'unknow';
let foundAbi = 'unknow';
let foundLibc = 'unknow';
const elementToSkip: string[] = [];
for (const tripleElement of triples) {
for (const k... | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
FunctionDeclaration |
export function majorVersionSemver(semver: string): string {
const major_version_re = /^(\d+)./;
const major_version_match = major_version_re.exec(semver);
if (Array.isArray(major_version_match)) {
return major_version_match[1] ?? '';
}
return '';
} | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
FunctionDeclaration |
export function minorVersionSemver(semver: string): string {
const minor_version_re = /^(\d+).(\d+)/;
const minor_version_match = minor_version_re.exec(semver);
if (Array.isArray(minor_version_match)) {
return minor_version_match[2] ?? '';
}
return '';
} | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
InterfaceDeclaration |
export interface TargetTriple {
triple: string;
targetOs: string;
targetArch: string;
vendors: string[];
abi: string;
libc: string;
} | AbdullahAmrSobh/vscode-cmake-tools | src/triple.ts | TypeScript |
ClassDeclaration |
@Component({
selector:'status-selector',
template: `
<label>View tasks</label>
<select #sel (change)="select.emit(sel.value)">
<option *ngFor="#status of statuses" > {{status}}</option>
</select>`
})
export class StatusSelector {
@Output() select = new EventEmitter();
... | kishorefx/angular2-todo-list | src/components/status-selector.ts | TypeScript |
MethodDeclaration |
ngOnInit(){
this.select.emit(this.statuses[0]);
} | kishorefx/angular2-todo-list | src/components/status-selector.ts | TypeScript |
ArrowFunction |
(p: string) => resolve(__dirname, p) | techmely-oss/techmely | vitest.config.ts | TypeScript |
TypeAliasDeclaration |
type Events = {
[OPEN_PAGE]: OpenPageProps;
[UPDATE_SETTINGS]: UpdateSettingsProps;
[TOGGLE_MOD_DIRECTORY]: ToggleModDirectoryProps;
}; | kamontat/smapi-manager | src/common/analytics/nucleus/events/index.ts | TypeScript |
ArrowFunction |
(
value: string,
onCopyImageUrlSuccess: () => void,
onCopyImageUrlFailure: () => void
): void => {
const textArea = document.createElement('textarea');
let success = false;
textArea.value = value;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
success = docume... | Progyan1997/ui-components | src/utilities/copy-to-clipboard.ts | TypeScript |
ArrowFunction |
() => {
cy.fixture('company-employees/group').then((groupFixture) => {
group = groupFixture;
});
cy.fixture('company-settings/payment-method').then((paymentMethodFixture) => {
paymentMethod = {
...paymentMethodFixture,
primaryContact: {
...paymentMethodFixture.primary... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
(groupFixture) => {
group = groupFixture;
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
(paymentMethodFixture) => {
paymentMethod = {
...paymentMethodFixture,
primaryContact: {
...paymentMethodFixture.primaryContact,
email: getEmailWithHash(paymentMethodFixture.primaryContact.email),
modifiedEmail: getEmailWithHash(paymentMethodFixture.primaryContact.mo... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.login();
cy.visitAngularUrl('/people-management/groups');
addGroup(group.name, group.description, `${group.employee.firstName} ${group.employee.lastName}`, false);
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.login();
cy.visitAngularUrl('/people-management/groups');
deleteGroup(group.name);
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.login();
cy.visitAngularUrl(subscriptionBaseLink);
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.get('dib-navbar dib-hamburger-icon').click();
cy.get('.cdk-overlay-container dib-navbar-panel').contains('Subscription').should('exist');
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.get('dib-company-management dib-subscription dib-subscription-overview h3')
.should('contain', 'Pricing plans')
.should('contain', 'Licenses')
.should('contain', 'Renewal date')
.should('contain', 'Renewal subscription');
cy.get('dib-company-management dib-subscription dib-su... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
(numberOfLicenses) => {
cy.visitAngularUrl(`${subscriptionBaseLink}/licenses`);
cy.get(
'dib-company-management dib-subscription dib-subscription-licenses .subscription-table__row__value'
).should('contain', numberOfLicenses);
} | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.visitAngularUrl(`${subscriptionBaseLink}/pricing-plans`);
cy.get('dib-company-management dib-subscription dib-subscription-pricing-plans h3')
.should('contain', ' Business Pro')
.should('contain', 'Enterprise');
cy.get('dib-company-management dib-subscription dib-subscription-pricin... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.visitAngularUrl(`${subscriptionBaseLink}/pricing-plans`);
cy.get('dib-company-management dib-subscription dib-subscription-pricing-plans button')
.contains(' Contact us ')
.click();
cy.get('.cdk-overlay-container dib-request-enterprise-dialog h2').should('contain', 'Request Enterpr... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.visitAngularUrl(`${subscriptionBaseLink}/pricing-plans`);
cy.get('dib-company-management dib-subscription dib-subscription-pricing-plans button')
.contains(' Contact us ')
.click();
cy.get('.cdk-overlay-container dib-request-enterprise-dialog button').contains(' Submit ').click();
... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.visitAngularUrl(`${subscriptionBaseLink}/licenses`);
cy.get('dib-company-management dib-subscription dib-subscription-licenses h3')
.should('contain', ' Number of Licenses ')
.should('contain', ' Additional Licenses ');
cy.get('dib-company-management dib-subscription dib-subscriptio... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
ArrowFunction |
() => {
cy.visitAngularUrl(`${subscriptionBaseLink}/licenses`);
cy.get('dib-company-management dib-subscription dib-subscription-licenses button i').contains('add').click();
cy.get('dib-company-management dib-subscription dib-subscription-licenses input').should('have.value', '2');
cy.get('dib-compa... | sjova/cypress-typescript-new-dib-playground | cypress/integration/dib-travel/company-settings/subscription.spec.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.