Skip to content

Commit 4970314

Browse files
committed
feat: use framework7-icon@3
#121
1 parent 9e52c21 commit 4970314

8 files changed

+7
-35
lines changed

lib/fonts/Framework7Icons-Regular.eot

-80.8 KB
Binary file not shown.

lib/fonts/Framework7Icons-Regular.ttf

-80.6 KB
Binary file not shown.
-39.1 KB
Binary file not shown.
-30.7 KB
Binary file not shown.

lib/fonts/framework7-icons.css

Lines changed: 0 additions & 34 deletions
This file was deleted.

lib/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function getOptions (_options) {
2323

2424
// Icons
2525
if (options.f7Icons) {
26-
options.f7IconsSrc = resolvePath('fonts/framework7-icons.css').replace(/\\/g, '\\\\')
26+
options.f7IconsSrc = require.resolve('framework7-icons/css/framework7-icons.css')
2727
}
2828

2929
if (options.mdIcons) {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"dependencies": {
2121
"defu": "3.2.2",
2222
"framework7": "^5.7.14",
23+
"framework7-icons": "^3.0.1",
2324
"framework7-vue": "^5.7.14",
2425
"less": "^4.1.0",
2526
"less-loader": "^6"

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4438,6 +4438,11 @@ fragment-cache@^0.2.1:
44384438
dependencies:
44394439
map-cache "^0.2.2"
44404440

4441+
framework7-icons@^3.0.1:
4442+
version "3.0.1"
4443+
resolved "https://registry.yarnpkg.com/framework7-icons/-/framework7-icons-3.0.1.tgz#2fdb558c3c0755a97fccdd3412dda05ed1d50a27"
4444+
integrity sha512-nb+4T//4gyWHUE85szKUm2JlMe/yA1ACW73qzF1EI76r2vkeaKOQ36P8/nwrmUQ2bKyojGQ2gVF0ar7XkaKiog==
4445+
44414446
framework7-vue@^5.7.14:
44424447
version "5.7.14"
44434448
resolved "https://registry.yarnpkg.com/framework7-vue/-/framework7-vue-5.7.14.tgz#824d71d29ac681d8ad5f40ea70bb3107c2d641b2"

0 commit comments

Comments
 (0)