Remove JSON and add 🍪 Tryconfig save cookies

This commit is contained in:
Aj - Thomas
2022-05-12 21:57:01 +02:00
parent 3ce9c98e03
commit 98e4da5a3b
4 changed files with 2 additions and 20 deletions

View File

@@ -2,7 +2,7 @@
"name": "default",
"services": [
{
"type": "Other hello",
"type": "Other",
"name": "example",
"icon": "https://c.tenor.com/o656qFKDzeUAAAAC/rick-astley-never-gonna-give-you-up.gif",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

View File

@@ -1,16 +0,0 @@
{
"name": "low",
"services": [
{
"type": "I am ",
"name": "example",
"icon": "https://c.tenor.com/o656qFKDzeUAAAAC/rick-astley-never-gonna-give-you-up.gif",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
],
"settings": {
"searchBar": true,
"searchUrl": "https://www.google.com/search?q=",
"enabledModules": []
}
}

View File

@@ -1,3 +0,0 @@
{
"true": ""
}

View File

@@ -79,6 +79,7 @@ export default function TryConfig(props: any) {
label="Config loader"
onChange={(e) => {
loadConfig(e ?? 'default');
setCookies('config-name', e ?? 'default', { maxAge: 60 * 60 * 24 * 30 });
}}
data={
// If config list is empty, return the current config