Grabbed dndbeyond's source code

```
~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js
```
This commit is contained in:
2025-05-28 11:50:03 -07:00
commit 8df9031d27
3592 changed files with 319051 additions and 0 deletions
@@ -0,0 +1,46 @@
import React from "react";
import {
CharacterNotes,
Constants,
} from "@dndbeyond/character-rules-engine/es";
interface Props {
notes: CharacterNotes;
onClick?: () => void;
}
export default class OtherPossessions extends React.PureComponent<Props> {
handlePossessionsManage = (evt: React.MouseEvent): void => {
const { onClick } = this.props;
if (onClick) {
evt.stopPropagation();
evt.nativeEvent.stopImmediatePropagation();
onClick();
}
};
render() {
const { notes } = this.props;
let notesData = notes[Constants.NoteKeyEnum.PERSONAL_POSSESSIONS];
let hasContent: boolean = !!notesData;
let content: React.ReactNode = hasContent
? notesData
: "+ Add other possessions, treasure, or holdings for your character in this section.";
let classNames: Array<string> = ["ct-other-possessions"];
if (!hasContent) {
classNames.push("ct-other-possessions--no-content");
}
return (
<div
className={classNames.join(" ")}
onClick={this.handlePossessionsManage}
>
{content}
</div>
);
}
}
@@ -0,0 +1,4 @@
import OtherPossessions from "./OtherPossessions";
export default OtherPossessions;
export { OtherPossessions };