├── .gitignore
├── LICENSE
├── README.md
├── addins
├── CFSample
│ ├── CFSample.xml
│ ├── Images
│ │ ├── Button16x16.png
│ │ ├── Button32x32.png
│ │ └── Button80x80.png
│ ├── README.md
│ ├── customfunctions.html
│ ├── customfunctions.js
│ └── customfunctions.json
├── CFSample5
│ ├── 18a320cd-8c62-4852-8959-df88fb8474eb.xml
│ ├── 73da2e60-d61f-4538-97d0-9cf5e104186d-devcatalog.xml
│ ├── ContextualTabDefine.json
│ ├── Images
│ │ ├── Button16x16.png
│ │ ├── Button32x32.png
│ │ └── Button80x80.png
│ ├── README.md
│ ├── copytodevcatalog.cmd
│ ├── custom-functions.js
│ ├── custom-functions.json
│ └── sharedapp.html
├── cfMonitor
│ ├── Content
│ │ ├── OfficeThemes.css
│ │ ├── fabric.components.css
│ │ ├── fabric.components.min.css
│ │ ├── fabric.components.rtl.css
│ │ ├── fabric.components.rtl.min.css
│ │ ├── fabric.css
│ │ ├── fabric.min.css
│ │ ├── fabric.rtl.css
│ │ ├── fabric.rtl.min.css
│ │ └── sass
│ │ │ ├── Fabric.Animations.Output.scss
│ │ │ ├── Fabric.Animations.RTL.Output.scss
│ │ │ ├── Fabric.Color.Mixins.Output.scss
│ │ │ ├── Fabric.Components.scss
│ │ │ ├── Fabric.Grid.Output.scss
│ │ │ ├── Fabric.Icons.Font.Output.scss
│ │ │ ├── Fabric.Icons.Output.scss
│ │ │ ├── Fabric.Icons.RTL.Output.scss
│ │ │ ├── Fabric.RTL.scss
│ │ │ ├── Fabric.Responsive.Utilities.Output.scss
│ │ │ ├── Fabric.Typography.Fonts.Output.scss
│ │ │ ├── Fabric.Typography.Language.Overrides.Output.scss
│ │ │ ├── Fabric.Typography.Output.scss
│ │ │ ├── Fabric.Utilities.Output.scss
│ │ │ ├── Fabric.scss
│ │ │ ├── _Fabric.Animations.RTL.scss
│ │ │ ├── _Fabric.Animations.scss
│ │ │ ├── _Fabric.Color.Mixins.scss
│ │ │ ├── _Fabric.Color.Variables.scss
│ │ │ ├── _Fabric.Common.scss
│ │ │ ├── _Fabric.Grid.scss
│ │ │ ├── _Fabric.Icons.scss
│ │ │ ├── _Fabric.Mixins.scss
│ │ │ ├── _Fabric.Responsive.Utilities.Variables.scss
│ │ │ ├── _Fabric.Responsive.Variables.scss
│ │ │ ├── _Fabric.Typography.Fonts.scss
│ │ │ ├── _Fabric.Typography.Language.Overrides.scss
│ │ │ ├── _Fabric.Typography.Variables.scss
│ │ │ ├── _Fabric.Typography.scss
│ │ │ ├── _Fabric.Utilities.scss
│ │ │ ├── _Fabric.ZIndex.Variables.scss
│ │ │ └── _Office.Color.Variables.scss
│ ├── Images
│ │ ├── AddinIcon.png
│ │ ├── Button16x16.png
│ │ ├── Button32x32.png
│ │ ├── Button80x80.png
│ │ └── Close.png
│ ├── Scripts
│ │ ├── FabricUI
│ │ │ └── MessageBanner.js
│ │ ├── jquery-1.9.1.intellisense.js
│ │ ├── jquery-1.9.1.js
│ │ ├── jquery-1.9.1.min.js
│ │ ├── jquery-1.9.1.min.map
│ │ ├── jquery.fabric.js
│ │ └── jquery.fabric.min.js
│ ├── cfActiveMonitor.xml
│ ├── cfMonitor.css
│ ├── cfMonitor.html
│ ├── cfMonitor.js
│ └── cfMonitorUDF.html
├── cfsample2
│ ├── Images
│ │ ├── Button16x16.png
│ │ ├── Button32x32.png
│ │ └── Button80x80.png
│ ├── README.md
│ ├── b5d3b1f5-18b0-4a5b-824d-d46f2b6be076-devcatalog.xml
│ ├── c5a33478-ba81-414d-ad52-804f5da8facf.xml
│ ├── copytodevcatalog.cmd
│ ├── custom-functions.js
│ ├── custom-functions.json
│ └── sharedapp.html
├── cfsample3
│ ├── README.md
│ └── c268db15-61c2-42f9-ba95-a2de63292c46.xml
├── cfsample4
│ ├── README.md
│ └── c378f3ac-d912-4479-b442-3bcb0625fc9f.xml
├── officejs2
│ ├── README.md
│ ├── agave
│ │ ├── Word-Home-v1.html
│ │ ├── Word-Home-v2.html
│ │ ├── Word-Manifest-v1.xml
│ │ ├── Word-Manifest-v2.xml
│ │ ├── app.js
│ │ ├── home-v1.html
│ │ ├── home-v2.html
│ │ ├── manifest-v1.xml
│ │ ├── manifest-v2.xml
│ │ ├── wordApp.js
│ │ ├── xdmproxy.html
│ │ └── xdmproxy.js
│ └── dist
│ │ └── officejsv1
│ │ ├── ariatelemetry
│ │ └── aria-web-telemetry.js
│ │ ├── excel-web-16.00.js
│ │ ├── excel-win32-16.01.js
│ │ ├── office.js
│ │ ├── office_strings.js
│ │ ├── telemetry
│ │ ├── oteljs.js
│ │ └── oteljs_agave.js
│ │ ├── word-web-16.00.js
│ │ └── word-win32-16.01.js
├── outlook
│ ├── AgaveErrorUX
│ │ ├── AgaveErrorUx.debug.js
│ │ ├── AgaveErrorUx.js
│ │ ├── index.html
│ │ └── style
│ │ │ └── AgaveErrorUX.css
│ ├── Home_olk.html
│ ├── app_olk.js
│ ├── en-us
│ │ ├── outlook_strings.debug.js
│ │ └── outlook_strings.js
│ ├── outlook.debug.js
│ ├── outlook.js
│ └── telemetry
│ │ ├── oteljs.js
│ │ └── oteljs_agave.js
├── perf
│ ├── README.md
│ ├── assets
│ │ ├── icon-16.png
│ │ ├── icon-32.png
│ │ ├── icon-80.png
│ │ └── logo-filled.png
│ ├── config
│ │ └── customfunctions.json
│ ├── customfunctions.html
│ ├── customfunctionsPerfDriver.html
│ ├── image
│ │ ├── Button16x16.png
│ │ ├── Button32x32.png
│ │ └── Button80x80.png
│ ├── manifest.xml
│ └── src
│ │ ├── customfunctions.js
│ │ └── customfunctionsPerfDriver.js
└── upgrade
│ ├── README.md
│ ├── upgrade.js
│ ├── upgrade.json
│ ├── upgrade_1366_768.png
│ ├── upgrade_16.png
│ ├── upgrade_300.png
│ ├── upgrade_32.png
│ ├── upgrade_80.png
│ ├── upgrade_appcmd.html
│ ├── upgrade_appcmd.xml
│ ├── upgrade_shared.html
│ └── upgrade_shared.xml
├── lib
└── excel-codespace
│ ├── agave
│ ├── custom-function-forwarder.bundle.js
│ ├── custom-function-forwarder.bundle.js.map
│ ├── external
│ │ ├── react-16-12-0
│ │ │ └── umd
│ │ │ │ └── react.development.js
│ │ └── react-dom-16-12-0
│ │ │ └── umd
│ │ │ └── react-dom.development.js
│ ├── images
│ │ ├── button16x16.png
│ │ ├── button32x32.png
│ │ └── button80x80.png
│ └── udf.json
│ └── readme.md
└── test.html
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015/2017 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # Visual Studio 2017 auto generated files
33 | Generated\ Files/
34 |
35 | # MSTest test Results
36 | [Tt]est[Rr]esult*/
37 | [Bb]uild[Ll]og.*
38 |
39 | # NUNIT
40 | *.VisualState.xml
41 | TestResult.xml
42 |
43 | # Build Results of an ATL Project
44 | [Dd]ebugPS/
45 | [Rr]eleasePS/
46 | dlldata.c
47 |
48 | # Benchmark Results
49 | BenchmarkDotNet.Artifacts/
50 |
51 | # .NET Core
52 | project.lock.json
53 | project.fragment.lock.json
54 | artifacts/
55 | **/Properties/launchSettings.json
56 |
57 | # StyleCop
58 | StyleCopReport.xml
59 |
60 | # Files built by Visual Studio
61 | *_i.c
62 | *_p.c
63 | *_i.h
64 | *.ilk
65 | *.meta
66 | *.obj
67 | *.iobj
68 | *.pch
69 | *.pdb
70 | *.ipdb
71 | *.pgc
72 | *.pgd
73 | *.rsp
74 | *.sbr
75 | *.tlb
76 | *.tli
77 | *.tlh
78 | *.tmp
79 | *.tmp_proj
80 | *.log
81 | *.vspscc
82 | *.vssscc
83 | .builds
84 | *.pidb
85 | *.svclog
86 | *.scc
87 |
88 | # Chutzpah Test files
89 | _Chutzpah*
90 |
91 | # Visual C++ cache files
92 | ipch/
93 | *.aps
94 | *.ncb
95 | *.opendb
96 | *.opensdf
97 | *.sdf
98 | *.cachefile
99 | *.VC.db
100 | *.VC.VC.opendb
101 |
102 | # Visual Studio profiler
103 | *.psess
104 | *.vsp
105 | *.vspx
106 | *.sap
107 |
108 | # Visual Studio Trace Files
109 | *.e2e
110 |
111 | # TFS 2012 Local Workspace
112 | $tf/
113 |
114 | # Guidance Automation Toolkit
115 | *.gpState
116 |
117 | # ReSharper is a .NET coding add-in
118 | _ReSharper*/
119 | *.[Rr]e[Ss]harper
120 | *.DotSettings.user
121 |
122 | # JustCode is a .NET coding add-in
123 | .JustCode
124 |
125 | # TeamCity is a build add-in
126 | _TeamCity*
127 |
128 | # DotCover is a Code Coverage Tool
129 | *.dotCover
130 |
131 | # AxoCover is a Code Coverage Tool
132 | .axoCover/*
133 | !.axoCover/settings.json
134 |
135 | # Visual Studio code coverage results
136 | *.coverage
137 | *.coveragexml
138 |
139 | # NCrunch
140 | _NCrunch_*
141 | .*crunch*.local.xml
142 | nCrunchTemp_*
143 |
144 | # MightyMoose
145 | *.mm.*
146 | AutoTest.Net/
147 |
148 | # Web workbench (sass)
149 | .sass-cache/
150 |
151 | # Installshield output folder
152 | [Ee]xpress/
153 |
154 | # DocProject is a documentation generator add-in
155 | DocProject/buildhelp/
156 | DocProject/Help/*.HxT
157 | DocProject/Help/*.HxC
158 | DocProject/Help/*.hhc
159 | DocProject/Help/*.hhk
160 | DocProject/Help/*.hhp
161 | DocProject/Help/Html2
162 | DocProject/Help/html
163 |
164 | # Click-Once directory
165 | publish/
166 |
167 | # Publish Web Output
168 | *.[Pp]ublish.xml
169 | *.azurePubxml
170 | # Note: Comment the next line if you want to checkin your web deploy settings,
171 | # but database connection strings (with potential passwords) will be unencrypted
172 | *.pubxml
173 | *.publishproj
174 |
175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
176 | # checkin your Azure Web App publish settings, but sensitive information contained
177 | # in these scripts will be unencrypted
178 | PublishScripts/
179 |
180 | # NuGet Packages
181 | *.nupkg
182 | # The packages folder can be ignored because of Package Restore
183 | **/[Pp]ackages/*
184 | # except build/, which is used as an MSBuild target.
185 | !**/[Pp]ackages/build/
186 | # Uncomment if necessary however generally it will be regenerated when needed
187 | #!**/[Pp]ackages/repositories.config
188 | # NuGet v3's project.json files produces more ignorable files
189 | *.nuget.props
190 | *.nuget.targets
191 |
192 | # Microsoft Azure Build Output
193 | csx/
194 | *.build.csdef
195 |
196 | # Microsoft Azure Emulator
197 | ecf/
198 | rcf/
199 |
200 | # Windows Store app package directories and files
201 | AppPackages/
202 | BundleArtifacts/
203 | Package.StoreAssociation.xml
204 | _pkginfo.txt
205 | *.appx
206 |
207 | # Visual Studio cache files
208 | # files ending in .cache can be ignored
209 | *.[Cc]ache
210 | # but keep track of directories ending in .cache
211 | !*.[Cc]ache/
212 |
213 | # Others
214 | ClientBin/
215 | ~$*
216 | *~
217 | *.dbmdl
218 | *.dbproj.schemaview
219 | *.jfm
220 | *.pfx
221 | *.publishsettings
222 | orleans.codegen.cs
223 |
224 | # Including strong name files can present a security risk
225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
226 | #*.snk
227 |
228 | # Since there are multiple workflows, uncomment next line to ignore bower_components
229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
230 | #bower_components/
231 |
232 | # RIA/Silverlight projects
233 | Generated_Code/
234 |
235 | # Backup & report files from converting an old project file
236 | # to a newer Visual Studio version. Backup files are not needed,
237 | # because we have git ;-)
238 | _UpgradeReport_Files/
239 | Backup*/
240 | UpgradeLog*.XML
241 | UpgradeLog*.htm
242 | ServiceFabricBackup/
243 | *.rptproj.bak
244 |
245 | # SQL Server files
246 | *.mdf
247 | *.ldf
248 | *.ndf
249 |
250 | # Business Intelligence projects
251 | *.rdl.data
252 | *.bim.layout
253 | *.bim_*.settings
254 | *.rptproj.rsuser
255 |
256 | # Microsoft Fakes
257 | FakesAssemblies/
258 |
259 | # GhostDoc plugin setting file
260 | *.GhostDoc.xml
261 |
262 | # Node.js Tools for Visual Studio
263 | .ntvs_analysis.dat
264 | node_modules/
265 |
266 | # Visual Studio 6 build log
267 | *.plg
268 |
269 | # Visual Studio 6 workspace options file
270 | *.opt
271 |
272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
273 | *.vbw
274 |
275 | # Visual Studio LightSwitch build output
276 | **/*.HTMLClient/GeneratedArtifacts
277 | **/*.DesktopClient/GeneratedArtifacts
278 | **/*.DesktopClient/ModelManifest.xml
279 | **/*.Server/GeneratedArtifacts
280 | **/*.Server/ModelManifest.xml
281 | _Pvt_Extensions
282 |
283 | # Paket dependency manager
284 | .paket/paket.exe
285 | paket-files/
286 |
287 | # FAKE - F# Make
288 | .fake/
289 |
290 | # JetBrains Rider
291 | .idea/
292 | *.sln.iml
293 |
294 | # CodeRush
295 | .cr/
296 |
297 | # Python Tools for Visual Studio (PTVS)
298 | __pycache__/
299 | *.pyc
300 |
301 | # Cake - Uncomment if you are using it
302 | # tools/**
303 | # !tools/packages.config
304 |
305 | # Tabs Studio
306 | *.tss
307 |
308 | # Telerik's JustMock configuration file
309 | *.jmconfig
310 |
311 | # BizTalk build output
312 | *.btp.cs
313 | *.btm.cs
314 | *.odx.cs
315 | *.xsd.cs
316 |
317 | # OpenCover UI analysis results
318 | OpenCover/
319 |
320 | # Azure Stream Analytics local run output
321 | ASALocalRun/
322 |
323 | # MSBuild Binary and Structured Log
324 | *.binlog
325 |
326 | # NVidia Nsight GPU debugger configuration file
327 | *.nvuser
328 |
329 | # MFractors (Xamarin productivity tool) working folder
330 | .mfractor/
331 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Microsoft Corporation. All rights reserved.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | page_type: sample
3 | products:
4 | - office-365
5 | languages:
6 | - javascript
7 | extensions:
8 | contentType: samples
9 | createdDate: 7/25/2018 10:27:27 AM
10 | description: "Custom Functions - Special Add-in Samples"
11 | ---
12 |
13 | # Note
14 | The primary repo for Custom Functions-related samples, tools, and forums is [Excel-Custom-Functions](https://github.com/OfficeDev/Excel-Custom-Functions).
15 |
16 | # Custom Functions - Special Add-in Samples
17 | Custom Functions - Special Add-in Samples is a community driven effort that helps developers verify and understand some special features of the Office add-in platform. This repo contains add-in source code and manifests. Anyone can contribute. All add-ins in this repo should be fully functional. See the [addins](https://github.com/OfficeDev/custom-functions/tree/master/addins) subfolders for descriptions of the existing add-ins.
18 |
19 | ## Contributing
20 | This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
21 |
22 | When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
23 | a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
24 | provided by the bot. You will only need to do this once across all repos using our CLA.
25 |
26 | ## Code of Conduct
27 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
28 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
29 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
30 |
--------------------------------------------------------------------------------
/addins/CFSample/Images/Button16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/CFSample/Images/Button16x16.png
--------------------------------------------------------------------------------
/addins/CFSample/Images/Button32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/CFSample/Images/Button32x32.png
--------------------------------------------------------------------------------
/addins/CFSample/Images/Button80x80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/CFSample/Images/Button80x80.png
--------------------------------------------------------------------------------
/addins/CFSample/README.md:
--------------------------------------------------------------------------------
1 | # License
2 | See https://officedev.github.io/custom-functions/LICENSE
3 |
4 | # Purpose
5 | This add-in is used to test Custom Functions which contains different sample of functions like: DialogApi, OfficeStorage, streaming functions etc, along with a Taskpane which contain OfficeStorage API to get/set token from the storage.
6 |
7 | This add-in contains:
8 | - Custom Functions
9 | - A ShowTaskpane button
10 |
11 | # Maintainers
12 | [madhavagrawal17](https://github.com/madhavagrawal17)
13 | [ylu0826](https://github.com/ylu0826)
14 |
--------------------------------------------------------------------------------
/addins/CFSample/customfunctions.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Custom Functions
8 |
9 |
10 |
11 |
37 |
38 |
39 |
40 | Thanks for trying custom functions for Excel! You've installed the sample functions, which start with the prefix CFSAMPLE.
41 | Try typing them into a cell (with or without this task pane - it isn't needed):
42 |
43 |
=CFSAMPLE.ADD42 adds 42 to two input numbers and returns a number.
44 |
=CFSAMPLE.GET_DAY returns current day of the week as a string.
45 |
=CFSAMPLE.IS_PRIME returns a boolean to denote whether a number is prime
46 |
47 |
=CFSAMPLE.NTH_PRIME computation intensive function for large values on N.
48 |
=CFSAMPLE.ADD42_PROMISE returns a Promise that resolves asynchronously.
30 |
31 |
32 |
--------------------------------------------------------------------------------
/addins/outlook/app_olk.js:
--------------------------------------------------------------------------------
1 | function getSubject() {
2 | Office.context.mailbox.item.subject.getAsync(callback);
3 |
4 | function callback(asyncResult) {
5 | var subject = asyncResult.value;
6 | writeResult("GetSubject result is: "+ subject);
7 | }
8 | }
9 |
10 | function setSubject() {
11 | Office.context.mailbox.item.subject.setAsync("New subject!", function (asyncResult) {
12 | if (asyncResult.status === "failed") {
13 | console.log("Action failed with error: " + asyncResult.error.message);
14 | writeResult("Set subject Action failed with error: " + asyncResult.error.message);
15 | }
16 | else {
17 | writeResult("SetSubject done.");
18 | }
19 | });
20 | }
21 |
22 | function getUserProfile() {
23 | writeResult(Office.context.mailbox.userProfile.displayname);
24 | }
25 |
26 | function getRestId() {
27 | let itemId = Office.context.mailbox.item.itemId;
28 | let restId = Office.context.mailbox.convertToRestId(itemId, Office.MailboxEnums.RestVersion.v2_0);
29 | writeResult(restId);
30 | }
31 |
32 | function getLanguage() {
33 | writeResult(Office.context.displayLanguage);
34 | }
35 |
36 | function closeContainer() {
37 | Office.context.ui.closeContainer();
38 | }
39 |
40 | function clearResult() {
41 | document.getElementById("result").value = "";
42 | }
43 |
44 | function writeResult(result) {
45 | document.getElementById("result").value += ("\n" +result);
46 | }
47 |
48 | Office.initialize = function (reason) {};
49 | Office.onReady(function(info) {});
--------------------------------------------------------------------------------
/addins/outlook/en-us/outlook_strings.debug.js:
--------------------------------------------------------------------------------
1 | _u = typeof _u === "object" ? _u : {};
2 | _u.ExtensibilityStrings = _u.ExtensibilityStrings || {};
3 |
4 | _u.ExtensibilityStrings.l_APICallFailedDueToItemChange_Text='The selected item has been changed.';
5 | _u.ExtensibilityStrings.l_ActionsDefinitionMultipleActionsError_Text='Only a single action is currently supported.';
6 | _u.ExtensibilityStrings.l_ActionsDefinitionWrongNotificationMessageError_Text='Actions can\'t be defined for this notification message type.';
7 | _u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text='The attachment cannot be deleted from the item.';
8 | _u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text='The user removed the attachment before upload has completed.';
9 | _u.ExtensibilityStrings.l_AttachmentErrorName_Text='Attachment Error';
10 | _u.ExtensibilityStrings.l_AttachmentExceededSize_Text='The attachment cannot be added because it is too big.';
11 | _u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text='One or more of the attachment IDs is too long.';
12 | _u.ExtensibilityStrings.l_AttachmentNameTooLong_Text='One or more of the attachment names is too long.';
13 | _u.ExtensibilityStrings.l_AttachmentNotSupported_Text='The attachment type is not supported.';
14 | _u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text='The attachment cannot be added to the item.';
15 | _u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text='One or more of the attachment URLs is too long.';
16 | _u.ExtensibilityStrings.l_CallSaveAsyncBeforeToken_Text='The token can\'t be retrieved until the item is saved.';
17 | _u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text='Attachments cannot be added while the full reply or forward is being retrieved from the server.';
18 | _u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text='Notifications can\'t be persisted in unsaved drafts. Save the item before you call this API.';
19 | _u.ExtensibilityStrings.l_CursorPositionChanged_Text='The user changed the position of the cursor while the data was being inserted.';
20 | _u.ExtensibilityStrings.l_DataWriteErrorName_Text='Data Write Error';
21 | _u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text='The attachment cannot be deleted because attachment with the attachment index cannot be found.';
22 | _u.ExtensibilityStrings.l_DisplayNameTooLong_Text='One or more of the display names provided is too long.';
23 | _u.ExtensibilityStrings.l_DisplayReplyFormHtmlBodyRequired_Text='The \'htmlBody\' is required.';
24 | _u.ExtensibilityStrings.l_DuplicateNotificationKey_Text='A notification with the provided key already exists.';
25 | _u.ExtensibilityStrings.l_Duplicate_Category_Error_Text='One of the categories provided is already in the master category list.';
26 | _u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text='Elevated permission is required to call the method: \'{0}\'.';
27 | _u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text='Elevated permission is required to access protected members of the JavaScript API for Office.';
28 | _u.ExtensibilityStrings.l_EmailAddressTooLong_Text='One or more of the email addresses provided is too long.';
29 | _u.ExtensibilityStrings.l_EwsRequestOversized_Text='The request exceeds the 1 MB size limit. Please modify your EWS request.';
30 | _u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text='Attachments cannot be added because the message already has the maximum number of attachments';
31 | _u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text='The HTML santization has failed.';
32 | _u.ExtensibilityStrings.l_Insufficient_Item_Permissions_Text='The user doesn\'t have the permissions required to perform this operation.';
33 | _u.ExtensibilityStrings.l_InternalFormatError_Text='There was an internal format error.';
34 | _u.ExtensibilityStrings.l_InternalProtocolError_Text='Internal protocol error: \'{0}\'.';
35 | _u.ExtensibilityStrings.l_Internal_Server_Error_Text='The Exchange server returned an error. Please look at the diagnostics object for more information.';
36 | _u.ExtensibilityStrings.l_Internet_Not_Connected_Error_Text='The user is no longer connected to the network. Please check your network connection and try again.';
37 | _u.ExtensibilityStrings.l_InvalidActionType_Text='The value of the parameter \'actionType\' is invalid. The accepted value is \"showTaskPane\".';
38 | _u.ExtensibilityStrings.l_InvalidAttachmentId_Text='The attachment ID was invalid.';
39 | _u.ExtensibilityStrings.l_InvalidAttachmentPath_Text='The attachment path was invalid.';
40 | _u.ExtensibilityStrings.l_InvalidCommandIdError_Text='The value of the parameter \'commandId\' is invalid.';
41 | _u.ExtensibilityStrings.l_InvalidDate_Text='The input doesn\'t resolve to a valid date.';
42 | _u.ExtensibilityStrings.l_InvalidEndTime_Text='The end time cannot be before the start time.';
43 | _u.ExtensibilityStrings.l_InvalidEventDates_Text='The end date occurs before the start date.';
44 | _u.ExtensibilityStrings.l_InvalidParameterValueError_Text='The value of the \'{0}\' parameter is invalid.';
45 | _u.ExtensibilityStrings.l_InvalidSelection_Text='The selection is invalid.';
46 | _u.ExtensibilityStrings.l_InvalidTime_Text='The input doesn\'t resolve to a valid time.';
47 | _u.ExtensibilityStrings.l_Invalid_Category_Error_Text='Invalid categories were provided.';
48 | _u.ExtensibilityStrings.l_Item_Not_Saved_Error_Text='The id can\'t be retrieved until the item is saved.';
49 | _u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text='The EWS ID can\'t be retrieved because the message is saved in a different store.';
50 | _u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text='No valid recipients were provided.';
51 | _u.ExtensibilityStrings.l_NotificationKeyNotFound_Text='There are no notifications with the provided key.';
52 | _u.ExtensibilityStrings.l_NullOrEmptyParameterError_Text='The parameter \'{0}\' is mandatory and it can\'t be null or empty.';
53 | _u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text='The notification couldn\'t be added because the notification limit has been reached.';
54 | _u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text='The total number of recipients in the field can\'t exceed {0}.';
55 | _u.ExtensibilityStrings.l_OffsetNotfound_Text='An offset for this time stamp couldn\'t be found.';
56 | _u.ExtensibilityStrings.l_Olk_Http_Error_Text='The request has failed. Please look at the diagnostics object for the HTTP error code.';
57 | _u.ExtensibilityStrings.l_ParameterValueTooLongError_Text='The value of the \'{0}\' parameter is too long. The maximum number of characters is \'{1}\'.';
58 | _u.ExtensibilityStrings.l_ParametersNotAsExpected_Text='The given parameters do not match the expected format.';
59 | _u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text='The API call you made failed because the persisted notifications couldn\'t be retrieved.';
60 | _u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text='The API call you made failed because notifications couldn\'t be persisted.';
61 | _u.ExtensibilityStrings.l_RecurrenceErrorMaxOccurrences_Text='The recurring series exceeds the maximum limit of 999 occurrences.';
62 | _u.ExtensibilityStrings.l_RecurrenceErrorZeroOccurrences_Text='The recurring series has no occurrences in the specified date range.';
63 | _u.ExtensibilityStrings.l_RecurrenceInvalidTimeZone_Text='The specified time zone is not supported.';
64 | _u.ExtensibilityStrings.l_RecurrenceUnsupportedAlternateCalendar_Text='The recurrence pattern was set by the user using an alternate calendar that is not supported.';
65 | _u.ExtensibilityStrings.l_Recurrence_Error_Instance_SetAsync_Text='A recurrence pattern can\'t be set for a single occurrence in a series.';
66 | _u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text='The recurrence pattern isn\'t valid. Please check that the specified recurrence properties align with the recurrence type.';
67 | _u.ExtensibilityStrings.l_SaveError_Text='Connection error occurred while trying to save the item on the server.';
68 |
69 |
70 |
--------------------------------------------------------------------------------
/addins/outlook/en-us/outlook_strings.js:
--------------------------------------------------------------------------------
1 | _u = typeof _u === "object" ? _u : {};_u.ExtensibilityStrings = _u.ExtensibilityStrings || {};_u.ExtensibilityStrings=function(){};if (_u.ExtensibilityStrings.registerClass) _u.ExtensibilityStrings.registerClass("_u.ExtensibilityStrings");_u.ExtensibilityStrings.l_APICallFailedDueToItemChange_Text="The selected item has been changed.";_u.ExtensibilityStrings.l_ActionsDefinitionMultipleActionsError_Text="Only a single action is currently supported.";_u.ExtensibilityStrings.l_ActionsDefinitionWrongNotificationMessageError_Text="Actions can't be defined for this notification message type.";_u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text="The attachment cannot be deleted from the item.";_u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text="The user removed the attachment before upload has completed.";_u.ExtensibilityStrings.l_AttachmentErrorName_Text="Attachment Error";_u.ExtensibilityStrings.l_AttachmentExceededSize_Text="The attachment cannot be added because it is too big.";_u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text="One or more of the attachment IDs is too long.";_u.ExtensibilityStrings.l_AttachmentNameTooLong_Text="One or more of the attachment names is too long.";_u.ExtensibilityStrings.l_AttachmentNotSupported_Text="The attachment type is not supported.";_u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text="The attachment cannot be added to the item.";_u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text="One or more of the attachment URLs is too long.";_u.ExtensibilityStrings.l_CallSaveAsyncBeforeToken_Text="The token can't be retrieved until the item is saved.";_u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text="Attachments cannot be added while the full reply or forward is being retrieved from the server.";_u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text="Notifications can't be persisted in unsaved drafts. Save the item before you call this API.";_u.ExtensibilityStrings.l_CursorPositionChanged_Text="The user changed the position of the cursor while the data was being inserted.";_u.ExtensibilityStrings.l_DataWriteErrorName_Text="Data Write Error";_u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text="The attachment cannot be deleted because attachment with the attachment index cannot be found.";_u.ExtensibilityStrings.l_DisplayNameTooLong_Text="One or more of the display names provided is too long.";_u.ExtensibilityStrings.l_DisplayReplyFormHtmlBodyRequired_Text="The 'htmlBody' is required.";_u.ExtensibilityStrings.l_DuplicateNotificationKey_Text="A notification with the provided key already exists.";_u.ExtensibilityStrings.l_Duplicate_Category_Error_Text="One of the categories provided is already in the master category list.";_u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text="Elevated permission is required to call the method: '{0}'.";_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text="Elevated permission is required to access protected members of the JavaScript API for Office.";_u.ExtensibilityStrings.l_EmailAddressTooLong_Text="One or more of the email addresses provided is too long.";_u.ExtensibilityStrings.l_EwsRequestOversized_Text="The request exceeds the 1 MB size limit. Please modify your EWS request.";_u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text="Attachments cannot be added because the message already has the maximum number of attachments";_u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text="The HTML santization has failed.";_u.ExtensibilityStrings.l_Insufficient_Item_Permissions_Text="The user doesn't have the permissions required to perform this operation.";_u.ExtensibilityStrings.l_InternalFormatError_Text="There was an internal format error.";_u.ExtensibilityStrings.l_InternalProtocolError_Text="Internal protocol error: '{0}'.";_u.ExtensibilityStrings.l_Internal_Server_Error_Text="The Exchange server returned an error. Please look at the diagnostics object for more information.";_u.ExtensibilityStrings.l_Internet_Not_Connected_Error_Text="The user is no longer connected to the network. Please check your network connection and try again.";_u.ExtensibilityStrings.l_InvalidActionType_Text="The value of the parameter 'actionType' is invalid. The accepted value is \"showTaskPane\".";_u.ExtensibilityStrings.l_InvalidAttachmentId_Text="The attachment ID was invalid.";_u.ExtensibilityStrings.l_InvalidAttachmentPath_Text="The attachment path was invalid.";_u.ExtensibilityStrings.l_InvalidCommandIdError_Text="The value of the parameter 'commandId' is invalid.";_u.ExtensibilityStrings.l_InvalidDate_Text="The input doesn't resolve to a valid date.";_u.ExtensibilityStrings.l_InvalidEndTime_Text="The end time cannot be before the start time.";_u.ExtensibilityStrings.l_InvalidEventDates_Text="The end date occurs before the start date.";_u.ExtensibilityStrings.l_InvalidParameterValueError_Text="The value of the '{0}' parameter is invalid.";_u.ExtensibilityStrings.l_InvalidSelection_Text="The selection is invalid.";_u.ExtensibilityStrings.l_InvalidTime_Text="The input doesn't resolve to a valid time.";_u.ExtensibilityStrings.l_Invalid_Category_Error_Text="Invalid categories were provided.";_u.ExtensibilityStrings.l_Item_Not_Saved_Error_Text="The id can't be retrieved until the item is saved.";_u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text="The EWS ID can't be retrieved because the message is saved in a different store.";_u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text="No valid recipients were provided.";_u.ExtensibilityStrings.l_NotificationKeyNotFound_Text="There are no notifications with the provided key.";_u.ExtensibilityStrings.l_NullOrEmptyParameterError_Text="The parameter '{0}' is mandatory and it can't be null or empty.";_u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text="The notification couldn't be added because the notification limit has been reached.";_u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text="The total number of recipients in the field can't exceed {0}.";_u.ExtensibilityStrings.l_OffsetNotfound_Text="An offset for this time stamp couldn't be found.";_u.ExtensibilityStrings.l_Olk_Http_Error_Text="The request has failed. Please look at the diagnostics object for the HTTP error code.";_u.ExtensibilityStrings.l_ParameterValueTooLongError_Text="The value of the '{0}' parameter is too long. The maximum number of characters is '{1}'.";_u.ExtensibilityStrings.l_ParametersNotAsExpected_Text="The given parameters do not match the expected format.";_u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text="The API call you made failed because the persisted notifications couldn't be retrieved.";_u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text="The API call you made failed because notifications couldn't be persisted.";_u.ExtensibilityStrings.l_RecurrenceErrorMaxOccurrences_Text="The recurring series exceeds the maximum limit of 999 occurrences.";_u.ExtensibilityStrings.l_RecurrenceErrorZeroOccurrences_Text="The recurring series has no occurrences in the specified date range.";_u.ExtensibilityStrings.l_RecurrenceInvalidTimeZone_Text="The specified time zone is not supported.";_u.ExtensibilityStrings.l_RecurrenceUnsupportedAlternateCalendar_Text="The recurrence pattern was set by the user using an alternate calendar that is not supported.";_u.ExtensibilityStrings.l_Recurrence_Error_Instance_SetAsync_Text="A recurrence pattern can't be set for a single occurrence in a series.";_u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text="The recurrence pattern isn't valid. Please check that the specified recurrence properties align with the recurrence type.";_u.ExtensibilityStrings.l_SaveError_Text="Connection error occurred while trying to save the item on the server."
--------------------------------------------------------------------------------
/addins/perf/README.md:
--------------------------------------------------------------------------------
1 | # Purpose
2 | This add-in is used to test the perforamace of Custom Functions. In order .
3 |
4 | This Addin contains two components:
5 | 1. Taskpane: Contains automation mode and manual mode.
6 | - The automation mode requires to load a test worksheet.
7 | - The automation mode calculated the customfunction execution time based on the given input provided in the taskpane.
8 | 2. Custom Functions: Contains functions with different complexity.
9 |
10 | # Maintainer
11 | [ylu0826](https://github.com/ylu0826)
12 |
--------------------------------------------------------------------------------
/addins/perf/assets/icon-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/perf/assets/icon-16.png
--------------------------------------------------------------------------------
/addins/perf/assets/icon-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/perf/assets/icon-32.png
--------------------------------------------------------------------------------
/addins/perf/assets/icon-80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/perf/assets/icon-80.png
--------------------------------------------------------------------------------
/addins/perf/assets/logo-filled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OfficeDev/custom-functions/6dc3d8f237589d4aaadef9982fba770b6f3ec712/addins/perf/assets/logo-filled.png
--------------------------------------------------------------------------------
/addins/perf/config/customfunctions.json:
--------------------------------------------------------------------------------
1 | {
2 | "functions": [
3 | {
4 | "id": "MORTGAGEPAYMENTJS",
5 | "name": "MORTGAGEPAYMENTJS",
6 | "description": "Computes the mortgage payment",
7 | "helpUrl": "http://dev.office.com",
8 | "result": {
9 | "type": "number",
10 | "dimensionality": "scalar"
11 | },
12 | "parameters": [
13 | {
14 | "name": "principalAmount",
15 | "description": "Number",
16 | "type": "number",
17 | "dimensionality": "scalar"
18 | },
19 | {
20 | "name": "interestRate",
21 | "description": "Number",
22 | "type": "number",
23 | "dimensionality": "scalar"
24 | },
25 | {
26 | "name": "numberOfMonths",
27 | "description": "Number",
28 | "type": "number",
29 | "dimensionality": "scalar"
30 | }
31 | ],
32 | "options": {
33 | "sync": false,
34 | "stream": false
35 | }
36 | },
37 | {
38 | "id": "SYNCMORTGAGEPAYMENTJS",
39 | "name": "SYNCMORTGAGEPAYMENTJS",
40 | "description": "Computes the mortgage payment",
41 | "helpUrl": "http://dev.office.com",
42 | "result": {
43 | "type": "number",
44 | "dimensionality": "scalar"
45 | },
46 | "parameters": [
47 | {
48 | "name": "principalAmount",
49 | "description": "Number",
50 | "type": "number",
51 | "dimensionality": "scalar"
52 | },
53 | {
54 | "name": "interestRate",
55 | "description": "Number",
56 | "type": "number",
57 | "dimensionality": "scalar"
58 | },
59 | {
60 | "name": "numberOfMonths",
61 | "description": "Number",
62 | "type": "number",
63 | "dimensionality": "scalar"
64 | }
65 | ],
66 | "options": {
67 | "sync": true,
68 | "stream": false
69 | }
70 | },
71 | {
72 | "id": "FINDNTHPRIMEJS",
73 | "name": "FINDNTHPRIMEJS",
74 | "description": "Finds the nth prime",
75 | "helpUrl": "http://dev.office.com",
76 | "result": {
77 | "type": "number",
78 | "dimensionality": "scalar"
79 | },
80 | "parameters": [
81 | {
82 | "name": "n",
83 | "description": "Nth prime",
84 | "type": "number",
85 | "dimensionality": "matrix"
86 | }
87 | ],
88 | "options": {
89 | "sync": false,
90 | "stream": false
91 | }
92 | },
93 | {
94 | "id": "SYNCFINDNTHPRIMEJS",
95 | "name": "SYNCFINDNTHPRIMEJS",
96 | "description": "Finds the nth prime",
97 | "helpUrl": "http://dev.office.com",
98 | "result": {
99 | "type": "number",
100 | "dimensionality": "scalar"
101 | },
102 | "parameters": [
103 | {
104 | "name": "n",
105 | "description": "Nth prime",
106 | "type": "number",
107 | "dimensionality": "matrix"
108 | }
109 | ],
110 | "options": {
111 | "sync": true,
112 | "stream": false
113 | }
114 | },
115 | {
116 | "id": "BUBBLESORTJS",
117 | "name": "BUBBLESORTJS",
118 | "description": "Finds how many swaps will be performed to sort the input numbers",
119 | "helpUrl": "http://dev.office.com",
120 | "result": {
121 | "type": "number",
122 | "dimensionality": "scalar"
123 | },
124 | "parameters": [
125 | {
126 | "name": "numbers",
127 | "description": "Numbers to perform bubble sort on",
128 | "type": "number",
129 | "dimensionality": "matrix"
130 | }
131 | ],
132 | "options": {
133 | "sync": false,
134 | "stream": false
135 | }
136 | },
137 | {
138 | "id": "SYNCBUBBLESORTJS",
139 | "name": "SYNCBUBBLESORTJS",
140 | "description": "Finds how many swaps will be performed to sort the input numbers",
141 | "helpUrl": "http://dev.office.com",
142 | "result": {
143 | "type": "number",
144 | "dimensionality": "scalar"
145 | },
146 | "parameters": [
147 | {
148 | "name": "numbers",
149 | "description": "Numbers to perform bubble sort on",
150 | "type": "number",
151 | "dimensionality": "matrix"
152 | }
153 | ],
154 | "options": {
155 | "sync": true,
156 | "stream": false
157 | }
158 | },
159 | {
160 | "id": "ADDRANGEJS",
161 | "name": "ADDRANGEJS",
162 | "description": "Adds all the number in the range",
163 | "helpUrl": "http://dev.office.com",
164 | "result": {
165 | "type": "number"
166 | },
167 | "parameters": [
168 | {
169 | "name": "range",
170 | "description": "all the range",
171 | "type": "number",
172 | "dimensionality": "matrix"
173 | }
174 | ],
175 | "options": {
176 | "sync": false,
177 | "stream": false
178 | }
179 | },
180 | {
181 | "id": "SYNCADDRANGEJS",
182 | "name": "SYNCADDRANGEJS",
183 | "description": "Adds all the number in the range",
184 | "helpUrl": "http://dev.office.com",
185 | "result": {
186 | "type": "number"
187 | },
188 | "parameters": [
189 | {
190 | "name": "range",
191 | "description": "all the range",
192 | "type": "number",
193 | "dimensionality": "matrix"
194 | }
195 | ],
196 | "options": {
197 | "sync": true,
198 | "stream": false
199 | }
200 | },
201 | {
202 | "id": "ADDSTRINGRANGEJS",
203 | "name": "ADDSTRINGRANGEJS",
204 | "description": "Adds all strings length in the range",
205 | "helpUrl": "http://dev.office.com",
206 | "result": {
207 | "type": "number"
208 | },
209 | "parameters": [
210 | {
211 | "name": "range",
212 | "description": "all the range",
213 | "type": "string",
214 | "dimensionality": "matrix"
215 | }
216 | ],
217 | "options": {
218 | "sync": false,
219 | "stream": false
220 | }
221 | },
222 | {
223 | "id": "SYNCADDSTRINGRANGEJS",
224 | "name": "SYNCADDSTRINGRANGEJS",
225 | "description": "Adds all strings length in the range",
226 | "helpUrl": "http://dev.office.com",
227 | "result": {
228 | "type": "number"
229 | },
230 | "parameters": [
231 | {
232 | "name": "range",
233 | "description": "all the range",
234 | "type": "string",
235 | "dimensionality": "matrix"
236 | }
237 | ],
238 | "options": {
239 | "sync": true,
240 | "stream": false
241 | }
242 | },
243 | {
244 | "id": "NESTEDLOOPJS",
245 | "name": "NESTEDLOOPJS",
246 | "description": "Get double loop count based on the input",
247 | "helpUrl": "http://dev.office.com",
248 | "result": {
249 | "type": "number"
250 | },
251 | "parameters": [
252 | {
253 | "name": "n",
254 | "description": "loop count input",
255 | "type": "number",
256 | "dimensionality": "scalar"
257 | }
258 | ],
259 | "options": {
260 | "sync": false,
261 | "stream": false
262 | }
263 | },
264 | {
265 | "id": "SYNCNESTEDLOOPJS",
266 | "name": "SYNCNESTEDLOOPJS",
267 | "description": "Get double loop count based on the input",
268 | "helpUrl": "http://dev.office.com",
269 | "result": {
270 | "type": "number"
271 | },
272 | "parameters": [
273 | {
274 | "name": "n",
275 | "description": "loop count input",
276 | "type": "number",
277 | "dimensionality": "scalar"
278 | }
279 | ],
280 | "options": {
281 | "sync": true,
282 | "stream": false
283 | }
284 | }
285 | ]
286 | }
287 |
--------------------------------------------------------------------------------
/addins/perf/customfunctions.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
29 |
30 |
31 |
This mode only works in the custom function perf document since it has dependencies on the sheets. Tests will be run based on the data from 'Input' sheet.
37 |
38 |
Trigger Input Test Set (Aync Only)
39 |
Write results to:
40 | Output_Before
41 | Output_After
42 |
43 |
44 |
45 |
46 |
47 |
Trigger Test by TestID (Lab only)
48 | Async Execution
49 | Execute Stress Test
50 | Test ID:
51 |
52 |
53 |
54 |
55 |
Manual Mode (Async Only)
56 |
This mode works in any document. Test will run based on the input data from the below form.
57 |
58 |
Step 1 - Create test data (bubblesort only, onetime only)
59 |
60 |
61 |
62 |
Step 2 - Update the settings as required
63 | Number of functions:
64 | Number of iterations:
65 | Number of functions on each row:
66 | Timeout (ms) for each iteration:
67 |
68 |
69 |
Step 3 - Select function to run
70 | Calculate Mortgage
71 | Loan amount , interest rate , number of months