Skip to content

Commit

Permalink
Configutre depolyment to Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinGu07 committed Nov 17, 2023
1 parent cd1a50c commit 0312b0a
Show file tree
Hide file tree
Showing 25 changed files with 1,179 additions and 1 deletion.
Empty file added Samples/README.md
Empty file.
1 change: 0 additions & 1 deletion Word-Add-in-AIGC/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
/dist

# local env files
.env.local
Expand Down
Binary file added Word-Add-in-AIGC/dist/assets/icon-128.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 Word-Add-in-AIGC/dist/assets/icon-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 Word-Add-in-AIGC/dist/assets/icon-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 Word-Add-in-AIGC/dist/assets/icon-64.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 Word-Add-in-AIGC/dist/assets/icon-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 Word-Add-in-AIGC/dist/assets/logo-filled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
133 changes: 133 additions & 0 deletions Word-Add-in-AIGC/dist/b4ab5df994595d24af0f.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
*,
::before ::after {
box-sizing: border-box;
}

:root {
--blue: #0070C0
}

html,
body,
.container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border-width: 0;
}

.f1i3iumi {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border-width: 0;
}

.wrapper {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
background-color: #F0F0F0;
}

.header {
width: 100%;
background-color: white;
padding: 0.5rem 0;
}

.desc {
color: var(--blue);
font-weight: 500;
display: block;
width: calc(100% - 2rem);
padding: 0.5rem 1rem;
}

.main_content {
width: 100%;
flex: 1;
}

.survey {
width: 100%;
background-color: #c2f0c2;
color: var(--blue);
margin-bottom: 0.3rem;
}

a {
text-decoration: none;
}

.display {
width: 100%;
height: 100%;
}

.main_func {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.back {
width: 100%;
height: 20px;
padding: 0.5rem;
color: var(--blue);
}

.cursor {
display: inline-block;
cursor: pointer;
}

.generate_button {
width: 90%;
color: white;
background-color: var(--blue);
margin: 1rem;
font-weight: 500;
}

.bottom {
width: 100%;
}

.item_desc {
margin: 0.2rem 1rem;
font-weight: 500;
}

.bottom_item {
width: 100%;
font-weight: 400;
background-color: white;
margin: 0.3rem 0;
}

.item_icon {
padding-top: 0.1rem;
padding-bottom: 0.1rem;
display: inline-block;
color: var(--blue);
}

.bottom_item_info {
display: inline-block;
font-weight: 500;
}

.bottom_item_info a {
color: var(--blue);
}
2 changes: 2 additions & 0 deletions Word-Add-in-AIGC/dist/commands.js

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

1 change: 1 addition & 0 deletions Word-Add-in-AIGC/dist/commands.js.map

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

93 changes: 93 additions & 0 deletions Word-Add-in-AIGC/dist/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
<Id>c9279438-f874-4d23-9844-0fa7b71a7647</Id>
<Version>1.0.0.0</Version>
<ProviderName>Contoso</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="WordSampleAddIn"/>
<Description DefaultValue="A template to get started."/>
<IconUrl DefaultValue="https://www.contoso.com/assets/icon-32.png"/>
<HighResolutionIconUrl DefaultValue="https://www.contoso.com/assets/icon-64.png"/>
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
<AppDomains>
<AppDomain>https://www.contoso.com</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Document"/>
</Hosts>
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="SharedRuntime" MinVersion="1.1"/>
</Sets>
</Requirements>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.contoso.com/taskpane.html"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Document">
<Runtimes>
<Runtime resid="Taskpane.Url" lifetime="long" />
</Runtimes>
<DesktopFormFactor>
<GetStarted>
<Title resid="GetStarted.Title"/>
<Description resid="GetStarted.Description"/>
<LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
</GetStarted>
<FunctionFile resid="Commands.Url"/>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<OfficeTab id="TabHome">
<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="TaskpaneButton.Label"/>
<Supertip>
<Title resid="TaskpaneButton.Label"/>
<Description resid="TaskpaneButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16"/>
<bt:Image size="32" resid="Icon.32x32"/>
<bt:Image size="80" resid="Icon.80x80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="Taskpane.Url"/>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://www.contoso.com/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://www.contoso.com/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://www.contoso.com/assets/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812"/>
<bt:Url id="Commands.Url" DefaultValue="https://www.contoso.com/commands.html"/>
<bt:Url id="Taskpane.Url" DefaultValue="https://www.contoso.com/taskpane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GetStarted.Title" DefaultValue="Get started with your sample add-in!"/>
<bt:String id="CommandsGroup.Label" DefaultValue="Commands Group"/>
<bt:String id="TaskpaneButton.Label" DefaultValue="Show Taskpane"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started."/>
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane"/>
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
3 changes: 3 additions & 0 deletions Word-Add-in-AIGC/dist/polyfill.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Word-Add-in-AIGC/dist/polyfill.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/
1 change: 1 addition & 0 deletions Word-Add-in-AIGC/dist/polyfill.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Word-Add-in-AIGC/dist/taskpane.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en" data-framework="typescript"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=Edge"/><meta name="viewport" content="width=device-width,initial-scale=1"><title>Contoso Task Pane Add-in</title><script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script><link href="b4ab5df994595d24af0f.css" rel="stylesheet"/><script defer="defer" src="polyfill.js"></script><script defer="defer" src="vendor.js"></script><script defer="defer" src="taskpane.js"></script><script defer="defer" src="commands.js"></script></head><body><div style="height:1px;width:1px"><img src="https://pnptelemetry.azurewebsites.net/pnp-officeaddins/samples/word-add-in-aigc"></div><div id="container" class="container"></div><div id="tridentmessage" style="display:none;padding:10">This add-in will not run in your version of Office. Please upgrade either to perpetual Office 2021 (or later) or to a Microsoft 365 account.</div><script>if(-1!==navigator.userAgent.indexOf("Trident")||-1!==navigator.userAgent.indexOf("Edge")){var tridentMessage=document.getElementById("tridentmessage"),normalContainer=document.getElementById("container");tridentMessage.style.display="block",normalContainer.style.display="none"}</script></body></html>
3 changes: 3 additions & 0 deletions Word-Add-in-AIGC/dist/taskpane.js

Large diffs are not rendered by default.

94 changes: 94 additions & 0 deletions Word-Add-in-AIGC/dist/taskpane.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/

/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/

/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions Word-Add-in-AIGC/dist/taskpane.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Word-Add-in-AIGC/dist/vendor.js

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions Word-Add-in-AIGC/dist/vendor.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions Word-Add-in-AIGC/dist/vendor.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Word-Add-in-AIGC/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"dev_server_port": 3000
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"build": "webpack --mode production",
"build:dev": "webpack --mode development",
"dev-server": "webpack serve --mode development",
Expand Down
Loading

0 comments on commit 0312b0a

Please sign in to comment.