forked from vueComponent/ant-design-vue-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Unite LF. Fixed partial file newline format
Signed-off-by: mynuolr <[email protected]>
- Loading branch information
Showing
25 changed files
with
3,572 additions
and
3,572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[*] | ||
charset=utf-8 | ||
end_of_line=crlf | ||
end_of_line=lf | ||
insert_final_newline=false | ||
indent_style=space | ||
indent_size=2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
MIT License | ||
Copyright (c) 2018 Anan Yang | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
MIT License | ||
|
||
Copyright (c) 2018 Anan Yang | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
const api = { | ||
Login: '/auth/login', | ||
Logout: '/auth/logout', | ||
ForgePassword: '/auth/forge-password', | ||
Register: '/auth/register', | ||
twoStepCode: '/auth/2step-code', | ||
SendSms: '/account/sms', | ||
SendSmsErr: '/account/sms_err', | ||
// get my info | ||
UserInfo: '/user/info' | ||
} | ||
const api = { | ||
Login: '/auth/login', | ||
Logout: '/auth/logout', | ||
ForgePassword: '/auth/forge-password', | ||
Register: '/auth/register', | ||
twoStepCode: '/auth/2step-code', | ||
SendSms: '/account/sms', | ||
SendSmsErr: '/account/sms_err', | ||
// get my info | ||
UserInfo: '/user/info' | ||
} | ||
export default api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
import api from './index' | ||
import { axios } from '@/utils/request' | ||
|
||
/** | ||
* login func | ||
* parameter: { | ||
* username: '', | ||
* password: '', | ||
* remember_me: true, | ||
* captcha: '12345' | ||
* } | ||
* @param parameter | ||
* @returns {*} | ||
*/ | ||
export function login (parameter) { | ||
return axios({ | ||
url: '/auth/login', | ||
method: 'post', | ||
data: parameter | ||
}) | ||
} | ||
|
||
export function getSmsCaptcha (parameter) { | ||
return axios({ | ||
url: api.SendSms, | ||
method: 'post', | ||
data: parameter | ||
}) | ||
} | ||
|
||
export function getInfo () { | ||
return axios({ | ||
url: '/user/info', | ||
method: 'get', | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8' | ||
} | ||
}) | ||
} | ||
|
||
export function logout () { | ||
return axios({ | ||
url: '/auth/logout', | ||
method: 'post', | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8' | ||
} | ||
}) | ||
} | ||
|
||
/** | ||
* get user 2step code open? | ||
* @param parameter {*} | ||
*/ | ||
export function get2step (parameter) { | ||
return axios({ | ||
url: api.twoStepCode, | ||
method: 'post', | ||
data: parameter | ||
}) | ||
import api from './index' | ||
import { axios } from '@/utils/request' | ||
|
||
/** | ||
* login func | ||
* parameter: { | ||
* username: '', | ||
* password: '', | ||
* remember_me: true, | ||
* captcha: '12345' | ||
* } | ||
* @param parameter | ||
* @returns {*} | ||
*/ | ||
export function login (parameter) { | ||
return axios({ | ||
url: '/auth/login', | ||
method: 'post', | ||
data: parameter | ||
}) | ||
} | ||
|
||
export function getSmsCaptcha (parameter) { | ||
return axios({ | ||
url: api.SendSms, | ||
method: 'post', | ||
data: parameter | ||
}) | ||
} | ||
|
||
export function getInfo () { | ||
return axios({ | ||
url: '/user/info', | ||
method: 'get', | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8' | ||
} | ||
}) | ||
} | ||
|
||
export function logout () { | ||
return axios({ | ||
url: '/auth/logout', | ||
method: 'post', | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8' | ||
} | ||
}) | ||
} | ||
|
||
/** | ||
* get user 2step code open? | ||
* @param parameter {*} | ||
*/ | ||
export function get2step (parameter) { | ||
return axios({ | ||
url: api.twoStepCode, | ||
method: 'post', | ||
data: parameter | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script> | ||
/* WARNING: 兼容老引入,请勿继续使用 */ | ||
import DescriptionList from '@/components/DescriptionList' | ||
export default DescriptionList | ||
</script> | ||
<script> | ||
/* WARNING: 兼容老引入,请勿继续使用 */ | ||
import DescriptionList from '@/components/DescriptionList' | ||
export default DescriptionList | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
<template> | ||
<div class="head-info" :class="center && 'center'"> | ||
<span>{{ title }}</span> | ||
<p>{{ content }}</p> | ||
<em v-if="bordered"/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HeadInfo', | ||
props: { | ||
title: { | ||
type: String, | ||
default: '' | ||
}, | ||
content: { | ||
type: String, | ||
default: '' | ||
}, | ||
bordered: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
center: { | ||
type: Boolean, | ||
default: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.head-info { | ||
position: relative; | ||
text-align: left; | ||
padding: 0 32px 0 0; | ||
min-width: 125px; | ||
&.center { | ||
text-align: center; | ||
padding: 0 32px; | ||
} | ||
span { | ||
color: rgba(0, 0, 0, .45); | ||
display: inline-block; | ||
font-size: 14px; | ||
line-height: 22px; | ||
margin-bottom: 4px; | ||
} | ||
p { | ||
color: rgba(0, 0, 0, .85); | ||
font-size: 24px; | ||
line-height: 32px; | ||
margin: 0; | ||
} | ||
em { | ||
background-color: #e8e8e8; | ||
position: absolute; | ||
height: 56px; | ||
width: 1px; | ||
top: 0; | ||
right: 0; | ||
} | ||
} | ||
<template> | ||
<div class="head-info" :class="center && 'center'"> | ||
<span>{{ title }}</span> | ||
<p>{{ content }}</p> | ||
<em v-if="bordered"/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HeadInfo', | ||
props: { | ||
title: { | ||
type: String, | ||
default: '' | ||
}, | ||
content: { | ||
type: String, | ||
default: '' | ||
}, | ||
bordered: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
center: { | ||
type: Boolean, | ||
default: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.head-info { | ||
position: relative; | ||
text-align: left; | ||
padding: 0 32px 0 0; | ||
min-width: 125px; | ||
&.center { | ||
text-align: center; | ||
padding: 0 32px; | ||
} | ||
span { | ||
color: rgba(0, 0, 0, .45); | ||
display: inline-block; | ||
font-size: 14px; | ||
line-height: 22px; | ||
margin-bottom: 4px; | ||
} | ||
p { | ||
color: rgba(0, 0, 0, .85); | ||
font-size: 24px; | ||
line-height: 32px; | ||
margin: 0; | ||
} | ||
em { | ||
background-color: #e8e8e8; | ||
position: absolute; | ||
height: 56px; | ||
width: 1px; | ||
top: 0; | ||
right: 0; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.