Skip to content

Commit

Permalink
Manifest (#7)
Browse files Browse the repository at this point in the history
* manifest template
* edit and run icons
  • Loading branch information
wandyezj authored Mar 14, 2024
1 parent af8fa4a commit 9576283
Show file tree
Hide file tree
Showing 23 changed files with 528 additions and 82 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
*.html text eol=lf
*.ts text eol=lf
*.json text eol=lf
*.js text eol=lf
*.js text eol=lf
*.jsonc text eol=lf
*.yml text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.jpg -text
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"redhat.vscode-xml",
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"ms-playwright.playwright",
Expand Down
10 changes: 10 additions & 0 deletions assets/fluent-svg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# README

These svg templates were taken from the [fluentui-system-icons repository On GitHub](https://github.com/microsoft/fluentui-system-icons).

The svg files were copied from the following directories:

- fluentui-system-icons\assets\Play\SVG
- fluentui-system-icons\assets\Edit\SVG

copying is allows per [LICENSE](https://github.com/microsoft/fluentui-system-icons/blob/main/LICENSE).
3 changes: 3 additions & 0 deletions assets/fluent-svg/ic_fluent_edit_16_regular.svg
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 assets/fluent-svg/ic_fluent_edit_32_regular.svg
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 assets/fluent-svg/ic_fluent_edit_48_regular.svg
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 assets/fluent-svg/ic_fluent_play_16_regular.svg
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 assets/fluent-svg/ic_fluent_play_32_regular.svg
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 assets/fluent-svg/ic_fluent_play_48_regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion assets/generate.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,24 @@ for %%s in (16 32 80 128 300) do (
set command=%inkscape% -z "%THISDIR%/%name%.svg" -w !size! -h !size! -e "%THISDIR%/%name%-!size!.png"
echo !command!
call !command!
)
)

:: Generate fluent svg
:: edit
:: play


for %%n in (edit play) do (
set name=%%n
for %%s in (16 32 48) do (
set size=%%s
set out_size=!size!
if !size! == 48 set out_size=80
set command=%inkscape% -z "%THISDIR%/fluent-svg/ic_fluent_!name!_!size!_regular.svg" -w !size! -h !size! -e "%THISDIR%/icon-!name!-!out_size!.png"
echo !command!
call !command!
)

)


Binary file added assets/icon-edit-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-edit-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-edit-80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-play-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-play-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-play-80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 27 additions & 16 deletions docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,33 @@
## Phase - Multiple Files

- [ ] multiple local snip
- storage scheme
- storage system
- [X] storage scheme
- [X] storage system
- [indexedDB basic pattern](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB#basic_pattern)
- multi snip display and selection

## Phase - Important

- [ ] Warn before delete
- [ ] display compile errors
- typescript pre emit diagnostics require program construction
- [ ] multi snip display and selection

## Phase - Publish

- [ ] Icons Run and Edit
- [ ] Manifest - Cross Application
- [ ] Manifest - Ribbon Tab
- [X] Icons Run and Edit
- [X] Run
- [X] Edit
- [X] Manifest - Cross Application
- [X] Manifest - Ribbon Tab - (Extension)
- [ ] Store Publish
- Description Long
- Description Short
- Screen Shots
- submission
- [X] Required statements
- eula
- privacy
- support
- [X] eula
- [X] privacy
- [X] support

## Phase - Important

- [ ] Warn before delete
- [ ] display compile errors
- typescript pre emit diagnostics require program construction

## Phase - test

Expand All @@ -66,4 +68,13 @@
- [X] dependencies.md
- why each dependency
- how is each dependency used
- [ ] deployment infrastructure
- [ ] deployment infrastructure

## Phase - Blocks

- [ ] Dynamic Blocks
- [ ] Add arbitrary new blocks to end
- [ ] New block validation
- [ ] Remove block from end
- [ ] Block Library
- [ ] Include block steps in a snip
162 changes: 140 additions & 22 deletions manifests/manifest-local.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
Expand All @@ -10,33 +10,40 @@
<Version>1.0.1.0</Version>
<ProviderName>wandyezj</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="(local) Extension"/>
<Description DefaultValue="Build Extensions"/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
<SupportUrl DefaultValue="https://localhost:3000/statements/support.html"/>
<DisplayName DefaultValue="(local) Extension" />
<Description DefaultValue="Build Extensions" />
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png" />
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png" />
<SupportUrl DefaultValue="https://localhost:3000/statements/support.html" />
<AppDomains>
<AppDomain>https://localhost:3000</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Document"/>
<Host Name="Document" />
<Host Name="Workbook" />
<Host Name="Presentation" />
</Hosts>

<!-- https://learn.microsoft.com/en-us/javascript/api/requirement-sets -->
<!-- Eliminate Office 2013, 2016, 2019 platforms by requiring this minimum requirement set -->
<Requirements>
<!-- Eliminate Office 2013 as an available platform by requiring this minimum requirement set -->
<Sets DefaultMinVersion="1.1">
<Set Name="WordApi"/>
<Set Name="DialogApi" MinVersion="1.2" />
</Sets>
</Requirements>

<DefaultSettings>
<SourceLocation DefaultValue="https://localhost:3000/edit.html"/>
<SourceLocation DefaultValue="https://localhost:3000/edit.html" />
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
xsi:type="VersionOverridesV1_0">
<Hosts>

<Host xsi:type="Document">
<DesktopFormFactor>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<OfficeTab id="TabHome">
<CustomTab id="TabExtension">
<Group id="CommandsGroup">
<Label resid="CommandsGroup.Label" />
<Icon>
Expand All @@ -51,9 +58,9 @@
<Description resid="TaskpaneButtonEdit.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
<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">
<TaskpaneId>ButtonId1</TaskpaneId>
Expand All @@ -67,32 +74,143 @@
<Description resid="TaskpaneButtonRun.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
<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">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
<Label resid="TabExtension.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>


<Host xsi:type="Workbook">
<DesktopFormFactor>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="TabExtension">
<Group id="CommandsGroup">
<Label resid="CommandsGroup.Label" />
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<Control xsi:type="Button" id="TaskpaneButton">
<Label resid="TaskpaneButtonEdit.Label" />
<Supertip>
<Title resid="TaskpaneButtonEdit.Label" />
<Description resid="TaskpaneButtonEdit.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">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
<Label resid="TaskpaneButtonRun.Label" />
<Supertip>
<Title resid="TaskpaneButtonRun.Label" />
<Description resid="TaskpaneButtonRun.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">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>

<Host xsi:type="Presentation">
<DesktopFormFactor>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="TabExtension">
<Group id="CommandsGroup">
<Label resid="CommandsGroup.Label" />
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<Control xsi:type="Button" id="TaskpaneButton">
<Label resid="TaskpaneButtonEdit.Label" />
<Supertip>
<Title resid="TaskpaneButtonEdit.Label" />
<Description resid="TaskpaneButtonEdit.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">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="TaskpaneEdit.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="TaskpaneButtonRun">
<Label resid="TaskpaneButtonRun.Label" />
<Supertip>
<Title resid="TaskpaneButtonRun.Label" />
<Description resid="TaskpaneButtonRun.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">
<TaskpaneId>ButtonIdRun</TaskpaneId>
<SourceLocation resid="TaskpaneRun.Url" />
</Action>
</Control>
</Group>
<Label resid="TabExtension.TabLabel" />
</CustomTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png" />
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png" />
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png" />

<bt:Image id="Icon.Run.16x16" DefaultValue="https://localhost:3000/assets/icon-play-16.png" />
<bt:Image id="Icon.Run.32x32" DefaultValue="https://localhost:3000/assets/icon-play-32.png" />
<bt:Image id="Icon.Run.80x80" DefaultValue="https://localhost:3000/assets/icon-play-80.png" />

<bt:Image id="Icon.Edit.16x16" DefaultValue="https://localhost:3000/assets/icon-edit-16.png" />
<bt:Image id="Icon.Edit.32x32" DefaultValue="https://localhost:3000/assets/icon-edit-32.png" />
<bt:Image id="Icon.Edit.80x80" DefaultValue="https://localhost:3000/assets/icon-edit-80.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="TaskpaneEdit.Url" DefaultValue="https://localhost:3000/edit.html" />
<bt:Url id="TaskpaneRun.Url" DefaultValue="https://localhost:3000/run.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="TabExtension.TabLabel" DefaultValue="(local) Extension" />
<bt:String id="CommandsGroup.Label" DefaultValue="(local) Extension" />
<bt:String id="TaskpaneButtonEdit.Label" DefaultValue="Edit" />
<bt:String id="TaskpaneButtonRun.Label" DefaultValue="Run" />
Expand Down
Loading

0 comments on commit 9576283

Please sign in to comment.