sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
66c599dd42c80dfed6be457715f9fe517a7b1a9ad39effd029a8f694a48f5fdc | TypeScript | 5,026 | 122 | /**
* User Credentials API
*
* This module provides type definitions, interfaces, and utility functions
* for managing user service credentials. It includes types for credential
* groups, service definitions, and helper functions for credential management.
*
* @module userCredentials
*/
import type { component... |
318f3e297b5397e556d572c4d4774c25acf58541dd451a4b9286533fab1754d4 | TypeScript | 5,028 | 144 | import { useDraggable } from "@vueuse/core";
import { computed, type Ref, ref, unref, watch } from "vue";
import { useAnimationFrameThrottle } from "@/composables/throttle";
import { type AxisAlignedBoundingBox, Transform } from "@/utils/geometry";
export interface MinimapInteractionOptions {
/** Canvas element f... |
b56dc5a67faad8333ffca771c406d8458851704c22e460676e552aba3683df35 | TypeScript | 5,077 | 139 | /**
* Vue Test Utils v1 → v2 Compatibility Adapter
*
* This wrapper transforms old Vue Test Utils v1 mount options to v2 format,
* allowing existing tests to work without modification.
*
* Patterns handled:
* - { global: localVue, pinia, router } → { global: { ...localVue, plugins: [pinia, router] } }
* - { loc... |
ea8800ce3071db6b9e3deda6e0529790a0daccc6ba868f078d2848ac25cc40f1 | TypeScript | 5,080 | 135 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } fr... |
e6a812aa276ff36587f82d5e7c99ba35ad664d480507beee6d5d97b9fefcd2f1 | TypeScript | 5,093 | 151 | 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.... |
d37dd83a614a93557b4e7d855a0285d0893dfd500c0d5cd4bb3d35230665a558 | TypeScript | 5,101 | 117 | 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... |
6a5f7b83370a34d79c4c9756e86873209873773b35f6d6d7fcf7e9fa37385122 | TypeScript | 5,107 | 164 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { GalaxyApi } from "@/api/client";
import type { ChatHistoryItem } from "@/components/GalaxyAI/chatTypes";
import { useUserLocalStorage } from "@/composables/userLocalStorage";
import { rethrowSimple } from "@/utils/simple-error";
export... |
889981bc4d412b6b59f9ab443ac1223a1f27975a925909be82c891a808ac8519 | TypeScript | 5,121 | 150 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import type { Operation } from "./types";
import gridConfig from "./visualizationsShared";
const { server, http } = useServerMock();
function removeOperation(): Operation | undefined {
... |
47809d9083505e4a64214544ea9f681ac980ea0e5072ecc9b829eb3e061614fe | TypeScript | 5,146 | 186 | 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"]... |
8153259919264e98ba2ed34f7bebdb38e49035e988fe1402edc7eab612bb4854 | TypeScript | 5,166 | 150 | import { getFakeRegisteredUser } from "@tests/test-data";
import { expectConfigurationRequest, getLocalVue, nth } 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";
im... |
fea89470a4dc782d4bb41648d993c785cb9c1ecc9b9ae7ccab3f5b56e0308033 | TypeScript | 5,191 | 129 | 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... |
f69ac9dc2f22d7bc181c00f87d3d27857e8c64c58a4d09d1f8669f410cf0d8ef | TypeScript | 5,194 | 133 | import { describe, expect, it, vi } from "vitest";
import { ref } from "vue";
import type { HDADetailed, HDCADetailed, HDCASummary } from "@/api";
// Mutable mock state — tests assign into these to script the stores' replies.
const datasets: Record<string, Partial<HDADetailed>> = {};
const collections: Record<string,... |
f4dcb56e87adb4b8950102dcff3ab43b9a6a14b24ccf63d86ce88064540838c6 | TypeScript | 5,201 | 167 | import { faEye, faUserSlash } from "@fortawesome/free-solid-svg-icons";
import { useEventBus } from "@vueuse/core";
import { loadVisualizations, unshareVisualizationWithMe, type VisualizationSortByLiteral } from "@/api/visualizations";
import Filtering, { contains, expandNameTag, type ValidFilter } from "@/utils/filte... |
5afbbb1b14f8f81293a6fdf49357cff417c6f69ad8628b5d854bc8175fb0c960 | TypeScript | 5,203 | 159 | 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 {... |
161707c2090d3b2cc7b531b5089d59c07ac55142dd0bd74a5dc55cde120a91e0 | TypeScript | 5,208 | 157 | import { defineStore } from "pinia";
import { computed, type Ref, ref, watch } from "vue";
import { hasHelp as hasHelpTextFromYaml, help as helpTextFromYaml } from "@/components/Help/terms";
import { memoizeUntilRejected } from "@/utils/sharedPromise";
import { useDatatypeStore } from "./datatypeStore";
const DATATY... |
ee4c8eabba6b52f0df3528bfc8cbcdc6a8c84abf22ee24ca68d29687edf1dca6 | TypeScript | 5,214 | 191 | 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... |
d47fb2cd56cbcf83b28e7aa4fe1e419f71484c2d80bb4ae1b678da683ccd5711 | TypeScript | 5,228 | 122 | import { faLock } from "@fortawesome/free-solid-svg-icons";
import { localize } from "@/utils/localization";
import { actionsProvider } from "./providers/actions";
import {
ACTIONS_SCOPE,
availableScopes,
isProviderEnabled,
loginGatedScopes,
type ScopeDefinition,
} from "./providers/scopes";
impor... |
4fb35d0f249c25b79596f062915324cf4191ed4d403790648f26b634213c39c0 | TypeScript | 5,260 | 133 | import { computed, type Ref } from "vue";
import { localize } from "@/utils/localization";
import type { PaletteItem } from "./types";
import type { PaletteMode } from "./usePaletteMachine";
/** Leading phrase of the root placeholder, unless the instance configures its own */
const ROOT_PLACEHOLDER_PHRASE = "Search ... |
c88789ea11dd9661b8b20dfa2f60b21d680d64b13c1518ae29d5ecedba0341ad | TypeScript | 5,298 | 152 | import axios from "axios";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useEntryPointStore } from "@/stores/entryPointStore";
import { makeCtx } from "../test-utils";
import { interactiveToolsProvider } from "./interactiveTools";
import {... |
077b25915bf186a99cb904ab808601b091af0ed1bdc9076ec2be821daaff32f9 | TypeScript | 5,302 | 162 | import { isHDA } from "@/api";
import { useHistoryItemsStore } from "@/stores/historyItemsStore";
import { useHistoryStore } from "@/stores/historyStore";
export type EntityType = "dataset" | "history";
export interface MentionTrigger {
/** The entity type being selected, or null if still picking a type */
en... |
e2089d15ae07bd25dd6e6b825ec1af1e5906026d518f882c7da3903a4c88192f | TypeScript | 5,311 | 159 | 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 { afterEach, beforeEach, describe, expect, it, vi } from "vitest... |
a2cf4c3a1d5a1577ed8d34ef0c71254f34dcfd13831dc3a0a9af493a7f019b75 | TypeScript | 5,350 | 130 | /** Store-first search of the listing providers: the cache answers each keystroke, the backend only what it cannot */
import type { PaletteItem, PaletteSearchOptions } from "../types";
import { backendSettled, dedupePaletteItemsByEntity, rankPaletteItems } from "../utilities";
import { PaletteFetchError } from "./error... |
a5959c78941c9e82a729c10bdabeb48b49866e9ee895060b93a0e367f2cbf8fd | TypeScript | 5,358 | 176 | import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import {
getArchivedHistories,
getHistories,
getMyHistories,
getPublishedHistories,
getSharedHistories,
type MyHistory,
} from "./histories";
const { server, http } = useServerMock();
funct... |
7078023e75b5300063ab1ea051bdbc79594dff774449149baf31fc80856a4b0a | TypeScript | 5,361 | 151 | import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useWindowManagerStore } from "./windowManagerStore";
describe("windowManagerStore", () => {
beforeEach(() => {
setActivePinia(createPinia());
localStorage.clear()... |
6e968321f4c573b91ac910bd9f3374ffa008174684723147ffa83caa93396b4f | TypeScript | 5,376 | 116 | import { getFakeHistorySummary, getFakeRegisteredUser } from "@tests/test-data";
import { emittedArg, getLocalVue, withPlugins } from "@tests/vitest/helpers";
import { mount, shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { createPinia } from "pinia";
import { beforeEach, desc... |
375b39b315c8569aa15a572d8b3cde3b66087f1c83b29039870cfc154ead8a71 | TypeScript | 5,391 | 134 | import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { PreparedUpload, UploadMethodComponent } from "../types";
import LocalFileUpload from "./LocalF... |
e1d59b94d11115f04e9d5dd0b1868535ffe0791e781b0a80c429772814b577ab | TypeScript | 5,413 | 146 | /**
* 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)
* - "Notebook" — standalone pages (the publishable artifact)
* - ... |
0b2a5fe7487535d0006536fa6c25b8506119cf2b84a3e0d9cf562ab301377496 | TypeScript | 5,419 | 147 | import { computed, type Ref, ref } from "vue";
import type { ChatMessage } from "@/components/GalaxyAI/chatTypes";
import { applySectionEdit, djb2Hash } from "@/components/PageEditor/sectionDiffUtils";
import type { EditProposal } from "@/composables/agentActions";
import type { ActiveContext } from "@/composables/use... |
ccd85d3235fc5be723643bf5bf9b6ca808dddf787c283f813ceada4e205b18c6 | TypeScript | 5,449 | 182 | import { computed, type ComputedRef } from "vue";
import type { UploadOptionVisibility } from "@/components/Panels/Upload/shared/uploadOptionVisibility";
import type { BulkUploadItem, BulkUploadOperations } from "@/composables/upload/bulkUploadOperations";
import {
isUploadOptionVisible,
uploadOptionDefinition... |
2a160decd24ba4e4848df946d430afaf50860fda0f54ae0670e486743c8d34c3 | TypeScript | 5,462 | 131 | import type { Config } from "tailwindcss";
const config = {
darkMode: ["class"],
content: ["./index.html", "./src/**/*.{ts,tsx}"],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
... |
feb8b377d52cc7f1147d646e44e1f1e798858818f3f4e38d796e4dad2ca81495 | TypeScript | 5,465 | 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... |
54c1466cacb285498ac81a773d4b2597b4331bd611605742fcb009cb53e0203a | TypeScript | 5,475 | 194 | import { computed, type Ref, ref, watch } from "vue";
import { escapeRegExp } from "@/utils/regExp";
import { useConfig } from "./config";
type TrainingDetails = {
tool_id: Array<
[
string, // toolshed tool ID
string, // Version
]
>;
tutorials: Array<
[
... |
ece3e9f704bbf6510c9361138f749d619084a3e5ba2da66c2042f7e1581817c7 | TypeScript | 5,477 | 138 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, RouterLinkStub, shallowMount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import ... |
871ebd0b71f20cc8556173764a78c72c76466d4f7f70b799008d9deda432bbf9 | TypeScript | 5,534 | 172 | 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,... |
620300790a78739dcd87d42cb7a0d12b4b7d48bf3a382de21625d1716fa63c3e | TypeScript | 5,538 | 168 | 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... |
fce39624a284107b1e423d2fcadcb55da796fd99bc009b6c342961547f756804 | TypeScript | 5,562 | 146 | /** 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";
}
}
// Browsers leave statusText empty over HTTP/2, so the statuses proxies co... |
070c656554d19a598aa2c02ff03ff9c9b03fc6e0b875e87fa289acfe261d3a6d | TypeScript | 5,573 | 161 | import { computed, type DeepReadonly, readonly, type Ref, ref } from "vue";
/**
* Configuration options for URL tracker.
*/
interface UrlTrackerOptions<T> {
/** Initial value returned when navigation stack is empty. */
root?: T;
}
/**
* Result returned by backwardWithContext() containing both the new curre... |
6c61b9990876d2273551914e37313e4fb592a6ad2666daf69009f842e63a9125 | TypeScript | 5,588 | 165 | import { faFile, faMagic, faSitemap, faWrench } from "@fortawesome/free-solid-svg-icons";
import { computed } from "vue";
import { useRoute } from "vue-router";
import { PAGE_LABELS } from "@/components/Page/constants";
import { useToolStore } from "@/stores/toolStore";
export type ActiveContext =
| { contextType... |
d6f817875df3d9f4b21645a9e2ccff7cb31a6ef6bc67de8620ea3b257b1d1fe6 | TypeScript | 5,593 | 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... |
eaf4ab166473fb6f943fa081febaefd50525e72dde27547cf247f61091885de4 | TypeScript | 5,593 | 152 | import { computed, onUnmounted, type Ref, ref, watch } from "vue";
import { GalaxyApi } from "@/api";
import type { JobConsoleOutput } from "@/api/jobs";
import { useResourceWatcher } from "@/composables/resourceWatcher";
import { useJobStore } from "@/stores/jobStore";
import { rethrowSimple } from "@/utils/simple-er... |
13d17c69105349a8a84ef0f3fb748e82204167f6f1490283f5fe9051f9319be5 | TypeScript | 5,604 | 118 | import { describe, expect, it } from "vitest";
import { makeCtx } from "../test-utils";
import type { PaletteContext } from "../types";
import { navigationProvider } from "./navigation";
import { findScope } from "./scopes";
async function search(query: string, ctx: PaletteContext) {
return navigationProvider.sea... |
e5878523c10fd433e87415410f236eded6b06fde7702eaae97dafcb35ab68094 | TypeScript | 5,607 | 146 | import { registerToastHost, unregisterToastHost, useToast } from "@galaxyproject/galaxy-ui";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, describe, expect, it, vi } from "vitest";
import { nextTick } from "v... |
bd1455ca21cb186718dd243473da60be679c27f02a340de9c73cf12f41703ed7 | TypeScript | 5,608 | 204 | import { faTh } from "@fortawesome/free-solid-svg-icons";
import { defineStore } from "pinia";
import { ref } from "vue";
import _l from "@/utils/localization";
import { withPrefix } from "@/utils/redirect";
import { addSearchParams } from "@/utils/url";
const STORAGE_KEY = "galaxy-window-manager-windows";
export in... |
9ec314353bd908b6fdd197f49606f0cac228a9ea20a78236870c0d64a7825a4c | TypeScript | 5,611 | 148 | 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 ... |
bfdde3e2e91030a04fbfb8b4d52fd1ee1ef9e479f39e6a0cbd967058fb2aa32f | TypeScript | 5,654 | 153 | import "@testing-library/jest-dom/vitest";
import { enableAutoUnmount, mount } from "@vue/test-utils";
import { afterEach, describe, expect, it } from "vitest";
import GTable from "./GTable.vue";
enableAutoUnmount(afterEach);
const items = [
{ id: 1, name: "first" },
{ id: 2, name: "second" },
];
function ... |
62fedcd4bcfbffd0761e4631fb866f49a1ef4fb9de6f6c7bea691b419495a001 | TypeScript | 5,680 | 147 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue, nth } 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/__... |
c668cafaab7bf109ccb97225d6bf1a4e5df301a9efc0c3b64b6db24f3fcab052 | TypeScript | 5,725 | 179 | 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... |
1f90231dd338531576910f2859b63e048043a1126d51062ca09bb729085a6e25 | TypeScript | 5,747 | 152 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { setupMockHistoryBreadcrumbs } from "@tests/vitest/mockHistoryBreadcrumbs";
import { shallowMount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { beforeEach, ... |
221034cc12f9e31bfcceb6c9f36ceb15057f92fd15b7e36aae2375148471295c | TypeScript | 5,761 | 115 | import { describe, expect, it } from "vitest";
import {
ANY_COLLECTION_TYPE_DESCRIPTION,
CollectionTypeDescription,
NULL_COLLECTION_TYPE_DESCRIPTION,
} from "./collectionTypeDescription";
const ct = (collectionType: string) => new CollectionTypeDescription(collectionType);
describe("accepts (asymmetric s... |
c0b07e1e264f4727cc6ddbd4991bd645f1a812f60c9e7d57d1f3583693da0c8b | TypeScript | 5,765 | 161 | import { readonly, ref, watch } from "vue";
import type { StoreExportPayload } from "@/api";
import { GalaxyApi } from "@/api";
import type { ExportParams } from "@/components/Common/models/exportRecordModel";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple } from "@/utils/simple-error";
import ... |
89b1c518814331c1d84f3240992055553317fcc282f0c88488a91d9220111054 | TypeScript | 5,803 | 175 | #!/usr/bin/env node
// This is required for process.versions.electron below
/// <reference types="electron" />
import * as Ds from "./index";
import * as Fs from "fs";
import Sox from "sox-stream";
import * as argparse from "argparse";
const MemoryStream = require("memory-stream");
const Wav = require("node-wav");
c... |
5bf2556c99eefd92fa2d05b9473ae2453ad4fb6ba871f66cb13253beffba3f2b | TypeScript | 5,812 | 186 | import axios from "axios";
import { withPrefix } from "@/utils/redirect";
import { rethrowSimple } from "@/utils/simple-error";
export interface UrlDataOptions {
url: string;
headers?: Record<string, string>;
params?: Record<string, string>;
errorSimplify?: boolean;
}
export const USER_FILE_PREFIX = ... |
f996acf92f8838e286d99da074fdae05debe91f5cd35c24a36ffd6b4c86e4d9a | TypeScript | 5,864 | 162 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { nextTick, ref } from "vue";
import type { RecentPaletteItem } from "./useRecentPaletteItems";
const hashedUserId = ref<string | null>("test-hash");
vi.mock("@/stores/userStore", () => ({
useUserStore: () => ({ currentUser: null }),
}));
vi.... |
32e939a234a155b326d1490e7ece7690ac4f66b8fc3b4a505917e04ed283366b | TypeScript | 5,876 | 140 | import type { Config } from "dompurify";
import { beforeEach, describe, expect, test, vi } from "vitest";
import { PROFILE_CONFIGS, sanitizeHtml } from "./sanitizeHtml";
// The global test setup replaces this module with a pass-through spy; these
// tests exercise the real profiles against a DOMPurify stand-in instea... |
39334df7b08fa153bae17d4860c1bbff8353c956cd527d20c93c52d53e2d1c72 | TypeScript | 5,896 | 211 | import { formatDistanceToNow, parseISO } from "date-fns";
import type {
ExportObjectRequestMetadata,
ExportObjectResultMetadata,
ModelStoreFormat,
ObjectExportTaskResponse,
StoreExportPayload,
} from "@/api";
export interface ExportParams {
modelStoreFormat: ModelStoreFormat;
includeFiles:... |
3abf4d9dafb9d57b9aceece0922153aa9a9aa6a1280b347766ef246798b9b6f9 | TypeScript | 5,903 | 154 | import { type SearchCommonKeys, searchObjectsByKeys } from "@/components/Panels/utilities";
import { PALETTE_LIMITS } from "./providers/limits";
import { ACTIONS_SCOPE, findScope, type ScopeDefinition } from "./providers/scopes";
import type { PaletteContext, PaletteItem } from "./types";
/** A scope token: one or tw... |
71c2d65ec08684c73dd192dff716e95e6bd15ab0c6d013af1c4cc2b0a266fa7f | TypeScript | 5,903 | 149 | import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
import type { UploadMethodConfig } from "@/components/Panels/Upload/types";
import type { ScopeDefinition } from "./providers/scopes";
/**
* Everything a provider may need to decide which items exist for the current
* user. Passed in by the p... |
37317193a5308181b327dc4fdbb8866abb7b12b2f39eab12066ccf7254b97a17 | TypeScript | 5,910 | 171 | 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... |
e47cce32bca3805a8a82443aa2ee074e25e785b5ee375ab297d95b0356b89796 | TypeScript | 5,923 | 188 | 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... |
b6b557d6ac2187614cfc3b03652f33fa79e48268bb9c672511f7944c3e3c8c70 | TypeScript | 5,926 | 154 | import { faWrench } from "@fortawesome/free-solid-svg-icons";
import { type Tool, useToolStore } from "@/stores/toolStore";
import { useUserStore } from "@/stores/userStore";
import type {
CommandPaletteProvider,
PaletteContext,
PaletteItem,
PaletteSearchOptions,
ScopedSection,
} from "../types";
... |
fee61a4bc525aa225abc08229fb613b5fc21cb6d3af1450d0d0c6d2f965de374 | TypeScript | 5,926 | 148 | import { getFakeRegisteredUser } from "@tests/test-data";
import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { useUserStore } from "@/stores... |
3dddb297812cc8dddc4c89ec51437c51ef903485287a53dc9c79e62d6aacb34e | TypeScript | 5,935 | 167 | import { createTestingPinia } from "@pinia/testing";
import { createTestRouter } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { computed, ref } from "vu... |
f8a6a6707ac428693c46055802a55d7f6321e214802d88d5cd9a21318a10ab21 | TypeScript | 5,950 | 163 | 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... |
21aba8841b2dd5a70887d635fdae9c25553f2128d63a5f652365fc5eb0b2a10d | TypeScript | 5,956 | 158 | import { test, expect, Page } from "@playwright/test";
const ORG_ID = "mock-org-1";
const PROJECT_ID = "mock-project-1";
async function logIn(page: Page) {
await page.goto("/");
await page.getByTestId("mock-login").click();
// The mock login bounces to /home, which then redirects to /<org-id>
// as so... |
f2815ea333cf8ae5546dcd7f1ee69688f0f1802737071b81a5afee554c70fd22 | TypeScript | 5,971 | 158 | import { faAws, faDropbox, faGithub, faGoogleDrive, faHubspot } from "@fortawesome/free-brands-svg-icons";
import { faAtom, faCloud, faFolderTree, faGlobe, faNetworkWired, type IconDefinition } from "font-awesome-6";
import type { components } from "@/api/schema";
import { contains } from "@/utils/filtering";
export ... |
cff87dceab4a5f6c513845e6815d594207d60f2016c2cd42b8854c07b2bbe0f2 | TypeScript | 5,972 | 176 | import type { UseElementBoundingReturn } from "@vueuse/core";
import { computed, reactive, type Ref, ref, type UnwrapRef } from "vue";
import type { OutputTerminals } from "@/components/Workflow/Editor/modules/terminals";
import reportDefault from "@/components/Workflow/Editor/reportDefault";
import type { Rectangle }... |
b9910ef4f779b2ec3307dbfa5aa47af23e40f94d50841f421c2ade7d0df6c0c7 | TypeScript | 6,003 | 187 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { fetchCurrentUserQuotaSourceUsage, fetchCurrentUserQuotaUsages, type QuotaUsage } from "@/api/users";
import { errorMessageAsString } from "@/utils/simple-error";
const DEFAULT_SOURCE_KEY = "__null__";
const REFRESH_DEBOUNCE_MS = 5000;
... |
f2497c412514cdab55d50dfbac1e0f97217c680d0da09434f3c1aed1780ca8a2 | TypeScript | 6,089 | 123 | import type { PaletteContext } from "../types";
/**
* A one- or two-letter `x:` prefix that scopes the palette to a single kind of
* entity. `providerId` names the provider serving the scope; `variant`
* distinguishes scopes sharing one provider (own vs. shared vs. published …).
*/
export interface ScopeDefinition... |
acce88b544e2fc3d84bb9978bc8a81b44aa6c00fd7661190c26e7617d65d52eb | TypeScript | 6,096 | 146 | import { getLocalVue } from "@tests/vitest/helpers";
import { shallowMount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { describe, expect, it } from "vitest";
import type { HistorySummary, ObjectExportTaskResponse } from "@/api";
import { HttpResponse, useServerMock } from "@/api/clien... |
177afb3d8595b6d193ec776d8126bdc34e69566dab41bfa8f883f261ac658ccf | TypeScript | 6,101 | 158 | import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount } from "@vue/test-utils";
import flushPromises from "flush-promises";
import { http as mswHttp } from "msw";
import { setActivePinia } from "pinia";
import { afterEach, beforeEach, describe, expect, ... |
2547e312983c7778ac80aa4e3ea9d8e72989412d933bec9997c6aa94f5815cc4 | TypeScript | 6,122 | 140 | import type { Rect } from "@floating-ui/dom";
import { describe, expect, it } from "vitest";
import { computeHoverBridge, computeHoverGap, isPointInPolygon, type Point } from "./hoverBridge";
function within({ x, y, width, height }: Rect, [px, py]: Point) {
return px >= x && px <= x + width && py >= y && py <= y ... |
50b203d4d398421b679afbb425ea934bf6825a436392d6e8e33499772104471f | TypeScript | 6,126 | 149 | 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 { h } from "vue";
import { DEFAULT_OPTIONS_PAGE_SIZE } from "@/components/Form/Elements/FormData/typ... |
89cf19efa0a7e4a3f47477f68cf87514be2a9af33d8a0b3e49d66a9622a79f38 | TypeScript | 6,143 | 187 | import MarkdownIt from "markdown-it";
import type Token from "markdown-it/lib/token.mjs";
import { readonly } from "vue";
/**
* Adds a rule to open all links in a new page.
* https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer
*/
function addRuleOpenLinksInNewPage(engine: MarkdownIt... |
3bfc7539c7f7894d41189e69142d26c3a28d05cd5427b77be64f2a925d75e062 | TypeScript | 6,150 | 149 | import { beforeEach, describe, expect, it, vi } from "vitest";
import { makeCtx } from "../test-utils";
import type { PaletteItem } from "../types";
import {
enabledPaletteProviders,
findPaletteProvider,
paletteProviders,
parsePaletteQuery,
rankPaletteItems,
resetUnknownProviderWarnings,
} from... |
523c52e6511af128432e7ad7f4fb473b2e8d6ce0c90d7c88d755a239cce7e75a | TypeScript | 6,155 | 155 | import { beforeEach, describe, expect, it, vi } from "vitest";
import type { GraphStep } from "@/composables/useInvocationGraph";
import type { useWorkflowStateStore } from "@/stores/workflowEditorStateStore";
import type { Step } from "@/stores/workflowStepStore";
import { drawStepBorders, drawSteps, getStepColor, i... |
78de9163f032e80f283ab4a94d27c76ea86a5b02db091fcd5ccdf35729739c4a | TypeScript | 6,156 | 175 | import { emittedArg, 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__";
import { Toast } from "@/composables... |
3061a06672cdddedf1088c2ad3e0fa7a5fb118f15fe75e0fd93f061cf4f6336e | TypeScript | 6,171 | 162 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { HDASummary, HDCASummary, HistoryItemSummary } from "@/api";
import { loadDatasets, type LoadDatasetsResult } from "@/api/datasets";
import { useDatasetListStore } from "./datasetListStore"... |
7e4152f1223fdec682876442530f4cfdeb4d37bf7a1fa87acf948202ae1354c2 | TypeScript | 6,182 | 171 | import RAW_AUTHORING_HELP from "./authoringHelp.yml";
import {
buildOutputTypeReference,
buildParameterTypeReference,
buildQuickStartExample,
buildValidatorTypeReference,
} from "./authoringHelpTypes";
import { TOOL_SOURCE_SCHEMA_URI } from "./schemaMarkdown";
/** Editor adapter for the shared guidance... |
e1db66479f59bea208b8cb6d6928b228e266001a9c610ea1c2bbf76e5d28c8ab | TypeScript | 6,197 | 188 | /**
* Utility functions for mapping upload method items to upload queue items.
* These mappers convert component-specific item types to standardized upload queue format.
*/
import type {
CompositeFileItem,
LibraryDatasetItem,
LocalFileItem,
PasteContentItem,
PasteUrlItem,
RemoteFileItem,
} f... |
96b4410060ac16242431de7540225e836ff239dfc3ed58a12c5c36a3b369b0ce | TypeScript | 6,207 | 199 | 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... |
a53fb9b0ca4bfb89d27f49aad2dcdff6aec19275fa5e3dd726b0c638bd0093b2 | TypeScript | 6,264 | 162 | 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 ListHeader from "./ListHeader.... |
25fd3374a9e68e67a3d72f4525459b707a634cbde8d55bb18a42a0594ff5efee | TypeScript | 6,279 | 150 | import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { defineComponent, h, ref } from "vue";
import GRadio from "./GRadio.vue";
function mountPair(initial: unknown, values: [unknown, unknown] = ["a", "b"]) {
const selected = ref<unknown>(initial);
const Parent = d... |
43ceb29e98a1832edaa98917e7344d48457c0f4fdcfdb3314745b0cb678c925b | TypeScript | 6,300 | 141 | import { beforeEach, describe, expect, it, vi } from "vitest";
import type { HDASummary, HistoryItemSummary } from "@/api";
import { Toast } from "@/composables/toast";
import {
invalidElementMessage,
toastNoLongerAvailable,
toastRemovedFromCollection,
useElementReconciliation,
} from "./useElementRec... |
8eab2d1d877a952b02164a9aa1d00ff3547781215a5dc7b0c033adc4a2cf3743 | TypeScript | 6,313 | 152 | import { afterEach, beforeEach, describe, expect, it } from "vitest";
import type { RegisteredUser } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import type { ServiceCredentialsDefinition, UserServiceCredentialsResponse } from "@/api/userCredentials";
import { setupTestPinia } from "@/stores/... |
a183567fed63497cf7e1a75e0ce9de9c7cf6518a5659b72fcce9f5b1e3e95841 | TypeScript | 6,328 | 189 | 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 { nextTick, ref }... |
2bc14a4cfa87f580a1fddc5a829be8b03f4816f23261fde59071991719044adc | TypeScript | 6,362 | 163 | import { computed, ref } from "vue";
import { useWorkflowStepStore } from "@/stores/workflowStepStore";
import { pushOrSet } from "@/utils/pushOrSet";
import { defineScopedStore } from "./scopedStore";
import type {
BaseTerminal,
Connection,
ConnectionId,
InputTerminal,
InvalidConnections,
Out... |
35ccd6294d982264806f06b0ebb27dc4be9f27e8bc27971f1a76d537da275de3 | TypeScript | 6,370 | 162 | 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 { describe, expect, it, vi } from "vitest";
import type { AnyHi... |
2e79dfa6515257ea5afb7ed68c854d826401d2a6733a1cbc69ea404d8973c348 | TypeScript | 6,373 | 176 | import Filtering, { contains, equals, expandNameTag, toBool } from "@/utils/filtering";
export function helpHtml(activeList = "my", isAnonymous = false) {
let extra: string;
if (activeList === "my") {
extra = `<dt><code>is:published</code></dt>
<dd>
Shows published workflows.
... |
0e8e3b61b772409f8351a2dff3c19c578634a81d23cacda1144385f0cf52da58 | TypeScript | 6,374 | 167 | import { describe, expect, test } from "vitest";
import AUTO_PAIRING_SPECIFICATION from "./auto_pairing_spec.yml";
import {
autoDetectPairs,
autoPairWithCommonFilters,
guessInitialFilterType,
guessNameForPair,
isValidFilter,
splitIntoPairedAndUnpaired,
} from "./pairing";
function mockDataset(... |
036c55915c0d5614f4132d68bd8ff6f26192c6c702f4b2399ab43d64a463193c | TypeScript | 6,386 | 209 | 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... |
3d7f1a69c388948330c13ff082dc8edcc74343c642e868cf18850809457c057a | TypeScript | 6,420 | 167 | import { getLocalVue, nth, withPlugins } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { createPinia } from "pinia";
import { describe, expect, test, vi } from "vitest";
import { ref } from "vue";
import type { Tool, ToolSection as ToolSectionType, ToolSectionLabel } fr... |
16ccdd3bc15ebd95d1b0467fa95b847673af694160866fb00a6938551c89b727 | TypeScript | 6,459 | 143 | import { faSitemap } from "@fortawesome/free-solid-svg-icons";
import type { WorkflowInvocation } from "@/api/invocations";
import { useHistoryStore } from "@/stores/historyStore";
import { useInvocationStore } from "@/stores/invocationStore";
import { useWorkflowStore } from "@/stores/workflowStore";
import { shortDa... |
80492d50c1d55b1b1a478f87a1e0f531c1df4295332a7762e380124bf5fffda9 | TypeScript | 6,469 | 193 | 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 { computed } from "vue";
import type { PathDestination } from "@/composables/datasetPathDestination";
im... |
f8422500d88a46e025e1523ecf157df658565ec1d0330e9bb4c9cd5aec70b560 | TypeScript | 6,503 | 153 | 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 { getToolboxDependencies, installDependencies } from "../AdminServices";
import ResolutionIndex from "./Resolu... |
38c153f3ff1d7833ca40bd60f1aed2506138fa8fe9c31a6e6b1877cf63db39e7 | TypeScript | 6,519 | 187 | import { getRunMetadata } from "@/api/runs";
import {
Emission,
EmissionsTimeSeries,
ExperimentReport,
RunMetadata,
RunReport,
} from "@/api/schemas";
// Enhanced run report with metadata and emissions
interface EnhancedRunReport extends Omit<RunReport, "emissions"> {
metadata?: RunMetadata;
... |
d0351a73eb9c6e5ef9d1b6073f32c7b560e6604c9eae1a44f8ddc34bb6e632eb | TypeScript | 6,545 | 158 | import { http, HttpResponse } from "msw";
import { describe, expect, it } from "vitest";
import { useServerMock } from "@/api/client/__mocks__";
import { ApiError, errorMessageAsString, rethrowSimpleWithStatus } from "@/utils/simple-error";
import { GalaxyApi } from "./index";
const { server } = useServerMock();
co... |
c8ebed929ede63fa197bc0ce39571ab3f98423f128558769add92ec76dcaef56 | TypeScript | 6,595 | 170 | import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { loadVisualizations, type VisualizationSummary } from "@/api/visualizations";
import { errorMessageAsString } from "@/utils/simple-error";
/** Number of visualization summaries fetched when hydrating a variant list. */
const DEFAULT_LIM... |
9d988c4c7e11b4355b6adfe56f6c277a3f5fa125fe6cdb4953f31bfc6013d31b | TypeScript | 6,600 | 144 | import "@/composables/__mocks__/filter";
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/vitest/helpers";
import { mount, type VueWrapper } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import FormCollectionType from "./FormCollectionType.vue";
imp... |
9fc176237f48904d81b15fce72a58c408c5c2dbbe0374fe1f54bead1cb2bca16 | TypeScript | 6,605 | 166 | import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { loadVisualizations, type VisualizationSummary } from "@/api/visualizations";
import { useVisualizationStore } from "@/stores/visualizationStore";
vi.mock("@/api/visualizations", () => ({
lo... |
0f71c78e026232aea586d17cdac22c591ea5583c3378ce2240047ea1b8224da4 | TypeScript | 6,609 | 175 | import flushPromises from "flush-promises";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { ref, unref } from "vue";
import type { RegisteredUser } from "@/api";
import { useServerMock } from "@/api/client/__mocks__";
import type { WorkflowSu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.