Skip to content

Commit

Permalink
✨ Feature: add aliyun oss options
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #347
  • Loading branch information
Molunerfinn committed Dec 27, 2019
1 parent 1b3522e commit a33f1ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"keycode": "^2.2.0",
"lodash-id": "^0.14.0",
"lowdb": "^1.0.0",
"picgo": "^1.4.2",
"picgo": "^1.4.3",
"vue": "^2.6.10",
"vue-gallery": "^2.0.1",
"vue-lazyload": "^1.2.6",
Expand Down
8 changes: 7 additions & 1 deletion src/renderer/pages/picbeds/AliYun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
>
<el-input v-model="form.path" @keyup.native.enter="confirm" placeholder="例如img/"></el-input>
</el-form-item>
<el-form-item
label="设定网址后缀"
>
<el-input v-model="form.options" @keyup.native.enter="confirm" placeholder="例如?x-oss-process=xxx"></el-input>
</el-form-item>
<el-form-item
label="设定自定义域名"
>
Expand Down Expand Up @@ -78,7 +83,8 @@ export default class extends Vue {
bucket: '',
area: '',
path: '',
customUrl: ''
customUrl: '',
options: ''
}
created () {
const config = this.$db.get('picBed.aliyun') as IAliYunConfig
Expand Down
1 change: 1 addition & 0 deletions src/universal/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ interface IAliYunConfig {
area: string,
path: string,
customUrl: string
options: string
}

interface IGitHubConfig {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8276,10 +8276,10 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=

picgo@^1.4.2:
version "1.4.2"
resolved "https://registry.npm.taobao.org/picgo/download/picgo-1.4.2.tgz#3a9ca1fb3c7c51c0b94036eac95a842bb022a5dc"
integrity sha1-Opyh+zx8UcC5QDbqyVqEK7Aipdw=
picgo@^1.4.3:
version "1.4.3"
resolved "https://registry.npm.taobao.org/picgo/download/picgo-1.4.3.tgz#6c3140d21415d96489a784c155d8d45b6a91adb5"
integrity sha1-bDFA0hQV2WSJp4TBVdjUW2qRrbU=
dependencies:
chalk "^2.4.1"
commander "^2.17.0"
Expand Down

0 comments on commit a33f1ad

Please sign in to comment.