Skip to content

Commit

Permalink
first pass at rebranding so we can have both pretty cards and WIPrint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Jones authored and Ryan Jones committed Aug 4, 2018
1 parent c631d3f commit bce40b7
Show file tree
Hide file tree
Showing 18 changed files with 1,973 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WIPrint
# pcards

Print work items from nearly anywhere you can see them. Limit is ~330.

Expand Down
2 changes: 1 addition & 1 deletion details.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Right-click on a query and select `Print All`.

![Print work items in a query](static/img/query-context.gif)

### [Code contributions are welcome](https://github.com/mrtarantula/wiprint)
### [Code contributions are welcome](https://github.com/ryanjones/pcards)

## Changelog

Expand Down
395 changes: 395 additions & 0 deletions dist/pcards-admin.js

Large diffs are not rendered by default.

1,551 changes: 1,551 additions & 0 deletions dist/pcards.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/wiprint-admin.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/wiprint-admin.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/wiprint.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/wiprint.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"office-ui-fabric-js": "^1.4.0",
"vss-web-extension-sdk": "5.131.0"
},
"name": "wiprint",
"name": "pcards",
"private": true,
"version": "0.0.0"
}
2 changes: 1 addition & 1 deletion src/wiprint-admin.ts → src/pcards-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function refreshData(name: string): void {
})[0];
$(`#type-${name.sanitize()}`).addClass("selected");

key = `wiprint-${activeType.name.sanitize()}`;
key = `pcards-${activeType.name.sanitize()}`;

$("#allList").html("");
allFields.splice(0, allFields.length);
Expand Down
6 changes: 3 additions & 3 deletions src/wiprint.ts → src/pcards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ String.prototype.htmlize = function(this: string) {

const printWorkItems = {
getMenuItems: (context: any) => {
let menuItemText = "Print";
let menuItemText = "Print Pretty";
if (context.workItemIds && context.workItemIds.length > 1) {
menuItemText = "Print Selection";
menuItemText = "Print Pretty Selection";
}

return [
Expand Down Expand Up @@ -156,7 +156,7 @@ function getFields(
return VSS.getService(VSS.ServiceIds.ExtensionData).then(
(service: IExtensionDataService) => {
return service.getValue<Models.WorkItemTypeFieldInstance[]>(
`wiprint-${workItem.fields["System.WorkItemType"].sanitize()}`,
`pcards-${workItem.fields["System.WorkItemType"].sanitize()}`,
{
scopeType: "user",
defaultValue: dummy as Models.WorkItemTypeFieldInstance[]
Expand Down
2 changes: 1 addition & 1 deletion static/wiprint-admin.html → static/pcards-admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
}
});
// Load main entry point for extension
VSS.require(["dist/wiprint-admin"], function (admin) {
VSS.require(["dist/pcards-admin"], function (admin) {
// Loading succeeded
VSS.notifyLoadSucceeded();
});
Expand Down
2 changes: 1 addition & 1 deletion static/wiprint.html → static/pcards.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}
});
// Load main entry point for extension
VSS.require(["dist/wiprint"], function (wiprint) {
VSS.require(["dist/pcards"], function (pcards) {
// Loading succeeded
VSS.notifyLoadSucceeded();
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
]
},
"files": [
"src/wiprint.ts", "src/wiprint-admin.ts"
"src/pcards.ts", "src/pcards-admin.ts"
]
}
4 changes: 2 additions & 2 deletions vss-extension.dev.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "wiprint-dev",
"name": "DEV Work Item Print",
"id": "pcards-dev",
"name": "DEV Pretty Cards",
"public": false
}
24 changes: 12 additions & 12 deletions vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"manifestVersion": 1,
"id": "wiprint-dev",
"version": "2.2.76",
"name": "Work Item Print",
"id": "pcards",
"version": "1.0.7",
"name": "Pretty Cards",
"scopes": ["vso.work", "vso.extension.data_write"],
"description": "Print work items from query toolbar or context menu.",
"publisher": "Ryan",
"public": false,
"public": true,
"icons": {
"default": "static/img/logo.png"
},
Expand All @@ -31,15 +31,15 @@
},
"links": {
"support": {
"uri": "https://github.com/mrtarantula/wiprint/issues"
"uri": "https://github.com/ryanjones/pcards/issues"
},
"repository": {
"uri": "https://github.com/mrtarantula/wiprint"
"uri": "https://github.com/ryanjones/pcards"
}
},
"repository": {
"type": "git",
"uri": "https://github.com/mrtarantula/wiprint"
"uri": "https://github.com/ryanjones/pcards"
},
"branding": {
"color": "rgb(255, 255, 255)",
Expand All @@ -55,11 +55,11 @@
"addressable": true
},
{
"path": "static/wiprint.html",
"path": "static/pcards.html",
"addressable": true
},
{
"path": "static/wiprint-admin.html",
"path": "static/pcards-admin.html",
"addressable": true
},
{
Expand Down Expand Up @@ -90,17 +90,17 @@
"description": "Print a work item.",
"targets": ["ms.vss-work-web.work-item-context-menu"],
"properties": {
"uri": "static/wiprint.html"
"uri": "static/pcards.html"
}
},
{
"id": "wiprint-admin",
"id": "pcards-admin",
"type": "ms.vss-web.hub",
"targets": ["ms.vss-work-web.work-hub-group"],
"properties": {
"name": "Work Item Print",
"order": 9999,
"uri": "static/wiprint-admin.html"
"uri": "static/pcards-admin.html"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var webpack = require("webpack");
module.exports = {
target: "web",
entry: {
wiprint: "./src/wiprint.ts",
"wiprint-admin": "./src/wiprint-admin.ts"
pcards: "./src/pcards.ts",
"pcards-admin": "./src/pcards-admin.ts"
},
devtool: "source-map",
output: {
Expand Down

0 comments on commit bce40b7

Please sign in to comment.