Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Settings)!: implement array types #3121

Open
wants to merge 97 commits into
base: dev
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
63eb635
bleh
EepyElvyra Jan 3, 2025
8261629
make textreplace work
EepyElvyra Jan 3, 2025
4f2a87a
add lists to plugin modals (super shitty)
EepyElvyra Jan 3, 2025
83c0290
stuff
EepyElvyra Jan 3, 2025
740780f
renames
EepyElvyra Jan 3, 2025
1c9ed9b
lint
EepyElvyra Jan 3, 2025
8197966
lint
EepyElvyra Jan 3, 2025
abdfea1
rename
EepyElvyra Jan 3, 2025
ab2c9c5
idek fixes or sum
EepyElvyra Jan 3, 2025
2a5d84d
guhhh
EepyElvyra Jan 3, 2025
716b759
update plugins
EepyElvyra Jan 3, 2025
c302b3c
fixes
EepyElvyra Jan 3, 2025
3c10755
remove stuff
EepyElvyra Jan 3, 2025
a314230
Guhh nobody saw this
EepyElvyra Jan 3, 2025
5ae2d03
Don't clear input on error
EepyElvyra Jan 3, 2025
2407cbe
Merge remote-tracking branch 'head/dev' into feat/api/SettingsLists
EepyElvyra Jan 4, 2025
76ff7ed
Merge remote-tracking branch 'refs/remotes/origin/feat/api/SettingsLi…
EepyElvyra Jan 4, 2025
b5c0412
change to javadoc
EepyElvyra Jan 4, 2025
8495294
rework UI
EepyElvyra Jan 4, 2025
202cda9
remove comment
EepyElvyra Jan 4, 2025
148e057
remove unused var
EepyElvyra Jan 4, 2025
1553751
ensure value gets updated correctly
EepyElvyra Jan 4, 2025
f36e5a3
do it nicer
EepyElvyra Jan 4, 2025
60219b3
add usermention component for dms
EepyElvyra Jan 4, 2025
334678d
improve buttons
EepyElvyra Jan 4, 2025
f82cb51
fix
EepyElvyra Jan 4, 2025
7c729de
make searching from modal work
EepyElvyra Jan 5, 2025
5e616fc
fix up some stuff
EepyElvyra Jan 5, 2025
ff95a51
update pindms
EepyElvyra Jan 5, 2025
e08cfc5
fix names & give arrays a default value
EepyElvyra Jan 5, 2025
c3a51cc
fix names & give arrays a default value
EepyElvyra Jan 5, 2025
cfd2969
Merge remote-tracking branch 'origin/feat/api/SettingsLists' into fea…
EepyElvyra Jan 5, 2025
3d444c9
fix name
EepyElvyra Jan 5, 2025
01b9be6
thimgs
EepyElvyra Jan 6, 2025
3db9a00
change a bit more
EepyElvyra Jan 6, 2025
8af0bd5
flip buttons around
EepyElvyra Jan 6, 2025
b04d43d
port console janitor and other stuff
EepyElvyra Jan 9, 2025
9ccdaf4
Merge branch 'refs/heads/dev' into feat/api/SettingsLists
EepyElvyra Jan 9, 2025
b166668
blep
EepyElvyra Jan 10, 2025
1185cb4
Merge branch 'refs/heads/dev' into feat/api/SettingsLists
EepyElvyra Jan 10, 2025
900cd46
it works omg
EepyElvyra Jan 10, 2025
ebd6a2b
remove comments and fix scrolling
EepyElvyra Jan 10, 2025
231d315
add types
EepyElvyra Jan 11, 2025
191b637
add guilds
EepyElvyra Jan 11, 2025
2d09dda
fix no results display
EepyElvyra Jan 11, 2025
567127f
remove comments guh
EepyElvyra Jan 11, 2025
c141b8e
fixes
EepyElvyra Jan 11, 2025
14fe735
Ensure settings get written for message tags
EepyElvyra Jan 11, 2025
6166a8e
fix me being silly with messagetags
EepyElvyra Jan 13, 2025
f5e455e
implement a better way to convert string to array
EepyElvyra Jan 13, 2025
cdeff6a
Merge remote-tracking branch 'origin/feat/api/SettingsLists' into fea…
EepyElvyra Jan 13, 2025
56ed1e7
Merge remote-tracking branch 'head/dev' into feat/api/SettingsLists
EepyElvyra Jan 13, 2025
8d9e9c4
dispatch onchange when checkbox is clicked
EepyElvyra Jan 13, 2025
e6188b7
fix textreplace migration
EepyElvyra Jan 14, 2025
9205b5d
improve styles
EepyElvyra Jan 14, 2025
a62788c
im so tupid sometimes
EepyElvyra Jan 16, 2025
fcdfd07
convert noreplymention setting
EepyElvyra Jan 16, 2025
25dd64d
more slight improvements
EepyElvyra Jan 16, 2025
0a96e1a
remove useless code
EepyElvyra Jan 16, 2025
6ddf203
revert the changes that migrate datastore to array settings
EepyElvyra Jan 19, 2025
bc843c3
revert the changes that migrate datastore to array settings v2
EepyElvyra Jan 19, 2025
de2f1d5
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 23, 2025
9cee56e
minor fixes
EepyElvyra Jan 23, 2025
e19937d
ImageZoom: Fix incorrectly adding context menu in some places (#3150)
sadan4 Jan 25, 2025
b44e27d
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 25, 2025
5508d89
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 25, 2025
e8be962
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 26, 2025
d66a69e
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 27, 2025
ccd42a9
Idk tbh
EepyElvyra Jan 27, 2025
42afb36
Simplify conditional
EepyElvyra Jan 28, 2025
5025aa5
Don't Code on your phone kids
EepyElvyra Jan 28, 2025
719ea81
remove "React."
EepyElvyra Jan 28, 2025
916d827
why was that there lmao
EepyElvyra Jan 28, 2025
bc4ed12
minor fixes
EepyElvyra Jan 28, 2025
75bb807
oop
EepyElvyra Jan 28, 2025
8deb3cd
oop x2
EepyElvyra Jan 28, 2025
d34793a
make it fancier
EepyElvyra Jan 28, 2025
26a3e99
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Jan 29, 2025
55a5148
Merge remote-tracking branch 'head/dev' into feat/api/SettingsLists
EepyElvyra Feb 3, 2025
5b52243
fix breakages by latest discord update
EepyElvyra Feb 3, 2025
a3ee078
guh
EepyElvyra Feb 4, 2025
b125115
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Feb 4, 2025
f590766
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Feb 5, 2025
569d12f
Merge remote-tracking branch 'origin/feat/api/SettingsLists' into fea…
EepyElvyra Feb 5, 2025
f0bf8ab
minor improvements and fixes for plugin migration
EepyElvyra Feb 5, 2025
fa47835
add todo comment for removal of migration code
EepyElvyra Feb 5, 2025
b64523c
imporve comments
EepyElvyra Feb 5, 2025
7b50083
add isValid to arrays and fix types
EepyElvyra Feb 5, 2025
64a657b
simplify conditionals
EepyElvyra Feb 5, 2025
3766cc8
guh
EepyElvyra Feb 5, 2025
36c8171
catch manual edits of settings without a reload when opening settings
EepyElvyra Feb 5, 2025
25a1fd1
Fix return type
EepyElvyra Feb 5, 2025
a3f6018
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Feb 6, 2025
6156828
wrap functions in errorboundary
EepyElvyra Feb 6, 2025
2018337
fix silly crash
EepyElvyra Feb 6, 2025
78d47a1
Merge branch 'dev' into feat/api/SettingsLists
EepyElvyra Feb 9, 2025
8744225
Guh?
EepyElvyra Feb 9, 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
7 changes: 6 additions & 1 deletion src/plugins/imageZoom/index.tsx
Original file line number Diff line number Diff line change
@@ -81,7 +81,12 @@ export const settings = definePluginSettings({
});


const imageContextMenuPatch: NavContextMenuPatchCallback = children => {
const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => {
// Discord re-uses the image context menu for links to for the copy and open buttons
if ("href" in props) return;
// emojis in user statuses
if (props?.target?.classList != null && [...props.target.classList].some(x => x === "emoji")) return;

const { square, nearestNeighbour } = settings.use(["square", "nearestNeighbour"]);

children.push(
2 changes: 1 addition & 1 deletion src/plugins/messageLogger/index.tsx
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ const settings = definePluginSettings({
},
collapseDeleted: {
type: OptionType.BOOLEAN,
restartNeeded: true,
description: "Whether to collapse deleted messages, similar to blocked messages",
default: false
},
@@ -248,7 +249,6 @@ export default definePlugin({
content: oldMessage.content
};
},

settings: settings,

handleDelete(cache: any, data: { ids: string[], id: string; mlDeleted?: boolean; }, isBulk: boolean) {