Merge pull request #312 from pawelmalak/feature

Version 2.2.2
This commit is contained in:
pawelmalak 2022-03-21 15:05:07 +01:00 committed by GitHub
commit baac78021a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 224 additions and 195 deletions

2
.dev/build_latest.sh Normal file
View file

@ -0,0 +1,2 @@
docker build -t pawelmalak/flame -t "pawelmalak/flame:$1" -f .docker/Dockerfile "$2" \
&& docker push pawelmalak/flame && docker push "pawelmalak/flame:$1"

6
.dev/build_multiarch.sh Normal file
View file

@ -0,0 +1,6 @@
docker buildx build \
--platform linux/arm/v7,linux/arm64,linux/amd64 \
-f .docker/Dockerfile.multiarch \
-t pawelmalak/flame:multiarch \
-t "pawelmalak/flame:multiarch$1" \
--push "$2"

View file

@ -27,4 +27,4 @@ EXPOSE 5005
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PASSWORD=flame_password ENV PASSWORD=flame_password
CMD ["node", "server.js"] CMD ["sh", "-c", "chown -R node /app/data && node server.js"]

View file

@ -28,4 +28,4 @@ EXPOSE 5005
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PASSWORD=flame_password ENV PASSWORD=flame_password
CMD ["node", "server.js"] CMD ["sh", "-c", "chown -R node /app/data && node server.js"]

2
.env
View file

@ -1,5 +1,5 @@
PORT=5005 PORT=5005
NODE_ENV=development NODE_ENV=development
VERSION=2.2.1 VERSION=2.2.2
PASSWORD=flame_password PASSWORD=flame_password
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b

1
.gitignore vendored
View file

@ -2,4 +2,3 @@ node_modules
data data
public public
!client/public !client/public
build.sh

View file

