code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js @@ -913,7 +913,7 @@ axes.calcTicks = function calcTicks(ax, opts) { var prevX = null; var x = x0; - var id; + var majorId; if(major) { // ids for ticklabelstep @@ -930,7 +930,7 @@ axes.calcTicks = function calcTicks(ax, opts) { } } - id = Math.round(( + majorId = Math.round(( ax.r2l(x) - ax.r2l(ax.tick0) ) / _dTick) - 1; @@ -949,7 +949,7 @@ axes.calcTicks = function calcTicks(ax, opts) { if(major && isPeriod) { // add one item to label period before tick0 x = axes.tickIncrement(x, dtick, !axrev, calendar); - id--; + majorId--; } for(; @@ -963,7 +963,7 @@ axes.calcTicks = function calcTicks(ax, opts) { calendar ) ) { - if(major) id++; + if(major) majorId++; if(mockAx.rangebreaks) { if(!axrev) { @@ -984,7 +984,7 @@ axes.calcTicks = function calcTicks(ax, opts) { obj.simpleLabel = true; } - if(ticklabelstep > 1 && id % ticklabelstep) { + if(ticklabelstep > 1 && majorId % ticklabelstep) { obj.skipLabel = true; }
10
diff --git a/.github/workflows/php-tests.yml b/.github/workflows/php-tests.yml @@ -30,6 +30,7 @@ jobs: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 with: + extensions: mbstring, intl, redis, pdo_mysql php-version: ${{ matrix.php }} - name: Start MySQL run: sudo service mysql start @@ -45,7 +46,7 @@ jobs: env: WP_VERSION: ${{ matrix.wordpress }} - name: Set WordPress version - if: ${{ matrix.wordpress != 'latest-stable' || matrix.wordpress == 'latest-stable (multisite)' || matrix.wordpress == 'nightly' }} + if: ${{ !(matrix.wordpress == 'latest-stable' || matrix.wordpress == 'latest-stable (multisite)' || matrix.wordpress == 'nightly') }} run: echo "WP_VERSION=$WP_VERSION" >> $GITHUB_ENV env: WP_VERSION: ${{ matrix.wordpress }}
12
diff --git a/src/ns_rebalancer.erl b/src/ns_rebalancer.erl @@ -1335,8 +1335,7 @@ do_run_graceful_failover_moves(Node, BucketName, BucketConfig, I, N) -> check_graceful_failover_possible(Node, BucketsAll) -> case check_graceful_failover_possible_rec(Node, BucketsAll) of false -> false; - [] -> false; - [_|_] -> true + _ -> true end. check_graceful_failover_possible_rec(_Node, []) ->
11
diff --git a/js/views/modals/orderDetail/summaryTab/Summary.js b/js/views/modals/orderDetail/summaryTab/Summary.js @@ -179,6 +179,10 @@ export default class extends BaseVw { e.jsonData.notification.refund.orderId === this.model.id) { // A notification the buyer will get when the vendor has refunded their order. this.model.fetch(); + } else if (e.jsonData.notification.orderFulfillment && + e.jsonData.notification.orderFulfillment.orderId === this.model.id) { + // A notification the buyer will get when the vendor has fulfilled their order. + this.model.fetch(); } } });
9
diff --git a/js/index.js b/js/index.js geoJSONPromise.then(function(response) { // Iterate on features in order to discard features without geometry var cleanedGeoJSONFeatures = []; - turf.featureEach(response, function(feature) { + turf.flattenEach(response, function(feature) { if (turf.getGeom(feature)) { var maybeBufferedFeature = feature; // Eventually buffer GeoJSON
9
diff --git a/.eslintrc b/.eslintrc "prettier/flowtype", "prettier/react" ], - "plugins": [ - "dependencies", - "flowtype", - "import", - "prettier", - "react", - "react-hooks" - ], + "plugins": ["dependencies", "flowtype", "import", "prettier", "react", "react-hooks"], "settings": { "react": { "pragma": "React", }, "import/resolver": { "node": { - "paths": [ - "src" - ], - "extensions": [ - ".js", - ".android.js", - ".ios.js", - ".web.js", - ".native.js" - ] + "paths": ["src"], + "extensions": [".js", ".android.js", ".ios.js", ".web.js", ".native.js"] } }, "dependencies/resolver": { "node": { - "paths": [ - "src" - ] + "paths": ["src"] }, - "extensions": [ - ".js", - ".android.js", - ".ios.js", - ".web.js", - ".native.js" - ] + "extensions": [".js", ".android.js", ".ios.js", ".web.js", ".native.js"] } }, "rules": { "import/order": [ "warn", { - "groups": [ - "builtin", - "external", - "internal", - "parent", - "sibling", - "index" - ] + "groups": ["builtin", "external", "internal", "parent", "sibling", "index"] } ], "sort-imports": [ "no-console": [ "warn", { - "allow": [ - "info" - ] + "allow": ["info"] } ], "no-await-in-loop": "warn", "properties": "never" } ], - "comma-dangle": [ - "warn", - "only-multiline" - ], + "comma-dangle": ["warn", "only-multiline"], "comma-spacing": "warn", "computed-property-spacing": "warn", "lines-between-class-members": "warn", "allowClassEnd": false } ], - "no-negated-condition": "warn" + "no-negated-condition": "warn", + "space-before-function-paren": "off" } }
0
diff --git a/src/RunWrappers/DockerUtils.js b/src/RunWrappers/DockerUtils.js @@ -104,14 +104,19 @@ function checkRunning(port, host, next) { var net = require('net'); var socket = net.createConnection(port, host); var start = new Date(); - var timer; var finished; - socket.on('connect', function () { - timer = setTimeout(function () { socket.end(); }, 200); + + socket.setTimeout(200); + socket.on('timeout', function () { + socket.end(); + }); + socket.on('data', function () { + finished = true; + socket.end(); + next(null, true); }); socket.on('close', function (hadError) { - if (hadError) return; // If we are closing due to an error ignore it - clearTimeout(timer); + if (hadError) return; var closed = new Date() - start; if (!finished) { finished = true; @@ -173,8 +178,7 @@ function startContainer(bosco, docker, fqn, options, container, next) { bosco.warn('Could not detect if ' + options.name.green + ' had started on port ' + ('' + checkPort).magenta + ' after ' + checkTimeout + 'ms'); return next(); } - - setTimeout(check, 50); + setTimeout(check, 200); }); } bosco.log('Waiting for ' + options.name.green + ' to respond at ' + checkHost.magenta + ' on port ' + ('' + checkPort).magenta);
7
diff --git a/src/core/Core.js b/src/core/Core.js @@ -87,7 +87,6 @@ class Uppy { this.upload = this.upload.bind(this) this.emitter = ee() - this.on = this.emitter.on.bind(this.emitter) this.off = this.emitter.off.bind(this.emitter) this.once = this.emitter.once.bind(this.emitter) this.emit = this.emitter.emit.bind(this.emitter) @@ -126,6 +125,11 @@ class Uppy { } } + on (event, callback) { + this.emitter.on(event, callback) + return this + } + /** * Iterate on all plugins and run `update` on them. * Called each time state changes.
0
diff --git a/config/initializers/error_notifier.rb b/config/initializers/error_notifier.rb @@ -7,7 +7,7 @@ Rollbar.configure do |config| # Avoid a loop between our logger (who sends errors through rollbar) # and rollbar itself when it cannot send an error to rollbar service - config.logger = Logger.new(STDERR) + config.logger = Logger.new($stderr) # Add exception class names to the exception_level_filters hash to # change the level that exception is reported at. Note that if an exception
4
diff --git a/src/pages/devtools/themes/natsuiro/natsuiro.js b/src/pages/devtools/themes/natsuiro/natsuiro.js // this to reflect the change // storage + selectedFleet => selectedExpedition, plannerIsGreatSuccess function ExpedTabApplyConfig() { - const conf = ExpedTabValidateConfig(selectedExpedition); if(selectedFleet > 4) return; + let conf = ExpedTabValidateConfig(selectedExpedition); selectedExpedition = conf.fleetConf[ selectedFleet ].expedition; + // re-validate config in case that fleet has just returned from a new exped + conf = ExpedTabValidateConfig(selectedExpedition); plannerIsGreatSuccess = conf.expedConf[ selectedExpedition ].greatSuccess; }
1
diff --git a/src/components/general/world-objects-list/ComponentEditor.jsx b/src/components/general/world-objects-list/ComponentEditor.jsx @@ -132,6 +132,23 @@ export const ComponentEditor = () => { }; + const handleCheckboxChange = ( key, value ) => { + + console.log("change checkbox", key, value) + + for ( let i = 0; i < selectedApp.components.length; i ++ ) { + + if ( selectedApp.components[ i ].key !== key ) continue; + components[ i ].value = value; + break; + + } + + validateValues(); + syncComponentsList(); + + }; + const handleKeyInputKeyUp = ( key, event ) => { if ( event.key === 'Enter' ) {
0
diff --git a/client/src/components/views/Armory/index.js b/client/src/components/views/Armory/index.js @@ -394,7 +394,8 @@ class Armory extends Component { <UncontrolledDropdown> <DropdownToggle block caret className="officer-selector"> {team - ? teams.find(t => t.id === team).name + ? teams.find(t => t.id === team) && + teams.find(t => t.id === team).name : "Unassigned Officers"} </DropdownToggle> <DropdownMenu
1
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,13 @@ 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.47.4] -- 2019-04-25 + +### Fixed +- Fix graphs with `sankey` and cartesian subplots [#3802] +- Fix selection of `bar` traces on subplot with a range slider [#3806] + + ## [1.47.3] -- 2019-04-18 ### Fixed
3
diff --git a/package.json b/package.json { "name": "prettier-atom", "main": "./dist/main.js", - "version": "0.35.1", + "version": "0.36.0", "description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration", - "keywords": ["atom", "javascript", "prettier", "prettier-eslint", "eslint", "formatter"], + "keywords": [ + "atom", + "javascript", + "prettier", + "prettier-eslint", + "eslint", + "formatter" + ], "repository": "https://github.com/prettier/prettier-atom", "homepage": "https://github.com/prettier/prettier-atom", "bugs": { } }, "jest": { - "collectCoverageFrom": ["src/**.js"], + "collectCoverageFrom": [ + "src/**.js" + ], "globals": { "atom": true }, "notify": false, "resetMocks": true, "resetModules": true, - "roots": ["src"], + "roots": [ + "src" + ], "testEnvironment": "node" }, - "package-deps": ["linter:2.0.0"], + "package-deps": [ + "linter:2.0.0" + ], "consumedServices": { "status-bar": { "versions": {
6
diff --git a/src/components/filter/filter.stories.js b/src/components/filter/filter.stories.js @@ -5,7 +5,7 @@ import OptionsHelper from '../../utils/helpers/options-helper'; import Filter from './filter'; import Textbox from '../textbox'; -storiesOf('Filter', module) +storiesOf('Filter Component', module) .addParameters({ info: { propTablesExclude: [Textbox]
10
diff --git a/app/features/selectable.js b/app/features/selectable.js @@ -79,7 +79,7 @@ export function Selectable(visbug) { if (!e.altKey) e.stopPropagation() if (!e.shiftKey) { - unselect_all(false) + unselect_all({silent:true}) clearMeasurements() } @@ -296,7 +296,7 @@ export function Selectable(visbug) { }, new Set()) if (targets.size) { - unselect_all() + unselect_all({silent:true}) targets.forEach(node => { select(node) show_tip(node) @@ -385,7 +385,7 @@ export function Selectable(visbug) { const selection = () => selected - const unselect_all = (tell = true) => { + const unselect_all = ({silent = false}) => { selected .forEach(el => $(el).attr({ @@ -410,7 +410,7 @@ export function Selectable(visbug) { handles = [] selected = [] - tell && tellWatchers() + !silent && tellWatchers() } const delete_all = () => {
7
diff --git a/lib/g.js b/lib/g.js sketch_canvas.height = height(); events_canvas.height = height(); + background.width = width(); background.style.backgroundColor = backgroundColor; // INITIALIZE THE SKETCH CANVAS
1
diff --git a/packages/mjml-button/src/index.js b/packages/mjml-button/src/index.js import { BodyComponent } from 'mjml-core' +import widthParser from 'mjml-core/lib/helpers/widthParser' + export default class MjButton extends BodyComponent { static endingTag = true @@ -78,6 +80,7 @@ export default class MjButton extends BodyComponent { }, content: { display: 'inline-block', + width: this.calculateAWidth(this.getAttribute('width')), background: this.getAttribute('background-color'), color: this.getAttribute('color'), 'font-family': this.getAttribute('font-family'), @@ -91,11 +94,28 @@ export default class MjButton extends BodyComponent { padding: this.getAttribute('inner-padding'), 'mso-padding-alt': '0px', 'border-radius': this.getAttribute('border-radius'), - }, } } + calculateAWidth(width) { + if (!width) return null + + const { parsedWidth, unit } = widthParser(width) + + // impossible to handle percents because it depends on padding and text width + if (unit !== 'px') return null + + const { borders } = this.getBoxWidths() + + const innerPaddings = + this.getShorthandAttrValue('inner-padding', 'left') + + this.getShorthandAttrValue('inner-padding', 'right') + + + return `${parsedWidth - innerPaddings - borders}px` + } + render() { const tag = this.getAttribute('href') ? 'a' : 'p'
7
diff --git a/src/webroutes/fxserver/controls.js b/src/webroutes/fxserver/controls.js @@ -27,10 +27,10 @@ module.exports = async function FXServerControls(ctx) { //TODO: delay override message logic should be on fxserver, but for now keep here // as it messages with the sync notification on the UI if (globals.fxRunner.restartDelayOverride || globals.fxRunner.restartDelayOverride <= 4000) { - globals.fxRunner.restartServer('admin request', ctx.session.auth.username); + globals.fxRunner.restartServer(`requested by ${ctx.session.auth.username}`, ctx.session.auth.username); return ctx.send({type: 'success', message: `Restarting the fxserver with delay override ${globals.fxRunner.restartDelayOverride}.`}); } else { - const restartMsg = await globals.fxRunner.restartServer('admin request', ctx.session.auth.username); + const restartMsg = await globals.fxRunner.restartServer(`requested by ${ctx.session.auth.username}`, ctx.session.auth.username); if (restartMsg !== null) { return ctx.send({type: 'danger', markdown: true, message: restartMsg}); } else { @@ -42,7 +42,7 @@ module.exports = async function FXServerControls(ctx) { return ctx.send({type: 'danger', message: 'The server is already stopped.'}); } ctx.utils.logCommand('STOP SERVER'); - await globals.fxRunner.killServer('admin request', ctx.session.auth.username, false); + await globals.fxRunner.killServer(`requested by ${ctx.session.auth.username}`, ctx.session.auth.username, false); return ctx.send({type: 'warning', message: 'Server stopped.'}); } else if (action == 'start') { if (globals.fxRunner.fxChild !== null) {
13
diff --git a/shared/js/background/safari-wrapper.es6.js b/shared/js/background/safari-wrapper.es6.js @@ -89,11 +89,6 @@ let getTabId = (e) => { } } -let reloadTab = () => { - var activeTab = safari.application.activeBrowserWindow.activeTab - activeTab.url = activeTab.url -} - let mergeSavedSettings = (settings, results) => { return Object.assign(settings, results) } @@ -107,6 +102,5 @@ module.exports = { notifyPopup: notifyPopup, normalizeTabData: normalizeTabData, getTabId: getTabId, - reloadTab: reloadTab, mergeSavedSettings: mergeSavedSettings }
2
diff --git a/README.md b/README.md @@ -75,10 +75,10 @@ Fluture is written as modular JavaScript. - Modern browsers can run Fluture directly. If you'd like to try this out, I recommend installing Fluture with [Pika][] or [Snowpack][]. You can also try the [bundled module](#bundled-from-a-cdn) to avoid a package manager. -- For older browsers, use a bundler such as [Rollup][] or WebPack. Fluture - doesn't use ES5+ language features, so the source does not have to be - transpiled. Alternatively, there is a [CommonJS Module](#commonjs-module) - available. +- For older browsers, use a bundler such as [Rollup][] or WebPack. Besides the + module system, Fluture uses purely ES5-compatible syntax, so the source does + not have to be transpiled after bundling. Alternatively, there is a + [CommonJS Module](#commonjs-module) available. ```js import {readFile} from 'fs'
7
diff --git a/src/compiler/nodes.imba1 b/src/compiler/nodes.imba1 @@ -2977,7 +2977,7 @@ export class Func < Code var name = typeof @name == 'string' ? @name : @name.c name = name ? ' ' + name.replace(/\./g,'_') : '' var keyword = o and o:keyword != undefined ? o:keyword : funcKeyword - var out = "{M(keyword,option(:def))}{name}({params.c}) " + code + var out = "{M(keyword,option('def') or option('keyword'))}{name}({params.c}) " + code # out = "async {out}" if option(:async) out = "({out})()" if option(:eval) return out
7
diff --git a/packages/spark-extras/components/highlight-board/highlight-board.js b/packages/spark-extras/components/highlight-board/highlight-board.js -import objectFitImages from './node_modules/object-fit-images/dist/ofi.es-modules'; +import objectFitImages from 'object-fit-images'; const highlightBoard = () => { objectFitImages('.sprk-c-HighlightBoard__image');
1
diff --git a/content/intro-to-storybook/vue/pt/composite-component.md b/content/intro-to-storybook/vue/pt/composite-component.md @@ -253,10 +253,10 @@ it('renders pinned tasks at the start of the list', () => { const vm = new Constructor({ propsData: { tasks: withPinnedTasks }, }).$mount(); - const lastTaskInput = vm.$el.querySelector('.list-item:nth-child(1).TASK_PINNED'); + const firstTaskPinned = vm.$el.querySelector('.list-item:nth-child(1).TASK_PINNED'); // We expect the pinned task to be rendered first, not at the end - expect(lastTaskInput).not.toBe(null); + expect(firstTaskPinned).not.toBe(null); }); ```
3
diff --git a/src/core/createLogger.js b/src/core/createLogger.js @@ -43,9 +43,5 @@ export default (console, getLogEnabled, prefix) => { * @param {...*} arg Any argument to be logged. */ error: process.bind(null, "error") - /** - * Creates a new logger with an additional prefix. - * @param {String} additionalPrefix - */ }; };
2
diff --git a/src/agent/block_store_services/block_store_s3.js b/src/agent/block_store_services/block_store_s3.js @@ -292,6 +292,8 @@ class BlockStoreS3 extends BlockStoreBase { * to keep only the latest versions of the test block. */ async _delete_block_past_versions(block_md) { + // currently we use disable_metadata only for flashblade. in that case also ignore delete_past_versions + if (this.disable_metadata) return; return this._delete_past_versions(this._block_key(block_md.id)); }
1
diff --git a/README.md b/README.md @@ -70,6 +70,39 @@ ReactDOM.render( ### FormBuilder The FormBuilder class can be used to embed a form builder directly in your react application. Please note that you'll need to include the CSS for the form builder from formio.js as well. +```javascript +import { FormBuilder } from '@formio/react'; +``` +Without Components: + +```javascript +<FormBuilder form={[]}/> + ``` +With Components: + +```javascript +<FormBuilder form={ + display: 'form', + components: [ + { + "label": "Email", + "tableView": true, + "key": "email", + "type": "email", + "input": true + }, + { + "label": "Password", + "tableView": false, + "key": "password", + "type": "password", + "input": true, + "protected": true + }, + ] + }}/> + ``` + Please note that the FormBuilder component does not load and save from/to a url. You must handle the form definition loading and saving yourself or use the FormEdit component. #### Props
3
diff --git a/app/models/carto/visualization.rb b/app/models/carto/visualization.rb @@ -172,14 +172,6 @@ class Carto::Visualization < ActiveRecord::Base @stats ||= CartoDB::Visualization::Stats.new(self).to_poro end - def transition_options - @transition_options ||= (slide_transition_options.nil? ? {} : JSON.parse(slide_transition_options).symbolize_keys) - end - - def transition_options=(value) - self.slide_transition_options = ::JSON.dump(value.nil? ? DEFAULT_OPTIONS_VALUE : value) - end - def children ordered = [] children_vis = self.unordered_children
2
diff --git a/test/specs/config/fallbackToNetwork.test.js b/test/specs/config/fallbackToNetwork.test.js @@ -13,9 +13,11 @@ describe('fallbackToNetwork', () => { }); it('not error when configured globally', async () => { + theGlobal.fetch = async () => ({ status: 202 }); fm.config.fallbackToNetwork = true; fm.mock('http://mocked.com', 201); expect(() => fm.fetchHandler('http://unmocked.com')).not.to.throw(); + delete theGlobal.fetch }); it('actually falls back to network when configured globally', async () => { @@ -26,6 +28,7 @@ describe('fallbackToNetwork', () => { expect(res.status).to.equal(202); fetchMock.restore(); fetchMock.config.fallbackToNetwork = false; + delete theGlobal.fetch }); it('actually falls back to network when configured in a sandbox properly', async () => {
1
diff --git a/src/components/button/template.njk b/src/components/button/template.njk {# Determine type of element to use, if not explicitly set -#} {% if params.element %} - {% set element = params.element %} + {% set element = params.element | lower %} {% else %} {% if params.href %} {% set element = 'a' %}
8
diff --git a/test/unit/specs/store/governance/proposals.spec.js b/test/unit/specs/store/governance/proposals.spec.js @@ -71,11 +71,6 @@ describe(`Module: Proposals`, () => { [`setProposal`, proposals[0]], [`setProposal`, proposals[1]] ]) - expect(dispatch.mock.calls).toEqual([ - [`getProposalVotes`, Number(proposals[0].proposal_id)], - [`getProposalDeposits`, Number(proposals[0].proposal_id)], - [`getProposalDeposits`, Number(proposals[1].proposal_id)] - ]) }) it(`submits a new proposal`, async () => {
3
diff --git a/test/jasmine/tests/config_test.js b/test/jasmine/tests/config_test.js @@ -47,7 +47,12 @@ describe('config argument', function() { width: layoutWidth }; var relayout = { - width: relayoutWidth + width: relayoutWidth, + // didn't need this before #3120 - but since we're now + // implicitly clearing autosize when edit width, if you really + // want height to re-autosize you need to explicitly re-add + // autosize + autosize: autosize }; var layout2 = Lib.extendDeep({}, layout);
3
diff --git a/articles/universal-login/i18n.md b/articles/universal-login/i18n.md @@ -30,19 +30,14 @@ The New Universal Login Experience is currently localized to the languages above The language to render the pages will be selected based on: - The languages supported by Auth0, listed above. -- The list of languages configured in Tenant Settings, where you can select the languages your tenant supports and select a default one. +- The list of languages configured in Tenant Settings, where you can select the languages your tenant supports and select a default one. By default, this list will have only English. - The value of the `ui_locales` parameter sent to the [authorization request endpoint](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest), which can be used to constrain the language list for an application or session. - The `Accept-Language` HTTP header sent by the browser. The pages will be rendered in this language if it's allowed by the settings below. If not, pages will be rendered in the default language. -If you don't configure the list of languages in Tenant Settings: - - if you don't specify the `ui_locales` parameter, the pages will be rendered in English. - - if you specify the `ui_locales` parameter, pages will be rendered the browser's language when it's in that list, or the first language in the ui_locales list otherwise. - ### Using the Management API to specify tenant enabled languages You can specify the enabled languages for the tenant using the [Update tenant settings endpoint](/api/management/v2#!/Tenants/patch_settings). - ```har { "method": "PATCH",
2
diff --git a/src/js/dex/asset.picker.component.js b/src/js/dex/asset.picker.component.js autocompleteElement = $element.find('md-autocomplete'); ctrl.isAssetLoading = false; + ctrl.isPickingInProgress = false; ctrl.autocomplete = autocomplete.create(); ctrl.$onChanges = function () { if (ctrl.assets && ctrl.pickedAsset) { + if (!ctrl.isPickingInProgress) { ctrl.autocomplete.selectedAsset = ctrl.pickedAsset; + } + ctrl.autocomplete.assets = ctrl.assets.map(function (asset) { return asset.currency; }).filter(function (asset) { } }; + autocompleteElement.on('focusin', function () { + ctrl.isPickingInProgress = true; + }); + + autocompleteElement.on('focusout', function () { + ctrl.isPickingInProgress = false; + ctrl.autocomplete.selectedAsset = ctrl.pickedAsset; + }); + ctrl.changeAsset = function () { var asset = ctrl.autocomplete.selectedAsset; if (asset && asset !== ctrl.pickedAsset) { + ctrl.isPickingInProgress = false; $scope.$emit('asset-picked', asset, ctrl.type); } };
1
diff --git a/learn/getting_started/installation.md b/learn/getting_started/installation.md @@ -35,7 +35,7 @@ meilisearch ::: ::: tab Docker -Using **Docker** you can choose to run [any available tags](https://hub.docker.com/r/getmeili/meilisearch/tags). +Using **Docker** you can choose to run [any available tag](https://hub.docker.com/r/getmeili/meilisearch/tags). This command starts the **latest stable release** of MeiliSearch. @@ -100,12 +100,12 @@ cargo build --release To install MeiliSearch on Windows, you can: -- use Docker +- use Docker (see "Docker" tab above) - [download the latest binary](https://github.com/meilisearch/MeiliSearch/releases) -- use the installation script (cf `cURL` tab) if you have installed [Cygwin](https://www.cygwin.com/) or equivalent -- compile from source +- use the installation script (see "cURL" tab above) if you have installed [Cygwin](https://www.cygwin.com/) or equivalent +- compile from source (see "Source" tab above) -If you are new to the Windows CMD, you can follow this [guide](https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/) to get started. +To learn more about the Windows command prompt, follow this [introductory guide](https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/). ::::
7
diff --git a/accessibility-checker-engine/src/v4/rules/WCAG21_Input_Autocomplete.ts b/accessibility-checker-engine/src/v4/rules/WCAG21_Input_Autocomplete.ts @@ -23,14 +23,16 @@ export let WCAG21_Input_Autocomplete: Rule = { "en-US": { "group": "WCAG21_Input_Autocomplete.html", "Pass_0": "WCAG21_Input_Autocomplete.html", - "Fail_1": "WCAG21_Input_Autocomplete.html" + "Fail_1": "WCAG21_Input_Autocomplete.html", + "Fail_attribute_incorrect": "WCAG21_Input_Autocomplete.html" } }, messages: { "en-US": { "group": "The 'autocomplete' attribute's token(s) must be appropriate for the input form field", "Pass_0": "Rule Passed", - "Fail_1": "The 'autocomplete' attribute's token(s) are not appropriate for the input form field" + "Fail_1": "The 'autocomplete' attribute's token(s) are not appropriate for the input form field", + "Fail_attribute_incorrect": "autocomplete attribute has an incorrect value" } }, rulesets: [{ @@ -157,6 +159,10 @@ export let WCAG21_Input_Autocomplete: Rule = { "email", "impp"] } + let valid_values = []; + for (var key in cache) + valid_values=valid_values.concat(cache[key]); + const ruleContext = context["dom"].node as Element; let foundMandatoryToken = false; let nodeName = ruleContext.nodeName.toLowerCase(); @@ -175,6 +181,9 @@ export let WCAG21_Input_Autocomplete: Rule = { return null; } + if(tokens.every(r => valid_values.includes(r))) + return RuleFail("Fail_attribute_incorrect"); + let tokensMandatoryGroup1 = []; let tokensMandatoryGroup2 = [];
3
diff --git a/tests/integration/docker/layers/dockerLayers.test.js b/tests/integration/docker/layers/dockerLayers.test.js @@ -3,7 +3,7 @@ import fetch from 'node-fetch' import rimraf from 'rimraf' import { joinUrl, setup, teardown } from '../../_testHelpers/index.js' -jest.setTimeout(120000) +jest.setTimeout(180000) // "Could not find 'Docker', skipping 'Docker' tests." const _describe = process.env.DOCKER_DETECTED ? describe : describe.skip @@ -19,7 +19,7 @@ _describe('Layers with Docker tests', () => { // cleanup afterAll(() => { teardown() - rimraf.sync('.layers') + rimraf.sync(`${__dirname}/.layers`) }) //
3
diff --git a/lib/plugin/git/Git.js b/lib/plugin/git/Git.js @@ -89,7 +89,7 @@ class Git extends GitBase { } isWorkingDirClean() { - return this.exec('git diff-index --quiet HEAD --', { options }).then( + return this.exec('git diff --quiet HEAD', { options }).then( () => true, () => false );
7
diff --git a/core/field_textinput.js b/core/field_textinput.js @@ -237,12 +237,12 @@ Blockly.FieldTextInput.prototype.doValueUpdate_ = function(newValue) { */ Blockly.FieldTextInput.prototype.applyColour = function() { if (this.sourceBlock_ && this.constants_.FULL_BLOCK_FIELDS) { - if (this.sourceBlock_.isShadow()) { - this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff'); - } else if (this.borderRect_) { + if (this.borderRect_) { this.borderRect_.setAttribute('stroke', this.sourceBlock_.style.colourTertiary); this.borderRect_.setAttribute('fill', '#fff'); + } else if (this.sourceBlock_.isShadow()) { + this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff'); } } };
1
diff --git a/edit.js b/edit.js @@ -13,8 +13,8 @@ import {makePromise} from './util.js'; import {world} from './world.js'; import * as universe from './universe.js'; // import {Bot} from './bot.js'; -import {storageHost} from './constants.js'; // import {GuardianMesh} from './land.js'; +// import {storageHost} from './constants.js'; import {renderer, scene, orthographicScene, avatarScene, camera, orthographicCamera, avatarCamera, dolly, /*orbitControls,*/ renderer2, scene2, scene3, appManager} from './app-object.js'; import weaponsManager from './weapons-manager.js'; import cameraManager from './camera-manager.js';
2
diff --git a/aura-impl/src/main/java/org/auraframework/impl/root/DependencyDefImpl.java b/aura-impl/src/main/java/org/auraframework/impl/root/DependencyDefImpl.java @@ -48,6 +48,7 @@ public final class DependencyDefImpl extends DefinitionImpl<DependencyDef> imple .add(DefType.EVENT) .add(DefType.INTERFACE) .add(DefType.LIBRARY) + .add(DefType.MODULE) .build(); private final static Set<DefType> DEFAULT_TYPES = new ImmutableSet.Builder<DefType>() .add(DefType.COMPONENT)
11
diff --git a/docs/source/docs/text-color.blade.md b/docs/source/docs/text-color.blade.md @@ -30,7 +30,7 @@ title: "Text Color" <tr> <td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.text-{{ $name }}</td> <td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark whitespace-no-wrap">color: {{ $value }};</td> - <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the text color of an element to {{ str_replace('-', ' ' , $name) }}.</td> + <td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the text color of an element to {{ implode(' ', array_reverse(explode('-', $name))) }}.</td> </tr> @endforeach </tbody>
7
diff --git a/src/pages/strategy/tabs/shipdrop/shipdrop.js b/src/pages/strategy/tabs/shipdrop/shipdrop.js KC3StrategyTabs.shipdrop.definition = { tabSelf: KC3StrategyTabs.shipdrop, - pList : [], dropTable : {}, selectedWorld : 0, selectedMap : 0, let sorties37_1; sorties37_1 = KC3Database.con.sortie.where("world").equals(world).and( data => data.mapnum === subMap && data.hq === hq); self.dropTable = {}; - self.pList = []; + let pList = []; //first: get info from KC3Database and count the drop of different node sorties37_1.each( function(sortie) { if(typeof self.dropTable[sortie.diff] === "undefined") } ++ tbl[battle.drop]; }); - self.pList.push(p); + pList.push(p); }).then( function() { - Promise.all(self.pList).then(self.filter_ship_drop()); + Promise.all(pList).then(self.filter_ship_drop.bind(self)); }); },
1
diff --git a/src/io_frida.c b/src/io_frida.c @@ -884,6 +884,23 @@ static void on_detached(FridaSession *session, FridaSessionDetachReason reason, const char *crash_report = frida_crash_get_report (crash); eprintf ("CrashReport: %s\n", crash_report); } + switch (reason) { + case FRIDA_SESSION_DETACH_REASON_APPLICATION_REQUESTED: + eprintf ("DetachReason: APPLICATION_REQUESTED\n"); + break; + case FRIDA_SESSION_DETACH_REASON_PROCESS_TERMINATED: + eprintf ("DetachReason: PROCESS_TERMINATED\n"); + break; + case FRIDA_SESSION_DETACH_REASON_SERVER_TERMINATED: + eprintf ("DetachReason: SERVER_TERMINATED\n"); + break; + case FRIDA_SESSION_DETACH_REASON_DEVICE_LOST: + eprintf ("DetachReason: DEVICE_LOST\n"); + break; + case FRIDA_SESSION_DETACH_REASON_PROCESS_REPLACED: + eprintf ("DetachReason: PROCESS_REPLACED\n"); + break; + } g_mutex_lock (&rf->lock); rf->detached = true; rf->detach_reason = reason;
9
diff --git a/components/app/pulse/LayerCard.js b/components/app/pulse/LayerCard.js @@ -109,9 +109,12 @@ class LayerCard extends React.Component { return ( <div className={className}> <h3>{layerActive && layerActive.attributes.name}</h3> - <div className="description"> - {layerActive && layerActive.attributes.description} - </div> + {layerActive && layerActive.attributes.description && + <div + className="description" + dangerouslySetInnerHTML={{ __html: layerActive.attributes.description }} // eslint-disble-line react/no-danger + /> + } {layerPoints && layerPoints.length > 0 && <div className="number-of-points"> Number of objects: {layerPoints.length}
12
diff --git a/app/addons/documents/index-results/containers/ApiBarContainer.js b/app/addons/documents/index-results/containers/ApiBarContainer.js @@ -17,30 +17,17 @@ import { ApiBarWrapper } from '../../../components/layouts'; import { getQueryOptionsParams } from '../reducers'; import FauxtonAPI from '../../../../core/api'; -const urlRef = (databaseName, params) => { - let query = queryString.stringify(params); - - if (query) { - query = `?${query}`; - } - - return FauxtonAPI.urls('allDocs', "apiurl", encodeURIComponent(databaseName), query); -}; - -const mapStateToProps = ({indexResults}, {docUrl, endpoint, databaseName, endpointAddQueryOptions}) => { +const mapStateToProps = ({indexResults}, {docUrl, endpoint, endpointAddQueryOptions}) => { if (!docUrl) { docUrl = FauxtonAPI.constants.DOC_URLS.GENERAL; } - if (!endpoint) { - endpoint = urlRef(databaseName, getQueryOptionsParams(indexResults)); - } else { - if (endpointAddQueryOptions) { + + if (endpoint && endpointAddQueryOptions) { const query = queryString.stringify(getQueryOptionsParams(indexResults)); if (query) { endpoint = endpoint.indexOf('?') == -1 ? `${endpoint}?${query}` : `${endpoint}&${query}`; } } - } return { docUrl, endpoint }; };
2
diff --git a/src/logic/uimodel.js b/src/logic/uimodel.js @@ -52,6 +52,7 @@ class UIModel filter(value => value.event !== undefined), map(value => value.event.msg), map(msg => msg.target.value ), + startWith("#303542"), map(hex => { var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? [
12
diff --git a/helpers/wrapper/contracts/Wrapper.sol b/helpers/wrapper/contracts/Wrapper.sol @@ -89,11 +89,8 @@ contract Wrapper { // Wrap (deposit) the ether. wethContract.deposit.value(msg.value)(); - // Check if Swap has allowance, if not approve Swap to trade it. - if (wethContract.allowance(address(this), address(swapContract)) < msg.value) { + // Approve Swap to trade it. wethContract.approve(address(swapContract), msg.value); - } - } else { // Ensure no unexpected ether sent during WETH transaction. @@ -132,7 +129,7 @@ contract Wrapper { */ } else if ((_makerToken != address(0)) && (_takerWallet == address(0))) { - // Fowrading the _makerAmount of type _makerToken to the msg.sender. + // Forwarding the _makerAmount of type _makerToken to the msg.sender. require(IERC20(_makerToken).transfer(msg.sender, _makerAmount)); } // Falls here if it was a non-WETH ERC20 - non-WETH ERC20 trade and the
2
diff --git a/lib/connection.js b/lib/connection.js @@ -420,7 +420,7 @@ function _wrapConnHelper(fn) { Array.prototype.slice.call(arguments, 0, arguments.length - 1) : Array.prototype.slice.call(arguments); return utils.promiseOrCallback(cb, cb => { - if (this.readyState !== STATES.connected) { + if (this.readyState === STATES.connecting) { this.once('open', function() { fn.apply(this, argsWithoutCb.concat([cb])); });
1
diff --git a/api/plex/libraryUpdate.js b/api/plex/libraryUpdate.js @@ -14,6 +14,7 @@ const processRequest = require("../requests/process"); const logger = require("../util/logger"); const Discord = require("../notifications/discord"); const { showLookup } = require("../tmdb/show"); +const bcrypt = require("bcryptjs"); class LibraryUpdate { constructor() { @@ -149,7 +150,10 @@ class LibraryUpdate { title: this.config.adminDisplayName, nameLower: this.config.adminDisplayName.toLowerCase(), username: this.config.adminUsername, - password: this.config.adminPass, + password: + this.config.adminPass.substring(0, 3) === "$2a" + ? this.config.adminPass + : bcrypt.hashSync(this.config.adminPass, 10), altId: 1, role: "admin", }); @@ -169,7 +173,10 @@ class LibraryUpdate { adminFound.title = this.config.adminDisplayName; adminFound.nameLower = this.config.adminDisplayName.toLowerCase(); adminFound.username = this.config.adminUsername; - adminFound.password = this.config.adminPass; + adminFound.password = + this.config.adminPass.substring(0, 3) === "$2a" + ? this.config.adminPass + : bcrypt.hashSync(this.config.adminPass, 10); await adminFound.save(); logger.log( "info",
1
diff --git a/includes/Modules/Idea_Hub.php b/includes/Modules/Idea_Hub.php @@ -1039,8 +1039,12 @@ final class Idea_Hub extends Module * @param string $type Activity type. */ private function track_idea_activity( $post_id, $type ) { - $post = get_post( $post_id ); + $service = $this->get_service( 'ideahub' ); + if ( ! property_exists( $service, 'platforms_properties_ideaActivities' ) ) { + return; + } + $post = get_post( $post_id ); $name = $this->post_name_setting->get( $post->ID ); if ( empty( $name ) ) { return; @@ -1064,10 +1068,7 @@ final class Idea_Hub extends Module } try { - $service = $this->get_service( 'ideahub' ); - if ( property_exists( $service, 'platforms_properties_ideaActivities' ) ) { $service->platforms_properties_ideaActivities->create( $parent, $activity ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase - } } catch ( Exception $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // Do nothing. }
7
diff --git a/app/assets/stylesheets/camaleon_cms/admin/uploader/_uploadfile.css.scss b/app/assets/stylesheets/camaleon_cms/admin/uploader/_uploadfile.css.scss padding: 5px 5px 5px 15px } +.ajax-file-upload-filename { + overflow: auto; + max-width: 100%; +} + .ajax-file-upload-filesize { width: 50px; height: auto; @@ -20,7 +25,7 @@ vertical-align:middle; .ajax-file-upload-progress { margin: 5px 10px 5px 0px; position: relative; -width: 250px; +width: 98%; border: 1px solid #ddd; padding: 1px; border-radius: 3px; @@ -221,6 +226,13 @@ margin: 5px 10px 5px 0px; font-size: 120px; } } + .p_label { + span { + overflow: auto; + max-width: 100%; + display: inline-block; + } + } .p_footer{ border-top: 1px solid #ccc; margin-top: 12px;
7
diff --git a/app/src/renderer/vuex/modules/user.js b/app/src/renderer/vuex/modules/user.js @@ -88,10 +88,11 @@ export default ({ commit, node }) => { async signIn ({ state, dispatch }, { password, account }) { state.password = password state.account = account - state.address = state.accounts.find(_account => _account.name === account).address state.signedIn = true let key = await node.getKey(account) + state.address = key.address + dispatch('initializeWallet', key) }, signOut ({ state, commit, dispatch }) {
12
diff --git a/backend/new.js b/backend/new.js @@ -982,7 +982,17 @@ function mergeDocChangeOps(patches, newBlock, outCols, changeState, docState, li let nextOp = changeState.nextOp while (!changeState.done && nextOp[idActorIdx] === idActorIndex && nextOp[insertIdx] === insert && nextOp[objActorIdx] === firstOp[objActorIdx] && nextOp[objCtrIdx] === firstOp[objCtrIdx]) { + + // Check if the operation's pred references a previous operation in changeOps const lastOp = (changeOps.length > 0) ? changeOps[changeOps.length - 1] : null + let isOverwrite = false + for (let i = 0; i < nextOp[predNumIdx]; i++) { + for (let prevOp of changeOps) { + if (nextOp[predActorIdx][i] === prevOp[idActorIdx] && nextOp[predCtrIdx][i] === prevOp[idCtrIdx]) { + isOverwrite = true + } + } + } // If any of the following `if` statements is true, we add `nextOp` to `changeOps`. If they // are all false, we break out of the loop and stop adding to `changeOps`. @@ -993,12 +1003,12 @@ function mergeDocChangeOps(patches, newBlock, outCols, changeState, docState, li nextOp[keyCtrIdx] === lastOp[idCtrIdx]) { // Collect consecutive insertions } else if (!insert && lastOp !== null && nextOp[keyStrIdx] !== null && - nextOp[keyStrIdx] === lastOp[keyStrIdx]) { + nextOp[keyStrIdx] === lastOp[keyStrIdx] && !isOverwrite) { // Collect several updates to the same key } else if (!insert && lastOp !== null && nextOp[keyStrIdx] === null && lastOp[keyStrIdx] === null && nextOp[keyActorIdx] === lastOp[keyActorIdx] && - nextOp[keyCtrIdx] === lastOp[keyCtrIdx]) { + nextOp[keyCtrIdx] === lastOp[keyCtrIdx] && !isOverwrite) { // Collect several updates to the same list element } else if (!insert && lastOp === null && nextOp[keyStrIdx] === null && docOp && docOp[insertIdx] && docOp[keyStrIdx] === null &&
9
diff --git a/pages/release notes/TypeScript 3.7.md b/pages/release notes/TypeScript 3.7.md * [Uncalled Function Checks](#uncalled-function-checks) * [`// @ts-nocheck` in TypeScript Files](#ts-nocheck-in-typescript-files) * [Semicolon Formatter Option](#semicolon-formatter-option) -* [Breaking Changes](#breaking-Changes) +* [Breaking Changes](#37-breaking-changes) * [DOM Changes](#dom-changes) * [Function Truthy Checks](#function-truthy-checks) * [Local and Imported Type Declarations Now Conflict](#local-and-imported-type-declarations-now-conflict)
1
diff --git a/src/serverlessLog.js b/src/serverlessLog.js @@ -6,7 +6,20 @@ const { max } = Math const blue = chalk.keyword('dodgerblue') const grey = chalk.keyword('grey') const lime = chalk.keyword('lime') +const orange = chalk.keyword('orange') +const peachpuff = chalk.keyword('peachpuff') +const plum = chalk.keyword('plum') const red = chalk.keyword('red') +const yellow = chalk.keyword('yellow') + +const colorMethodMapping = new Map([ + ['DELETE', red], + ['GET', blue], + // ['HEAD', ...], + ['PATCH', orange], + ['POST', plum], + ['PUT', blue], +]) let log @@ -24,7 +37,10 @@ export function setLog(serverlessLogRef) { // https://github.com/serverless/serverless/blob/master/lib/classes/CLI.js function logRoute(httpMethod, server, stage, path, maxLength) { - return `${blue(`${httpMethod.padEnd(maxLength, ' ')} |`)} ${grey.dim( + const methodColor = colorMethodMapping.get(httpMethod) || peachpuff + const methodFormatted = httpMethod.padEnd(maxLength, ' ') + + return `${methodColor(methodFormatted)} ${yellow.dim('|')} ${grey.dim( `${server}/${stage}`, )}${lime(path)}` } @@ -34,13 +50,13 @@ function getMaxHttpMethodNameLength(routeInfo) { } export function logRoutes(routeInfo) { - const maxLength = getMaxHttpMethodNameLength(routeInfo) const boxenOptions = { borderColor: 'yellow', dimBorder: true, margin: 1, padding: 1, } + const maxLength = getMaxHttpMethodNameLength(routeInfo) console.log( boxen(
0
diff --git a/src/components/general/character/Character.jsx b/src/components/general/character/Character.jsx @@ -183,6 +183,10 @@ export const Character = ({ game, /* wearActions,*/ dioramaCanvasRef }) => { game.playerDiorama.toggleShader(); + const soundFiles = sounds.getSoundFiles(); + const audioSpec = soundFiles.menuNext[Math.floor(Math.random() * soundFiles.menuNext.length)]; + sounds.playSound(audioSpec); + }; function onCharacterSelectClick(e) {
0
diff --git a/styles/simple.css b/styles/simple.css @@ -2244,7 +2244,7 @@ body { .roll-result .roll-value, .roll-result .roll-detail { - font-family: "Font Awesome 5 Free", Verdana, sans-serif; + font-family: "Font Awesome 5 Free", 'Roboto', sans-serif; } /* GURPS App CSS */
1
diff --git a/frontend/src/app/components/application/main-layout/main-layout.js b/frontend/src/app/components/application/main-layout/main-layout.js @@ -45,8 +45,7 @@ const navItems = deepFreeze([ name: 'cluster', route: routes.cluster, icon: 'cluster', - label: 'Cluster', - beta: true + label: 'Cluster' }, { name: 'management',
2
diff --git a/test/jasmine/tests/cartesian_interact_test.js b/test/jasmine/tests/cartesian_interact_test.js @@ -973,7 +973,7 @@ describe('axis zoom/pan and main plot zoom', function() { var yr0 = [-0.211, 3.211]; var specs = [{ - desc: 'zoombox on xy', + desc: '@flaky zoombox on xy', drag: ['xy', 'nsew', 30, 30], exp: [ [['xaxis', 'xaxis2', 'xaxis3'], [1.457, 2.328]],
0
diff --git a/test/SSE_HTTP1_server.js b/test/SSE_HTTP1_server.js @@ -25,7 +25,7 @@ const sendStream = () => { const dispatchStreamOrHeaders = (req, res, next) => { if (req.headers.accept === 'text/event-stream') { - setTimeout(go, timeInterval); + setTimeout(sendStream, timeInterval); return next(); }
1
diff --git a/packages/2018-neighborhood-development/src/components/ClassSizeAndQuality/index.js b/packages/2018-neighborhood-development/src/components/ClassSizeAndQuality/index.js @@ -73,6 +73,7 @@ export class ClassSizeAndQuality extends React.Component { <Scatterplot data={selectedYearData} dataKey="teacherExperience" + dataKeyLabel="combinedLabel" dataValue="classSize" dataSeries="type" xLabel="Experience"
3
diff --git a/articles/connector/install-other-platforms.md b/articles/connector/install-other-platforms.md @@ -55,6 +55,21 @@ For most platforms, you will need to run the required commands with root privile 6. Once the Connector is running, you will need to daemonize the Connector (if you don't already have a tool selected, you can consider [upstart](http://upstart.ubuntu.com/) or [systemd](https://www.freedesktop.org/wiki/Software/systemd/)). + For example, for using systemd with Ubuntu Xenial, the file `/lib/systemd/system/auth0-adldap.service` could contain the following: + + ``` + [Unit] + Description=Auth0 AD LDAP Agent + After=network.target + + [Service] + Type=simple + Restart=always + User=ubuntu + WorkingDirectory=/opt/auth0-adldap + ExecStart=/usr/bin/node server.js + ``` + <script type="text/javascript"> $.getJSON('https://cdn.auth0.com/connector/windows/latest.json', function (data) { $('.download-github')
0
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/explorerpreviewcontent/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/explorerpreviewcontent/template.vue } const newName = prompt(`new name for "${nodeName}"`) if (newName) { + const that = this; $perAdminApp.stateAction(`rename${this.uNodeType}`, { path: this.currentObject, name: newName - }); - const currNode = $perAdminApp.getNodeFromView('/state/tools')[this.nodeType] + }).then( () => { + if(that.nodeType === 'asset') { + const currNode = $perAdminApp.getNodeFromView('/state/tools/asset/show') + const currNodeArr = currNode.split('/'); + currNodeArr[currNodeArr.length -1 ] = newName + $perAdminApp.getNodeFromView('/state/tools/asset').show = currNodeArr.join('/') + } else { + const currNode = $perAdminApp.getNodeFromView('/state/tools')[that.nodeType] const currNodeArr = currNode.split('/'); currNodeArr[currNodeArr.length -1 ] = newName - $perAdminApp.getNodeFromView('/state/tools')[this.nodeType] = currNodeArr.join('/') + $perAdminApp.getNodeFromView('/state/tools')[that.nodeType] = currNodeArr.join('/') + } + }); } }, moveNode() {
10
diff --git a/src/App/RightColumn/DirectMessagesContainer/DirectMessageThread/header.js b/src/App/RightColumn/DirectMessagesContainer/DirectMessageThread/header.js @@ -38,8 +38,9 @@ export const Header = ({ users }: Object) => { <Names>{names}</Names> <Username> {username && `@${username}`} - {isAdmin && <Badge type="admin" />} - {isPro && + {username && isAdmin && <Badge type="admin" />} + {username && + isPro && <Badge type="pro" tipText="Beta Supporter" tipLocation="top-right" />} </Username> </StyledHeader>
9
diff --git a/js/unix_formatting.js b/js/unix_formatting.js } })(function($) { /* eslint-disable */ + /* istanbul ignore next */ function warn(str) { if ('warn' in console) { console.warn(str); // node-ansiparser // The MIT License (MIT) // Copyright (c) 2014 Joerg Breitbart + /* istanbul ignore next */ var AnsiParser = (function () { 'use strict';
8
diff --git a/token-metadata/0x543Ff227F64Aa17eA132Bf9886cAb5DB55DCAddf/metadata.json b/token-metadata/0x543Ff227F64Aa17eA132Bf9886cAb5DB55DCAddf/metadata.json "symbol": "GEN", "address": "0x543Ff227F64Aa17eA132Bf9886cAb5DB55DCAddf", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/CHANGELOG.md b/CHANGELOG.md All notable changes to this project are documented in this file. -## Head +## 13.4.1 - Fixed: `time-min-milliseconds` TypeError for `ignore: ["delay"]` and shorthand animation ([#4783](https://github.com/stylelint/stylelint/pull/4783)).
6
diff --git a/src/plugins/meteor/prepare-bundle.js b/src/plugins/meteor/prepare-bundle.js import { getImagePrefix, + getNodeVersion, runCommand } from './utils'; import fs from 'fs'; @@ -57,6 +58,7 @@ export async function prepareBundleLocally( throw error; } + const nodeVersion = getNodeVersion(api, buildLocation); const image = `${getImagePrefix(privateDockerRegistry)}${appConfig.name}`; const dockerFile = createDockerFile(appConfig); const dockerIgnoreContent = ` @@ -81,7 +83,12 @@ export async function prepareBundleLocally( process.env.DOCKER_BUILDKIT = '1'; } - await runCommand('docker', ['build', '-t', `${image}:build`, '.'], buildLocation); + await runCommand('docker', [ + 'build', + '-t', `${image}:build`, + '.', + '--build-arg', `NODE_VERSION=${nodeVersion}` + ], buildLocation); console.log(''); console.log('=> Updating tags');
12
diff --git a/framer/SVGBaseLayer.coffee b/framer/SVGBaseLayer.coffee @@ -82,18 +82,36 @@ class exports.SVGBaseLayer extends Layer delete options.parent delete options.element + pathProperties = ["fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-dasharray", "stroke-dashoffset", "name", "opacity"] + _.defaults options, @constructor.attributesFromElement(pathProperties, element) + if @_element.transform.baseVal.numberOfItems > 0 + options.x ?= 0 + options.y ?= 0 + options.rotation ?= 0 + indicesToRemove = [] + for i in [0...@_element.transform.baseVal.numberOfItems] + console.log i + transform = @_element.transform.baseVal.getItem(i) + matrix = transform.matrix + switch transform.type + when 2 #SVG_TRANSFORM_TRANSLATE + options.x += matrix.e + options.y += matrix.f + #@_element.transform.baseVal.removeItem(i) + indicesToRemove.push(i) + when 4 #SVG_TRANSFORM_ROTATE + # We willingly ignore the translation from this matrix + options.rotation += - ((Math.atan2(matrix.c, matrix.d)) / Math.PI) * 180 + indicesToRemove.push(i) + + for index in indicesToRemove.reverse() + @_element.transform.baseVal.removeItem(0) + rect = @_element.getBoundingClientRect() multiplier = Framer?.CurrentContext.pixelMultiplier ? 1 @_width = rect.width * multiplier @_height = rect.height * multiplier - pathProperties = ["fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-dasharray", "stroke-dashoffset", "name", "opacity"] - _.defaults options, @constructor.attributesFromElement(pathProperties, element) - if @_element.transform.baseVal.numberOfItems > 0 - translate = @_element.transform.baseVal.getItem(0).matrix - options.x ?= translate.e - options.y ?= translate.f - super(options) for parent in @ancestors()
12
diff --git a/pages/index.js b/pages/index.js @@ -91,11 +91,12 @@ const FeatureBoxTitle = styled(Text)` export default class LandingPage extends React.Component { static async getInitialProps () { - // XXX fetch this from the API + const client = axios.create({baseURL: process.env.MEASUREMENTS_URL}) // eslint-disable-line + const result = await client.get('/api/_/global_overview') return { - measurementCount: 0, - asnCount: 0, - countryCount: 0 + measurementCount: result.data.measurement_count, + asnCount: result.data.network_count, + countryCount: result.data.country_count } }
4
diff --git a/examples/search_repos/search_options.js b/examples/search_repos/search_options.js @@ -119,8 +119,8 @@ var options_pubmed = { , {id: "clinical trial, phase ii", text: "Clinical Trial, Phase II", selected: true} , {id: "clinical trial, phase iii", text: "Clinical Trial, Phase III", selected: true} , {id: "clinical trial, phase iv", text: "Clinical Trial, Phase IV", selected: true} - , {id: "collected works", text: "Collected Works", selected: true} , {id: "clinical trial, veterinary", text: "Clinical Trial, Veterinary", selected: true} + , {id: "collected work", text: "Collected Work", selected: true} , {id: "comment", text: "Comment", selected: true} , {id: "comparative study", text: "Comparative Study", selected: true} , {id: "congresses", text: "Congresses", selected: true} @@ -136,19 +136,19 @@ var options_pubmed = { , {id: "electronic supplementary materials", text: "Electronic Supplementary Materials", selected: true} , {id: "english abstract", text: "English Abstract", selected: true} , {id: "ephemera", text: "Ephemera", selected: true} - , {id: "evaluation studies", text: "Evaluation Studies", selected: true} , {id: "equivalence trial", text: "Equivalence Trial", selected: true} + , {id: "evaluation study", text: "Evaluation Study", selected: true} , {id: "expression of concern", text: "Expression of Concern", selected: true} , {id: "festschrift", text: "Festschrift", selected: true} - , {id: "government publications", text: "Government Publications", selected: true} + , {id: "government publication", text: "Government Publication", selected: true} , {id: "guideline", text: "Guideline", selected: true} , {id: "historical article", text: "Historical Article", selected: true} , {id: "interactive tutorial", text: "Interactive Tutorial", selected: true} , {id: "interview", text: "Interview", selected: true} , {id: "introductory journal article", text: "Introductory Journal Article", selected: true} , {id: "journal article", text: "Journal Article", selected: true} - , {id: "lectures", text: "Lectures", selected: true} - , {id: "legal cases", text: "Legal Cases", selected: true} + , {id: "lecture", text: "Lecture", selected: true} + , {id: "legal case", text: "Legal Case", selected: true} , {id: "legislation", text: "Legislation", selected: true} , {id: "letter", text: "Letter", selected: true} , {id: "meta analysis", text: "Meta Analysis", selected: true} @@ -160,10 +160,10 @@ var options_pubmed = { , {id: "overall", text: "Overall", selected: true} , {id: "patient education handout", text: "Patient Education Handout", selected: true} , {id: "periodical index", text: "Periodical Index", selected: true} - , {id: "personal narratives", text: "Personal Narratives", selected: true} - , {id: "pictorial works", text: "Pictorial Works", selected: true} - , {id: "popular works", text: "Popular Works", selected: true} - , {id: "portraits", text: "Portraits", selected: true} + , {id: "personal narrative", text: "Personal Narrative", selected: true} + , {id: "pictorial work", text: "Pictorial Work", selected: true} + , {id: "popular work", text: "Popular Work", selected: true} + , {id: "portrait", text: "Portrait", selected: true} , {id: "practice guideline", text: "Practice Guideline", selected: true} , {id: "pragmatic clinical trial", text: "Pragmatic Clinical Trial", selected: true} , {id: "publication components", text: "Publication Components", selected: true} @@ -188,7 +188,7 @@ var options_pubmed = { , {id: "systematic review", text: "Systematic Review", selected: true} , {id: "technical report", text: "Technical Report", selected: true} , {id: "twin study", text: "Twin Study", selected: true} - , {id: "validation studies", text: "Validation Studies", selected: true} + , {id: "validation study", text: "Validation Study", selected: true} , {id: "video audio media", text: "Video Audio Media", selected: true} , {id: "webcasts", text: "Webcasts", selected: true}]} ]}
3
diff --git a/gears/carto_gears_api/Gemfile.lock b/gears/carto_gears_api/Gemfile.lock @@ -3,43 +3,43 @@ PATH specs: carto_gears_api (0.0.6) pg (= 0.20.0) - rails (= 4.2.11) + rails (= 4.2.11.3) sprockets (= 3.7.2) values (= 1.8.0) GEM remote: https://rubygems.org/ specs: - actionmailer (4.2.11) - actionpack (= 4.2.11) - actionview (= 4.2.11) - activejob (= 4.2.11) + actionmailer (4.2.11.3) + actionpack (= 4.2.11.3) + actionview (= 4.2.11.3) + activejob (= 4.2.11.3) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.11) - actionview (= 4.2.11) - activesupport (= 4.2.11) + actionpack (4.2.11.3) + actionview (= 4.2.11.3) + activesupport (= 4.2.11.3) rack (~> 1.6) rack-test (~> 0.6.2) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.11) - activesupport (= 4.2.11) + actionview (4.2.11.3) + activesupport (= 4.2.11.3) builder (~> 3.1) erubis (~> 2.7.0) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (4.2.11) - activesupport (= 4.2.11) + activejob (4.2.11.3) + activesupport (= 4.2.11.3) globalid (>= 0.3.0) - activemodel (4.2.11) - activesupport (= 4.2.11) + activemodel (4.2.11.3) + activesupport (= 4.2.11.3) builder (~> 3.1) - activerecord (4.2.11) - activemodel (= 4.2.11) - activesupport (= 4.2.11) + activerecord (4.2.11.3) + activemodel (= 4.2.11.3) + activesupport (= 4.2.11.3) arel (~> 6.0) - activesupport (4.2.11) + activesupport (4.2.11.3) i18n (~> 0.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) @@ -72,16 +72,16 @@ GEM rack (1.6.13) rack-test (0.6.3) rack (>= 1.0) - rails (4.2.11) - actionmailer (= 4.2.11) - actionpack (= 4.2.11) - actionview (= 4.2.11) - activejob (= 4.2.11) - activemodel (= 4.2.11) - activerecord (= 4.2.11) - activesupport (= 4.2.11) + rails (4.2.11.3) + actionmailer (= 4.2.11.3) + actionpack (= 4.2.11.3) + actionview (= 4.2.11.3) + activejob (= 4.2.11.3) + activemodel (= 4.2.11.3) + activerecord (= 4.2.11.3) + activesupport (= 4.2.11.3) bundler (>= 1.3.0, < 2.0) - railties (= 4.2.11) + railties (= 4.2.11.3) sprockets-rails rails-deprecated_sanitizer (1.0.3) activesupport (>= 4.2.0.alpha) @@ -91,9 +91,9 @@ GEM rails-deprecated_sanitizer (>= 1.0.1) rails-html-sanitizer (1.3.0) loofah (~> 2.3) - railties (4.2.11) - actionpack (= 4.2.11) - activesupport (= 4.2.11) + railties (4.2.11.3) + actionpack (= 4.2.11.3) + activesupport (= 4.2.11.3) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (13.0.1) @@ -132,4 +132,4 @@ DEPENDENCIES rspec-rails (= 2.12.0) BUNDLED WITH - 2.1.4 + 1.17.3
3
diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml -on: - schedule: - - cron: '12 5 * * *' - +on: [ push ] jobs: windows_test: @@ -13,7 +10,8 @@ jobs: steps: - name: Environment Setup run: | - cp /c/hostedtoolcache/windows/Python/3.7.7/x64/python.exe /c/hostedtoolcache/windows/Python/3.7.7/x64/python3.exe + python --version + cp /c/hostedtoolcache/windows/Python/3.7.8/x64/python.exe /c/hostedtoolcache/windows/Python/3.7.8/x64/python3.exe echo "----------------------------------------------------" echo "git = `which git` `git --version`" echo "python = `which python` `python --version`"
3
diff --git a/src/widgets/time-series/torque-histogram-view.js b/src/widgets/time-series/torque-histogram-view.js @@ -9,7 +9,6 @@ var TorqueControlsView = require('./torque-controls-view'); */ module.exports = HistogramView.extend({ className: 'CDB-Widget-content CDB-Widget-content--timeSeries u-flex u-alignCenter', - _animationDurationRegex: /-torque-animation-duration: ([0-9]+);/, initialize: function () { if (!this.options.torqueLayerModel) throw new Error('torqeLayerModel is required');
2
diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js @@ -170,6 +170,10 @@ class ReportActionItem extends Component { } render() { + // Ignore closed action here since we're already displaying a footer that explains why the report was closed + if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.CLOSED) { + return null; + } if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) { return <ReportActionItemCreated reportID={this.props.report.reportID} />; }
8
diff --git a/src/legacy/button.js b/src/legacy/button.js @@ -72,10 +72,10 @@ function renderButton(id, { container, locale, type, color, shape, size }) : Zal if (isElementVisible(el) && tagContent && tagContent.innerText && tagContent.innerText.trim() && tagContent.innerText.trim() === 'The safer, easier way to pay') { - let throttle = getThrottle('tag_content_v5', 5000); + let throttle = getThrottle('tag_content_v6', 5000); if (throttle.isEnabled()) { - tagContent.textContent = 'A safe, easy way to pay'; + tagContent.textContent = ''; } throttle.logStart();
12
diff --git a/website/javascript/templates/UserProfile.vue b/website/javascript/templates/UserProfile.vue </button> </div> <div class="share-socials"> - <a onclick="FB.ui({method: 'share',href: 'https://developers.facebook.com/docs/',}, function(response){});return true;" target="_blank"><i class="fa fa-facebook-official"></i></a> + <a :href="shareSocial('facebook')" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"><i class="fa fa-facebook-official"></i></a> <a :href="shareSocial('twitter')"><i class="fa fa-twitter"></i></a> <a :href="shareSocial('linkedin')" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank"><i class="fa fa-linkedin"></i></a> </div>
1
diff --git a/includes/Core/Assets/Assets.php b/includes/Core/Assets/Assets.php @@ -84,18 +84,14 @@ final class Assets { $scripts_print_callback = function() { $scripts = wp_scripts(); - $queue = $scripts->queue; - - $this->run_before_print_callbacks( $scripts, $queue ); + $this->run_before_print_callbacks( $scripts, $scripts->queue ); }; add_action( 'wp_print_scripts', $scripts_print_callback ); add_action( 'admin_print_scripts', $scripts_print_callback ); $styles_print_callback = function() { $styles = wp_styles(); - $queue = $styles->queue; - - $this->run_before_print_callbacks( $styles, $queue ); + $this->run_before_print_callbacks( $styles, $styles->queue ); }; add_action( 'wp_print_styles', $styles_print_callback ); add_action( 'admin_print_styles', $styles_print_callback ); @@ -673,6 +669,8 @@ final class Assets { continue; } + $this->print_callbacks_done[ $handle ] = true; + if ( isset( $this->assets[ $handle ] ) ) { $this->assets[ $handle ]->before_print(); } @@ -680,8 +678,6 @@ final class Assets { if ( isset( $dependencies->registered[ $handle ] ) && is_array( $dependencies->registered[ $handle ]->deps ) ) { $this->run_before_print_callbacks( $dependencies, $dependencies->registered[ $handle ]->deps ); } - - $this->print_callbacks_done[ $handle ] = true; } }
7
diff --git a/articles/rules/current/index.md b/articles/rules/current/index.md @@ -4,9 +4,7 @@ toc: true --- # Rules -**Rules** are functions written in JavaScript that are executed in Auth0 as part of the transaction every time a user authenticates to your application. They are executed after the authentication and before the authorization. - -Rules allow you to easily customize and extend Auth0's capabilities. They can be chained together for modular coding and can be turned on and off individually. +**Rules** are functions written in JavaScript that are executed when a user authenticates to your application. They run once the authentication process is complete and you can use them to customize and extend Auth0's capabilities. They can be chained together for modular coding and can be turned on and off individually. ![Rule Flow](/media/articles/rules/flow.png)
3
diff --git a/packages/node_modules/@node-red/nodes/core/network/05-tls.js b/packages/node_modules/@node-red/nodes/core/network/05-tls.js @@ -27,7 +27,7 @@ module.exports = function(RED) { var caPath = n.ca.trim(); this.servername = (n.servername||"").trim(); - if ((certPath.length > 0) || (keyPath.length > 0)) { + if ((certPath.length > 0) || (keyPath.length > 0) || (caPath.length > 0)) { if ( (certPath.length > 0) !== (keyPath.length > 0)) { this.valid = false;
11
diff --git a/includes/Modules/Tag_Manager.php b/includes/Modules/Tag_Manager.php namespace Google\Site_Kit\Modules; use Google\Site_Kit\Context; -use Google\Site_Kit\Core\Authentication\Profile; use Google\Site_Kit\Core\Modules\Module; use Google\Site_Kit\Core\Modules\Module_Settings; use Google\Site_Kit\Core\Modules\Module_With_Scopes; @@ -25,10 +24,8 @@ use Google\Site_Kit_Dependencies\Google_Service_Exception; use Google\Site_Kit_Dependencies\Google_Service_TagManager; use Google\Site_Kit_Dependencies\Google_Service_TagManager_Account; use Google\Site_Kit_Dependencies\Google_Service_TagManager_Container; -use Google\Site_Kit_Dependencies\Google_Service_TagManager_ContainerAccess; use Google\Site_Kit_Dependencies\Google_Service_TagManager_ListAccountsResponse; use Google\Site_Kit_Dependencies\Google_Service_TagManager_ListContainersResponse; -use Google\Site_Kit_Dependencies\Google_Service_TagManager_UserPermission; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use WP_Error; use Exception;
2
diff --git a/src/DevChatter.Bot/FakeData.cs b/src/DevChatter.Bot/FakeData.cs @@ -15,7 +15,7 @@ public FakeData(IRepository repository) _repository = repository; } - private static List<IntervalTriggeredMessage> GetIAutomatedMessage() + private static List<IntervalTriggeredMessage> GetIntervalTriggeredMessages() { var automatedMessages = new List<IntervalTriggeredMessage> { @@ -28,12 +28,13 @@ private static List<IntervalTriggeredMessage> GetIAutomatedMessage() return automatedMessages; } - private static List<SimpleResponseMessage> GetICommandMessages() + private static List<SimpleResponseMessage> GetSimpleResponseMessages() { return new List<SimpleResponseMessage> { new SimpleResponseMessage("coins", "Coins?!?! I think you meant !points", DataItemStatus.Active), new SimpleResponseMessage("github", "Check out our GitHub repositories here https://github.com/DevChatter/", DataItemStatus.Active), + new SimpleResponseMessage("emotes", "These are our current emotes: devchaHype devchaDerp devchaFail ", DataItemStatus.Active), new SimpleResponseMessage("so", "Hey! We love https://www.twitch.tv/{0} ! You should go check out their channel!", DataItemStatus.Active, x => x.Arguments?.FirstOrDefault().NoAt()), new SimpleResponseMessage("lurk", "{0} is just lurking here, but still thinks you're all awesome!", DataItemStatus.Active, x => x.ChatUser.DisplayName) @@ -42,9 +43,9 @@ private static List<SimpleResponseMessage> GetICommandMessages() public void Initialize() { - _repository.Create(GetIAutomatedMessage()); + _repository.Create(GetIntervalTriggeredMessages()); - _repository.Create(GetICommandMessages()); + _repository.Create(GetSimpleResponseMessages()); } } } \ No newline at end of file
1
diff --git a/packages/fela-dom/src/dom/rehydration/rehydrateRules.js b/packages/fela-dom/src/dom/rehydration/rehydrateRules.js @@ -3,7 +3,7 @@ import camelCaseProperty from 'css-in-js-utils/lib/camelCaseProperty' import { generateCSSSelector, RULE_TYPE } from 'fela-utils' -const DECL_REGEX = /[.]([0-9a-z_-]+)([^{]*)?{([^:]+):([^}]+)}/gi +const DECL_REGEX = /[.]([0-9a-z_-]+)([^{]+)?{([^:]+):([^}]+)}/gi export default function rehydrateRules( cache: Object, @@ -18,7 +18,7 @@ export default function rehydrateRules( /* eslint-disable no-unused-vars,no-cond-assign */ while ((decl = DECL_REGEX.exec(css))) { // $FlowFixMe - const [ruleSet, className, pseudo, property, value] = decl + const [ruleSet, className, pseudo = '', property, value] = decl /* eslint-enable */ const declarationReference =
4
diff --git a/client/homebrew/pages/editPage/editPage.jsx b/client/homebrew/pages/editPage/editPage.jsx @@ -322,7 +322,7 @@ const EditPage = createClass({ <div className='errorContainer'> Looks like there was a problem saving. <br /> Report the issue <a target='_blank' rel='noopener noreferrer' - href={`https://github.com/naturalcrit/homebrewery/issues/new?body=${encodeURIComponent(errMsg)}`}> + href={`https://github.com/naturalcrit/homebrewery/issues/new?template=save_issue.yaml&error-code=${encodeURIComponent(errMsg)}`}> here </a>. </div>
12
diff --git a/test/browser/spec.js b/test/browser/spec.js @@ -23,7 +23,6 @@ describe('Component spec', () => { constructor(props, context) { super(props, context); expect(props).to.be.deep.equal({ - children: EMPTY_CHILDREN, fieldA: 1, fieldB: 2, fieldC: 1, fieldD: 2 });
1
diff --git a/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java b/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java @@ -320,11 +320,6 @@ public class RCTMGLOfflineModule extends ReactContextBaseJavaModule { @Override public void onStatusChanged(OfflineRegionStatus status) { - // ignore status inactive updates - Log.d(REACT_CLASS, String.format("Status %d", status.getDownloadState())); - Log.d(REACT_CLASS, String.format("Required Resource count %d", status.getRequiredResourceCount())); - Log.d(REACT_CLASS, String.format("Completed Resource count %d", status.getCompletedResourceCount())); - if (shouldSendUpdate(System.currentTimeMillis(), status)) { sendEvent(makeStatusEvent(name, status)); timestamp = System.currentTimeMillis();
2
diff --git a/index.js b/index.js @@ -11,7 +11,14 @@ app.use((req, res, next) => { res.set('Access-Control-Allow-Origin', '*'); next(); }); -app.use(express.static(__dirname)); +const appStatic = express.static(__dirname); +app.use(appStatic); +app.get('*', (req, res, next) => { + req.url = '404.html'; + res.set('Content-Type', 'text/html'); + next(); +}); +app.use(appStatic); http.createServer(app) .listen(3000);
0
diff --git a/articles/connections/passwordless/guides/embedded-login.md b/articles/connections/passwordless/guides/embedded-login.md @@ -9,10 +9,20 @@ topics: --- # Passwordless Authentication with Embedded Login -If you have strong reasons to not to use [Universal Login](/connections/passwordless/guides/universal-login), you can embed the login user interface in your application by using our SDKs to implement passwordless authentication. +Auth0 supports two way of implementing authentication: *Embedded Login* and *Universal Login*. + +The industry is aligned in that redirecting to the [Universal Login](/connections/passwordless/guides/universal-login) page is the proper way to implement authentication in all apps, but in the case of Native Applications, sometimes customers prefer to implement Embedded Login for UX reasons. + +If you need to embed the login user interface in your application, you can do it by using our [Embedded Passwordless API](/connections/passwordless/guides/relevant-api-endpoints) or our SDKs. Depending on the kind of application you want to build, you'll need to implement it differently: - For Single Page Applications (e.g. Angular / React), refer to [Embedded Passwordless Login in Single Page Applications](/connections/passwordless/guides/embedded-login-spa). - For Native applications (iOS, Android, desktop applications) refer to [Embedded Passwordless Login in Native Applications](/connections/passwordless/guides/embedded-login-native). - For Regular Web Applications (NodeJS, Java, Rails, .NET) please check [Embedded Passwordless Login in Regular Web Applications](/connections/passwordless/guides/embedded-login-webapps). + +## Keep reading + * [Passwordless Authentication Overview](/connections/passwordless) + * [Best practices for Passwordless Authentication](connections/passwordless/guides/best-practices) + * [Passwordless API Documentation](/connections/passwordless/reference/relevant-api-endpoints) + * [Migrating from deprecated Passwordless endpoints](/migrations/guides/migration-oauthro-oauthtoken-pwdless)
7
diff --git a/server/preprocessing/other-scripts/test/params_pubmed.json b/server/preprocessing/other-scripts/test/params_pubmed.json -{"article_types":["autobiography","bibliography","biography","book illustrations","case reports","classical article","clinical conference","clinical study","clinical trial","clinical trial, phase i","clinical trial, phase ii","clinical trial, phase iii","clinical trial, phase iv","collected works","comment","comparative study","congresses","consensus development conference","consensus development conference, nih","controlled clinical trial","corrected and republished article","dataset","dictionary","directory","duplicate publication","editorial","electronic supplementary materials","english abstract","ephemera","evaluation studies","festschrift","government publications","guideline","historical article","interactive tutorial","interview","introductory journal article","journal article","lectures","legal cases","legislation","letter","meta analysis","multicenter study","news","newspaper article","observational study","overall","patient education handout","periodical index","personal narratives","pictorial works","popular works","portraits","practice guideline","pragmatic clinical trial","publication components","publication formats","publication type category","published erratum","randomized controlled trial","research support, american recovery and reinvestment act","research support, n i h, extramural","research support, n i h, intramural","research support, non u s gov't","research support, u s gov't, non p h s","research support, u s gov't, p h s","research support, u s government","retracted publication","retraction of publication","review","scientific integrity review","study characteristics","support of research","technical report","twin study","validation studies","video audio media","webcasts"],"from":"1809-01-01","to":"2017-12-04","sorting":"most-recent"} +{"article_types":[ + "adaptive clinical trial", + "address", + "autobiography", + "bibliography", + "biography", + "book illustrations", + "case reports", + "classical article", + "clinical conference", + "clinical study", + "clinical trial", + "clinical trial protocol", + "clinical trial, phase i", + "clinical trial, phase ii", + "clinical trial, phase iii", + "clinical trial, phase iv", + "clinical trial, veterinary", + "collected work", + "comment", + "comparative study", + "congress", + "consensus development conference", + "consensus development conference, nih", + "controlled clinical trial", + "corrected and republished article", + "dataset", + "dictionary", + "directory", + "duplicate publication", + "editorial", + "electronic supplementary materials", + "english abstract", + "ephemera", + "equivalence trial", + "evaluation study", + "expression of concern", + "festschrift", + "government publication", + "guideline", + "historical article", + "interactive tutorial", + "interview", + "introductory journal article", + "journal article", + "lecture", + "legal case", + "legislation", + "letter", + "meta analysis", + "multicenter study", + "news", + "newspaper article", + "observational study", + "observational study, veterinary", + "overall", + "patient education handout", + "periodical index", + "personal narrative", + "pictorial work", + "popular work", + "portrait", + "practice guideline", + "pragmatic clinical trial", + "publication components", + "publication formats", + "publication type category", + "published erratum", + "randomized controlled trial", + "randomized controlled trial, veterinary", + "research support, american recovery and reinvestment act", + "research support, n i h, extramural", + "research support, n i h, intramural", + "research support, non u s gov't", + "research support, u s gov't, non p h s", + "research support, u s gov't, p h s", + "research support, u s government", + "retracted publication", + "retraction of publication", + "review", + "scientific integrity review", + "study characteristics", + "support of research", + "systematic review", + "technical report", + "twin study", + "validation study", + "video audio media", + "webcast" + ],"from":"1809-01-01","to":"2017-12-04","sorting":"most-recent"}
3
diff --git a/utilities/warning/url-exists.js b/utilities/warning/url-exists.js @@ -13,21 +13,9 @@ if (process.env.NODE_ENV !== 'production') { const hasWarned = {}; let hasExecuted; - // Using XMLHttpRequest can cause problems in non-browser environments. This should be completely removed in production environment and should not execute in a testing environment. - urlExists = function (control, url, comment) { - if ( - !hasExecuted && - !hasWarned[`${control}-path`] && - typeof window !== 'undefined' && - XMLHttpRequest && - process.env.NODE_ENV !== 'test' - ) { - const http = new XMLHttpRequest(); - http.open('GET', url, false); - http.send(); + const warn = (control, url, comment) => (res) => { hasExecuted = true; - - if (http.status === 404) { + if (res.status === 404) { const additionalComment = comment ? ` ${comment}` : ''; /* eslint-disable max-len */ warning( @@ -37,8 +25,31 @@ if (process.env.NODE_ENV !== 'production') { /* eslint-enable max-len */ hasWarned[`${control}-path`] = !!url; } + }; + + const shouldWarn = (control) => + !hasExecuted && + !hasWarned[`${control}-path`] && + typeof window !== 'undefined' && + process.env.NODE_ENV !== 'test'; + + if (typeof fetch === 'function') { + urlExists = function (control, url, comment) { + if (shouldWarn(control)) { + fetch(url).then(warn(control, url, comment)); + } + }; + } else { + // Using XMLHttpRequest can cause problems in non-browser environments. This should be completely removed in production environment and should not execute in a testing environment. + urlExists = function (control, url, comment) { + if (shouldWarn(control) && XMLHttpRequest) { + const http = new XMLHttpRequest(); + http.open('GET', url, false); + http.send(); + warn(control, url, comment)(http); } }; } +} export default urlExists;
4
diff --git a/deployment/deploy.sh b/deployment/deploy.sh @@ -84,9 +84,9 @@ EOF git commit -am "Pushing release $VERSION [ci skip]" echo -en "${GREEN}Pushing to S3: branch-cdn ...${NC}\n" - aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-$VERSION.min.js --acl public-read --cache-control "max-age=604800" - aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-latest.min.js --acl public-read --cache-control "max-age=604800" - aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-v2.0.0.min.js --acl public-read --cache-control "max-age=604800" + aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-$VERSION.min.js --acl public-read --cache-control "max-age=300" + aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-latest.min.js --acl public-read --cache-control "max-age=300" + aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-v2.0.0.min.js --acl public-read --cache-control "max-age=300" aws s3 cp example.html s3://branch-cdn/example.html --acl public-read # Pushing to QA builds
3
diff --git a/package.json b/package.json "test:size": "bundlesize", "test:prepush": "npm run build && npm run test:unit && npm run test:size", "browser-coverage": "npm run test:cover && opener coverage/lcov-report/index.html", - "prePublishOnly": "npm run build", + "prepublishOnly": "npm run build", "postpublish": "npm run docs:publish && npm run clean", "semantic-release": "semantic-release", "devdep:build": "pushd ../contentful-sdk-core && npm run build && popd",
1
diff --git a/io-manager.js b/io-manager.js @@ -34,6 +34,7 @@ ioManager.lastMenuExpanded = false; ioManager.currentWeaponGrabs = [false, false]; ioManager.lastWeaponGrabs = [false, false]; ioManager.currentWalked = false; +ioManager.lastCtrlKey = false; ioManager.keys = { up: false, down: false, @@ -182,6 +183,11 @@ const _updateIo = timeDiff => { cameraEuler.x = 0; cameraEuler.z = 0; direction.applyEuler(cameraEuler); + + if (ioManager.keys.ctrl && !ioManager.lastCtrlKey) { + physicsManager.setCrouchState(!physicsManager.getCrouchState()); + } + ioManager.lastCtrlKey = ioManager.keys.ctrl; } localVector.add(direction); if (localVector.length() > 0) {
0
diff --git a/src/traces/table/plot.js b/src/traces/table/plot.js @@ -147,7 +147,7 @@ module.exports = function plot(gd, wrappedTraceHolders) { columnBlock .style('cursor', function(d) { - return d.dragHandle ? 'ew-resize' : 'auto'; + return d.dragHandle ? 'ew-resize' : d.calcdata.scrollbarState.barWiggleRoom ? 'ns-resize' : 'default'; }); var headerColumnBlock = columnBlock.filter(headerBlock); @@ -432,7 +432,9 @@ function renderCellText(cellTextHolder) { cellText.enter() .append('text') - .classed('cellText', true); + .classed('cellText', true) + .style('cursor', function() {return 'auto';}) + .on('mousedown', function() {d3.event.stopPropagation();}); return cellText; }
11
diff --git a/test/integration/behaviors/short.behavior.js b/test/integration/behaviors/short.behavior.js @@ -5,10 +5,7 @@ const { } = ethers; const { approveIfNeeded } = require('../utils/approve'); const { assert } = require('../../contracts/common'); -const { - toBytes32, - constants: { ZERO_BYTES32 }, -} = require('../../../index'); +const { toBytes32 } = require('../../../index'); const { getLoan, getShortInteractionDelay, setShortInteractionDelay } = require('../utils/loans'); const { ensureBalance } = require('../utils/balances'); const { exchangeSynths } = require('../utils/exchanging'); @@ -95,9 +92,6 @@ function itCanOpenAndCloseShort({ ctx }) { }); before('add the shortable synths if needed', async () => { - const synthToTest = await CollateralShort.synthsByKey(shortableSynth); - - if (synthToTest !== ZERO_BYTES32) { await CollateralShort.connect(owner).addSynths( [toBytes32(`SynthsETH`)], [shortableSynth] @@ -105,11 +99,7 @@ function itCanOpenAndCloseShort({ ctx }) { await CollateralManager.addSynths([toBytes32(`SynthsETH`)], [shortableSynth]); - await CollateralManager.addShortableSynths( - [toBytes32(`SynthsETH`)], - [shortableSynth] - ); - } + await CollateralManager.addShortableSynths([toBytes32(`SynthsETH`)], [shortableSynth]); }); before('approve the synths for collateral short', async () => {
2
diff --git a/packages/component-library/stories/ScatterPlotMap.story.js b/packages/component-library/stories/ScatterPlotMap.story.js @@ -50,10 +50,10 @@ const lineWidthOptions = { const getPosition = f => f.geometry ? f.geometry.coordinates : [-124.664355, 45.615779]; -const getFillColorStandard = f => +const getFillColorDataDriven = f => f.properties.year_2017 > 1000 ? [255, 0, 0, 255] : [0, 0, 255, 255]; -const getLineColorStandard = f => +const getLineColorDataDriven = f => f.properties.year_2017 > 1000 ? [0, 0, 255, 255] : [255, 0, 0, 255]; const getCircleRadius = f => Math.sqrt(f.properties.year_2017 / Math.PI) * 15; @@ -113,7 +113,7 @@ export default () => getPosition={getPosition} opacity={opacity} getFillColor={getFillColor} - getLineColor={getLineColorStandard} + getLineColor={getLineColorDataDriven} getRadius={getCircleRadius} radiusScale={radiusScale} stroked={false} @@ -268,7 +268,7 @@ export default () => getPosition={getPosition} opacity={opacity} getFillColor={getFillColor} - getLineColor={getLineColorStandard} + getLineColor={getLineColorDataDriven} getRadius={getCircleRadius} radiusScale={radiusScale} stroked={false} @@ -325,8 +325,8 @@ export default () => data={data} getPosition={getPosition} opacity={opacity} - getFillColor={getFillColorStandard} - getLineColor={getLineColorStandard} + getFillColor={getFillColorDataDriven} + getLineColor={getLineColorDataDriven} getRadius={getCircleRadius} radiusScale={radiusScale} stroked={false}
10
diff --git a/js/modules/makeConnectivityMatrixFile.js b/js/modules/makeConnectivityMatrixFile.js @@ -27,8 +27,8 @@ const path = bis_genericio.getpathmodule(); class MakeConnMatrixFileModule extends BaseModule { constructor() { super(); - this.name = 'linearRegistration'; - this.useworker=true; + this.name = 'makeConnMatrixFile'; + this.useworker=false; } createDescription() { @@ -95,7 +95,7 @@ class MakeConnMatrixFileModule extends BaseModule { return new Promise( (resolve, reject) => { let behaviorMatchString = indir + sep + '*+(_behavior)*'; - let connMatchString = indir + sep + '*+(conn)+([0-9])*' + let connMatchString = indir + sep + '*+(conn)+([0-9])*'; let behaviorPromise = bis_genericio.getMatchingFiles(behaviorMatchString); let connPromise = bis_genericio.getMatchingFiles(connMatchString); @@ -126,7 +126,7 @@ class MakeConnMatrixFileModule extends BaseModule { reject(e.stack); }); - }) + }); function addEntry(filename, contents) { let splitName = filename.split('_'); @@ -135,7 +135,7 @@ class MakeConnMatrixFileModule extends BaseModule { let escapedSubjectName = 'sub' + regexMatch[1]; if (!combinedFile[escapedSubjectName]) { - combinedFile[escapedSubjectName] = {} + combinedFile[escapedSubjectName] = {}; } combinedFile[escapedSubjectName][filename] = contents;
1
diff --git a/src/content/en/_index.yaml b/src/content/en/_index.yaml @@ -15,7 +15,7 @@ landing_page: - description: > <p> The average user visits more than 100 websites on their mobile - device every month, and expectations for speed and quality higher + device every month, and expectations for speed and quality are higher than ever. These resources can help you supercharge your new or existing project with the next generation of web technologies in order to deliver fast, secure, and performant content to any screen.
1
diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js @@ -115,7 +115,6 @@ module.exports = { auto: 'auto', square: '1 / 1', video: '16 / 9', - attrs: 'attr(width) / attr(height)' }, backdropBlur: ({ theme }) => theme('blur'), backdropBrightness: ({ theme }) => theme('brightness'),
2