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 { LightningElement, wire, track } from "lwc"; | |
import { getRecord } from "lightning/uiRecordApi"; | |
import USER_ID from "@salesforce/user/Id"; | |
import CONTACT_ID from "@salesforce/schema/User.ContactId"; | |
import CONTACT_NAME from "@salesforce/schema/Contact.Name"; | |
import ENCLOSURE_SAP from "@salesforce/schema/Contact.Enclosures_SAP__c"; | |
const FIELDS = [CONTACT_NAME, ENCLOSURE_SAP]; |
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
<div class="slds-form-element__control slds-m-bottom--small"> | |
<input data-id="templateList" id="templateList" name="selectedTemplate" | |
list="templateLookupList" | |
placeholder="Select Template" | |
class="slds-input" | |
value={selectedTemplate} | |
onchange={updateValueByInputName} | |
type="text"/> | |
<datalist data-id="templateLookupList" id="templateLookupList"> | |
<template for:each={templateTypeOptions} for:item='item'> |
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 LightningDatatable from 'lightning/datatable'; | |
import linkColumn from './linkColumn.html'; | |
export default class X7sDownloadsTable extends LightningDatatable { | |
static customTypes = { | |
linkColumn: { | |
template: linkColumn, | |
typeAttributes: ['releaseCode', 'id', 'releaseType', 'releaseName'] | |
} | |
}; |
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
<template> | |
<div> | |
<input accept=".xlsx" data-id="xlsx-file-upload" type="file" /> | |
<button onclick={addState}>add state to home page</button> | |
<button onclick={fileReader}>Upload</button> | |
</div> | |
</template> |
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
// OBJECTIVE // | |
// You want to take the value of the [key] for each object and assign it as the [key] | |
// You also want to take the value of the [value] for each object and assign it as the value | |
// Example | |
// HAVE | |
// const saveData = [ | |
// { | |
// key: "Description_Checking_And_Savings", | |
// value: "desc" |
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 testObj = { | |
clientAccount: "Client Account Name", | |
settlementType: "Settlement Type Name", | |
templateType: "Template Type Name", | |
bankToBank1: "Bank 1", | |
bankToBank2: "Bank 2", | |
banks: [ | |
{ | |
key: "bankToBank1", | |
value: "Bank 3", |
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
server { | |
location / { | |
root /var/www/html; | |
try_files $uri $uri/ /index.html; | |
} | |
} |
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
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
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
# Create the container from the alpine linux image | |
FROM alpine:3.7 | |
# Add nginx and nodejs | |
RUN apk add --update nginx nodejs | |
# Create the directories we will need | |
RUN mkdir -p /tmp/nginx/vue-single-page-app | |
RUN mkdir -p /var/log/nginx | |
RUN mkdir -p /var/www/html |
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
// start number | |
var startingNumber = ( "asd4567 stuff is fun4you 2.12 67" | |
.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g) || [] ) | |
.map(function (v) {return +v;}).shift(); //=> 4567 | |
console.log(startingNumber); | |
// end number | |
var endingNumber = ( "4567 stuff is fun4you 2.12 67asda" | |
.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g) || [] ) |
NewerOlder