@ -1,3 +1,10 @@
### v2.2.2 (2022-03-21)
- Added option to get user location directly from the app ([#287](https://github.com/pawelmalak/flame/issues/287))
- Fixed bug with local search not working when using prefix ([#289](https://github.com/pawelmalak/flame/issues/289))
- Fixed bug with app description not updating when using custom icon ([#310](https://github.com/pawelmalak/flame/issues/310))
- Changed permissions to some files and directories created by Flame
- Changed some of the settings tabs
### v2.2.1 (2022-01-08) ### 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)) - Fixed bug with unsupported characters in local search [#279](https://github.com/pawelmalak/flame/issues/279))

View file

@ -1 +1 @@
REACT_APP_VERSION=2.2.1 REACT_APP_VERSION=2.2.2

View file

@ -64,7 +64,9 @@ export const AppForm = ({ modalHandler }: Props): JSX.Element => {
if (customIcon) { if (customIcon) {
data.append('icon', customIcon); data.append('icon', customIcon);
} }
data.append('name', formData.name); data.append('name', formData.name);
data.append('description', formData.description);
data.append('url', formData.url); data.append('url', formData.url);
data.append('isPublic', `${formData.isPublic ? 1 : 0}`); data.append('isPublic', `${formData.isPublic ? 1 : 0}`);

View file

@ -94,7 +94,7 @@ export const AppTable = (props: Props): JSX.Element => {
) : ( ) : (
<p> <p>
Custom order is disabled. You can change it in the{' '} Custom order is disabled. You can change it in the{' '}
<Link to="/settings/interface">settings</Link> <Link to="/settings/general">settings</Link>
</p> </p>
)} )}
</Message> </Message>

View file

@ -102,7 +102,7 @@ export const CategoryTable = ({ openFormForUpdating }: Props): JSX.Element => {
) : ( ) : (
<p> <p>
Custom order is disabled. You can change it in the{' '} Custom order is disabled. You can change it in the{' '}
<Link to="/settings/interface">settings</Link> <Link to="/settings/general">settings</Link>
</p> </p>
)} )}
</Message> </Message>

View file

@ -69,8 +69,7 @@ export const SearchBar = (props: Props): JSX.Element => {
); );
if (isLocal) { if (isLocal) {
// no additional encoding required for local search setLocalSearch(search);
setLocalSearch(inputRef.current.value);
} }
if (e.code === 'Enter' || e.code === 'NumpadEnter') { if (e.code === 'Enter' || e.code === 'NumpadEnter') {

View file

@ -3,7 +3,7 @@ import { useState, useEffect, FormEvent, ChangeEvent, Fragment } from 'react';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
// Typescript // Typescript
import { Query, SearchForm } from '../../../interfaces'; import { Query, GeneralForm } from '../../../interfaces';
// Components // Components
import { CustomQueries } from './CustomQueries/CustomQueries'; import { CustomQueries } from './CustomQueries/CustomQueries';
@ -12,7 +12,7 @@ import { CustomQueries } from './CustomQueries/CustomQueries';
import { Button, SettingsHeadline, InputGroup } from '../../UI'; import { Button, SettingsHeadline, InputGroup } from '../../UI';
// Utils // Utils
import { inputHandler, searchSettingsTemplate } from '../../../utility'; import { inputHandler, generalSettingsTemplate } from '../../../utility';
// Data // Data
import { queries } from '../../../utility/searchQueries.json'; import { queries } from '../../../utility/searchQueries.json';
@ -22,16 +22,20 @@ import { State } from '../../../store/reducers';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { actionCreators } from '../../../store'; import { actionCreators } from '../../../store';
export const SearchSettings = (): JSX.Element => { export const GeneralSettings = (): JSX.Element => {
const { loading, customQueries, config } = useSelector( const {
(state: State) => state.config config: { loading, customQueries, config },
); bookmarks: { categories },
} = useSelector((state: State) => state);
const dispatch = useDispatch(); const dispatch = useDispatch();
const { updateConfig } = bindActionCreators(actionCreators, dispatch); const { updateConfig, sortApps, sortCategories, sortBookmarks } =
bindActionCreators(actionCreators, dispatch);
// Initial state // Initial state
const [formData, setFormData] = useState<SearchForm>(searchSettingsTemplate); const [formData, setFormData] = useState<GeneralForm>(
generalSettingsTemplate
);
// Get config // Get config
useEffect(() => { useEffect(() => {
@ -46,6 +50,16 @@ export const SearchSettings = (): JSX.Element => {
// Save settings // Save settings
await updateConfig(formData); await updateConfig(formData);
// Sort entities with new settings
if (formData.useOrdering !== config.useOrdering) {
sortApps();
sortCategories();
for (let { id } of categories) {
sortBookmarks(id);
}
}
}; };
// Input handler // Input handler
@ -53,7 +67,7 @@ export const SearchSettings = (): JSX.Element => {
e: ChangeEvent<HTMLInputElement | HTMLSelectElement>, e: ChangeEvent<HTMLInputElement | HTMLSelectElement>,
options?: { isNumber?: boolean; isBool?: boolean } options?: { isNumber?: boolean; isBool?: boolean }
) => { ) => {
inputHandler<SearchForm>({ inputHandler<GeneralForm>({
e, e,
options, options,
setStateHandler: setFormData, setStateHandler: setFormData,
@ -63,12 +77,95 @@ export const SearchSettings = (): JSX.Element => {
return ( return (
<Fragment> <Fragment>
{/* GENERAL SETTINGS */}
<form <form
onSubmit={(e) => formSubmitHandler(e)} onSubmit={(e) => formSubmitHandler(e)}
style={{ marginBottom: '30px' }} style={{ marginBottom: '30px' }}
> >
{/* === GENERAL OPTIONS === */}
<SettingsHeadline text="General" /> <SettingsHeadline text="General" />
{/* SORT TYPE */}
<InputGroup>
<label htmlFor="useOrdering">Sorting type</label>
<select
id="useOrdering"
name="useOrdering"
value={formData.useOrdering}
onChange={(e) => inputChangeHandler(e)}
>
<option value="createdAt">By creation date</option>
<option value="name">Alphabetical order</option>
<option value="orderId">Custom order</option>
</select>
</InputGroup>
{/* === APPS OPTIONS === */}
<SettingsHeadline text="Apps" />
{/* PIN APPS */}
<InputGroup>
<label htmlFor="pinAppsByDefault">
Pin new applications by default
</label>
<select
id="pinAppsByDefault"
name="pinAppsByDefault"
value={formData.pinAppsByDefault ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* APPS OPPENING */}
<InputGroup>
<label htmlFor="appsSameTab">Open applications in the same tab</label>
<select
id="appsSameTab"
name="appsSameTab"
value={formData.appsSameTab ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* === BOOKMARKS OPTIONS === */}
<SettingsHeadline text="Bookmarks" />
{/* PIN CATEGORIES */}
<InputGroup>
<label htmlFor="pinCategoriesByDefault">
Pin new categories by default
</label>
<select
id="pinCategoriesByDefault"
name="pinCategoriesByDefault"
value={formData.pinCategoriesByDefault ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* BOOKMARKS OPPENING */}
<InputGroup>
<label htmlFor="bookmarksSameTab">
Open bookmarks in the same tab
</label>
<select
id="bookmarksSameTab"
name="bookmarksSameTab"
value={formData.bookmarksSameTab ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* SEARCH SETTINGS */}
<SettingsHeadline text="Search" />
<InputGroup> <InputGroup>
<label htmlFor="defaultSearchProvider">Default search provider</label> <label htmlFor="defaultSearchProvider">Default search provider</label>
<select <select
@ -104,32 +201,6 @@ export const SearchSettings = (): JSX.Element => {
</select> </select>
</InputGroup> </InputGroup>
<InputGroup>
<label htmlFor="hideSearch">Hide search bar</label>
<select
id="hideSearch"
name="hideSearch"
value={formData.hideSearch ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
<InputGroup>
<label htmlFor="disableAutofocus">Disable search bar autofocus</label>
<select
id="disableAutofocus"
name="disableAutofocus"
value={formData.disableAutofocus ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
<Button>Save changes</Button> <Button>Save changes</Button>
</form> </form>

View file

@ -16,7 +16,7 @@ import { WeatherSettings } from './WeatherSettings/WeatherSettings';
import { UISettings } from './UISettings/UISettings'; import { UISettings } from './UISettings/UISettings';
import { AppDetails } from './AppDetails/AppDetails'; import { AppDetails } from './AppDetails/AppDetails';
import { StyleSettings } from './StyleSettings/StyleSettings'; import { StyleSettings } from './StyleSettings/StyleSettings';
import { SearchSettings } from './SearchSettings/SearchSettings'; import { GeneralSettings } from './GeneralSettings/GeneralSettings';
import { DockerSettings } from './DockerSettings/DockerSettings'; import { DockerSettings } from './DockerSettings/DockerSettings';
import { ProtectedRoute } from '../Routing/ProtectedRoute'; import { ProtectedRoute } from '../Routing/ProtectedRoute';
@ -59,8 +59,8 @@ export const Settings = (): JSX.Element => {
component={WeatherSettings} component={WeatherSettings}
/> />
<ProtectedRoute <ProtectedRoute
path="/settings/search" path="/settings/general"
component={SearchSettings} component={GeneralSettings}
/> />
<ProtectedRoute path="/settings/interface" component={UISettings} /> <ProtectedRoute path="/settings/interface" component={UISettings} />
<ProtectedRoute <ProtectedRoute

View file

@ -7,28 +7,22 @@ import { bindActionCreators } from 'redux';
import { actionCreators } from '../../../store'; import { actionCreators } from '../../../store';
// Typescript // Typescript
import { OtherSettingsForm } from '../../../interfaces'; import { UISettingsForm } from '../../../interfaces';
// UI // UI
import { InputGroup, Button, SettingsHeadline } from '../../UI'; import { InputGroup, Button, SettingsHeadline } from '../../UI';
// Utils // Utils
import { otherSettingsTemplate, inputHandler } from '../../../utility'; import { uiSettingsTemplate, inputHandler } from '../../../utility';
export const UISettings = (): JSX.Element => { export const UISettings = (): JSX.Element => {
const { const { loading, config } = useSelector((state: State) => state.config);
config: { loading, config },
bookmarks: { categories },
} = useSelector((state: State) => state);
const dispatch = useDispatch(); const dispatch = useDispatch();
const { updateConfig, sortApps, sortCategories, sortBookmarks } = const { updateConfig } = bindActionCreators(actionCreators, dispatch);
bindActionCreators(actionCreators, dispatch);
// Initial state // Initial state
const [formData, setFormData] = useState<OtherSettingsForm>( const [formData, setFormData] = useState<UISettingsForm>(uiSettingsTemplate);
otherSettingsTemplate
);
// Get config // Get config
useEffect(() => { useEffect(() => {
@ -46,16 +40,6 @@ export const UISettings = (): JSX.Element => {
// Update local page title // Update local page title
document.title = formData.customTitle; document.title = formData.customTitle;
// Sort entities with new settings
if (formData.useOrdering !== config.useOrdering) {
sortApps();
sortCategories();
for (let { id } of categories) {
sortBookmarks(id);
}
}
}; };
// Input handler // Input handler
@ -63,7 +47,7 @@ export const UISettings = (): JSX.Element => {
e: ChangeEvent<HTMLInputElement | HTMLSelectElement>, e: ChangeEvent<HTMLInputElement | HTMLSelectElement>,
options?: { isNumber?: boolean; isBool?: boolean } options?: { isNumber?: boolean; isBool?: boolean }
) => { ) => {
inputHandler<OtherSettingsForm>({ inputHandler<UISettingsForm>({
e, e,
options, options,
setStateHandler: setFormData, setStateHandler: setFormData,
@ -88,6 +72,36 @@ export const UISettings = (): JSX.Element => {
/> />
</InputGroup> </InputGroup>
{/* === SEARCH OPTIONS === */}
<SettingsHeadline text="Search" />
{/* HIDE SEARCHBAR */}
<InputGroup>
<label htmlFor="hideSearch">Hide search bar</label>
<select
id="hideSearch"
name="hideSearch"
value={formData.hideSearch ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* AUTOFOCUS SEARCHBAR */}
<InputGroup>
<label htmlFor="disableAutofocus">Disable search bar autofocus</label>
<select
id="disableAutofocus"
name="disableAutofocus"
value={formData.disableAutofocus ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* === HEADER OPTIONS === */} {/* === HEADER OPTIONS === */}
<SettingsHeadline text="Header" /> <SettingsHeadline text="Header" />
{/* HIDE HEADER */} {/* HIDE HEADER */}
@ -160,8 +174,8 @@ export const UISettings = (): JSX.Element => {
onChange={(e) => inputChangeHandler(e)} onChange={(e) => inputChangeHandler(e)}
/> />
<span> <span>
Greetings must be separated with semicolon. Only 4 messages can be Greetings must be separated with semicolon. All 4 messages must be
used filled, even if they are the same
</span> </span>
</InputGroup> </InputGroup>
@ -193,85 +207,8 @@ export const UISettings = (): JSX.Element => {
<span>Names must be separated with semicolon</span> <span>Names must be separated with semicolon</span>
</InputGroup> </InputGroup>
{/* === BEAHVIOR OPTIONS === */} {/* === SECTIONS OPTIONS === */}
<SettingsHeadline text="App Behavior" /> <SettingsHeadline text="Sections" />
{/* PIN APPS */}
<InputGroup>
<label htmlFor="pinAppsByDefault">
Pin new applications by default
</label>
<select
id="pinAppsByDefault"
name="pinAppsByDefault"
value={formData.pinAppsByDefault ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* PIN CATEGORIES */}
<InputGroup>
<label htmlFor="pinCategoriesByDefault">
Pin new categories by default
</label>
<select
id="pinCategoriesByDefault"
name="pinCategoriesByDefault"
value={formData.pinCategoriesByDefault ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* SORT TYPE */}
<InputGroup>
<label htmlFor="useOrdering">Sorting type</label>
<select
id="useOrdering"
name="useOrdering"
value={formData.useOrdering}
onChange={(e) => inputChangeHandler(e)}
>
<option value="createdAt">By creation date</option>
<option value="name">Alphabetical order</option>
<option value="orderId">Custom order</option>
</select>
</InputGroup>
{/* APPS OPPENING */}
<InputGroup>
<label htmlFor="appsSameTab">Open applications in the same tab</label>
<select
id="appsSameTab"
name="appsSameTab"
value={formData.appsSameTab ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* BOOKMARKS OPPENING */}
<InputGroup>
<label htmlFor="bookmarksSameTab">Open bookmarks in the same tab</label>
<select
id="bookmarksSameTab"
name="bookmarksSameTab"
value={formData.bookmarksSameTab ? 1 : 0}
onChange={(e) => inputChangeHandler(e, { isBool: true })}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
{/* === MODULES OPTIONS === */}
<SettingsHeadline text="Modules" />
{/* HIDE APPS */} {/* HIDE APPS */}
<InputGroup> <InputGroup>
<label htmlFor="hideApps">Hide applications</label> <label htmlFor="hideApps">Hide applications</label>

View file

@ -82,6 +82,19 @@ export const WeatherSettings = (): JSX.Element => {
}); });
}; };
// Get user location
const getLocation = () => {
window.navigator.geolocation.getCurrentPosition(
({ coords: { latitude, longitude } }) => {
setFormData({
...formData,
lat: latitude,
long: longitude,
});
}
);
};
return ( return (
<form onSubmit={(e) => formSubmitHandler(e)}> <form onSubmit={(e) => formSubmitHandler(e)}>
<SettingsHeadline text="API" /> <SettingsHeadline text="API" />
@ -120,15 +133,8 @@ export const WeatherSettings = (): JSX.Element => {
step="any" step="any"
lang="en-150" lang="en-150"
/> />
<span> <span onClick={getLocation}>
You can use <a href="#">Click to get current location</a>
<a
href="https://www.latlong.net/convert-address-to-lat-long.html"
target="blank"
>
{' '}
latlong.net
</a>
</span> </span>
</InputGroup> </InputGroup>

View file

@ -6,13 +6,8 @@
"authRequired": false "authRequired": false
}, },
{ {
"name": "Weather", "name": "General",
"dest": "/settings/weather", "dest": "/settings/general",
"authRequired": true
},
{
"name": "Search",
"dest": "/settings/search",
"authRequired": true "authRequired": true
}, },
{ {
@ -20,6 +15,11 @@
"dest": "/settings/interface", "dest": "/settings/interface",
"authRequired": true "authRequired": true
}, },
{
"name": "Weather",
"dest": "/settings/weather",
"authRequired": true
},
{ {
"name": "Docker", "name": "Docker",
"dest": "/settings/docker", "dest": "/settings/docker",

View file

@ -23,7 +23,7 @@
.InputGroup span { .InputGroup span {
font-size: 12px; font-size: 12px;
color: var(--color-primary) color: var(--color-primary);
} }
.InputGroup span a { .InputGroup span a {

View file

@ -8,29 +8,29 @@ export interface WeatherForm {
weatherData: WeatherData; weatherData: WeatherData;
} }
export interface SearchForm { export interface GeneralForm {
hideSearch: boolean;
defaultSearchProvider: string; defaultSearchProvider: string;
searchSameTab: boolean; searchSameTab: boolean;
disableAutofocus: boolean;
}
export interface OtherSettingsForm {
customTitle: string;
pinAppsByDefault: boolean; pinAppsByDefault: boolean;
pinCategoriesByDefault: boolean; pinCategoriesByDefault: boolean;
hideHeader: boolean;
hideApps: boolean;
hideCategories: boolean;
useOrdering: string; useOrdering: string;
appsSameTab: boolean; appsSameTab: boolean;
bookmarksSameTab: boolean; bookmarksSameTab: boolean;
}
export interface UISettingsForm {
customTitle: string;
hideHeader: boolean;
hideApps: boolean;
hideCategories: boolean;
useAmericanDate: boolean; useAmericanDate: boolean;
greetingsSchema: string; greetingsSchema: string;
daySchema: string; daySchema: string;
monthSchema: string; monthSchema: string;
showTime: boolean; showTime: boolean;
hideDate: boolean; hideDate: boolean;
hideSearch: boolean;
disableAutofocus: boolean;
} }
export interface DockerSettingsForm { export interface DockerSettingsForm {

View file

@ -1,14 +1,14 @@
import { import {
DockerSettingsForm, DockerSettingsForm,
OtherSettingsForm, UISettingsForm,
SearchForm, GeneralForm,
ThemeSettingsForm, ThemeSettingsForm,
WeatherForm, WeatherForm,
} from '../interfaces'; } from '../interfaces';
export type ConfigFormData = export type ConfigFormData =
| WeatherForm | WeatherForm
| SearchForm | GeneralForm
| DockerSettingsForm | DockerSettingsForm
| OtherSettingsForm | UISettingsForm
| ThemeSettingsForm; | ThemeSettingsForm;

View file

@ -1,21 +1,16 @@
import { import {
DockerSettingsForm, DockerSettingsForm,
OtherSettingsForm, UISettingsForm,
SearchForm, GeneralForm,
ThemeSettingsForm, ThemeSettingsForm,
WeatherForm, WeatherForm,
} from '../../interfaces'; } from '../../interfaces';
export const otherSettingsTemplate: OtherSettingsForm = { export const uiSettingsTemplate: UISettingsForm = {
customTitle: document.title, customTitle: document.title,
pinAppsByDefault: true,
pinCategoriesByDefault: true,
hideHeader: false, hideHeader: false,
hideApps: false, hideApps: false,
hideCategories: false, hideCategories: false,
useOrdering: 'createdAt',
appsSameTab: false,
bookmarksSameTab: false,
useAmericanDate: false, useAmericanDate: false,
greetingsSchema: 'Good evening!;Good afternoon!;Good morning!;Good night!', greetingsSchema: 'Good evening!;Good afternoon!;Good morning!;Good night!',
daySchema: 'Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday', daySchema: 'Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday',
@ -23,6 +18,8 @@ export const otherSettingsTemplate: OtherSettingsForm = {
'January;February;March;April;May;June;July;August;September;October;November;December', 'January;February;March;April;May;June;July;August;September;October;November;December',
showTime: false, showTime: false,
hideDate: false, hideDate: false,
hideSearch: false,
disableAutofocus: false,
}; };
export const weatherSettingsTemplate: WeatherForm = { export const weatherSettingsTemplate: WeatherForm = {
@ -33,11 +30,14 @@ export const weatherSettingsTemplate: WeatherForm = {
weatherData: 'cloud', weatherData: 'cloud',
}; };
export const searchSettingsTemplate: SearchForm = { export const generalSettingsTemplate: GeneralForm = {
hideSearch: false,
searchSameTab: false, searchSameTab: false,
defaultSearchProvider: 'l', defaultSearchProvider: 'l',
disableAutofocus: false, pinAppsByDefault: true,
pinCategoriesByDefault: true,
useOrdering: 'createdAt',
appsSameTab: false,
bookmarksSameTab: false,
}; };
export const dockerSettingsTemplate: DockerSettingsForm = { export const dockerSettingsTemplate: DockerSettingsForm = {