Skip to content

Commit

Permalink
fix domain add/edit page style issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Jul 17, 2022
1 parent eac9669 commit 1aa4e70
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nginx-ui-frontend",
"version": "1.4.0",
"version": "1.4.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 8021",
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/views/domain/DomainAdd.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<a-card :title="$gettext('Add Site')">
<div class="container">
<div class="domain-add-container">
<a-steps :current="current_step" size="small">
<a-step :title="$gettext('Base information')" />
<a-step :title="$gettext('Configure SSL')" />
Expand All @@ -22,6 +22,7 @@
<p v-if="is_demo" v-translate>This feature is not available in demo.</p>

<std-data-entry :data-list="columnsSSL" :data-source="config" :error="error" />

<a-space style="margin-right: 10px">
<a-button
v-if="current_step===1"
Expand Down Expand Up @@ -169,7 +170,7 @@ export default {
padding: 10px 0 20px 0;
}
.container {
.domain-add-container {
max-width: 800px;
margin: 0 auto
}
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/views/domain/DomainEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ $gettext('Disabled') }}
</a-tag>
</template>
<div class="container">
<div class="domain-edit-container">
<a-form-item :label="$gettext('Enabled')">
<a-switch v-model="enabled" @change="checked=>{checked?enable():disable()}"/>
</a-form-item>
Expand Down Expand Up @@ -281,7 +281,8 @@ export default {
margin: 10px 0;
}
}
.container {
.domain-edit-container {
max-width: 800px;
margin: 0 auto;
/deep/.ant-form-item-label > label::after {
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/views/pty/Terminal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ export default {
mounted() {
this.initTerm()
},
destroyed() {
beforeDestroy() {
window.removeEventListener('resize', this.fit)
clearInterval(this.ping)
this.ping = null
this.term.close()
this.websocket.close()
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.4.0","build_id":5,"total_build":61}
{"version":"1.4.1","build_id":3,"total_build":66}

0 comments on commit 1aa4e70

Please sign in to comment.