galtenberg / evernote-random Goto Github PK
View Code? Open in Web Editor NEWUse evernote API as a logged-in user - react and express project
License: Other
Use evernote API as a logged-in user - react and express project
License: Other
Instead of commenting/uncommenting these lines when switching between local & glitch environments in config/config.js, just use process.env
or some common mechanism.
Be able to draw from any PARA notebook or any notebook except "Archive".
See also #11
Glitch isn't serving react in development mode, requiring express logic to send build/
artifacts (see https://github.com/galtenberg/evernote-random/blob/master/server/index.js#L21-L29).
Make those lines unnecessary / serve react ala development mode.
(When we do an official prod release, we'll definitely make a build.)
Add server and client test layers, with initial super-basic first tests for both.
Note
and Random
component duplicate logic for retries, this can probably be moved to a function or even a base note class/component.
Since yesterday or early today the web app stops at "Loading..." and does not proceed further when trying to access the app from Android with either DuckDuckGo or Opera Mini.
That is, the web app starts up, but doesn't show / load the random note. User is logged on to Evernote.
Access from a Windows PC works as does using the MS Edge App. Very odd.
Any idea what could be wrong here?
When nswbmw/enml2html#5 is merged, add to our packages, and remove src/lib/enml2html.js
.
Don't allow the folders area become more than ~6 rows of folders in height.
If the user has more folders than that, allow vertical scrolling of that panel.
Hi!
GET /en-auth/new seems to return 400, stuck at Redirecting to Evernote Login… Click here to go back.
screen
I have followed the instruction on the README for local deployments.
Any pointer please? Thanks
tre:evernote-random-master tre$ evernoteKey=[the consumer key] evernoteSecret=[the consumer secret] npm run start
> [email protected] start /Users/tre/Documents/aset/projects/workflow/resurfacing/evernote/evernote-random-master
> concurrently "npm run client" "npm run server"
[0]
[0] > [email protected] client /Users/tre/Documents/aset/projects/workflow/resurfacing/evernote/evernote-random-master
[0] > react-scripts start
[0]
[1]
[1] > [email protected] server /Users/tre/Documents/aset/projects/workflow/resurfacing/evernote/evernote-random-master
[1] > nodemon server
[1]
[1] [nodemon] 1.18.3
[1] [nodemon] to restart at any time, enter `rs`
[1] [nodemon] watching: *.*
[1] [nodemon] starting `node server`
[1] express server listening on port 8000
[0] Starting the development server...
[0]
[0] Compiled with warnings.
[0]
[0] ./src/components/App/App.js
[0] Line 2: 'Link' is defined but never used no-unused-vars
[0] Line 9: 'appName' is assigned a value but never used no-unused-vars
[0]
[0] ./src/components/App/Header.js
[0] Line 3: 'classnames' is defined but never used no-unused-vars
[0] Line 8: 'IconInfo' is defined but never used no-unused-vars
[0]
[0] Search for the keywords to learn more about each warning.
[0] To ignore, add // eslint-disable-next-line to the line before.
[0]
[1] ::ffff:127.0.0.1 - - [31/May/2020:08:22:22 +0000] "GET /isLoggedIn HTTP/1.1" 304 - 3.802 ms
[1] ::ffff:127.0.0.1 - - [31/May/2020:08:22:22 +0000] "GET /notebooks HTTP/1.1" 500 49 451.349 ms
[1] ::ffff:127.0.0.1 - - [31/May/2020:08:22:28 +0000] "GET /en-auth/new HTTP/1.1" 400 11 380.169 ms
tre:evernote-random-master tre$ node -v
v14.3.0
Add a settings and checkbox experience for "Enable ForteLabs BASB features in this browser".
Save preference to browser-local storage.
If this setting is not enabled, do not show "Any PAR" and "Any PARA" folder filters. If the setting is enabled, do show those filters.
Add explanation text to the settings area to explain what this checkbox does.
Hi galtenberg,
I just found your cool, little web-app and it's super elegant and helpful. Thank you!
Short background for this feature request: I use Evernote to collect quotes from books and from the web ("sorted" by tags) and I currently have ~400 notes (steadily growing). Sometimes I am not interested in fetching a random general quote out of the 400, but one that's scoped (and thus limited) by a certain tag of mine.
Would it be possible to add such a feature? Ideally with a field where the tag name could be auto-completed from the list of existing tags. :)
Kind regards,
Sebastian
BASB members may use folder names "1 Project", "2 Areas", which could make the "Any PAR" and "Any PARA" buttons behave unpredictably.
Reported here: https://forum.fortelabs.co/t/randomnote-web-3-0/2939/4?u=galtenberg. Report back to this thread when issue has been resolved.
randomNote
function in server/lib/evernote
should be deconstructed to smaller functions, with testing.
Hello, does Evernote authorization allow you to see note contents on your side? This is a big issue for those with sensitive info. Thanks
Refactor all SVG icons used into a single component, that accepts props of width, height, title, iconPath, fillPath
Running local or on glitch requires changing the proxy
setting in package.json
.
See if there's a solution that can work in either mode.
When querying for "Any PARA", "Any", and default and randomInApp
, if the random notebook selection chooses a notebook that's empty, the screen will show "No notes found."
Empty notebooks should be excluded from any queries that hit multiple notebooks.
May need to initially query and cache the note counts for each notebook.
Just allow /randomNote
endpoint to accept null/empty notebook guid, and then just let it select from any notebook.
Replace this hardcoding with process.env or config variable: https://github.com/galtenberg/evernote-random/blob/master/server/lib/evernote/auth.js#L10
Hi friends,
Thanks for your wonderful work spicing this up!
Is there a way to have the note shown link to the note, so that it can be edited? Right now, if I want to edit / remove / move the note, I need to look it up manually.
enml-js
should be replaceable by enml2html
here:
https://github.com/galtenberg/evernote-random/blob/master/src/components/Notes/Note.js#L80
Was seeing some weirdness with text being cut off - see if that's still the case.
I use tags in Evernote to sort my notes (according to topics, book titles, and authors from which I got the note / quote from). It would be handy to have these tags displayed below the note when the evernote-random app displays it - so that I know for example by which author the displayed note is.
The tags could then also be clickable so that one could easily explore other random notes by this topic or author (this ties in with my other submitted feature request #27).
We should have a Forte Labs look-and-feel, approved by Tiago.
But we also probably shouldn't drift too far from Evernote color scheme.
Something like Google Material Design perhaps, or something substantial (maybe a bit of note and button shadow), without too much wasted negative space.
Add basic styles for:
Ensure views also work well on mobile web view.
If we can get through React Router to /logout
endpoint, and allow redirect, we won't need AuthOut
component.
And maybe even AuthCallback
.
Per Evernote API team:
Looking at our logs, I'm seeing an abnormal number of calls for
getUserUrls
- 380 calls for a single user. I'd recommend caching the result for a user, the result of that call is unlikely to ever change.
getUserUrls
evernote doc: http://dev.evernote.com/doc/reference/UserStore.html#Fn_UserStore_getUserUrls
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.