Skip to content

Commit

Permalink
Remove Lookbook (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv authored Nov 11, 2024
1 parent eaf944c commit bbabb86
Show file tree
Hide file tree
Showing 42 changed files with 0 additions and 1,301 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ gem "stimulus-rails", "1.3.3"
# Bundle and process CSS [https://github.com/rails/cssbundling-rails]
gem "cssbundling-rails", "1.4.0"

gem "lookbook", "2.3.2"

gem "lucide-rails", "0.4.0"

# gem "jbuilder"
Expand Down
23 changes: 0 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ GEM
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
crass (1.0.6)
css_parser (1.19.1)
addressable
cssbundling-rails (1.4.0)
railties (>= 6.0.0)
date (3.4.0)
Expand All @@ -131,8 +129,6 @@ GEM
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
htmlbeautifier (1.4.3)
htmlentities (4.3.4)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
Expand All @@ -148,18 +144,6 @@ GEM
loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lookbook (2.3.2)
activemodel
css_parser
htmlbeautifier (~> 1.3)
htmlentities (~> 4.3.4)
marcel (~> 1.0)
railties (>= 5.0)
redcarpet (~> 3.5)
rouge (>= 3.26, < 5.0)
view_component (>= 2.0)
yard (~> 0.9)
zeitwerk (~> 2.5)
lru_redux (1.1.0)
lucide-rails (0.4.0)
railties (>= 4.1.0)
Expand Down Expand Up @@ -246,7 +230,6 @@ GEM
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
redcarpet (3.6.0)
regexp_parser (2.9.2)
reline (0.5.11)
io-console (~> 0.5)
Expand Down Expand Up @@ -305,10 +288,6 @@ GEM
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
useragent (0.16.10)
view_component (3.20.0)
activesupport (>= 5.2.0, < 8.1)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -320,7 +299,6 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.37)
zeitwerk (2.7.1)

PLATFORMS
Expand All @@ -333,7 +311,6 @@ DEPENDENCIES
debug
dockerfile-rails (>= 1.6)
jsbundling-rails (= 1.3.0)
lookbook (= 2.3.2)
lucide-rails (= 0.4.0)
phlex!
phlex-rails!
Expand Down
1 change: 0 additions & 1 deletion app/views/components/shared/navbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def view_template
Link(href: helpers.docs_introduction_path, variant: :ghost, class: "hidden md:inline-block") { "Docs" }
Link(href: helpers.docs_accordion_path, variant: :ghost, class: "hidden md:inline-block") { "Components" }
Link(href: helpers.theme_path("default"), variant: :ghost, class: "hidden md:inline-block") { "Themes" }
Link(href: helpers.lookbook_path("default"), target: "_blank", variant: :ghost, class: "hidden md:inline-block") { "Lookbook" }
end
div(class: "flex items-center gap-x-2 md:divide-x") do
div(class: "flex items-center") do
Expand Down
18 changes: 0 additions & 18 deletions app/views/layouts/component_preview.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ class Application < Rails::Application
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")

# lookbook configuration
config.lookbook.project_name = "Phlex Components"
config.lookbook.preview_layout = "component_preview"

config.exceptions_app = routes # redirects all exceptions to custom error pages (See routes)
end
end
16 changes: 0 additions & 16 deletions config/initializers/lookbook.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
# frozen_string_literal: true

# lookbook workaround for phlex components
if defined?(Lookbook)
module Lookbook::PreviewOverrides
# see https://github.com/ViewComponent/lookbook/issues/584
def render(component = nil, **args, &block)
if block
super { component.instance_exec component, &block }
else
super
end
end
end

Rails.application.configure { Lookbook::Preview.prepend Lookbook::PreviewOverrides }
end
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Rails.application.routes.draw do
get "themes/:theme", to: "themes#show", as: :theme

mount Lookbook::Engine, at: "/lookbook"

scope "docs" do
# GETTING STARTED
get "introduction", to: "docs#introduction", as: :docs_introduction
Expand Down
36 changes: 0 additions & 36 deletions test/components/previews/rbui/accordion_preview.rb

This file was deleted.

29 changes: 0 additions & 29 deletions test/components/previews/rbui/alert_dialog_preview.rb

This file was deleted.

17 changes: 0 additions & 17 deletions test/components/previews/rbui/alert_preview.rb

This file was deleted.

39 changes: 0 additions & 39 deletions test/components/previews/rbui/aspect_ratio_preview.rb

This file was deleted.

32 changes: 0 additions & 32 deletions test/components/previews/rbui/avatar_preview.rb

This file was deleted.

17 changes: 0 additions & 17 deletions test/components/previews/rbui/badge_preview.rb

This file was deleted.

50 changes: 0 additions & 50 deletions test/components/previews/rbui/button_preview.rb

This file was deleted.

14 changes: 0 additions & 14 deletions test/components/previews/rbui/calendar_preview.rb

This file was deleted.

Loading

0 comments on commit bbabb86

Please sign in to comment.