Skip to content

Commit

Permalink
[docs] init docs v2 (#7283)- initial commit for lightspark docs v2 πŸ“-…
Browse files Browse the repository at this point in the history
… copies over most files from umame-docs ©️- removes mention of UMA and replaces with Lightspark ⚑- adjusts colors πŸ§‘β€πŸŽ¨- adds articles for all existing lightspark and wallet sdk documentation (minus the actual content) 🩻- TODO: refactor most of this out into a "documentation framework"![Screenshot 2023-10-31 at 5.18.28 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/NU8OmLauzLqa61yWDJkY/f584e70e-896c-45e6-b673-79ac1bfae781.png) (#308)

* [docs] init docs v2 (#7283)

- initial commit for lightspark docs v2 πŸ“
- copies over most files from umame-docs ©️
- removes mention of UMA and replaces with Lightspark ⚑
- adjusts colors πŸ§‘β€πŸŽ¨
- adds articles for all existing lightspark and wallet sdk documentation (minus the actual content) 🩻
- TODO: refactor most of this out into a "documentation framework"

![Screenshot 2023-10-31 at 5.18.28 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/NU8OmLauzLqa61yWDJkY/f584e70e-896c-45e6-b673-79ac1bfae781.png)

GitOrigin-RevId: f4d9f886a464f9c34f850eba0e1f6fc4e99016d1

* Add utxoCallback handler to the js test vasp (#7292)

GitOrigin-RevId: 6fdff2a2c0467a9dc304d7e156168b2cb36df9cc

* Exclude original PR number and extended commit message for release PR

* fix syntax error

---------

Co-authored-by: Brian Siao Tick Chong <[email protected]>
Co-authored-by: Jeremy Klein <[email protected]>
Co-authored-by: Corey Martin <[email protected]>
  • Loading branch information
4 people authored Nov 1, 2023
1 parent 6ef0300 commit a1e5e39
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
repo,
head: triggeringRefHead,
base,
title: latestCommit.commit.message.replace(/\sGitOrigin-RevId.*/, ""),
title: latestCommit.commit.message.replace(/\sGitOrigin-RevId.*/, "").replace(/^(.+)\s\(#[0-9]+\).*/, "$1").substring(0, 30),
body: "If this change should result in new package versions please add a changeset before merging. You can do so by clicking the link provided by changeset bot below."
});
pr = result.data;
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
repo,
head: triggeringRefHead,
base,
title: latestCommit.commit.message.replace(/\sGitOrigin-RevId.*/, "").substring(0, 30),
title: latestCommit.commit.message.replace(/\sGitOrigin-RevId.*/, "").replace(/^(.+)\s\(#[0-9]+\).*/, "$1").substring(0, 30),
body: "If this change should result in new package versions please add a changeset before merging. You can do so by clicking the maintainers link provided by changeset-bot below.\n\nPlease note that changeset-bot appears to produce inconsistent / incorrect results with the latest version of changesets when run locally. Be sure to check that it is correctly mentioning the changed packages in the referenced link, or produce the changeset locally `yarn changeset` and push it to the branch."
});
pr = result.data;
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/uma-vasp/src/ReceivingVasp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default class ReceivingVasp {
}

private getUtxoCallback(req: Request, txId: String): string {
const path = "/api/uma/utxoCallback?txId=${txId}";
const path = `/api/uma/utxoCallback?txId=${txId}`;
return `${req.protocol}://${req.hostname}${path}`;
}
}
4 changes: 1 addition & 3 deletions apps/examples/uma-vasp/src/SendingVasp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,8 @@ export default class SendingVasp {
}

private getUtxoCallback(req: Request, txId: string): string {
const protocol = req.protocol;
const host = req.hostname;
const path = `/api/uma/utxoCallback?txId=${txId}`;
return `${protocol}://${host}${path}`;
return `${req.protocol}://${req.hostname}${path}`;
}

private async waitForPaymentCompletion(
Expand Down
6 changes: 6 additions & 0 deletions apps/examples/uma-vasp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ app.get("/.well-known/lnurlpubkey", (req, res) => {
});
});

app.post("/api/uma/utxoCallback", (req, res) => {
console.log(`Received UTXO callback for ${req.query.txid}`);
console.log(` ${req.body}`);
res.send("ok");
});

// Default 404 handler.
app.use(function (req, res, next) {
res.status(404);
Expand Down
9 changes: 5 additions & 4 deletions packages/ui/styles/colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,17 @@ const lightTheme = extend(lightBaseTheme, {
text: colors.gray60,
}),
nav: extendBase(lightBaseTheme, {
text: colors.gray60,
text: colors.gray10,
secondary: colors.secondary,
}),
content: extendBase(lightBaseTheme, {
bg: colors.white,
smBg: colors.white,
}),
controls: extendBase(lightBaseTheme, {
bg: neutral.gray40,
smBg: neutral.gray40,
text: neutral.white,
bg: neutral.gray95,
smBg: neutral.gray95,
text: neutral.gray60,
secondary: colors.secondary,
}),
});
Expand Down

0 comments on commit a1e5e39

Please sign in to comment.