-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from beebls/nightly
CSSLoader Desktop V1.2.0
- Loading branch information
Showing
15 changed files
with
147 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ThemeError } from "../../ThemeTypes"; | ||
import { server } from "./server"; | ||
export function getLastLoadErrors(): Promise<ThemeError[] | undefined> { | ||
return server! | ||
.callPluginMethod<{}, { fails: ThemeError[] }>("get_last_load_errors", {}) | ||
.then((data) => { | ||
if (data.success) { | ||
return data.result.fails; | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { themeContext } from "@contexts/themeContext"; | ||
import { useContext } from "react"; | ||
|
||
export function ThemeErrorsList() { | ||
const { errors } = useContext(themeContext); | ||
return ( | ||
<div className="flex w-full max-w-[960px] flex-col"> | ||
<h2 className="font-fancy mx-auto mb-4 w-full max-w-[960px] text-sm font-bold">Errors</h2> | ||
<div className="flex flex-col gap-4"> | ||
{errors.map((e) => { | ||
const [themeName, error] = e; | ||
return ( | ||
<div className="w-full overflow-hidden rounded-xl border-2 border-borders-base1-dark transition hover:border-borders-base2-dark dark:bg-base-3-dark"> | ||
<div className="flex h-full w-full flex-col items-start bg-red-800/20 p-4 sm:flex-row sm:items-center sm:gap-4"> | ||
<span className="font-semibold">{themeName}</span> | ||
<span>{error}</span> | ||
</div> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import { Theme } from "ThemeTypes"; | ||
import { Theme, ThemeError } from "ThemeTypes"; | ||
import { createContext } from "react"; | ||
|
||
export const themeContext = createContext<{ | ||
themes: Theme[]; | ||
setThemes: any; | ||
refreshThemes: any; | ||
selectedPreset: Theme | undefined; | ||
errors: ThemeError[]; | ||
setErrors: any; | ||
}>({ | ||
themes: [], | ||
setThemes: () => {}, | ||
refreshThemes: () => {}, | ||
selectedPreset: undefined, | ||
errors: [], | ||
setErrors: () => {}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"version": "1.1.0", | ||
"notes": "Check Github for the release notes!", | ||
"pub_date": "2023-09-19T00:25:37.723Z", | ||
"notes": "Download the release for your platform below", | ||
"pub_date": "2024-03-14T23:21:39.028Z", | ||
"platforms": { | ||
"linux-x86_64": { | ||
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUR25UdTJ0dzN1MWwxN1djOHJJTkU3Q3RhMVRnTEdzb2JrV29yNThrbGVoZEsyRDFoaExDak0vSHB5YjUzUjk2eVkycHhJcUh5VHhzU3BpT1dyQmd6MTJSendxL3R0M0FNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjk1MDgzMTI1CWZpbGU6Y3NzLWxvYWRlci1kZXNrdG9wXzEuMS4wX2FtZDY0LkFwcEltYWdlLnRhci5negpkb2FMTzJuS0FkclFtV2xtWVpKQVBCcGlwWDhjSVdKVm42dTRTOTVScmlSNFZYaHArU21XWG5iVy9KQkJWbEVuS0JIUVFTZW44em5UdmdrZlorNlhEdz09Cg==", | ||
"url": "https://github.com/beebls/CSSLoader-Desktop/releases/download/v1.1.0/CSSLoader.Desktop_1.1.0.AppImage.tar.gz" | ||
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUR25UdTJ0dzN1MWhlS1ZPUzUxNlI4NHQreGk4dEZEMDIxWXRkTkJNYXhrSjZZOTlNemIyeGxiem5iWmVFZG9ZN3JpY0NoSFU5TEJnTFJ0NFFPci9aV0NWVXhYdGFOcGdjPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzEwNDU4MzAwCWZpbGU6Y3NzLWxvYWRlci1kZXNrdG9wXzEuMS4wX2FtZDY0LkFwcEltYWdlLnRhci5negpRNnFKL2JJQjNDTFJOL1pTWUVnVHpESWE5RzNjdTB2c2lSdG5ma2RWVTB1Rm4wMDFIaWdndktILzNvd1pKemJmdnFzY2g0M29rekFGRzU3WEg3VzBCQT09Cg==", | ||
"url": "https://github.com/beebls/CSSLoader-Desktop/releases/latest/download/CSSLoader.Desktop_.AppImage.tar.gz" | ||
}, | ||
"windows-x86_64": { | ||
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUR25UdTJ0dzN1MW1BdlRpNVhsQlo0bDZyZmpRTm4zdjZQSHpYU2VlbnJWdkFWaWNMRW41N3dVVnFJNEJrUjRjdTlSanhyVWd3Ly9rdlEzMzc4OWd5UWNIa3V0VEZ1SUF3PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjk1MDgzMTMzCWZpbGU6Q1NTTG9hZGVyIERlc2t0b3BfMS4xLjBfeDY0X2VuLVVTLm1zaS56aXAKNDE5TE9rV0wzU3h0OUhXQVRDOExZQkVmeXVxaUdpSnQ2cENmc1Jzb05iaUpEVFZvN2FEVkJqS2dMR1pFQi9CUzdpOEp3WmpyakxXNU5lVlNxVU9LRFE9PQo=", | ||
"url": "https://github.com/beebls/CSSLoader-Desktop/releases/download/v1.1.0/CSSLoader.Desktop_1.1.0.msi.zip" | ||
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUR25UdTJ0dzN1MXUzcmhCUHZSUitHdmpjeG4xeU0wdkxoZXZGRFVCVkR4YWFDOEZUR3BvNFlyTjB0RFRxS01ndkFhdkxnRGN2VGZaYUdSd09RaTcvcUo5ZnNOamFudFFjPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzEwNDU4NDk2CWZpbGU6Q1NTTG9hZGVyIERlc2t0b3BfMS4xLjBfeDY0X2VuLVVTLm1zaS56aXAKOEI2U1A5eW1NL2RHN2JPc0pZeGFicnhsOGZScEQ5SHFmZ1B6N1k5NjExbXZLTzZYVFdoRnZLeS9mSDlDNTFQRDhFOWV3aVdQbFpXUHlBSis2b3BwREE9PQo=", | ||
"url": "https://github.com/beebls/CSSLoader-Desktop/releases/latest/download/CSSLoader.Desktop_.msi.zip" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters