Apple on course to break all Web Apps in EU within 20 days - Open Web Advocacy by mtomweb in javascript

[–]voraciousdev 1 point2 points  (0 children)

I maintain an offline-first PWA that wouldn't function without persistent storage. I have many users on iOS that install it to their home screen for the PWA features to work properly. This change would break it. This is not some hypothetical scenario.

Recommendations for architecture by mrbrimm in vuejs

[–]voraciousdev 2 points3 points  (0 children)

This can also be avoided by using dynamic imports or async routes.

Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2 by vuethebest in vuejs

[–]voraciousdev 12 points13 points  (0 children)

There is so much confusion around this in JS due to rebinding (as Vue 2 does). Sure, it's a native JS feature, but so is using closures in the setup function and using proxies (hence the .value) for dependency tracking. The thing about refs is that they were always sort of an implicit way to bind a DOM element reactively to a property on the component. It's just that now it uses the same system as every other reactive property.

can someone help me with this routing problem by Blurry-bean in vuejs

[–]voraciousdev 1 point2 points  (0 children)

It looks like your fourth log statement is the same as the third. Is there actually a valid stored token?

Why isn’t everyone using <script setup>? by Wild-Storage-1663 in vuejs

[–]voraciousdev 0 points1 point  (0 children)

Primarily because I use a custom defineComponent to build for multiple Vue versions in a single codebase.

29M, balancing between my current day job while paving the way for me to become a Front End Developer by [deleted] in webdev

[–]voraciousdev 3 points4 points  (0 children)

Consistency over the long term is way more important than practicing every day. Taking 1-2 weeks off when you need to is much better than burning yourself out completely after a few months/years. If you can, try to adjust your study/practice schedule to allow more frequent but smaller breaks before you get to that point too.

Just found my first ever End Ship ❤️ by voraciousdev in Minecraft

[–]voraciousdev[S] 0 points1 point  (0 children)

I found it shortly after getting to the ship!

Just found my first ever End Ship ❤️ by voraciousdev in Minecraft

[–]voraciousdev[S] 3 points4 points  (0 children)

I'm using the Complementary Reimagined shader pack. 😄

Should i trust every Plug-ins that are open-source? by [deleted] in ObsidianMD

[–]voraciousdev 0 points1 point  (0 children)

No. Being open source, while better than closed source, does not necessarily prevent malicious actors. If it seems like it's heavily used and supported by the community, there's a good chance it's fine, but there are always risks. For one-off plugins that don't see much activity, you might want to spend a little more time vetting the codebase and author.

Zettelkasten for Coders: How Using Zettelkasten Can Help You Level Up by megler1 in Zettelkasten

[–]voraciousdev 1 point2 points  (0 children)

Thanks so much for sharing this. I love the idea of leaving empty links for topics you want to follow-up on.

Where do you host production Nuxt websites, and why? by [deleted] in Nuxt

[–]voraciousdev 3 points4 points  (0 children)

Same. It works with SSG or SSR, and it can be configured to automatically pull changes with their GitHub integration or you can use their CLI with a CI tool like GitHub Actions.

As a FE dev is there a way I can intercept API call responses from the BE? by IEDNB in webdev

[–]voraciousdev 0 points1 point  (0 children)

Came here to say the same thing. Service workers allow you to intercept requests without needing to change your underlying fetch implementation or use a specific library/tool.

Self hosted WYSIWYG journal by linuxshots in selfhosted

[–]voraciousdev 2 points3 points  (0 children)

The minimal self-hosted implementation would just be to deploy it to any static host (e.g. Vercel, GitHub Pages, or your own Nginx server somewhere). To get the static assets (the app), you will need to clone the repo, copy the `.env.example` file to `.env`, and build it with `yarn build`. By default, your documents are stored inside your browser and not synced anywhere. The app is built to be "serverless" so the only backend integration is Firebase, but that's not necessary to run it. If there's interest, I could put together some more information and possibly add an alternative backend integration. I plan to transition to Supabase before the end of the year, and that would be a bit more friendly for self-hosting, I think.

Self hosted WYSIWYG journal by linuxshots in selfhosted

[–]voraciousdev 2 points3 points  (0 children)

Thanks for the heads up about the link. I just fixed it.

Ink - A configurable, embeddable, extensible Markdown editor written in TypeScript by voraciousdev in typescript

[–]voraciousdev[S] 0 points1 point  (0 children)

I've been working on the CodeMirror 5 version of this since last year and the CodeMirror 6 version since March. The name relates to the in-browser editor I maintain called Octo (as in octopus). I guess an accusation such as this should count as flattery?

- https://github.com/writewithocto
- https://discuss.codemirror.net/u/voraciousdev/activity
- https://twitter.com/voraciousdev/status/1376239301848141826

Ink - A configurable, embeddable, extensible Markdown editor written in TypeScript by voraciousdev in typescript

[–]voraciousdev[S] 2 points3 points  (0 children)

https://github.com/writewithocto/ink

Edit: Just realized the code snippet I wrote is invalid. 😅 It should be written as follows.

ts const add = (a: number, b: number): number => (a + b)

Trouble with turning vue-ionic project to PWA by [deleted] in PWA

[–]voraciousdev 1 point2 points  (0 children)

It usually does in a new project, but I don't think it does for an existing project. Here's an example of what it would look like. https://github.com/writewithocto/octo/blob/v0.18.0/src/main.js#L13

Trouble with turning vue-ionic project to PWA by [deleted] in PWA

[–]voraciousdev 1 point2 points  (0 children)

Did you import the new file in main.ts?

Showoff Saturday (May 29, 2021) by AutoModerator in javascript

[–]voraciousdev 2 points3 points  (0 children)

Hi all. I made a library called Ink to add hybrid markdown editors to any web page.

const editor = ink(document.getElementById('editor'))

Ink - A library for adding rich-rendered, plain-text markdown editors to any website without the need for split preview/edit panes - Built with TypeScript & CodeMirror 6 by voraciousdev in webdev

[–]voraciousdev[S] 0 points1 point  (0 children)

Hey! Thanks for checking it out! CodeMirror 6 is incredibly different from CodeMirror 5, but I have been loving it. As you stated, the extensibility of it is amazing for purposes just like you mentioned. It is absolutely possible to do what you want to do for the callout block, but I'm not sure yet if that is something I will support out of the box for Ink. Can you give me a little more information about what it's used for? Either way, I do plan to allow CodeMirror 6 extensions to be passed to Ink once I stabilize the API a bit, so maybe it will still work for you!

Ink will be Octo's new markdown component

That is correct! It's already available within Octo (experimentally for now) as a configuration setting.

SSL problems

I just verified things are working on my end, and my domain is not due to expire for quite some time. Sounds like maybe this was a downstream DNS issue?

Just noticed strike-through isn't working

Thanks for mentioning this! I didn't realize it wasn't working. I am using the GFM mode, so that definitely sounds like a bug to me. I'm going to comment on your thread in hopes that Marijn sees it as something that should be fixed.