Font-Awesome
request.js | Font-Awesome | |
---|---|---|
11 | 211 | |
366 | 73,025 | |
0.8% | 0.1% | |
5.3 | 5.0 | |
24 days ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
request.js
-
Help importing fetch on stimulus
For some extra help with crsf tokens. I would recommend the request.js library in the rails GitHub. https://github.com/rails/request.js
-
Build a Table Editor with Trix and Turbo Frames in Rails
We will now connect our toolbar's table button to the server-side controller action we have just written. To do this, we first need to bring Rails' request.js library into the project. This library will help us administer post requests from the client, including proper CSRF-tokens, etc.:
-
how to implement a bootstrap dropdown in a button
Then, you will need to use fetch or other libs like rails/request.js (https://github.com/rails/request.js) to send a patch request with formData to your model's update path (usually something like /fruits), this is to update your model data. If you are using scaffolded controller, you should have respond_to js configured for you by default. If not, remember to add respond_to :js to your controller, and list data attributes you wanted to return from the server.
-
Reactiveness In Rails
Stimulus and request.js should get you about 90% of the way for your example
-
Pagination and infinite scrolling with Rails and the Hotwire stack
One way to work around this is described in Dale’s article. In it, a Stimulus controller and request.js are used to insert a Turbo Stream header into GET requests, getting Turbo to see the request as a Turbo Stream request despite not originating from a form submission.
-
Is it possible to trigger turbo_stream update from Stimulus controller?
The Rails.ajax function comes from the @rails/ujs package, which isn't Turbo-aware. You should be using @rails/request.js instead, which can execute Turbo Stream commands:
-
Rails 7.0 has been released
It's not part of Hotwire, but supplemental for when you want to make AJAX requests from Stimulus or whatever. https://github.com/rails/request.js
-
Using stimulus to fetch api in ajax manner
So with our applications we've started using request.js to make JS based requests to the applications, it's super handy and very easy to use.
-
Infinite Scroll with HOTWire - Part 2: Adding Stimulus
request.js is a minimalistic JavaScript pacakge that is set to replace Rails UJS in the near future. We will be using it to fetch new pages from the server. Let's install the package
-
Multi-Factor Authentication for Rails with WebAuthn and Devise
First, we will add the necessary NPM packages. We will use @github/webauthn-json as a nice wrapper for the WebAuthn API and @rails/request.js for easier requests to the backend (with built-in Turbo Stream support).
Font-Awesome
-
Creating Gradient Buttons with Animated Text using CSS
the i element is the icon of the button, I'm using fontawesome.com for the icon, the class fa-apple retrives Apple icon for us.
-
How to build a Good Portfolio Website - My Approach.
Icons: Fontawesome Development: HTML, SCSS, JavaScript Deployment: Github + Netlify
-
Free Icons for your reactjs and web applications
1. Font Awesome
-
Adding Symbols in text.
For generic icons (i.e. you just need a d6 and not a system-specific d6 option), Foundry has Font Awesome which are easy to search, then copy and insert, and always look good inline.
-
[Accessibility] Points to Consider When Adding aria-label to Icon Font Elements
The following is an example of defining Font Awesome:
-
A Developer’s Guide to Implementing a Design System (Part 1)
Of course, we have many different ways of solving this problem. Some of the most common include pre-existing third-party icon libraries (such as Font Awesome), icons bundled into a third-party component library (like the Kendo UI Icons), or a completely custom set of icons designed and maintained by your design team. Obviously, going 100% custom will require more work (on both the design and dev side), but might be worth it to achieve a truly unique look – or if the UI will require icons for uncommon symbols or concepts.
- GitHub Issue: Add Substack Logo to Font-Awesome
-
Crafting A Minimalist Portfolio Website with SvelteKit and Pico CSS
The featured GitHub projects are dynamically retrieved through the power of the GitHub GraphQL API. The blog posts are seamlessly pulled in using the Dev.to API. Additionally, Redis is used to cache the GitHub and Dev.to API responses for 1 hour to reduce the number of API calls. Icons are provided by Font Awesome through their kit from the CDN. I've also implemented the new View Transition API feature to enhance the user experience.
-
Does Neocities support fontawesome?
Firstly, unlike the name https://fontawesome.com/ isn't for fonts.
- Icon Buddy – 100K+ Open Source SVG Icons, Fully Customizable
What are some alternatives?
hotwire-example-template - A collection of branches that transmit HTML over the wire.
heroicons-ui
vite_ruby - ⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
nerd-fonts - Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
webauthn-with-devise - The companion app for the article "Secure authentication for Rails with WebAuthn and Devise"
feather - Simply beautiful open-source icons
webauthn-json - 🔏 A small WebAuthn API wrapper that translates to/from pure JSON using base64url.
obsidian-icons-plugin - Add icons to your Obsidian notes – Experimental Obsidian Plugin
heroicons - A set of free MIT-licensed high-quality SVG icons for UI development.
polybar - A fast and easy-to-use status bar
endeavouros-i3wm-setup - The beloved EndeavourOS default i3 (has gaps) theme and setup dotfile repo
polybar-scripts - This is a community project. We write and collect scripts for polybar!