Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jun 26, 2024
1 parent 39ac328 commit 272eb86
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 66 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',
},
],
};
8 changes: 7 additions & 1 deletion lib/icicle-tapisui-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ const extension = createExtension({
},
},
removeServices: [EnumTapisCoreService.Apps],
mainSidebarServices: ['workflows', 'ml-hub', 'pods', 'ml-edge', 'smart-scheduler'],
mainSidebarServices: [
'workflows',
'ml-hub',
'pods',
'ml-edge',
'smart-scheduler',
],
authMethods: ['implicit', 'password'],
logo: {
url: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIPEBEQEhEVFhUVFRYWGBUXFRIVFhsWFRYXFxcWGBcYHSghGxolGxcWLTEiJikrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGzUmICUtLSsvLS8tLy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS03K//AABEIANMA7gMBIgACEQEDEQH/xAAcAAEBAQADAQEBAAAAAAAAAAAABwYBBAUDAgj/xABMEAABAwIBBgQSCAUEAgMAAAABAAIDBBEFBgcSITFBE1FhcRYXIjM1U1Ryc4GRoaKjsbLR0hQyNFJikpOzFSNCg8ElwuHwJII2Y8P/xAAZAQEAAwEBAAAAAAAAAAAAAAAAAQIDBAX/xAAoEQACAQIGAgICAwEAAAAAAAAAAQIDERITITEyUQRBFCIzQiNxgWH/2gAMAwEAAhEDEQA/ALUiIgCLI5T5dQ0hdFGOFlGojYxp/E7eeQLC1uXtdIbiUMHExjR5zcq6g2YzrwjoWhFCxlfX91Seb4Lnowr+6pPR+CtlMz+XDouaKGdGFf3U/wBH4J0YV/dT/R+CZTHy4dFzRQzowr+6n+j8E6MK/up/o/BMpj5cOi5ooZ0YV/dT/R+CdGFf3U/0fgmUx8uHRc0UM6MK/up/o/BOjCv7qf6PwTKY+XDouaKGdGFf3U/0fgnRhX91P9H4JlMfLh0XNFDOjCv7qf6PwTowr+6n+j8EymPlw6LmihnRhX91P9H4J0YV/dT/AEfgmUx8uHRc0UM6MK/up/o/BOjCv7qf6PwTKY+XDouaKGdGFf3U/wBH4J0YV/dT/R+CZTHy4dFzRQzowr+6n+j8E6MK/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WuF62WOCyYmYa6ktK10bWOYCA5pBJ13P4tY3WXVraY4bhUtNO5vD1EgcIg4OLWjR6o2P4NvGQqLs2a0w207PjkNaelr6IODZZWAsuQNKwI0b/92r5ZM5I1gq4XyROiZHI17nu0QAGG5sb6723cayTHlpDgSCDcEGxBG8EL0arKCqmZwclRI5n3S42PPx+NXszKMo6X9HYy0rWVFfUSxm7S4AEbDotDSR4wV4iIrJWM5Su7hES6FQiLlCThEKIQEREBQsz/AFyq72P2vVOWBzSUGjBNOR1x4aO9YNfnJ8i3y56m56njL+NHC8TK3J9tfTmPUHt6pjuJ3EeQ717d0uqp2ZrKKkrM/netpHwSOikaWuabEEW8fKOVfFXnG8naattw0d3DUHg6LwOK42jkKxdfmwN7w1GrikGv8zfgt1URwT8aS2JzdLrdHNhUdvh9Z8q46V9R2+H1nyqcxFMip0Ya6XW56V9R2+H1nyp0r6jt8PrPlTMQyKnRhrpdbnpX1Hb4fWfKnSvqO3w+s+VMaIyKnRhrpdbnpX1Hb4fWfKnSvqO3w+s+VMaGRU6MMCl1uelfUdvh9Z8qdK+o7fD6z5UxoZFTox1JXywkmKV7L7dBzm357FfioqXyOL3vc5x2ucS4+UradK+o7fD6z5U6V9R2+H1nyqMcScmp0Ya6XW56V9R2+H1nyp0r6jt8PrPlTHEjIqdGFul1uulfUdvh9Z8qdK+o7fD6z5VONDIqdGFul1uulfUdvh9Z8qdK+o7fD6z5UxoZFTow10utz0r6jt8PrPlTpX1Hb4fWfKoxxGRU6MNdFuelfUdvh9Z8q5GbCo7fD6z5VONDIqdGFXqZO4JJXTNiYDa403W1NbvJPHxDetvh2bFrSDPOXD7rG6N+dxufMFucMw2GlZwcMbWN322nlJ2k86q6iWxen40m/tofvDaFlPEyGMWawWHxPKuyuLpdYt3PSiklZH5REUAIiIAiIgCIiAIiIAiIgCIiAIiIAiIgCIiAIiIAiIgCIiAIiIAiIgP/2Q==',
Expand Down
4 changes: 2 additions & 2 deletions lib/tapisui-extensions-core/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const defaultServiceCustomizations = {
};

export class Extension {
public mainSidebarServices = []
public mainSidebarServices = [];
public allowMutiTenant: boolean = true;
public serviceMap: ServiceMap = {};
private config: Configuration;
Expand All @@ -37,7 +37,7 @@ export class Extension {
setConfiguration(config: Configuration): void {
this.config = config;
this.allowMutiTenant = config.allowMultiTenant;
this.mainSidebarServices = config.mainSidebarServices || []
this.mainSidebarServices = config.mainSidebarServices || [];
this.setAuthentication();
this.setServiceCustomizations();
this.logo = config.logo;
Expand Down
49 changes: 25 additions & 24 deletions src/app/_components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,78 +6,77 @@ import { Navbar, NavItem } from '@tapis/tapisui-common';
import { useExtension } from 'extensions';

type SidebarItems = {
[key: string]: any
}
[key: string]: any;
};

const Sidebar: React.FC = () => {
const { accessToken } = useTapisConfig();
const { extension } = useExtension();
const sidebarItems: SidebarItems = {
"systems": (
const sidebarItems: SidebarItems = {
systems: (
<NavItem to="/systems" icon="data-files">
Systems
</NavItem>
),
"files": (
files: (
<NavItem to="/files" icon="folder">
Files
</NavItem>
),
"apps": (
apps: (
<NavItem to="/apps" icon="applications">
Apps
</NavItem>
),
"jobs": (
jobs: (
<NavItem to="/jobs" icon="jobs">
Jobs
</NavItem>
),
"workflows": (
workflows: (
<NavItem to="/workflows" icon="publications">
Workflows
</NavItem>
),
"ml-hub": (
'ml-hub': (
<NavItem to="/ml-hub" icon="share">
ML Hub
</NavItem>
),
"pods": (
pods: (
<NavItem to="/pods" icon="visualization">
Pods
</NavItem>
),
}
};

if (extension !== undefined) {
for (const [id, service] of Object.entries(extension.serviceMap)) {
sidebarItems[id] = (
<NavItem to={service.route} icon={service.iconName}>
{service.sidebarDisplayName}
</NavItem>
)
);
}
}

let mainSidebarItems = Object.entries(sidebarItems).map(([_, item]) => {
return item
})
const secondarySidebarItems = []
return item;
});

const secondarySidebarItems = [];
if (extension && extension.mainSidebarServices.length > 0) {
mainSidebarItems = []
mainSidebarItems = [];
for (const [id, item] of Object.entries(sidebarItems)) {
if (extension.mainSidebarServices.includes(id)) {
mainSidebarItems.push(item)
continue
mainSidebarItems.push(item);
continue;
}

secondarySidebarItems.push(item)
secondarySidebarItems.push(item);
}
}


return (
<div className={styles.root}>
<Navbar>
Expand All @@ -91,7 +90,9 @@ const Sidebar: React.FC = () => {
)}
{accessToken && (
<>
{mainSidebarItems.map((item: any) => { return item })}
{mainSidebarItems.map((item: any) => {
return item;
})}
</>
)}
</Navbar>
Expand Down

0 comments on commit 272eb86

Please sign in to comment.