diff --git a/.changeset/brand-sign-in-page.md b/.changeset/brand-sign-in-page.md new file mode 100644 index 0000000..a1427ed --- /dev/null +++ b/.changeset/brand-sign-in-page.md @@ -0,0 +1,5 @@ +--- +"fulldev": patch +--- + +Show the page after sign-in in the Fulldev colours, with the logo tile. diff --git a/dist/cli.mjs b/dist/cli.mjs index 7965d1c..ac1e035 100644 --- a/dist/cli.mjs +++ b/dist/cli.mjs @@ -990,7 +990,12 @@ var BrowserLoginProvider = class { if (scope === "client" || scope === "all") await this.store.update(this.target.url, (current) => without(current, "client")); } }; -const page = (message) => `Fulldev CLI

${message}

`; +const tile = ``; +const page = (message) => `Fulldev CLI
${tile}

${message}

`; /** Listens on 127.0.0.1 for the authorization server's redirect (RFC 8252). */ async function listenForCallback(preferredPort) { let receive = () => {}; diff --git a/src/oauth.ts b/src/oauth.ts index 527d49a..81b6b2f 100644 --- a/src/oauth.ts +++ b/src/oauth.ts @@ -269,8 +269,17 @@ interface Callback { close: () => void } +// The Fulldev logo tile from full.dev's favicon: the white mark on blue. +const markPaths = [ + "M9.955 0.313C5.246 1.263 1.658 3.599 0.434 6.534C0.19 7.118 0.046 7.725 0.009 8.348C-0.003 8.552 0.11 8.743 0.294 8.83C0.479 8.917 0.698 8.883 0.848 8.744C1.78 7.881 4.717 5.41 10.404 4.48C11.847 4.244 12.134 3.917 11.95 2.206C11.766 0.495 11.389 0.024 9.955 0.313Z", + "M9.88 6.991C5.285 7.935 2.974 9.921 2.178 10.698C0.632 12.206 0 13.835 0 15.33C0 19.489 4.773 22.976 11.193 23.899C11.753 23.979 11.894 23.839 11.976 23.179C12.057 22.518 11.949 22.386 11.392 22.29C6.958 21.533 3.726 19.389 3.58 16.84C3.535 16.049 3.76 14.692 5.536 13.328C6.736 12.406 8.42 11.671 10.4 11.223C11.851 10.893 12.152 10.624 11.938 8.886C11.725 7.148 11.338 6.691 9.88 6.991Z", + "M11.193 17.238C5.987 16.49 3.213 14.334 2.104 13.229L4.381 12.195C5.161 13.214 7.18 14.91 11.392 15.63C11.949 15.725 12.057 15.858 11.976 16.518C11.894 17.179 11.753 17.319 11.193 17.238Z", +] +const tile = `` + +// The page the browser shows after sign-in, in the Fulldev colours. const page = (message: string) => - `Fulldev CLI

${message}

` + `Fulldev CLI
${tile}

${message}

` /** Listens on 127.0.0.1 for the authorization server's redirect (RFC 8252). */ async function listenForCallback(preferredPort?: number): Promise {