mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-25 00:27:43 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82a2e93ac6 |
No files matched your search
@@ -108,7 +108,7 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
".": "2.9.0"
|
".": "2.8.5"
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,6 @@ def build_public_config() -> dict:
|
|||||||
"notify_content": settings.notify_content,
|
"notify_content": settings.notify_content,
|
||||||
"show_admin_address": normalize_public_flag(settings.show_admin_addr),
|
"show_admin_address": normalize_public_flag(settings.show_admin_addr),
|
||||||
"max_save_seconds": settings.max_save_seconds,
|
"max_save_seconds": settings.max_save_seconds,
|
||||||
"background": str(settings.background or ""),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
file-code-box:
|
file-code-box:
|
||||||
image: lanol/filecodebox:2.9.0 # x-release-please-version
|
image: lanol/filecodebox:2.8.5 # x-release-please-version
|
||||||
volumes:
|
volumes:
|
||||||
- fcb-data:/app/data:rw
|
- fcb-data:/app/data:rw
|
||||||
# NAS 已有文件:把共享目录挂到 /app/data/local,即可在后台「本地分享」里生成提取码,无需再上传
|
# NAS 已有文件:把共享目录挂到 /app/data/local,即可在后台「本地分享」里生成提取码,无需再上传
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [2.9.0](https://github.com/vastsa/FileCodeBox/compare/v2.8.5...v2.9.0) (2026-11-16)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* expose background in public config for 2024 theme ([#546](https://github.com/vastsa/FileCodeBox/issues/546)) ([f9cc16c](https://github.com/vastsa/FileCodeBox/commit/f9cc16c805757dc4dcf198456f4a5e84922b9b8f))
|
|
||||||
|
|
||||||
## [2.8.5](https://github.com/vastsa/FileCodeBox/compare/v2.8.4...v2.8.5) (2026-10-27)
|
## [2.8.5](https://github.com/vastsa/FileCodeBox/compare/v2.8.4...v2.8.5) (2026-10-27)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
<!-- Current release: 2.9.0 x-release-please-version -->
|
<!-- Current release: 2.8.5 x-release-please-version -->
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ docker run -d --restart unless-stopped \
|
|||||||
--log-opt max-size=10m \
|
--log-opt max-size=10m \
|
||||||
--log-opt max-file=3 \
|
--log-opt max-file=3 \
|
||||||
--name filecodebox \
|
--name filecodebox \
|
||||||
lanol/filecodebox:2.9.0 # x-release-please-version
|
lanol/filecodebox:2.8.5 # x-release-please-version
|
||||||
```
|
```
|
||||||
|
|
||||||
Open `http://localhost:12345` and complete the first-run setup.
|
Open `http://localhost:12345` and complete the first-run setup.
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ docker run -d --restart unless-stopped \
|
|||||||
--log-opt max-size=10m \
|
--log-opt max-size=10m \
|
||||||
--log-opt max-file=3 \
|
--log-opt max-file=3 \
|
||||||
--name filecodebox \
|
--name filecodebox \
|
||||||
lanol/filecodebox:2.9.0 # x-release-please-version
|
lanol/filecodebox:2.8.5 # x-release-please-version
|
||||||
```
|
```
|
||||||
|
|
||||||
打开 `http://localhost:12345`,按引导完成首次初始化。
|
打开 `http://localhost:12345`,按引导完成首次初始化。
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ docker run -d --restart unless-stopped \
|
|||||||
--log-opt max-size=10m \
|
--log-opt max-size=10m \
|
||||||
--log-opt max-file=3 \
|
--log-opt max-file=3 \
|
||||||
--name filecodebox \
|
--name filecodebox \
|
||||||
lanol/filecodebox:2.9.0 # x-release-please-version
|
lanol/filecodebox:2.8.5 # x-release-please-version
|
||||||
```
|
```
|
||||||
|
|
||||||
访问 `http://localhost:12345`,完成首次初始化。生产环境建议固定版本号;`latest` 指向最新正式版。
|
访问 `http://localhost:12345`,完成首次初始化。生产环境建议固定版本号;`latest` 指向最新正式版。
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ docker run -d --restart unless-stopped \
|
|||||||
--log-opt max-size=10m \
|
--log-opt max-size=10m \
|
||||||
--log-opt max-file=3 \
|
--log-opt max-file=3 \
|
||||||
--name filecodebox \
|
--name filecodebox \
|
||||||
lanol/filecodebox:2.9.0 # x-release-please-version
|
lanol/filecodebox:2.8.5 # x-release-please-version
|
||||||
```
|
```
|
||||||
|
|
||||||
Open `http://localhost:12345` and complete first-run setup. Pin a version in production; `latest` tracks the newest stable release.
|
Open `http://localhost:12345` and complete first-run setup. Pin a version in production; `latest` tracks the newest stable release.
|
||||||
|
|||||||
@@ -24,19 +24,3 @@ class AdminAddressPublicConfigTests(unittest.TestCase):
|
|||||||
self.assertIs(type(public_value), int)
|
self.assertIs(type(public_value), int)
|
||||||
self.assertEqual(public_value, expected_value)
|
self.assertEqual(public_value, expected_value)
|
||||||
self.assertIs(feature_value, bool(expected_value))
|
self.assertIs(feature_value, bool(expected_value))
|
||||||
|
|
||||||
|
|
||||||
class BackgroundPublicConfigTests(unittest.TestCase):
|
|
||||||
def setUp(self):
|
|
||||||
self._original_user_config = dict(settings.user_config)
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
settings.user_config = self._original_user_config
|
|
||||||
|
|
||||||
def test_background_is_exposed_for_themes(self):
|
|
||||||
settings.background = "https://example.com/bg.jpg"
|
|
||||||
self.assertEqual(build_public_config()["background"], "https://example.com/bg.jpg")
|
|
||||||
|
|
||||||
def test_empty_background_is_string(self):
|
|
||||||
settings.background = None
|
|
||||||
self.assertEqual(build_public_config()["background"], "")
|
|
||||||
Reference in new issue
Block a user