Skip to content

Commit

Permalink
Added ability to build a system through Tapis UI (#341)
Browse files Browse the repository at this point in the history
* Added ability to build a system through Tapis UI

* ran prettier and fixed linting issues

* added a comment to the effectiveUserId

---------

Co-authored-by: Steven Oh <[email protected]>
Co-authored-by: Steven Oh <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent d71f46d commit 5b2c69d
Show file tree
Hide file tree
Showing 22 changed files with 1,436 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tapis-api/systems/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as list } from './list';
export { default as details } from './details';
export { default as listSchedulerProfiles } from './schedulerProfiles';
export { default as makeNewSystem } from './makeNewSystem';
21 changes: 21 additions & 0 deletions src/tapis-api/systems/makeNewSystem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Systems } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from 'tapis-api/utils';

const makeNewSystem = (
reqCreateSystem: Systems.ReqCreateSystem,
basePath: string,
jwt: string,
skipCredentialCheck?: boolean
) => {
const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>(
Systems,
Systems.SystemsApi,
basePath,
jwt
);
return errorDecoder<Systems.RespBasic>(() =>
api.createSystem({ reqCreateSystem, skipCredentialCheck })
);
};

export default makeNewSystem;
2 changes: 2 additions & 0 deletions src/tapis-app/Systems/_Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import {
LayoutNavWrapper,
} from 'tapis-ui/_common';
import { SystemsNav } from '../_components';
import SystemToolbar from '../_components/SystemToolbar';
import { Router } from '../_Router';

const Layout: React.FC = () => {
const header = (
<LayoutHeader>
<div>System List</div>
<SystemToolbar />
</LayoutHeader>
);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.modal-settings {
max-height: 38rem;
overflow-y: scroll;
}

.item {
border: 1px dotted lightgray;
padding: 0.5em 0.5em 0.5em 0.5em;
margin-bottom: 1em;
}

.array {
border: 1px solid gray;
padding: 0.5em 0.5em 0.5em 0.5em;
margin-bottom: 0.5em;
}
Loading

0 comments on commit 5b2c69d

Please sign in to comment.