-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
279 changed files
with
23,451 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ storage/* | |
*.log | ||
deploy/docker-compose/conf | ||
deploy/docker-compose/data | ||
builds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: 编译 Linux ARM32 | ||
set GOOS=linux | ||
set GOARCH=arm | ||
set GOARM=7 | ||
set OUTPUT_DIR=.\builds\PandoraHelper-%1-%GOOS%-%GOARCH% | ||
mkdir %OUTPUT_DIR% | ||
go build -ldflags="-s -w" -o %OUTPUT_DIR%\PandoraHelper .\cmd\server\main.go | ||
upx %OUTPUT_DIR%\PandoraHelper | ||
copy .\config.json "%OUTPUT_DIR%"\ | ||
|
||
:: 编译 Linux ARM64 | ||
set GOOS=linux | ||
set GOARCH=arm64 | ||
set OUTPUT_DIR=.\builds\PandoraHelper-%1-%GOOS%-%GOARCH% | ||
go build -ldflags="-s -w" -o %OUTPUT_DIR%\PandoraHelper .\cmd\server\main.go | ||
upx %OUTPUT_DIR%\PandoraHelper | ||
COPY .\config.json "%OUTPUT_DIR%"\ | ||
|
||
:: 编译为Linux 64位 | ||
set GOOS=linux | ||
set GOARCH=amd64 | ||
set OUTPUT_DIR=.\builds\PandoraHelper-%1-%GOOS%-%GOARCH% | ||
go build -ldflags="-s -w" -o %OUTPUT_DIR%\PandoraHelper .\cmd\server\main.go | ||
upx %OUTPUT_DIR%\PandoraHelper | ||
COPY .\config.json "%OUTPUT_DIR%"\ | ||
|
||
:: 编译 Windows 64 位 | ||
set GOOS=windows | ||
set GOARCH=amd64 | ||
set OUTPUT_DIR=.\builds\PandoraHelper-%1-%GOOS%-%GOARCH% | ||
go build -ldflags="-s -w" -o %OUTPUT_DIR%\PandoraHelper.exe .\cmd\server\main.go | ||
upx %OUTPUT_DIR%\PandoraHelper.exe | ||
COPY .\config.json "%OUTPUT_DIR%"\ | ||
|
||
:: 编译为macOS 64位 | ||
set GOOS=darwin | ||
set GOARCH=amd64 | ||
set OUTPUT_DIR=.\builds\PandoraHelper-%1-%GOOS%-%GOARCH% | ||
go build -ldflags="-s -w" -o %OUTPUT_DIR%\PandoraHelper .\cmd\server\main.go | ||
COPY .\config.json "%OUTPUT_DIR%"\ | ||
|
||
echo Compilation and compression complete. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"security": { | ||
"admin_password": "" | ||
}, | ||
"http": { | ||
"host": "127.0.0.1", | ||
"port": 8080 | ||
}, | ||
"database": { | ||
"driver": "sqlite", | ||
"dsn": "./data.db" | ||
}, | ||
"pandora": { | ||
"domain": { | ||
"chat": "https://chat.oaifree.com", | ||
"token": "https://token.oaifree.com", | ||
"new": "https://new.oaifree.com" | ||
} | ||
}, | ||
"log": { | ||
"level": "info", | ||
"output": "console", | ||
"log_file_name": "./logs/server.log", | ||
"max_backups": 30, | ||
"max_age": 7, | ||
"max_size": 1024, | ||
"compress": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.github | ||
.husky | ||
.vscode/ | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
root = true | ||
|
||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
insert_final_newline=true | ||
indent_style=space | ||
indent_size=2 | ||
max_line_length = 100 | ||
|
||
[*.{yml,yaml,json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_GLOB_APP_TITLE = Vite React TS Template | ||
REACT_EDITOR=webstorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_APP_BASE_API=/api | ||
VITE_APP_HOMEPAGE=/home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VITE_APP_BASE_API=/api | ||
VITE_APP_HOMEPAGE=/home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
*.sh | ||
node_modules | ||
*.lock | ||
**/*.svg | ||
**/*.md | ||
**/*.svg | ||
**/*.ejs | ||
**/*.html | ||
**/*.png | ||
**/*.toml | ||
**/*.md | ||
.vscode | ||
.idea | ||
dist | ||
/public | ||
/docs | ||
.husky | ||
.local | ||
/bin | ||
Dockerfile | ||
pnpm-lock.yaml | ||
tsconfig.node.json |
Oops, something went wrong.