-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathobjects.js
85 lines (83 loc) · 1.84 KB
/
objects.js
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
const users = {
documentUID: {
authProvider: 'local',
email: 'janedoe@gmail.com',
name: 'johndoe1',
uid: 'cleXAMJVJYgxCEDsLXYZTjbLMui2',
},
}
const profiles = {
documentUID: {
createdAt: new Date(),
email: 'janedoe@gmail.com',
favorites: ['guideId1', 'guideId2'],
githubUrl: 'url',
isAdmin: false,
isBanned: false,
userId: 'cleXAMJVJYgxCEDsLXYZTjbLMui2',
username: 'wannaB3',
},
}
const guides = {
documentUID: {
apis: ['test1', 'test2'],
backEnd: ['test3', 'test4'],
createdAt: new Date(),
favorites: 4,
files: [
{
codeBlock: 'code here',
fileName: 'index.js',
language: 'javascript',
references: [
{
header: 'imports',
text: 'React, redux',
},
{
header: 'hooks',
text: 'useEffect, useState',
},
{
header: 'event handlers',
text: 'how to handle events',
},
{
header: 'jsx',
text: "here's what we render",
},
],
},
{
codeBlock: 'code here',
fileName: 'main.css',
language: 'css',
references: [
{
header: 'typography',
text: 'p, h1, h2, h3, h4, h5, h6',
},
],
},
{
codeBlock: 'code here',
fileName: 'api.js',
language: 'javascript',
references: [
{
header: 'express routes',
text: "here's our express and sequelize",
},
],
},
],
frontEnd: ['test5', 'test6'],
githubUrl: 'url',
isPublic: true,
isPublished: true,
tags: ['test7', 'test8', 'test9'],
title: 'how to log in and mean it',
userId: 'cleXAMJVJYgxCEDsLXYZTjbLMui2',
username: 'wannaB3',
},
}