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
<?xml version="1.0" encoding="utf-8"?> | |
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | |
<CustomAction | |
Id="Pzl.Skarstind.Core.SkarstindCSS" Location="ScriptLink" | |
ScriptBlock="document.write('<link rel="stylesheet" After="Corev15.css" type="text/css" href="~Site/SiteAssets/SkarstindBrandingContent/css/pzl-skarstind.css"></' + 'link>');" | |
Sequence="203"> | |
</CustomAction> | |
<CustomAction | |
Id="Pzl.Skarstind.Core.GoogleFontsCSS" Location="ScriptLink" | |
ScriptBlock="document.write('<link rel="stylesheet" After="Corev15.css" type="text/css" href="//fonts.googleapis.com/css?family=Lato:300"></' + 'link>');" |
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
var ctx = SP.ClientContext.get_current(); | |
var userCustomActionsSite = ctx.get_site().get_userCustomActions(); | |
userCustomActionsSite.clear(); | |
ctx.executeQueryAsync(); |
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
(function(){ | |
if (typeof jQuery != 'undefined') { return; } | |
var script = document.createElement('script'); | |
script.src = '//ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.0.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
script.onload = function () { | |
jQuery(document).ready(function() { | |
init(); | |
}); | |
}; |
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
.thread-action-reply-message .ts-reply-message-footer, | |
body:not(.popover-left-rail) div.ts-left-rail-wrapper { | |
display: none; | |
} | |
.ts-message-list-item, | |
.ts-message, | |
thread, | |
.conversation-common.conversation-start, | |
.list-wrap.ts-message-list-container, | |
div#ts-bottom-compose-identifier { |
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
const getRestData = endpoint => | |
fetch(`${_spPageContextInfo.webAbsoluteUrl}/_api/web/${endpoint}`, | |
{ credentials: "include", headers: { "accept": "application/json;odata=verbose" } }) | |
.then(res => res.json().then(data => { | |
return data.d.hasOwnProperty("results") ? data.d.results : data.d })) | |
.catch(err => console.log(err)); | |
const getListItems = listTitle => { return getRestData(`lists/getbytitle('${listTitle}')/items`) }; | |
const logProps = (endpoint, prop) => |
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
Param( | |
[Parameter(Mandatory=$false)] | |
[string]$SiteUrl = "https://MYSITEHOSTWEBAPP", | |
[Parameter(Mandatory=$false)] | |
[string]$TemplateDir = "./template.xml", | |
[Parameter(Mandatory=$false)] | |
[string]$BlogTemplateDir = "./blogtemplate.xml" | |
) | |
# | |
# Brand MySites using PnP Provisioning templates |
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
Param( | |
[Parameter(Mandatory=$false)] | |
[string]$RootSite = "https://ROOTSITE", | |
[Parameter(Mandatory=$false)] | |
[string]$AdminSite = "https://ADMINSITE", | |
[Parameter(Mandatory=$false)] | |
[string]$Owner = "i:0#.w|DOMAIN\OWNER", | |
[Parameter(Mandatory=$true)] | |
[string]$Name, | |
[Parameter(Mandatory=$false)] |
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
<?xml version="1.0"?> | |
<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2016/05/ProvisioningSchema"> | |
<pnp:Preferences> | |
<pnp:Parameters> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericContentTypesGroup.xml" /> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericFieldsGroup.xml" /> | |
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../_Shared/Parameters/GenericFieldsPrefix.xml" /> | |
<pnp:Parameter Key="TemplateDisplayName">TEMPLATENAME</pnp:Parameter> | |
<!-- wipes some ootb stuff from STS#0 --> | |
<pnp:Parameter Key="PerformCleanup">True</pnp:Parameter> |
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
const PdfPreview = () => { | |
let _wopiDOM; | |
async function GetWopiDOM(docUrl = CurrentItemUrl()) { | |
if (_wopiDOM) { return _wopiDOM } else { | |
return fetch(`${_spPageContextInfo.siteAbsoluteUrl}/_layouts/15/WopiFrame.aspx?sourcedoc=${encodeURIComponent(docUrl)}`, { credentials: "include" }) | |
.then(res => res.text().then(wopi => new DOMParser().parseFromString(wopi, "text/html")).then(dom => { | |
_wopiDOM = dom | |
return _wopiDOM | |
})) | |
} |
OlderNewer