Skip to content

Commit

Permalink
Rename GeoComponent to be the LegacyGeoComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and thatbudakguy committed Jan 31, 2025
1 parent 9e196ae commit c3bedea
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Embed
module Legacy
class GeoComponent < ViewComponent::Base
def initialize(viewer:)
@viewer = viewer
Expand Down
4 changes: 2 additions & 2 deletions app/viewers/embed/viewer/geo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Embed
module Viewer
class Geo < CommonViewer
def component
GeoComponent
Legacy::GeoComponent
end

def importmap
Expand All @@ -30,7 +30,7 @@ def map_element_options
end

def stylesheet
'geo.css'
'legacy_geo.css'
end

def self.show_download?
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/preview/geo.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"></script>
<%= stylesheet_link_tag 'geo.css' %>
<%= stylesheet_link_tag 'legacy_geo.css' %>
<%= stylesheet_link_tag 'sul_icons.css' %>
<%= javascript_importmap_tags 'geo' %>
</head>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"test": "jest -c jest.config.js",
"build:css": "sass ./app/assets/stylesheets/file.scss:./app/assets/builds/file.css ./app/assets/stylesheets/geo.scss:./app/assets/builds/geo.css ./app/assets/stylesheets/m3.scss:./app/assets/builds/m3.css ./app/assets/stylesheets/legacy_model.scss:./app/assets/builds/legacy_model.css ./app/assets/stylesheets/legacy_was_seed.scss:./app/assets/builds/legacy_was_seed.css ./app/assets/stylesheets/sul_icons.scss:./app/assets/builds/sul_icons.css --no-source-map --load-path=node_modules --load-path=vendor/assets/javascripts"
"build:css": "sass ./app/assets/stylesheets/file.scss:./app/assets/builds/file.css ./app/assets/stylesheets/legacy_geo.scss:./app/assets/builds/legacy_geo.css ./app/assets/stylesheets/m3.scss:./app/assets/builds/m3.css ./app/assets/stylesheets/legacy_model.scss:./app/assets/builds/legacy_model.css ./app/assets/stylesheets/legacy_was_seed.scss:./app/assets/builds/legacy_was_seed.css ./app/assets/stylesheets/sul_icons.scss:./app/assets/builds/sul_icons.css --no-source-map --load-path=node_modules --load-path=vendor/assets/javascripts"
},
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe Embed::GeoComponent, type: :component do
RSpec.describe Legacy::GeoComponent, type: :component do
let(:request) do
Embed::Request.new(url: 'http://purl.stanford.edu/abc123')
end
Expand Down

0 comments on commit c3bedea

Please sign in to comment.