sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
bd565767f9c76ea43ca4ad7358a64b70f65b1b3f9811dde76db2691f1fd73978 | TypeScript | 3,123 | 73 | import { createTestingPinia } from "@pinia/testing";
import flushPromises from "flush-promises";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useDownloadTracker } from "./downloadTracker";
import { useHashedUserId } from "./hashedUserIdFromUserStore";
... |
375d23aecae609f843c0693b4877aad57242837d95841c1da8b807a48160b050 | TypeScript | 3,131 | 100 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import apiResponse from... |
4400654970ae687b2d3017a94b35438a58ea0360127ffc7fdd90a09b06cebe7b | TypeScript | 3,139 | 98 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { Toast } from "@/composables/toast";
import ty... |
4f41e40101eac1eb4dbd069f2069943540a96193022f8503e4f51dc3737c16c4 | TypeScript | 3,139 | 58 | // Vitest test for Citation component
import { describe, expect, it } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { getCitations } from "./services";
const { server, http } = useServerMock();
const mockCitationResponseJson = [
{
format: "bibtex",
... |
1d91be2b7a46ee7b65603ca373913ccde9d5220ff81f7c3f700e69d578330852 | TypeScript | 3,143 | 79 | import { createTestingPinia } from "@pinia/testing";
import { getFakeRegisteredUser } from "@tests/test-data";
import { getLocalVue } from "@tests/vitest/helpers";
import { setupMockConfig } from "@tests/vitest/mockConfig";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { de... |
7a2b6321c9dae761d4dd7c98606d6a566686d627365802037c8320900f8c2cc6 | TypeScript | 3,156 | 77 | import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, type Pinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { defineComponent, ref } from "vue";
import { DatatypesMapperModel } from "@/components/Datatypes/m... |
defa57cecc12f49fdfc4921747b5bafa3e6c15f8122944152f4c0c083294acf0 | TypeScript | 3,168 | 79 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it } from "vitest";
import { getTerminalId, useConnectionStore } from "@/stores/workflowConnectionStore";
import { type NewStep, useWorkflowStepStore } from "@/stores/workflowStepStore";
import type { Connection, InputTerminal,... |
e98a915c33e73f7843a5595814b9675a5e74cd8f2f21ce3627ae91dc0c42ab7f | TypeScript | 3,169 | 76 | import { computed, type Ref } from "vue";
import { useDatasetCollectionStore } from "@/stores/datasetCollectionStore";
import { useDatasetStore } from "@/stores/datasetStore";
import { errorMessageAsString } from "@/utils/simple-error";
/**
* Reactive lookup of the job that produced a given dataset (HDA) or collecti... |
1447088ea2fd73c825b1cbb7c55b1d4864bf1a98a3719302215bf497c5d4dc50 | TypeScript | 3,173 | 155 | {
"edges": [
{
"p": 0.22222222222222227,
"t": 9,
"s": 2
},
{
"p": 0.5,
"t": 8,
"s": 4
},
{
"p": 0.25,
"t": 7,
"s": 1
},
{
"p": 0.37499999999... |
258cd22a291965cfc4312418173f512dc76c7ce63352d0f9b451523dd5c10089 | TypeScript | 3,174 | 80 | import { getFakeRegisteredUser } from "@tests/test-data";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { useServerMock } from "@/api/client/__mocks__";
import type { Work... |
5c9871d235f3e811cab80bc309f1f1fd52b8473060cc64b1b7540c731bb9eaa0 | TypeScript | 3,180 | 80 | 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, setActivePinia } from "pinia";
import { afterEach, describe, expect, it, vi } from "vitest";
import t... |
5dab0f79e4d8eb571584b6e9a8b3b88e3b88db163e817f4b3665a48f794d8266 | TypeScript | 3,181 | 93 | import { getFakeRegisteredUser } from "@tests/test-data";
import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
im... |
71fb187b6c1073442366522fca7bd2e12358cbf9f67a5fcd7eb3d83f9f19f2f4 | TypeScript | 3,183 | 89 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import ResetPassword from "./ResetPassword.vue";
const loc... |
97c675365818711aa0c36526396157c9b7c9223ac340b1a224ec2bb6946d2c20 | TypeScript | 3,183 | 72 | /**
* Composable for "open in window-manager frame when active, else navigate inline".
*
* The window-manager-aware navigation pattern recurs across components
* (HistoryCounter, HistoryPageView, PageEditorView, ContentItem, etc.):
*
* 1. Check ``Galaxy?.frame?.active``.
* 2. When active: push a *framed* URL (ty... |
ef1fbc22a8f6c1bd4a18c614a46cf56b59afedea8468d4af08a1bc90870ae7b6 | TypeScript | 3,192 | 88 | import { getLocalVue } from "@tests/vitest/helpers";
import { DOMWrapper, mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { WorkflowSummary } from "@/api/workflows";
import { updateWorkflow } from "@/compo... |
f6fdbaecc29169d0f91bfa20e02aeddfa3a028ef22a4a589e6d946512e46fdbc | TypeScript | 3,195 | 91 | import { faFileImport, faGlobe, faShieldAlt } from "@fortawesome/free-solid-svg-icons";
import { computed, type Ref } from "vue";
import type { WorkflowSummary } from "@/api/workflows";
import type { CardIndicator } from "@/components/Common/GCard.types";
import { useUserStore } from "@/stores/userStore";
import { cop... |
d02b462c7a8c0de5a399d77112775ab6c430dffb9703e29baf04829045d26f17 | TypeScript | 3,207 | 109 | import { describe, expect, it } from "vitest";
import type { HistoryDetailed, HistorySummary, MessageException } from "@/api";
import { GalaxyApi } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
const TEST_HISTORY_SUMMARY: HistorySummary = {
model_class: "History",
id: "test",
name:... |
eff9d1e920db812727c0f40566ff690869629807f8994d04b2b1a3ce79b89aec | TypeScript | 3,218 | 67 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import CollectionTypeCards from "./CollectionTypeCards.vue";
const localVue = getLocalVue();
function mountWithValue(value?: string) {
return mount(Collect... |
55078444dc57e3d81f7036256abddc2ceeeb20e4a8a59496e9465b530fede520 | TypeScript | 3,228 | 104 | import { describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import type { TaskMonitor } from "@/composables/genericTaskMonitor";
import {
type MonitoringData,
type MonitoringRequest,
usePersistentProgressTaskMonitor,
} from "@/composables/persistentProgressMonitor";
// Mocks for dependen... |
6b77bd61e56b8cd576b0ba5daca2431ac2159573d46747dd6e337699b6cab558 | TypeScript | 3,228 | 74 | import type { HistoryItemSummary } from "@/api";
import { Toast } from "@/composables/toast";
import localize from "@/utils/localization";
/** `13: sample.fastq` - how every creator names a dataset in a notification. */
function describeElement(element: HistoryItemSummary): string {
return `${element.hid}: ${eleme... |
c207c2604d5c39f6a9c097073da93dfd1410e9e8b86577c86f116c73e6fb022a | TypeScript | 3,229 | 85 | 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 { fetchCollectionDetails } from "@/api/datasetCollections";
import type { HDCADetailed } from "@/api/index.js";... |
2eccb085c562930b66d9327c296f729d29948ffb4daea21673983ec29ddd3058 | TypeScript | 3,238 | 75 | import { flushPromises, mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import GFormInput from "./components/Form/GFormInput.vue";
import GFormLabel from "./components/Form/GFormLabel.vue";
import GButton from "./components/GButton.vue";
import GCollapse from "./components/GCollapse.vue"... |
39ba1aab54b268113fea1b74c8055bcd7926f9dad284e1f022eb9f90654e22d3 | TypeScript | 3,238 | 87 | import { describe, expect, it } from "vitest";
import { computed, ref } from "vue";
import { usePagination } from "./pagination";
describe("usePagination", () => {
it("should paginate items with default settings", () => {
const items = ref([1, 2, 3, 4, 5]);
const { paginatedItems, currentPage, ite... |
0eb489678f5ec1eeab00109b976a4b0cb2ac6437f16d941d1475de26b4344eed | TypeScript | 3,245 | 103 | import { defineStore } from "pinia";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import { isTerminalRunState, type StorageOperationRunSummary, type TrackedStorageRun } from "@/utils/storageOperations";
const ACTIVE_RUN_TTL_MS = 24 * 60 * 60 * 1000;
export type StorageRun = TrackedStorageRun... |
10b561442747567ddcddeace8fab4c05d29f0e0c2b9ca304bb0b22ae4452fda0 | TypeScript | 3,254 | 94 | import { type components, GalaxyApi, type ModelStoreFormat, type ObjectExportTaskResponse } from "@/api";
import { type ExportRecord, ExportRecordModel } from "@/components/Common/models/exportRecordModel";
import { DEFAULT_EXPORT_PARAMS } from "@/composables/shortTermStorage";
import { rethrowSimple } from "@/utils/si... |
4941bc3dc2a12c3b0195236ddb8cf16c14305da6decf529c26ff10ef81f05bef | TypeScript | 3,258 | 85 | import { ref } from "vue";
import { ApiError, isRetryableApiError, MAX_RETRIES, RETRY_BACKOFF_CAP_MS, retryBackoffMs } from "@/utils/simple-error";
function retryAfterMsOf(error: Error): number | undefined {
return error instanceof ApiError ? error.retryAfterMs : undefined;
}
/**
* Per-id retry bookkeeping for ... |
7f95cc78c9fd1338fd5601e6e2685cbc640c02e7782dda6b9dbccc35e55dbaef | TypeScript | 3,265 | 94 | import { computed } from "vue";
import type { HistoryItemSummary } from "@/api";
export function stripExtension(filename_: string): string {
let filename = filename_;
let strippedSecondaryExtension = false;
const secondaryExtensions = [".gz", ".bz2", ".tgz", ".crai", ".bai"];
const hasSecondaryExtens... |
510ee5726e0a0ee52fbe98783ff5d3c708840e9bbd2eb685a17f734511348636 | TypeScript | 3,268 | 93 | import { emittedArg, getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { beforeEach, describe, expect, it } from "vitest";
import ExportForm from "./ExportForm.vue";
import FilesInput from "@/components/FilesDialog/FilesInput.vue";
const localVue = getLocalVue(true);
describ... |
79e04483c7629ee880c1eaa10d7305c26de6d68effdcb1091828d019c9d07ab2 | TypeScript | 3,269 | 86 | import { defineStore } from "pinia";
import { ref } from "vue";
import { GalaxyApi, type HDASummary } from "@/api";
import { HistoryFilters } from "@/components/History/HistoryFilters";
import { filtersToQueryValues } from "@/components/History/model/queries";
import { errorMessageAsString } from "@/utils/simple-error... |
a11ed2decd2471ea4fe3dc1fe2635ec26b529af8c25d9b35b01b543bc60de7c5 | TypeScript | 3,269 | 80 | /**
* Retries GET/HEAD responses that the browser served from a cache entry
* poisoned by a failover page.
*
* A failover page answering every path with a cacheable ``200 text/html``
* (nginx ``try_files ... /index.html`` without ``Cache-Control``) gets cached
* under whatever URL the client requested during the ... |
2ca69f25e01094d40196e4e5fd1857a93f7d7d53535a6960dcec189ac95a232f | TypeScript | 3,302 | 89 | import { afterEach, describe, expect, it, vi } from "vitest";
import { nextTabbableAfter, tabbableElements } from "./focusOrder";
function render(html: string) {
document.body.innerHTML = html;
}
function byId(id: string) {
return document.getElementById(id)!;
}
afterEach(() => {
document.body.innerHTML... |
51c57c186bfa0d649b5e5dcd9e22be00d6580aadde6c613bc0d50b5a9b7fa9b4 | TypeScript | 3,323 | 93 | import { faMagic, faRobot } from "@fortawesome/free-solid-svg-icons";
import { describe, expect, it } from "vitest";
import { formatModelName, getAgentIcon, getAgentLabel, getAgentResponseOrEmpty } from "./agentTypes";
describe("agentTypes", () => {
describe("getAgentIcon", () => {
it("returns correct ico... |
3739f32050606dfac3718f9a05641b7f71abe470fcacb9cc50b9c518538aed86 | TypeScript | 3,327 | 155 | {
"edges": [
{
"p": 0.22222222222222227,
"t": 9,
"s": 2
},
{
"p": 0.5,
"t": 8,
"s": 4
},
{
"p": 0.25,
"t": 7,
"s": 1
},
{
... |
297589a02bbe35c7d9118e0ff3170213fa60f57c4e47ce7f74f705ef4977ff0b | TypeScript | 3,342 | 78 | import { rethrowSimple } from "@/utils/simple-error";
import { GalaxyApi } from "./client";
import type { components } from "./schema";
export type WorkflowInvocationElementView = components["schemas"]["WorkflowInvocationElementView"];
export type WorkflowInvocationCollectionView = components["schemas"]["WorkflowInvo... |
61c09b1d20dd3b6e188e9a0e851ff90f50a882c530f74b661a4f78d07009a8fb | TypeScript | 3,358 | 117 | /**
* The Uri types here are based on `DataOrCollectionRequest` defined in
* `lib/galaxy/tool_util_models/parameters.py`.
*/
import type { FieldDict, SampleSheetColumnDefinition } from "@/api";
/**
* Options fetched per page. Mirrors ``DEFAULT_OPTIONS_PAGE_SIZE`` in
* ``galaxy.tools.parameters.pagination``, which... |
b619304c5c1097e60eb3cf54ce050c345b5ebdbe0ee62e2ce004e4b19c95e9ab | TypeScript | 3,376 | 86 | import MockDate from "timezone-mock";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import {
formatGalaxyPrettyDateString,
galaxyTimeToDate,
localizeUTCPretty,
relativeUpdatedLabel,
shortDateLabel,
} from "./dates";
describe("dates.ts", () => {
beforeEach(() => {
... |
859b99b26138cca09c2db25bee300033ba0e27e8e59599516bbb4d3c8dcbb340 | TypeScript | 3,385 | 109 | import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { loadVisualizations, type VisualizationSummary } from "./visualizations";
const { server, http } = useServerMock();
function mockVisualization(id: string, title: string): VisualizationSummary {
return ... |
43cd1bd604a6f19e8bc202e9e43745e91c6158870bb735cc2f7d2cce66bba09b | TypeScript | 3,401 | 91 | /**
* Vue Router Compatibility Adapter
*
* Provides both Vue Router 3 (default export, VueRouter constructor) and
* Vue Router 4 (named exports, createRouter) APIs for test compatibility.
*/
// Import the package's Node entry by path; the "vue-router" alias would otherwise resolve back here
// @ts-ignore
import * ... |
6d9d31022cd1fcc9ce32d5454d38b630a2753e23c9a5eb670596bf2bf9f4dc8b | TypeScript | 3,406 | 81 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { getDatatypesMapper } from "@/components/Datatypes";
import { getToolPredic... |
1f522baffdad3a362322d5a41bc4c4f2ec03102207bd408bbd78892ad2bc4969 | TypeScript | 3,413 | 118 | import { describe, it, expect, vi, beforeEach } from "vitest";
import { type HistorySummary } from "./api-types";
// Set up mock responses
const mockHistories: HistorySummary[] = [
{
id: "1",
name: "Test History 1",
deleted: false,
purged: false,
archived: false,
tag... |
0ea5893f44a8255eefbb8a27fb882c9002cfef582b65f74561fbcdbb3316a77a | TypeScript | 3,416 | 89 | import { computed, type Ref, ref } from "vue";
import { referencedObjects } from "@/components/Markdown/parse";
interface ObjectVueRefs {
referencedJobIds: Ref<string[]>;
referencedHistoryDatasetIds: Ref<string[]>;
referencedHistoryDatasetCollectionIds: Ref<string[]>;
referencedWorkflowIds: Ref<string... |
b389b50d5141b43254fb4e2f92845babbad1621c6eace14ae9872a6099fe3b60 | TypeScript | 3,433 | 87 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { GalaxyApi } from "@/api/client";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
import { REQUEST_ID_HEADER } from "@/api/staleCacheRetry";
const { server, http } = useServerMock();
const HTML = "<!doctype html><... |
cf9acb308f78098b1b65440c7cee78d5f86d05ac57aa06b19af630c38b533dc9 | TypeScript | 3,437 | 103 | import { useWorkflowStores } from "@/composables/workflowStores";
import { AxisAlignedBoundingBox, type WorkflowTransform } from "@/utils/geometry";
export interface BoundingBoxBounds {
minX: number;
minY: number;
}
export interface CapturedState {
transform: WorkflowTransform;
bounds: BoundingBoxBoun... |
a25a6c67b75ba9de1c59d996ec4964ea85a58b28544837ac41ed07ea1e01987f | TypeScript | 3,453 | 66 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import type { HDASummary } from "@/api";
import FixedIdentifierDatasetCollectionElementView from "./FixedIdentifierDatasetCollectionElementView.vue";
import ListDatasetCollectio... |
6b8c080886768c1bc7834b501f4bf4bfdda5880c15f9e7a187fbfaf46d1b102b | TypeScript | 3,458 | 106 | 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 { beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock ... |
cc3e4b18a491dbf695ddd5d02a3c624309eac6357e142af7cdd6815b09efef39 | TypeScript | 3,462 | 104 | import type { components } from "@/api";
import { GalaxyApi } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
export type LibrarySummary = components["schemas"]["LibrarySummary"];
export type LibraryFolderDetails = components["schemas"]["LibraryFolderDetails"];
export type LibraryFolderContentsInde... |
43be6ca5e2b14a8585c7c6ee33bc2240c2059cf9084c9120c95e97ec3db0c2b3 | TypeScript | 3,463 | 66 | /** The provider skeleton histories and workflows share: an own list with recents, plus listings per scope variant */
import type { CommandPaletteProvider, PaletteItem, ScopedSection } from "../types";
import { PALETTE_LIMITS } from "./limits";
import { recentPaletteItems, type RecentRows } from "./recent";
import { ro... |
e39153ca23ac2b512ca9e9661bb63e8c3ffd5aabd9972adcac8f5bade4f7a74b | TypeScript | 3,468 | 75 | import { mount } from "@vue/test-utils";
import { describe, expect, it } from "vitest";
import CustomToolEditorWorkspace from "./CustomToolEditorWorkspace.vue";
import DraggableSeparator from "@/components/Common/DraggableSeparator.vue";
describe("CustomToolEditorWorkspace", () => {
function mountWorkspace() {
... |
62be0d54cbf5bc66a43ca2ea7403a46c57bb229225890ad08e11471344306507 | TypeScript | 3,472 | 76 | /**
* DOMPurify profiles shared by the `v-sanitize-html` directive and any code that
* needs a cleaned HTML string directly.
*
* Profiles:
* default -- DOMPurify's HTML profile (no SVG/MathML), without <style>
* or form controls.
* links -- default, plus `target` is kept; a target that open... |
8e94a305d489ef22d5db50f0c44189f90a783b8509155bc6f64ce3835ffcee68 | TypeScript | 3,486 | 99 | import { faBurn, faGlobe, faTrash } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import type { Ref } from "vue";
import { userOwnsHistory } from "@/api";
import type { AnyHistoryEntry, PublishedHistory } from "@/api/histories";
import { isPublishedHistory } from "@/api/histories";
imp... |
139dcc036e54f6e66019913bf384ce629e9054365b9f0b925ff18b1d1cc7b612 | TypeScript | 3,487 | 102 | import type { ColDef } from "ag-grid-community";
import { ref, watch } from "vue";
import type { DCESummary, SampleSheetColumnDefinition } from "@/api";
import type { SampleSheetColumnValueT } from "@/api/datasetCollections";
export const MODEL_OBJECT = Symbol("sample sheet model object");
export type UriRow = Recor... |
ea8f7be3cb4ea01d4fc8382ea8e440f1ad5a032464366a81f57ea6b27066b076 | TypeScript | 3,487 | 112 | 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 Webhook from "./Webhook.vue";
interface WebhookData {
id: string;
type: string[];
weight: number;
... |
16620a1e326b0c5d8d85460e520ef2c96e6d9ba1dd89beafd05470bc43628ba8 | TypeScript | 3,488 | 118 | import { createTestingPinia } from "@pinia/testing";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { defineComponent } from "vue";
import { useServerMock } from "@/api/client/__mocks__";
import type { Br... |
c5766199ae8bf8852123a003ff9f300844c47475725299e1508ef1135b216a85 | TypeScript | 3,501 | 102 | import { afterEach, describe, expect, it, vi } from "vitest";
import { effectScope, nextTick, ref } from "vue";
import { useFloatingPosition } from "./floatingPosition";
const floatingUi = vi.hoisted(() => ({
position: { x: 12, y: 34, placement: "top-start", middlewareData: { arrow: { x: 5 } } },
stopTracking... |
a68ffd6f7c3a4ae87e447c0ceb2deae934b84fbd650866019dfd66dd8befdda8 | TypeScript | 3,560 | 89 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { FAKE_PAGE_SUMMARY, FAKE_PAGE_UNTITLED } from "./testData";
import PageCard from "./PageCard.vue";
const localV... |
f6cbdac6533e9f7db294d078586ba61932937c92b438b3cfe2ae36878864a18c | TypeScript | 3,562 | 100 | // Legacy client-side decryption for existing public project sharing links.
//
// Port of the original Node `crypto` implementation (see git history on
// master, pre-React-migration) to the browser's Web Crypto API. The
// algorithm is:
//
// 1. Derive a deterministic 16-byte IV per project id:
// IV = HMAC-S... |
b9028517c30a692047137a2b276a1823930b268cb500266f894472d5a39e97c0 | TypeScript | 3,564 | 97 | import { mount, type VueWrapper } 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";
c... |
e0445eeb446a5f93be2e51d21585b614ed76e760e474513cf8b7d2669e19c02d | TypeScript | 3,568 | 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: "data_input" |... |
d0f5c01050fb0da7336ed30ed24616bcf631caae04db4d0442390b862fd0089c | TypeScript | 3,580 | 115 | import { defineStore } from "pinia";
import { computed, ref } 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 "./workflowStepS... |
0f4931614c9508b59780084f1a2bf53b242c4dc973b2ddef5feac0e8dd69f615 | TypeScript | 3,623 | 97 | /**
* Translate between persisted workflow connection names and `when` input paths.
*
* Galaxy flattens nested tool inputs with `|` in `input_connections`, while expression
* code addresses the same input one property at a time. Keep comparisons segmented:
* joining an expression path is lossy when a literal prope... |
2e9bb553c23dd3925990bd48fe9d8f9e7790e9f7955a5ea22f9d031b8f7c37e3 | TypeScript | 3,624 | 114 | 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... |
d2d3279e061a4414d81b1de39f7cadcaaef685d1a80cc55e39d367e2661908b1 | TypeScript | 3,641 | 84 | import { useEventListener } from "@vueuse/core";
import { defineStore, storeToRefs } from "pinia";
import { computed, readonly } from "vue";
import { useHashedUserId } from "./hashedUserIdFromUserStore";
import type { MonitoringData, MonitoringRequest } from "./persistentProgressMonitor";
import { getPersistentKey, ge... |
54409790eaee28227c38b6a41e20325c7f0cc27a68afa6b7d321f91c244da81f | TypeScript | 3,668 | 97 | 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 { useNotificationsStore } from... |
16d265f72016975913753dd1283e1873dc9d1f790c95420a059d139b83fd3864 | TypeScript | 3,678 | 83 | import { readFileSync } from "fs";
import { resolve } from "path";
import { describe, expect, it } from "vitest";
/**
* GHeading renders its size as an `h-*` class. The client also declares those
* classes as global utilities in ui.scss, computed from the theme's Bootstrap
* scale, but the package cannot reach app ... |
3cf62413ea935e0ea040c934ee797b43034d7839e548d066843a493dc9b3d8cc | TypeScript | 3,682 | 85 | import Filtering, { contains, equals, expandNameTag, toBool } from "@/utils/filtering";
/**
* Deliberately decoupled from `workflowFilters.ts`: the curated endpoint only
* honours name, tag, collection and `is:runnable`, and `hasInvalidFilters`
* correctly rejects anything else.
*
* `collection:` and `is:runnable... |
3c2f346bf991a2af1457d986aa77c8f41fa065418ae8935db23b15a335a26c97 | TypeScript | 3,683 | 92 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { defineComponent, h, type PropType } from "vue";
import { sanitizeHtml } from "@/directives/sanitizeHtml";
import { useWizard } from "./useWizard";
import GenericWi... |
830c6bf214155830fcd8769c4709014061d120f350fea7dd376359bcc1731c55 | TypeScript | 3,686 | 97 | import { nth } from "@tests/vitest/helpers";
import { type DOMWrapper, mount, type VueWrapper } 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 ... |
79d0b77f935b7c3e49a834d6eba7af41511f08896096779b104718e680b71045 | TypeScript | 3,688 | 101 | import { storeToRefs } from "pinia";
import { computed, type Ref, ref, watch } from "vue";
import { userOwnsHistory } from "@/api";
import { useConfig } from "@/composables/config";
import { useExtendedHistory } from "@/composables/detailedHistory";
import { addHistoryViewerSubscription, removeHistoryViewerSubscriptio... |
db7d9d653a29aa7eae80e826d53274eb80d2ff4d3d51773e606eeb39c7ccbb01 | TypeScript | 3,702 | 131 | import { readonly, ref } from "vue";
import type { ColorVariant } from "../components/componentVariants";
export type ToastVariant = Extract<ColorVariant, "success" | "info" | "warning" | "danger">;
export interface ToastOptions {
/** Optional heading shown above the message. */
title?: string;
/** Conte... |
162d375f1cee04d7c5ffd8cfbd88174fe61c90308eb4a01bdc56a8b6f329cfc8 | TypeScript | 3,705 | 111 | import { computed, type Ref } from "vue";
import { useHashedUserId } from "@/composables/hashedUserId";
import { useUserLocalStorageFromHashId } from "@/composables/userLocalStorageFromHashedId";
import { useUserStore } from "@/stores/userStore";
/** Maximum number of remembered entries, per entity type */
export con... |
93bddbdc1457b2413af78c3656f9fce3ddb40d136c531b942b2a8f7a0306e85c | TypeScript | 3,730 | 103 | import { inject, onScopeDispose, provide, type Ref, ref, unref } from "vue";
import { useUndoRedoStore } from "@/stores/undoRedoStore";
import { useConnectionStore } from "@/stores/workflowConnectionStore";
import { useWorkflowCommentStore } from "@/stores/workflowEditorCommentStore";
import { useWorkflowStateStore } ... |
803aed3ee6860a032b3c87f954214819ffe4b096091e88ed20c436f59dd60643 | TypeScript | 3,731 | 115 | import { faCopy, faEye, faFire, faTrash } from "@fortawesome/free-solid-svg-icons";
import { storeToRefs } from "pinia";
import type { HDASummary, HistoryItemSummary } from "@/api";
import { copyDataset, deleteDataset } from "@/api/datasets";
import type { TableAction } from "@/components/Common/GTable.types";
import ... |
39c82a6cc2b21e2768991c28f8f1cdcb784d8a2eb74bd819385f5cf859093482 | TypeScript | 3,740 | 101 | 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 Multiselect from "vue-multiselect";
import PermissionsInputField from "./PermissionsInputField.vue";... |
0159b80d1c7b3bb31f28ac99b8a52ddb540a95e6e57a88fd8ff436f9af1c1ecf | TypeScript | 3,742 | 99 | import { createTestRouter } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import { getUploadMethod } from "... |
b5d8acb88de9e5b57008ef32a5be6c800b839ce8da98cf3dd6dd10b79b981bf3 | TypeScript | 3,759 | 107 | import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { reactive } from "vue";
import type { RegisteredUser } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import type { ServiceCredentialGroupPayload, UserServiceCredentialsResponse } from "@/api/userCredentials";
import {... |
80b9ce3f0f7c0c6ffcc990a68da402f27f3593d9526f17d41c6d0f5a52d3d478 | TypeScript | 3,768 | 115 | 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 { createMemoryHistory, createRouter } from "vue-router";
import type { BreadcrumbItem } from "@... |
ed352c1ed73182fb78dd23dc22dbfbf1d48ce7778a46323e726c16821dfd14ec | TypeScript | 3,772 | 108 | import { nth } from "@tests/vitest/helpers";
import { type DOMWrapper, mount } 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__";
impor... |
508b2d1e632f92409cf1af9062aa0737c8519befefc567beda0de185f457c8dd | TypeScript | 3,774 | 94 | import { GalaxyApi } from "@/api";
import type { components } from "@/api/schema";
import { rethrowSimple } from "@/utils/simple-error";
export type BaseUserNotification = components["schemas"]["UserNotificationResponse"];
export type UserNotificationPreferences = components["schemas"]["UserNotificationPreferences"]["... |
5ede397f27cddfa36782703c768b888254d6b7534e631c864206b4b86aefd99d | TypeScript | 3,778 | 138 | import { faCopy, faFile, faFolder } from "@fortawesome/free-regular-svg-icons";
import type { IconDefinition } from "font-awesome-6";
import type { DataOption } from "./types";
/** Data input variations interface */
export interface VariantInterface {
batch: string;
icon: IconDefinition;
library?: boolean... |
7dce44b5b7044c4f268a935a1c57f6af3983cf0ddf306f9e2bff2c9bf28d7051 | TypeScript | 3,783 | 101 | /**
* Shared test helpers for the SSE-driven stores (historyStore, notificationsStore).
*
* Both stores consume the same `useSSE` composable and need:
* - a mock that captures the onEvent callback so tests can synthesize SSE messages;
* - visibility-state patching without leaking across tests (JSDOM's `document`... |
f40817ebf14894139b12a0630f792f1169b70b772f14042fb5aa3b683680be56 | TypeScript | 3,785 | 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... |
eec0ddb962d04551383e7fbfd5855edd71322df9b9a0bed02dbf845b5706b6e1 | TypeScript | 3,796 | 129 | import { until } from "@vueuse/core";
import Dexie from "dexie";
import { defineStore, storeToRefs } from "pinia";
import { computed, ref, watch } from "vue";
import { useHashedUserId } from "@/composables/hashedUserId";
import { assertDefined, ensureDefined } from "@/utils/assertions";
import { useUserStore } from "... |
8829401edefa3e76e6dd9fc850dc5dabf202406729fa0336be5e16594c3122ac | TypeScript | 3,820 | 117 | import { storeToRefs } from "pinia";
import { computed, type ComputedRef, ref, watch } from "vue";
import type { UserConcreteObjectStoreModel } from "@/api";
import { getPermissions, isHistoryPrivate, type PermissionsResponse } from "@/components/History/services";
import { useObjectStoreStore } from "@/stores/objectS... |
9200bd8feed890ec5e7c7deadf473ffa92adc473e7d69ea5c0d1b544c2a04a53 | TypeScript | 3,826 | 113 | import type { components } from "@/api";
import type { WorkflowExtractionJob } from "@/api/histories";
type InvalidReason = components["schemas"]["InvalidWorkflowExtractionJobReason"];
type HistoryContentType = components["schemas"]["HistoryContentType"];
type DatasetState = components["schemas"]["DatasetState"];
type... |
4feeb965d2d0ff300eb1039bbfebabacff4a8a13aff9e353b687fd1e2b3b3968 | TypeScript | 3,832 | 100 | /**
* Cached fetcher for `/api/dataset_collections/{hdca_id}` — owns the
* `HDCASummary | HDCADetailed` cache. Parallels `datasetStore` for HDAs:
* one map per id, detail upgrades summary in place.
*
* Element pagination — and the staleness invalidation that comes with it —
* lives in `collectionElementsStore`. D... |
c045eb084c7017fbbc2e4dcfcf2c7a501225229a8d06b7ab0dde67fd44d37ea9 | TypeScript | 3,834 | 114 | 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... |
31971439ff7085357ce4397d62b2d45a1d4650bb954cee3686ad736c8c85bbb1 | TypeScript | 3,839 | 111 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter, nth, withPlugins } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { Htt... |
e34a878d9a0946fb850bfd89ec405a033ba8afb53f6e30df423f306850568fb0 | TypeScript | 3,864 | 95 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, expect, it, vi } from "vitest";
import { ref } from "vue";
import WorkflowInvocationSteps ... |
14f36d640238439c24c13d6e6dd68b9a891a7a18b808cd2529515a57f4c3f9c3 | TypeScript | 3,870 | 154 | 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... |
a8c8f9100b239c49bdde70932a88c461479df160fcefc8f92a7493c1168114df | TypeScript | 3,883 | 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/... |
5df1f5c2b3a786acc65c5c3d1a8d6ded78b84957ccb8358c70f2564e705862f2 | TypeScript | 3,886 | 124 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, injectTestRouter } from "@tests/vitest/helpers";
import { type DOMWrapper, mount, type VueWrapper } from "@vue/test-utils";
import { format, parseISO } from "date-fns";
import flushPromises from "flush-promises";
import { beforeEach, describe, e... |
88c4f1a9cb35723c6bd5405eb8f2bcd1dc26809ba084ce92e563fa868bb99ecd | TypeScript | 3,898 | 103 | import flushPromises from "flush-promises";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { HttpResponse, useServerMock } from "@/api/client/__mocks__";
const { server, http } = useServerMock();
const DATATYPES = [
{
extension: "bed",
description: "BED format",
des... |
7755aa6a82ec363070c5ab284f2021b034249e851516e0db0b2df9e60018e807 | TypeScript | 3,929 | 108 | /**
* Composable for fetching and watching history datasets based on filter criteria.
* This encapsulates the logic for fetching datasets when history ID, update time,
* or filter text changes, making it reusable across components like `CollectionCreatorIndex`
* (and in the future `GalaxyAI`).
*/
import { type May... |
dc8e2d3ed8ef185e697e9671392b06887a1fac520501716b2daa30dce4818863 | TypeScript | 3,937 | 99 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { afterEach, describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
import ToolDetailsButton from "./ToolDetailsButton.vue";
// Translates only what a test asks for, so the other as... |
eda0fe27432c2a58cf1920527bfc8b0301164b37a28e3446da12ead8df23fd19 | TypeScript | 3,944 | 117 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { isTerminalRunState } from "@/utils/storageOperations";
import { useStorageOperationsStore } from "./storageOperationsStore";
function createTestRun(runId: string, historyId: string, startedAt?... |
5c9fd0f9f9e0158cce27230f27e369f81470f93fcb6ed2a0e9b33b7ecd023349 | TypeScript | 3,961 | 119 | import { computed, getCurrentScope, onScopeDispose, reactive, ref, watch } from "vue";
import { useMagicKeys } from "@/composables/useMagicKeys";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import type { Rectangle } from "@/utils/geometry";
import { defineScopedStore } from "./scopedStore";
... |
330307b70e487b91b44576bb24c986b608ea7cba1d210c8324b69ea4f7cc5bd0 | TypeScript | 3,965 | 136 | import { mount } from "@vue/test-utils";
import type { MaybeRefOrGetter } from "@vueuse/core";
import { afterEach, describe, expect, it, vi } from "vitest";
import { defineComponent, nextTick, ref } from "vue";
import { useRoundRobinSelector } from "@/composables/roundRobinSelector";
vi.useFakeTimers();
function mou... |
6cf0711450d1dad089a7fc360b1fce0599368d359a64535632e476e263860ca4 | TypeScript | 3,967 | 106 | 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 CuratedCollectionChips from "./CuratedCollectionChips.vue";
const localVue = getLocalVue();
const ... |
39b31e07db0543529482f50d7ac0b2007d14544881216b12a3598b53fc77929c | TypeScript | 3,968 | 89 | /** Workflow rows and store-first lists, shared by the workflows provider and the "Run workflow" action */
import { faSitemap } from "@fortawesome/free-solid-svg-icons";
import type { WorkflowSummary } from "@/api/workflows";
import { useUserStore } from "@/stores/userStore";
import { useWorkflowStore, type WorkflowLi... |
22a3d9d45ea3dc07eeba5db1dcf18b0d96c3eeace6138d9a0eb511c05c5f4ce4 | TypeScript | 3,971 | 104 | import { type components, GalaxyApi } from "@/api";
import { rethrowSimple } from "@/utils/simple-error";
/** The browsing mode:
* - `file` - allows to select files or directories contained in a source (default)
* - `directory` - allows to select directories (paths) only
* - `source` - allows to select a source plu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.