Skip to content

Commit

Permalink
以 v-combobox 替代原自定义下载源方案;为网站增加图标
Browse files Browse the repository at this point in the history
  • Loading branch information
waterblock79 committed Mar 6, 2022
1 parent 5ec0408 commit 1eb1618
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Auto Scratch Desktop Mirror
Auto Scratch-Desktop Mirror 是一个基于 Github Workflow 的开源镜像项目,它会每周自动从 Scratch 官方网站下载最新的 Scratch 3.0 安装包并上传至 Github Release 提供给用户以供下载。
感谢: Scratch Team, Github, Vue.js, Vuetify.js, Cnpmjs, FastGit 以及所有为这个项目添砖加瓦的人们!
感谢: Scratch Team, Github, Vue.js, Vuetify.js, FastGit 以及所有为这个项目添砖加瓦的人们!
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
<link rel="shortcut icon" href="//www.google.com/s2/favicons?sz=64&domain=scratch.mit.edu">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FD23CNKF3B"></script>
<script>
Expand Down Expand Up @@ -85,11 +86,9 @@
<v-card-title>设置下载源</v-card-title>
<v-card-text>
通常情况下您<b>不需要更改下载源</b>,但如果默认下载源不可用,您可以更改为另外一个,或者自定义下载源。
<v-select v-model="download_source"
:items="['hub.fastgit.xyz','github.com.cnpmjs.org','github.com']" label=""
dense v-bind:disabled="toggle_button_text == '选择下载源'"></v-select>
<v-btn color="primary" text v-on:click="toggle_custom_source">{{ toggle_button_text }}</v-btn>
<v-text-field label="自定义下载源" v-bind:disabled="toggle_button_text != '选择下载源'" v-model="download_source"></v-text-field>
<v-combobox v-model="download_source"
:items="['hub.fastgit.xyz','github.com']" label=""
dense></v-combobox>
</v-card-text>
</v-card>
</v-col>
Expand Down Expand Up @@ -119,7 +118,6 @@
scratch_version: '未知'
},
download_source: 'hub.fastgit.xyz',
toggle_button_text: '自定义下载源',
},
created: function () {
this.release.stat = 0
Expand Down

0 comments on commit 1eb1618

Please sign in to comment.