Skip to content

Commit

Permalink
Polish (#19)
Browse files Browse the repository at this point in the history
- Add label to manifest task panes.
- Publish instructions.
- Marketplace snapshot.
  • Loading branch information
wandyezj authored Apr 8, 2024
1 parent b0ae8c2 commit 4357ee4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 13 deletions.
Binary file added docs/excel-taskpane-1366-768.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/publish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Publish

[Publish Dashboard](https://partner.microsoft.com/en-us/dashboard/marketplace-offers/overview)
16 changes: 12 additions & 4 deletions manifests/local.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -81,10 +82,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand Down Expand Up @@ -116,6 +118,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -132,10 +135,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand Down Expand Up @@ -166,6 +170,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -182,10 +187,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand All @@ -210,10 +216,12 @@
<bt:Url id="TaskpaneRun.Url" DefaultValue="https://localhost:3000/run.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="TabExtension.TabLabel" DefaultValue="(local) Build" />
<bt:String id="TabBuild.TabLabel" DefaultValue="(local) Build" />
<bt:String id="CommandsGroup.Label" DefaultValue="(local) Extension" />
<bt:String id="TaskpaneButtonEdit.Label" DefaultValue="Edit" />
<bt:String id="TaskpaneButtonRun.Label" DefaultValue="Run" />
<bt:String id="TaskpaneEdit.Title" DefaultValue="Edit" />
<bt:String id="TaskpaneRun.Title" DefaultValue="Run" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="TaskpaneButtonEdit.Tooltip" DefaultValue="Edit Snip" />
Expand Down
16 changes: 12 additions & 4 deletions manifests/production.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -81,10 +82,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand Down Expand Up @@ -116,6 +118,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -132,10 +135,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand Down Expand Up @@ -166,6 +170,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -182,10 +187,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand All @@ -210,10 +216,12 @@
<bt:Url id="TaskpaneRun.Url" DefaultValue="https://wandyezj.github.io/build-add-in/run.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="TabExtension.TabLabel" DefaultValue="Build" />
<bt:String id="TabBuild.TabLabel" DefaultValue="Build" />
<bt:String id="CommandsGroup.Label" DefaultValue="Extension" />
<bt:String id="TaskpaneButtonEdit.Label" DefaultValue="Edit" />
<bt:String id="TaskpaneButtonRun.Label" DefaultValue="Run" />
<bt:String id="TaskpaneEdit.Title" DefaultValue="Edit" />
<bt:String id="TaskpaneRun.Title" DefaultValue="Run" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="TaskpaneButtonEdit.Tooltip" DefaultValue="Edit Snip" />
Expand Down
10 changes: 7 additions & 3 deletions manifests/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<Control xsi:type="Button" id="TaskpaneButton">
<Control xsi:type="Button" id="TaskpaneButtonEdit">
<Label resid="TaskpaneButtonEdit.Label" />
<Supertip>
<Title resid="TaskpaneButtonEdit.Label" />
Expand All @@ -65,6 +65,7 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
<Title resid="TaskpaneEdit.Title" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
Expand All @@ -81,10 +82,11 @@
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
<Title resid="TaskpaneRun.Title" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
<Label resid="TabBuild.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
Expand Down Expand Up @@ -112,10 +114,12 @@
<bt:Url id="TaskpaneRun.Url" DefaultValue="https://localhost:3000/run.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="TabExtension.TabLabel" DefaultValue="(local) Build" />
<bt:String id="TabBuild.TabLabel" DefaultValue="(local) Build" />
<bt:String id="CommandsGroup.Label" DefaultValue="(local) Extension" />
<bt:String id="TaskpaneButtonEdit.Label" DefaultValue="Edit" />
<bt:String id="TaskpaneButtonRun.Label" DefaultValue="Run" />
<bt:String id="TaskpaneEdit.Title" DefaultValue="Edit" />
<bt:String id="TaskpaneRun.Title" DefaultValue="Run" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="TaskpaneButtonEdit.Tooltip" DefaultValue="Edit Snip" />
Expand Down
5 changes: 3 additions & 2 deletions src/core/defaultSnip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PrunedSnip } from "./Snip";

export const defaultSnip: PrunedSnip = {
name: "Default Snip",
name: "New Snip",
files: {
typescript: {
language: "typescript",
Expand All @@ -21,7 +21,8 @@ Office.onReady(({host, platform})=> {
elementHost.innerText = \`\${host}\`;
elementHost.style.color = getHostColor(host);
document.getElementById('platform').innerText = \`\${platform}\`;
const elementPlatform = document.getElementById('platform');
elementPlatform.innerText = \`\${platform}\`;
});
/**
Expand Down

0 comments on commit 4357ee4

Please sign in to comment.