@coorpacademy/components 10.1.12-alpha.0 → 10.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/tag/test/fixtures.js +4 -2
- package/es/atom/tag/test/fixtures.js.map +1 -1
- package/es/molecule/banner/index.js +1 -1
- package/es/molecule/banner/index.js.map +1 -1
- package/es/molecule/banner/test/fixtures.js +4 -0
- package/es/molecule/banner/test/fixtures.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +5 -0
- package/es/molecule/brand-tabs/style.css +0 -1
- package/es/molecule/short-lived-banner/test/fixtures.js +15 -0
- package/es/molecule/short-lived-banner/test/fixtures.js.map +1 -0
- package/es/organism/accordion/coorp-manager/index.js +0 -3
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/brand-dashboard/index.js +1 -3
- package/es/organism/brand-dashboard/index.js.map +1 -1
- package/es/organism/brand-dashboard/style.css +0 -10
- package/es/organism/list-item/index.js +68 -0
- package/es/organism/list-item/index.js.map +1 -0
- package/es/organism/list-item/style.css +49 -0
- package/es/organism/list-item/test/fixtures/archived.js +39 -0
- package/es/organism/list-item/test/fixtures/archived.js.map +1 -0
- package/es/organism/list-item/test/fixtures/draft.js +39 -0
- package/es/organism/list-item/test/fixtures/draft.js.map +1 -0
- package/es/organism/list-item/test/fixtures/published.js +39 -0
- package/es/organism/list-item/test/fixtures/published.js.map +1 -0
- package/es/organism/list-item/test/fixtures/revised.js +41 -0
- package/es/organism/list-item/test/fixtures/revised.js.map +1 -0
- package/es/organism/list-item/test/fixtures.js +19 -0
- package/es/organism/list-item/test/fixtures.js.map +1 -0
- package/es/organism/setup-header/style.css +16 -7
- package/es/template/back-office/brand-update/index.js +106 -92
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +22 -66
- package/es/template/back-office/brand-update/test/fixtures/default.js +1 -58
- package/es/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/general-settings.js +77 -3
- package/es/template/back-office/brand-update/test/fixtures/general-settings.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/loader.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/atom/tag/test/fixtures.js +5 -2
- package/lib/atom/tag/test/fixtures.js.map +1 -1
- package/lib/molecule/banner/index.js +1 -1
- package/lib/molecule/banner/index.js.map +1 -1
- package/lib/molecule/banner/test/fixtures.js +6 -0
- package/lib/molecule/banner/test/fixtures.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +5 -0
- package/lib/molecule/brand-tabs/style.css +0 -1
- package/lib/molecule/short-lived-banner/test/fixtures.js +25 -0
- package/lib/molecule/short-lived-banner/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/index.js +0 -4
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/brand-dashboard/index.js +1 -3
- package/lib/organism/brand-dashboard/index.js.map +1 -1
- package/lib/organism/brand-dashboard/style.css +0 -10
- package/lib/organism/list-item/index.js +82 -0
- package/lib/organism/list-item/index.js.map +1 -0
- package/lib/organism/list-item/style.css +49 -0
- package/lib/organism/list-item/test/fixtures/archived.js +44 -0
- package/lib/organism/list-item/test/fixtures/archived.js.map +1 -0
- package/lib/organism/list-item/test/fixtures/draft.js +44 -0
- package/lib/organism/list-item/test/fixtures/draft.js.map +1 -0
- package/lib/organism/list-item/test/fixtures/published.js +44 -0
- package/lib/organism/list-item/test/fixtures/published.js.map +1 -0
- package/lib/organism/list-item/test/fixtures/revised.js +46 -0
- package/lib/organism/list-item/test/fixtures/revised.js.map +1 -0
- package/lib/organism/list-item/test/fixtures.js +31 -0
- package/lib/organism/list-item/test/fixtures.js.map +1 -0
- package/lib/organism/setup-header/style.css +16 -7
- package/lib/template/back-office/brand-update/index.js +106 -93
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +22 -66
- package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -58
- package/lib/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/general-settings.js +76 -3
- package/lib/template/back-office/brand-update/test/fixtures/general-settings.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/loader.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/package.json +2 -2
- package/es/molecule/search/test/fixtures.js +0 -15
- package/es/molecule/search/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers.js +0 -11
- package/es/template/back-office/brand-update/test/fixtures/manageusers.js.map +0 -1
- package/lib/molecule/search/test/fixtures.js +0 -25
- package/lib/molecule/search/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers.js +0 -25
- package/lib/template/back-office/brand-update/test/fixtures/manageusers.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["SubTab","title","href","selected","propTypes","PropTypes","string","isRequired","bool","BrandUpdate","props","notifications","header","items","content","details","onItemClick","logo","selectedTab","e","head","formattedTabs","map","key","type","index","children","iconType","getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","formattedTabsViews","tab","tabs","notificationsList","notification","contentView","cont","detailsView","container","dashboardAside","contentWrapper","contentHandler","subTabs","dashboardContent","defaultProps","arrayOf","shape","Notification","Header","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,MAAM,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,IAAR;AAAcC,EAAAA;AAAd,CAAD,KAA6B;AAC1C,sBAAO,yCAAKF,KAAL,CAAP;AACD,CAFD;;AAIAD,MAAM,CAACI,SAAP,2CAAmB;AACjBH,EAAAA,KAAK,EAAEI,mBAAUC,MAAV,CAAiBC,UADP;AAEjBL,EAAAA,IAAI,EAAEG,mBAAUC,MAAV,CAAiBC,UAFN;AAGjBJ,EAAAA,QAAQ,EAAEE,mBAAUG,IAAV,CAAeD;AAHR,CAAnB;;AAMA,MAAME,WAAW,GAAGC,KAAK,IAAI;AAC3B,QAAM;AAACC,IAAAA,aAAD;AAAgBC,IAAAA,MAAhB;AAAwBC,IAAAA,KAAxB;AAA+BC,IAAAA,OAA/B;AAAwCC,IAAAA,OAAxC;AAAiDC,IAAAA;AAAjD,MAAgEN,KAAtE;AACA,QAAMO,IAAI,GAAG,wDAAb;AACA,QAAMC,WAAW,GAAG,mBA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;AAHR,KAD2B,EAM3BvD,mBAAUkD,KAAV,uBACKM,oBAAWzD,SADhB;AAEEmB,IAAAA,GAAG,EAAElB,mBAAUC,MAFjB;AAGEkB,IAAAA,IAAI,EAAEnB,mBAAUuD,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KAN2B,EAW3BvD,mBAAUkD,KAAV,uBACKO,qBAAY1D,SADjB;AAEEmB,IAAAA,GAAG,EAAElB,mBAAUC,MAFjB;AAGEkB,IAAAA,IAAI,EAAEnB,mBAAUuD,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAHR,KAX2B,EAgB3BvD,mBAAUkD,KAAV,uBACKQ,wBAAe3D,SADpB;AAEEmB,IAAAA,GAAG,EAAElB,mBAAUC,MAFjB;AAGEkB,IAAAA,IAAI,EAAEnB,mBAAUuD,KAAV,CAAgB,CAAC,sBAAD,CAAhB;AAHR,KAhB2B,EAqB3BvD,mBAAUkD,KAAV,uBACKS,wBAAe5D,SADpB;AAEEmB,IAAAA,GAAG,EAAElB,mBAAUC,MAFjB;AAGEkB,IAAAA,IAAI,EAAEnB,mBAAUuD,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,CAApB,CA5Ba;AAuDtB7C,EAAAA,OAAO,EAAEV,mBAAUkD,KAAV,uBACJM,oBAAWzD,SADP;AAEPmB,IAAAA,GAAG,EAAElB,mBAAUC,MAFR;AAGPkB,IAAAA,IAAI,EAAEnB,mBAAUuD,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAvDa;AA4DtB5C,EAAAA,WAAW,EAAEX,mBAAU4D;AA5DD,CAAxB;eA+DexD,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport filter from 'lodash/fp/filter';\nimport head from 'lodash/fp/head';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport Notification from '../../../atom/notification';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst SubTab = ({title, href, selected}) => {\n return <h5>{title}</h5>;\n};\n\nSubTab.propTypes = {\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n const selectedTab = pipe(\n filter(e => e.selected),\n head,\n get('tabs'),\n filter(e => e.selected),\n head\n )(items);\n\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\n const subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.tabs}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Notification {...notification} />\n </div>\n );\n });\n\n const contentView = cont => {\n if (!cont) return <Loader />;\n const {type} = cont;\n switch (type) {\n case 'form':\n return <BrandForm {...cont} />;\n case 'list':\n return <BrandTable {...cont} />;\n case 'upload':\n return <BrandUpload {...cont} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...cont} />;\n case 'home':\n return <BrandDashboard {...cont} />;\n }\n };\n\n const detailsView = cont => {\n if (!cont) return;\n return <BrandTable {...cont} />;\n };\n\n return (\n <div className={style.container}>\n <div className={style.dashboardAside}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n <div className={style.contentWrapper}>\n <Header {...header} />\n <div className={style.notifications}>{notificationsList}</div>\n {content && content.type === 'home' ? (\n contentView(content)\n ) : (\n <div className={style.contentHandler}>\n <div className={style.contentView}>\n {selectedTab && !isEmpty(selectedTab.subTabs) ? (\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n ) : null}\n <div className={style.dashboardContent}>\n <div>{contentView(content)}</div>\n <div>{detailsView(details)}</div>\n </div>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(PropTypes.shape(Notification.propTypes)),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","leftMenu","buildNotifications","notifications","notificationsList","notification","buildHeader","header","headerStyle","headerForNotifications","buildTabs","selectedTab","e","showTabs","subTabs","buildContentView","content","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","headerView","tabsView","contentView","detailsView","container","contentWrapper","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,eAAMC,eAAT,GAA2BD,eAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,aAA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,MAFjB;AAGElD,IAAAA,IAAI,EAAE6C,mBAAUU,KAAV,CAAgB,CAAC,sBAAD,CAAhB;AAHR,KAhB2B,EAqB3BV,mBAAUE,KAAV,uBACKY,wBAAef,SADpB;AAEErC,IAAAA,GAAG,EAAEsC,mBAAUK,MAFjB;AAGElD,IAAAA,IAAI,EAAE6C,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,CAApB,CA5Ba;AAuDtBvB,EAAAA,OAAO,EAAEa,mBAAUE,KAAV,uBACJS,oBAAWZ,SADP;AAEPrC,IAAAA,GAAG,EAAEsC,mBAAUK,MAFR;AAGPlD,IAAAA,IAAI,EAAE6C,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAvDa;AA4DtBlD,EAAAA,WAAW,EAAEwC,mBAAUe;AA5DD,CAAxB;eA+De3B,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.leftMenu}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = (header, notifications) => {\n const headerStyle = isEmpty(notifications) ? style.header : style.headerForNotifications;\n return (\n <div className={headerStyle}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab && !isEmpty(selectedTab.subTabs);\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div>\n <Loader />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n\n return (\n <div className={style.container}>\n {leftNavigation}\n <div className={style.contentWrapper}>\n {headerView}\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(PropTypes.shape(Banner.propTypes)),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
.container {
|
|
14
14
|
width: 100%;
|
|
15
15
|
height: 100%;
|
|
16
|
-
max-width: 100%;
|
|
17
16
|
scroll-behavior: unset;
|
|
18
17
|
margin: 0 auto;
|
|
19
18
|
padding-bottom: 80px 20px;
|
|
@@ -21,7 +20,19 @@
|
|
|
21
20
|
font-family: "Open Sans";
|
|
22
21
|
}
|
|
23
22
|
|
|
23
|
+
.header {
|
|
24
|
+
margin: 24px 0 56px 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.headerForNotifications {
|
|
28
|
+
margin: 24px 0 0 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
24
31
|
.tabs {
|
|
32
|
+
padding: 0 0 48px 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.subTabsView {
|
|
25
36
|
font-family: 'Gilroy';
|
|
26
37
|
margin-left: 16%;
|
|
27
38
|
padding: 1px 34px 1px 16px;
|
|
@@ -30,15 +41,8 @@
|
|
|
30
41
|
border-left: solid 3px cm_grey_100;
|
|
31
42
|
}
|
|
32
43
|
|
|
33
|
-
.contentWrapper {
|
|
34
|
-
width: 100%;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
44
|
.notifications {
|
|
41
|
-
padding:
|
|
45
|
+
padding: 24px 0 32px 0;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
.notification {
|
|
@@ -49,35 +53,18 @@
|
|
|
49
53
|
margin-bottom: 0;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
|
-
.
|
|
53
|
-
padding: 10px 40px;
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: space-between;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.dashboardAside {
|
|
56
|
+
.leftMenu {
|
|
59
57
|
scroll-behavior: unset;
|
|
60
58
|
min-width: 223px;
|
|
61
59
|
background: xtraLightGrey;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
line-height: 1.4em;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.dashboardContent {
|
|
74
|
-
padding: 1rem;
|
|
75
|
-
text-align: left;
|
|
76
|
-
position: relative;
|
|
77
|
-
margin: 0 auto;
|
|
78
|
-
margin-top: 16px;
|
|
79
|
-
line-height: 1.4em;
|
|
80
|
-
border: 1px solid light;
|
|
62
|
+
.contentWrapper {
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding: 0 64px;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
overflow: auto;
|
|
81
68
|
}
|
|
82
69
|
|
|
83
70
|
.selectedElement {
|
|
@@ -103,46 +90,15 @@
|
|
|
103
90
|
margin: 32px 20px 54px 20px;
|
|
104
91
|
}
|
|
105
92
|
|
|
106
|
-
@media desktop {
|
|
107
|
-
.contentHandler {
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
flex-wrap: wrap;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
width: 90%;
|
|
112
|
-
margin: 0 auto;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.contentHandler:first-child {
|
|
116
|
-
width: 80%;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.contentHandler:nth-child(2) {
|
|
120
|
-
width: 80%;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.contentView {
|
|
124
|
-
width: 92.4%;
|
|
125
|
-
margin: 0 auto;
|
|
126
|
-
margin-right: 17px;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
93
|
@media tablet {
|
|
131
94
|
.container {
|
|
132
95
|
scroll-behavior: unset;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
.contentView {
|
|
136
|
-
margin: 0 auto;
|
|
137
|
-
margin-right: 16px;
|
|
96
|
+
margin: 0;
|
|
97
|
+
padding: 10px 10px;
|
|
138
98
|
}
|
|
139
99
|
}
|
|
140
100
|
|
|
141
101
|
@media mobile {
|
|
142
|
-
.contentHandler:first-child {
|
|
143
|
-
width: 85%;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
102
|
.notification {
|
|
147
103
|
margin: 0 auto;
|
|
148
104
|
}
|
|
@@ -41,64 +41,7 @@ const items = [{
|
|
|
41
41
|
href: '#brand/samsung/content-creation',
|
|
42
42
|
selected: false,
|
|
43
43
|
isOpen: true,
|
|
44
|
-
type: 'collapsibleTab'
|
|
45
|
-
tabs: [{
|
|
46
|
-
title: 'My platform',
|
|
47
|
-
href: '#/myplatform',
|
|
48
|
-
selected: true,
|
|
49
|
-
subTabs: [{
|
|
50
|
-
name: 'general-settings',
|
|
51
|
-
title: 'general-settings',
|
|
52
|
-
href: `general-settings`,
|
|
53
|
-
selected: false
|
|
54
|
-
}, {
|
|
55
|
-
name: 'sso',
|
|
56
|
-
title: 'sso',
|
|
57
|
-
href: `sso`,
|
|
58
|
-
selected: false
|
|
59
|
-
}, {
|
|
60
|
-
name: 'danger-zone',
|
|
61
|
-
title: 'danger-zone',
|
|
62
|
-
href: `danger-zone`,
|
|
63
|
-
selected: false
|
|
64
|
-
}, {
|
|
65
|
-
name: 'manage-users',
|
|
66
|
-
title: 'manage-users',
|
|
67
|
-
href: `manage-users`,
|
|
68
|
-
selected: true
|
|
69
|
-
}, {
|
|
70
|
-
name: 'upload-users',
|
|
71
|
-
title: 'upload-users',
|
|
72
|
-
href: `upload-users`,
|
|
73
|
-
selected: false
|
|
74
|
-
}, {
|
|
75
|
-
name: 'lms',
|
|
76
|
-
title: 'lms',
|
|
77
|
-
href: `lms`,
|
|
78
|
-
selected: false
|
|
79
|
-
}, {
|
|
80
|
-
name: 'teams',
|
|
81
|
-
title: 'teams',
|
|
82
|
-
href: `teams`,
|
|
83
|
-
selected: false
|
|
84
|
-
}]
|
|
85
|
-
}, {
|
|
86
|
-
title: 'Look and Feel',
|
|
87
|
-
href: '#/look-and-feel',
|
|
88
|
-
selected: false
|
|
89
|
-
}, {
|
|
90
|
-
title: 'Settings',
|
|
91
|
-
href: '#/settings',
|
|
92
|
-
selected: false
|
|
93
|
-
}, {
|
|
94
|
-
title: 'Any',
|
|
95
|
-
href: '#/any',
|
|
96
|
-
selected: false
|
|
97
|
-
}, {
|
|
98
|
-
title: 'Many',
|
|
99
|
-
href: '#/many',
|
|
100
|
-
selected: false
|
|
101
|
-
}]
|
|
44
|
+
type: 'collapsibleTab'
|
|
102
45
|
}, {
|
|
103
46
|
title: 'Analytics',
|
|
104
47
|
key: 'analytics',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["items","title","key","href","open","undefined","selected","type","isOpen","tabs","
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["items","title","key","href","open","undefined","selected","type","isOpen","tabs","props","header","Header","notifications","logo","content","groups"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,KAAK,GAAG,CACnB;AACEC,EAAAA,KAAK,EAAE,cADT;AAEEC,EAAAA,GAAG,EAAE,WAFP;AAGEC,EAAAA,IAAI,EAAE,0BAHR;AAIEC,EAAAA,IAAI,EAAEC,SAJR;AAKEC,EAAAA,QAAQ,EAAE,IALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CADmB,EASnB;AACEN,EAAAA,KAAK,EAAE,gBADT;AAEEC,EAAAA,GAAG,EAAE,gBAFP;AAGEC,EAAAA,IAAI,EA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D,GAFI,EAGJ;AAACL,IAAAA,KAAK,EAAE,UAAR;AAAoBE,IAAAA,IAAI,EAAE,YAA1B;AAAwCG,IAAAA,QAAQ,EAAE;AAAlD,GAHI,EAIJ;AAACL,IAAAA,KAAK,EAAE,KAAR;AAAeE,IAAAA,IAAI,EAAE,OAArB;AAA8BG,IAAAA,QAAQ,EAAE;AAAxC,GAJI,EAKJ;AAACL,IAAAA,KAAK,EAAE,MAAR;AAAgBE,IAAAA,IAAI,EAAE,QAAtB;AAAgCG,IAAAA,QAAQ,EAAE;AAA1C,GALI;AAPR,CAzCmB,CAAd;;eA0DQ;AACbI,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEC,kBAAOF,KADV;AAELG,IAAAA,aAAa,EAAE,EAFV;AAGLb,IAAAA,KAHK;AAILc,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,OAAO,EAAE;AACPR,MAAAA,IAAI,EAAE,MADC;AAEPS,MAAAA,MAAM,EAAE;AAFD;AALJ;AADM,C","sourcesContent":["import Header from '../../../../../organism/setup-header/test/fixtures/default';\n\nexport const items = [\n {\n title: 'My Dashboard',\n key: 'dashboard',\n href: '#brand/samsung/dashboard',\n open: undefined,\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Administration',\n key: 'administration',\n href: '#brand/samsung/administration',\n open: false,\n selected: false,\n type: 'collapsibleTab'\n },\n {\n title: 'Editorialization',\n key: 'editorialization',\n href: '#brand/samsung/editorialization',\n type: 'iconLink',\n open: false,\n selected: false\n },\n {\n title: 'Content Creation',\n key: 'contentCreation',\n href: '#brand/samsung/content-creation',\n open: false,\n selected: false,\n type: 'iconLink'\n },\n {\n title: 'Animation',\n key: 'animation',\n href: '#brand/samsung/content-creation',\n selected: false,\n isOpen: true,\n type: 'collapsibleTab'\n },\n {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n tabs: [\n {title: 'SSO', href: '#/sso', selected: false, type: 'iconLink'},\n {title: 'Look and Feel', href: '#/look-and-feel', selected: false},\n {title: 'Settings', href: '#/settings', selected: false},\n {title: 'Any', href: '#/any', selected: false},\n {title: 'Many', href: '#/many', selected: false}\n ]\n }\n];\n\nexport default {\n props: {\n header: Header.props,\n notifications: [],\n items,\n logo: '',\n content: {\n type: 'form',\n groups: []\n }\n }\n};\n"],"file":"default.js"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
|
|
6
|
+
var _cloneDeep2 = _interopRequireDefault(require("lodash/fp/cloneDeep"));
|
|
7
|
+
|
|
6
8
|
var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
|
|
7
9
|
|
|
8
10
|
var _generalSettings = _interopRequireDefault(require("../../../../../organism/brand-form/test/fixtures/general-settings"));
|
|
@@ -11,12 +13,83 @@ var _default2 = _interopRequireDefault(require("./default"));
|
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
|
-
const
|
|
15
|
-
props
|
|
16
|
-
} = _default2.default;
|
|
16
|
+
const props = (0, _cloneDeep2.default)(_default2.default.props);
|
|
17
17
|
const {
|
|
18
18
|
groups
|
|
19
19
|
} = _generalSettings.default.props;
|
|
20
|
+
props.items[0].selected = false;
|
|
21
|
+
props.items[1].selected = true;
|
|
22
|
+
props.items[1].tabs = [{
|
|
23
|
+
title: 'My Platform',
|
|
24
|
+
href: '/brands/7steps/admin/my-platform/general-settings',
|
|
25
|
+
name: 'brand_tab_admin_my_platform',
|
|
26
|
+
selected: true,
|
|
27
|
+
type: 'simpleTab',
|
|
28
|
+
subTabs: [{
|
|
29
|
+
title: 'General Settings',
|
|
30
|
+
href: '/brands/7steps/admin/my-platform/general-settings',
|
|
31
|
+
name: 'general-settings',
|
|
32
|
+
permissions: ['general-settings'],
|
|
33
|
+
selected: true,
|
|
34
|
+
type: 'simpleTab'
|
|
35
|
+
}, {
|
|
36
|
+
title: 'SSO',
|
|
37
|
+
href: '/brands/7steps/admin/my-platform/sso',
|
|
38
|
+
name: 'sso',
|
|
39
|
+
permissions: ['sso'],
|
|
40
|
+
selected: false,
|
|
41
|
+
type: 'simpleTab'
|
|
42
|
+
}, {
|
|
43
|
+
title: 'Danger Zone',
|
|
44
|
+
href: '/brands/7steps/admin/my-platform/danger-zone',
|
|
45
|
+
name: 'danger-zone',
|
|
46
|
+
permissions: ['danger-zone'],
|
|
47
|
+
selected: false,
|
|
48
|
+
type: 'simpleTab'
|
|
49
|
+
}]
|
|
50
|
+
}, {
|
|
51
|
+
title: 'User',
|
|
52
|
+
href: '/brands/7steps/admin/user/manage',
|
|
53
|
+
name: 'brand_tab_admin_user',
|
|
54
|
+
selected: false,
|
|
55
|
+
type: 'simpleTab',
|
|
56
|
+
subTabs: [{
|
|
57
|
+
title: 'Manage Users',
|
|
58
|
+
href: '/brands/7steps/admin/user/manage',
|
|
59
|
+
name: 'manage',
|
|
60
|
+
permissions: ['list-users'],
|
|
61
|
+
selected: false,
|
|
62
|
+
type: 'simpleTab'
|
|
63
|
+
}, {
|
|
64
|
+
title: 'Upload Users',
|
|
65
|
+
href: '/brands/7steps/admin/user/upload',
|
|
66
|
+
name: 'upload',
|
|
67
|
+
permissions: ['upload-users'],
|
|
68
|
+
selected: false,
|
|
69
|
+
type: 'simpleTab'
|
|
70
|
+
}]
|
|
71
|
+
}, {
|
|
72
|
+
title: 'Integration',
|
|
73
|
+
href: '/brands/7steps/admin/integration/lms',
|
|
74
|
+
name: 'brand_tab_admin_integration',
|
|
75
|
+
selected: false,
|
|
76
|
+
type: 'simpleTab',
|
|
77
|
+
subTabs: [{
|
|
78
|
+
title: 'LMS',
|
|
79
|
+
href: '/brands/7steps/admin/integration/lms',
|
|
80
|
+
name: 'lms',
|
|
81
|
+
permissions: ['lms'],
|
|
82
|
+
selected: false,
|
|
83
|
+
type: 'simpleTab'
|
|
84
|
+
}, {
|
|
85
|
+
title: 'Teams',
|
|
86
|
+
href: '/brands/7steps/admin/integration/teams',
|
|
87
|
+
name: 'teams',
|
|
88
|
+
permissions: ['teams'],
|
|
89
|
+
selected: false,
|
|
90
|
+
type: 'simpleTab'
|
|
91
|
+
}]
|
|
92
|
+
}];
|
|
20
93
|
var _default = {
|
|
21
94
|
props: (0, _defaultsDeep2.default)(props, {
|
|
22
95
|
content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/general-settings.js"],"names":["props","Default","groups","GeneralSettings","
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/general-settings.js"],"names":["props","Default","groups","GeneralSettings","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;;;;;AACA;;AACA;;;;AAEA,MAAMA,KAAK,GAAG,yBAAUC,kBAAQD,KAAlB,CAAd;AACA,MAAM;AAACE,EAAAA;AAAD,IAAWC,yBAAgBH,KAAjC;AAEAA,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,mDAFR;AAGEC,EAAAA,IAAI,EAAE,6BAHR;AAIEJ,EAAAA,QAAQ,EAAE,IAJZ;AAKEK,EAAAA,IAAI,EAAE,WALR;AAMEC,EAAAA,OAAO,EAAE,CACP;AACEJ,IAAAA,KAAK,EAAE,kBADT;AAEEC,IAAAA,IAAI,EAAE,mDAFR;AAGEC,IAAAA,IAAI,EAAE,kBAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,kBAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,IALZ;AAMEK,I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,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE,WALR;AAMEC,EAAAA,OAAO,EAAE,CACP;AACEJ,IAAAA,KAAK,EAAE,KADT;AAEEC,IAAAA,IAAI,EAAE,sCAFR;AAGEC,IAAAA,IAAI,EAAE,KAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,KAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GADO,EASP;AACEH,IAAAA,KAAK,EAAE,OADT;AAEEC,IAAAA,IAAI,EAAE,wCAFR;AAGEC,IAAAA,IAAI,EAAE,OAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,OAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GATO;AANX,CA3DoB,CAAtB;eAsFe;AACbV,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBa,IAAAA,OAAO,EAAE;AACPH,MAAAA,IAAI,EAAE,MADC;AAEPR,MAAAA;AAFO;AADgB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport GeneralSettings from '../../../../../organism/brand-form/test/fixtures/general-settings';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst {groups} = GeneralSettings.props;\n\nprops.items[0].selected = false;\nprops.items[1].selected = true;\nprops.items[1].tabs = [\n {\n title: 'My Platform',\n href: '/brands/7steps/admin/my-platform/general-settings',\n name: 'brand_tab_admin_my_platform',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'General Settings',\n href: '/brands/7steps/admin/my-platform/general-settings',\n name: 'general-settings',\n permissions: ['general-settings'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'SSO',\n href: '/brands/7steps/admin/my-platform/sso',\n name: 'sso',\n permissions: ['sso'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Danger Zone',\n href: '/brands/7steps/admin/my-platform/danger-zone',\n name: 'danger-zone',\n permissions: ['danger-zone'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n },\n {\n title: 'User',\n href: '/brands/7steps/admin/user/manage',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Manage Users',\n href: '/brands/7steps/admin/user/manage',\n name: 'manage',\n permissions: ['list-users'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Upload Users',\n href: '/brands/7steps/admin/user/upload',\n name: 'upload',\n permissions: ['upload-users'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n },\n {\n title: 'Integration',\n href: '/brands/7steps/admin/integration/lms',\n name: 'brand_tab_admin_integration',\n selected: false,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'LMS',\n href: '/brands/7steps/admin/integration/lms',\n name: 'lms',\n permissions: ['lms'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Teams',\n href: '/brands/7steps/admin/integration/teams',\n name: 'teams',\n permissions: ['teams'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n type: 'form',\n groups\n }\n })\n};\n"],"file":"general-settings.js"}
|
|
@@ -5,13 +5,13 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _default2 = _interopRequireDefault(require("./default"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
12
|
const {
|
|
13
13
|
props
|
|
14
|
-
} =
|
|
14
|
+
} = _default2.default;
|
|
15
15
|
var _default = {
|
|
16
16
|
props: (0, _defaultsDeep2.default)(props, {
|
|
17
17
|
content: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/loader.js"],"names":["props","Users","content"],"mappings":";;;;;;;AACA;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/loader.js"],"names":["props","Users","content"],"mappings":";;;;;;;AACA;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBE,IAAAA,OAAO,EAAE;AADgB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport Users from './default';\n\nconst {props} = Users;\n\nexport default {\n props: defaultsDeep(props, {\n content: null\n })\n};\n"],"file":"loader.js"}
|
|
@@ -7,7 +7,7 @@ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
|
|
|
7
7
|
|
|
8
8
|
var _manageusersEdit = _interopRequireDefault(require("../../../../../organism/brand-form/test/fixtures/manageusers-edit"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _default2 = _interopRequireDefault(require("./default"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
15
15
|
|
|
16
16
|
const {
|
|
17
17
|
props
|
|
18
|
-
} =
|
|
18
|
+
} = _default2.default;
|
|
19
19
|
const content = _manageusersEdit.default.props;
|
|
20
20
|
var _default = {
|
|
21
21
|
props: (0, _defaultsDeep2.default)(props, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/manageusers-edit.js"],"names":["props","Users","content","UserEdit","type"],"mappings":";;;;;;;AACA;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/manageusers-edit.js"],"names":["props","Users","content","UserEdit","type"],"mappings":";;;;;;;AACA;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;AACA,MAAMC,OAAO,GAAGC,yBAASH,KAAzB;eAEe;AACbA,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBE,IAAAA,OAAO,wBACFA,OADE;AAELE,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport UserEdit from '../../../../../organism/brand-form/test/fixtures/manageusers-edit';\nimport Users from './default';\n\nconst {props} = Users;\nconst content = UserEdit.props;\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...content,\n type: 'form'\n }\n })\n};\n"],"file":"manageusers-edit.js"}
|
|
@@ -7,13 +7,13 @@ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
|
|
|
7
7
|
|
|
8
8
|
var _default2 = _interopRequireDefault(require("../../../../../organism/brand-table/test/fixtures/default"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _default3 = _interopRequireDefault(require("./default"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
const {
|
|
15
15
|
props
|
|
16
|
-
} =
|
|
16
|
+
} = _default3.default;
|
|
17
17
|
const content = _default2.default.props;
|
|
18
18
|
var _default = {
|
|
19
19
|
props: (0, _defaultsDeep2.default)(props, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/manageusers-list.js"],"names":["props","Users","content","BrandTable","type"],"mappings":";;;;;;;AACA;;AACA;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/manageusers-list.js"],"names":["props","Users","content","BrandTable","type"],"mappings":";;;;;;;AACA;;AACA;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;AACA,MAAMC,OAAO,GAAGC,kBAAWH,KAA3B;eAEe;AACbA,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBE,IAAAA,OAAO,EAAE,4BAAaA,OAAb,EAAsB;AAC7BE,MAAAA,IAAI,EAAE;AADuB,KAAtB;AADgB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport BrandTable from '../../../../../organism/brand-table/test/fixtures/default';\nimport Users from './default';\n\nconst {props} = Users;\nconst content = BrandTable.props;\n\nexport default {\n props: defaultsDeep(props, {\n content: defaultsDeep(content, {\n type: 'list'\n })\n })\n};\n"],"file":"manageusers-list.js"}
|
|
@@ -7,7 +7,7 @@ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
|
|
|
7
7
|
|
|
8
8
|
var _default2 = _interopRequireDefault(require("../../../../../organism/brand-upload/test/fixtures/default"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _default3 = _interopRequireDefault(require("./default"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
15
15
|
|
|
16
16
|
const {
|
|
17
17
|
props
|
|
18
|
-
} =
|
|
18
|
+
} = _default3.default;
|
|
19
19
|
var _default = {
|
|
20
20
|
props: (0, _defaultsDeep2.default)(props, {
|
|
21
21
|
content: _extends(_extends({}, _default2.default.props), {}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/uploadusers.js"],"names":["props","Users","content","BrandUpload","type"],"mappings":";;;;;;;AACA;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/uploadusers.js"],"names":["props","Users","content","BrandUpload","type"],"mappings":";;;;;;;AACA;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBE,IAAAA,OAAO,wBACFC,kBAAYH,KADV;AAELI,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport BrandUpload from '../../../../../organism/brand-upload/test/fixtures/default';\nimport Users from './default';\n\nconst {props} = Users;\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...BrandUpload.props,\n type: 'upload'\n }\n })\n};\n"],"file":"uploadusers.js"}
|
|
@@ -50,8 +50,6 @@ var _manageusersEdit = _interopRequireDefault(require("./fixtures/manageusers-ed
|
|
|
50
50
|
|
|
51
51
|
var _manageusersList = _interopRequireDefault(require("./fixtures/manageusers-list"));
|
|
52
52
|
|
|
53
|
-
var _manageusers = _interopRequireDefault(require("./fixtures/manageusers"));
|
|
54
|
-
|
|
55
53
|
var _quickAccess = _interopRequireDefault(require("./fixtures/quick-access"));
|
|
56
54
|
|
|
57
55
|
var _ssoActivate = _interopRequireDefault(require("./fixtures/sso-activate"));
|
|
@@ -93,7 +91,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
93
91
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', _renderComponent.default, _.default, _lookandfeel.default);
|
|
94
92
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', _renderComponent.default, _.default, _manageusersEdit.default);
|
|
95
93
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', _renderComponent.default, _.default, _manageusersList.default);
|
|
96
|
-
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', _renderComponent.default, _.default, _manageusers.default);
|
|
97
94
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', _renderComponent.default, _.default, _quickAccess.default);
|
|
98
95
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', _renderComponent.default, _.default, _ssoActivate.default);
|
|
99
96
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', _renderComponent.default, _.default, _sso.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAA8BC,SAAtC,EAAiD,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DL,I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,8FAAL,EAAqGhB,wBAArG,EAA2HN,SAA3H,EAA0JuB,2BAA1J;AACA,kBAAK,8FAAL,EAAqGjB,wBAArG,EAA2HN,SAA3H,EAA0JwB,2BAA1J;AACA,kBAAK,uFAAL,EAA8FlB,wBAA9F,EAAoHN,SAApH,EAAmJyB,oBAAnJ;AACA,kBAAK,2FAAL,EAAkGnB,wBAAlG,EAAwHN,SAAxH,EAAuJ0B,wBAAvJ;AACA,kBAAK,2FAAL,EAAkGpB,wBAAlG,EAAwHN,SAAxH,EAAuJ2B,wBAAvJ;AACA,kBAAK,uFAAL,EAA8FrB,wBAA9F,EAAoHN,SAApH,EAAmJ4B,oBAAnJ;AACA,kBAAK,uFAAL,EAA8FtB,wBAA9F,EAAoHN,SAApH,EAAmJ6B,oBAAnJ;AACA,kBAAK,uFAAL,EAA8FvB,wBAA9F,EAAoHN,SAApH,EAAmJ8B,oBAAnJ;AACA,kBAAK,+EAAL,EAAsFxB,wBAAtF,EAA4GN,SAA5G,EAA2I+B,YAA3I;AACA,kBAAK,8FAAL,EAAqGzB,wBAArG,EAA2HN,SAA3H,EAA0JgC,2BAA1J;AACA,kBAAK,iGAAL,EAAwG1B,wBAAxG,EAA8HN,SAA9H,EAA6JiC,8BAA7J;AACA,kBAAK,uFAAL,EAA8F3B,wBAA9F,EAAoHN,SAApH,EAAmJkC,oBAAnJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAA8BC,SAAtC,EAAiD,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4EAA2EF,GAAI,mEAAxG;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,qFAAL,EAA4FG,wBAA5F,EAAkHN,SAAlH,EAAiJO,kBAAjJ;AACA,kBAAK,sFAAL,EAA6FD,wBAA7F,EAAmHN,SAAnH,EAAkJQ,mBAAlJ;AACA,kBAAK,uFAAL,EAA8FF,wBAA9F,EAAoHN,SAApH,EAAmJS,oBAAnJ;AACA,kBAAK,kFAAL,EAAyFH,wBAAzF,EAA+GN,SAA/G,EAA8IU,eAA9I;AACA,kBAAK,qFAAL,EAA4FJ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oBAAnJ;AACA,kBAAK,uFAAL,EAA8FtB,wBAA9F,EAAoHN,SAApH,EAAmJ6B,oBAAnJ;AACA,kBAAK,+EAAL,EAAsFvB,wBAAtF,EAA4GN,SAA5G,EAA2I8B,YAA3I;AACA,kBAAK,8FAAL,EAAqGxB,wBAArG,EAA2HN,SAA3H,EAA0J+B,2BAA1J;AACA,kBAAK,iGAAL,EAAwGzB,wBAAxG,EAA8HN,SAA9H,EAA6JgC,8BAA7J;AACA,kBAAK,uFAAL,EAA8F1B,wBAA9F,EAAoHN,SAApH,EAAmJiC,oBAAnJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "10.1.12
|
|
3
|
+
"version": "10.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"webpack-hot-middleware": "^2.25.0"
|
|
119
119
|
},
|
|
120
120
|
"author": "CoorpAcademy",
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "55c98b6c8ffe87a3e23e01b515e708b412791de4"
|
|
122
122
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import test from 'ava';
|
|
2
|
-
import forEach from 'lodash/forEach';
|
|
3
|
-
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
-
import MoleculeSearch from '..';
|
|
5
|
-
import fixtureDefault from './fixtures/default';
|
|
6
|
-
import fixtureWithValue from './fixtures/with-value';
|
|
7
|
-
test('Molecule › MoleculeSearch > should have valid propTypes', t => {
|
|
8
|
-
t.pass();
|
|
9
|
-
forEach(MoleculeSearch.propTypes, (value, key) => {
|
|
10
|
-
t.not(value, undefined, `PropType for "Molecule.MoleculeSearch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
test('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);
|
|
14
|
-
test('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);
|
|
15
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/search/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSearch","fixtureDefault","fixtureWithValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,cAAP,MAA2B,IAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAL,IAAI,CAAC,yDAAD,EAA4DM,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,cAAc,CAACK,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,cAAnF,EAAmGC,cAAnG,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,cAArF,EAAqGE,gBAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSearch from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('Molecule › MoleculeSearch > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSearch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSearch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);\ntest('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);\n"],"file":"fixtures.js"}
|