sonicfury / spider-query-builder Goto Github PK
View Code? Open in Web Editor NEWBuilds a queryparams string for interactions with API Platform based backend
License: GNU Affero General Public License v3.0
Builds a queryparams string for interactions with API Platform based backend
License: GNU Affero General Public License v3.0
3.0.0 and prior
This would be interesting to split these 3 types of params, as oftentimes you want to update pageIndex, but not the filters, nor the sorting.
const qb = new SpdrQueryBuilder()
qb.params.{whatever filter}()
qb.sort.{whatever sort}()
qb.pagination.{whatever pagination}()
With clearing methods like
qb.sort.clear()
qb.params.search('username', ['johnny'])
qb.params.remove('username')
This way we would be able to update the pagination without the rest and vice versa
2.x
There's no handling of multiple declarations of a param on the same property
const p1 = new SpdrSearch('lastname', ['Belmondo']);
const p2 = new SpdrSearch('lastname', ['Delon']);
const qb = new SpdrQueryBuilder([p1,p2]);
Several solutions to this:
p1
and p2
into const p3 = new SpdrSearch('lastname', ['Belmondo', 'Delon'])
, for example.{ {...} depends on '@sonicfury/spider-query-builder'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies" }
Probably some configuration issue in tsconfig.json to fix
# ./config/packages/api_platform.yaml
collection:
pagination:
page_parameter_name: _page
items_per_page_parameter_name: itemsPerPage
Add SpiderParams for pagination, with custom param name for both
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.