# All files / src icons.jsx

100% Statements 11/11
50% Branches 1/2
100% Functions 3/3
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    582x
    78x

    2x
    2x

    2x
    2x
    78x
    78x

    2x

    2x

    2x
     const normalize = function (k) {
      return k.replace('icon-', '').replace(/\.svg$/, '').replace(/^\.\//, '')
    }

    const importIcons = function () {
      const names = [
        'icon-album',
        'icon-album-add',
        'icon-album-remove',
        'icon-back',
        'icon-bottom',
        'icon-calendar',
        'icon-check',
        'icon-check-circleless',
        'icon-clock',
        'icon-cozy',
        'icon-cross',
        'icon-delete',
        'icon-destroy',
        'icon-device-laptop',
        'icon-dots',
        'icon-download',
        'icon-file',
        'icon-file-none',
        'icon-folder',
        'icon-forward',
        'icon-gear',
        'icon-hourglass',
        'icon-image',
        'icon-moveto',
        'icon-openwith',
        'icon-paperplane',
        'icon-people',
        'icon-phone-download',
        'icon-plus',
        'icon-rename',
        'icon-restore',
        'icon-share',
        'icon-small-arrow',
        'icon-spinner',
        'icon-top',
        'icon-trash',
        'icon-upload',
        'icon-warn',
        'icon-warning'
      ]
      let icons = {}
      names.map(n => {
        const icon = require('!!svg-sprite-loader?symbolId=cozyu[name]!../loaders/strip-fill-loader!../assets/icons/ui/' + n + '.svg')
        icons[normalize(n)] = icon.default || icon
      })
      return icons
    }

    const icons = importIcons()

    module.exports = icons