Patch #42515 » 0003-Rename-app-assets-application.js-to-application-legacy.js-keeping-app-javascript-application.js-default.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
| 1805 | 1805 |
if Setting.wiki_tablesort_enabled? |
| 1806 | 1806 |
tags << javascript_include_tag('tablesort-5.2.1.min.js', 'tablesort-5.2.1.number.min.js')
|
| 1807 | 1807 |
end |
| 1808 |
tags << javascript_include_tag('application', 'responsive')
|
|
| 1808 |
tags << javascript_include_tag('application-legacy', 'responsive')
|
|
| 1809 | 1809 |
unless User.current.pref.warn_on_leaving_unsaved == '0' |
| 1810 | 1810 |
warn_text = escape_javascript(l(:text_warn_on_leaving_unsaved)) |
| 1811 | 1811 |
tags << |
| app/javascript/controllers/quote_reply_controller.js | ||
|---|---|---|
| 204 | 204 |
static targets = [ 'content' ]; |
| 205 | 205 | |
| 206 | 206 |
quote(event) {
|
| 207 |
event.preventDefault(); |
|
| 208 | ||
| 209 | 207 |
const { url, textFormatting } = event.params;
|
| 210 | 208 |
const selectedRange = QuoteExtractor.extract(this.contentTarget); |
| 211 | 209 | |
| app/views/layouts/base.html.erb | ||
|---|---|---|
| 10 | 10 |
<%= favicon %> |
| 11 | 11 |
<%= stylesheet_link_tag 'jquery/jquery-ui-1.13.2', 'tribute-5.1.3', 'application', 'responsive', :media => 'all' %> |
| 12 | 12 |
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> |
| 13 |
<%= javascript_importmap_tags 'main' %>
|
|
| 13 |
<%= javascript_importmap_tags %> |
|
| 14 | 14 |
<%= javascript_heads %> |
| 15 | 15 |
<%= heads_for_theme %> |
| 16 | 16 |
<%= heads_for_auto_complete(@project) %> |
| config/importmap.rb | ||
|---|---|---|
| 1 | 1 |
# Pin npm packages by running ./bin/importmap |
| 2 | 2 | |
| 3 |
pin "main"
|
|
| 3 |
pin "application"
|
|
| 4 | 4 |
pin "@hotwired/stimulus", to: "stimulus.min.js" |
| 5 | 5 |
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js" |
| 6 | 6 |
pin_all_from "app/javascript/controllers", under: "controllers" |