Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mock_data.js « notebook « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c63ad773b5421e0a890570ca88f41bc3e883189 (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
97
98
99
100
101
102
103
104
export const relativeRawPath = '/test';
export const markdownCellContent = ['# Test'];
export const errorOutputContent = [
  '\u001b[0;31m---------------------------------------------------------------------------\u001b[0m',
  '\u001b[0;31mNameError\u001b[0m                                 Traceback (most recent call last)',
  '\u001b[0;32m/var/folders/cq/l637k4x13gx6y9p_gfs4c_gc0000gn/T/ipykernel_79203/294318627.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mTo\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m',
  "\u001b[0;31mNameError\u001b[0m: name 'To' is not defined",
];
export const outputWithDataframeContent = [
  '<div>\n',
  '<style scoped>\n',
  '    .dataframe tbody tr th:only-of-type {\n',
  '        vertical-align: middle;\n',
  '    }\n',
  '\n',
  '    .dataframe tbody tr th {\n',
  '        vertical-align: top;\n',
  '    }\n',
  '\n',
  '    .dataframe thead th {\n',
  '        text-align: right;\n',
  '    }\n',
  '</style>\n',
  '<table border="1" class="dataframe">\n',
  '  <thead>\n',
  '    <tr style="text-align: right;">\n',
  '      <th></th>\n',
  '      <th>column_1</th>\n',
  '      <th>column_2</th>\n',
  '    </tr>\n',
  '  </thead>\n',
  '  <tbody>\n',
  '    <tr>\n',
  '      <th>0</th>\n',
  '      <td>abc de f</td>\n',
  '      <td>a</td>\n',
  '    </tr>\n',
  '    <tr>\n',
  '      <th>1</th>\n',
  '      <td>True</td>\n',
  '      <td>0.1</td>\n',
  '    </tr>\n',
  '  </tbody>\n',
  '</table>\n',
  '</div>',
];

export const outputWithMultiIndexDataFrame = [
  '<div>\n',
  '<style scoped>\n',
  '    .dataframe tbody tr th:only-of-type {\n',
  '        vertical-align: middle;\n',
  '    }\n',
  '\n',
  '    .dataframe tbody tr th {\n',
  '        vertical-align: top;\n',
  '    }\n',
  '\n',
  '    .dataframe thead th {\n',
  '        text-align: right;\n',
  '    }\n',
  '</style>\n',
  '<table border="1" class="dataframe">\n',
  '  <thead>\n',
  '    <tr style="text-align: right;">\n',
  '      <th></th>\n',
  '      <th></th>\n',
  '      <th>0</th>\n',
  '    </tr>\n',
  '    <tr>\n',
  '      <th>first</th>\n',
  '      <th>second</th>\n',
  '      <th></th>\n',
  '    </tr>\n',
  '  </thead>\n',
  '  <tbody>\n',
  '    <tr>\n',
  '      <th rowspan="2" valign="top">bar</th>\n',
  '      <th>one</th>\n',
  '      <td>1</td>\n',
  '    </tr>\n',
  '    <tr>\n',
  '      <th>two</th>\n',
  '      <td>2</td>\n',
  '    </tr>\n',
  '    <tr>\n',
  '      <th rowspan="2" valign="top">baz</th>\n',
  '      <th>one</th>\n',
  '      <td>3</td>\n',
  '    </tr>\n',
  '    <tr>\n',
  '      <th>two</th>\n',
  '      <td>4</td>\n',
  '    </tr>\n',
  '  </tbody>\n',
  '</table>\n',
  '</div>',
];

export const outputWithDataframe = {
  data: {
    'text/html': outputWithDataframeContent,
  },
};