Skip to content

Commit fac8ef4

Browse files
committed
Pushed version 2.2.1
1 parent 19fb14d commit fac8ef4

File tree

5 files changed

+49
-34
lines changed

5 files changed

+49
-34
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PORT=5005
22
NODE_ENV=development
3-
VERSION=2.2.0
3+
VERSION=2.2.1
44
PASSWORD=flame_password
55
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
### v2.X.Y (TBA)
1+
### v2.2.1 (2022-01-08)
22
- Local search will now include app descriptions ([#266](https://github.com/pawelmalak/flame/issues/266))
3+
- Fixed bug with unsupported characters in local search [#279](https://github.com/pawelmalak/flame/issues/279))
4+
- Background tasks optimization ([#283](https://github.com/pawelmalak/flame/issues/283))
35

46
### v2.2.0 (2021-12-17)
57
- Added option to set custom description for apps ([#201](https://github.com/pawelmalak/flame/issues/201))

client/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_VERSION=2.2.0
1+
REACT_APP_VERSION=2.2.1
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,57 @@
11
import { Fragment } from 'react';
2+
3+
// UI
24
import { Button, SettingsHeadline } from '../../UI';
5+
import { AuthForm } from './AuthForm/AuthForm';
36
import classes from './AppDetails.module.css';
7+
8+
// Store
9+
import { useSelector } from 'react-redux';
10+
import { State } from '../../../store/reducers';
11+
12+
// Other
413
import { checkVersion } from '../../../utility';
5-
import { AuthForm } from './AuthForm/AuthForm';
614

715
export const AppDetails = (): JSX.Element => {
16+
const { isAuthenticated } = useSelector((state: State) => state.auth);
17+
818
return (
919
<Fragment>
1020
<SettingsHeadline text="Authentication" />
1121
<AuthForm />
1222

13-
<hr className={classes.separator} />
14-
15-
<div>
16-
<SettingsHeadline text="App version" />
17-
<p className={classes.text}>
18-
<a
19-
href="https://github.com/pawelmalak/flame"
20-
target="_blank"
21-
rel="noreferrer"
22-
>
23-
Flame
24-
</a>{' '}
25-
version {process.env.REACT_APP_VERSION}
26-
</p>
27-
28-
<p className={classes.text}>
29-
See changelog{' '}
30-
<a
31-
href="https://github.com/pawelmalak/flame/blob/master/CHANGELOG.md"
32-
target="_blank"
33-
rel="noreferrer"
34-
>
35-
here
36-
</a>
37-
</p>
38-
39-
<Button click={() => checkVersion(true)}>Check for updates</Button>
40-
</div>
23+
{isAuthenticated && (
24+
<Fragment>
25+
<hr className={classes.separator} />
26+
27+
<div>
28+
<SettingsHeadline text="App version" />
29+
<p className={classes.text}>
30+
<a
31+
href="https://github.com/pawelmalak/flame"
32+
target="_blank"
33+
rel="noreferrer"
34+
>
35+
Flame
36+
</a>{' '}
37+
version {process.env.REACT_APP_VERSION}
38+
</p>
39+
40+
<p className={classes.text}>
41+
See changelog{' '}
42+
<a
43+
href="https://github.com/pawelmalak/flame/blob/master/CHANGELOG.md"
44+
target="_blank"
45+
rel="noreferrer"
46+
>
47+
here
48+
</a>
49+
</p>
50+
51+
<Button click={() => checkVersion(true)}>Check for updates</Button>
52+
</div>
53+
</Fragment>
54+
)}
4155
</Fragment>
4256
);
4357
};

utils/jobs.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ const logger = new Logger();
88

99
module.exports = async function () {
1010
const { WEATHER_API_KEY } = await loadConfig();
11-
const FEAT_WHEATHER_ENABLED = WEATHER_API_KEY != '';
1211

13-
if (FEAT_WHEATHER_ENABLED) {
12+
if (WEATHER_API_KEY != '') {
1413
// Update weather data every 15 minutes
1514
const weatherJob = schedule.scheduleJob(
1615
'updateWeather',

0 commit comments

Comments
 (0)