You've already forked AstralRinth
forked from didirus/AstralRinth
Landing page (#353)
* Landing page * Change legal corp name, remove google from privacy policy, other fixes
This commit is contained in:
@@ -74,11 +74,11 @@
|
||||
<Categories :categories="project.categories" class="categories" />
|
||||
<hr class="card-divider" />
|
||||
<div class="stats">
|
||||
<span class="stat">{{ formatNumber(project.downloads) }}</span>
|
||||
<span class="stat">{{ $formatNumber(project.downloads) }}</span>
|
||||
<span class="label"
|
||||
>download<span v-if="project.downloads !== 1">s</span></span
|
||||
>
|
||||
<span class="stat">{{ formatNumber(project.followers) }}</span>
|
||||
<span class="stat">{{ $formatNumber(project.followers) }}</span>
|
||||
<span class="label"
|
||||
>follower<span v-if="project.followers !== 1">s</span></span
|
||||
>
|
||||
@@ -666,9 +666,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatNumber(x) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
||||
},
|
||||
findPrimary(version) {
|
||||
let file = version.files.find((x) => x.primary)
|
||||
|
||||
|
||||
@@ -525,11 +525,17 @@ export default {
|
||||
description: this.newProject.description,
|
||||
body: this.newProject.body,
|
||||
categories: this.newProject.categories,
|
||||
issues_url: this.newProject.issues_url,
|
||||
source_url: this.newProject.source_url,
|
||||
wiki_url: this.newProject.wiki_url,
|
||||
issues_url: this.newProject.issues_url
|
||||
? this.newProject.issues_url
|
||||
: null,
|
||||
source_url: this.newProject.source_url
|
||||
? this.newProject.source_url
|
||||
: null,
|
||||
wiki_url: this.newProject.wiki_url ? this.newProject.wiki_url : null,
|
||||
license_url: this.license_url,
|
||||
discord_url: this.newProject.discord_url,
|
||||
discord_url: this.newProject.discord_url
|
||||
? this.newProject.discord_url
|
||||
: null,
|
||||
license_id: this.license.short,
|
||||
client_side: this.clientSideType.toLowerCase(),
|
||||
server_side: this.serverSideType.toLowerCase(),
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
</div>
|
||||
<div v-if="mode === 'version'" class="data">
|
||||
<p class="title">Downloads</p>
|
||||
<p class="value">{{ $parent.formatNumber(version.downloads) }}</p>
|
||||
<p class="value">{{ $formatNumber(version.downloads) }}</p>
|
||||
</div>
|
||||
<div class="data">
|
||||
<p class="title">Version number</p>
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
</p>
|
||||
<p></p>
|
||||
<p>
|
||||
<strong>{{ $parent.formatNumber(version.downloads) }}</strong>
|
||||
<strong>{{ $formatNumber(version.downloads) }}</strong>
|
||||
downloads
|
||||
</p>
|
||||
<p>
|
||||
@@ -100,7 +100,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<span>{{ $parent.formatNumber(version.downloads) }}</span>
|
||||
<span>{{ $formatNumber(version.downloads) }}</span>
|
||||
downloads
|
||||
</p>
|
||||
<p>
|
||||
@@ -176,7 +176,7 @@ table {
|
||||
tr {
|
||||
td:nth-child(2) {
|
||||
padding-right: 2rem;
|
||||
min-width: 13.875rem;
|
||||
min-width: 16rem;
|
||||
.top {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user