mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #74] [MERGED] [pinterest] Add Support for Pinterest #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/74
Author: @ricoberger
Created: 11/25/2023
Status: ✅ Merged
Merged: 11/25/2023
Merged by: @ricoberger
Base:
main← Head:pinterest-add-support-for-pinterest📝 Commits (1)
3dbcf62[pinterest] Add Support for Pinterest📊 Changes
20 files changed (+641 additions, -11 deletions)
View changed files
📝
app/fonts/FDIcons.ttf(+0 -0)📝
app/lib/models/source.dart(+13 -0)📝
app/lib/utils/fd_icons.dart(+2 -0)📝
app/lib/widgets/item/details/item_details.dart(+6 -0)➕
app/lib/widgets/item/details/item_details_pinterest.dart(+40 -0)📝
app/lib/widgets/item/details/utils/item_title.dart(+4 -0)📝
app/lib/widgets/item/preview/item_preview.dart(+6 -0)➕
app/lib/widgets/item/preview/item_preview_pinterest.dart(+50 -0)📝
app/lib/widgets/item/preview/utils/item_description.dart(+4 -0)📝
app/lib/widgets/source/add/add_source.dart(+9 -4)➕
app/lib/widgets/source/add/add_source_pinterest.dart(+128 -0)📝
app/lib/widgets/source/source_icon.dart(+7 -0)📝
app/templates/iconfont/config.json(+14 -0)📝
app/templates/iconfont/iconfont.afdesign(+0 -0)➕
app/templates/iconfont/pinterest.svg(+7 -0)📝
landing/app/page.tsx(+19 -0)📝
supabase/functions/_shared/feed/feed.ts(+15 -0)➕
supabase/functions/_shared/feed/pinterest.ts(+309 -0)📝
supabase/functions/_shared/feed/rss.ts(+0 -1)📝
supabase/functions/_shared/models/source.ts(+8 -6)📄 Description
This commit adds a new source type "pinterest", which can be used to follow the post of an user or a board on Pinterest. To use the new source type a user can select the "Pinterest" item in the add source modal. In the form a user can provide the username or board he wants to follow via FeedDeck.
In the corresponding Supabase function we then convert the input provided by the user to an valid RSS feed url for Pinterest. This means that we have to add
/feed.rssfor users and.rssfor boards to the Pinterest url.Then we generate the source and items as for the other sources and reuse the existing components to render the preview and details item. We had to adjust the rendering logic for these items, to ignore empty values, from which also other sources will benefit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.