]> source.dussan.org Git - sonarqube.git/blob
183856aaea48eb20ab4ddba5d7601384fb8af316
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`generates token 1`] = `
4 <div
5   className="boxed-group onboarding-step is-open"
6 >
7   <div
8     className="onboarding-step-number"
9   >
10     1
11   </div>
12   <div
13     className="boxed-group-header"
14   >
15     <h2>
16       onboarding.token.header
17     </h2>
18   </div>
19   <div>
20     <div
21       className="boxed-group-inner"
22     >
23       <div>
24         <div>
25           <Radio
26             checked={true}
27             onCheck={[Function]}
28             value="generate"
29           >
30             onboarding.token.generate.PROJECT_ANALYSIS_TOKEN
31           </Radio>
32           <div
33             className="big-spacer-top"
34           >
35             <form
36               className="display-flex-center"
37               onSubmit={[Function]}
38             >
39               <div
40                 className="display-flex-column"
41               >
42                 <label
43                   className="h3"
44                   htmlFor="generate-token-input"
45                 >
46                   onboarding.token.name.label
47                   <DocumentationTooltip
48                     className="spacer-left"
49                     content="onboarding.token.name.help"
50                     links={
51                       [
52                         {
53                           "href": "/user-guide/user-account/generating-and-using-tokens/",
54                           "label": "learn_more",
55                         },
56                       ]
57                     }
58                   />
59                 </label>
60                 <input
61                   autoFocus={true}
62                   className="input-super-large spacer-right spacer-top text-middle"
63                   id="generate-token-input"
64                   onChange={[Function]}
65                   required={true}
66                   type="text"
67                   value=""
68                 />
69               </div>
70               <div
71                 className="display-flex-column spacer-left big-spacer-right"
72               >
73                 <label
74                   className="h3"
75                   htmlFor="token-select-expiration"
76                 >
77                   users.tokens.expires_in
78                 </label>
79                 <div
80                   className="display-flex-center"
81                 >
82                   <Select
83                     className="spacer-top abs-width-100 spacer-right"
84                     id="token-select-expiration"
85                     isSearchable={false}
86                     onChange={[Function]}
87                     options={
88                       [
89                         {
90                           "label": "users.tokens.expiration.30",
91                           "value": 30,
92                         },
93                         {
94                           "label": "users.tokens.expiration.90",
95                           "value": 90,
96                         },
97                         {
98                           "label": "users.tokens.expiration.365",
99                           "value": 365,
100                         },
101                         {
102                           "label": "users.tokens.expiration.0",
103                           "value": 0,
104                         },
105                       ]
106                     }
107                     value={
108                       {
109                         "label": "users.tokens.expiration.30",
110                         "value": 30,
111                       }
112                     }
113                   />
114                   <SubmitButton
115                     className="text-middle spacer-top"
116                     disabled={true}
117                   >
118                     onboarding.token.generate
119                   </SubmitButton>
120                 </div>
121               </div>
122             </form>
123             <ProjectTokenScopeInfo
124               className="width-50"
125             />
126           </div>
127         </div>
128         <div
129           className="big-spacer-top"
130         >
131           <Radio
132             checked={false}
133             onCheck={[Function]}
134             value="use-existing"
135           >
136             onboarding.token.use_existing_token
137           </Radio>
138         </div>
139       </div>
140       <div
141         className="note big-spacer-top width-50"
142       >
143         <FormattedMessage
144           defaultMessage="onboarding.token.text"
145           id="onboarding.token.text"
146           values={
147             {
148               "link": <ForwardRef(Link)
149                 target="_blank"
150                 to="/account/security"
151               >
152                 onboarding.token.text.user_account
153               </ForwardRef(Link)>,
154             }
155           }
156         />
157       </div>
158     </div>
159   </div>
160 </div>
161 `;
162
163 exports[`generates token 2`] = `
164 <div
165   className="boxed-group onboarding-step is-open"
166 >
167   <div
168     className="onboarding-step-number"
169   >
170     1
171   </div>
172   <div
173     className="boxed-group-header"
174   >
175     <h2>
176       onboarding.token.header
177     </h2>
178   </div>
179   <div>
180     <div
181       className="boxed-group-inner"
182     >
183       <div>
184         <div>
185           <Radio
186             checked={true}
187             onCheck={[Function]}
188             value="generate"
189           >
190             onboarding.token.generate.PROJECT_ANALYSIS_TOKEN
191           </Radio>
192           <div
193             className="big-spacer-top"
194           >
195             <form
196               className="display-flex-center"
197               onSubmit={[Function]}
198             >
199               <div
200                 className="display-flex-column"
201               >
202                 <label
203                   className="h3"
204                   htmlFor="generate-token-input"
205                 >
206                   onboarding.token.name.label
207                   <DocumentationTooltip
208                     className="spacer-left"
209                     content="onboarding.token.name.help"
210                     links={
211                       [
212                         {
213                           "href": "/user-guide/user-account/generating-and-using-tokens/",
214                           "label": "learn_more",
215                         },
216                       ]
217                     }
218                   />
219                 </label>
220                 <input
221                   autoFocus={true}
222                   className="input-super-large spacer-right spacer-top text-middle"
223                   id="generate-token-input"
224                   onChange={[Function]}
225                   required={true}
226                   type="text"
227                   value="my token"
228                 />
229               </div>
230               <div
231                 className="display-flex-column spacer-left big-spacer-right"
232               >
233                 <label
234                   className="h3"
235                   htmlFor="token-select-expiration"
236                 >
237                   users.tokens.expires_in
238                 </label>
239                 <div
240                   className="display-flex-center"
241                 >
242                   <Select
243                     className="spacer-top abs-width-100 spacer-right"
244                     id="token-select-expiration"
245                     isSearchable={false}
246                     onChange={[Function]}
247                     options={
248                       [
249                         {
250                           "label": "users.tokens.expiration.30",
251                           "value": 30,
252                         },
253                         {
254                           "label": "users.tokens.expiration.90",
255                           "value": 90,
256                         },
257                         {
258                           "label": "users.tokens.expiration.365",
259                           "value": 365,
260                         },
261                         {
262                           "label": "users.tokens.expiration.0",
263                           "value": 0,
264                         },
265                       ]
266                     }
267                     value={
268                       {
269                         "label": "users.tokens.expiration.30",
270                         "value": 30,
271                       }
272                     }
273                   />
274                   <i
275                     className="spinner text-middle"
276                   />
277                 </div>
278               </div>
279             </form>
280             <ProjectTokenScopeInfo
281               className="width-50"
282             />
283           </div>
284         </div>
285         <div
286           className="big-spacer-top"
287         >
288           <Radio
289             checked={false}
290             onCheck={[Function]}
291             value="use-existing"
292           >
293             onboarding.token.use_existing_token
294           </Radio>
295         </div>
296       </div>
297       <div
298         className="note big-spacer-top width-50"
299       >
300         <FormattedMessage
301           defaultMessage="onboarding.token.text"
302           id="onboarding.token.text"
303           values={
304             {
305               "link": <ForwardRef(Link)
306                 target="_blank"
307                 to="/account/security"
308               >
309                 onboarding.token.text.user_account
310               </ForwardRef(Link)>,
311             }
312           }
313         />
314       </div>
315     </div>
316   </div>
317 </div>
318 `;
319
320 exports[`generates token 3`] = `
321 <div
322   className="boxed-group onboarding-step is-open"
323 >
324   <div
325     className="onboarding-step-number"
326   >
327     1
328   </div>
329   <div
330     className="boxed-group-header"
331   >
332     <h2>
333       onboarding.token.header
334     </h2>
335   </div>
336   <div>
337     <div
338       className="boxed-group-inner"
339     >
340       <form
341         onSubmit={[Function]}
342       >
343         <span
344           className="text-middle"
345         >
346           my token
347           : 
348         </span>
349         <strong
350           className="spacer-right text-middle"
351         >
352           abcd1234
353         </strong>
354         <DeleteButton
355           className="button-small text-middle"
356           onClick={[Function]}
357         />
358       </form>
359       <div
360         className="note big-spacer-top width-50"
361       >
362         <FormattedMessage
363           defaultMessage="onboarding.token.text"
364           id="onboarding.token.text"
365           values={
366             {
367               "link": <ForwardRef(Link)
368                 target="_blank"
369                 to="/account/security"
370               >
371                 onboarding.token.text.user_account
372               </ForwardRef(Link)>,
373             }
374           }
375         />
376       </div>
377       <div
378         className="big-spacer-top"
379       >
380         <Button
381           className="js-continue"
382           onClick={[Function]}
383         >
384           continue
385         </Button>
386       </div>
387     </div>
388   </div>
389 </div>
390 `;
391
392 exports[`revokes token 1`] = `
393 <div
394   className="boxed-group onboarding-step is-open"
395 >
396   <div
397     className="onboarding-step-number"
398   >
399     1
400   </div>
401   <div
402     className="boxed-group-header"
403   >
404     <h2>
405       onboarding.token.header
406     </h2>
407   </div>
408   <div>
409     <div
410       className="boxed-group-inner"
411     >
412       <form
413         onSubmit={[Function]}
414       >
415         <span
416           className="text-middle"
417         >
418           my token
419           : 
420         </span>
421         <strong
422           className="spacer-right text-middle"
423         >
424           abcd1234
425         </strong>
426         <DeleteButton
427           className="button-small text-middle"
428           onClick={[Function]}
429         />
430       </form>
431       <div
432         className="note big-spacer-top width-50"
433       >
434         <FormattedMessage
435           defaultMessage="onboarding.token.text"
436           id="onboarding.token.text"
437           values={
438             {
439               "link": <ForwardRef(Link)
440                 target="_blank"
441                 to="/account/security"
442               >
443                 onboarding.token.text.user_account
444               </ForwardRef(Link)>,
445             }
446           }
447         />
448       </div>
449       <div
450         className="big-spacer-top"
451       >
452         <Button
453           className="js-continue"
454           onClick={[Function]}
455         >
456           continue
457         </Button>
458       </div>
459     </div>
460   </div>
461 </div>
462 `;
463
464 exports[`revokes token 2`] = `
465 <div
466   className="boxed-group onboarding-step is-open"
467 >
468   <div
469     className="onboarding-step-number"
470   >
471     1
472   </div>
473   <div
474     className="boxed-group-header"
475   >
476     <h2>
477       onboarding.token.header
478     </h2>
479   </div>
480   <div>
481     <div
482       className="boxed-group-inner"
483     >
484       <form
485         onSubmit={[Function]}
486       >
487         <span
488           className="text-middle"
489         >
490           my token
491           : 
492         </span>
493         <strong
494           className="spacer-right text-middle"
495         >
496           abcd1234
497         </strong>
498         <i
499           className="spinner text-middle"
500         />
501       </form>
502       <div
503         className="note big-spacer-top width-50"
504       >
505         <FormattedMessage
506           defaultMessage="onboarding.token.text"
507           id="onboarding.token.text"
508           values={
509             {
510               "link": <ForwardRef(Link)
511                 target="_blank"
512                 to="/account/security"
513               >
514                 onboarding.token.text.user_account
515               </ForwardRef(Link)>,
516             }
517           }
518         />
519       </div>
520       <div
521         className="big-spacer-top"
522       >
523         <Button
524           className="js-continue"
525           onClick={[Function]}
526         >
527           continue
528         </Button>
529       </div>
530     </div>
531   </div>
532 </div>
533 `;
534
535 exports[`revokes token 3`] = `
536 <div
537   className="boxed-group onboarding-step is-open"
538 >
539   <div
540     className="onboarding-step-number"
541   >
542     1
543   </div>
544   <div
545     className="boxed-group-header"
546   >
547     <h2>
548       onboarding.token.header
549     </h2>
550   </div>
551   <div>
552     <div
553       className="boxed-group-inner"
554     >
555       <div>
556         <div>
557           <Radio
558             checked={true}
559             onCheck={[Function]}
560             value="generate"
561           >
562             onboarding.token.generate.PROJECT_ANALYSIS_TOKEN
563           </Radio>
564           <div
565             className="big-spacer-top"
566           >
567             <form
568               className="display-flex-center"
569               onSubmit={[Function]}
570             >
571               <div
572                 className="display-flex-column"
573               >
574                 <label
575                   className="h3"
576                   htmlFor="generate-token-input"
577                 >
578                   onboarding.token.name.label
579                   <DocumentationTooltip
580                     className="spacer-left"
581                     content="onboarding.token.name.help"
582                     links={
583                       [
584                         {
585                           "href": "/user-guide/user-account/generating-and-using-tokens/",
586                           "label": "learn_more",
587                         },
588                       ]
589                     }
590                   />
591                 </label>
592                 <input
593                   autoFocus={true}
594                   className="input-super-large spacer-right spacer-top text-middle"
595                   id="generate-token-input"
596                   onChange={[Function]}
597                   required={true}
598                   type="text"
599                   value=""
600                 />
601               </div>
602               <div
603                 className="display-flex-column spacer-left big-spacer-right"
604               >
605                 <label
606                   className="h3"
607                   htmlFor="token-select-expiration"
608                 >
609                   users.tokens.expires_in
610                 </label>
611                 <div
612                   className="display-flex-center"
613                 >
614                   <Select
615                     className="spacer-top abs-width-100 spacer-right"
616                     id="token-select-expiration"
617                     isSearchable={false}
618                     onChange={[Function]}
619                     options={
620                       [
621                         {
622                           "label": "users.tokens.expiration.30",
623                           "value": 30,
624                         },
625                         {
626                           "label": "users.tokens.expiration.90",
627                           "value": 90,
628                         },
629                         {
630                           "label": "users.tokens.expiration.365",
631                           "value": 365,
632                         },
633                         {
634                           "label": "users.tokens.expiration.0",
635                           "value": 0,
636                         },
637                       ]
638                     }
639                     value={
640                       {
641                         "label": "users.tokens.expiration.30",
642                         "value": 30,
643                       }
644                     }
645                   />
646                   <SubmitButton
647                     className="text-middle spacer-top"
648                     disabled={true}
649                   >
650                     onboarding.token.generate
651                   </SubmitButton>
652                 </div>
653               </div>
654             </form>
655             <ProjectTokenScopeInfo
656               className="width-50"
657             />
658           </div>
659         </div>
660         <div
661           className="big-spacer-top"
662         >
663           <Radio
664             checked={false}
665             onCheck={[Function]}
666             value="use-existing"
667           >
668             onboarding.token.use_existing_token
669           </Radio>
670         </div>
671       </div>
672       <div
673         className="note big-spacer-top width-50"
674       >
675         <FormattedMessage
676           defaultMessage="onboarding.token.text"
677           id="onboarding.token.text"
678           values={
679             {
680               "link": <ForwardRef(Link)
681                 target="_blank"
682                 to="/account/security"
683               >
684                 onboarding.token.text.user_account
685               </ForwardRef(Link)>,
686             }
687           }
688         />
689       </div>
690     </div>
691   </div>
692 </div>
693 `;