Skip to content

Commit

Permalink
fix linter and hopefully tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SethHorsley committed Aug 5, 2024
1 parent 4375150 commit c869b36
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/views/application_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ def component_files(component, gem_name = "phlex_ui")
ext = File.extname(file)
basename = File.basename(file, ext)

if ext == ".rb"
name = basename.camelize
source = "https://github.com/PhlexUI/phlex_ui/blob/v1/lib/rbui/#{component.to_s.downcase}/#{File.basename(file)}"
built_using = :phlex
name = basename.camelize
source = "https://github.com/PhlexUI/phlex_ui/blob/v1/lib/rbui/#{component.to_s.downcase}/#{File.basename(file)}"
built_using = if ext == ".rb"
:phlex
else # ".js"
name = basename.camelize
source = "https://github.com/PhlexUI/phlex_ui/blob/v1/lib/rbui/#{component.to_s.downcase}/#{File.basename(file)}"
built_using = :stimulus
:stimulus
end

Docs::ComponentStruct.new(
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,18 @@ path-parse@^1.0.7:
resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==

"phlex_ui@https://github.com/PhlexUI/phlex_ui_stimulus.git":
version "0.1.5"
resolved "https://github.com/PhlexUI/phlex_ui_stimulus.git#d08e1cd62dcf1456ee22e94a67a0c33b93882134"
dependencies:
"@hotwired/stimulus" "^3.2.2"
chart.js "^4.4.1"
date-fns "^2.30.0"
fuse.js "^7.0.0"
motion "^10.16.4"
mustache "^4.2.0"
tippy.js "^6.3.7"

picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz"
Expand Down

0 comments on commit c869b36

Please sign in to comment.