diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 8a08b405e..e59e2669a 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -2,7 +2,7 @@ name: Deploy to GitHub Pages on: workflow_run: - workflows: ['Version Bump'] + workflows: ["Version Bump"] types: - completed branches: @@ -32,7 +32,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.x - cache: 'yarn' + cache: "yarn" - name: Install dependencies run: yarn install --frozen-lockfile @@ -44,8 +44,6 @@ jobs: VITE_BACKEND_URL: ${{ vars.VITE_BACKEND_URL }} VITE_TELEGRAM_BOT_USERNAME: ${{ secrets.VITE_TELEGRAM_BOT_USERNAME }} VITE_TELEGRAM_BOT_ID: ${{ secrets.VITE_TELEGRAM_BOT_ID }} - VITE_TELEGRAM_API_ID: ${{ secrets.VITE_TELEGRAM_API_ID }} - VITE_TELEGRAM_API_HASH: ${{ secrets.VITE_TELEGRAM_API_HASH }} VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }} VITE_SKILLS_GITHUB_REPO: ${{ vars.VITE_SKILLS_GITHUB_REPO }} VITE_SKILLS_GITHUB_TOKEN: ${{ secrets.VITE_SKILLS_GITHUB_TOKEN }} @@ -58,11 +56,11 @@ jobs: external_repository: alphahumanxyz/alphahuman publish_dir: ./dist publish_branch: gh-pages - commit_message: 'chore: deploy to gh-pages [skip ci]' - user_name: 'github-actions[bot]' + commit_message: "chore: deploy to gh-pages [skip ci]" + user_name: "github-actions[bot]" cname: app.alphahuman.xyz force_orphan: true - user_email: 'github-actions[bot]@users.noreply.github.com' + user_email: "github-actions[bot]@users.noreply.github.com" - name: Update GH repo uses: peaceiris/actions-gh-pages@v4 @@ -71,6 +69,6 @@ jobs: external_repository: alphahumanxyz/alphahuman publish_dir: ./publish publish_branch: main - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: 'chore: update main branch [skip ci]' + user_name: "github-actions[bot]" + user_email: "github-actions[bot]@users.noreply.github.com" + commit_message: "chore: update main branch [skip ci]" diff --git a/.github/workflows/package-android.yml b/.github/workflows/package-android.yml index 018631a57..5c8ce2a4a 100644 --- a/.github/workflows/package-android.yml +++ b/.github/workflows/package-android.yml @@ -195,8 +195,6 @@ jobs: VITE_BACKEND_URL: ${{ vars.VITE_BACKEND_URL }} VITE_TELEGRAM_BOT_USERNAME: ${{ secrets.VITE_TELEGRAM_BOT_USERNAME }} VITE_TELEGRAM_BOT_ID: ${{ secrets.VITE_TELEGRAM_BOT_ID }} - VITE_TELEGRAM_API_ID: ${{ secrets.VITE_TELEGRAM_API_ID }} - VITE_TELEGRAM_API_HASH: ${{ secrets.VITE_TELEGRAM_API_HASH }} VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }} VITE_SKILLS_GITHUB_REPO: ${{ vars.VITE_SKILLS_GITHUB_REPO }} VITE_DEBUG: ${{ vars.VITE_DEBUG }} diff --git a/scripts/ci-secrets.example.json b/scripts/ci-secrets.example.json index e17fb8a53..d976485ce 100644 --- a/scripts/ci-secrets.example.json +++ b/scripts/ci-secrets.example.json @@ -15,8 +15,6 @@ "APPLE_TEAM_ID": "", "VITE_TELEGRAM_BOT_USERNAME": "", "VITE_TELEGRAM_BOT_ID": "", - "VITE_TELEGRAM_API_ID": "", - "VITE_TELEGRAM_API_HASH": "", "VITE_SENTRY_DSN": "" }, "vars": { diff --git a/skills b/skills index 4905daf9e..311273808 160000 --- a/skills +++ b/skills @@ -1 +1 @@ -Subproject commit 4905daf9e82f8f34f4162bbe6a0e311e25028473 +Subproject commit 31127380830e2452226655fc30a64ae708586b55 diff --git a/src-tauri/src/services/tdlib_v8/qjs_ops/types.rs b/src-tauri/src/services/tdlib_v8/qjs_ops/types.rs index 85b60c376..48078ada4 100644 --- a/src-tauri/src/services/tdlib_v8/qjs_ops/types.rs +++ b/src-tauri/src/services/tdlib_v8/qjs_ops/types.rs @@ -117,8 +117,6 @@ pub struct WebSocketState { pub const ALLOWED_ENV_VARS: &[&str] = &[ "VITE_BACKEND_URL", - "VITE_TELEGRAM_API_ID", - "VITE_TELEGRAM_API_HASH", "VITE_TELEGRAM_BOT_USERNAME", "VITE_TELEGRAM_BOT_ID", "NODE_ENV", diff --git a/src/utils/config.ts b/src/utils/config.ts index 239a4219b..1ab599a6e 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -5,12 +5,6 @@ export const TELEGRAM_BOT_USERNAME = export const TELEGRAM_BOT_ID = import.meta.env.VITE_TELEGRAM_BOT_ID || '8043922470'; -export const TELEGRAM_API_ID = import.meta.env.VITE_TELEGRAM_API_ID - ? Number(import.meta.env.VITE_TELEGRAM_API_ID) - : undefined; - -export const TELEGRAM_API_HASH = import.meta.env.VITE_TELEGRAM_API_HASH || undefined; - export const IS_DEV = Boolean(import.meta.env.DEV) || import.meta.env.MODE === 'development'; export const SKILLS_GITHUB_REPO = import.meta.env.VITE_SKILLS_GITHUB_REPO || 'alphahumanxyz/skills';