MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / generateExample

Function generateExample

scripts/generate.js:50–73  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

48}
49
50function generateExample(name) {
51 return (
52 `/*
53 * Copyright (c) 2016-present, Parse, LLC
54 * All rights reserved.
55 *
56 * This source code is licensed under the license found in the LICENSE file in
57 * the root directory of this source tree.
58 */
59import React${padding(name.length - 5)} from 'react';
60import ${name}${padding(5 - name.length)} f` + 'rom' + ` 'components/${name}/${name}.react';
61
62export const component = ${name};
63
64export const demos = [
65 {
66 name: 'Demo name',
67 render: () => (
68 <div>Demo content</div>
69 )
70 }
71];
72`);
73}
74
75function generateTest(name) {
76 return (

Callers 1

generate.jsFile · 0.85

Calls 1

paddingFunction · 0.85

Tested by

no test coverage detected