sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
2c40d5a6b06f9557ac725417118b88f04da71654061eb7fe9d72dcc1122c1a34
TypeScript
1,052
37
import { createRouter, createWebHistory } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' const router = createRouter({ // The document may carry the /project/<short_id> prefix (see // @kaapana/base-ui); the history base must include it so in-app // navigation stays under the pr...
1a4462efd95a6e8791f6745eab6c3537d1bdf1cf5476b523fe39e5a8ef59fec4
TypeScript
1,066
38
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' const routes: RouteRecordRaw[] = [ { name: 'workflows', path: '/', component: () => import('@/views/Workflows.vue'), meta: { title: 'Workflow List' }, }, ...
5377a3c4514be361eb16b8016ba18be4ad433ad3a2061876e9663b187e5f9d5d
TypeScript
1,074
46
import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vuetify from 'vite-plugin-vuetify' import vueDevTools from 'vite-plugin-vue-devtools' export default defineConfig(({ command }) => ({ base: "/extension-manager-ui", plugins: [ vue(), ...
261a2d3e588cdbe1602f54c3cc9d7e7aae713d165438a00f74e07983657f68fb
TypeScript
1,079
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4301 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
29298c73554cf7ef1b898134ea0e765a49c74001b85dedb01711403fc40d8757
TypeScript
1,079
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4307 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
3078a165ec093a30fab0059469a1a8489fb0a4798f9fd2fbaed7fcca5f41b463
TypeScript
1,079
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4302 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
d74744468fe2d483c1fd1161804e8b71d6320fe22d496a2b408c7bd85460fe7d
TypeScript
1,079
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4300 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
6556290b2ec74ff028774fbd9200e61a76a2495963f23eb6d88143d120069ec2
TypeScript
1,088
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4305 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
cbcec88a7c811dde73075786d65cd1b12b9b7997ac79f5bea07b824e1a06d4de
TypeScript
1,096
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4304 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
ed1072b5827d28f71e3af73ffed1a8f400574b12872fef70147aec6ae7d30989
TypeScript
1,102
30
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. const PORT = 4308 export default defineConfig({ testDir: './tests/e2e', fullyParallel: true, forbidOnly: !...
fdcd46be3f04bf2851c91fee4329ab4854e8d74d1ce5e1c4983fbe4155b25ec3
TypeScript
1,103
35
import { defineStore } from 'pinia' export const useDatasetsStore = defineStore('datasets', { state: () => ({ activeTags: [] as string[], multiSelectKeyPressed: false, selectedItems: [] as string[], detailViewItem: null as string | null, validationResultItem: null as string | null, showValida...
037ac44a3acfc8ad9b9bf0fe3ab8c1c4b5fc3231225be85b3a37beea84789d45
TypeScript
1,104
39
import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' const routes: RouteRecordRaw[] = [ { name: 'data-upload', path: '/', component: () => import('@/views/DataUpload.vue'), beforeEn...
dc7e3525936690e4298899274e61df58bf96b07cc4ec7ddba8fdb7a72d5f3cf9
TypeScript
1,110
38
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' const routes: RouteRecordRaw[] = [ { name: 'workflow-execution', path: '/', component: () => import('@/views/WorkflowExecution.vue'), beforeEnter: (to, from...
a9b7ff7a69c0ca456a5e6aac17942d71c5826acd65eb8ab461a066ae590f254d
TypeScript
1,113
31
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. // results-ui = 4306. const PORT = 4306 export default defineConfig({ testDir: './tests/e2e', fullyParallel:...
267e6012fb1fbba3e3e2eda7bdfb0021d88cf98d6d5de590e5012ae8c261d82e
TypeScript
1,125
31
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. // workflow-list-ui = 4309. const PORT = 4309 export default defineConfig({ testDir: './tests/e2e', fullyPar...
938921975056d86ddd6ffd88b74605659c1ab7e263ddeb268992a84953eb5c43
TypeScript
1,132
28
import { test as setup, expect } from '@playwright/test'; import path from 'path'; // Must match AUTH_FILE in playwright.config.ts — stored relative to that file const AUTH_FILE = path.join(__dirname, '..', 'playwright', '.auth', 'kaapana.json'); /** * Logs in as the kaapana admin and persists the browser session to...
1776d98788c41c9f94528191be29c6f28cd2b7f56bf23ba407ab60a8c94c7497
TypeScript
1,143
32
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') }) test('loading overlay covers the iframe until its content loads', async ({ page })...
4c39d2e38c3a775ab6cd81d70a312e05b62e58809f02571ec8fcbfb41843ebef
TypeScript
1,162
40
import DockLocation from "./DockLocation"; import DragDrop from "./DragDrop"; import DropInfo from "./DropInfo"; import { I18nLabel } from "./I18nLabel"; import Action from "./model/Action"; import Actions from "./model/Actions"; import BorderNode from "./model/BorderNode"; import BorderSet from "./model/BorderSet"; im...
95d10984b6ccbbd2db723d355b9a65423709de0ccbd8a7742c39c8f898fa8e12
TypeScript
1,190
53
// Plugins import vue from '@vitejs/plugin-vue' import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' import ViteFonts from 'unplugin-fonts/vite' // Utilities import { defineConfig } from 'vite' import { fileURLToPath, URL } from 'node:url' // https://vitejs.dev/config/ export default defineConfig({ bas...
21c2daf1f2acbf4c6fe51a4d1ce42b1d50ad083935f0df261505c97387475910
TypeScript
1,207
31
import { test, expect } from '@playwright/test' import { installMockBackend, defaultMockData, viewPathFor, UNSCOPED_VIEW_PATH, VIEW_PATH, } from './fixtures/mock-backend' // The /project/<short_id> document prefix IS the project selection: API calls // must be scoped to it (not to a default or any shared sta...
4cca9dabe78a466ce19dd12dc8d77890b1c0123927e7bbfb52fc8a600af9aa29
TypeScript
1,208
43
// policyData comes from GET /kaapana-backend/open-policy-data. export interface PolicyEndpoint { path: string methods: string[] } export interface PolicyData { endpoints_per_role?: Record<string, PolicyEndpoint[]> } export interface OpaUser { roles: string[] } /** Check if a role is authorized to access th...
1e275b8a5048d86e088de128542f1349acfef828c0882ca3da4da2a641e481d5
TypeScript
1,235
53
import 'vuetify/styles'; import { createVuetify } from 'vuetify'; import { aliases, mdi } from 'vuetify/iconsets/mdi'; import colors from 'vuetify/util/colors'; import * as components from 'vuetify/components'; import * as directives from 'vuetify/directives'; // Stock light/dark palettes with only the brand colors ov...
cdc06241804c81ac9828b883a9e9fb5ad86fa76fbc937cc59777285e495f0218
TypeScript
1,260
49
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' import { useCommonDataStore } from '@/stores/commonData' const routes: RouteRecordRaw[] = [ { name: 'home', path: '/', component: () => import('@/views/Home.vue...
41a06a4b0a6c8886030fcb9046747ebb9c98ce2f2769d3350654f40bb4a97840
TypeScript
1,263
26
import { test, expect } from '@playwright/test' import { installMockBackend, TASKS_PATH } from './fixtures/mock-backend' // Regression class that cost data-gallery-ui a blank page: every other spec // seeds localStorage["settings"], so only this one sees a fresh-profile boot — // an unguarded JSON.parse in App.vue's s...
39a055e40845db40cd58faaf0958e3cf64a4a35341c129775e45478ec47ec923
TypeScript
1,267
44
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' const routes: RouteRecordRaw[] = [ { path: '/', redirect: '/tasks' }, { name: 'tasks', path: '/tasks', component: () => import('@/views/ActiveApplications.vue...
4ebaf7bf9c10848c960e6d613b3657c4030e4546e707536c9e731e917bf3fd54
TypeScript
1,269
32
import { test, expect } from '@playwright/test' import { installMockBackend, defaultMockData, VIEW_PATH } from './fixtures/mock-backend' const WORKFLOWS = /\/kaapana-backend\/client\/workflows(\?|$)/ test('search sends the query to the backend as a "search" param', async ({ page }) => { await installMockBackend(pag...
9621531f5ebd246016bf50d9b02001f2a1bbe32d58d3374023f8f706a9f0aedf
TypeScript
1,269
39
import { CoreSetup, CoreStart, Plugin } from '../../../src/core/public'; import { WorkflowTriggerPluginSetup, WorkflowTriggerPluginStart, WorkflowTriggerSetupDependencies } from './types'; import { BaseVisTypeOptions } from 'src/plugins/visualizations/public/'; import { PLUGIN_NAME } from '../common'; // @ts-exp...
d7441c5e2d877b1d73ee7026e23981d21727c76f023531d26452a70bf1a55f59
TypeScript
1,272
39
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { getProjectBase, useAuthStore } from '@kaapana/base-ui' import { usePolicyStore } from '@/stores/policy' const routes: RouteRecordRaw[] = [ { name: 'extensions', path: '/', component: () => import('@/views/Extensions...
8fbb94f0c91883ac73754c350d29583791c3263542e917c38ade5dad7ccecd96
TypeScript
1,273
31
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309, base-ui 4310. // base-ui has no app of its own; its suite drives the Storybook stories. const PORT = 4310 export...
47af56132e42e714568bbbfd2731710903894b27c2eeee13132f8b37a367134b
TypeScript
1,277
45
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under /project/<short_id>/ like the // platform does. fu...
e093056a9b2c515ed710089430671316fb7f19d30d45a383a8993e06b1587cf4
TypeScript
1,282
46
import axios from 'axios' import { prefixProjectScope } from '@/utils/projectScope' const backendClient = axios.create({ baseURL: import.meta.env.VITE_KAAPANA_BACKEND_URL || "/kaapana-backend/", timeout: 10000, headers: { 'Content-Type': 'application/json', }, }) // /client/dataset(s) both Dep...
6cd2f8a91933793b7e711ee64508711846e958eda49018221e6f8ab40c635711
TypeScript
1,295
54
import { onBeforeUnmount, onMounted } from 'vue' import { shouldIgnoreHotkeyTarget } from './utils' interface QueryHotkeyHandlers { focusBuilder: () => void copyQuery: () => void pasteQuery: () => void resetQuery: () => void canReset: () => boolean } export function useQueryHotkeys(handlers: QueryHotkeyHand...
a2e266675237606487440fd3f1606c008610772b6203a4579ba18fbdbb77033e
TypeScript
1,300
45
import { useAuthStore } from '@/stores/auth' // One module-level idle-logout timer shared by the whole shell so activity // anywhere — including inside same-origin iframes — resets the same countdown. // Activity inside an iframe never bubbles to the parent, so IframeHost attaches // listeners to each iframe document ...
4062354b2868def85cb02c1f51c1ccc908304d2a5343e3a13ca0bfbcae328cbf
TypeScript
1,303
42
import type { CreateRepositoryRequest, Repository, UpdateRepositoryRequest, } from '@/shared/types/apiSchemas' import type { RepositoryFormState } from '@/features/repositories/types' export function createFormState(repository?: Repository): RepositoryFormState { return { name: repository?.name ?? '', ...
a655d162728c8b94ad47ba599cf541175b03cf97528ca2c38dacee05fc223a07
TypeScript
1,308
35
import { defineConfig, devices } from '@playwright/test' // Port registry for the mock-backed e2e suites (one port per app so suites can // run in parallel on one machine): portal-ui 4300, views 4301-4309. // extensions-ui = 4303. const PORT = 4303 // This view is served under a non-root base (`/extensions-ui/`), so ...
5452422e9a4109ea175cc7cceb42c0237ffcf122abbf0aaa95241032d2705538
TypeScript
1,311
45
import Vue from 'vue' import request from '@/request' import AuthService from '@/common/auth.service' const kaapanaApiService = { helmApiPost(subUrl: any, payload: any, timeout: any = 10000) { return new Promise((resolve, reject) => { request.defaults.timeout = timeout request.post('/kube-helm-api' ...
094c6b09c4ec3ae35d22c94bf5d46a1a6adfb816db9272434ee316d9ef1c4d8c
TypeScript
1,314
44
// Client-side check against the OPA policy data (GET /kaapana-backend/open-policy-data). // portal-ui keeps an identical copy in src/utils/opa.ts; change both together. export interface PolicyEndpoint { path: string methods: string[] } export interface PolicyData { endpoints_per_role?: Record<string, PolicyEnd...
734fa8224c622a0361f48de1d949cc3ae9d07e12d70b9829759e5c90040c4446
TypeScript
1,344
37
import http from '@/api/http' export interface AiiUser { id: string realm_roles: string[] } export interface Project { id: string | number name: string short_id?: string is_archived?: boolean /** The caller's role in this project (see fetchProjects for the source). */ role_name?: string } export asyn...
8c5dcaf87065b1d073e16d4a9f5bba5ed3fd07a2ee65b7f099bf58ab771b46a8
TypeScript
1,350
49
import { defineStore } from 'pinia' import { fetchUserinfo, logout as authLogout, type UserinfoJwt } from '@/api/auth' import { useViewStateStore } from '@/stores/viewState' export interface User { username: string roles: string[] groups: string[] id: string } function jwtToUser(jwt: UserinfoJwt): User { co...
a75f76bfe73243d318551581f1bf12fa600ccb2741073db6221511fdd4695912
TypeScript
1,351
38
import { expect, type Page } from '@playwright/test' /** * Open one story on its own, without Storybook's manager UI around it, so the * story is the top-level document and focus assertions work as in the views. */ export async function story(page: Page, id: string) { await page.goto(`/iframe.html?id=${id}&viewMo...
2b26f424e19667c78fcf8c148fa6552c9c8b0563a4d5abb145bac95c6a1f309d
TypeScript
1,355
46
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under...
1e2d2b3a72c843a2e68025f69c695f02fb1fbac10db27c9b1b2470e7ccc75a70
TypeScript
1,359
44
import { usePermissionsStore } from "@/permissions/permissions.store"; import { isAdminUser } from "@/common/userAccess"; import vuexStore from "@/common/store"; export function usePermissions() { const permissionsStore = usePermissionsStore(); /** * Check whether the current user can perform an action on a pr...
0ac1bfbe3775d4e96b392a3ce22c2657bd98b9b99a84cfbc7651b1b5e1e09383
TypeScript
1,370
56
import type { CleanupStatus } from '@/types/schemas' export function statusColor(status: string) { switch (status) { case 'Created': return 'grey' case 'Running': return 'blue' case 'Scheduled': return 'blue-grey' case 'Pending': retur...
8c2e0699865ff8cb16cfb7cbc45dec69d1b14e8de46bc542433e5e94692ca0d5
TypeScript
1,379
36
// Semantic action to MDI icon name. // // Icon *delivery* is already uniform across the platform — @mdi/font with // vuetify/iconsets/mdi everywhere — so this fixes only icon *choice*, where the // same action was drawn with different symbols in different views: `delete` // alone appeared as four different names. // /...
5842751e478fb2c9572dc46404e5363c2ce744f0146559a5cf1f9c5728992fb2
TypeScript
1,386
46
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under /project/<short_id>/ like the // platform does. fu...
1de883388d82d30005c015331432ad0e3d0a2305a334e9a70162c1a47da81f9e
TypeScript
1,390
33
import type { InternalAxiosRequestConfig } from 'axios' // Inlined mirror of @kaapana/base-ui's selectedProject/httpClient helpers — // this view does not depend on the library, so keep these in step with it. // // The shell serves the view under /project/<short_id>/; the document URL is // the single source of the pr...
ae5f83e038bf1c7deed95e182baf9d6f437dc35032c60c31867ecc716fd4b7eb
TypeScript
1,392
30
import { test, expect } from '@playwright/test' import { defaultMockData } from './fixtures/mock-backend' import { collectPageErrors, openView } from './fixtures/helpers' // Regression class that cost data-gallery-ui a blank page: installMockBackend // seeds localStorage["settings"] for every other spec, so only this ...
68ae1662768d3ac71003482a40817f8dec925e83ffaf1485093a9bc2b670c3cf
TypeScript
1,396
37
import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // Library build: an ESM bundle consumers import. The peers (and the optional // @koumoul/vjsf) must never be bundled — vite lib mode does not externalize // automatically, so they are listed under r...
a7d7b9a76860a0fb5e71ab3601f45261648b7052241a1acdc09c8078c12bd70f
TypeScript
1,403
35
export { default as ConfirmDialog } from './components/ConfirmDialog.vue' export { default as ErrorDetailsDialog } from './components/ErrorDetailsDialog.vue' export { HelpIcon } from './components/HelpIcon' export { apiErrorDetail, apiErrorInfo, apiErrorText, formatApiErrorInfo, type ApiErrorInfo, } from './u...
f627144a6e848c6c4363ee53102652cbb4d968fd3451140c32d49205d672bef3
TypeScript
1,403
39
import { httpClient } from '@kaapana/base-ui' const KAAPANA_BACKEND_ENDPOINT = import.meta.env.VITE_APP_KAAPANA_BACKEND_ENDPOINT export interface DashboardData { metrics: Record<string, number | string> histograms: Record<string, { items: Record<string, number> }> } /** * Patient/study/series counts + histogram...
e4a316fde75c77b17532ada10867b1e18ed122dc01874a6d6a7d8e904c09348b
TypeScript
1,408
54
import { defineStore } from 'pinia' import AuthService, { type UserinfoJwt } from '../utils/authService' export interface User { username: string roles: string[] groups: string[] id: string } const startWithBackSlashRgx = /^\//i export const useAuthStore = defineStore('auth', { state: () => ({ isAuthen...
b63700d969c462a8ea611340ec6b811af995a5544e38151439580a6a3c56445f
TypeScript
1,409
63
import 'vuetify/styles' import { createVuetify } from 'vuetify' import { aliases, mdi } from 'vuetify/iconsets/mdi' import colors from 'vuetify/util/colors' const kaapanaThemeLight = { dark: false, colors: { primary: '#005BA0', secondary: '#5A696E', accent: colors.shades.black, error: colors.red.da...
06d1b66929c8566cb81a51d3be02d6f55cef1e7fde292b6ce8b6e447eee05238
TypeScript
1,425
65
// Plugins import Components from 'unplugin-vue-components/vite' import Vue from '@vitejs/plugin-vue' import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' import ViteFonts from 'unplugin-fonts/vite' import VueRouter from 'unplugin-vue-router/vite' // Utilities import { defineConfig } from 'vite' import { f...
ed273ed907638a8a10d92df2a7758274359ea3dbee5b08cbfc00c1fccb5bb12f
TypeScript
1,451
47
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under...
26309b7d1b9d9e34806b3ef4053e44884a9addf71bbfc631a5371c371ebf694c
TypeScript
1,453
36
import { test, expect } from '@playwright/test' import { bootGallery, makeDefaultMockData, viewPathFor, UNSCOPED_VIEW_PATH, VIEW_PATH, } from './fixtures/mock-backend' // The /project/<short_id> document prefix IS the project selection: API calls // must be scoped to it (not to a default or any shared state)...
3447ac360aadf1a215725628227d08f8e14faa1284ef3c8c0d0bb21c3bc15847
TypeScript
1,457
46
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { ref } from 'vue' import { VBtn } from 'vuetify/components' import ConfirmDialog from './ConfirmDialog.vue' const meta: Meta<typeof ConfirmDialog> = { title: 'Library / ConfirmDialog', component: ConfirmDialog, render: (args) => ({ components...
f17991b8f5418410786433f57e6078713305ef5ae2f606bc746d47727819191b
TypeScript
1,464
47
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vuetify from 'vite-plugin-vuetify' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under /project...
fe31de55d2209a7e4887e5f78b94bdb657ec4bca852ed5ead292b103818a1258
TypeScript
1,512
54
import Vue from 'vue' import Router from 'vue-router' import store from '@/store' import { CHECK_AUTH } from '@/store/actions.type' import routes from './routes' Vue.use(Router) // Guard the route from unauthorized users. function guardRoute(to: any, from: any, next: any) { if (!store.getters.isAuthenticated) { ...
98aa291c241b5d39d69cdea9a4c18d42900aa6eac1c5034b5de7af533e91c3c3
TypeScript
1,527
48
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' import vuetify from 'vite-plugin-vuetify' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers ...
f4857de5a8275d13ab8ee25bfe820c6339c43aacde060145c7d9d995d75c355d
TypeScript
1,530
39
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('structured mode requests structured series and...
fc57f688ff7c3edf0b732de5001d4e4037ea03607700529a690f2b8a84eaf8f6
TypeScript
1,530
72
import AuthService from '@/common/auth.service' import { LOGOUT, CHECK_AUTH, } from '@/store/actions.type' import { SET_AUTH, PURGE_AUTH, SET_ERROR } from '@/store/mutations.type' const defaults = { error: null, isAuthenticated: false, accessToken: null, refreshToken: null, user: {}, } const state = Ob...
f2916602e43627e72769ff8955b2c633ddd5b5a1920ce857a672147b85b2412d
TypeScript
1,531
66
/** * router/index.ts * * Manual route configuration for project management UI */ // Composables import { createRouter, createWebHistory } from 'vue-router' import Index from '@/pages/index.vue' import Project from '@/pages/project.vue' import RoleRights from '@/pages/role-rights.vue' // Define routes manually to...
50999484444d11e085de48a015211f5ce90d9439d82a17148fb3abd4c2473f51
TypeScript
1,540
40
import { test, expect } from '@playwright/test' import { installMockBackend, seedShellState, VIEW_PATH } from './fixtures/mock-backend' test.beforeEach(async ({ page }) => { await seedShellState(page) await installMockBackend(page) await page.goto(VIEW_PATH) await expect(page.getByText('nnunet-training-230101'...
6165d359cf57caf72b373e197c8add23511a7e797eecd2fd77475e109c4c621b
TypeScript
1,543
69
import 'vuetify/styles'; import { createVuetify } from 'vuetify'; import { aliases, mdi } from 'vuetify/iconsets/mdi'; import colors from 'vuetify/util/colors'; import * as components from 'vuetify/components'; import * as directives from 'vuetify/directives'; const kaapanaThemeLight = { dark: false, colors: { ...
aed07b5b8befcf9fbec8aa97f5c60ef64d2df63d84e9c695f402f02e19393019
TypeScript
1,583
64
import { Widget } from './model'; import {BorderNode} from "./types"; /** * Transforms a widget configuration into a flexlayout node descriptor */ export function widget2Node (configuration: Widget) { const { id, name, component, status, panelName, enableClose = true, ...others } = configuration; return { id...
eef19a78f5a6d4b622717659857ba23a73085c9c108b3751ccbc4292985ddc34
TypeScript
1,587
85
// Backend-mirrored from extension-manager-service. // These should match the API response shapes. export interface Repository { name: string description?: string repository_url: string id: string } export interface CreateRepositoryRequest { name: string description?: string repository_url: string use...
93cbd79fe56b332a2340e3713ce30175294618ce5b6c3794e69673e87774aab2
TypeScript
1,598
43
import { defineStore } from 'pinia' // Module-level: a resolver function is not state worth tracking. let pendingResolve: ((leave: boolean) => void) | null = null // Unsaved in-memory state of the embedded view, reported via the // kaapana:view-dirty postMessage (handled in App.vue); confirmLeave() gates // state-des...
77a1497ec1fcc3c76c313331eb16e2fe9990109c466235592bd46c80664480b1
TypeScript
1,609
41
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 page.route('**/jsons/commonData.json', (r) => r.fulfill({ status: 20...
c75ca9fdb7ea258912ad5f7fd111a39b94df252558601faabbbf1ee6a7533fba
TypeScript
1,611
41
import { test, expect } from '@playwright/test' import { openView, row } from './fixtures/helpers' test.beforeEach(({ page }) => openView(page)) test('search filters the list down to matching extensions', async ({ page }) => { await page.getByRole('textbox', { name: 'Search' }).fill('JupyterLab') await expect(ro...
bb38c7f43a4e859e1e3dc967d30bf2bfe8b2407e9590626632fbb5f6d76b2ca3
TypeScript
1,626
53
import { defineStore } from 'pinia' const MIN_COLUMNS = 1 const MAX_COLUMNS = 10 function clamp(value: number): number { return Math.min(Math.max(value, MIN_COLUMNS), MAX_COLUMNS) } export const useLayoutStore = defineStore('layout', { state: () => ({ entityDefaultColumns: 1, entityCustomColumns: null as...
148f0a42af955e25518bee792f0624cc9585714f6b49ef2173150de1b560dc64
TypeScript
1,668
48
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { note } from './storyNote' // The platform type scale is Vuetify's, used through its classes. This page // exists so a hierarchy can be chosen by looking rather than by guessing which // class is one step down. ...
082d80b2ed59e4f3e97100025405dc6b36cd8b85a4471e837d57ab810217b0f3
TypeScript
1,689
50
import { test, expect } from '@playwright/test' import { installMockBackend } from './fixtures/mock-backend' // The same-host login 302 can render Keycloak inside the shell's iframe; // IframeHost must detect that and reload the whole window out of it. test('an iframe landing on the Keycloak auth path triggers a full-...
88941a26e5f451ba97300f405b1d1d039251298f865558463052aac5448f445e
TypeScript
1,694
55
// Wire contract of GET /portal-api/menu — keep in sync with portal-api. export interface DevLink { label: string /** Absolute path of a service's API docs, e.g. "/kaapana-backend/docs" */ path: string } export interface MenuEntry { type: 'entry' /** Stable route slug used in /:section/:entry (or /:entry for...
9c2ea4f17745689fc26cf7a947ca4e3179a92525dcd80c5d1d5b0e3c09f453fa
TypeScript
1,714
28
/* eslint-disable */ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { ActiveProjectApplications: typeof import('./src/components/ActiveProjectApplications.vue')['...
62f0ac3132556d14dd7366495df6eff760314510167f9d417cf04f4db09e7f24
TypeScript
1,723
44
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { VBtn } from 'vuetify/components' import { useTheme } from 'vuetify' import { useShellSettings } from './useShellSettings' // A same-document localStorage write never fires a 'storage' event, so the // buttons d...
0ff5f41189fd5662a2ce3ce0c63bab27041a4116bc126bc1adde0a28dcb2fed9
TypeScript
1,741
41
import { test, expect } from '@playwright/test' import { boot, openedUrls, projectPath } from './fixtures/mock-backend' function row(page: import('@playwright/test').Page, name: string) { return page.locator('.v-list-item').filter({ hasText: name }) } test('a ready app opens its path in a new tab without a dialog',...
f85ba36b6b90314e771735d10f2bbd987f1df6303aad6d7d1ff0208ecfc11ca5
TypeScript
1,743
41
import { test, expect } from '@playwright/test' import { bootView, selectDag } from './fixtures/mock-backend' // Pins processDefaultsFromSettings: settings.workflows overrides + hideOnUI. test('schema defaults populate every field', async ({ page }) => { await bootView(page) await selectDag(page, 'mock-all-fields...
8ee3fe05da0d425f4bc125723e86bf01f68a9a93e0479d1b6ae09ed52b04bd33
TypeScript
1,748
47
import { describe, it, expect, vi, beforeEach } from 'vitest' import { mount } from '@vue/test-utils' import { createPinia, setActivePinia } from 'pinia' import { createVuetify } from 'vuetify' import * as components from 'vuetify/components' import * as directives from 'vuetify/directives' import SettingsDialog from '...
a7620cd8941917c0d8039b72b691b0591a450cd2be0b0eaa96555027a3d504c4
TypeScript
1,779
42
import { test, expect, type Request } from '@playwright/test' import { bootGallery, makeDefaultMockData, VIEW_PATH } from './fixtures/mock-backend' // POST that fetches the series list (loadPatients), as opposed to the GET // single-series metadata calls. function isSeriesListRequest(req: Request): boolean { return ...
28d2a3b24d77e44a52b3cc37b10b45a9f7065ef174bed8e4e028acdaa7a6f1f6
TypeScript
1,789
61
/** * plugins/vuetify.ts * * Framework documentation: https://vuetifyjs.com` */ // Styles import '@mdi/font/css/materialdesignicons.css' import 'vuetify/styles' // Composables import { createVuetify } from 'vuetify' import { vuetifyThemeConfig, vuetifyDefaults } from '@/theme/kaapana-theme' function readStoredTh...
8e53ca2654d9b83a6153e5e5492692b7d35b9610b703e0f168f41a4994c46c69
TypeScript
1,794
57
/** * Kaapana design tokens — single source of truth for colors and defaults. * * TO USE IN any micro-frontend (Vue 3 / Vuetify 3): * import { vuetifyThemeConfig } from './kaapana-theme' * createVuetify({ theme: vuetifyThemeConfig }) * * CSS custom properties version (for non-Vuetify apps): * --kaapana-pr...
34963c7daba0bbb70040b1ae716958ef7ff07c4ae00586ea3fafb3a2315b7a53
TypeScript
1,800
80
import Model from "../src/model/Model"; import Actions from "../src/model/Actions"; import DockLocation from "../src/DockLocation"; describe("Tree", function() { it("adds a tab to center of empty tabset using add action", function() { const model = Model.fromJson( { global: {}, ...
c11ce50ae7fd5f02edb5deebdc04e1a25698e9e848775245d2015879983ec4a6
TypeScript
1,800
53
import type { AxiosError } from 'axios' import { httpClient } from '@kaapana/base-ui' const KAAPANA_BACKEND_ENDPOINT = import.meta.env.VITE_APP_KAAPANA_BACKEND_ENDPOINT export interface Measurement { metric: string value: number timestamp: string } /** * Run a PromQL query through the kaapana-backend Promethe...
557d2075ee174a723ad42191dacfef68a93b4c84316762a613a646965e5042aa
TypeScript
1,807
51
import { onBeforeUnmount, onMounted, ref, type Ref } from 'vue' import { useTheme } from 'vuetify' import { KAAPANA_THEME_DARK, KAAPANA_THEME_LIGHT } from '../utils/vuetifyTheme' // Follow the shell-owned UI settings (same-origin localStorage["settings"]): // applied at setup and live via the "storage" event the shell...
c19947705edd674be75cb5caff2a6f1e5b81588d9032f74a156a17dd1bbf57a1
TypeScript
1,841
41
import { test, expect } from '@playwright/test' import { installMockBackend, VIEW_PATH } from './fixtures/mock-backend' // Regression class that cost data-gallery-ui a blank page: every other spec // seeds localStorage["settings"], so only this one sees a fresh-profile boot — // an unguarded JSON.parse in App.vue's se...
570a339cee2eae950b9f3733b4a38ff5c48803d58d84787e6c01b492eb4cbef9
TypeScript
1,869
45
import { test, expect } from '@playwright/test' import { boot } from './fixtures/mock-backend' function row(page: import('@playwright/test').Page, name: string) { return page.locator('.v-list-item').filter({ hasText: name }) } test('finishing an interaction posts the release name and removes the row', async ({ page...
1bf8d6fef794391589bad4b9780647c7b73d0dae83f56107908f205433f5a29a
TypeScript
1,875
47
import { describe, it, expect } from 'vitest' import { checkAuthR, checkRoleAuthR, type PolicyData } from '@/utils/opa' const policyData: PolicyData = { endpoints_per_role: { admin: [{ path: '.*', methods: ['GET', 'POST'] }], user: [ { path: '^/data-gallery-ui/', methods: ['GET'] }, { path: '^/la...
78d1fb66dbfc7bdc30928f0190e49affccb1e56ffa29414c8c11186a333bbb97
TypeScript
1,878
51
import type { Meta, StoryObj } from '@storybook/vue3-vite' import { defineComponent, h } from 'vue' import { VCard, VCardText, VCardTitle, VCol, VRow } from 'vuetify/components' import { note } from './storyNote' // This is the handbook's initial proposal. The reference sets the values // explicitly so the proposed sp...
887f5535e06504b34afc866124a4d6d2f85e375845985c28c6eb665ae4b6a9da
TypeScript
1,898
81
import AttributeDefinitions from "../AttributeDefinitions"; import Orientation from "../Orientation"; import Model from "./Model"; import Node from "./Node"; class SplitterNode extends Node { static readonly TYPE: string = "splitter"; /** @hidden @internal */ constructor(model: Model) { super(mode...
99a9fa0dcaaf3dae02dabf0789de3daa613bc2f83d25df3e9aa65cf06776425a
TypeScript
1,899
65
import {TabsetPosition} from "../model"; // @ts-ignore import * as FlexLayout from '@metacell/geppetto-meta-ui/flex-layout/src/index'; /** * Create a new tab set. * * @param model * @param {string} tabsetID the id of the tab set * @param position * @param weight * @private */ export function createTabSet(mod...
148732bce6dce8bb41127f482843c1334a18d8dc39c4625f06bc54432c904df7
TypeScript
1,931
64
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vueDevTools from 'vite-plugin-vue-devtools' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under...
5d8345b2dfbb692fe3a36f08cc3160b728beeca5b9fa5bdeab78b27e655e2a49
TypeScript
1,934
50
import { test, expect, type Page } from '@playwright/test' import { bootGallery, makeDefaultMockData } 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 w...
f3454c9955bdb4527cfbe658fbc5ea826354854d92d10dd21c4472d307594f2e
TypeScript
1,941
63
import type { QueryNode } from '@/types/domain' import { isQueryNodeCandidate } from './utils' type SnackbarColor = 'success' | 'error' interface UseQueryClipboardOptions { getCurrentQuery: () => QueryNode | null applyParsedQuery: (node: QueryNode) => void showMessage: (message: string, color: SnackbarColor) =>...
bfe56d15973a524eb9d3f738886fe613480408fcf72f04213809d170aed273aa
TypeScript
1,953
88
import { BorderNode, TabNode, TabSetNode, } from '@metacell/geppetto-meta-ui/flex-layout/src'; import Node from '@metacell/geppetto-meta-ui/flex-layout/src/model/Node'; import { IIcons } from '@metacell/geppetto-meta-ui/flex-layout/src/view/Layout'; import { TabButton } from '@metacell/geppetto-meta-ui/flex-layou...
167d7f5e94255c1fe3e862e97802ad3775bfe835df08837a4aeb18de4688ff51
TypeScript
1,955
63
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vuetify from 'vite-plugin-vuetify' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under /project...
a873bb482a3b1b401a44a2dd4c6b845302fe7c661d7b22509a232edeab9057ff
TypeScript
1,956
63
import { fileURLToPath, URL } from 'node:url' import { defineConfig, type Plugin, type Connect } from 'vite' import vue from '@vitejs/plugin-vue' import vuetify from 'vite-plugin-vuetify' // Mirror traefik's strip-project-prefix middleware so the dev/preview servers // (and the e2e suite) serve the app under /project...
126ecd8c6088d2a26413499bd3c3e970f003c54f050e3e011cbf19f834a5cc81
TypeScript
2,021
47
import { expect, test, type Page } from '@playwright/test' import { dialog, dismissWithEscape, story } from './fixtures/helpers' const opener = (page: Page) => page.getByRole('button', { name: 'Open the details' }) async function openStory(page: Page, id: string) { await story(page, `library-errordetailsdialog--${i...
b6188a0ae66d8246f8ce5047f6a7be743277a33829dd38696b1e19d5e7c26f98
TypeScript
2,046
72
import type { CatalogEntry, CatalogEntryGroup } from '@/features/catalog/types' export interface CatalogFilters { repositoryIds?: string[] search?: string } export function applyCatalogFilters( entries: CatalogEntry[], filters: CatalogFilters, ): CatalogEntry[] { let filteredEntries = entries filteredEnt...
bdc733edcf06a178da695c66f5effa15cd71fbad2b1ce0fc3d200a38d0eaedb9
TypeScript
2,046
35
import { test, expect } from '@playwright/test'; test.use({ ignoreHTTPSErrors: true }); test('Create New Project ', 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...
8c32f74226149f398ce5826fc17c78dad5534cdca8c7956fca7e29d839efbed5
TypeScript
2,050
57
import * as redux from "redux"; import { callbacksMiddleware } from './middleware/geppettoMiddleware'; import { initLayoutManager } from './layout/LayoutManager'; import EventManager from './EventManager'; import { layoutInitialState, LayoutState, layout, widgets } from './reducer/geppettoLayout'; import geppettoClien...