Skip to content

Instantly share code, notes, and snippets.

Avatar

atskimura

  • co-meeting, Inc.
  • Tokyo
View GitHub Profile
@atskimura
atskimura / project-scratch-def.json
Created May 19, 2020
Person Account Scratch Org Definition
View project-scratch-def.json
{
"orgName": "Person Account Company",
"edition": "Enterprise",
"hasSampleData": true,
"features": ["PersonAccounts"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
}
}
View SecureDML.cls
public class SecureDML {
public class SecureDMLException extends Exception {}
/**
* CRUD/FLSチェックを行うinsert
*/
public static sObject[] secureInsert(sObject[] records) {
return secureDML(records, AccessType.CREATABLE);
}
@atskimura
atskimura / notifyApexErrorSample.js
Last active Mar 1, 2020
LWCのApexエラー処理
View notifyApexErrorSample.js
import { LightningElement, wire, track } from 'lwc';
import getContacts from '@salesforce/apex/NotifyApexErrorSampleController.getContacts'
import { notifyApexError } from 'c/util';
export default class NotifyApexErrorSample extends LightningElement {
@track contacts;
@wire(getContacts)
wiredContacts({ error, data }) {
if (data) {
View three-vrm-bones-motion.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>three-vrm example</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
View ManagedExample.cmp
<aura:component >
<p>This is a lightning component in a managed package.</p>
</aura:component>
View draggable.cmp
<aura:component implements="force:appHostable">
<div>
<div aura:id="draggable" draggable="true" class="draggable"></div>
<div aura:id="draggable" draggable="true" class="draggable"></div>
</div>
</aura:component>