1
0
Форкнуть 0
This commit is contained in:
Otto Streifel 2016-09-30 14:15:49 -07:00
Родитель 8e495f5333
Коммит 77d4421716
9 изменённых файлов: 42 добавлений и 47 удалений

Просмотреть файл

@ -1,4 +1,4 @@
> This is currently only available on TFS "15" or later. It is not available on VSTS.
> This is currently only available on TFS "15" or later.
## Customize your work item form with a up/down control ##
@ -8,11 +8,9 @@ The control can be used by both your mouse and keyboard (up and down arrow keys)
## Quick steps to get started ##
> Please note: This extension is not yet supported on VSTS, as users cannot customize the control via VSTS UI. We will need to include steps on how to walk the user through this control for VSTS once there is support available.
1. Navigate to your work item form and choose which field (integer) you would like to replace with the toggle control.
2. Learn about how to customize the up/down control directly on XML [here](https://github.com/Microsoft/vsts-toggle-wit-custom-control/blob/master/README.md) for TFS.
2. Learn about how to customize the up/down control directly on XML [here](https://github.com/Microsoft/vsts-integer-wit-custom-control/blob/master/README.md) for TFS.
## Supported browsers ##
@ -23,7 +21,7 @@ The control can be used by both your mouse and keyboard (up and down arrow keys)
## Learn more ##
The [source](https://github.com/Microsoft/vsts-toggle-wit-custom-control) for this extension can be found on Github - feel free to take, fork and extend.
The [source](https://github.com/Microsoft/vsts-integer-wit-custom-control) for this extension can be found on Github - feel free to take, fork and extend.
> WITIQ, please note: This link is not live yet on visualstudio.com.
@ -33,15 +31,6 @@ You can also learn how to build your own custom control extension for the work i
We thank the following contributor(s) for this extension: Alison Chow, Maria McLaughlin and Nelson Troncoso Aldas.
## Users have also installed ##
> WITIQ, please note: We must add links to the custom controls.
You can find more custom controls here:
* Color Form Control
* Toggle Form Control
## Feedback ##
We need your feedback! Here are some ways to connect with us:

Просмотреть файл

@ -3,7 +3,7 @@
ts: {
build: {
tsconfig: true,
"outDir": "./dist/scripts"
"outDir": "./dist"
},
buildTest: {
tsconfig: true,
@ -42,14 +42,8 @@
expand: true,
flatten: true,
src: ["node_modules/vss-web-extension-sdk/lib/VSS.SDK.min.js"],
dest: "dist/scripts",
dest: "dist",
filter: "isFile"
},
{
expand: true,
flatten: false,
src: ["styles/**", "img/**", "*.html", "vss-extension.json", "*.md"],
dest: "dist"
}]
}
},

Двоичные данные
img/logo.PNG

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 2.3 KiB

После

Ширина:  |  Высота:  |  Размер: 729 B

Просмотреть файл

@ -4,9 +4,9 @@
<head>
<meta charset="utf-8" />
<!-- VSS Framework -->
<script src="scripts/VSS.SDK.min.js"></script>
<script src="dist/VSS.SDK.min.js"></script>
<title>Color Control</title>
<title>Hit Count Control</title>
<link rel="stylesheet" href="styles/style.css" type="text/css"/>
</head>
@ -14,11 +14,12 @@
<script>
VSS.init({
explicitNotifyLoaded: true,
usePlatformScripts: true
usePlatformScripts: true,
configureModuleLoader: true
});
// Load main entry point for extension
VSS.require(["scripts/app"], function () {
VSS.require(["dist/app"], function () {
// loading succeeded
VSS.notifyLoadSucceeded();
});

1
scripts/.baseDir.ts Normal file
Просмотреть файл

@ -0,0 +1 @@
// Ignore this file. See https://github.com/grunt-ts/grunt-ts/issues/77

Просмотреть файл

@ -18,4 +18,7 @@ var provider = () => {
}
};
VSS.register("mariamclaughlin.hitcount-control-dev.hitcount-control-contribution", provider);
const publisherId = VSS.getExtensionContext().publisherId;
const extensionId = VSS.getExtensionContext().extensionId;
VSS.register(`${publisherId}.${extensionId}.hitcount-control-contribution`, provider);

Просмотреть файл

@ -1,9 +1,23 @@
{
"compilerOptions": {
"module": "amd",
"sourceMap": false
"sourceMap": false,
"rootDir": "./scripts"
},
"filesGlob": [
"./scripts/**/*.ts",
"!**/*.tests.ts",
"./typings/index.d.ts"
],
"exclude": [
"node_modules"
],
"files": [
"scripts/app.ts",
"scripts/control.ts",
"scripts/errorView.ts",
"scripts/model.ts",
"scripts/view.ts",
"typings/index.d.ts"
]
}

Просмотреть файл

@ -5,6 +5,7 @@
"knockout": "registry:dt/knockout#0.0.0+20160512130947",
"mocha": "registry:dt/mocha#2.2.5+20160619032855",
"q": "registry:dt/q#0.0.0+20160613154756",
"require": "registry:dt/require#2.1.20+20160316155526",
"tfs": "npm:vss-web-extension-sdk/typings/tfs.d.ts",
"vss": "npm:vss-web-extension-sdk/typings/vss.d.ts"
}

Просмотреть файл

@ -8,8 +8,9 @@
"vso.work_write"
],
"description": "Easily change your integer values with an up/down control.",
"publisher": "<your-publisher>",
"publisher": "msdevlabs",
"icons": {
"default": "img/logo.png"
},
"targets": [
{
@ -17,7 +18,9 @@
}
],
"tags": [
"Sample"
"Work Item",
"Work Item control",
"Usability"
],
"content": {
"details": {
@ -25,23 +28,11 @@
}
},
"links": {
"home": {
"uri": "https://bit.ly"
},
"getstarted": {
"uri": "https://bit.ly"
},
"learn": {
"uri": "https://bit.ly"
},
"support": {
"uri": "https://bit.ly"
"uri": "mailto:witiq@microsoft.com"
},
"repository": {
"uri": "https://bit.ly"
},
"issues": {
"uri": "https://bit.ly"
"uri": "https://github.com/Microsoft/vsts-integer-wit-custom-control"
}
},
"branding": {
@ -54,7 +45,7 @@
"addressable": true
},
{
"path": "scripts",
"path": "dist",
"addressable": true
},
{
@ -67,7 +58,7 @@
}
],
"categories": [
"Integrate"
"Plan and track"
],
"contributions": [
{
@ -77,13 +68,14 @@
"ms.vss-work-web.work-item-form"
],
"properties": {
"name": "Priority",
"name": "Hit Count",
"group": "contributed",
"uri": "index.html",
"height": 28,
"inputs": [
{
"id": "FieldName",
"name": "Backing integer field",
"description": "The field associated with the control.",
"type": "WorkItemField",
"properties": {