Skip to content

Commit 367e8f8

Browse files
Feature archive (#21)
1 parent eefc616 commit 367e8f8

File tree

42 files changed

+1028
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1028
-252
lines changed

craco.config.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
module.exports = {
22
plugins: [{ plugin: require('@semantic-ui-react/craco-less') }],
33
webpack: {
4-
configure: (webpackConfig, { env, paths }) => {
5-
return webpackConfig
4+
configure: {
5+
ignoreWarnings: [
6+
function ignoreSourcemapsloaderWarnings(warning) {
7+
return (
8+
warning.module &&
9+
warning.module.resource.includes("node_modules") &&
10+
warning.details &&
11+
warning.details.includes("source-map-loader")
12+
);
13+
},
14+
],
615
}
716
}
817
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "feature-probe-ui",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "FeatureProbe UI/Portal",
55
"license": "Apache-2.0",
66
"keywords": [

src/components/Modal/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ interface IProps {
88
width?: number;
99
open: boolean;
1010
confirmDisabled?: boolean;
11-
handleCancel(e: SyntheticEvent): void;
12-
handleConfirm(e: SyntheticEvent): void;
11+
handleCancel?(e: SyntheticEvent): void;
12+
handleConfirm?(e: SyntheticEvent): void;
1313
children: ReactElement;
1414
footer?: ReactElement | null;
1515
}
@@ -29,7 +29,7 @@ const ConfirmModal = (props: IProps) => {
2929
{ children }
3030
{
3131
(typeof(footer) === 'undefined') ? (
32-
<div className={styles['footer']}>
32+
<div className={styles['footer']} onClick={(e: SyntheticEvent) => { e.stopPropagation(); }}>
3333
<Button size='mini' className={styles['btn']} basic type='reset' onClick={handleCancel}>
3434
<FormattedMessage id='common.cancel.text' />
3535
</Button>

src/components/Rule/constants.tsx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,30 @@ export const getAttrOptions = (intl: IntlShape, type?:string) => {
5656

5757
export const timezoneOptions = (intl: IntlShape) => {
5858
return [
59-
{key: 1, text: intl.formatMessage({id: 'targeting.rule.timezone.zero'}), value: '+00:00'},
60-
{key: 2, text: intl.formatMessage({id: 'targeting.rule.timezone.east.one'}), value: '+01:00'},
61-
{key: 3, text: intl.formatMessage({id: 'targeting.rule.timezone.east.two'}), value: '+02:00'},
62-
{key: 4, text: intl.formatMessage({id: 'targeting.rule.timezone.east.three'}), value: '+03:00'},
63-
{key: 5, text: intl.formatMessage({id: 'targeting.rule.timezone.east.four'}), value: '+04:00'},
64-
{key: 6, text: intl.formatMessage({id: 'targeting.rule.timezone.east.five'}), value: '+05:00'},
65-
{key: 7, text: intl.formatMessage({id: 'targeting.rule.timezone.east.six'}), value: '+06:00'},
66-
{key: 8, text: intl.formatMessage({id: 'targeting.rule.timezone.east.seven'}), value: '+07:00'},
67-
{key: 9, text: intl.formatMessage({id: 'targeting.rule.timezone.east.eight'}), value: '+08:00'},
68-
{key: 10, text: intl.formatMessage({id: 'targeting.rule.timezone.east.nine'}), value: '+09:00'},
69-
{key: 11, text: intl.formatMessage({id: 'targeting.rule.timezone.east.ten'}), value: '+10:00'},
70-
{key: 12, text: intl.formatMessage({id: 'targeting.rule.timezone.east.eleven'}), value: '+11:00'},
71-
{key: 13, text: intl.formatMessage({id: 'targeting.rule.timezone.east.twelve'}), value: '+12:00'},
72-
{key: 14, text: intl.formatMessage({id: 'targeting.rule.timezone.west.twelve'}), value: '-12:00'},
73-
{key: 15, text: intl.formatMessage({id: 'targeting.rule.timezone.west.eleven'}), value: '-11:00'},
74-
{key: 16, text: intl.formatMessage({id: 'targeting.rule.timezone.west.ten'}), value: '-10:00'},
75-
{key: 17, text: intl.formatMessage({id: 'targeting.rule.timezone.west.nine'}), value: '-09:00'},
76-
{key: 18, text: intl.formatMessage({id: 'targeting.rule.timezone.west.eight'}), value: '-08:00'},
77-
{key: 19, text: intl.formatMessage({id: 'targeting.rule.timezone.west.seven'}), value: '-07:00'},
78-
{key: 20, text: intl.formatMessage({id: 'targeting.rule.timezone.west.six'}), value: '-06:00'},
79-
{key: 21, text: intl.formatMessage({id: 'targeting.rule.timezone.west.five'}), value: '-05:00'},
80-
{key: 22, text: intl.formatMessage({id: 'targeting.rule.timezone.west.four'}), value: '-04:00'},
81-
{key: 23, text: intl.formatMessage({id: 'targeting.rule.timezone.west.three'}), value: '-03:00'},
82-
{key: 24, text: intl.formatMessage({id: 'targeting.rule.timezone.west.two'}), value: '-02:00'},
83-
{key: 25, text: intl.formatMessage({id: 'targeting.rule.timezone.west.one'}), value: '-01:00'},
59+
{key: 1, text: 'UTC +0', value: '+00:00'},
60+
{key: 2, text: 'UTC +1', value: '+01:00'},
61+
{key: 3, text: 'UTC +2', value: '+02:00'},
62+
{key: 4, text: 'UTC +3', value: '+03:00'},
63+
{key: 5, text: 'UTC +4', value: '+04:00'},
64+
{key: 6, text: 'UTC +5', value: '+05:00'},
65+
{key: 7, text: 'UTC +6', value: '+06:00'},
66+
{key: 8, text: 'UTC +7', value: '+07:00'},
67+
{key: 9, text: 'UTC +8', value: '+08:00'},
68+
{key: 10, text: 'UTC +9', value: '+09:00'},
69+
{key: 11, text: 'UTC +10', value: '+10:00'},
70+
{key: 12, text: 'UTC +11', value: '+11:00'},
71+
{key: 13, text: 'UTC +12', value: '+12:00'},
72+
{key: 14, text: 'UTC -12', value: '-12:00'},
73+
{key: 15, text: 'UTC -11', value: '-11:00'},
74+
{key: 16, text: 'UTC -10', value: '-10:00'},
75+
{key: 17, text: 'UTC -9', value: '-09:00'},
76+
{key: 18, text: 'UTC -8', value: '-08:00'},
77+
{key: 19, text: 'UTC -7', value: '-07:00'},
78+
{key: 20, text: 'UTC -6', value: '-06:00'},
79+
{key: 21, text: 'UTC -5', value: '-05:00'},
80+
{key: 22, text: 'UTC -4', value: '-04:00'},
81+
{key: 23, text: 'UTC -3', value: '-03:00'},
82+
{key: 24, text: 'UTC -2', value: '-02:00'},
83+
{key: 25, text: 'UTC -1', value: '-01:00'},
8484
]
8585
};

src/constants/api/toggle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ let origin = '/api';
33
const ToggleURI = {
44
getToggleListURI: `${origin}/projects/:projectKey/toggles`,
55
getToggleInfoURI: `${origin}/projects/:projectKey/toggles/:toggleKey`,
6+
environmentURI: `${origin}/projects/:projectKey/environments`,
67
targetingURI: `${origin}/projects/:projectKey/environments/:environmentKey/toggles/:toggleKey/targeting`,
78
createToggleURI: `${origin}/projects/:projectKey/toggles`,
89
editToggleURI: `${origin}/projects/:projectKey/toggles/:toggleKey`,

src/constants/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const OWNER = ['OWNER', 'ADMIN'];
2+
export const WRITER = 'WRITER';

src/iconfont/iconfont.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@font-face {
22
font-family: "iconfont"; /* Project id 3325204 */
3-
src: url('iconfont.woff2?t=1659607107780') format('woff2'),
4-
url('iconfont.woff?t=1659607107780') format('woff'),
5-
url('iconfont.ttf?t=1659607107780') format('truetype');
3+
src: url('iconfont.woff2?t=1660890049058') format('woff2'),
4+
url('iconfont.woff?t=1660890049058') format('woff'),
5+
url('iconfont.ttf?t=1660890049058') format('truetype');
66
}
77

88
.iconfont {
@@ -13,6 +13,14 @@
1313
-moz-osx-font-smoothing: grayscale;
1414
}
1515

16+
.icon-back:before {
17+
content: "\e770";
18+
}
19+
20+
.icon-menu:before {
21+
content: "\e76a";
22+
}
23+
1624
.icon-email:before {
1725
content: "\e766";
1826
}

src/iconfont/iconfont.ttf

240 Bytes
Binary file not shown.

src/iconfont/iconfont.woff

116 Bytes
Binary file not shown.

src/iconfont/iconfont.woff2

68 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)