Skip to content

Commit 5a0d666

Browse files
nm123githubCompuIves
authored andcommitted
add markojs server template support (#1512)
* Add @nm123github as a contributor * add marko template support to codesandbox * Do not deploy on netlify * Update .all-contributorsrc * Update README.md * marko is a client template * Add @nm123github as a contributor * make markojs a server template * removing unused code.. * marko svg icon change..
1 parent 21bab07 commit 5a0d666

File tree

6 files changed

+232
-3
lines changed

6 files changed

+232
-3
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,15 @@
11211121
"contributions": [
11221122
"code"
11231123
]
1124+
},
1125+
{
1126+
"login": "nm123github",
1127+
"name": "Neville Mehta",
1128+
"avatar_url": "https://avatars2.githubusercontent.com/u/8527474?v=4",
1129+
"profile": "https://twitter.com/ask_neville",
1130+
"contributions": [
1131+
"code"
1132+
]
11241133
}
11251134
],
11261135
"repoType": "github",

README.md

Lines changed: 20 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
import * as React from 'react';
2+
3+
export default ({ width = 32, height = 32, className }) => (
4+
<svg
5+
width={`${width}px`}
6+
height={`${height}px`}
7+
className={className}
8+
viewBox="0 0 256 110"
9+
version="1.1"
10+
preserveAspectRatio="xMidYMid"
11+
xmlns="http://www.w3.org/2000/svg"
12+
>
13+
<defs>
14+
<linearGradient
15+
x1="49.9109718%"
16+
y1="99.9084071%"
17+
x2="49.9109718%"
18+
y2="-0.0902654867%"
19+
id="linearGradient-1"
20+
>
21+
<stop stop-color="#8AC23E" offset="0%" />
22+
<stop stop-color="#8AC23E" stop-opacity="0" offset="100%" />
23+
</linearGradient>
24+
<linearGradient
25+
x1="49.9835165%"
26+
y1="0.0637125664%"
27+
x2="49.9835165%"
28+
y2="100.062389%"
29+
id="linearGradient-2"
30+
>
31+
<stop stop-color="#698932" offset="0%" />
32+
<stop stop-color="#698932" stop-opacity="0" offset="100%" />
33+
</linearGradient>
34+
<linearGradient
35+
x1="50.0595611%"
36+
y1="0.0637125664%"
37+
x2="50.0595611%"
38+
y2="100.062389%"
39+
id="linearGradient-3"
40+
>
41+
<stop stop-color="#FFED01" offset="0%" />
42+
<stop stop-color="#FFED01" stop-opacity="0" offset="100%" />
43+
</linearGradient>
44+
<linearGradient
45+
x1="50.0170846%"
46+
y1="0.0637125664%"
47+
x2="50.0170846%"
48+
y2="100.092699%"
49+
id="linearGradient-4"
50+
>
51+
<stop stop-color="#E02A89" offset="0%" />
52+
<stop stop-color="#E02A89" stop-opacity="0" offset="100%" />
53+
</linearGradient>
54+
<linearGradient
55+
x1="49.9631661%"
56+
y1="-0.0915929204%"
57+
x2="49.9631661%"
58+
y2="99.9070796%"
59+
id="linearGradient-5"
60+
>
61+
<stop stop-color="#7F1E4F" offset="0%" />
62+
<stop stop-color="#7F1E4F" stop-opacity="0" offset="100%" />
63+
</linearGradient>
64+
<linearGradient
65+
x1="49.9652038%"
66+
y1="-0.0915929204%"
67+
x2="49.9652038%"
68+
y2="99.9070796%"
69+
id="linearGradient-6"
70+
>
71+
<stop stop-color="#E95506" offset="0%" />
72+
<stop stop-color="#E95506" stop-opacity="0" offset="100%" />
73+
</linearGradient>
74+
<linearGradient
75+
x1="49.9766458%"
76+
y1="99.9084071%"
77+
x2="49.9766458%"
78+
y2="-0.0265486726%"
79+
id="linearGradient-7"
80+
>
81+
<stop stop-color="#88D0F1" offset="0%" />
82+
<stop stop-color="#88D0F1" stop-opacity="0" offset="100%" />
83+
</linearGradient>
84+
<linearGradient
85+
x1="50.0205329%"
86+
y1="0.0637125664%"
87+
x2="50.0205329%"
88+
y2="99.9986726%"
89+
id="linearGradient-8"
90+
>
91+
<stop stop-color="#00828B" offset="0%" />
92+
<stop stop-color="#00828B" stop-opacity="0" offset="83.25%" />
93+
</linearGradient>
94+
<linearGradient
95+
x1="50.078022%"
96+
y1="99.9752212%"
97+
x2="50.078022%"
98+
y2="0.0705752212%"
99+
id="linearGradient-9"
100+
>
101+
<stop stop-color="#2073BA" offset="0%" />
102+
<stop stop-color="#2073BA" stop-opacity="0" offset="100%" />
103+
</linearGradient>
104+
<linearGradient
105+
x1="50.0177116%"
106+
y1="0.0637125664%"
107+
x2="50.0177116%"
108+
y2="99.9986726%"
109+
id="linearGradient-10"
110+
>
111+
<stop stop-color="#8ED0E1" offset="0%" />
112+
<stop stop-color="#88D0F1" stop-opacity="0" offset="100%" />
113+
</linearGradient>
114+
</defs>
115+
<g>
116+
<path
117+
d="M128.1,0 L164.2,0 C150.9,21.8 136.2,45.8 121.5,69.7 L85.4,69.7 C100.1,45.8 114.8,21.8 128.1,0 Z"
118+
fill="#8DC220"
119+
/>
120+
<path
121+
d="M42.7,0 L78.8,0 C71.7,11.6 64.5,23.3 57.4,34.9 C50.3,46.5 43.2,58.1 36.1,69.7 C43.2,81.3 50.3,93 57.4,104.6 C64.5,116.2 71.6,127.8 78.8,139.4 L42.7,139.4 C35.6,127.8 28.4,116.2 21.3,104.6 C14.2,93.1 7.1,81.4 0,69.8 C7.1,58.2 14.2,46.6 21.3,35 C28.4,23.3 35.6,11.7 42.7,0 Z"
122+
fill="#44BFEF"
123+
/>
124+
<path
125+
d="M42.7,0 L42.7,0 C57.4,24 72.1,48 85.4,69.7 L121.5,69.7 C108.2,48 93.5,24 78.8,0 L78.8,0 L42.7,0 Z"
126+
fill="#00AC71"
127+
/>
128+
<path
129+
d="M164.2,0 L128.1,0 C135.2,11.6 142.3,23.3 149.5,34.9 C156.6,46.5 163.7,58.1 170.9,69.7 C163.8,81.3 156.6,93 149.5,104.6 C142.4,116.2 135.3,127.8 128.1,139.4 L164.2,139.4 C171.3,127.8 178.4,116.2 185.6,104.6 C192.7,93 199.8,81.4 207,69.7 C199.8,58.1 192.7,46.5 185.6,34.9 C178.5,23.3 171.3,11.7 164.2,0 Z"
130+
fill="#F9BC00"
131+
/>
132+
<path
133+
d="M149.3,24.6 L113.2,24.6 C108.6,32.1 104,39.7 99.4,47.2 C94.8,54.7 90.2,62.3 85.5,69.8 L121.6,69.8 C126.2,62.3 130.9,54.7 135.5,47.2 C140,39.6 144.6,32.1 149.3,24.6 Z"
134+
fill="url(#linearGradient-1)"
135+
/>
136+
<path
137+
d="M100.5,45.2 L136.6,45.2 C141.2,37.7 145.8,30.1 150.4,22.6 C155,15.1 159.6,7.5 164.2,0 L128.1,0 C123.5,7.5 118.9,15.1 114.3,22.6 C109.7,30.2 105.1,37.7 100.5,45.2 Z"
138+
fill="url(#linearGradient-2)"
139+
/>
140+
<path
141+
d="M191.9,45.2 L155.8,45.2 C151.2,37.7 146.5,30.1 141.9,22.6 C137.3,15.1 132.7,7.5 128.1,0 L164.2,0 C168.8,7.5 173.4,15.1 178,22.6 C182.7,30.2 187.3,37.7 191.9,45.2 Z"
142+
fill="url(#linearGradient-3)"
143+
/>
144+
<path
145+
d="M213.2,0 L177.1,0 C184.2,11.7 191.3,23.3 198.4,34.9 C205.5,46.5 212.7,58.1 219.8,69.7 C212.7,81.3 205.5,93 198.4,104.6 C191.3,116.2 184.2,127.8 177,139.4 L213.1,139.4 C220.2,127.8 227.3,116.2 234.5,104.6 C241.6,93 248.7,81.4 255.9,69.7 C248.8,58.1 241.7,46.5 234.5,34.9 C227.5,23.3 220.3,11.7 213.2,0 Z"
146+
fill="#DF1B1C"
147+
/>
148+
<path
149+
d="M240.9,45.2 L204.8,45.2 C200.1,37.7 195.5,30.1 190.9,22.6 C186.3,15.1 181.7,7.5 177.1,0 L213.2,0 C217.8,7.5 222.4,15.1 227,22.6 C231.6,30.2 236.3,37.7 240.9,45.2 Z"
150+
fill="url(#linearGradient-4)"
151+
/>
152+
<path
153+
d="M192.2,115 L228.3,115 C232.9,107.5 237.5,100 242.1,92.4 C246.7,84.9 251.3,77.3 256,69.8 L219.8,69.8 C215.2,77.3 210.6,84.9 206,92.4 C201.4,99.9 196.8,107.4 192.2,115 Z"
154+
fill="url(#linearGradient-5)"
155+
/>
156+
<path
157+
d="M143.2,115 L179.3,115 C183.9,107.5 188.5,99.9 193.1,92.4 C197.7,84.9 202.3,77.3 207,69.8 L170.9,69.8 C166.3,77.3 161.7,84.9 157.1,92.4 C152.4,99.9 147.8,107.4 143.2,115 Z"
158+
fill="url(#linearGradient-6)"
159+
/>
160+
<path
161+
d="M63.8,24.6 L27.7,24.6 C23.1,32.1 18.5,39.7 13.9,47.2 C9.2,54.7 4.6,62.3 0,69.8 L36.1,69.8 C40.7,62.3 45.3,54.8 49.9,47.2 C54.5,39.7 59.1,32.1 63.8,24.6 Z"
162+
fill="url(#linearGradient-7)"
163+
/>
164+
<path
165+
d="M15,45.2 L51.1,45.2 C55.7,37.7 60.3,30.1 64.9,22.6 C69.6,15.1 74.2,7.5 78.8,0 L42.7,0 C38.1,7.5 33.5,15 28.9,22.6 C24.3,30.1 19.7,37.7 15,45.2 Z"
166+
fill="url(#linearGradient-8)"
167+
/>
168+
<path
169+
d="M15,94.3 L51.1,94.3 C55.7,101.8 60.3,109.4 64.9,116.9 C69.5,124.4 74.1,132 78.7,139.5 L42.6,139.5 C38,132 33.3,124.5 28.7,116.9 C24.2,109.4 19.6,101.9 15,94.3 Z"
170+
fill="url(#linearGradient-9)"
171+
/>
172+
<path
173+
d="M106.5,45.2 L70.4,45.2 C65.8,37.7 61.2,30.1 56.6,22.6 C51.9,15.1 47.3,7.5 42.7,0 L78.8,0 C83.4,7.5 88,15 92.6,22.6 C97.3,30.1 101.9,37.7 106.5,45.2 Z"
174+
fill="url(#linearGradient-10)"
175+
/>
176+
</g>
177+
</svg>
178+
);

