chore: styling, remove deprecated vite config, possible img on demo fix

This commit is contained in:
David Ralph
2024-10-14 11:59:11 +01:00
parent fe7b5b3586
commit 198918c066
6 changed files with 3962 additions and 4860 deletions

View File

@@ -82,8 +82,7 @@ class Quote extends PureComponent {
this.quote = createRef();
this.quotediv = createRef();
this.quoteauthor = createRef();
this.authorDetails = localStorage.getItem('authorDetails') === 'true' ? true : false;
console.log("authorDetails", this.authorDetails);
this.authorDetails = (localStorage.getItem('authorDetails') === 'true' || true) ? true : false;
}
useFavourite() {

View File

@@ -146,20 +146,20 @@ class QuoteOptions extends PureComponent {
<Action>
<Checkbox
name="authorDetails"
text = {variables.getMessage(`${QUOTE_SECTION}.author_details`)}
text={variables.getMessage(`${QUOTE_SECTION}.author_details`)}
element=".other"
/>
<Checkbox
name="authorLink"
text={variables.getMessage(`${QUOTE_SECTION}.author_link`)}
element=".other"
disabled={localStorage.getItem('authorDetails')==='false'}
disabled={localStorage.getItem('authorDetails' )=== 'false'}
/>
<Checkbox
name="authorImg"
text={variables.getMessage(`${QUOTE_SECTION}.author_img`)}
element=".other"
disabled={localStorage.getItem('authorDetails')==='false'}
disabled={localStorage.getItem('authorDetails') === 'false'}
/>
</Action>
</Row>

View File

@@ -274,5 +274,9 @@
{
"name": "customEvents",
"value": "[{\"id\":\"widgets.greeting.christmas\",\"name\":\"Merry Christmas\",\"month\":12,\"date\":25},{\"id\":\"widgets.greeting.newyear\",\"name\":\"Happy New Year\",\"month\":1,\"date\":1},{\"id\":\"widgets.greeting.halloween\",\"name\":\"Happy Halloween\",\"month\":10,\"date\":31}]"
},
{
"name": "authorDetails",
"value": true
}
]