code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/Navigation.js b/src/Navigation.js @@ -211,7 +211,8 @@ const ParadeTabNav = createMaterialTopTabNavigator( const ParadeStack = createStackNavigator( { - [PARADE]: { screen: ParadeTabNav } + [PARADE]: { screen: ParadeTabNav }, + [EVENT_DETAILS]: { screen: EventDetailsScreen } }, { initialRouteName: PARADE,
0
diff --git a/exampleSite/content/fragments/config/code-config.md b/exampleSite/content/fragments/config/code-config.md @@ -3,6 +3,7 @@ fragment = "content" weight = 110 +++ +<details><summary>Code</summary> ``` +++ fragment = "config" @@ -26,3 +27,4 @@ fragment = "config" """ +++ ``` +</details>
0
diff --git a/test/tests/remote.js b/test/tests/remote.js var assert = require("assert"); var path = require("path"); var local = path.join.bind(path, __dirname); +var _ = require("lodash"); var garbageCollect = require("../utils/garbage_collect.js"); @@ -388,8 +389,15 @@ describe("Remote", function() { // catches linux / osx failure to use anonymous credentials // stops callback infinite loop .catch(function (reason) { - assert.equal(reason.message.replace(/\n|\r/g, ""), - "failed to set credentials: The parameter is incorrect."); + const messageWithoutNewlines = reason.message.replace(/\n|\r/g, ""); + const validErrors = [ + "Method push has thrown an error.", + "failed to set credentials: The parameter is incorrect." + ]; + assert.ok( + _.includes(validErrors, messageWithoutNewlines), + "Unexpected error: " + reason.message + ); }); });
11
diff --git a/packages/jaeger-ui/src/components/TracePage/index.tsx b/packages/jaeger-ui/src/components/TracePage/index.tsx @@ -280,9 +280,6 @@ export class TracePageImpl extends React.PureComponent<TProps, TState> { if (this.props.trace && this.props.trace.data) { this.traceDagEV = calculateTraceDagEV(this.props.trace.data); } - if (traceGraphView) { - this.focusUiFindMatches(); - } this.setState({ traceGraphView: !traceGraphView }); };
2
diff --git a/lib/assets/core/javascripts/cartodb3/components/form-components/editors/radio/radio.js b/lib/assets/core/javascripts/cartodb3/components/form-components/editors/radio/radio.js @@ -80,12 +80,10 @@ Backbone.Form.editors.Radio = Backbone.Form.editors.Radio.extend({ }); }, - _destroyBinds: function () {}, - remove: function () { if (this._helpTooltip) { this._helpTooltip.clean(); } - Backbone.Form.editors.Base.prototype.remove.call(this); + Backbone.Form.editors.Radio.prototype.remove.call(this); } });
4
diff --git a/packages/app/src/components/Admin/G2GDataTransfer.tsx b/packages/app/src/components/Admin/G2GDataTransfer.tsx @@ -15,7 +15,7 @@ import CustomCopyToClipBoard from '../Common/CustomCopyToClipBoard'; import G2GDataTransferExportForm from './G2GDataTransferExportForm'; const IGNORED_COLLECTION_NAMES = [ - 'sessions', 'rlflx', 'activities', + 'sessions', 'rlflx', 'activities', 'attachmentFiles.files', 'attachmentFiles.chunks', ]; const G2GDataTransfer = (): JSX.Element => { @@ -98,14 +98,14 @@ const G2GDataTransfer = (): JSX.Element => { try { await customAxios.post('/_api/v3/g2g-transfer/transfer', { transferKey: startTransferKey, - collections, + collections: selectedCollections, optionsMap, }); } catch (errs) { toastError('Failed to transfer'); } - }, [startTransferKey, collections, optionsMap]); + }, [startTransferKey, selectedCollections, optionsMap]); useEffect(() => { setCollectionsAndSelectedCollections();
7
diff --git a/server/call_node.php b/server/call_node.php @@ -30,15 +30,13 @@ function call_node($path, $blob) { function proxy_to_node($path) { async_start(); - if (!isset($_POST['input'])) { - async_end(array( - 'error' => 'invalid_parameters', - )); + if (isset($_POST['input'])) { + $payload = fix_bools($_POST['input']); + } else { + $payload = (object)array(); } - $fixed_bools = fix_bools($_POST['input']); - - async_end(call_node($path, $fixed_bools)); + async_end(call_node($path, $payload)); } function fix_bools($input) {
11
diff --git a/demos/customize/customAlertDialog.html b/demos/customize/customAlertDialog.html <p id="response"></p> - <elix-alert-dialog - id="sampleDialog" - backdrop-role="custom-backdrop" - choice-button-role="custom-button" - frame-role="custom-overlay-frame" - > - Hello, world. - </elix-alert-dialog> - <script> function okCancelClick(event) { showAlertWithChoices(['OK', 'Cancel']); async function showAlertWithChoices(choices) { const dialog = document.createElement('elix-alert-dialog'); - dialog.textContent = 'Hello, world'; + dialog.backdropRole = "custom-backdrop"; + dialog.choiceButtonRole = "custom-button"; + dialog.frameRole = "custom-overlay-frame"; dialog.choices = choices; + dialog.textContent = 'Hello, world'; dialog.addEventListener('closed', event => { const closeResult = event.detail.closeResult; const choice = closeResult && closeResult.choice;
1
diff --git a/assets/js/components/adminbar/AdminBarZeroData.js b/assets/js/components/adminbar/AdminBarZeroData.js @@ -24,10 +24,10 @@ import { __ } from '@wordpress/i18n'; const AdminBarZeroData = () => { return ( <div> - <h4> + <h4 className="googlesitekit-adminbar__title"> { __( 'No data available yet', 'google-site-kit' ) } </h4> - <p> + <p className="googlesitekit-subtitle"> { __( 'There is no data available for this content yet. This could be because it was recently created or because nobody has accessed it so far.', 'google-site-kit' ) } </p> </div>
4
diff --git a/jobs/cores.js b/jobs/cores.js @@ -26,19 +26,29 @@ module.exports = async () => { const result = await got(REDDIT_CORES); const $ = cheerio.load(result.body); - const active = $('body > div.content > div > div > table:nth-child(15) > tbody').text(); - const activeRow = active.split('\n').filter((v) => v !== ''); - const activeCores = activeRow.filter((value, index) => index % 7 === 0); - if (!activeCores.length) { + // Active Cores Table + const scrapedActive = []; + $('div.md:nth-child(2) > table:nth-child(15) > tbody:nth-child(2) > tr').each((index, element) => { + if (index === 0) return true; + const tds = $(element).find('td'); + const coreSerial = $(tds[0]).text() || null; + const coreStatus = $(tds[5]).text().replace(/\[source\]/gi, '').trim() || null; + if (!coreSerial && !coreStatus) return true; + const tableRow = { + coreSerial, + coreStatus, + }; + return scrapedActive.push(tableRow); + }); + if (!scrapedActive.length) { throw new Error('No active cores found'); } - const activeStatus = activeRow.filter((value, index) => (index + 1) % 7 === 0); - const activeUpdates = activeCores.map(async (coreSerial, index) => { - const coreId = cores.docs.find((core) => core.serial === coreSerial); - if (coreId && coreId.id) { + const activeUpdates = scrapedActive.map(async (row) => { + const coreId = cores.docs.find((core) => core.serial === row.coreSerial); + if (coreId?.id) { await got.patch(`${API}/cores/${coreId.id}`, { json: { - last_update: activeStatus[parseInt(index, 10)], + last_update: row.coreStatus, status: 'active', }, headers: {
1
diff --git a/_includes/content/github-buttons.html b/_includes/content/github-buttons.html <div class="ui mini horizontal divided link list"> <!-- Display last edited date of the page --> <div class=" disabled item"> - Last edit: {% last_modified_date %} + Last edit: {% last_modified_at %} </div> <!-- Link to the page in the Github Repository -->
13
diff --git a/contributors.json b/contributors.json "country": "Mexico", "name": "Leonardo Rocca Herrera", "twitter": "https://twitter.com/leo_rocca3" + }, + "lindarama": { + "country": "Indonesia", + "name": "Linda Ramadhani" }, "mani-rsg": { "country": "India",
3
diff --git a/angular/projects/spark-angular/src/lib/interfaces/sprk-big-nav-link.interface.ts b/angular/projects/spark-angular/src/lib/interfaces/sprk-big-nav-link.interface.ts import { ISprkLink } from './sprk-link.interface'; +import { ISprkDropdownChoice } from './sprk-dropdown-choice.interface'; + /** * Used to create the "Big Navigation" * in the extended variant of the Masthead. + * The Navigation links can have an optional dropdown (sub navigation). */ export interface ISprkBigNavLink extends ISprkLink { /** @@ -14,19 +17,5 @@ export interface ISprkBigNavLink extends ISprkLink { * Optional sub-navigation for the link. * Renders a dropdown under the main link. */ - subNav?: Array<{ - /** - * The text for the sub-navigation link. - */ - text: string; - /** - * The `href` for the sub-navigation link. - */ - href: string; - /** - * If `true`, applies active styles to - * the dropdown link. - */ - active?: boolean; - }>; + subNav?: ISprkDropdownChoice; }
3
diff --git a/package.json b/package.json { "name": "prettier-atom", "main": "./dist/main.js", - "version": "0.57.2", + "version": "0.57.3", "description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration", "keywords": [ "atom",
6
diff --git a/articles/api/management/v2/tokens-flows.md b/articles/api/management/v2/tokens-flows.md @@ -98,7 +98,8 @@ If the token has been compromised, you can blacklist it using the [Blacklist end "method": "POST", "url": "https://${account.namespace}/api/v2/blacklists/tokens", "headers": [ - { "name": "Content-Type", "value": "application/json" } + { "name": "Content-Type", "value": "application/json" }, + { "name": "Authorization", "value": "Bearer YOUR_ACCESS_TOKEN" } ], "postData": { "mimeType": "application/json", @@ -112,3 +113,5 @@ The request parameters are: - `aud`: The audience of the token you want to blacklist. For this case, it is your __Global Client Id__. - `jti`: The unique ID of the token you want to blacklist. You should set this to the same value you used when you created your token. + +Note that you should set the Management APIv2 token you got at the first step, at the `Authorization` header.
0
diff --git a/LICENSE b/LICENSE The MIT License (MIT) -Copyright (c) 2015 Auth0, Inc. <[email protected]> (http://auth0.com) +Copyright (c) 2015-present Auth0, Inc. <[email protected]> (http://auth0.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
7
diff --git a/unlock-app/src/components/Components.js b/unlock-app/src/components/Components.js import styled from 'styled-components' -export const Section = styled.section.attrs({ - id: props => props.anchor, -})` +export const Section = styled.section.attrs(props => ({ + 'id': props.anchor, +}))` margin-top: 30px; &:before {
4
diff --git a/browsers/firefox/manifest.json b/browsers/firefox/manifest.json { - "name": "DuckDuckGo Plus", + "name": "DuckDuckGo Privacy Essentials", "applications": { "gecko": { "id": "jid1-ZAdIEUB7XOzOJw@jetpack", } }, "version": "2017.11.9", - "description": "DuckDuckGo Privacy Protection", + "description": "Privacy, simplified. Protect your data as you search and browse: tracker blocking, smarter encryption, private search, and more.", "icons": { "16": "img/icon_16.png", "48": "img/icon_48.png",
3
diff --git a/lib/modules/deployment/contract_deployer.js b/lib/modules/deployment/contract_deployer.js @@ -245,7 +245,7 @@ class ContractDeployer { deployObject = self.blockchain.deployContractObject(contractObject, {arguments: contractParams, data: dataCode}); } catch(e) { if (e.message.indexOf('Invalid number of parameters for "undefined"') >= 0) { - return next(new Error(__("attempted to deploy %s without specifying parameters", contract.className))); + return next(new Error(__("attempted to deploy %s without specifying parameters", contract.className)) + ". " + __("check if there are any params defined for this contract in this environment in the contracts configuration file")); } return next(new Error(e)); } @@ -267,7 +267,6 @@ class ContractDeployer { let estimatedCost = contract.gas * contract.gasPrice; self.logFunction(contract)(__("deploying") + " " + contract.className.bold.cyan + " " + __("with").green + " " + contract.gas + " " + __("gas at the price of").green + " " + contract.gasPrice + " " + __("Wei, estimated cost:").green + " " + estimatedCost + " Wei".green); - self.blockchain.deployContractFromObject(deployObject, { from: contract.deploymentAccount, gas: contract.gas, @@ -276,6 +275,9 @@ class ContractDeployer { if (error) { contract.error = error.message; self.events.emit("deploy:contract:error", contract); + if (error.message && error.message.indexOf('replacement transaction underpriced')) { + self.logger.warn("replacement transaction underpriced: This warning typically means a transaction exactly like this one is still pending on the blockchain") + } return next(new Error("error deploying =" + contract.className + "= due to error: " + error.message)); } self.logFunction(contract)(contract.className.bold.cyan + " " + __("deployed at").green + " " + receipt.contractAddress.bold.cyan + " " + __("using").green + " " + receipt.gasUsed + " " + __("gas").green);
7
diff --git a/dist/index.html b/dist/index.html @@ -339,7 +339,7 @@ mount(document.body, hello);</code></pre> &lt;/body&gt;</code></pre> <h2>Combine list + component</h2> - <pre><code class="language-javascript">import { el, list, mount } from 'redom'; + <pre><code class="language-javascript">import { el, text, list, mount } from 'redom'; // define component class Hello {
0
diff --git a/src/utils/innerSliderUtils.js b/src/utils/innerSliderUtils.js @@ -210,6 +210,11 @@ export const slideHandler = spec => { if (!infinite) finalSlide = slideCount - slidesToShow; else if (slideCount % slidesToScroll !== 0) finalSlide = 0; } + + if (!infinite && animationSlide + slidesToShow >= slideCount) { + finalSlide = slideCount - slidesToShow; + } + animationLeft = getTrackLeft({ ...spec, slideIndex: animationSlide }); finalLeft = getTrackLeft({ ...spec, slideIndex: finalSlide }); if (!infinite) {
1
diff --git a/desktop/sources/scripts/program.js b/desktop/sources/scripts/program.js @@ -55,7 +55,7 @@ function Program(w,h) this.glyph_at = function(x,y,req = null) { - var s = this.s.substr(this.index_at(x % this.w,y % this.h),1).toLowerCase(); + var s = this.s.substr(this.index_at(x,y),1).toLowerCase(); return req && req == s || !req ? s : "." } @@ -68,12 +68,7 @@ function Program(w,h) this.is_locked = function(x,y) { - for(id in this.locks){ - var lock = this.locks[id]; - if(lock.x != x || lock.y != y){ continue; } - return true; - } - return false; + return this.locks.indexOf(`${x}:${y}`) > -1; } this.unlock = function() @@ -83,7 +78,7 @@ function Program(w,h) this.lock = function(x,y) { - this.locks.push({x:x,y:y}); + this.locks.push(`${x}:${y}`); } this.output = function()
7
diff --git a/assets/js/modules/analytics/settings/settings-view.js b/assets/js/modules/analytics/settings/settings-view.js @@ -96,8 +96,8 @@ export default function SettingsView() { { __( 'IP Address Anonymization', 'google-site-kit' ) } </p> <h5 className="googlesitekit-settings-module__meta-item-data"> - { anonymizeIP && __( 'IP addresses are being anonymized.', 'google-site-kit' ) } - { ! anonymizeIP && __( 'IP addresses are not being anonymized.', 'google-site-kit' ) } + { anonymizeIP && __( 'IP addresses are being anonymized', 'google-site-kit' ) } + { ! anonymizeIP && __( 'IP addresses are not being anonymized', 'google-site-kit' ) } </h5> </div> </div>
2
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml @@ -50,14 +50,14 @@ jobs: with: nuget-version: latest - name: Publish Esquio AspNetCore nuget - run: dotnet nuget push /artifacts/Esquio.AspNetCore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ./artifacts/Esquio.AspNetCore.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Publish Esquio nuget - run: dotnet nuget push /artifacts/Esquio.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ./artifacts/Esquio.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Publish Application Insights nuget - run: dotnet nuget push /artifacts/Esquio.AspNetCore.ApplicationInsightProcessor.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ./artifacts/Esquio.AspNetCore.ApplicationInsightProcessor.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Publish EntityFramework Store nuget - run: dotnet nuget push /artifacts/Esquio.EntityFrameworkCore.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ./artifacts/Esquio.EntityFrameworkCore.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Publish Configuration Store nuget - run: dotnet nuget push /artifacts/Esquio.Configuration.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ./artifacts/Esquio.Configuration.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Publish MiniProfiler nuget - run: dotnet nuget push /artifacts/MiniProfiler.Esquio.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file + run: dotnet nuget push ./artifacts/MiniProfiler.Esquio.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file
12
diff --git a/articles/api/management/v2/tokens.md b/articles/api/management/v2/tokens.md --- -description: Details generating and using an Auth0 Management APIv2 token. +description: Details on how to generate and use a token for the Auth0 Management APIv2 section: apis crews: crew-2 toc: true --- # The Auth0 Management APIv2 Token -## Overview - In order to call the endpoints of [Auth0 Management API v2](/api/management/v2), you need a token, what we refer to as __Auth0 Management APIv2 Token__. This token is a [JWT](/jwt), it contains specific granted permissions (known as __scopes__), and it is signed with a client API key and secret for the entire tenant. There are two ways to get a Management APIv2 Token:
2
diff --git a/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java b/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java @@ -105,6 +105,7 @@ public class CustomNotificationProvider extends ReactNotificationProvider { conversationTitle = "#" + roomName; } + // Retrieve or create the Person object who sent the latest report comment Person person = notificationCache.people.get(accountID); if (person == null) { IconCompat iconCompat = fetchIcon(avatar, FALLBACK_ICON_ID); @@ -117,21 +118,34 @@ public class CustomNotificationProvider extends ReactNotificationProvider { notificationCache.people.put(accountID, person); } + // Store the latest report comment in the local conversation history notificationCache.messages.add(new NotificationCache.Message(person, message, time)); + // Create the messaging style notification builder for this notification. + // Associate the notification with the person who sent the report comment. + // If this conversation has 2 participants or more and there's no room name, we should mark + // it as a group conversation. + // Also set the conversation title. NotificationCompat.MessagingStyle messagingStyle = new NotificationCompat.MessagingStyle(person) .setGroupConversation(notificationCache.people.size() > 2 || !roomName.isEmpty()) .setConversationTitle(conversationTitle); + // Add all conversation messages to the notification, including the last one we just received. for (NotificationCache.Message cachedMessage : notificationCache.messages) { messagingStyle.addMessage(cachedMessage.text, cachedMessage.time, cachedMessage.person); } + // Clear the previous notification associated to this conversation so it looks like we are + // replacing them with this new one we just built. if (notificationCache.prevNotificationID != -1) { NotificationManagerCompat.from(context).cancel(notificationCache.prevNotificationID); } + // Apply the messaging style to the notification builder builder.setStyle(messagingStyle); + + // Store the new notification ID so we can replace the notification if this conversation + // receives more messages notificationCache.prevNotificationID = notificationID; }
7
diff --git a/src/branch_view.js b/src/branch_view.js @@ -153,7 +153,7 @@ function isJourneyDismissed(branchViewData, branch) { } // builds an object that contains data from setBranchViewData() call, hosted deep link data and language data -function compileRequestData(branch, linkClickId) { +function compileRequestData(branch) { var requestData = branch._branchViewData || {}; if (!requestData['data']) { @@ -162,9 +162,6 @@ function compileRequestData(branch, linkClickId) { requestData['data'] = utils.merge(utils.scrapeHostedDeepLinkData(), requestData['data']); requestData['data'] = utils.merge(utils.whiteListJourneysLanguageData(session.get(branch._storage) || {}), requestData['data']); - if (linkClickId) { // ignore passing linkClickId to v1/branchview if its null - requestData['data'] = utils.merge({'link_click_id': linkClickId}, requestData['data']); - } return requestData; } @@ -205,15 +202,7 @@ branch_view.initJourney = function(branch_key, data, eventData, options, branch) if (branchViewData && !hideJourney && !no_journeys) { journeys_utils.branchViewId = branchViewData.id; branch['renderQueue'](function() { - var linkClickId = null; - var referringLink = branch._referringLink(); - var makeNewLink = options && options['make_new_link'] || false; - if (referringLink && !makeNewLink) { - linkClickId = referringLink.substring( - referringLink.lastIndexOf('/') + 1, referringLink.length - ); - } - requestData = compileRequestData(branch, linkClickId); + requestData = compileRequestData(branch); branch_view.handleBranchViewData(branch._server, branchViewData, requestData, branch._storage, data['has_app'], testFlag, branch); }); }
13
diff --git a/packages/inferno/src/DOM/events/delegation.ts b/packages/inferno/src/DOM/events/delegation.ts * @module Inferno */ /** TypeDoc Comment */ +import { + isNull, +} from "inferno-shared"; + const delegatedEvents: Map<string, IDelegate> = new Map(); interface IDelegate { @@ -48,7 +52,10 @@ function dispatchEvents( eventData: IEventData ) { let dom = target; - while (count > 0) { + while (count > 0 && !isNull(dom)) { + // Html Nodes can be nested fe: span inside button in that scenario browser does not handle disabled attribute on parent, + // because the event listener is on document.body + // Don't process clicks on disabled elements if (isClick && dom.disabled) { return; } @@ -68,13 +75,6 @@ function dispatchEvents( } } dom = dom.parentNode; - - // Html Nodes can be nested fe: span inside button in that scenario browser does not handle disabled attribute on parent, - // because the event listener is on document.body - // Don't process clicks on disabled elements - if (dom === null) { - return; - } } }
5
diff --git a/assets/js/modules/adsense/index.js b/assets/js/modules/adsense/index.js @@ -58,13 +58,9 @@ export const registerModule = ( modules ) => { 'googlesitekit.ModulesNotificationsRequest', 'googlesitekit.adsenseNotifications', ( notificationModules ) => { - if ( - ! Object.values( notificationModules ).includes( 'adsense' ) - ) { notificationModules.push( { identifier: 'adsense', } ); - } return notificationModules; } );
2
diff --git a/test/smoke/smoke.test.js b/test/smoke/smoke.test.js @@ -54,7 +54,9 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { pageErrors.push(e); }); const response = await page.goto(URL); - assert.ok(!!response); + if (!response) { + assert.fail('Failed to load page'); + } assert.strictEqual(response.status(), 200); }); @@ -89,7 +91,7 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { /** * @param {string} commandId - * @param {any} args + * @param {any} [args] * @returns Promise<void> */ async function triggerEditorCommand(commandId, args) { @@ -127,6 +129,8 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { test('html smoke test', async () => { await createEditor('<title>hi</title>', 'html'); + // we need to try this a couple of times because the web worker might not be ready yet + for (let attempt = 1; attempt <= 2; attempt++) { // trigger hover await focusEditor(); await setEditorPosition(1, 3); @@ -135,19 +139,30 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { await page.keyboard.press('Enter'); // check that a hover explaining the `<title>` element appears, which indicates that the language service is up and running - await page.waitForSelector(`text=The title element represents the document's title or name`); + try { + await page.waitForSelector( + `text=The title element represents the document's title or name`, + { timeout: 5000 } + ); + } catch (err) {} + } }); test('json smoke test', async () => { await createEditor('{}', 'json'); + // we need to try this a couple of times because the web worker might not be ready yet + for (let attempt = 1; attempt <= 2; attempt++) { // trigger suggestions await focusEditor(); await setEditorPosition(1, 2); await triggerEditorCommand('editor.action.triggerSuggest'); // check that a suggestion item for `$schema` appears, which indicates that the language service is up and running - await page.waitForSelector(`text=$schema`); + try { + await page.waitForSelector(`text=$schema`, { timeout: 5000 }); + } catch (err) {} + } }); test('typescript smoke test', async () => { @@ -156,6 +171,8 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { // check that a squiggle appears, which indicates that the language service is up and running await page.waitForSelector('.squiggly-error'); + // at this point we know that the web worker is healthy, so we can trigger suggestions + // trigger suggestions await focusEditor(); await setEditorPosition(1, 11); @@ -169,7 +186,9 @@ suite(`Smoke Test '${TESTS_TYPE}' on '${browserType}'`, () => { const url = worker.url(); return /ts\.worker\.js$/.test(url) || /workerMain.js#typescript$/.test(url); }); - assert.ok(!!tsWorker); + if (!tsWorker) { + assert.fail('Could not find TypeScript worker'); + } // check that the TypeScript worker exposes `ts` as a global assert.strictEqual(await tsWorker.evaluate(`typeof ts`), 'object');
7
diff --git a/README.md b/README.md +<p align="center"> + <img src="https://raw.githubusercontent.com/neomjs/pages/master/resources/images/neomjs-logo-250.png"> +</p> + <p align="center"> <a href="https://npmcharts.com/compare/neo.mjs?minimal=true"><img src="https://img.shields.io/npm/dm/neo.mjs.svg" alt="Downloads"></a> <a href="https://www.npmjs.com/package/neo.mjs"><img src="https://img.shields.io/npm/v/neo.mjs.svg" alt="Version"></a> <a href="./CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-green.svg" alt="PRs Welcome"></a> </p> -<p align="center"> - <img src="https://raw.githubusercontent.com/neomjs/pages/master/resources/images/neomjs-logo-250.png"> -</p> - # Welcome to neo.mjs! neo.mjs enables you to create scalable & high performant Apps using more than just one CPU, without the need to take care of a workers setup, and the cross channel communication on your own.
5
diff --git a/includes/Core/Authentication/Authentication.php b/includes/Core/Authentication/Authentication.php @@ -237,20 +237,18 @@ final class Authentication { * @param Options $options Optional. Option API instance. Default is a new instance. * @param User_Options $user_options Optional. User Option API instance. Default is a new instance. * @param Transients $transients Optional. Transient API instance. Default is a new instance. - * @param Modules $modules Optional. Modules instance. Default is a new instance. */ public function __construct( Context $context, Options $options = null, User_Options $user_options = null, - Transients $transients = null, - Modules $modules = null + Transients $transients = null ) { $this->context = $context; $this->options = $options ?: new Options( $this->context ); $this->user_options = $user_options ?: new User_Options( $this->context ); $this->transients = $transients ?: new Transients( $this->context ); - $this->modules = $modules ?: new Modules( $this->context, $this->options, $this->user_options, $this ); + $this->modules = new Modules( $this->context, $this->options, $this->user_options, $this ); $this->user_input_state = new User_Input_State( $this->user_options ); $this->user_input_settings = new User_Input_Settings( $context, $this, $transients ); $this->google_proxy = new Google_Proxy( $this->context );
2
diff --git a/src/hooks/useResizeObserver.js b/src/hooks/useResizeObserver.js @@ -22,8 +22,11 @@ export default function useResizeObserver({ ref, callback, debounceTime = 200 }) const entry = entries[0]; if (entry && entry.borderBoxSize) { const borderBoxSize = entry.borderBoxSize.length > 0 ? entry.borderBoxSize[0] : entry.borderBoxSize; + // handle chrome (entry.borderBoxSize[0]) + // handle ff (entry.borderBoxSize) animationFrameId = borderBoxSizeCallback(borderBoxSize); } else if (entry.contentRect) { + // handle safari (entry.contentRect) const borderBoxSize = { blockSize: entry.contentRect.height }; animationFrameId = borderBoxSizeCallback(borderBoxSize); } else {
9
diff --git a/package.json b/package.json "devDependencies": { "@gnosis.pm/mock-contract": "^3.0.7", "babel-eslint": "^10.0.2", + "dotenv": "^8.2.0", "eslint": "^5.16.0", "eslint-config-airbnb-base": "^13.2.0", "eslint-plugin-import": "^2.18.0", "prettier": "^1.18.2", "solhint": "^2.1.0", "truffle": "^5.0.32", - "dotenv": "^8.2.0", "truffle-flatten": "^1.0.5", "truffle-verify": "^1.0.3", - "truffle-hdwallet-provider": "^1.0.17" + "@truffle/hdwallet-provider": "^1.0.17" }, "prettier": { "trailingComma": "es5",
3
diff --git a/site/partitions.xml b/site/partitions.xml @@ -65,23 +65,27 @@ Mnesia(rabbit@smacmullen): ** ERROR ** mnesia_event got <code>rabbitmqctl cluster_status</code> will normally show an empty list for <code>partitions</code>: </p> - <pre class="sourcecode"># rabbitmqctl cluster_status -Cluster status of node rabbit@smacmullen ... -[{nodes,[{disc,[hare@smacmullen,rabbit@smacmullen]}]}, - {running_nodes,[rabbit@smacmullen,hare@smacmullen]}, - {partitions,[]}] -...done.</pre> + <pre class="sourcecode bash"> +rabbitmqctl cluster_status +# => Cluster status of node rabbit@smacmullen ... +# => [{nodes,[{disc,[hare@smacmullen,rabbit@smacmullen]}]}, +# => {running_nodes,[rabbit@smacmullen,hare@smacmullen]}, +# => {partitions,[]}] +# => ...done. + </pre> <p> However, if a network partition has occurred then information about partitions will appear there: </p> - <pre class="sourcecode"># rabbitmqctl cluster_status -Cluster status of node rabbit@smacmullen ... -[{nodes,[{disc,[hare@smacmullen,rabbit@smacmullen]}]}, - {running_nodes,[rabbit@smacmullen,hare@smacmullen]}, - {partitions,[{rabbit@smacmullen,[hare@smacmullen]}, - {hare@smacmullen,[rabbit@smacmullen]}]}] -...done.</pre> + <pre class="sourcecode bash"> +rabbitmqctl cluster_status +# => Cluster status of node rabbit@smacmullen ... +# => [{nodes,[{disc,[hare@smacmullen,rabbit@smacmullen]}]}, +# => {running_nodes,[rabbit@smacmullen,hare@smacmullen]}, +# => {partitions,[{rabbit@smacmullen,[hare@smacmullen]}, +# => {hare@smacmullen,[rabbit@smacmullen]}]}] +# => ...done. + </pre> <p> The management plugin API will return partition information for each node under <code>partitions</code>
4
diff --git a/test/jasmine/tests/transform_groupby_test.js b/test/jasmine/tests/transform_groupby_test.js @@ -53,6 +53,20 @@ describe('groupby', function() { }] }]; + var mockDataWithTypedArrayGroups = [{ + mode: 'markers', + x: [20, 11, 12, 0, 1, 2, 3], + y: [1, 2, 3, 2, 5, 2, 0], + transforms: [{ + type: 'groupby', + groups: new Uint8Array([2, 1, 2, 2, 2, 1, 1]), + styles: [ + {target: 1, value: {marker: {color: 'green'}}}, + {target: 2, value: {marker: {color: 'black'}}} + ] + }] + }]; + afterEach(destroyGraphDiv); it('Plotly.plot should plot the transform traces', function(done) { @@ -318,6 +332,22 @@ describe('groupby', function() { .catch(failTest) .then(done); }); + + it ('Plotly.plot should group points properly using typed array', function(done) { + var data = Lib.extendDeep([], mockDataWithTypedArrayGroups); + + var gd = createGraphDiv(); + + Plotly.plot(gd, data).then(function() { + expect(gd._fullData.length).toEqual(2); + expect(gd._fullData[0].x).toEqual([20, 12, 0, 1]); + expect(gd._fullData[0].y).toEqual([1, 3, 2, 5]); + expect(gd._fullData[1].x).toEqual([11, 2, 3]); + expect(gd._fullData[1].y).toEqual([2, 2, 0]); + }) + .catch(failTest) + .then(done); + }) }); describe('many-to-many transforms', function() {
0
diff --git a/src/client/js/components/Admin/ImportData/GrowiZipImportForm.jsx b/src/client/js/components/Admin/ImportData/GrowiZipImportForm.jsx @@ -96,6 +96,10 @@ class GrowiImportForm extends React.Component { this.setupWebsocketEventHandler(); } + componentWillUnmount() { + this.teardownWebsocketEventHandler(); + } + setupWebsocketEventHandler() { const socket = this.props.websocketContainer.getWebSocket(); @@ -126,6 +130,13 @@ class GrowiImportForm extends React.Component { }); } + teardownWebsocketEventHandler() { + const socket = this.props.websocketContainer.getWebSocket(); + + socket.removeAllListeners('admin:onProgressForImport'); + socket.removeAllListeners('admin:onTerminateForImport'); + } + async toggleCheckbox(collectionName, bool) { const selectedCollections = new Set(this.state.selectedCollections); if (bool) { @@ -264,7 +275,11 @@ class GrowiImportForm extends React.Component { const { selectedCollections, optionsMap } = this.state; // init progress data - this.setState({ progressMap: [], errorsMap: [] }); + await this.setState({ + isImporting: true, + progressMap: [], + errorsMap: [], + }); try { // TODO: use appContainer.apiv3.post @@ -430,7 +445,10 @@ class GrowiImportForm extends React.Component { render() { const { t } = this.props; - const { warnForPageGroups, warnForUserGroups, warnForConfigGroups } = this.state; + const { + canImport, isImporting, + warnForPageGroups, warnForUserGroups, warnForConfigGroups, + } = this.state; return ( <> @@ -456,7 +474,7 @@ class GrowiImportForm extends React.Component { <button type="button" className="btn btn-default mx-1" onClick={this.props.onDiscard}> { t('importer_management.growi_settings.discard') } </button> - <button type="button" className="btn btn-primary mx-1" onClick={this.import} disabled={!this.state.canImport}> + <button type="button" className="btn btn-primary mx-1" onClick={this.import} disabled={!canImport || isImporting}> { t('importer_management.import') } </button> </div>
7
diff --git a/components/mapbox/ban-map/layers.js b/components/mapbox/ban-map/layers.js @@ -13,8 +13,10 @@ export const sources = { export const defaultLayerPaint = [ 'case', - ['boolean', ['get', 'certifie'], true], + ['==', ['get', 'certifie'], true], theme.successBorder, + ['==', ['get', 'sourcePosition'], 'bal'], + theme.border, theme.warningBorder ]
0
diff --git a/src/reducers/likelyTokens/index.js b/src/reducers/likelyTokens/index.js @@ -40,6 +40,19 @@ const tokensReducer = handleActions({ } } }), + [tokens.getBalanceOf]: (state, { ready, error, payload, meta }) => + (!ready || error) + ? state + : ({ + ...state, + tokens: { + ...state.tokens, + [payload.contract]: { + ...state.tokens[payload.contract], + balance: payload.balance + } + } + }), }, initialState) export default reduceReducers(
9
diff --git a/public/src/data.js b/public/src/data.js export default { - random: { - "Random Set": "RNG" - }, expansion: { "Amonkhet": "AKH", "Aether Revolt": "AER", @@ -112,5 +109,8 @@ export default { "Portal Three Kingdoms": "PTK", "Portal Second Age": "PO2", "Portal": "POR" + }, + random: { + "Random Set": "RNG" } }
5
diff --git a/karma.conf.cjs b/karma.conf.cjs +/* eslint-disable global-require */ const jasmineSeedReporter = require('./test/seed-reporter.cjs'); const commonjs = require('@rollup/plugin-commonjs'); const istanbul = require('rollup-plugin-istanbul'); @@ -37,8 +38,10 @@ module.exports = async function(karma) { // https://github.com/pnpm/pnpm/issues/720#issuecomment-954120387 const plugins = Object.keys(require('./package').devDependencies).flatMap( (packageName) => { - if (!packageName.startsWith('karma-')) return [] - return [require(packageName)] + if (!packageName.startsWith('karma-')) { + return []; + } + return [require(packageName)]; } ); @@ -53,7 +56,7 @@ module.exports = async function(karma) { client: { jasmine: { - failFast: !!karma.autoWatch + stopOnSpecFailure: !!karma.autoWatch } },
10
diff --git a/src/pages/stablecoins.js b/src/pages/stablecoins.js @@ -320,23 +320,25 @@ const StablecoinsPage = ({ data }) => { useEffect(() => { ;(async () => { try { - // No option to filter by stablecoins, so fetching the top tokens by market cap - + // Fetch token data in the Ethereum ecosystem const ethereumData = await getData( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=ethereum-ecosystem&order=market_cap_desc&per_page=100&page=1&sparkline=false" ) + // Fetch token data for stablecoins const stablecoinData = await getData( "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=stablecoins&order=market_cap_desc&per_page=100&page=1&sparkline=false" ) - const filteredData = stablecoinData.filter( + // Get the intersection of stablecoins and Ethereum tokens to only have a list of data for stablecoins in the Ethereum ecosystem + const ethereumStablecoinData = stablecoinData.filter( (stablecoin) => ethereumData.findIndex( (etherToken) => stablecoin.id == etherToken.id ) > -1 ) - const markets = filteredData + // Filter stablecoins that aren't in stablecoins useMemo above, and then map the type of stablecoin and url for the filtered stablecoins + const markets = ethereumStablecoinData .filter((token) => { return stablecoins[token.symbol.toUpperCase()] })
10
diff --git a/physx.js b/physx.js @@ -1688,6 +1688,29 @@ const physxWorker = (() => { allocator.freeAll() } + w.addConvexShapePhysics = (physics, shape, position, quaternion, scale, dynamic, id) => { + const positionBuffer = scratchStack.f32.subarray(3, 6) + position.toArray(positionBuffer) + const quaternionBuffer = scratchStack.f32.subarray(6, 10) + quaternion.toArray(quaternionBuffer) + const scaleBuffer = scratchStack.f32.subarray(10, 13) + scale.toArray(scaleBuffer) + + const materialAddress = w.getDefaultMaterial(physics); + + moduleInstance._addConvexGeometryPhysics( + physics, + shape, + positionBuffer.byteOffset, + quaternionBuffer.byteOffset, + scaleBuffer.byteOffset, + id, + materialAddress, + +dynamic, + shape + ) + } + w.createShapePhysics = (physics, buffer) => { const allocator = new Allocator() const buffer2 = allocator.alloc(Uint8Array, buffer.length)
0
diff --git a/generators/server/templates/src/main/resources/config/application-dev.yml.ejs b/generators/server/templates/src/main/resources/config/application-dev.yml.ejs @@ -350,6 +350,8 @@ jhipster: cors: # Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+) allowed-origins: "http://localhost:8100,https://localhost:8100,http://localhost:9000,https://localhost:9000<%_ if (!skipClient) { _%>,http://localhost:<%= devServerPort %>,https://localhost:<%= devServerPort %><%_ if (applicationTypeGateway && microfrontend) { for ({applicationIndex, devServerPort: microserviceDevServerPort = devServerPort + applicationIndex} of Object.values(jhipsterConfig.applications || {})) { _%>,http://localhost:<%= microserviceDevServerPort %>,https://localhost:<%= microserviceDevServerPort %><%_ } } _%><%_ } _%>" + # Enable CORS when running in GitHub Codespaces + allowed-origin-patterns: 'https://*.githubpreview.dev' allowed-methods: "*" allowed-headers: "*" <%_ if (authenticationTypeSession) { _%>
1
diff --git a/mesh-lodder.js b/mesh-lodder.js @@ -504,6 +504,8 @@ class MeshLodder { _addPhysicsShape(); const _diceGeometry = g => { + // g = g.clone(); + // g.setAttribute('uv', new THREE.BufferAttribute(g.attributes.originalUv.array.slice(), 2)); let queue = [ g, ]; @@ -513,8 +515,8 @@ class MeshLodder { const quaternions = [ new THREE.Quaternion(), // forward - new THREE.Quaternion().setFromAxisAngle(upVector, Math.PI / 2), // left - new THREE.Quaternion().setFromAxisAngle(rightVector, Math.PI / 2), // up + // new THREE.Quaternion().setFromAxisAngle(upVector, Math.PI / 2), // left + // new THREE.Quaternion().setFromAxisAngle(rightVector, Math.PI / 2), // up ]; for (let quaternionIndex = 0; quaternionIndex < quaternions.length; quaternionIndex++) { const planeQuaternion = quaternions[quaternionIndex]; @@ -529,8 +531,8 @@ class MeshLodder { geometry.attributes.position.count * 3, geometry.attributes.normal.array, geometry.attributes.normal.count * 3, - geometry.attributes.uv.array, - geometry.attributes.uv.count * 2, + geometry.attributes.originalUv.array, + geometry.attributes.originalUv.count * 2, geometry.index.array, geometry.index.count, planePosition, @@ -541,29 +543,32 @@ class MeshLodder { numOutNormals, numOutPositions, numOutUvs, + // numOutUvs2, // numOutIndices, outNormals, outPositions, outUvs, + // outUvs2, // outIndices, } = res; for (let n = 0; n < 2; n++) { const positions = new Float32Array(numOutPositions[n]); const normals = new Float32Array(numOutNormals[n]); - const uvs = new Float32Array(numOutUvs[n]); + const originalUvs = new Float32Array(numOutUvs[n]); const startPositions = n === 0 ? 0 : numOutPositions[n-1]; positions.set(outPositions.subarray(startPositions, startPositions + numOutPositions[n])); const startNormals = n === 0 ? 0 : numOutNormals[n-1]; normals.set(outNormals.subarray(startNormals, startNormals + numOutNormals[n])); const startUvs = n === 0 ? 0 : numOutUvs[n-1]; - uvs.set(outUvs.subarray(startUvs, startUvs + numOutUvs[n])); + originalUvs.set(outUvs.subarray(startUvs, startUvs + numOutUvs[n])); const localGeometry = new THREE.BufferGeometry(); localGeometry.setAttribute('position', new THREE.BufferAttribute(positions, 3)); localGeometry.setAttribute('normal', new THREE.BufferAttribute(normals, 3)); - localGeometry.setAttribute('uv', new THREE.BufferAttribute(uvs, 2)); + localGeometry.setAttribute('originalUv', new THREE.BufferAttribute(originalUvs, 2)); + localGeometry.setAttribute('originalUv2', new THREE.BufferAttribute(originalUvs.slice(), 2)); const _makeIndices = numIndices => { const indices = new Uint32Array(numIndices); @@ -582,14 +587,16 @@ class MeshLodder { } const directionsOrder = [ - new THREE.Vector3(-1, 1, -1).normalize(), + new THREE.Vector3(0, 0, -1).normalize(), + new THREE.Vector3(0, 0, 1).normalize(), + /* new THREE.Vector3(-1, 1, -1).normalize(), new THREE.Vector3(-1, -1, -1).normalize(), new THREE.Vector3(1, 1, -1).normalize(), new THREE.Vector3(1, -1, -1).normalize(), new THREE.Vector3(-1, 1, 1).normalize(), new THREE.Vector3(-1, -1, 1).normalize(), new THREE.Vector3(1, 1, 1).normalize(), - new THREE.Vector3(1, -1, 1).normalize(), + new THREE.Vector3(1, -1, 1).normalize(), */ ]; for (let i = 0; i < queue.length; i++) { const geometry = queue[i]; @@ -602,8 +609,8 @@ class MeshLodder { } const geometry = BufferGeometryUtils.mergeBufferGeometries(queue); - const uvs2 = geometry.attributes.uv.array.slice(); - geometry.setAttribute('uv2', new THREE.BufferAttribute(uvs2, 2)); + geometry.setAttribute('uv', new THREE.BufferAttribute(geometry.attributes.originalUv.array.slice(), 2)); + geometry.setAttribute('uv2', new THREE.BufferAttribute(geometry.attributes.originalUv2.array.slice(), 2)); return geometry; }; const _postProcessGeometryUvs = geometry => {
0
diff --git a/modules/site/parent_templates/site/common/css/bootstrap-responsive.css b/modules/site/parent_templates/site/common/css/bootstrap-responsive.css display: inherit !important; } -@media (min-width: 768px) and (max-width: 979px) { +@media (min-width: 768px) and (max-width: 980px) { .hidden-desktop { display: inherit !important; } } } -@media (min-width: 768px) and (max-width: 979px) { +@media (min-width: 768px) and (max-width: 980px) { .row { margin-left: -20px; *zoom: 1; } } -@media (max-width: 979px) { +@media (max-width: 980px) { body { padding-top: 0; } } } -@media (min-width: 980px) { +@media (min-width: 981px) { .nav-collapse.collapse { height: auto !important; overflow: visible !important;
1
diff --git a/package.json b/package.json { "name": "bitcore-p2p-cash", - "version": "1.1.2", + "version": "1.2.0", "description": "Interface to the bitcoin P2P network for bitcore", "author": "BitPay <[email protected]>", "main": "index.js", "build": "gulp" }, "contributors": [ + { + "name": "Justin Langston", + "email": "[email protected]" + }, { "name": "Yemel Jardi", "email": "[email protected]" "url": "https://github.com/bitpay/bitcore-p2p.git" }, "dependencies": { - "bitcore-lib-cash": "^0.15.1", + "bitcore-lib-cash": "^0.16.3", "bloom-filter": "^0.2.0", "buffers": "bitpay/node-buffers#v0.1.2-bitpay", "socks5-client": "^0.3.6"
3
diff --git a/src/mixins/helpers.js b/src/mixins/helpers.js @@ -178,6 +178,10 @@ var helpers = { this.props.afterChange(animationTargetSlide); } delete this.animationEndCallback; + if (this.props.fade) { + const focusableSlide = ReactDOM.findDOMNode(this.track).children[animationTargetSlide] + focusableSlide.focus() + } }; this.setState({
9
diff --git a/assets/js/modules/adsense/components/common/SiteSteps.js b/assets/js/modules/adsense/components/common/SiteSteps.js @@ -28,16 +28,14 @@ import Data from 'googlesitekit-data'; import Link from '../../../../components/link'; import ProgressBar from '../../../../components/progress-bar'; import { STORE_NAME } from '../../datastore'; -import { STORE_NAME as CORE_SITE } from '../../../../googlesitekit/datastore/site/constants'; const { useSelect } = Data; export default function SiteSteps() { const accountID = useSelect( ( select ) => select( STORE_NAME ).getAccountID() ); - const siteURL = useSelect( ( select ) => select( CORE_SITE ).getReferenceSiteURL() ); const siteStatusURL = useSelect( ( select ) => select( STORE_NAME ).getAccountManageSitesURL() ); - const enableAutoAdsURL = useSelect( ( select ) => select( STORE_NAME ).getAccountSiteAdsPreviewURL( siteURL ) ); + const enableAutoAdsURL = useSelect( ( select ) => select( STORE_NAME ).getAccountSiteAdsPreviewURL() ); - if ( ! accountID || ! siteURL || ! siteStatusURL || ! enableAutoAdsURL ) { + if ( ! accountID || ! siteStatusURL || ! enableAutoAdsURL ) { return <ProgressBar small />; }
2
diff --git a/package.json b/package.json "cookie": "^0.4.0", "cookie-parser": "^1.4.3", "cors": "^2.5.2", - "debug": "^4.1.1", + "debug": "4.2.0", "deep-get-set": "^1.1.0", "dev-null-stream": "0.0.1", "dnssd2": "1.0.0",
1
diff --git a/docs/APIRef.DetoxCLI.md b/docs/APIRef.DetoxCLI.md @@ -77,7 +77,7 @@ Initiating your test suite. <sup>[[1]](#notice-passthrough)</sup> | --record-timeline [all/none] | [Jest Only] Record tests and events timeline, for visual display on the [chrome://tracing](chrome://tracing) tool. The default value is **none**. | | -r, --reuse | Reuse existing installed app (do not delete + reinstall) for a faster run. | | -u, --cleanup | Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue | -| -w, --workers | [iOS Only] Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest). *Note: For workers > 1, Jest's spec-level reporting is disabled, by default (can be overridden using --jest-report-specs).* | +| -w, --workers | Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest). *Note: For workers > 1, Jest's spec-level reporting is disabled, by default (can be overridden using --jest-report-specs).* | | --jest-report-specs | [Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers. | | -H, --headless | [Android Only] Launch Emulator in headless mode. Useful when running on CI. | | --gpu | [Android Only] Launch Emulator with the specific -gpu [gpu mode] parameter. |
2
diff --git a/src/client/js/components/PageEditor.jsx b/src/client/js/components/PageEditor.jsx @@ -131,7 +131,7 @@ class PageEditor extends React.Component { * @param {any} file */ async onUpload(file) { - const { appContainer, pageContainer } = this.props; + const { appContainer, pageContainer, editorContainer } = this.props; try { let res = await appContainer.apiGet('/attachments.limit', { @@ -167,6 +167,7 @@ class PageEditor extends React.Component { if (res.pageCreated) { logger.info('Page is created', res.page._id); pageContainer.updateStateAfterSave(res.page); + editorContainer.setState({ grant: res.page.grant }); } } catch (e) {
12
diff --git a/docs/guides/engines.md b/docs/guides/engines.md @@ -12,9 +12,9 @@ Most of the Go engines support optional parameters to tune their capacities. Lis Arguments: None -* [**Leela Zero**](http://zero.sjeng.org/): Download the latest appropriate version for you system (binary and source code available). Then get a network hash file, likely the [best network](http://zero.sjeng.org/best-network) is the one you want. For a nicer interface with Sabaki containing some additional options see [LeelaSabaki](https://github.com/SabakiHQ/LeelaSabaki) +* [**Leela Zero**](http://zero.sjeng.org/): Download the latest appropriate version for you system (binary and source code available). Then get a network hash file, likely the [best network](http://zero.sjeng.org/best-network) is the one you want. - Arguments: `--gtp -w path\weightsfile.txt` + Arguments: `--gtp -w path/to/weightsfile` * [**Leela**](https://www.sjeng.org/leela.html): Download the *engine only (commandline/GTP engine)* version.
2
diff --git a/articles/migrations/index.md b/articles/migrations/index.md @@ -51,10 +51,6 @@ We will publish guidance for each of the below scenarios on how to transition yo ### Resource Owner Support for oauth/token Endpoint -| Severity | Grace Period Start | Mandatory Opt-In| -| --- | --- | --- | -| Low | TBD | TBD | - Support was introduced for [Resource Owner Password](/api/authentication#resource-owner-password) to the [/oauth/token](/api/authentication#authorization-code) endpoint earlier this year. The current [/oauth/ro](/api/authentication#resource-owner) and [/oauth/access_token](/api/authentication#social-with-provider-s-access-token) endpoints will be deprecated in 2018. @@ -67,10 +63,6 @@ If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_ ### API Authorization with Third-Party Vendor APIs -| Severity | Grace Period Start | Mandatory Opt-In| -| --- | --- | --- | -| Low | TBD | TBD | - The mechanism by which you get tokens for third-party / vendor APIs (for example AWS, Firebase, and others) is being changed. It will work the same as any custom API, providing better consistency. This new architecture will be available in 2018 and once it becomes available, the [/delegation](/api/authentication#delegation) endpoint will be officially deprecated. #### Am I affected by the change? @@ -81,10 +73,6 @@ If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_ ### Deprecating the Usage of ID Tokens on the Auth0 Management API -| Severity | Grace Period Start | Mandatory Opt-In| -| --- | --- | --- | -| Low | TBD | TBD | - We are deprecating the usage of [ID Tokens](/tokens/id-token) when calling [/users](/api/management/v2#!/Users/get_users_by_id) and [/device-credentials](/api/management/v2#!/Device_Credentials/get_device_credentials). We have moved to regular [Management APIv2 Tokens](/api/management/v2/tokens). This is available now. Migration guides will be available in 2018. #### Am I affected by the change? @@ -95,10 +83,6 @@ If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_ ### Improved OpenID Connect Interoperability in Auth0 -| Severity | Grace Period Start | Mandatory Opt-In| -| --- | --- | --- | -| Low | TBD | TBD | - The [userinfo](/api/authentication#get-user-info) endpoint is being updated to return [OIDC conformant user profile attributes](/user-profile/normalized/oidc). The most notable change is that `user_id` becomes `sub`. This will deprecate the [legacy Auth0 user profile](/user-profile/normalized/auth0) (in [userinfo](/api/authentication#get-user-info) and in [id tokens](/tokens/id-token)). #### Am I affected by the change?
2
diff --git a/framer/SVGBaseLayer.coffee b/framer/SVGBaseLayer.coffee @@ -74,17 +74,21 @@ class exports.SVGBaseLayer extends Layer pathProperties = ["fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-dasharray", "stroke-dashoffset", "name"] _.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) rect = @_element.getBoundingClientRect() @_width = rect.width * @context.pixelMultiplier @_height = rect.height * @context.pixelMultiplier - for parent in @ancestors() if parent instanceof SVGLayer @_svg = parent.svg break + @resetViewbox() for prop in ["frame", "stroke", "strokeWidth", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeDasharray", "strokeDashoffset", "rotation", "scale"] @on "change:#{prop}", @resetViewbox
12
diff --git a/ios/RCTMGL/RCTMGLMapView.m b/ios/RCTMGL/RCTMGLMapView.m @@ -166,6 +166,7 @@ static double const M2PI = M_PI * 2; // underlying mapview action here. [self removeFromMap:subview]; [_reactSubviews removeObject:(UIView *)subview]; + [(UIView *)subview removeFromSuperview]; } #pragma clang diagnostic pop
2
diff --git a/src/source/libscalene.cpp b/src/source/libscalene.cpp @@ -171,11 +171,11 @@ class MakeLocalAllocator { } #endif #if USE_HEADERS - Header *header = + auto *header = new (original_allocator.malloc(ctx, len + SLACK + sizeof(Header))) Header(len); #else - Header *header = (Header *)original_allocator.malloc(ctx, len + SLACK); + auto *header = (Header *)original_allocator.malloc(ctx, len + SLACK); #endif assert(header); // We expect this to always succeed. TheHeapWrapper::register_malloc(len, getObject(header));
14
diff --git a/packages/slate-tools/tools/webpack/config/prod.js b/packages/slate-tools/tools/webpack/config/prod.js @@ -104,7 +104,12 @@ module.exports = merge( options: { ident: 'postcss', sourceMap: true, - plugins: [autoprefixer, cssnano], + plugins: [ + autoprefixer, + cssnano({ + zindex: false, + }), + ], }, }, {loader: 'sass-loader', options: {sourceMap: true}},
12
diff --git a/package.json b/package.json "name": "find-and-replace", "main": "./lib/find", "description": "Find and replace within buffers and across the project.", - "version": "0.207.0", + "version": "0.207.1", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/src/components/pages/state/race-ethnicity/notes-and-downloads.js b/src/components/pages/state/race-ethnicity/notes-and-downloads.js @@ -252,7 +252,10 @@ const NotesAndDownloads = ({ stateName={stateName} content="View racial data dashboard" /> - <CrdtBreakoutSmallCard stateSlug={slug} stateName={stateName} /> + <CrdtBreakoutSmallCard + stateSlug={slug} + stateAbbreviation={stateAbbreviation} + /> </div> </div> </div>
1
diff --git a/src/common/namespaces.js b/src/common/namespaces.js @@ -19,12 +19,12 @@ export const NS = { OI: 'http://www.optimistik.fr/namespace/svg/OIdata', XML: 'http://www.w3.org/XML/1998/namespace', XMLNS: 'http://www.w3.org/2000/xmlns/', // see http://www.w3.org/TR/REC-xml-names/#xmlReserved - SODIPODI: 'http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd', - INKSCAPE: 'http://www.inkscape.org/namespaces/inkscape', - RDF: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', - OSB: 'http://www.openswatchbook.org/uri/2009/osb', - CC: 'http://creativecommons.org/ns#', - DC: 'http://purl.org/dc/elements/1.1/' + // SODIPODI: 'http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd', + // INKSCAPE: 'http://www.inkscape.org/namespaces/inkscape', + // RDF: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', + // OSB: 'http://www.openswatchbook.org/uri/2009/osb', + // CC: 'http://creativecommons.org/ns#', + // DC: 'http://purl.org/dc/elements/1.1/' }; /**
13
diff --git a/src/client/components/composer/ComposerContainer.jsx b/src/client/components/composer/ComposerContainer.jsx @@ -167,6 +167,7 @@ const ComposerContainer = (props) => { graphQL: false, gRPC: false, ws: false, + webrtc: true, network, testContent: '', });
12
diff --git a/app/src/main/index.js b/app/src/main/index.js @@ -488,11 +488,9 @@ function pickNode(seeds) { } async function connect(nodeIP) { - if (!MOCK) { log(`starting gaia rest server with nodeIP ${nodeIP}`) lcdProcess = await startLCD(lcdHome, nodeIP) log("gaia rest server ready") - } afterBooted(() => { log("Signaling connected node") @@ -665,6 +663,7 @@ async function main() { // to make switching between mocked and live mode easier, we still need to check the config folder and read files on app start if (MOCK) { // we still need to signal a connected event so view is waiting for to start + connecting = false afterBooted(() => { mainWindow.webContents.send("connected", "127.0.0.1") })
1
diff --git a/packages/orbit-components/src/Layout/LayoutColumn/index.js b/packages/orbit-components/src/Layout/LayoutColumn/index.js @@ -19,7 +19,7 @@ const StyledColumn = styled.div` ${StyledCard}, ${DeprecatedStyledCard} { margin-right: -${({ theme }) => theme.orbit.spaceMedium}; margin-left: -${({ theme }) => theme.orbit.spaceMedium}; - width: 100vw; + width: auto; } } `;
13
diff --git a/src/App.js b/src/App.js @@ -10,10 +10,9 @@ import moment from "moment"; import useResponsiveLayout from "./hooks/useResponsiveLayout"; import Loading from "components/Loading"; import CookieBanner from "components/CookieBanner"; -import DataPageHeader from "./components/DataPageHeader"; +import DataPageHeader from "components/DataPageHeader"; import SideNavigation from "components/SideNavigation"; import DashboardHeader from "components/DashboardHeader"; - import './index.scss'; @@ -112,7 +111,6 @@ const App = () => { <DashboardHeader/> <Suspense fallback={ <Loading/> }> <Switch> - {/*<Route path="/details" exact render={ () => <Redirect to={ "/" }/> }/>*/} <Route path="/details/testing" exact component={ Tests }/> <Route path="/details/cases" exact component={ Cases }/> <Route path="/details/healthcare" exact component={ Healthcare }/> @@ -125,13 +123,16 @@ const App = () => { <Route path="/details/announcements" exact component={ Announcements }/> <Route path="/details/announcements/:id" exact component={ AnnouncementRecord }/> <Route path="/details/download" exact component={ Download }/> - <Route path="/details/about-data" exact component={ () => <MarkdownPage pathName={ "about" }/> }/> - <Route path="/details/compliance" exact component={ () => <MarkdownPage pathName={ "compliance" }/> }/> - {/*<Route path="/archive" component={ Archive }/>*/} <Route path="/details/accessibility" exact component={ Accessibility }/> <Route path="/details/cookies" exact component={ Cookies }/> <Route path="/details/developers-guide" component={ DeveloperGuide }/> + <Route path="/details/about-data" exact> + <MarkdownPage pathName={ "about" }/> + </Route> + <Route path="/details/compliance" exact> + <MarkdownPage pathName={ "compliance" }/> + </Route> <Route path={ "/:page" } component={ RedirectToDetails }/> </Switch> </Suspense>
7
diff --git a/app/components/Exchange/Exchange.jsx b/app/components/Exchange/Exchange.jsx @@ -11,7 +11,6 @@ import React from "react"; import PropTypes from "prop-types"; import SettingsActions from "actions/SettingsActions"; import MarketsActions from "actions/MarketsActions"; -import notify from "actions/NotificationActions"; import assetUtils from "common/asset_utils"; import market_utils from "common/market_utils"; import {Asset, Price, LimitOrderCreate} from "common/MarketClasses"; @@ -34,6 +33,7 @@ import AccountNotifications from "../Notifier/NotifierContainer"; import TranslateWithLinks from "../Utility/TranslateWithLinks"; import SimpleDepositWithdraw from "../Dashboard/SimpleDepositWithdraw"; import SimpleDepositBlocktradesBridge from "../Dashboard/SimpleDepositBlocktradesBridge"; +import {Notification} from "bitshares-ui-style-guide"; class Exchange extends React.Component { static propTypes = { @@ -784,9 +784,8 @@ class Exchange extends React.Component { coreBalance.getAmount() ); if (!feeID) { - return notify.addNotification({ - message: "Insufficient funds to pay fees", - level: "error" + return Notification.error({ + message: "Insufficient funds to pay fees" }); } @@ -815,13 +814,12 @@ class Exchange extends React.Component { ]); if (current.for_sale.gt(sellBalance) && !isPredictionMarket) { - return notify.addNotification({ + return Notification.error({ message: "Insufficient funds to place order, you need at least " + current.for_sale.getAmount({real: true}) + " " + - sellAsset.get("symbol"), - level: "error" + sellAsset.get("symbol") }); } // @@ -831,9 +829,8 @@ class Exchange extends React.Component { current.to_receive.getAmount() > 0 ) ) { - return notify.addNotification({ - message: "Please enter a valid amount and price", - level: "error" + return Notification.warning({ + message: "Please enter a valid amount and price" }); } // @@ -888,13 +885,12 @@ class Exchange extends React.Component { .then(result => { if (result.error) { if (result.error.message !== "wallet locked") - notify.addNotification({ + Notification.error({ message: "Unknown error. Failed to place order for " + current.to_receive.getAmount({real: true}) + " " + - current.to_receive.asset_id, - level: "error" + current.to_receive.asset_id }); } console.log("order success"); @@ -957,13 +953,12 @@ class Exchange extends React.Component { result => { if (result.error) { if (result.error.message !== "wallet locked") - notify.addNotification({ + Notification.error({ message: "Unknown error. Failed to place order for " + buyAssetAmount + " " + - buyAsset.symbol, - level: "error" + buyAsset.symbol }); } }
14
diff --git a/src/indexPage/react-components/footer.jsx b/src/indexPage/react-components/footer.jsx @@ -32,8 +32,8 @@ const Footer = () => ( <SocialIcons networks={[ { media: 'youtube', href: 'https://www.youtube.com/user/BinaryTradingVideos' }, - { media: 'facebook', href: 'https://www.facebook.com/binarydotcom' }, - { media: 'twitter', href: 'https://twitter.com/Binarydotcom' }, + { media: 'facebook', href: 'https://www.facebook.com/derivdotcom' }, + { media: 'twitter', href: 'https://twitter.com/derivdotcom' }, { media: 'telegram', href: 'https://t.me/binarydotcom' }, { media: 'reddit', href: 'https://www.reddit.com/r/binarydotcom/' }, ]}
3
diff --git a/articles/security/index.md b/articles/security/index.md @@ -17,7 +17,6 @@ description: Learn about various topics regarding how to handle sensitive data w <%= include('../_includes/_topic-links', { links: [ 'security/store-tokens', - 'security/token-exp', 'tokens' ] }) %>
2
diff --git a/layouts/partials/footer.ejs b/layouts/partials/footer.ejs ga('create', '***REMOVED***', 'auto'); <% if(locals.userInfo) { %> - ga('set', 'userId', <%= JSON.stringify(locals.userInfo.userId) %>); // Set the user ID using signed-in user_id. + ga('set', 'userId', <%- JSON.stringify(locals.userInfo.userId) %>); // Set the user ID using signed-in user_id. <% } %> <% if(locals.pageType) { %>
4
diff --git a/scss/layout/_navbar.scss b/scss/layout/_navbar.scss @@ -33,7 +33,7 @@ $siimple-navbar-title-padding: 15px; //margin: $siimple-navbar-margin; padding: { top: $siimple-navbar-padding; - bottom: $siimple-navbar-margin; + bottom: $siimple-navbar-padding; } vertical-align: middle;
1
diff --git a/scripts/components/custom-select/docs/readme.mdx b/scripts/components/custom-select/docs/readme.mdx @@ -59,15 +59,17 @@ Your IDE will display all the properties, together with their descriptions. onChange={(value) => setAttributes({ myValue: value })} multiple={false} label={__('My label', 'eigthshift-frontend-libs')} - filterAsyncOptions={(options) => !Array.isArray(options) ? - options : - [...options].map(({label, value, metadata}) => { + filterAsyncOptions={(options) => { + if (!Array.isArray(options)) { + return options; + } + return [...options].map(({label, value, metadata}) => { return { label: `${label} -- ${metadata}`, value, }; }); - } + }} /> ```
7
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -1206,6 +1206,7 @@ class Avatar { Right_ankle: this.outputs.leftFoot, }; + this.emotes = []; if (this.options.visemes) { const vrmExtension = this.object && this.object.userData && this.object.userData.gltfExtensions && this.object.userData.gltfExtensions.VRM; const blendShapes = vrmExtension && vrmExtension.blendShapeMaster && vrmExtension.blendShapeMaster.blendShapeGroups; @@ -2047,9 +2048,26 @@ class Avatar { for (const visemeMapping of this.skinnedMeshesVisemeMappings) { if (visemeMapping) { const [morphTargetInfluences, aaIndex, blinkLeftIndex, blinkRightIndex] = visemeMapping; + + // reset + for (let i = 0; i < morphTargetInfluences.length; i++) { + morphTargetInfluences[i] = 0; + } + + // mouth volume if (aaIndex !== null) { morphTargetInfluences[aaIndex] = aaValue; } + + // user + if (this.emotes.length > 0) { + for (const emote of this.emotes) { + if (emote.index < morphTargetInfluences.length) { + morphTargetInfluences[emote.index] = emote.value; + } + } + } else { + // blink if (blinkLeftIndex !== null) { morphTargetInfluences[blinkLeftIndex] = blinkValue; } @@ -2059,6 +2077,7 @@ class Avatar { } } } + } if (this.debugMeshes) { if (this.getTopEnabled()) {
0
diff --git a/src/js/row.js b/src/js/row.js @@ -140,11 +140,13 @@ RowComponent.prototype.getTable = function(){ }; RowComponent.prototype.getNextRow = function(){ - return this._row.nextRow(); + var row = this._row.nextRow(); + return row ? row.getComponent() : row; }; RowComponent.prototype.getPrevRow = function(){ - return this._row.prevRow(); + var row = this._row.prevRow(); + return row ? row.getComponent() : row; }; @@ -644,12 +646,12 @@ Row.prototype.getCells = function(){ Row.prototype.nextRow = function(){ var row = this.table.rowManager.nextDisplayRow(this, true); - return row ? row.getComponent() : false; + return row || false; }; Row.prototype.prevRow = function(){ var row = this.table.rowManager.prevDisplayRow(this, true); - return row ? row.getComponent() : false; + return row || false; }; Row.prototype.moveToRow = function(to, before){
3
diff --git a/articles/quickstart/spa/angular-beta/_includes/_centralized_login.md b/articles/quickstart/spa/angular-beta/_includes/_centralized_login.md @@ -387,7 +387,7 @@ import { AuthService } from './auth.service'; @Injectable({ providedIn: 'root' }) -export class LoginGuard implements CanActivate { +export class AuthGuard implements CanActivate { constructor(private authService: AuthService, private router: Router) {} async canActivate(
10
diff --git a/package.json b/package.json "markdown-it-anchor": "5.2.5", "markdown-it-table-of-contents": "0.4.4", "node-fetch": "2.6.0", - "performance-leaderboard": "1.0.1", + "performance-leaderboard": "1.0.2", "puppeteer": "2.1.1", "semver": "7.1.3", "sharp": "0.25.2",
3
diff --git a/kitty-items-deployer/src/index.ts b/kitty-items-deployer/src/index.ts @@ -22,6 +22,7 @@ async function run() { console.log('starting deployment of contracts, accessNode:', process.env.FLOW_NODE, ' address:', process.env.ACCOUNT_ADDRESS); const result = await deployerService.deploy(); console.log('result', result); + console.log(`https://flow-view-source.com/testnet/account/0x${process.env.ACCOUNT_ADDRESS}`) process.exit(); }
0
diff --git a/lib/assets/core/test/spec/cartodb3/editor/layers/layer-content-view/infowindows/infowindows-view.spec.js b/lib/assets/core/test/spec/cartodb3/editor/layers/layer-content-view/infowindows/infowindows-view.spec.js @@ -68,6 +68,7 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio name: 'a_number' } ]); + spyOn(this.querySchemaModel, 'fetch'); this.queryGeometryModel = new QueryGeometryModel({ query: 'SELECT * FROM foobar', @@ -83,6 +84,8 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio querySchemaModel: this.querySchemaModel }); + spyOn(this.queryRowsCollection, 'fetch'); + this.layerDefinitionModel = new LayerDefinitionModel({ id: 'l-1', fetched: true, @@ -110,10 +113,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio describe('when layer has infowindowModel', function () { beforeEach(function () { - jasmine.Ajax.install(); - jasmine.Ajax.stubRequest(new RegExp('.*api/v2/sql.*')) - .andReturn({ status: 200 }); - this.view = new InfowindowsView({ configModel: this.configModel, editorModel: new EditorModel(), @@ -133,10 +132,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio this.view.render(); }); - afterEach(function () { - jasmine.Ajax.uninstall(); - }); - it('should render loading view if query-geometry-model is fetching', function () { spyOn(this.queryGeometryModel, 'isFetching').and.returnValue(true); @@ -277,10 +272,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio describe('when layer has no geometry', function () { beforeEach(function () { - jasmine.Ajax.install(); - jasmine.Ajax.stubRequest(new RegExp('.*api/v2/sql.*')) - .andReturn({ status: 200 }); - this.view = new InfowindowsView({ configModel: this.configModel, editorModel: new EditorModel(), @@ -300,10 +291,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio this.view.render(); }); - afterEach(function () { - jasmine.Ajax.uninstall(); - }); - it('should render placeholder', function () { expect(_.size(this.view._subviews)).toBe(1); expect(this.view.$('.CDB-Size-huge').length).toBe(0); @@ -367,10 +354,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio describe('when layer doesn\'t have infowindowModel (basemap, torque, ...)', function () { beforeEach(function () { - jasmine.Ajax.install(); - jasmine.Ajax.stubRequest(new RegExp('.*api/v2/sql.*')) - .andReturn({ status: 200 }); - var layerDefinitionModel = new LayerDefinitionModel({ id: 'l-1', fetched: true, @@ -400,10 +383,6 @@ describe('editor/layers/layer-content-view/infowindow/infowindows-view', functio this.view.render(); }); - afterEach(function () { - jasmine.Ajax.uninstall(); - }); - it('should render placeholder', function () { expect(this.view._layerTabPaneView).not.toBeDefined(); expect(this.view.$('.CDB-Size-huge').length).toBe(1);
2
diff --git a/packagescripts/linux/packageLinux.sh b/packagescripts/linux/packageLinux.sh set -x -e -o pipefail GIT_BRANCH=${JOB_NAME#*/*/} +TARGET=${GIT_BRANCH#*/} + if [ "${GIT_BRANCH:0:2}" = "PR" ]; then echo "skipping creating installer for pull requests" exit 0
12
diff --git a/articles/tutorials/how-to-monitor-auth0.md b/articles/tutorials/how-to-monitor-auth0.md @@ -45,31 +45,7 @@ The `/testall` endpoint checks the status of the core Auth0 authentication servi If all services are up, the endpoint returns the `200` HTTP response code and a simple text message saying, "`OK`." If any service is down, the response code from `/testall` will be 5xx. -If you've extended Auth0 through [rules](/rules) or [a custom database connection](/connections/database/mysql), you can build a synthetic transaction that exercises these capabilities. - -```har -{ - "method": "POST", - "url": "https://${account.namespace}/oauth/ro", - "headers": [ - { "name": "Content-Type", "value": "application/json" } - ], - "postData": { - "mimeType": "application/json", - "text": "{\"client_id\": \"An app registered in Auth0 for monitoring\",\"username\": \"A system account for monitoring\", \"password\": \"A password\", \"connection\": \"A user store defined in Auth0\", \"grant_type\": \"password\", \"scope\":\"openid\", \"device\": \"SCOM\"}" - } -} -``` - -A successful request would return a `200` HTTP status code and the following information: - -```json -{ - "id_token": "eyJ0eXAi......3Jia5WgM", - "access_token": "F25VQ.....NWpS", - "token_type": "bearer" -} -``` +If you've extended Auth0 through [rules](/rules) or [a custom database connection](/connections/database/mysql), you can build a synthetic transaction that exercises these capabilities using the [Resource Owner Password Grant](/api-auth/tutorials/password-grant). We recommend using an authentication flow that doesn't require a user interface (such as the `Resource Owner flow`) so that you don't have to use a monitoring tool that is capable of mimicking the actions of a user. Many monitoring tools exist using this approach, including:
2
diff --git a/src/server/routes/bots.js b/src/server/routes/bots.js @@ -506,7 +506,7 @@ router.post("/edit", async (req, res) => { } if (!err && req.body.desc) { if (!err && req.body.desc !== bot.desc) { - if (!err && req.body.desc.length < 100) err = "invalid_desc"; + if (!err && (req.body.desc.length < 100) && (!req.body.desc.includes("iframe"))) err = "invalid_desc"; else { bot.desc = coronaSanitizer(req.body.desc, { allowedTags: coronaSanitizer.defaults.allowedTags.concat(['discord-message', 'discord-messages', 'img', 'iframe', 'style', 'h1', 'h2', 'link', 'mark', 'svg']),
11
diff --git a/templates/admin/map_settings.html b/templates/admin/map_settings.html placeholder="Zoom" @keyUp=getBoundaryData(admin_boundary) /> + <span class="help-block">Select a zoom level between 1-18 (whole number only) for the map.</span> </div> </div> <div class="row">
0
diff --git a/docs/source/index.rst b/docs/source/index.rst @@ -4,7 +4,7 @@ Welcome to Esquio .. image:: images/xabaril.png :align: center -**Esquio** is a `Feature Toggles (aka Feature Flags) <https://martinfowler.com/articles/feature-toggles.html>`_ and A/B testing library for ASP.NET Core 3.0. Feature Toogle is a powerful technique that allows developers to deliver new functionality to users withouth changing code. Provides an alternative to to mantain multiples branches (aka feature branches), so any feature can be tested even before it is completed and ready for the release. We can release a version of our product with not production ready features. These non production ready features are hidden (toggled) for the broader set of users but can be enabled to any subset of testing or internal users we want them to try the features.We can use feature toogling to enable or disable features during run time. +**Esquio** is a `Feature Toggles (aka Feature Flags) <https://martinfowler.com/articles/feature-toggles.html>`_ and A/B testing library for ASP.NET Core 3.0. Feature toggling is a powerful technique that allows developers to deliver new functionality to users without changing code. Feature toggles provide an alternative to mantaining multiple branches (aka feature branches), so any feature can be tested even before it is completed and ready for the release. We can release a version of our product without production-ready features. These non production-ready features are hidden (toggled) for the broader set of users but can be enabled to any subset of testing or internal users we want to try out the features. We can even use feature toggling to enable or disable features during runtime. .. toctree:: :maxdepth: 3
7
diff --git a/src/middleware/packages/middlewares/index.js b/src/middleware/packages/middlewares/index.js @@ -30,11 +30,11 @@ const negotiateContentType = (req, res, next) => { }; const throw403 = msg => { - throw new MoleculerError(msg, 403, 'ACCESS_DENIED', { status: 'Forbidden', text: msg }); + throw new MoleculerError('Access denied', 403, 'ACCESS_DENIED', { status: 'Forbidden', text: msg }); }; const throw500 = msg => { - throw new MoleculerError(msg, 500, 'INTERNAL_SERVER_ERROR', { status: 'Server Error', text: msg }); + throw new MoleculerError('Server error', 500, 'INTERNAL_SERVER_ERROR', { status: 'Server Error', text: msg }); }; const negotiateAccept = (req, res, next) => {
13
diff --git a/src/assets/drizzle/styles/components/_footer.scss b/src/assets/drizzle/styles/components/_footer.scss .#{$app-namespace}-c-Footer { background-color: $purple; padding: $space-inset-short-l; + + @media (max-width: 21.5625rem) { + padding: $space-inset-short-m; + } } .#{$app-namespace}-c-Footer__icons {
3
diff --git a/package-lock.json b/package-lock.json "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==" }, "@openapitools/openapi-generator-cli": { - "version": "0.0.14-4.0.2", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-0.0.14-4.0.2.tgz", - "integrity": "sha512-x4gKaGNgG5Eqt43B4V814Bp0zUBT5h9/K0Tz4oTi5wGy+5sqU5/gElKys0jmM6wvEio2OXJm728BIFuKPuFi5w==", + "version": "1.0.8-4.2.2", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-1.0.8-4.2.2.tgz", + "integrity": "sha512-K14xUl5Cc2Epm5hoclvi1KGANy9SCSWddEZCLk9Ij0v0ujbLtK1bMOkrjCOz0ADxdb0Vfsc6T6EE3G3lmBrOCQ==", "dev": true }, "@sindresorhus/is": {
3
diff --git a/src/handler-runner/createHandler.js b/src/handler-runner/createHandler.js @@ -40,9 +40,7 @@ module.exports = function createHandler(funOptions, options) { const nextChildren = [] require.cache[currentFilePath].children.forEach((moduleCache) => { - if ( - moduleCache.filename.match(cacheInvalidationRegex || /node_modules/) - ) { + if (moduleCache.filename.match(regExp)) { nextChildren.push(moduleCache) } })
2
diff --git a/src/components/nodes/sequenceFlow/sequenceFlow.vue b/src/components/nodes/sequenceFlow/sequenceFlow.vue @@ -26,10 +26,6 @@ export default { return false; } - if (targetType === targetType) { - return false; - } - if (targetType === laneId) { return false; }
2
diff --git a/activities/PhysicsJS.activity/js/activity.js b/activities/PhysicsJS.activity/js/activity.js @@ -389,13 +389,28 @@ define(["sugar-web/activity/activity"], function (activity) { return Physics.body(savedObject.type, newOptions); } + function setBodiesTreatmentStatic() { + var bodies = world.getBodies(); + bodies.forEach(function(item, index, array) { + item.treatment = 'static'; + }); + } + + function setBodiesTreatmentDynamic() { + var bodies = world.getBodies(); + bodies.forEach(function(item, index, array) { + item.treatment = 'dynamic'; + }); + } + function togglePause() { if (physicsActive) { document.getElementById("pause-button").classList.add('active'); - world.pause(); + setBodiesTreatmentStatic(); } else { document.getElementById("pause-button").classList.remove('active'); - world.unpause(); + Physics.util.ticker.start(); + setBodiesTreatmentDynamic(); } physicsActive = !physicsActive; } @@ -477,12 +492,14 @@ define(["sugar-web/activity/activity"], function (activity) { } } ,'interact:release': function( pos ){ + if (physicsActive) { if (createdBody != null) { createdBody.treatment = "dynamic"; - createdBody = null; } world.wakeUpAll(); } + createdBody = null; + } ,'interact:grab': function ( data ) { if (currentType == -1) { world.remove(data.body);
11
diff --git a/src/libs/actions/FormActions.js b/src/libs/actions/FormActions.js import Onyx from 'react-native-onyx'; /** - * @param {String} formName + * @param {String} formID * @param {Boolean} isSubmitting */ -function setIsSubmitting(formName, isSubmitting) { - Onyx.merge(formName, {isSubmitting}); +function setIsSubmitting(formID, isSubmitting) { + Onyx.merge(formID, {isSubmitting}); } /** - * @param {String} formName + * @param {String} formID * @param {Boolean} serverErrorMessage */ -function setServerErrorMessage(formName, serverErrorMessage) { - Onyx.merge(formName, {serverErrorMessage}); +function setServerErrorMessage(formID, serverErrorMessage) { + Onyx.merge(formID, {serverErrorMessage}); } /** - * @param {String} formName + * @param {String} formID * @param {Object} draftValues */ -function setDraftValues(formName, draftValues) { - Onyx.merge(`${formName}DraftValues`, draftValues); +function setDraftValues(formID, draftValues) { + Onyx.merge(`${formID}DraftValues`, draftValues); } export {
10
diff --git a/shared/js/ui/templates/tracker-networks.es6.js b/shared/js/ui/templates/tracker-networks.es6.js @@ -9,7 +9,7 @@ module.exports = function () { sliding-subview--has-fixed-header"> </section>` } else { - return bel`<div class="tracker-networks site-info card"> + return bel`<div class="tracker-networks site-info site-info--full-height card"> <div class="js-tracker-networks-hero"> ${hero({ status: trackerNetworksIcon(), @@ -23,7 +23,7 @@ module.exports = function () { Tracker networks aggregate your web history into a data profile about you. Major tracker networks are more harmful because they can track and target you across more of the internet. </div> - <div class="tracker-networks__details padded border--bottom--inner + <div class="tracker-networks__details padded js-tracker-networks-details"> <ol class="default-list site-info__trackers__company-list"> ${renderTrackerDetails(
2
diff --git a/src/components/lights/AreaLight.js b/src/components/lights/AreaLight.js @@ -2,6 +2,17 @@ import {RectAreaLight as RectAreaLightNative} from 'three'; import {LightComponent} from '../../core/LightComponent'; class AreaLight extends LightComponent { + static defaults = { + ...LightComponent.defaults, + + light: { + color: 0xffffff, + intensity: 1, + width: 10, + height: 10 + } + }; + constructor(params = {}) { super(params); }
12
diff --git a/packages/bitcore-client/src/stream-util.ts b/packages/bitcore-client/src/stream-util.ts @@ -26,7 +26,7 @@ function signTxStream(wallet: any, keys: object, utxosPassedIn: object, passphra const rawTransaction = chunk.rawTransaction; const utxos = utxosPassedIn || chunk.utxos; const signedTx = await wallet.signTx({tx: rawTransaction, utxos, keys, passphrase}); - chunk.signedTransaction = signedTx; + chunk.signedRawTransaction = signedTx; return callback(null, chunk); } });
3
diff --git a/articles/quickstart/webapp/aspnet-core/03-storing-tokens.md b/articles/quickstart/webapp/aspnet-core/03-storing-tokens.md @@ -106,7 +106,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF app.UseOpenIdConnectAuthentication(options); ``` -The `access_token` will now be stored as a claim called "access_token", so to retrieve it inside a controller you can simply use `User.Claims.FirstOrDefault("access_token").Value` +The `access_token` will now be stored as a claim called "access_token", so to retrieve it inside a controller you can simply use `User.Claims.FirstOrDefault("access_token")?.Value` ::: warning You need to note that saving the tokens will increase the size of your authentication cookie, so be careful with adding unnecessary claims to the ClaimsIdentity as this cookie is sent back to the server with every request.
0
diff --git a/packages/gallery/src/components/item/videos/videoItem.js b/packages/gallery/src/components/item/videos/videoItem.js @@ -273,7 +273,7 @@ class VideoItem extends React.Component { this.state.ready || !shouldCreateVideoPlaceholder(this.props.options) ) { - videoContainerStyle.backgroundColor = 'black'; + // videoContainerStyle.backgroundColor = 'black'; } else { videoContainerStyle.backgroundImage = `url(${this.props.createUrl( GALLERY_CONSTS.urlSizes.RESIZED,
2
diff --git a/src/background/utils/options.js b/src/background/utils/options.js @@ -51,34 +51,6 @@ const init = browser.storage.local.get('options') console.log('options:', options); // eslint-disable-line no-console } if (!objectGet(options, 'version')) { - // v2.8.0+ stores options in browser.storage.local - // Upgrade from v2.7.x - if (process.env.DEBUG) { - console.log('Upgrade options...'); // eslint-disable-line no-console - } - try { - if (localStorage.length) { - Object.keys(defaults) - .forEach((key) => { - let value = localStorage.getItem(key); - if (value) { - try { - value = JSON.parse(value); - } catch (e) { - value = null; - } - } - if (value) { - if (process.env.DEBUG) { - console.log('Upgrade option:', key, value); // eslint-disable-line no-console - } - setOption(key, value); - } - }); - } - } catch (e) { - // ignore security issue in Firefox - } setOption('version', 1); } })
1
diff --git a/Specs/addDefaultMatchers.js b/Specs/addDefaultMatchers.js @@ -585,20 +585,20 @@ define([ var rgba = context.readPixels(); if (!webglStub) { if (expectEqual) { - if (!CesiumMath.equalsEpsilon(rgba[0], expected[0], epsilon) || - !CesiumMath.equalsEpsilon(rgba[1], expected[1], epsilon) || - !CesiumMath.equalsEpsilon(rgba[2], expected[2], epsilon) || - !CesiumMath.equalsEpsilon(rgba[3], expected[3], epsilon)) { + if (!CesiumMath.equalsEpsilon(rgba[0], expected[0], 0, epsilon) || + !CesiumMath.equalsEpsilon(rgba[1], expected[1], 0, epsilon) || + !CesiumMath.equalsEpsilon(rgba[2], expected[2], 0, epsilon) || + !CesiumMath.equalsEpsilon(rgba[3], expected[3], 0, epsilon)) { return { pass : false, message : 'Expected context to render ' + expected + ', but rendered: ' + rgba }; } } else { - if (CesiumMath.equalsEpsilon(rgba[0], expected[0], epsilon) && - CesiumMath.equalsEpsilon(rgba[1], expected[1], epsilon) && - CesiumMath.equalsEpsilon(rgba[2], expected[2], epsilon) && - CesiumMath.equalsEpsilon(rgba[3], expected[3], epsilon)) { + if (CesiumMath.equalsEpsilon(rgba[0], expected[0], 0, epsilon) && + CesiumMath.equalsEpsilon(rgba[1], expected[1], 0, epsilon) && + CesiumMath.equalsEpsilon(rgba[2], expected[2], 0, epsilon) && + CesiumMath.equalsEpsilon(rgba[3], expected[3], 0, epsilon)) { return { pass : false, message : 'Expected context not to render ' + expected + ', but rendered: ' + rgba
4
diff --git a/ts-defs/index.d.ts b/ts-defs/index.d.ts @@ -256,6 +256,11 @@ interface SelectorOptions { * selector to appear in the DOM before the test fails. */ timeout?: number; + /** + * Use this option to pass functions, variables or objects to selectors initialized with a function. + * The `dependencies` object's properties are added to the function's scope as variables. + */ + dependencies?: {[key: string]: any}; /** * `true` to additionally require the returned element to become visible within `options.timeout`. */
0
diff --git a/ui/src/components/Investigation/InvestigationHeading.scss b/ui/src/components/Investigation/InvestigationHeading.scss @@ -40,7 +40,7 @@ $inner-padding: 15px; .metadata-shown & { width: 100%; - margin-top: 20px; + margin-top: 0; margin-bottom: $aleph-grid-size; } } @@ -113,4 +113,8 @@ $inner-padding: 15px; .CollectionLink, .CategoryLink { color: white !important; } + + .CollectionInfo__item .value { + font-weight: 500; + } }
7
diff --git a/config/engine.js b/config/engine.js export default { - apiKey: '', // Set your Engine API key here + apiKey: process.env.ENGINE_API_KEY, // Set your Apollo Engine API key logging: { level: 'DEBUG' // Engine Proxy logging level. DEBUG, INFO, WARN or ERROR }
4
diff --git a/components/admin/layers/form/steps/Step1.js b/components/admin/layers/form/steps/Step1.js @@ -198,9 +198,25 @@ class Step1 extends React.Component { {Code} </Field> + {form.provider !== 'gee' && <InteractionsComponent form={form} /> + } + + {form.provider === 'gee' && + <Field + ref={(c) => { if (c) FORM_ELEMENTS.elements.interactionConfig = c; }} + onChange={value => this.props.onChange({ interactionConfig: value })} + properties={{ + name: 'interactionConfig', + label: 'Raster interactivity', + default: form.interactionConfig + }} + > + {Code} + </Field> + } <LayerPreviewComponent form={form}
11