spreadsheet adjustments (#532)

* show all packages breadcrumbs

* download from gui.tea.xyz/release

* get packages data from cloudfront

* bump v0.0.48

---------

Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
Neil 2023-05-01 16:39:05 +08:00 committed by GitHub
parent 33d59a7bab
commit 1b9433e8e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 15 deletions

View file

@ -114,6 +114,11 @@ jobs:
ARM_URL: s3://preview.gui.tea.xyz/release/${{ steps.app_files.outputs.dmg_arm64 }}
X86_URL: s3://preview.gui.tea.xyz/release/${{ steps.app_files.outputs.dmg_x86 }}
- run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.AWS_GUI_DISTRIBUTION_ID }} \
--paths 'release/*'
- uses: actions/setup-node@v3
with:
node-version: 18

View file

@ -56,8 +56,6 @@ module.exports = {
// this determines the configuration of the auto-update feature
publish: {
provider: "generic",
// TODO: replace this with tea branded domain: gui-dist.tea.xyz
// url: "https://d2ovumu63qzbn6.cloudfront.net/"
url: "https://s3.amazonaws.com/preview.gui.tea.xyz/release"
url: "https://gui.tea.xyz/release"
}
};

View file

@ -1,6 +1,6 @@
{
"name": "tea",
"version": "0.0.47",
"version": "0.0.48",
"private": true,
"description": "tea gui app",
"author": "tea.xyz",

View file

@ -16,7 +16,7 @@
on:dblclick={topbarDoubleClick}
>
<ul class="text-gray flex h-10 items-center gap-1 pl-20 align-middle leading-10">
<a href="/?tab=all">
<a href="/?tab=discover">
<div class="home-btn w-12 text-center text-2xl">
<i class="icon-tea-logo-iconasset-1" />
</div>

View file

@ -33,9 +33,7 @@ const { ipcRenderer, shell } = window.require("electron");
export async function getDistPackages(): Promise<Package[]> {
try {
return withRetry(async () => {
const req = await axios.get<Package[]>(
"https://s3.amazonaws.com/preview.gui.tea.xyz/packages.json"
);
const req = await axios.get<Package[]>("https://gui.tea.xyz/packages.json");
log.info("packages received:", req.data.length);
return req.data;
});

View file

@ -68,7 +68,7 @@
},
"tags": {
"discover": "discover",
"all": "all",
"all": "all packages",
"installed": "installed",
"installed_updates_available": "Updates available",
"recently_updated": "Recently updated",

View file

@ -58,12 +58,10 @@
<header class="text-gray mx-16 mb-4 border border-x-0 border-t-0 py-5">
<a class="hover:text-white hover:opacity-80" href="/">{$t("common.home")}</a>
{#if tab && tab !== "all"}
<a class="hover:text-white hover:opacity-80" href="/?tab={tab || 'all'}"
>{$t(`tags.${tab}`).toLowerCase() || "all"}</a
>
{/if}
<a class="hover:text-white hover:opacity-80" href="/?tab={tab || 'discover'}"
>{$t(`tags.${tab}`).toLowerCase() || "discover"}</a
>
<span class="text-white">{pkg?.full_name}</span>
</header>
<div class="mx-16 mb-4">