diff --git a/.env b/.env index ddcd1e5..3d6d6f7 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -RADAR_NAME=AOE Technology Radar +REACT_APP_RADAR_NAME=AOE Technology Radar PUBLIC_URL=/techradar \ No newline at end of file diff --git a/README.md b/README.md index 4c5cf4d..53416cc 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ cp -r build techradar You can customize the following parts of the tech radar. ### Change title, description and headline -Set the environment variable `RADAR_NAME`. The default is "AOE Technology Radar". +Set the environment variable `REACT_APP_RADAR_NAME`. The default is "AOE Technology Radar". ### Host the application under a sub path To host the application under a sub path, set the environment variable `PUBLIC_URL`, e.g. "/techradar". diff --git a/dist_scripts/src/config.js b/dist_scripts/src/config.js index fb7c270..4167c1a 100644 --- a/dist_scripts/src/config.js +++ b/dist_scripts/src/config.js @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assetUrl = exports.isMobileViewport = exports.translate = exports.showEmptyRings = exports.getItemPageNames = exports.rings = exports.quadrants = exports.radarNameShort = exports.radarName = void 0; -exports.radarName = process.env.RADAR_NAME || "AOE Technology Radar"; +exports.radarName = process.env.REACT_APP_RADAR_NAME || "AOE Technology Radar"; exports.radarNameShort = exports.radarName; exports.quadrants = [ "languages-and-frameworks", diff --git a/dist_scripts/src/model.js b/dist_scripts/src/model.js index 32c7836..bb15587 100644 --- a/dist_scripts/src/model.js +++ b/dist_scripts/src/model.js @@ -16,9 +16,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) { return to; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFirstLetter = exports.groupByFirstLetter = exports.groupByQuadrants = exports.featuredOnly = void 0; -var featuredOnly = function (items) { return items.filter(function (item) { return item.featured; }); }; +exports.getFirstLetter = exports.groupByFirstLetter = exports.groupByQuadrants = exports.unfeaturedOnly = exports.featuredOnly = void 0; +var featuredOnly = function (items) { + return items.filter(function (item) { return item.featured; }); +}; exports.featuredOnly = featuredOnly; +var unfeaturedOnly = function (items) { + return items.filter(function (item) { return !item.featured; }); +}; +exports.unfeaturedOnly = unfeaturedOnly; var groupByQuadrants = function (items) { return items.reduce(function (quadrants, item) { var _a; @@ -52,5 +58,7 @@ var addItemToRing = function (ring, item) { if (ring === void 0) { ring = []; } return __spreadArray(__spreadArray([], ring), [item]); }; -var getFirstLetter = function (item) { return item.title.substr(0, 1).toUpperCase(); }; +var getFirstLetter = function (item) { + return item.title.substr(0, 1).toUpperCase(); +}; exports.getFirstLetter = getFirstLetter; diff --git a/package.json b/package.json index c40c5e2..0f61ce0 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ }, "scripts": { "prepare": "husky install && yarn build:scripts", + "start": "react-scripts start", "build": "react-scripts build", "build:scripts": "tsc --project tsconfig.scripts.json", "test": "react-scripts test", diff --git a/public/index.html b/public/index.html index 9b39235..7dfff6a 100644 --- a/public/index.html +++ b/public/index.html @@ -4,15 +4,15 @@ - + - + -