generated from wandyezj/website-react
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change logo to hexagon. - Update icon generation. - Add copy script for icon source svgs. - Add default color for Outlook. - Fix Add-In name in statements. - Update docs.
- Loading branch information
Showing
27 changed files
with
174 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,68 @@ | ||
setlocal enabledelayedexpansion | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
|
||
:: icon test | ||
set name=icon | ||
|
||
set THISDIR=%~dp0 | ||
set THISDIR=%THISDIR:~,-1% | ||
|
||
set inkscape="%tools%\Programs\inkscape\inkscape.exe" | ||
|
||
:: icon test | ||
@rem set name=icon | ||
@REM for %%s in (16 32 64 80 128 300) do ( | ||
@REM set size=%%s | ||
@REM set command=%inkscape% -z "%THISDIR%/%name%.svg" -w !size! -h !size! -e "%THISDIR%/%name%-!size!.png" | ||
@REM echo !command! | ||
@REM call !command! | ||
@REM ) | ||
|
||
:: Generate fluent svg | ||
:: icon | ||
|
||
set svg_name=hexagon | ||
set png_name=icon | ||
for %%s in (16 32 64 80 128 300) do ( | ||
set size=%%s | ||
set command=%inkscape% -z "%THISDIR%/%name%.svg" -w !size! -h !size! -e "%THISDIR%/%name%-!size!.png" | ||
|
||
set png_size=!size! | ||
set svg_size=!size! | ||
if !svg_size! GEQ 48 set svg_size=48 | ||
|
||
set source_svg="%THISDIR%/fluent-svg/ic_fluent_!svg_name!_!svg_size!_regular.svg" | ||
set destination_png="%THISDIR%/!png_name!-!png_size!.png" | ||
|
||
echo !png_name! !png_size! | ||
set command=%inkscape% -z !source_svg! -w !png_size! -h !png_size! -e !destination_png! | ||
echo !command! | ||
call !command! | ||
echo. | ||
) | ||
|
||
:: Generate fluent svg | ||
:: edit | ||
:: play | ||
|
||
|
||
for %%n in (edit play) do ( | ||
set name=%%n | ||
for %%s in (16 32 48) do ( | ||
set svg_name=!name! | ||
set png_name=icon-!name! | ||
for %%s in (16 32 80) 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" | ||
|
||
set png_size=!size! | ||
set svg_size=!size! | ||
if !svg_size! GEQ 48 set svg_size=48 | ||
|
||
set source_svg="%THISDIR%/fluent-svg/ic_fluent_!svg_name!_!svg_size!_regular.svg" | ||
set destination_png="%THISDIR%/!png_name!-!png_size!.png" | ||
|
||
echo !png_name! !png_size! | ||
set command=%inkscape% -z !source_svg! -w !png_size! -h !png_size! -e !destination_png! | ||
echo !command! | ||
call !command! | ||
echo. | ||
) | ||
|
||
) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
# Sideloading | ||
|
||
[Sideload Add-Ins for testing](https://learn.microsoft.com/en-us/office/dev/add-ins/testing/sideload-office-add-ins-for-testing) | ||
|
||
For outlook web use: | ||
https://outlook.live.com/mail/0/inclientstore | ||
https://outlook.live.com/mail/0/inclientstore | ||
|
||
## Setup manifest share | ||
|
||
As administrator run: | ||
> .\scripts\create-manifest-share.cmd | ||
## Copy over manifests | ||
|
||
This copies over the latest manifests to the manifest share. | ||
|
||
> npm run share |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
@echo off | ||
setlocal | ||
:: Must run as administrator | ||
:: Create a share for the manifest files | ||
set share=C:\manifests | ||
if not exist %share% md %share% | ||
|
||
net share manifests=%share% | ||
if exist %share% ( | ||
echo Share folder already exists: | ||
echo %share% | ||
echo. | ||
echo If not shared, share the folder manually | ||
echo Properties -> Sharing -> Share | ||
goto :eof | ||
) | ||
|
||
:: make the folder | ||
md %share% | ||
|
||
:: share the folder | ||
net share manifests=%share% | ||
|
||
:: open the folder | ||
start %share% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// Copy svg icons | ||
// | ||
// From: | ||
// A local clone of: https://github.com/microsoft/fluentui-system-icons | ||
// git clone https://github.com/microsoft/fluentui-system-icons.git | ||
// | ||
// To: | ||
// assets/fluent-svg | ||
|
||
const fs = require("fs"); | ||
|
||
const icons = [ | ||
["Play", "regular", [16, 32, 48]], | ||
["Edit", "regular", [16, 32, 48]], | ||
["Hexagon", "regular", [16, 32, 48]], | ||
]; | ||
|
||
const iconDirectory = "../../fluentui-system-icons/assets"; | ||
const iconDirectoryOut = "assets/fluent-svg"; | ||
|
||
// Icon names follow a pattern: | ||
// Example: ic_fluent_edit_16_regular.svg | ||
// ic_fluent_[name]_[size]_regular.svg | ||
// Available sizes are 16, 32, 48 | ||
|
||
icons.forEach(([iconName, iconStyle, iconSizes]) => { | ||
const path = `${iconDirectory}/${iconName}/SVG`; | ||
iconSizes.forEach((size) => { | ||
const name = `ic_fluent_${iconName.toLowerCase()}_${size}_${iconStyle}.svg`; | ||
const source = `${path}/${name}`; | ||
const destination = `${iconDirectoryOut}/${name}`; | ||
console.log(`${name}${fs.existsSync(source) ? "" : ` - NOT FOUND ${source}`}`); | ||
fs.copyFileSync(source, destination); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Privacy Statement | ||
|
||
The Extension Add-In code does not collect any information. | ||
The Build Add-In code does not collect any information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters