Skip to content

Commit

Permalink
chore: bump rails version and add lookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyons-gitlab committed Jan 3, 2024
1 parent 29cce5f commit 9205a9a
Showing 7 changed files with 103 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 18.18.2
ruby 3.2.0
ruby 3.3.0
yarn 1.22.19
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -162,6 +162,7 @@ group :development do
gem "sunspot_solr"
gem "bundler-audit", "~> 0.9.1"
gem 'database_consistency', require: false
gem "lookbook", ">= 2.2.0"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
166 changes: 87 additions & 79 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -17,77 +17,77 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (7.0.7.2)
actionpack (= 7.0.7.2)
activesupport (= 7.0.7.2)
actioncable (7.0.8)
actionpack (= 7.0.8)
activesupport (= 7.0.8)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (7.0.7.2)
actionpack (= 7.0.7.2)
activejob (= 7.0.7.2)
activerecord (= 7.0.7.2)
activestorage (= 7.0.7.2)
activesupport (= 7.0.7.2)
actionmailbox (7.0.8)
actionpack (= 7.0.8)
activejob (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.0.7.2)
actionpack (= 7.0.7.2)
actionview (= 7.0.7.2)
activejob (= 7.0.7.2)
activesupport (= 7.0.7.2)
actionmailer (7.0.8)
actionpack (= 7.0.8)
actionview (= 7.0.8)
activejob (= 7.0.8)
activesupport (= 7.0.8)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0)
actionpack (7.0.7.2)
actionview (= 7.0.7.2)
activesupport (= 7.0.7.2)
actionpack (7.0.8)
actionview (= 7.0.8)
activesupport (= 7.0.8)
rack (~> 2.0, >= 2.2.4)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (7.0.7.2)
actionpack (= 7.0.7.2)
activerecord (= 7.0.7.2)
activestorage (= 7.0.7.2)
activesupport (= 7.0.7.2)
actiontext (7.0.8)
actionpack (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.0.7.2)
activesupport (= 7.0.7.2)
actionview (7.0.8)
activesupport (= 7.0.8)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (7.0.7.2)
activesupport (= 7.0.7.2)
activejob (7.0.8)
activesupport (= 7.0.8)
globalid (>= 0.3.6)
activemodel (7.0.7.2)
activesupport (= 7.0.7.2)
activemodel (7.0.8)
activesupport (= 7.0.8)
activemodel-serializers-xml (1.0.2)
activemodel (> 5.x)
activesupport (> 5.x)
builder (~> 3.1)
activerecord (7.0.7.2)
activemodel (= 7.0.7.2)
activesupport (= 7.0.7.2)
activestorage (7.0.7.2)
actionpack (= 7.0.7.2)
activejob (= 7.0.7.2)
activerecord (= 7.0.7.2)
activesupport (= 7.0.7.2)
activerecord (7.0.8)
activemodel (= 7.0.8)
activesupport (= 7.0.8)
activestorage (7.0.8)
actionpack (= 7.0.8)
activejob (= 7.0.8)
activerecord (= 7.0.8)
activesupport (= 7.0.8)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (7.0.7.2)
activesupport (7.0.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
acts_as_votable (0.14.0)
addressable (2.8.5)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ahoy_matey (4.0.3)
activesupport (>= 5.2)
@@ -194,12 +194,12 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
css_parser (1.7.1)
css_parser (1.16.0)
addressable
csv (3.2.6)
database_consistency (1.7.22)
activerecord (>= 3.2)
date (3.3.3)
date (3.3.4)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
@@ -266,12 +266,9 @@ GEM
friendly_id (5.4.2)
activerecord (>= 4.0.0)
geocoder (1.7.3)
globalid (1.1.0)
activesupport (>= 5.0)
google-protobuf (3.23.2-arm64-darwin)
google-protobuf (3.23.2-x64-mingw32)
google-protobuf (3.23.2-x86_64-darwin)
google-protobuf (3.23.2-x86_64-linux)
globalid (1.2.1)
activesupport (>= 6.1)
google-protobuf (3.25.1)
googleapis-common-protos-types (1.6.0)
google-protobuf (~> 3.14)
hairtrigger (0.2.25)
@@ -283,6 +280,7 @@ GEM
hirb (0.7.3)
hiredis (0.6.3)
hkdf (0.3.0)
htmlbeautifier (1.4.2)
htmlentities (4.3.4)
http (4.4.0)
addressable (~> 2.3)
@@ -361,9 +359,21 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.5.3)
loofah (2.21.3)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
lookbook (2.2.0)
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.25)
zeitwerk (~> 2.5)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
@@ -387,28 +397,24 @@ GEM
mime-types-data (3.2022.0105)
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.20.0)
msgpack (1.6.0)
multi_xml (0.6.0)
nested_form (0.3.2)
net-imap (0.3.7)
net-imap (0.4.9)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
net-protocol (0.2.2)
timeout
net-smtp (0.3.3)
net-smtp (0.4.0)
net-protocol
newrelic_rpm (8.14.0)
nio4r (2.5.9)
nokogiri (1.15.4-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x64-mingw32)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
nio4r (2.7.0)
nokogiri (1.16.0)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
noticed (1.6.3)
http (>= 4.0.0)
@@ -559,7 +565,7 @@ GEM
nio4r (~> 2.0)
pundit (2.3.0)
activesupport (>= 3.0.0)
racc (1.7.1)
racc (1.7.3)
rack (2.2.8)
rack-attack (6.6.1)
rack (>= 1.0, < 3)
@@ -569,20 +575,20 @@ GEM
rack
rack-test (2.1.0)
rack (>= 1.3)
rails (7.0.7.2)
actioncable (= 7.0.7.2)
actionmailbox (= 7.0.7.2)
actionmailer (= 7.0.7.2)
actionpack (= 7.0.7.2)
actiontext (= 7.0.7.2)
actionview (= 7.0.7.2)
activejob (= 7.0.7.2)
activemodel (= 7.0.7.2)
activerecord (= 7.0.7.2)
activestorage (= 7.0.7.2)
activesupport (= 7.0.7.2)
rails (7.0.8)
actioncable (= 7.0.8)
actionmailbox (= 7.0.8)
actionmailer (= 7.0.8)
actionpack (= 7.0.8)
actiontext (= 7.0.8)
actionview (= 7.0.8)
activejob (= 7.0.8)
activemodel (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
bundler (>= 1.15.0)
railties (= 7.0.7.2)
railties (= 7.0.8)
rails-data-migrations (1.2.0)
rails (>= 4.0.0)
rails-dom-testing (2.2.0)
@@ -606,15 +612,15 @@ GEM
nested_form (~> 0.3)
rails (>= 6.0, < 8)
turbo-rails (~> 1.0)
railties (7.0.7.2)
actionpack (= 7.0.7.2)
activesupport (= 7.0.7.2)
railties (7.0.8)
actionpack (= 7.0.8)
activesupport (= 7.0.8)
method_source
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
@@ -637,6 +643,7 @@ GEM
reverse_markdown (2.1.1)
nokogiri
rexml (3.2.6)
rouge (4.2.0)
rsolr (2.2.1)
builder (>= 2.1.2)
faraday (>= 0.9.0)
@@ -804,9 +811,9 @@ GEM
climate_control (>= 0.0.3, < 1.0)
terser (1.1.13)
execjs (>= 0.3.0, < 3)
thor (1.2.2)
thor (1.3.0)
tilt (2.0.10)
timeout (0.4.0)
timeout (0.4.1)
tins (1.32.1)
sync
turbo-rails (1.4.0)
@@ -869,7 +876,7 @@ GEM
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.34)
zeitwerk (2.6.11)
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-21
@@ -925,6 +932,7 @@ DEPENDENCIES
kt-paperclip
language_filter
listen (>= 3.0.5, < 3.9)
lookbook (>= 2.2.0)
mailkick (~> 0.4.3)
maintenance_tasks (~> 2.3)
meta-tags
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
@@ -17,6 +17,10 @@ class Application < Rails::Application

# configuring mailer previews directory
config.action_mailer.preview_path = "#{Rails.root}/lib/mailer_previews"

# config/application.rb
config.view_component.preview_paths << "#{Rails.root}/spec/components/previews"

config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.i18n.available_locales = [:en, :hi, :bn, :mr]
config.i18n.default_locale = :en
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -13,6 +13,10 @@
mount MaintenanceTasks::Engine => "/maintenance_tasks"
end

if Rails.env.development?
mount Lookbook::Engine, at: "/lookbook"
end

devise_scope :user do
get '/users/sign_out' => 'devise/sessions#destroy'
end
2 changes: 1 addition & 1 deletion cv-frontend-vue
Submodule cv-frontend-vue updated 60 files
+7 −7 package-lock.json
+1 −1 package.json
+0 −1 src/components/MessageBox/messageBox.vue
+1 −3 src/components/Navbar/Hamburger/Hamburger.vue
+0 −1 src/components/ReportIssue/ReportIssueButton.vue
+1 −1 src/simulator/src/modules/ALU.js
+1 −1 src/simulator/src/modules/Adder.js
+1 −1 src/simulator/src/modules/AndGate.js
+1 −1 src/simulator/src/modules/Arrow.js
+1 −1 src/simulator/src/modules/BitSelector.js
+1 −1 src/simulator/src/modules/Buffer.js
+1 −1 src/simulator/src/modules/Button.js
+1 −1 src/simulator/src/modules/ConstantVal.js
+1 −1 src/simulator/src/modules/Counter.js
+1 −1 src/simulator/src/modules/Decoder.js
+1 −1 src/simulator/src/modules/Demultiplexer.js
+1 −1 src/simulator/src/modules/DigitalLed.js
+1 −1 src/simulator/src/modules/Flag.js
+1 −1 src/simulator/src/modules/Ground.js
+1 −1 src/simulator/src/modules/HexDisplay.js
+1 −1 src/simulator/src/modules/Input.js
+1 −1 src/simulator/src/modules/LSB.js
+1 −1 src/simulator/src/modules/MSB.js
+1 −1 src/simulator/src/modules/Multiplexer.js
+1 −1 src/simulator/src/modules/NandGate.js
+1 −1 src/simulator/src/modules/NorGate.js
+1 −1 src/simulator/src/modules/NotGate.js
+1 −1 src/simulator/src/modules/OrGate.js
+1 −1 src/simulator/src/modules/Output.js
+1 −1 src/simulator/src/modules/Power.js
+1 −1 src/simulator/src/modules/PriorityEncoder.js
+1 −1 src/simulator/src/modules/RGBLed.js
+1 −1 src/simulator/src/modules/Random.js
+1 −1 src/simulator/src/modules/Rectangle.js
+1 −1 src/simulator/src/modules/SevenSegDisplay.js
+1 −1 src/simulator/src/modules/SixteenSegDisplay.js
+1 −1 src/simulator/src/modules/Splitter.js
+1 −1 src/simulator/src/modules/SquareRGBLed.js
+1 −1 src/simulator/src/modules/Stepper.js
+1 −1 src/simulator/src/modules/Text.js
+1 −1 src/simulator/src/modules/TriState.js
+1 −1 src/simulator/src/modules/Tunnel.js
+1 −1 src/simulator/src/modules/VariableLed.js
+1 −1 src/simulator/src/modules/XnorGate.js
+1 −1 src/simulator/src/modules/XorGate.js
+1 −1 src/simulator/src/sequential/DflipFlop.js
+1 −1 src/simulator/src/sequential/Dlatch.js
+1 −1 src/simulator/src/sequential/JKflipFlop.js
+1 −1 src/simulator/src/sequential/Keyboard.js
+1 −1 src/simulator/src/sequential/Rom.js
+1 −1 src/simulator/src/sequential/SRflipFlop.js
+1 −1 src/simulator/src/sequential/TTY.js
+1 −1 src/simulator/src/sequential/TflipFlop.js
+2 −2 src/simulator/src/testbench/testbenchInput.js
+1 −1 src/simulator/src/testbench/testbenchOutput.js
+61 −124 src/styles/color_theme.scss
+3 −4 src/styles/css/2-basics/base.scss
+1 −1 src/styles/css/5-layout/simulator.scss
+1 −1 src/styles/css/main.stylesheet.css
+3 −3 src/styles/css/shortcut.panel.css
5 changes: 5 additions & 0 deletions spec/components/previews/project_embed_component_preview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ProjectEmbedComponentPreview < ViewComponent::Preview
def component
render(ProjectEmbedComponent.new(Project.new(id: 1)))
end
end

0 comments on commit 9205a9a

Please sign in to comment.