<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web on Andreas' Blog</title><link>https://blog.anoff.io/tags/web/</link><description>Recent content in Web on Andreas' Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 15 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.anoff.io/tags/web/index.xml" rel="self" type="application/rss+xml"/><item><title>Loading global scss variables in nextjs with sass preprendData</title><link>https://blog.anoff.io/2024-11-nextjs-scss-global-variables/</link><pubDate>Fri, 15 Nov 2024 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2024-11-nextjs-scss-global-variables/</guid><description>&lt;p&gt;Recently I started using &lt;a href="https://nextjs.org/"&gt;next.js&lt;/a&gt; and slowly diving into lower levels of web design, creating own components, managing complexer styles etc.
One of the things I realized was that I want to use a CSS preprocessor, so I went for &lt;a href="https://sass-lang.com/dart-sass/"&gt;dart sass&lt;/a&gt; but sticking to &lt;code&gt;.scss&lt;/code&gt; as file format.&lt;/p&gt;
&lt;p&gt;The one thing that annoyed me - and took me some time to solve - was how to use react with modular styles i.e. &lt;code&gt;component.module.scss&lt;/code&gt; but having a central &lt;code&gt;_variables.scss&lt;/code&gt; containing colors, common element widths.
I have seen approaches that require custom loaders or organizing my stylesheets in a certain way.
Finally I found out that dart sass can be configured to append data to every stylesheet before parsing it.&lt;/p&gt;</description></item><item><title>Publishing private npm packages to GitHub Package registry for free</title><link>https://blog.anoff.io/2020-07-private-npm-package-github/</link><pubDate>Sun, 26 Jul 2020 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2020-07-private-npm-package-github/</guid><description>&lt;p&gt;Even though I am a big fan of Open Source Software and try to make my projects open and consumable by others as well, there are cases where you want to keep your stuff private.
But even if you work in a closed source environment you still want to use the same tools that you employ in the open source world.
In this blog post I will explain how you can create private npm packages for your Javascript/Typescript projects - and I will show you how you can host your private npm packages &lt;strong&gt;for free&lt;/strong&gt;!&lt;/p&gt;</description></item><item><title>Migrating to vuetify 2.1</title><link>https://blog.anoff.io/2019-10-migrating-vuetify-1-to-2/</link><pubDate>Sun, 06 Oct 2019 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2019-10-migrating-vuetify-1-to-2/</guid><description>&lt;div class="mermaid"&gt;
 sequenceDiagram
 participant Alice
 participant Bob
 Alice-&gt;&gt;John: Hello John, how are you?
 loop Healthcheck
 John-&gt;&gt;John: Fight against hypochondria
 end
 Note right of John: Rational thoughts &lt;br/&gt;prevail!
 John--&gt;&gt;Alice: Great!
 John-&gt;&gt;Bob: How about you?
 Bob--&gt;&gt;John: Jolly good!
&lt;/div&gt;

&lt;p&gt;I just migrated the &lt;a href="https://github.com/anoff/devradar/tree/master/editor"&gt;code&lt;/a&gt; for the &lt;a href="//editor.devradar.io"&gt;devradar editor&lt;/a&gt; to the latest major version of vuetify.
There is an officiel &lt;a href="https://vuetifyjs.com/en/getting-started/releases-and-migrations"&gt;migration guide&lt;/a&gt; that helped me solve 70% of the issues but here is a quick overview of the biggest issues I encountered and what actually changed.&lt;/p&gt;</description></item><item><title>Get Hugo to render (nice) Asciidocs</title><link>https://blog.anoff.io/2019-02-17-hugo-render-asciidoc/</link><pubDate>Sun, 17 Feb 2019 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2019-02-17-hugo-render-asciidoc/</guid><description>&lt;p&gt;While migrating my blog from Jekyll to Hugo I went down quite a rabbit hole.
While setup and migration to Hugo was a breeze, I spent a lot of time making my &lt;code&gt;.adoc&lt;/code&gt; formatted post work with the new blog.
After working through several GitHub issues I ended up manipulating the DOM with Javascript to get admonitions working.
It still doesn’t feel right - but hey it works! 🤷‍♂️
This post will cover the steps I took in case I myself or anyone out there ever needs to do this again.&lt;/p&gt;</description></item><item><title>RBAC with Google Firestore</title><link>https://blog.anoff.io/2018-08-12-rbac-firestore/</link><pubDate>Sun, 12 Aug 2018 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2018-08-12-rbac-firestore/</guid><description>&lt;p&gt;This post will explain how to implement role based access control (&lt;a href="https://en.wikipedia.org/wiki/Role-based_access_control"&gt;RBAC&lt;/a&gt;) using the Google Firestore serverless database. Firebase and Firestore in particular with the concept presented in this post offers the most seamless integration of serverless infrastructure with a mobile client at this point. It has become my go to backend for all minor web apps I build.&lt;/p&gt;</description></item><item><title>Building realtime apps with Vue and nodeJS</title><link>https://blog.anoff.io/2018-04-18-node-vue-websockets/</link><pubDate>Wed, 18 Apr 2018 00:00:00 +0000</pubDate><guid>https://blog.anoff.io/2018-04-18-node-vue-websockets/</guid><description>&lt;p&gt;Wanting to build a simple &lt;a href="https://en.wikipedia.org/wiki/Single-page_application"&gt;SPA&lt;/a&gt; as a side project I struggled with things that might annoy a lot of newcomers that do not want to go full vanilla. Which &lt;em&gt;web framework&lt;/em&gt;, which &lt;em&gt;style library&lt;/em&gt;, which &lt;em&gt;server framework&lt;/em&gt; - and more importantly how does it all work together?&lt;/p&gt;
&lt;p&gt;In this post we will put together a bunch of great tools out there to build a realtime web app with a few single lines of code. A quick introduction into the tools that will be used:&lt;/p&gt;</description></item></channel></rss>