repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/readability.rb
app/models/share/readability.rb
class Share::Readability < Share::Service URL = "https://www.readability.com" def initialize(klass = nil) @klass = klass if @klass.present? @client = OAuth::AccessToken.new(consumer, @klass.access_token, @klass.access_secret) end end def request_token(username, password) consumer.get_acc...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/kindle.rb
app/models/share/kindle.rb
class Share::Kindle < Share::Service def initialize(klass) @klass = klass end def share(params) response = {} if @klass.kindle_address.present? MakeEpub.perform_async(params[:entry_id], @klass.user_id, @klass.kindle_address, params[:extract] == "true") response[:message] = "Article sent t...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/twitter.rb
app/models/share/twitter.rb
class Share::Twitter < Share::Service URL = "https://twitter.com/intent/tweet" def initialize(klass = nil) @klass = klass end def share(params, entry = nil) if entry.blank? entry = Entry.find(params[:entry_id]) end uri = URI.parse(URL) uri.query = {"url" => entry.fully_qualified_url,...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/pocket.rb
app/models/share/pocket.rb
class Share::Pocket < Share::Service include HTTParty base_uri "https://getpocket.com" headers "Content-Type" => "application/json; charset=UTF-8", "X-Accept" => "application/json" PATHS = { auth_authorize: "/auth/authorize", oauth_request: "/v3/oauth/request", oauth_authorize: "/v3/oauth/authorize...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/evernote_share.rb
app/models/share/evernote_share.rb
class Share::EvernoteShare < Share::Service URL = "https://www.evernote.com" # 1. evernote = EvernoteShare.new # 2. client = evernote.request_token # 3. session[:evernote_token] = client.token; session[:evernote_secret] = client.secret # 4. redirect_to client.authorize_url # 5. evernote = EvernoteShare.new...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/mastodon.rb
app/models/share/mastodon.rb
class Share::Mastodon < Share::Service # 1. mastodon = Mastodon.new # 2. find or create app on server host # 3. redirect to authorize url, set session[:mastodon_server] # 4. request token, find server from session[:mastodon_server] # 5. save bearer token and server def initialize(klass = nil) @klass = ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/email.rb
app/models/share/email.rb
class Share::Email < Share::Service def initialize(klass) @klass = klass end def share(params) reply_to = @klass.email_address.present? ? @klass.email_address : @klass.user.email from_name = @klass.email_name.present? ? @klass.email_name : @klass.user.email update_completions(params[:to]) Ent...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/instapaper.rb
app/models/share/instapaper.rb
class Share::Instapaper < Share::Service URL = "https://www.instapaper.com" def initialize(klass = nil) @klass = klass if @klass.present? && @klass.access_token.present? && @klass.access_secret.present? @client = OAuth::AccessToken.new(consumer, @klass.access_token, @klass.access_secret) end en...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/tumblr.rb
app/models/share/tumblr.rb
class Share::Tumblr < Share::Service URL = "https://www.tumblr.com" API_URL = "https://api.tumblr.com/v2" # 1. tumblr = Tumblr.new # 2. client = tumblr.request_token # 3. session[:tumblr_token] = client.token; session[:tumblr_secret] = client.secret # 4. redirect_to client.authorize_url # 5. tumblr = Tum...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/service.rb
app/models/share/service.rb
class Share::Service class AuthError < StandardError; end def authenticated_share(klass, params) response = {} entry = Entry.find(params[:entry_id]) params["entry_url"] = entry.fully_qualified_url if klass.active? # child classes using this need to implement add status = add(params) ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/app_dot_net.rb
app/models/share/app_dot_net.rb
class Share::AppDotNet < Share::Service URL = "https://account.app.net/intent/post" def initialize(klass = nil) @klass = klass end def share(params, entry = nil) if entry.blank? entry = Entry.find(params[:entry_id]) end uri = URI.parse(URL) uri.query = {"url" => entry.fully_qualified...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/buffer.rb
app/models/share/buffer.rb
class Share::Buffer < Share::Service URL = "http://bufferapp.com/add" def initialize(klass = nil) @klass = klass end def share(params, entry = nil) if entry.blank? entry = Entry.find(params[:entry_id]) end uri = URI.parse(URL) uri.query = {"url" => entry.fully_qualified_url, "text" =...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/micro_blog.rb
app/models/share/micro_blog.rb
class Share::MicroBlog < Share::Service include HTTParty base_uri "https://micro.blog" def initialize(klass = nil) @klass = klass if @klass.present? @auth_token = @klass.api_token || @klass.access_token end end def request_token(username, password) response = self.class.post("/account/...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/share/pinboard.rb
app/models/share/pinboard.rb
class Share::Pinboard < Share::Service include HTTParty base_uri "https://api.pinboard.in/v1" def initialize(klass = nil) @klass = klass if @klass.present? @auth_token = @klass.access_token end end def request_token(username, password) response = self.class.get("/user/api_token", query...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/meta_links.rb
app/models/source/meta_links.rb
class Source::MetaLinks < Source def options return unless document? document.css("link[rel~=alternate]").each_with_object([]) do |link, array| if link_valid?(link) array.push join_url(response.url, link["href"]) end end end def find options.uniq.each do |url| feed = cr...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/guess.rb
app/models/source/guess.rb
class Source::Guess < Source def find url = Addressable::URI.parse(response.url) ["/rss", "/feed"].each do |path| guess = Addressable::URI.new(scheme: url.scheme, host: url.host, path: path).to_s feed = create_from_url!(guess) feeds.push(feed) if feed rescue Feedkit::Error end end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/xml.rb
app/models/source/xml.rb
class Source::Xml < Source def find feed = create_from_request!(response) feeds.push(feed) if feed rescue Feedkit::NotFeed end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/twitter_data.rb
app/models/source/twitter_data.rb
class Source::TwitterData < Source def initialize(url, auth) @url = url @auth = auth @feeds = [] end def find unless @auth.nil? recognized_url = Feedkit::TwitterURLRecognizer.new(@url, @auth.screen_name) if recognized_url.valid? twitter = Feedkit::Tweets.new(recognized_url, @...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/body_links.rb
app/models/source/body_links.rb
class Source::BodyLinks < Source def options return unless document? urls = document.css("a").each_with_object([]) do |anchor, array| if is_candidate?(anchor) array.push join_url(response.url, anchor["href"]) end end urls.first(4) end def find options.each do |url| ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/existing_feed.rb
app/models/source/existing_feed.rb
class Source::ExistingFeed < Source def find if feed = Feed.xml.where(feed_url: response.url).take create_from_request!(response) feeds.push(feed.reload) end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/source/known_pattern.rb
app/models/source/known_pattern.rb
class Source::KnownPattern < Source URLS = [ { template: "https://www.youtube.com/feeds/videos.xml?channel_id=%s".freeze, regex: Regexp.new(/https:\/\/www\.youtube\.com\/channel\/([^\/#\?]*)/) }, { template: "https://www.youtube.com/feeds/videos.xml?user=%s".freeze, regex: Regexp.n...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/vimeo.rb
app/models/iframe_embed/vimeo.rb
class IframeEmbed::Vimeo < IframeEmbed def self.supported_urls [ %r{.*?//player\.vimeo\.com/video/(.*?)(#|\?|$)} ] end def oembed_url @oembed_url ||= "https://vimeo.com/api/oembed.json" end def image_url super.gsub(/_\d+.jpg/, ".jpg") rescue nil end def iframe_params {"a...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/soundcloud.rb
app/models/iframe_embed/soundcloud.rb
class IframeEmbed::Soundcloud < IframeEmbed def self.supported_urls [ %r{.*?//w\.soundcloud\.com/player} ] end def oembed_url @oembed_url ||= "https://soundcloud.com/oembed" end def oembed_params params = Rack::Utils.parse_nested_query(embed_url.query) {url: params["url"], format: ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/default.rb
app/models/iframe_embed/default.rb
class IframeEmbed::Default < IframeEmbed def fetch @page ||= begin UrlCache.new(canonical_url) end end def title doc = Nokogiri::HTML5(@page.body) rescue nil title = doc&.css("title") title&.first&.text || "Embed" end def type clean_name end def subtitle embed_url.host...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/twitter.rb
app/models/iframe_embed/twitter.rb
class IframeEmbed::Twitter attr_reader :url def self.download(*args) instance = new(*args) instance.name instance end def initialize(url) @url = url end def name data.safe_dig("author_name") end def screen_name "@#{user}" end def permalink data.safe_dig("url") end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/spotify.rb
app/models/iframe_embed/spotify.rb
class IframeEmbed::Spotify < IframeEmbed def self.supported_urls [ %r{.*?//open\.spotify\.com/embed/(track|artist)/(.*?)(#|\?|$)}, %r{.*?//open\.spotify\.com/embed/user/(.*?)/playlist/(.*?)(#|\?|$)} ] end def oembed_url @oembed_url ||= "https://embed.spotify.com/oembed" end def oembe...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/ted.rb
app/models/iframe_embed/ted.rb
class IframeEmbed::Ted < IframeEmbed def self.supported_urls [ %r{.*?//embed\.ted\.com/talks/(.*?)(#|\?|$)} ] end def oembed_url @oembed_url ||= "https://www.ted.com/services/v1/oembed.json" end def image_url url = URI(super) url.query = nil url.to_s end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/youtube.rb
app/models/iframe_embed/youtube.rb
class IframeEmbed::Youtube < IframeEmbed def self.supported_urls Feedbin::Application.config.youtube_embed_urls end def oembed_url @oembed_url ||= "https://www.youtube.com/oembed" end def image_url url = data["thumbnail_url"].sub "hqdefault", "maxresdefault" status = Rails.cache.fetch("youtu...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/kickstarter.rb
app/models/iframe_embed/kickstarter.rb
class IframeEmbed::Kickstarter < IframeEmbed def self.supported_urls [ %r{.*?//www\.kickstarter\.com/projects/(.*?)/(.*?)/widget/video\.html} ] end def oembed_url @oembed_url ||= "https://www.kickstarter.com/services/oembed" end def oembed_params {url: canonical_url, format: "json"} ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/iframe_embed/instagram.rb
app/models/iframe_embed/instagram.rb
class IframeEmbed::Instagram attr_reader :url def self.download(*args) instance = new(*args) instance.screen_name instance end def initialize(url) @url = url end def screen_name data.safe_dig("author_name") end def permalink "https://www.instagram.com/p/#{shortcode}/" end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/search/response.rb
app/models/search/response.rb
module Search class Response def initialize(data, page: 1, per_page: WillPaginate.per_page) @data = data @page = page @per_page = per_page end def total @data.safe_dig("hits", "total", "value") || 0 end def ids @data.safe_dig("hits", "hits")&.map {|hit| hit[...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/search/bulk_record.rb
app/models/search/bulk_record.rb
module Search class BulkRecord def initialize(action:, index:, id:, document:) @action = action @index = index @id = id @document = document end def to_request parts = [{ @action => { "_index" => @index, "_id" => @id } }] parts...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/search/connection.rb
app/models/search/connection.rb
module Search class Connection PATHS = { document: "/%{index}/_doc/%{id}", search: "/%{index}/_search", validate: "/%{index}/_validate/query", msearch: "/%{index}/_msearch", count: "/%{index}/_count", refresh: "/_refresh", bulk: "/_bulk", aliases: "/_ali...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/search/multi_search_record.rb
app/models/search/multi_search_record.rb
module Search class MultiSearchRecord def initialize(query:) @query = query end def to_request parts = [{}, @query] parts.map { JSON.dump(_1) }.join("\n") end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/content_filters/attributes.rb
app/models/content_filters/attributes.rb
module ContentFilters ALLOWED_CLASSES = %w[ twitter-tweet instagram-media imgur-embed-pub kg-bookmark-card kg-bookmark-author kg-bookmark-container kg-bookmark-content kg-bookmark-description kg-bookmark-icon kg-bookmark-metadata kg-bookmark-publisher kg-bookmark-thumbn...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/content_filters/substack.rb
app/models/content_filters/substack.rb
module ContentFilters class Substack < HTML::Pipeline::Filter def call content = doc.search(".body.markup") unless content.empty? doc = content end doc end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/content_filters/figure_controls.rb
app/models/content_filters/figure_controls.rb
# for example the controls on each image on https://www.thealgorithmicbridge.com module ContentFilters class FigureControls < HTML::Pipeline::Filter def call doc.tap do it.search("figure .image-link-expand svg").each do |element| element.remove end end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/content_filters/ghost_card.rb
app/models/content_filters/ghost_card.rb
module ContentFilters class GhostCard < HTML::Pipeline::Filter def call doc.search(".kg-bookmark-card").each do |element| element["class"] = [element["class"], "system-content"].join(" ") end doc end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/models/content_filters/scrub.rb
app/models/content_filters/scrub.rb
module ContentFilters class Scrub < HTML::Pipeline::Filter NEWSLETTER_ELEMENTS = %w[table thead tbody tfoot tr td center] DASHED_ELEMENT_PARENTS = %w[svg math] def call doc .scrub!(custom_elements) .scrub!(:prune) .scrub!(video) .scrub!(links) .scrub!(iframe...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/application_view.rb
app/views/application_view.rb
# frozen_string_literal: true class ApplicationView < ApplicationComponent # The ApplicationView is an abstract class for all your views. # By default, it inherits from `ApplicationComponent`, but you # can change that to `Phlex::HTML` if you want to keep views and # components independent. end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/embeds/iframe_view.rb
app/views/embeds/iframe_view.rb
module Embeds class IframeView < ApplicationView STIMULUS_CONTROLLER = :embed_player def initialize(media:, width:, height:) @media = media @width = width @height = height @expandable_selector = "expandable_#{SecureRandom.hex}" end def view_template controller = stimul...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/subscriptions/new_view.rb
app/views/subscriptions/new_view.rb
class Subscriptions::NewView < ApplicationView def initialize(feeds:, tag_editor:, search:) @feeds = feeds @tag_editor = tag_editor @search = search @valid_feed_ids = Rails.application.message_verifier(:valid_feed_ids).generate(@feeds.map(&:id)) end def view_template form_tag(subscriptions_pa...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/index_view.rb
app/views/settings/index_view.rb
module Settings class IndexView < ApplicationView def initialize(user:) @user = user end def view_template form_for @user, remote: true, url: settings_update_user_path(@user) do |f| render Settings::H1Component.new do "Settings" end render Settings::Control...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/index_view.rb
app/views/settings/newsletters/index_view.rb
module Settings module Newsletters class IndexView < ApplicationView def initialize(user:, subscription_ids:) @user = user @subscription_ids = subscription_ids end def view_template render Settings::H1Component.new do "Newsletters" end p class...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/senders/index_view.rb
app/views/settings/newsletters/senders/index_view.rb
module Settings::Newsletters::Senders class IndexView < ApplicationView def initialize(user:, feed_ids:, senders:) @user = user @feed_ids = feed_ids @senders = senders end def view_template render Settings::H1Component.new do "Newsletter Senders" end form_tag ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/senders/list_component.rb
app/views/settings/newsletters/senders/list_component.rb
module Settings::Newsletters::Senders class ListComponent < ApplicationComponent def initialize(user:, feed_ids:, senders:) @user = user @feed_ids = feed_ids @senders = senders end def view_template if @senders.nil? tabs else search_results end end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/senders/sender_component.rb
app/views/settings/newsletters/senders/sender_component.rb
module Settings::Newsletters::Senders class SenderComponent < ApplicationComponent def initialize(sender:, feed_ids:) @sender = sender @feed_ids = feed_ids end def view_template form_with(model: @sender, url: settings_newsletters_sender_path(@sender), namespace: @sender.id, data: { remo...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/addresses/show_view.rb
app/views/settings/newsletters/addresses/show_view.rb
module Settings module Newsletters module Addresses class ShowView < ApplicationView def initialize(address:) @address = address end def view_template form_with(model: @address, url: settings_newsletters_address_path(@address), data: {remote: true}) do |form| ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/addresses/inactive_view.rb
app/views/settings/newsletters/addresses/inactive_view.rb
module Settings::Newsletters::Addresses class InactiveView < ApplicationView def initialize(addresses:) @addresses = addresses end def view_template render Settings::H1Component.new do "Newsletters" end render Settings::ControlGroupComponent.new class: "mb-14" do |group| ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/newsletters/addresses/new_view.rb
app/views/settings/newsletters/addresses/new_view.rb
module Settings::Newsletters::Addresses class NewView < ApplicationView def initialize(user:) @user = user end def view_template form_with(model: AuthenticationToken.new, url: settings_newsletters_addresses_path, data: { remote: true, behavior: "disable_on_submit" }) do |form| form.hi...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/subscriptions/index_view.rb
app/views/settings/subscriptions/index_view.rb
module Settings module Subscriptions class IndexView < ApplicationView def initialize(user:, subscriptions:, params:) @user = user @subscriptions = subscriptions @params = params end def view_template form_tag settings_subscriptions_path, method: :get, remote: t...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/subscriptions/shared/subscription.rb
app/views/settings/subscriptions/shared/subscription.rb
module Settings module Subscriptions module Shared class Subscription < ApplicationView def initialize(subscription:) @subscription = subscription end def view_template view_context.present @subscription do |subscription_presenter| fields_for "subscr...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/subscriptions/shared/form_component.rb
app/views/settings/subscriptions/shared/form_component.rb
module Settings module Subscriptions module Shared class FormComponent < ApplicationComponent attr_reader :subscription def initialize(subscription:, tag_editor:) @subscription = subscription @tag_editor = tag_editor end def view_template view_...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/subscriptions/shared/list.rb
app/views/settings/subscriptions/shared/list.rb
module Settings module Subscriptions module Shared class List < ApplicationComponent def initialize(subscriptions:, params:) @subscriptions = subscriptions @params = params end def view_template div data_behavior: "subscriptions_list" do fo...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/import_items/import_item_component.rb
app/views/settings/import_items/import_item_component.rb
module Settings module ImportItems class ImportItemComponent < ApplicationComponent def initialize(import_item:) @import_item = import_item end def view_template render App::ExpandableContainerComponent.new(open: true) do |expandable| expandable.content do ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/shared/starred_feed_url.rb
app/views/settings/shared/starred_feed_url.rb
module Settings module Shared class StarredFeedUrl < ApplicationComponent def initialize(user:) @user = user end def view_template if @user.setting_on?(:starred_feed_enabled) div class: "truncate" do plain "Feed URL: " link_to starred_url(@user....
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/imports/status_component.rb
app/views/settings/imports/status_component.rb
module Settings module Imports class StatusComponent < ApplicationComponent def initialize(import:) @import = import @failed_items = @import .import_items .failed .includes(:discovered_feeds, :favicon) .sort_by { _1.title } @fixable_items = ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/settings/imports/show_view.rb
app/views/settings/imports/show_view.rb
module Settings module Imports class ShowView < ApplicationView def initialize(import:) @import = import end def view_template render Settings::H1Component.new do "Import Status" end render SubtitleComponent.new do @import.created_at.to_format...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/admin/feeds/index_view.rb
app/views/admin/feeds/index_view.rb
module Admin module Feeds class IndexView < ApplicationView def initialize(params:, feed:) @params = params @feed = feed end def view_template render Settings::H1Component.new do "Feed Admin" end form_tag(admin_feeds_path, method: "get", class...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common.rb
app/views/components/common.rb
module Common extend Phlex::Kit end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/application_component.rb
app/views/components/application_component.rb
# frozen_string_literal: true class ApplicationComponent < Phlex::HTML include Phlex::Rails::Helpers::CheckBoxTag include Phlex::Rails::Helpers::SearchFieldTag include Phlex::Rails::Helpers::FieldsFor include Phlex::Rails::Helpers::FormFor include Phlex::Rails::Helpers::FormTag include Phlex::Rails::Helper...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/favicon_component.rb
app/views/components/favicon_component.rb
class FaviconComponent < ApplicationComponent def initialize(feed:, entry: nil) @feed = feed @entry = entry end def view_template(&) if @feed.newsletter? icon_newsletter elsif @feed.twitter_user? icon_twitter_user elsif @feed.icon icon_feed elsif @feed.pages? && @entry ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/copyable_component.rb
app/views/components/copyable_component.rb
class CopyableComponent < ApplicationComponent def initialize(data:) @data = data end def view_template(&block) span data: stimulus(controller: :copyable, values: {data: @data}) do button class: "flex items-center gap-2 group focus-border", data: stimulus_item(actions: {click: :copy}, for: :copyabl...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/tabs_component.rb
app/views/components/tabs_component.rb
class TabsComponent < ApplicationComponent include DeferredRender def initialize @tabs = [] end def view_template div data: stimulus(controller: :tabs) do div class: "flex gap-8 border-b border-300 items-baseline mb-8 relative" do @tabs.each_with_index do |tab, index| button cl...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/deferred_render.rb
app/views/components/deferred_render.rb
module DeferredRender def before_template(&) vanish(&) super end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/tag_fields_component.rb
app/views/components/app/tag_fields_component.rb
module App class TagFieldsComponent < ApplicationComponent def initialize(tag_editor:) @tag_editor = tag_editor end def view_template label(class: "flex text-input-next items-center gap-2 group items-stretch cursor-text") do input( placeholder: "+ New Tag", type: "...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/entry_basement_container.rb
app/views/components/app/entry_basement_container.rb
module App class EntryBasementContainer < ApplicationComponent def initialize(target:) @target = target end def view_template div class: "basement-panel hide", data_basement_panel_target: @target do div class: "py-6 px-8" do div class: "max-w-[620px] mx-auto", data_behavior:...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/entry_image_component.rb
app/views/components/app/entry_image_component.rb
module App class EntryImageComponent < ApplicationComponent def initialize(entry) @entry = entry end def view_template span class: "relative block entry-image-wrap" do if @entry.embed_duration.present? span class: "bg-black/40 py-1 px-2 rounded-lg font-bold backdrop-blur abs...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/share_form_component.rb
app/views/components/app/share_form_component.rb
module App class ShareFormComponent < ApplicationComponent def initialize(icon:, title:) @icon = icon @title = title end def view_template div(class: "flex items-center gap-2 mb-4") do h2(class: "font-bold") { @title } Icon(@icon, class: "ml-auto fill-500") end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/spinner_component.rb
app/views/components/app/spinner_component.rb
module App class SpinnerComponent < ApplicationComponent def view_template div class: "flex-center w-full h-full transition opacity-0 tw-hidden group-data-[processing=true]:opacity-100 group-data-[processing=true]:flex" do div class: "spinner small" do end end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/feed_stats_component.rb
app/views/components/app/feed_stats_component.rb
module App class FeedStatsComponent < ApplicationComponent def initialize(feed:, stats:) @feed = feed @stats = stats end def view_template div class: "flex gap-4 items-baseline" do p(class: "grow text-sm one-line text-600", title: @feed.feed_url) do display_url(@feed.f...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/search_form_component.rb
app/views/components/app/search_form_component.rb
module App class SearchFormComponent < ApplicationComponent def initialize(params:) @params = params end def view_template div data: search_component_data, class: "search-wrap grid overflow-hidden min-h-0 group opacity-0 [grid-template-rows:0fr] data-[search-form-visible-value=true]:[grid-tem...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/search_button_component.rb
app/views/components/app/search_button_component.rb
module App class SearchButtonComponent < ApplicationComponent def view_template(&) button class: "w-full h-full flex flex-center", data: { controller: "event", action: "event#dispatch", event_identifier_param: "toggle-search", title: "Search <i>/</i>", toggle: "toolt...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/expandable_container_component.rb
app/views/components/app/expandable_container_component.rb
module App class ExpandableContainerComponent < ApplicationComponent def initialize(selector: nil, open: false, auto_open: false) @stimulus_controller = :expandable @selector = selector @open = open @auto_open = auto_open end def view_template(&block) div class: "group", dat...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/search_token_result_component.rb
app/views/components/app/search_token_result_component.rb
module App class SearchTokenResultComponent < ApplicationComponent slots :icon, :text def view_template button(class: "flex items-center gap-2 w-full text-left rounded p-2 hover:bg-100 focus:bg-100", data_search_token_target: "focusable", data_action: "search-token#tokenSelected", data_search_token_ind...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/mute_form.rb
app/views/components/app/mute_form.rb
module App class MuteForm < ApplicationComponent def view_template render App::ShareFormComponent.new title: "Create Mute Filter", icon: "icon-block" do form_with url: mutes_path, data: {remote: true}, method: :post, autocomplete: "off", novalidate: true do |form| input type: "hidden", nam...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/app/feed_component.rb
app/views/components/app/feed_component.rb
module App class FeedComponent < ApplicationComponent slots :icon, :title, :subhead, :accessory, :content def view_template div(class: "flex grow items-start gap-2") do div(class: "mt-[2px] shrink-0", &@icon) div(class: "flex grow gap-2 space-between items-center") do div(clas...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/edit_tag.rb
app/views/components/dialog/edit_tag.rb
module Dialog class EditTag < ApplicationComponent TITLE = "Edit Tag" def initialize(tag:) @tag = tag end def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do TITLE end dialog.body do ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/add_feed.rb
app/views/components/dialog/add_feed.rb
module Dialog class AddFeed < ApplicationComponent TITLE = "Add Feed" STIMULUS_CONTROLLER = :add_feed def initialize(query: "") @query = query end def view_template controller = stimulus( controller: STIMULUS_CONTROLLER, values: {count: 0, selected: 0, open: "false"},...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/settings_nav.rb
app/views/components/dialog/settings_nav.rb
module Dialog class SettingsNav < ApplicationComponent TITLE = "Settings" def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do "Settings" end dialog.body do div data_nav: "modal", class: "group" do ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/edit_subscription.rb
app/views/components/dialog/edit_subscription.rb
module Dialog class EditSubscription < ApplicationComponent TITLE = "Edit Subscription" def initialize(subscription:, tag_editor:, stats:, app:) @subscription = subscription @tag_editor = tag_editor @stats = stats @app = app end def view_template render Dialog::Template...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/keyboard_shortcuts.rb
app/views/components/dialog/keyboard_shortcuts.rb
module Dialog class KeyboardShortcuts < ApplicationComponent def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do "Keyboard Shortcuts" end dialog.body do table(class: "table") do tr do ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/social_replies.rb
app/views/components/dialog/social_replies.rb
module Dialog class SocialReplies < ApplicationComponent TITLE = "Replies" def initialize(posts:) @posts = posts end def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do TITLE end dialog.body do...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/new_mute.rb
app/views/components/dialog/new_mute.rb
module Dialog class NewMute < ApplicationComponent TITLE = "Mute Words" def view_template render Dialog::Template::Wrapper.new(dialog_id: self.class.dom_id) do form_with url: mutes_path, data: {remote: true}, method: :post, autocomplete: "off", novalidate: true do |form| input type: "...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/saved_search_form.rb
app/views/components/dialog/saved_search_form.rb
module Dialog class SavedSearchForm < ApplicationComponent def initialize(saved_search:, title:, dialog_id:) @saved_search = saved_search @title = title @dialog_id = dialog_id end def view_template render Dialog::Template::Content.new(dialog_id: @dialog_id) do |dialog| di...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/edit_saved_search.rb
app/views/components/dialog/edit_saved_search.rb
module Dialog class EditSavedSearch < ApplicationComponent TITLE = "Edit Saved Search" def initialize(saved_search:) @saved_search = saved_search end def view_template render Dialog::SavedSearchForm.new(saved_search: @saved_search, title: TITLE, dialog_id: self.class.dom_id) end e...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/template.rb
app/views/components/dialog/template.rb
module Dialog class Template < ApplicationComponent STIMULUS_CONTROLLER = :dialog def view_template stimulus_controller = stimulus( controller: STIMULUS_CONTROLLER, actions: { "mousedown" => "closeStart", "mouseup" => "closeE...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/action_results.rb
app/views/components/dialog/action_results.rb
module Dialog class ActionResults < ApplicationComponent TITLE = "Action Results" def initialize(action:) @action = action end def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do TITLE end dial...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/extracted_content.rb
app/views/components/dialog/extracted_content.rb
module Dialog class ExtractedContent < ApplicationComponent TITLE = "Extracted Content" def initialize(page:, content:) @page = page @content = content end def view_template view_context.present current_user do |user_presenter| render Dialog::Template::Content.new(dialog_id...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/manage_mutes.rb
app/views/components/dialog/manage_mutes.rb
module Dialog class ManageMutes < ApplicationComponent TITLE = "Manage Mutes" def initialize(mutes:) @mutes = mutes end def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do TITLE end dialog.body...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/new_saved_search.rb
app/views/components/dialog/new_saved_search.rb
module Dialog class NewSavedSearch < ApplicationComponent TITLE = "New Saved Search" def initialize(saved_search:) @saved_search = saved_search end def view_template render Dialog::SavedSearchForm.new(saved_search: @saved_search, title: TITLE, dialog_id: self.class.dom_id) end end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/edit_appearance.rb
app/views/components/dialog/edit_appearance.rb
module Dialog class EditAppearance < ApplicationComponent TITLE = "Advanced" def view_template render Dialog::Template::Content.new(dialog_id: self.class.dom_id) do |dialog| dialog.title do TITLE end dialog.body do view_context.present current_user do |user_...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/dialog/all.rb
app/views/components/dialog/all.rb
module Dialog class All < ApplicationComponent def view_template render Dialog::Template.new render Dialog::KeyboardShortcuts.new render Dialog::AddFeed.new render Dialog::SettingsNav.new render Dialog::NewMute.new render Dialog::Template::Placeholder.new(dialog: Dialog::Extra...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/h2_component.rb
app/views/components/settings/h2_component.rb
module Settings class H2Component < ApplicationComponent def initialize(attributes = {}) @attributes = attributes end def view_template(&) h2(**mix({class: "mb-4 text-700 font-bold text-[15px]"}, @attributes), &) end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/subtitle_component.rb
app/views/components/settings/subtitle_component.rb
module Settings class SubtitleComponent < ApplicationComponent def view_template(&) p class: "mb-8 -mt-6 text-500", & end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/control_group_component.rb
app/views/components/settings/control_group_component.rb
module Settings class ControlGroupComponent < ApplicationComponent slots :description, :custom_header def initialize(options = {}) @options = options @items = [] end def view_template div(**@options) do render &@custom_header render(@header) if @header if @...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/h1_component.rb
app/views/components/settings/h1_component.rb
module Settings class H1Component < ApplicationComponent def view_template(&) h1(class: "max-sm:truncate pt-1.5 mt-10 mb-8 mr-5 md:mr-0 font-bold text-2xl text-700", &) end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/button_row_component.rb
app/views/components/settings/button_row_component.rb
module Settings class ButtonRowComponent < ApplicationComponent def view_template div class: "flex gap-4 mt-8 justify-end" do yield end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/expandable_component.rb
app/views/components/settings/expandable_component.rb
module Settings class ExpandableComponent < ApplicationComponent slots :header, :description def initialize(attributes = {}) @attributes = attributes @items = [] end def view_template render App::ExpandableContainerComponent.new do |expandable| render Settings::ControlGrou...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings/control_row_component.rb
app/views/components/settings/control_row_component.rb
module Settings class ControlRowComponent < ApplicationComponent slots :icon, :title, :description, :control, :content def view_template div class: "py-3 flex items-center gap-4 group group-data-[capsule=true]:px-4 group-data-[item-capsule=true]:px-4 group-data-[item-capsule=true]:rounded-lg transitio...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false