Skip to content

Navigation Menu

Sign in
Sign up

Improve the examples format on the README file - #67

Open
ali-turki wants to merge 7 commits into
FranckFreiburger:master from
ali-turki:improve-the-examples-format-on-the-readme-file
Open

Improve the examples format on the README file #67
ali-turki wants to merge 7 commits into
FranckFreiburger:master from
ali-turki:improve-the-examples-format-on-the-readme-file

Conversation

@ali-turki

@ali-turki ali-turki commented Feb 28, 2018

Copy link
Copy Markdown

improved formatting added syntax highlighted to examples snippets, I've not changed any description or even a word just formatting.

@jamiecarter7 jamiecarter7 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

var loadingTask = pdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');

should read:

var loadingTask = VuePdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');

Copy link
Copy Markdown
Author

Thanks, it's done.

jamiecarter7 reacted with thumbs up emoji

Comment thread README.md Outdated
```js
<template>
<pdf src="./static/relativity.pdf"></pdf>
<vue-pdf src="./static/relativity.pdf" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

good, just for the record: Self-closing components

Comment thread README.md
this.numPages = pdf.numPages;
});
},
components: {

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Comment thread README.md Outdated
});
}
},
components: {

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

"components" =>top

Comment thread README.md
#### @error <sup>Object<sup>
Triggered when an error occurred.

|Name|Attributes|Listen to|Description|

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

is it possible to avoid line-break for the "Listen to" column ?

Comment thread README.md Outdated
<vue-pdf
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf"
@num-pages="pageCount = $event"
@page-loaded="currentPage = $event" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

please move /> to the newt line, aligned with <vue-pdf

Comment thread README.md Outdated
:key="i"
:src="src"
:page="i"
style="display: inline-block; width: 25%" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

/> => next line

Comment thread README.md Outdated
</button>
<vue-pdf
ref="myPdfComponent"
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

/> => next line

Comment thread README.md Outdated
<button @click="logContent">log content</button>
<vue-pdf
ref="myPdfComponent"
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

/> => next line

Comment thread README.md Outdated
@password="password"
@progress="loadedRatio = $event"
@error="error"
@num-pages="numPages = $event" />

@FranckFreiburger FranckFreiburger Mar 14, 2018

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

/> => next line

* move components closing tag to a new line.
* move components object to the top.

Copy link
Copy Markdown
Author

@FranckFreiburger almost all are done.

Repository owner deleted a comment from CristinaGuan Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@FranckFreiburger FranckFreiburger FranckFreiburger left review comments
+1 more reviewer
@jamiecarter7 jamiecarter7 jamiecarter7 requested changes
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /