Skip to content

Commit 317a417

Browse files
authored
Merge pull request #17 from aotianwinter/test
v0.1.3
2 parents a7d3c2e + 6035115 commit 317a417

File tree

7 files changed

+39
-133
lines changed

7 files changed

+39
-133
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auto-deploy-app",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"author": "dajiangyou",
55
"description": "An electron-vue project",
66
"license": "MIT",

src/main/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ function createWindow () {
2020
* Initial window options
2121
*/
2222
mainWindow = new BrowserWindow({
23-
height: 563,
24-
useContentSize: true,
25-
width: 1000
23+
height: 800,
24+
width: 1300,
25+
minHeight: 800,
26+
minWidth: 1000
27+
// useContentSize: true
2628
})
2729

2830
mainWindow.loadURL(winURL)

src/renderer/core/lazy_use.js

+16-18
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue from 'vue'
22
import 'ant-design-vue/dist/antd.css'
33
// base library
44
import {
5-
Tree,
5+
// Affix,
66
Empty,
77
Collapse,
88
ConfigProvider,
@@ -17,8 +17,8 @@ import {
1717
Card,
1818
Form,
1919
FormModel,
20-
Row,
21-
Col,
20+
// Row,
21+
// Col,
2222
Modal,
2323
Table,
2424
Tabs,
@@ -39,14 +39,13 @@ import {
3939
Divider,
4040
DatePicker,
4141
TimePicker,
42-
Upload,
43-
Progress,
44-
Skeleton,
42+
// Upload,
43+
// Progress,
44+
// Skeleton,
4545
Popconfirm,
46-
PageHeader,
4746
Result,
48-
Statistic,
49-
Descriptions,
47+
// Statistic,
48+
// Descriptions,
5049
message,
5150
notification
5251
} from 'ant-design-vue'
@@ -60,7 +59,7 @@ import {
6059
// import PermissionHelper from '@/core/permission/permission'
6160
// import './directives/action'
6261

63-
Vue.use(Tree)
62+
// Vue.use(Affix)
6463
Vue.use(Empty)
6564
Vue.use(Collapse)
6665
Vue.use(ConfigProvider)
@@ -75,8 +74,8 @@ Vue.use(Select)
7574
Vue.use(Card)
7675
Vue.use(Form)
7776
Vue.use(FormModel)
78-
Vue.use(Row)
79-
Vue.use(Col)
77+
// Vue.use(Row)
78+
// Vue.use(Col)
8079
Vue.use(Modal)
8180
Vue.use(Table)
8281
Vue.use(Tabs)
@@ -97,14 +96,13 @@ Vue.use(Tag)
9796
Vue.use(Divider)
9897
Vue.use(DatePicker)
9998
Vue.use(TimePicker)
100-
Vue.use(Upload)
101-
Vue.use(Progress)
102-
Vue.use(Skeleton)
99+
// Vue.use(Upload)
100+
// Vue.use(Progress)
101+
// Vue.use(Skeleton)
103102
Vue.use(Popconfirm)
104-
Vue.use(PageHeader)
105103
Vue.use(Result)
106-
Vue.use(Statistic)
107-
Vue.use(Descriptions)
104+
// Vue.use(Statistic)
105+
// Vue.use(Descriptions)
108106

109107
Vue.prototype.$confirm = Modal.confirm
110108
Vue.prototype.$message = message

src/renderer/views/home/AppData.vue

-96
This file was deleted.

src/renderer/views/home/HelpView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<span>
3-
<a-icon title="use helper" type="question-circle" @click="showModal" />
3+
<a-icon title="Instructions for use" type="question-circle" @click="showModal" />
44
<!-- modal -->
55
<a-modal v-model="visible" title="Use Helper" @ok="visible = false" :width="1000">
66
<a-divider orientation="left">

src/renderer/views/home/InstanceList.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ export default {
184184
<style lang="stylus" scoped>
185185
.path-span
186186
text-decoration underline
187-
&:hover
188-
color #409EFF
187+
color #409EFF
189188
190189
.anticon
191190
margin-right 6px

src/renderer/views/home/index.vue

+15-12
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<a-tab-pane key="1" tab="Server Center">
55
<div class="flex-card-wrap">
66
<ServerList />
7-
<!-- config card -->
8-
<AppData style="margin-left: 1rem" />
97
</div>
108
<!-- action -->
119
<div class="action-wrap">
@@ -16,7 +14,7 @@
1614
<TaskForm title="Create Task" :visible="deployActionVisible"
1715
:data="defaultForm" @cancel="closeAddForm" @submit="onSubmit" />
1816
</a-tab-pane>
19-
<a-tab-pane key="2" tab="Executing task">
17+
<a-tab-pane key="2" tab="Executing Task">
2018
<TaskCenter @switchTab="handleSwitchTab" />
2119
</a-tab-pane>
2220
<a-tab-pane key="3" tab="Task Instance">
@@ -44,13 +42,17 @@
4442
</a-drawer>
4543
<!-- footer -->
4644
<footer class="footer">
47-
<p title="version">
48-
<a-icon @click="openUrl('https://github.com/aotianwinter/auto-deploy-app/releases')" type="thunderbolt" />
49-
v{{ version }}
50-
<HelpView />
51-
</p>
52-
<p title="author 打酱油">
53-
<a-icon @click="openUrl('https://github.com/electron/update-electron-app')" type="github" />
45+
<div>
46+
<span :title="`version: v${version}`" class="footer-link"
47+
@click="openUrl('https://github.com/aotianwinter/auto-deploy-app/releases')">
48+
<a-icon type="thunderbolt" />
49+
v{{ version }}
50+
</span>
51+
<HelpView style="margin-left: 0.2rem" />
52+
</div>
53+
<p title="author 打酱油" class="footer-link"
54+
@click="openUrl('https://github.com/aotianwinter/auto-deploy-app')">
55+
<a-icon type="github" />
5456
打酱油
5557
</p>
5658
</footer>
@@ -59,7 +61,6 @@
5961

6062
<script>
6163
import ServerList from './ServerList'
62-
import AppData from './AppData'
6364
import TaskForm from './TaskForm'
6465
import TaskCenter from './TaskCenter'
6566
import InstanceList from './InstanceList'
@@ -75,7 +76,6 @@ export default {
7576
mixins: [taskMixin, instanceMixin, appMixin],
7677
components: {
7778
ServerList,
78-
AppData,
7979
TaskForm,
8080
TaskCenter,
8181
InstanceList,
@@ -167,11 +167,14 @@ export default {
167167
padding 1rem 0
168168
.footer
169169
display inline-flex
170+
z-index 10
170171
justify-content space-between
171172
position fixed
172173
left 0
173174
bottom 0
174175
width 100%
175176
padding 4px 0.5rem
176177
background white
178+
.footer-link
179+
cursor pointer
177180
</style>

0 commit comments

Comments
 (0)