Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Group Teletype's dev settings together and collapse them by default
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Scandurra <[email protected]>
  • Loading branch information
jasonrudolph and Antonio Scandurra committed Mar 22, 2018
1 parent 15a6d7e commit 0eabac3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ module.exports = new TeletypePackage({
commandRegistry: atom.commands,
tooltipManager: atom.tooltips,
clipboard: atom.clipboard,
pusherKey: atom.config.get('teletype.pusherKey'),
pusherKey: atom.config.get('teletype.dev.pusherKey'),
pusherOptions: {
cluster: atom.config.get('teletype.pusherCluster'),
cluster: atom.config.get('teletype.dev.pusherCluster'),
disableStats: true
},
baseURL: atom.config.get('teletype.baseURL'),
baseURL: atom.config.get('teletype.dev.baseURL'),
getAtomVersion: atom.getVersion.bind(atom)
})
48 changes: 28 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,34 @@
"default": true,
"order": 1
},
"baseURL": {
"title": "API server base URL",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "https://api.teletype.atom.io",
"order": 2
},
"pusherKey": {
"title": "Pusher service key",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "f119821248b7429bece3",
"order": 3
},
"pusherCluster": {
"title": "Pusher cluster name",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "mt1",
"order": 4
"dev": {
"title": "Development Settings",
"collapsed": true,
"type": "object",
"order": 2,
"properties": {
"baseURL": {
"title": "API server base URL",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "https://api.teletype.atom.io",
"order": 1
},
"pusherKey": {
"title": "Pusher service key",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "f119821248b7429bece3",
"order": 2
},
"pusherCluster": {
"title": "Pusher cluster name",
"description": "This should only be changed for development purposes. Changes take effect on the next package activation.",
"type": "string",
"default": "mt1",
"order": 3
}
}
}
},
"standard": {
Expand Down

1 comment on commit 0eabac3

@makzpain
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

Please sign in to comment.