Merge pull request #1009 from hydralauncher/chore/update-api-url
Some checks are pending
Release / build (ubuntu-latest) (push) Waiting to run
Release / build (windows-latest) (push) Waiting to run

chore: update api and auth url
This commit is contained in:
Zamitto 2024-09-22 16:42:19 -03:00 committed by GitHub
commit e77991ea16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 16 additions and 7 deletions

View File

@ -1,4 +1,5 @@
MAIN_VITE_STEAMGRIDDB_API_KEY=YOUR_API_KEY
MAIN_VITE_API_URL=API_URL MAIN_VITE_API_URL=API_URL
MAIN_VITE_AUTH_URL=AUTH_URL
MAIN_VITE_STEAMGRIDDB_API_KEY=YOUR_API_KEY
MAIN_VITE_SENTRY_DSN=YOUR_SENTRY_DSN MAIN_VITE_SENTRY_DSN=YOUR_SENTRY_DSN
SENTRY_AUTH_TOKEN= SENTRY_AUTH_TOKEN=

View File

@ -41,6 +41,7 @@ jobs:
yarn build:linux yarn build:linux
env: env:
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }} MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -50,6 +51,7 @@ jobs:
run: yarn build:win run: yarn build:win
env: env:
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }} MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -43,6 +43,7 @@ jobs:
yarn build:linux yarn build:linux
env: env:
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }} MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -52,6 +53,7 @@ jobs:
run: yarn build:win run: yarn build:win
env: env:
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }} MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,6 +1,6 @@
{ {
"name": "hydralauncher", "name": "hydralauncher",
"version": "2.1.6", "version": "2.1.7",
"description": "Hydra", "description": "Hydra",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "Los Broxas", "author": "Los Broxas",

View File

@ -311,6 +311,7 @@
"report_reason_violence": "Violence", "report_reason_violence": "Violence",
"report_reason_spam": "Spam", "report_reason_spam": "Spam",
"report_reason_other": "Other", "report_reason_other": "Other",
"profile_reported": "Profile reported" "profile_reported": "Profile reported",
"your_friend_code": "Your friend code:"
} }
} }

View File

@ -315,6 +315,7 @@
"report_reason_violence": "Violência", "report_reason_violence": "Violência",
"report_reason_spam": "Spam", "report_reason_spam": "Spam",
"report_reason_other": "Outro", "report_reason_other": "Outro",
"profile_reported": "Perfil reportado" "profile_reported": "Perfil reportado",
"your_friend_code": "Seu código de amigo:"
} }
} }

View File

@ -275,6 +275,7 @@
"no_pending_invites": "Não tens convites de amizade pendentes", "no_pending_invites": "Não tens convites de amizade pendentes",
"no_blocked_users": "Não tens nenhum utilizador bloqueado", "no_blocked_users": "Não tens nenhum utilizador bloqueado",
"friend_code_copied": "Código de amigo copiado", "friend_code_copied": "Código de amigo copiado",
"image_process_failure": "Falha ao processar a imagem" "image_process_failure": "Falha ao processar a imagem",
"your_friend_code": "Seu código de amigo:"
} }
} }

View File

@ -106,7 +106,7 @@ export class WindowManager {
}); });
authWindow.loadURL( authWindow.loadURL(
`https://auth.hydralauncher.gg/?${searchParams.toString()}` `${import.meta.env.MAIN_VITE_AUTH_URL}/?${searchParams.toString()}`
); );
authWindow.once("ready-to-show", () => { authWindow.once("ready-to-show", () => {

View File

@ -3,6 +3,7 @@
interface ImportMetaEnv { interface ImportMetaEnv {
readonly MAIN_VITE_STEAMGRIDDB_API_KEY: string; readonly MAIN_VITE_STEAMGRIDDB_API_KEY: string;
readonly MAIN_VITE_API_URL: string; readonly MAIN_VITE_API_URL: string;
readonly MAIN_VITE_AUTH_URL: string;
readonly MAIN_VITE_SENTRY_DSN: string; readonly MAIN_VITE_SENTRY_DSN: string;
} }

View File

@ -81,7 +81,7 @@ export const UserFriendModal = ({
alignItems: "center", alignItems: "center",
}} }}
> >
<p>Seu código de amigo: </p> <p>{t("your_friend_code")}</p>
<button <button
className={styles.friendCodeButton} className={styles.friendCodeButton}
onClick={copyToClipboard} onClick={copyToClipboard}