Skip to content

Commit

Permalink
build: release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Aug 5, 2018
1 parent 7cdd218 commit 0bb25b8
Show file tree
Hide file tree
Showing 9 changed files with 10,641 additions and 17,560 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.1 (Aug 5, 2018)

- Use Sass instead of PostCSS.

## 0.2.0 (Mar 25, 2018)

- Rename element class name from `vue-feather` to `feather`.
Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

> A Vue component wrapper for [Feather](https://feathericons.com/).
- [Docs & demo](https://fengyuanchen.github.io/vue-feather)
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-feather)

## Main

Expand Down Expand Up @@ -60,14 +61,6 @@ In browser:
- Edge (latest)
- Internet Explorer 9+

## Contributing

Please read through our [contributing guidelines](.github/CONTRIBUTING.md).

## Versioning

Maintained under the [Semantic Versioning guidelines](http://semver.org).

## License

[MIT](http://opensource.org/licenses/MIT) © [Chen Fengyuan](http://chenfengyuan.com)
[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com)
145 changes: 128 additions & 17 deletions dist/vue-feather.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* vue-feather v0.2.0
* https://github.com/fengyuanchen/vue-feather
* vue-feather v0.2.1
* https://fengyuanchen.github.io/vue-feather
*
* Copyright (c) 2018 Chen Fengyuan
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-25T07:56:13.658Z
* Date: 2018-08-05T07:18:34.915Z
*/

'use strict';
Expand Down Expand Up @@ -43,19 +43,7 @@ var _extends = Object.assign || function (target) {
return target;
};

(function () {
if (typeof document !== 'undefined') {
var head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style'),
css = "@-webkit-keyframes feather--spin { from { -webkit-transform: rotate(0); transform: rotate(0); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes feather--spin { from { -webkit-transform: rotate(0); transform: rotate(0); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .feather[data-v-1a4d8e3c] { display: inline-block; overflow: hidden; } .feather--spin[data-v-1a4d8e3c] { -webkit-animation: feather--spin 2s linear infinite; animation: feather--spin 2s linear infinite; } .feather--pulse[data-v-1a4d8e3c] { -webkit-animation: feather--spin 2s infinite steps(8); animation: feather--spin 2s infinite steps(8); } .feather--slow[data-v-1a4d8e3c] { -webkit-animation-duration: 3s; animation-duration: 3s; } .feather--fast[data-v-1a4d8e3c] { -webkit-animation-duration: 1s; animation-duration: 1s; } .feather__content[data-v-1a4d8e3c] { display: block; height: inherit; width: inherit; } ";style.type = 'text/css';if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}head.appendChild(style);
}
})();

var index = { _scopeId: 'data-v-1a4d8e3c',
var script = {
name: 'feather',

props: {
Expand Down Expand Up @@ -152,4 +140,127 @@ var index = { _scopeId: 'data-v-1a4d8e3c',
}
};

/* script */
var __vue_script__ = script;

/* template */

/* style */
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-a22d07d8_0", { source: "\n@keyframes feather--spin-data-v-a22d07d8{\nfrom{transform:rotate(0)\n}\nto{transform:rotate(360deg)\n}\n}\n.feather[data-v-a22d07d8]{display:inline-block;overflow:hidden\n}\n.feather--spin[data-v-a22d07d8]{animation:feather--spin-data-v-a22d07d8 2s linear infinite\n}\n.feather--pulse[data-v-a22d07d8]{animation:feather--spin-data-v-a22d07d8 2s infinite steps(8)\n}\n.feather--slow[data-v-a22d07d8]{animation-duration:3s\n}\n.feather--fast[data-v-a22d07d8]{animation-duration:1s\n}\n.feather__content[data-v-a22d07d8]{display:block;height:inherit;width:inherit\n}", map: undefined, media: undefined });
};
/* scoped */
var __vue_scope_id__ = "data-v-a22d07d8";
/* module identifier */
var __vue_module_identifier__ = undefined;
/* functional template */
var __vue_is_functional_template__ = undefined;
/* component normalizer */
function __vue_normalize__(template, style, script$$1, scope, functional, moduleIdentifier, createInjector, createInjectorSSR) {
var component = (typeof script$$1 === 'function' ? script$$1.options : script$$1) || {};

// For security concerns, we use only base name in production mode.
component.__file = "index.vue";

if (!component.render) {
component.render = template.render;
component.staticRenderFns = template.staticRenderFns;
component._compiled = true;

if (functional) component.functional = true;
}

component._scopeId = scope;

{
var hook = void 0;
if (style) {
hook = function hook(context) {
style.call(this, createInjector(context));
};
}

if (hook !== undefined) {
if (component.functional) {
// register for functional component in vue file
var originalRender = component.render;
component.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
// inject component registration as beforeCreate hook
var existing = component.beforeCreate;
component.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
}

return component;
}
/* style inject */
function __vue_create_injector__() {
var head = document.head || document.getElementsByTagName('head')[0];
var styles = __vue_create_injector__.styles || (__vue_create_injector__.styles = {});
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());

return function addStyle(id, css) {
if (document.querySelector('style[data-vue-ssr-id~="' + id + '"]')) return; // SSR styles are present.

var group = isOldIE ? css.media || 'default' : id;
var style = styles[group] || (styles[group] = { ids: [], parts: [], element: undefined });

if (!style.ids.includes(id)) {
var code = css.source;
var index = style.ids.length;

style.ids.push(id);

if (css.map) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
// http://stackoverflow.com/a/26603875
code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
}

if (isOldIE) {
style.element = style.element || document.querySelector('style[data-group=' + group + ']');
}

if (!style.element) {
var el = style.element = document.createElement('style');
el.type = 'text/css';

if (css.media) el.setAttribute('media', css.media);
if (isOldIE) {
el.setAttribute('data-group', group);
el.setAttribute('data-next-index', '0');
}

head.appendChild(el);
}

if (isOldIE) {
index = parseInt(style.element.getAttribute('data-next-index'));
style.element.setAttribute('data-next-index', index + 1);
}

if (style.element.styleSheet) {
style.parts.push(code);
style.element.styleSheet.cssText = style.parts.filter(Boolean).join('\n');
} else {
var textNode = document.createTextNode(code);
var nodes = style.element.childNodes;
if (nodes[index]) style.element.removeChild(nodes[index]);
if (nodes.length) style.element.insertBefore(textNode, nodes[index]);else style.element.appendChild(textNode);
}
}
};
}
/* style inject SSR */

var index = __vue_normalize__({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, __vue_create_injector__, undefined);

module.exports = index;
145 changes: 128 additions & 17 deletions dist/vue-feather.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* vue-feather v0.2.0
* https://github.com/fengyuanchen/vue-feather
* vue-feather v0.2.1
* https://fengyuanchen.github.io/vue-feather
*
* Copyright (c) 2018 Chen Fengyuan
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-25T07:56:13.658Z
* Date: 2018-08-05T07:18:34.915Z
*/

import feather from 'feather-icons';
Expand Down Expand Up @@ -39,19 +39,7 @@ var _extends = Object.assign || function (target) {
return target;
};

(function () {
if (typeof document !== 'undefined') {
var head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style'),
css = "@-webkit-keyframes feather--spin { from { -webkit-transform: rotate(0); transform: rotate(0); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes feather--spin { from { -webkit-transform: rotate(0); transform: rotate(0); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .feather[data-v-1a4d8e3c] { display: inline-block; overflow: hidden; } .feather--spin[data-v-1a4d8e3c] { -webkit-animation: feather--spin 2s linear infinite; animation: feather--spin 2s linear infinite; } .feather--pulse[data-v-1a4d8e3c] { -webkit-animation: feather--spin 2s infinite steps(8); animation: feather--spin 2s infinite steps(8); } .feather--slow[data-v-1a4d8e3c] { -webkit-animation-duration: 3s; animation-duration: 3s; } .feather--fast[data-v-1a4d8e3c] { -webkit-animation-duration: 1s; animation-duration: 1s; } .feather__content[data-v-1a4d8e3c] { display: block; height: inherit; width: inherit; } ";style.type = 'text/css';if (style.styleSheet) {
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}head.appendChild(style);
}
})();

var index = { _scopeId: 'data-v-1a4d8e3c',
var script = {
name: 'feather',

props: {
Expand Down Expand Up @@ -148,4 +136,127 @@ var index = { _scopeId: 'data-v-1a4d8e3c',
}
};

/* script */
var __vue_script__ = script;

/* template */

/* style */
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-a22d07d8_0", { source: "\n@keyframes feather--spin-data-v-a22d07d8{\nfrom{transform:rotate(0)\n}\nto{transform:rotate(360deg)\n}\n}\n.feather[data-v-a22d07d8]{display:inline-block;overflow:hidden\n}\n.feather--spin[data-v-a22d07d8]{animation:feather--spin-data-v-a22d07d8 2s linear infinite\n}\n.feather--pulse[data-v-a22d07d8]{animation:feather--spin-data-v-a22d07d8 2s infinite steps(8)\n}\n.feather--slow[data-v-a22d07d8]{animation-duration:3s\n}\n.feather--fast[data-v-a22d07d8]{animation-duration:1s\n}\n.feather__content[data-v-a22d07d8]{display:block;height:inherit;width:inherit\n}", map: undefined, media: undefined });
};
/* scoped */
var __vue_scope_id__ = "data-v-a22d07d8";
/* module identifier */
var __vue_module_identifier__ = undefined;
/* functional template */
var __vue_is_functional_template__ = undefined;
/* component normalizer */
function __vue_normalize__(template, style, script$$1, scope, functional, moduleIdentifier, createInjector, createInjectorSSR) {
var component = (typeof script$$1 === 'function' ? script$$1.options : script$$1) || {};

// For security concerns, we use only base name in production mode.
component.__file = "index.vue";

if (!component.render) {
component.render = template.render;
component.staticRenderFns = template.staticRenderFns;
component._compiled = true;

if (functional) component.functional = true;
}

component._scopeId = scope;

{
var hook = void 0;
if (style) {
hook = function hook(context) {
style.call(this, createInjector(context));
};
}

if (hook !== undefined) {
if (component.functional) {
// register for functional component in vue file
var originalRender = component.render;
component.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
// inject component registration as beforeCreate hook
var existing = component.beforeCreate;
component.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
}

return component;
}
/* style inject */
function __vue_create_injector__() {
var head = document.head || document.getElementsByTagName('head')[0];
var styles = __vue_create_injector__.styles || (__vue_create_injector__.styles = {});
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());

return function addStyle(id, css) {
if (document.querySelector('style[data-vue-ssr-id~="' + id + '"]')) return; // SSR styles are present.

var group = isOldIE ? css.media || 'default' : id;
var style = styles[group] || (styles[group] = { ids: [], parts: [], element: undefined });

if (!style.ids.includes(id)) {
var code = css.source;
var index = style.ids.length;

style.ids.push(id);

if (css.map) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
// http://stackoverflow.com/a/26603875
code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
}

if (isOldIE) {
style.element = style.element || document.querySelector('style[data-group=' + group + ']');
}

if (!style.element) {
var el = style.element = document.createElement('style');
el.type = 'text/css';

if (css.media) el.setAttribute('media', css.media);
if (isOldIE) {
el.setAttribute('data-group', group);
el.setAttribute('data-next-index', '0');
}

head.appendChild(el);
}

if (isOldIE) {
index = parseInt(style.element.getAttribute('data-next-index'));
style.element.setAttribute('data-next-index', index + 1);
}

if (style.element.styleSheet) {
style.parts.push(code);
style.element.styleSheet.cssText = style.parts.filter(Boolean).join('\n');
} else {
var textNode = document.createTextNode(code);
var nodes = style.element.childNodes;
if (nodes[index]) style.element.removeChild(nodes[index]);
if (nodes.length) style.element.insertBefore(textNode, nodes[index]);else style.element.appendChild(textNode);
}
}
};
}
/* style inject SSR */

var index = __vue_normalize__({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, __vue_create_injector__, undefined);

export default index;
Loading

0 comments on commit 0bb25b8

Please sign in to comment.