sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
cfe5e7771781fecc6a134e8782ec084b0ca8f6a7067a684a831a59a93eb037f5 | TypeScript | 299 | 12 | import { useEffect } from "react";
import { useFirstMountState } from "./useFirstMountState";
export const useUpdateEffect: typeof useEffect = (effect, deps) => {
const isFirstMount = useFirstMountState();
useEffect(() => {
if (!isFirstMount) {
return effect();
}
}, deps);
};
|
99ad5b3ece8bcedcaf3e28da91947ebe8ccfdfad75a61611b6142afd57320b09 | TypeScript | 300 | 12 | /**
* @file Trr Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import TrajectoryParser from './trajectory-parser';
declare class TrrParser extends TrajectoryParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default TrrParser;
|
ada9df5bcb03fbac47d1488fd4ec1f47d9df4e15d7e40c27ef4578cd47a9a331 | TypeScript | 300 | 12 | /**
* @file Mmtf Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class MmtfParser extends StructureParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default MmtfParser;
|
bcebeeea17f5d0cfcbdd472117c456d672c500f74b211c1819a19623e507a43e | TypeScript | 300 | 12 | /**
* @file Xtc Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import TrajectoryParser from './trajectory-parser';
declare class XtcParser extends TrajectoryParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default XtcParser;
|
d65d78493f9a165fa2e4adc92dc768dd2b490f6268124552ff57032777b1d295 | TypeScript | 300 | 12 | /**
* @file Dcd Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import TrajectoryParser from './trajectory-parser';
declare class DcdParser extends TrajectoryParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default DcdParser;
|
314916d1cde5371e2c36a268b2bfa1b58d3ee53f4af6a46d2994eecd7e45618d | TypeScript | 301 | 12 | import { animate, style, transition, trigger } from "@angular/animations";
export const colorAnimation = trigger('newEvent', [
transition('* => *', [
animate('180ms ease-in', style({
opacity : '1.0',
})),
animate('380ms ease-out', style({
opacity : '0.0',
})),
]),
])
|
417674c00357970a4aa6d4afa7c012523c933b16878ced7bd766a46b566b2784 | TypeScript | 301 | 10 | import { createSelector } from "@ngrx/store"
import { nameSpace } from "./const"
import { Store } from "./store"
const selectStore = state => state[nameSpace] as Store
export const getSelectedSurfaceVariant = createSelector(
selectStore,
({ selectedSurfaceVariant }) => selectedSurfaceVariant
)
|
eb59f44c432fb375fb75f6be1d3ab5f7aebb6bce5d1e5b294e1782642263d277 | TypeScript | 301 | 17 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { SpinnerCmp } from "./spinnerCmp/spinner.component";
@NgModule({
imports: [
CommonModule
],
declarations: [
SpinnerCmp
],
exports: [
SpinnerCmp
]
})
export class SpinnerModule{} |
55aed39ead8abbcc8a0be0f91a9cbbd167f8bea056a0570ff61591f732143786 | TypeScript | 303 | 9 | // This file was automatically generated. Don't edit manually.
// Top level
// Modules
export * as adapter_types_pb from './adapter_types_pb';
export * as common_types_pb from './common_types_pb';
export * as core_types_pb from './core_types_pb';
export * as vscode_types_pb from './vscode_types_pb';
|
0ad4280d3edba55cae1a612be326d31c35be22d3b6f436f06eaa4e5c03349c06 | TypeScript | 304 | 18 | /**
* @file Frames
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export default class Frames {
coordinates = []
boxes = []
times = []
timeOffset = 0
deltaTime = 1
constructor (readonly name: string, readonly path: string) {}
get type () { return 'Frames' }
}
|
672a5a8e0652a9cb620345d44096bd972f6b511931fde6e2eb0c5fe4e6aaffd1 | TypeScript | 304 | 13 | import { Directive, OnDestroy } from "@angular/core";
import { Subject } from "rxjs";
@Directive({
standalone: true
})
export class DestroyDirective implements OnDestroy{
public destroyed$ = new Subject<null>()
ngOnDestroy(): void {
this.destroyed$.next()
this.destroyed$.complete()
}
}
|
eaafd9888f8416ca073acf8f090605e0c6bcf60543c24749e9d8d46797b72414 | TypeScript | 304 | 8 | import {WorkflowEventBindingList} from '../models';
import requests from './requests';
export const EventService = {
listWorkflowEventBindings(namespace: string) {
return requests.get(`api/v1/workflow-event-bindings/${namespace}`).then(res => res.body as WorkflowEventBindingList);
}
};
|
d50fe1824f149c5e8be324e41e3275428c31f95aa58500dbd7a937ec9049eab1 | TypeScript | 305 | 12 | export const bitmaskImageData = {
image: "/public/files/images/0030019819f25b28.jpg",
};
export const bitmaskConfig = `
<View>
<Image name="img" value="$image" smoothing="false" />
<BitmaskLabels name="tag" toName="img">
<Label value="Test" background="orange" />
</BitmaskLabels>
</View>
`;
|
a796c227009c5231ba26c6110379ecabc476e3871df3daaf9a39f3bc047bbda7 | TypeScript | 307 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'parseDoi',
})
export class ParseDoiPipe implements PipeTransform {
public transform(s: string, prefix: string = 'https://doi.org/') {
const hasProtocol = /^https?:\/\//.test(s)
return `${hasProtocol ? '' : prefix}${s}`
}
}
|
e58c46900ace4adcf7d6ef57583c1ab313d3dad948bf4c60b7c6f4c9d09bc97a | TypeScript | 307 | 9 | export { TagAutocomplete } from "./tag-autocomplete";
export { useTagAutocomplete } from "./use-tag-autocomplete";
export type {
TagAutocompleteProps,
TagAutocompleteOption,
TagOption,
NormalizedTagOption,
} from "./types";
export { normalizeOption, getOptionValue, getOptionLabel } from "./types";
|
f9fc99e2820052ae93671ae463682b48131d9d43acf0aacd60d87ef8219a4041 | TypeScript | 308 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'parseAsNumber'
})
export class ParseAsNumberPipe implements PipeTransform{
public transform(input: string | string[]): number | number[]{
if (input instanceof Array) return input.map(v => Number(v))
return Number(input)
}
}
|
6602111c533355096a58513f6ac691f94667e117f3de5d7ac8ed30eb4cec9400 | TypeScript | 309 | 8 | import { Point, SimpleCompoundFeature } from "src/atlasComponents/sapi/sxplrTypes";
export type CFIndex<T extends string|Point=string|Point> = SimpleCompoundFeature<T>['indices'][number]
export function isPoint(val: string|Point): val is Point{
return !!(val as any).spaceId && !!(val as any).loc
}
|
af97c1700a2cd69b59116304097c34745b9ac75b5daa150c3ab4eaf2437e9bca | TypeScript | 309 | 17 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MarkdownDom } from "./markdownCmp/markdown.component";
@NgModule({
imports: [
CommonModule,
],
declarations: [
MarkdownDom
],
exports: [
MarkdownDom
]
})
export class MarkdownModule{}
|
ff5eda7f3579d3ef31e847569debd689cec1c187350bbacf33c67e4405d1abbf | TypeScript | 309 | 12 | /**
* @file Nctraj Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import TrajectoryParser from './trajectory-parser';
declare class NctrajParser extends TrajectoryParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default NctrajParser;
|
12af70557217b4bb8d6ddde1704734d24ffea8c2e9be5291551a13e8c4244f69 | TypeScript | 311 | 4 | import { Color } from "./ngl";
export declare type TypedArray = (Int8Array | Int16Array | Int32Array | Uint8ClampedArray | Uint8Array | Uint16Array | Uint32Array | Float32Array | Float64Array);
export declare type NumberArray = number[] | TypedArray;
export declare type GenericColor = number | string | Color;
|
a74aa382cc7b3c3939172d6c9431aa490e7e2df22bfa3982bb0e22570f4091ec | TypeScript | 311 | 14 | import type { Shape, ShapeConfig } from "konva/lib/Shape";
import type { Stage } from "konva/lib/Stage";
export type WorkingArea = {
width: number;
height: number;
x: number;
y: number;
scale: number;
realWidth: number;
realHeight: number;
};
export type KonvaNode = Shape<ShapeConfig> | Stage;
|
f78d34405d00a1fdb623255a2a89004aa5dbc061cdc34078c2cc6c9e750795d2 | TypeScript | 312 | 18 | export {
actionRemoveAuxMesh,
actionSetAuxMesh,
actionSetAuxMeshes,
} from './actions'
export {
selectorAuxMeshes
} from './selectors'
export {
reducer
} from './store'
export {
IAuxMesh,
INehubaFeature,
} from './type'
export * as selectors from "./selectors"
export * as actions from "./actions" |
5f974556f187a1a31057650dc4c76ecb824dc65cbc52b211bf42ae03afe707f5 | TypeScript | 313 | 11 | /**
* @file Pass Through Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Datasource from './datasource';
declare class PassThroughDatasource extends Datasource {
getUrl(path: string): string;
getExt(path: string): string;
}
export default PassThroughDatasource;
|
bd48d6e710c738bd61c52b9bc526bb6e51f9b3c9044d839008bd2afd3589ad48 | TypeScript | 313 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'doiParserPipe',
})
export class DoiParserPipe implements PipeTransform {
public transform(s: string, prefix: string = 'https://doi.org/') {
const hasProtocol = /^https?:\/\//.test(s)
return `${hasProtocol ? '' : prefix}${s}`
}
}
|
02300f90f0d22fd904763162fc01a6258e1becb6686902e15f6f2b434650c323 | TypeScript | 314 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'addUnitAndJoin',
pure: true
})
export class AddUnitAndJoin implements PipeTransform{
public transform(arr: (string | number)[], unit: string, separator: string = ', '): string {
return arr.map(v => `${v}${unit}`).join(separator)
}
} |
59a59ed0d74d6113d1c7b3fd20bbcb41d9ef64b362517f83e9e619ee362f6c64 | TypeScript | 314 | 14 | /**
* @file Model Store
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Store, { StoreField } from './store';
/**
* Model store
*/
export default class ModelStore extends Store {
chainOffset: Uint32Array;
chainCount: Uint32Array;
get _defaultFields(): StoreField[];
}
|
6a5392f2ec45a84579ddbce2f771437baca2b7f4ea9cb02b4280331bdaf92786 | TypeScript | 314 | 13 | import { Component } from "@angular/core";
@Component({
selector: `strict-local-info`,
template: `
<button mat-icon-button [matTooltip]="tooltip" tabindex="-1">
<i class="fas fa-unlink"></i>
</button>`,
})
export class StrictLocalInfo{
tooltip = "External links are hidden in strict local mode."
}
|
b8b7d6970a09a431c4d4f9a1a739507d381b70cd19984c1eddcad91619185f5d | TypeScript | 314 | 7 | /**
* Re-exports of lodash-compatible string utilities from es-toolkit.
* Uses es-toolkit/compat for exact lodash behavior (e.g. startCase preserves uppercase words).
*/
export { camelCase, capitalize, kebabCase, snakeCase, startCase } from "es-toolkit/compat";
export { pascalCase } from "es-toolkit/string";
|
d2ca756d5cf2c2db52de5c5f99b2d6088b6f94f3c27cf995156a4cbdc0782d42 | TypeScript | 316 | 15 | import { NgModule } from "@angular/core";
import { SapiViewsCoreModule } from "./core";
import { VolumesModule } from "./volumes/volumes.module";
@NgModule({
imports: [
SapiViewsCoreModule,
VolumesModule,
],
exports: [
SapiViewsCoreModule,
VolumesModule,
]
})
export class SapiViewsModule{}
|
21d8558eb788d412172737e5501c80743be1cee23102ea1139c990f9b33ebe15 | TypeScript | 318 | 14 | import { Pipe, PipeTransform } from "@angular/core";
import { TSandsPoint } from "src/util/types";
@Pipe({
name: 'sandsToNum',
pure: true
})
export class SandsToNumPipe implements PipeTransform{
public transform(val: TSandsPoint) {
return {
coords: val.coordinates.map(v => v.value / 1e6)
}
}
}
|
17cbace9b1000d6bf6b16c2ac9617d299370b7845f1ae0c3a75295589abd8f6f | TypeScript | 319 | 10 | // This file was automatically generated. Don't edit manually.
// Top level
// Modules
export * as compiled_pb from './compiled_pb';
export * as list_item_pb from './list_item_pb';
export * as log_pb from './log_pb';
export * as show_data_pb from './show_data_pb';
export * as show_result_pb from './show_result_pb';
|
141702a28b011f394985102a3d14dda34417342f65b5e6b6fda414ecbc4b7984 | TypeScript | 320 | 7 | export const DEFAULT_PANEL_WIDTH = 320;
export const DEFAULT_PANEL_HEIGHT = 300;
export const DEFAULT_PANEL_MAX_WIDTH = 500;
export const DEFAULT_PANEL_MAX_HEIGHT = 500;
export const DEFAULT_PANEL_MIN_HEIGHT = 55;
export const PANEL_HEADER_HEIGHT = 24;
export const PANEL_HEADER_HEIGHT_PADDED = PANEL_HEADER_HEIGHT + 2;
|
c1262bd0782ed8e03736726bdca97cf3b0e73f4cdc534e6f22d368cf146720f3 | TypeScript | 320 | 13 | import { Pipe, PipeTransform } from "@angular/core";
import { TreeNode } from "./const"
@Pipe({
name: 'flatHierarchySpacer',
pure: true
})
export class FlatHierarchySpacer implements PipeTransform{
public transform<T>(inputNode: TreeNode<T>, ..._args: any[]) {
return Array(inputNode.level).fill(null)
}
}
|
17c1ef048d30473db316a5945511a9d18b17c73c1c7519bc885d95fb53cf4a22 | TypeScript | 321 | 13 | /**
* @file Cube Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import VolumeParser from './volume-parser';
declare class CubeParser extends VolumeParser {
get type(): string;
_parse(): void;
getMatrix(): Matrix4;
}
export default CubeParser;... |
5edd2d07c2212e8b979c79670611815eb7a4f61527077280e3b16bee65a4b2d6 | TypeScript | 321 | 6 | export { default as Counter } from "./Counter/Counter";
export { default as Input } from "./Input/Input";
export { default as Label } from "./Label/Label";
export { default as Select } from "./Select/Select";
export { default as TextArea } from "./TextArea/TextArea";
export { default as Toggle } from "./Toggle/Toggle";... |
25f0ef36a548891c11d0b9b074b04b88df1b9eea46e0a54917dd8e7b16ccbabe | TypeScript | 324 | 16 | /**
* @file Surface Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import MeshBuffer from './mesh-buffer'
/**
* Surface buffer. Like a {@link MeshBuffer}, but with `.isSurface` set to `true`.
*/
class SurfaceBuffer extends MeshBuffer {
isSurface = true
}
export default SurfaceBuf... |
4a2b0fb8b1c747347ac546082c37d7b2661278f8e84112827cd5eaffc73d3ff1 | TypeScript | 324 | 13 | /**
* @file Xplor Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import VolumeParser from './volume-parser';
declare class XplorParser extends VolumeParser {
get type(): string;
_parse(): void;
getMatrix(): Matrix4;
}
export default XplorPars... |
c222d9f850c19df3709ebc22aae2cd0fa868632b82d7f9bc1263c0e313bc1246 | TypeScript | 326 | 14 | /**
* FIT-720: Public hook exports for the editor
*/
export {
useAnnotation,
useAnnotationFetcher,
annotationKeys,
ANNOTATION_DETAIL_TASK_SCOPE,
fetchAnnotation,
invalidateAnnotationCache,
invalidateAnnotationCachesForTask,
invalidateTaskAgreementCache,
type AnnotationData,
} from "./useAnnotationQu... |
7355e1bbb5931eb433e5d3cd722c49a16bde67fa781e0a234d6b2d5322b40001 | TypeScript | 328 | 12 | import "@humansignal/ui/src/tailwind.css";
import "./preview.prefix.css";
import "../addons/theme-toggle/preview";
import type { Preview } from "@storybook/react";
const preview: Preview = {
// ...rest of preview
//👇 Enables auto-generated documentation for all stories
tags: ["autodocs"],
};
export default pre... |
91b77344b195396baa54e67109a3b3793f9ca818a1609db9c7a06f0f0abee05b | TypeScript | 328 | 13 | /**
* @file Bond Hash
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import BondStore from './bond-store';
declare class BondHash {
countArray: Uint8Array;
offsetArray: Int32Array;
indexArray: Int32Array;
constructor(bondStore: BondStore, atomCount: number);
}
export default Bo... |
ecb22f3e957c025d38af5598f0bab1b04c2ce2766974f7ccf005375e06dae149 | TypeScript | 329 | 14 | import type { SettingsProperties } from "./types";
export default {
videoDrawOutside: {
description: "Allow drawing outside of video boundaries",
defaultValue: false,
type: "boolean",
},
videoHopSize: {
description: "Video hop size",
defaultValue: 10,
type: "number",
},
} as SettingsPro... |
79d8d272d1ab9be2ea5d7c3a41fb40b726bc4994db94fdf686045300c9b3fe3d | TypeScript | 330 | 17 | /**
* Shared prompt/region types for the interactive-ML primitives. Kept here
* to avoid pulling the MST mixin into non-MST consumers (pure helpers).
*/
export interface PromptPoint {
x: number;
y: number;
positive: boolean;
}
export interface PromptBox {
x: number;
y: number;
width: number;
height: ... |
6adc255026e52c207fe0e534674c83e729a8ef1d61da140e3d105185aa81bbc2 | TypeScript | 331 | 10 | import { Directive, TemplateRef } from "@angular/core";
import { SxplrRegion } from "src/atlasComponents/sapi/sxplrTypes";
@Directive({
selector: 'ng-template[region-template],ng-template[regionTemplate]'
})
export class SapiViewsCoreRichRegionListTemplateDirective{
constructor(public tmplRef: TemplateRef<SxplrRe... |
c2a72001f03db765d8ca85a47522f255a3a9ef1de808be56e74638a2bbf8ccf1 | TypeScript | 333 | 12 | export * from './asset';
export * from './capabilities';
export * from './counts';
export * from './distribution';
export * from './executionInfo';
export * from './facets';
export * from './files';
export * from './lineage';
export * from './overview';
export * from './project';
export * from './search';
export * from... |
fbe541c9ce8f1d835d815dff44de1114502bec24e695fab8136d052e6f96fd4b | TypeScript | 334 | 11 | /*
This is an interface to contain values relevant to the selection menus.
There is a view value that will be displayed in the selection menu for the
user to see, and there is a value that is actually used for the function
to be processed.
*/
export interface DropDownInfo {
value: string;
viewVal... |
cbcb632f5876cd6ee77e8a28457639aea3641b370c1367c9f7026bb768b0b1a4 | TypeScript | 335 | 5 | export { SapiViewsCoreParcellationModule } from "./module"
export { FilterGroupedParcellationPipe } from "./filterGroupedParcellations.pipe"
export { GroupedParcellation } from "./groupedParcellation"
export { ParcTmplDoiPipe } from "./parcTmplDoi.pipe"
export { ParcellationGroupSelectedPipe } from "./parcellationGroup... |
ae3b6ea0009521a612ad205a922f11efc20ab94671310efce4a226fcfa27bd01 | TypeScript | 336 | 5 | export { NehubaGlueCmp } from "./nehubaViewerGlue/nehubaViewerGlue.component"
export { NehubaViewerTouchDirective } from "./nehubaViewerInterface/nehubaViewerTouch.directive"
export { NehubaModule } from "./module"
export { NehubaViewerUnit } from "./nehubaViewer/nehubaViewer.component"
export { NEHUBA_INSTANCE_INJTKN ... |
e457b6172875121f9e31e5a2a1507e2be1f49107272f177265898c8006a4553e | TypeScript | 336 | 16 | import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
/**
* Smart merge class names
*/
export function cn(...inputs: ClassValue[]) {
return clsx(inputs);
}
/**
* Merge class names + merge optimize Tailwind classes
*/
export function cnm(...input: ClassValue[]) {
return twMerg... |
fecd1b66d2395e4593da3ac39c91f17dbefe91ece878e7d3860fc8acd660fa83 | TypeScript | 336 | 13 | /**
* @file Surface Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import MeshBuffer from './mesh-buffer';
/**
* Surface buffer. Like a {@link MeshBuffer}, but with `.isSurface` set to `true`.
*/
declare class SurfaceBuffer extends MeshBuffer {
isSurface: boolean;
}
export default... |
16cc552eeec46279a58abf457f44e3198e5b164f12db7c695aed2bb0458c0165 | TypeScript | 338 | 10 | import { useValueRef } from "@humansignal/core/hooks/useValueRef";
import { useCallback } from "react";
export function useRefCallback<T extends (...args: any[]) => any>(callback: T) {
const ref = useValueRef<T>(callback);
return useCallback((...args: Parameters<T>): ReturnType<T> => {
return ref.current(...a... |
a4499515a63a11cac0f394013988a9ac80351fc2ad4453ab9ecc785a6e399ea8 | TypeScript | 338 | 13 | import { Pipe, PipeTransform } from "@angular/core";
// TODO use getProperty pipe instead
@Pipe({
name: 'getNthElement'
})
export class GetNthElementPipe<T> implements PipeTransform{
public transform(array: T[], idx: number): T{
if (!array[idx]) throw new Error(`[GetNthElementPipe] accessor error`)
return... |
be4c2ac2a539ddf2129905e7c8463ae8f870729a501ed1d1653b2cae35f68f2e | TypeScript | 339 | 7 | export const getProjectHotkeysSettingsPath = (projectId: string | number): string =>
`/user/account/hotkeys?project=${encodeURIComponent(projectId)}`;
export const getProjectIdFromPathname = (pathname: string): number | null => {
const match = pathname.match(/\/projects\/(\d+)(?:\/|$)/);
return match ? Number(ma... |
17bbfedc9fc35ab7c0ebd8037c872808f277d2ce5ec909521e713ae45a84630f | TypeScript | 340 | 14 | import type { ChangeEvent } from "react";
export interface SettingsProperty {
description: string;
defaultValue: any;
type: "boolean" | "number" | "text";
min?: number;
max?: number;
step?: number;
ff?: string;
onChangeEvent?: (e: ChangeEvent) => void;
}
export type SettingsProperties = Record<string,... |
2e7d11fdf6c6e05759cfdfa33bf0142e691288aa1b256fec3edcd0853fac5fda | TypeScript | 340 | 10 | export { ContextMenu } from "./context-menu";
export type { ContextMenuProps } from "./context-menu";
export { useContextMenu, CONTEXT_MENU_KEYS } from "./use-context-menu";
export type {
UseContextMenuOptions,
UseContextMenuReturn,
ContextMenuPosition,
ContextMenuOpenEvent,
ContextMenuTriggerProps,
} from ".... |
c13fa19c597737a5c4c20e682f395a3931aa0cb9aa2ee50902461ebe59d1cf4a | TypeScript | 340 | 8 | import { createSelector } from "@ngrx/store";
import { NEHUBA_VIEWER_FEATURE_KEY } from '../constants'
import { INehubaFeature, IAuxMesh } from "./type";
export const selectorAuxMeshes = createSelector<any, INehubaFeature, IAuxMesh[]>(
state => state[NEHUBA_VIEWER_FEATURE_KEY],
nehubaFeatureStore => nehubaFeatureS... |
f821e0bf59cfd237a72ef2b4ae5e1bc10e33cd6e67f61e8a8112bb95893a1fc5 | TypeScript | 340 | 11 | export type {
Capabilities,
CapabilityTarget,
InteractiveBackend,
InteractiveBinding,
OutputKind,
PromptKind,
} from "./types";
export { fetchCapabilities, fetchInteractiveBackends } from "./api";
export { interactiveCapabilityStore } from "./store";
export { useBindingsForControl, useInteractiveCapabilitie... |
1e3910f53070b2e96a8cacff20c6c9bbb50ad82a0adbc2ce4d294e5ec483597d | TypeScript | 343 | 13 | import type { CSSProperties, ReactNode, FC } from "react";
export interface InlineErrorProps {
minimal?: boolean;
includeValidation?: boolean;
className?: string;
style?: CSSProperties;
children?: ReactNode;
}
declare module "apps/labelstudio/src/components/Error/InlineError" {
export const InlineError: F... |
5ce2d3aef0101804e19f3f7ab267bcb8d7cdbc1cda22fc3681d83d4baa074337 | TypeScript | 343 | 14 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'getFilenamePipe',
})
export class GetFilenamePipe implements PipeTransform {
private regex: RegExp = new RegExp('/([^/]+)$')
public transform(fullname: string): string {
return this.regex.test(fullname)
? this.regex.exec(fullname)[1]
... |
204db3e67d8d5a568f4879a5e15594bf7c11273b8219abcfde44081b6d96b741 | TypeScript | 347 | 18 | import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
const communitySidebar: SidebarsConfig = {
communitySidebar: [
{
type: 'doc',
id: 'index',
label: 'Community',
},
{
type: 'doc',
id: 'usage-tracking',
label: 'Usage Tracking',
},
],
};
export... |
4db7f3fb8b215f95b3e169be761d97be54fcbf389c38be86763bec6d89d88a97 | TypeScript | 347 | 12 | export { DataTable } from "./data-table";
export type { ExtendedDataTableColumnDef } from "./data-table";
export type {
DataTableCells,
DataTableHeaders,
DataTableProps,
DataTableSizes,
DataShape,
HeaderProps,
} from "./data-table";
export { Header } from "./data-table";
export { resolveColumns, createColum... |
4f3db449c2652a192dda6e4d659863fa28b757e8c09236e0a4d222987e8d9045 | TypeScript | 347 | 14 | /**
* @file Mrc Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import VolumeParser from './volume-parser';
declare class MrcParser extends VolumeParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
getMatrix(): Matrix4;
}... |
e5cd2ce2276a39d45c610004bdad89d59a39cfe46a822e028f1cbd4f984a8831 | TypeScript | 347 | 14 | /**
* @file Resname Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
/**
* Color by residue name
*/
declare class ResnameColormaker extends Colormaker {
atomColor(a: AtomProxy): number;
}
export ... |
c3f2f9629520c86e92074c4b5a5fe6ae9bb47624df121a1ccaffc659e1dda73c | TypeScript | 348 | 15 | import { createSelector } from "@ngrx/store";
import { nameSpace } from "./const"
import { UiStore } from "./store"
const selectStore = state => state[nameSpace] as UiStore
export const panelMode = createSelector(
selectStore,
state => state.panelMode
)
export const panelOrder = createSelector(
selectStore,
... |
20832598b450dee01cc5638c0f196c7a58cb760ac7efc260cacd60d263ceaf40 | TypeScript | 349 | 16 | import { Pipe } from "@angular/core";
type TTrackBy<T, O> = (input: T) => O
const defaultTrackBy: TTrackBy<unknown, unknown> = i => i
@Pipe({
name: 'equality',
pure: true
})
export class EqualityPipe<T>{
public transform(c1: T, c2: T, trackBy: TTrackBy<T, unknown> = defaultTrackBy): boolean {
return track... |
bb45ad3eb54bab7287ffb0f1ba4fe6a3441b4b4a6c88935cc1b6c9ec04e20a5d | TypeScript | 349 | 13 | /**
* @file Geometry Group
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Box3, BufferGeometry } from 'three';
declare class GeometryGroup {
geometryList: BufferGeometry[];
boundingBox: Box3;
constructor(geometryList?: BufferGeometry[]);
computeBoundingBox(): void;
}
e... |
7931d1e424233c0feb1b80476b31a72d1a8fbbd74fbdf38e60501e530546048d | TypeScript | 350 | 17 | /**
* @file Queue
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
declare class Queue<T> {
readonly fn: Function;
queue: T[];
pending: boolean;
constructor(fn: Function, argList?: T[]);
private run;
private next;
push(arg: T): void;
kill(): void;
length(): nu... |
aeb9c831b5affa13caeb9eb787797bb240fee5a26d641914e3efc8224cb983fe | TypeScript | 350 | 14 | /**
* @file Dsn6 Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import VolumeParser from './volume-parser';
declare class Dsn6Parser extends VolumeParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
getMatrix(): Matrix4;... |
debc5e6968770d84b3d580ec1d5978906c57aefca234dc98d66bb54421654fc3 | TypeScript | 350 | 10 | type Type = 'ClusterWorkflowTemplate' | 'WorkflowEventBinding' | 'WorkflowTemplate';
export const ID = {
join: (type: Type, namespace: string, name: string) => type + '/' + namespace + '/' + name,
split: (id: string) => ({
type: id.split('/')[0] as Type,
namespace: id.split('/')[1],
nam... |
30e27515cce9fab0798f26f4c1004eb1c229ef03a3a9d45dee8347f2af4f6734 | TypeScript | 351 | 18 | import { Pipe, PipeTransform } from "@angular/core";
interface MetaDisplayName {
meta: {
displayName: string
}
}
@Pipe({
name: 'grpFeatToName',
pure: true
})
export class GroupFeaturesToName implements PipeTransform{
public transform(groupFeats: MetaDisplayName[]): string[] {
return groupFeats.map(... |
35873da1dee2fe117ab7ffdcf50ee3f3d6687172a0aaade1194b9f2d4795977c | TypeScript | 351 | 19 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { ComponentsModule } from "src/components";
import { KGToS } from "./kgtos/kgtos.component";
@NgModule({
imports: [
CommonModule,
ComponentsModule,
],
declarations: [
KGToS
],
exports: [
KGToS
]... |
40b8df5b9d3e193bc796de774ee1381c5e2752ca9695fcc7a6ed66e41ddc2868 | TypeScript | 351 | 13 | /**
* @file Static Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Datasource from './datasource';
declare class StaticDatasource extends Datasource {
baseUrl: string;
constructor(baseUrl?: string);
getUrl(src: string): string;
getExt(src: string): string;
}
ex... |
b00e545ba8cfd13358bd7cde8304e8d782fe0c5de20075a8de039b75fc79afc9 | TypeScript | 353 | 16 | /**
* @file Obj Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import SurfaceParser from './surface-parser';
export interface _OBJLoader {
regexp: {
[k: string]: RegExp;
};
}
declare class ObjParser extends SurfaceParser {
get type(): string;
getLoader(): _OBJLoa... |
8cf75a20e6d75d935a1259ceefe6340badfd64acf90873a9067982b678a371ec | TypeScript | 356 | 13 | import { Pipe, PipeTransform } from "@angular/core"
import { GroupedParcellation } from "./groupedParcellation"
@Pipe({
name: 'isGroupedParcellation',
pure: true
})
export class IsGroupedParcellation implements PipeTransform{
public transform(input: unknown): input is GroupedParcellation {
return input['par... |
9a3b653878f47c6a50537371c7ad36dfda39da3feaafd0ddbef1833f64adc381 | TypeScript | 356 | 13 | /**
* @file Cif Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Paul Pillot <paul.pillot@tandemai.com>
* @private
*/
import StructureParser from './structure-parser';
declare class CifParser extends StructureParser {
get type(): string;
get isBinary(): boolean;
_parse(): Promise... |
1442c39a58acdf081db6fbd350498a2a6f07df693476b8a754a29820291b0afb | TypeScript | 357 | 14 | /**
* @file Worker Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
declare class WorkerRegistry {
activeWorkerCount: number;
private _funcDict;
private _depsDict;
private _blobDict;
add(name: string, func: Function, deps: Function[]): void;
get(name: string): Bl... |
bcb1035fc39fc623bdd2d513dfebe95a8459e5061ef6e4d56b0fb9320329efa7 | TypeScript | 357 | 15 | import { TestBed } from "@angular/core/testing"
import { MockStore, provideMockStore } from "@ngrx/store/testing"
describe('> viewerCmp.component.ts', () => {
let mockStore: MockStore
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
provideMockStore()
]
})
mockStore... |
24c95d67f47a955051b4d0bd788e2c17ac9de6497a23cf97c1be15029c9d46bf | TypeScript | 360 | 18 | import { TemplateRef } from "@angular/core";
export interface IFileInputConfig {
title: string
allowText: boolean
allowFile: boolean
messageTmpl?: TemplateRef<any>
}
export type TFileInput = {
text: { input: string }
file: { files: File[] }
}
export type TFileInputEvent<Evt extends keyof TFileInput> = {
... |
3221948cf6ac9a476b63c8055d59307c071377d43533b871cad5848053d31b8f | TypeScript | 360 | 16 | /**
* @file Frames
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export default class Frames {
readonly name: string;
readonly path: string;
coordinates: never[];
boxes: never[];
times: never[];
timeOffset: number;
deltaTime: number;
constructor(name: string, p... |
36c87d98bc291aeba9c55e05ae1e166605eaa5e7483f16f4ca28553e5528bfb6 | TypeScript | 360 | 15 | /**
* @file Worker Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export declare type FunctionWithDeps = {
__deps?: Function[];
} & Function;
export interface WorkerEvent {
data: {
__name: string;
__postId: string;
};
}
export declare function makeWorkerBlob(f... |
599092fc57ed92ec8c690d246ede35b82503e9a3b64b74e2e1bd3f54642180a5 | TypeScript | 362 | 10 | export const imageToolsConfig = `
<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName="image" />
<Ellipse name="ellipse" toName="image" />
<Polygon name="polygon" toName="image" />
</View>`;
export const image =
"https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/nick-owuor-ast... |
458f8d0ca332fdf2b0e3fc71fa2f35972739af3d7baab8091dffc8cf1122866e | TypeScript | 363 | 18 | import { Pipe, PipeTransform } from "@angular/core";
interface MetaHasTotal {
meta: {
total: number
}
}
@Pipe({
name: 'grpFeatTally',
pure: true
})
export class GroupFeatureTallyPipe implements PipeTransform{
public transform(groupFeats: MetaHasTotal[]): number {
return groupFeats.map(f => f.meta.t... |
6edf8ea8b5f841c56365ff3811e309df4cdd1f9f5108593904fdae109e1161ca | TypeScript | 367 | 10 | /**
* Side-effect entry for app bootstrap.
*
* Import this module *before* `./app/App` in main.tsx so ESM evaluates it
* (and calls bootstrap) before App's top-level `render()`. Module-body
* `effectiveHotkeys.bootstrap()` after App imports is too late — imports hoist.
*/
import { effectiveHotkeys } from "./effec... |
9d0eddf295decebd19a1a72b87f272671c45d31a7644a2eb04cd45e75bfeac48 | TypeScript | 367 | 17 | import { NgModule } from "@angular/core";
import { ResizeObserverDirective } from "./windowResize.directive";
import { ResizeObserverService } from "./windowResize.service";
@NgModule({
declarations: [
ResizeObserverDirective
],
exports: [
ResizeObserverDirective
],
providers: [
ResizeObserverSer... |
578197137d5c6d262407deeba2f3319222e4a2bd6d602b714eedb06c59d1a528 | TypeScript | 369 | 16 | /**
* @file Uniform Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker from './colormaker';
/**
* Color by uniform color
*/
declare class UniformColormaker extends Colormaker {
atomColor(): number;
bondColor(): number;
valueColor(): number;
volumeColo... |
f3d8c44da5aba2b7689a81c6afb06a47dd4ac813c4c161b03bc6886721584a70 | TypeScript | 371 | 18 | /**
* @file Pqr Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ParserRegistry } from '../globals'
import PdbParser from './pdb-parser'
// http://www.poissonboltzmann.org/docs/file-format-info/
class PqrParser extends PdbParser {
get type () { return 'pqr' }
}
ParserRegist... |
73bb4d945463417359f6587a27359b13d836c2deb1cde19db00a715a1c2312f4 | TypeScript | 372 | 15 | import {Icon} from '../../../shared/components/icon';
export const icons: {[key: string]: Icon} = {
Artifact: 'file-alt',
Collapsed: 'ellipsis-h',
Error: 'times',
Failed: 'times',
Omitted: 'forward',
Pending: 'clock',
Running: 'circle-notch',
Skipped: 'forward',
Succeeded: 'check',
... |
a6d9801f3c57e63e7f53dbf33f6bdd71463b7ab32fd622fcd5abc782592e4ad4 | TypeScript | 372 | 7 | import type { ResourceType } from './asset';
/** Project-wide per-resource-type asset tallies. A source omits types it has no
* count for; consumers fall back to a client-side derive for absent types.
* Mirrors dbt-docs-server's `GET /api/v1/nodes/counts` (where `unit_test` folds
* into `test`). */
export type A... |
1475b9bcc91bcd86553336d25198425e9f2b6c64fe92d4611fc1263515a153f5 | TypeScript | 374 | 13 | import { Pipe, PipeTransform } from "@angular/core";
import { SxplrParcellation, SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes";
@Pipe({
name: 'parcTmplDoiPipe',
pure: true
})
export class ParcTmplDoiPipe implements PipeTransform {
public transform(_parc: SxplrParcellation|SxplrTemplate): string[] {... |
6e505b9e778310a44d2554eecf3e36f25d4fb892537519f9000412427f351bcb | TypeScript | 374 | 16 | import { Component } from "@angular/core";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { default: HOWTOCITE } = require('!!raw-loader!common/howToCite.md')
@Component({
selector: 'how-to-cite',
templateUrl: './howToCite.template.html',
styleUrls: [
'./howToCite.style.css'
]
})
ex... |
622e8e055ec3aa52290f218138cac84e0fe4f20d98e6bdaee2ed2d4664aebd46 | TypeScript | 375 | 9 | import {EventSourceTypes} from '../shared/models/event-source';
import {TriggerTypes} from '../shared/models/sensor';
export const genres = (() => {
const v: {[label: string]: boolean} = {sensor: true, conditions: true, workflow: true, collapsed: true};
EventSourceTypes.forEach(x => (v[x] = true));
Trigger... |
31ad0d5f800c7dc17dbc84dac7596817a42c609e3253d20018135958e0fcf264 | TypeScript | 376 | 16 | import { createContext } from "react";
import type { TimelineContextValue } from "./Types";
export const TimelineContext = createContext<TimelineContextValue>({
position: 0,
length: 0,
regions: [],
step: 10,
playing: false,
settings: {},
visibleWidth: 0,
seekOffset: 0,
data: undefined,
});
export co... |
e6f3c1ea3a4466b6cc5ff3f14d68b9ddb439f63f233649549269efd819277f64 | TypeScript | 376 | 15 | import { Pipe, PipeTransform } from "@angular/core";
import { CFIndex } from "./util"
@Pipe({
name: 'indexToStr',
pure: true
})
export class IndexToStrPipe implements PipeTransform{
public transform(value: CFIndex['index']): string {
if (typeof value === "string") {
return value
}
return `Point... |
05a57b048a087f9f2d59a7e1fdfe19316363eff623d7d18417d15d58e08e43e1 | TypeScript | 377 | 13 | export const simpleConfig = `
<View>
<Image name="img" value="$image"/>
<RectangleLabels name="tag" toName="img">
<Label value="Label 1" background="purple"/>
</RectangleLabels>
</View>
`;
export const simpleImageData = {
image:
"https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/ni... |
201d0ef0355c3356d47e1a0c278d77ceac14dc7275d08f29b3bc86d9a61a7b34 | TypeScript | 378 | 15 | import { Pipe, PipeTransform, SecurityContext } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
@Pipe({
name : 'safeHtml',
})
export class SafeHtmlPipe implements PipeTransform {
constructor(private ds: DomSanitizer){
}
public transform(html: string): SafeHtml {
... |
422cbe81c7669e0237acf5abc52e662a9873277eae12e65570b6f3d494199142 | TypeScript | 379 | 14 | import { Component, Input } from '@angular/core';
@Component({
selector: 'sxplr-side-panel',
templateUrl: './side-panel.component.html',
styleUrls: ['./side-panel.component.scss']
})
export class SidePanelComponent {
@Input('sxplr-side-panel-card-color')
cardColor: string = `rgb(200, 200, 200)`
@Input('sx... |
5903c79abc06699f1bff4eb673638e30ee3aa9646ab7cb160085e365c92df40e | TypeScript | 380 | 12 | /**
* @file Component Collection
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Component from './component';
import Collection from './collection';
declare class ComponentCollection extends Collection<Component> {
addRepresentation(name: string, params: any): this;
autoView(dur... |
ca73881d1cb9747c387f31a41c3fd26a20bbb7f341c10eb470345041c94055f3 | TypeScript | 380 | 19 | import { Directive, TemplateRef } from '@angular/core';
import { SlServiceService } from './sl-service.service';
@Directive({
selector: '[sl-spotlight]',
exportAs: 'sl-spotlight'
})
export class SlSpotlightDirective {
constructor(
private slService: SlServiceService
) {
}
showBackdrop(tmpl?: Tem... |
e914061a9ed180a8a71abd7722fe01795262d3397ef7d4298053b83802a25431 | TypeScript | 380 | 22 | interface Env {
PLATFORM: 'nodejs' | 'browser' | 'unknown';
PRODUCTION: boolean;
DEV_FILE_MODE: boolean;
SERVICE?: string;
VERSION?: string;
}
const browser = (): Env => {
return {
PLATFORM: 'browser',
PRODUCTION: true,
DEV_FILE_MODE: false,
};
};
export function getEnv(): Env {
return bro... |
644cae918636d0ec4234634b1f1dff9872418224799c186dae775af8697d9898 | TypeScript | 381 | 18 | import { Injectable } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { MainState, userPreference } from "src/state";
@Injectable({
providedIn: "root"
})
export class ExperimentalService {
showExperimentalFlag$ = this.store.pipe(
select(userPreference.selectors.showExperimental)
... |
df5620ad9894755606fde982be5738ea20ccfca77fb3c601dd755367dfccbea0 | TypeScript | 382 | 18 | import { Pipe, PipeTransform } from "@angular/core";
import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
@Pipe({
name: 'safeResource'
})
export class SafeResourcePipe implements PipeTransform{
constructor(
private ds: DomSanitizer
){
}
transform(input: string): SafeResourceUrl{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.