This file contains hidden or 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
<article | |
class="slds-card dropzone card-height" | |
ondragover={handleDragOver} | |
ondragleave={handleDragLeave} | |
ondrop={handleDrop} | |
> | |
<div class="slds-card__header slds-grid"> | |
<header class="slds-media slds-media_center slds-has-flexi-truncate"> | |
<div class="slds-media__figure"> | |
<span class="slds-icon_container"> |
This file contains hidden or 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
.card-height { | |
height: 300px; | |
} | |
.datatable-height { | |
height: 230px; | |
} | |
.grabbable { | |
cursor: move; |
This file contains hidden or 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
<template for:each={elements} for:item="element"> | |
<div key={element.id} class="slds-col slds-size_1-of-3"> | |
<div | |
data-id={element.id} | |
data-name={element.label} | |
class="slds-box slds-theme_shade slds-text-align_center slds-var-m-bottom_x-small grabbable" | |
draggable="true" | |
ondragstart={handleDragStart} | |
> | |
{element.label} |
This file contains hidden or 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 { LightningElement, track } from 'lwc'; | |
const COLUMNS = [ | |
{ | |
label: 'Id', | |
fieldName: 'id', | |
hideDefaultActions: true | |
}, | |
{ | |
label: 'Label', |
This file contains hidden or 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 threejs from '@salesforce/resourceUrl/threejs'; | |
import { loadScript } from 'lightning/platformResourceLoader'; | |
import { LightningElement } from 'lwc'; | |
export default class Render3DElementsThreeJS extends LightningElement { | |
connectedCallback() { | |
loadScript(this, threejs) | |
.then(() => { | |
this.init(); | |
}) |
This file contains hidden or 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
<template> | |
<lightning-card title="3D Elements Demo (Three.js)" icon-name="custom:custom57"> | |
<div class="container slds-var-p-horizontal_medium" lwc:dom="manual"></div> | |
</lightning-card> | |
</template> |
This file contains hidden or 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 ObjectHomeDesktop from 'salesforce-pageobjects/force/pageobjects/objectHome'; | |
import RecordActionWrapper from 'salesforce-pageobjects/global/pageobjects/recordActionWrapper'; | |
import RecordHomeTemplateDesktop from 'salesforce-pageobjects/global/pageobjects/recordHomeTemplateDesktop'; | |
import FormattedText from 'salesforce-pageobjects/lightning/pageobjects/formattedText'; | |
import DesktopLayoutContainer from 'salesforce-pageobjects/navex/pageobjects/desktopLayoutContainer'; | |
import { logInSalesforce } from './utam-helper'; | |
describe('utam-examples', () => { | |
beforeEach(async () => { | |
await logInSalesforce(); |
This file contains hidden or 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
steps: | |
- name: Get node version from package.json | |
run: | | |
echo "$(cat ./package.json)" | jq .engines.node | xargs -I {} echo "nodeVersion="{} >> $GITHUB_ENV | |
- name: Use node version ${{ env.nodeVersion }} from package.json | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ env.nodeVersion }} | |
cache: 'npm' |
This file contains hidden or 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
steps: | |
- bash: | | |
set -euo pipefail | |
version=$( jq --raw-output '.engines.node' ./package.json) | |
echo "##vso[task.setvariable variable=nodeVersion;isOutput=true]$version" | |
displayName: Get node version from package.json | |
name: getNode | |
- task: NodeTool@0 | |
displayName: Use node version from package.json |
This file contains hidden or 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
engine-strict=true |