Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Lookbook #131

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
49 changes: 5 additions & 44 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 All @@ -172,6 +156,7 @@ GEM
matrix (0.4.2)
method_source (1.1.0)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
msgpack (1.7.3)
net-imap (0.5.0)
Expand All @@ -184,17 +169,8 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.4)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86-linux)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.26.3)
parser (3.3.6.0)
Expand Down Expand Up @@ -254,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 @@ -284,16 +259,8 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sqlite3 (2.2.0-aarch64-linux-gnu)
sqlite3 (2.2.0-aarch64-linux-musl)
sqlite3 (2.2.0-arm-linux-gnu)
sqlite3 (2.2.0-arm-linux-musl)
sqlite3 (2.2.0-arm64-darwin)
sqlite3 (2.2.0-x86-linux-gnu)
sqlite3 (2.2.0-x86-linux-musl)
sqlite3 (2.2.0-x86_64-darwin)
sqlite3 (2.2.0-x86_64-linux-gnu)
sqlite3 (2.2.0-x86_64-linux-musl)
sqlite3 (2.2.0)
mini_portile2 (~> 2.8.0)
standard (1.41.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down Expand Up @@ -321,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 @@ -336,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 @@ -349,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.

Loading