-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (29 loc) · 860 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
const path = require('path');
const defaultOptions = {
includePlainHtmlThemeCss: false,
includeBs4ThemeCss: false,
includeBs5ThemeCss: false,
};
module.exports = {
name: require('./package').name,
included: function () {
const app = this._findHost.call(this);
this._super.included.apply(this, arguments);
const options = Object.assign(
{},
defaultOptions,
app.options['ember-models-table-floating-filter'],
);
let vendorPath = path.join('vendor', 'ember-models-table-floating-filter');
if (options.includePlainHtmlThemeCss) {
app.import(path.join(vendorPath, 'plain-html.css'));
}
if (options.includeBs4ThemeCss) {
app.import(path.join(vendorPath, 'bs4.css'));
}
if (options.includeBs5ThemeCss) {
app.import(path.join(vendorPath, 'bs5.css'));
}
},
};