This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
akkomafe-for-calckey/README.md

1.3 KiB

(WIP) akkoma-fe for calckey

installing to a subdirectory

  1. First, run these commands:

    npm install
    npm run build
    cp -r dist YOUR_CALCKEY_DIRECTORY/custom/assets/akkomafe
    
  2. Apply the following patch to calckey, so that the frontend can be accessed from a nicer path and to make signing in work due to oauth token callbacks (yeah i hardcoded paths).

    diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts
    index 642a17d57..714edc543 100644
    --- a/packages/backend/src/server/web/index.ts
    +++ b/packages/backend/src/server/web/index.ts
    @@ -141,6 +141,18 @@ router.get("/apple-touch-icon.png", async (ctx) => {
     	});
     });
    
    +router.get("/akkomafe", async (ctx) => {
    +	await send(ctx as any, '/akkomafe/index.html', {
    +		root: staticAssets,
    +	});
    +});
    +
    +router.get("/akkomafe/(.*)", async (ctx) => {
    +	await send(ctx as any, '/akkomafe/index.html', {
    +		root: staticAssets,
    +	});
    +});
    +
     router.get("/twemoji/(.*)", async (ctx) => {
     	const path = ctx.path.replace("/twemoji/", "");
    
    
  3. Rebuild calckey and your akkoma-fe should be accesible at /akkomafe!

developing (live reload, proxied apis, etc.)

See For Contributors section in the akkoma readme.