@fortawesome/vue-fontawesome 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +6 -6
  3. package/index.es.js +288 -229
  4. package/index.js +636 -577
  5. package/package.json +40 -23
  6. package/src/components/FontAwesomeIcon.js +15 -3
  7. package/src/utils.js +5 -1
  8. package/.babelrc +0 -3
  9. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -24
  10. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  11. package/.github/workflows/ci.yml +0 -31
  12. package/.npmrc.proregistry +0 -2
  13. package/.tool-versions +0 -2
  14. package/CODE_OF_CONDUCT.md +0 -74
  15. package/CONTRIBUTING.md +0 -57
  16. package/DEVELOPMENT.md +0 -44
  17. package/bin/dev +0 -3
  18. package/bin/setup +0 -8
  19. package/examples/vue-cli-webpack/.babelrc +0 -12
  20. package/examples/vue-cli-webpack/.editorconfig +0 -9
  21. package/examples/vue-cli-webpack/.eslintignore +0 -4
  22. package/examples/vue-cli-webpack/.eslintrc.js +0 -29
  23. package/examples/vue-cli-webpack/.postcssrc.js +0 -10
  24. package/examples/vue-cli-webpack/README.md +0 -21
  25. package/examples/vue-cli-webpack/build/build.js +0 -41
  26. package/examples/vue-cli-webpack/build/check-versions.js +0 -54
  27. package/examples/vue-cli-webpack/build/logo.png +0 -0
  28. package/examples/vue-cli-webpack/build/utils.js +0 -101
  29. package/examples/vue-cli-webpack/build/vue-loader.conf.js +0 -22
  30. package/examples/vue-cli-webpack/build/webpack.base.conf.js +0 -91
  31. package/examples/vue-cli-webpack/build/webpack.dev.conf.js +0 -95
  32. package/examples/vue-cli-webpack/build/webpack.prod.conf.js +0 -145
  33. package/examples/vue-cli-webpack/config/dev.env.js +0 -7
  34. package/examples/vue-cli-webpack/config/index.js +0 -76
  35. package/examples/vue-cli-webpack/config/prod.env.js +0 -4
  36. package/examples/vue-cli-webpack/index.html +0 -13
  37. package/examples/vue-cli-webpack/package-lock.json +0 -11632
  38. package/examples/vue-cli-webpack/package.json +0 -77
  39. package/examples/vue-cli-webpack/src/App.vue +0 -66
  40. package/examples/vue-cli-webpack/src/assets/logo.png +0 -0
  41. package/examples/vue-cli-webpack/src/components/HelloWorld.vue +0 -113
  42. package/examples/vue-cli-webpack/src/main.js +0 -28
  43. package/examples/vue-cli-webpack/static/.gitkeep +0 -0
  44. package/rollup.config.js +0 -54
  45. package/src/components/__fixtures__/helpers.js +0 -40
  46. package/src/components/__fixtures__/icons.js +0 -35
  47. package/src/components/__tests__/FontAwesomeIcon.test.js +0 -337
  48. package/src/components/__tests__/FontAwesomeLayers.test.js +0 -55
  49. package/src/components/__tests__/FontAwesomeLayersText.test.js +0 -52
