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,72 @@
import { ToastMessageMeta } from "../../stores/typings";
import * as actionTypes from "./actionTypes";
import {
ToastErrorAction,
ToastRemoveAction,
ToastSuccessAction,
} from "./typings";
/**
*
* @param title
* @param message
* @param meta
*/
export function toastSuccess(
title: string,
message: string,
meta?: ToastMessageMeta
): ToastSuccessAction {
return {
type: actionTypes.ADD_MESSAGE,
payload: {
toast: {
title,
message,
},
meta: {
level: "success",
...meta,
},
},
};
}
/**
*
* @param title
* @param message
* @param meta
*/
export function toastError(
title: string,
message: string,
meta?: ToastMessageMeta
): ToastErrorAction {
return {
type: actionTypes.ADD_MESSAGE,
payload: {
toast: {
title,
message,
},
meta: {
level: "error",
...meta,
},
},
};
}
/**
*
* @param id
*/
export function removeToast(id: number | string): ToastRemoveAction {
return {
type: actionTypes.REMOVE_MESSAGE,
payload: {
id,
},
};
}