xbrowsersync / app

xBrowserSync browser extensions / mobile app
GNU General Public License v3.0
1.51k stars 100 forks source link

Tag browser - like delicious (del.icio.us) #453

Closed pettijohn closed 1 year ago

pettijohn commented 1 year ago

I would like to augment the browser extension to have a tag browser (similar to the old del.icio.us site, if you remember that). I want to be able to drill down; e.g. if I have bookmarks tagged with a combination of programming, typescript, csharp, I want to be able to click programming and then see links tagged with it; if I then click typescript it will show bookmarks tagged with programming AND typescript.

Is there a development guide or some advice on how to get started? Again, not asking you to do it, but a push to get started.

pettijohn commented 1 year ago

I'm trying to build this but I have never worked with Angular so struggling to get some fundamentals going. I was able to add a tag icon to the search bar and a new route /tags. I created a new component/controller app-tagbrowser. I can't figure out how to get my component to render.

.when(`${RoutePath.TagBrowser}`, {
          controller: 'SyncEnabledController',
          controllerAs: 'vm',
          template: require('./app-tagbrowser/app-tagbrowser.controller.html')
          // template: require('./app-bookmark/app-bookmark.controller.html')
        })

Clicking the new tag icon brings up a new window with app/app-tagbrowser/app-tagbrowser.controller.html; I don't understand how in other cases that then maps to load the contents of the *-component.html file. I assume there's a mapping somewhere. When I uncomment the line above I see the contents of app-bookmark.component.html when I click on the new tag icon. So I have routing working and partially loading my control; I assume I'm missing some kind of mapping but reading over the code I can't figure it out.

Code is here, on tag-browser branch of my fork https://github.com/pettijohn/xbrowsersync-app/commits/tag-browser

@nero120 wonder if you can help give me a push in the right direction?

pettijohn commented 1 year ago

I migrated to Linkding, closing.