lincolnuniltl / calibr Goto Github PK
View Code? Open in Web Editor NEWA simple bilingual opening hours calendar loading and rendering system
License: MIT License
A simple bilingual opening hours calendar loading and rendering system
License: MIT License
Allow comments for dates or date ranges to be loaded into the database and rendered in some way for users. Could use the existing Notes column in CSV but would need to add a database field as well.
Currently only bilingual in en and mi. Allow setting any first language and any optional subsequent translation languages.
This would make calibr a whole lot more useful.
There's no way in the load file to indicate that opening hours might not apply to the indicated calendar day. For example, the hours 10:00 to 03:00 (next day) can't be expressed.
This is apparently not so uncommon, though we won't be needing it at Lincoln.
We've discovered that Excel helpfully reformats dates in CSV files when saving them. The workaround is to edit in a text editor or edit the xlsx file (where date formats are enforced) and export as CSV.
The reformatted dates (at least for us, may be settings dependent) contain slashes and cause the date comparison tests to fail and the records to be skipped silently. In fact, the result is that the date data is removed because the load function returns a value (empty array), so real damage is done.
It's too dangerous to attempt reformatting the dates (apologies to Postel), but simple tests like "does it follow this pattern we want" should be possible, followed by a warning to the user.
Currently data is rendered for whole calendar months only. Let this be more flexible so that I can show shorter or longer periods as required.
Don't provide pagination links at the boundaries of data. Though it can be funny to watch the logs and observe Googlebot traversing its way back to 1977 and beyond where there is no data, more intelligent browsers would probably not need those links, nor those in the undetermined future.
This wasn't supposed to come up, but has just this one time at Lincoln (and apparently does plenty at other places). That's enough to bother me.
Not going to be a trivial adjustment.
This is a fancy nice-to-have. If we support more than one language, it would be optimal to look at the User Agent accept-language headers and see if we can accommodate those. Some thought required on the logic before commencing. Something like:
There are more complex scenarios than that!
The load script currently purges any existing data for future days before loading new data. It's a trap for young players, a mite dangerous, and needn't be there.
Add a notice box on HTML calendar display pages (ideally could do per month as well).
Not exactly sure what the use case is, but it seems handy for conveying information the app doesn't support, for example.
We only load dates from the current day. If admins don't load new data before the last day with data, there'll be a gap. We should be more forgiving.
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.