Browse Source

引入babel-polyfill进行ES6转ES5来兼容ie9+ 目前测试只完美支持ie11

docker-svn
witersen 3 years ago
parent
commit
fb7bc69cce
  1. 24
      01.web/package-lock.json
  2. 1
      01.web/package.json
  3. 3
      01.web/src/main.js
  4. 45
      01.web/src/views/advance/index.vue
  5. 1186
      01.web/src/views/repositoryInfo/index.vue

24
01.web/package-lock.json generated

@ -858,6 +858,23 @@
"babel-types": "^6.24.1" "babel-types": "^6.24.1"
} }
}, },
"babel-polyfill": {
"version": "6.26.0",
"resolved": "https://registry.npmmirror.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
"integrity": "sha512-F2rZGQnAdaHWQ8YAoeRbukc7HS9QgdgeyJ0rQDd485v9opwuPvjpPFcOOT/WmkKTdgy9ESgSPXDcTNpzrGr6iQ==",
"requires": {
"babel-runtime": "^6.26.0",
"core-js": "^2.5.0",
"regenerator-runtime": "^0.10.5"
},
"dependencies": {
"regenerator-runtime": {
"version": "0.10.5",
"resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
"integrity": "sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w=="
}
}
},
"babel-preset-es2015": { "babel-preset-es2015": {
"version": "6.24.1", "version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz",
@ -909,7 +926,6 @@
"version": "6.26.0", "version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
"dev": true,
"requires": { "requires": {
"core-js": "^2.4.0", "core-js": "^2.4.0",
"regenerator-runtime": "^0.11.0" "regenerator-runtime": "^0.11.0"
@ -1824,8 +1840,7 @@
"core-js": { "core-js": {
"version": "2.5.7", "version": "2.5.7",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz",
"integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw=="
"dev": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@ -7144,8 +7159,7 @@
"regenerator-runtime": { "regenerator-runtime": {
"version": "0.11.1", "version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="
"dev": true
}, },
"regenerator-transform": { "regenerator-transform": {
"version": "0.10.1", "version": "0.10.1",

1
01.web/package.json

@ -16,6 +16,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.25.0", "axios": "^0.25.0",
"babel-polyfill": "^6.26.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"streamsaver": "^2.0.6", "streamsaver": "^2.0.6",
"view-design": "^4.7.0", "view-design": "^4.7.0",

3
01.web/src/main.js

@ -10,6 +10,9 @@ import 'view-design/dist/styles/iview.css';
* 以下为手动安装配置的依赖 * 以下为手动安装配置的依赖
* 通过 Vue.prototype.$name 的方式 使$name在所有的Vue实例中可用 * 通过 Vue.prototype.$name 的方式 使$name在所有的Vue实例中可用
*/ */
//安装babel-polyfill进行ES6转ES5来兼容ie8+
import "babel-polyfill"
//http请求 -> axios //http请求 -> axios
import axios from 'axios'; import axios from 'axios';
Vue.prototype.$axios = axios; Vue.prototype.$axios = axios;

45
01.web/src/views/advance/index.vue

@ -6,7 +6,7 @@
<Card :bordered="false" :dis-hover="true" style="width: 620px"> <Card :bordered="false" :dis-hover="true" style="width: 620px">
<Form :label-width="140"> <Form :label-width="140">
<FormItem label="Subversion"> <FormItem label="Subversion">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ formSvn.version }}</span> <span>{{ formSvn.version }}</span>
</Col> </Col>
@ -24,10 +24,11 @@
>安装</Button >安装</Button
> >
</Col> </Col>
<Col span="6"> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="运行状态"> <FormItem label="运行状态">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span style="color: #ff9900" v-if="formSvn.installed == 0" <span style="color: #ff9900" v-if="formSvn.installed == 0"
>未安装</span >未安装</span
@ -59,7 +60,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="svnserve绑定端口"> <FormItem label="svnserve绑定端口">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ formSvn.bindPort }}</span> <span>{{ formSvn.bindPort }}</span>
</Col> </Col>
@ -69,7 +70,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="svnserve绑定主机名"> <FormItem label="svnserve绑定主机名">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ formSvn.bindHost }}</span> <span>{{ formSvn.bindHost }}</span>
</Col> </Col>
@ -87,7 +88,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="管理系统主机名"> <FormItem label="管理系统主机名">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ formSvn.manageHost }}</span> <span>{{ formSvn.manageHost }}</span>
</Col> </Col>
@ -99,7 +100,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="检出地址选用"> <FormItem label="检出地址选用">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<RadioGroup <RadioGroup
v-model="formSvn.enable" v-model="formSvn.enable"
@ -113,7 +114,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="svnserve运行日志"> <FormItem label="svnserve运行日志">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ formSvn.svnserveLog }}</span> <span>{{ formSvn.svnserveLog }}</span>
</Col> </Col>
@ -135,7 +136,7 @@
v-for="(item, index) in configList" v-for="(item, index) in configList"
:key="index" :key="index"
> >
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>{{ item.value }}</span> <span>{{ item.value }}</span>
</Col> </Col>
@ -148,42 +149,42 @@
<Card :bordered="false" :dis-hover="true" style="width: 600px"> <Card :bordered="false" :dis-hover="true" style="width: 600px">
<Form :label-width="140"> <Form :label-width="140">
<FormItem label="SMTP主机"> <FormItem label="SMTP主机">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="SMTP端口"> <FormItem label="SMTP端口">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="SMTP用户名"> <FormItem label="SMTP用户名">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="SMTP密码"> <FormItem label="SMTP密码">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="发件人邮箱"> <FormItem label="发件人邮箱">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="测试接收邮箱"> <FormItem label="测试接收邮箱">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input value="2.4.0"></Input> <Input value="2.4.0"></Input>
</Col> </Col>
@ -193,7 +194,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="默认启用状态"> <FormItem label="默认启用状态">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Switch> <Switch>
<Icon type="md-checkmark" slot="open"></Icon> <Icon type="md-checkmark" slot="open"></Icon>
@ -213,7 +214,7 @@
<Card :bordered="false" :dis-hover="true" style="width: 600px"> <Card :bordered="false" :dis-hover="true" style="width: 600px">
<Form :label-width="140"> <Form :label-width="140">
<FormItem label="用户登录"> <FormItem label="用户登录">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Switch> <Switch>
<Icon type="md-checkmark" slot="open"></Icon> <Icon type="md-checkmark" slot="open"></Icon>
@ -223,7 +224,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="用户密码修改"> <FormItem label="用户密码修改">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Switch> <Switch>
<Icon type="md-checkmark" slot="open"></Icon> <Icon type="md-checkmark" slot="open"></Icon>
@ -233,7 +234,7 @@
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="任务计划执行失败"> <FormItem label="任务计划执行失败">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Switch> <Switch>
<Icon type="md-checkmark" slot="open"></Icon> <Icon type="md-checkmark" slot="open"></Icon>
@ -259,7 +260,7 @@
5重置密钥后所有管理系统在线用户会被下线<br /> 5重置密钥后所有管理系统在线用户会被下线<br />
</FormItem> </FormItem>
<FormItem label="密钥"> <FormItem label="密钥">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<Input type="password" readonly value="2.4.0"></Input> <Input type="password" readonly value="2.4.0"></Input>
</Col> </Col>
@ -276,21 +277,21 @@
<Badge> v2.3 </Badge> <Badge> v2.3 </Badge>
</FormItem> </FormItem>
<FormItem label="支持PHP-FPM版本"> <FormItem label="支持PHP-FPM版本">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>5.4+</span> <span>5.4+</span>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="支持PHP-CLI版本"> <FormItem label="支持PHP-CLI版本">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>5.4+</span> <span>5.4+</span>
</Col> </Col>
</Row> </Row>
</FormItem> </FormItem>
<FormItem label="支持数据库"> <FormItem label="支持数据库">
<Row :gutter="16"> <Row>
<Col span="12"> <Col span="12">
<span>MySQLsqlite</span> <span>MySQLsqlite</span>
</Col> </Col>

1186
01.web/src/views/repositoryInfo/index.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save