This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Watch("relationships") | |
private watchRelationships(relations) { | |
if (!isEmpty(relations)) { | |
// WHERE THE NODES ARE CREATED | |
this.d3NodesData = relations.map(val => { | |
return { | |
name: val.userName, | |
id: val.userId | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
// Styles that Wrapper will apply to it's children | |
// This can be exported and used in different files | |
export const VendorCardWrapper = styled.div` | |
display: flex; | |
.card-text { | |
color: white; | |
width: 50%; | |
padding: 60px 35px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
list-style: none; | |
padding-left: 0; | |
li { | |
position: relative; | |
padding-left: $size-9; | |
&::before { | |
content: ""; | |
width: 36px; | |
height: 36px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isUrlAbsolute(url) { | |
if (url.indexOf("//") === 0) { | |
return true; | |
} // URL is protocol-relative (= absolute) | |
if (url.indexOf("://") === -1) { | |
return false; | |
} // URL has no protocol (= relative) | |
if (url.indexOf(".") === -1) { | |
return false; | |
} // URL does not contain a dot, i.e. no TLD (= relative, possibly REST) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate breadcrumb based on the path given | |
* Taken/adapted from here https://github.com/intesso/url-breadcrumb/blob/master/index.js | |
*/ | |
const generateCrumbsFromPath = (url, opts) => { | |
// options | |
opts = opts || {}; | |
opts.home = opts.home || "Home"; | |
opts.endingSlash = opts.endingSlash || false; | |
opts.beautify = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
value: 'Dateline Standard Time', | |
abbr: 'DST', | |
offset: -12, | |
isdst: false, | |
text: '(UTC-12:00) International Date Line West', | |
utc: ['Etc/GMT+12'], | |
}, | |
{ |