@@ -1,77 +0,0 @@
1
- {
2
- "name": "vue-cli-webpack",
3
- "version": "1.0.0",
4
- "description": "A Vue.js project",
5
- "author": "robmadole <robmadole@gmail.com>",
6
- "private": true,
7
- "scripts": {
8
- "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9
- "start": "npm run dev",
10
- "lint": "eslint --ext .js,.vue src",
11
- "build": "node build/build.js"
12
- },
13
- "dependencies": {
14
- "@fortawesome/fontawesome-svg-core": "^1.2.7",
15
- "@fortawesome/free-brands-svg-icons": "^5.4.2",
16
- "@fortawesome/free-regular-svg-icons": "^5.4.2",
17
- "@fortawesome/free-solid-svg-icons": "^5.4.2",
18
- "@fortawesome/vue-fontawesome": "^0.1.9",
19
- "vue": "^2.5.2"
20
- },
21
- "devDependencies": {
22
- "autoprefixer": "^7.1.2",
23
- "babel-core": "^6.22.1",
24
- "babel-eslint": "^8.2.1",
25
- "babel-helper-vue-jsx-merge-props": "^2.0.3",
26
- "babel-loader": "^7.1.1",
27
- "babel-plugin-syntax-jsx": "^6.18.0",
28
- "babel-plugin-transform-runtime": "^6.22.0",
29
- "babel-plugin-transform-vue-jsx": "^3.5.0",
30
- "babel-preset-env": "^1.3.2",
31
- "babel-preset-stage-2": "^6.22.0",
32
- "chalk": "^2.0.1",
33
- "copy-webpack-plugin": "^4.0.1",
34
- "css-loader": "^0.28.0",
35
- "eslint": "^4.15.0",
36
- "eslint-config-standard": "^10.2.1",
37
- "eslint-friendly-formatter": "^3.0.0",
38
- "eslint-loader": "^1.7.1",
39
- "eslint-plugin-import": "^2.7.0",
40
- "eslint-plugin-node": "^5.2.0",
41
- "eslint-plugin-promise": "^3.4.0",
42
- "eslint-plugin-standard": "^3.0.1",
43
- "eslint-plugin-vue": "^4.0.0",
44
- "extract-text-webpack-plugin": "^3.0.0",
45
- "file-loader": "^1.1.4",
46
- "friendly-errors-webpack-plugin": "^1.6.1",
47
- "html-webpack-plugin": "^2.30.1",
48
- "node-notifier": "^5.1.2",
49
- "optimize-css-assets-webpack-plugin": "^3.2.0",
50
- "ora": "^1.2.0",
51
- "portfinder": "^1.0.13",
52
- "postcss-import": "^11.0.0",
53
- "postcss-loader": "^2.0.8",
54
- "postcss-url": "^7.2.1",
55
- "rimraf": "^2.6.0",
56
- "semver": "^5.3.0",
57
- "shelljs": "^0.7.6",
58
- "uglifyjs-webpack-plugin": "^1.1.1",
59
- "url-loader": "^0.5.8",
60
- "vue-loader": "^13.3.0",
61
- "vue-style-loader": "^3.0.1",
62
- "vue-template-compiler": "^2.5.2",
63
- "webpack": "^3.6.0",
64
- "webpack-bundle-analyzer": "^3.3.2",
65
- "webpack-dev-server": "^3.1.11",
66
- "webpack-merge": "^4.1.0"
67
- },
68
- "engines": {
69
- "node": ">= 6.0.0",
70
- "npm": ">= 3.0.0"
71
- },
72
- "browserslist": [
73
- "> 1%",
74
- "last 2 versions",
75
- "not ie <= 8"
76
- ]
77
- }
@@ -1,66 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <main class="w-100 min-vh-100 bg-gray8 white sans-serif pa6 flex flex-column justify-center items-center">
4
- <div class="mw8 center overflow-hidden">
5
- <h2 class="tc ttu tracked3 b f2 mt0 mb2 teal0 o-30">vue-fontawesome</h2>
6
-
7
- <ul class="list ma0 pa0 flex flex-row flex-wrap teal4">
8
- <li class="pv3 ph2 ma0 link grow">
9
- <font-awesome-icon icon="coffee" size="4x" />
10
- </li>
11
- <li class="pv3 ph2 ma0 link grow">
12
- <font-awesome-icon :icon="['fas', 'coffee']" flip="horizontal" size="4x" />
13
- </li>
14
- <li class="pv3 ph2 ma0 link grow">
15
- <font-awesome-icon :icon="['far', 'comment']" size="4x" />
16
- </li>
17
- <li class="pv3 ph2 ma0 link grow">
18
- <font-awesome-icon icon="child" transform="shrink-4 down-2 right-2" :mask="['fas', 'circle']" size="4x" />
19
- </li>
20
- <li class="pv3 ph2 ma0 link grow">
21
- <font-awesome-icon :icon="['fab', 'twitter']" size="4x" />
22
- </li>
23
- <li class="pv3 ph2 ma0 link grow">
24
- <font-awesome-icon :icon="queen" size="4x" />
25
- </li>
26
- <li class="pv3 ph2 ma0 link grow">
27
- <font-awesome-icon :icon="queen" size="4x" inverse/>
28
- </li>
29
- <li class="pv3 ph2 ma0 link grow">
30
- <font-awesome-layers full-width class="fa-4x">
31
- <font-awesome-icon :icon="['fas', 'archive']"/>
32
- <font-awesome-layers-text class="red8" transform="down-3 shrink-14" value="SECRET" />
33
- </font-awesome-layers>
34
- </li>
35
- <li class="pv3 ph2 ma0 link grow">
36
- <font-awesome-layers full-width class="fa-4x">
37
- <font-awesome-icon :icon="['fas', 'envelope']"/>
38
- <font-awesome-layers-text class="red8" value="1" position="top-right" />
39
- </font-awesome-layers>
40
- </li>
41
- </ul>
42
- </div>
43
- </main>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import { faChessQueen } from '@fortawesome/free-solid-svg-icons'
49
-
50
- export default {
51
- name: 'App',
52
-
53
- computed: {
54
- queen () {
55
- return faChessQueen
56
- }
57
- }
58
- }
59
- </script>
60
-
61
- <style>
62
- body {
63
- margin: 0;
64
- padding: 0;
65
- }
66
- </style>
@@ -1,113 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- <h1>{{ msg }}</h1>
4
- <h2>Essential Links</h2>
5
- <ul>
6
- <li>
7
- <a
8
- href="https://vuejs.org"
9
- target="_blank"
10
- >
11
- Core Docs
12
- </a>
13
- </li>
14
- <li>
15
- <a
16
- href="https://forum.vuejs.org"
17
- target="_blank"
18
- >
19
- Forum
20
- </a>
21
- </li>
22
- <li>
23
- <a
24
- href="https://chat.vuejs.org"
25
- target="_blank"
26
- >
27
- Community Chat
28
- </a>
29
- </li>
30
- <li>
31
- <a
32
- href="https://twitter.com/vuejs"
33
- target="_blank"
34
- >
35
- Twitter
36
- </a>
37
- </li>
38
- <br>
39
- <li>
40
- <a
41
- href="http://vuejs-templates.github.io/webpack/"
42
- target="_blank"
43
- >
44
- Docs for This Template
45
- </a>
46
- </li>
47
- </ul>
48
- <h2>Ecosystem</h2>
49
- <ul>
50
- <li>
51
- <a
52
- href="http://router.vuejs.org/"
53
- target="_blank"
54
- >
55
- vue-router
56
- </a>
57
- </li>
58
- <li>
59
- <a
60
- href="http://vuex.vuejs.org/"
61
- target="_blank"
62
- >
63
- vuex
64
- </a>
65
- </li>
66
- <li>
67
- <a
68
- href="http://vue-loader.vuejs.org/"
69
- target="_blank"
70
- >
71
- vue-loader
72
- </a>
73
- </li>
74
- <li>
75
- <a
76
- href="https://github.com/vuejs/awesome-vue"
77
- target="_blank"
78
- >
79
- awesome-vue
80
- </a>
81
- </li>
82
- </ul>
83
- </div>
84
- </template>
85
-
86
- <script>
87
- export default {
88
- name: 'HelloWorld',
89
- data () {
90
- return {
91
- msg: 'Welcome to Your Vue.js App'
92
- }
93
- }
94
- }
95
- </script>
96
-
97
- <!-- Add "scoped" attribute to limit CSS to this component only -->
98
- <style scoped>
99
- h1, h2 {
100
- font-weight: normal;
101
- }
102
- ul {
103
- list-style-type: none;
104
- padding: 0;
105
- }
106
- li {
107
- display: inline-block;
108
- margin: 0 10px;
109
- }
110
- a {
111
- color: #42b983;
112
- }
113
- </style>
@@ -1,28 +0,0 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { library } from '@fortawesome/fontawesome-svg-core'
4
- import { faCoffee, faChild, faCircle, faArchive } from '@fortawesome/free-solid-svg-icons'
5
- import { faComment } from '@fortawesome/free-regular-svg-icons'
6
- import { faTwitter } from '@fortawesome/free-brands-svg-icons'
7
- import { FontAwesomeIcon, FontAwesomeLayers, FontAwesomeLayersText } from '@fortawesome/vue-fontawesome'
8
-
9
- library.add(
10
- faCoffee,
11
- faChild,
12
- faCircle,
13
- faArchive,
14
- faComment,
15
- faTwitter
16
- )
17
-
18
- Vue.component('font-awesome-icon', FontAwesomeIcon)
19
- Vue.component('font-awesome-layers', FontAwesomeLayers)
20
- Vue.component('font-awesome-layers-text', FontAwesomeLayersText)
21
-
22
- Vue.config.productionTip = false
23
-
24
- /* eslint-disable no-new */
25
- new Vue({
26
- el: '#app',
27
- render: h => h(App)
28
- })
File without changes
package/rollup.config.js DELETED
@@ -1,54 +0,0 @@
1
- import resolve from 'rollup-plugin-node-resolve'
2
- import commonJs from 'rollup-plugin-commonjs'
3
- import babel from 'rollup-plugin-babel'
4
-
5
- const name = 'vue-fontawesome'
6
- const globals = {
7
- '@fortawesome/fontawesome-svg-core': 'FontAwesome'
8
- }
9
-
10
- export default {
11
- external: [
12
- '@fortawesome/fontawesome-svg-core'
13
- ],
14
- input: 'src/index.js',
15
- output: [
16
- {
17
- name,
18
- globals,
19
- format: 'umd',
20
- exports: 'named',
21
- file: 'index.js',
22
- },
23
- {
24
- name,
25
- globals,
26
- format: 'es',
27
- file: 'index.es.js'
28
- }
29
- ],
30
- plugins: [
31
- resolve({
32
- jsnext: true,
33
- main: true
34
- }),
35
- commonJs({
36
- include: 'node_modules/**'
37
- }),
38
- babel({
39
- babelrc: false,
40
- presets: [
41
- ['env', {
42
- debug: true,
43
- targets: {"browsers": ["> 1%", "last 2 versions", "ie > 9"]},
44
- modules: false
45
- }],
46
- 'stage-3'
47
- ],
48
- plugins: [
49
- 'external-helpers'
50
- ],
51
- exclude: 'node_modules/**'
52
- })
53
- ]
54
- }
@@ -1,40 +0,0 @@
1
- import Vue from 'vue/dist/vue'
2
- import FontAwesomeIcon from '../FontAwesomeIcon'
3
- import { parse } from '@fortawesome/fontawesome-svg-core'
4
-
5
- export function compileAndMount (str, params = {}) {
6
- const res = Vue.compile(str)
7
- const vm = new Vue({
8
- ...params,
9
- render: res.render,
10
- staticRenderFn: res.staticRenderFn
11
- })
12
-
13
- vm.$mount()
14
-
15
- return vm
16
- }
17
-
18
- export function mountFromProps (propsData = {}) {
19
- const opts = {
20
- render: (h) => h(
21
- FontAwesomeIcon,
22
- { props: propsData }
23
- )
24
- }
25
-
26
- const vm = new Vue(opts)
27
- vm.$mount()
28
-
29
- return vm
30
- }
31
-
32
- export function coreHasFeature (feature) {
33
- if (feature === REFERENCE_ICON_BY_STYLE || feature === ICON_ALIASES || feature === REFERENCE_ICON_USING_STRING) {
34
- return parse.icon
35
- }
36
- }
37
-
38
- export const REFERENCE_ICON_BY_STYLE = 0x00
39
- export const ICON_ALIASES = 0x01
40
- export const REFERENCE_ICON_USING_STRING = 0x02
@@ -1,35 +0,0 @@
1
- export const faCoffee = {
2
- prefix: 'fas',
3
- iconName: 'coffee',
4
- icon: [
5
- 640,
6
- 512,
7
- [],
8
- "f001",
9
- "..."
10
- ]
11
- }
12
-
13
- export const faCircle = {
14
- prefix: 'fas',
15
- iconName: 'circle',
16
- icon: [
17
- 640,
18
- 512,
19
- [],
20
- "f002",
21
- "..."
22
- ]
23
- }
24
-
25
- export const faSpartan = {
26
- prefix: 'fat',
27
- iconName: 'spartan',
28
- icon: [
29
- 640,
30
- 512,
31
- [],
32
- "f100",
33
- "..."
34
- ]
35
- }