forked from jinyaoMa/my-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
2,596 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "@jinyaoma/my-app-components", | ||
"version": "0.1.0", | ||
"main": "index.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const svgtofont = require("svgtofont"); | ||
|
||
/* | ||
"svgtofont": { | ||
"outSVGReact": false, | ||
"outSVGPath": false, | ||
"emptyDist": true, | ||
"styleTemplates": "./templates", | ||
"fontName": "mp-icon", | ||
"css": { | ||
"filename": "mp-icon", | ||
"include": "\\.(css|scss|less|styl)$", | ||
"fontSize": "1em" | ||
} | ||
} | ||
*/ | ||
|
||
svgtofont({ | ||
dist: "./lib", // output path | ||
src: "./svg", // svg path | ||
styleTemplates: "./styles", | ||
emptyDist: true, // Clear output directory contents | ||
fontName: "mp-icon", // font name | ||
css: { | ||
filename: "mp-icon", | ||
include: "\\.css$", // "\\.(css|scss|less|styl)$", | ||
fontSize: "1em", | ||
}, // Create CSS files. | ||
outSVGReact: false, | ||
outSVGPath: false, | ||
svgicons2svgfont: { | ||
fontHeight: 1000, | ||
normalize: true, | ||
}, | ||
}).then(() => { | ||
console.log("done!"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "./lib/mp-icon.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@font-face { | ||
font-family: "mp-icon"; | ||
src: url('mp-icon.eot'); /* IE9*/ | ||
src: url('mp-icon.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
url("mp-icon.woff2") format("woff2"), | ||
url("mp-icon.woff") format("woff"), | ||
url('mp-icon.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | ||
url('mp-icon.svg#mp-icon') format('svg'); /* iOS 4.1- */ | ||
} | ||
|
||
[class^="mp-icon-"], [class*=" mp-icon-"] { | ||
font-family: 'mp-icon' !important; | ||
font-size:1em; | ||
font-style: normal; | ||
vertical-align: bottom; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
[class^="mp-icon-"].fix-width, [class*=" mp-icon-"].fix-width { | ||
width: 1.3em; | ||
text-align: center; | ||
} | ||
|
||
.mp-icon-docs:before { content: "\ea01"; } | ||
.mp-icon-home:before { content: "\ea02"; } | ||
.mp-icon-jinyao-ma:before { content: "\ea03"; } | ||
.mp-icon-settings:before { content: "\ea04"; } | ||
.mp-icon-window-close:before { content: "\ea05"; } | ||
.mp-icon-window-fullscreen:before { content: "\ea06"; } | ||
.mp-icon-window-maximize:before { content: "\ea07"; } | ||
.mp-icon-window-minimize:before { content: "\ea08"; } | ||
.mp-icon-window-restore:before { content: "\ea09"; } | ||
.mp-icon-window-unfullscreen:before { content: "\ea0a"; } | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.