Skip to content

feat: Implement favicon upload and preprocessing (Closes #200)#308

Merged
OXeu merged 1 commit intoopenRin:devfrom
Sittymin:feature/user-favicon-upload
Jan 27, 2025
Merged

feat: Implement favicon upload and preprocessing (Closes #200)#308
OXeu merged 1 commit intoopenRin:devfrom
Sittymin:feature/user-favicon-upload

Conversation

@Sittymin
Copy link
Copy Markdown
Contributor

变更内容

  • Favicon上传与预处理: 修改为上传图片,处理成 WebP 格式并存储在 R2 中作为网站图标。(Cloudflare Images 转换似乎没有裁剪为圆形的选项)
  • RSS 信息流图标修改: favicon 使用用户上传的处理后的 favicon,image 使用上传的 favicon 的源文件。
  • 文章图片处理: 对于文章,如果内容内部没有图片, 不回退为头像(原先每一篇都有个大头照怪怪的)。

注意事项

  • Cloudflare 图片转换: 需要开启 Cloudflare 的 Images 转换功能
  • 缓存: 如果更新之前上传的 favicon,可能会因为 Cloudflare 缓存而看不到即时的变化。可以等缓存失效或在上传新的favicon后手动清除Cloudflare缓存。

关联问题

@Sittymin
Copy link
Copy Markdown
Contributor Author

或许把 AVATAR 的图片改为未处理过的 favicon 的源文件也挺好的

@Sittymin Sittymin changed the title feat: 实现 favicon 上传与预处理,修改了 RSS 和文章的图片处理逻辑 (Closes #200) feat: Implement favicon upload and preprocessing, modified RSS and article image processing logic (Closes #200) Jan 20, 2025
@Sittymin Sittymin changed the title feat: Implement favicon upload and preprocessing, modified RSS and article image processing logic (Closes #200) feat: Implement favicon upload and preprocessing (Closes #200) Jan 20, 2025
@OXeu OXeu merged commit edbcac5 into openRin:dev Jan 27, 2025
Comment thread server/src/services/favicon.ts
OXeu added a commit that referenced this pull request Feb 1, 2026
* feat: Add adjacent feeds feature (Closes #202) (#293)

* style: Add placeholder div

style: Fixed FeedCard width

fix: Can't delete cache

chore: Adding clear adjacent feed cache

refactor: Adjacent feeds API

feat: Adding some cache function

style: Change flex direction on mobile screens

feat: Adding adjacent feeds to the frontend

feat: Adding adjacent feeds API to the backend

* style: 调整上一篇/下一篇样式

Signed-off-by: Xeu <thankrain@qq.com>

---------

Signed-off-by: Xeu <thankrain@qq.com>
Co-authored-by: Sittymin <mail@sittymin.top>

* fix: change adjacent sort strategy by created time

Signed-off-by: Xeu <thankrain@qq.com>

* style: adjust margin

Signed-off-by: Xeu <thankrain@qq.com>

* feat: Add additional translations and improve favicon update logic (#308)

* fix: move getEnv into function for proper initialization (#309)

* chore(deps-dev): bump vitest from 1.3.0 to 1.6.1 (#310)

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 1.3.0 to 1.6.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.6.1/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: locked version

* feat: Add sorting for friend list (#341)

* feat: add Moments feature (#356)

* fix(footer): update copyright year to be dynamic

* feat(editor): add reusable markdown editor component

* feat(db): add moments table and relations

* feat(moments): add moments service with CRUD operations

* feat(moments): add moments feature frontend

* chore: remove unused import

* fix: writing page layout

* style(moments): adjust moments style & remove font cdn

* feat: add error page and router permission handling (#358)

* feat: Implement automatic UI scaling for high-DPI displays (#370)

On high-resolution monitors (e.g., QHD, 4K), the UI elements and fonts appear too small, requiring users to manually zoom the browser for comfortable viewing.

This commit introduces an automatic scaling mechanism to improve readability and user experience on these large displays.

* docs: update documentation url

* docs: update documentation url

* Add cursor pointer to Table of Contents links (#385)

* Add cursor pointer to Table of Contents links

* Set cursor pointer opacity to 50

* fix Bun version (#389)

* fix: 浏览器 无法显示 时间轴的问题 (#391)

* Update DEPLOY.md (#408)

* fix monaco editor IME problem (#407)

* feat: implement AI summary feature with extensive model support (#411)

This commit adds comprehensive AI summary functionality for articles with support for multiple AI providers and models.

**Frontend:**
- Add AI configuration UI in settings with manual save button
- AI enable/disable toggle auto-saves immediately
- Change provider/model inputs from text to select dropdowns for better UX
- Provider/model selection dynamically updates available options
- Add storage event listener to sync AI enabled state across pages
- Add disabled prop support to Button component

**Backend:**
- Add AI configuration table (ai_config) with provider, model, API key, and URL
- Add /ai-config API endpoint for CRUD operations
- Integrate AI summary generation in feed service
- Include AI enabled status in client config response

**AI Providers Supported (5 providers, 70+ models):**
- OpenAI: GPT-5/4/3.5 series (22 models)
- Claude: 4.5/3 series (10 models)
- Gemini: 3/2.5/2.0/1.5 series (14 models)
- DeepSeek: chat/reasoner (2 models)
- Zhipu: GLM-4 series (20 models)

**Performance:**
- Optimize config loading by including AI status in client config
- Reduce API requests per page load from 2 to 1

**i18n:**
- Add translations for AI configuration UI (zh-CN, en, ja, zh-TW)

**Database:**
- Migration 0005.sql adds ai_config table

Co-authored-by: Claude <noreply@anthropic.com>

* feat: support custom models

* fix: custom apiUrl does not work

* refactor: Simplifies the configuration of the local development environment (#417)

* chore: update bun.lockb

* chore: bump bun to 1.3.6

* ci: add pr check workflow

* feat(release): implement automated release workflow with commit-based changelog generation (#418)

Add automated release notes generation from conventional commits

Create commit message convention documentation

Enhance release script to auto-generate CHANGELOG templates

Update release workflow to categorize commits (features, fixes, etc.)

Improve CHANGELOG.md structure with detailed migration guides

Update RELEASE.md documentation with new workflow

The release process now:

Extracts and categorizes commits by type (feat, fix, perf, etc.)

Generates GitHub Release notes automatically

Maintains detailed CHANGELOG.md for migration guides

Enforces conventional commit format through documentation

Refs: improved release mechanism design

* docs: migrate documentation from standalone repo to main repository (#419)

Move all docs from https://github.com/openRin/docs to docs/ directory

Set up Rspress documentation site with bilingual support (zh/en)

Include deploy guides, SEO/RSS configuration, changelog, and contribution guidelines

Update README files to reference the new docs location

Ensure code and documentation are now in sync within the same repository

* docs: migrate remaining documentation to Rspress documentation site (#420)

* docs: migrate remaining docs to documentation site

- Move DEVELOPMENT.md to docs/docs/zh/guide/development.md
- Move COMMIT_CONVENTION.md to docs/docs/zh/guide/commit-convention.md (translated to Chinese)
- Move RELEASE.md to docs/docs/zh/guide/release.md (translated to Chinese)
- Update _meta.json and _nav.json to include new pages
- Remove legacy markdown files from docs/ root

* docs: add English documentation for development, commit convention and release

- Add docs/docs/en/guide/development.md (local development guide)
- Add docs/docs/en/guide/commit-convention.md (commit message convention)
- Add docs/docs/en/guide/release.md (release process)
- Update en/_meta.json and en/_nav.json to include new pages

This completes the bilingual documentation migration for all guide pages.

* docs: update logo for docs & readme

---------

Signed-off-by: Xeu <thankrain@qq.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Sittymin <mail@sittymin.top>
Co-authored-by: Sittymin <45896075+Sittymin@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nekomoyi <funny_mo_yi@foxmail.com>
Co-authored-by: Antigone Semiotics Club <115871032+AntigoneSemioticsClub@users.noreply.github.com>
Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
Co-authored-by: Zhipeng Luo <2830942138@qq.com>
Co-authored-by: Mao Chenyu <chenyumao815@outlook.com>
Co-authored-by: nicad <36125594+PBnicad@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] 支持上传图片&预处理作为 favicon

2 participants