pagebakers / meteor-ionicons Goto Github PK
View Code? Open in Web Editor NEWLatest version of Ionicons, packaged for Meteor
License: MIT License
Latest version of Ionicons, packaged for Meteor
License: MIT License
Just right now, ionicons CDN is down... any way to make this package work loading font from local?
Thanks!
If mrt:ionicons
is deprecated, you can remove it from atmosphere using
meteor admin set-unmigrated mrt:ionicons
meteor admin maintainers mrt:ionicons --remove mrt
First of all, Thanks alot for awesome icons.
is it possible to load css from local or my own CDN instead of Ionicons CDN? loading from ionicons CDN takes more time. I would like to host the css in my own CDN. Thanks in advance.
-Raisudeen
Hey there!
Just thought I'd share, it's not really obvious that icons won't appear in mobile builds unless you specify an access rule in your mobile-settings.js
....otherwise the resource doesn't get loaded.
Maybe just a note about it would be useful, including the access rules in your readme:
App.accessRule('http://code.ionicframework.com/ionicons/');
App.accessRule('https://code.ionicframework.com/ionicons/');
See: https://forums.meteor.com/t/ionicons-disappearing-on-mobile-app/12579
Firefox produces the following error in its developer console:
downloadable font: rejected by sanitizer (font-family: ionicons" style:normal weight:normal stretch:normal src index:1)
source: https://www.example.com/packages/ionicons/fonts/ionicons.ttf
downloadable font: rejected by sanitizer (font-family: ionicons" style:normal weight:normal stretch:normal src index:2)
source: https://www.example.com/packages/ionicons/fonts/ionicons.woff
On Windows 8.1/Firefox 38, the font icons are still displayed correctly. On Ubuntu 14.04/Firefox 35, they instead show as boxes with character codes. To be clear, the message is shown on both systems.
In the Firefox Network inspector it seems like the fonts are being served with a text/html content-type header.
I have worked around this by removing this package and serving the font files from my public
directory, which caused them to be served with a better content-type (application/x-font-ttf) and display correctly on both systems.
After adding the package to my meteor project I'm getting the following errors a bunch of times in chrome:
Failed to decode downloaded font: ...
The Icons are visible in chrome, but the error remains.
Sample Project:
http://workstreams_v3.meteor.com/
The error is gone, when I manually add the ionicons css to the hearder:
But that shouldn't really be necessary, right?
Can/Should I just ignore the error?
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.