forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgridsome.ts
More file actions
46 lines (43 loc) · 1.02 KB
/
gridsome.ts
File metadata and controls
46 lines (43 loc) · 1.02 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Template, { ViewConfig } from './template';
import { decorateSelector } from '../utils/decorate-selector';
class GridsomeTemplate extends Template {
getViews(): ViewConfig[] {
const GRIDSOME_VIEWS: ViewConfig[] = [
{
views: [
{ id: 'codesandbox.browser' },
{
id: 'codesandbox.browser',
closeable: true,
options: {
url: '/___explore',
title: 'GraphiQL',
},
},
],
},
{
open: true,
views: [
{ id: 'codesandbox.terminal' },
{ id: 'codesandbox.console' },
{ id: 'codesandbox.problems' },
],
},
];
return GRIDSOME_VIEWS;
}
}
export default new GridsomeTemplate(
'gridsome',
'Gridsome',
'https://gridsome.org/',
'github/SaraVieira/gridsome-starter-codesandbox',
decorateSelector(() => '#00a672'),
{
distDir: 'dist',
mainFile: ['/src/pages/Index.vue'],
showOnHomePage: true,
main: true,
}
);