synapsestudios / kohana-notices Goto Github PK
View Code? Open in Web Editor NEWNotices module for Kohana 3.x
Notices module for Kohana 3.x
Secure by default. Prevents XSS. Make a way to send raw if needed.
I was wondering whether you would consider adding a media controller to this module, that would serve the media files? Akin to what is used in the userguide. Doing so would mean that one could include the module without having to do anything (i.e. copy any files anywhere), and so updates would be simpler.
Just an idea (because I want to use this module!).
Thanks!
It seems like the close image is not high enough on the notice bar. I would expect it to be closer to the top right rather than having it be around the middle of the notice bar.
you should not have an tag in your notice output for the type of notice... this is equivalent to the bullets in an unordered list! It's purely a style of the notice! This also simplifies the adding of the image... as you can force the convention of the css and img folders being next to each other and use relative paths
.error images will always be ../img/error.png (or whatever convention you want to set)
Is this "usable" when you use default caching from Kohana? I had some strange experiences with sessions and default cache in the past.
Would it be cleaner to add a class to the close button to inform the js file which notices are persistent and require the ajax calls to remove? Regular notices can simply be hidden.
Reported by @boxyman:
Am I mistaken or does the documetation not match for the dev/3.0.x branch?
E.g. doesn't work and I cannot see the function anywhere in the source code.
Anyways dev/2.1 seems to work fine with Kohana 3.1.3.1
Thanks.
The close button should be added with JS if it can only be done with ajax calls.
Shouldn't the notices/remove action be allowed to be called without ajax in order to remove a persistent notice without requiring JS?
We should avoid treading on the kohana namespace in our modules in case they ever make something that uses that. So Notice extends Kohana_Notice should probably be changed to something like Notice extends Synapse_Notice
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.