Skip to content

Commit

Permalink
Pods - Start/Restart/Stop/Logs/ActionLogs/Hints/Pretty Tabs/AutoPodID… (
Browse files Browse the repository at this point in the history
#363)

* Pods - Start/Restart/Stop/Logs/ActionLogs/Hints/Pretty Tabs/AutoPodID in Modals/Formatting

* Ensure no overflow when pressing login and loading icon joins div. Works in most large layouts, not mobile.

* Add pods back to Router. Merge had deleted.
  • Loading branch information
NotChristianGarcia authored Apr 25, 2024
1 parent ca25cd5 commit 65ce8c8
Show file tree
Hide file tree
Showing 35 changed files with 1,123 additions and 31 deletions.
4 changes: 4 additions & 0 deletions src/tapis-api/pods/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export { default as list } from './list';
export { default as logs } from './logs';
export { default as details } from './details';
export { default as makeNewPod } from './makeNewPod';
export { default as deletePod } from './deletePod';
export { default as startPod } from './startPod';
export { default as restartPod } from './restartPod';
export { default as stopPod } from './stopPod';
18 changes: 18 additions & 0 deletions src/tapis-api/pods/logs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Pods } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from 'tapis-api/utils';

const logs = (
params: Pods.GetPodLogsRequest,
basePath: string,
jwt: string
) => {
const api: Pods.LogsApi = apiGenerator<Pods.LogsApi>(
Pods,
Pods.LogsApi,
basePath,
jwt
);
return errorDecoder<Pods.PodLogsResponse>(() => api.getPodLogs(params));
};

export default logs;
14 changes: 14 additions & 0 deletions src/tapis-api/pods/restartPod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Pods } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from 'tapis-api/utils';

const restartPod = (podId: string, basePath: string, jwt: string) => {
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>(
Pods,
Pods.PodsApi,
basePath,
jwt
);
return errorDecoder<Pods.PodResponse>(() => api.restartPod({ podId }));
};

export default restartPod;
14 changes: 14 additions & 0 deletions src/tapis-api/pods/startPod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Pods } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from 'tapis-api/utils';

const startPod = (podId: string, basePath: string, jwt: string) => {
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>(
Pods,
Pods.PodsApi,
basePath,
jwt
);
return errorDecoder<Pods.PodResponse>(() => api.startPod({ podId }));
};

export default startPod;
14 changes: 14 additions & 0 deletions src/tapis-api/pods/stopPod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Pods } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from 'tapis-api/utils';

const stopPod = (podId: string, basePath: string, jwt: string) => {
const api: Pods.PodsApi = apiGenerator<Pods.PodsApi>(
Pods,
Pods.PodsApi,
basePath,
jwt
);
return errorDecoder<Pods.PodResponse>(() => api.stopPod({ podId }));
};

export default stopPod;
1 change: 1 addition & 0 deletions src/tapis-app/Login/_components/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const Login: React.FC = () => {
<Button
type="submit"
className="btn btn-primary"
style={{ width: '5.5em' }} //explicitly set width otherwise button forces text overflow on press.
disabled={isLoading || accessToken != null}
>
Log In
Expand Down
8 changes: 7 additions & 1 deletion src/tapis-app/Pods/PodDetail/_Layout/Layout.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions src/tapis-app/Pods/_components/PodFunctionBar/PodFunctionBar.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 65ce8c8

Please sign in to comment.