1 Star 0 Fork 0

acrowise / ReacType

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mockData.js 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
user: {
username: 'reactype123',
email: 'reactype@gmail.com',
password: 'Reactype123!@#',
userId: '604a552e9167c02198895823',
},
state: {
name: 'test',
isLoggedIn: false,
components: [
{
id: 1,
name: 'index',
style: {},
code: '<div>Drag in a component or HTML element into the canvas!</div>',
children: [],
},
],
projectType: 'Next.js',
rootComponents: [1],
canvasFocus: { componentId: 1, childId: null },
nextComponentId: 2,
nextChildId: 1,
},
projectToSave: {
name: 'super test project',
userId: '60469fc6c435891422b3a84c',
username: 'test',
project: {
name: 'test',
isLoggedIn: false,
components: [
{
id: 1,
name: 'index',
style: {},
code: '<div>Drag in a component or HTML element into the canvas!</div>',
children: [],
},
],
projectType: 'Next.js',
rootComponents: [1],
canvasFocus: { componentId: 1, childId: null },
nextComponentId: 2,
nextChildId: 1,
},
},
GET_PROJECTS: `query GetAllProjects($userId: ID) {
getAllProjects(userId: $userId) {
name
likes
id
userId
username
published
}
}`,
ADD_LIKE: `mutation AddLike($projId: ID!, $likes: Int!) {
addLike(projId: $projId, likes: $likes)
{
id
likes
}
}`,
PUBLISH_PROJECT: `mutation Publish($projId: ID!, $published: Boolean!) {
publishProject(projId: $projId, published: $published)
{
id
published
}
}`,
MAKE_COPY: `mutation MakeCopy ($userId: ID!, $projId: ID!, $username: String!) {
makeCopy(userId: $userId, projId: $projId, username: $username)
{
id
userId
username
}
}`,
DELETE_PROJECT: `mutation DeleteProject($projId: ID!) {
deleteProject(projId: $projId)
{
id
}
}`,
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/acrowise/ReacType.git
git@gitee.com:acrowise/ReacType.git
acrowise
ReacType
ReacType
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891