This is me testing @arj's new DAT-attachment feature in patchbay!
It's looking like this :
And here's my first DAT attachment : Ziva_blueberry_splitz.mp4
This is me testing @arj's new DAT-attachment feature in patchbay!
It's looking like this :
And here's my first DAT attachment : Ziva_blueberry_splitz.mp4
if we could embed DAT content I think it should display here ...
![video:Ziva_blueberry_splitz.mp4](dat://53b588f6f0902f7b59375c72172df85e7572c396c54311de72aa0c08871c1a30/Ziva_blueberry_splitz.mp4)
One gotcha I tripped on was that the first dat-shared-files
shares a file it runs fs.existsSync
... and one way this check it using a try/ catch block which if you have the debugger open and set to halt on throws ... then it snags there. I panicked for a moment but turns out it was totally fine.
You can help : please confirm that you can see that DAT file I just posted (in Beaker Browser for the moment I guess)
This is now live in Patchbay master
branch !
cc @christianbundy look
And here's my first DAT attachment : Ziva_blueberry_splitz.mp4
I have always thought it would be nice with a visual clue for files that are external to SSB, no matter what protocol is used. When I first arrived at SSB, I idealistically used symbols like ↗
, 🔗
or 🌍
– either as unicode or as emojis – to indicate external links, but then I ran out of steam. I wonder, can CSS do that automatically, even if the indicator is just with a different colour?
@kas yes you can do that!
a[href^="http"]::after {
content: "🔗";
}
::after { content: "<foo>"}
inserts <foo>
after the match,
and a[href^="http"]
matches a
elements that have an href
attribute that starts starts with (^=
) "http".
That would work as is in patch{work,bay} because they don't use http links internal values, but with http based clients like patchbay, you'd just have another css rule that came after that one that matched localhost hrefs and disabled the link symbol. something like that.
yes you can do that!
Oh, sweet. Thanks, @dominic!
Thanks for reviewing and fixing things up @mix
Beaker is not picking up the dat link you posted. I'll try posting one as well, it was working when I tested it. I have my pub sharing dat links, so if it picks it up while you are online, there should be at least one seed with a relatively high uptime.
Now for some german tanzmusik #berlin Rammstein_-_Radio.mp4
Ziva link is now working for me. So cute
Now I have
a[href^="http://"]::after {
content: " 🔓";
}
a[href^="https://"]::after {
content: " 🔒";
}
a[href^="dat://"]::after {
content: " 🖧";
}
in …/patchfoo/static/styles.css
.
Woo! I can't get Beaker working right now but I'm super excited that this is merged!