-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a webview to generate a devfile without ansible-creator (#1681)
* Add a webview to generate a devfile without ansible-creator
- Loading branch information
1 parent
4ec3a46
commit 931b0a2
Showing
15 changed files
with
930 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
@import url(../baseStyles/baseFormStyle.css); | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.element { | ||
margin-bottom: 14px; | ||
} | ||
|
||
h3 { | ||
border: none; | ||
font-size: 1.1em; | ||
font-style: normal; | ||
font-weight: normal; | ||
margin: 0; | ||
color: var(--vscode-foreground); | ||
white-space: wrap; | ||
} | ||
|
||
.description-div { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-flow: column nowrap; | ||
width: 100%; | ||
max-width: 650px; | ||
text-align: left; | ||
margin: 0px 0px 40px; | ||
} | ||
|
||
vscode-text-field { | ||
margin-top: 6px; | ||
margin-bottom: 6px; | ||
} | ||
|
||
vscode-text-area { | ||
margin-top: 6px; | ||
margin-bottom: 6px; | ||
} | ||
|
||
.devfile-name-div { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
#devfile-name { | ||
width:49%; | ||
display:inline-block; | ||
} | ||
|
||
.checkbox-div { | ||
display: flex; /* Use flexbox */ | ||
flex-direction: column; /* Arrange child elements vertically */ | ||
margin-top: 22px; | ||
margin-bottom: 10px; | ||
width: 100%; | ||
} | ||
|
||
.image-div { | ||
display: flex; /* Use flexbox */ | ||
flex-direction: row; /* Arrange child elements vertically */ | ||
margin-top: 12px; | ||
margin-bottom: 30px; | ||
width: 100%; | ||
} | ||
|
||
vscode-dropdown { | ||
width: 400px; | ||
} | ||
|
||
.full-devfile-path { | ||
display: flex; /* Use flexbox */ | ||
flex-direction: row; /* Arrange child elements vertically */ | ||
color: var(--vscode-descriptionForeground); | ||
} | ||
|
||
.group-buttons { | ||
display: flex; /* Use flexbox */ | ||
flex-direction: row; /* Arrange child elements vertically */ | ||
} | ||
|
||
.p-collection-name { | ||
font-style: italic; | ||
} | ||
|
||
vscode-button { | ||
margin: 0px 3px; | ||
} | ||
|
||
vscode-checkbox i { | ||
color: var(--vscode-descriptionForeground); | ||
font-size: small; | ||
} | ||
|
||
#ade-docs-link { | ||
margin-left: 30px; | ||
font-style: italic; | ||
} | ||
|
||
.dropdown-container { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-flow: column nowrap; | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
} | ||
|
||
.dropdown-container label { | ||
display: block; | ||
color: var(--vscode-foreground); | ||
cursor: pointer; | ||
font-size: var(--vscode-font-size); | ||
line-height: normal; | ||
margin-bottom: 2px; | ||
} | ||
|
||
#log-to-file-options-div { | ||
display: none; | ||
flex-direction: column; | ||
border-style: dotted; | ||
border-color: var(--focus-border); | ||
border-width: 0.5px; | ||
padding: 8px; | ||
} | ||
|
||
.log-level-div { | ||
margin: 4px 0px; | ||
} |
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
15 changes: 15 additions & 0 deletions
15
resources/contentCreator/createDevfile/devfile-template.txt
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,15 @@ | ||
schemaVersion: 2.2.2 | ||
metadata: | ||
name: {{ dev_file_name }} | ||
components: | ||
- name: tooling-container | ||
container: | ||
image: {{ dev_file_image }} | ||
memoryRequest: 256M | ||
memoryLimit: 6Gi | ||
cpuRequest: 250m | ||
cpuLimit: 2000m | ||
args: ["tail", "-f", "/dev/null"] | ||
env: | ||
- name: KUBEDOCK_ENABLED | ||
value: "true" |
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
Oops, something went wrong.