Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jun 27, 2024
1 parent 75f0112 commit 2238def
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 46 deletions.
11 changes: 7 additions & 4 deletions lib/icicle-tapisui-extension/src/gen/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Workflows } from "@tapis/tapis-typescript"
import { task as task0 } from "./test-function"
import { task as task1 } from "./test-function-2"
export const tasks: Array<Workflows.Task> = [Workflows.FunctionTaskFromJSON(task0),Workflows.FunctionTaskFromJSON(task1),]
import { Workflows } from '@tapis/tapis-typescript';
import { task as task0 } from './test-function';
import { task as task1 } from './test-function-2';
export const tasks: Array<Workflows.Task> = [
Workflows.FunctionTaskFromJSON(task0),
Workflows.FunctionTaskFromJSON(task1),
];
32 changes: 15 additions & 17 deletions lib/icicle-tapisui-extension/src/gen/test-function-2.ts

Large diffs are not rendered by default.

34 changes: 16 additions & 18 deletions lib/icicle-tapisui-extension/src/gen/test-function.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
export const task = {
"id": "test-function",
"type": "function",
"code": "test",
"execution_profile": {
"flavor": "c1tiny"
id: 'test-function',
type: 'function',
code: 'test',
execution_profile: {
flavor: 'c1tiny',
},
"installer": "pip",
"packages": [
"tapipy"
],
"runtime": "python:3.9",
"entrypoint": "tapis-owe-functions/functions/tapis-etl-push-pull-data.py",
"git_repositories": [
installer: 'pip',
packages: ['tapipy'],
runtime: 'python:3.9',
entrypoint: 'tapis-owe-functions/functions/tapis-etl-push-pull-data.py',
git_repositories: [
{
"url": "https://github.com/tapis-project/tapis-workflows-task-templates.git",
"branch": "master",
"directory": "tapis-owe-functions"
}
]
}
url: 'https://github.com/tapis-project/tapis-workflows-task-templates.git',
branch: 'master',
directory: 'tapis-owe-functions',
},
],
};
11 changes: 8 additions & 3 deletions lib/icicle-tapisui-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import {
EnumTapisCoreService,
} from '@tapis/tapisui-extensions-core';
import { tasks as generatedTasks } from './gen';
import { MLEdgePage, SmartSchedulerPage, JupyterLabPage, OpenWebUIPage } from './pages';
import {
MLEdgePage,
SmartSchedulerPage,
JupyterLabPage,
OpenWebUIPage,
} from './pages';

const extension = createExtension({
allowMultiTenant: false,
Expand All @@ -22,8 +27,8 @@ const extension = createExtension({
'pods',
'ml-edge',
'smart-scheduler',
"jupyter-lab",
"open-web-ui",
'jupyter-lab',
'open-web-ui',
],
authMethods: ['implicit', 'password'],
logo: {
Expand Down
20 changes: 17 additions & 3 deletions lib/icicle-tapisui-extension/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,30 @@ export const JupyterLabPage: React.FC = () => {
return (
<div>
<SectionHeader>Jupyter Lab</SectionHeader>
<iframe style={{width: "100%", height: "800px", border: "none"}} src="https://jupyterlab.pods.tacc.develop.tapis.io/" />
<iframe
style={{ width: '100%', height: '800px', border: 'none' }}
src="https://jupyterlab.pods.tacc.develop.tapis.io/"
/>
</div>
);
};

export const OpenWebUIPage: React.FC = () => {
return (
<div style={{width: "100%", height: "100%", display: "flex", flexDirection: "column", overflow: "hidden"}}>
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
flexDirection: 'column',
overflow: 'hidden',
}}
>
<SectionHeader>Open Web UI</SectionHeader>
<iframe style={{flexGrow: 1, border: "none"}} src="https://openwebui.pods.tacc.develop.tapis.io/" />
<iframe
style={{ flexGrow: 1, border: 'none' }}
src="https://openwebui.pods.tacc.develop.tapis.io/"
/>
</div>
);
};
2 changes: 1 addition & 1 deletion src/app/_Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Layout: React.FC = () => {
<img
style={{ height: '30px' }}
className="logo"
src={extension?.logo?.url || "./tapislogo.png"}
src={extension?.logo?.url || './tapislogo.png'}
/>
</Link>
{extension?.logo?.logoText || 'TapisUI'}
Expand Down

0 comments on commit 2238def

Please sign in to comment.