Skip to content

Commit

Permalink
additional surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj committed Sep 16, 2024
1 parent 8391fa5 commit 5ca0db4
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 0 deletions.
112 changes: 112 additions & 0 deletions manifests/local.outlook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,118 @@
</Group>
</OfficeTab>
</ExtensionPoint>

<ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
<OfficeTab id="Organizer.TabDefaultId">
<Group id="Organizer.GroupExtensionId">
<Label resid="GroupExtension.Label" />
<Control xsi:type="Button" id="Organizer.ButtonEditId">
<Label resid="ButtonEdit.Label" />
<Supertip>
<Title resid="ButtonEdit.Label" />
<Description resid="ButtonEdit.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Edit.16x16" />
<bt:Image size="32" resid="Icon.Edit.32x32" />
<bt:Image size="80" resid="Icon.Edit.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="Organizer.ButtonRunId">
<Label resid="ButtonRun.Label" />
<Supertip>
<Title resid="ButtonRun.Label" />
<Description resid="ButtonRun.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Run.16x16" />
<bt:Image size="32" resid="Icon.Run.32x32" />
<bt:Image size="80" resid="Icon.Run.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Group id="Organizer.GroupHelpId">
<Label resid="GroupHelp.Label" />
<Control xsi:type="Button" id="Organizer.ButtonHelpId">
<Label resid="ButtonHelp.Label" />
<Supertip>
<Title resid="ButtonHelp.Label" />
<Description resid="ButtonHelp.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Help.16x16" />
<bt:Image size="32" resid="Icon.Help.32x32" />
<bt:Image size="80" resid="Icon.Help.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneHelp.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>

<ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
<OfficeTab id="Attendee.TabDefaultId">
<Group id="Attendee.GroupExtensionId">
<Label resid="GroupExtension.Label" />
<Control xsi:type="Button" id="Attendee.ButtonEditId">
<Label resid="ButtonEdit.Label" />
<Supertip>
<Title resid="ButtonEdit.Label" />
<Description resid="ButtonEdit.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Edit.16x16" />
<bt:Image size="32" resid="Icon.Edit.32x32" />
<bt:Image size="80" resid="Icon.Edit.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="Attendee.ButtonRunId">
<Label resid="ButtonRun.Label" />
<Supertip>
<Title resid="ButtonRun.Label" />
<Description resid="ButtonRun.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Run.16x16" />
<bt:Image size="32" resid="Icon.Run.32x32" />
<bt:Image size="80" resid="Icon.Run.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Group id="Attendee.GroupHelpId">
<Label resid="GroupHelp.Label" />
<Control xsi:type="Button" id="Attendee.ButtonHelpId">
<Label resid="ButtonHelp.Label" />
<Supertip>
<Title resid="ButtonHelp.Label" />
<Description resid="ButtonHelp.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Help.16x16" />
<bt:Image size="32" resid="Icon.Help.32x32" />
<bt:Image size="80" resid="Icon.Help.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneHelp.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
Expand Down
112 changes: 112 additions & 0 deletions manifests/production.outlook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,118 @@
</Group>
</OfficeTab>
</ExtensionPoint>

<ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
<OfficeTab id="Organizer.TabDefaultId">
<Group id="Organizer.GroupExtensionId">
<Label resid="GroupExtension.Label" />
<Control xsi:type="Button" id="Organizer.ButtonEditId">
<Label resid="ButtonEdit.Label" />
<Supertip>
<Title resid="ButtonEdit.Label" />
<Description resid="ButtonEdit.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Edit.16x16" />
<bt:Image size="32" resid="Icon.Edit.32x32" />
<bt:Image size="80" resid="Icon.Edit.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="Organizer.ButtonRunId">
<Label resid="ButtonRun.Label" />
<Supertip>
<Title resid="ButtonRun.Label" />
<Description resid="ButtonRun.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Run.16x16" />
<bt:Image size="32" resid="Icon.Run.32x32" />
<bt:Image size="80" resid="Icon.Run.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Group id="Organizer.GroupHelpId">
<Label resid="GroupHelp.Label" />
<Control xsi:type="Button" id="Organizer.ButtonHelpId">
<Label resid="ButtonHelp.Label" />
<Supertip>
<Title resid="ButtonHelp.Label" />
<Description resid="ButtonHelp.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Help.16x16" />
<bt:Image size="32" resid="Icon.Help.32x32" />
<bt:Image size="80" resid="Icon.Help.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneHelp.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>

<ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface">
<OfficeTab id="Attendee.TabDefaultId">
<Group id="Attendee.GroupExtensionId">
<Label resid="GroupExtension.Label" />
<Control xsi:type="Button" id="Attendee.ButtonEditId">
<Label resid="ButtonEdit.Label" />
<Supertip>
<Title resid="ButtonEdit.Label" />
<Description resid="ButtonEdit.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Edit.16x16" />
<bt:Image size="32" resid="Icon.Edit.32x32" />
<bt:Image size="80" resid="Icon.Edit.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="Attendee.ButtonRunId">
<Label resid="ButtonRun.Label" />
<Supertip>
<Title resid="ButtonRun.Label" />
<Description resid="ButtonRun.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Run.16x16" />
<bt:Image size="32" resid="Icon.Run.32x32" />
<bt:Image size="80" resid="Icon.Run.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Group id="Attendee.GroupHelpId">
<Label resid="GroupHelp.Label" />
<Control xsi:type="Button" id="Attendee.ButtonHelpId">
<Label resid="ButtonHelp.Label" />
<Supertip>
<Title resid="ButtonHelp.Label" />
<Description resid="ButtonHelp.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.Help.16x16" />
<bt:Image size="32" resid="Icon.Help.32x32" />
<bt:Image size="80" resid="Icon.Help.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneHelp.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
Expand Down
2 changes: 2 additions & 0 deletions manifests/template.outlook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
<!-- Section:(ExtensionPoint) - End -->
<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,MessageComposeCommandSurface) -->
<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,MessageReadCommandSurface) -->
<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,AppointmentOrganizerCommandSurface) -->
<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,AppointmentAttendeeCommandSurface) -->
</DesktopFormFactor>
</Host>
</Hosts>
Expand Down
14 changes: 14 additions & 0 deletions scripts/make-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ function localhostOutlook(data) {
extensionPointRead
);

// Organizer
const extensionPointAppointmentOrganizer = createSection("AppointmentOrganizerCommandSurface", "Organizer");
data = data.replaceAll(
"<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,AppointmentOrganizerCommandSurface) -->",
extensionPointAppointmentOrganizer
);

// Attendee
const extensionPointAppointmentAttendee = createSection("AppointmentAttendeeCommandSurface", "Attendee");
data = data.replaceAll(
"<!-- Duplicate:(ExtensionPoint) Replace:(MessageComposeCommandSurface,AppointmentAttendeeCommandSurface) -->",
extensionPointAppointmentAttendee
);

return data;
}

Expand Down

0 comments on commit 5ca0db4

Please sign in to comment.