pasqui23
pasqui23
Still waiting for the review
On 07/02/23 18:13, Andreas Dahlström ***@***.***> wrote: > I've created tvkit a proxy server > that transforms a vite dev server into something that can be > processed by older...
Here is my attempt: https://github.com/pasqui23/nixpkgs/blob/firefox-pwa/pkgs/tools/networking/firefox-pwa/default.nix However if I try to open a PWA I get the error: ``` Failed to patch the runtime: Path "/home/me/.local/state/firefox-pwa/userchrome/runtime" does not exist or you...
On 10/02/23 02:16, Jacob Birkett ***@***.***> wrote: > @pasqui23 It's a bad idea to use |~| in > package derivations, I don't even think Nixpkgs would accept it. Could >...
> * `$NIX_PACKAGE_ROOT/share/`: > This is `FFPWA_SYSDATA`, should be stored globally and only needs read permission. It needs to contain `userchrome` directory. It should also be in an unversioned path,...
> The reason why it needs unversioned paths or something similar is that generated `.desktop` entries for installed web apps simply call `{exe} site launch {id}` when launched. Note that...
I've solved it by using `hooks.server.ts` ```ts // lang.ts import type { Handle, RequestEvent } from '@sveltejs/kit'; import { init, waitLocale, getLocaleFromAcceptLanguageHeader, getLocaleFromNavigator } from 'svelte-intl-precompile'; import { registerAll, availableLocales...
In general hooks are always ran before any layout and page code and they were made so exactly to support this use case.
@pilcrowOnPaper No need for manual parsing of the url, you can recover route params from event.params https://kit.svelte.dev/docs/types#public-types-handle https://kit.svelte.dev/docs/types#public-types-requestevent
> Either way, you have to remember to add every route to the list - it's safer to apply something to each route to define what permission checks need to...