-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilya Radchenko
committed
Oct 23, 2014
1 parent
0c91f18
commit fcbd5bc
Showing
6 changed files
with
123 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
<div id="template" class="well"> | ||
<h2>Template Config Page</h2> | ||
<button ng-click="save()" class="btn btn-primary">Save</button> | ||
<br/> | ||
<br/> | ||
<p class="help-text"> | ||
These are some messages for demonstrating how the plugin saves config data and reports it during the test process. | ||
Each message used slightly differently, so see `worker.js` for different ways to execute actions using config data | ||
</p> | ||
<h3>Environment</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.environment"></textarea> | ||
</div> | ||
<h2>Template Config Page</h2> | ||
<button ng-click="save()" class="btn btn-primary">Save</button><br/><br/> | ||
|
||
<p class="help-text"> | ||
These are some messages for demonstrating how the plugin saves config data and reports it during the test process. | ||
Each message used slightly differently, so see `worker.js` for different ways to execute actions using config data | ||
</p> | ||
|
||
<h3>Environment</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.environment"></textarea> | ||
</div> | ||
<br/> | ||
<h3>Prepare</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.prepare"></textarea> | ||
</div> | ||
</div><br/> | ||
|
||
<h3>Prepare</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.prepare"></textarea> | ||
</div> | ||
<br/> | ||
<h3>Test</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.test"></textarea> | ||
</div> | ||
</div><br/> | ||
|
||
<h3>Test</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.test"></textarea> | ||
</div> | ||
<br/> | ||
<h3>Deploy</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.deploy"></textarea> | ||
</div> | ||
</div><br/> | ||
|
||
<h3>Deploy</h3> | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.deploy"></textarea> | ||
</div> | ||
<br/> | ||
<h3>Cleanup</h3> | ||
<div class="row-fluid cleanup"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.cleanup"></textarea> | ||
</div> | ||
</div><br/> | ||
|
||
<h3>Cleanup</h3> | ||
<div class="row-fluid cleanup"> | ||
<div class="span12"> | ||
<textarea ui-refresh="selectedTab" ng-model="config.cleanup"></textarea> | ||
</div> | ||
<button ng-click="save()" class="btn btn-primary">Save</button> | ||
</div> | ||
</div> | ||
|
||
<button ng-click="save()" class="btn btn-primary">Save</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
module.exports = { | ||
// mongoose schema, if you need project-specific config | ||
config: { | ||
"template": { | ||
environment: {type: String, default: 'Hi from `environment`'}, | ||
prepare: {type: String, default: 'Hi from `prepare`'}, | ||
test: {type: String, default: 'Hi from `test`'}, | ||
deploy: {type: String, default: 'Hi from `deploy`'}, | ||
cleanup: {type: String, default: 'Hi from `cleanup`'} | ||
} | ||
}, | ||
// Define project-specific routes | ||
// all routes created here are namespaced within /:org/:repo/api/:pluginid | ||
// req.project is the current project | ||
// req.accessLevel is the current user's access level for the project | ||
// 0 - anonymous, 1 - authed, 2 - admin / collaborator | ||
// req.user is the current user | ||
// req.pluginConfig() -> get the config for this plugin | ||
// req.pluginConfig(config, cb(err)) -> set the config for this plugin | ||
routes: function (app, context) { | ||
}, | ||
// Define global routes | ||
// all routes namespaced within /ext/:pluginid | ||
// req.user is the current user | ||
// req.user.account_level can be used for authorization | ||
// 0 - anonymous, 1 - authed, 2 - admin / collaborator | ||
globalRoutes: function (app, context) { | ||
}, | ||
// Listen for global events | ||
// all job-local events that begin with `plugin.` are proxied to | ||
// the main strider eventemitter, so you can listen for them here. | ||
// Other events include `job.new`, `job.done` and `browser.update`. | ||
listen: function (emitter, context) { | ||
// mongoose schema, if you need project-specific config | ||
config: { | ||
template: { | ||
environment: { type: String, default: 'Hi from `environment`' }, | ||
prepare: { type: String, default: 'Hi from `prepare`' }, | ||
test: { type: String, default: 'Hi from `test`' }, | ||
deploy: { type: String, default: 'Hi from `deploy`' }, | ||
cleanup: { type: String, default: 'Hi from `cleanup`' } | ||
} | ||
|
||
|
||
}; | ||
}, | ||
// Define project-specific routes | ||
// all routes created here are namespaced within /:org/:repo/api/:pluginid | ||
// req.project is the current project | ||
// req.accessLevel is the current user's access level for the project | ||
// 0 - anonymous, 1 - authed, 2 - admin / collaborator | ||
// req.user is the current user | ||
// req.pluginConfig() -> get the config for this plugin | ||
// req.pluginConfig(config, cb(err)) -> set the config for this plugin | ||
routes: function (app, context) { | ||
}, | ||
// Define global routes | ||
// all routes namespaced within /ext/:pluginid | ||
// req.user is the current user | ||
// req.user.account_level can be used for authorization | ||
// 0 - anonymous, 1 - authed, 2 - admin / collaborator | ||
globalRoutes: function (app, context) { | ||
}, | ||
// Listen for global events | ||
// all job-local events that begin with `plugin.` are proxied to | ||
// the main strider eventemitter, so you can listen for them here. | ||
// Other events include `job.new`, `job.done` and `browser.update`. | ||
listen: function (emitter, context) { | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters