repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
yegobox/kraken | frontend/projects/storage/src/lib/storage-dialogs/delete-files-dialog/delete-files-dialog.component.spec.ts | <gh_stars>1-10
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DeleteFilesDialogComponent} from './delete-files-dialog.component';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';
import {dialogRefSpy} from 'projects/commons/src/lib/mock/material.mock.spec';
import {test... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-menu/buttons/edit-node-button/edit-node-button.component.spec.ts | <gh_stars>1-10
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {EditNodeButtonComponent} from './edit-node-button.component';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {storageServiceSpy} from 'projects/storage/src/lib/storage.service.spec';
describ... |
yegobox/kraken | frontend/projects/administration/src/app/workspace/workspace.module.ts | import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {WorkspaceRoutingModule} from './workspace-routing.module';
import {WorkspaceComponent} from './workspace/workspace.component';
import {ComponentsModule} from 'projects/components/src/lib/components.module';
import {VendorsMod... |
yegobox/kraken | frontend/projects/analysis/src/lib/analysis.module.ts | import {NgModule} from '@angular/core';
import {HTTP_INTERCEPTORS} from '@angular/common/http';
import {AnalysisApplicationIdService} from 'projects/analysis/src/lib/analysis-application-id.service';
@NgModule({
providers: [
{provide: HTTP_INTERCEPTORS, useClass: AnalysisApplicationIdService, multi: true},
]
}... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-menu/buttons/menu-node-button/menu-node-button.component.spec.ts | <gh_stars>1-10
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {MenuNodeButtonComponent} from './menu-node-button.component';
import {StorageTreeControlService} from 'projects/storage/src/lib/storage-tree/storage-tree-control.service';
import {storageTreeControlServiceSpy} from 'projects... |
yegobox/kraken | frontend/projects/workspaces/src/lib/workspace.component.spec.ts | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {WorkspaceComponent} from './workspace.component';
import {Component, NgModule} from '@angular/core';
import {WorkspacesModule} from './workspaces.module';
import {ComponentPortal} from '@angular/cdk/portal';
import {EMPTY_SIDE_CONFIG, Side... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/hosts-table/hosts-table.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {HostsTableComponent} from './hosts-table.component';
import {RuntimeHostService} from 'projects/runtime/src/lib/runtime-host/runtime-host.service';
import {CoreTestModule} from 'projects/commons/src/lib/core/core.m... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-editor/storage-node-tab-header/storage-node-tab-header.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {StorageNodeTabHeaderComponent} from './storage-node-tab-header.component';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {eventBusSpy} from 'projects/event/src/lib/event-bus.servi... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation-editor/simulation-editor.component.ts | <filename>frontend/projects/gatling/src/app/simulations/simulation-editor/simulation-editor.component.ts
import {Component, Inject} from '@angular/core';
import {StorageNodeEditorContentService} from 'projects/storage/src/lib/storage-editor/storage-node-editors/storage-node-editor-content.service';
import {DefaultStora... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/debug/debug-editor/debug-editor.component.spec.ts | <reponame>yegobox/kraken<gh_stars>0
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DebugEditorComponent} from 'projects/analysis/src/lib/results/debug/debug-editor/debug-editor.component';
import {DebugEditorContentService} from 'projects/analysis/src/lib/results/debug/debug-editor/deb... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/runtime-host.module.ts | import {NgModule} from '@angular/core';
import {HostsTableComponent} from 'projects/runtime/src/lib/runtime-host/hosts-table/hosts-table.component';
import {ComponentsModule} from 'projects/components/src/lib/components.module';
import {VendorsModule} from 'projects/vendors/src/lib/vendors.module';
import {CapacityToSt... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-watcher/runtime-watcher.service.ts | import {Injectable, OnDestroy} from '@angular/core';
import {Observer, Subscription} from 'rxjs';
import {Retry} from 'projects/tools/src/lib/retry';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {EventSourceService} from 'projects/tools/src/lib/event-source.service';
import {Configur... |
yegobox/kraken | frontend/projects/notification/src/lib/notifications-tab-header/notifications-tab-header.component.ts | import {Component, Inject, OnInit} from '@angular/core';
import {SIDE_HEADER_DATA, TAB_HEADER_DATA, TabHeaderComponent} from 'projects/tabs/src/lib/tab-header/tab-header.component';
import {TabsSide} from 'projects/tabs/src/lib/tabs-side';
import {NotificationService} from 'projects/notification/src/lib/notification.se... |
yegobox/kraken | frontend/projects/workspaces/src/lib/side-split/side-split.component.ts | import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {Portal} from '@angular/cdk/portal';
import {TabsContentComponent} from 'projects/tabs/src/lib/tabs-content/tabs-content.component';
import {SplitPanesComponent} from 'projects/split/src/lib/split-panes/split-panes.component... |
yegobox/kraken | frontend/projects/commons/src/lib/config/application-id-header-interceptor.service.ts | <filename>frontend/projects/commons/src/lib/config/application-id-header-interceptor.service.ts<gh_stars>1-10
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';
import {Observable} from 'rxjs';
import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.serv... |
yegobox/kraken | frontend/projects/tools/src/lib/window.service.ts | import * as _ from 'lodash';
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class WindowService {
window = window;
_resizeDebounced = _.debounce(this._resize.bind(this), 50, {'maxWait': 1000});
resize() {
this._resizeDebounced();
}... |
yegobox/kraken | frontend/projects/help/src/lib/help-panel/help-page-id.ts | export type HelpPageId = 'HOME'
| 'TEST'
| 'EDITOR_MARKDOWN'
| 'EDITOR_GATLING'
| 'EDITOR_DEBUG'
| 'ADMIN_FILE_EDITOR'
| 'administration-storage'
| 'resources-tree'
| 'simulations-tree'
| 'GATLING_IMPORT_HAR'
| 'GATLING_DEBUG_DIALOG'
| 'GATLING_COMPARE_DEBUG'
| 'GATLING_RUN_DIALOG'
| 'ADMIN_CR... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-watcher/runtime-watcher.module.ts | <filename>frontend/projects/runtime/src/lib/runtime-watcher/runtime-watcher.module.ts
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RuntimeWatcherService} from 'projects/runtime/src/lib/runtime-watcher/runtime-watcher.service';
import {RuntimeHostService} from 'projects/r... |
yegobox/kraken | frontend/projects/runtime/src/lib/events/task-executed-event.ts | import {BusEvent} from 'projects/event/src/lib/bus-event';
import {ExecutionContext} from 'projects/runtime/src/lib/entities/execution-context';
export class TaskExecutedEvent extends BusEvent {
public static readonly CHANNEL = 'task-executed-event';
constructor(public readonly taskId: string, public readonly co... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-configuration.service.spec.ts | import {TestBed} from '@angular/core/testing';
import {RuntimeConfigurationService} from './runtime-configuration.service';
import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.service';
import {configurationServiceSpy} from 'projects/commons/src/lib/config/configuration.service.spec';
imp... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/host-id-to-description.pipe.spec.ts | import {HostIdToDescriptionPipe} from './host-id-to-description.pipe';
import {runtimeHostServiceSpy} from 'projects/runtime/src/lib/runtime-host/runtime-host.service.spec';
import {AddressesToStringPipe} from 'projects/runtime/src/lib/runtime-host/addresses-to-string.pipe';
import {CapacityToStringPipe} from 'projects... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/capacity-to-string.pipe.spec.ts | <filename>frontend/projects/runtime/src/lib/runtime-host/capacity-to-string.pipe.spec.ts<gh_stars>0
import { CapacityToStringPipe } from './capacity-to-string.pipe';
describe('CapacityToStringPipe', () => {
it('create an instance', () => {
const pipe = new CapacityToStringPipe();
expect(pipe).toBeTruthy();
... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-editor/storage-node-editors/storage-node-editor-content.service.ts | import {Injectable, OnDestroy} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import {debounce, filter} from 'rxjs/operators';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {NodeModifie... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/debug/debug-entries-table/debug-entries-table.service.ts | <gh_stars>0
import {Injectable, OnDestroy} from '@angular/core';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {NodeEventToNodePipe} from 'projects/storage/src/lib/storage-pipes/node-event-to-node.pipe';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {... |
yegobox/kraken | frontend/projects/notification/src/lib/notification.service.spec.ts | <filename>frontend/projects/notification/src/lib/notification.service.spec.ts
import {inject, TestBed} from '@angular/core/testing';
import {NotificationModule} from 'projects/notification/src/lib/notification.module';
import {CoreTestModule} from 'projects/commons/src/lib/core/core.module.spec';
import {NotificationSe... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/debug/debug-entries-table/debug-entries-table.service.spec.ts | import {TestBed} from '@angular/core/testing';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import {of, ReplaySubject} from 'rxjs';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {s... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-tree/storage-tree/storage-tree.component.ts | <reponame>yegobox/kraken<gh_stars>1-10
import {Component, Inject, InjectionToken, OnInit, Optional} from '@angular/core';
import {IconFaAddon} from 'projects/icon/src/lib/icon-fa-addon';
import {IconFa} from 'projects/icon/src/lib/icon-fa';
import {faEllipsisV} from '@fortawesome/free-solid-svg-icons/faEllipsisV';
impo... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/results-table/results-table.service.spec.ts | import {TestBed} from '@angular/core/testing';
import {ResultsTableService} from 'projects/analysis/src/lib/results/results-table/results-table.service';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {storageServiceSpy} from 'projects/storage/src/lib/storage.service.spec';
import {Sto... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/is-debug-entry-storage-node.pipe.ts | <filename>frontend/projects/analysis/src/lib/results/is-debug-entry-storage-node.pipe.ts
import {Pipe, PipeTransform} from '@angular/core';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import {AnalysisConfigurationService} from 'projects/analysis/src/lib/analysis-configuration.service';
... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation-dialogs/simulation-dialogs.module.ts | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {ExecuteSimulationDialogComponent} from 'projects/gatling/src/app/simulations/simulation-dialogs/execute-simulation-dialog/execute-simulation-dialog.component';
import {VendorsModule} from 'projects/vendors/src/lib/vendors.... |
yegobox/kraken | frontend/projects/dialog/src/lib/wait-dialog/wait-dialog.component.spec.ts | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {WaitDialogComponent} from './wait-dialog.component';
import {MAT_DIALOG_DATA} from '@angular/material';
import {WaitDialogProgress} from 'projects/dialog/src/lib/wait-dialog/wait-dialog-progress';
describe('WaitDialogComponent', () => {
... |
yegobox/kraken | frontend/projects/tools/src/lib/query-params-to-string.pipe.ts | import {Pipe, PipeTransform} from '@angular/core';
import * as _ from 'lodash';
@Pipe({
name: 'queryParamsToString'
})
export class QueryParamsToStringPipe implements PipeTransform {
transform(value?: { [key in string]: string }): string {
if (!value || _.isEmpty(value)) {
return '';
}
return '?... |
yegobox/kraken | frontend/projects/tools/src/lib/tools.module.ts | import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {PrettyStringPipe} from './pretty-string.pipe';
import { FileSizePipe } from './file-size.pipe';
import { MarkdownToHtmlPipe } from './markdown-to-html.pipe';
import { QueryParamsToStringPipe } from './query-params-to-string.pi... |
yegobox/kraken | frontend/projects/notification/src/lib/notifications-tab-header/notifications-tab-header.component.spec.ts | <reponame>yegobox/kraken<filename>frontend/projects/notification/src/lib/notifications-tab-header/notifications-tab-header.component.spec.ts
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component} from '@angular/core';
import {NotificationsTabHeaderComponent} from 'projects/notificat... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-tree/link-selection-button/link-selection-button.component.ts | import {Component, Inject, OnDestroy} from '@angular/core';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {SelectNodeEvent} from 'projects/storage/src/lib/events/select-node-event';
import {StorageTreeControlService} from 'projects/storage/src/lib/storage-tree/storage-tree-control.ser... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-watcher.service.spec.ts | import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {StorageWatcherService} from './storage-watcher.service';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {eventBusSpy} from 'projects/event/src/lib/event-bus.service.spec';
import {NodeCreatedEvent} from 'projects/... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/host-id-to-name.pipe.spec.ts | import {HostIdToNamePipe} from './host-id-to-name.pipe';
import {RuntimeHostService} from 'projects/runtime/src/lib/runtime-host/runtime-host.service';
import {runtimeHostServiceSpy} from 'projects/runtime/src/lib/runtime-host/runtime-host.service.spec';
import {testHost} from 'projects/runtime/src/lib/entities/host.sp... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/environment-variables-list/environment-variables-list.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {EnvironmentVariablesListComponent} from './environment-variables-list.component';
import {LocalStorageService} from 'projects/tools/src/lib/local-storage.service';
import {localStorageServiceSpy} f... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-pipes/storage-node-to-parent-path.pipe.ts | <filename>frontend/projects/storage/src/lib/storage-pipes/storage-node-to-parent-path.pipe.ts
import {Pipe, PipeTransform} from '@angular/core';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import * as _ from 'lodash';
@Pipe({
name: 'storageNodeToParentPath'
})
export class StorageNode... |
yegobox/kraken | frontend/projects/commons/src/lib/config/configuration.ts | <gh_stars>0
export interface Configuration {
version: string;
applicationId: string;
runtimeApiUrl: string;
storageApiUrl: string;
docUrl: string;
}
|
yegobox/kraken | frontend/projects/runtime/src/lib/entities/host.ts | <gh_stars>0
import {HostAddress} from 'projects/runtime/src/lib/entities/host-address';
export interface Host {
readonly id: string;
readonly name: string;
readonly capacity: {[key in string]: string};
readonly addresses: HostAddress[];
}
|
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/host-id-to-name.pipe.ts | import {Pipe, PipeTransform} from '@angular/core';
import {RuntimeHostService} from 'projects/runtime/src/lib/runtime-host/runtime-host.service';
@Pipe({
name: 'hostIdToName'
})
export class HostIdToNamePipe implements PipeTransform {
constructor(private hostService: RuntimeHostService) {
}
transform(id: str... |
yegobox/kraken | frontend/projects/tree/src/lib/contextual-menu/contextual-menu.component.ts | <reponame>yegobox/kraken
import {Component, ViewChild} from '@angular/core';
import { MatMenuTrigger } from '@angular/material/menu';
@Component({
selector: 'lib-contextual-menu',
templateUrl: './contextual-menu.component.html',
styleUrls: ['./contextual-menu.component.scss']
})
export class ContextualMenuCompon... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-watcher/runtime-watcher.service.spec.ts | import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {RuntimeWatcherService} from './runtime-watcher.service';
import {HttpTestingController} from '@angular/common/http/testing';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {eventSourceSpy} from 'projects/tools/src... |
yegobox/kraken | frontend/projects/components/src/lib/table-overlay/table-overlay.component.ts | import {Component, Input, OnInit} from '@angular/core';
import {MatTableDataSource} from '@angular/material';
@Component({
selector: 'lib-table-overlay',
templateUrl: './table-overlay.component.html',
styleUrls: ['./table-overlay.component.scss']
})
export class TableOverlayComponent implements OnInit {
@Inpu... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/hosts-selector/hosts-selector.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {HostsSelectorComponent} from './hosts-selector.component';
import {RuntimeHostService} from 'projects/runtime/src/lib/runtime-host/runtime-host.service';
import {runtimeHostServiceSpy} from 'projects/runtime/src/li... |
yegobox/kraken | frontend/projects/storage/src/lib/entities/storage-node.ts | export type StorageNodeType = 'FILE' | 'DIRECTORY' | 'NONE';
export interface StorageNode {
path: string;
type: StorageNodeType;
depth: number;
length: number;
lastModified: number;
}
|
yegobox/kraken | frontend/projects/storage/src/lib/storage-tree/storage-node/storage-node.component.spec.ts | <filename>frontend/projects/storage/src/lib/storage-tree/storage-node/storage-node.component.spec.ts
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {STORAGE_NODE_BUTTONS, StorageNodeComponent} from './storage-node.component';
import {StorageTreeControlService} from 'projects/storage/src... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-tree/storage-node/storage-node.component.ts | <filename>frontend/projects/storage/src/lib/storage-tree/storage-node/storage-node.component.ts
import {Component, Inject, InjectionToken, Injector, Input, OnInit, Optional} from '@angular/core';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import {StorageTreeControlService} from 'project... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation-contextual-menu/simulation-contextual-menu.component.spec.ts | <filename>frontend/projects/gatling/src/app/simulations/simulation-contextual-menu/simulation-contextual-menu.component.spec.ts
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {SimulationContextualMenuComponent} from './simulation-contextual-menu.component';
import {StorageTreeControlSer... |
yegobox/kraken | frontend/projects/tools/src/lib/event-source.service.ts | import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import * as _ from 'lodash';
import {QueryParamsToStringPipe} from 'projects/tools/src/lib/query-params-to-string.pipe';
import {NativeEventSource, EventSourcePolyfill} from 'event-source-polyfill';
const EventSource = NativeEventSource || Even... |
yegobox/kraken | frontend/projects/runtime/src/lib/entities/task-type.ts | <reponame>yegobox/kraken
export type TaskType = 'RUN' | 'DEBUG' | 'RECORD';
|
yegobox/kraken | frontend/projects/storage/src/lib/storage-editor/storage-node-editors/default-storage-node-editor/default-storage-node-editor.component.spec.ts | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DefaultStorageNodeEditorComponent} from './default-storage-node-editor.component';
import {StorageNodeEditorContentService} from 'projects/storage/src/lib/storage-editor/storage-node-editors/storage-node-editor-content.service';
import {st... |
yegobox/kraken | frontend/projects/tools/src/lib/pretty-string.pipe.spec.ts | <filename>frontend/projects/tools/src/lib/pretty-string.pipe.spec.ts
import {PrettyStringPipe} from './pretty-string.pipe';
import {StringToolsService} from './string-tools.service';
import {TestBed} from '@angular/core/testing';
describe('PrettyStringPipe', () => {
let pipe: PrettyStringPipe;
beforeEach(() => {
... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-menu/storage-menu.module.ts | import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {StorageContextualMenuComponent} from './storage-contextual-menu/storage-contextual-menu.component';
import {IconModule} from 'projects/icon/src/lib/icon.module';
import {VendorsModule} from 'projects/vendors/src/lib/vendors.mo... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation.service.ts | <gh_stars>0
import {Injectable} from '@angular/core';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
import {StorageNodeToExtPipe} from 'projects/storage/src/lib/storage-pipes/storage-node-to-ext.pipe';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {filter,... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/runtime-host.service.ts | <reponame>yegobox/kraken
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {RuntimeConfigurationService} from 'projects/runtime/src/lib/runtime-configuration.service';
import {BehaviorSubject, Observable} from 'rxjs';
import {Host} from 'projects/runtime/src/lib/entities/... |
yegobox/kraken | frontend/projects/workspaces/src/lib/workspace.component.ts | import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {Portal} from '@angular/cdk/portal';
import {SplitPanesComponent} from 'projects/split/src/lib/split-panes/split-panes.component';
import {SideSplitComponent} from 'projects/workspaces/src/lib/side-split/side-split.component';
import {SideConfigu... |
yegobox/kraken | frontend/projects/workspaces/src/lib/side-split/side-split.component.spec.ts | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {SideSplitComponent} from './side-split.component';
import {Component, NgModule} from '@angular/core';
import {CoreTestModule} from 'projects/commons/src/lib/core/core.module.spec';
import {WorkspacesModule} from 'projects/workspaces/src/li... |
yegobox/kraken | frontend/projects/editor/src/lib/path-to-code-editor-mode.pipe.spec.ts | <filename>frontend/projects/editor/src/lib/path-to-code-editor-mode.pipe.spec.ts
import {PathToCodeEditorModePipe} from './path-to-code-editor-mode.pipe';
import {TestBed} from '@angular/core/testing';
import {FormatterService} from 'projects/editor/src/lib/formatter.service';
describe('PathToCodeEditorModePipe', () =... |
yegobox/kraken | frontend/projects/tree/src/lib/contextual-menu/contextual-menu.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ContextualMenuComponent} from './contextual-menu.component';
import {CoreTestModule} from 'projects/commons/src/lib/core/core.module.spec';
import {TreeModule} from 'projects/tree/src/lib/tree.module';
describe('C... |
yegobox/kraken | frontend/projects/runtime/src/lib/entities/container-status.ts | export type ContainerStatus = 'CREATING'
| 'STARTING'
| 'PREPARING'
| 'READY'
| 'RUNNING'
| 'STOPPING'
| 'DONE';
|
yegobox/kraken | frontend/projects/commons/src/lib/mock/router.mock.spec.ts | <reponame>yegobox/kraken<gh_stars>1-10
import {ActivatedRoute, Params} from '@angular/router';
import {cold} from 'jasmine-marbles';
export const routerSpy = () => jasmine.createSpyObj('Router', ['navigate']);
export const activatedRouteSpy = (params: Params): ActivatedRoute => {
return {params: cold('---x|', {x: p... |
yegobox/kraken | frontend/projects/tabs/src/lib/tabs-content/tabs-content.component.spec.ts | import {async, ComponentFixture, inject, TestBed} from '@angular/core/testing';
import {Component, NgModule} from '@angular/core';
import {CoreTestModule} from 'projects/commons/src/lib/core/core.module.spec';
import {TabsModule} from 'projects/tabs/src/lib/tabs.module';
import {BusEvent} from 'projects/event/src/lib/... |
yegobox/kraken | frontend/projects/icon/src/lib/icons.ts | import {IconFa} from 'projects/icon/src/lib/icon-fa';
import {faSync} from '@fortawesome/free-solid-svg-icons/faSync';
import {library} from '@fortawesome/fontawesome-svg-core';
import {IconDynamic} from 'projects/icon/src/lib/icon-dynamic';
import {faTrash} from '@fortawesome/free-solid-svg-icons/faTrash';
import {faS... |
yegobox/kraken | frontend/projects/analysis/src/lib/results/debug/debug-editor/debug-editor-content.service.ts | <reponame>yegobox/kraken
import {Injectable} from '@angular/core';
import {StorageNodeEditorContentService} from 'projects/storage/src/lib/storage-editor/storage-node-editors/storage-node-editor-content.service';
import {StorageConfigurationService} from 'projects/storage/src/lib/storage-configuration.service';
import ... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-menu/menu-items/copy-menu-item/copy-menu-item.component.spec.ts | <reponame>yegobox/kraken
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {CopyMenuItemComponent} from './copy-menu-item.component';
import {StorageTreeControlService} from 'projects/storage/src/lib/storage-tree/storage-tree-control.service';
import {storageTreeControlServiceSpy} from 'pr... |
yegobox/kraken | frontend/projects/components/src/lib/lazy-if.directive.spec.ts | <gh_stars>1-10
import {LazyIfDirective} from './lazy-if.directive';
import {Input, TemplateRef, ViewContainerRef} from '@angular/core';
import {ComponentsModule} from 'projects/components/src/lib/components.module';
import SpyObj = jasmine.SpyObj;
describe('LazyIfDirective', () => {
let directive: LazyIfDirective;
... |
yegobox/kraken | frontend/projects/commons/src/lib/config/error-interceptor.service.spec.ts | import {TestBed} from '@angular/core/testing';
import {ErrorInterceptor} from './error-interceptor.service';
import {HttpErrorResponse, HttpHandler, HttpRequest} from '@angular/common/http';
import {throwError} from 'rxjs';
import {RestServerError} from './rest-server-error';
import {eventBusSpy} from 'projects/event/... |
yegobox/kraken | frontend/projects/runtime/src/lib/entities/host.spec.ts | import {Host} from 'projects/runtime/src/lib/entities/host';
export const testHost: () => Host = () => {
return {id: 'id0', name: 'name0', capacity: {'key': 'value'}, addresses: [{type: 'type', address: 'address'}]};
};
export const testHosts: () => Host[] = () => {
return [
testHost(),
{id: 'id1', name: ... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-watcher.service.ts | <filename>frontend/projects/storage/src/lib/storage-watcher.service.ts<gh_stars>1-10
import {EventEmitter, Injectable, OnDestroy} from '@angular/core';
import {EventBusService} from 'projects/event/src/lib/event-bus.service';
import {NotificationEvent} from 'projects/notification/src/lib/notification-event';
import {No... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-menu/menu-items/delete-menu-item/delete-menu-item.component.ts | <reponame>yegobox/kraken
import {Component, Inject} from '@angular/core';
import {StorageService} from 'projects/storage/src/lib/storage.service';
import {StorageTreeControlService} from 'projects/storage/src/lib/storage-tree/storage-tree-control.service';
import {DELETE_ICON} from 'projects/icon/src/lib/icons';
import... |
yegobox/kraken | frontend/projects/analysis/src/lib/analysis-application-id.service.ts | <reponame>yegobox/kraken<filename>frontend/projects/analysis/src/lib/analysis-application-id.service.ts
import {Injectable} from '@angular/core';
import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.service';
import {ApplicationIdHeaderInterceptor} from 'projects/commons/src/lib/config/appl... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/runtime-host.service.spec.ts | <reponame>yegobox/kraken
import {TestBed} from '@angular/core/testing';
import {RuntimeHostService} from './runtime-host.service';
import {cold} from 'jasmine-marbles';
import {Host} from 'projects/runtime/src/lib/entities/host';
import {HttpTestingController} from '@angular/common/http/testing';
import {CoreTestModul... |
yegobox/kraken | frontend/projects/help/src/lib/highlight/highlight.service.spec.ts | import {fakeAsync, inject, TestBed, tick} from '@angular/core/testing';
import {Overlay} from '@angular/cdk/overlay';
import {HighlightModule} from 'projects/help/src/lib/highlight/highlight.module';
import {HighlightService} from 'projects/help/src/lib/highlight/highlight.service';
export const highlightServiceSpy =... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-log/runtime-log.service.spec.ts | <filename>frontend/projects/runtime/src/lib/runtime-log/runtime-log.service.spec.ts<gh_stars>0
import {TestBed} from '@angular/core/testing';
import {RuntimeLogService} from './runtime-log.service';
import {EventEmitter} from '@angular/core';
import {RuntimeTaskService} from 'projects/runtime/src/lib/runtime-task/runt... |
yegobox/kraken | frontend/projects/storage/src/lib/storage-dialogs/storage-dialogs.module.ts | <gh_stars>1-10
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FileNameDialogComponent} from 'projects/storage/src/lib/storage-dialogs/file-name-dialog/file-name-dialog.component';
import {DeleteFilesDialogComponent} from 'projects/storage/src/lib/storage-dialogs/delete-fil... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/import-har-menu-item/import-har-menu-item.component.spec.ts | import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ImportHarMenuItemComponent} from './import-har-menu-item.component';
import {StorageTreeControlService} from 'projects/storage/src/lib/storage-tree/storage-tree-control.service';
import {storageTreeControlServiceSpy} from 'projects/storage... |
yegobox/kraken | frontend/projects/components/src/lib/components.module.ts | import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {VendorsModule} from 'projects/vendors/src/lib/vendors.module';
import {ToolsModule} from 'projects/tools/src/lib/tools.module';
import {EventModule} from 'projects/event/src/lib/event.module';
import {ColorModule} from 'projec... |
yegobox/kraken | frontend/projects/runtime/src/lib/runtime-host/hosts-selector/hosts-selector.component.ts | <reponame>yegobox/kraken
import {Component, Input, OnInit} from '@angular/core';
import {RuntimeHostService} from 'projects/runtime/src/lib/runtime-host/runtime-host.service';
import {AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms';
import {Host} from 'projects/runtime/src/lib/entities/host';... |
yegobox/kraken | frontend/projects/runtime/src/lib/entities/task.ts | import {ContainerStatus} from 'projects/runtime/src/lib/entities/container-status';
import {TaskType} from 'projects/runtime/src/lib/entities/task-type';
import {Container} from 'projects/runtime/src/lib/entities/container';
export interface Task {
readonly id: string;
readonly startDate: number;
readonly status... |
yegobox/kraken | frontend/projects/administration/src/app/workspace/workspace/workspace.component.ts | <gh_stars>0
import {Component, InjectionToken, Injector, OnInit} from '@angular/core';
import {SideConfiguration} from 'projects/workspaces/src/lib/side-configuration';
import {ComponentPortal, PortalInjector} from '@angular/cdk/portal';
import {IconFa} from 'projects/icon/src/lib/icon-fa';
import {faBell} from '@forta... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation-dialogs/execute-simulation-dialog/execute-simulation-dialog.component.ts | import {Component, Inject, ViewChild} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import {LocalStorageService} from 'projects/tools/src/lib/local-storage.service';
import {TaskType} from 'projects/runtim... |
yegobox/kraken | frontend/projects/gatling/src/app/simulations/simulation-dialogs/import-har-dialog/import-har-dialog.component.spec.ts | <reponame>yegobox/kraken<gh_stars>0
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ImportHarDialogComponent} from 'projects/gatling/src/app/simulations/simulation-dialogs/import-har-dialog/import-har-dialog.component';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dial... |
yegobox/kraken | frontend/projects/tools/src/lib/event-source.service.spec.ts | import {TestBed} from '@angular/core/testing';
import {EventSourceService} from './event-source.service';
import {ToolsModule} from './tools.module';
export const eventSourceSpy = () => {
const spy = jasmine.createSpyObj('EventSource', ['onerror', 'onmessage', 'onopen', 'close']);
spy.readyState = 0;
spy.CONNEC... |
yegobox/kraken | frontend/projects/analysis/src/lib/analysis-configuration.service.spec.ts | <gh_stars>0
import {TestBed} from '@angular/core/testing';
import {AnalysisConfigurationService} from 'projects/analysis/src/lib/analysis-configuration.service';
import {HttpClientTestingModule} from '@angular/common/http/testing';
import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.servi... |
halcyondude/annotations-panel | src/module.ts | ///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" />
import _ from 'lodash';
import {PanelCtrl} from 'app/plugins/sdk';
import moment from 'moment';
import './css/annolist.css';
class AnnoListCtrl extends PanelCtrl {
static templateUrl = 'partials/module.html';
static scrollable = tr... |
dfreire/df0005 | test/browser-tests/index.ts | <gh_stars>0
import add from '../../src/sample';
import TranslationSheets from '../../src/index.ts';
import { expect } from 'chai';
describe('TranslationSheets', () => {
it('should run a simple TypeScript test', () => {
expect(true).to.be.true;
});
it('should be an object', () => {
expect(... |
dfreire/df0005 | src/index.tsx | import ReactDOM from 'react-dom';
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('main')
);
// var horizon = Horizon();
// horizon.onReady(function() {
// document.querySelector('h1').innerHTML = 'App works!'
// });
// horizon.connect();
|
dfreire/df0005 | src/model.ts | <filename>src/model.ts
interface Language {
id: string,
}
interface Board {
id: string,
name: string,
emails: string[],
}
interface Card {
id: string,
boardId: string,
}
interface Translation {
id: string,
cardId: string,
languageId: string,
text: string,
notes: string,
}
|
dfreire/df0005 | config/typings/tsd.d.ts | /// <reference path="assertion-error/assertion-error.d.ts" />
/// <reference path="bluebird/bluebird.d.ts" />
/// <reference path="chai/chai.d.ts" />
/// <reference path="express-serve-static-core/express-serve-static-core.d.ts" />
/// <reference path="express/express.d.ts" />
/// <reference path="gulp/gulp.d.ts" />
//... |
mfine15/vscode-languageclient | lib/utils/processes.d.ts | import * as cp from 'child_process';
import ChildProcess = cp.ChildProcess;
export declare function terminate(process: ChildProcess, cwd?: string): boolean;
|
mfine15/vscode-languageclient | lib/utils/electron.d.ts | <gh_stars>0
import * as cp from 'child_process';
export interface IForkOpts {
cwd?: string;
env?: any;
encoding?: string;
execArgv?: string[];
}
export declare function fork(modulePath: string, args: string[], options: IForkOpts, callback: (error: any, cp: cp.ChildProcess | undefined) => void): void;
|
paullouismas/shifts-manager | src/bootstraps/i18n/index.ts | import Vue from 'vue';
import VueI18n from 'vue-i18n';
import { getUserLocale } from '@/helpers';
import english from './english';
Vue.use(VueI18n);
const translations: VueI18n.LocaleMessages = {
// English
en: english,
};
export default new VueI18n({
locale: getUserLocale(), // Locale from user will be inje... |
paullouismas/shifts-manager | src/store/auth/index.ts | <gh_stars>0
import firebase from 'firebase/app';
import { FirestoreWrapper, getUserLocale } from '@/helpers';
interface SignUp {
displayName: string;
email: string;
password: string;
}
type LogIn = Pick<SignUp, 'email' | 'password'>;
type UserSession = Pick<firebase.User, 'displayName' | 'email' | 'uid'> & {
... |
paullouismas/shifts-manager | src/bootstraps/styles.ts | import Vue from 'vue';
import Buefy from 'buefy';
// import 'bulmaswatch/darkly/_variables.scss';
// import 'bulma';
import 'buefy/dist/buefy.css';
// import 'bulmaswatch/darkly/_overrides.scss';
// import 'bulmaswatch/darkly/bulmaswatch.min.css';
Vue.use(Buefy, {
defaultIconPack: 'fas',
defaultIconComponent: 'fon... |
paullouismas/shifts-manager | src/models/Workplace.ts | <reponame>paullouismas/shifts-manager<filename>src/models/Workplace.ts
import { Entity } from './Entity';
export interface Workplace extends Entity {
/** The workplace's name */
name: string;
/** The workplace's address, if any */
address: string | null;
/** The workplace's description, if any */
descrip... |
paullouismas/shifts-manager | src/main.ts | <filename>src/main.ts
import Vue from 'vue';
// The base app
import App from '@/App.vue';
// Bootstraps scripts
import '@/bootstraps';
import vuetify from '@/bootstraps/vuetify';
import i18n from '@/bootstraps/i18n';
import router from './router';
import store from './store';
Vue.config.productionTip = false;
new ... |
paullouismas/shifts-manager | src/config.ts | <gh_stars>0
export default {
APP_NAME: 'Shifts Manager',
};
|
paullouismas/shifts-manager | src/models/RetrievableEntity.ts | export type RetrievableEntity<E = Record<string, unknown>> = E & {
/** The entity's id */
id: string;
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.