mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 11:39:36 +02:00
Pushed version 2.2.1
This commit is contained in:
parent
19fb14d553
commit
fac8ef4027
5 changed files with 47 additions and 32 deletions
2
.env
2
.env
|
@ -1,5 +1,5 @@
|
||||||
PORT=5005
|
PORT=5005
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
VERSION=2.2.0
|
VERSION=2.2.1
|
||||||
PASSWORD=flame_password
|
PASSWORD=flame_password
|
||||||
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b
|
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b
|
|
@ -1,5 +1,7 @@
|
||||||
### v2.X.Y (TBA)
|
### v2.2.1 (2022-01-08)
|
||||||
- Local search will now include app descriptions ([#266](https://github.com/pawelmalak/flame/issues/266))
|
- Local search will now include app descriptions ([#266](https://github.com/pawelmalak/flame/issues/266))
|
||||||
|
- Fixed bug with unsupported characters in local search [#279](https://github.com/pawelmalak/flame/issues/279))
|
||||||
|
- Background tasks optimization ([#283](https://github.com/pawelmalak/flame/issues/283))
|
||||||
|
|
||||||
### v2.2.0 (2021-12-17)
|
### v2.2.0 (2021-12-17)
|
||||||
- Added option to set custom description for apps ([#201](https://github.com/pawelmalak/flame/issues/201))
|
- Added option to set custom description for apps ([#201](https://github.com/pawelmalak/flame/issues/201))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
REACT_APP_VERSION=2.2.0
|
REACT_APP_VERSION=2.2.1
|
|
@ -1,15 +1,27 @@
|
||||||
import { Fragment } from 'react';
|
import { Fragment } from 'react';
|
||||||
|
|
||||||
|
// UI
|
||||||
import { Button, SettingsHeadline } from '../../UI';
|
import { Button, SettingsHeadline } from '../../UI';
|
||||||
import classes from './AppDetails.module.css';
|
|
||||||
import { checkVersion } from '../../../utility';
|
|
||||||
import { AuthForm } from './AuthForm/AuthForm';
|
import { AuthForm } from './AuthForm/AuthForm';
|
||||||
|
import classes from './AppDetails.module.css';
|
||||||
|
|
||||||
|
// Store
|
||||||
|
import { useSelector } from 'react-redux';
|
||||||
|
import { State } from '../../../store/reducers';
|
||||||
|
|
||||||
|
// Other
|
||||||
|
import { checkVersion } from '../../../utility';
|
||||||
|
|
||||||
export const AppDetails = (): JSX.Element => {
|
export const AppDetails = (): JSX.Element => {
|
||||||
|
const { isAuthenticated } = useSelector((state: State) => state.auth);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<SettingsHeadline text="Authentication" />
|
<SettingsHeadline text="Authentication" />
|
||||||
<AuthForm />
|
<AuthForm />
|
||||||
|
|
||||||
|
{isAuthenticated && (
|
||||||
|
<Fragment>
|
||||||
<hr className={classes.separator} />
|
<hr className={classes.separator} />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -39,5 +51,7 @@ export const AppDetails = (): JSX.Element => {
|
||||||
<Button click={() => checkVersion(true)}>Check for updates</Button>
|
<Button click={() => checkVersion(true)}>Check for updates</Button>
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
)}
|
||||||
|
</Fragment>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,9 +8,8 @@ const logger = new Logger();
|
||||||
|
|
||||||
module.exports = async function () {
|
module.exports = async function () {
|
||||||
const { WEATHER_API_KEY } = await loadConfig();
|
const { WEATHER_API_KEY } = await loadConfig();
|
||||||
const FEAT_WHEATHER_ENABLED = WEATHER_API_KEY != '';
|
|
||||||
|
|
||||||
if (FEAT_WHEATHER_ENABLED) {
|
if (WEATHER_API_KEY != '') {
|
||||||
// Update weather data every 15 minutes
|
// Update weather data every 15 minutes
|
||||||
const weatherJob = schedule.scheduleJob(
|
const weatherJob = schedule.scheduleJob(
|
||||||
'updateWeather',
|
'updateWeather',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue