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 gulp task can be used to update environment configuration of the current project. | |
All settings are stored in a file: ./config/package-solution-env-settings.json | |
Example settings: | |
{ | |
"environments": [{ | |
"environment": "default", | |
"id": "7E60EE1A-512E-4E2B-88B2-EF61103936F8", |
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
import * as vscode from "vscode"; | |
export function activate(context: vscode.ExtensionContext) { | |
commentDecoration(); | |
vscode.window.onDidChangeActiveTextEditor(() => { | |
commentDecoration(); | |
}); | |
vscode.workspace.onDidChangeTextDocument( |
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
{ | |
"$schema": "https://beta.frontmatter.codes/frontmatter.schema.json", | |
"frontMatter.taxonomy.contentTypes": [ | |
{ | |
"name": "project", | |
"pageBundle": false, | |
"filePrefix": null, | |
"fields": [ | |
{ | |
"title": "title", |
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
:root { | |
--vscode-font-weight:normal; | |
--vscode-font-size:13px; | |
--vscode-editor-font-family:"Operator Mono Lig", "Cascadia Code"; | |
--vscode-editor-font-weight:normal; | |
--vscode-editor-font-size:15px; | |
--vscode-foreground:#f3eff5; | |
--vscode-errorForeground:#f48771; | |
--vscode-descriptionForeground:rgba(243, 239, 245, 0.7); | |
--vscode-icon-foreground:#c5c5c5; |
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
@override | |
public onExecute(event: IListViewCommandSetExecuteEventParameters): void { | |
switch (event.commandId) { | |
case 'COMMAND_1': | |
// Check if the user selected some items | |
if (event.selectedRows.length > 0) { | |
// Check the selected rows | |
event.selectedRows.forEach((row: RowAccessor, index: number) => { | |
alert(`Field ID: ${row.getValueByName('ID')} - Field title: ${row.getValueByName('Title')}`); | |
}); |
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
"frontMatter.taxonomy.contentTypes": [{ | |
"name": "default", | |
"pageBundle": false, | |
"filePrefix": "yyyy-MM-dd", | |
"fields": [{ | |
"title": "Title", | |
"name": "title", | |
"type": "string", | |
"required": true | |
}, |
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
{ | |
"frontMatter.content.snippets": { | |
"Image snippet": { | |
"body": "{{< caption-new \"[[&mediaUrl]]\" \"[[caption]]\" >}}", | |
"isMediaSnippet": true, | |
"description": "" | |
}, | |
"Video snippet": { | |
"body": [ | |
"{{< video \"[[&mediaUrl]]\" \"[[caption]]\" >}}" |
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
'use strict'; | |
const gulp = require('gulp'); | |
const build = require('@microsoft/sp-build-web'); | |
const spsync = require('gulp-spsync-creds').sync; | |
const sppkgDeploy = require('node-sppkg-deploy'); | |
const fs = require('fs'); | |
const environmentInfo = { | |
"username": "<production-username>", |
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
Type.registerNamespace('search.listname'); | |
search.listname = function () { | |
var itemInfo = {}; | |
var listInfo = {}; | |
var init = function (context, elmId) { | |
// Store item info | |
itemInfo[elmId] = {}; | |
itemInfo[elmId]["webUrl"] = context.CurrentItem.SPWebURL; |
NewerOlder