mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Added nql-lang package for parsing nql filters
refs https://github.com/TryGhost/Team/issues/972 Applying a filter in the new members list updates URL and the filter dropdown contains the filters you've created. We want to keep the filters in filter dropdown on page refresh, which needs parsing nql filter from URL and re-building the filter list for the UI. This needs the `@nexes/nql-lang` package that parses the nql filters in JSON form. Since `nql-lang` package had a dependency on `path`, `util` and `fs` node modules, this change needs a tweak in ember cli build using `ember-auto-import`, where we polyfill `path` and `util` package while using empty value for `fs` package.
This commit is contained in:
parent
c5e5ada1ee
commit
8cfdd74fb9
@ -218,6 +218,15 @@ module.exports = function (defaults) {
|
||||
{moveGroupAttrsToElems: false}
|
||||
]
|
||||
}
|
||||
},
|
||||
autoImport: {
|
||||
webpack: {
|
||||
node: {
|
||||
util: true,
|
||||
fs: 'empty',
|
||||
path: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
"@ember/render-modifiers": "1.0.2",
|
||||
"@glimmer/component": "1.0.4",
|
||||
"@html-next/vertical-collection": "2.0.0",
|
||||
"@nexes/nql-lang": "^0.0.1",
|
||||
"@sentry/ember": "6.12.0",
|
||||
"@tryghost/color-utils": "0.1.1",
|
||||
"@tryghost/helpers": "1.1.52",
|
||||
|
@ -1659,6 +1659,11 @@
|
||||
resolved "https://registry.yarnpkg.com/@miragejs/pretender-node-polyfill/-/pretender-node-polyfill-0.1.2.tgz#d26b6b7483fb70cd62189d05c95d2f67153e43f2"
|
||||
integrity sha512-M/BexG/p05C5lFfMunxo/QcgIJnMT2vDVCd00wNqK2ImZONIlEETZwWJu1QtLxtmYlSHlCFl3JNzp0tLe7OJ5g==
|
||||
|
||||
"@nexes/nql-lang@^0.0.1":
|
||||
version "0.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@nexes/nql-lang/-/nql-lang-0.0.1.tgz#a13c023873f9bc11b9e4e284449c6cfbeccc8011"
|
||||
integrity sha1-oTwCOHP5vBG55OKERJxs++zMgBE=
|
||||
|
||||
"@nodelib/fs.scandir@2.1.5":
|
||||
version "2.1.5"
|
||||
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
|
||||
|
Loading…
Reference in New Issue
Block a user