From bbb35b236f5832a6736b70484560aa963d43c666 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 24 May 2022 20:13:01 +0200 Subject: [PATCH 01/18] :lipstick: Change the way the footer is displayed --- src/components/layout/Footer.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 11580978109..7a8df4be8f0 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -81,9 +81,6 @@ export function Footer({ links }: FooterCenteredProps) { background: 'none', border: 'none', clear: 'both', - position: 'fixed', - bottom: '0', - left: '0', }} > From 802f7fd6c77a49f34147099fb936556da504cb54 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 24 May 2022 20:14:07 +0200 Subject: [PATCH 02/18] :technologist: Added strings as an option type for modules --- src/components/modules/moduleWrapper.tsx | 44 ++++++++++++++++++++++-- src/components/modules/modules.tsx | 2 +- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/components/modules/moduleWrapper.tsx b/src/components/modules/moduleWrapper.tsx index dada02e2e2d..0afc0dc8504 100644 --- a/src/components/modules/moduleWrapper.tsx +++ b/src/components/modules/moduleWrapper.tsx @@ -1,4 +1,4 @@ -import { Card, Menu, Switch, useMantineTheme } from '@mantine/core'; +import { Button, Card, Group, Menu, Switch, TextInput, useMantineTheme } from '@mantine/core'; import { useConfig } from '../../tools/state'; import { IModule } from './modules'; @@ -19,13 +19,51 @@ export function ModuleWrapper(props: any) { types.forEach((type, index) => { const optionName = `${module.title}.${keys[index]}`; const moduleInConfig = config.modules?.[module.title]; + if (type === 'string') { + items.push( +
{ + e.preventDefault(); + setConfig({ + ...config, + modules: { + ...config.modules, + [module.title]: { + ...config.modules[module.title], + options: { + ...config.modules[module.title].options, + [keys[index]]: { + ...config.modules[module.title].options[keys[index]], + value: (e.target as any)[0].value, + }, + }, + }, + }, + }); + }} + > + + {}} + /> + + + +
+ ); + } // TODO: Add support for other types if (type === 'boolean') { items.push( { @@ -59,7 +97,7 @@ export function ModuleWrapper(props: any) {