nvm --version
nvm ls --no-alias
nvm current
json = [ | |
{ | |
key: 1, | |
id: 1, | |
label: "Parent #1", | |
isexpanded: false, | |
children: [ | |
{ | |
key: 11, | |
id: 11, |
import { sp } from "@pnp/sp/presets/all"; | |
(async () => { | |
console.clear(); | |
const doPagedQuery = (folder: string, rowLimit: number, scope: "Files"|"Folders", pageToken?: string) => { | |
const list = sp.web.getList('/sites/EDMS_InformationGovernance/Shared%20Documents'); | |
return list.renderListDataAsStream({ | |
ViewXml: ` | |
<View Scope="RecursiveAll"> |
## Recursively Remove .DS_Store | |
# Show | |
find . -name '.DS_Store' -type f | |
# Remove | |
find . -name '.DS_Store' -type f -delete |
console.clear(); | |
/* Logging levels | |
0: Error | |
1: Warning | |
2: Info | |
3: Verbose | |
*/ | |
(function() { | |
/* LOAD ADAL.JS onto the page |
POST https://platinumdogsconsulting.sharepoint.com/sites/hubsitetest/_api/site/GetCopyJobProgress | |
HEADERS | |
{ | |
Accept: application/json;odata=verbose | |
Content-Type: application/json;odata=verbose | |
X-RequestDigest: <<site form digest>> | |
} | |
BODY | |
{ | |
"copyJobInfo": { |
importSnippets = [ | |
{ | |
"id": "2", | |
"name": "Print Display ListForm using Dialog", | |
"content": "function onListFormPrintViewDialogClosed(dialogResult, returnValue) {\n console.log(\"Print View Dialog closed, result: \" + dialogResult);\n}\n\nfunction showListFormPrintViewDialog(e) {\n e.preventDefault();\n var formUrl = e.data && e.data.url && e.data.url.length ? e.data.url : '';\n if (e.data && (!e.data.url && !e.data.url.length)) {\n /* no url supplied, get the DispForm url for the current listitem form */\n var formCtxName = ($(\"*[id$='ClientFormPlaceholder']\")\n .attr('id')\n .replace(/ClientFormPlaceholder/gi,'')) || \"\";\n var formCtx = window[formCtxName+\"FormCtx\"];\n var listItemId = formCtx && formCtx.ItemAttributes\n ? formCtx.ItemAttributes.Id \n : 0;\n formUrl = formCtx.RedirectInfo\n ? formCtx.RedirectInfo.listRootFolderUrl + \"/DispForm.aspx?ID=\" + listItemId |