Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions app/overrides/issues.rb

This file was deleted.

15 changes: 15 additions & 0 deletions app/overrides/issues/index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Deface::Override.new(
:virtual_path => "issues/index",
:name => "deface_view_issues_index_map",
:insert_after => "h2",
:original => 'b807967c7184cb012c4bd5ccce90893349bc66e3',
:partial => "issues/index/map"
)

Deface::Override.new(
:virtual_path => "issues/index",
:name => "deface_view_issues_index_format_geojson",
:insert_after => "erb[loud]:contains('PDF')",
:original => '2b4102bf118f0a9866cf50477dce9cc7a78da6d5',
:partial => "issues/index/geojson"
)
15 changes: 15 additions & 0 deletions app/overrides/issues/show.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Deface::Override.new(
:virtual_path => "issues/show",
:name => "deface_view_issues_show_map",
:insert_before => "div.attributes",
:original => 'c56981aa84b0fee66ff43ea773cf1444193a2862',
:partial => "issues/show/map"
)

Deface::Override.new(
:virtual_path => "issues/show",
:name => "deface_view_issues_show_format_geojson",
:insert_after => "erb[loud]:contains('PDF')",
:original => '1419e0dcba37f62ff95372d41d9b73845889d826',
:partial => "issues/show/geojson"
)
17 changes: 0 additions & 17 deletions app/overrides/projects.rb

This file was deleted.

15 changes: 15 additions & 0 deletions app/overrides/projects/show.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Deface::Override.new(
:virtual_path => "projects/show",
:name => "deface_view_projects_show_map",
:insert_bottom => "div.splitcontentright",
:original => 'b939fb5ea208476399dbfb4b253dcff0ab1ace91',
:partial => "projects/show/map"
)

Deface::Override.new(
:virtual_path => "projects/show",
:name => "deface_view_projects_show_other_formats",
:insert_bottom => "div.splitcontentright",
:original => '1d2f0cb0b1439dddc34ac9c50b6b1b111fe702ce',
:partial => "projects/show/other_formats"
)
9 changes: 0 additions & 9 deletions app/overrides/users.rb

This file was deleted.

7 changes: 7 additions & 0 deletions app/overrides/users/show.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Deface::Override.new(
:virtual_path => "users/show",
:name => "deface_view_users_show_other_formats",
:insert_bottom => "div.splitcontentleft",
:original => 'abe916df0691ebe8848cfc0dde536abd3bfe39b8',
:partial => "users/show/other_formats"
)
7 changes: 4 additions & 3 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@
end

if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
require File.expand_path('../app/overrides/issues', __FILE__)
require File.expand_path('../app/overrides/projects', __FILE__)
require File.expand_path('../app/overrides/users', __FILE__)
Dir.glob("#{Rails.root}/plugins/redmine_gtt/app/overrides/**/*.rb").each do |path|
Rails.autoloaders.main.ignore(path)
require path
end
RedmineGtt.setup_normal_patches
Rails.application.config.after_initialize do
RedmineGtt.setup_controller_patches
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"fontfaceobserver": "^2.3.0",
"geojson": "^0.5.0",
"ol": "^9.1.0",
"ol-ext": "^4.0.21",
"ol-ext": "4.0.18",
"ol-mapbox-style": "^12.3.4"
},
"devDependencies": {
Expand Down
13 changes: 4 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,6 @@ fastest-levenshtein@^1.0.12:
resolved "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz"
integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==

fflate@^0.4.8:
version "0.4.8"
resolved "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz"
integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==

fill-range@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
Expand Down Expand Up @@ -900,10 +895,10 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==

ol-ext@^4.0.21:
version "4.0.21"
resolved "https://registry.yarnpkg.com/ol-ext/-/ol-ext-4.0.21.tgz#78ba613d1b95e66629c3ce252da6f8367ba0f3eb"
integrity sha512-xP4oVD5KBvJW6P9UQwmPcgqMDh6nzUrHjle4qhNqzRW7OkP02mObw5UMGAgz+uhIW8doJ3hYCwy2HcpU1JFpig==
[email protected].18:
version "4.0.18"
resolved "https://registry.yarnpkg.com/ol-ext/-/ol-ext-4.0.18.tgz#87e68566bae1a7821e3a1af8b7019409ce922324"
integrity sha512-zzeTAoCg9IocaM7LlXiLNnVCgVmfxxLzlDTWvYn3Y2gFxtICHSfRrIQl/8vumgBjftBksVl1Fds8P5uFReTmew==

ol-mapbox-style@^12.3.4:
version "12.3.4"
Expand Down