chore: configure eslint and update gitignore

This commit is contained in:
TYt50
2026-02-01 15:07:02 +08:00
parent 1cbd819ff6
commit 8908d56518
13 changed files with 1938 additions and 643 deletions

38
install.bat Normal file
View File

@@ -0,0 +1,38 @@
@echo off
echo ==========================================
echo 2FA ACCOUNT TOOL - Setup Utility
echo ==========================================
echo.
:: Check for Node.js
node -v >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Node.js is not installed!
echo Please download and install Node.js from https://nodejs.org/
pause
exit /b
)
echo [1/2] Cleaning up old installation files...
if exist node_modules (
rd /s /q node_modules
)
echo [2/2] Installing dependencies (npm install)...
call npm install
if %errorlevel% neq 0 (
echo.
echo [ERROR] Dependency installation failed.
echo Please check your internet connection.
pause
exit /b
)
echo.
echo ==========================================
echo SETUP SUCCESSFUL!
echo You can now run 'start.vbs' to launch.
echo ==========================================
echo.
pause