Skip to content

Commit

Permalink
feat(pkglist): add download links to package names
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Jul 25, 2024
1 parent 9409d13 commit 2faf954
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/package-list/package-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 class="text-center text-4xl font-extrabold text-maroon">Package List</h1>
<p class="my-4 px-10 text-center text-lg text-text">
The list of all packages currently deployed in Chaotic-AUR and their corresponding package names can be
found below.
found below. Packages may also be downloaded directly by clicking the file names.
</p>
<p class="my-4 px-10 text-center text-lg text-text">
Total packages: <a class="text-red">{{ packageList.length > 0 ? packageList.length : "loading ... ☕️" }}</a>
Expand Down Expand Up @@ -81,7 +81,7 @@ <h3 class="text-center pt-2.5 text-2xl font-extrabold text-maroon">All packages<
<div class="lex text-sm font-bold text-maroon">
<a>{{ deployment.name }}</a>
</div>
<a class="mb-1 text-xs font-normal text-text sm:order-last sm:mb-0">
<a class="mb-1 text-xs font-normal text-text sm:order-last sm:mb-0" href="{{ CAUR_PKG_URL + deployment.fullString }}">
{{ deployment.fullString }}
</a>
</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/app/package-list/package-list.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CAUR_BACKEND_URL, PkgList } from "@./shared-lib"
import { CAUR_BACKEND_URL, CAUR_PKG_URL, PkgList } from "@./shared-lib"
import { CommonModule } from "@angular/common"
import { HttpClient } from "@angular/common/http"
import { Component } from "@angular/core"
Expand All @@ -16,6 +16,7 @@ export class PackageListComponent {
loading = true
searchTerm: string | undefined
searchResults: any[] = []
protected readonly CAUR_PKG_URL = CAUR_PKG_URL

constructor(private httpClient: HttpClient) {
void this.getPkgList()
Expand Down
1 change: 1 addition & 0 deletions shared-lib/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const CAUR_MAP_URL = "https://status.chaotic.cx/map"
export const CAUR_METRICS_URL = "https://metrics.chaotic.cx/"
export const CAUR_NEWS_ID = "-1001293714071"
export const CAUR_PKG_LIST_URL = "https://builds.garudalinux.org/repos/chaotic-aur/pkgs.files.txt"
export const CAUR_PKG_URL = "https://cdn-mirror.chaotic.cx/chaotic-aur/x86_64/"
export const CAUR_PRIMARY_KEY = "3056513887B78AEB"
export const CAUR_TG_API_URL = `${CAUR_BACKEND_URL}/telegram/`

Expand Down

0 comments on commit 2faf954

Please sign in to comment.