blob: 92511acc4f809d8a6aa542a3043e104c88c93ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Snippet Description Edit component rendering matches the snapshot 1`] = `
<div
class="form-group js-description-input"
>
<label
for="reference-0"
>
Description (optional)
</label>
<div
class="js-collapsible-input"
>
<div
class="d-none js-collapsed"
>
<gl-form-input-stub
class="form-control"
data-testid="description-placeholder"
placeholder="Describe what your snippet does or how to use it…"
/>
</div>
<div
class="gfm-form gl-overflow-hidden js-expanded js-vue-markdown-field md-area position-relative"
data-uploads-path=""
>
<markdown-header-stub
data-testid="markdownHeader"
enablepreview="true"
linecontent=""
markdownpreviewpath="foo/"
restrictedtoolbaritems=""
suggestionstartindex="0"
uploadspath=""
/>
<div
class="md-write-holder"
>
<div
class="div-dropzone-wrapper zen-backdrop"
>
<div
class="div-dropzone js-invalid-dropzone"
>
<textarea
aria-label="Description"
class="js-autosize js-gfm-input js-gfm-input-initialized markdown-area note-textarea"
data-supports-quick-actions="false"
data-testid="snippet-description-field"
dir="auto"
id="reference-0"
placeholder="Write a comment or drag your files here…"
style="overflow-x: hidden; word-wrap: break-word; overflow-y: hidden;"
/>
<div
class="div-dropzone-hover"
>
<svg
class="div-dropzone-icon s24"
>
<use
xlink:href="undefined#paperclip"
/>
</svg>
</div>
</div>
<a
aria-label="Leave zen mode"
class="gl-text-gray-500 js-zen-leave zen-control zen-control-leave"
href="#"
>
<gl-icon-stub
name="minimize"
size="16"
/>
</a>
<markdown-toolbar-stub
canattachfile="true"
markdowndocspath="help/"
showcommenttoolbar="true"
/>
</div>
</div>
<div
class="gl-px-5 js-vue-md-preview md-preview-holder"
style="display: none;"
>
<div
class="md"
/>
</div>
</div>
</div>
</div>
`;
|