Innovenergy_trunk/frontend/node_modules/testcafe-browser-tools/lib/api/get-devices-viewport-data.js

14 lines
1.6 KiB
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const read_file_relative_1 = require("read-file-relative");
const VIEWPORT_DATA = JSON.parse(read_file_relative_1.readSync('../../data/devices.json'));
/** Gets the name and the viewport size of all devices from [this table]{@link http://viewportsizes.com/}.
* @function
* @name getDevicesViewportData
* @returns {ViewportData} A JSON Object that contains device names and viewport sizes.
*/
function default_1() {
return VIEWPORT_DATA;
}
exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWRldmljZXMtdmlld3BvcnQtZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvZ2V0LWRldmljZXMtdmlld3BvcnQtZGF0YS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJEQUE4QztBQUc5QyxNQUFNLGFBQWEsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLDZCQUFRLENBQUMseUJBQXlCLENBQUMsQ0FBQyxDQUFDO0FBRXRFOzs7O0dBSUc7QUFDSDtJQUNJLE9BQU8sYUFBYSxDQUFDO0FBQ3pCLENBQUM7QUFGRCw0QkFFQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlYWRTeW5jIH0gZnJvbSAncmVhZC1maWxlLXJlbGF0aXZlJztcblxuXG5jb25zdCBWSUVXUE9SVF9EQVRBID0gSlNPTi5wYXJzZShyZWFkU3luYygnLi4vLi4vZGF0YS9kZXZpY2VzLmpzb24nKSk7XG5cbi8qKiBHZXRzIHRoZSBuYW1lIGFuZCB0aGUgdmlld3BvcnQgc2l6ZSBvZiBhbGwgZGV2aWNlcyBmcm9tIFt0aGlzIHRhYmxlXXtAbGluayBodHRwOi8vdmlld3BvcnRzaXplcy5jb20vfS5cbiAqIEBmdW5jdGlvblxuICogQG5hbWUgZ2V0RGV2aWNlc1ZpZXdwb3J0RGF0YVxuICogQHJldHVybnMge1ZpZXdwb3J0RGF0YX0gQSBKU09OIE9iamVjdCB0aGF0IGNvbnRhaW5zIGRldmljZSBuYW1lcyBhbmQgdmlld3BvcnQgc2l6ZXMuXG4gKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uICgpIHtcbiAgICByZXR1cm4gVklFV1BPUlRfREFUQTtcbn1cbiJdfQ==