|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 3 | value: true
|
|---|
| 4 | });
|
|---|
| 5 | Object.defineProperty(exports, "default", {
|
|---|
| 6 | enumerable: true,
|
|---|
| 7 | get: function() {
|
|---|
| 8 | return getAllConfigs;
|
|---|
| 9 | }
|
|---|
| 10 | });
|
|---|
| 11 | const _configfull = /*#__PURE__*/ _interop_require_default(require("../../stubs/config.full.js"));
|
|---|
| 12 | const _featureFlags = require("../featureFlags");
|
|---|
| 13 | function _interop_require_default(obj) {
|
|---|
| 14 | return obj && obj.__esModule ? obj : {
|
|---|
| 15 | default: obj
|
|---|
| 16 | };
|
|---|
| 17 | }
|
|---|
| 18 | function getAllConfigs(config) {
|
|---|
| 19 | var _config_presets;
|
|---|
| 20 | const configs = ((_config_presets = config === null || config === void 0 ? void 0 : config.presets) !== null && _config_presets !== void 0 ? _config_presets : [
|
|---|
| 21 | _configfull.default
|
|---|
| 22 | ]).slice().reverse().flatMap((preset)=>getAllConfigs(preset instanceof Function ? preset() : preset));
|
|---|
| 23 | const features = {
|
|---|
| 24 | // Add experimental configs here...
|
|---|
| 25 | respectDefaultRingColorOpacity: {
|
|---|
| 26 | theme: {
|
|---|
| 27 | ringColor: ({ theme })=>({
|
|---|
| 28 | DEFAULT: "#3b82f67f",
|
|---|
| 29 | ...theme("colors")
|
|---|
| 30 | })
|
|---|
| 31 | }
|
|---|
| 32 | },
|
|---|
| 33 | disableColorOpacityUtilitiesByDefault: {
|
|---|
| 34 | corePlugins: {
|
|---|
| 35 | backgroundOpacity: false,
|
|---|
| 36 | borderOpacity: false,
|
|---|
| 37 | divideOpacity: false,
|
|---|
| 38 | placeholderOpacity: false,
|
|---|
| 39 | ringOpacity: false,
|
|---|
| 40 | textOpacity: false
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
| 43 | };
|
|---|
| 44 | const experimentals = Object.keys(features).filter((feature)=>(0, _featureFlags.flagEnabled)(config, feature)).map((feature)=>features[feature]);
|
|---|
| 45 | return [
|
|---|
| 46 | config,
|
|---|
| 47 | ...experimentals,
|
|---|
| 48 | ...configs
|
|---|
| 49 | ];
|
|---|
| 50 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.