forked from infinitered/ignite-andross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenExamples.js
41 lines (38 loc) · 911 Bytes
/
screenExamples.js
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
const screenExamples = [
{
title: 'Row Example',
screen: 'examples/RowExample.js.ejs',
ancillary: ['examples/Styles/RowExampleStyle.js.ejs']
},
{
title: 'Grid Example',
screen: 'examples/GridExample.js.ejs',
ancillary: ['examples/Styles/GridExampleStyle.js.ejs']
},
{
title: 'Sections Example',
screen: 'examples/SectionExample.js.ejs',
ancillary: ['examples/Styles/SectionExampleStyle.js.ejs']
}
]
/**
* Adds the screen examples.
*
* @param {any} context The gluegun context.
*/
async function add (context) {
// examples of generated screens
await context.ignite.addPluginScreenExamples(screenExamples)
}
/**
* Removes the screen examples.
*
* @param {any} context The gluegun context.
*/
async function remove (context) {
// remove screens
await context.ignite.removePluginScreenExamples(screenExamples)
}
module.exports = {
add, remove
}