feat: add update and start script for dummies #828

Merged
Sainan merged 4 commits from 4dummies into main 2025-01-20 03:22:34 -08:00

View File

@ -0,0 +1,22 @@
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
@echo off
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
echo Updating SpaceNinjaServer...
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
git pull
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Add error handling and branch specification for git operations.

The git pull command should include error handling and specify the branch to avoid unintended merges.

-git pull
+@echo Updating repository...
+git pull origin main || (
+    echo Failed to update repository
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Updating repository...
git pull origin main || (
    echo Failed to update repository
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Add error handling and branch specification for git operations.** The `git pull` command should include error handling and specify the branch to avoid unintended merges. ```diff -git pull +@echo Updating repository... +git pull origin main || ( + echo Failed to update repository + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Updating repository... git pull origin main || ( echo Failed to update repository pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
if exist static\data\0\ (
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
echo Updating stripped assets...
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
cd static\data\0\
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
git pull
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
cd ..\..\..\
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
)
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
echo Updating dependencies...
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
call npm i
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
call npm run build
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
call npm run start
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Add build validation and process management.

The build and start commands need error handling and process management.

-call npm run build
-call npm run start
+@echo Building application...
+call npm run build || (
+    echo Build failed
+    pause
+    exit /b 1
+)
+
+@echo Starting server...
+call npm run start || (
+    echo Server failed to start
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Building application...
call npm run build || (
    echo Build failed
    pause
    exit /b 1
)

@echo Starting server...
call npm run start || (
    echo Server failed to start
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Add build validation and process management.** The build and start commands need error handling and process management. ```diff -call npm run build -call npm run start +@echo Building application... +call npm run build || ( + echo Build failed + pause + exit /b 1 +) + +@echo Starting server... +call npm run start || ( + echo Server failed to start + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Building application... call npm run build || ( echo Build failed pause exit /b 1 ) @echo Starting server... call npm run start || ( echo Server failed to start pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
echo SpaceNinjaServer seems to have crashed.
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
:a
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
pause > nul
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
goto a
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Ensure consistent use of call and add error handling for npm operations.

The npm commands should be consistent in using call and include error handling.

-call npm i
+@echo Installing dependencies...
+call npm i || (
+    echo Failed to install dependencies
+    pause
+    exit /b 1
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

@echo Installing dependencies...
call npm i || (
    echo Failed to install dependencies
    pause
    exit /b 1
)
_:hammer_and_wrench: Refactor suggestion_ **Ensure consistent use of `call` and add error handling for npm operations.** The `npm` commands should be consistent in using `call` and include error handling. ```diff -call npm i +@echo Installing dependencies... +call npm i || ( + echo Failed to install dependencies + pause + exit /b 1 +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion @echo Installing dependencies... call npm i || ( echo Failed to install dependencies pause exit /b 1 ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->
coderabbitai[bot] commented 2025-01-19 08:30:23 -08:00 (Migrated from github.com)
Review

🛠️ Refactor suggestion

Improve directory handling and add validation.

The script uses hard-coded paths and lacks directory validation.

-if exist static\data\0\ (
-	cd static\data\0\
-	git pull
-	cd ..\..\..\
-)
+if exist static\data\0\ (
+    @echo Updating data repository...
+    pushd static\data\0\ || (
+        echo Failed to enter data directory
+        pause
+        exit /b 1
+    )
+    git pull origin main || (
+        echo Failed to update data repository
+        popd
+        pause
+        exit /b 1
+    )
+    popd
+)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

if exist static\data\0\ (
    @echo Updating data repository...
    pushd static\data\0\ || (
        echo Failed to enter data directory
        pause
        exit /b 1
    )
    git pull origin main || (
        echo Failed to update data repository
        popd
        pause
        exit /b 1
    )
    popd
)
_:hammer_and_wrench: Refactor suggestion_ **Improve directory handling and add validation.** The script uses hard-coded paths and lacks directory validation. ```diff -if exist static\data\0\ ( - cd static\data\0\ - git pull - cd ..\..\..\ -) +if exist static\data\0\ ( + @echo Updating data repository... + pushd static\data\0\ || ( + echo Failed to enter data directory + pause + exit /b 1 + ) + git pull origin main || ( + echo Failed to update data repository + popd + pause + exit /b 1 + ) + popd +) ``` <!-- suggestion_start --> <details> <summary>📝 Committable suggestion</summary> > ‼️ **IMPORTANT** > Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements. `````suggestion if exist static\data\0\ ( @echo Updating data repository... pushd static\data\0\ || ( echo Failed to enter data directory pause exit /b 1 ) git pull origin main || ( echo Failed to update data repository popd pause exit /b 1 ) popd ) ````` </details> <!-- suggestion_end --> <!-- This is an auto-generated comment by CodeRabbit -->