-
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.
- Loading branch information
1 parent
13b828f
commit 1fc8d34
Showing
32 changed files
with
602 additions
and
567 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
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
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
Binary file not shown.
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,84 +1,85 @@ | ||
export default { | ||
extends: ["./node_modules/commitlint-config-gitmoji", "cz"], | ||
rules: { | ||
"type-empty": [ | ||
2, | ||
"never", | ||
[ | ||
":art:", | ||
":newspaper:", | ||
":pencil:", | ||
":memo:", | ||
":zap:", | ||
":fire:", | ||
":books:", | ||
":bug:", | ||
":ambulance:", | ||
":penguin:", | ||
":apple:", | ||
":checkered_flag:", | ||
":robot:", | ||
":green_ale:", | ||
":tractor:", | ||
":recycle:", | ||
":white_check_mark:", | ||
":microscope:", | ||
":green_heart:", | ||
":lock:", | ||
":arrow_up:", | ||
":arrow_down:", | ||
":fast_forward:", | ||
":rewind:", | ||
":rotating_light:", | ||
":lipstick:", | ||
":wheelchair:", | ||
":globe_with_meridians:", | ||
":construction:", | ||
":gem:", | ||
":bookmark:", | ||
":tada:", | ||
":loud_sound:", | ||
":mute:", | ||
":sparkles:", | ||
":speech_balloon:", | ||
":bulb:", | ||
":construction_worker:", | ||
":chart_with_upwards_trend:", | ||
":ribbon:", | ||
":rocket:", | ||
":heavy_minus_sign:", | ||
":heavy_plus_sign:", | ||
":wrench:", | ||
":hankey:", | ||
":leaves:", | ||
":bank:", | ||
":whale:", | ||
":twisted_rightwards_arrows:", | ||
":pushpin:", | ||
":busts_in_silhouette:", | ||
":children_crossing:", | ||
":iphone:", | ||
":clown_face:", | ||
":ok_hand:", | ||
":boom:", | ||
":bento:", | ||
":pencil2:", | ||
":package:", | ||
":alien:", | ||
":truck:", | ||
":age_facing_up:", | ||
":busts_in_silhouette:", | ||
":card_file_box:", | ||
":loud-sound:", | ||
":mute:", | ||
":egg:", | ||
":see-no-evil:", | ||
":camera-flash:", | ||
":alembic:", | ||
":mag:", | ||
":wheel-of-dharma:", | ||
":label:", | ||
], | ||
], | ||
"subject-empty": [2, "never"], | ||
}} | ||
extends: ['./node_modules/commitlint-config-gitmoji', 'cz'], | ||
rules: { | ||
'type-empty': [ | ||
2, | ||
'never', | ||
[ | ||
':art:', | ||
':newspaper:', | ||
':pencil:', | ||
':memo:', | ||
':zap:', | ||
':fire:', | ||
':books:', | ||
':bug:', | ||
':ambulance:', | ||
':penguin:', | ||
':apple:', | ||
':checkered_flag:', | ||
':robot:', | ||
':green_ale:', | ||
':tractor:', | ||
':recycle:', | ||
':white_check_mark:', | ||
':microscope:', | ||
':green_heart:', | ||
':lock:', | ||
':arrow_up:', | ||
':arrow_down:', | ||
':fast_forward:', | ||
':rewind:', | ||
':rotating_light:', | ||
':lipstick:', | ||
':wheelchair:', | ||
':globe_with_meridians:', | ||
':construction:', | ||
':gem:', | ||
':bookmark:', | ||
':tada:', | ||
':loud_sound:', | ||
':mute:', | ||
':sparkles:', | ||
':speech_balloon:', | ||
':bulb:', | ||
':construction_worker:', | ||
':chart_with_upwards_trend:', | ||
':ribbon:', | ||
':rocket:', | ||
':heavy_minus_sign:', | ||
':heavy_plus_sign:', | ||
':wrench:', | ||
':hankey:', | ||
':leaves:', | ||
':bank:', | ||
':whale:', | ||
':twisted_rightwards_arrows:', | ||
':pushpin:', | ||
':busts_in_silhouette:', | ||
':children_crossing:', | ||
':iphone:', | ||
':clown_face:', | ||
':ok_hand:', | ||
':boom:', | ||
':bento:', | ||
':pencil2:', | ||
':package:', | ||
':alien:', | ||
':truck:', | ||
':age_facing_up:', | ||
':busts_in_silhouette:', | ||
':card_file_box:', | ||
':loud-sound:', | ||
':mute:', | ||
':egg:', | ||
':see-no-evil:', | ||
':camera-flash:', | ||
':alembic:', | ||
':mag:', | ||
':wheel-of-dharma:', | ||
':label:' | ||
] | ||
], | ||
'subject-empty': [2, 'never'] | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwind: {}, | ||
autoprefixer: {} | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import type { dataType } from 'types/axios' | ||
import { Request } from './request' | ||
/* | ||
* @params Baseurl | ||
* @params timeout 延时 | ||
* @params interceptors 传入的拦截器 | ||
* @params useDefaultReq 是否使用默认的请求拦截器 | ||
* @params interceptors 是否使用默认的相应拦截器 | ||
*/ | ||
|
||
const requestInt = new Request({ | ||
baseURL: '/api', | ||
timeout: 3000 | ||
}) | ||
|
||
const request = (config: any): any => { | ||
return requestInt.request(config) | ||
} | ||
|
||
/* | ||
* get方法 | ||
* @params url | ||
* @params method 传入的参数 | ||
* @params params or query 传入的参数 | ||
*/ | ||
|
||
export const getWeather = (params = {}): dataType => { | ||
return request({ | ||
url: '/456456/weather/v001/now', | ||
method: 'get', | ||
params, | ||
selfHeader: { | ||
'X-APISpace-Token ': 'n30k9jlfyucfa7k4ogr58xeuxjb3ghqh' | ||
} | ||
}) | ||
} | ||
|
||
/* | ||
* post方法 | ||
* @params url | ||
* @params method 传入的参数 | ||
* @params params or query 传入的参数 | ||
*/ | ||
|
||
export const getNumberIP = (data = {}): dataType => { | ||
return request({ | ||
url: '/teladress/teladress', | ||
method: 'post', | ||
data, | ||
selfHeader: { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'X-APISpace-Token ': 'n30k9jlfyucfa7k4ogr58xeuxjb3ghqh' | ||
} | ||
}) | ||
} |
Oops, something went wrong.