-
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
Showing
19 changed files
with
148 additions
and
141 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 |
---|---|---|
|
@@ -7,3 +7,6 @@ package-lock.json | |
.DS_Store | ||
.idea | ||
.vscode | ||
|
||
# vscode localhistory | ||
.history |
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,17 @@ | ||
{ | ||
"git": { | ||
"requireCleanWorkingDir": false | ||
}, | ||
"hooks": { | ||
"after:init": [ | ||
"npm run test", | ||
"t2k" | ||
], | ||
"after:bump": [ | ||
"npm run build" | ||
] | ||
}, | ||
"github": { | ||
"release": true | ||
} | ||
} |
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,17 +1,45 @@ | ||
# next-tx-cos-regions | ||
> Const for tencent cos regions. | ||
[![version][version-image]][version-url] | ||
[![license][license-image]][license-url] | ||
[![size][size-image]][size-url] | ||
[![download][download-image]][download-url] | ||
|
||
## installation | ||
```bash | ||
npm install -S @feizheng/next-tx-cos-regions | ||
npm install -S @jswork/next-tx-cos-regions | ||
``` | ||
|
||
## usage | ||
```js | ||
import '@feizheng/next-tx-cos-regions'; | ||
import '@jswork/next-tx-cos-regions'; | ||
|
||
//DOCS here! | ||
nx.txCosRegions = [ | ||
"ap-chengdu", | ||
"ap-chongqing", | ||
"ap-shanghai", | ||
"ap-chongqing", | ||
"ap-beijing", | ||
"ap-nanjing", | ||
"ap-guangzhou", | ||
"ap-shenzhen-fsi", | ||
"ap-shanghai-fsi", | ||
"ap-beijing-fsi" | ||
]; | ||
``` | ||
|
||
## resources | ||
- https://cloud.tencent.com/document/product/436/6224 | ||
## license | ||
Code released under [the MIT license](https://github.com/afeiship/next-tx-cos-regions/blob/master/LICENSE.txt). | ||
|
||
[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-regions | ||
[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-regions | ||
|
||
[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-regions | ||
[license-url]: https://github.com/afeiship/next-tx-cos-regions/blob/master/LICENSE.txt | ||
|
||
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-regions | ||
[size-url]: https://github.com/afeiship/next-tx-cos-regions/blob/master/dist/next-tx-cos-regions.min.js | ||
|
||
[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-regions | ||
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-regions |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
(function () { | ||
require('../src'); | ||
|
||
describe('api.basic test', () => { | ||
test('nx.txCosRegions', function () { | ||
const obj1 = { name: 'fei' }; | ||
const obj2 = { email: '1290657123@qq.com' }; | ||
const result = {}; | ||
}); | ||
}); | ||
})(); |
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,30 @@ | ||
/*! | ||
* name: @jswork/next-tx-cos-regions | ||
* description: Const for tencent cos regions. | ||
* homepage: https://github.com/afeiship/next-tx-cos-regions | ||
* version: 1.0.0 | ||
* date: 2020-11-21 10:53:20 | ||
* license: MIT | ||
*/ | ||
|
||
(function () { | ||
var global = global || this || window || Function('return this')(); | ||
var nx = global.nx || require('@jswork/next'); | ||
|
||
nx.txCosRegions = [ | ||
'ap-chengdu', | ||
'ap-chongqing', | ||
'ap-shanghai', | ||
'ap-chongqing', | ||
'ap-beijing', | ||
'ap-nanjing', | ||
'ap-guangzhou', | ||
'ap-shenzhen-fsi', | ||
'ap-shanghai-fsi', | ||
'ap-beijing-fsi' | ||
]; | ||
|
||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = nx.txCosRegions; | ||
} | ||
})(); |
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,9 @@ | ||
/*! | ||
* name: @jswork/next-tx-cos-regions | ||
* description: Const for tencent cos regions. | ||
* homepage: https://github.com/afeiship/next-tx-cos-regions | ||
* version: 1.0.0 | ||
* date: 2020-11-21 10:53:20 | ||
* license: MIT | ||
*/ | ||
!function(){var n=(this||window||Function("return this")()).nx||require("@jswork/next");n.txCosRegions=["ap-chengdu","ap-chongqing","ap-shanghai","ap-chongqing","ap-beijing","ap-nanjing","ap-guangzhou","ap-shenzhen-fsi","ap-shanghai-fsi","ap-beijing-fsi"],"undefined"!=typeof module&&module.exports&&(module.exports=n.txCosRegions)}(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
(function () { | ||
var global = global || this || window || Function('return this')(); | ||
var nx = global.nx || require('@jswork/next'); | ||
|
||
nx.txCosRegions = [ | ||
'ap-chengdu', | ||
'ap-chongqing', | ||
'ap-shanghai', | ||
'ap-chongqing', | ||
'ap-beijing', | ||
'ap-nanjing', | ||
'ap-guangzhou', | ||
'ap-shenzhen-fsi', | ||
'ap-shanghai-fsi', | ||
'ap-beijing-fsi' | ||
]; | ||
|
||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = nx.txCosRegions; | ||
} | ||
})(); |
This file was deleted.
Oops, something went wrong.