@evlop/commons 1.0.222 → 1.0.224
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bin/generate-google-fonts-cache.js +2 -2
- package/dist/bin/generate-google-fonts-cache.js.map +1 -1
- package/dist/src/constants/googleFonts/index.d.ts +3 -0
- package/dist/src/constants/googleFonts/index.d.ts.map +1 -0
- package/dist/src/constants/googleFonts/index.js +8 -0
- package/dist/src/constants/googleFonts/index.js.map +1 -0
- package/dist/src/reducers/fonts.js +2 -2
- package/dist/src/reducers/fonts.js.map +1 -1
- package/package.json +1 -1
- /package/dist/src/constants/{googleFontVariants.min.json → googleFonts/variants.min.json} +0 -0
@@ -38,7 +38,7 @@ const fonts = axios_1.default.get('https://www.googleapis.com/webfonts/v1/webfon
|
|
38
38
|
.then(fonts => fonts.map(font => [font.family, font.variants.join(',')]))
|
39
39
|
// save to file
|
40
40
|
.then(fonts => {
|
41
|
-
fs_1.writeFileSync('./src/constants/
|
42
|
-
fs_1.writeFileSync('./src/constants/
|
41
|
+
fs_1.writeFileSync('./src/constants/googleFonts/variants.json', JSON.stringify(fonts, null, 2));
|
42
|
+
fs_1.writeFileSync('./src/constants/googleFonts/variants.min.json', JSON.stringify(fonts));
|
43
43
|
});
|
44
44
|
//# sourceMappingURL=generate-google-fonts-cache.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generate-google-fonts-cache.js","sourceRoot":"","sources":["../../bin/generate-google-fonts-cache.ts"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2BAAkC;AAClC,mCAA8B;AAE9B,MAAM,mBAAmB,GAAG;IACxB,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ;IACrD,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;IACzD,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB;IAC9D,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ;IAC3D,WAAW,EAAE,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CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACtE,eAAe;KACd,IAAI,CAAC,KAAK,CAAA,EAAE;IACT,kBAAa,CAAC,2CAA2C,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3F,kBAAa,CAAC,+CAA+C,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAE9C,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const variants_min_json_1 = __importDefault(require("./variants.min.json"));
|
7
|
+
exports.default = variants_min_json_1.default;
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":";;;;;AAAA,4EAA8C;AAE9C,kBAAe,2BAAW,CAAC"}
|
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.activateFont = exports.registerAppFonts = exports.registerWebFonts = exports.LOAD_GOOGLE_FONTS_FAILED = exports.LOAD_GOOGLE_FONTS_SUCCESS = exports.LOAD_GOOGLE_FONTS_STARTED = exports.ACTIVATE_FONT = exports.REGISTER_APP_FONTS = exports.REGISTER_WEB_FONTS = void 0;
|
7
|
-
const
|
7
|
+
const googleFonts_1 = __importDefault(require("../constants/googleFonts"));
|
8
8
|
exports.REGISTER_WEB_FONTS = 'REGISTER_WEB_FONTS';
|
9
9
|
exports.REGISTER_APP_FONTS = 'REGISTER_APP_FONTS';
|
10
10
|
exports.ACTIVATE_FONT = 'REGISTER_FONT';
|
11
11
|
exports.LOAD_GOOGLE_FONTS_STARTED = 'LOAD_GOOGLE_FONTS_STARTED';
|
12
12
|
exports.LOAD_GOOGLE_FONTS_SUCCESS = 'LOAD_GOOGLE_FONTS_SUCCESS';
|
13
13
|
exports.LOAD_GOOGLE_FONTS_FAILED = 'LOAD_GOOGLE_FONTS_FAILED';
|
14
|
-
const googleFonts =
|
14
|
+
const googleFonts = googleFonts_1.default.map(([family, variants]) => ({
|
15
15
|
family,
|
16
16
|
stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
|
17
17
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,2EAA0D;AAE7C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AAOnE,MAAM,WAAW,GAAU,qBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,EAAE,CAAA,CAAC;IACrE,MAAM;IACN,aAAa,EAAE,2CAA2C,MAAM,CAAC,OAAO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