浏览代码

fix domain add/edit page style issue #19

0xJacky 2 年之前
父节点
当前提交
1aa4e70c55

+ 1 - 1
frontend/package.json

@@ -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",

+ 3 - 2
frontend/src/views/domain/DomainAdd.vue

@@ -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')" />
@@ -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"
@@ -169,7 +170,7 @@ export default {
     padding: 10px 0 20px 0;
 }
 
-.container {
+.domain-add-container {
     max-width: 800px;
     margin: 0 auto
 }

+ 3 - 2
frontend/src/views/domain/DomainEdit.vue

@@ -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>
@@ -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 {

+ 1 - 2
frontend/src/views/pty/Terminal.vue

@@ -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: {

+ 1 - 1
frontend/version.json

@@ -1 +1 @@
-{"version":"1.4.0","build_id":5,"total_build":61}
+{"version":"1.4.1","build_id":3,"total_build":66}