Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 9102ccc

Browse files
committed
Merge branch 'master' into dev
2 parents c0de69d + 67dd586 commit 9102ccc

File tree

12 files changed

+58
-92
lines changed

12 files changed

+58
-92
lines changed

.vscode/settings.json

-5
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This is a [single-spa](https://single-spa.js.org/) example React microapp.
2020

2121
## Config
2222

23-
For available variables config which depend on the running environment (`APPENV=dev` or `APPENV=prod`), please refer to `config/dev.js` and `config/prod.js`.
23+
For available variables config which depend on the running environment (`development` or `production`), please refer to `config/development.js` and `config/production.js`.
2424

2525
For application constants which don't depend on the running environment use `src/constants/index.js`.
2626

babel.config.js

-59
This file was deleted.

babel.config.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
[
8+
"@babel/plugin-transform-runtime",
9+
{
10+
"useESModules": true,
11+
"regenerator": false
12+
}
13+
],
14+
[
15+
"react-css-modules",
16+
{
17+
"filetypes": {
18+
".scss": {
19+
"syntax": "postcss-scss"
20+
}
21+
},
22+
"generateScopedName": "teams_[path][name]___[local]___[hash:base64:6]"
23+
}
24+
],
25+
"inline-react-svg"
26+
],
27+
"env": {
28+
"test": {
29+
"presets": [
30+
[
31+
"@babel/preset-env",
32+
{
33+
"targets": "current node"
34+
}
35+
]
36+
],
37+
"plugins": [
38+
["module-resolver", {
39+
"alias": {
40+
"styles": "./src/styles",
41+
"components": "./src/components",
42+
"hooks": "./src/hooks",
43+
"utils": "./src/utils",
44+
"constants": "./src/constants",
45+
"services": "./src/services"
46+
}
47+
}]
48+
]
49+
}
50+
}
51+
}
File renamed without changes.

config/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const env = process.env.APPENV || "dev";
4+
const env = process.env.NODE_ENV || "development";
55

66
// for security reason don't let to require any arbitrary file defined in process.env
7-
if (["prod", "dev"].indexOf(env) < 0) {
8-
return require("./dev");
7+
if (["production", "development"].indexOf(env) < 0) {
8+
return require("./development");
99
}
1010

1111
return require("./" + env);
File renamed without changes.

src/components/Pagination/styles.module.scss

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
.pagination {
44
display: flex;
5-
flex-wrap: wrap;
6-
margin-bottom: -10px;
75

86
.page {
97
padding: 0 10px;
10-
margin: 0 5px 10px;
8+
margin: 0 5px;
119
min-width: 30px;
12-
1310
}
1411

1512
.current {
@@ -20,7 +17,6 @@
2017

2118
.next {
2219
margin-left: 5px;
23-
margin-bottom: 10px;
2420

2521
> svg {
2622
transform: rotate(-90deg);
@@ -33,7 +29,6 @@
3329

3430
.prev {
3531
margin-right: 5px;
36-
margin-bottom: 10px;
3732

3833
> svg {
3934
margin-right: 3px;

src/components/SkillsList/index.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ const SkillsList = ({ requiredSkills, skills, limit = 3 }) => {
101101
<div styleName="skills-section">
102102
<div styleName="skills-title">Required Job Skills</div>
103103
<ul styleName="skills-list">
104-
{!requiredSkills.length && <li>None</li>}
105104
{requiredSkills.map((skill) => (
106105
<li key={skill.id}>
107106
{_.find(skills, { id: skill.id }) ? (

src/components/SkillsList/styles.module.scss

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222

2323
.popover-content {
2424
display: flex;
25-
flex-wrap: wrap;
26-
padding: 4px 24px 24px;
25+
padding: 24px;
2726
}
2827

2928
.skills-section {
30-
margin-top: 20px;
3129
padding-right: 32px;
3230
}
3331

src/utils/format.js

-4
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,5 @@ export const formatDateRange = (startDate, endDate) => {
161161
const startDateStr = startDate ? moment(startDate).format(DAY_FORMAT) : "";
162162
const endDateStr = endDate ? moment(endDate).format(DAY_FORMAT) : "";
163163

164-
if (!startDateStr && !endDateStr) {
165-
return "TBD";
166-
}
167-
168164
return `${startDateStr} - ${endDateStr}`;
169165
};

webpack.config.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
/* global __dirname */
2-
const webpack = require("webpack");
32
const webpackMerge = require("webpack-merge");
43
const singleSpaDefaults = require("webpack-config-single-spa-react");
54
const path = require("path");
65
const autoprefixer = require("autoprefixer");
76

8-
9-
const cssLocalIdent = process.env.APPMODE === "production"
10-
? "[hash:base64:6]"
11-
: "teams_[path][name]___[local]___[hash:base64:6]";
7+
const cssLocalIdent = "teams_[path][name]___[local]___[hash:base64:6]";
128

139
module.exports = (webpackConfigEnv) => {
1410
const defaultConfig = singleSpaDefaults({
@@ -69,10 +65,5 @@ module.exports = (webpackConfigEnv) => {
6965
services: path.resolve(__dirname, "src/services"),
7066
},
7167
},
72-
plugins: [
73-
// ignore moment locales to reduce bundle size by 64kb gzipped
74-
// see solution details https://stackoverflow.com/questions/25384360/how-to-prevent-moment-js-from-loading-locales-with-webpack/25426019#25426019
75-
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
76-
],
7768
});
7869
};

0 commit comments

Comments
 (0)