+ Sync your keymap configuration to GitHub +
++ Demo Mode +
++ GitHub login is disabled in demo mode. Repository and file + selection is simulated with sample data. +
+{gh.error}
++ {gh.user.name ?? gh.user.login} +
++ @{gh.user.login} +
++ Loading... +
++ No changes detected. Connect keyboard and load keymap to see + differences. +
+ )} ++ GitHub Keymap Sync allows you to export your current keyboard + configuration as a pull request to your ZMK config repository. + Connect your keyboard, select a repository and keymap file, then + create a PR with the updated bindings. +
+Login successful, you can close this window.
+ + +`; + + return new Response(html, { + headers: { "Content-Type": "text/html" }, + }); + } + + return env.ASSETS.fetch(request); + }, +}; diff --git a/wrangler.toml b/wrangler.toml index ab21f94..344e873 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,4 +1,5 @@ compatibility_date = "2024-06-11" +main = "src/worker.ts" assets = { directory = "./dist" } [env.release]