@palerock/exam-qa 1.0.6-patch10 → 1.0.6-patch11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/static/css/{app.e3a8483dfde3024c7e501c1e46ada2a8.css → app.f76ca65020df1576514751c0b6fb2a25.css} +2 -2
- package/dist/static/css/{app.e3a8483dfde3024c7e501c1e46ada2a8.css.map → app.f76ca65020df1576514751c0b6fb2a25.css.map} +1 -1
- package/dist/static/js/app.4d3c186ec6cdaa7239cb.js +2 -0
- package/dist/static/js/app.4d3c186ec6cdaa7239cb.js.map +1 -0
- package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
- package/lib-json/Dev1/345/237/272/347/241/200/351/242/230.json +151 -91
- package/lib-json/Dev1/346/250/241/346/213/237/345/215/267A.json +172 -107
- package/lib-json/Dev1/346/250/241/346/213/237/345/215/267B.json +367 -302
- package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2211.json +150 -82
- package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2212.json +111 -66
- package/lib-json/Dev1/346/265/213/350/257/225_/350/260/203/350/257/225_/351/203/250/347/275/262.json +80 -41
- package/lib-json/Dev1/347/224/250/346/210/267/347/225/214/351/235/242.json +118 -66
- package/package.json +1 -1
- package/dist/static/js/app.4a28c4a16706c6bcac16.js +0 -2
- package/dist/static/js/app.4a28c4a16706c6bcac16.js.map +0 -1
@@ -22,7 +22,8 @@
|
|
22
22
|
"isRight": false
|
23
23
|
}
|
24
24
|
],
|
25
|
-
"hashCode": "1995171573"
|
25
|
+
"hashCode": "1995171573",
|
26
|
+
"analysis": ""
|
26
27
|
},
|
27
28
|
{
|
28
29
|
"describe": "UC has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers.\nWhat should a developer change about the Visualforce page to help with the page load errors?",
|
@@ -44,7 +45,8 @@
|
|
44
45
|
"isRight": false
|
45
46
|
}
|
46
47
|
],
|
47
|
-
"hashCode": "1988674189"
|
48
|
+
"hashCode": "1988674189",
|
49
|
+
"analysis": ""
|
48
50
|
},
|
49
51
|
{
|
50
52
|
"describe": "A developer is creating an app that contains multiple Lightning web components.\nOne of the child components is used for navigation purposes.When a user clicks a button called component, the parent component must be alerted so it can navigate to the next page.\nHow should this be accomplished?",
|
@@ -66,7 +68,8 @@
|
|
66
68
|
"isRight": true
|
67
69
|
}
|
68
70
|
],
|
69
|
-
"hashCode": "1988674165"
|
71
|
+
"hashCode": "1988674165",
|
72
|
+
"analysis": ""
|
70
73
|
},
|
71
74
|
{
|
72
75
|
"describe": "Which two statements are true about getter and setter methods as they relate to Visualforce?\nChoose 2 answers",
|
@@ -88,7 +91,8 @@
|
|
88
91
|
"isRight": false
|
89
92
|
}
|
90
93
|
],
|
91
|
-
"hashCode": "1988674163"
|
94
|
+
"hashCode": "1988674163",
|
95
|
+
"analysis": ""
|
92
96
|
},
|
93
97
|
{
|
94
98
|
"describe": "A developer created a weather app that contains multiple Lightning web components.\nOne of the components, called Toggle, has a toggle for Fahrenheit or Celsius units,Another Temperature, displays the current temperature in the unit selected in the Toggle component,.When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, sent to the Temperature component so the temperature can be converted and displayed.\nWhat is the recommended way to accomplish this?",
|
@@ -110,7 +114,8 @@
|
|
110
114
|
"isRight": false
|
111
115
|
}
|
112
116
|
],
|
113
|
-
"hashCode": "1988674133"
|
117
|
+
"hashCode": "1988674133",
|
118
|
+
"analysis": ""
|
114
119
|
},
|
115
120
|
{
|
116
121
|
"describe": "A credit card company needs to implement the functionality for a service agent to process credit cards. When the customers call in, the service agent must gather many places of information tasked to implement this functionality.\nWhat should the developer use to satisfy this requirement in the most efficient manner?",
|
@@ -132,7 +137,8 @@
|
|
132
137
|
"isRight": false
|
133
138
|
}
|
134
139
|
],
|
135
|
-
"hashCode": "1988674132"
|
140
|
+
"hashCode": "1988674132",
|
141
|
+
"analysis": ""
|
136
142
|
},
|
137
143
|
{
|
138
144
|
"describe": "A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrators expose the component only on Record Page Layouts.\nWhich two actions should the developer take to accomplish this business objective?\nChoose 2 answers",
|
@@ -154,7 +160,8 @@
|
|
154
160
|
"isRight": false
|
155
161
|
}
|
156
162
|
],
|
157
|
-
"hashCode": "1988674129"
|
163
|
+
"hashCode": "1988674129",
|
164
|
+
"analysis": ""
|
158
165
|
},
|
159
166
|
{
|
160
167
|
"describe": "What are two best practices when it comes to Lightning Web Component events?\nChoose 2 answers",
|
@@ -176,51 +183,54 @@
|
|
176
183
|
"isRight": false
|
177
184
|
}
|
178
185
|
],
|
179
|
-
"hashCode": "1988674103"
|
186
|
+
"hashCode": "1988674103",
|
187
|
+
"analysis": ""
|
180
188
|
},
|
181
189
|
{
|
182
|
-
"describe": "
|
190
|
+
"describe": "A developer is creating a Lightning web component to show a list of sales records.\nThe Sales Representative user should be able to see the commission field on each record. The Sales Assistant usershould be able to see all fields on the record except the commission field.\nHow should this be enforced so that the component works for both users without showing any errors?",
|
183
191
|
"answerOptions": [
|
184
192
|
{
|
185
|
-
"describe": "
|
186
|
-
"isRight":
|
193
|
+
"describe": "Use Lightning Data Service to get the collection of sales records.",
|
194
|
+
"isRight": false
|
187
195
|
},
|
188
196
|
{
|
189
|
-
"describe": "
|
197
|
+
"describe": "Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.",
|
190
198
|
"isRight": false
|
191
199
|
},
|
192
200
|
{
|
193
|
-
"describe": "
|
194
|
-
"isRight":
|
201
|
+
"describe": "Use Security.stripInaccessible to remove fields inaccessible to the current user.",
|
202
|
+
"isRight": true
|
195
203
|
},
|
196
204
|
{
|
197
|
-
"describe": "
|
205
|
+
"describe": "Use Lightning Locker Service to enforce sharing rules and field-level security.",
|
198
206
|
"isRight": false
|
199
207
|
}
|
200
208
|
],
|
201
|
-
"hashCode": "
|
209
|
+
"hashCode": "1988674101",
|
210
|
+
"analysis": ""
|
202
211
|
},
|
203
212
|
{
|
204
|
-
"describe": "
|
213
|
+
"describe": "An org has two custom objects:\nPlan_c, that has a master-detail relationship to the Account object\nPlan_Item__c, that has a master-detail relationship to the Plan_c object\nWhat should a developer use to create a Visualforce section on the Account page layout that displays all of the Plan__c records related to the Account and all of the Plan_Item__c records related to those Plan_c records.",
|
205
214
|
"answerOptions": [
|
206
215
|
{
|
207
|
-
"describe": "
|
208
|
-
"isRight":
|
216
|
+
"describe": "A standard controller with a controller extension",
|
217
|
+
"isRight": true
|
209
218
|
},
|
210
219
|
{
|
211
|
-
"describe": "
|
220
|
+
"describe": "A standard controller with a custom controller",
|
212
221
|
"isRight": false
|
213
222
|
},
|
214
223
|
{
|
215
|
-
"describe": "
|
216
|
-
"isRight":
|
224
|
+
"describe": "A custom controller by itself",
|
225
|
+
"isRight": false
|
217
226
|
},
|
218
227
|
{
|
219
|
-
"describe": "
|
228
|
+
"describe": "A controller extension with a custom controller",
|
220
229
|
"isRight": false
|
221
230
|
}
|
222
231
|
],
|
223
|
-
"hashCode": "
|
232
|
+
"hashCode": "1988674102",
|
233
|
+
"analysis": ""
|
224
234
|
},
|
225
235
|
{
|
226
236
|
"describe": "Which two are phases in the Aura application event propagation framework?\nChoose 2 answers",
|
@@ -242,7 +252,8 @@
|
|
242
252
|
"isRight": true
|
243
253
|
}
|
244
254
|
],
|
245
|
-
"hashCode": "1988674038"
|
255
|
+
"hashCode": "1988674038",
|
256
|
+
"analysis": ""
|
246
257
|
},
|
247
258
|
{
|
248
259
|
"describe": "A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.\nIn which two ways can this be accomplished?\nChoose 2 answers",
|
@@ -264,7 +275,8 @@
|
|
264
275
|
"isRight": true
|
265
276
|
}
|
266
277
|
],
|
267
|
-
"hashCode": "1988674036"
|
278
|
+
"hashCode": "1988674036",
|
279
|
+
"analysis": ""
|
268
280
|
},
|
269
281
|
{
|
270
282
|
"describe": "A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. The developer wants to ensure the Visualforce page matches the Lightning Experience user interface.\nWhat attribute needs to be defined within the <apex:page> tag to meet the requirement?",
|
@@ -286,7 +298,8 @@
|
|
286
298
|
"isRight": true
|
287
299
|
}
|
288
300
|
],
|
289
|
-
"hashCode": "1988674011"
|
301
|
+
"hashCode": "1988674011",
|
302
|
+
"analysis": ""
|
290
303
|
},
|
291
304
|
{
|
292
305
|
"describe": "A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.\nWhich three things should the developer do to satisfy these requirements?\nChoose 3 answers",
|
@@ -312,7 +325,8 @@
|
|
312
325
|
"isRight": true
|
313
326
|
}
|
314
327
|
],
|
315
|
-
"hashCode": "1988674010"
|
328
|
+
"hashCode": "1988674010",
|
329
|
+
"analysis": ""
|
316
330
|
},
|
317
331
|
{
|
318
332
|
"describe": "A Salesforce Administrator used Flow Builder to create a flow named \"accountOnboarding\". The flow must be used inside an Aura component.\nWhich tag should a developer use to display the flow in the component?",
|
@@ -334,7 +348,8 @@
|
|
334
348
|
"isRight": true
|
335
349
|
}
|
336
350
|
],
|
337
|
-
"hashCode": "1988674008"
|
351
|
+
"hashCode": "1988674008",
|
352
|
+
"analysis": ""
|
338
353
|
},
|
339
354
|
{
|
340
355
|
"describe": "What can be developed using the Lightning Component framework?",
|
@@ -356,7 +371,8 @@
|
|
356
371
|
"isRight": true
|
357
372
|
}
|
358
373
|
],
|
359
|
-
"hashCode": "1988674005"
|
374
|
+
"hashCode": "1988674005",
|
375
|
+
"analysis": "https://help.salesforce.com/s/articleView?id=sf.aura_overview.htm&type=5"
|
360
376
|
},
|
361
377
|
{
|
362
378
|
"describe": "A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts \ndata from user inputs across multiple Visualforce pages and from a parameter on the initial URL.\nWhich three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers",
|
@@ -382,7 +398,8 @@
|
|
382
398
|
"isRight": false
|
383
399
|
}
|
384
400
|
],
|
385
|
-
"hashCode": "1988674002"
|
401
|
+
"hashCode": "1988674002",
|
402
|
+
"analysis": ""
|
386
403
|
},
|
387
404
|
{
|
388
405
|
"describe": "A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.\nWhich tool should the developer use to troubleshoot?",
|
@@ -404,7 +421,8 @@
|
|
404
421
|
"isRight": false
|
405
422
|
}
|
406
423
|
],
|
407
|
-
"hashCode": "1988673325"
|
424
|
+
"hashCode": "1988673325",
|
425
|
+
"analysis": ""
|
408
426
|
},
|
409
427
|
{
|
410
428
|
"describe": "Which two statements are true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers",
|
@@ -426,7 +444,8 @@
|
|
426
444
|
"isRight": false
|
427
445
|
}
|
428
446
|
],
|
429
|
-
"hashCode": "1988673291"
|
447
|
+
"hashCode": "1988673291",
|
448
|
+
"analysis": ""
|
430
449
|
},
|
431
450
|
{
|
432
451
|
"describe": "Which two characteristics are true for Aura component events? Choose 2 answers",
|
@@ -448,7 +467,8 @@
|
|
448
467
|
"isRight": false
|
449
468
|
}
|
450
469
|
],
|
451
|
-
"hashCode": "1988673289"
|
470
|
+
"hashCode": "1988673289",
|
471
|
+
"analysis": ""
|
452
472
|
},
|
453
473
|
{
|
454
474
|
"describe": "What are two ways that a controller and extension can be specified for a custom object named Notice on a Visualforce page? Choose 2 answers",
|
@@ -470,7 +490,8 @@
|
|
470
490
|
"isRight": false
|
471
491
|
}
|
472
492
|
],
|
473
|
-
"hashCode": "1988673265"
|
493
|
+
"hashCode": "1988673265",
|
494
|
+
"analysis": ""
|
474
495
|
},
|
475
496
|
{
|
476
497
|
"describe": "Which three resources in an Aura Component can contain JavaScript functions? Choose 3 answers",
|
@@ -496,7 +517,8 @@
|
|
496
517
|
"isRight": true
|
497
518
|
}
|
498
519
|
],
|
499
|
-
"hashCode": "1988673264"
|
520
|
+
"hashCode": "1988673264",
|
521
|
+
"analysis": "https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_bundle.htm"
|
500
522
|
},
|
501
523
|
{
|
502
524
|
"describe": "Which three Salesforce resources can be accessed from a Lighting web component? Choose 3 answers",
|
@@ -522,7 +544,8 @@
|
|
522
544
|
"isRight": true
|
523
545
|
}
|
524
546
|
],
|
525
|
-
"hashCode": "1988673173"
|
547
|
+
"hashCode": "1988673173",
|
548
|
+
"analysis": "https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_global_value_providers"
|
526
549
|
},
|
527
550
|
{
|
528
551
|
"describe": "What are two ways that a controller extension can be specified on a Visualforce page? Choose 2 answers",
|
@@ -544,7 +567,8 @@
|
|
544
567
|
"isRight": true
|
545
568
|
}
|
546
569
|
],
|
547
|
-
"hashCode": "1988673172"
|
570
|
+
"hashCode": "1988673172",
|
571
|
+
"analysis": ""
|
548
572
|
},
|
549
573
|
{
|
550
574
|
"describe": "How does the Lightning Component framework help developers implement solutions faster?",
|
@@ -566,7 +590,8 @@
|
|
566
590
|
"isRight": false
|
567
591
|
}
|
568
592
|
],
|
569
|
-
"hashCode": "1988673168"
|
593
|
+
"hashCode": "1988673168",
|
594
|
+
"analysis": ""
|
570
595
|
},
|
571
596
|
{
|
572
597
|
"describe": "which two are best practices when it comes to Aura component and application event handling? Choose 2 answers",
|
@@ -588,7 +613,8 @@
|
|
588
613
|
"isRight": false
|
589
614
|
}
|
590
615
|
],
|
591
|
-
"hashCode": "1988673143"
|
616
|
+
"hashCode": "1988673143",
|
617
|
+
"analysis": ""
|
592
618
|
},
|
593
619
|
{
|
594
620
|
"describe": "How should a custom user interface be privided when a user edits an Account in Lightning Experience?",
|
@@ -610,7 +636,8 @@
|
|
610
636
|
"isRight": false
|
611
637
|
}
|
612
638
|
],
|
613
|
-
"hashCode": "1988673080"
|
639
|
+
"hashCode": "1988673080",
|
640
|
+
"analysis": ""
|
614
641
|
},
|
615
642
|
{
|
616
643
|
"describe": "Which three web technologies can be integrated into a Visualforce page?",
|
@@ -636,7 +663,8 @@
|
|
636
663
|
"isRight": false
|
637
664
|
}
|
638
665
|
],
|
639
|
-
"hashCode": "1988673078"
|
666
|
+
"hashCode": "1988673078",
|
667
|
+
"analysis": ""
|
640
668
|
},
|
641
669
|
{
|
642
670
|
"describe": "Which three steps allow a custom SVG to be included in a Lightning web component?Choose 3 answers",
|
@@ -662,7 +690,8 @@
|
|
662
690
|
"isRight": true
|
663
691
|
}
|
664
692
|
],
|
665
|
-
"hashCode": "1988673076"
|
693
|
+
"hashCode": "1988673076",
|
694
|
+
"analysis": ""
|
666
695
|
},
|
667
696
|
{
|
668
697
|
"describe": "A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience.\nWhat should the developer do to provide the custom user interface?",
|
@@ -684,7 +713,8 @@
|
|
684
713
|
"isRight": false
|
685
714
|
}
|
686
715
|
],
|
687
|
-
"hashCode": "1988673050"
|
716
|
+
"hashCode": "1988673050",
|
717
|
+
"analysis": ""
|
688
718
|
},
|
689
719
|
{
|
690
720
|
"describe": "A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter.\nHow should the developer prevent a cross site scripting vulnerability?",
|
@@ -706,7 +736,8 @@
|
|
706
736
|
"isRight": true
|
707
737
|
}
|
708
738
|
],
|
709
|
-
"hashCode": "1988672364"
|
739
|
+
"hashCode": "1988672364",
|
740
|
+
"analysis": ""
|
710
741
|
},
|
711
742
|
{
|
712
743
|
"describe": "Which two are phases in the Salesforce Application Event propagation framework? Choose 2 answers",
|
@@ -728,7 +759,8 @@
|
|
728
759
|
"isRight": false
|
729
760
|
}
|
730
761
|
],
|
731
|
-
"hashCode": "1988672360"
|
762
|
+
"hashCode": "1988672360",
|
763
|
+
"analysis": ""
|
732
764
|
},
|
733
765
|
{
|
734
766
|
"describe": "Application Events follow the traditional publish-subscribe model\nWhich method is used to fire an event?",
|
@@ -750,7 +782,8 @@
|
|
750
782
|
"isRight": false
|
751
783
|
}
|
752
784
|
],
|
753
|
-
"hashCode": "1988672336"
|
785
|
+
"hashCode": "1988672336",
|
786
|
+
"analysis": ""
|
754
787
|
},
|
755
788
|
{
|
756
789
|
"describe": "Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.\nWhat should the developer do to fulfill the business request in the quickest and most effective manner?",
|
@@ -772,7 +805,8 @@
|
|
772
805
|
"isRight": false
|
773
806
|
}
|
774
807
|
],
|
775
|
-
"hashCode": "1988672303"
|
808
|
+
"hashCode": "1988672303",
|
809
|
+
"analysis": ""
|
776
810
|
},
|
777
811
|
{
|
778
812
|
"describe": "What does the Lightning Component framework provide to developers?",
|
@@ -794,7 +828,8 @@
|
|
794
828
|
"isRight": false
|
795
829
|
}
|
796
830
|
],
|
797
|
-
"hashCode": "1988672297"
|
831
|
+
"hashCode": "1988672297",
|
832
|
+
"analysis": ""
|
798
833
|
},
|
799
834
|
{
|
800
835
|
"describe": "<p>A developer is asked to create a Visualforce page that displays some Account fields as well as fields configured on the page layout for related Contacts.\nHow should the developer implement this request?</p>",
|
@@ -816,7 +851,8 @@
|
|
816
851
|
"isRight": false
|
817
852
|
}
|
818
853
|
],
|
819
|
-
"hashCode": "1988674190"
|
854
|
+
"hashCode": "1988674190",
|
855
|
+
"analysis": ""
|
820
856
|
},
|
821
857
|
{
|
822
858
|
"describe": "<p>Refer to the code snippet below:</p><p>import fetchOpps from '@salesforce/apex/OpportunitySearch.fetchOpportunities';</p><p>@wire(fetchOpps)</p><p>opportunities;</p><p>When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.</p><p>Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component? Choose 3 answers</p><p style=\"line-height: 1.5em;\" dir=\"ltr\"><br/></p>",
|
@@ -842,7 +878,8 @@
|
|
842
878
|
"isRight": true
|
843
879
|
}
|
844
880
|
],
|
845
|
-
"hashCode": "1995171603"
|
881
|
+
"hashCode": "1995171603",
|
882
|
+
"analysis": ""
|
846
883
|
},
|
847
884
|
{
|
848
885
|
"describe": "<p style=\"line-height: 1.5em;\" dir=\"ltr\">Which code statement includes an Apex method named updateAccounts in the class AccountController for use in a Lightning web component?</p>",
|
@@ -864,7 +901,8 @@
|
|
864
901
|
"isRight": true
|
865
902
|
}
|
866
903
|
],
|
867
|
-
"hashCode": "1995171602"
|
904
|
+
"hashCode": "1995171602",
|
905
|
+
"analysis": "<p>https://developer.salesforce.com/docs/component-library/documentation/en/lwc/apex_import_method</p>"
|
868
906
|
},
|
869
907
|
{
|
870
908
|
"describe": "<p>A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.</p><p>Which annotation should the developer add to the Apex method to achieve this?</p><p style=\"line-height: 1.5em;\" dir=\"ltr\"><br/></p>",
|
@@ -886,7 +924,8 @@
|
|
886
924
|
"isRight": false
|
887
925
|
}
|
888
926
|
],
|
889
|
-
"hashCode": "1995171580"
|
927
|
+
"hashCode": "1995171580",
|
928
|
+
"analysis": ""
|
890
929
|
},
|
891
930
|
{
|
892
931
|
"describe": "<p>A developer created a Lightning web component called statusComponent to be inserted into the Account record page.\nWhich two things should the developer do to make this component available? Choose 2 answers</p>",
|
@@ -908,7 +947,8 @@
|
|
908
947
|
"isRight": false
|
909
948
|
}
|
910
949
|
],
|
911
|
-
"hashCode": "1988675025"
|
950
|
+
"hashCode": "1988675025",
|
951
|
+
"analysis": ""
|
912
952
|
},
|
913
953
|
{
|
914
954
|
"describe": "<p>A custom Visualforce controller calls the ApexPages.addMessage( ) method, but no messages are rendering on the page.</p><p>Which component should be added to the Visualforce page to display the message?</p><p><br/></p>",
|
@@ -930,7 +970,8 @@
|
|
930
970
|
"isRight": false
|
931
971
|
}
|
932
972
|
],
|
933
|
-
"hashCode": "1988674971"
|
973
|
+
"hashCode": "1988674971",
|
974
|
+
"analysis": ""
|
934
975
|
},
|
935
976
|
{
|
936
977
|
"describe": "<p>Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers</p>",
|
@@ -956,7 +997,8 @@
|
|
956
997
|
"isRight": true
|
957
998
|
}
|
958
999
|
],
|
959
|
-
"hashCode": "1988674968"
|
1000
|
+
"hashCode": "1988674968",
|
1001
|
+
"analysis": ""
|
960
1002
|
},
|
961
1003
|
{
|
962
1004
|
"describe": "<p>What are three capabilities of the <ltng:require> tag when loading JavaScript resources in Aura components? Choose 3 answers</p>",
|
@@ -982,7 +1024,8 @@
|
|
982
1024
|
"isRight": false
|
983
1025
|
}
|
984
1026
|
],
|
985
|
-
"hashCode": "1988674965"
|
1027
|
+
"hashCode": "1988674965",
|
1028
|
+
"analysis": ""
|
986
1029
|
},
|
987
1030
|
{
|
988
1031
|
"describe": "<p>A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.</p><p><br/></p><p>Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? Choose 3 answers</p><p><br/></p>",
|
@@ -1008,7 +1051,8 @@
|
|
1008
1051
|
"isRight": false
|
1009
1052
|
}
|
1010
1053
|
],
|
1011
|
-
"hashCode": "1988674289"
|
1054
|
+
"hashCode": "1988674289",
|
1055
|
+
"analysis": ""
|
1012
1056
|
},
|
1013
1057
|
{
|
1014
1058
|
"describe": "<p>Which code in a Visualforce page and/or cotroller might present a security vulnerability?</p>",
|
@@ -1030,7 +1074,8 @@
|
|
1030
1074
|
"isRight": false
|
1031
1075
|
}
|
1032
1076
|
],
|
1033
|
-
"hashCode": "1988674283"
|
1077
|
+
"hashCode": "1988674283",
|
1078
|
+
"analysis": ""
|
1034
1079
|
},
|
1035
1080
|
{
|
1036
1081
|
"describe": "<p>An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web components to use.</p><p>What is the correct definition of a Lightning Web component property that uses the getAccounts method?</p><p><br/></p>",
|
@@ -1052,7 +1097,8 @@
|
|
1052
1097
|
"isRight": false
|
1053
1098
|
}
|
1054
1099
|
],
|
1055
|
-
"hashCode": "1988674257"
|
1100
|
+
"hashCode": "1988674257",
|
1101
|
+
"analysis": ""
|
1056
1102
|
},
|
1057
1103
|
{
|
1058
1104
|
"describe": "<p>A developer must crreate a Lightning component that allows users to input Contact record information to create a Contact record, including a Salary__c custom field.\nWhat should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c ?</p>",
|
@@ -1074,7 +1120,8 @@
|
|
1074
1120
|
"isRight": false
|
1075
1121
|
}
|
1076
1122
|
],
|
1077
|
-
"hashCode": "1988674228"
|
1123
|
+
"hashCode": "1988674228",
|
1124
|
+
"analysis": ""
|
1078
1125
|
},
|
1079
1126
|
{
|
1080
1127
|
"describe": "<p>Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.\nWhich Visualforce feature supports this requirement?</p>",
|
@@ -1096,7 +1143,8 @@
|
|
1096
1143
|
"isRight": false
|
1097
1144
|
}
|
1098
1145
|
],
|
1099
|
-
"hashCode": "1988674226"
|
1146
|
+
"hashCode": "1988674226",
|
1147
|
+
"analysis": ""
|
1100
1148
|
},
|
1101
1149
|
{
|
1102
1150
|
"describe": "<p>A Lightning component has a wired property, searchResults, that stores a list of Opportunities.\nWhich definition of the Apex method, to which the searchResults property is wired, should be used?</p>",
|
@@ -1118,7 +1166,8 @@
|
|
1118
1166
|
"isRight": true
|
1119
1167
|
}
|
1120
1168
|
],
|
1121
|
-
"hashCode": "1988674220"
|
1169
|
+
"hashCode": "1988674220",
|
1170
|
+
"analysis": ""
|
1122
1171
|
},
|
1123
1172
|
{
|
1124
1173
|
"describe": "<p>A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.\n\nHow can the developer make sure that validation rule violations are displayed?</p>",
|
@@ -1140,7 +1189,8 @@
|
|
1140
1189
|
"isRight": false
|
1141
1190
|
}
|
1142
1191
|
],
|
1143
|
-
"hashCode": "1988674196"
|
1192
|
+
"hashCode": "1988674196",
|
1193
|
+
"analysis": ""
|
1144
1194
|
},
|
1145
1195
|
{
|
1146
1196
|
"describe": "<p>Which code displays the contents of a Visualforce page as a PDF?</p>",
|
@@ -1162,7 +1212,8 @@
|
|
1162
1212
|
"isRight": false
|
1163
1213
|
}
|
1164
1214
|
],
|
1165
|
-
"hashCode": "1988674193"
|
1215
|
+
"hashCode": "1988674193",
|
1216
|
+
"analysis": ""
|
1166
1217
|
},
|
1167
1218
|
{
|
1168
1219
|
"describe": "<p>Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page \nmatches the look and feel of Lightning Experience?</p>",
|
@@ -1184,7 +1235,8 @@
|
|
1184
1235
|
"isRight": false
|
1185
1236
|
}
|
1186
1237
|
],
|
1187
|
-
"hashCode": "1988674191"
|
1238
|
+
"hashCode": "1988674191",
|
1239
|
+
"analysis": ""
|
1188
1240
|
}
|
1189
1241
|
],
|
1190
1242
|
"hashCode": "-1307154604"
|
package/package.json
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
webpackJsonp([1],{"+c27":function(t,e){},"/E+L":function(t,e){},"4rJS":function(t,e){},"97dx":function(t,e){},DkPU:function(t,e){},JKiR:function(t,e){},NAlg:function(t,e){},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("7+uW"),r={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("transition",{attrs:{name:this.direction}},[e("router-view",{staticClass:"appView"})],1)],1)},staticRenderFns:[]};var o=n("VU/8")({name:"App",data:function(){return{direction:"slide-right"}},watch:{$route:function(t,e){var n=t.path.split("/").length,i=e.path.split("/").length;"/"===t.path?this.direction="slide-right":"/"===e.path?this.direction="slide-left":this.direction=n<i?"slide-right":"slide-left"}}},r,!1,function(t){n("PTsV")},null,null).exports,s=n("/ocq"),a=(n("FO5P"),n("woHG")),u=(n("RgoE"),n("0KWt")),c=(n("1E9F"),n("2Ux5")),l=n("L8Ge"),h=n.n(l),f=n("pDAi"),p=n.n(f),m=n("rXUV"),d=n.n(m),v=n("0VsM"),g=n.n(v),y=n("4vMe"),b=n.n(y),w=n("6Cj1"),x=n.n(w),k=n("7U2N"),C=n.n(k),_=n("Tg6C"),q=n.n(_),E=n("GiJQ"),S=n.n(E),A=n("/xtf"),I=n.n(A),D=n("crjn"),O=n.n(D),R=n("s1qc"),N=n.n(R),P=n("6qwz"),T=n.n(P),H=n("0VlM"),L=n.n(H),M=(n("cZ0s"),n("fIxc")),B=(n("RIEG"),n("zjGD")),j=(n("YP+l"),n("EA31")),F=(n("sgvh"),n("zc1Q")),Q=(n("mMXg"),n("qYlo")),U=(n("3Lne"),n("SSsa")),V=(n("MY4N"),n("0zAV")),W=(n("OWWB"),n("1fWZ")),z=(n("i0mo"),n("Hkar")),$=(n("XmAh"),n("il3B")),J=(n("nOaS"),n("pIDD")),K=n("IG2y"),Z=n.n(K),G=n("49HJ"),Y=n.n(G),X=n("Yo5Z"),tt=n.n(X),et=n("ckt0"),nt=n.n(et);function it(t,e){var n=x()(t);if(b.a){var i=b()(t);e&&(i=i.filter(function(e){return g()(t,e).enumerable})),n.push.apply(n,i)}return n}var rt={getHashCode:function(t){return this.getStrHashCode(this.getMessage(t).concat(this.getPropertyNames(t)).join(""))},getPropertyNames:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return n<=0?"":!t||["string","number","boolean","function"].includes(nt()(t))||t instanceof Date?"":this.flat(tt()(t).map(function(t){var i=Y()(t,2),r=i[0],o=i[1];return[r,e.getPropertyNames(o,n--)]})).filter(function(t){return null!=t&&""!==t})},getMessage:function(t,e){var n=this;return null==e&&(e=10),e<=0?"":!t||["string","number","boolean","function"].includes(nt()(t))||t instanceof Date?[null!=t?t.toString():""]:this.flat(x()(t).map(function(i){return n.getMessage(t[i],e--)})).filter(function(t){return null!=t&&""!==t})},getStrHashCode:function(t){var e,n,i=0;if(0===t.length)return i;for(e=0,n=t.length;e<n;e++)i=(i<<5)-i+t.charCodeAt(e),i|=0;return i+""},flat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=[],i=!1;return t.forEach(function(t){Z()(t)?(i=!0,n.push.apply(n,N()(t))):n.push(t)}),i&&e>0?this.flat(n,e--):n},fromEntries:function(t){var e={};return t.forEach(function(t){t instanceof Array&&(e[t[0]]=t[1])}),e},storage:{getItem:function(t){var e=localStorage.getItem("__exam_s0_"+t),n=null;try{n=JSON.parse(e)}catch(e){console.log("No valid item for key [".concat(t,"] to get in storage."))}return n},setItem:function(t,e){var n=null;try{n=I()(e),localStorage.setItem("__exam_s0_"+t,n)}catch(e){console.log("Not valid item for key [".concat(t,"] to set."))}},removeItem:function(t){localStorage.removeItem("__exam_s0_"+t)}},groupArray:function(t,e){var n=this,i=t.map(function(t){return{hashCode:n.getHashCode(t),item:t}});e instanceof Array||(e=[e]);var r={};return i.map(function(t){return{hashCode:t.hashCode,checkItem:Object.fromEntries(e.map(function(e){return[e,(t.item||{})[e]]}))}}).map(function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(n,!0).forEach(function(e){L()(t,e,n[e])}):d.a?p()(t,d()(n)):it(n).forEach(function(e){h()(t,e,g()(n,e))})}return t}({},t,{checkedHashCode:n.getHashCode(t.checkItem)})}).forEach(function(t){var e=r[t.checkedHashCode];e||(e=[]),e.push(i.find(function(e){return e.hashCode===t.hashCode}).item),r[t.checkedHashCode]=e}),C()(r)},duplicateRemoval:function(t){var e=t.map(function(t){return{item:t}});return this.groupArray(e,"item").map(function(t){return t[0].item})},randomSort:function(t){return t.sort(function(){return Math.random()-.5})}},ot=n("Kr0U"),st=n.n(ot),at=n("EEoX"),ut=n.n(at),ct=n("5WHX"),lt=n.n(ct),ht=n("mnGM"),ft=n.n(ht),pt=n("6DPD"),mt=n.n(pt),dt=n("OdJd"),vt=n.n(dt),gt=new(n("YwQ6").a)("_qa_db");gt.version(1).stores({config:"key, value, createDate, modifyDate",question:"hashCode, describe, type, createDate, modifyDate",bank:"hashCode, title, *questions, createDate, modifyDate",historyRecord:"relatedQuestion, rightTimes, errorTimes, maxTime, minTime, totalTime, createDate, modifyDate"}),gt.version(2).stores({bank:"hashCode, title, *questions, category, createDate, modifyDate"});var yt=gt.config,bt=gt.question,wt=gt.bank,xt=gt.historyRecord;function kt(t,e){var n=x()(t);if(b.a){var i=b()(t);e&&(i=i.filter(function(e){return g()(t,e).enumerable})),n.push.apply(n,i)}return n}function Ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(n,!0).forEach(function(e){L()(t,e,n[e])}):d.a?p()(t,d()(n)):kt(n).forEach(function(e){h()(t,e,g()(n,e))})}return t}var _t=function(){function t(e,n){mt()(this,t),this.db=e,this.defaultEntry=n||{},this.db.hook("creating",function(t,e){e.createDate=ft()(),e.modifyDate=ft()()}),this.db.hook("updating",function(t,e,n){return t.modifiedDate=ft()(),n.createdDate||(t.createdDate=ft()()),console.log(Ct({},t)),t})}return vt()(t,[{key:"upsert",value:function(){var t=S()(q.a.mark(function t(e){var n=this;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Array)){t.next=2;break}return t.abrupt("return",this.db.bulkPut(e.map(function(t){return Ct({},n.defaultEntry,{},t)})));case 2:return t.abrupt("return",this.db.put(Ct({},this.defaultEntry,{},e)));case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"query",value:function(t){return this.db.where(t)}},{key:"queryByHashCode",value:function(t){return this.query("hashCode").equals(t).first()}},{key:"delete",value:function(){var t=S()(q.a.mark(function t(e){return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof Array)){t.next=2;break}return t.abrupt("return",this.db.bulkDelete(e));case 2:return t.abrupt("return",this.db.delete(e));case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t}(),qt=function(t){function e(){return mt()(this,e),st()(this,ut()(e).call(this,yt,{value:null}))}return lt()(e,t),e}(_t),Et=function(t){function e(){return mt()(this,e),st()(this,ut()(e).call(this,bt,{describe:"",type:"option"}))}return lt()(e,t),e}(_t),St=function(t){function e(){return mt()(this,e),st()(this,ut()(e).call(this,wt,{title:"",questions:[]}))}return lt()(e,t),e}(_t),At=function(t){function e(){return mt()(this,e),st()(this,ut()(e).call(this,xt,{rightTimes:0,errorTimes:0,maxTime:0,minTime:0,totalTime:0}))}return lt()(e,t),vt()(e,[{key:"queryByHashCode",value:function(t){return this.query("relatedQuestion").equals(t).first()}},{key:"queryMany",value:function(t){return this.query("relatedQuestion").anyOf(t).toArray()}}]),e}(_t),It=(new qt,new Et),Dt=new St,Ot=new At,Rt="1.0.6-patch9";function Nt(t,e){var n=x()(t);if(b.a){var i=b()(t);e&&(i=i.filter(function(e){return g()(t,e).enumerable})),n.push.apply(n,i)}return n}function Pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nt(n,!0).forEach(function(e){L()(t,e,n[e])}):d.a?p()(t,d()(n)):Nt(n).forEach(function(e){h()(t,e,g()(n,e))})}return t}i.a.use(J.a),i.a.use($.a),i.a.use(V.a).use(W.a).use(z.a),i.a.use(U.a),i.a.use(Q.a),i.a.use(j.a).use(F.a),i.a.use(M.a).use(B.a);var Tt="https://unpkg.com/@palerock/exam-qa@latest/lib-json",Ht={name:"HomeIndex",data:function(){return{isShowImporter:!1,isShowOption:!1,isFromOnline:!1,onlineLibs:[],onlineSelects:[],questionLib:"",examList:[],currentCategory:"",categories:[],optionInfo:{canReviewError:!0,canDoExam:!0,canClear:!0,hashCode:""}}},computed:{selectedLibs:function(){var t=this,e=this.onlineLibs.filter(function(e){return t.onlineSelects.includes(e.hashCode)}).map(function(t){return Pt({},t)});return e.forEach(function(t){delete t.hashCode}),e},inCategory:function(){return!!this.currentCategory}},methods:{doExam:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Dt.query("hashCode").equals(t).first().then(function(t){return T.a.all([t].concat(N()(t.questions.map(function(t){return It.query("hashCode").equals(t).first()}))))}).then(function(t){var i=O()(t),r=i[0],o=i.slice(1);r.questions=o,r?e.$router.push({name:"DoExamPage",params:{examConfig:r,isReviewError:n}}):$.a.alert({message:"该题库已失效!"})})},clearHistory:function(t){var e=this;Dt.queryByHashCode(t).then(function(t){return t=t||{},Ot.delete(t.questions||[])}).then(function(){console.log("remove the history."),e.isShowOption=!1,e.initExamList()})},showOption:function(t){t.hasHistoryError?(this.optionInfo.hashCode=t.hashCode,this.isShowOption=!0):this.doExam(t.hashCode)},selectLib:function(t){this.onlineSelects.includes(t.hashCode)?this.onlineSelects=this.onlineSelects.filter(function(e){return e!==t.hashCode}):this.onlineSelects=[].concat(N()(this.onlineSelects),[t.hashCode]),this.questionLib=I()(this.selectedLibs)},showImporter:function(){this.isShowImporter=!0,this.isFromOnline=!1},importFromExist:function(){var t=this;this.isFromOnline=!0,this.fetchOnlineLib().then(function(e){t.onlineLibs=e.filter(function(t){return t.data}).map(function(t){return Pt({},t.data,{hashCode:t.data.hashCode||rt.getHashCode(t.data.title+t.data.category)})})}).catch(function(e){console.log(e),alert("获取失败,请尝试自行录入"),t.isShowImporter=!1})},fetchOnlineLib:function(){var t=S()(q.a.mark(function t(){var e,n,i,r;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$http.get(Tt+"/map.json");case 2:if(t.t0=t.sent.data,t.t0){t.next=5;break}t.t0=[];case 5:e=t.t0,n=[],i=0;case 8:if(!(i<e.length)){t.next=18;break}return r=e[i],t.t1=n,t.next=13,this.$http.get(Tt+"/"+r);case 13:t.t2=t.sent,t.t1.push.call(t.t1,t.t2);case 15:i++,t.next=8;break;case 18:return t.abrupt("return",n);case 19:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),importLib:function(){var t=S()(q.a.mark(function t(){var e,n=this;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!((e=JSON.parse(this.questionLib))instanceof Array)){t.next=7;break}return t.next=5,T.a.all(e.map(function(){var t=S()(q.a.mark(function t(e){return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.importSingleLib(e);case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()));case 5:t.next=9;break;case 7:return t.next=9,this.importSingleLib(e);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),alert("题库格式错误:".concat(rt.getMessage(t.t0)));case 14:return t.next=16,this.initExamList();case 16:this.isShowImporter=!1,this.questionLib="";case 18:case"end":return t.stop()}},t,this,[[0,11]])}));return function(){return t.apply(this,arguments)}}(),importSingleLib:function(){var t=S()(q.a.mark(function t(e){var n;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.questions&&0!==e.questions.length){t.next=2;break}return t.abrupt("return",!1);case 2:return e.questions.forEach(function(t){t.hashCode=t.hashCode||rt.getHashCode(t)}),(n=Pt({},e,{questions:e.questions.map(function(t){return t.hashCode})})).hashCode=e.hashCode||rt.getHashCode(n),t.next=7,It.upsert(e.questions).then(function(){return Dt.upsert([n])});case 7:return t.abrupt("return",!0);case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),intoCategory:function(){var t=S()(q.a.mark(function t(){var e,n=this,i=arguments;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:"default",this.currentCategory=e,this.examList=[],t.next=5,Dt.query("hashCode").notEqual("").toArray().then(function(t){t.sort(function(t,e){return t.title.split("").reduce(function(t,e){return t+e.charCodeAt(0)},0)-e.title.split("").reduce(function(t,e){return t+e.charCodeAt(0)},0)});var e=t.map(function(t){return Ot.query("relatedQuestion").anyOf(t.questions).sortBy("createDate").then(function(e){var n=Object.fromEntries(e.map(function(t){return[t.relatedQuestion,Pt({},t,{times:t.errorTimes})]})),i=!!C()(n).find(function(t){return t.times>0});return Pt({},t,{errorMap:n,hasHistoryError:i})})});return T.a.all(e)}).then(function(t){t=t.map(function(t){return t.category=t.category||"default",t}),n.examList=t.filter(function(t){return t.category===e})});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),initExamList:function(){var t=S()(q.a.mark(function t(){var e=this;return q.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dt.query("hashCode").notEqual("").toArray().then(function(t){t=t.map(function(t){return t.category=t.category||"default",t}),e.categories=t.reduce(function(t,e){return t.includes(e.category)||t.push(e.category),t},[])});case 2:this.currentCategory&&this.intoCategory(this.currentCategory);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},mounted:function(){this.initExamList()}},Lt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.inCategory?n("van-grid",[n("van-grid-item",{attrs:{icon:"notes-o",clickable:""},on:{click:function(e){t.currentCategory=null}}},[n("div",{staticClass:"van-grid-item__text text-align-center",attrs:{slot:"text"},slot:"text"},[t._v("返回")])]),t._v(" "),t._l(t.examList,function(e){return n("van-grid-item",{key:e.hashCode,attrs:{icon:"notes-o",clickable:""},on:{click:function(n){return t.showOption(e)}}},[n("div",{staticClass:"van-grid-item__text text-align-center",attrs:{slot:"text"},slot:"text"},[t._v(t._s(e.title))])])})],2):n("van-grid",[n("van-grid-item",{attrs:{icon:"notes-o",clickable:""},on:{click:t.showImporter}},[n("div",{staticClass:"van-grid-item__text text-align-center",attrs:{slot:"text"},slot:"text"},[t._v("开始答题(导入)")])]),t._v(" "),t._l(t.categories,function(e){return n("van-grid-item",{key:e,attrs:{icon:"notes-o",clickable:""},on:{click:function(n){return t.intoCategory(e)}}},[n("div",{staticClass:"van-grid-item__text text-align-center",attrs:{slot:"text"},slot:"text"},[t._v(t._s(e))])])})],2),t._v(" "),n("van-popup",{model:{value:t.isShowImporter,callback:function(e){t.isShowImporter=e},expression:"isShowImporter"}},[n("div",{staticClass:"exam-import-box"},[t.isFromOnline?n("div",{staticStyle:{"max-height":"300px","overflow-y":"auto"}},[t.onlineLibs&&0!==t.onlineLibs.length?t._e():n("div",{staticStyle:{"text-align":"center",padding:"10px"}},[n("van-loading",{attrs:{type:"spinner"}})],1),t._v(" "),n("van-checkbox-group",{model:{value:t.onlineSelects,callback:function(e){t.onlineSelects=e},expression:"onlineSelects"}},[n("van-cell-group",t._l(t.onlineLibs,function(e,i){return n("van-cell",{key:i,attrs:{clickable:""},on:{click:function(n){return t.selectLib(e)}}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.title))])]),t._v(" "),n("van-checkbox",{attrs:{slot:"right-icon",name:e.hashCode},slot:"right-icon"})],2)}),1)],1)],1):t._e(),t._v(" "),t.isFromOnline?t._e():n("div",[n("van-cell-group",[n("van-field",{attrs:{label:"题库",type:"textarea",placeholder:"请输入题库",rows:"10"},model:{value:t.questionLib,callback:function(e){t.questionLib=e},expression:"questionLib"}})],1)],1),t._v(" "),n("div",[n("van-button",{attrs:{type:"info",size:"small",block:""},on:{click:t.importLib}},[t._v("导入题库")])],1),t._v(" "),n("div",{staticClass:"exam-m-top-small"},[n("van-button",{attrs:{type:"primary",size:"small",block:""},on:{click:t.importFromExist}},[t._v("获取在线题库")])],1)])]),t._v(" "),n("van-popup",{attrs:{position:"bottom"},model:{value:t.isShowOption,callback:function(e){t.isShowOption=e},expression:"isShowOption"}},[n("div",{},[n("van-button",{attrs:{type:"primary",block:""},on:{click:function(e){return t.doExam(t.optionInfo.hashCode)}}},[t._v("重新测试\n ")]),t._v(" "),n("van-button",{attrs:{type:"info",block:""},on:{click:function(e){return t.doExam(t.optionInfo.hashCode,!0)}}},[t._v("复习错题\n ")]),t._v(" "),n("van-button",{attrs:{type:"danger",block:""},on:{click:function(e){return t.clearHistory(t.optionInfo.hashCode)}}},[t._v("清空错题\n ")])],1)])],1)},staticRenderFns:[]};var Mt=n("VU/8")(Ht,Lt,!1,function(t){n("DkPU")},"data-v-f3506d20",null).exports;i.a.use(U.a);var Bt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-button",{attrs:{type:"default"}},[t._v("默认按钮")]),t._v(" "),n("van-button",{attrs:{type:"primary"}},[t._v("主要按钮")]),t._v(" "),n("van-button",{attrs:{type:"info"}},[t._v("信息按钮")]),t._v(" "),n("van-button",{attrs:{type:"warning"}},[t._v("警告按钮")]),t._v(" "),n("van-button",{attrs:{type:"danger"}},[t._v("危险按钮")])],1)},staticRenderFns:[]};n("VU/8")({name:"HelloWorld",data:function(){return{msg:"Welcome to Your Vue.js App"}}},Bt,!1,null,null,null).exports;i.a.use(a.a).use(u.a).use(c.a);var jt={name:"HomePage",data:function(){return{activeTabIndex:0,pages:[{title:"主页",label:"Home",api:Mt,icon:"home-o"}]}},computed:{activePage:function(){return this.pages[this.activeTabIndex]||{}},version:function(){return Rt}}},Ft={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-nav-bar",{attrs:{title:t.activePage.label,fixed:""}}),t._v(" "),n("div",{staticClass:"is-relation"},[n(t.activePage.api,{tag:"component"}),t._v(" "),n("p",{staticClass:"text-align-center is-absolute",staticStyle:{color:"#efefef",width:"100%"}},[t._v(t._s(t.version))])],1),t._v(" "),n("van-tabbar",{model:{value:t.activeTabIndex,callback:function(e){t.activeTabIndex=e},expression:"activeTabIndex"}},t._l(t.pages,function(e,i){return n("van-tabbar-item",{key:i,attrs:{icon:e.icon}},[t._v(t._s(e.label))])}),1)],1)},staticRenderFns:[]};var Qt=n("VU/8")(jt,Ft,!1,function(t){n("zW/T")},"data-v-5c9e76e7",null).exports,Ut=(n("I4j4"),n("7fQT")),Vt=(n("le1z"),n("hZxG")),Wt=(n("HZGa"),n("pykS")),zt=(n("ZuV/"),n("37Xn")),$t=(n("JRZP"),n("LK01"));function Jt(t,e){var n=x()(t);if(b.a){var i=b()(t);e&&(i=i.filter(function(e){return g()(t,e).enumerable})),n.push.apply(n,i)}return n}function Kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jt(n,!0).forEach(function(e){L()(t,e,n[e])}):d.a?p()(t,d()(n)):Jt(n).forEach(function(e){h()(t,e,g()(n,e))})}return t}i.a.use(zt.a).use($t.a),i.a.use($.a),i.a.use(M.a).use(B.a),i.a.use(Wt.a),i.a.use(Vt.a),i.a.use(W.a).use(z.a);var Zt={required:!0,score:1,usingScore:!1,type:"option",describe:"Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?Do you love me?",answerOptions:[{api:"A",describe:"Yes",isRight:!0},{api:"B",describe:"No"}]},Gt={title:"试题测试",questions:[Zt]};i.a.use(a.a).use(Ut.a).use(U.a);var Yt={name:"DoExamPage",data:function(){return{answers:[],questionNum:0,isShowResult:!1,letterIndex:N()("ABCDEFGHIJKLMNOPQRSTUVWXYZ"),examInfo:{},hasSubmit:!1,examHashCode:0,historyExams:[],showAcButtons:!1}},computed:{totalNum:function(){return this.questions.length},questions:function(){var t=this;return(this.examInfo.questions||[]).filter(function(e){return!t.isReviewError||t.historyErrorHashCodes.includes(e.hashCode)}).map(function(e,n){return Kt({},e,{active:n===t.questionNum})})},questionsInfo:function(){var t=this;return this.questions.map(function(e,n){return t.answers[n]||(t.answers[n]={results:[{}],single:{},multi:{apis:[]}}),Kt({},e,{answer:t.answers[n]||{},orderNum:n+1,isMulti:e.answerOptions.filter(function(t){return t.isRight}).length>1})})},historyErrorHashCodes:function(){return this.historyExams.filter(function(t){return t.errorTimes>0}).map(function(t){return t.hashCode})}},methods:{getQuestionTitle:function(t){return["(".concat(this.questionNum+1,"/").concat(this.totalNum,")"),t.describe].join(" ").split("\n")},getQuestionDesc:function(t){var e="";t.required||(e+="(可选)"),"option"===t.type&&(t.isMulti?e+="多选题":e+="单选题");var n=this.historyExams.find(function(e){return e.hashCode===t.hashCode});if(n){this.isReviewError&&n.errorTimes&&(e+=" (做错次数: ".concat(n.errorTimes,")"));var i=n.errorTimes+n.rightTimes;i>0&&(e+="(历史正确率:".concat((n.rightTimes/i*100).toFixed(0),"%)"))}return e},setAnswer:function(t,e){this.answers=N()(this.answers).map(function(n,i){return i===t&&(n.results=e.map(function(t){return{api:t}}),n.single.api=e[0],n.multi.apis=e),n})},toggleAnswer:function(t,e){var n=this.answers[t].multi.apis;n.includes(e)?n=n.filter(function(t){return t!==e}):(n.push(e),n=N()(n)),this.setAnswer(t,n)},checkResult:function(t){var e=this;this.answers=N()(this.answers).map(function(n,i){if(t!==i&&null!=t)return n;var r=e.questions[i].answerOptions.filter(function(t){return t.isRight}).map(function(t){return t.api});return n.results.forEach(function(t){t.isMistake=!r.includes(t.api)}),n.isAnswered=n.results.filter(function(t){return t.api}).length>0,!n.isChecked&&n.isAnswered&&(n.isMistake=n.results.length!==r.length||!!n.results.find(function(t){return t.isMistake}),n.isPass=n.isAnswered&&!n.isMistake,n.isChecked=!0),n})},turnTo:function(t){this.questionNum=t},confirmSubmit:function(){var t=this;$.a.confirm({title:"提交答案",message:"确认提交?"}).then(function(){t.submit()}).catch(function(t){console.log(t)})},submit:function(){this.checkResult();var t=this.questionsInfo.filter(function(t){return t.answer.isAnswered}).length;if(t<this.totalNum&&this.requireAllDone)$.a.alert({message:"题目还没有答完:"+"".concat(t,"/").concat(this.totalNum)});else{var e=this.questionsInfo.filter(function(t){return t.answer.isPass}).length,n=e/this.totalNum*100+"%";this.questionsInfo.filter(function(t){return t.answer.isChecked}).forEach(function(t){Ot.queryByHashCode(t.hashCode).then(function(e){e||(e={relatedQuestion:t.hashCode,errorTimes:0}),t.answer.isPass?e.rightTimes++:e.errorTimes++,Ot.upsert(e).then(function(){console.log("做题信息已保存")})})}),this.isShowResult=!0,$.a.alert({message:"答题结束,成绩如下:"+"正确:".concat(e,"(总共:").concat(this.totalNum,")(正确率:").concat(n,")")}),this.hasSubmit=!0}},adaptExamConfig:function(){var t=Kt({},Gt,{},this.examConfig);t.questions=t.questions.map(function(t){return Kt({},Zt,{},t,{hashCode:t.hashCode,answerOptions:t.answerOptions?t.answerOptions.map(function(t){return Kt({},t,{api:rt.getHashCode(t)+""})}):[]})}).filter(function(t){if(!t.describe||0===t.answerOptions.length)return console.log("错误的题目(无描述或无答案).",t),!1;var e=rt.groupArray(t.answerOptions,"isRight");if(1===e.length&&!e[0][0].isRight)return console.log("错误的题目(无正确答案).",t),!1;var n=rt.groupArray(t.answerOptions,"describe").map(function(t){if(t.length>1){var e=Kt({},t[0]);return rt.groupArray(t,"isRight").length!==t.length&&(e.invalid=!0),e}return t[0]});return n.find(function(t){return t.invalid})?(console.log("错误的题目(答案中有重复描述且对错不一).",t),!1):(t.answerOptions=rt.randomSort(n),!0)}),t.questions=rt.randomSort(t.questions),this.examInfo=t,this.examHashCode=this.examConfig.hashCode,this.loadHistoryExamInfo()},getOptionColor:function(t,e){return this.isShowResult||this.isPractice&&t.answer.isChecked?t.answer.results.map(function(t){return t.api}).includes(e.api)&&e.isRight?"#44af11":"#cd0000":"#1989fa"},loadHistoryExamInfo:function(){var t=this;Ot.queryMany(this.examConfig.questions.map(function(t){return t.hashCode})).then(function(e){t.historyExams=e.map(function(t){return Kt({},t,{hashCode:t.relatedQuestion})})})},swipe:function(t){switch(t.direction){case"Left":this.questionNum<this.totalNum-1&&this.turnTo(this.questionNum+1);break;case"Right":this.questionNum>0&&this.turnTo(this.questionNum-1);break;case"Up":this.showAcButtons=!1;break;case"Down":this.showAcButtons=!0}}},props:{examConfig:{type:Object,default:function(){return Gt}},isReviewError:{type:Boolean,default:!1},isNew:{type:Boolean,default:!1},requireAllDone:{type:Boolean,default:!1},isPractice:{type:Boolean,default:!0}},watch:{examConfig:function(){this.adaptExamConfig()}},mounted:function(){this.adaptExamConfig(),console.log("开始答题");try{plus.device.setWakelock(!0),console.log("打开屏幕常亮")}catch(t){}},destroyed:function(){console.log("结束答题");try{plus.device.setWakelock(!1),console.log("关闭屏幕常亮")}catch(t){}}},Xt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"finger",rawName:"v-finger:swipe",value:t.swipe,expression:"swipe",arg:"swipe"}],staticClass:"exam-root"},[n("van-nav-bar",{attrs:{title:t.examInfo.title,fixed:"","left-arrow":"","right-text":"目录"},on:{"click-left":function(e){return t.$router.back()},"click-right":function(e){t.showAcButtons=!t.showAcButtons}}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAcButtons,expression:"showAcButtons"}],staticClass:"ac-qn-backdrop",on:{click:function(e){e.stopPropagation(),t.showAcButtons=!1}}},[n("div",{staticClass:"exam-p-around-small ac-qn",on:{click:function(t){t.stopPropagation()}}},[n("van-row",t._l(t.questionsInfo,function(e,i){return n("van-col",{key:i,attrs:{span:"4"}},[n("div",{staticClass:"exam-circle exam-done",class:{"exam-right":e.answer.isPass&&(t.isShowResult||e.answer.isChecked&&t.isPractice),"exam-error":e.answer.isMistake&&(t.isShowResult||e.answer.isChecked&&t.isPractice),"exam-current":t.questionNum===i},on:{click:function(e){return t.turnTo(i)}}},[t._v("\n "+t._s(i+1)+"\n ")])])}),1)],1)]),t._v(" "),n("div",{staticClass:"question-box",style:"width: "+100*t.totalNum+"%;transform:translate("+100*-t.questionNum/t.totalNum+"%,0)",on:{dblclick:function(e){e.stopPropagation(),t.showAcButtons=!0}}},t._l(t.questionsInfo,function(e,i){return n("div",{key:e.hashCode,staticClass:"question-item",style:"width: "+100/t.totalNum+"%"},[n("van-panel",[n("div",{staticStyle:{padding:"10px 16px","line-height":"30px"}},[t._l(t.getQuestionTitle(e),function(e){return n("div",{staticClass:"main-qa",domProps:{innerHTML:t._s(e)}})}),t._v(" "),n("div",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v(t._s(t.getQuestionDesc(e)))])],2),t._v(" "),e.isMulti?n("div",[n("van-checkbox-group",{on:{click:function(t){t.stopPropagation()},dblclick:function(t){t.stopPropagation()}},model:{value:e.answer.multi.apis,callback:function(n){t.$set(e.answer.multi,"apis",n)},expression:"question.answer.multi.apis"}},[n("van-cell-group",t._l(e.answerOptions,function(r,o){return n("van-cell",{key:o,attrs:{clickable:""},on:{click:function(e){return t.toggleAnswer(i,r.api)}}},[n("template",{slot:"title"},[n("div",{class:{"right-answer":r.isRight&&t.isShowResult||r.isRight&&e.answer.isChecked&&t.isPractice,"error-answer":!r.isRight&&t.isShowResult||!r.isRight&&e.answer.isAnswered&&t.isPractice,"custom-title":!0},domProps:{innerHTML:t._s(t.letterIndex[o]+". "+r.describe)}})]),t._v(" "),n("van-checkbox",{attrs:{slot:"right-icon",name:r.api,"checked-color":t.getOptionColor(e,r)},slot:"right-icon"})],2)}),1)],1)],1):t._e(),t._v(" "),e.isMulti?t._e():n("div",[n("van-radio-group",{model:{value:e.answer.single.api,callback:function(n){t.$set(e.answer.single,"api",n)},expression:"question.answer.single.api"}},[n("van-cell-group",t._l(e.answerOptions,function(r,o){return n("van-cell",{key:o,attrs:{clickable:""},on:{click:function(e){return t.setAnswer(i,[r.api])}}},[n("template",{slot:"title"},[n("div",{class:{"right-answer":r.isRight&&t.isShowResult||r.isRight&&e.answer.isChecked&&t.isPractice,"error-answer":!r.isRight&&t.isShowResult||!r.isRight&&e.answer.isAnswered&&t.isPractice,"custom-title":!0},domProps:{innerHTML:t._s(t.letterIndex[o]+". "+r.describe)}})]),t._v(" "),n("van-radio",{attrs:{slot:"right-icon",name:r.api,"checked-color":t.getOptionColor(e,r)},slot:"right-icon"})],2)}),1)],1)],1)])],1)}),0),t._v(" "),t.questionsInfo[t.questionNum]?n("div",{staticClass:"text-align-center ac-buttons"},[t.questionNum>0?n("van-button",{attrs:{size:"small"},on:{click:function(e){return t.turnTo(t.questionNum-1)}}},[t._v("上一题")]):t._e(),t._v(" "),t.questionNum<t.totalNum-1?n("van-button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.turnTo(t.questionNum+1)}}},[t._v("下一题\n ")]):t._e(),t._v(" "),t.isPractice&&!t.questionsInfo[t.questionNum].answer.isChecked?n("van-button",{attrs:{size:"small",type:"warning"},on:{click:function(e){return t.checkResult(t.questionNum)}}},[t._v("检查该题答案\n ")]):t._e(),t._v(" "),t.hasSubmit?t._e():n("van-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmSubmit}},[t._v("提交\n ")])],1):t._e()],1)},staticRenderFns:[]};var te=n("VU/8")(Yt,Xt,!1,function(t){n("UKvf")},"data-v-0a23a52d",null).exports;i.a.use(s.a);var ee=new s.a({routes:[{path:"/",name:"HomePage",component:Qt},{path:"/exam",name:"DoExamPage",component:te,props:!0}]}),ne=(n("ZsCP"),n("mtWM")),ie=n.n(ne),re=n("hU7x"),oe=n.n(re),se=n("7oBh"),ae=n.n(se),ue=n("vhKK"),ce=n.n(ue);if(i.a.use(ce.a,{AlloyFinger:ae.a}),i.a.prototype.$http=ie.a,i.a.prototype.$http.jsonp=oe.a,Object.fromEntries||(Object.fromEntries=rt.fromEntries),!Array.prototype.flat)try{h()(Array.prototype,"flat",{value:function(t){return rt.flat(this,t)},enumerable:!1})}catch(t){Array.prototype.flat=function(t){return rt.flat(this,t)}}i.a.config.productionTip=!1,new i.a({el:"#app",router:ee,components:{App:o},template:"<App/>"})},PTsV:function(t,e){},RUOb:function(t,e){},UKvf:function(t,e){},ZsCP:function(t,e){},hW8u:function(t,e){},"hy4/":function(t,e){},juSK:function(t,e){},nLpc:function(t,e){},nOtf:function(t,e){},nsZj:function(t,e){},px3J:function(t,e){},sKgQ:function(t,e){},"zW/T":function(t,e){}},["NHnr"]);
|
2
|
-
//# sourceMappingURL=app.4a28c4a16706c6bcac16.js.map
|