How to use the @fortawesome/fontawesome-svg-core.library function in @fortawesome/fontawesome-svg-core

To help you get started, we’ve selected a few @fortawesome/fontawesome-svg-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openstreetmap / iD / build_data.js View on Github external
const path = require('path');
const prettyStringify = require('json-stringify-pretty-compact');
const shell = require('shelljs');
const YAML = require('js-yaml');

const fieldSchema = require('./data/presets/schema/field.json');
const presetSchema = require('./data/presets/schema/preset.json');
const nsi = require('name-suggestion-index');
const deprecated = require('./data/deprecated.json').dataDeprecated;

// fontawesome icons
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const fas = require('@fortawesome/free-solid-svg-icons').fas;
const far = require('@fortawesome/free-regular-svg-icons').far;
const fab = require('@fortawesome/free-brands-svg-icons').fab;
fontawesome.library.add(fas, far, fab);

const request = require('request').defaults({ maxSockets: 1 });

let _currBuild = null;


function buildData() {
  if (_currBuild) return _currBuild;

  const START = '🏗   ' + colors.yellow('Building data...');
  const END = '👍  ' + colors.green('data built');

  console.log('');
  console.log(START);
  console.time(END);
github mikechabot / react-json-form-engine / dist / components / util / index.js View on Github external
get: function get() {
    return _Asterisk["default"];
  }
});

var _fontawesomeSvgCore = require("@fortawesome/fontawesome-svg-core");

var _freeRegularSvgIcons = require("@fortawesome/free-regular-svg-icons");

var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");

var _Asterisk = _interopRequireDefault(require("./Asterisk"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

_fontawesomeSvgCore.library.add(_freeRegularSvgIcons.far, _freeSolidSvgIcons.fas);
github mikechabot / react-json-form-engine / dist / components / util / index.js View on Github external
get: function get() {
    return _Asterisk.default;
  }
});

var _fontawesomeSvgCore = require("@fortawesome/fontawesome-svg-core");

var _freeRegularSvgIcons = require("@fortawesome/free-regular-svg-icons");

var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");

var _Asterisk = _interopRequireDefault(require("./Asterisk"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_fontawesomeSvgCore.library.add(_freeRegularSvgIcons.far, _freeSolidSvgIcons.fas);
github eosrio / simpleos / src / app / app.module.js View on Github external
var angular_fontawesome_1 = require("@fortawesome/angular-fontawesome");
var lockscreen_component_1 = require("./lockscreen/lockscreen.component");
var resources_component_1 = require("./dashboard/acc_resources/resources.component");
var ngx_echarts_1 = require("ngx-echarts");
var ram_service_1 = require("./services/ram.service");
var dapp_component_1 = require("./dashboard/dapp/dapp.component");
var dapp_component_2 = require("./dashboard/dapp/dapp.component");
var referendum_component_1 = require("./dashboard/referendum/referendum.component");
var dynamic_form_builder_module_1 = require("./dynamic-form-builder/dynamic-form-builder.module");
var connect_service_1 = require("./services/connect.service");
var backup_service_1 = require("./services/backup.service");
var ngx_json_viewer_1 = require("ngx-json-viewer");
var ngx_order_pipe_1 = require("ngx-order-pipe");
var ngx_pagination_1 = require("ngx-pagination");
var fusejs_module_1 = require("./modules/fusejs/fusejs.module");
fontawesome_svg_core_1.library.add(pro_regular_svg_icons_1.far, pro_solid_svg_icons_1.fas, free_brands_svg_icons_1.fab, pro_light_svg_icons_1.fal);
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            entryComponents: [dapp_component_2.FormComponent],
            declarations: [
                app_component_1.AppComponent,
                landing_component_1.LandingComponent,
                dashboard_component_1.DashboardComponent,
                send_component_1.SendComponent,
                wallet_component_1.WalletComponent,
                vote_component_1.VoteComponent,
                config_component_1.ConfigComponent,
                about_component_1.AboutComponent,
                lockscreen_component_1.LockscreenComponent,