diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..ba6cad3 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,40 @@ +name: Upstream Sync + +permissions: + contents: write + +on: + schedule: + - cron: "0 0 * * *" # every day + workflow_dispatch: + +jobs: + sync_latest_from_upstream: + name: Sync latest commits from upstream repo + runs-on: ubuntu-latest + if: ${{ github.event.repository.fork }} + + steps: + # Step 1: run a standard checkout action + - name: Checkout target repo + uses: actions/checkout@v3 + + # Step 2: run the sync action + - name: Sync upstream changes + id: sync + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 + with: + upstream_sync_repo: ccbikai/BroadcastChannel + upstream_sync_branch: main + target_sync_branch: main + target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set + + # Set test_mode true to run tests instead of the true action!! + test_mode: false + + - name: Sync check + if: failure() + run: | + echo "[Error] 由于上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次。" + echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork." + exit 1 diff --git a/README.md b/README.md index ebc2bb9..b0d3ce0 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,11 @@ English | [简体中文](./README.zh-cn.md) - [Steve Studio](https://tgc.surgeee.me/) - [LiFePO4:沙雕吐槽](https://lifepo4.top) - [Hotspot Hourly](https://hourly.top/) +- [大河马中文财经新闻分享](https://a.xiaomi318.com/) +- [\_My. Tricks 🎩 Collection](https://channel.mykeyvans.com) +- [小报童专栏精选](https://xiaobaotong.genaiprism.site/) +- [Fake news](https://fake-news.csgo.ovh/) +- [miyi23's Geekhub资源分享](https://gh.miyi23.top/) ### Platform diff --git a/README.zh-cn.md b/README.zh-cn.md index ec3cdc9..0d9fccf 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -32,6 +32,11 @@ - [Steve Studio](https://tgc.surgeee.me/) - [LiFePO4:沙雕吐槽](https://lifepo4.top) - [Hotspot Hourly](https://hourly.top/) +- [大河马中文财经新闻分享](https://a.xiaomi318.com/) +- [\_My. 技巧 🎩 集锦](https://channel.mykeyvans.com) +- [小报童专栏精选](https://xiaobaotong.genaiprism.site/) +- [Fake news](https://fake-news.csgo.ovh/) +- [miyi23's Geekhub资源分享](https://gh.miyi23.top/) ### 平台 diff --git a/src/assets/item.css b/src/assets/item.css index 43da170..d167a56 100644 --- a/src/assets/item.css +++ b/src/assets/item.css @@ -1,6 +1,18 @@ .content { word-break: break-word; + .image-list-container { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-template-rows: masonry; + + &.image-list-odd { + :first-child { + grid-column: 1 / 3; + } + } + } + img { width: calc(100% - var(--box-margin)); } @@ -106,6 +118,10 @@ display: block !important; } + .tgme_widget_message_video_wrap { + display: none; + } + .tgme_widget_message_poll_options { display: block; diff --git a/src/components/header.astro b/src/components/header.astro index b8e3cc7..9ddb1d2 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -156,6 +156,7 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/'