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,3 @@
|
||||
export const DATA_SET = "appEnv.DATA_SET";
|
||||
export const MOBILE_SET = "appEnv.MOBILE_SET";
|
||||
export const DIMENSIONS_SET = "appEnv.DIMENSIONS_SET";
|
||||
@@ -0,0 +1,47 @@
|
||||
import { AppEnvDimensionsState } from "../../stores/typings";
|
||||
import * as actionTypes from "./actionTypes";
|
||||
import {
|
||||
DataSetAction,
|
||||
DataSetPayload,
|
||||
DimensionsSetAction,
|
||||
MobileSetAction,
|
||||
} from "./typings";
|
||||
|
||||
/**
|
||||
*
|
||||
* @param payload
|
||||
*/
|
||||
export function dataSet(payload: DataSetPayload): DataSetAction {
|
||||
return {
|
||||
type: actionTypes.DATA_SET,
|
||||
payload,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param isMobile
|
||||
*/
|
||||
export function mobileSet(isMobile: boolean): MobileSetAction {
|
||||
return {
|
||||
type: actionTypes.MOBILE_SET,
|
||||
payload: {
|
||||
isMobile,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param dimensions
|
||||
*/
|
||||
export function dimensionsSet(
|
||||
dimensions: Omit<AppEnvDimensionsState, "styleSizeType">
|
||||
): DimensionsSetAction {
|
||||
return {
|
||||
type: actionTypes.DIMENSIONS_SET,
|
||||
payload: {
|
||||
dimensions,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as actionTypes from "./actionTypes";
|
||||
import * as actions from "./actions";
|
||||
import * as typings from "./typings";
|
||||
|
||||
export const appEnvActionTypes = actionTypes;
|
||||
export const appEnvActions = actions;
|
||||
export const appEnvTypings = typings;
|
||||
Reference in New Issue
Block a user