packages/common/src/templates/icons.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Dojo from '../components/logos/Dojo';
1010
import CxJS from '../components/logos/CxJS';
1111
import Reason from '../components/logos/Reason';
1212
import Gatsby from '../components/logos/Gatsby';
13+
import Marko from '../components/logos/Marko';
1314
import Next from '../components/logos/Next';
1415
import Nuxt from '../components/logos/Nuxt';
1516
import Node from '../components/logos/Node';
@@ -34,6 +35,7 @@ import {
3435
cxjs,
3536
reason,
3637
gatsby,
38+
marko,
3739
next,
3840
nuxt,
3941
node,
@@ -84,6 +86,8 @@ export default function getIcon(theme: TemplateType): ReturnedIcon {
8486
return Reason;
8587
case gatsby.name:
8688
return Gatsby;
89+
case marko.name:
90+
return Marko;
8791
case next.name:
8892
return Next;
8993
case nuxt.name:

packages/common/src/templates/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import cxjs from './cxjs';
1212
import dojo from './dojo';
1313
import custom from './custom';
1414
import gatsby from './gatsby';
15+
import marko from './marko';
1516
import nuxt from './nuxt';
1617
import next from './next';
1718
import node from './node';
@@ -29,6 +30,7 @@ export {
2930
custom,
3031
apollo,
3132
gatsby,
33+
marko,
3234
next,
3335
nuxt,
3436
node,
@@ -63,6 +65,7 @@ export type TemplateType =
6365
| 'cxjs'
6466
| '@dojo/cli-create-app'
6567
| 'gatsby'
68+
| 'marko'
6669
| 'nuxt'
6770
| 'next'
6871
| 'reason'
@@ -101,6 +104,8 @@ export default function getDefinition(theme: TemplateType) {
101104
return custom;
102105
case gatsby.name:
103106
return gatsby;
107+
case marko.name:
108+
return marko;
104109
case nuxt.name:
105110
return nuxt;
106111
case next.name:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Template from './template';
2+
import { decorateSelector } from '../theme';
3+
4+
export default new Template(
5+
'marko',
6+
'Marko',
7+
'https://markojs.com/',
8+
'github/nm123github/marko-codesandbox',
9+
decorateSelector(() => '#f5ac00'),
10+
{
11+
isServer: true,
12+
showOnHomePage: true,
13+
main: false,
14+
netlify: false
15+
}
16+
);

0 commit comments

Comments
 (0)