-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to build a system through Tapis UI (#341)
* 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
1 parent
d71f46d
commit 5b2c69d
Showing
22 changed files
with
1,436 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...pis-app/Systems/_components/SystemToolbar/CreateSystemModal/CreateSystemModal.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.