sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
866d679a2346abb638b6beaf2cbfbf5630bd490c59ab4af973b715dad0f57fc3
TypeScript
2,061
67
import apiClient from '@/shared/api/client' import type { CreateRepositoryRequest, ExtensionManifestResponse, Repository, UpdateRepositoryRequest, } from '@/shared/types/apiSchemas' import type { ExtensionManifestFilters } from '@/features/catalog/types' const API_BASE = '/repositories' export async function ...
a151971274ac37588c22f750a16ce67bbe6be35b976582a2e17d86ee1c72e67e
TypeScript
2,065
54
import { expect, test, type Page } from '@playwright/test' import { dialog, dismissWithEscape, story } from './fixtures/helpers' // ConfirmDialog, driven through its "Destructive" story: the safe action takes // the initial focus, every way out that is not Confirm is a cancel, and focus // returns to the control that ...
3cfab2ecb163dbf3b20b20983a67c3d614dce1a667efc7d1773ae6476f8fdbaa
TypeScript
2,163
58
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { VCard, VCardText, VCardTitle, VCol, VIcon, VRow, VSheet } from 'vuetify/components' import { kaapanaIcons } from '../utils/icons' import { note } from './storyNote' // Reads the map rather than listing icons, s...
d88b578705133c79506167d341eeb980922422bf021ed2641709449830aff9fa
TypeScript
2,175
47
import { createApp } from 'vue' import { createPinia } from 'pinia' import Notifications from '@kyvg/vue3-notification' import router from './router' import vuetify from './plugins/vuetify' import App from './App.vue' import 'vuetify/styles' import '@mdi/font/css/materialdesignicons.css' import 'roboto-fontface/css/ro...
ed140a63ade203b1d57e9dfbbddf9c6fc562c154f28d6e128c96b73ea478356b
TypeScript
2,182
63
import { createVuetify } from 'vuetify' import type { VuetifyOptions } from 'vuetify' import { aliases, mdi } from 'vuetify/iconsets/mdi' import { injectPlatformFonts } from './platformFonts' import { KAAPANA_THEME_DARK, KAAPANA_THEME_LIGHT, kaapanaThemeDark, kaapanaThemeLight, } from './vuetifyTheme' // Build...
d0fb82817545fd5dc3314393146046d15850f0059aeddd218ddc59d9215393ac
TypeScript
2,231
48
import { test, expect } from '@playwright/test' import { bootGallery, makeDefaultMockData, viewPathFor } from './fixtures/mock-backend' test('opening a series detail shows the OHIF viewer and its metadata table', async ({ page }) => { await bootGallery(page, makeDefaultMockData()) await expect(page.getByText('CT T...
d8395624c3d179de3aa90deee40bf157771d5ee2c4656a7e64c433a17fbd9b7b
TypeScript
2,261
73
import { defineStore } from "pinia"; import { aiiApiGet } from "@/common/services"; export interface UserRight { name: string; description: string; claim_key: string; claim_value: string; project_id: string; } export interface NormalizedRights { name: string; description: string; } export interface Rig...
75251a6a43a26da8616e954adc647605790f2b53b20166c955e14e26b01f83f2
TypeScript
2,275
103
import { WidgetStatus, Widget, WidgetMap } from './model'; import * as FlexLayout from '@metacell/geppetto-meta-ui/flex-layout/src/index'; export const layoutActions = { SET_LAYOUT: 'SET_LAYOUT', SET_WIDGETS: 'SET_WIDGETS', UPDATE_WIDGET: 'UPDATE_WIDGET', ACTIVATE_WIDGET: 'ACTIVATE_WIDGET', ADD_WIDGET: 'ADD_...
400f1b5c892a018cae526afd41ec41e6a32af40b28cd8c169353d4722552b6a7
TypeScript
2,302
80
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { ref } from 'vue' import { notify } from '@kyvg/vue3-notification' import { VBtn } from 'vuetify/components' import ErrorDetailsDialog from './ErrorDetailsDialog.vue' import type { ApiErrorInfo } from '../utils/apiErrors' const conflict: ApiErrorInfo =...
479500f98821fa8d94ba38fc833950f2309a2f26ab6aee481ed6ad9876755d32
TypeScript
2,308
72
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { VBtn, VCard, VCol, VEmptyState, VRow } from 'vuetify/components' import { kaapanaIcons } from '../utils/icons' import { note } from './storyNote' // The view must distinguish an empty collection, an empty resul...
1bad24e534ad0706104623dc5f8d2f80e9e061542a32c8f09dffeae72833dc7b
TypeScript
2,313
50
import type { RouteLocationNormalizedGeneric } from 'vue-router' import { useMenuStore } from '@/stores/menu' import type { MenuEntry } from '@/types/menu' // The route fields the iframe src depends on; satisfied both by useRoute() // (IframeHost) and by the `to`/`from` locations in a router guard, which lets // the g...
c290d4dce3076df727649796333bdb2b5cd242413215c2074b0b6473696255fb
TypeScript
2,364
56
import { test, expect } from '@playwright/test' import { installMockBackend, stubView } from './fixtures/mock-backend' test.beforeEach(async ({ page }) => { await installMockBackend(page) await stubView(page, '/data-gallery-ui') await stubView(page, '/data-upload-ui') }) test('boots into the default view with t...
6f5bef36afc945afca4cfb4540cc73f558d25077dae5aaa2fb4c38754bfb30c0
TypeScript
2,412
63
import { test, expect } from '@playwright/test' import { installMockBackend, VIEW_PATH } from './fixtures/mock-backend' const JOBS = /\/kaapana-backend\/client\/jobs(\?|$)/ test('expanding a workflow fetches and renders its jobs', async ({ page }) => { await installMockBackend(page) await page.goto(VIEW_PATH) ...
15cf9bfadb10bef3994ae5f3c5f35d8f06749ece95b8cf22c880cf92ccec7aab
TypeScript
2,424
74
import type { ComponentPublicInstance, ComputedRef, InjectionKey, Ref } from 'vue' import type { MetadataFieldInfo, QueryOp } from '@/types/domain' export interface ArrayValueOption { token: string label: string } export interface FieldItem { title: string value: string subtitle?: string metadata?: Metada...
b326be3d4275fea8c05d4e4997cf3f394d1d00804374018a36b0e61b45d022d4
TypeScript
2,425
77
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h, ref } from 'vue' import { VAutocomplete, VCard, VCardText, VSelect, VTextField, VTextarea, } from 'vuetify/components' import { note } from './storyNote' // Deliberately sets no appearance props: the fields render with ...
5933c9202e2ffa63a8c64698ab87a8ab916350488721e9fa2a4374f3fd4f70b5
TypeScript
2,467
74
import apiClient from './workflowApiClient'; import type { Workflow, WorkflowCreate, WorkflowRevision, WorkflowUpdate, } from '@/types/schemas'; // Fetch all workflows export async function fetchWorkflows(params?: { title?: string }): Promise<Workflow[]> { const response = await apiClient.get<Work...
ea25b9a2d1ab7acf6f9abd6d0d76c1c0de101264f059d14e96db8039a25a23b3
TypeScript
2,496
89
import Orientation from "./Orientation"; class Rect { static empty() { return new Rect(0, 0, 0, 0); } x: number; y: number; width: number; height: number; constructor(x: number, y: number, width: number, height: number) { this.x = x; this.y = y; this.width ...
12633fe10abeabe10c83f0e38dd2f22b543961092ea3c1d5038e2a1c41812bb0
TypeScript
2,502
58
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('load more root results appends the next page', async ({ page }) => { const data = structuredClone(defaultMockData) data.root.nextContinuationToken = 'root-p...
88c7db6b50869621e4a0363fbe37ffbc43272ddda5ba6afeb7f061ede3cefba1
TypeScript
2,505
74
import type { Preview } from '@storybook/vue3-vite' import { setup } from '@storybook/vue3-vite' import { h } from 'vue' import { VApp } from 'vuetify/components' import { createPinia } from 'pinia' import NotificationsPlugin, { Notifications } from '@kyvg/vue3-notification' import 'vuetify/styles' import '@mdi/font/cs...
1bcd0b575735780b1c777e4f1281866ddb21fc0e26d6250671e588fa248a4491
TypeScript
2,590
138
export interface Artifact { id: string filename?: string | null content_type?: string | null size_bytes?: number | null } export interface MetadataEntry { key: string data: Record<string, unknown> artifacts: Artifact[] } export interface StorageCoordinate { type: string volume?: string path?: stri...
a4be483cdb5f1b4de24878170bd73e3466e19521d3a9d7ca31db1beac088e8e9
TypeScript
2,619
74
// Failure paths: a failed fetch must be reported once and leave the view usable. import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, makeDefaultMockData, VIEW_PATH } from './fixtures/mock-backend' function serverError(detail: string) { return { status: 500, contentTy...
9cdd2584554292a4957be267f2c2990d8131067c71953e158344b3df1edb9158
TypeScript
2,628
59
import { test, expect } from '@playwright/test' import { installMockBackend, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('auto-refreshes the workflow list on the polling interval', async ({ page }) => { await page.clock.install() const data = { ...defaultMockData } await installMockBackend(p...
89d74055321a72b6542ef7e24287edb8664eb9bdd851221c9ba8ed4d725cec61
TypeScript
2,643
63
import { expect, test } from '@playwright/test' import { checkAuthR, checkRoleAuthR, type PolicyData } from '../../src/utils/opa' const policyData: PolicyData = { endpoints_per_role: { admin: [{ path: '.*', methods: ['GET', 'POST'] }], user: [ { path: '^/data-gallery-ui/', methods: ['GET'] }, { p...
7b79eb26e987a4cbcd05577a7cec178e874d79cd5fd52912eb2e0f671af2e8e2
TypeScript
2,648
69
import TabSetNode from "./TabSetNode"; import BorderNode from "./BorderNode"; import RowNode from "./RowNode"; import TabNode from "./TabNode"; /** @hidden @internal */ export function adjustSelectedIndexAfterFloat(node: TabNode) { const parent = node.getParent(); if (parent !== null) { if (parent inst...
946e40e1ce5bdaa41973f8c8ff390fe286aaf84ea47e6874796bee43c1a3fb61
TypeScript
2,686
49
// The platform typeface, carried by the library instead of by every view. // // Vuetify's stylesheet asks for `"Roboto", sans-serif` in 81 separate rule blocks // and exposes no CSS custom property for the family, so a view that does not ship // the face renders in whatever the client OS substitutes for `sans-serif` —...
a38e7d7cc9b035dea21f6bba68c76ff9413c03c4dc57b24711fd14316dc595a2
TypeScript
2,715
65
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, workflowField, VIEW_PATH, } from './fixtures/mock-backend' // The form's loaders live in @kaapana/base-ui's WorkflowExecution; a failed load // used to be indistinguishable from an empty backend response. const fail =...
f30dd64a5b9d8e183225633071e65f6787f9a98d9c6ec4b67e5b48a0e2c6bea4
TypeScript
2,738
71
import { test, expect, type Page } from '@playwright/test' import { bootView, selectDag, singleDagData } from './fixtures/mock-backend' // The view posts kaapana:view-dirty to its parent so the shell can warn before a // project switch reloads the iframe. Standalone (parent === window), so the // messages land on this...
52f4e49b809971d6490b0093ea2e1794f5f88dee0c2561a11116530d79a090a3
TypeScript
2,767
66
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { VBtn, VCard, VCardActions, VCardText, VCardTitle, VSpacer, VTooltip } from 'vuetify/components' import { note } from './storyNote' // The four levels of the action hierarchy, shown twice: standing alone, and //...
14b85f603d7dce6160b837b46c70cc941f154820a05706cdf74290a90e9c0fea
TypeScript
2,923
87
import { defineStore } from 'pinia' import { notify } from '@kyvg/vue3-notification' import { fetchNotifications, readNotification, NotificationWebsocket, NotificationEventType, type KaapanaNotification, } from '@/api/notifications' const PAGE_LIMIT = 20 export const useNotificationsStore = defineStore('not...
5e13a5a6e57126c76cf98f22f962afa542bb722097de7014bf1a19705c1abc90
TypeScript
2,961
77
// Readers over the kube-helm `/extensions` payload. The `?.` chains are // deliberate: a row whose selected version is missing from `available_versions` // must not throw and take the table down. /** A multi-installable chart's own catalogue row is never itself a deployment. */ function isCatalogueRow(item: any): boo...
d25093de2d97f87d2d179f44283185cf1b2a451797a06e0cec4caabbc1391f65
TypeScript
2,967
75
import axios from 'axios' // Single shared axios instance; all backend routes are same-origin behind Traefik. const http = axios.create({ timeout: 10000, }) // Calls to these services are rewritten onto the platform-wide // /project/<short_id>/<service>/... convention (traefik strips the prefix, // auth-backend aut...
99c47631a25bd7998f248b4bfe4ecf8ea301a85454fb18cba5e1a48ffa925902
TypeScript
3,004
76
import { test, expect, type Page } from '@playwright/test' import { installMockBackend, stubView, defaultMockData } from './fixtures/mock-backend' import type { Project } from '../../src/api/projects' const ADMIN: Project = { id: 1, name: 'admin', short_id: 'admin' } const RESB: Project = { id: 2, name: 'research-b', ...
d7b49a311b059ceb37ba0e6396058929182eff5538712f526e32a6f089bdd5a0
TypeScript
3,107
80
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { computed, defineComponent, h } from 'vue' import { useTheme } from 'vuetify' import { VCard, VCardText, VCardTitle, VCol, VRow, VSheet } from 'vuetify/components' import { themeContrastRatio } from '../utils/vuetifyTheme' import { note } from './storyN...
e8f4348d2919e58d347d1d7e7e74522a68d6da21097d0b997e4e0d46487c448b
TypeScript
3,114
82
import { defineStore } from 'pinia' import { httpClient } from '../utils/httpClient' import { getProjectSlug } from '../utils/selectedProject' export interface Project { id?: number | string name?: string short_id?: string is_archived?: boolean access_level?: string [key: string]: any } interface ProjectS...
bd4227c72596b14eea44de514b419c3c9f120a933a733183addb0b04480dd8e2
TypeScript
3,231
79
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('renders the typical result tree on load', async ({ page }) => { await seedShellState(page) await installMockBackend(page) const rootReq = page.waitForReq...
70e1ccac0f4d9004dd2e5c484add0123a94e22504c43527217e8230567abb61e
TypeScript
3,232
88
/** * In-isolate "fake sandbox" tools for the pure-Worker variant. * * Backed by a Map<string,string> held in the Durable Object — no real shell or * filesystem. Demonstrates passing custom tools to * client.beta.sessions.events.toolRunner (same shape as * client.beta.messages.toolRunner accepts). */ import { be...
ecb2cfa6022e257ff82ffd5ab1eba463c2af9e39927c7a75eea100d306080dc7
TypeScript
3,249
80
import { test, expect, type Page } from '@playwright/test' import { defaultMockData, type MockData } from './fixtures/mock-backend' import { openView, row } from './fixtures/helpers' // update-extensions, filepond-upload and import-container are admin-only under // the shipped policy; the view HIDES (not disables) the...
8060d2ff018e2fbc9ff23c4798338a7af5fff84c5d3dd12d30acc6e3d306e523
TypeScript
3,263
116
const settings = { darkMode: true, navigationMode: false, landingPage: ['Patient Sex', 'Modality'], datasets: { structured: false, cols: 'auto', cardText: true, tagBar: { multiple: false, tags: [] }, itemsPerPagePagination: 1000, ...
54ff2b2113b236ec1f7ca83afffc5d028e4bd85ec869170e08a94cd73480ed56
TypeScript
3,391
70
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, VIEW_PATH } from './fixtures/mock-backend' test.beforeEach(async ({ page, context }) => { await seedShellState(page) await installMockBackend(page) // Stub the file url at the context level too, so an open-in-new popup ...
6948c304ee126dacdcb3d7e0af6e1ffb344ebf5f3dc1795463e4640e09a56cb8
TypeScript
3,404
123
const settings = { darkMode: true, devMode: false, navigationMode: false, landingPage: ['Patient Sex', 'Modality'], datasets: { structured: false, cols: 'auto', cardText: true, tagBar: { multiple: false, tags: [] }, itemsPerPa...
d5b642bf80da952f0955fc627bc517e9be8bcff05bf544fa7593921db4ec3ccc
TypeScript
3,405
103
import { defineStore } from 'pinia' import { notify } from '@kyvg/vue3-notification' import { fetchNotifications, readNotification, readAllNotifications, NotificationWebsocket, NotificationEventType, type KaapanaNotification, } from '@/api/notifications' const PAGE_LIMIT = 20 export const useNotifications...
fee15f7112b097f70d667dfe0413576c4345488e70c6de670ee90b78a536b05e
TypeScript
3,426
85
import { test, expect } from '@playwright/test' import { bootGallery, installMockBackend, makeDefaultMockData, VIEW_PATH, } from './fixtures/mock-backend' // Every other spec seeds localStorage["settings"], so only this one sees a fresh // profile — where the view's bare JSON.parse(undefined) at setup blanked ...
7519a81af27a313f1af14325ec1b19badeba8a6664a28f1bc80b92aab7134be2
TypeScript
3,445
80
// Turns a rejected request into a user-facing sentence and into the technical // detail (status, request line, backend message, request id) for // ErrorDetailsDialog. The Kaapana backends raise FastAPI HTTPExceptions, so the // backend's own message is `response.data.detail`. export interface ApiErrorInfo { /** HTT...
f457f2d01d88a14eb16955d2be7239771d334e593bb32536f56b92a0fcce2d2e
TypeScript
3,494
100
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h, ref } from 'vue' import { VAlert, VBtn, VCard, VCardActions, VCardText, VCardTitle, VForm, VSpacer, VTextField, } from 'vuetify/components' import { note } from './storyNote' // The rule being shown is about the *...
336148dbc5510dd4f6ea738de787f72168cff04636323821dfcbcd9ce29fd0f9
TypeScript
3,536
82
import { test, expect } from '@playwright/test' import { bootView, selectDag } from './fixtures/mock-backend' // Schema -> form rendering for every vjsf field kind the real DAG schemas use, // packed into the mock-all-fields fixture. Pins the vjsf 2 -> 3 migration. test.beforeEach(async ({ page }) => { await bootVi...
f50026003803380ecf73215d8ee7b2b3b4d930942278fe115c3a2fbeb2d4a353
TypeScript
3,549
97
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h, ref } from 'vue' import { VAlert, VBtn, VCard, VCardText, VCardTitle } from 'vuetify/components' import ErrorDetailsDialog from '../components/ErrorDetailsDialog.vue' import type { ApiErrorInfo } from '../utils/apiErrors' import { n...
264b86d19089cee5371870c4bd0ca5fef380b1c274e5f788d0fafdff67a1d01f
TypeScript
3,565
90
import { defineConfig, devices } from '@playwright/test'; export const AUTH_FILE = 'playwright/.auth/kaapana.json'; /** * See https://playwright.dev/docs/test-configuration. * * Required env vars: * KAAPANA_TEST_INSTANCE_UI — base URL of the running Kaapana instance * (default:...
ef5cb01e7763269669dacd1ddb1bf334728525fe7de07ccb1f9748c0c9a8600e
TypeScript
3,570
90
import { test, expect } from '@playwright/test' import { bootView, selectDag, singleDagData, largeDatasetSchema, noModelsSchema, emptyUploadSchema, } from './fixtures/mock-backend' // Regression coverage: real backend DAG shapes that crashed vjsf 3 and blanked // the execution form (fixtures in fixtures/mo...
c2c0fb30e4fe2ca636d6b772233488dc3859afd0aba44a3c217bab95562984cd
TypeScript
3,591
77
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, secondProject, viewPathFor } from './fixtures/mock-backend' // The four services base-ui's httpClient rewrites onto /project/<short_id>/ // (its PROJECT_SCOPED allowlist). Matched anywhere in the path so a call that // bypasse...
c6e3552f33dc43607c9b1c799e0da068f2a605e13cc24f80583846ad4e8b6107
TypeScript
3,607
82
import { test, expect } from '@playwright/test' import type { Request } from '@playwright/test' import { installMockBackend, VIEW_PATH, UPLOAD_URL } from './fixtures/mock-backend' // A tiny in-memory zip-ish payload; well under FilePond's 1 MiB chunk size so // the chunked upload is exactly one POST (transfer id) + on...
6f820fa7e7f49360227170afdca95073c3afc9d19eb7530977ed40bf02f16d3b
TypeScript
3,625
98
import { defineStore } from 'pinia' import { fetchMetric, fetchMetricRange } from '@/api/monitoring' export const POLL_INTERVAL_MS = 15_000 const HISTORY_LENGTH = 40 // Backfill window: 40 points x 90s = the last hour, so the sparklines start // populated instead of empty; live 15s samples append from there. const BAC...
1e7d02c1038bc53ad2ea76038f4ae5c2e7573fb0693be887c537214903ad7abc
TypeScript
3,664
106
import { defineStore } from 'pinia' import { clearLegacyProjectCookie, fetchCurrentAiiUser, fetchProjects, type Project, } from '@/api/projects' /** URL slug of a project: the 8-char short_id, falling back to the UUID. */ export function projectSlug(project: Project): string { return project.short_id ?? Stri...
929eed7c7bdeff69d408540b968bdec06e0375c8e8d4b0ab4b8608ece25e2a3b
TypeScript
3,672
100
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { computed, defineComponent, h, ref, type PropType } from 'vue' import { VBtn, VCard, VCardText, VCardTitle } from 'vuetify/components' import ConfirmDialog from '../components/ConfirmDialog.vue' import { note } from './storyNote' // This demonstrates t...
50c7259f23347a3d0b28915078d7f773841458aa180de8301d0e2acb32c0518f
TypeScript
3,674
102
import { test, expect } from '@playwright/test' import { installMockBackend, VIEW_PATH } from './fixtures/mock-backend' const WORKFLOW = /\/kaapana-backend\/client\/workflow(\?|$)/ const SYNC = /\/kaapana-backend\/client\/check-for-remote-updates/ // running-wf: automatic_execution true + not remote + not service -> ...
783f50eb547b01d2e7c6dad1860a700a7f4d9685384b9702b3335dea4ff74c60
TypeScript
3,686
86
import { test, expect } from '@playwright/test' import { installMockBackend, PROJECT_SLUGS, viewPathFor } from './fixtures/mock-backend' // The four services base-ui's httpClient rewrites onto /project/<short_id>/ // (its PROJECT_SCOPED allowlist). Matched anywhere in the path so a call that // bypasses the intercepto...
450d943ef374f7c31548206480ff34ca1b5195dd7e353bc57bf1dd8510a080a5
TypeScript
3,701
85
import { test, expect } from '@playwright/test' import { catalogue, dialog, extension, HELM, nextPost, openView, row } from './fixtures/helpers' test("string-'null' extension_params installs immediately with no config dialog", async ({ page, }) => { // Regression: getFormInfo used to call Object.keys('null') (-> [...
ec22a89305f70e8f7d357d03c5dcd851b0f3d8ee82fc7df21d3feea52ff7f262
TypeScript
3,720
87
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, selectDag, shellProjects, viewPathFor, workflowField, } from './fixtures/mock-backend' // The four services base-ui's httpClient rewrites onto /project/<short_id>/ // (its PROJECT_SCOPED allowlist). Matched anywher...
84a7f7fd33568c19a6fd1ea5183929fef54a9e854f1f26de5ca992fee0f78038
TypeScript
3,724
109
import { test, expect } from '@playwright/test' import { catalogue, confirmAction, countRequests, deployed, dialog, dismissWithEscape, extension, HELM, nextPost, openView, row, } from './fixtures/helpers' // Removing a release is destructive, so every path here goes through a // confirmation and ...
9e988179564ca03de79a9f7b5b1e40d70ca3fbc0fa0b3e844af34426f84c085d
TypeScript
3,727
91
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('renders a card per instance with network details', async ({ page }) => { await seedShellState(page) await installMockBackend(page) await page.goto(VIEW_PA...
999b503ce3598216871263bcc33db80fcfa0859b0ecfa2fa7893c87d449ef8e7
TypeScript
3,759
93
import { test, expect } from '@playwright/test' import { defaultMockData, installMockBackend, UNSCOPED_VIEW_PATH, VIEW_PATH, viewPathFor, } from './fixtures/mock-backend' import { confirmAction, HELM, row } from './fixtures/helpers' // The four services base-ui's httpClient rewrites onto /project/<short_id>/...
e4c75a86f5dd4654bcaffe0fb7d42dc9710fd8a23e8754816157d5199e489495
TypeScript
3,806
162
import type { EventMessage } from '@/types/domain' export interface EventStreamHandle { start(): void stop(): void } interface EventStreamOptions { reconnectDelayMs?: number onStatusChange?: (connected: boolean) => void } const DEFAULT_RECONNECT_DELAY = 2000 function buildWebSocketUrl(): string { const co...
b63de3bb5787c955c039eb63e47efac65edaaa9fa4a154bb9258d61f3a775f5a
TypeScript
3,835
107
import { defineStore } from 'pinia' import { notify } from '@kyvg/vue3-notification' import { settings as defaultSettings } from '@/static/defaultUIConfig' import { fetchSettings, putSettings, putSettingsItem, type SettingsItem } from '@/api/settings' import type { Settings } from '@/types/settings' // The extracted v...
68331ebe1e44a47c71b1b405aeed18f40220d3ef87a176fb11ccc7b3ae590f0f
TypeScript
3,882
115
import { notify } from '@kyvg/vue3-notification' import { httpClient } from './httpClient' const helmApiPost = (subUrl: any, payload: any, timeout: any = 10000) => { return new Promise((resolve, reject) => { httpClient.post('/kube-helm-api' + subUrl, payload, { timeout }).then((response: any) => { ...
997f49849512390c093e644a5a4ff81299f3cd0b5933db52ecea652acb98ab33
TypeScript
3,886
82
import { test, expect } from '@playwright/test' import { installMockBackend, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('renders both upload options and the browser dropzone', async ({ page }) => { await installMockBackend(page) await page.goto(VIEW_PATH) await expect(page.getByRole('headi...
596a93d27dcac42d9a8ee1fcff2b62c06ce2ae84b7e7349795d98b56400dcc0b
TypeScript
3,911
120
import Attribute from "./Attribute"; /** @hidden @internal */ class AttributeDefinitions { attributes: Attribute[]; nameToAttribute: Record<string, Attribute>; constructor() { this.attributes = []; this.nameToAttribute = {}; } addWithAll(name: string, modelName: string | undefined...
cd581a6eec7525996ea58fc897ff38354b8b483c5cc6acd5aa4c961ccd1596eb
TypeScript
3,949
100
import type { ThemeDefinition } from 'vuetify' // Shared Kaapana theme. The views embed under the portal-ui shell, whose // dark-mode toggle switches between these two themes by name — hence the // exported name constants (a lookup mismatch silently disables dark mode). // // The semantic roles below are the ones the ...
3aef422af39a0d1f8aea2f59e40a286068928197d1da1849b428df11860b4894
TypeScript
3,976
114
import Orientation from "./Orientation"; import Rect from "./Rect"; class DockLocation { static values: Record<string, DockLocation> = {}; static TOP = new DockLocation("top", Orientation.VERT, 0); static BOTTOM = new DockLocation("bottom", Orientation.VERT, 1); static LEFT = new DockLocation("left", O...
355e780c978a6bfab2665e807a1cfe9ac9c6a26bbf00f18d0769fb25bcb55c72
TypeScript
3,998
118
import apiClient from './workflowApiClient' import { toRaw } from 'vue' import type { CleanupStatus, WorkflowRun, WorkflowRunCreate, WorkflowRunUpdate, TaskRun, LogLine, } from '@/types/schemas' const API_BASE = '/workflow-runs' function safeSerializeToObject(obj: unknown, maxDepth = 40): unknown { // U...
f0fe9d72e72e9bf829a596031db4e02a12a430726942eb65a2018b4de994d462
TypeScript
4,026
119
import { describe, it, expect, beforeEach, vi } from 'vitest' import { createPinia, setActivePinia } from 'pinia' vi.mock('@/api/projects', () => ({ fetchCurrentAiiUser: vi.fn(), fetchProjects: vi.fn(), clearLegacyProjectCookie: vi.fn(), })) import { useProjectStore, withProjectSlug } from '@/stores/project' im...
a9201210634d2b6d027b1e7271bea08e5255f3f34bda32f53837168817611be4
TypeScript
4,039
120
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { computed, defineComponent, h, ref } from 'vue' import { VBtn, VCard, VCardActions, VCardText, VCardTitle, VDialog, VSpacer, VTextField, VTextarea, } from 'vuetify/components' import { note } from './storyNote' // Three widths, and nothing between th...
c26f86d941b28fc99bfd038b1d035299a6563fbeff4a0068ce01e0840fecf093
TypeScript
4,073
96
import { test, expect } from '@playwright/test' import { MENU_ROUTE, installMockBackend, stubView, defaultMockData } from './fixtures/mock-backend' test.beforeEach(async ({ page }) => { await stubView(page, '/data-gallery-ui') }) test('menu endpoint 500: shell still boots, no menu entries, no iframe', async ({ page...
63aae4dfd7e66e53f403a49f02a4a9e89e03bab39bee7723dda181524597c8ec
TypeScript
4,089
101
import { test, expect } from '@playwright/test' import { boot, poll, prime, settle, defaultMockData, app, readyPod, pendingPod, errorPod } from './fixtures/mock-backend' function row(page: import('@playwright/test').Page, name: string) { return page.locator('.v-list-item').filter({ hasText: name }) } test('a pendin...
15fa01da3d040fb63fe4a00f71d34cfb321735f552089c7384352281f04a4749
TypeScript
4,104
78
export enum CLASSES { FLEXLAYOUT__BORDER = "flexlayout__border", FLEXLAYOUT__BORDER_ = "flexlayout__border_", FLEXLAYOUT__BORDER_BUTTON = "flexlayout__border_button", FLEXLAYOUT__BORDER_BUTTON_ = "flexlayout__border_button_", FLEXLAYOUT__BORDER_BUTTON_CONTENT = "flexlayout__border_button_content", ...
3798d21e1eb8e213daf472273e1f2baa2b942651db8ab429205f7cff38424cd3
TypeScript
4,110
111
import { test, expect, type Page } from '@playwright/test' import { countRequests, dialog, HELM, openView, pressEscapeUntil, recordShellMessages, row, } from './fixtures/helpers' // The configuration form is the view's only editable state, so it carries the // "Unsaved changes" and "Validation" rules of ...
e2e212ab274b1569986358557ace2d5e77b42d66e23df1ef4ce4012b7c82fb30
TypeScript
4,204
107
/** * Per-session Cloudflare Container that runs `ant beta:worker run`. The CLI * owns heartbeat, backlog reconcile, SSE stream, tool execution * (bash/read/write/edit/glob/grep), the work-item force-stop on exit, and the * idle policy — it exits `--max-idle` after `session.status_idle` with * `stop_reason: end_tu...
ef92bb95a4ffd83f37c30b02a649d644df1080aa22896d9c727d1b9465f8c7e6
TypeScript
4,231
149
import * as FlexLayout from '@metacell/geppetto-meta-ui/flex-layout/src/index'; import { layoutActions } from './actions'; import * as General from '../actions'; import { WidgetStatus, WidgetMap, ExtendedNode } from './model' import layoutInitialState from './defaultLayout'; export { layoutInitialState }; export inter...
aefca7ca18f82e2f0c69881f2cfa226b8c7fe56c4a33f3e1ed1697e52cbd14e7
TypeScript
4,254
142
const settings = { darkMode: true, navigationMode: false, landingPage: ['Patient Sex', 'Modality'], datasets: { structured: false, cols: 'auto', cardText: true, tagBar: { multiple: false, tags: [] as string[] }, itemsPerPagePagina...
e30fd9a131b791dd9c1d2299f56a6bdf1d0849b140fa9cfd0daa3e713b2ff672
TypeScript
4,306
112
// CRC-32 lookup table, computed once at module load const CRC_TABLE = (() => { const t = new Uint32Array(256) for (let n = 0; n < 256; n++) { let c = n for (let k = 0; k < 8; k++) c = (c & 1) ? (0xedb88320 ^ (c >>> 1)) : (c >>> 1) t[n] = c } return t })() function crc32(data: Uint8Array): number {...
82f05363c1404465c4fc49c5e33991cd19c1eb4ab1d028ac21c59258468c7308
TypeScript
4,335
107
import { test, expect, type Request } from '@playwright/test' import { bootGallery, makeDefaultMockData } from './fixtures/mock-backend' function isSeriesListRequest(req: Request): boolean { return req.method() === 'POST' && /\/dataset\/series$/.test(req.url()) } test('selecting a dataset scopes the query to its id...
51acab981cc63eca1886ea88b9114bbd9476c91ec0a60d90ade077b4eabca4d1
TypeScript
4,350
99
import { test, expect, type Page } from '@playwright/test' import { countRequests, dialog, HELM, nextPost, openView, row } from './fixtures/helpers' async function pickVersion(page: Page, name: string, version: string) { // v-select exposes a wrapper and an input, both role=combobox; open via the first. await row(...
07cdc327fdd3230401cb2852d682979ced944211e18d145246fb37b6b96d373b
TypeScript
4,417
101
import { test, expect, type Locator } from '@playwright/test' import { installMockBackend, seedShellState, VIEW_PATH } from './fixtures/mock-backend' type Box = { x: number; y: number; width: number; height: number } // Two boxes share a horizontal band, i.e. they sit on the same visual row. function sameRow(a: Box, ...
607df5c57d8db409ea8366ad44d9805247d202885e43eff7c9f1e87b45663e87
TypeScript
4,432
101
import { test, expect } from '@playwright/test' import { defaultMockData } from './fixtures/mock-backend' import { catalogue, extension, openView, row } from './fixtures/helpers' test('renders the extension list with mixed installed states', async ({ page }) => { await openView(page) // installed -> Uninstall, no...
5073f4ceebf7ea9f1d99cca34c35e0289965a50b41f0b703dbeb43e2a84aa690
TypeScript
4,484
125
import DropInfo from "../DropInfo"; import Orientation from "../Orientation"; import Rect from "../Rect"; import BorderNode from "./BorderNode"; import IDraggable from "./IDraggable"; import Model, { ILayoutMetrics } from "./Model"; import Node from "./Node"; class BorderSet { /** @hidden @internal */ static _...
53c8ada2eaa5e2dd1e0a459605fdc9c6697c2ef00a33ae8d379996c9fd9b15a8
TypeScript
4,548
90
import { test, expect } from '@playwright/test' import { defaultMockData, installMockBackend, seedShellState, VIEW_PATH } from './fixtures/mock-backend' test('reports an error and shows an empty tree when the results endpoint errors', async ({ page }) => { await seedShellState(page) await installMockBackend(page) ...
dc7d1c6e6bb2d5bba6e3f0764540531b438e805669a19734e28f3d2ba20eba48
TypeScript
4,641
101
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, viewPathFor, UNSCOPED_VIEW_PATH, TASKS_PATH, } from './fixtures/mock-backend' // The four services base-ui's httpClient rewrites onto /project/<short_id>/ // (its PROJECT_SCOPED allowlist). Matched...
1b7c0184ffd467fc782aae2575e91d36aed1167fef84c0a74d4cb89bac366ac4
TypeScript
4,685
123
import { test, expect } from '@playwright/test' import { MENU_ROUTE, installMockBackend, stubView, defaultMockData } from './fixtures/mock-backend' test.beforeEach(async ({ page }) => { await installMockBackend(page) await stubView(page, '/data-gallery-ui') await stubView(page, '/data-upload-ui') }) test('rende...
6c2acd35fee13acd5ee31b33df69f141a96d82df674dec9c0212ecd37e186c3e
TypeScript
4,793
109
import { test, expect } from '@playwright/test' import { boot, prime, settle, defaultMockData, TASKS_PATH, APPS_PATH } from './fixtures/mock-backend' function row(page: import('@playwright/test').Page, name: string) { return page.locator('.v-list-item').filter({ hasText: name }) } test('the Tasks route shows only w...
0a561eb8e24b418ed30bd70a4b3732e2c45da168c0304426df92c0ca88935813
TypeScript
4,877
147
import axios from 'axios' import type { ArtifactPruneResponse, DataEntity, EntityIndexSnapshot, MetadataEntry, MetadataFieldListResponse, MetadataFieldValuesResponse, MetadataSchemaRecord, PaginatedResult, QueryRequest, QueryResponse, QueryIndexRequest, } from '@/types/domain' const configuredBas...
32ca4bc2177a74c3fe3d167db5c9038d47f08b38190243737730e4fe91a5a578
TypeScript
4,964
122
import { test, expect, type Locator } from '@playwright/test' import { installMockBackend, stubView, defaultMockData } from './fixtures/mock-backend' // toBeVisible() passes on line-clamped text (a non-empty bounding box is // enough), so assert the role line's box lies fully inside the option's box — // Vuetify's one...
7f99b35ec1e862be218b1b49acb7bf8a1ffc0b8381a3795ffe2452651676f55b
TypeScript
5,040
131
/** * SandboxRunner Durable Object — TS analogue of sandbox_runner.py. * * Runs `client.beta.sessions.events.toolRunner()` (the session-side dispatch * loop: reconcile + event stream + tool execution + result posting) against an * in-isolate fake tool registry. `SessionToolRunner` is dispatch-only — the * work-it...
1d31c18d9c647ecaa33f84c20fb2439196fcafa5bbaffbc6f2576cf703a717d8
TypeScript
5,055
135
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('opens the add-remote dialog with Manual and Paste Config tabs', async ({ page }) => { await seedShellState(page) await installMockBackend(page, { ...default...
2c6e48affe7bea28da24c09a4634a180899d19ff63d6ea22e4f0bc5dc0b7c0a7
TypeScript
5,150
75
import { test, expect } from '@playwright/test'; test.use({ ignoreHTTPSErrors: true }); test('Login', async ({ page }) => { await page.goto('$KAAPANA_TEST_INSTANCE_UI'); await page.getByRole('textbox', { name: 'Username or email' }).click(); await page.getByRole('textbox', { name: 'Username or email' ...
1bf3942ef2224e268e4c9f81147fcc6b3d91d9ade6ec380b2fa1691c33e38932
TypeScript
5,154
152
import { httpClient } from '@kaapana/base-ui' const KAAPANA_NOTIFICATION_ENDPOINT = import.meta.env.VITE_APP_NOTIFICATIONS_API_ENDPOINT || '/notifications' export type NotificationID = string export interface KaapanaNotification { topic: string title: string description: string icon: string link: string ...
d8c0674f56360144099832138eab9e0375949754646b246d2a5ef00498105615
TypeScript
5,177
141
import { test, expect } from '@playwright/test' import { defaultMockData, installMockBackend, seedShellState, VIEW_PATH, } from './fixtures/mock-backend' // Checking a folder's checkbox opens every result file in its subtree; unloaded // descendants (and continuation pages) are fetched first, >10 results asks ...
30a9c69dee8c15225da478bd8182eadcf9cb63009eea0f566018a9044baa724b
TypeScript
5,276
140
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' import type { AxiosResponse } from 'axios' // The reload-on-expired-session helper carries a module-level once-guard, so // each case loads a fresh copy of the module (vi.resetModules + dynamic import). describe('http response interceptor (expire...
d3711c5b5a331acbb30dbc51afaf209354c580af46648f525061bd95a5bd5393
TypeScript
5,306
157
import http from '@/api/http' const KAAPANA_NOTIFICATION_ENDPOINT = import.meta.env.VITE_APP_NOTIFICATIONS_API_ENDPOINT || '/notifications' export type NotificationID = string export interface KaapanaNotification { topic: string title: string description: string icon: string link: string id: string t...
363e15f21e50f36fb79b841e380967db788d046ef7dd6d73538ae909cbe8782d
TypeScript
5,368
117
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, defaultMockData, defaultProject, viewPathFor, UNSCOPED_VIEW_PATH, VIEW_PATH, } from './fixtures/mock-backend' // The four services base-ui's httpClient rewrites onto /project/<short_id>/ // (its PROJECT_SCOPED al...
046bd6e124e0d9eacc27c1f5bcebac56ab936c7a647f96f491b71324f951cdca
TypeScript
5,391
133
import { test, expect } from '@playwright/test' import { installMockBackend, VIEW_PATH } from './fixtures/mock-backend' const JOB = /\/kaapana-backend\/client\/job(\?|$)/ const TASKINSTANCES = /\/kaapana-backend\/client\/get-job-taskinstances/ // job 101 (dag-alpha) is a local job (instance_name === owner) -> abort/r...
2c9bda8da17673b0658fb4cca9f255ee943b938f6e62a2364b1f7112dd34f00d
TypeScript
5,408
108
import { test, expect } from '@playwright/test' import { installMockBackend, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' test('renders the workflow list with a mix of states', async ({ page }) => { await installMockBackend(page) await page.goto(VIEW_PATH) await expect(page.getByText('Workflow Li...
e0c25ca819297bde37777f1f83a8a76b0715f289eaa8f429101a5772da81d09c
TypeScript
5,448
117
import { test, expect } from '@playwright/test' import { dialog, dismissWithEscape, openView, row } from './fixtures/helpers' // Cross-cutting rules of the Kaapana frontend design guidelines that no single // feature owns. The feature specs cover what each control does; these cover // how every control on the page mus...