Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: FileSyncer UI #247

Merged
merged 21 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b44048f
feat: added initial file syncer ui
Vafilor Jan 24, 2021
9499eb2
feat: update api to 0.18.0
Vafilor Jan 29, 2021
f55f8b5
feat: workspace file syncer support
Vafilor Jan 29, 2021
71a8069
fix: some issues with incorrect paths for file syncer and added suppo…
Vafilor Jan 29, 2021
eb53a43
chore: clean up ui
Vafilor Jan 30, 2021
5b0ec13
fix: occupy entire width for file-sync components
Vafilor Jan 30, 2021
0aca49c
fix: missing forward slash when there is only one mount
Vafilor Jan 30, 2021
c6731c2
fix: remove debugging code and fix alignment when there is more than …
Vafilor Jan 30, 2021
0d1d027
chore: ui cleanup
Vafilor Jan 30, 2021
0d79935
chore: clean up ui for single path
Vafilor Jan 30, 2021
e7f5c83
fix: left-justify action buttons
Vafilor Jan 30, 2021
328e9c8
fix: make sync files primary color and reduce margin to object storag…
Vafilor Jan 30, 2021
65d7d47
fix: made browser dialog files scroll if there are too many instead o…
Vafilor Jan 30, 2021
4038740
fix: issue where file browser portion of workspaces ui would grow if …
Vafilor Jan 30, 2021
5e2662d
chore: fix codacy
Vafilor Jan 30, 2021
74f99a8
feat: manually modify object storage path
Vafilor Jan 30, 2021
a6b160f
fix: edge case when selecting a object file path as root
Vafilor Jan 30, 2021
99a89a4
fix: set default height for file browser dialog
Vafilor Jan 30, 2021
d35cf66
feat: alert panel now supports an input class that will only apply wh…
Vafilor Feb 1, 2021
f8aadd9
feat: made file browse always be an input to make it easy to copy and…
Vafilor Feb 1, 2021
39edd53
chore: codacy issues
Vafilor Feb 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/api/authService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/configService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/cronWorkflowService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/labelService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/namespaceService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/secretService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/serviceService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workflowService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workflowTemplateService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
64 changes: 63 additions & 1 deletion src/api/api/workspaceService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -21,6 +21,7 @@ import { CreateWorkspaceBody } from '../model/models';
import { GetWorkspaceStatisticsForNamespaceResponse } from '../model/models';
import { GoogleRpcStatus } from '../model/models';
import { ListWorkspaceResponse } from '../model/models';
import { StreamResultOfLogStreamResponse } from '../model/models';
import { UpdateWorkspaceBody } from '../model/models';
import { Workspace } from '../model/models';
import { WorkspaceStatus } from '../model/models';
Expand Down Expand Up @@ -272,6 +273,67 @@ export class WorkspaceServiceService {
);
}

/**
* @param namespace
* @param uid
* @param containerName
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getWorkspaceContainerLogs(namespace: string, uid: string, containerName: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/octet-stream'}): Observable<StreamResultOfLogStreamResponse>;
public getWorkspaceContainerLogs(namespace: string, uid: string, containerName: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/octet-stream'}): Observable<HttpResponse<StreamResultOfLogStreamResponse>>;
public getWorkspaceContainerLogs(namespace: string, uid: string, containerName: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/octet-stream'}): Observable<HttpEvent<StreamResultOfLogStreamResponse>>;
public getWorkspaceContainerLogs(namespace: string, uid: string, containerName: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/octet-stream'}): Observable<any> {
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling getWorkspaceContainerLogs.');
}
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling getWorkspaceContainerLogs.');
}
if (containerName === null || containerName === undefined) {
throw new Error('Required parameter containerName was null or undefined when calling getWorkspaceContainerLogs.');
}

let headers = this.defaultHeaders;

// authentication (Bearer) required
if (this.configuration.apiKeys) {
const key: string | undefined = this.configuration.apiKeys["Bearer"] || this.configuration.apiKeys["authorization"];
if (key) {
headers = headers.set('authorization', key);
}
}

let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (httpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json',
'application/octet-stream'
];
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}


let responseType: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
}

return this.httpClient.get<StreamResultOfLogStreamResponse>(`${this.configuration.basePath}/apis/v1beta1/${encodeURIComponent(String(namespace))}/workspaces/${encodeURIComponent(String(uid))}/containers/${encodeURIComponent(String(containerName))}/logs`,
{
responseType: <any>responseType,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}

/**
* @param namespace
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
Expand Down
2 changes: 1 addition & 1 deletion src/api/api/workspaceTemplateService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/addSecretKeyValueResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/addWorkflowExecutionsMetricsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/archiveWorkflowTemplateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/artifactResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/createWorkflowExecutionBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/createWorkspaceBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/cronWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/cronWorkflowStatisticsReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/deleteSecretKeyResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/deleteSecretResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getAccessTokenRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getAccessTokenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getConfigResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getLabelsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/getWorkflowExecutionMetricsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/googleProtobufAny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/googleRpcStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/isAuthorized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/isAuthorizedResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/isValidTokenRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/isValidTokenResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/keyValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Onepanel
* Onepanel API
*
* The version of the OpenAPI document: 0.17.0
* The version of the OpenAPI document: 0.18.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading