mirror of
https://github.com/ivabus/gui
synced 2025-04-24 06:27:09 +03:00
#183 package shapes
This commit is contained in:
parent
4273295168
commit
4daea75753
4 changed files with 12 additions and 3 deletions
|
@ -7,6 +7,7 @@ import urlJoin from 'url-join';
|
|||
export const baseUrl = 'https://api.tea.xyz/v1';
|
||||
|
||||
export async function get<T>(path: string, query?: { [key: string]: string }) {
|
||||
console.log(`GET /api/${path}`)
|
||||
const [session, client] = await Promise.all([getSession(), getClient()]);
|
||||
|
||||
const uri = urlJoin(baseUrl, path);
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div>
|
||||
<p>
|
||||
<span class="text-xs text-gray"
|
||||
>V {pkg.version} {pkg?.bottles ? `| ${pkg.bottles} bottles` : ''}</span
|
||||
>V {pkg.version} {pkg?.bottles?.length ? `| ${pkg.bottles.length} bottles` : ''}</span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,15 @@ export interface Package {
|
|||
dl_count: number;
|
||||
installs: number;
|
||||
reviews?: Review[];
|
||||
bottles?: number; // TODO: where to get this?
|
||||
// metas
|
||||
full_description?: string; // probably markdown
|
||||
bottles?: Bottle[];
|
||||
license?: string;
|
||||
size_bytes?: number;
|
||||
documentation_url?: string;
|
||||
github_repository_url?: string;
|
||||
owners?: Partial<Developer>[];
|
||||
categories?: string[];
|
||||
}
|
||||
|
||||
export type AirtablePost = {
|
||||
|
|
Loading…
Reference in a new issue