subgin / tonic Goto Github PK
View Code? Open in Web Editor NEWπΈ Digital Collections Framework
Home Page: https://tonic-demo.netlify.app
License: MIT License
πΈ Digital Collections Framework
Home Page: https://tonic-demo.netlify.app
License: MIT License
Click to enable/disable each tag and make the search work with multiple tags ππΌ
We need to find a good way to initialize the ranges.
First of all, we should adapt the sliders to be a unique one with two pins.
Then coordinate middleman generation with front interaction.
So if we have items with the same name in our data collection the front interaction does not work properly. We need to prevent this allowing duplicated names by providing unique id's for each item.
[{ id: 'duplied2', name: 'duplied' },...]
/duplied2
So it will be easy to share π specific filtering by just copying the current URL:
https://my-collection.com?price_max=40&category=music
It should be quite feasible to implement with: getParam and setParam from Ralix.
High level:
setParam(attribute, value)
getParam
to set currentFilters
and apply filteringLet's expose a new flag to make the "detail" pages generation configurable.
We already have these couple of flags hide_filters
and hide_sorting
, so maybe hide_detail_pages
?
π‘Another idea: a flag to configure detail page link? It will be more flexible:
detail_page_link
, external_link
, ...)Custom GitHub Actions Workflows for deploys in GitHub Pages π
https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/
It should detect urls without protocol, like: example.com
Instead of a sorted array we need a collection itself.
Then remove all data-attr and index by id.
Once we can match markup with data by id we'll have front-side state π―
Basically, make it really usable on mobile devices π±
GOAL Include share buttons in "index" (share current filtering) and "detail" (share specific resource) pages to facilitate sharing.
π To be defined:
Toggle elements visibility by single selected tag.
So we want to share our collection to someone else with the filters applied.
We don't have a server, neither SEO so url will have #/filter/ to init them.
While user is filtering the content the url must change to perform the change of state.
Warn or raise:
name
)Like we do for links, we should autodetect emails and:
text
for filters as the defaultExample of item (address -> geo):
{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "[email protected]",
"website": "hildegard.org",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
"zipcode": "92998-3874",
"geo": {
"lat": "-37.3159",
"lng": "81.1496"
}
}
}
We should provide better support for:
Make collections with images to display the first image (images[0]
) in the _item_card
partial.
Probably introduce a config
flag to enable/disable this π€? For large collections this could be a bit slow.
Allow to pull the collection YAML/JSON from a remote resource:
# data/config.yaml
remote_collection: https://jsonplaceholder.typicode.com/users
This will also allow to create Tonic collections for example from your remote APIs ππΌ
Allow to use more HTML tags (like links) in:
Only one search input, front may want to know which attributes are text?
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.