debian-mirror-gitlab/spec/frontend/design_management/mock_data/notes.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
770 B
JavaScript
Raw Normal View History

2020-11-24 15:15:51 +05:30
import DISCUSSION_1 from './discussion';
const DISCUSSION_2 = {
id: 'discussion-id-2',
notes: {
nodes: [
{
id: 'note-id-2',
index: 2,
position: {
height: 50,
width: 50,
x: 25,
y: 25,
},
author: {
name: 'Mary',
webUrl: 'link-to-mary-profile',
},
createdAt: '2020-05-08T07:10:45Z',
userPermissions: {
adminNote: true,
},
resolved: true,
},
],
},
};
2020-05-24 23:13:21 +05:30
export default [
{
2020-11-24 15:15:51 +05:30
...DISCUSSION_1.notes[0],
2020-05-24 23:13:21 +05:30
discussion: {
2020-11-24 15:15:51 +05:30
id: DISCUSSION_1.id,
notes: {
nodes: DISCUSSION_1.notes,
},
2020-05-24 23:13:21 +05:30
},
},
{
2020-11-24 15:15:51 +05:30
...DISCUSSION_2.notes.nodes[0],
discussion: DISCUSSION_2,
2020-05-24 23:13:21 +05:30
},
];