-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.ts
More file actions
25 lines (24 loc) · 1.2 KB
/
index.ts
File metadata and controls
25 lines (24 loc) · 1.2 KB
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
export class Template {
static localeTemplate = `
// eslint-disable-next-line import/no-anonymous-default-export
export default {
}
`;
static pageComponentTemplate: (name: string) => string = (name) => {
return `
const ${name}:React.FC = () => {
return (
<section>
${name}
</section>
)
}
export default ${name};
`;
};
static iconSvgTemplate = `
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path
d="M3.33329 1.33325H12.6666C12.8434 1.33325 13.013 1.40349 13.138 1.52851C13.2631 1.65354 13.3333 1.82311 13.3333 1.99992V14.7619C13.3334 14.8215 13.3175 14.8801 13.2872 14.9314C13.257 14.9828 13.2135 15.0251 13.1614 15.054C13.1092 15.0828 13.0503 15.0972 12.9907 15.0955C12.9311 15.0939 12.8731 15.0763 12.8226 15.0446L7.99996 12.0199L3.17729 15.0439C3.12687 15.0756 3.06888 15.0932 3.00936 15.0949C2.94984 15.0966 2.89095 15.0823 2.83882 15.0535C2.7867 15.0247 2.74323 14.9825 2.71295 14.9312C2.68267 14.8799 2.66667 14.8215 2.66663 14.7619V1.99992C2.66663 1.82311 2.73686 1.65354 2.86189 1.52851C2.98691 1.40349 3.15648 1.33325 3.33329 1.33325ZM5.33329 5.99992V7.33325H10.6666V5.99992H5.33329Z" fill="#7453DA" />
</svg>`;
}