@@ -13,6 +13,7 @@ import IgnoreListComponent from './components/ignorelist';
1313import CustomizationComponent from './components/customize' ;
1414
1515import updates from "./update" ;
16+ import bugs from "./knowbug" ;
1617import VersionChange from "../../lib/components/versionChange" ;
1718
1819const { 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}
0 commit comments