-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Getting started download buttons #82
Getting started download buttons #82
Conversation
Deploy preview for tachiyomi ready! Built with commit 827a064 |
It's ready to be checked now @arkon |
EDIT: I presume it tried to look for |
@@ -7,7 +7,7 @@ lang: en-US | |||
|
|||
## Installation | |||
|
|||
[![github](https://img.shields.io/github/release/inorichi/tachiyomi.svg?style=for-the-badge&maxAge=600)](https://github.com/inorichi/tachiyomi/releases/latest) [![github downloads](https://img.shields.io/github/downloads/inorichi/tachiyomi/total.svg?style=for-the-badge&maxAge=600)](http://www.somsubhra.com/github-release-stats/?username=inorichi&repository=tachiyomi) | |||
<DownloadButtons/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this, it seems like we have an opportunity to actually make it more reusable for the home page as well. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</ul> | ||
</template> | ||
|
||
<style scoped lang="stylus"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Stylus? That being said, I originally suggested using Sass when the Vuepress stuff was implemented, but maybe we can just use Stylus if there's no real benefit to that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both has great benefits, their use cases are very similiar. I can stick to SASS (SCSS) if that's the standard we want, they're almost interchangeable at certain levels anyways, the one I used here could be switched to <style scoped lang="scss">
and it was still fully functional.
const { data } = await axios.get(RELEASE_URL); | ||
// Maybe eventually some release has more than the apk in assets. | ||
const apkAsset = data.assets.find(a => a.name.includes('.apk')); | ||
// Set the values. | ||
this.$data.tagName = data.tag_name; | ||
this.$data.browserDownloadUrl = apkAsset.browser_download_url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems... familiar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken straight from Home.vue
to generate the correct download link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's usually a cue that the code should refactored to be reusable. :)
That's okay though, it can be refactored later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, based on your comments on earlier PRs I shouldn't do that in the same PR but split them up instead.
const { data } = await axios.get(RELEASE_URL); | ||
// Maybe eventually some release has more than the apk in assets. | ||
const apkAsset = data.assets.find(a => a.name.includes('.apk')); | ||
// Set the values. | ||
this.$data.tagName = data.tag_name; | ||
this.$data.browserDownloadUrl = apkAsset.browser_download_url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's usually a cue that the code should refactored to be reusable. :)
That's okay though, it can be refactored later.
Changed the getting started buttons to look much more "professional".
I wanted to change more on the page but that will be a seperate PR.
This is aimed toward issue #62 by @j2ghz.