forked from rhysforyou/gist-it
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgist-it.coffee
More file actions
35 lines (30 loc) · 1023 Bytes
/
gist-it.coffee
File metadata and controls
35 lines (30 loc) · 1023 Bytes
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
GistView = require './gist-view'
module.exports =
gistView: null
activate: (state) ->
@gistView = new GistView(state.gistViewState)
deactivate: ->
@gistView.destroy()
serialize: ->
gistViewState: @gistView.serialize()
config:
userToken:
title: 'OAuth token'
description: 'Enter an OAuth token to have Gists posted to your GitHub account. This token must include the gist scope.'
type: 'string'
default: ''
newGistsDefaultToPrivate:
title: 'New Gists default to private'
description: 'Make Gists private by default.'
type: 'boolean'
default: false
gitHubEnterpriseHost:
title: 'GitHub Enterprise Host'
description: 'If you want to publish Gists to a GitHub Enterprise instance, enter the hostname here.'
type: 'string'
default: ''
useHttp:
title: 'Use HTTP'
description: 'Enable if your GitHub Enterprise instance is only available via HTTP, not HTTPS.'
type: 'boolean'
default: false