Skip to content

Commit e77991e

Browse files
authored
Merge pull request #1009 from hydralauncher/chore/update-api-url
chore: update api and auth url
2 parents 79e2eb0 + 5e55c05 commit e77991e

File tree

10 files changed

+16
-7
lines changed

10 files changed

+16
-7
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
MAIN_VITE_STEAMGRIDDB_API_KEY=YOUR_API_KEY
21
MAIN_VITE_API_URL=API_URL
2+
MAIN_VITE_AUTH_URL=AUTH_URL
3+
MAIN_VITE_STEAMGRIDDB_API_KEY=YOUR_API_KEY
34
MAIN_VITE_SENTRY_DSN=YOUR_SENTRY_DSN
45
SENTRY_AUTH_TOKEN=

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
yarn build:linux
4242
env:
4343
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
44+
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
4445
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
4546
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -50,6 +51,7 @@ jobs:
5051
run: yarn build:win
5152
env:
5253
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
54+
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
5355
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
5456
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
5557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
yarn build:linux
4444
env:
4545
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
46+
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
4647
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
4748
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
4849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -52,6 +53,7 @@ jobs:
5253
run: yarn build:win
5354
env:
5455
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
56+
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
5557
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
5658
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
5759
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hydralauncher",
3-
"version": "2.1.6",
3+
"version": "2.1.7",
44
"description": "Hydra",
55
"main": "./out/main/index.js",
66
"author": "Los Broxas",

src/locales/en/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@
311311
"report_reason_violence": "Violence",
312312
"report_reason_spam": "Spam",
313313
"report_reason_other": "Other",
314-
"profile_reported": "Profile reported"
314+
"profile_reported": "Profile reported",
315+
"your_friend_code": "Your friend code:"
315316
}
316317
}

src/locales/pt-BR/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@
315315
"report_reason_violence": "Violência",
316316
"report_reason_spam": "Spam",
317317
"report_reason_other": "Outro",
318-
"profile_reported": "Perfil reportado"
318+
"profile_reported": "Perfil reportado",
319+
"your_friend_code": "Seu código de amigo:"
319320
}
320321
}

src/locales/pt-PT/translation.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@
275275
"no_pending_invites": "Não tens convites de amizade pendentes",
276276
"no_blocked_users": "Não tens nenhum utilizador bloqueado",
277277
"friend_code_copied": "Código de amigo copiado",
278-
"image_process_failure": "Falha ao processar a imagem"
278+
"image_process_failure": "Falha ao processar a imagem",
279+
"your_friend_code": "Seu código de amigo:"
279280
}
280281
}

src/main/services/window-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class WindowManager {
106106
});
107107

108108
authWindow.loadURL(
109-
`https://auth.hydralauncher.gg/?${searchParams.toString()}`
109+
`${import.meta.env.MAIN_VITE_AUTH_URL}/?${searchParams.toString()}`
110110
);
111111

112112
authWindow.once("ready-to-show", () => {

src/main/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
interface ImportMetaEnv {
44
readonly MAIN_VITE_STEAMGRIDDB_API_KEY: string;
55
readonly MAIN_VITE_API_URL: string;
6+
readonly MAIN_VITE_AUTH_URL: string;
67
readonly MAIN_VITE_SENTRY_DSN: string;
78
}
89

src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const UserFriendModal = ({
8181
alignItems: "center",
8282
}}
8383
>
84-
<p>Seu código de amigo: </p>
84+
<p>{t("your_friend_code")}</p>
8585
<button
8686
className={styles.friendCodeButton}
8787
onClick={copyToClipboard}

0 commit comments

Comments
 (0)