maglevhq / maglev-core

Ruby on Rails website builder
https://www.maglev.dev
MIT License
273 stars 47 forks source link

feat(components): add icon-picker component #8

Closed patdec closed 2 years ago

patdec commented 3 years ago

This component is not completed: It remains to deal with the url of css file: see app/javascript/editor/components/kit/icon-picker.vue l63:

@import url('http://localhost:3000/fonts/fonts.css');

Below, I pasted the content of my section yml file related to the component:

  - label: "Icônes"
    id: icon
    type: icon
#    prefix: 'fa'
    default: 'icon-af-certif'
    presets: ['icon-af-certif','icon-af-counter','icon-af-map','icon-af-headphone']

We can see a line prefix: 'fa'. I added this option to take account of some libraries requirements as FontAwesome.

I have dropped css and fonts files in /public/fonts directory of main Rails application:

image

did commented 2 years ago

already implemented