feat: support workwonders

This commit is contained in:
Zamitto
2025-12-07 20:38:53 -03:00
parent e872b2ea8a
commit b59fb7dc36
4 changed files with 17 additions and 5 deletions

View File

@@ -58,7 +58,13 @@ export class HydraApi {
const decodedBase64 = atob(payload as string); const decodedBase64 = atob(payload as string);
const jsonData = JSON.parse(decodedBase64); const jsonData = JSON.parse(decodedBase64);
const { accessToken, expiresIn, refreshToken } = jsonData; const {
accessToken,
expiresIn,
refreshToken,
featurebaseJwt,
workwondersJwt,
} = jsonData;
const now = new Date(); const now = new Date();
@@ -85,6 +91,8 @@ export class HydraApi {
accessToken, accessToken,
refreshToken, refreshToken,
tokenExpirationTimestamp, tokenExpirationTimestamp,
featurebaseJwt,
workwondersJwt,
}, },
{ valueEncoding: "json" } { valueEncoding: "json" }
); );

View File

@@ -138,7 +138,8 @@ export class WindowManager {
(details, callback) => { (details, callback) => {
if ( if (
details.webContentsId !== this.mainWindow?.webContents.id || details.webContentsId !== this.mainWindow?.webContents.id ||
details.url.includes("chatwoot") details.url.includes("chatwoot") ||
details.url.includes("workwonders")
) { ) {
return callback(details); return callback(details);
} }
@@ -159,7 +160,8 @@ export class WindowManager {
if ( if (
details.webContentsId !== this.mainWindow?.webContents.id || details.webContentsId !== this.mainWindow?.webContents.id ||
details.url.includes("featurebase") || details.url.includes("featurebase") ||
details.url.includes("chatwoot") details.url.includes("chatwoot") ||
details.url.includes("workwonders")
) { ) {
return callback(details); return callback(details);
} }

View File

@@ -122,10 +122,10 @@ export function BottomPanel() {
</button> </button>
<button <button
data-featurebase-changelog data-open-workwonders-changelog-mini
className="bottom-panel__version-button" className="bottom-panel__version-button"
> >
<small data-featurebase-changelog> <small>
{sessionHash ? `${sessionHash} -` : ""} v{version} &quot; {sessionHash ? `${sessionHash} -` : ""} v{version} &quot;
{VERSION_CODENAME}&quot; {VERSION_CODENAME}&quot;
</small> </small>

View File

@@ -20,6 +20,8 @@ export interface Auth {
accessToken: string; accessToken: string;
refreshToken: string; refreshToken: string;
tokenExpirationTimestamp: number; tokenExpirationTimestamp: number;
featurebaseJwt: string;
workwondersJwt: string;
} }
export interface User { export interface User {