Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions frontend/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ declare module 'vue' {
TwoFADialog: typeof import('./src/components/TwoFADialog.vue')['default']
Uptime: typeof import('./src/components/Uptime.vue')['default']
}
export interface ComponentCustomProperties {
vBModal: typeof import('bootstrap-vue-next')['vBModal']
}
}
2 changes: 2 additions & 0 deletions frontend/src/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import {
faTerminal, faWarehouse, faHome, faRocket,
faRotate,
faCloudArrowDown, faArrowsRotate,
faExpand,
} from "@fortawesome/free-solid-svg-icons";

library.add(
Expand Down Expand Up @@ -109,6 +110,7 @@ library.add(
faRotate,
faCloudArrowDown,
faArrowsRotate,
faExpand
);

export { FontAwesomeIcon };
Expand Down
39 changes: 39 additions & 0 deletions frontend/src/pages/Compose.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@

<!-- YAML editor -->
<div class="shadow-box mb-3 editor-box" :class="{'edit-mode' : isEditMode}">
<button v-if="isEditMode" v-b-modal.compose-editor-modal class="expand-button">
<font-awesome-icon icon="expand" />
</button>
<prism-editor
ref="editor"
v-model="stack.composeYAML"
Expand All @@ -181,6 +184,24 @@
<div v-if="isEditMode" class="mb-3">
{{ yamlError }}
</div>
<!-- YAML modal fullscreen editor -->
<BModal id="compose-editor-modal" :title="stack.composeFileName" scrollable size="fullscreen" hide-footer>
<div class="shadow-box mb-3 editor-box" :class="{'edit-mode' : isEditMode}">
<prism-editor
ref="editor"
v-model="stack.composeYAML"
class="yaml-editor"
:highlight="highlighterYAML"
line-numbers :readonly="!isEditMode"
@input="yamlCodeChange"
@focus="editorFocus = true"
@blur="editorFocus = false"
></prism-editor>
</div>
<div v-if="isEditMode" class="mb-3">
{{ yamlError }}
</div>
</BModal>

<!-- ENV editor -->
<div v-if="isEditMode">
Expand Down Expand Up @@ -808,6 +829,24 @@ export default {
&.edit-mode {
background-color: #2c2f38 !important;
}
position: relative;
}

.expand-button {
all: unset;
position: absolute;
right: 15px;
top: 15px;
z-index: 10;
}

.expand-button svg {
width:20px;
height: 20px;
}

.expand-button:hover {
color: white;
}

.agent-name {
Expand Down
Loading