Skip to content

Commit

Permalink
Remove twitter-typeahead, left over from #2576
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 31, 2022
1 parent c16277f commit bccff52
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 41 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/blacklight/_blacklight_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
@import "facets";
@import "search_history";
@import "modal";
@import "twitter_typeahead";
@import "icons";
@import "autocomplete";
30 changes: 0 additions & 30 deletions app/assets/stylesheets/blacklight/_twitter_typeahead.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/blacklight/blacklight_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ $logo-image: image_url('blacklight/logo.png') !default;

/* label (field names) */
$field_name_color: $text-muted !default;
$zindex-typeahead: $zindex-dropdown;

// the default bootstrap font-family list includes "Segoe UI Emoji", which, on windows
// renders our remove icon as an emoji-sized x instead of what we see on all other platforms...
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"url": "git+https://github.com/projectblacklight/blacklight.git"
},
"files": [
"app/assets",
"app/javascript"
"app/assets"
],
"author": "",
"license": "Apache-2.0",
Expand All @@ -28,9 +27,7 @@
"not IE 11"
],
"dependencies": {
"bloodhound-js": "^1.2.3",
"bootstrap": ">=4.3.1 <6.0.0",
"jquery": "^3.5.1",
"typeahead.js": "^0.11.1"
"jquery": "^3.5.1"
}
}
6 changes: 2 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ const BUNDLE = process.env.BUNDLE === 'true'
const ESM = process.env.ESM === 'true'

const fileDest = `blacklight${ESM ? '.esm' : ''}`
const external = ['typeahead.js/dist/bloodhound.js']
const globals = {
'typeahead.js/dist/bloodhound.js': 'Bloodhound'
}
const external = []
const globals = {}

const rollupConfig = {
input: path.resolve(__dirname, `app/javascript/blacklight/index.js`),
Expand Down

0 comments on commit bccff52

Please sign in to comment.