fruye
31f3fd8846
It's not exactly correct and calckey removes query string in redirects :( |
||
---|---|---|
.gitea/issue_template | ||
build | ||
config | ||
docs | ||
src | ||
static | ||
test | ||
tools | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.mailmap | ||
.node-version | ||
.stylelintrc.json | ||
.woodpecker.yml | ||
BREAKING_CHANGES.md | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTORS.md | ||
LICENSE | ||
README.akkomafe.md | ||
README.md | ||
index.html | ||
package.json | ||
postcss.config.js | ||
renovate.json | ||
yarn.lock |
README.md
(WIP) akkoma-fe for calckey
installing to a subdirectory
-
First, run these commands:
npm install npm run build cp -r dist YOUR_CALCKEY_DIRECTORY/custom/assets/akkomafe
-
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/", "");
-
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.