Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bam32bittheme

Package Overview
Dependencies
Maintainers
0
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bam32bittheme - npm Package Compare versions

Comparing version 2.1.93-beta.18 to 2.1.93-beta.19

13

dist/Constant.js

@@ -6,5 +6,3 @@ "use strict";

});
exports.themeColors = exports.portalRoutes = exports.mui32Theme = exports.colorList = exports.TEST_SERVER_WSS = exports.TEST_SERVER = exports.TABLE_LICENSE_KEY = exports.PORTAL_PROD_URL = exports.HUB_PROD_URL = void 0;
require("core-js/modules/es.array.includes.js");
require("core-js/modules/es.string.includes.js");
exports.themeColors = exports.mui32Theme = exports.colorList = exports.TABLE_LICENSE_KEY = void 0;
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

@@ -325,11 +323,2 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }

shadows: boxShadowArray
};
const HUB_PROD_URL = exports.HUB_PROD_URL = window.location.origin.includes('localhost') ? 'http://localhost:3000' : window.location.origin.includes('test') ? 'https://hubtest.32bit.com.tr' : 'https://hub.32bit.com.tr';
const PORTAL_PROD_URL = exports.PORTAL_PROD_URL = window.location.origin.includes('localhost') ? 'http://localhost:3006' : window.location.origin.includes('test') ? 'https://easyflowtest.32bit.com.tr' : 'https://easyflow.32bit.com.tr';
const TEST_SERVER = exports.TEST_SERVER = 'https://easyflowtest.32bit.com.tr';
const TEST_SERVER_WSS = exports.TEST_SERVER_WSS = 'wss://easyflowtest.32bit.com.tr/portal/bamoe-notification';
const portalRoutes = exports.portalRoutes = {
redirect: '/redirect-route',
basename: '/portal',
internalPortal: '/internal-portal'
};

@@ -120,8 +120,2 @@ "use strict";

});
Object.defineProperty(exports, "PostMessageProvider", {
enumerable: true,
get: function get() {
return _PostMessageProvider.default;
}
});
Object.defineProperty(exports, "QuickSearchTable", {

@@ -270,3 +264,2 @@ enumerable: true,

var _formatDateUtils = require("./utils/formatDateUtils");
var _PostMessageProvider = _interopRequireDefault(require("./components/PostMessageProvider"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -12,3 +12,2 @@ "use strict";

require("core-js/modules/es.string.replace.js");
require("core-js/modules/es.string.starts-with.js");
require("core-js/modules/web.dom-collections.iterator.js");

@@ -21,4 +20,2 @@ var _KeyboardArrowUp = _interopRequireDefault(require("@mui/icons-material/KeyboardArrowUp"));

var _Sidebar = _interopRequireDefault(require("./Sidebar"));
var _Constant = require("../Constant");
var _reactRouterDom = require("react-router-dom");
const _excluded = ["children"];

@@ -47,3 +44,2 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

const [isScroll, setIsScroll] = (0, _react.useState)(false);
const location = (0, _reactRouterDom.useLocation)();
const theme = (0, _material.useTheme)();

@@ -113,32 +109,2 @@ const isMobile = (0, _material.useMediaQuery)(theme.breakpoints.down('md'));

}, [bodyPadding]);
(0, _react.useEffect)(() => {
const handleMessage = event => {
var _event$origin;
if ((_event$origin = event.origin) !== null && _event$origin !== void 0 && _event$origin.startsWith(_Constant.HUB_PROD_URL)) {
var _event$source;
(_event$source = event.source) === null || _event$source === void 0 || _event$source.postMessage('ok', {
targetOrigin: "".concat(_Constant.HUB_PROD_URL)
});
if (event.data) {
const data = JSON.parse(event.data);
Object.entries(data).forEach(_ref3 => {
let [key, value] = _ref3;
return localStorage.setItem(key, value);
});
localStorage.removeItem('isHub');
window.location.href = _Constant.PORTAL_PROD_URL + (data === null || data === void 0 ? void 0 : data.hubRedirectPath);
}
}
};
window.addEventListener('message', handleMessage);
return () => {
window.removeEventListener('message', handleMessage);
};
}, []);
(0, _react.useEffect)(() => {
const hubRedirectPath = localStorage.getItem('hubRedirectPath');
if (window.location.pathname === hubRedirectPath) {
localStorage.removeItem('hubRedirectPath');
}
}, [location.pathname]);
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Main, {

@@ -145,0 +111,0 @@ component: "main",

11

dist/layout/Sidebar.js

@@ -33,3 +33,2 @@ "use strict";

var _Input = _interopRequireDefault(require("../components/Input"));
var _Constant = require("../Constant");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -134,3 +133,3 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

if (localStorage.getItem('token')) {
const url = window.location.origin.includes('localhost') ? _Constant.TEST_SERVER : window.location.origin;
const url = window.location.origin.includes('localhost') ? 'https://easyflowtest.32bit.com.tr' : window.location.origin;
fetch("".concat(url, "/portal/api/twofa/check2FaForUser"), {

@@ -167,3 +166,3 @@ method: 'GET',

const getQrCode = () => {
const url = window.location.origin.includes('localhost') ? _Constant.TEST_SERVER : window.location.origin;
const url = window.location.origin.includes('localhost') ? 'https://easyflowtest.32bit.com.tr' : window.location.origin;
fetch("".concat(url, "/portal/api/twofa"), {

@@ -201,3 +200,3 @@ method: 'POST',

setLoading(true);
const url = window.location.origin.includes('localhost') ? _Constant.TEST_SERVER : window.location.origin;
const url = window.location.origin.includes('localhost') ? 'https://easyflowtest.32bit.com.tr' : window.location.origin;
fetch("".concat(url, "/portal/api/twofa/verify?code=").concat(values.verificationCode), {

@@ -320,3 +319,3 @@ method: 'POST',

title: t({
id: controlVerify ? 'verifyButton.tooltip.success' : 'verifyButton.tooltip.error'
id: controlVerify ? "verifyButton.tooltip.success" : "verifyButton.tooltip.error"
})

@@ -327,3 +326,3 @@ }, /*#__PURE__*/_react.default.createElement(_material.IconButton, {

}),
color: controlVerify ? 'success' : 'error',
color: controlVerify ? "success" : "error",
onClick: () => controlVerify ? {} : getQrCode()

@@ -330,0 +329,0 @@ }, /*#__PURE__*/_react.default.createElement(_VerifiedUserRounded.default, null))))), /*#__PURE__*/_react.default.createElement(_material.Typography, {

{
"name": "bam32bittheme",
"version": "2.1.93-beta.18",
"version": "2.1.93-beta.19",
"private": false,

@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc