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:
@@ -0,0 +1,7 @@
|
||||
export var AccessTypeEnum;
|
||||
(function (AccessTypeEnum) {
|
||||
AccessTypeEnum[AccessTypeEnum["FREE"] = 1] = "FREE";
|
||||
AccessTypeEnum[AccessTypeEnum["OWNED"] = 2] = "OWNED";
|
||||
AccessTypeEnum[AccessTypeEnum["SHARED"] = 3] = "SHARED";
|
||||
AccessTypeEnum[AccessTypeEnum["NO_ACCESS"] = 4] = "NO_ACCESS";
|
||||
})(AccessTypeEnum || (AccessTypeEnum = {}));
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as AccessConstants from './constants';
|
||||
import * as AccessTypings from './typings';
|
||||
import * as AccessUtils from './utils';
|
||||
export * from './typings';
|
||||
export * from './constants';
|
||||
export { AccessUtils };
|
||||
export default Object.assign(Object.assign(Object.assign({}, AccessConstants), AccessTypings), AccessUtils);
|
||||
@@ -0,0 +1,6 @@
|
||||
import { AccessTypeEnum } from './constants';
|
||||
export function isAccessible(accessType) {
|
||||
return (accessType === AccessTypeEnum.FREE ||
|
||||
accessType === AccessTypeEnum.OWNED ||
|
||||
accessType === AccessTypeEnum.SHARED);
|
||||
}
|
||||
Reference in New Issue
Block a user