Skip to content

Commit

Permalink
Merge pull request #4 from wrj2009/main
Browse files Browse the repository at this point in the history
添加自定义下载源功能并修改一些细节
  • Loading branch information
waterblock79 authored Mar 6, 2022
2 parents b80b8d3 + 1eb1618 commit 29c438e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions 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 官方网站下载最新的 Scratch3.0 安装包并上传至 Github Release 提供给用户以供下载。
感谢: Scratch Team, Github, Vue.js, Vuetify.js, Cnpmjs, FastGit 以及所有为这个项目添砖加瓦的人们!
Auto Scratch-Desktop Mirror 是一个基于 Github Workflow 的开源镜像项目,它会每周自动从 Scratch 官方网站下载最新的 Scratch 3.0 安装包并上传至 Github Release 提供给用户以供下载。
感谢: Scratch Team, Github, Vue.js, Vuetify.js, FastGit 以及所有为这个项目添砖加瓦的人们!
27 changes: 16 additions & 11 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 @@ -34,13 +35,13 @@
<v-row class="mx-5">
<v-col>
<div class="text-body-1">
Auto Scratch-Desktop Mirror 是一个基于 Github Workflow 的开源镜像项目,
它会每周自动从 Scratch 官方网站下载最新的 Scratch3.0 安装包并上传至 (Github)
Auto Scratch-Desktop Mirror 是一个基于 GitHub Workflow 的开源镜像项目,
它会每周自动从 Scratch 官方网站下载最新的 Scratch 3.0 安装包并上传至 (GitHub)
Release 提供给用户以供下载。
<p class="font-weight-light mt-2 text-caption">
项目开源于 <a href="https://github.com/scratch-bar/asdm">Github</a>,本版本由 waterblock79 开发。
项目开源于 <a href="https://github.com/scratch-bar/asdm">GitHub</a>,本版本由 waterblock79 开发。
<br />
感谢: Scratch Team, Github, Vue.js, Vuetify.js, Cnpmjs, FastGit 以及所有为这个项目添砖加瓦的人们!
感谢: Scratch Team, GitHub, Vue.js, Vuetify.js, Cnpmjs, FastGit 以及所有为这个项目添砖加瓦的人们!
<br />
友情链接: <a href="https://scratch.cf/">Mirror Scratch</a>
</p>
Expand All @@ -51,7 +52,7 @@
<v-card-title>下载 Scratch 3.0</v-card-title>
<v-card-text>
未正确加载下载地址?请前往
<a href="https://hub.fastgit.org/waterblock79/asdm/releases/latest">Fastgit 镜像</a>
<a href="https://hub.fastgit.xyz/waterblock79/asdm/releases/latest">FastGit 镜像</a>
<a href="https://github.com.cnpmjs.org/waterblock79/asdm/releases/latest">Cnpm
镜像站点</a>
Expand Down Expand Up @@ -84,10 +85,10 @@
<v-card elevation="2" class="mt-7">
<v-card-title>设置下载源</v-card-title>
<v-card-text>
通常情况下您<b>不需要更改下载源</b>,但如果默认下载源不可用,您可以更改为另外一个。
<v-select v-model="download_source"
:items="['hub.fastgit.org','github.com.cnpmjs.org','github.com']" label=""
dense></v-select>
通常情况下您<b>不需要更改下载源</b>,但如果默认下载源不可用,您可以更改为另外一个,或者自定义下载源
<v-combobox v-model="download_source"
:items="['hub.fastgit.xyz','github.com']" label=""
dense></v-combobox>
</v-card-text>
</v-card>
</v-col>
Expand All @@ -114,9 +115,9 @@
macos: ''
},
date: '一周以内',
scratch_version: 'Unknown'
scratch_version: '未知'
},
download_source: 'github.com.cnpmjs.org',
download_source: 'hub.fastgit.xyz',
},
created: function () {
this.release.stat = 0
Expand All @@ -139,6 +140,10 @@
})
},
methods: {
toggle_custom_source: function() {
this.toggle_button_text = this.toggle_button_text == "自定义下载源" ? "选择下载源" : "自定义下载源"
if (this.toggle_button_text == "自定义下载源") { this.download_source = "hub.fastgit.xyz" }
}
}
})
</script>
Expand Down

0 comments on commit 29c438e

Please sign in to comment.