Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,15 @@
"bug"
]
},
{
"login": "rax-public",
"name": "Rax Team",
"avatar_url": "https://avatars3.githubusercontent.com/u/59947214?v=4",
"profile": "https://github.com/rax-public",
"contributions": [
"code"
]
},
{
"login": "tomkuehl",
"name": "Tom Kühl",
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/components/SandboxCard/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const templates: TemplateType[] = [
'create-react-app',
'vue-cli',
'preact-cli',
'rax',
'svelte',
'create-react-app-typescript',
'angular-cli',
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/templates/helpers/is-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const SERVER_TEMPLATE_NAMES = [
'node',
'nuxt',
'quasar-framework',
'rax',
'sapper',
'styleguidist',
'unibit',
Expand Down
4 changes: 4 additions & 0 deletions packages/common/src/templates/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ReasonIcon,
EmberIcon,
PreactIcon,
// RaxIcon,
VueIcon,
SvelteIcon,
DojoIcon,
Expand Down Expand Up @@ -33,6 +34,7 @@ import {
ember,
vue,
preact,
// rax,
reactTs,
svelte,
angular,
Expand Down Expand Up @@ -68,6 +70,8 @@ export default function getIcon(theme: TemplateType) {
return VueIcon;
case preact.name:
return PreactIcon;
// case rax.name:
// return RaxIcon;
case reactTs.name:
return ReactIcon;
case svelte.name:
Expand Down
5 changes: 5 additions & 0 deletions packages/common/src/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import angular from './angular';
import babel from './babel';
import parcel from './parcel';
import preact from './preact';
import rax from './rax';
import reason from './reason';
import react from './react';
import reactTs from './react-ts';
Expand Down Expand Up @@ -43,6 +44,7 @@ export {
dojo,
parcel,
preact,
rax,
react,
reactTs,
reason,
Expand All @@ -65,6 +67,7 @@ export type TemplateType =
| 'create-react-app'
| 'vue-cli'
| 'preact-cli'
| 'rax'
| 'svelte'
| 'create-react-app-typescript'
| 'angular-cli'
Expand Down Expand Up @@ -101,6 +104,8 @@ export default function getDefinition(theme?: TemplateType) {
return vue;
case preact.name:
return preact;
case rax.name:
return rax;
case reactTs.name:
return reactTs;
case svelte.name:
Expand Down
21 changes: 21 additions & 0 deletions packages/common/src/templates/rax.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Template from './template';
import { decorateSelector } from '../utils/decorate-selector';

export class RaxTemplate extends Template {
// The file to open by the editor
getDefaultOpenedFiles() {
return ['/src/app.js'];
}
}
export default new RaxTemplate(
'rax',
'Rax',
'https://rax.js.org/',
'github/raxjs/rax-codesandbox-template',
decorateSelector(() => '#FFB006'),
{
showOnHomePage: true,
distDir: 'build',
mainFile: []
}
);