Skip to content

Commit 470ec09

Browse files
committed
antied update to 1.4.0
1 parent 29efd2c commit 470ec09

30 files changed

Lines changed: 2197 additions & 101 deletions

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ module.exports = {
2828
"react"
2929
],
3030
"rules": {
31+
"react/prop-types": "off",
32+
"react/display-name": "off",
33+
"react/react-in-jsx-scope": "off",
34+
"no-unused-vars": "off",
3135
}
3236
}

angel/antied/Settings.jsx

Lines changed: 77 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import IgnoreListComponent from './components/ignorelist';
1313
import CustomizationComponent from './components/customize';
1414

1515
import updates from "./update";
16+
import bugs from "./knowbug";
1617
import VersionChange from "../../lib/components/versionChange";
1718

1819
const { ScrollView, View, Text, TouchableOpacity, TextInput, Pressable, Image, Animated } = General;
@@ -97,6 +98,7 @@ export default function SettingPage() {
9798
useProxy(storage);
9899

99100
const [animation] = React.useState(new Animated.Value(0));
101+
const [isKnownBugOpen, setKnownBugOpen] = React.useState(false)
100102

101103
React.useEffect(() => {
102104
Animated.loop(
@@ -175,19 +177,35 @@ export default function SettingPage() {
175177
})
176178
}
177179
<FormDivider />
178-
<FormRow
179-
label="Debug"
180-
subLabel="Enable console logging"
181-
style={[styles.padBot]}
182-
trailing={
183-
<FormSwitch
184-
value={storage.debug}
185-
onValueChange={(value) => {
186-
storage.debug = value
187-
}}
188-
/>
189-
}
190-
/>
180+
<FormSection title="Nerd Stuff">
181+
<FormRow
182+
label="Debug"
183+
subLabel="Enable console logging"
184+
style={[styles.padBot]}
185+
trailing={
186+
<FormSwitch
187+
value={storage.debug}
188+
onValueChange={(value) => {
189+
storage.debug = value
190+
}}
191+
/>
192+
}
193+
/>
194+
<FormDivider />
195+
<FormRow
196+
label="Debug updateRows"
197+
subLabel="Enable updateRows console logging"
198+
style={[styles.padBot]}
199+
trailing={
200+
<FormSwitch
201+
value={storage.debugUpdateRows}
202+
onValueChange={(value) => {
203+
storage.debugUpdateRows = value
204+
}}
205+
/>
206+
}
207+
/>
208+
</FormSection>
191209
<FormDivider />
192210
{
193211
updates && (
@@ -207,12 +225,49 @@ export default function SettingPage() {
207225
</FormSection>
208226
)
209227
}
228+
<FormDivider />
229+
{
230+
bugs && (
231+
<FormSection title="Known Bugs">
232+
<FormRow
233+
label="Click to show those Lady Bug"
234+
onPress={() => {
235+
setKnownBugOpen(!isKnownBugOpen)
236+
}}
237+
/>
238+
{
239+
240+
isKnownBugOpen && (
241+
<View style={{
242+
margin: 5,
243+
padding: 5,
244+
borderRadius: 10,
245+
backgroundColor: "rgba(59, 30, 55, 0.15)"
246+
}}>
247+
{
248+
bugs.map((data, index) => {
249+
return (
250+
<FormRow
251+
label={data.bugType}
252+
subLabel={data.bugDescription}
253+
style={[styles.padBot]}
254+
/>
255+
)
256+
})
257+
}
258+
</View>
259+
)
260+
}
261+
</FormSection>
262+
)
263+
}
210264
</View>
211265
</>)
212266

213267
return (<>
214268
<ScrollView>
215269
{
270+
/*
216271
(currentOS == "android") ?
217272
(<>
218273
<LinearGradient
@@ -225,7 +280,16 @@ export default function SettingPage() {
225280
</LinearGradient>
226281
</>) :
227282
(entireUIList)
283+
*/
228284
}
285+
<LinearGradient
286+
start={{x: 0.8, y: 0}}
287+
end={{x: 0, y: 0.8}}
288+
colors={[ "#b8ff34", "#4bff61", "#44f6ff", "#4dafff", "#413dff", "#d63efd" ]}
289+
style={[ styles.lnBorder, styles.shadowTemplate, styles.lnShadow, styles.padBot ]}
290+
>
291+
{entireUIList}
292+
</LinearGradient>
229293
</ScrollView>
230294
</>)
231295
}

angel/antied/components/customize.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ const customizeableSwitches = [
5252
default: true,
5353
label: "Use Ephemeral for Deleted",
5454
subLabel: "When messages got deleted it'll use ephemeral instead of normal message (Enabled by Default).",
55+
},
56+
{
57+
id: "useIndicatorForDeleted",
58+
default: false,
59+
label: "use Indicator For 'This Message is Deleted'",
60+
subLabel: "Use 'only you can see this' for deleted message info, instead of (edited)",
61+
},
62+
{
63+
id: "overrideIndicator",
64+
default: false,
65+
label: "Remove Ephemeral Indicator",
66+
subLabel: "When messages got deleted it'll have indicator under the text like 'only you can see this' and this remove those.",
5567
}
5668
]
5769

angel/antied/components/texts.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const customizedableTexts = [
2525
title: "Customize Remove History Toast Message",
2626
type: "default",
2727
placeholder: "History Removed",
28+
},
29+
{
30+
id: "customIndicator",
31+
title: "Customize Ephemeral 'Only You Can See This' Indicator (if useIndicatorForDeletedMessage enabled this feature be overriden)",
32+
type: "default",
33+
placeholder: "Only you can see this • ",
2834
}
2935
]
3036

angel/antied/index.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ makeDefaults(storage, {
4545
removeDismissButton: false,
4646
addTimestampForEdits: false,
4747
timestampStyle: 'R',
48-
useEphemeralForDeleted: true
48+
useEphemeralForDeleted: true,
49+
overrideIndicator: false,
50+
useIndicatorForDeleted: false
4951
},
5052
colors: {
5153
textColor: "#E40303",
@@ -60,13 +62,15 @@ makeDefaults(storage, {
6062
editedMessageBuffer: "`[ EDITED ]`",
6163
historyToast: "[ANTI ED] History Removed",
6264
ignoredUserList: [],
63-
customPluginName: (plugin?.manifest?.name || "ANTIED")
65+
customPluginName: (plugin?.manifest?.name || "ANTIED"),
66+
customIndicator: ""
6467
},
6568
misc: {
6669
timestampPos: "BEFORE", // BEFORE|AFTER
6770
editHistoryIcon: "ic_edit_24px"
6871
},
69-
debug: false
72+
debug: false,
73+
debugUpdateRows: false
7074
})
7175

7276
let deletedMessageArray = {};

angel/antied/knowbug.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const knownBugs = [
2+
{
3+
bugType: "ActionSheet",
4+
bugDescription: "Fail to patch custom buttons into Action Sheet"
5+
},
6+
{
7+
bugType: "EDIT",
8+
bugDescription: "Removing Edit Logs with link in it caused a crash"
9+
},
10+
{
11+
bugType: "EDIT",
12+
bugDescription: "in Rare Occasion, edits Patcher can logs multiple edits of same text or Double Fire Func"
13+
},
14+
]
15+
16+
17+
export default knownBugs;

angel/antied/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name":"Antied v1.3.1",
2+
"name":"Antied v1.4.0",
33
"description":"Keeps deleted messages and logs edited messages, until you restart/reloads the app",
44
"main": "index.jsx",
55
"authors": [

0 commit comments

Comments
 (0)