Skip to content

Commit

Permalink
style: apply pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzWeber0 committed Aug 10, 2022
1 parent 7186317 commit 4131779
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
exclude: "helm/"
exclude: "helm/|mkdocs.yml"
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
Expand Down
3 changes: 2 additions & 1 deletion backend/t4cclient/sessions/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# 3rd party:
from pydantic import BaseModel

from t4cclient.schemas.repositories import RepositoryUserPermission

# local:
from t4cclient.sessions.operators.k8s import FileType
from t4cclient.schemas.repositories import RepositoryUserPermission


class WorkspaceType(enum.Enum):
Expand Down
2 changes: 1 addition & 1 deletion docs/user/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
site
site
2 changes: 1 addition & 1 deletion docs/user/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
site
site
4 changes: 2 additions & 2 deletions docs/user/docs/about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This service is provided by DB Netz AG.
This service is provided by DB Netz AG.
Copyright 2022 DB Netz AG.

We'd love to see your bug reports and improvement suggestions! Please give us your feedback. <br>
If you want to share some code - please have a look at [CONTRIBUTING.md](https://github.com/DSD-DBS/capella-collab-manager/blob/master/CONTRIBUTING.md)
If you want to share some code - please have a look at [CONTRIBUTING.md](https://github.com/DSD-DBS/capella-collab-manager/blob/master/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion docs/user/docs/additional/alerts/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Alerts can be used to inform users about changes, news or maintenance work. The
<a href="example.com">Link description</a>
```
3. The alert is now created and is displayed to all users:
![Success alert](success_alert.png)
![Success alert](success_alert.png)
2 changes: 1 addition & 1 deletion docs/user/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Introduction

If you don't find the right answer to your question, please open an [issue on Github](https://github.com/DSD-DBS/capella-collab-manager/issues) or consider extending the documentation with a [pull request](https://github.com/DSD-DBS/capella-collab-manager/pulls).
If you don't find the right answer to your question, please open an [issue on Github](https://github.com/DSD-DBS/capella-collab-manager/issues) or consider extending the documentation with a [pull request](https://github.com/DSD-DBS/capella-collab-manager/pulls).
2 changes: 1 addition & 1 deletion docs/user/docs/projects/delete.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please ask your [administrator](roles.md) to delete a project.
Please ask your [administrator](roles.md) to delete a project.
2 changes: 1 addition & 1 deletion docs/user/docs/projects/new.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please ask your [administrator](roles.md) to create a new project.
Please ask your [administrator](roles.md) to create a new project.
2 changes: 1 addition & 1 deletion docs/user/docs/sessions/flows/git.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
The documentation for the Git Workflow will follow in the future.
The documentation for the Git Workflow will follow in the future.
2 changes: 1 addition & 1 deletion docs/user/docs/sessions/screenshot/screenshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Alternatively, you can forbid the use of the clipboard:

![Forbid use of clipboard](clipboard.png)

Don't forget to turn it back on after taking the screenshot.
Don't forget to turn it back on after taking the screenshot.
20 changes: 10 additions & 10 deletions docs/user/docs/sessions/types.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
You can choose two different types of workspaces:
You can choose two different types of workspaces:

### Persistent Sessions

Persistent Sessions allows you to use personal workspace within Capella.
Your personal workspace will be stored and is part of our backup routines.
However, we still advise not to save any important information there.
By default, we will request 20GB of storage for your personal workspace.
Your personal workspace will be stored and is part of our backup routines.
However, we still advise not to save any important information there.
By default, we will request 20GB of storage for your personal workspace.

If your project uses the T4C-workflow, we will suggest all visible models in the T4C connection dialog.
If your project uses the T4C-workflow, we will suggest all visible models in the T4C connection dialog.

???+ tip
Starting the first time, your personal workspace will be empty.
Please close the `Welcome`-dialog first:
Starting the first time, your personal workspace will be empty.
Please close the `Welcome`-dialog first:
![Close Welcome dialog](close_welcome_dialog.png)

Please follow the [Load a model into the workspace] instructions to load models into your workspace.
!!! info
Only work stored in the `/workspace` folder (default workspace folder) will be persistent.

### Readonly Sessions

Readonly Sessions allow you to read information from models without consuming a licence.
Readonly Sessions allow you to read information from models without consuming a licence.

!!! warning
Readonly sessions work only with linked git models. Please ask your project manager if your model has readonly support.

!!! danger
Any changes made in read-only sessions will NOT be saved and cannot be restored.

*[T4C]: TeamForCapella
*[T4C]: TeamForCapella
1 change: 0 additions & 1 deletion docs/user/docs/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
You need to be project manager or administrator to use this feature.

The documentation for the User Management will follow in the future.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export class ActiveSessionsComponent implements OnInit {
}

uploadFileDialog(session: Session): void {
this.dialog.open(UploadDialogComponent, {data: session
});
this.dialog.open(UploadDialogComponent, { data: session });
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* Copyright DB Netz AG and the capella-collab-manager contributors
* SPDX-License-Identifier: Apache-2.0
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<!--
~ Copyright DB Netz AG and the capella-collab-manager contributors
~ SPDX-License-Identifier: Apache-2.0
-->

<p>
Are you sure to overwrite file <b>{{filename}}</b>?
Are you sure to overwrite file <b>{{ filename }}</b
>?
</p>
<button mat-button (click)="this.dialogRef.close(false)">No</button>
<button mat-raised-button (click)="this.dialogRef.close(true)" color="primary" style="margin-left:20px">Yes</button>
<button
mat-raised-button
(click)="this.dialogRef.close(true)"
color="primary"
style="margin-left: 20px"
>
Yes
</button>
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright DB Netz AG and the capella-collab-manager contributors
// SPDX-License-Identifier: Apache-2.0

import { ComponentFixture, TestBed } from '@angular/core/testing';

import { FileExistsDialogComponent } from './file-exists-dialog.component';
Expand All @@ -8,9 +11,8 @@ describe('FileExistsDialogComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ FileExistsDialogComponent ]
})
.compileComponents();
declarations: [FileExistsDialogComponent],
}).compileComponents();
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// Copyright DB Netz AG and the capella-collab-manager contributors
// SPDX-License-Identifier: Apache-2.0

import { Component, OnInit } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Inject } from '@angular/core';

@Component({
selector: 'app-file-exists-dialog',
templateUrl: './file-exists-dialog.component.html',
styleUrls: ['./file-exists-dialog.component.css']
styleUrls: ['./file-exists-dialog.component.css'],
})
export class FileExistsDialogComponent implements OnInit {
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright DB Netz AG and the capella-collab-manager contributors
// SPDX-License-Identifier: Apache-2.0

import { ComponentFixture, TestBed } from '@angular/core/testing';

import { UploadDialogComponent } from './upload-dialog.component';
Expand All @@ -8,9 +11,8 @@ describe('UploadDialogComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ UploadDialogComponent ]
})
.compileComponents();
declarations: [UploadDialogComponent],
}).compileComponents();
});

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/auth/http-interceptor/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class AuthInterceptor implements HttpInterceptor {
injectAccessToken(request: HttpRequest<unknown>): HttpRequest<unknown> {
let access_token = this.localStorageService.getValue('access_token');
return request.clone({
headers: request.headers.set("Authorization", `Bearer ${access_token}`),
headers: request.headers.set('Authorization', `Bearer ${access_token}`),
});
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/schemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export interface PathNode {
type: 'file' | 'directory';
isNew: boolean;
children: PathNode[] | null;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright DB Netz AG and the capella-collab-manager contributors
// SPDX-License-Identifier: Apache-2.0

import { TestBed } from '@angular/core/testing';

import { LoadFilesService } from './load-files.service';
Expand Down

0 comments on commit 4131779

Please sign in to comment.