code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/js/webcomponents/bisweb_grapherelement.js b/js/webcomponents/bisweb_grapherelement.js @@ -205,7 +205,9 @@ class GrapherModule extends HTMLElement { let bbar = bis_webutil.createbuttonbar({ 'css' : 'width: 80%;'}); //settings button should be attached next to close button - let settingsButton = $(`<button type='button' class='bistoggle' style='float:right; -webkit-user-drag: none;'></button>'`); + //TODO: Revisit settings menu? + // -Zach + let settingsButton = $(`<button type='button' class='bistoggle' style='float:right; -webkit-user-drag: none; visibility: hidden'></button>'`); let dropdownButton = $(` <div class='btn-group dropleft' style='float: right;'> <button type='button dropdown-toggle' data-toggle='dropdown' class='bistoggle task-selector' style='float: right; visibility: hidden; -webkit-user-drag: none;'> @@ -236,6 +238,10 @@ class GrapherModule extends HTMLElement { position: "right", }).click(() => { this.replotGraph(false).catch(() => { }); }); + + console.log('settings', settings); + //Add button to look at a single frame of data if data is a timecourse + if (settings.chartType === 'line') { let singleFrameButton = bis_webutil.createbutton({ name: 'Plot Single Frame', type: "default", @@ -252,8 +258,11 @@ class GrapherModule extends HTMLElement { this.createFrameSelectorModal(cb); }); - bbar.append(timecourseButton); + bbar.append(singleFrameButton); + } + + bbar.append(timecourseButton); //check to see if current data exists and isn't an empty object if (this.currentdata && Object.entries(this.currentdata).length !== 0) { @@ -296,8 +305,6 @@ class GrapherModule extends HTMLElement { bbar.append(exportButton); } - //TODO: this only loads the first time I open the frame? not sure why. - //console.log('get image', this.viewer.getimage()); if (this.viewer.getimage() || (this.viewer2 && this.viewer2.getimage())) { let screenshotButton = bis_webutil.createbutton({ name: 'Save Snapshot', @@ -309,7 +316,9 @@ class GrapherModule extends HTMLElement { position: "left", }).click(() => { this.saveTauchartsSnapshot(); }); - bbar.append(screenshotButton); + //TODO: Removed until I work out saving a snapshot with Taucharts + // -Zach + //bbar.append(screenshotButton); } bbar.tooltip(); @@ -327,6 +336,8 @@ class GrapherModule extends HTMLElement { */ parsePaintedAreaAverageTimeSeries(orthoElement = null, imgdata = null) { + //TODO: Work out the issue with chartType not being specified in these settings but the correct chart being created anyway. + // -Zach let self = this; if (!orthoElement && !imgdata) return; @@ -563,7 +574,7 @@ class GrapherModule extends HTMLElement { if (settings === null) { settings = this.settings; } else { this.settings = settings; } - this.renderGraphFrame(settings.chartSettings); + this.renderGraphFrame(settings); let frame = document.getElementById(this.graphcanvasid); //hide dropdown menu if it shouldn't be used, otherwise fill it with the names of the charts @@ -646,7 +657,7 @@ class GrapherModule extends HTMLElement { 'align': 'right' }), Taucharts.api.plugins.get('export-to')({ - 'visible' : true, + 'visible' : false, 'paddingTop' : '20px' })], data: data,
2
diff --git a/codegens/ocaml-cohttp/lib/ocaml.js b/codegens/ocaml-cohttp/lib/ocaml.js @@ -77,7 +77,6 @@ function parseFormData (body, trim, indent) { if (!data.disabled || data.disabled === false) { const key = sanitize(data.key, 'formdata-key', trim); - /* istanbul ignore next */ if (data.type === 'file') { const filename = data.src; accumalator.push(`${indent}[| ("name", "${key}"); ("fileName", "${filename}") |]`); @@ -88,7 +87,6 @@ function parseFormData (body, trim, indent) { } } return accumalator; - // eslint-disable-next-line no-useless-escape }, []).join(';\n') + '\n|];;', bodySnippet = ''; @@ -117,7 +115,6 @@ function parseFormData (body, trim, indent) { return bodySnippet; } -/* istanbul ignore next */ /** * Parses file body from the Request *
9
diff --git a/ghost/admin/app/styles/components/power-calendar.css b/ghost/admin/app/styles/components/power-calendar.css @@ -241,3 +241,12 @@ svg.gh-date-picker-cal-icon { top: 9px; font-size: 1.3rem; } + +.gh-date-picker-cal-icon path, +.gh-date-picker-cal-icon rect { + fill: none; + stroke: var(--midgrey); + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 2px +} \ No newline at end of file
1
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js /* eslint-disable new-cap */ import Exception from '../exception'; -import {isArray, indexOf} from '../utils'; +import {isArray, indexOf, extend} from '../utils'; import AST from './ast'; const slice = [].slice; @@ -488,7 +488,7 @@ export function compile(input, options = {}, env) { throw new Exception('You must pass a string or Handlebars AST to Handlebars.compile. You passed ' + input); } - options = Object.assign({}, options); + options = extend({}, options); if (!('data' in options)) { options.data = true; }
14
diff --git a/avatars/microphone-worklet.js b/avatars/microphone-worklet.js @@ -47,11 +47,13 @@ class VolumeProcessor extends AudioWorkletProcessor { { const i = 0; const samples = channels[i]; + if (samples) { for (let j = 0; j < samples.length; j++) { sampleSum += Math.abs(samples[j]); } numSamples += samples.length; } + } if (++tick >= numTicks) { const value = sampleSum / numSamples;
0
diff --git a/custom-domains/set-up-azure-cdn.md b/custom-domains/set-up-azure-cdn.md +--- +toc: true +name: Configure Azure CDN Profiles for Use as Reverse Proxy +description: How to set up Azure CDN Profiles for use as the custom domain proxy for Auth0 +--- +# Configure Azure CDN Profiles for Use as Reverse Proxy + +In this article, we will show you how to configure Azure CDN Profiles for use as the reverse proxy with custom domain names for your Auth0 tenant. ## Configure Azure
0
diff --git a/packages/netlify-cms-core/src/reducers/collections.js b/packages/netlify-cms-core/src/reducers/collections.js @@ -39,7 +39,7 @@ const selectors = { return `${ collection.get('folder').replace(/\/$/, '') }/${ slug }.${ this.entryExtension(collection) }`; }, entrySlug(collection, path) { - return path.split('/').pop().replace(new RegExp(`\.${ escapeRegExp(this.entryExtension(collection)) }$`), ''); + return path.split('/').pop().replace(new RegExp(`\\.${ escapeRegExp(this.entryExtension(collection)) }$`), ''); }, listMethod() { return 'entriesByFolder';
1
diff --git a/core/connections/connection.js b/core/connections/connection.js @@ -416,26 +416,23 @@ Blockly.Connection.prototype.moveBy = function(dx, dy) { Blockly.Connection.prototype.highlight = function() { var steps; if (this.type === Blockly.INPUT_VALUE || this.type === Blockly.OUTPUT_VALUE) { - var tabWidth = Blockly.RTL ? -Blockly.BlockSvg.TAB_WIDTH : - Blockly.BlockSvg.TAB_WIDTH; - steps = 'm 0,0 v 5 c 0,10 ' + -tabWidth + ',-8 ' + -tabWidth + ',7.5 s ' + - tabWidth + ',-2.5 ' + tabWidth + ',7.5 v 5'; + steps = 'm 0,0 '+ Blockly.BlockSvg.TAB_PATH_DOWN + ' v 5'; } else { var moveWidth = 5 + Blockly.BlockSvg.NOTCH_PATH_WIDTH; var notchPaths = this.getNotchPaths(); - if (Blockly.RTL) { - steps = 'm ' + moveWidth + ',0 h -5 ' + notchPaths.right + ' h -5'; - } else { steps = 'm -' + moveWidth + ',0 h 5 ' + notchPaths.left + ' h 5'; } - } var xy = this.sourceBlock_.getRelativeToSurfaceXY(); var x = this.x_ - xy.x; var y = this.y_ - xy.y; + var transform = 'translate(' + x + ', ' + y + ')'; + if (Blockly.RTL) { + transform += ' scale(-1, 1)'; + } Blockly.Connection.highlightedPath_ = Blockly.createSvgElement('path', {'class': 'blocklyHighlightedConnectionPath', 'd': steps, - transform: 'translate(' + x + ', ' + y + ')'}, + transform: transform}, this.sourceBlock_.getSvgRoot()); };
4
diff --git a/aa_composer.js b/aa_composer.js @@ -1673,6 +1673,15 @@ function checkBalances() { [sql_base, sql_assets_balances_to_outputs, sql_assets_outputs_to_balances], function (sql, cb) { conn.query(sql, function (rows) { + // ignore discrepancies that result from limited precision of js numbers + rows = rows.filter(row => { + if (row.balance <= Number.MAX_SAFE_INTEGER || row.calculated_balance <= Number.MAX_SAFE_INTEGER) + return true; + var diff = Math.abs(row.balance - row.calculated_balance); + if (diff > row.balance * 1e-5) // large relative difference cannot result from precision loss + return true; + return false; + }); if (rows.length > 0) throw Error("checkBalances failed: sql:\n" + sql + "\n\nrows:\n" + JSON.stringify(rows, null, '\t')); cb();
8
diff --git a/ui/src/components/EntityTable/EntityTableEditor.jsx b/ui/src/components/EntityTable/EntityTableEditor.jsx @@ -12,6 +12,10 @@ class EntityTableEditor extends Component { render() { const { entities, entityManager, isPending, sort, sortColumn, schema, selection, updateSelection } = this.props; + if (!schema) { + return null; + } + const trimmedSort = sort?.field ? { field: sort.field.replace('properties.', ''), @@ -38,7 +42,7 @@ const mapStateToProps = (state, ownProps) => { const { location } = ownProps; const hashQuery = queryString.parse(location.hash); const model = selectModel(state); - const schema = model.getSchema(hashQuery.type); + const schema = hashQuery.type ? model.getSchema(hashQuery.type) : null; return { schema }; };
9
diff --git a/lib/build/tasks.js b/lib/build/tasks.js @@ -30,9 +30,9 @@ const v6PublicPath = path.join(paths.public, 'v6') function generateAssets () { clean() sassExtensions() - generateSass(appSassPath, appCssPath) - generateSass(docsSassPath, appCssPath) - generateSass(v6SassPath, v6CssPath) + generateCss(appSassPath, appCssPath) + generateCss(docsSassPath, appCssPath) + generateCss(v6SassPath, v6CssPath) copyAssets(paths.assets, paths.public) copyAssets(paths.docsAssets, paths.public) copyAssets(paths.v6Assets, v6PublicPath) @@ -64,7 +64,7 @@ function sassExtensions () { fs.writeFileSync(path.join(tempSassPath, '_extensions.scss'), fileContents) } -function generateSass (sassPath, cssPath) { +function generateCss (sassPath, cssPath) { if (!fs.existsSync(sassPath)) return console.log('compiling CSS...') fs.mkdirSync(cssPath, { recursive: true }) @@ -106,7 +106,7 @@ function watchSass (sassPath, cssPath) { }).on('all', (event, path) => { console.log(`watch ${sassPath}`) console.log(event, path) - generateSass(sassPath, cssPath) + generateCss(sassPath, cssPath) }) }
10
diff --git a/src/screens/EventDetailsScreen/component.js b/src/screens/EventDetailsScreen/component.js @@ -170,8 +170,8 @@ class EventDetailsScreen extends PureComponent<Props> { )} {(event.fields.email || event.fields.phone) && ( <EventContact - email={event.fields.email && event.fields.email} - phone={event.fields.phone && event.fields.phone} + email={event.fields.email} + phone={event.fields.phone} /> )} </LayoutColumn>
2
diff --git a/articles/clients/how-to-rotate-client-secret.md b/articles/clients/how-to-rotate-client-secret.md @@ -23,6 +23,10 @@ Scroll to the bottom of the Settings page, and click **Save Changes**. You can rotate your client's secret by making a `POST` call to the [Rotate a Client Secret endpoint](/api/management/v2#!/Clients/post_rotate_secret) of the Management API. +::: note +To make calls to the Management API, you'll need to [obtain and provide a valid access token](/api/management/v2/tokens). +::: + ```har { "method": "POST",
0
diff --git a/content/getting-started/modifying-access.md b/content/getting-started/modifying-access.md --- description: -title: Modifying repository access settings +title: Repository settings weight: 8 aliases: --- -When you have moved your repository or need to update the username/password or private key used to access it, you can change the access details in **App settings > Repository settings > Repository access settings**. **Repository access settings** will be present only if apps are added via URL using HTTP/HTTPS or SSH keys. You can also generate a new private key in the settings section. Once you have changed the relevant settings, click **Update access settings** and then Codemagic will verify that it has access to the repository using the updated details before saving the settings. +Navigate to **App settings > Repository settings** to update repository access settings, change the app name or icon in Codemagic, archive or delete the app. + +Note that if the app is part of a team, only team owners can update repository access settings or delete the app. + +## Updating access to the repository + +You may need to update repository access settings if the repository has been renamed or relocated, or when you need to update the username and password or the private key used to access it. + +If the repository is added **via GitHub, Bitbucket or GitLab integration**, click the **Update repository URL** button. Codemagic will attempt to automatically update the URL based on the repository ID. + +If the repository is added **from a URL**, click **Change settings** under **Repository access settings**. This will allow you to modify the repository URL, change username or password or update the SSH key. You can also generate a new private key in the settings section. Once you have changed the relevant settings, click **Update access settings**. Codemagic will verify that it has access to the repository using the updated details before saving the settings. +
3
diff --git a/src/traces/volume/convert.js b/src/traces/volume/convert.js @@ -54,7 +54,7 @@ proto.handlePick = function(selection) { this.data.value[selectIndex] ]; - var text = this.data.text; + var text = this.data.hovertext || this.data.text; if(Array.isArray(text) && text[selectIndex] !== undefined) { selection.textLabel = text[selectIndex]; } else if(text) {
0
diff --git a/lib/recurly/venmo/strategy/braintree.js b/lib/recurly/venmo/strategy/braintree.js @@ -3,7 +3,7 @@ import after from '../../../util/after'; import { VenmoStrategy } from './index'; import { normalize } from '../../../util/normalize'; -export const BRAINTREE_CLIENT_VERSION = '3.50.0'; +export const BRAINTREE_CLIENT_VERSION = '3.76.0'; const debug = require('debug')('recurly:paypal:strategy:braintree'); @@ -66,7 +66,7 @@ export class BraintreeStrategy extends VenmoStrategy { braintree.client.create({ authorization }, (error, client) => { if (error) return this.fail('venmo-braintree-api-error', { cause: error }); debug('Braintree client created'); - braintree.venmo.create({ client }, (error, venmo) => { + braintree.venmo.create({ client, allowDesktop: true }, (error, venmo) => { if (error) return this.fail('venmo-braintree-api-error', { cause: error }); debug('Venmo client created'); this.venmo = venmo;
3
diff --git a/src/tests/controllers/messageLength.test.ts b/src/tests/controllers/messageLength.test.ts @@ -51,6 +51,7 @@ export async function messageLengthTest(t, node1, node2) { await sleep(1000) const text4 = randomText() await sendMessage(t, node1, node2, text4) + await sleep(1000) //t.true(messageSent.success, 'node1 should send text message to node2') const newMessagesResponse = await getCheckMsgs(
0
diff --git a/source/guides/transaction.rst b/source/guides/transaction.rst @@ -543,7 +543,7 @@ Afterwards, swap mosaics between multiple participants. :align: center :width: 600px - Atomic cross-chain trading between public and private network + Multi-Asset Escrowed Transactions .. _guide-asking-for-mosaics-with-aggregate-bonded-transaction: @@ -920,7 +920,7 @@ Following this guide, you will swap transactions between different blockchain pl :align: center :width: 700px - Asking for mosaics with an aggregate bonded transaction + Atomic cross-chain trading between public and private network .. note:: Mijin and NEM share SDK. The example will work with other blockchain platforms if implements Secret Lock / Secret Proof transactions mechanism.
1
diff --git a/README.md b/README.md [React](https://github.com/facebook/react) to use [Redux](https://github.com/rackt/redux) to store all of its state. [![Beerpay](https://beerpay.io/erikras/redux-form/badge.svg)](https://beerpay.io/erikras/redux-form) +<a href="https://app.codesponsor.io/link/P3WjkUw9LiYdiQBdHrtHZSSL/erikras/redux-form" rel="nofollow" target="_blank"><img src="https://app.codesponsor.io/embed/P3WjkUw9LiYdiQBdHrtHZSSL/erikras/redux-form.svg" style="width: 888px; height: 68px;" alt="Sponsor" /></a> + [<img src="https://raw.githubusercontent.com/erikras/redux-form/master/logo.png" align="right" class="logo" height="151" width="250"/>](http://erikras.github.io/redux-form/) ## Installation @@ -51,5 +53,3 @@ You can play around with `redux-form` in these sandbox versions of the Examples. - [Abstracting Form State with Redux Form at JS Channel - Bengaluru 2016](https://youtu.be/eDTi7lYR1VU) [![Abstracting Form State with Redux Form at JS Channel - Bengaluru 2016](docs/video-thumb.jpg)](https://youtu.be/eDTi7lYR1VU) - -<a href="https://app.codesponsor.io/link/P3WjkUw9LiYdiQBdHrtHZSSL/erikras/redux-form" rel="nofollow" target="_blank"><img src="https://app.codesponsor.io/embed/P3WjkUw9LiYdiQBdHrtHZSSL/erikras/redux-form.svg" style="width: 888px; height: 68px;" alt="Sponsor" /></a> \ No newline at end of file
5
diff --git a/lib/AutomaticPrefetchPlugin.js b/lib/AutomaticPrefetchPlugin.js @@ -29,12 +29,16 @@ class AutomaticPrefetchPlugin { ); let lastModules = null; compiler.hooks.afterCompile.tap("AutomaticPrefetchPlugin", compilation => { - lastModules = Array.from(compilation.modules) - .filter(m => m instanceof NormalModule) - .map((/** @type {NormalModule} */ m) => ({ + lastModules = []; + + for (const m of compilation.modules) { + if (m instanceof NormalModule) { + lastModules.push({ context: m.context, request: m.request - })); + }); + } + } }); compiler.hooks.make.tapAsync( "AutomaticPrefetchPlugin", @@ -49,7 +53,10 @@ class AutomaticPrefetchPlugin { callback ); }, - callback + err => { + lastModules = null; + callback(err); + } ); } );
7
diff --git a/lib/plugins/interactiveCli/initializeService.js b/lib/plugins/interactiveCli/initializeService.js @@ -55,8 +55,7 @@ module.exports = { }, run(serverless) { const workingDir = process.cwd(); - return confirm('No Serverless project detected. Do you want to create a new one?').then( - isConfirmed => { + return confirm('No project detected. Do you want to create a new one?').then(isConfirmed => { if (!isConfirmed) return null; return projectTypeChoice().then(projectType => { if (projectType === 'other') { @@ -91,7 +90,6 @@ module.exports = { }); }); }); - } - ); + }); }, };
7
diff --git a/CHANGES.md b/CHANGES.md - Added `options.fadingEnabled` parameter to `ShadowMap` to control whether shadows fade out when the light source is close to the horizon. [#9565](https://github.com/CesiumGS/cesium/pull/9565) - Added checks for supported 3D Tiles extensions. [#9552](https://github.com/CesiumGS/cesium/issues/9552) +- Added documentation for `KmlTour`, `KmlTourFlyTo`, and `KmlTourWait`. Added documentation and a `kmlTours` getter to `KmlDataSource`. Removed references to `KmlTourSoundCues`. [#8073](https://github.com/CesiumGS/cesium/issues/8073) ##### Fixes :wrench:
3
diff --git a/README.md b/README.md @@ -26,6 +26,8 @@ It provides users with clean structured and label-enriched information set for r - [2.2. Run](#22-run) - [2.2.1. Configuration](#221-configuration) - [2.2.2. Demo: Web Viewer](#222-demo-web-viewer) + - [2.2.2.1. Under Linux/MacOS:](#2221-under-linuxmacos) + - [2.2.2.2. Under Windows:](#2222-under-windows) - [2.2.3. Command Line Usage](#223-command-line-usage) - [2.3. API](#23-api) - [2.4. Test](#24-test) @@ -240,11 +242,27 @@ The tool contains a pipeline of modules that process the document step by step a To start the web viewer demo, simply run: +##### 2.2.2.1. Under Linux/MacOS: + ```sh npm run start:web:vue ``` -Then, open [localhost:8080](http://localhost:8080) with your favorite browser. +##### 2.2.2.2. Under Windows: + +In two different terminals, first: + +```sh +npm run start:api +``` + +then in the other one: + +```sh +cd demo/vue-viewer && npm install && npm run serve +``` + +Open [localhost:8080](http://localhost:8080) with your favorite browser to use the GUI. #### 2.2.3. Command Line Usage
0
diff --git a/articles/metadata/management-api.md b/articles/metadata/management-api.md @@ -121,6 +121,10 @@ The user's profile will now appear as follows: } ``` +::: panel-info Delete Properties/Values +When you send `PATCH` calls where you've set properties/field values to null (for example, `{user_metadata: {color: null}}`), Auth0 **deletes** the property/value from the database. +::: + ### Merging Only properties at the root level are merged into the object. All lower-level properties will be replaced.
0
diff --git a/assets/js/feature-tours/index.js b/assets/js/feature-tours/index.js @@ -71,7 +71,7 @@ const allTrafficWidget = { placement: 'top', }, { - target: '.mdc-button.googlesitekit-header__date-range-selector-menu', + target: '.googlesitekit-header__date-range-selector-menu', title: __( 'Check how your traffic changed since you last looked', 'google-site-kit' ), content: __( 'Select a time frame to see the comparison with the previous time period', 'google-site-kit' ), },
2
diff --git a/src/plots/gl3d/layout/tick_marks.js b/src/plots/gl3d/layout/tick_marks.js @@ -48,7 +48,6 @@ function computeTickMarks(scene) { glRange[i].pixelsPerDataUnit / scene.dataScale[i]; if(Math.abs(axes._length) === Infinity || - Math.abs(axes._length) === -Infinity || isNaN(axes._length)) { ticks[i] = []; } else {
2
diff --git a/app/ui/components/codemirror/code-editor.js b/app/ui/components/codemirror/code-editor.js @@ -48,6 +48,9 @@ const BASE_CODEMIRROR_OPTIONS = { 'Ctrl-Q': function (cm) { cm.foldCode(cm.getCursor()); }, + [isMac() ? 'Cmd-Enter' : 'Ctrl-Enter']: function (cm) { + // HACK: So nothing conflicts withe the "Send Request" shortcut + }, 'Ctrl-Space': 'autocomplete', // Change default find command from "find" to "findPersistent" so the
2
diff --git a/semantics-3.0/Semantics.hs b/semantics-3.0/Semantics.hs @@ -299,21 +299,21 @@ data ReduceAllResult = ReduceAllSuccess [ReduceWarning] [Payment] State Contract -- | Reduce a contract until it cannot be reduced more reduceContractUntilQuiescent :: Environment -> State -> Contract -> ReduceAllResult reduceContractUntilQuiescent env state contract = let - reduceAllAux + reduceAll :: Environment -> State -> Contract -> [ReduceWarning] -> [Payment] -> ReduceAllResult - reduceAllAux env state contract warnings effects = + reduceAll env state contract warnings effects = case reduceContractStep env state contract of Reduced warning effect newState cont -> let newWarnings = if warning == ReduceNoWarning then warnings else warning : warnings newEffects = maybe effects (: effects) effect - in reduceAllAux env newState cont newWarnings newEffects + in reduceAll env newState cont newWarnings newEffects AmbiguousSlotIntervalError -> ReduceAllAmbiguousSlotIntervalError -- this is the last invocation of reduceAllAux, so we can reverse lists NotReduced -> ReduceAllSuccess (reverse warnings) (reverse effects) state contract - in reduceAllAux env state contract [] [] + in reduceAll env state contract [] [] data ApplyResult = Applied State Contract @@ -337,9 +337,9 @@ applyCases env state input cases = case (input, cases) of (_, []) -> ApplyNoMatchError -apply :: Environment -> State -> Input -> Contract -> ApplyResult -apply env state input (When cases _ _) = applyCases env state input cases -apply _ _ _ _ = ApplyNoMatchError +applyInput :: Environment -> State -> Input -> Contract -> ApplyResult +applyInput env state input (When cases _ _) = applyCases env state input cases +applyInput _ _ _ _ = ApplyNoMatchError -- APPLY ALL @@ -349,7 +349,9 @@ data ApplyAllResult = ApplyAllSuccess [ReduceWarning] [Payment] State Contract deriving (Eq,Ord,Show) --- Apply a list of Inputs to the contract +-- | Apply a list of Inputs to the contract +applyAllInputs :: Environment -> State -> Contract -> [Input] -> ApplyAllResult +applyAllInputs env state contract inputs = let applyAllAux :: Environment -> State @@ -363,14 +365,11 @@ applyAllAux env state contract inputs warnings effects = ReduceAllAmbiguousSlotIntervalError -> ApplyAllAmbiguousSlotIntervalError ReduceAllSuccess warns effs curState cont -> case inputs of [] -> ApplyAllSuccess (warnings ++ warns) (effects ++ effs) curState cont - (input : rest) -> case apply env curState input cont of + (input : rest) -> case applyInput env curState input cont of Applied newState cont -> applyAllAux env newState cont rest (warnings ++ warns) (effects ++ effs) ApplyNoMatchError -> ApplyAllNoMatchError - - -applyAll :: Environment -> State -> Contract -> [Input] -> ApplyAllResult -applyAll env state contract inputs = applyAllAux env state contract inputs [] [] + in applyAllAux env state contract inputs [] [] -- PROCESS @@ -407,7 +406,7 @@ getOutcomes effect input = let -- | Try to process a transaction processTransaction :: Transaction -> State -> Contract -> ProcessResult processTransaction tx state contract = case fixInterval (txInterval tx) state of - IntervalTrimmed env fixState -> case applyAll env fixState contract inputs of + IntervalTrimmed env fixState -> case applyAllInputs env fixState contract inputs of ApplyAllSuccess warnings effects newState cont -> let outcomes = getOutcomes effects inputs in if contract == cont @@ -419,7 +418,7 @@ processTransaction tx state contract = case fixInterval (txInterval tx) state of where inputs = txInputs tx --- Calculates an upper bound for the maximum lifespan of a contract +-- | Calculates an upper bound for the maximum lifespan of a contract contractLifespan :: Contract -> Integer contractLifespan contract = case contract of Refund -> 0
10
diff --git a/js/views/trackerlist-sliding-subview.es6.js b/js/views/trackerlist-sliding-subview.es6.js @@ -9,10 +9,7 @@ function TrackerList (ops) { Parent__SlidingSubview.call(this, ops); - this._cacheElems('.js-top-blocked', [ - 'graph-bar-fg', - 'see-all' - ]) + this._cacheElems('.js-top-blocked', ['graph-bar-fg']) this.animateBars(); };
2
diff --git a/src/pages/settings/Profile/ProfilePage.js b/src/pages/settings/Profile/ProfilePage.js @@ -227,11 +227,11 @@ class ProfilePage extends Component { title: `${lodashGet(currentUserDetails, 'firstName', '')} ${lodashGet(currentUserDetails, 'lastName', '')}`, pageRoute: ROUTES.SETTINGS_DISPLAY_NAME, }, - // { - // description: this.props.translate('pronounsPage.pronouns'), - // title: personalDetails.pronouns, - // pageRoute: ROUTES.SETTINGS_PRONOUNS, - // }, + { + description: this.props.translate('pronounsPage.pronouns'), + title: lodashGet(currentUserDetails, 'pronouns', ''), + pageRoute: ROUTES.SETTINGS_PRONOUNS, + }, // { // description: this.props.translate(timezonePage.timezone), // title: personalDetails.timezone, @@ -262,16 +262,16 @@ class ProfilePage extends Component { size={CONST.AVATAR_SIZE.LARGE} /> </OfflineWithFeedback> - {_.map(profileSettingsOptions, detail => ( <View style={[styles.mt4, styles.mb4]}> + {_.map(profileSettingsOptions, detail => ( <MenuItemWithTopDescription shouldShowRightIcon title={detail.title} description={detail.description} onPress={() => Navigation.navigate(detail.pageRoute)} /> - </View>) - )} + ))} + </View> <Form style={[styles.flexGrow1, styles.ph5]} formID={ONYXKEYS.FORMS.PROFILE_SETTINGS_FORM}
7
diff --git a/docs/content/widgets/configs/MenuItem.js b/docs/content/widgets/configs/MenuItem.js @@ -9,7 +9,7 @@ export default { baseClass: { type: 'string', description: <cx><Md> - Base CSS class to be applied to the element. Default is 'menuitem'. + Base CSS class to be applied to the element. Default is `menuitem`. </Md></cx> }, hoverFocusTimeout: { @@ -40,7 +40,7 @@ export default { arrow: { type: 'object', description: <cx><Md> - Set to 'true' to display an arrow on the MenuItem element. Default value is 'false'. + Set to `true` to display an arrow on the MenuItem element. Default value is `false`. </Md></cx> }, dropdownOptions: { @@ -52,13 +52,13 @@ export default { showCursor: { type: 'boolean', description: <cx><Md> - Set to 'false' to hide cursor. Default value is 'true'. + Set to 'false' to hide the cursor. Default value is `true`. </Md></cx> }, pad: { type: 'boolean', description: <cx><Md> - Set to `false` to remove padding around the cell value. Default value is 'true'. + Set to `false` to remove padding around the cell value. Default value is `true`. </Md></cx> }, placement: { @@ -72,8 +72,8 @@ export default { placementOrder: { type: 'string', description: <cx><Md> - Set custom placement order. Default values are 'down-right down down-left up-right up up-left' - if the horizontal property is set to true, or 'right-down right right-up left-down left left-up' if it is false. + Set custom placement order. Default values are `down-right down down-left up-right up up-left` + if the horizontal property is set to true, otherwise are `right-down right right-up left-down left left-up`. </Md></cx> }, autoClose: { @@ -90,9 +90,9 @@ export default { </Md></cx> }, keyboardShortcut: { - type: 'object', + type: 'object/number', description: <cx><Md> - Add custom keyboard shorcuts. //TODO: Add an example + Add custom keyboard shorcuts. </Md></cx> }, tooltip: {
14
diff --git a/assets/js/app/certificates/certificates.html b/assets/js/app/certificates/certificates.html details </button> </td> - <!--<td>--> - <!--<button type="button" ng-click="deleteItem(item)" class="btn btn-danger btn-link">--> - <!--<i class="mdi mdi-delete"></i>--> - <!--Delete--> - <!--</button>--> - <!--</td>--> + <td width="1"> + <button type="button" ng-click="deleteItem($index,item)" class="btn btn-danger btn-link"> + <i class="mdi mdi-delete"></i> + Delete + </button> + </td> </tr> <tr data-ng-if="(items.data == {} || !items.data.length) && !loading"> <td colspan="100%" class="text-center text-muted">
11
diff --git a/src/component/parent/index.js b/src/component/parent/index.js @@ -548,7 +548,7 @@ export class ParentComponent<P> extends BaseComponent<P> { if (!bridgeUrl) { if (needsBridge && domain && !bridge.hasBridge(domain, domain)) { - throw new Error(`Bridge url needed to render popup`); + throw new Error(`Bridge url needed to render ${ this.context }`); } return;
7
diff --git a/generators/server/templates/src/main/resources/config/liquibase/master.xml.ejs b/generators/server/templates/src/main/resources/config/liquibase/master.xml.ejs <property name="now" value="now()" dbms="h2"/> <%_ if (prodDatabaseType === 'mysql' || prodDatabaseType === 'mariadb') { _%> - <property name="now" value="now()" dbms="mysql"/> + <property name="now" value="now()" dbms="mysql, mariadb"/> <%_ } _%> <%_ if (prodDatabaseType === 'postgresql') { _%> <property name="now" value="current_timestamp" dbms="postgresql"/>
11
diff --git a/src/components/transactions/TransactionList.vue b/src/components/transactions/TransactionList.vue @@ -76,10 +76,11 @@ export default { categorizedTransactions() { return this.transactions.map(tx => { // check if the tx is in Today, Yesterday or Last Week + const dateString = ` (` + moment(tx.time).format("MMMM Do") + `)` const category = categories.find(({ matcher }) => matcher(tx)) if (category) { return { - title: category.title, + title: category.title + dateString, tx } } @@ -89,14 +90,14 @@ export default { const today = moment() if (date.year() === today.year()) { return { - title: date.format("MMMM"), + title: date.format("MMMM Do"), tx } } // tx is in a month another year return { - title: date.format("MMMM YY"), + title: date.format("MMMM Do, YYYY"), tx } }) @@ -105,7 +106,10 @@ export default { } </script> <style scoped> -h1 { - padding: 1rem 0 0.5rem 1rem; +h3 { + margin: 2rem 0 0.25rem 1rem; + color: var(--dim); + font-size: var(--sm); + font-weight: 500; } </style>
3
diff --git a/Specs/Scene/Cesium3DTilesetSpec.js b/Specs/Scene/Cesium3DTilesetSpec.js -import { Cartesian2, Cesium3DTileBatchTable } from "../../Source/Cesium.js"; +import { Cartesian2 } from "../../Source/Cesium.js"; import { Cartesian3 } from "../../Source/Cesium.js"; import { Cartographic } from "../../Source/Cesium.js"; import { Color } from "../../Source/Cesium.js";
1
diff --git a/docs/providers/aws/guide/resources.md b/docs/providers/aws/guide/resources.md @@ -76,7 +76,7 @@ We're also using the term `normalizedName` or similar terms in this guide. This |AWS::IoT::TopicRule | {normalizedFuntionName}IotTopicRule{SequentialID} | HelloIotTopicRule1 | |ApiGateway::RestApi | ApiGatewayRestApi | ApiGatewayRestApi | |ApiGateway::Resource | ApiGatewayResource{normalizedPath} | ApiGatewayResourceUsers | -|ApiGateway::Method | ApiGatewayResource{normalizedPath}{normalizedMethod} | ApiGatewayResourceUsersGet | +|ApiGateway::Method | ApiGatewayMethod{normalizedPath}{normalizedMethod} | ApiGatewayMethodUsersGet | |ApiGateway::Authorizer | {normalizedFunctionName}ApiGatewayAuthorizer | HelloApiGatewayAuthorizer | |ApiGateway::Deployment | ApiGatewayDeployment{randomNumber} | ApiGatewayDeployment12356789 | |ApiGateway::ApiKey | ApiGatewayApiKey{SequentialID} | ApiGatewayApiKey1 |
1
diff --git a/package-lock.json b/package-lock.json } }, "gl-scatter3d": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/gl-scatter3d/-/gl-scatter3d-1.0.11.tgz", - "integrity": "sha512-fKpIBm6QHuw3RVzM3fjYgpigQuHIDj5tXbbGx8whWIx7S3ureiZgTxsM2Mtwo+OLsm1lUEryGf2YbFf3NQ9CiQ==", + "version": "git://github.com/gl-vis/gl-scatter3d.git#2ee9fbb3c29af694ad64258a27dc04d617896e84", + "from": "git://github.com/gl-vis/gl-scatter3d.git#2ee9fbb3c29af694ad64258a27dc04d617896e84", "requires": { "gl-buffer": "^2.0.6", "gl-mat4": "^1.0.0", "gl-shader": "^4.2.0", "gl-vao": "^1.1.2", + "glsl-out-of-range": "^1.0.2", "glslify": "^6.1.0", "typedarray-pool": "^1.0.2", "vectorize-text": "^3.0.0" "resolved": "https://registry.npmjs.org/glsl-inverse/-/glsl-inverse-1.0.0.tgz", "integrity": "sha1-EsCx0GX1WERNHm/q95td34qRiuY=" }, + "glsl-out-of-range": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glsl-out-of-range/-/glsl-out-of-range-1.0.2.tgz", + "integrity": "sha512-Qej48sfhSajxvfOmFNz5RV37DEHUjVTz38id1Y/Nt0kAXEe8IQSOXhKvlnD+uDpU5JKS6fLxlxLy8lJ/bepqAQ==" + }, "glsl-read-float": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/glsl-read-float/-/glsl-read-float-1.1.0.tgz",
3
diff --git a/config/sidebar.yml b/config/sidebar.yml @@ -262,9 +262,36 @@ articles: - title: "Google Authenticator" url: "/multifactor-authentication/google-authenticator" + children: + - title: "For Administrators" + url: "/multifactor-authentication/google-auth/admin-guide" + + - title: "For Developers" + url: "/multifactor-authentication/google-auth/dev-guide" + + - title: "For Users" + url: "/multifactor-authentication/google-auth/user-guide" - title: "Duo Security" url: "/multifactor-authentication/duo" + children: + - title: "For Administrators" + url: "/multifactor-authentication/duo/admin-guide" + + - title: "For Developers" + url: "/multifactor-authentication/duo/dev-guide" + + - title: "For Users" + url: "/multifactor-authentication/duo/user-guide" + + - title: "For Native Applications" + url: "/multifactor-authentication/mfa-native" + + - title: "Custom MFA" + url: "/multifactor-authentication/custom" + + - title: "Yubikey NEO Example" + url: "/multifactor-authentication/yubikey" - title: "Anomaly Detection" url: "/anomaly-detection"
0
diff --git a/README.md b/README.md @@ -77,7 +77,7 @@ There are two kinds of plotly.js partial bundles: 2. Custom bundles you can create yourself, if none of the distributed packages meet your needs. Use the `traces` option to include just the trace types you need. -``` +```sh npm run partial-bundle -- --traces scatter,scattergl,scatter3d ``` Please note that the `scatter` trace is currently included in all bundles and cannot be removed. @@ -85,29 +85,29 @@ Please note that the `scatter` trace is currently included in all bundles and ca By default all transforms are included in the bundle. Use the `transforms` option to specify which should be included. -``` +```sh npm run partial-bundle -- --transforms sort,filter ``` Or use `transforms none` to exclude them all. -``` +```sh npm run partial-bundle -- --transforms none ``` Use the `out` option to change the bundle filename (default `custom`). The new bundle will be created in the `dist/` directory and named `plotly-<out>.min.js` or `plotly-<out>.js` if unminified. -``` +```sh npm run partial-bundle -- --out myBundleName ``` Use the `unminified` option to disable compression. -``` +```sh npm run partial-bundle -- --unminified ``` ### Example illustrating use of different options together To create an unminified custom bundle named `myScatters` including `scatter`, `scattergl` and `scatter3d` traces without any transforms: -``` +```sh npm run partial-bundle -- \ --unminified \ --out myScatters \ @@ -115,7 +115,7 @@ npm run partial-bundle -- \ --transforms none ``` Or simply on one line: -``` +```sh npm run partial-bundle -- --unminified --out myScatters --traces scatter,scattergl,scatter3d --transforms none ```
0
diff --git a/indexes.md b/indexes.md # Indexes -With the notion of Index, that can be called table in SQL, we also have the notion of Schema. +With the notion of index, that can be called table in SQL, we also have the notion of schema. -A schema is a correspondence between all fields present into your data and how this field will be understood by our database. We have some tags that should be associated with a field in the scheme: +A schema is a correspondence between all fields present in your documents and how these fields will be understood by our database. +We have some tags that should be associated with fields in the schema: -* **identifier** : Unique identifier of a document, should be set on only one field. This field shout is unique on all the collection. -* **indexed** : Every indexed field will serve to make our search engine work. It's, for example, a text, but not an URL. -* **stored** : Stored field can be retrievable during the search. A none stored field will never appear in the search response. -* **ranked** : should not be given during the index creation but only by the settings. Will sort all response by this field. +* **identifier**: The unique identifier of a document, must only be set on one field. This field is must be unique between documents. +* **indexed**: Indexed fields feed our search engine. +* **stored**: Displayed fields can be showed during searches. A non-displayed field will never appear in the search response. +* **ranked**: Ranked fields are used to sort documents. <Badge text="soon" type="warn"/> -Take the example of a movie collection. We have several fields: +Take for example a movie collection. We have several fields: -* **id**: Is a unique identifier for a movie (tag: identifier). Not useful to search into the id field. will be used for redirection into the website (tag: stored). -* **title**: the most important field (tag: indexed). Surely printed on the front (tag: stored). -* **description**: give much information about the movie (tag: indexed), perhaps we will show the first line of the description on the front (tag: stored). -* **release_date**: the release date can be used for sort movies (tag: ranked), but nobody will search precisely the release date of a film. It's will be shown on the website (tag: stored); -* **cover**: the URL of the poster or images related to the movie. Will be showed into the front (tag: stored). +* **id**: The unique identifier of a movie (tag: identifier). +* **title**: The most important field (tag: indexed). Surely printed on the front (tag: displayed). +* **description**: Give much information about the movie (tag: indexed), perhaps we will show the first line of the description on the front (tag: displayed). +* **release_date**: The release date can be used to sort movies (tag: ranked), but nobody will search precisely the release date of a film. It will be shown on the website (tag: displayed). +* **cover**: The URL of the poster or the image related to the movie. Will be showed on the front (tag: displayed). ::: warning The order of the document fields has a huge impact on the relevancy. So please order fields from the most important to the less. @@ -26,11 +27,11 @@ Our schema will be: ```json { - "id": ["identifier", "stored"], - "title": ["indexed", "stored"], - "description": ["indexed", "stored"], - "release_date": ["ranked", "stored"], - "cover": ["stored"] + "id": ["identifier", "displayed"], + "title": ["indexed", "displayed"], + "description": ["indexed", "displayed"], + "release_date": ["ranked", "displayed"], + "cover": ["displayed"] } ```
1
diff --git a/Source/Scene/Camera.js b/Source/Scene/Camera.js @@ -1588,7 +1588,7 @@ define([ /** * Rotates the camera around its up vector by amount, in radians, in the opposite direction - * of its right vector. + * of its right vector if not in 2D mode. * * @param {Number} [amount] The amount, in radians, to rotate by. Defaults to <code>defaultLookAmount</code>. * @@ -1605,7 +1605,7 @@ define([ /** * Rotates the camera around its up vector by amount, in radians, in the direction - * of its right vector. + * of its right vector if not in 2D mode. * * @param {Number} [amount] The amount, in radians, to rotate by. Defaults to <code>defaultLookAmount</code>. * @@ -1622,7 +1622,7 @@ define([ /** * Rotates the camera around its right vector by amount, in radians, in the direction - * of its up vector. + * of its up vector if not in 2D mode. * * @param {Number} [amount] The amount, in radians, to rotate by. Defaults to <code>defaultLookAmount</code>. * @@ -1639,7 +1639,7 @@ define([ /** * Rotates the camera around its right vector by amount, in radians, in the opposite direction - * of its up vector. + * of its up vector if not in 2D mode. * * @param {Number} [amount] The amount, in radians, to rotate by. Defaults to <code>defaultLookAmount</code>. *
3
diff --git a/js/test/Exchange/test.watchOHLCV.js b/js/test/Exchange/test.watchOHLCV.js @@ -21,6 +21,7 @@ module.exports = async (exchange, symbol) => { 'dsx', 'idex2', // rinkeby testnet, trades too rare 'bitvavo', + 'zb' ] if (skippedExchanges.includes (exchange.id)) { @@ -57,8 +58,10 @@ module.exports = async (exchange, symbol) => { if (i > 0) { const previous = response[i - 1] if (current[0] && previous[0]) { - assert (current[0] >= previous[0], - 'OHLCV timestamp ordering is wrong at candle ' + i.toString () + ' ' + current[0].toString () + ' < ' + previous[0].toString ()) + assert ( + current[0] >= previous[0], + 'OHLCV timestamp ordering is wrong at candle ' + i.toString () + ' ' + current[0].toString () + ' < ' + previous[0].toString () + ) } } }
8
diff --git a/CookieMonster.js b/CookieMonster.js @@ -477,7 +477,7 @@ CM.ConfigData.BuildColor = {label: ['Building Colors OFF', 'Building Colors ON'] CM.ConfigData.BulkBuildColor = {label: ['Bulk Building Colors (Single Buildings Color)', 'Bulk Building Colors (Calculated Color)'], desc: 'Color code bulk buildings based on single buildings color or calculated bulk value color', toggle: false, func: function() {CM.Disp.UpdateBuildings();}}; CM.ConfigData.UpBarColor = {label: ['Upgrade Bar/Colors OFF', 'Upgrade Bar/Colors ON'], desc: 'Color code upgrades and add a counter', toggle: true, func: function() {CM.Disp.ToggleUpBarColor();}}; CM.ConfigData.Colors = {desc: {Blue: 'Color Blue. Used to show better than best PP building, for Click Frenzy bar, and for various labels', Green: 'Color Green. Used to show best PP building, for Blood Frenzy bar, and for various labels', Yellow: 'Color Yellow. Used to show between best and worst PP buildings closer to best, for Frenzy bar, and for various labels', Orange: 'Color Orange. Used to show between best and worst PP buildings closer to worst, for Next Reindeer bar, and for various labels', Red: 'Color Red. Used to show worst PP building, for Clot bar, and for various labels', Purple: 'Color Purple. Used to show worse than worst PP building, for Next Cookie bar, and for various labels', Gray: 'Color Gray. Used to show negative or infinity PP, and for Next Cookie/Next Reindeer bar', Pink: 'Color Pink. Used for Dragonflight bar', Brown: 'Color Brown. Used for Dragon Harvest bar'}, func: function() {CM.Disp.UpdateColors();}}; -CM.ConfigData.CalcWrink = {label: ['Calculate with Wrinklers OFF', 'Calculate with Wrinklers ON'], desc: 'Calculate times and average Cookies Per Second with Wrinkers', toggle: true}; +CM.ConfigData.CalcWrink = {label: ['Calculate with Wrinklers OFF', 'Calculate with Wrinklers ON'], desc: 'Calculate times and average Cookies Per Second with Wrinklers', toggle: true}; CM.ConfigData.CPSMode = {label: ['Current Cookies Per Second', 'Average Cookies Per Second'], desc: 'Calculate times using current Cookies Per Second or average Cookies Per Second', toggle: false}; CM.ConfigData.AvgCPSHist = {label: ['Average CPS for past 1m', 'Average CPS for past 5m', 'Average CPS for past 10m', 'Average CPS for past 15m', 'Average CPS for past 30m'], desc: 'How much time average Cookies Per Second should consider', toggle: false}; CM.ConfigData.AvgClicksHist = {label: ['Average Cookie Clicks for past 1s', 'Average Cookie Clicks for past 5s', 'Average Cookie Clicks for past 10s', 'Average Cookie Clicks for past 15s', 'Average Cookie Clicks for past 30s'], desc: 'How much time average Cookie Clicks should consider', toggle: false};
1
diff --git a/app/assets/stylesheets/pageflow/admin/status_tags.scss b/app/assets/stylesheets/pageflow/admin/status_tags.scss -$status-tag-ok-background-color: #8daa92 !default; +$pageflow-status-tag-ok-background-color: #8daa92 !default; -$status-tag-warning-background-color: #e29b20 !default; +$pageflow-status-tag-warning-background-color: #e29b20 !default; .status_tag { + &.yes, &.ok { - background: $status-tag-ok-background-color; + background: $pageflow-status-tag-ok-background-color; } &.warning { - background: $status-tag-warning-background-color; + background: $pageflow-status-tag-warning-background-color; } }
10
diff --git a/public/javascripts/Progress/src/Progress.js b/public/javascripts/Progress/src/Progress.js @@ -7,10 +7,10 @@ function Progress (_, $, c3, L, role, difficultRegionIds) { var completedInitializingAuditedTasks = false; var neighborhoodPolygonStyle = { - color: 'red', - weight: 3, - opacity: 0.25, - fillColor: "#ccc", + color: '#888', + weight: 2, + opacity: 0.80, + fillColor: "#808080", fillOpacity: 0.1 }, layers = [],
3
diff --git a/.eslintrc b/.eslintrc "no-console": 0, "func-names": 0, "no-param-reassign": 0, - "prefer-template": 0 + "prefer-template": 0, + "import/no-extraneous-dependencies": ["error", + {"devDependencies": ["**/*.test.js", "**/*.spec.js"]} + ] } }
0
diff --git a/lib/command/Command.js b/lib/command/Command.js @@ -269,17 +269,25 @@ class Command { return true; } - process(args, msg) { + async process(args, msg) { const shouldDelete = this.deleteCommand && msg.channel.guild && msg.channel.permissionsOf(msg._client.user.id).has("manageMessages"); if(this.hooks.preCommand) { - this.hooks.preCommand(msg, args); + const response = await Promise.resolve(this.hooks.preCommand(msg, args)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } let reply; if(!this.permissionCheck(msg)) { if(this.hooks.postCheck) { - this.hooks.postCheck(msg, args, false); + const response = await Promise.resolve(this.hooks.postCheck(msg, args, false)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } if(shouldDelete) { @@ -297,7 +305,11 @@ class Command { } if(this.argsRequired) { if(this.hooks.postCheck) { - this.hooks.postCheck(msg, args, false); + const response = await Promise.resolve(this.hooks.postCheck(msg, args, true)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } reply = typeof this.invalidUsageMessage === "function" ? this.invalidUsageMessage(msg) : this.invalidUsageMessage; if(reply) { @@ -307,7 +319,11 @@ class Command { } if(this.cooldown !== 0 && !this.cooldownCheck(msg)) { if(this.hooks.postCheck) { - this.hooks.postCheck(msg, args, false); + const response = await Promise.resolve(this.hooks.postCheck(msg, args, true)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } if(this.cooldownMessage && (!this.cooldownReturns || this.cooldownAmounts[msg.author.id] <= this.cooldownReturns)) { reply = typeof this.cooldownMessage === "function" ? this.cooldownMessage(msg) : this.cooldownMessage; @@ -330,7 +346,11 @@ class Command { } if(this.cooldown !== 0 && !this.cooldownCheck(msg)) { if(this.hooks.postCheck) { - this.hooks.postCheck(msg, args, false); + const response = await Promise.resolve(this.hooks.postCheck(msg, args, false)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } if(this.cooldownMessage && (!this.cooldownReturns || this.cooldownAmounts[msg.author.id] <= this.cooldownReturns)) { reply = typeof this.cooldownMessage === "function" ? this.cooldownMessage(msg) : this.cooldownMessage; @@ -344,9 +364,13 @@ class Command { } } - executeCommand(msg, args) { + async executeCommand(msg, args) { if(this.hooks.postCheck) { - this.hooks.postCheck(msg, args, true); + const response = await Promise.resolve(this.hooks.postCheck(msg, args, true)); + if (response) { + msg = response.msg || msg; + args = response.args || args; + } } const ret = this.execute(msg, args);
11
diff --git a/src/components/DayPickerRangeController.jsx b/src/components/DayPickerRangeController.jsx @@ -166,10 +166,17 @@ export default class DayPickerRangeController extends React.Component { const { currentMonth, visibleDays } = this.getStateForNewMonth(props); + // initialize phrases + // set the appropriate CalendarDay phrase based on focusedInput + const chooseAvailableDate = getChooseAvailableDatePhrase(props.phrases, props.focusedInput); + this.state = { hoverDate: null, currentMonth, - phrases: props.phrases, + phrases: { + ...props.phrases, + chooseAvailableDate, + }, visibleDays, }; @@ -183,22 +190,6 @@ export default class DayPickerRangeController extends React.Component { this.setDayPickerRef = this.setDayPickerRef.bind(this); } - componentDidMount() { - const { focusedInput } = this.props; - const { phrases } = this.state; - - // initialize phrases - // set the appropriate CalendarDay phrase based on focusedInput - const chooseAvailableDate = getChooseAvailableDatePhrase(phrases, focusedInput); - - this.setState({ - phrases: { - ...phrases, - chooseAvailableDate, - }, - }); - } - componentWillReceiveProps(nextProps) { const { startDate,
5
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js @@ -856,6 +856,7 @@ RED.utils = (function() { obj[key] = value; } } + function separateIconPath(icon) { var result = {module: "", file: ""}; if (icon) { @@ -863,10 +864,10 @@ RED.utils = (function() { if (index === 0) { icon = icon.substring((RED.settings.apiRootUrl+'icons/').length); } - index = icon.indexOf('/'); - if (index !== -1) { - result.module = icon.slice(0, index); - result.file = icon.slice(index + 1); + var match = /^((?:@[^/]+\/)?[^/]+)\/(.*)$/.exec(icon); + if (match) { + result.module = match[1]; + result.file = match[2]; } else { result.file = icon; }
9
diff --git a/tools/cfpack/src/index.js b/tools/cfpack/src/index.js @@ -61,7 +61,7 @@ var zip = function(ignore, cb) { // We're using the system zip command here, may be better to use a // Javascript zip library instead var files = '-type f -not -regex "\\./\\.cfpack/package\\.json" ' + - '-not -regex ".*/\\.git"'; + '-not -regex ".*/\\.git" -not -regex ".*test\\.js"'; var ex = cp.exec('(find . .cfpack/lib/* ' + files + ' | zip -q -x@' + ignore + ' -@ .cfpack/app.zip) && ' + '(zip -q -j .cfpack/app.zip .cfpack/package.json)', {
8
diff --git a/js/site.js b/js/site.js @@ -26,7 +26,7 @@ const siteScores = ['A', 'B', 'C', 'D'] // percent of the top 1 million sites a tracking network has been seen on. // see: https://webtransparency.cs.princeton.edu/webcensus/ -const pagesSeenOn = {'google':84,'facebook':36,'twitter':14,'amazon':14,'appnexus':10,'oracle':10,'mediamath':9,'yahoo':9,'maxcdn':7,'automattic':7} +const pagesSeenOn = {'google':84,'facebook':36,'twitter':16,'amazon':14,'appnexus':10,'oracle':10,'mediamath':9,'yahoo':9,'maxcdn':7,'automattic':7} const pagesSeenOnRegexList = Object.keys(pagesSeenOn).map(x => new RegExp(`${x}\\.`)) const tosdrClassMap = {'A': -1, 'B': 0, 'C': 0, 'D': 1, 'E': 2} // map tosdr class rankings to increase/decrease in grade
3
diff --git a/lib/ota/zigbeeOTA.js b/lib/ota/zigbeeOTA.js const url = 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json'; -const assert = require('assert'); const common = require('./common'); const axios = common.getAxios(); const fs = require('fs'); @@ -110,7 +109,10 @@ async function getImageMeta(current, logger, device) { (!i.minFileVersion || current.fileVersion >= i.minFileVersion) && (!i.maxFileVersion || current.fileVersion <= i.maxFileVersion) && (!i.modelId || i.modelId === modelId) && (!i.manufacturerName || i.manufacturerName.includes(manufacturerName))); - assert(image !== undefined, `No image available for imageType '${imageType}'`); + if (!image) { + throw new Error(`No image available for imageType '${imageType}'`); + } + return { fileVersion: image.fileVersion, fileSize: image.fileSize,
14
diff --git a/README.md b/README.md @@ -135,6 +135,12 @@ You can enable some protocol debugging output using `DEBUG` environment variable DEBUG="minecraft-protocol" node [...] ``` +On windows : +``` +set DEBUG=minecraft-protocol +node your_script.js +``` + ## Contribute Please read https://github.com/PrismarineJS/prismarine-contribute
7
diff --git a/ui/src/selectors.js b/ui/src/selectors.js @@ -108,7 +108,7 @@ export function selectEntity(state, entityId) { const model = selectModel(state); const hasModel = entity.schema !== undefined && model !== undefined; const result = hasModel ? model.getEntity(entity) : {}; - result.isLoading = !!entity.isLoading; + result.isPending = !!entity.isLoading || !!entity.shouldLoad; result.isError = !!entity.isError; result.shouldLoad = !!entity.shouldLoad; result.error = entity.error;
14
diff --git a/assets/js/components/legacy-notifications/DashboardCoreSiteAlerts.js b/assets/js/components/legacy-notifications/DashboardCoreSiteAlerts.js * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { useEffect, useState } from '@wordpress/element'; +import { useEffect, useState, useRef } from '@wordpress/element'; /** * Internal dependencies @@ -40,13 +40,12 @@ const MAX_SECONDS_FOR_SURVEY = 5; const DashboardCoreSiteAlerts = () => { const [ ready, setReady ] = useState( false ); const [ hasSurveys, setHasSurveys ] = useState( false ); - const [ startTime, setStartTime ] = useState( false ); + const startTime = useRef( Date.now() ); const surveys = useSelect( ( select ) => select( CORE_USER ).getCurrentSurvey() ); const notifications = useSelect( ( select ) => select( CORE_SITE ).getNotifications() ); useEffect( () => { - setStartTime( Date.now() ); const timer = setTimeout( () => { if ( ! hasSurveys ) { setReady( true ); @@ -62,7 +61,7 @@ const DashboardCoreSiteAlerts = () => { useEffect( () => { - const secondsElapsed = Math.floor( ( Date.now() - startTime ) / 1000 ); + const secondsElapsed = Math.floor( ( Date.now() - startTime.current ) / 1000 ); // Surveys that were received in time prevent the render, surveys loaded // after a set amount of time do not prevent notifications from rendering. if ( secondsElapsed < MAX_SECONDS_FOR_SURVEY && surveys ) {
12
diff --git a/docs/rules/html-quotes.md b/docs/rules/html-quotes.md @@ -63,7 +63,7 @@ Default is set to `double`. ``` </eslint-code-block> -## Related links +## :books: Further reading - [Style guide - Quoted attribute values](https://vuejs.org/v2/style-guide/#Quoted-attribute-values-strongly-recommended)
1
diff --git a/token-metadata/0x86aD632c36425F0E0af2FcD6F55C160e10C04b26/metadata.json b/token-metadata/0x86aD632c36425F0E0af2FcD6F55C160e10C04b26/metadata.json "symbol": "XBR", "address": "0x86aD632c36425F0E0af2FcD6F55C160e10C04b26", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/definitions/modules/slider.js b/src/definitions/modules/slider.js @@ -205,7 +205,6 @@ $.fn.slider = function(parameters) { }); }, autoLabel: function() { - if(module.get.step() != 0) { $labels = $module.find('.labels'); if($labels.length != 0) { $labels.empty(); @@ -229,7 +228,6 @@ $.fn.slider = function(parameters) { } } } - } }, bind: { @@ -591,7 +589,7 @@ $.fn.slider = function(parameters) { switch (settings.labelType) { case settings.labelTypes.number: - return Math.round(((value * module.get.step()) + module.get.min()) * precision ) / precision; + return Math.round(((value * (module.get.step() === 0 ? 1 : module.get.step())) + module.get.min()) * precision ) / precision; case settings.labelTypes.letter: return alphabet[(value) % 26]; default:
1
diff --git a/_includes/meshery.html b/_includes/meshery.html <p><b>Adapters (status):</b> <ol> <li><a href="https://github.com/layer5io/meshery-istio">Meshery adapter for Istio</a> (alpha)</li> + <li><a href="https://github.com/layer5io/meshery-linkerd">Meshery adapter for Linkerd</a> (alpha)</li> <li><a href="https://github.com/layer5io/meshery-octarine">Meshery adapter for Octarine</a> (pre-alpha)</li> - <li><a href="https://github.com/layer5io/meshery-linkerd">Meshery adapter for Linkerd</a> (pre-alpha)</li> <li><a href="https://github.com/layer5io/meshery-consul">Meshery adapter for Consul Connect</a> (pre-alpha)</li> </ol> </p> <a name="getting-started"></a><h4 style="color:aliceblue;">Run Meshery</h4> <div class="post-content" itemprop="articleBody"> <p>Meshery can be deployed on your local machine or into an existing service mesh. </p> - <p>Start by cloning the Meshery repo:</p> + <p>To quickly get started, we have a script which can be used to run Meshery services on your local:</p> + <div class="highlight highlight-source-shell"> + <pre><code> + $ curl https://meshery.layer5.io/cli > meshery-cli + $ chmod +x meshery-cli + $ ./meshery-cli start + </code></pre> + </div> + <p>You can now proceed to the accessing Meshery <a href="#useMeshery">here</a></p> + <p>(OR) Start by cloning the Meshery repo:</p> <div class="highlight highlight-source-shell"> <pre><code> $ git clone https://github.com/layer5io/meshery.git; cd meshery $ ./meshery-cli start </code></pre> </div> - <p>You may then access Meshery in your browser at <a href="http://localhost:9081">http://localhost:9081</a>. Configure Meshery with - references to your deployed adapters, using "meshery-&lt;service-mesh-name&gt;:&lt;port&gt;" (e.g. <code>meshery-istio:10000</code>) + + <a name="useMeshery"></a> + <p>Once you have Meshery up and running, you may then access Meshery in your browser at <a href="http://localhost:9081">http://localhost:9081</a>. Configure Meshery with + references to your deployed adapters, using "meshery-&lt;service-mesh-name&gt;:&lt;port&gt;" (e.g. <code>meshery-istio:10000</code> or <code>meshery-linkerd:10001</code>) in the <i>Mesh Adapter Location</i> field.</p> <h5 style="color:#111111;">Run Meshery on Kubernetes:</h5> </div> <p>If you want to use a different namespace, please change the name of the namespace in the <code>ClusterRoleBinding</code> section appropriately. </p> <p>You may then access Meshery in your browser at <a href="http://localhost:9081">http://localhost:9081</a>. Configure Meshery with - references to your deployed adapters, using "meshery-&lt;service-mesh-name&gt;:&lt;port&gt;" (e.g. <code>meshery-istio:10000</code>) + references to your deployed adapters, using "meshery-&lt;service-mesh-name&gt;:&lt;port&gt;" (e.g. <code>meshery-istio:10000</code> or <code>meshery-linkerd:10001</code>) in the <i>Mesh Adapter Location</i> field.</p> </div> <a name="contributing"></a><a name="community"></a>
3
diff --git a/layouts/partials/helpers/section-header.html b/layouts/partials/helpers/section-header.html {{- $bg := .bg -}} +{{- $align := .params.align | default "center" -}} +{{- $subtitle_align := .params.subtitle_align | default $align -}} {{- with .params.title }} - <div class="row"> - <div class="col text-center py-3 - {{- if or (eq $bg "secondary") (eq $bg "primary") -}} + <div class="row mx-0"> + <div class="col + {{- printf " text-%s" $align -}} + {{- if or (eq $bg "white") (eq $bg "light") (eq $bg "secondary") (eq $bg "primary") -}} {{- printf " text-%s" "dark" -}} {{- else -}} - {{- printf " text-%s" "secondary" -}} + {{- printf " text-%s" "light" -}} {{- end -}} "> <h2> </div> </div> {{- end -}} -{{- with .params.subtitle }} - <div class="row"> - <div class="col text-center pb-4 +{{- with .params.subtitle -}} + <div class="row mx-0"> + <div class="col pt-4 pb-0 + {{- printf " text-%s" $subtitle_align -}} {{- if or (eq $bg "secondary") (eq $bg "primary") -}} {{- printf " text-%s" "dark" -}} {{- else -}}
0
diff --git a/README.md b/README.md # grocy ERP beyond your fridge +## Give it a try +Public demo of the latest version &rarr; [https://demo.grocy.info](https://demo.grocy.info) + ## Motivation A household needs to be managed. I did this so far (almost 10 years) with my first self written software (a C# windows forms application) and with a bunch of Excel sheets. The software is a pain to use and Excel is Excel. So I searched for and tried different things for a (very) long time, nothing 100 % fitted, so this is my aim for a "complete houshold management"-thing. ## What it is about For now my main focus is on stock management, ERP your fridge! -# Give it a try -Public demo of the latest version &rarr; [https://demo.grocy.info](https://demo.grocy.info) - ## How to install -Just unpack the [latest release](https://github.com/berrnd/grocy/releases/latest) on your PHP (7.0 or later required) enabled webserver (root is the `/public` directory), copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go. Alternatively clone this repository and install Composer and Bower dependencies manually. +Just unpack the [latest release](https://github.com/berrnd/grocy/releases/latest) on your PHP (7.0 or later required) enabled webserver (root is the `/public` directory), copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go. Default login is user `admin` with password `admin` - the `data/config.php` file. Alternatively clone this repository and install Composer and Bower dependencies manually. If you use nginx as your webserver, please include `try_files $uri /index.php;` in your location block. -## Notes about barcode readers -Some fields also allow to select a value by scanning a barcode. It works best when your barcode reader prefixes every barcode with a letter this is normally not part of a item name (I use a `$`) and sends a `TAB` after a scan. +## Things worth to know + +### Barcode readers +Some fields also allow to select a value by scanning a barcode. It works best when your barcode reader prefixes every barcode with a letter which is normally not part of a item name (I use a `$`) and sends a `TAB` after a scan. + +### Input shorthands for date fields +For (productivity) reasons all date (and time) input fields use the ISO-8601 format regardless of localization. +The following shorthands are available: +- `MMDD` gets expanded to the given day on the current year + - Example: `0517` will be converted to `2018-05-17` +- `DDMMYYYY` gets expanded to the proper ISO-8601 notation + - Example: `20190417` will be converted to `2019-04-17` +- `x` gets expanded to `2099-12-31` (which I use for products which never expire) +- Down/up arrow keys will increase/decrease the date by one day +- Right/left arrow keys will increase/decrease the date by 1 week + +### Keyboard shorthands for buttons +Wherever a button contains a bold highlighted letter, this is a shortcut key. +Example: Button "Add as new **p**roduct" can be "pressed" by using the `P` key on your keyboard. + +### Database migrations +Database schema migration is automatically done when visiting the root (`/`) route (click on the logo in the left upper edge). + +### Demo mode +When the file `data/demo.txt` exists, the application will work in a demo mode which means authentication is disabled and some demo data will be generated during the database schema migration. ## Screenshots #### Dashboard
0
diff --git a/tools/metadata/package.json b/tools/metadata/package.json ], "scripts": { "clean": "rm -rf ./build", - "compile": "yarn clean && tsc -b", - "test": "yarn test:unit", - "test:unit": "yarn compile && mocha -r ts-node/register test/**/*.ts" + "compile": "yarn clean && tsc -b" }, "dependencies": { "@airswap/constants": "0.4.3",
2
diff --git a/articles/quickstart/spa/angular2/01-login.md b/articles/quickstart/spa/angular2/01-login.md --- title: Login -description: This tutorial demonstrates how to add user login to an Angular (versions 2 and above) application using Auth0. +description: This tutorial demonstrates how to add user login to an Angular application using Auth0. budicon: 448 topics: - quickstarts - spa + - angular - angular2 - login github:
2
diff --git a/docs/sphinx_greenlight_instructions.md b/docs/sphinx_greenlight_instructions.md ## Getting Started -1. Flash our installer onto your raspberry pi using your preferred method. We like to use balena etcher, which you can download [here](https://www.balena.io/etcher/). -2. Follow the instructions [here](https://www.raspberrypi.org/documentation/configuration/wireless/headless.md) to set up your raspberry pi's connection if you are connecting to a wireless network. -3. Place your sd card into the raspberry pi, and plug the pi into a power source. -4. Wait around 5 minutes. -5. If you are on Linux/MacOS load the page `http://raspberrypi.local:3001/connect` and if you are on Windows, load the page `http://raspberrypi:3001/connect`. Follow the instructions there. +1. Grab our installer from [here](https://drive.google.com/file/d/1jPNxa3qkE0vYwj2un14K7j-6R4QQ_kJ_/view?usp=sharing). See the file integrity section below if you'd like to cross check this file. +2. Flash our installer onto your raspberry pi using your preferred method. We like to use balena etcher, which you can download [here](https://www.balena.io/etcher/). +3. Follow the instructions [here](https://www.raspberrypi.org/documentation/configuration/wireless/headless.md) to set up your raspberry pi's connection if you are connecting to a wireless network. +4. Place your sd card into the raspberry pi, and plug the pi into a power source. +5. Wait around 5 minutes. +6. If you are on Linux/MacOS load the page `http://raspberrypi.local:3001/connect` and if you are on Windows, load the page `http://raspberrypi:3001/connect`. Follow the instructions there. When you can, SSH into your raspberry pi using the username `pi` and the password `raspberry`, and change the password with the command `passwd` +## File Integrity + +The sha256 of the zip files you will download from us are the following: + +``` +a67ba94bcc6db3d94785d1eff4d29c0ff37d782d9a3e76b3a04827b270ba56c8 +``` + +On macOS, you can check it by running this command in the directory where you have the file: + +`shasum -a 256 sphinx_greenlight_0_2.img.zip` + ## Backing Up Your Funds and Data All you need to do is backup the file `home/pi/sphinx.db` and the file `home/pi/sphinx-relay/creds/hsm_secret` @@ -28,16 +41,3 @@ Here's how you can connect your sphinx chat app to your raspberry pi at home. 4. Go to the advanced page in your sphinx chat app, and point the server setting to the domain name provided by your dynamic DNS service. 5. Done! Congratulations, you are now able to use your sphinx chat app wherever you go! -## File Integrity - -The sha256 of the zip files you will download from us are the following: - -``` -87079b8a0ff8ff5911ef68d66d46364c5dc71ec07b744d85e4bf9cdbc63375ee sphinx_greenlight_0_1.img.zip -a67ba94bcc6db3d94785d1eff4d29c0ff37d782d9a3e76b3a04827b270ba56c8 sphinx_greenlight_0_2.img.zip -``` - -On macOS, you can check it by running this command in the directory where you have the file: - -`shasum -a 256 sphinx_greenlight_0_1.img.zip` -
0
diff --git a/articles/quickstart/spa/vuejs/_includes/_centralized_login.md b/articles/quickstart/spa/vuejs/_includes/_centralized_login.md @@ -87,7 +87,6 @@ class AuthService { } else if (err) { this.logout() console.log(err) - alert(`Could not get a new token (<%= "${err.error}" %>: <%= "${err.error_description}" %>).`) } }) }
2
diff --git a/editor.js b/editor.js @@ -2669,6 +2669,20 @@ Promise.all([ } }); + // double-click to focus + renderer.domElement.addEventListener('dblclick', async e => { + const hoverObject = weaponsManager.getMouseHoverObject(); + if (hoverObject) { + camera.quaternion.setFromRotationMatrix( + localMatrix.lookAt( + camera.position, + hoverObject.position, + localVector.set(0, 1, 0), + ) + ); + } + }); + const contextMenuMesh = _makeContextMenuMesh(mouseUiMesh); scene.add(contextMenuMesh); app.addEventListener('frame', () => {
0
diff --git a/Source/Core/Event.js b/Source/Core/Event.js /*global define*/ define([ + './Check', './defined', - './defineProperties', - './DeveloperError' + './defineProperties' ], function( + Check, defined, - defineProperties, - DeveloperError) { + defineProperties) { 'use strict'; /** @@ -65,9 +65,7 @@ define([ */ Event.prototype.addEventListener = function(listener, scope) { //>>includeStart('debug', pragmas.debug); - if (typeof listener !== 'function') { - throw new DeveloperError('listener is required and must be a function.'); - } + Check.typeOf.func('listener', listener); //>>includeEnd('debug'); this._listeners.push(listener); @@ -91,9 +89,7 @@ define([ */ Event.prototype.removeEventListener = function(listener, scope) { //>>includeStart('debug', pragmas.debug); - if (typeof listener !== 'function') { - throw new DeveloperError('listener is required and must be a function.'); - } + Check.typeOf.func('listener', listener); //>>includeEnd('debug'); var listeners = this._listeners;
14
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -763,13 +763,26 @@ metaversefile.setApi({ fn(e.data); }; world.appManager.addEventListener('frame', frame); - app.addEventListener('destroy', () => { + const destroy = () => { + cleanup(); + }; + app.addEventListener('destroy', destroy); + + const cleanup = () => { world.appManager.removeEventListener('frame', frame); - }); + app.removeEventListener('destroy', destroy); + }; + + return { + cleanup, + }; } else { throw new Error('useFrame cannot be called outside of render()'); } }, + clearFrame(frame) { + frame.cleanup(); + }, useBeforeRender() { recursion++; if (recursion === 1) {
0
diff --git a/components/app/explore/DatasetList.js b/components/app/explore/DatasetList.js @@ -11,6 +11,7 @@ class DatasetList extends PureComponent { static propTypes = { list: PropTypes.array, user: PropTypes.object, + routes: PropTypes.object, mode: PropTypes.string, showActions: PropTypes.bool.isRequired, showFavorite: PropTypes.bool.isRequired, @@ -18,7 +19,7 @@ class DatasetList extends PureComponent { }; render() { - const { list, mode, showActions, showFavorite, user, onTagSelected } = this.props; + const { list, mode, showActions, showFavorite, user, routes, onTagSelected } = this.props; const newClassName = classNames({ column: true, @@ -26,7 +27,7 @@ class DatasetList extends PureComponent { [`-${mode}`]: true, 'small-12': true, 'medium-6': mode === 'grid', - 'xxlarge-4': mode === 'grid' + [routes.pathname === '/app/Explore' ? 'xxlarge-4' : 'large-4']: mode === 'grid' }); return ( @@ -54,6 +55,7 @@ class DatasetList extends PureComponent { export default connect( state => ({ - user: state.user + user: state.user, + routes: state.routes }) )(DatasetList);
4
diff --git a/app/views/admin/user_detail.html.haml b/app/views/admin/user_detail.html.haml = link_to "Delete user photo", admin_update_user_path( @display_user.id, icon_delete: true ), method: :put, :data => {:confirm => t(:are_you_sure_no_undo)}, class: "btn btn-block btn-danger" - = link_to t(:delete_user), @display_user, :method => :delete, | - :data => {:confirm => t(:are_you_really_sure_want_delete_this_user)}, | - class: "btn btn-block btn-danger" + = link_to t(:delete_user), user_url( @display_user, confirmation: @display_user.login, confirmation_code: @display_user.login), method: :delete, data: { confirm: t(:are_you_really_sure_want_delete_this_user) }, class: "btn btn-block btn-danger" = separator - extra = capture do = link_to comments_by_login_path(@display_user.login), class: "list-group-item" do
1
diff --git a/ReviewQueueHelper.user.js b/ReviewQueueHelper.user.js // @description Keyboard shortcuts, skips accepted questions and audits (to save review quota) // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 1.8.6 +// @version 1.8.7 // // @include https://*stackoverflow.com/review* // @include https://*serverfault.com/review* @@ -571,7 +571,7 @@ async function waitForSOMU() { } // Modify buttons - $('.review-actions input').val(function(i, v) { + $('.review-actions input').removeAttr('disabled').val(function(i, v) { if(v.includes('] ')) return v; // do not modify twice return '[' + (i+1) + '] ' + v; });
2
diff --git a/src/compiler/lexer.imba1 b/src/compiler/lexer.imba1 @@ -963,7 +963,7 @@ export class Lexer elif typ == '$' and !colon typ = 'IDENTIFIER' - elif id == 'elif' + elif id == 'elif' and !forcedIdentifier token 'ELSE', 'elif', id:length token 'IF', 'if' return id:length @@ -1044,8 +1044,7 @@ export class Lexer if prev.@type == 'UNARY' prev.@type = 'NOT' - if id == 'super' - typ = 'SUPER' + # do we really want to check this here if !forcedIdentifier @@ -1061,7 +1060,7 @@ export class Lexer when '!','not' then typ = 'UNARY' when '==', '!=', '===', '!==','is','isnt' then typ = 'COMPARE' when '&&', '||','and','or' then typ = 'LOGIC' - when 'break', 'continue', 'debugger','arguments' then typ = id.toUpperCase + when 'super','break', 'continue', 'debugger','arguments' then typ = id.toUpperCase # when 'true', 'false', 'null', 'undefined' then typ = 'BOOL' # really?
11
diff --git a/src/react/radio/radio_group.js b/src/react/radio/radio_group.js @@ -16,7 +16,7 @@ export class RadioGroup extends React.Component { render() { const {name, children, onChange, className, value, ...others} = this.props; - const radioProps = onChange ? {name, onChange} : {name}; + const radioProps = onChange ? {name, onChange} : {name, readOnly: true}; return ( <div {...{...others, className: classnames('pui-radio-group', className)}}>
12
diff --git a/tools/make/lib/ls/pkgs/standalones.mk b/tools/make/lib/ls/pkgs/standalones.mk #/ # @license Apache-2.0 # -# Copyright (c) 2017 The Stdlib Authors. +# Copyright (c) 2021 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # VARIABLES # # Define the path of the executable: -LIST_PACKAGE_STANDALONES ?= $(TOOLS_PKGS_DIR)/pkgs/standalones/bin/cli +LIST_PKGS_STANDALONES ?= $(TOOLS_PKGS_DIR)/pkgs/standalones/bin/cli # Define the command flags: -LIST_PACKAGE_STANDALONES_FLAGS ?= +LIST_PKGS_STANDALONES_FLAGS ?= # Define the directory from which to search for packages: -LIST_PACKAGE_STANDALONES_DIR ?= $(SRC_DIR) +LIST_PKGS_STANDALONES_DIR ?= $(SRC_DIR) # RULES # @@ -33,15 +33,15 @@ LIST_PACKAGE_STANDALONES_DIR ?= $(SRC_DIR) #/ # Prints a list of all standalone package names. # -# @param {string} [LIST_PACKAGE_STANDALONES_DIR] - absolute path of the directory from which to search for packages (default: source directory) +# @param {string} [LIST_PKGS_STANDALONES_DIR] - absolute path of the directory from which to search for packages (default: source directory) # # @example # make list-pkgs-standalones # # @example -# make list-pkgs-standalones LIST_PACKAGE_STANDALONES_DIR=$PWD/lib/node_modules/\@stdlib/utils +# make list-pkgs-standalones LIST_PKGS_STANDALONES_DIR=$PWD/lib/node_modules/\@stdlib/utils #/ -list-pkgs-standalones: $(LIST_PACKAGE_STANDALONES) $(NODE_MODULES) - $(QUIET) NODE_PATH="$(NODE_PATH)" $(NODE) $(LIST_PACKAGE_STANDALONES) $(LIST_PACKAGE_STANDALONES_FLAGS) $(LIST_PACKAGE_STANDALONES_DIR) +list-pkgs-standalones: $(LIST_PKGS_STANDALONES) $(NODE_MODULES) + $(QUIET) NODE_PATH="$(NODE_PATH)" $(NODE) $(LIST_PKGS_STANDALONES) $(LIST_PKGS_STANDALONES_FLAGS) $(LIST_PKGS_STANDALONES_DIR) .PHONY: list-pkgs-standalones
10
diff --git a/src/technologies/s.json b/src/technologies/s.json }, "headers": { "x-shopid": "\\;confidence:50", - "x-shopify-stage": "\\;confidence:50" + "x-shopify-stage": "" }, + "xhr": "\\.myshopify\\.com", "icon": "Shopify.svg", "js": { "Shopify": "\\;confidence:25",
7
diff --git a/src/node/sockets/node-server/sockets/node-server.js b/src/node/sockets/node-server/sockets/node-server.js let io = require('socket.io'); const colors = require('colors/safe'); -const https = require('https'); import consts from 'consts/const_global' import SocketExtend from 'common/sockets/socket-extend' @@ -37,12 +36,6 @@ class NodeServer { try { let server = null; - - let options = { - // key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - // cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') - }; - try { server = io({ maxHttpBufferSize:consts.SOCKET_MAX_SIZE_BYRES, @@ -51,7 +44,6 @@ class NodeServer { } catch(Exception){ console.log("Error Importing io() library", Exception.toString()); } - this.nodeServer = server; server.on("connection", socket => { @@ -72,49 +64,29 @@ class NodeServer { }); try { - console.log("SERVER typeof", typeof server); //multiple ports, but doesn't work let port = process.env.SERVER_PORT||consts.NODE_PORT; - try{ - - https.createServer(options, function (req, res) { - res.writeHead(200); - res.end("hello world\n"); - }).listen(port); - // server.listen (port); - + server.listen (port); } catch (Exception) { - console.log( colors.red("Couldn't open server on port ", port, " try next port") ); - - https.createServer(options, function (req, res) { - res.writeHead(200); - res.end("hello world\n"); - }).listen(port+1); - // server.listen (port+1); - + server.listen (port+1); } } catch(Exception){ - - console.log("Error Calling node-server.listen", Exception.toString()); - + console.log("Error Calling node_server.listen", Exception.toString()); } } catch(Exception){ - console.log("Error Starting Node Server ", Exception.toString()); return false; - } console.log("Node Server Started"); return true; - } @@ -131,7 +103,6 @@ class NodeServer { socket.node.protocol.propagation.initializePropagation(); socket.node.protocol.signaling.server.initializeSignalingServerService(); - }
13
diff --git a/lib/core.js b/lib/core.js @@ -334,8 +334,19 @@ impress.start = () => { // Establish IPC processing const ipcStart = () => { + if (impress.isMaster) { process.on('SIGINT', impress.shutdown); process.on('SIGTERM', impress.shutdown); + process.on('SIGHUP', impress.shutdown); + + process.stdin.setRawMode(true); + process.stdin.on('data', (data) => { + const key = data[0]; + if (key === 3) { + impress.shutdown(); + } + }); + } if (impress.isWorker) { process.on('message', message => {
4
diff --git a/components/mapbox/ban-map/index.js b/components/mapbox/ban-map/index.js @@ -3,9 +3,12 @@ import PropTypes from 'prop-types' import bboxPolygon from '@turf/bbox-polygon' import booleanContains from '@turf/boolean-contains' +import theme from '@/styles/theme' + import CenterControl from '../center-control' +import SwitchPaintLayer from '../switch-paint-layer' -import {adresseCircleLayer, adresseLabelLayer, adresseCompletLabelLayer, voieLayer, toponymeLayer} from './layers' +import {adresseCircleLayer, adresseLabelLayer, adresseCompletLabelLayer, voieLayer, toponymeLayer, sources} from './layers' import popupFeatures from './popups' import {forEach} from 'lodash' @@ -33,6 +36,22 @@ const ZOOM_RANGE = { } } +const sourcesLayerPaint = { + type: 'categorical', + property: 'sourcePosition', + stops: Object.keys(sources).map(key => { + const {color} = sources[key] + return [key, color] + }) +} + +const defaultLayerPaint = [ + 'case', + ['==', ['get', 'sourcePosition'], 'bal'], + theme.successBorder, + theme.warningBorder +] + const isFeatureContained = (container, content) => { const polygonA = bboxPolygon(container) const polygonB = bboxPolygon(content) @@ -41,6 +60,7 @@ const isFeatureContained = (container, content) => { function BanMap({map, isSourceLoaded, popup, address, setSources, setLayers, onSelect}) { const [isCenterControlDisabled, setIsCenterControlDisabled] = useState(false) + const [isSourcesLegendActive, setIsSourcesLegendActive] = useState(false) const onLeave = useCallback(() => { if (hoveredVoieId) { @@ -117,10 +137,28 @@ function BanMap({map, isSourceLoaded, popup, address, setSources, setLayers, onS } }, [map, address]) + const editPaintProperties = useCallback(() => { + if (isSourcesLegendActive) { + map.setPaintProperty(adresseCircleLayer.id, 'circle-color', sourcesLayerPaint) + map.setPaintProperty(adresseLabelLayer.id, 'text-color', sourcesLayerPaint) + map.setPaintProperty(adresseCompletLabelLayer.id, 'text-color', sourcesLayerPaint) + } else { + map.setPaintProperty(adresseCircleLayer.id, 'circle-color', defaultLayerPaint) + map.setPaintProperty(adresseLabelLayer.id, 'text-color', defaultLayerPaint) + map.setPaintProperty(adresseCompletLabelLayer.id, 'text-color', defaultLayerPaint) + } + }, [map, isSourcesLegendActive]) + useEffect(() => { isAddressVisible() }, [address, isAddressVisible]) + useEffect(() => { + if (isSourceLoaded) { + editPaintProperties() + } + }, [isSourceLoaded, editPaintProperties]) + useEffect(() => { map.off('dragend', isAddressVisible) map.off('zoomend', isAddressVisible) @@ -213,7 +251,10 @@ function BanMap({map, isSourceLoaded, popup, address, setSources, setLayers, onS }, [map, isSourceLoaded, address, setLayers]) return ( + <> <CenterControl isDisabled={isCenterControlDisabled} handleClick={centerAddress} /> + <SwitchPaintLayer isActive={isSourcesLegendActive} handleClick={() => setIsSourcesLegendActive(!isSourcesLegendActive)} /> + </> ) }
0
diff --git a/token-metadata/0xA8b919680258d369114910511cc87595aec0be6D/metadata.json b/token-metadata/0xA8b919680258d369114910511cc87595aec0be6D/metadata.json "symbol": "LYXE", "address": "0xA8b919680258d369114910511cc87595aec0be6D", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/Note.js b/src/Note.js @@ -5,21 +5,22 @@ import {Utilities} from "./Utilities.js"; * The `Note` class represents a single musical note such as `"D3"`, `"G#4"`, `"F-1"`, `"Gb7"`, etc. * * `Note` objects can be played back on a single channel by calling - * [OutputChannel.playNote()]{@link OutputChannel#playNote} or on multiple channels of the same - * output by calling [Output.playNote()]{@link Output#playNote}. + * [`OutputChannel.playNote()`]{@link OutputChannel#playNote} or, on multiple channels of the same + * output, by calling [`Output.playNote()`]{@link Output#playNote}. * - * The note has attack and release velocities set at 0.5 by default. These can be changed by passing - * in the appropriate option. It is also possible to set a system-wide default for attack and - * release velocities by using the `WebMidi.defaults` property. + * The note has [`attack`](#attack) and [`release`](#release) velocities set at 0.5 by default. + * These can be changed by passing in the appropriate option. It is also possible to set a + * system-wide default for attack and release velocities by using the + * [`WebMidi.defaults`](WebMidi#defaults) property. * - * If you prefer to use raw MIDI values (0-127), you can use `rawAttack` and `rawRelease` to both - * get and set the values. + * If you prefer to work with raw MIDI values (0-127), you can use [`rawAttack`](#rawAttack) and + * [`rawRelease`](#rawRelease) to both get and set the values. * - * The note may have a duration. If it does, playback will be automatically stopped when the - * duration has elapsed by sending a **noteoff** event. By default, the duration is set to + * The note may have a [`duration`](#duration). If it does, playback will be automatically stopped + * when the duration has elapsed by sending a `"noteoff"` event. By default, the duration is set to * `Infinity`. In this case, it will never stop playing unless explicitly stopped by calling a - * method such as [OutputChannel.stopNote()]{@link OutputChannel#stopNote}, - * [Output.stopNote()]{@link Output#stopNote} or similar. + * method such as [`OutputChannel.stopNote()`]{@link OutputChannel#stopNote}, + * [`Output.stopNote()`]{@link Output#stopNote} or similar. * * @param value {string|number} The value used to create the note. If an identifier string is used, * it must start with the note letter, optionally followed by an accidental and followed by the
7
diff --git a/includes/Modules/AdSense.php b/includes/Modules/AdSense.php @@ -528,9 +528,12 @@ tag_partner: "site_kit" case 'earnings': $data = array_merge( array( - 'dateRange' => 'last-28-days', - 'dimensions' => '', - ) + // Named date range slug. + 'dateRange' => array( 'last-28-days' ), + // Array of dimension strings. + 'dimensions' => array(), + ), + $data ); $dates = $this->date_range_to_dates( $data['dateRange'] ); @@ -541,8 +544,7 @@ tag_partner: "site_kit" list ( $start_date, $end_date ) = $dates; - $dimensions = $data['dimensions']; - $dimensions = is_string( $dimensions ) ? explode( ',', $dimensions ) : (array) $dimensions; + $dimensions = (array) $data['dimensions']; $args = compact( 'start_date', 'end_date', 'dimensions' ); if ( isset( $data['limit'] ) ) {
3
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,21 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master where X.Y.Z is the semver of most recent plotly.js release. +## [1.39.2] -- 2018-07-16 + +### Fixed +- Fix scattergl selection after resize relayouts [#2801] +- Fix scattergl layout replot edits [#2793] +- Fix cartesian axis range animations (bug introduced in 1.37.0) [#2788] +- Fix contour labels that require thousands suffixes [#2806] +- Fix 'legendonly' legend items link to array `marker.symbol` [#2816] +- Fix handling of duplicate points under `line.simplify` [#2814] +- Fix transform removal via `Plotly.react` [#2805] +- Fix out-of-subplot scroll zoom on some geo projection types [#2811] +- Fix hover label in RTL pages [#2790] +- Reduce minified bundle back to their 1.39.0 sizes [#2792] + + ## [1.39.1] -- 2018-07-09 ### Fixed
3
diff --git a/src/Engines/Markdown.js b/src/Engines/Markdown.js @@ -16,6 +16,15 @@ class Markdown extends TemplateEngine { setLibrary(mdLib) { this.mdLib = mdLib || markdownIt(this.getMarkdownOptions()); + + // Overrides a highlighter set in `markdownOptions` + // This is separate so devs can pass in a new mdLib and still use the official eleventy plugin for markdown highlighting + if (this.config.markdownHighlighter) { + this.mdLib.set({ + highlight: this.config.markdownHighlighter + }); + } + this.setEngineLib(this.mdLib); }
5
diff --git a/token-metadata/0x52132a43D7cAE69B23abE77B226fA1a5BC66b839/metadata.json b/token-metadata/0x52132a43D7cAE69B23abE77B226fA1a5BC66b839/metadata.json "symbol": "TMPL", "address": "0x52132a43D7cAE69B23abE77B226fA1a5BC66b839", "decimals": 9, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/codegen/types/conversions.js b/src/codegen/types/conversions.js @@ -143,9 +143,9 @@ const ASSEMBLYSCRIPT_TO_ETHEREUM_VALUE = [ /^string\[([0-9]+)?\]$/, code => `ethereum.Value.fromStringArray(${code})`, ], - ['Tuple', 'tuple', code => `ethereum.Value.fromTuple(${code})`], + ['ethereum.Tuple', 'tuple', code => `ethereum.Value.fromTuple(${code})`], [ - 'Array<Tuple>', + 'Array<ethereum.Tuple>', /^tuple\[([0-9]+)?\]$/, code => `ethereum.Value.fromTupleArray(${code})`, ],
14
diff --git a/app/views/leaderboard.scala.html b/app/views/leaderboard.scala.html } m</td> } } else { - @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 5280) { + @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 2500) { <td class="leaderboard-table-font">@{ "%.1f".format(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 / 5280) } miles</td> } m</td> } } else { - @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 5280) { + @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 2500) { <td class="leaderboard-table-font">@{ "%.1f".format(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 / 5280) } miles</td> } m</td> } } else { - @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 5280) { + @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 2500) { <td class="leaderboard-table-font">@{ "%.1f".format(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 / 5280) } miles</td> } m</td> } } else { - @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 5280) { + @if(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 > 2500) { <td class="leaderboard-table-font">@{ "%.1f".format(stat.asInstanceOf[LeaderboardStat].distanceMeters.asInstanceOf[Float] * 3.28 / 5280) } miles</td>
3
diff --git a/contribs/gmf/src/directives/print.js b/contribs/gmf/src/directives/print.js @@ -789,9 +789,10 @@ gmf.PrintController.prototype.print = function(format) { } } - // Get the print native angle parameter for WMS layers - if (layer instanceof ol.layer.Image) { - print_native_angle = layer.get('printNativeAngle'); + // Get the print native angle parameter for WMS layers when set to not use default value + // Is applied only once when the value is overridden with a metadata from administration + if (layer instanceof ol.layer.Image && layer.get('printNativeAngle') === false) { + print_native_angle = false; } new_ol_layers.push(layer);
12
diff --git a/token-metadata/0x4f3AfEC4E5a3F2A6a1A411DEF7D7dFe50eE057bF/metadata.json b/token-metadata/0x4f3AfEC4E5a3F2A6a1A411DEF7D7dFe50eE057bF/metadata.json "symbol": "DGX", "address": "0x4f3AfEC4E5a3F2A6a1A411DEF7D7dFe50eE057bF", "decimals": 9, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/token-metadata/0x0a50C93c762fDD6E56D86215C24AaAD43aB629aa/metadata.json b/token-metadata/0x0a50C93c762fDD6E56D86215C24AaAD43aB629aa/metadata.json "symbol": "LGO", "address": "0x0a50C93c762fDD6E56D86215C24AaAD43aB629aa", "decimals": 8, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/source/views/menu/MenuButtonView.js b/source/views/menu/MenuButtonView.js @@ -73,6 +73,15 @@ const MenuButtonView = Class({ */ menuView: null, + /** + Property: O.MenuButtonView#destroyMenuViewOnClose + Type: Boolean + + If the menu view is regenerated each time it is opened, set this to + true to destroy the view when the pop over is closed. + */ + destroyMenuViewOnClose: false, + /** Property: O.MenuButtonView#alignMenu Type: String @@ -124,9 +133,10 @@ const MenuButtonView = Class({ if ( !this.get( 'isActive' ) && !this.get( 'isDisabled' ) ) { this.set( 'isActive', true ); const buttonView = this; + const menuView = this.get( 'menuView' ); let popOverView, menuOptionView; const popOverOptions = Object.assign({ - view: this.get( 'menuView' ), + view: menuView, alignWithView: buttonView, alignEdge: this.get( 'alignMenu' ), onHide () { @@ -135,6 +145,9 @@ const MenuButtonView = Class({ menuOptionView.removeObserverForKey( 'isFocused', popOverView, 'hide' ); } + if ( buttonView.get( 'destroyMenuViewOnClose' ) ) { + menuView.destroy(); + } }, }, this.get( 'popOverOptions' ) ); if ( this.get( 'isInMenu' ) ) {
0
diff --git a/src/components/drawing/index.js b/src/components/drawing/index.js @@ -47,6 +47,17 @@ drawing.setRect = function(s, x, y, w, h) { s.call(drawing.setPosition, x, y).call(drawing.setSize, w, h); }; +/** Translate / remove node + * + * @param {object} d : calcdata point item + * @param {sel} sel : d3 selction of node to translate + * @param {object} xa : corresponding full xaxis object + * @param {object} ya : corresponding full yaxis object + * + * @return {boolean} : + * true if selection got translated + * false if selection got removed + */ drawing.translatePoint = function(d, sel, xa, ya) { // put xp and yp into d if pixel scaling is already done var x = d.xp || xa.c2p(d.x), @@ -59,8 +70,12 @@ drawing.translatePoint = function(d, sel, xa, ya) { } else { sel.attr('transform', 'translate(' + x + ',' + y + ')'); } + } else { + sel.remove(); + return false; } - else sel.remove(); + + return true; }; drawing.translatePoints = function(s, xa, ya, trace) {
0
diff --git a/jobs/webcast.js b/jobs/webcast.js @@ -64,19 +64,7 @@ module.exports = async () => { responseType: 'json', }); const pastYoutubeId = pastLaunches.docs[0].links.youtube_id; - if (youtubeId === pastYoutubeId) { - logger.info('Past youtube id matches, skipping...'); - await got.patch(`${SPACEX_API}/launches/${launchId}`, { - json: { - 'links.webcast': null, - 'links.youtube_id': null, - }, - headers: { - 'spacex-key': SPACEX_KEY, - }, - }); - return; - } + if (youtubeId !== pastYoutubeId) { await got.patch(`${SPACEX_API}/launches/${launchId}`, { json: { 'links.webcast': `${YOUTUBE_PREFIX}/${youtubeId}`, @@ -93,6 +81,8 @@ module.exports = async () => { matchRatio: ratio, match: true, }); + } + logger.info('Past youtube id matches, skipping...'); } else { logger.info({ rawMission: youtubeTitle,
11
diff --git a/packages/cx/src/widgets/form/UploadButton.d.ts b/packages/cx/src/widgets/form/UploadButton.d.ts @@ -25,10 +25,10 @@ interface UploadButtonProps extends FieldProps { /** Name of the icon to be put on the left side of the button. */ icon?: Cx.StringProp; - onUploadStarting?: (xhr: XMLHttpRequest, instance: any, file: File, formData: FormData) => boolean; - onUploadComplete?: (xhr: XMLHttpRequest, instance: any, file: File, formData: FormData) => void; - onUploadProgress?: (event: ProgressEvent, instance: any, file: File, formData: FormData) => void; - onUploadError?: (event: ProgressEvent, instance: any, file: File, formData: FormData) => void; + onUploadStarting?: ((xhr: XMLHttpRequest, instance: any, file: File, formData: FormData) => boolean) | string; + onUploadComplete?: ((xhr: XMLHttpRequest, instance: any, file: File, formData: FormData) => void) | string; + onUploadProgress?: ((event: ProgressEvent, instance: any, file: File, formData: FormData) => void) | string; + onUploadError?: ((event: ProgressEvent, instance: any, file: File, formData: FormData) => void) | string; } export class UploadButton extends Cx.Widget<UploadButtonProps> {}
0
diff --git a/contracts/mockContracts/TokenNoDecimals.sol b/contracts/mockContracts/TokenNoDecimals.sol @@ -164,7 +164,7 @@ contract StandardToken is BasicToken, ERC20 { * to the creator. Note they can later distribute these tokens * as they wish using `transfer` and other `StandardToken` functions. */ -contract TokenNoDecimalApi is StandardToken { +contract TokenNoDecimal is StandardToken { string public name = "Test"; string public symbol = "TST";
13
diff --git a/.travis.yml b/.travis.yml @@ -13,10 +13,6 @@ jobs: language: node_js node_js: '7' script: yarn test - - stage: security tests on python - script: echo WIP - - stage: security tests on node_js - script: echo WIP - stage: deploy to staging script: skip deploy: &script
2
diff --git a/angular/projects/spark-angular/src/lib/components/sprk-masthead/directives/sprk-masthead-logo/sprk-masthead-logo.directive.spec.ts b/angular/projects/spark-angular/src/lib/components/sprk-masthead/directives/sprk-masthead-logo/sprk-masthead-logo.directive.spec.ts import { Component } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { SprkMastheadLogoDirective } from './sprk-masthead-Logo.directive'; +import { SprkMastheadLogoDirective } from './sprk-masthead-logo.directive'; @Component({ selector: 'sprk-test',
3
diff --git a/articles/monitoring/sending-events-to-segmentio.md b/articles/monitoring/sending-events-to-segmentio.md --- -description: How to send events to segment.io from Auth0. +description: How to send events to segment.io from Auth0 --- # Send Auth0 Events to Segment @@ -7,20 +7,20 @@ description: How to send events to segment.io from Auth0. This example shows how you can connect Auth0 to Segment and stream `signup` and `login` events. You'll be using [Segment's Node.js library](https://github.com/segmentio/analytics-node) to record Auth0 data. -![](/media/articles/monitoring/segment/segment-io-dataflow.png) +![Segment Flow](/media/articles/monitoring/segment/segment-io-dataflow.png) -## How to Find Your Segment Write Key +## Find your Segment Write Key -To configure this integration, you'll need your Segment **write key**. You can find this under **Settings** > **API**. +To configure this integration, you'll need your Segment **Write Key**. You can find this under **Settings** > **API**. -![](/media/articles/monitoring/segment/segment-3.png) +![Segment API Keys](/media/articles/monitoring/segment/segment-3.png) -## Record Sign Up and Login Events in Segment +## Record sign up and login events To record Auth0 signup and login events and send the information to Segment, you will create a [rule](/rules) implementing Segment's Node.js library. ::: note -Be sure to add your **Write Key** to the [Global Configuration Object](/rules/current#using-the-configuration-object) prior to running your rule. +Be sure to add your **Write Key** to the [Global Configuration Object](/rules#using-the-configuration-object) prior to running your rule. ::: ```js @@ -64,8 +64,8 @@ function(user, context, callback) { } ``` -## Check Your Integration +## Check your integration -To see if your integration works, you can check the Segment Debugger to see if your Auth0 events are appearing: +To see if your integration works, you can check the Segment Debugger to see if your Auth0 events are appearing. -![](/media/articles/monitoring/segment/segment-14.png) \ No newline at end of file +![Segment Debugger](/media/articles/monitoring/segment/segment-14.png)
0
diff --git a/index.js b/index.js @@ -12,7 +12,7 @@ const server = new ApolloServer({ }) server - .listen() + .listen({ port: process.env.PORT || 4000 }) .then(({ url }) => `GraphQL Server listening on ${url}`) .then(console.log) .catch(console.error) \ No newline at end of file
11
diff --git a/articles/libraries/lock-ios/v2/save-and-refresh-jwt-tokens.md b/articles/libraries/lock-ios/v2/save-and-refresh-jwt-tokens.md @@ -5,7 +5,7 @@ description: Keeping your user logged in # Lock iOS: Saving and Renewing Tokens -When an authentication is performed with the `offline_access` scope included, it will return a [refresh token](/refresh-token) that can be used to request a new user token and avoid asking the user his/her credentials again. +When an authentication is performed with the `offline_access` scope included, it will return a [refresh token](/refresh-token) that can be used to request a new user token, without asking for credentials again. ## Credentials Manager
2