Beispiel #1
0
export function project(projectIn) {
  return defaultsDeep({}, projectIn, {
    projectKey: Date.now().toString(),
    sources: {
      html: '<!doctype html>My Website',
      css: 'p { }',
      javascript: 'alert("Hi")',
    },
    enabledLibraries: [],
    hiddenUIComponents: ['console'],
    updatedAt: Date.now(),
  });
}
Beispiel #2
0
export function user(userIn) {
  return defaultsDeep({}, userIn, {
    displayName: 'Popcode User',
    photoURL: 'https://google.com/popcodeuser.jpg',
    uid: 'abc123',
    providerData: [
      {
        displayName: 'Popcode User',
        photoURL: 'https://google.com/popcodeuser.jpg',
        providerId: 'google.com',
      },
    ],
  });
}