Comments (9)
True, I won't build the tagging as a part of this task.
Gotcha, I'll see what I can come up with.
from anchr.
Thanks for your feedback! That'd be a nice feature and I'd definitely like to have that in Anchr. Unfortunately I don't have enough time for the implementation, currently. But PRs are always welcome. I'd be glad if someone would attend to that matter.
from anchr.
@n1try I was looking at how I'd preserve the hierarchical structure when you import from chrome/firefox.
https://docs.mongodb.com/manual/tutorial/model-tree-structures-with-materialized-paths/
I'm thinking this would be a good method to do that, all the while giving us the ability to search. What do you think? Any objections?
from anchr.
Could be a way to model nested collections in the database, yes. But a general issue is that Anchr currently does only support one level of "folders" at all and to be honest, I wouldn't like to have nested hierarchies. If someone writes a browser importer then I'd suggest the restriction that the hierarchy is flattened to only the top folder / collection level.
from anchr.
Gotcha, I want to pick up this task this weekend. I'll flatten the hierarchy to just 1 level.
from anchr.
What about tagging support for links? It'll be adding one more string array to each link object. Tagging would help with search too - and it could be added to images and short links as a global search.
However, if you think it doesn't fit with that overall idea you had with anchr, I'll drop it.
from anchr.
In principle, tagging is a good idea, but that'd be a larger modification, so I'd at least think about that in a separate issue.
Concerning the importer: you don't necessarily have to deeply integrate that with the core application, including UI controls etc. For me, a simple command-line script that puts links from a bookmark file into Anchr's database would be perfectly fine and way less effort.
from anchr.
@n1try When you find time, look at my branch - https://github.com/itsmehemant123/anchr/tree/BookmarkImport
I've added the UI for uploading the bookmarks, and then it flattens the bookmarks to 1 level, and adds them as collections.
Its still rough around the edges, so needs cleanup, but the functionality is working. I'd have to add a progress indicator to show the current status of import while its happening, handle any possible errors while adding the collections.
from anchr.
First of all: congratulations for even getting this messy project set up and running 😄
I like your implementation and really want to thank you for your effort. However, I still got a few points:
- Looks like you broke the table. Table header as well as description- and date column is gone (see http://prntscr.com/i4iezf)
- The import-related UI is too prominent. Instead of the whole drag & drop thing, I'd rather add a small icon + text (analogously to the + New button in the left bar), which directly opens a file picker. Roughly like this: http://prntscr.com/i4ii4m. You don't necessarily need to add a progress indicator in my opinion.
- Auto-reload collections after import is complete, so that the user gets feedback on success and immediately can see his bookmarks.
- I'd suggest to rather use bookmarks-parser (instead of bookmark-parser) since it has fewer dependencies and doesn't require Python and stuff for compilation (which makes it easier to be installed especially on Windows)
- As you said, correctly handle corner cases and possible errors
Thank you for that work! Please open a PR so we can carry on this discussion right there.
EDIT:
- Please also remove this comment: http://prntscr.com/i4ilhf
from anchr.
Related Issues (20)
- Telegram bot HOT 1
- Add context menu entry for web extension
- Conditionally hide login provider buttons if disabled
- Add ESLint for backend
- Backend code refactoring / cleanup
- Check URLs against additional blocklists
- Cannot read property 'message' of undefined
- Hide signup button if registration is disabled HOT 1
- Shortlink cleanup routine
- No response sent for non-existing images
- Website linked in the description doesn't seem to load properly HOT 6
- Ability to edit link descriptions HOT 3
- Track users' last login date
- Unable to start production HOT 5
- Matrix bot
- Docker installation has missing dependencies HOT 2
- Replace Axios with Fetch API
- Enable registration. HOT 1
- Run with Docker not working HOT 1
- Automatically scrape link titles when added via Telegram bot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anchr.