@jeffreyway Thank you for all that you and your team do! The copy code is definitely helpful, I will use it as I like to copy paste into my IDE on occasion when trying to formulate a response.
Forum Updates - Themes and "Copy to Clipboard"
Hey, everyone! Just a couple quick forum additions:
Copy to Clipboard
I added a "Copy Code" button to all code snippets in the forum. I'm not sure how often you'll need this, but it's an option now. Here's an example snippet using some of the actual clipboard code behind the scenes, haha.
import { ref } from "vue";
export function useClipboard(text) {
let copied = ref(false);
let supported = navigator && "clipboard" in navigator;
let copy = () => {
if (supported) {
navigator.clipboard.writeText(text);
copied.value = true;
}
};
return { copy, copied, supported };
}
Light / Dark Mode
You've surely noticed that we've been experimenting with a dark mode for the forum this last week. That research is mostly wrapped up now. I have a few smaller tweaks to make, but it's mostly finished. There was enough push-back on the dark theme that we decided to offer a light/dark toggle, which you'll find on the main forum overview page. Just look for the little moon icon at the top. This setting is saved to your profile, so your choice will be reflected across all devices.
That's all for now. 👍
Please or to participate in this conversation.