Skip to content

Commit

Permalink
Remove unnecessary import
Browse files Browse the repository at this point in the history
We are keeping the global SirTrevor object so we can walk this change back.
  • Loading branch information
taylor-steve committed Oct 31, 2024
1 parent 7177afc commit da8d0c1
Show file tree
Hide file tree
Showing 27 changed files with 6 additions and 34 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/spotlight/spotlight.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/assets/javascripts/spotlight/spotlight.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import SirTrevor from 'sir-trevor'

(function ($){
SirTrevor.BlockMixins.Autocompleteable = {
mixinName: "Autocompleteable",
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/spotlight/admin/block_mixins/formable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import SirTrevor from 'sir-trevor'

(function ($){
SirTrevor.BlockMixins.Formable = {
mixinName: "Formable",
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/spotlight/admin/block_mixins/plustextable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import SirTrevor from 'sir-trevor'

(function ($){
SirTrevor.BlockMixins.Plustextable = {
mixinName: "Textable",
Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/block.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

(function ($){
Core.Block = SirTrevor.Block.extend({
Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/browse_block.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.Browse = (function(){

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Sir Trevor BrowseGroupCategories
*/
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.BrowseGroupCategories = (function(){

Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/iframe_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
and any provided text
and displays them.
*/
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.Iframe = (function(){

Expand Down
2 changes: 0 additions & 2 deletions app/javascript/spotlight/admin/blocks/link_to_search_block.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.LinkToSearch = (function(){

return SirTrevor.Blocks.Browse.extend({
Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/oembed_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
and displays them.
*/
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.Oembed = (function(){

Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/pages_block.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.FeaturedPages = (function(){

Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/blocks/rule_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
and any provided text
and displays them.
*/
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.Rule = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/browse_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SearchResults = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Iiif from 'spotlight/admin/iiif'
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocumentsBase = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/solr_documents_base_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocuments = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/solr_documents_base_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocumentsCarousel = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/solr_documents_base_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocumentsEmbed = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/solr_documents_base_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocumentsFeatures = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//= require spotlight/admin/blocks/solr_documents_base_block
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.SolrDocumentsGrid = (function(){

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import SpotlightNestable from 'spotlight/admin/spotlight_nestable'
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

SirTrevor.Blocks.UploadedItems = (function(){
return Core.Block.Resources.extend({
Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/pages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

export default class {
connect(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

(function() {
var BLOCK_REPLACER_CONTROL_TEMPLATE = function(block) {
Expand Down
1 change: 0 additions & 1 deletion app/javascript/spotlight/admin/sir-trevor/block_limits.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Core from 'spotlight/core'
import SirTrevor from 'sir-trevor'

Core.BlockLimits = function(editor) {
this.editor = editor;
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/spotlight/admin/sir-trevor/locales.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import SirTrevor from 'sir-trevor'

SirTrevor.Locales.en.blocks = $.extend(SirTrevor.Locales.en.blocks, {
autocompleteable: {
placeholder: "Enter a title..."
Expand Down

0 comments on commit da8d0c1

Please sign in to comment.