Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ec3f540
replace webpack with vite
keithjgrant Nov 16, 2022
aeb6924
wip converting components off mobx
keithjgrant Nov 17, 2022
f24fb45
finish converting off mobx
keithjgrant Nov 18, 2022
32d2351
remove dist folder
aciccarello Nov 24, 2024
a371f1e
WIP retooling
aciccarello Dec 8, 2024
2104c98
remove unused files
aciccarello Dec 9, 2024
1ddfe0d
improve popup height logic
aciccarello Dec 9, 2024
934d152
fix settings saving
aciccarello Dec 9, 2024
4fd99e8
remove dist directory
aciccarello Dec 9, 2024
43cf690
dependency updates
aciccarello Dec 9, 2024
c6535cd
format src
aciccarello Dec 9, 2024
8dde1f3
partial migration to wxt and micropub-helper v2
aciccarello Feb 1, 2025
58c6a5b
fix some of the posting flow
aciccarello Feb 6, 2025
a27360a
fix clearing of selecting entry
aciccarello Feb 20, 2025
51557fb
fix success message and setting form
aciccarello Feb 20, 2025
b04787a
improve context click config
aciccarello Feb 20, 2025
87206ba
add webmention support badge
aciccarello Feb 20, 2025
ed913c0
fix quick replies
aciccarello Feb 20, 2025
d688037
cleanup
aciccarello Feb 20, 2025
f1da12f
use comma separated tags
aciccarello Feb 20, 2025
a1c87db
fix draft saving
aciccarello Feb 20, 2025
831b29a
fix drafts and add clear draft button
aciccarello Feb 20, 2025
b7ca448
remove vite config
aciccarello Feb 20, 2025
8b842cf
fix firefox view
aciccarello Feb 20, 2025
a52d2f7
generate random auth secret
aciccarello Feb 22, 2025
2a87b3d
cleanup browser references
aciccarello Feb 22, 2025
6797793
refactor background and auth scripts
aciccarello Feb 22, 2025
13271d5
fix auth
aciccarello Feb 24, 2025
b7b0215
avoid double auth
aciccarello Feb 24, 2025
b8ac1bf
use constants for action name
aciccarello Feb 24, 2025
fbdf313
rename contexts
aciccarello Feb 24, 2025
e8231af
clean up URL parsing
aciccarello Feb 24, 2025
0c95a52
dev help
aciccarello Feb 24, 2025
57b40e2
update dependencies
aciccarello Feb 25, 2025
d4c410e
fix text input interaction
aciccarello Feb 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix settings saving
  • Loading branch information
aciccarello committed Dec 9, 2024
commit 934d15256819137fae515965345687a7f2f5caa3
8 changes: 3 additions & 5 deletions src/components/settings/EmojiSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ export default function EmojiSettings() {
const settings = useContext(Settings);

const deleteReacji = (index) => {
const reacji = settings.reacji;
const reacji = settings.reacji.value;
const before = reacji.slice(0, index);
const after = reacji.slice(index + 1);
settings.setReacji(before.concat(after));
settings.save();
settings.reacji.value = before.concat(after);
};

const addReacji = () => {
if (value && settings.reacji.indexOf(value) === -1) {
if (value && !settings?.reacji.value?.includes(value)) {
settings.addReacji(value);
settings.save();
setValue("");
}
};
Expand Down
12 changes: 7 additions & 5 deletions src/components/settings/EndpointFields.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useContext } from 'preact/hooks';
import Settings from '../../contexts/Settings';
import { useState, useContext } from "preact/hooks";
import Settings from "../../contexts/Settings";

export default function EndpointFields() {
const [showFields, setShowFields] = useState(false);
Expand All @@ -21,7 +21,9 @@ export default function EndpointFields() {
id="slug"
type="text"
value={settings.slugFieldName}
onChange={(e) => settings.setSlugFieldName(e.target.value)}
onChange={(e) =>
(settings.slugFieldName.value = e.target.value)
}
/>
<div className="settings-form__description">
Choose the name of the field that the slug will be sent in. This
Expand All @@ -35,7 +37,7 @@ export default function EndpointFields() {
type="text"
value={settings.syndicateToFieldName}
onChange={(e) =>
settings.setSyndicateToFieldName(e.target.value)
(settings.syndicateToFieldName.value = e.target.value)
}
/>
<div className="settings-form__description">
Expand All @@ -48,7 +50,7 @@ export default function EndpointFields() {
: null}
<div className="text-right">
<button type="button" onClick={() => setShowFields(!showFields)}>
{showFields ? 'Hide' : 'Show'}
{showFields ? "Hide" : "Show"}
</button>
</div>
</fieldset>
Expand Down