-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also-by: Philipp Meyer <meyer.github@gmail.com> Signed-off-by: Lukas Balzer <balzer814_dev@web.de>
- Loading branch information
Showing
15 changed files
with
667 additions
and
11 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
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
21 changes: 21 additions & 0 deletions
21
...in/java/org/eclipse/winery/repository/rest/resources/apiData/ArtifactResourceApiData.java
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 @@ | ||
/** | ||
* Copyright (c) 2017 University of Stuttgart. All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License v2.0 and the Apache License 2.0 which both accompany this | ||
* distribution, and are available at http://www.eclipse.org/legal/epl-v20.html and | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package org.eclipse.winery.repository.rest.resources.apiData; | ||
|
||
public class ArtifactResourceApiData { | ||
|
||
public String fileName; | ||
public String content; | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public void setFileName(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
...epository.ui/src/app/instance/artifactTemplates/artifactSource/ArtifactResourceApiData.ts
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,33 @@ | ||
/** | ||
* Copyright (c) 2017 University of Stuttgart. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* and the Apache License 2.0 which both accompany this distribution, | ||
* and are available at http://www.eclipse.org/legal/epl-v20.html | ||
* and http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
|
||
export class ArtifactResourceApiData { | ||
private fileName = ''; | ||
private content = ''; | ||
|
||
constructor() { | ||
} | ||
|
||
public getFileName(): string { | ||
return this.fileName; | ||
} | ||
|
||
public getContent(): string { | ||
return this.content; | ||
} | ||
|
||
public setFileName(fileName: string) { | ||
this.fileName = fileName; | ||
} | ||
|
||
public setContent(content: string) { | ||
this.content = content; | ||
} | ||
|
||
} |
111 changes: 111 additions & 0 deletions
111
...ository.ui/src/app/instance/artifactTemplates/artifactSource/artifactSource.component.css
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,111 @@ | ||
/** | ||
* Copyright (c) 2017 University of Stuttgart. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* and the Apache License 2.0 which both accompany this distribution, | ||
* and are available at http://www.eclipse.org/legal/epl-v20.html | ||
* and http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.fileContainer { | ||
} | ||
|
||
#fileGridHeader { | ||
display: grid; | ||
grid-column-gap: 10px; | ||
grid-template-columns: 70px 120px 70px 70px 340px 120px 70px; | ||
grid-template-rows: 30px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
#gridHeaderText { | ||
grid-column: 1 / span 7; | ||
grid-row: 1 / span 1; | ||
} | ||
|
||
#fileGridBody { | ||
display: grid; | ||
grid-template-columns: 300px auto; | ||
grid-template-rows: 20px 480px; | ||
} | ||
|
||
#leftEditContent { | ||
grid-column: 1 / span 1; | ||
grid-row: 1 / span 2; | ||
border-top: 1px solid #ddd; | ||
} | ||
|
||
#rightEditHeader { | ||
padding-left: 5px; | ||
border-top: 2px solid lightgray; | ||
border-left: 2px solid lightgray; | ||
border-right: 2px solid lightgray; | ||
grid-column: 2 / span 1; | ||
grid-row: 1 / span 1; | ||
} | ||
|
||
#rightEditContent { | ||
grid-column: 2 / span 1; | ||
grid-row: 2 / span 1; | ||
} | ||
|
||
table { | ||
width: 90%; | ||
margin-bottom: 20px; | ||
background-color: transparent; | ||
border-spacing: 0; | ||
border-collapse: collapse; | ||
border-color: grey; | ||
} | ||
|
||
tbody { | ||
width: 90%; | ||
display: table-row-group; | ||
vertical-align: middle; | ||
border-color: inherit; | ||
min-width: 300px; | ||
} | ||
|
||
tr { | ||
display: table-row; | ||
vertical-align: inherit; | ||
border-color: inherit; | ||
width: 100%; | ||
height: 20px; | ||
min-width: 300px; | ||
} | ||
|
||
tr:hover { | ||
background-color: #aaaaaa; | ||
} | ||
|
||
tr.selected { | ||
background-color: #8c8c8c; | ||
} | ||
|
||
td { | ||
padding: 8px; | ||
line-height: 0; | ||
vertical-align: center; | ||
} | ||
|
||
#srcNameCell { | ||
width: 200px; | ||
} | ||
|
||
#filesList { | ||
width: 300px; | ||
height: 500px; | ||
overflow: auto; | ||
} | ||
|
||
p { | ||
display: block; | ||
-webkit-margin-before: 1em; | ||
-webkit-margin-after: 1em; | ||
-webkit-margin-start: 0px; | ||
-webkit-margin-end: 0px; | ||
} |
Oops, something went wrong.