Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions ui/bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion ui/compare-to-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Compare To form sample</title>
</head>

<script src="bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="lib/VSS.SDK.min.js"></script>

<script type="text/javascript">
VSS.init({
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/context.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<title>Context menu sample</title>
<meta charset="UTF-8">
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/contributions.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<head>
<title>Background contributions</title>
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/control.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>Menu control sample</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/main.css" />
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/dropDown.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<title>Dropdown menu sample</title>
<meta charset="UTF-8">
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<div>Users will never see this page.</div>

<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>

<script>
VSS.init({
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/extensible.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>Extensible menu</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/main.css" />
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion ui/menu/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>Menu sample</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/main.css" />
<script src="../bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js"></script>
<script src="../lib/VSS.SDK.min.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
25 changes: 25 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "samples-ui",
"version": "1.0.0",
"description": "Sample Visual Studio Team Services web extension",
"main": "index.html",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vsts-extension-samples"
},
"scripts": {
"build": "tfx extension create --rev-version"
},
"keywords": [
"vsts",
"extension"
],
"author": "Microsoft Corporation",
"license": "MIT",
"devDependencies": {
"tfx-cli": "*"
},
"dependencies": {
"vss-web-extension-sdk": "^5.127.0"
}
}
29 changes: 27 additions & 2 deletions ui/vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1.0,
"id": "samples-ui",
"version": "0.1.8",
"version": "0.3.4",
"name": "UI Controls (Sample)",
"description": "Explore different UI controls, including menus, toolbars, custom controls, and more.",
"publisher": "fabrikam",
Expand Down Expand Up @@ -36,7 +36,8 @@
"addressable": true
},
{
"path": "bower_components/vss-web-extension-sdk/lib/VSS.SDK.min.js",
"path": "node_modules/vss-web-extension-sdk/lib/VSS.SDK.min.js",
"packagePath": "lib/VSS.SDK.min.js",
"addressable": true
}
],
Expand Down Expand Up @@ -138,6 +139,30 @@
"properties": {
"uri": "compare-to-form.html"
}
},
{
"id": "simple-hub-help-menu-item",
"type": "ms.vss-web.menu-item",
"targets": [ ".simple-menu-hub" ],
"description": "Help menu item that appears when the Simple hub is active.",
"properties": {
"name": "My custom topic (Simple hub)",
"href": "https://go.microsoft.com/fwlink/?LinkId=825593",
"groupKey": "getting-started",
"menuId": "ms.vss-tfs-web.help-menu"
}
},
{
"id": "sample-ui-app-help-menu-item",
"type": "ms.vss-web.menu-item",
"targets": [ ".sample-hub-group" ],
"description": "Help menu item that appears when any hub is active under the Samples hub group.",
"properties": {
"name": "My custom topic (Sample UI app)",
"href": "https://go.microsoft.com/fwlink/?LinkId=825593",
"groupKey": "getting-started",
"menuId": "ms.vss-tfs-web.help-menu"
}
}
]
}