This file contains hidden or 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
[ | |
{ | |
"owner": "Carlos Vives", | |
"address": { | |
"line1": "Flat 5", | |
"line4": "7 Westbourne Terrace", | |
"postCode": "W2 3UL", | |
"city": "London", | |
"country": "U.K." | |
}, |
This file contains hidden or 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
const get = require('lodash/get'); | |
const isNil = require('lodash/isNil'); | |
const omitBy = require('lodash/omitBy'); | |
const identity = require('lodash/identity'); | |
const { createImport } = require('../urls'); | |
const { listTableColumns } = require('./tableColumn'); | |
const NO_MORE_INFORMATION = 'No more information available.'; | |
const RESULT_TYPE_FAILED_INSERTING = 'FailedInserting'; |
This file contains hidden or 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
javascript:(async function openDialog() { let issueTypesMap = { 'Sub-bug': 'Bug', 'Sub-task': 'Story', 'Task': 'Story' }; let issueKey; if (/^\/browse\//.test(location.pathname)) { issueKey = (location.pathname.match(/^\/browse\/([^&\/]+)/) || [])[1]; } else { issueKey = (window.location.search.match(/selectedIssue=([^&]+)/) || [])[1]; } if (!issueKey) { issueKey = prompt('No Issue Key detected on the page. Enter the Issue Key here'); } const request = await fetch('https://communicatorcorp.atlassian.net/rest/api/2/issue/' + issueKey, { credentials: 'include' }); const json = await request.json(); const issueTypeName = json.fields.issuetype.name; const issueType = issueTypesMap[issueTypeName] || issueTypeName; const branchNameSlug = json.fields.summary.toString().toLowerCase() .replace(/\s+/g, '-') /* Replace spaces with - */ .replace(/[^\w\-]+/g, '') /* Remove all non-word chars */ .replace(/\-\-+/g, '-') /* Replace multiple - with single - */ .replace(/^-+/, '') /* Trim - from start of text */ .replace(/-+$/ |
This file contains hidden or 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
{ | |
"ClientTableId": 0, | |
"TriggeredDispatches": { | |
"TriggeredDispatch[]": [ | |
{ | |
"DispatchId": 0, | |
"TriggeredDispatchMethod": "OnlySendToNewSubscribers" | |
} | |
] | |
}, |
This file contains hidden or 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 PropTypes from 'prop-types'; | |
/** | |
* Generates a map of query parameters and their associated values when given | |
* a `queryProps` map and some `props` values. | |
* | |
* @param queryProps {Object} Map of prop names to associated queryProp definitions | |
* @param props {Object} Current props to generate values from | |
* @returns {Object} Query parameters map | |
*/ |
This file contains hidden or 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 { USER } from 'globals'; | |
import PropTypes from 'prop-types'; | |
import uniqueId from 'lodash/uniqueId'; | |
import compose from 'recompact/compose'; | |
import withContext from 'recompact/withContext'; | |
import withReducer from 'recompact/withReducer'; | |
import injectCss from 'react/common/hocs/injectCss'; | |
import componentsCoreCssUrl from '@communicator/components.core/dist/communicator.components.core.css'; |
This file contains hidden or 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
{"lastUpload":"2016-11-30T10:03:05.626Z"} |
This file contains hidden or 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
let isSelected = (values, selectedValue) => { | |
if (!values || values.length < 1) { | |
return false; | |
} | |
for (let { value } of values) { | |
if (selectedValue === value) { | |
return true; | |
} | |
} |
This file contains hidden or 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
romanNumeral(5) // "V" | |
romanNumeral(9) // "IX" | |
romanNumeral(46) // "XL" | |
romanNumeral(2015) // "MMXV" |
This file contains hidden or 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
.tether.tether-transition { | |
transition: -webkit-transform 100ms ease-in-out; | |
transition: transform 100ms ease-in-out; | |
} |
NewerOlder