repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
h-o-t/entente | tests/fixtures/imports.ts | import * as mod3 from "./mod3";
import { qux, quux, quuux } from "./mod4";
mod3.baz();
// eslint-disable-next-line no-console
console.log(qux, quux, quuux);
|
h-o-t/entente | src/nodes/ParameterDeclarationArray.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ParameterDeclaration } from "./ParameterDeclaration";
export class ParameterDeclarationArray {
constructor(private _parameters: ts.ParameterDeclaration[]) {}
/** Assert there is a parameter at the given index. If true, re... |
h-o-t/entente | tests/fixtures/mod4.ts | export const qux = "qux";
export const quux = 1;
export const quuux = (): boolean => true;
|
h-o-t/entente | tests/project.ts | <reponame>h-o-t/entente
import { assert } from "chai";
import * as ts from "ts-morph";
import { test } from "./harness";
import { createProject } from "../src";
test({
name: "able to create TS project",
fn() {
const project = createProject("./tests/fixtures/ts.ts");
assert(project instanceof ts.Project);
... |
h-o-t/entente | src/nodes/ExportedDeclarationArray.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ExportedDeclaration } from "./ExportedDeclaration";
export class ExportedDeclarationsArray {
private _declarations?: ExportedDeclaration[];
constructor(private _exportedDeclarations: ts.ExportedDeclarations[]) {}
/** Th... |
h-o-t/entente | tests/harness/index.ts | import { format } from "assertion-error-formatter";
import * as chalk from "chalk";
/* eslint-disable no-console */
interface TestSpec {
name: string;
skip?: boolean | string;
fn(): Promise<void> | void;
}
const testQueue: TestSpec[] = [];
function isPromiseLike<T>(value: unknown): value is PromiseLike<T> {
... |
h-o-t/entente | src/nodes/Exports.ts | <reponame>h-o-t/entente
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ExportedDeclarationsArray } from "./ExportedDeclarationArray";
export class Exports {
constructor(
private _declarations: ReadonlyMap<string, ts.ExportedDeclarations[]>
) {}
/** Assert there i... |
h-o-t/entente | src/nodes/ClassProperty.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { Expression } from "./Expression";
export class ClassProperty {
constructor(private _node: ts.ClassInstancePropertyTypes) {}
/** Provides the initializer for the property if there is one. */
get initializer(): Expression ... |
h-o-t/entente | src/nodes/ClassDeclarations.ts | <filename>src/nodes/ClassDeclarations.ts
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ClassDeclaration } from "./ClassDeclaration";
export class ClassDeclarations {
constructor(private _declarations: ts.ClassDeclaration[]) {}
/** The declarations of classes as an arr... |
h-o-t/entente | src/nodes/ParameterDeclaration.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
export class ParameterDeclaration {
constructor(private _node: ts.ParameterDeclaration) {}
/** Assert the parameter is an object type. If true, return the parameter. */
isObject(msg = "Expected parameter accept an object type."):... |
h-o-t/entente | src/assert.ts | <filename>src/assert.ts
import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ClassDeclaration } from "./nodes/ClassDeclaration";
import { FunctionLikeDeclaration } from "./nodes/FunctionLikeDeclaration";
import { SourceFile } from "./nodes/SourceFile";
import { Type } from "./node... |
h-o-t/entente | src/nodes/ImportDeclaration.ts | <reponame>h-o-t/entente<filename>src/nodes/ImportDeclaration.ts
import * as ts from "ts-morph";
import { SourceFile } from "./SourceFile";
export class ImportDeclaration {
constructor(private _node: ts.ImportDeclaration) {}
sourceFile(): SourceFile {
return new SourceFile(this._node.getModuleSpecifierSourceFi... |
h-o-t/entente | src/nodes/ClassDeclaration.ts | import * as AssertionError from "assertion-error";
import * as ts from "ts-morph";
import { ClassMember } from "./ClassMember";
export class ClassDeclaration {
constructor(private _node: ts.ClassDeclaration) {}
/** Asserts that the class is the default export of the source file. */
isDefaultExport(msg = `Expect... |
crqra/chatops-action | src/events/deploymentError.ts | <gh_stars>1-10
import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deploymentError = actionSlasher.event('deployment-error', {
description: 'An event triggered when a deployment has an error',
async handler() {
const {repository, deploymentId} = chatops.context... |
crqra/chatops-action | src/chatops/index.ts | <reponame>crqra/chatops-action<filename>src/chatops/index.ts<gh_stars>1-10
import * as core from '@actions/core'
import * as github from '@actions/github'
import {Context} from './context'
import {Log} from './log'
export {Icon} from './log'
export const octokit = github.getOctokit(
core.getInput('token', {required... |
crqra/chatops-action | src/events/deploymentLog.ts | <reponame>crqra/chatops-action
import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deploymentLog = actionSlasher.event('deployment-log', {
description: 'An event triggered when a deployment has emitted some log',
async handler() {
chatops.info(chatops.context.m... |
crqra/chatops-action | src/commands/cancelDeployment.ts | import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const cancelDeployment = actionSlasher.command('cancel-deployment', {
description: 'Cancels an active deployment',
definition(c) {
c.arg('id', {
type: String,
description: 'The ID of the deployment'
... |
crqra/chatops-action | src/commands/listDeployments.ts | import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
const query = `
query ListRepositoryDeployments($owner: String!, $repo: String!) {
repository(owner: $owner, name: $repo) {
deployments(last: 100) {
nodes {
id
ref {
name
}
d... |
crqra/chatops-action | src/chatops/log.ts | <filename>src/chatops/log.ts
import * as core from '@actions/core'
import {GitHub} from '@actions/github/lib/utils'
import {Context} from './context'
export interface LogOptions {
icon?: string
shouldUpdateComment: boolean
}
export interface Comment {
id: number
body?: string
}
export enum Icon {
Clock = '... |
crqra/chatops-action | src/commands/poll.ts | <gh_stars>1-10
import {ghPolls} from 'gh-polls'
import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const poll = actionSlasher.command('poll', {
description: 'Creates a poll using [GitHub Polls](https://gh-polls.com/)',
definition(c) {
c.arg('question', {
type:... |
crqra/chatops-action | src/commands/index.ts | <filename>src/commands/index.ts
export * from './cancelDeployment'
export * from './deleteDeployment'
export * from './deploy'
export * from './listDeployments'
export * from './poll'
|
crqra/chatops-action | src/events/deploymentPending.ts | <reponame>crqra/chatops-action
import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deploymentPending = actionSlasher.event('deployment-pending', {
description: 'An event triggered when a deployment is pending',
async handler() {
const {repository, deploymentId}... |
crqra/chatops-action | src/main.ts | import * as core from '@actions/core'
import * as actionSlasher from './action-slasher'
import * as commands from './commands'
import * as chatops from './chatops'
import * as events from './events'
const run = async (): Promise<void> => {
core.debug(`Payload: ${JSON.stringify(chatops.context.payload, null, 2)}`)
... |
crqra/chatops-action | src/action-slasher/event.ts | <filename>src/action-slasher/event.ts
export interface EventOptions {
description?: string
handler(): Promise<void> | void
}
export class Event implements Event {
name: string
description?: string
handler: EventOptions['handler']
constructor(name: string, options: EventOptions) {
this.name = name
... |
crqra/chatops-action | src/action-slasher/command.ts | import arg from 'arg'
export interface CommandOptions {
description?: string
definition?(c: Command): void
handler(args: unknown): Promise<void> | void
}
export interface CommandArg {
name: string
type: CommandArgType
description?: string
}
export interface CommandArgOptions {
type: CommandArgType
de... |
crqra/chatops-action | src/events/index.ts | <gh_stars>1-10
export * from './deploymentError'
export * from './deploymentFailure'
export * from './deploymentInProgress'
export * from './deploymentLog'
export * from './deploymentPending'
export * from './deploymentSuccess'
|
crqra/chatops-action | src/action-slasher/help.ts | <filename>src/action-slasher/help.ts
import * as github from '@actions/github'
import * as octokit from './octokit'
import {Command, command} from './command'
const getArgumentsList = (cmd: Command): string =>
Object.keys(cmd.args)
.map(argName => {
const arg = cmd.args[argName]
return `* \`--${arg.... |
crqra/chatops-action | src/commands/deleteDeployment.ts | import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deleteDeployment = actionSlasher.command('delete-deployment', {
description: 'Deletes a deployment',
definition(c) {
c.arg('id', {
type: String,
description: 'The ID of the deployment'
})
},
... |
crqra/chatops-action | src/chatops/context.ts | <filename>src/chatops/context.ts
import * as core from '@actions/core'
import * as github from '@actions/github'
import {GitHub} from '@actions/github/lib/utils'
export interface Environment {
id: string
url?: string
name: string
description: string
default: boolean
}
export interface Repository {
owner: ... |
crqra/chatops-action | src/events/deploymentSuccess.ts | import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deploymentSuccess = actionSlasher.event('deployment-success', {
description: 'An event triggered when a deployment is successful',
async handler() {
const {repository, deploymentId} = chatops.context
if (... |
crqra/chatops-action | src/action-slasher/run.ts | <filename>src/action-slasher/run.ts
import * as core from '@actions/core'
import * as github from '@actions/github'
import * as command from './command'
import * as event from './event'
import * as help from './help'
export function run({
commands,
events
}: {
commands: command.Command[] | {[key: string]: comman... |
crqra/chatops-action | src/action-slasher/octokit.ts | import * as core from '@actions/core'
import * as github from '@actions/github'
export const octokit = github.getOctokit(
core.getInput('token', {required: true}),
{previews: ['flash', 'ant-man']}
)
|
crqra/chatops-action | src/action-slasher/index.ts | <gh_stars>1-10
export * from './command'
export * from './event'
export * from './run'
|
crqra/chatops-action | src/commands/deploy.ts | <filename>src/commands/deploy.ts
import * as actionSlasher from '../action-slasher'
import * as chatops from '../chatops'
export const deploy = actionSlasher.command('deploy', {
description: 'Deploys the project to the specified environment',
definition(c) {
c.arg('env', {
type: String,
description... |
LutheranWorldRelief/monitoreo_lac | web/js/vue/contact.merge.document.ts | // @ts-ignore
let app = new Vue({
el: "#app",
mixins:[
// @ts-ignore
MergeUrls,
],
data: {
ids:[], // it is shown when the duplicate models were load
name: '', // it is shown when the duplicate models were load
loading: {
all: true, // controls were du... |
LutheranWorldRelief/monitoreo_lac | web/js/vue/contact.merge.modules.ts | let MergeUrls = {
data:{
baseurl:''
},
methods:{
loadBaseUrl: function(elem){
let self = this;
// @ts-ignore
self.baseurl = $(elem).data('baseurl');
},
//--------------------------------------------------------------------------------------... |
LutheranWorldRelief/monitoreo_lac | web/js/vue/project.contact.ts | let appVue = new Vue({
el: "#app",
mixins:[
MergeUrls,
],
data: {
loading: true,
filter:'',
projectId:null,
project:null,
models:[],
count:{
contact:0,
projectContact:0
},
labels:{
contact:{},
... |
LutheranWorldRelief/monitoreo_lac | web/js/vue/contact.merge.import.ts | let app = new Vue({
el: "#app",
mixins:[
MergeUrls,
],
data: {
ids:[], // it is shown when the duplicate models were load
name: '', // it is shown when the duplicate models were load
loading: {
all: true, // controls were duplicate models are loaded
... |
LutheranWorldRelief/monitoreo_lac | web/js/vue/project.contact.url.ts | <filename>web/js/vue/project.contact.url.ts
let MergeUrls = {
data:{
baseurl:''
},
methods:{
loadBaseUrl: function(elem){
let self = this;
self.baseurl = $(elem).data('baseurl');
},
//--------------------------------------------------------------------... |
nobrayner/raid-stats-poc | types/queries.d.ts | <reponame>nobrayner/raid-stats-poc<filename>types/queries.d.ts
interface PullStats {
createdAt: string
additions: number
deletions: number
changedFiles: number
commits: {
totalCount: number
}
}
interface CommitResult {
pageInfo: {
hasNextPage: boolean
endCursor: string | null
}
nodes: Com... |
nobrayner/raid-stats-poc | src/utils.ts | <gh_stars>0
export const getStatsFromCommits = (raidRepoWithOwner: string, commits: Commit[] | undefined): UserStats[] => {
if (!commits) return []
return Object.values(commits.reduce<{ [key: string]: UserStats }>((stats, commit) => {
if (
!commit.author?.user?.login // Exclude null users
|| commit.... |
nobrayner/raid-stats-poc | src/__tests__/App.test.ts | import { render, screen } from '@testing-library/svelte'
import App from '../App.svelte'
describe('<App>', () => {
it('renders learn svelte link', () => {
render(App)
expect(screen.getByText(/learn svelte/i)).toBeInTheDocument()
})
})
|
nobrayner/raid-stats-poc | types/stats.d.ts | <filename>types/stats.d.ts
interface UserStats {
user: string
avatarUrl: string
additions: number
deletions: number
commits: number
} |
nobrayner/raid-stats-poc | src/queries.ts | <gh_stars>0
import { GraphQLClient, gql } from 'graphql-request'
const client = new GraphQLClient('https://api.github.com/graphql', {
headers: {
authorization: `bearer ${import.meta.env.SNOWPACK_PUBLIC_GITHUB_PAT}`
}
})
export const getRepoDetails = async (owner: string, repo: string, prid: number) => {
con... |
coliff/hint | packages/hint-compat-api/tests/utils/browsers.ts | import test from 'ava';
import { joinBrowsers } from '../../src/utils/browsers';
test('disjoint', (t) => {
t.deepEqual(
joinBrowsers({
browsers: ['chrome 74', 'chrome 76'],
details: new Map([
['chrome 74', { versionAdded: '77' }],
['chrome 76', { ver... |
coliff/hint | packages/utils/tests/compat/browsers.ts | import test from 'ava';
import { Identifier } from 'mdn-browser-compat-data/types';
import { getUnsupportedBrowsers } from '../../src/compat/browsers';
test('Handles complex support', (t) => {
/* eslint-disable */
const keyframes: Identifier = {
__compat: {
support: {
opera... |
coliff/hint | packages/hint/tests/lib/cli/analyze.ts | <reponame>coliff/hint
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import anyTest, { TestInterface, ExecutionContext } from 'ava';
import * as utils from '@hint/utils';
import { Problem, Severity } from '@hint/utils/dist/src/types/problems';
import {
AnalyzeOptions,
AnalyzerError,... |
coliff/hint | packages/hint-compat-api/src/utils/browsers.ts | <gh_stars>0
import { UnsupportedBrowsers } from '@hint/utils/dist/src/compat';
import { getFriendlyName } from '@hint/utils/dist/src/compat/browsers';
/**
* Apply temporary filters to the list of target browsers to reduce
* false-positives due to incorrect/outdated data. Each of these
* should be removed once the a... |
coliff/hint | packages/extension-browser/src/content-script/connector.ts | import { URL } from 'url';
import { Engine } from 'hint';
import { getElementByUrl, HTMLDocument, HTMLElement, traverse } from '@hint/utils/dist/src/dom';
import { createHelpers, restoreReferences } from '@hint/utils/dist/src/dom/snapshot';
import { DocumentData } from '@hint/utils/dist/src/types/snapshot';
import {
... |
coliff/hint | packages/hint/src/bin/hint.ts | #!/usr/bin/env node
/**
* @fileoverview Main CLI that is run via the hint command. Based on ESLint.
*/
/* eslint-disable no-process-exit, no-process-env */
/*
* ------------------------------------------------------------------------------
* Helpers
* ------------------------------------------------------------... |
coliff/hint | packages/extension-vscode/tests/utils/analytics.ts | <filename>packages/extension-vscode/tests/utils/analytics.ts
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import test from 'ava';
import { IHintConstructor, Problem } from 'hint';
const stubContext = () => {
const stubs = { './app-insights': {} as typeof import ('../../src/utils/app-in... |
coliff/hint | packages/hint-compat-api/tests/css.ts | import { fs, test } from '@hint/utils';
import { testHint } from '@hint/utils-tests-helpers';
const { generateHTMLPage, getHintPath } = test;
const { readFile } = fs;
const hintPath = getHintPath(__filename, true);
const generateCSSConfig = (fileName: string) => {
const path = 'fixtures/css';
const styles = ... |
coliff/hint | packages/extension-vscode/src/utils/webhint-packages.ts | <gh_stars>0
import { hasFile, mkdir } from './fs';
import { installPackages, loadPackage, InstallOptions } from './packages';
const installWebhint = (options: InstallOptions) => {
return installPackages(['hint', '@hint/configuration-development'], options);
};
/**
* Install or update a shared copy of webhint to ... |
acteq/mook | es/create-hooks.d.ts | import { HookFunc, WrappedHooks } from "./types";
declare type Subscriber<T> = (data: T) => void;
export declare class Store<T = unknown> {
constructor();
subscribers: Set<Subscriber<T>>;
model: T;
notify(): void;
setModel(newModel: T): void;
}
export declare function createHooks<T, P>(hook: HookFun... |
acteq/mook | es/types.d.ts | <gh_stars>1-10
export declare type HookFunc<T = any, P = any> = (args: P) => T;
declare type Deps<T> = (model: T) => unknown[];
export interface UseHook<T> {
(depsFn?: Deps<T>): T;
}
export interface WrappedHooks<T> {
wrapped: HookFunc<T>;
standin: HookFunc<T>;
}
export interface UseHook<T> {
(depsFn?: ... |
acteq/mook | src/types.ts | <reponame>acteq/mook
export type HookFunc<T = any, P = any> = (args: P) => T;
export type StandInHook<T> = (depsFn?: Deps<T>) => T;
type Deps<T> = (model: T) => unknown[];
export interface WrappedHooks<T> {
wrapped : HookFunc<T>;
standin : StandInHook<T>;
}
|
acteq/mook | src/index.tsx | <reponame>acteq/mook<filename>src/index.tsx
export { createHooks } from "./create-hooks";
|
acteq/mook | src/__tests__/create-hooks.test.tsx | <filename>src/__tests__/create-hooks.test.tsx
import { createHooks } from "..";
import { useState } from "react";
// import "@testing-library/jest-dom/extend-expect";
import { renderHook,act } from '@testing-library/react-hooks';
function useCounter(initalValue: number) {
const [count, setCount] = useState(initalVa... |
acteq/mook | src/create-hooks.tsx | import { HookFunc, StandInHook, WrappedHooks } from "./types";
import { useEffect, useRef, useState } from "react";
type Subscriber<T> = (data: T) => void;
export class Store<T = unknown> {
constructor() {}
subscribers = new Set<Subscriber<T>>();
model!: T;
notify() {
for (const subscriber of this.subscr... |
ctx-core/email | src/email_valid_.ts | <reponame>ctx-core/email<filename>src/email_valid_.ts<gh_stars>0
export function email_valid_(email:string):boolean {
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
return re.test(email)
}
export {
em... |
ctx-core/email | src/index.ts | <gh_stars>0
export * from './email_valid_.js'
|
kevans2226/HRV | ClientApp/src/app/home/home.component.ts | <reponame>kevans2226/HRV
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { AppComponent } from '../app.component';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
})
export class HomeComponent {
constructor(public app: AppComponent, pr... |
kevans2226/HRV | ClientApp/src/app/hrv/hrv.component.ts | <gh_stars>0
import { DatePipe, formatDate } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { HRVRecordService } from '../Services/hrvrecord.service';
import {... |
kevans2226/HRV | ClientApp/src/app/Structures/structures.ts | <reponame>kevans2226/HRV<gh_stars>0
import { FormGroup } from "@angular/forms";
export class LoginModel {
userName!: string;
password!: string;
}
export class Token {
token!: string;
expiration! : Date;
userName!: string;
}
export class newUser {
emailAddress!: string;
password!: stri... |
kevans2226/HRV | ClientApp/src/app/Services/login.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { LoginModel, newUser, passwordChange, Token } from '../Structures/structures';
@Injectable({
providedIn: 'root'
})
export class LoginService {
constructor(private http: HttpCli... |
kevans2226/HRV | ClientApp/src/app/password-change/password-change.component.ts | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { LoginService } from '../Services/login.service';
import { ComparePassword, passwordChange } from '../Structures/structures';
@Component({
selector: 'app-password-change',
templateUrl: '.... |
kevans2226/HRV | ClientApp/src/app/signin/signin.component.ts | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AppComponent } from '../app.component';
import { LoginService } from '../Services/login.service';
import { LoginModel } from '../Structu... |
kevans2226/HRV | ClientApp/src/app/Services/hrvrecord.service.ts | <filename>ClientApp/src/app/Services/hrvrecord.service.ts
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { hrvList, hrvOutput, hrvRecord } from '../Structures/structures';
@Injectable({
providedIn: 'root'
})
export class HRVRec... |
kevans2226/HRV | ClientApp/src/app/app.module.ts | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.compon... |
kevans2226/HRV | ClientApp/src/app/new-user/new-user.component.ts | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { LoginService } from '../Services/login.service';
import { newUser, ComparePassword } from '../Structures/structures';
... |
kevans2226/HRV | ClientApp/src/app/app.component.ts | <filename>ClientApp/src/app/app.component.ts
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService } from './Services/login.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements OnInit {
... |
typoon/coc-rust-analyzer | src/commands.ts | <reponame>typoon/coc-rust-analyzer<gh_stars>0
import { spawnSync, spawn } from 'child_process';
import readline from 'readline';
import { commands, Documentation, FloatFactory, Terminal, TerminalOptions, Uri, workspace } from 'coc.nvim';
import { Location, Position, Range, TextDocumentEdit, TextDocumentPositionParams, ... |
looker/ts-babel-node | test/cases/destructure.ts | <filename>test/cases/destructure.ts
import 'babel-polyfill';
import { delay } from 'bluebird';
async function main() {
const { foo } = await getStuff();
console.log(foo);
}
async function getStuff() {
await delay(100);
return { foo: 'bar', bar: 'baz' };
}
main().catch(err => console.log(err.stack));
|
looker/ts-babel-node | test/cases/supports.tsx | <filename>test/cases/supports.tsx<gh_stars>10-100
process.stdout.write('testing\n');
|
looker/ts-babel-node | test/cases/custom-babel/test.ts | <filename>test/cases/custom-babel/test.ts
console.log('this should not appear');
process.stdout.write('this is the only thing that should appear\n');
|
looker/ts-babel-node | test/cases/sync-throw.ts | <filename>test/cases/sync-throw.ts
import 'babel-polyfill';
function main() {
throwError();
}
function throwError() {
throw new Error('test error');
}
try {
main();
} catch (err) {
console.log(err.stack);
}
|
jruipinto/search-dropdown-filter-wc | components/dropdown-item-list.element.d.ts | import { LitElement } from 'lit';
/**
* This is the element that presents the list under
* the dropdown button
*/
export declare class DropdownItemList extends LitElement {
static styles: import("lit").CSSResultGroup;
/**
* Items to be presented in this list
*/
items: string[];
dropdownItem... |
jruipinto/search-dropdown-filter-wc | components/search-input.element.d.ts | <filename>components/search-input.element.d.ts<gh_stars>0
import { LitElement } from 'lit';
import './magnifier-icon.element';
/**
* this is the search input element wich shows a magnifier on its left
*/
export declare class SearchInput extends LitElement {
static styles: import("lit").CSSResultGroup;
render(... |
jruipinto/search-dropdown-filter-wc | components/magnifier-icon.element.d.ts | import { LitElement } from 'lit';
/**
* This is the element that contains the SVG
* for the magnifier icon
*/
export declare class MagnifierIcon extends LitElement {
static styles: import("lit").CSSResultGroup;
render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNam... |
jruipinto/search-dropdown-filter-wc | src/components/dropdown-icon.element.ts | <reponame>jruipinto/search-dropdown-filter-wc
import {LitElement, html, css} from 'lit';
import {customElement} from 'lit/decorators.js';
/**
* This is the element that contains the SVG
* for the dropdown icon on its rigt side
*/
@customElement('app-dropdown-icon')
export class DropdownIcon extends LitElement {
s... |
jruipinto/search-dropdown-filter-wc | components/dropdown-icon.element.d.ts | <filename>components/dropdown-icon.element.d.ts<gh_stars>0
import { LitElement } from 'lit';
/**
* This is the element that contains the SVG
* for the dropdown icon on its rigt side
*/
export declare class DropdownIcon extends LitElement {
static styles: import("lit").CSSResultGroup;
render(): import("lit-ht... |
jruipinto/search-dropdown-filter-wc | src/components/search-input.element.ts | import {LitElement, html, css} from 'lit';
import {customElement} from 'lit/decorators.js';
import './magnifier-icon.element';
/**
* this is the search input element wich shows a magnifier on its left
*/
@customElement('app-search-input')
export class SearchInput extends LitElement {
static styles = css`
:host... |
jruipinto/search-dropdown-filter-wc | components/dropdown-button.element.d.ts | <gh_stars>0
import { LitElement } from 'lit';
import './dropdown-icon.element';
/**
* This is the dropdown button with dropdown icon
* in its right side
*/
export declare class DropdownButton extends LitElement {
static styles: import("lit").CSSResultGroup;
/**
* Search input option (default).
*/
... |
jruipinto/search-dropdown-filter-wc | src/test/search-drop-down-filter-wc_test.ts | <reponame>jruipinto/search-dropdown-filter-wc<gh_stars>0
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import {SearchDropdownFilter} from '../search-drop-down-filter-wc.element.js';
import {fixture, html} from '@open-wc/testing';
const assert = chai.assert;
suite('search-... |
jruipinto/search-dropdown-filter-wc | models/dropdown-item.model.d.ts | <reponame>jruipinto/search-dropdown-filter-wc<gh_stars>0
//# sourceMappingURL=dropdown-item.model.d.ts.map |
jruipinto/search-dropdown-filter-wc | src/components/dropdown-item-list.element.ts | <reponame>jruipinto/search-dropdown-filter-wc
import {LitElement, html, css} from 'lit';
import {customElement, property} from 'lit/decorators.js';
/**
* This is the element that presents the list under
* the dropdown button
*/
@customElement('app-dropdown-item-list')
export class DropdownItemList extends LitElemen... |
jruipinto/search-dropdown-filter-wc | src/search-drop-down-filter-wc.element.ts | /**
* @license
* SPDX-License-Identifier: MIT
*/
import {LitElement, html, css} from 'lit';
import {customElement, property} from 'lit/decorators.js';
import './components/dropdown-item-list.element';
import './components/search-input.element';
import './components/dropdown-button.element';
/**
* This is a WebCom... |
jruipinto/search-dropdown-filter-wc | src/components/magnifier-icon.element.ts | <reponame>jruipinto/search-dropdown-filter-wc<gh_stars>0
import {LitElement, html, css} from 'lit';
import {customElement} from 'lit/decorators.js';
/**
* This is the element that contains the SVG
* for the magnifier icon
*/
@customElement('app-magnifier-icon')
export class MagnifierIcon extends LitElement {
stat... |
jruipinto/search-dropdown-filter-wc | search-drop-down-filter-wc.element.d.ts | /**
* @license
* SPDX-License-Identifier: MIT
*/
import { LitElement } from 'lit';
import './components/dropdown-item-list.element';
import './components/search-input.element';
import './components/dropdown-button.element';
/**
* This is a WebComponent made with lit with configurable option
* to show a search inpu... |
jruipinto/search-dropdown-filter-wc | src/components/dropdown-button.element.ts | <gh_stars>0
import {customElement, property} from 'lit/decorators.js';
import {LitElement, html, css} from 'lit';
import './dropdown-icon.element';
/**
* This is the dropdown button with dropdown icon
* in its right side
*/
@customElement('app-dropdown-button')
export class DropdownButton extends LitElement {
sta... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/024_meetingRoomAmongUs/components/dialog/LeaveMeetingDialog.tsx | <gh_stars>0
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from "@material-ui/core";
import React from "react";
import { useAppState } from "../../../../providers/AppStateProvider";
type LeaveMeetingDialogProps = {
open:boolean,
onClose:()=>void
}
export const LeaveMeetingDialog = (p... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/023_meetingRoom/components/ScreenView/RecorderView.tsx | <gh_stars>0
import React, { useEffect, useMemo } from "react"
import { Divider, Typography } from '@material-ui/core'
import { VideoTileState } from "amazon-chime-sdk-js";
import { useAppState } from "../../../../providers/AppStateProvider";
import { RendererForRecorder } from "./helper/RendererForRecorder";
export ty... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/023_meetingRoom/components/sidebars/OnetimeCodePanel.tsx | import React, { useMemo, useState } from 'react';
import { Link, Typography } from '@material-ui/core';
import { useStyles } from './css';
import { useAppState } from '../../../../providers/AppStateProvider';
import { generateOnetimeCode } from '../../../../api/api';
var QRCode = require('qrcode.react');
export const ... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/013_requestChangePassword/index.tsx | <reponame>diitalk/flect-chime-sdk-demo
import { Avatar, Box, Button, CircularProgress, Container, CssBaseline, Grid, Link, makeStyles, TextField, Typography, withStyles } from "@material-ui/core";
import React, { useState } from "react";
import { useAppState } from "../../providers/AppStateProvider";
import { Lock } fr... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/101_MeetingManager/MeetingManager.tsx | import { AppBar, createMuiTheme, CssBaseline, ThemeProvider, Toolbar } from "@material-ui/core"
import React, { useEffect, useState } from "react"
import { useAppState } from "../../providers/AppStateProvider"
import { DialogOpener } from "../023_meetingRoom/components/appbars/DialogOpener"
import { FeatureEnabler } fr... |
diitalk/flect-chime-sdk-demo | frontend3/src/frameProcessors/VirtualBackground.ts | import { CanvasVideoFrameBuffer, VideoFrameBuffer, VideoFrameProcessor } from "amazon-chime-sdk-js";
import { BodypixWorkerManager, generateBodyPixDefaultConfig, generateDefaultBodyPixParams, ModelConfigMobileNetV1_05, SemanticPersonSegmentation } from "@dannadori/bodypix-worker-js"
import { generateGoogleMeetSegmentat... |
diitalk/flect-chime-sdk-demo | backend/bin/config.ts | export const BACKEND_STACK_NAME = 'f-BackendStack'
export const FRONTEND_LOCAL_DEV = false
export const USE_DOCKER = false
|
diitalk/flect-chime-sdk-demo | frontend3/src/Config.ts | <gh_stars>0
import { UserPoolId, UserPoolClientId, RestAPIEndpoint } from "./BackendConfig"
export const awsConfiguration = {
region: 'us-east-1',
userPoolId: UserPoolId,
clientId: UserPoolClientId,
}
export const BASE_URL = RestAPIEndpoint
export const DEFAULT_USERID = ""
export const DEFAULT_PASSWORD =... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/023_meetingRoom/components/appbars/DeviceEnabler.tsx | <gh_stars>0
import { IconButton, Tooltip } from "@material-ui/core"
import {Mic, MicOff, Videocam, VideocamOff, VolumeUp, VolumeOff} from '@material-ui/icons'
import React, { useMemo } from "react"
import clsx from 'clsx';
import { useStyles } from "../../css";
type DeviceType = "Mic" | "Camera" | "Speaker"
type Dev... |
diitalk/flect-chime-sdk-demo | frontend3/src/pages/023_meetingRoom/components/ScreenView/FeatureView.tsx | import React, { useMemo } from "react";
import { FocustTarget, PictureInPictureType } from "./const";
import { FullScreenView } from "./FullScreenView";
import { LineView } from "./LineView";
type FeatureViewProps = {
pictureInPicture: PictureInPictureType
focusTarget: FocustTarget
width:number
height:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.