-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
<% else %> | ||
<%= stylesheet_link_tag "application" %> | ||
<% end %> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" /> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
<%= content_for(:head) %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,6 @@ def add_js_rails6 | |
# but since webpacker exists in the gemfile, we still need to run the | ||
# install before rails will start | ||
run 'bin/rails webpacker:install' | ||
|
||
say 'Install Clipboard' | ||
run 'yarn add [email protected]' | ||
end | ||
|
||
def add_js_rails7 | ||
|
@@ -38,6 +35,11 @@ def add_js_rails7 | |
append_to_file 'app/assets/javascripts/application.js', "\n//= require_tree .\n" | ||
end | ||
|
||
def add_js_deps | ||
say 'Install Clipboard & Leaflet' | ||
run 'yarn add [email protected] leaflet@^1.9.3' | ||
end | ||
|
||
def add_manifest | ||
append_to_file 'app/assets/config/manifest.js', "\n//= link spotlight/manifest.js" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
"not IE 11" | ||
], | ||
"dependencies": { | ||
"clipboard": "1.7.1" | ||
"clipboard": "1.7.1", | ||
"leaflet": "^1.9.3" | ||
} | ||
} |