Skip to content

Notepad examples - #281

Merged
SharonStrats merged 6 commits into
masterfrom
notepad-examples
Mar 24, 2020
Merged

Notepad examples#281
SharonStrats merged 6 commits into
masterfrom
notepad-examples

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

Improved notepad examples

@michielbdejong

Copy link
Copy Markdown
Contributor

Screenshot 2020-03-23 11 51 27
Can you create a working example that displays this notepad?

Comment thread examples/notepad/index.html Outdated
<p>
In this first example we'll see how you can create a notepad. This method creates input fields
which allow you to provide a notepad component to your application.
The Notepad provides functionality to both create a new Notepad or view/edit and existing one.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"an existing one"

const subject = UI.store.sym('https://sharonstrats.inrupt.net/public/edu.mit.solid.pane.pad/id1585026584938/index.ttl#this')
const options = { exists: true }

await fetcher.load(pad.doc()) // if you don't have this you will get an inconsistency error

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaaah :) good catch!

Comment thread examples/notepad/index.html Outdated
<div id='div-manageParticipation'></div>
In order to create a new notepad you need to change three things:
<ul>
<li>Provide user authentication. You can do this by .... </li>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... by including solid-auth-client as explained in https://solidproject.org/for-developers/apps/first-app/1-authentication

@michielbdejong michielbdejong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@SharonStrats
SharonStrats merged commit 279de48 into master Mar 24, 2020
@SharonStrats
SharonStrats deleted the notepad-examples branch March 24, 2020 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants