From ffd4200e9ba639d4c3b63effa82a490bd634a268 Mon Sep 17 00:00:00 2001 From: Dan Toft Date: Wed, 19 Jul 2023 22:41:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20-=20Initial=20commit=20for=20com?= =?UTF-8?q?munity=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spfx-community-call-28-july-2023.tour | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 samples/react-json-form/.tours/spfx-community-call-28-july-2023.tour diff --git a/samples/react-json-form/.tours/spfx-community-call-28-july-2023.tour b/samples/react-json-form/.tours/spfx-community-call-28-july-2023.tour new file mode 100644 index 000000000..4587bb816 --- /dev/null +++ b/samples/react-json-form/.tours/spfx-community-call-28-july-2023.tour @@ -0,0 +1,51 @@ +{ + "$schema": "https://aka.ms/codetour-schema", + "title": "SPFx Community call 28. July 2023", + "steps": [ + { + "file": "src/Hooks/UseObject.ts", + "description": "Building a hook that avoids me having to use the spread operator every time I need to update just a single property", + "line": 6 + }, + { + "file": "src/webparts/jsonForm/components/Fields/Field.tsx", + "description": "Here is an example of using the exposed method without spreading the rest of the state object", + "line": 26 + }, + { + "file": "src/webparts/jsonForm/components/Fields/Field.tsx", + "description": "Rendering the entire form (in \"fill\" mode) is less than 100 lines of code, how cool is that? ", + "line": 97 + }, + { + "file": "src/Util/Util.ts", + "description": "Default generation of \"Id\" can be overwritten in the property pane", + "line": 8 + }, + { + "file": "src/webparts/jsonForm/JsonFormWebPart.ts", + "description": "Initializing the Context API in react", + "line": 25 + }, + { + "file": "src/webparts/jsonForm/JsonFormWebPart.ts", + "description": "Creating the \"outer\" shell", + "line": 33 + }, + { + "file": "src/webparts/jsonForm/components/JsonForm.tsx", + "description": "Fetching a value from it", + "line": 26 + }, + { + "file": "src/webparts/jsonForm/components/JsonForm.tsx", + "description": "Using that value, this can be many components deep without a problem, avoids prop drilling", + "line": 41 + }, + { + "file": "src/webparts/jsonForm/components/JsonForm.tsx", + "description": "Using the DisplayMode property to determine if we're in view or edit mode on the SharePoint page", + "line": 54 + } + ] +} \ No newline at end of file