sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
9e884aec23d117ed14b72c1542960a162899125ddfd0f9c09304e4635cf64c8b | TypeScript | 3,492 | 82 | import { beforeEach, describe, expect, it, vi } from "vitest";
import Vue from "vue";
import VueRouter from "vue-router";
import { getGalaxyInstance } from "@/app";
import LoginRoutes from "./login-routes";
vi.mock("@/app");
Vue.use(VueRouter);
const LANDING_PATH = "/tool_landings/1234-5678?public=true";
function... |
0036d9f216ac2ca2a3b677dbb41734a7233f4dee0b876db20062b237055a5183 | TypeScript | 3,501 | 106 | import { faFile, faFolder } from "@fortawesome/free-regular-svg-icons";
import { faCodeBranch, faPencilAlt } from "@fortawesome/free-solid-svg-icons";
import type { IconDefinition } from "font-awesome-6";
export interface WorkflowInput {
id?: string; // unique ID. defaults to module ID
moduleId: string;
ti... |
9e9a83f55ff4876204af44f3dd3e158ceb98042ed5b1211873081f52d375c169 | TypeScript | 3,519 | 105 | import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { beforeEach, describe, expect, it } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import paramResponse from "./parameters-response.json... |
0321e58453aea8a26c78f4a52ee9d51a1f22ffa1f0e5bd3d2dca1de186cc5944 | TypeScript | 3,520 | 96 | import { LabelStudio, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import { FF_DEV_3391 } from "../../../../src/utils/feature-flags";
import { ratingConfig, ratingResult, textData } from "../../data/view_all/readonly";
beforeEach(() => {
LabelStudio.addFeatureFlagsOnPageLoad({
[FF_DEV_3391]: true,
... |
11eb6445058bc227d43eaa954a06ba59fb180e7eb3d7a20a0f330b456f363974 | TypeScript | 3,538 | 86 | import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { ComponentOptions } from "vue";
import { getDatatypesMapper } from "@/components/Datatypes";
import { getToolPredictions } fro... |
b2345eb14f8686c2e0f3ae3f4b2127d16aa553c3f8cec61617ecdf6407c2baa3 | TypeScript | 3,560 | 113 | import { faUpload } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed, ref } from "vue";
import { errorMessageAsString } from "@/utils/simple-error";
import HiddenWorkbookUploadInput from "@/components/Collections/wizard/HiddenWorkbookUploadInp... |
d11a8e002fec61966b664ea554c17db06fe109708a8a7e216b19f68d457c3457 | TypeScript | 3,563 | 97 | import { mount, type Wrapper } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
import type { UpgradeMessage } from "./modules/utilities";
import StateUpgradeModal from "./StateUpgradeModal.vue";
cons... |
5afd8e8d666fb5d1876c0072854f527741d2dc76d6928794dd69591148a48b10 | TypeScript | 3,580 | 88 | /**
* Fixing "Auto Detect" tool undo functionality and bugs with skipNextUndoState.
* @link https://app.launchdarkly.com/default/production/features/fflag_fix_front_dev_1284_auto_detect_undo_281022_short
*/
export const FF_DEV_1284 = "fflag_fix_front_dev_1284_auto_detect_undo_281022_short";
export const FF_DEV_1442... |
eae4997e6e742b8ef55c1e8eb91ac12b13fad42d87a9a32de5dfeef67fe98915 | TypeScript | 3,583 | 96 | import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { SINGULAR_DATA_URI, SINGULAR_FILE_URI, SINGULAR_LIST_URI } from "./testData/uriData";
import { type DataUri, type DataUriCollectionElement, isDataUriCollectionElemen... |
dd65c78dd689caff013d1a4fa5593edc9a970cba41c28feafe6af921de84a436 | TypeScript | 3,592 | 115 | import { defineStore } from "pinia";
import { computed, del, ref, set } from "vue";
import { usePersistentRef } from "@/composables/persistentRef";
import { ensureDefined } from "@/utils/assertions";
import { getShortToolId } from "@/utils/tool";
import { match } from "@/utils/utils";
import type { Step } from "./wor... |
12b18bd04f55765a87a5ce75087ab4eb70deec394687ec2ce5ed211d5fd66729 | TypeScript | 3,596 | 132 | // Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import { SerializedAnnotationConflictData, SerializedQualityConflictData } from './server-response-types';
import { ObjectType } from '../enums';
export enum QualityConflictType {
EXTRA = 'extra_annotation',
MISMATCHING = 'mismatching_lab... |
74084e90a81e45cf5af5417dd85f8c679d982bd7b063b2cdf72f68948ec2090e | TypeScript | 3,617 | 116 | import { faCopy, faEye, faFire, faTrash } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import type { HDASummary } from "@/api";
import { copyDataset, deleteDataset } from "@/api/datasets";
import type { TableAction } from "@/components/Common/GTable.types";
import { useConfirmDialog }... |
ff55816c61e216e3d908d86530381192db5e5f5da38d8704feb9ba4f8dbc67ba | TypeScript | 3,626 | 101 | import { type MutableRefObject, useCallback, useEffect, useRef } from "react";
import type { VideoRef } from "../VideoCanvas";
type UseLoopRangeProps = {
loopFrameRange?: boolean;
selectedFrameRange?: { start: number; end: number };
framerate: number;
onRedrawRequest?: () => void;
videoRef: MutableRefObject<... |
f66c1c36e418f7a316773fcb67315e29d1608e7bee5299fd62301fb2fd081784 | TypeScript | 3,691 | 136 | import { faEye, faPlus } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { GalaxyApi } from "@/api";
import { GRID_LABELS } from "@/components/Page/constants";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import { rethrowSimple ... |
6004a2f92ac28a5a8abb71049488426292b4fb123fa832b0f7472b74cb74f0be | TypeScript | 3,711 | 117 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { nextTick } from "vue";
import VueRouter from "vue-router";
import type { BreadcrumbItem } from "@/components/Common/index";
... |
cb77de5362bec67e28f0996bcf938f67cc28fbcf8b7e8e72ad8bd6ea714018fd | TypeScript | 3,715 | 98 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerM... |
8afb8a840bebafe752f5a58de76cc6bb0673d119fb1521f162837517ea6ecba4 | TypeScript | 3,717 | 116 | import type { InvocationJobsSummary, StepJobSummary } from "@/api/invocations";
import { ERROR_STATES, NON_TERMINAL_STATES, TERMINAL_STATES } from "@/api/jobs";
export { ERROR_STATES, NON_TERMINAL_STATES, TERMINAL_STATES } from "@/api/jobs";
export const POPULATED_STATE_FAILED = "failed";
export const INVOCATION_MSG... |
5967d60e0c96e05a65d5c28bcef857e5e4a21437b19cf38c632c082f16097f0f | TypeScript | 3,742 | 112 | import type { PostJobAction, Step, Steps } from "@/stores/workflowStepStore";
import Utils from "@/utils/utils";
class UntypedParameterReference {
stepId: number;
constructor(parameter: UntypedParameter, step: Step) {
parameter.references.push(this);
this.stepId = step.id;
}
}
class ToolI... |
7c21eb3197231a1549f937a689e326675f0058c5baa4030300997c19e609101c | TypeScript | 3,770 | 102 | import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
const { server, http } = useServerMock();
const DATATYPES = [
{
extension: "bed",
description... |
73fddb1bcde94bbeeecc6b9fef49931ffc15f92401ff3c332b43e328cfc566af | TypeScript | 3,786 | 152 | import type { PluginStatus } from "@/api/configTemplates";
import type { FileSourceTemplateSummary } from "@/api/fileSources";
import type { UserConcreteObjectStore } from "@/components/ObjectStore/Instances/types";
import type { ObjectStoreTemplateSummary } from "@/components/ObjectStore/Templates/types";
export cons... |
ddbe11949d42891475885bcf80e9db080150e3e9556548bb228c03bb857fe5f6 | TypeScript | 3,843 | 124 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { format, parseISO } from "date-fns";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from... |
a302128eafb5bed8095760e92ecfa390058e23c7bdf098ca52f45494b0585de5 | TypeScript | 3,847 | 73 | // Library build of @humansignal/ui for design-sync (claude.ai/design).
//
// The package ships TS source only (package.json main: src/index.ts), so this
// compiles it into a dist the converter can bundle. It reuses the reference
// storybook's own `viteFinal` (aliases, svgr, CSS-module scoped names, the
// lsf- PostC... |
19a400928a059eaf77c432102cc6aacf8cc1900a21535d58bc804c55417b1c90 | TypeScript | 3,855 | 103 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/... |
0ce8d290e22cee9902f986942ba8558121f8fde7d108f66faf79c7ae103fd77d | TypeScript | 3,876 | 118 | /**
* Unified API client for all Galaxy Pages (history-attached and standalone).
* Uses the generated typed client against the /api/pages endpoints.
*/
import { type components, GalaxyApi } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
// --- Types (generated from the backend Page/PageRevision... |
d023f9a0fa1e9f5d0d83d76c7dc05d0d1ff8320c6dbadc35e38a56d71611de57 | TypeScript | 3,899 | 106 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it } from "vitest";
import { ref } from "vue";
import { useConnectionStore } from "@/stores/workflowConnectionStore";
import { type NewStep, useWorkflowStepStore } from "@/stores/workflowStepStore";
import type { Connection } f... |
841ad717cbdc74ec4d52b1bf97b6e275e75da3d35fd33f4e407e73720f456dd6 | TypeScript | 3,921 | 114 | import { createPopper, type Placement } from "@popperjs/core";
import { onMounted, onUnmounted, type Ref, ref, watch } from "vue";
import {
DEFAULT_TOOLTIP_HOVER_DELAY_MS,
INTERACTIVE_POPOVER_CLOSE_DELAY_MS,
useDelayedAction,
} from "@/utils/tooltipTiming";
export type Trigger = "click" | "hover" | "none"... |
9a3efcc043fc520c574880c71ac19f80a043848edd9459731007c7f8e40ec143 | TypeScript | 3,924 | 127 | /**
* Shared SVG path generation utilities for graph edge rendering.
*
* Two rendering strategies:
* - curveBasisPath: smooth bezier curves via d3 curveBasis (used by workflow editor)
* - orthogonalPath: straight segments with arc-rounded bends (used for ELK-routed graphs)
*
* Both accept point arrays and return... |
01e305eaa3d94a66d78aa75525c52759b5e1cc0aea8920b11cd8ebe18a7da275 | TypeScript | 3,979 | 124 | import { afterEach, beforeEach, describe, expect, it, mock } from "bun:test";
import { sameOriginFetch } from "../same-origin-fetch";
describe("sameOriginFetch", () => {
const originalFetch = globalThis.fetch;
let lastInput: RequestInfo | URL | undefined;
let lastInit: RequestInit | undefined;
beforeEach(() =... |
e51cb80efd0ae879253a6051f90f33c59fceab872df54f566eec5cff32e9b6f9 | TypeScript | 3,985 | 117 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { type CleanableItem, CleanableSummary, type CleanupOperation, CleanupResult } from "./model";
import CleanupO... |
07195e362f3c2a8bfd8cccb8e2cefbd9ff6c943b8c42ca8972193e596f9da221 | TypeScript | 3,991 | 115 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue, suppressBootstrapVueWarnings } from "@tests/vitest/helpers";
import type { Mock } from "@vitest/spy";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
... |
0ea2d13fc9ec7edb375067beb2a5c537a127e5b31a0f42b7803fbb9488eec476 | TypeScript | 4,007 | 114 | import { GalaxyApi, type SampleSheetColumnDefinition, type SampleSheetColumnDefinitions } from "@/api";
import { createWorkbook, createWorkbookForCollection, type SampleSheetCollectionType } from "@/api/datasetCollections";
import { stripExtension } from "@/components/Collections/common/stripExtension";
import type { P... |
7fdbf80b20188055fadd3c2aa91f842c41f25042615eff089b3b84dc70dee099 | TypeScript | 4,027 | 116 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { Hist... |
1623d55144fa33ea6899be69cbbcc02566bc42182501679a7b75bbc82b89c690 | TypeScript | 4,051 | 110 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref, unref } from "vue";
import type { RegisteredUser } from "@/api";
import type { WorkflowSummary } from "@/api/workflows";
import type { CardAction } from "@/components/Common/GCard.types";
i... |
eaac7028c8938f2529a686b149489f4d2b64a16f5fb2c812f3b7ce5819df4136 | TypeScript | 4,065 | 111 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks... |
d04193acf61028c077bffebb2cdc3374ba028ad2851fb5008a277a4a91b7baee | TypeScript | 4,072 | 112 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick, ref } from "vue";
import { testDatatypesMapper } from "@/components/Datatypes/test_... |
626975814464fb488fb8e680977ad55bd31ff4f7d23ce6417a4e0a4e1b4cf9dc | TypeScript | 4,103 | 94 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useHist... |
06f371231a201bc744de46ce2f83a766e108b8c627b1beda2453a2146395e258 | TypeScript | 4,140 | 96 | /**
* Tests for alignElements — side placements must return document coordinates (like every other alignment),
* since the aligned element is portalled to `body` with `position: absolute`.
*/
import { alignElements } from "./dom";
type Rect = { top: number; left: number; width: number; height: number };
const wit... |
6ec2c03075fe877646f731b5e45412f1b0ae55bea3da044098d94f4fec649636 | TypeScript | 4,146 | 101 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import DefaultBox from "./DefaultBox.vue";
const loca... |
bd1eeb5030fe87e676bf0df6d69f6a28587a2f536d8197f1ebfb57e93bb2e6ac | TypeScript | 4,177 | 103 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { type CleanableItem, CleanupResult } from "./model";
import CleanupResultDialog from "./CleanupResultDialog.vue";
const loca... |
aa3b215a0a374e8a71beb02ef7640a795340f5367311304b442764fbf08ff07c | TypeScript | 4,179 | 121 | import "@tests/vitest/mockHelpPopovers";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/a... |
79bf407f7607075f713031869a5ad42c500adb4213fe84268a9b706eb3444c28 | TypeScript | 4,216 | 116 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, suppressLucideVue2Deprecation } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import typ... |
4ed531d6c1cd96a743587a9dc10f2d071e8853ad491186f85eb5c6c0680c9515 | TypeScript | 4,235 | 118 | /** Thrown when the browser aborts a request (e.g. page navigation, component unmount). */
export class RequestAbortedError extends Error {
constructor() {
super("Request aborted");
this.name = "RequestAbortedError";
}
}
export function errorMessageAsString(e: any, defaultMessage = "Request fai... |
29f31867fa7e50a426e0762091e8e697bbb9be51c57eda24f2680ff578bfbfc4 | TypeScript | 4,315 | 103 | import { describe, expect, it, vi } from "vitest";
import { dedupeInFlight, memoizeUntilRejected } from "./sharedPromise";
/** A promise whose settlement the test controls. */
function deferred<T>() {
let resolve!: (value: T) => void;
let reject!: (error: unknown) => void;
const promise = new Promise<T>((... |
f6626211de6167f6d764ffbb402e67ff6fbe8df48bff0027e02a7c9fc03d82d9 | TypeScript | 4,331 | 112 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import VueRouter from "vue-router";
import GButton from "./GButton.vue";
const localVue = getLocalVue(true);
localVue.use(VueRouter);
function mountGButton(props: object) {
... |
6b028461af7003ba212b02f95abfc336848abb9c021a2eff5ec5da0e0b5f08c7 | TypeScript | 4,357 | 100 | import { mount } from "@vue/test-utils";
import { beforeEach, describe, expect, test, vi } from "vitest";
import { defineComponent, nextTick } from "vue";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
// The directive is registered globally by the test setup, with sanitizeHtml
// replaced by a pass-throug... |
9c0758a4f770fe6930aa8020f5ec652615b837f597521a27482cbfe7c84222b1 | TypeScript | 4,368 | 102 | import { getLocalVue, suppressBootstrapVueWarnings } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { isDate } from "date-fns";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import Multis... |
3165d23434a3b6850962c00bee5151cf68ea818bb1daa2037bab9a672491fd34 | TypeScript | 4,369 | 127 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http, HttpResponse } from "msw";
import { setActivePinia } from "pinia";
import { afterEach, beforeEac... |
1576d7041a686fef40a23c06fab3996dc05825a47ed5a95bf411aa3d0c45f51f | TypeScript | 4,419 | 130 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, shallowMount } from "@vue/test-utils";
import { zoomIdentity } from "d3-zoom";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, des... |
ac0566cec3d1fc729764d7132c89445f0dbd546f7bfe8536abb4b4e28eee28cb | TypeScript | 4,449 | 159 | import Vue, { h, reactive } from "vue";
import type { DataOption } from "@/components/Form/Elements/FormData/types";
import type {
DatasetUploadMethod,
UploadedDataset,
UploadModalConfig,
UploadModalResolvers,
UploadModalResult,
} from "@/components/Panels/Upload/uploadModalTypes";
import UploadMe... |
70f468c6db510d566e84895fbb8021d081fc456c1b8021f346e5197d50e0df36 | TypeScript | 4,473 | 132 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { ROOT_COMPONENT } from "@/utils/navigation/s... |
0621435bb29b6dc709a3485d06a1038c9b180e2576918994ea1cad9aa6052ac5 | TypeScript | 4,524 | 116 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, RouterLinkStub, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type Vue from "vue... |
5837a5504469916e363813c698b75a54072e392ae1ad88f8e64f010d9e9846fa | TypeScript | 4,528 | 167 | import type { components } from "@/api/schema";
import { rethrowSimple } from "@/utils/simple-error";
import { GalaxyApi } from "./client";
export type Creator = components["schemas"]["Person"] | components["schemas"]["CreatorOrganization"];
export type RefactorRequestAction = components["schemas"]["RefactorRequest"]... |
8d120d0b8d14c1316ee9e6d818abac681952c1c65847d705db0355eef49e7c8d | TypeScript | 4,560 | 115 | import type { components } from "@/api/schema";
import { ApiError, rethrowSimpleWithStatus } from "@/utils/simple-error";
import { GalaxyApi } from "./client";
import { RETRY_ON_429_HEADER } from "./client/rateLimiter";
export type JobDestinationParams = components["schemas"]["JobDestinationParams"];
export type Show... |
1b46f46bb1ddcf8ae4372044c39b31b70aa4541b559dab7c7add884de40644f2 | TypeScript | 4,590 | 121 | import { faAws, faDropbox, faGoogleDrive, faHubspot } from "@fortawesome/free-brands-svg-icons";
import { faCloud, faFolderTree, faGlobe, faNetworkWired, type IconDefinition } from "font-awesome-6";
import type { components } from "@/api/schema";
import { contains } from "@/utils/filtering";
export type FileSourceTem... |
e4608952c252734848d013831e53710f4b97bbb679ce0cc20b31f18f5975237e | TypeScript | 4,594 | 107 | import { suppressExpectedErrorMessages } from "@tests/vitest/helpers";
import flushPromises from "flush-promises";
import { http, HttpResponse } from "msw";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/ap... |
28fe641425cbdf6ec76406efef45f8895577fdc593a2f4cfb08b09421fd08e0a | TypeScript | 4,620 | 133 | import { computed, type Ref, ref, unref, watch } from "vue";
import type { CollectionElementIdentifiers, CreateNewCollectionPayload, HistoryItemSummary } from "@/api";
import type RuleCollectionBuilder from "@/components/RuleCollectionBuilder.vue";
import STATES from "@/utils/datasetStates";
import localize from "@/ut... |
feb7b93d63109b01a233197456602494cf4becf3665603ee7e0828f894df663b | TypeScript | 4,647 | 137 | import { onMounted, readonly, ref } from "vue";
import type { BrowsableFilesSourcePlugin, FilterFileSourcesOptions } from "@/api/remoteFiles";
import { useFileSourcesStore } from "@/stores/fileSourcesStore";
import { USER_FILE_PREFIX } from "@/utils/url";
/**
* Composable for accessing and working with file sources.... |
95ac32edf7974e92f66f0bba2c1260804b31a58e5d1548da4fa38ee8ee491ba4 | TypeScript | 4,664 | 116 | import { defineStore } from "pinia";
import { computed, ref, set } from "vue";
import { GalaxyApi } from "@/api";
import type { StoredWorkflowDetailed } from "@/api/workflows";
import { getWorkflowFull } from "@/components/Workflow/workflows.services";
import { dedupeInFlight } from "@/utils/sharedPromise";
export co... |
23c5b3d496ca685ed09517c62ad8803e7a18564c542a7c2c7e954d74b74d7223 | TypeScript | 4,674 | 127 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import type { HDADetailed } from "@/a... |
aea0b65492f0913b57c20bd208c78d503dae29bae3165b344b91f287dad54ca7 | TypeScript | 4,704 | 122 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { reactive, ref } from "vue";
import {
getUploadMethod,
uploadMethodRegistry,
useAllUploadMethods,
useFilteredUploadMethods,
} from "./uploadMethodRegistry";
// The advancedMode ref is declared before the vi.mock call so both the mo... |
1eb873c1fee4d16a7b672db1c44ec3ca65102a0f7febd7ee1a9a568c6466db68 | TypeScript | 4,712 | 114 | import { suppressDebugConsole } from "@tests/vitest/helpers";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { useShortTermStorageMonitor } from "@/composables/shortTermStorageMonitor";
import type {... |
3c76367c513fb8457112ce5c6e0498c95088b6e594c8344db834c4a4fd84f6b9 | TypeScript | 4,720 | 114 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { type CleanableItem, CleanableSummary, type CleanupOperation, CleanupResult } from "./model";
import ReviewClea... |
c139a36b000a5bec7582106833825d1615df123130442eb7c958f107e99407c6 | TypeScript | 4,727 | 141 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import type { Pinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { ref... |
4cf8307dc1be87ff6929163f308d1325e913c8abdeefbca1d2f67f9715c0da9c | TypeScript | 4,737 | 138 | import { type MaybeRefOrGetter, toValue } from "@vueuse/core";
import { computed, del, type Ref, ref, set, unref } from "vue";
import { useRetryGate } from "@/composables/retryGate";
import { LastQueue } from "@/utils/lastQueue";
/**
* Parameters for fetching an item from the server.
*
* Minimally, this should inc... |
0c59aee446261daf49ebeccb0704a17737d0871c761e7db19f399f62104c6617 | TypeScript | 4,792 | 136 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, suppressDebugConsole } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest... |
7bd9e1d749b875ca35a6d5b04530b44040169ff17a11a83866508aee184017a9 | TypeScript | 4,803 | 155 | import { faEdit, faPlus, faTrash, faTrashRestore } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import axios from "axios";
import { GalaxyApi } from "@/api";
import Filtering, { contains, equals, toBool, type ValidFilter } from "@/utils/filtering";
import _l from "@/utils/local... |
64747da6fa50d5db92de463103926b6a68cd3d6e76805c817f9e4fd36412a365 | TypeScript | 4,834 | 93 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { setupMockHistoryBreadcrumbs } from "@tests/vitest/mockHistoryBreadcrumbs";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, ... |
4e1e0149d4c46ef2097720051be89469f0302cdc5bf5398946fa4420b48f74ee | TypeScript | 4,875 | 128 | import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMoc... |
b2ca641e4c966d019925639ccbea6986c584580b45e7aac4f7e010f440c87a8d | TypeScript | 4,900 | 177 | import { type AnyUser, GalaxyApi, toAnyUser } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
export type FavoriteObjectTypeValue = "tools" | "tags" | "edam_operations" | "edam_topics";
export interface FavoriteOrderEntry {
object_type: FavoriteObjectTypeValue;
object_id: string;
}
export... |
d65326f5bfcc53a05e373ded0687a400e21415937b5ff2fc063ab727fde5097a | TypeScript | 4,902 | 99 | import fs from "node:fs";
import path from "node:path";
import { describe, expect, test } from "bun:test";
import { loadManifest, registryPath, renderRegistry, skillPath } from "../../../tools/ds-manifest/load";
import { extractSkillSection, renderSkillSection } from "../../../tools/ds-manifest/render-skill";
import { ... |
ccda0f44a97222cdeb0ef8c15310293e7ef50be9173aedc128d5b15ad0339115 | TypeScript | 4,915 | 165 | import { LabelStudio, ImageView, Taxonomy, ToolBar, Modals } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleMIGData,
TAXONOMY_REQUIRED_WARNING,
perRegionRegionsResult,
perItemMIGTaxonomyConfig,
perItemTaxonomyResult,
requiredPerItemMIGTaxonomyConfig,
} from "../../../data/control_tags/per-ite... |
5a893c52f837e879f7a55b9fa3a28deb1ed32d32092d00222a2d227d859b813f | TypeScript | 4,924 | 135 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue, suppressBootstrapVueWarnings } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
i... |
ee3460f9d0151d53c1c200f97e316925432eaba82762d59c647c324011ed62e9 | TypeScript | 4,931 | 145 | import type { UploadStateTrackingApi } from "@/components/Panels/Upload/uploadState";
import type { UploadCollectionConfig } from "./collectionTypes";
import type { LibraryDatasetUploadItem, NewUploadItem } from "./uploadItemTypes";
/**
* Represents an upload item being tracked through its lifecycle.
* @template T ... |
622a8083500630191346c4d4b84d65c2615acfa79c1fce64f781b5c26f19ad58 | TypeScript | 4,941 | 133 | import { faLayerGroup, faList, faSpinner, faUser, faUsers } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, type Ref } from "vue";
import { useRouter } from "vue-router/composables";
import type { WorkflowSummary } from "@/api/workflows";
import type { CardBadge } from... |
5edd91fc5659d56f5a1aba933b994d74d851a603064e6cc085709592357476a6 | TypeScript | 4,994 | 159 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import type { UploadCollectionConfig } from "@/composables/upload/collectionTypes";
import type { NewUploadItem } from "@/composables/upload/uploadItemTypes";
import type { ApiUploadItem } from "@/utils/upload";
export type UploadMethod =
| ... |
3dbe2b3e9e0f109c1bd068b58b30b21a7a1b2a3c3faa09adb2492f2225f5f57b | TypeScript | 5,019 | 147 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import ... |
358861581fbe26dcaae09e4dade2bb4f3c39bcab49c33589c0a0b6756a49ceec | TypeScript | 5,035 | 134 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock ... |
ff6cfd56be709792362cc77740282e7587f0502a93d474387a67dbcfe443af31 | TypeScript | 5,042 | 152 | import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { createTestStep } from "@/components/Workflow/Editor/test_fixtures";
import {
getCombinedStepInputs,
type InputTerminalSource,
type NewStep,
type StepInputConnection,
... |
09659c4d204bc1b9f6f93cdda1cc5a405cb4b7e1352709344dccd3107f7c35a5 | TypeScript | 5,043 | 147 | import { faStar as farStar } from "@fortawesome/free-regular-svg-icons";
import { faExternalLinkAlt, faLink, faStar as fasStar, faWrench } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import { computed, ref } from "vue";
import { getFullAppUrl } from "@/app/utils";
import type { CardA... |
7623ddc1a32a037e3269b51c08fb2fca765359eedcd0f070459e9c8f58164cd9 | TypeScript | 5,043 | 118 | /**
* `sameOriginFetch` wraps the global `fetch` and adds the `X-Requested-With: XMLHttpRequest`
* header to any "unsafe" request (POST/PUT/PATCH/DELETE) whose target URL resolves to the
* same origin as the current page.
*
* This module is the single definition of that header: `APIProxy.getDefaultHeaders`
* (ser... |
1a54ed325dc079ebb4c99f49d72b426e0506fe9a0b3ea44e02214b57deb8be6b | TypeScript | 5,103 | 140 | import * as Sentry from "@sentry/browser";
import * as ReactSentry from "@sentry/react";
import type { RouterHistory } from "@sentry/react/build/types/reactrouter";
import { Route } from "react-router-dom";
import { isDefined } from "../utils/helpers";
const SENTRY_DSN = APP_SETTINGS.sentry_dsn;
const SENTRY_ENV = APP... |
6c85a77898241a1fd9773fe916ef06f7d81d48923b0cf1db2fdd5ce3dc26c234 | TypeScript | 5,109 | 155 | import { readonly, ref } from "vue";
export type WatchResourceHandler<T = unknown> = (app?: T) => Promise<void>;
export interface WatchOptions {
/**
* Polling interval in milliseconds when the app is active (in the current tab).
*/
shortPollingInterval?: number;
/**
* Polling interval in mi... |
bda10ebdfa75136c72d48e6252ac121c725bde769d0bb0e2e190f2d82e62ce31 | TypeScript | 5,109 | 114 | import { createTestingPinia } from "@pinia/testing";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref, shallowRef } from "vue";
import { useSpecialWorkflowActivities, useWorkflowActivities } from "./activities";
import type { LintData } from "./useLint... |
4668606b19b2fea075b1bedbe5808d94441167d96e0b09cd74ae3a1093498a43 | TypeScript | 5,124 | 153 | import {
AudioView,
Choices,
LabelStudio,
Textarea,
Number,
ImageView,
Paragraphs,
Labels,
TimeSeries,
DateTime,
VideoView,
Table,
Taxonomy,
Ranker,
Collapse,
} from "@humansignal/frontend-test/helpers/LSF";
import { RichText } from "@humansignal/frontend-test/helpers/LSF/RichText";
import... |
c2f02ef86e38f6d87298d59525ff4962d50d1a44d847452cb051cce7fabafd37 | TypeScript | 5,124 | 119 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type Wrapper } from "@vue/test-utils";
import { PiniaVuePlugin, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { tes... |
0808981edb60c70774e595d7ccb97e03eeb0c93a86d9f1e895165a095bd232d7 | TypeScript | 5,153 | 150 | import { getFakeRegisteredUser } from "@tests/test-data";
import { expectConfigurationRequest, getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { describe, expect, it, vi } from "vitest";
import ... |
e785a9e10d17786efaff09709eb3b84f92459de83268e4158a39819a33dc37d7 | TypeScript | 5,175 | 158 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import {... |
0ce51ae5a9e69ed7c5f42923ffb29171beccec80f47615d7e47d2aa813ed5022 | TypeScript | 5,240 | 145 | /**
* Centralized user-facing strings for pages/notebooks/reports.
*
* Backend uses "page" everywhere — that's an implementation detail.
* Frontend terminology:
* - "Galaxy Notebook" — history-attached pages (the working document)
* - "Report" — standalone pages (the publishable artifact)
*
* Chang... |
93851e320f632d79f5dcaeb507e537aa73bc5d7d2fd5e45e4cc1ffcec3a73262 | TypeScript | 5,318 | 129 | /**
* Fetches history items from the API and stores them by `historyId`.
* A computed getter returns items for the given `historyId` and
* `filterText`.
*/
import { reverse } from "lodash";
import { defineStore } from "pinia";
import { computed, ref, set } from "vue";
import type { HistoryItemSummary } from "@/ap... |
ddce1ecb411bfd5716cd60915b61f522e7f46fc5640a72671afaf91970501c38 | TypeScript | 5,323 | 130 | import { describe, expect, it } from "vitest";
import type { Tool } from "@/stores/toolStore";
import { extractBaseToolId, filterLatestToolVersions } from "./tool-version";
describe("Tool Version Utilities", () => {
describe("extractBaseToolId", () => {
it("should handle simple tool IDs without version",... |
e6c47c80d33e5e994592fbd2d33251dd19273e8a928d5292403062d88d740f5d | TypeScript | 5,366 | 159 | import tags from "@humansignal/core/lib/utils/schema/tags.json";
import { EditorState } from "@codemirror/state";
import { EditorView, keymap } from "@codemirror/view";
import { undo, undoDepth } from "@codemirror/commands";
import { buildCm6Extensions, createPlaceholderContent } from "./cm5-compat-shim";
describe("bu... |
8328d17cada917aaa210c2ee40ab4d977e75a2f53e42a8e176c6361697e01e3e | TypeScript | 5,419 | 191 | import type { FC, MutableRefObject, ReactNode } from "react";
import { DEFAULT_PANEL_HEIGHT, DEFAULT_PANEL_MAX_HEIGHT, DEFAULT_PANEL_WIDTH } from "../constants";
export type TabProps = {
name: string;
rootRef: MutableRefObject<HTMLDivElement | undefined>;
tabTitle: string;
panelKey: string;
tabIndex: number;... |
4aa9fc65991847863b056daa56918ae8203824f6a3f0fe7a467f168743571932 | TypeScript | 5,449 | 166 | import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { OK_PLUGIN_STATUS } from "@/components/ConfigTemplat... |
c4d644e2d3a47ee6b5672e5cf3ebce7298864f8b11eb53bfcbd4fbefaf6c97dd | TypeScript | 5,485 | 168 | import {
type CollectionElementIdentifiers,
type CollectionEntry,
type CreateNewCollectionPayload,
type DCESummary,
GalaxyApi,
type HDCADetailed,
type HDCASummary,
isHDCA,
} from "@/api";
import type { components } from "@/api/schema";
import { apiErrorFromResponse, type GalaxyApiResult,... |
4b2a19c488de5ff3378e8c00d7d7ed1b1996c1dc64f6cf4ee5a21e9b7d4ad51e | TypeScript | 5,493 | 164 | import axios, { type AxiosResponse } from "axios";
import type { AnyHistory, HistorySummaryExtended } from "@/api";
import { GalaxyApi } from "@/api";
import { prependPath } from "@/utils/redirect";
import { apiErrorFromResponse, type GalaxyApiResult, rethrowSimple } from "@/utils/simple-error";
/**
* Generic json g... |
02f097709d88e3282a4bafc8dafcd365704195ed5740f9e0ae15a89bd9a386fb | TypeScript | 5,544 | 149 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { setupMockHistoryBreadcrumbs } from "@tests/vitest/mockHistoryBreadcrumbs";
import { shallowMount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, des... |
ff41563da751f4f87a99deb93a45e1e9d0a5f925e29d84d3b2d16528168b47cf | TypeScript | 5,592 | 158 | import reportDefault from "@/components/Workflow/Editor/reportDefault";
import { useWorkflowCommentStore, type WorkflowComment } from "@/stores/workflowEditorCommentStore";
import { useWorkflowStateStore } from "@/stores/workflowEditorStateStore";
import { useWorkflowEditorToolbarStore } from "@/stores/workflowEditorTo... |
9510cd3202e3daca4e65f7690ffb5c77c2e29f905b55e519be71abefb12a701d | TypeScript | 5,600 | 165 | import { faFile, faMagic, faSitemap, faWrench } from "@fortawesome/free-solid-svg-icons";
import { computed } from "vue";
import { useRoute } from "vue-router/composables";
import { PAGE_LABELS } from "@/components/Page/constants";
import { useToolStore } from "@/stores/toolStore";
export type ActiveContext =
| {... |
295a232c19eadf6736ad7d0f9689969947a5b8e00e0fd0c08f7a8ad5fafafcd1 | TypeScript | 5,627 | 126 | import { faExclamation, faSpinner, type IconDefinition } from "@fortawesome/free-solid-svg-icons";
import { computed, type Ref } from "vue";
import { type HDASummary, type HistoryItemSummary, isHDA } from "@/api";
import type { ComponentColor } from "@/components/BaseComponents/componentVariants";
import type { Upload... |
854099e82ea468a741e34a184acb52209fdda071ef179a658282b03da86d825d | TypeScript | 5,654 | 178 | import { type MaybeRefOrGetter, useEventListener } from "@vueuse/core";
import { computed, type Ref, ref, unref } from "vue";
export type FileDropHandler = (event: DragEvent) => void;
export interface FileDropOptions {
/** Element which files should be dropped on. */
dropZone: MaybeRefOrGetter<EventTarget | n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.