<commit_before>class SpreeMultiDomainHooks < Spree::ThemeSupport::HookListener

  insert_after :admin_products_index_headers, :partial => "admin/products/index_headers"
  insert_after :admin_products_index_rows, :partial => "admin/products/index_rows"
  insert_before :admin_products_index_search, :partial => "admin/products/index_search_fields"

  insert_after :admin_product_form_meta, :partial => "admin/products/stores"

  insert_after :admin_trackers_index_headers do
    "<th>#{I18n.t(:store)}</th>"
  end
  insert_after :admin_trackers_index_rows, 'admin/trackers/index_rows'
  replace :additional_tracker_fields, 'admin/trackers/store'

  insert_after :admin_configurations_menu do
    "<%= configurations_menu_item(I18n.t('stores_admin'), admin_stores_url, I18n.t('manage_stores')) %>"
  end

end<commit_msg>Switch to Deface<commit_after>Deface::Override.new(
  :virtual_path => "admin/products/index",
  :name => "multi_domain_admin_products_index_headers",
  :insert_before => "[data-hook='admin_products_index_header_actions']",
  :partial => "admin/products/index_headers",
  :disabled => false)

Deface::Override.new(
  :virtual_path => "admin/products/index",
  :name => "multi_domain_admin_products_index_rows",
  :insert_before => "[data-hook='admin_products_index_row_actions']",
  :partial => "admin/products/index_rows",
  :disabled => false)
  
Deface::Override.new(
  :virtual_path => "admin/products/index",
  :name => "multi_domain_admin_products_index_search",
  :insert_top => "[data-hook='admin_products_index_search']",
  :partial => "admin/products/index_search_fields",
  :disabled => false)  

Deface::Override.new(
  :virtual_path => "admin/products/_form",
  :name => "multi_domain_admin_product_form_meta",
  :insert_bottom => "[data-hook='admin_product_form_meta']",
  :partial => "admin/products/stores",
  :disabled => false)

Deface::Override.new(
  :virtual_path => "admin/trackers/index",
  :name => "multi_domain_admin_trackers_index_headers",
  :insert_before => "[data-hook='admin_trackers_index_headers'] th:last",
  :text => "<th><%= I18n.t(:store) %></th>",
  :disabled => false)

Deface::Override.new(
  :virtual_path => "admin/trackers/index",
  :name => "multi_domain_admin_trackers_index_rows",
  :insert_before => "[data-hook='admin_trackers_index_rows'] td:last",
  :partial => "admin/trackers/index_rows",
  :disabled => false)

Deface::Override.new(
  :virtual_path => "admin/trackers/_form",
  :name => "multi_domain_additional_tracker_fields",
  :replace => "[data-hook='additional_tracker_fields']",
  :partial => "admin/trackers/store",
  :disabled => false)

Deface::Override.new(
  :virtual_path => "admin/configurations/index",
  :name => "multi_domain_admin_configurations_menu",
  :insert_bottom => "[data-hook='admin_configurations_menu']",
  :text => "<%= configurations_menu_item(I18n.t('stores_admin'), admin_stores_url, I18n.t('manage_stores')) %>",
  :disabled => false)
{'fraction_non_alphanumeric': 0.1574829931972789, 'fraction_numerical': 0.004081632653061225, 'mean_word_length': 6.948648648648649, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7636132', 'n_tokens_mistral': 1012, 'n_tokens_neox': 996, 'n_words': 133}