-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#4 Integrates arxiv2notionplus #6
Conversation
const authors = authorsFormatted.split(', '); | ||
const authorsMultiSelect = authors.map((author) => { | ||
return { name: author }; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.setFormContents(paperTitle, abst, authors); | ||
return { title: paperTitle, abst: abst, authors: authors, url: url }; | ||
const published = entry.querySelector('published').textContent; | ||
const comment = entry.querySelector('comment')?.textContent ?? 'none'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored: https://github.com/wangjksjtu/arxiv2notionplus/blob/main/src/js/popup.js#L129-L136
we can use ``??'' to write the same process in a single line.
<!-- type="text" --> | ||
<!-- placeholder="published" --> | ||
<!-- ></input> --> | ||
<!-- </div> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided not to display "published" field in the user interface because:
- this field should not be edted by hand.
- maximum height of the popup window is limited (600px)
id="js-save" | ||
class="uk-icon-button uk-icon-large uk-align-center uk-margin-small" | ||
uk-icon="bookmark" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to change "save button" position to top of the popup window.
I found that most of users click only "databases" and "save"
#4
semantic-release
since this repository release is not so active)popup.html auto-resize not working ... ?-> chrome-ext has a maximum-size limit.