Curseforge Indexer

This commit is contained in:
Jai A
2020-05-21 22:38:39 -07:00
parent 51cfb1903d
commit 1291f792ab
13 changed files with 472 additions and 38 deletions

View File

@@ -7,6 +7,7 @@
<link href="static/css/main.css" rel="stylesheet" type="text/css">
<link href="static/css/search.css" rel="stylesheet" type="text/css">
<link href="static/css/normalize.css" rel="stylesheet" type="text/css">
<title>Search</title>
</head>
@@ -72,6 +73,10 @@
<img alt="cursed" src="static/images/icon/cursed.png" class="result-image"/>
<p>CURSED</p>
</a>
<a class="misc-badge category-badge" id="misc" onclick="activateCategory(this)">
<img alt="misc" src="static/images/icon/misc.svg" class="result-image"/>
<p>MISC</p>
</a>
</div>
<div class="categories">

View File

@@ -1,15 +1,15 @@
{{#each results}}
<div class="result gray-border rounded-border">
<img src="..." width="75px" height="75px" class="result-image"/>
<img src="{{this.icon_url}}" width="75px" height="75px" class="result-image"/>
<div class="result-info">
<div class="result-title">
<h2>{{this.title}}</h2>
<p class="muted"> by {{this.author}}</p>
<a class="result-name" href="{{this.page_url}}"><h2>{{this.title}}</h2></a>
<p class="muted"> by <a class="result-author" href="{{this.author_url}}">{{this.author}}</a></p>
</div>
<p>{{this.description}}</p>
<div class="mod-info">
<img src="static/images/icon/download.svg" alt="download" title="Downloads"/>
<p title="Downloads">1.1M</p>
<p title="Downloads">{{format this.downloads}}</p>
<img src="static/images/icon/updated.svg" alt="updated" title="Last Updated"/>
<p title="Last Updated">5/13/20</p>
@@ -76,6 +76,12 @@
<p>CURSED</p>
</div>
{{/contains}}
{{#contains this.keywords "misc"}}
<div class="misc-badge result-badge">
<img alt="misc" src="static/images/icon/misc.svg" class="result-image"/>
<p>MISC</p>
</div>
{{/contains}}
</div>
</div>
{{/each}}