code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/server/workers/pubmed/renv.lock b/server/workers/pubmed/renv.lock "Repository": "CRAN", "Hash": "022c42d49c28e95d69ca60446dbabf88" }, + "data.table": { + "Package": "data.table", + "Version": "1.14.2", + "Source": "Repository", + "Repository": "CRAN", + "Hash": "36b67b5adf57b292923f5659f5f0c853" + }, "doParallel": { "Package": "doParallel", "Version": "1.0.16", "Source": "Repository", "Repository": "CRAN", "Hash": "b227d13e29222b4574486cfcbde077fa" + }, + "xml2": { + "Package": "xml2", + "Version": "1.3.2", + "Source": "Repository", + "Repository": "CRAN", + "Hash": "d4d71a75dd3ea9eb5fa28cc21f9585e2" } } }
3
diff --git a/login.js b/login.js @@ -353,6 +353,49 @@ class LoginManager extends EventTarget { } } + async uploadToInventory(file) { + if (loginToken) { + const {name} = file; + if (name) { + const {mnemonic, addr} = loginToken; + + let hash; + { + const res = await fetch('https://storage.exokit.org/', { + method: 'POST', + body: file, + }); + const j = await res.json(); + hash = j.hash; + } + { + const contractSource = await getContractSource('mintNft.cdc'); + + const res = await fetch(`https://accounts.exokit.org/sendTransaction`, { + method: 'POST', + body: JSON.stringify({ + address: addr, + mnemonic, + + limit: 100, + transaction: contractSource + .replace(/ARG0/g, hash) + .replace(/ARG1/g, name), + wait: true, + }), + }); + const response2 = await res.json(); + const id = parseInt(response2.transaction.events[0].payload.value.fields.find(field => field.name === 'id').value.value, 10); + return id; + } + } else { + throw new Error('file has no name'); + } + } else { + throw new Error('not logged in'); + } + } + pushUpdate() { this.dispatchEvent(new MessageEvent('usernamechange', { data: userObject && userObject.name,
0
diff --git a/token-metadata/0x675Ce995953136814cb05aaAA5d02327E7Dc8c93/metadata.json b/token-metadata/0x675Ce995953136814cb05aaAA5d02327E7Dc8c93/metadata.json "symbol": "BBC", "address": "0x675Ce995953136814cb05aaAA5d02327E7Dc8c93", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/lib/apollo/withApolloClient.js b/src/lib/apollo/withApolloClient.js @@ -71,7 +71,8 @@ export default function withApolloClient(WrappedComponent) { // In server, if a 401 Unauthorized error occurred, redirect to /signin. // This will re-authenticate without showing a login page and a new token is issued. if (error.networkError.response.status === 401 && res) { - logger.debug("Received 401 error from the GraphQL API due to invalid or expired authentication credentials. Triggering token refresh via redirect flow"); + // eslint-disable-next-line no-console + console.log("Received 401 error from the GraphQL API due to invalid or expired authentication credentials. Triggering token refresh via redirect flow"); res.writeHead(302, { Location: "/signin" }); res.end(); return {};
1
diff --git a/js/fcoin.js b/js/fcoin.js @@ -242,11 +242,12 @@ module.exports = class fcoin extends Exchange { return this.parseBalance (result); } - convertOrderBook (bidasks) { + parseBidsAsks (bidasks, priceKey = 0, amountKey = 1) { let newbidasks = []; let length = bidasks.length / 2; - for (let i = 0; i < length; i++) { - newbidasks.push (bidasks.slice (0, 2)); + for (let i = 0; i < parseInt (length); i++) { + let ba = bidasks.slice (0, 2); + newbidasks.push ([ba[priceKey], ba[amountKey]]); bidasks = bidasks.slice (2); } return newbidasks; @@ -259,8 +260,7 @@ module.exports = class fcoin extends Exchange { 'level': 'full', // full }; let orderbook = await this.marketGetDepthLevelSymbol (this.extend (request, params)); - let bidasks = this.convertOrderBook (orderbook['data']); - return this.parseOrderBook (bidasks, orderbook['data']['ts'], 'bids', 'asks', 0, 1); + return this.parseOrderBook (orderbook['data'], orderbook['data']['ts'], 'bids', 'asks', 0, 1); } async fetchTicker (symbol, params = {}) { @@ -477,7 +477,7 @@ module.exports = class fcoin extends Exchange { 'limit': limit, }; let response = await this.marketGetCandlesTimeframeSymbol (this.extend (request, params)); - return this.parseOHLCVs (response, market, timeframe, since, limit); + return this.parseOHLCVs (response['data'], market, timeframe, since, limit); } nonce () {
1
diff --git a/packages/vulcan-lib/lib/server/apollo_server.js b/packages/vulcan-lib/lib/server/apollo_server.js @@ -25,6 +25,7 @@ export let executableSchema; // see https://github.com/apollographql/apollo-cache-control const engineApiKey = getSetting('apolloEngine.apiKey'); +const engineLogLevel = getSetting('apolloEngine.logLevel', 'INFO') const engineConfig = { apiKey: engineApiKey, // "origins": [ @@ -64,9 +65,9 @@ const engineConfig = { // "endpointUrl": "https://engine-report.apollographql.com", // "debugReports": true // }, - // "logging": { - // "level": "DEBUG" - // } + "logging": { + "level": engineLogLevel + } }; let engine; if (engineApiKey) {
11
diff --git a/.travis.yml b/.travis.yml @@ -10,8 +10,8 @@ jobs: - stage: check contract format script: - | - val=$(node checkContract.js); - if [[ $val != 0 ]]; then + contractErrors=$(node checkContract.js); + if [[ $contractErrors != 0 ]]; then echo "Formatting errors! Please check your object keys spellings, commas and or other things that might invalidate your JSON and try again"; exit 1; else @@ -21,8 +21,8 @@ jobs: - stage: check token format script: - | - val=$(node checkToken.js); - if [[ $val != 0 ]]; then + tokenErrors=$(node checkToken.js); + if [[ $tokenErrors != 0 ]]; then echo "Formatting errors! Please check your object keys spellings, commas and or other things that might invalidate your JSON and try again"; exit 1; else
14
diff --git a/src/js/services/incomingData.js b/src/js/services/incomingData.js @@ -5,7 +5,7 @@ angular.module('canoeApp.services').factory('incomingData', function ($log, $sta root.showMenu = function (data) { $rootScope.$broadcast('incomingDataMenu.showMenu', data) - }; + } root.redir = function (data) { $log.debug('Processing incoming data: ' + data) @@ -82,10 +82,10 @@ angular.module('canoeApp.services').factory('incomingData', function ($log, $sta }) return true - } + }*/ data = sanitizeUri(data) -*/ + // Bitcoin URL /* if (bitcore.URI.isValid(data)) { var coin = 'btc' @@ -275,7 +275,7 @@ angular.module('canoeApp.services').factory('incomingData', function ($log, $sta return true // Join - } else*/ if (data && data.match(/^canoe:[0-9A-HJ-NP-Za-km-z]{70,80}$/)) { + } else if (data && data.match(/^canoe:[0-9A-HJ-NP-Za-km-z]{70,80}$/)) { $state.go('tabs.home', {}, { 'reload': true, 'notify': $state.current.name != 'tabs.home' @@ -309,17 +309,16 @@ angular.module('canoeApp.services').factory('incomingData', function ($log, $sta }) }) return true - - } else { + } else {*/ if ($state.includes('tabs.scan')) { root.showMenu({ data: data, type: 'text' }) } - } + /* } */ return false - }; + } function goToAmountPage (toAddress, coin) { $state.go('tabs.send', {}, {
1
diff --git a/src/components/dragelement/index.js b/src/components/dragelement/index.js 'use strict'; var mouseOffset = require('mouse-event-offset'); +var hasHover = require('has-hover'); var Plotly = require('../../plotly'); var Lib = require('../../lib'); @@ -63,11 +64,16 @@ dragElement.init = function init(options) { startX, startY, newMouseDownTime, - dragCover, + cursor, + root = document.documentElement, initialTarget; if(!gd._mouseDownTime) gd._mouseDownTime = 0; + options.element.style.pointerEvents = 'all'; + options.element.onmousedown = onStart; + options.element.ontouchstart = onStart; + function onStart(e) { // make dragging and dragged into properties of gd // so that others can look at and modify them @@ -91,19 +97,16 @@ dragElement.init = function init(options) { if(options.prepFn) options.prepFn(e, startX, startY); - dragCover = coverSlip(); - - - dragCover.onmousemove = onMove; - dragCover.ontouchmove = onMove; - dragCover.onmouseup = onDone; - dragCover.onmouseout = onDone; - dragCover.ontouchend = onDone; + document.addEventListener('mousemove', onMove) + document.addEventListener('mouseup', onDone) + document.addEventListener('mouseout', onDone) - // var moveEvent = new TouchEvent('touchstart', e) - // dragCover.dispatchEvent(moveEvent) + document.addEventListener('touchmove', onMove) + document.addEventListener('touchend', onDone) - dragCover.style.cursor = window.getComputedStyle(options.element).cursor; + // disable cursor + cursor = window.getComputedStyle(root).cursor + root.style.cursor = window.getComputedStyle(options.element).cursor; return Lib.pauseEvent(e); } @@ -127,12 +130,17 @@ dragElement.init = function init(options) { } function onDone(e) { - dragCover.onmousemove = null; - dragCover.ontouchmove = null; - dragCover.onmouseup = null; - dragCover.onmouseout = null; - dragCover.ontouchend = null; - Lib.removeElement(dragCover); + document.removeEventListener('mousemove', onMove); + document.removeEventListener('mouseup', onDone); + document.removeEventListener('mouseout', onDone); + document.removeEventListener('touchmove', onMove); + document.removeEventListener('touchend', onDone); + + // enable cursor + if (cursor) { + root.style.cursor = cursor + cursor = null + } if(!gd._dragging) { gd._dragged = false; @@ -175,10 +183,6 @@ dragElement.init = function init(options) { return Lib.pauseEvent(e); } - - options.element.onmousedown = onStart; - options.element.ontouchstart = onStart; - options.element.style.pointerEvents = 'all'; }; function coverSlip() {
2
diff --git a/src/components/ChangeLogComponent/ChangeLogItem.js b/src/components/ChangeLogComponent/ChangeLogItem.js import React, { useState, useMemo } from "react"; import moment from "moment"; -import { Markdown } from "./ChangeLogComponent.styles"; +import { Markdown, ChangeLogSpan } from "./ChangeLogComponent.styles"; import { Link } from "react-router-dom"; -import { heading2id } from "common/utils"; import type { ComponentType } from "react"; import remark from "remark"; import html from "remark-html"; +const colours = { + "new feature": { + "background": "#CCE2D8", + "text": "#005A30" + }, + "new metric": { + "background": "#BFE3E0", + "text": "#10403C" + }, + "change to metric": { + "background": "#FFF7BF", + "text": "#594D00" + }, + "update": { + "background": "#FCD6C3", + "text": "#6E3619" + }, + "new content": { + "background": "#DBD5E9", + "text": "#3D2375" + }, + "data issue": { + "background": "#EEEFEF", + "text": "#383F43" + }, + "other": { + "background": "#D2E2F1", + "text": "#144E81" + }, +}; + + const useMarkdown = (content: string | undefined) => { const [body, setBody] = useState(null); @@ -33,7 +64,7 @@ const ChangeLogItemBody: ComponentType = ({ data }) => { const body = useMarkdown(data?.body) - return <div className="govuk-body govuk-!-margin-top-0 govuk-!-margin-bottom-0"> + return <div className="govuk-body govuk-!-margin-0"> <Markdown className="govuk-body govuk-!-margin-top-0 govuk-!-margin-bottom-0" dangerouslySetInnerHTML={{ __html: body }}/> </div> @@ -41,6 +72,24 @@ const ChangeLogItemBody: ComponentType = ({ data }) => { }; // ChangeLogItemBody +const Metrics: ComponentType = ({ data }) => { + + if ( !data?.metrics?.length ) return null; + + return <div className={ "govuk-!-padding-top-4 govuk-details__text govuk-body-s govuk-!-margin-top-0 govuk-!-margin-bottom-0" }> + <h3 className={ "govuk-heading-s" }>Affected metrics</h3> + <ul>{ + data.metrics.map(item => + <li key={ item.metric }> + { item.metric_name }: <code>{ item.metric }</code> + </li> + ) + }</ul> + </div> + +}; // Details + + const Details: ComponentType = ({ data }) => { const details = useMarkdown(data?.details); @@ -56,6 +105,7 @@ const Details: ComponentType = ({ data }) => { </summary> <Markdown className="govuk-details__text govuk-body-s govuk-!-margin-top-0 govuk-!-margin-bottom-0" dangerouslySetInnerHTML={{ __html: details }}/> + <Metrics data={ data }/> </details> }; // Details @@ -64,39 +114,39 @@ const Details: ComponentType = ({ data }) => { const ChangeLogHeading: ComponentType = ({ data }) => { return <h3 className={ "govuk-heading-s govuk-!-font-size-19 govuk-!-margin-bottom-1" } - id={ heading2id(data.headline) }> + id={ data.id }> <small className={ "govuk-caption-m govuk-!-font-size-19 govuk-!-margin-bottom-1" }> <time dateTime={ data.date }> <span className={ "govuk-visually-hidden" }>Date of change: </span> { moment(data.date).format("D MMMM") } </time> - {/*<ChangeLogSpan color={ colour?.text ?? "#000000" }*/} - {/* bgColor={ colour?.background ?? "inherit" }>*/} - {/* { data.type }*/} - {/*</ChangeLogSpan>*/} + <ChangeLogSpan color={ colours[data.type]?.text ?? "#000000" } + bgColor={ colours[data.type]?.background ?? "inherit" }> + <span className={ "govuk-visually-hidden" }>Type of log: </span>{ data.type } + </ChangeLogSpan> </small> { data?.relativeUrl ? data.relativeUrl.indexOf("details") > -1 ? <Link to={ data.relativeUrl } className={ "govuk-link govuk-!-font-weight-bold" }> - { data.headline } + { data.heading } </Link> : <a href={ data.relativeUrl } className={ "govuk-link govuk-!-font-weight-bold" }> - { data.headline } + { data.heading } </a> - : data.headline + : data.heading } </h3> }; // ChangeLogHeading -export const ChangeLogItem: ComponentType = ({ data, changeTypes, colour }) => { +export const ChangeLogItem: ComponentType = ({ data, changeTypes, ...props }) => { - return <div className="govuk-body-s govuk-!-margin-top-3 govuk-!-margin-bottom-6"> + return <section className="govuk-body-s govuk-!-margin-top-3 govuk-!-margin-bottom-6" {...props}> <ChangeLogHeading data={ data }/> <ChangeLogItemBody changeTypes={ changeTypes } data={ data }/> <Details data={ data }/> - </div> + </section> }; // ChangeLogItem
4
diff --git a/generators/upgrade/index.js b/generators/upgrade/index.js @@ -356,13 +356,13 @@ module.exports = class extends BaseGenerator { prepareUpgradeBranch() { const done = this.async(); - const getGitVersion = callback => { + const getGitVersion = () => { const gitVersion = this.gitExec(['--version'], { silent: this.silent }); - callback(String(gitVersion.stdout.match(/([0-9]+\.[0-9]+\.[0-9]+)/g))); + return String(gitVersion.stdout.match(/([0-9]+\.[0-9]+\.[0-9]+)/g)); }; const recordCodeHasBeenGenerated = () => { - getGitVersion(gitVersion => { + const gitVersion = getGitVersion(); let args; if (semver.lt(gitVersion, GIT_VERSION_NOT_ALLOW_MERGE_UNRELATED_HISTORIES)) { args = ['merge', '--strategy=ours', '-q', '--no-edit', UPGRADE_BRANCH]; @@ -377,7 +377,6 @@ module.exports = class extends BaseGenerator { } this.success(`Current code has been generated with version ${this.currentJhipsterVersion}`); done(); - }); }; const installJhipsterLocally = (version, callback) => {
2
diff --git a/lib/node_modules/@stdlib/_tools/pkgs/namespace-deps/lib/deps.js b/lib/node_modules/@stdlib/_tools/pkgs/namespace-deps/lib/deps.js @@ -27,6 +27,7 @@ var readFileSync = require( '@stdlib/fs/read-file' ).sync; var startsWith = require( '@stdlib/string/starts-with' ); var replace = require( '@stdlib/string/replace' ); var contains = require( '@stdlib/assert/contains' ); +var instanceOf = require( '@stdlib/assert/instance-of' ); var pkgDeps = require( '@stdlib/_tools/pkgs/deps' ).sync; var readJSON = require( '@stdlib/fs/read-json' ).sync; var standalonePackage = require( './standalone_package.js' ); @@ -81,8 +82,8 @@ function namespaceDeps( ns, level, dev ) { } catch ( err ) { debug( 'Encountered an error while reading `index.d.ts` file: '+err.message ); } - try { manifest = readJSON( path.join( entry, '..', 'manifest.json' ) ); + if ( !instanceOf( manifest, Error ) ) { if ( !dev ) { deps.push( '@stdlib/tools/library-manifest' ); } @@ -103,8 +104,6 @@ function namespaceDeps( ns, level, dev ) { } } } - } catch ( err ) { - debug( 'No manifest.json file present for '+ns+'. Error: '+err.message ); } for ( i = 0; i < namespacePkgs.length; i++ ) { pkg = namespacePkgs[ i ];
9
diff --git a/src/transitions/Collapse.spec.js b/src/transitions/Collapse.spec.js import React from 'react'; import { assert } from 'chai'; import { spy, stub } from 'sinon'; -import { createShallow } from 'src/test-utils'; +import { createShallow, createMount } from 'src/test-utils'; import Collapse, { styleSheet } from './Collapse'; describe('<Collapse />', () => { @@ -217,4 +217,22 @@ describe('<Collapse />', () => { }); }); }); + + describe('mount', () => { + let mount; + let mountInstance; + + before(() => { + mount = createMount(); + mountInstance = mount(<Collapse />).instance(); + }); + + after(() => { + mount.cleanUp(); + }); + + it('instance should have a wrapper property', () => { + assert.notStrictEqual(mountInstance.wrapper, undefined); + }); + }); });
0
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md -<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-middleware and webpack. --> +> The Issues page for this repository is not a support forum. **Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed.** If you proceed with this form, please fill out **_all_** fields, or your issue may be closed as "invalid." Please do not delete this template from a new issue. Please remove this header to acknowledge this message. -**Do you want to request a *feature* or report a *bug*?** +<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-middleware and webpack. --> -<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed. --> +* Operating System: +* Node Version: +* NPM Version: +* webpack version: +* webpack-dev-middleware Version: -**What is the current behavior?** +- [ ] This is a **feature** reqeust +- [ ] This is a **bug** +### Code -**If the current behavior is a bug, please provide the steps to reproduce.** +If you have a large amount of code to share which demonstrates the problem you're experiencing, please provide a link to your +repository rather than pasting code. Otherwise, please paste relevant short snippets below. -<!-- A great way to do this is to provide your configuration via a GitHub gist. --> +```js +// please provide your webpack.config.js for bug reports +``` -**What is the expected behavior?** +```js +// additional code +``` +### Expected Behavior -**If this is a feature request, what is motivation or use case for changing the behavior?** +### Actual Behavior +### For Bugs; How can we reproduce the behavior? -**Please mention your webpack and Operating System version.** +### For Features; What is the motivation and/or use-case for the feature?
3
diff --git a/core/block_render_svg.js b/core/block_render_svg.js @@ -383,7 +383,7 @@ Blockly.BlockSvg.typeVarShapes_ = { Blockly.BlockSvg.TAB_WIDTH + ',-7.5 s ' + Blockly.BlockSvg.TAB_WIDTH + ',2.5 ' + Blockly.BlockSvg.TAB_WIDTH + ',-7.5', - height: 20 + height: Blockly.BlockSvg.TAB_HEIGHT } } @@ -940,9 +940,9 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps, input.renderWidth); // Sorin inlineSteps.push(Blockly.BlockSvg.getDownPath(input.connection)); - Blockly.BlockSvg.TAB_HEIGHT = Blockly.BlockSvg.getTypeExprHeight(input.connection.typeExpr); + var tabHeight = Blockly.BlockSvg.getTypeExprHeight(input.connection.typeExpr); inlineSteps.push('v', input.renderHeight + 1 - - Blockly.BlockSvg.TAB_HEIGHT); + tabHeight); inlineSteps.push('h', input.renderWidth + 2 - Blockly.BlockSvg.TAB_WIDTH); inlineSteps.push('z'); @@ -955,7 +955,7 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps, highlightInlineSteps.push( Blockly.BlockSvg.TAB_PATH_DOWN_HIGHLIGHT_RTL); highlightInlineSteps.push('v', - input.renderHeight - Blockly.BlockSvg.TAB_HEIGHT + 2.5); + input.renderHeight - tabHeight + 2.5); highlightInlineSteps.push('h', input.renderWidth - Blockly.BlockSvg.TAB_WIDTH + 2); } else { @@ -970,7 +970,7 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps, highlightInlineSteps.push('M', (cursorX - input.renderWidth - Blockly.BlockSvg.SEP_SPACE_X + 0.9) + ',' + (cursorY + Blockly.BlockSvg.INLINE_PADDING_Y + - Blockly.BlockSvg.TAB_HEIGHT - 0.7)); + tabHeight - 0.7)); highlightInlineSteps.push('l', (Blockly.BlockSvg.TAB_WIDTH * 0.46) + ',-2.1'); } @@ -1014,8 +1014,8 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps, } this.renderFields_(input.fieldRow, fieldX, fieldY); steps.push(Blockly.BlockSvg.getDownPath(input.connection)); - Blockly.BlockSvg.TAB_HEIGHT = Blockly.BlockSvg.getTypeExprHeight(input.connection.typeExpr); - var v = row.height - Blockly.BlockSvg.TAB_HEIGHT; + tabHeight = Blockly.BlockSvg.getTypeExprHeight(input.connection.typeExpr); + var v = row.height - tabHeight; steps.push('v', v); if (this.RTL) { // Highlight around back of tab. @@ -1024,7 +1024,7 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, highlightSteps, } else { // Short highlight glint at bottom of tab. highlightSteps.push('M', (inputRows.rightEdge - 5) + ',' + - (cursorY + Blockly.BlockSvg.TAB_HEIGHT - 0.7)); + (cursorY + tabHeight - 0.7)); highlightSteps.push('l', (Blockly.BlockSvg.TAB_WIDTH * 0.46) + ',-2.1'); } @@ -1206,8 +1206,8 @@ Blockly.BlockSvg.prototype.renderDrawLeft_ = function(steps, highlightSteps) { if (this.outputConnection) { // Create output connection. this.outputConnection.setOffsetInBlock(0, 0); - Blockly.BlockSvg.TAB_HEIGHT = Blockly.BlockSvg.getTypeExprHeight(this.outputConnection.typeExpr); - steps.push('V', Blockly.BlockSvg.TAB_HEIGHT); + var tabHeight = Blockly.BlockSvg.getTypeExprHeight(this.outputConnection.typeExpr); + steps.push('V', tabHeight); // Sorin steps.push(Blockly.BlockSvg.getUpPath(this.outputConnection)); if (this.RTL) {
4
diff --git a/includes/Modules/TagManager.php b/includes/Modules/TagManager.php @@ -268,8 +268,8 @@ final class TagManager extends Module implements Module_With_Scopes { 'account-id' => '', 'container-id' => '', // GET. - 'list-accounts' => 'tagmanager', - 'list-containers' => 'tagmanager', + 'accounts-containers' => 'tagmanager', + 'containers' => 'tagmanager', // POST. 'save' => '', );
3
diff --git a/admin-base/materialize/custom/_vue-form-generator.scss b/admin-base/materialize/custom/_vue-form-generator.scss } } } + } + &.field-checkbox { + .field-wrap { + display: inline-block; + padding-left: 0.75rem; + [type="checkbox"] { + position: relative; + opacity: 1; + left: auto; + } + } + } + &.field-material-checkbox { + } &.field-collection { padding: 1.5rem 0 0;
11
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js @@ -764,7 +764,7 @@ RED.editor.codeEditor.monaco = (function() { if(!options.stateId && options.stateId !== false) { - options.stateId = RED.editor.generateViewStateId("monaco", options, (options.mode || options.title).split("/").pop()); + options.stateId = RED.editor.generateViewStateId("monaco", options, (options.mode || options.title || "").split("/").pop()); } var el = options.element || $("#"+options.id)[0]; var toolbarRow = $("<div>").appendTo(el);
11
diff --git a/src/models/http/httpRequest.js b/src/models/http/httpRequest.js @@ -54,10 +54,17 @@ function isUrlEncodedForm (contentType) { function createFrom (request) { const Q = require('q'), deferred = Q.defer(); - request.body = ''; - request.setEncoding('utf8'); - request.on('data', chunk => { request.body += chunk; }); - request.on('end', () => { deferred.resolve(transform(request)); }); + let chunks = []; + request.on('data', chunk => { chunks.push(Buffer.from(chunk)); }); + request.on('end', () => { + const headersHelper = require('./headersHelper'); + const headers = headersHelper.headersFor(request.rawHeaders); + const contentEncoding = headersHelper.getHeader('Content-Encoding', headers); + const zlib = require('zlib'); + let buffer = Buffer.concat(chunks); + request.body = (contentEncoding === 'gzip') ? zlib.gunzipSync(buffer).toString() : buffer.toString(); + deferred.resolve(transform(request)); + }); return deferred.promise; }
9
diff --git a/src/components/HeaderWithCloseButton.js b/src/components/HeaderWithCloseButton.js @@ -9,7 +9,6 @@ import Icon from './Icon'; import * as Expensicons from './Icon/Expensicons'; import withLocalize, {withLocalizePropTypes} from './withLocalize'; import Tooltip from './Tooltip'; -import InboxCallButton from './InboxCallButton'; import ThreeDotsMenu, {ThreeDotsMenuItemPropTypes} from './ThreeDotsMenu'; const propTypes = { @@ -138,7 +137,19 @@ const HeaderWithCloseButton = props => ( ) } - {props.shouldShowGetAssistanceButton && <InboxCallButton taskID={props.inboxCallTaskID} />} + {props.shouldShowGetAssistanceButton + && ( + <Tooltip text={props.translate('getAssistancePage.questionMarkButtonTooltip')}> + <TouchableOpacity + onPress={() => alert(props.inboxCallTaskID)} + style={[styles.touchableButtonImage, styles.mr0]} + accessibilityRole="button" + accessibilityLabel={props.translate('getAssistancePage.questionMarkButtonTooltip')} + > + <Icon src={Expensicons.Exclamation} /> + </TouchableOpacity> + </Tooltip> + )} {props.shouldShowThreeDotsButton && ( <ThreeDotsMenu
14
diff --git a/packages/gatsby/src/joi-schemas/joi.js b/packages/gatsby/src/joi-schemas/joi.js @@ -49,7 +49,7 @@ export const nodeSchema = Joi.object() type: Joi.string().required(), owner: Joi.string().required(), fieldOwners: Joi.array(), - content: Joi.string(), + content: Joi.string().allow(""), }), }) .unknown()
11
diff --git a/lib/determine-basal/determine-basal.js b/lib/determine-basal/determine-basal.js @@ -231,16 +231,17 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_ uci = round((minAvgDelta - bgi),1); // ISF (mg/dL/U) / CR (g/U) = CSF (mg/dL/g) var csf = sens / profile.carb_ratio - // set meal_carbimpact high enough to absorb all meal carbs over 4 hours + // set meal_carbimpact high enough to absorb all meal carbs over 6 hours // total_impact (mg/dL) = CSF (mg/dL/g) * carbs (g) //console.error(csf * meal_data.carbs); - // meal_carbimpact (mg/dL/5m) = CSF (mg/dL/g) * carbs (g) / 4 (h) * (1h/60m) * 5 (m/5m) * 2 (for linear decay) - var meal_carbimpact = round((csf * meal_data.carbs / 4 / 60 * 5 * 2),1) + // meal_carbimpact (mg/dL/5m) = CSF (mg/dL/g) * carbs (g) / 6 (h) * (1h/60m) * 5 (m/5m) * 2 (for linear decay) + var meal_carbimpact = round((csf * meal_data.carbs / 6 / 60 * 5 * 2),1) console.error(meal_carbimpact,profile.min_5m_carbimpact,ci); if (meal_data.mealCOB * 3 > meal_data.carbs) { // set ci to a minimum of 3mg/dL/5m (default) if at least 1/3 of carbs from the last DIA hours are still unabsorbed - // set ci high enough to absorb all meal carbs over 4 hours + // TODO: figure out a way to ramp up from observed CI to meal_carbimpact + // set ci high enough to absorb all meal carbs over 6 hours ci = Math.max(profile.min_5m_carbimpact, meal_carbimpact, ci); }
4
diff --git a/articles/quickstart/native/windows-uwp-csharp/01-login.md b/articles/quickstart/native/windows-uwp-csharp/01-login.md @@ -31,6 +31,7 @@ For UWP applications, the callback URL needs to be in the format **ms-app://SID* Alternatively - or if you have not associated your application with the Store yet - you can obtain the value by calling the `Windows.Security.Authentication.Web.WebAuthenticationBroker.GetCurrentApplicationCallbackUri()` method. So for example, in the `OnLaunched` method of your application, you can add the following line of code: ```csharp +App.xaml.cs protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG @@ -75,6 +76,7 @@ The returned login result will indicate whether authentication was successful, a You can check the `IsError` property of the result to see whether the login has failed. The `ErrorMessage` will contain more information regarding the error which occurred. ```csharp +MainPage.xaml.cs var loginResult = await client.LoginAsync(); if (loginResult.IsError) @@ -88,6 +90,7 @@ if (loginResult.IsError) On successful login, the login result will contain the `id_token` and `access_token` in the `IdentityToken` and `AccessToken` properties respectively. ```csharp +MainPage.xaml.cs var loginResult = await client.LoginAsync(); if (!loginResult.IsError) @@ -104,6 +107,7 @@ On successful login, the login result will contain the user information in the ` To obtain information about the user, you can query the claims. You can for example obtain the user's name and email address from the `name` and `email` claims: ```csharp +MainPage.xaml.cs if (!loginResult.IsError) { Debug.WriteLine($"name: {loginResult.User.FindFirst(c => c.Type == "name")?.Value}"); @@ -118,6 +122,7 @@ The exact claims returned will depend on the scopes that were requested. For mor You can obtain a list of all the claims contained in the `id_token` by iterating through the `Claims` collection: ```csharp +MainPage.xaml.cs if (!loginResult.IsError) { foreach (var claim in loginResult.User.Claims)
0
diff --git a/source/components/Options.js b/source/components/Options.js @@ -72,8 +72,18 @@ class OptionsBase extends Component<Props, State> { } componentDidMount() { + if (this.props.isOpen) { document.addEventListener('keydown', this._handleKeyDown, false); } + } + + componentWillReceiveProps(nextProps: Props) { + if (!this.props.isOpen && nextProps.isOpen) { + document.addEventListener('keydown', this._handleKeyDown, false); + } else if (this.props.isOpen && !nextProps.isOpen) { + document.removeEventListener('keydown', this._handleKeyDown, false); + } + } componentWillUnmount() { document.removeEventListener('keydown', this._handleKeyDown, false);
7
diff --git a/metaverse-modules.js b/metaverse-modules.js @@ -20,6 +20,7 @@ const moduleUrls = { cameraPlaceholder: './metaverse_modules/camera-placeholder/', targetReticle: './metaverse_modules/target-reticle/', halo: './metaverse_modules/halo/', + silks: './metaverse_modules/silks/', magic: './metaverse_modules/magic/', limit: './metaverse_modules/limit/', meshLodItem: './metaverse_modules/mesh-lod-item/',
0
diff --git a/src/components/Select.js b/src/components/Select.js @@ -6,6 +6,7 @@ const React = require('react'); const ReactDOM = require('react-dom'); const Icon = require('./Icon'); +const { Listbox, Option } = require('./accessibility/Listbox'); const StyleConstants = require('../constants/Style'); @@ -52,28 +53,40 @@ class Select extends React.Component { } }; + _handleKeyDown = (e) => { + switch (keycode(e)) { + case 'esc': + e.preventDefault(); + e.stopPropagation(); + this._handleScrimClick(); + this.component.focus(); + break; + case 'enter': + case 'space': + if (e.target === this.component) { + e.preventDefault(); + e.stopPropagation(); + this._toggle(); + } + break; + } + }; + _handleScrimClick = () => { this.setState({ isOpen: false, - highlightedValue: null, hoverItem: null }); - }; - - _handleClick = () => { - this.setState({ - isOpen: !this.state.isOpen - }); + this.component.focus(); }; _handleOptionClick = (option) => { this.setState({ selected: option, isOpen: false, - highlightedValue: option, hoverItem: null }); - + this.component.focus(); this.props.onChange(option); }; @@ -91,42 +104,6 @@ class Select extends React.Component { this._handleOptionClick(selectedOption); }; - _handleInputKeyDown = (e) => { - const highlightedValue = this.state.highlightedValue; - - if (keycode(e) === 'enter' && highlightedValue) { - this._handleOptionClick(highlightedValue); - } - - if (keycode(e) === 'down') { - e.preventDefault(); - - const nextIndex = this.props.options.indexOf(highlightedValue) + 1; - - if (nextIndex < this.props.options.length) { - this.setState({ - highlightedValue: this.props.options[nextIndex] - }); - - this._scrollListDown(nextIndex); - } - } - - if (keycode(e) === 'up') { - e.preventDefault(); - - const previousIndex = this.props.options.indexOf(highlightedValue) - 1; - - if (previousIndex > -1) { - this.setState({ - highlightedValue: this.props.options[previousIndex] - }); - - this._scrollListUp(previousIndex); - } - } - }; - _scrollListDown = (nextIndex) => { const ul = ReactDOM.findDOMNode(this.optionList); const activeLi = ul.children[nextIndex]; @@ -147,6 +124,12 @@ class Select extends React.Component { } }; + _toggle = () => { + this.setState({ + isOpen: !this.state.isOpen + }); + }; + _renderScrim = () => { if (this.state.isOpen) { const styles = this.styles(); @@ -175,18 +158,26 @@ class Select extends React.Component { ); } else { return ( - <ul className='mx-select-options' ref={(ref) => this.optionList = ref} style={styles.options}> + <Listbox + aria-label={this.props.placeholderText} + className='mx-select-options' + ref={(ref) => this.optionList = ref} + style={styles.options} + useGlobalKeyHandler={true} + > {this.props.options.map(option => { return ( - <li + <Option className='mx-select-option' + isSelected={option === this.state.selected} key={option.displayValue + option.value} + label={option.displayValue} onClick={this._handleOptionClick.bind(null, option)} onMouseOver={this._handleOptionMouseOver.bind(null, option)} style={Object.assign({}, styles.option, this.props.optionStyle, - _isEqual(option, this.state.highlightedValue) ? styles.activeItem : null, + _isEqual(option, this.state.selected) ? styles.activeItem : null, this.getBackgroundColor(option) )} > @@ -198,11 +189,11 @@ class Select extends React.Component { /> ) : null} <div style={styles.optionText}>{option.displayValue}</div> - {_isEqual(option, this.state.highlightedValue) ? <Icon size={20} type='check' /> : null } - </li> + {_isEqual(option, this.state.selected) ? <Icon size={20} type='check' /> : null } + </Option> ); })} - </ul> + </Listbox> ); } } else { @@ -217,8 +208,9 @@ class Select extends React.Component { return ( <div className='mx-select' style={Object.assign({}, this.props.style, { position: 'relative' })}> <div className='mx-select-custom' - onClick={this._handleClick} - onKeyDown={this._handleInputKeyDown} + onClick={this._toggle} + onKeyDown={this._handleKeyDown} + ref={ref => this.component = ref} style={styles.component} tabIndex='0' >
9
diff --git a/src/utilities/flex.less b/src/utilities/flex.less justify-content: space-around; } -.flex-grow { flex-grow: 1; } .flex-fill { max-width: 100%; flex: 1; } .flex-no-shrink { flex-shrink: 0; } .flex-inline { display: inline-flex; } .flex-11 { flex: 11; } .flex-12 { flex: 12; } -.flex-basis-1 { flex-basis: 100% * (1/12); } -.flex-basis-2 { flex-basis: 100% * (2/12); } -.flex-basis-3 { flex-basis: 100% * (3/12); } -.flex-basis-4 { flex-basis: 100% * (4/12); } -.flex-basis-5 { flex-basis: 100% * (5/12); } -.flex-basis-6 { flex-basis: 100% * (6/12); } -.flex-basis-7 { flex-basis: 100% * (7/12); } -.flex-basis-8 { flex-basis: 100% * (8/12); } -.flex-basis-9 { flex-basis: 100% * (9/12); } -.flex-basis-10 { flex-basis: 100% * (10/12); } -.flex-basis-11 { flex-basis: 100% * (11/12); } -.flex-basis-12 { flex-basis: 100% * (12/12); } - .responsive({ &flex { .flex; } &flex-top { .flex-top; } &flex-right { .flex-right; } &flex-spaced { .flex-spaced; } &flex-around { .flex-around; } - &flex-grow { .flex-grow; } &flex-fill { .flex-fill; } &flex-no-shrink { .flex-no-shrink; } &flex-inline { .flex-inline; } &flex-10 { .flex-10; } &flex-11 { .flex-11; } &flex-12 { .flex-12; } - &flex-basis-1 { .flex-basis-1; } - &flex-basis-2 { .flex-basis-2; } - &flex-basis-3 { .flex-basis-3; } - &flex-basis-4 { .flex-basis-4; } - &flex-basis-5 { .flex-basis-5; } - &flex-basis-6 { .flex-basis-6; } - &flex-basis-7 { .flex-basis-7; } - &flex-basis-8 { .flex-basis-8; } - &flex-basis-9 { .flex-basis-9; } - &flex-basis-10 { .flex-basis-10; } - &flex-basis-11 { .flex-basis-11; } - &flex-basis-12 { .flex-basis-12; } });
2
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -233,14 +233,6 @@ jobs: - run: name: Test certain bundles against function constructors command: npm run no-new-func - - test-dist2: - docker: - - image: circleci/node:12.22.1 - working_directory: ~/plotly.js - steps: - - attach_workspace: - at: ~/ - run: name: Test plotly bundles against es6 command: npm run no-es6-dist @@ -285,6 +277,3 @@ workflows: - test-dist1: requires: - publish-dist - - test-dist2: - requires: - - publish-dist
5
diff --git a/src/components/button/_button.scss b/src/components/button/_button.scss // When colours are overridden, for example when users have a dark mode, // backgrounds and box-shadows disappear, so we need to ensure there's a // transparent outline which will be set to a visible colour. + // Since Internet Explorer 8 does not support box-shadow, we want to force the user-agent outlines @include govuk-not-ie8 { outline: $govuk-focus-width solid transparent; outline-offset: 0; } + // Since Internet Explorer does not support `:not()` we set a clearer focus style to match user-agent outlines. @include govuk-if-ie8 { color: $govuk-text-colour; background-color: $govuk-focus-colour;
7
diff --git a/src/models/data.js b/src/models/data.js @@ -162,7 +162,7 @@ const DataModel = Model.extend({ "concept_type", "domain", "totals_among_entities", - "indicator_url", + "source_url", "color", "scales", "interpolation", @@ -201,7 +201,7 @@ const DataModel = Model.extend({ concept["concept"] = d.concept; concept["concept_type"] = d.concept_type; - concept["sourceLink"] = d.indicator_url; + concept["sourceLink"] = d.source_url; try { concept["color"] = d.color && d.color !== "" ? (typeof d.color === "string" ? JSON.parse(d.color) : d.color) : null; // } catch (e) {
14
diff --git a/src/kiri/main.js b/src/kiri/main.js } function moveSelection(x, y, z, abs) { - setViewMode(VIEWS.ARRANGE); + if (viewMode !== VIEWS.ARRANGE) return; + // setViewMode(VIEWS.ARRANGE); forSelectedGroups(function (w) { w.move(x, y, z, abs); }); } function scaleSelection() { - setViewMode(VIEWS.ARRANGE); + if (viewMode !== VIEWS.ARRANGE) return; + // setViewMode(VIEWS.ARRANGE); let args = arguments; forSelectedGroups(function (w) { w.scale(...args); } function rotateSelection(x, y, z) { - setViewMode(VIEWS.ARRANGE); + if (viewMode !== VIEWS.ARRANGE) return; + // setViewMode(VIEWS.ARRANGE); forSelectedGroups(function (w) { w.rotate(x, y, z); });
13
diff --git a/src/components/containers/UpdateMenuAccordion.js b/src/components/containers/UpdateMenuAccordion.js @@ -2,7 +2,7 @@ import Fold from './Fold'; import TraceRequiredPanel from './TraceRequiredPanel'; import PropTypes from 'prop-types'; import React, {Component} from 'react'; -import {connectUpdateMenuToLayout, localize} from 'lib'; +import {connectUpdateMenuToLayout, localize, capitalize} from 'lib'; const UpdateMenuFold = connectUpdateMenuToLayout(Fold); @@ -13,15 +13,22 @@ class UpdateMenuAccordion extends Component { const content = updatemenus.length > 0 && - updatemenus.map((sli, i) => ( + updatemenus.map((upd, i) => { + const updateMenuType = capitalize(upd.type) || 'Dropdown'; + const activeElementLabel = upd.buttons.filter( + b => b.index === upd.active + )[0].label; + + return ( <UpdateMenuFold key={i} updateMenuIndex={i} - name={_('Update Menu') + ` ${i + 1}`} + name={updateMenuType + ': ' + activeElementLabel} > {children} </UpdateMenuFold> - )); + ); + }); return ( <TraceRequiredPanel
7
diff --git a/src/views/SwapConfirm.vue b/src/views/SwapConfirm.vue <div class="form-group"> <label>Network Fees</label> <div v-for="(fee, asset) in totalFees" :key="asset"> - <strong>~ {{ fee }}</strong>&nbsp;<span class="text-muted">{{ asset }}</span>&nbsp;<span>(${{prettyFiatBalance(fee, fiatRates[asset])}})</span> + <strong> + <template v-if="fee">~ {{ fee }}</template> + <template v-else>Unknown</template> + </strong>&nbsp; + <span class="text-muted">{{ asset }}</span>&nbsp; + <span v-if="fee">(${{prettyFiatBalance(fee, fiatRates[asset])}})</span> </div> </div> </div> @@ -75,13 +80,20 @@ export default { return format(add(new Date(), { hours: 6 }), 'h:mm a') }, totalFees () { - const fees = {} - const assetChain = getChainFromAsset(this.asset) + const toAssetChain = getChainFromAsset(this.toAsset) + + const fees = { + [assetChain]: null, + [toAssetChain]: null + } + + if (this.fee) { const initiationFee = getTxFee(this.asset, TX_TYPES.SWAP_INITIATION, this.fee) fees[assetChain] = initiationFee + } - const toAssetChain = getChainFromAsset(this.toAsset) + if (this.toFee) { const claimFee = getTxFee(this.toAsset, TX_TYPES.SWAP_CLAIM, this.toFee) fees[toAssetChain] = toAssetChain in fees ? fees[toAssetChain].plus(claimFee) : claimFee @@ -89,6 +101,7 @@ export default { const sendFee = getTxFee(this.toAsset, TX_TYPES.SEND, this.toFee) fees[toAssetChain] = toAssetChain in fees ? fees[toAssetChain].plus(sendFee) : sendFee } + } return fees }
9
diff --git a/src/config/config.js b/src/config/config.js const Config = { "env": process.env.REACT_ENV || "development", "serverUrl": process.env.REACT_APP_SERVER_URL || "http://localhost:3003", - "publicUrl": process.env.REACT_APP_PUBLIC_URL || "http://localhost:3000", + "publicUrl": process.env.REACT_APP_PUBLIC_URL || window && window.location && window.location.origin, "infuraKey": process.env.REACT_APP_INFURA_KEY, "networkId": process.env.REACT_APP_NETWORK_ID || 42, "recaptcha": "6LeOaJIUAAAAAKB3DlmijMPfX2CBYsve3T2MwlTd",
2
diff --git a/src/lib/geolocation.js b/src/lib/geolocation.js @@ -126,6 +126,18 @@ export const locationStream = () => }; }); +/* +Returns a stream of LocationStatus values. Automatically streams +location updates if permissions allow this to be done passively. +Example steaming output: +|-A---B---C---D---E +Where: +A = Checking +B = Authorized + Awaiting +C = Authorized + Tracking(1, 1) +D = Authorized + Tracking(1, 2) +E = Authorized + Error +*/ export const passiveLocationStream = () => checkPermissionStream().pipe( map(permissionToLocationStatus), @@ -137,6 +149,19 @@ export const passiveLocationStream = () => }) ); +/* +Returns a stream of LocationStatus values. This will prompt the user +to authorize getting location information. Automatically streams +location updates if resulting permission allows this. +Example steaming output: +|-A---B---C---D---E +Where: +A = Requesting +B = Authorized + Awaiting +C = Authorized + Tracking(1, 1) +D = Authorized + Tracking(1, 2) +E = Authorized + Error +*/ export const activeLocationStream = () => requestPermissionStream().pipe( map(permissionToLocationStatus),
0
diff --git a/devices/bticino.js b/devices/bticino.js @@ -26,7 +26,7 @@ module.exports = [ }, { zigbeeModel: [' Dimmer switch with neutral\u0000\u0000\u0000\u0000'], - model: 'L441C/N4411C/NT4411C', + model: 'L4411C/N4411C/NT4411C', vendor: 'BTicino', description: 'Dimmer switch with neutral', extend: extend.light_onoff_brightness({noConfigure: true}),
10
diff --git a/declarations/plugins/HashedModuleIdsPlugin.d.ts b/declarations/plugins/HashedModuleIdsPlugin.d.ts @@ -18,7 +18,7 @@ export interface HashedModuleIdsPluginOptions { */ hashDigestLength?: number; /** - * The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported. + * The hashing algorithm to use, defaults to 'md4'. All functions from Node.JS' crypto.createHash are supported. */ hashFunction?: string; }
1
diff --git a/lib/runtime/console2.js b/lib/runtime/console2.js @@ -28,7 +28,8 @@ export function activate (ink) { terminal.getTitle = () => {return 'Console'} terminal.class = 'julia-terminal' - terminal.write('\x1b[32mPress Enter to start Julia.\x1b[0m') + + terminal.write('\x1b[1m\x1b[32mPress Enter to start Julia.\x1b[0m') terminal.startRequested = () => client.boot() modules.onDidChange(debounce(() => changemodule({mod: modules.current(), cols: terminal.terminal.cols}), 200))
4
diff --git a/src/doc_replicator.erl b/src/doc_replicator.erl -export([start_link/4]). -start_link(Module, Name, GetNodes, ServerName) -> - proc_lib:start_link(erlang, apply, [fun start_loop/4, [Module, Name, GetNodes, ServerName]]). +start_link(Module, Name, GetNodes, StorageFrontend) -> + proc_lib:start_link(erlang, apply, [fun start_loop/4, [Module, Name, GetNodes, StorageFrontend]]). -start_loop(Module, Name, GetNodes, ServerName) -> +start_loop(Module, Name, GetNodes, StorageFrontend) -> erlang:register(Name, self()), proc_lib:init_ack({ok, self()}), - DocMgr = replicated_storage:wait_for_startup(), + LocalStoragePid = replicated_storage:wait_for_startup(), %% anytime we disconnect or reconnect, force a replicate event. erlang:spawn_link( fun () -> ok = net_kernel:monitor_nodes(true), - nodeup_monitoring_loop(DocMgr) + nodeup_monitoring_loop(LocalStoragePid) end), %% Explicitly ask all available nodes to send their documents to us - [{ServerName, N} ! replicate_newnodes_docs || + [{StorageFrontend, N} ! replicate_newnodes_docs || N <- GetNodes()], - loop(Module, GetNodes, ServerName, []). + loop(Module, GetNodes, StorageFrontend, []). -loop(Module, GetNodes, ServerName, RemoteNodes) -> +loop(Module, GetNodes, StorageFrontend, RemoteNodes) -> NewRemoteNodes = receive {replicate_change, Doc} -> - [replicate_change_to_node(Module, ServerName, Node, Doc) + [replicate_change_to_node(Module, StorageFrontend, Node, Doc) || Node <- RemoteNodes], RemoteNodes; {replicate_newnodes_docs, Docs} -> @@ -59,14 +59,14 @@ loop(Module, GetNodes, ServerName, RemoteNodes) -> [] -> ok; _ -> - [monitor(process, {ServerName, Node}) || Node <- NewNodes], - [replicate_change_to_node(Module, ServerName, S, D) + [monitor(process, {StorageFrontend, Node}) || Node <- NewNodes], + [replicate_change_to_node(Module, StorageFrontend, S, D) || S <- NewNodes, D <- Docs] end, AllNodes; {'$gen_call', From, {pull_docs, Nodes, Timeout}} -> - gen_server:reply(From, handle_pull_docs(ServerName, Nodes, Timeout)), + gen_server:reply(From, handle_pull_docs(StorageFrontend, Nodes, Timeout)), RemoteNodes; {'DOWN', _Ref, _Type, {Server, RemoteNode}, Error} -> ?log_warning("Remote server node ~p process down: ~p", @@ -77,32 +77,32 @@ loop(Module, GetNodes, ServerName, RemoteNodes) -> exit({unexpected_message, Msg}) end, - loop(Module, GetNodes, ServerName, NewRemoteNodes). + loop(Module, GetNodes, StorageFrontend, NewRemoteNodes). -replicate_change_to_node(Module, ServerName, Node, Doc) -> +replicate_change_to_node(Module, StorageFrontend, Node, Doc) -> ?log_debug("Sending ~p to ~p", [Module:get_id(Doc), Node]), - gen_server:cast({ServerName, Node}, {replicated_update, Doc}). + gen_server:cast({StorageFrontend, Node}, {replicated_update, Doc}). -nodeup_monitoring_loop(Parent) -> +nodeup_monitoring_loop(LocalStoragePid) -> receive {nodeup, _} -> ?log_debug("got nodeup event. Considering ddocs replication"), - Parent ! replicate_newnodes_docs; + LocalStoragePid ! replicate_newnodes_docs; _ -> ok end, - nodeup_monitoring_loop(Parent). + nodeup_monitoring_loop(LocalStoragePid). -handle_pull_docs(ServerName, Nodes, Timeout) -> - {RVs, BadNodes} = gen_server:multi_call(Nodes, ServerName, get_all_docs, Timeout), +handle_pull_docs(StorageFrontend, Nodes, Timeout) -> + {RVs, BadNodes} = gen_server:multi_call(Nodes, StorageFrontend, get_all_docs, Timeout), case BadNodes of [] -> lists:foreach( fun ({_N, Docs}) -> - [gen_server:cast(ServerName, {replicated_update, Doc}) || + [gen_server:cast(StorageFrontend, {replicated_update, Doc}) || Doc <- Docs] end, RVs), - gen_server:call(ServerName, sync, Timeout); + gen_server:call(StorageFrontend, sync, Timeout); _ -> {error, {bad_nodes, BadNodes}} end.
10
diff --git a/README.md b/README.md @@ -28,7 +28,7 @@ To learn more about this installation method, refer to the [Quick Start Guide](d # Community -Netlify CMS has a [public Gitter channel](https://gitter.im/netlify/NetlifyCMS) where members of the community hang out and share things about the project. +Netlify CMS has a [public Spectrum community](https://spectrum.chat/netlify-cms) where members of the community hang out and share things about the project, as well as give and receive support. # Change Log
3
diff --git a/src/core/createConsent.js b/src/core/createConsent.js @@ -215,8 +215,6 @@ export default ({ consentState.refreshFromCookies(); }) .catch(error => { - // Even if there was an error, the consent cookies may - // have been successfully set. consentState.refreshFromCookies(); throw error; }); @@ -251,8 +249,6 @@ export default ({ consentState.refreshFromCookies(); }) .catch(error => { - // Even if there was an error, the consent cookies may - // have been successfully set. consentState.refreshFromCookies(); throw error; });
2
diff --git a/test/test_contract.sh b/test/test_contract.sh @@ -22,15 +22,12 @@ echo Deploying contract to temporary accountId ../bin/near dev-deploy echo Calling functions -RESULT=$(../bin/near call $testaccount welcome '{"name":"TEST"}' --accountId=test.near) -TEXT=$RESULT.text -EXPECTED='Welcome, TEST. Welcome to NEAR Protocol chain' -if [[ ! "$TEXT" =~ $EXPECTED ]]; then +../bin/near call $testaccount setGreeting '{"message":"TEST"}' --accountId=test.near + +RESULT=$(../bin/near view $testaccount welcome '{"account_id":"test.near"}' --accountId=test.near) +TEXT=$RESULT +EXPECTED='TEST test.near' +if [[ ! "$TEXT" =~ ".*$EXPECTED.*" ]]; then echo FAILURE Unexpected output from near call exit 1 fi \ No newline at end of file - -echo Viewing functions -RESULT2=$(../bin/near view $testaccount welcome '{"name":"TEST"}' --accountId=test.near) -echo $RESULT2 -
1
diff --git a/src/server/routes/apiv3/slack-integration-settings.js b/src/server/routes/apiv3/slack-integration-settings.js @@ -56,7 +56,8 @@ module.exports = (crowi) => { .isIn(['officialBot', 'customBotWithoutProxy', 'customBotWithProxy']), ], proxyUri: [ - body('proxyUri').trim().matches(/^(https?:\/\/)/).isURL({ require_tld: false }), + body('proxyUri').if(value => value !== '').trim().matches(/^(https?:\/\/)/) + .isURL({ require_tld: false }), ], AccessTokens: [ query('tokenGtoP').trim().not().isEmpty()
11
diff --git a/common/lib/client/realtimechannel.ts b/common/lib/client/realtimechannel.ts @@ -295,7 +295,7 @@ class RealtimeChannel extends Channel { this.requestState('attaching', attachReason); } - this.once(function(this: { event: string }, stateChange: ConnectionStateChange) { + this.once(function(this: { event: string }, stateChange: ChannelStateChange) { switch(this.event) { case 'attached': callback?.(); @@ -343,15 +343,20 @@ class RealtimeChannel extends Channel { return; } switch(this.state) { + case 'suspended': + this.notifyState('detached'); + callback(); + break; case 'detached': - case 'failed': callback(); break; + case 'failed': + callback(new ErrorInfo('Unable to detach; channel state = failed', 90001, 400)); + break; default: this.requestState('detaching'); - break; case 'detaching': - this.once(function(this: { event: string }, stateChange: ConnectionStateChange) { + this.once(function(this: { event: string }, stateChange: ChannelStateChange) { switch(this.event) { case 'detached': callback();
1
diff --git a/content/questions/template-literals/index.md b/content/questions/template-literals/index.md @@ -13,7 +13,7 @@ answers: - stage-6 --- -Which transpiler language supports `Template Literals Syntax`? +Which JavaScript language version supports template literals syntax, like below? ```javascript `helloworld - This is a string` @@ -21,4 +21,6 @@ Which transpiler language supports `Template Literals Syntax`? <!-- explanation --> -Template Literals Syntax will throw an error in (EI11,EI10). To fix this error use a transpiler of `es2015` with babel to resolve this issue. +Template literals are a feature of ES2015 (also known as ES6). In earlier environments, such as on IE11, this code will throw a SyntaxError. + +Like with all modern syntax, in order to write concise, readable code in the latest and greatest version of the language, while still permitting obsolete browsers to understand your code, use a transpiler like [Babel](https://babeljs.io/) to automatically translate your code down to ES5-compatible syntax.
7
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -91,7 +91,7 @@ jobs: git add -A git commit -m "Updated: Github data (automatic): ${CIRCLE_SHA1} [skip ci]" --allow-empty git push -q https://${GH_TOKEN}@github.com/developersdo/opensource.git $SOURCE_BRANCH - echo $(git show HEAD --summary) + echo "$(git show --name-only HEAD)" fi workflows:
3
diff --git a/apps/arrow/app.js b/apps/arrow/app.js @@ -127,12 +127,12 @@ function docalibrate(e,first){ function action(b){ if (b) { buf1.setColor(1); - buf1.setFont("Vector", 30); + buf1.setFont("Vector", 20); buf1.setFontAlign(0,-1); - buf1.drawString("Figure 8s",80, 40); - buf1.drawString("to",80, 80); - buf1.drawString("Calibrate",80, 120); - flip1(40,40); + buf1.drawString("Figure 8s",64, 0); + buf1.drawString("to",64, 40); + buf1.drawString("Calibrate",64, 80); + flip1(56,56); calibrate().then((r)=>{ require("Storage").write("magnav.json",r);
7
diff --git a/test/integration/client/configuration-tests.js b/test/integration/client/configuration-tests.js @@ -18,7 +18,7 @@ suite.test('default values are used in new clients', function () { password: null, port: 5432, rows: 0, - poolSize: 10 + max: 10, }) var client = new pg.Client()
14
diff --git a/runtime.js b/runtime.js @@ -421,7 +421,7 @@ const _loadGltf = async (file, {optimize = false, physics = false, physics_url = mesh.getPhysicsIds = () => physicsIds; mesh.getStaticPhysicsIds = () => staticPhysicsIds; mesh.getAnimations = () => animations; - // mesh.components = components; + mesh.getComponents = () => components; // mesh.used = false; const appId = ++appIds;
0
diff --git a/lib/taiko.js b/lib/taiko.js @@ -1512,6 +1512,7 @@ module.exports.evaluate = async (selector, callback, options = {}) => { functionDeclaration: evalFunc.toString(), arguments: [{ value: callback.toString() }], awaitPromise: true, + returnByValue: true, objectId }); });
1
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.209.0", + "version": "0.209.1", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/test.js b/test.js @@ -29,7 +29,7 @@ process.on ('unhandledRejection', e => { log.bright.red.error (e); process.exit /* ------------------------------------------------------------------------ */ -log.bright ('\nTESTING', ccxtFile.magenta, { exchange: exchangeId, symbol: exchangeSymbol || 'all' }, '\n') +log.bright ('\nTESTING', { exchange: exchangeId, symbol: exchangeSymbol || 'all' }, '\n') /* ------------------------------------------------------------------------ */
1
diff --git a/lambda/proxy-es/lib/handler.js b/lambda/proxy-es/lib/handler.js @@ -44,7 +44,7 @@ async function get_es_query(event) { keyword_syntax_types: _.get(settings,'ES_KEYWORD_SYNTAX_TYPES'), syntax_confidence_limit: _.get(settings,'ES_SYNTAX_CONFIDENCE_LIMIT'), score_answer_field: _.get(settings,'ES_SCORE_ANSWER_FIELD'), - fuzziness: _.get(req, '_settings.ES_USE_FUZZY_MATCH'), + fuzziness: _.get(settings, 'ES_USE_FUZZY_MATCH'), }; return build_es_query(query_params); } else {
1
diff --git a/middleware/cache.js b/middleware/cache.js @@ -58,8 +58,12 @@ module.exports = (ttl) => async (ctx, next) => { ctx.response.set('Cache-Control', 'no-store'); } - // Try and get cache - if (ctx.request.method !== 'GET' || ctx.request.method !== 'POST') { + // Only allow cache on whitelist methods + if (!['GET', 'POST'].includes(ctx.request.method)) { + await next(); + return; + } + let cached; try { cached = await redis.get(key); @@ -90,7 +94,6 @@ module.exports = (ttl) => async (ctx, next) => { } catch (e) { console.log(`Failed to set cache: ${e.message}`); } - } }; // Share redis connection
1
diff --git a/src/agent/io.js b/src/agent/io.js @@ -11,6 +11,7 @@ function read (params) { return r2frida.hookedRead(offset, count); } if (r2frida.safeio) { + try { if (cachedRanges.length === 0) { cachedRanges = Process.enumerateRanges('').map( (map) => [map.base, ptr(map.base).add(map.size)]); @@ -30,6 +31,9 @@ function read (params) { } } return [{}, []]; + } catch (e) { + console.error('safeio-read', e); + } } if (offset < 0) { return [{}, []];
7
diff --git a/packages/react-router/docs/guides/migrating.md b/packages/react-router/docs/guides/migrating.md @@ -76,7 +76,7 @@ In v3, the `<Route>` was not really a component. Instead, all of your applicatio With v4, you layout your app's components just like a regular React application. Anywhere that you want to render content based on the location (specifically, its `pathname`), you render a `<Route>`. -The v4 `<Route>` component is actually a component. so wherever you render a `<Route>` component, content will be rendered. When the `<Route>`'s `path` matches the current location, it will use its rendering prop (`component`, `render`, or `children`) to render. When the `<Route>`'s `path` does not match, it will render `null`. +The v4 `<Route>` component is actually a component, so wherever you render a `<Route>` component, content will be rendered. When the `<Route>`'s `path` matches the current location, it will use its rendering prop (`component`, `render`, or `children`) to render. When the `<Route>`'s `path` does not match, it will render `null`. ### Nesting Routes
1
diff --git a/assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/DraftIdeas.js b/assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/DraftIdeas.js @@ -25,7 +25,6 @@ import PropTypes from 'prop-types'; * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { Fragment, useCallback, useState } from '@wordpress/element'; /** * Internal dependencies @@ -36,15 +35,18 @@ import { IDEA_HUB_IDEAS_PER_PAGE, MODULES_IDEA_HUB, } from '../../../datastore/constants'; +import { CORE_UI } from '../../../../../googlesitekit/datastore/ui/constants'; import EmptyIcon from '../../../../../../svg/idea-hub-empty-draft-ideas.svg'; import PreviewTable from '../../../../../components/PreviewTable'; import Idea from './Idea'; import Empty from './Empty'; -import Footer from './Footer'; const { useSelect } = Data; const DraftIdeas = ( { WidgetReportError } ) => { - const [ page, setPage ] = useState( 1 ); + const page = useSelect( ( select ) => + select( CORE_UI ).getValue( 'idea-hub-page-new-ideas' ) + ); + const args = { offset: ( page - 1 ) * IDEA_HUB_IDEAS_PER_PAGE, length: IDEA_HUB_IDEAS_PER_PAGE, @@ -66,18 +68,6 @@ const DraftIdeas = ( { WidgetReportError } ) => { ] ) ); - const handlePrev = useCallback( () => { - if ( page > 1 ) { - setPage( page - 1 ); - } - }, [ page, setPage ] ); - - const handleNext = useCallback( () => { - if ( page < Math.ceil( totalDraftIdeas / IDEA_HUB_IDEAS_PER_PAGE ) ) { - setPage( page + 1 ); - } - }, [ page, setPage, totalDraftIdeas ] ); - if ( ! hasFinishedResolution ) { return <PreviewTable rows={ 5 } rowHeight={ 70 } />; } @@ -101,7 +91,6 @@ const DraftIdeas = ( { WidgetReportError } ) => { } return ( - <Fragment> <div className="googlesitekit-idea-hub__draft-ideas"> { draftIdeas.map( ( idea, key ) => ( <Idea @@ -114,14 +103,6 @@ const DraftIdeas = ( { WidgetReportError } ) => { /> ) ) } </div> - - <Footer - page={ page } - totalIdeas={ totalDraftIdeas } - handlePrev={ handlePrev } - handleNext={ handleNext } - /> - </Fragment> ); };
2
diff --git a/test.html b/test.html indexURL: "https://s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/refGene.hg19.bed.gz.tbi", order: Number.MAX_VALUE, visibilityWindow: 300000000, - displayMode: "EXPANDED" + displayMode: "EXPANDED", + autoHeight: true } ] };
12
diff --git a/Source/Core/IntersectionTests.js b/Source/Core/IntersectionTests.js @@ -5,6 +5,7 @@ define([ './defaultValue', './defined', './DeveloperError', + './Interval', './Math', './Matrix3', './QuadraticRealPolynomial', @@ -16,6 +17,7 @@ define([ defaultValue, defined, DeveloperError, + Interval, CesiumMath, Matrix3, QuadraticRealPolynomial, @@ -293,7 +295,7 @@ define([ function raySphere(ray, sphere, result) { if (!defined(result)) { - result = {}; + result = new Interval(); } var origin = ray.origin; @@ -324,8 +326,8 @@ define([ * * @param {Ray} ray The ray. * @param {BoundingSphere} sphere The sphere. - * @param {Object} [result] The result onto which to store the result. - * @returns {Object} An object with the first (<code>start</code>) and the second (<code>stop</code>) intersection scalars for points along the ray or undefined if there are no intersections. + * @param {Interval} [result] The result onto which to store the result. + * @returns {Interval} The interval containing scalar points along the ray or undefined if there are no intersections. */ IntersectionTests.raySphere = function(ray, sphere, result) { //>>includeStart('debug', pragmas.debug); @@ -355,8 +357,8 @@ define([ * @param {Cartesian3} p0 An end point of the line segment. * @param {Cartesian3} p1 The other end point of the line segment. * @param {BoundingSphere} sphere The sphere. - * @param {Object} [result] The result onto which to store the result. - * @returns {Object} An object with the first (<code>start</code>) and the second (<code>stop</code>) intersection scalars for points along the line segment or undefined if there are no intersections. + * @param {Interval} [result] The result onto which to store the result. + * @returns {Interval} The interval containing scalar points along the ray or undefined if there are no intersections. */ IntersectionTests.lineSegmentSphere = function(p0, p1, sphere, result) { //>>includeStart('debug', pragmas.debug); @@ -396,7 +398,7 @@ define([ * * @param {Ray} ray The ray. * @param {Ellipsoid} ellipsoid The ellipsoid. - * @returns {Object} An object with the first (<code>start</code>) and the second (<code>stop</code>) intersection scalars for points along the ray or undefined if there are no intersections. + * @returns {Interval} The interval containing scalar points along the ray or undefined if there are no intersections. */ IntersectionTests.rayEllipsoid = function(ray, ellipsoid) { //>>includeStart('debug', pragmas.debug); @@ -440,10 +442,7 @@ define([ var root0 = temp / w2; var root1 = difference / temp; if (root0 < root1) { - return { - start : root0, - stop : root1 - }; + return new Interval(root0, root1); } return { @@ -453,10 +452,7 @@ define([ } else { // qw2 == product. Repeated roots (2 intersections). var root = Math.sqrt(difference / w2); - return { - start : root, - stop : root - }; + return new Interval(root, root); } } else if (q2 < 1.0) { // Inside ellipsoid (2 intersections). @@ -466,19 +462,13 @@ define([ discriminant = qw * qw - product; temp = -qw + Math.sqrt(discriminant); // Positively valued. - return { - start : 0.0, - stop : temp / w2 - }; + return new Interval(0.0, temp / w2); } else { // q2 == 1.0. On ellipsoid. if (qw < 0.0) { // Looking inward. w2 = Cartesian3.magnitudeSquared(w); - return { - start : 0.0, - stop : -qw / w2 - }; + return new Interval(0.0, -qw / w2); } // qw >= 0.0. Looking outward or tangent.
3
diff --git a/src/traces/table/plot.js b/src/traces/table/plot.js @@ -57,13 +57,14 @@ module.exports = function plot(gd, wrappedTraceHolders) { .classed(c.cn.tableControlView, true) .style('box-sizing', 'content-box'); if(dynamic) { + let wheelEvent = 'onwheel' in document ? 'wheel' : 'mousewheel' cvEnter .on('mousemove', function(d) { tableControlView .filter(function(dd) {return d === dd;}) .call(renderScrollbarKit, gd); }) - .on('mousewheel', function(d) { + .on(wheelEvent, function(d) { if(d.scrollbarState.wheeling) return; d.scrollbarState.wheeling = true; var newY = d.scrollY + d3.event.deltaY;
7
diff --git a/src/client/js/components/PaginationWrapper.jsx b/src/client/js/components/PaginationWrapper.jsx @@ -158,7 +158,7 @@ PaginationWrapper.propTypes = { activePage: PropTypes.number.isRequired, changePage: PropTypes.func.isRequired, totalItemsCount: PropTypes.number.isRequired, - pagingLimit: PropTypes.number.isRequired, + pagingLimit: PropTypes.number, align: PropTypes.string, size: PropTypes.string, }; @@ -166,6 +166,7 @@ PaginationWrapper.propTypes = { PaginationWrapper.defaultProps = { align: 'left', size: 'md', + pagingLimit: Infinity, }; export default PaginationWrapper;
12
diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js @@ -1123,7 +1123,7 @@ shaka.hls.HlsParser = class { shaka.log.debug('Guessing audio-only.'); type = ContentType.AUDIO; ignoreStream = true; - } else if (res.video.length) { + } else if (res.video.length && !res.audio.length) { // There are associated video streams. Assume this is audio. shaka.log.debug('Guessing audio-only.'); type = ContentType.AUDIO;
1
diff --git a/Block/Menu.php b/Block/Menu.php @@ -369,7 +369,7 @@ class Menu extends Template implements DataObject\IdentityInterface ->setMenuClass($this->getMenu()->getCssClass()) ->setMenuCode($this->getData('menu')) ->setTarget($node->getTarget()) - ->setExtraData($node->getExtraData()); + ->setAdditionalData($node->getAdditionalData()); return $nodeBlock; }
14
diff --git a/README.md b/README.md @@ -564,7 +564,7 @@ By clicking the **Watch** button, you will stay tuned for updates to the library * For specific questions, please use [Stack Overflow tags d3.js & graphviz](https://stackoverflow.com/tags/d3.js+graphviz). -* For general discussions regarding d3-graphviz, please use the [d3-graphviz Slack](https://join.slack.com/t/d3-graphviz/shared_invite/enQtMzMwODQzMDI5MDA5LWU3NTU1ZWNiY2JkYTQyM2ViMTU5ZTRhODJhMDI0MzM3NjEzNDA1NzYxMzRiY2QyMGFmNzkwYzYzYWQ3MmMxYzk). +* For general discussions regarding d3-graphviz, please use the [Graphviz forum](https://forum.graphviz.org/c/d3-graphviz/9). ### Reporting bugs
14
diff --git a/CHANGELOG.md b/CHANGELOG.md All notable changes to this project are documented in this file. -## Head +## 14.7.1 - Fixed: a regression for `/* stylelint-disable */` comments ([#6018](https://github.com/stylelint/stylelint/pull/6018)). - Fixed: `font-family-name-quotes` false positives for `ui-*` generic system font keywords ([#6017](https://github.com/stylelint/stylelint/pull/6017)).
6
diff --git a/src/mode/cam/slice.js b/src/mode/cam/slice.js let traces = []; // find and trim polys (including open) to shadow let oneach = (data, index, total) => { + if (single) { + for (let line of data.lines) { + if (line.p1.distTo2D(line.p2) > 1) { + traces.push(newPolygon().append(line.p1).append(line.p2).setOpen()); + } + } + } else BASE.polygons.flatten(data.tops,null,true).forEach(poly => { poly.inner = null; poly.parent = null; return; } } - if (single) { poly.forEachSegment((p1, p2) => { traces.push(newPolygon().append(p1).append(p2).setOpen()); }, poly.open); - } else { - traces.push(poly); - } }); }; let opts = { each: oneach, over: false, flatoff: 0, edges: true, openok: true };
4
diff --git a/Gruntfile.js b/Gruntfile.js @@ -335,7 +335,7 @@ module.exports = function( grunt ) { 'test', 'browser_test', 'clean', 'shell:cloneDeploy', 'clean:deploy', 'only_build' ] ); grunt.registerTask( 'deploy', [ - 'build-for-deploy', 'shell:commitDeploy', 'shell:review' + 'build_for_deploy', 'shell:commitDeploy', 'shell:review' ] ); grunt.registerTask( 'security', [ 'clean', 'shell:cloneDeploy', 'clean:deploy', 'only_build', 'shell:commitDeploy', 'shell:formatPatchDeploy'
4
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -571,13 +571,13 @@ RED.editor = (function() { }); valueField.typedInput('type', opt.parent?(opt.type||opt.parent.type):opt.type); - valueField.typedInput('value', opt.parent?(opt.value||opt.parent.value):opt.value); + valueField.typedInput('value', opt.parent?((opt.value !== undefined)?opt.value:opt.parent.value):opt.value); var actionButton = $('<a/>',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(container); $('<i/>',{class:"fa "+(opt.parent?"fa-reply":"fa-remove")}).appendTo(actionButton); container.parent().addClass("red-ui-editableList-item-removable"); if (opt.parent) { - if (opt.value && (opt.value !== opt.parent.value || opt.type !== opt.parent.type)) { + if ((opt.value !== undefined) && (opt.value !== opt.parent.value || opt.type !== opt.parent.type)) { actionButton.show(); } else { actionButton.hide();
11
diff --git a/catchup.js b/catchup.js @@ -25,6 +25,8 @@ function prepareCatchupChain(catchupRequest, callbacks){ if (!Array.isArray(arrWitnesses)) return callbacks.ifError("no witnesses"); + mutex.lock(['prepareCatchupChain'], function(unlock){ + var start_ts = Date.now(); var objCatchupChain = { unstable_mc_joints: [], stable_last_ball_joints: [], @@ -71,10 +73,14 @@ function prepareCatchupChain(catchupRequest, callbacks){ } ], function(err){ if (err === "already_current") - return callbacks.ifOk({status: "current"}); - if (err) - return callbacks.ifError(err); + callbacks.ifOk({status: "current"}); + else if (err) + callbacks.ifError(err); + else callbacks.ifOk(objCatchupChain); + console.log("prepareCatchupChain since mci "+last_stable_mci+" took "+(Date.now()-start_ts)+'ms'); + unlock(); + }); }); }
6
diff --git a/src/components/general/character-select/CharacterSelect.jsx b/src/components/general/character-select/CharacterSelect.jsx @@ -128,6 +128,7 @@ export const CharacterSelect = () => { const [ selectCharacter, setSelectCharacter ] = useState(null); const [ arrowPosition, setArrowPosition ] = useState(null); const [ npcPlayer, setNpcPlayer ] = useState(null); + const [ npcPlayerCache, setNpcPlayerCache ] = useState(new Map()); const refsMap = (() => { const map = new Map(); @@ -167,8 +168,9 @@ export const CharacterSelect = () => { const {vrmSrc} = targetCharacter; let live = true; - let npcPlayer = null; + let npcPlayer = npcPlayerCache.get(vrmSrc); (async () => { + if (!npcPlayer) { // console.log('avatar app', vrmSrc); const avatarApp = await metaversefile.createAppAsync({ start_url: vrmSrc, @@ -177,6 +179,9 @@ export const CharacterSelect = () => { if (!live) return; npcPlayer = new NpcPlayer(); npcPlayer.setAvatarApp(avatarApp); + npcPlayerCache.set(vrmSrc, npcPlayer); + } + setNpcPlayer(npcPlayer); })();
0
diff --git a/token-metadata/0x3e780920601D61cEdb860fe9c4a90c9EA6A35E78/metadata.json b/token-metadata/0x3e780920601D61cEdb860fe9c4a90c9EA6A35E78/metadata.json "symbol": "BOOST", "address": "0x3e780920601D61cEdb860fe9c4a90c9EA6A35E78", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/articles/protocols/saml/saml-configuration/special-configuration-scenarios/index.md b/articles/protocols/saml/saml-configuration/special-configuration-scenarios/index.md --- description: Special configuration scenarios when setting up a SAML Integration -url: /docs/protocols/saml/saml-configuration/special-configuration-scenarios +url: /protocols/saml/saml-configuration/special-configuration-scenarios --- # Special Configuration Scenarios @@ -16,5 +16,4 @@ The instructions below assume that you're altering specific settings for an exis ## Scenarios * [IdP-Initiated SSO](/protocols/saml/saml-configuration/special-configuration-scenarios/idp-initiated-sso) - * [Signing and Encrypting SAML Requests](/protocols/saml/saml-configuration/special-configuration-scenarios/signing-and-encrypting-saml-requests)
1
diff --git a/appjs/logicjavascript.js b/appjs/logicjavascript.js @@ -5646,7 +5646,10 @@ function convertgreydec(){ for (var i = 1; i < result1.length; i++) x += parseInt(result1[i - 1] ^ result1[i]).toString(); } - + if(input=="") + { + x=""; + } result2.innerHTML = x; }
1
diff --git a/js/base/functions/type.js b/js/base/functions/type.js @@ -20,7 +20,7 @@ const prop = (o, k) => (isObject (o) ? o[k] : undefined) /* ............................................. */ const asFloat = x => ((isNumber (x) || isString (x)) ? parseFloat (x) : NaN) - , asInteger = x => ((isNumber (x) || isString (x)) ? parseInt (x, 10) : NaN) + , asInteger = x => ((isNumber (x) || isString (x)) ? Math.round(Number(x)) : NaN) /* ............................................. */
7
diff --git a/generators/typedlang.js b/generators/typedlang.js @@ -204,7 +204,7 @@ Blockly.TypedLang.finish = function(code) { * @return {string} Legal line of code. */ Blockly.TypedLang.scrubNakedValue = function(line) { - return line + ';\n'; + return line + '\n'; }; /**
2
diff --git a/articles/the-knapsack-problem/index.md b/articles/the-knapsack-problem/index.md @@ -59,10 +59,10 @@ If we select the item, our optimal value can be written as $v_i+k[i-1,j-w_i]$. T If we don't include the item, the optimal value will be the subproblem considering all the items before the current item, $k[i-1,j]$. This would also be the same subproblem to consider if the knapsack didn't have enough room for the item originally. This process can then be written as the following recurrence. -$$\k[i,j]= \left\{ +$$ k[i,j]= \left\{ \begin{array}{ll} - \max(v_i+k[i-1,j-w_i],\, k[i-1,j]) & w_i \leq j\\\\\\ - k[i-1,j] & \text{otherwise}\\\\\\ + \max(v_i+k[i-1,j-w_i],\, k[i-1,j]) & w_i \leq j\\ + k[i-1,j] & \text{otherwise}\\ \end{array} \right. $$
13
diff --git a/Source/Core/PolygonPipeline.js b/Source/Core/PolygonPipeline.js @@ -2,10 +2,10 @@ define([ '../ThirdParty/earcut-2.1.1', './Cartesian2', './Cartesian3', + './Check', './ComponentDatatype', './defaultValue', './defined', - './DeveloperError', './Ellipsoid', './Geometry', './GeometryAttribute', @@ -16,10 +16,10 @@ define([ earcut, Cartesian2, Cartesian3, + Check, ComponentDatatype, defaultValue, defined, - DeveloperError, Ellipsoid, Geometry, GeometryAttribute, @@ -41,12 +41,8 @@ define([ */ PolygonPipeline.computeArea2D = function(positions) { //>>includeStart('debug', pragmas.debug); - if (!defined(positions)) { - throw new DeveloperError('positions is required.'); - } - if (positions.length < 3) { - throw new DeveloperError('At least three positions are required.'); - } + Check.typeOf.object('positions', positions); + Check.typeOf.number.greaterThanOrEquals('positions.length', positions.length, 3); //>>includeEnd('debug'); var length = positions.length; @@ -81,9 +77,7 @@ define([ */ PolygonPipeline.triangulate = function(positions, holes) { //>>includeStart('debug', pragmas.debug); - if (!defined(positions)) { - throw new DeveloperError('positions is required.'); - } + Check.defined('positions', positions); //>>includeEnd('debug'); var flattenedPositions = Cartesian2.packArray(positions); @@ -114,24 +108,12 @@ define([ granularity = defaultValue(granularity, CesiumMath.RADIANS_PER_DEGREE); //>>includeStart('debug', pragmas.debug); - if (!defined(ellipsoid)) { - throw new DeveloperError('ellipsoid is required.'); - } - if (!defined(positions)) { - throw new DeveloperError('positions is required.'); - } - if (!defined(indices)) { - throw new DeveloperError('indices is required.'); - } - if (indices.length < 3) { - throw new DeveloperError('At least three indices are required.'); - } - if (indices.length % 3 !== 0) { - throw new DeveloperError('The number of indices must be divisable by three.'); - } - if (granularity <= 0.0) { - throw new DeveloperError('granularity must be greater than zero.'); - } + Check.typeOf.object('ellipsoid', ellipsoid); + Check.defined('positions', positions); + Check.defined('indices', indices); + Check.typeOf.number.greaterThanOrEquals('indices.length', indices.length, 3); + Check.typeOf.number.equals('indices.length % 3', '0', indices.length % 3, 0); + Check.typeOf.number.greaterThan('granularity', granularity, 0.0); //>>includeEnd('debug'); // triangles that need (or might need) to be subdivided.
14
diff --git a/src/routes.js b/src/routes.js @@ -136,7 +136,7 @@ export function loadPlanFromCSV(assignmentList, state) { partCount = cols[3], pluralType = cols[4]; if (unitId.includes("_")) { - unitId = unitId.split("_")[1]; + unitId = unitId.split("_").slice(1).join("_"); } if (placeId !== state.place.id) {
11
diff --git a/demo/combo-box-basic-demos.html b/demo/combo-box-basic-demos.html <h3>Lazy Loading</h3> - + <p> + The <code>dataProvider</code> property can be assigend a function to provide + data from a remote source. + </p> + <p> + <b>Note:</b> the total number of items must be provided as the second argument of the data provider <code>callback</code>. + </p> <vaadin-demo-snippet id="combo-box-basic-demos-lazy-loading"> <template preserve-content> - <vaadin-combo-box label="Element"></vaadin-combo-box> + <vaadin-combo-box label="Country"></vaadin-combo-box> <script> window.addDemoReadyListener('#combo-box-basic-demos-lazy-loading', function(document) { const combo = document.querySelector('vaadin-combo-box'); - combo.size = elements.length; + combo.dataProvider = function(params, callback) { - setTimeout(function() { - const filter = (params.filter || '').toLowerCase(); - const filteredElements = elements.filter(function(element) { - return element.toLowerCase().indexOf(filter) > -1; - }); - const index = params.page * params.pageSize; - const slice = filteredElements.slice(index, index + params.pageSize); - callback(slice, filteredElements.length); - }, 1000); + var xhr = new XMLHttpRequest(); + xhr.onload = function() { + // 249 is the total number of countries + callback(JSON.parse(xhr.responseText), 249); + }; + var index = params.page * params.pageSize; + xhr.open('GET', 'https://demo.vaadin.com/demo-data/1.0/countries?index=' + index + '&count=' + params.pageSize, true); + xhr.send(); }; }); </script>
7
diff --git a/base/tile_events/TileEvent.ts b/base/tile_events/TileEvent.ts @@ -269,7 +269,7 @@ export abstract class TileEvent { * @returns returns an direction. */ get_activation_direction(): directions { - return this.activation_directions.values().next().value; + return this._initial_activation_directions.values().next().value; } /**
1
diff --git a/src/components/languagechooser/languagechooser.jsx b/src/components/languagechooser/languagechooser.jsx @@ -21,7 +21,7 @@ class LanguageChooser extends React.Component { ]); } handleSetLanguage (name, value) { - jar.set('scratchlanguage', value); + jar.set('scratchlanguage', value, {domain: `.${window.location.hostname}`}); window.location.reload(); } render () {
12
diff --git a/python/ccxt/huobipro.py b/python/ccxt/huobipro.py @@ -249,7 +249,8 @@ class huobipro (Exchange): ohlcv['high'], ohlcv['low'], ohlcv['close'], - ohlcv['vol'], + # Huobipro defines 'vol' as sum(deal_price * deal_amount) + ohlcv['amount'] ] def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, params={}):
1
diff --git a/Tests/web3swiftTests/localTests/TransactionsTests.swift b/Tests/web3swiftTests/localTests/TransactionsTests.swift @@ -638,7 +638,7 @@ class TransactionsTests: XCTestCase { writeTX.transaction.from = from writeTX.transaction.value = value! let policies = Policies(gasLimitPolicy: .manual(78423)) - let result = try await writeTX.writeToChain(password: "", policies: policies) + let result = try await writeTX.writeToChain(password: "", policies: policies, sendRaw: false) let txHash = Data.fromHex(result.hash.stripHexPrefix())! print("Transaction with hash ", txHash)
1
diff --git a/core/server/web/shared/middlewares/uncapitalise.js b/core/server/web/shared/middlewares/uncapitalise.js const errors = require('@tryghost/errors'); const urlUtils = require('../../../../shared/url-utils'); -const i18n = require('../../../../shared/i18n'); +const tpl = require('@tryghost/tpl'); const localUtils = require('../utils'); +const messages = { + pageNotFound: 'Page not found"' +}; + const uncapitalise = (req, res, next) => { let pathToTest = (req.baseUrl ? req.baseUrl : '') + req.path; let redirectPath; @@ -38,7 +42,7 @@ const uncapitalise = (req, res, next) => { decodedURI = decodeURIComponent(pathToTest); } catch (err) { return next(new errors.NotFoundError({ - message: i18n.t('errors.errors.pageNotFound'), + message: tpl(messages.pageNotFound), err: err })); }
14
diff --git a/examples/get-started/pure-js/carto/package.json b/examples/get-started/pure-js/carto/package.json "dependencies": { "@deck.gl/core": "^8.2.7", "@deck.gl/layers": "^8.2.7", + "@deck.gl/geo-layers": "^8.2.7", + "@deck.gl/mesh-layers": "^8.2.7", + "@deck.gl/carto": "^8.3.0", "mapbox-gl": "^1.12.0" }, "devDependencies": {
0
diff --git a/docs/implementing-cards.md b/docs/implementing-cards.md @@ -583,26 +583,6 @@ this.interrupt({ }); ``` -#### Multiple choice reactions and interrupts - -A few cards provide reactions or interrupts that have more than a yes or no choice. For example, Asako Diplomat can be used to honor or dishonor a character. In these cases, instead of sending a `handler` method, a `choices` object may be provided. Each property under the `choices` object will be used as the prompt button text, while the value will be the function to be executed if the player chooses that option. The option to decline / cancel the ability is provided automatically and does not need to be added to the `choices` object. - -```javascript -this.reaction({ - when: { - // conflict win - }, - choices: { - 'Honor a character': () => { - // code to honor a character - }, - 'Dishonor a character': () => { - // code to dishonor a character - } - } -}); -``` - #### Paying additional costs for reactions and interrupts Some abilities have an additional cost, such as kneeling the card. In these cases, specify the `cost` parameter. The ability will check if the cost can be paid. If it can't, the ability will not prompt the player. If it can, costs will be paid automatically and then the ability will execute.
2
diff --git a/engine/components/IgeTiledComponent.js b/engine/components/IgeTiledComponent.js @@ -132,24 +132,11 @@ var IgeTiledComponent = IgeClass.extend({ z = x + (y * mapWidth); if (layerData[z] > 0 && layerData[z] !== 2147483712) { - if (ige.isClient) { - // Paint the tile - currentTexture = textureCellLookup[layerData[z]]; - if (currentTexture) { - currentCell = layerData[z] - (currentTexture._tiledStartingId - 1); - maps[i].paintTile(x, y, maps[i]._textureList.indexOf(currentTexture), currentCell); - } - } else { - // Server-side we don't paint tiles on a texture map - // we just mark the map data so that it can be used - // to do things like path-finding and auto-creating - // static physics objects. maps[i].occupyTile(x, y, 1, 1, layerData[z]); } } } } - } if (layerType === 'objectgroup') { maps[i] = layer;
1
diff --git a/static/js/syna.js b/static/js/syna.js @@ -11,6 +11,7 @@ $(function() { } }); +if ($.validate) { $.validate({ modules: 'html5, toggleDisabled', validateOnEvent: true, @@ -49,6 +50,7 @@ $.validate({ return false; } }); +} function onContactCaptcha($form) { $('form.contact').submit();
1
diff --git a/lib/istio/addon/components/cru-destination-rule/component.js b/lib/istio/addon/components/cru-destination-rule/component.js @@ -8,6 +8,7 @@ import Errors from 'ui/utils/errors'; import EmberObject from '@ember/object'; import ChildHook from 'shared/mixins/child-hook'; import { flattenLabelArrays } from 'shared/mixins/manage-labels'; +import { isEmpty } from '@ember/utils'; export default Component.extend(ViewNewEdit, ChildHook, { intl: service(), @@ -68,7 +69,10 @@ export default Component.extend(ViewNewEdit, ChildHook, { errors.pushObject(intl.t('cruDestinationRule.host.error')); } - (get(this, 'model.subsets') || []).forEach((subset) => { + if (isEmpty(get(this, 'model.subsets'))) { + delete this.model.subsets; + } else { + get(this, 'model.subsets').forEach((subset) => { if ( !get(subset, 'name') ) { errors.pushObject(intl.t('cruDestinationRule.subsets.name.error')); } @@ -77,6 +81,7 @@ export default Component.extend(ViewNewEdit, ChildHook, { errors.pushObject(intl.t('cruDestinationRule.subsets.labels.error')); } }) + } if ( get(this, 'model.trafficPolicy.loadBalancer.consistentHash.httpHeaderName') === '' ) { errors.pushObject(intl.t('cruDestinationRule.loadBalancer.consistentHash.httpHeaderName.error'));
2
diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml @@ -151,7 +151,6 @@ jobs: test-storybook: name: Test Storybook runs-on: ubuntu-latest - # Tried this but keeps failing needs: build-storybook timeout-minutes: 20 if: false == ( ( github.event_name == 'pull_request' && ( github.event.action == 'closed' || github.event.pull_request.draft == true ) ) || github.event.pull_request.head.repo.fork ) @@ -180,10 +179,6 @@ jobs: - name: npm install run: | npm ci - # Ideally would depend on build step but keeps failing - # - name: Build Storybook - # run: | - # npm run build:storybook - name: Test Storybook run: | npm run test:storybook
2
diff --git a/help/_config.yml b/help/_config.yml -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'bundle exec jekyll serve'. If you change this file, please restart the server process. -# -# If you need help with YAML syntax, here are some quick references for you: -# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml -# https://learnxinyminutes.com/docs/yaml/ -# -# Site settings -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.myvariable }}. - -title: Your awesome title -email: [email protected] -description: >- # this means to ignore newlines until "baseurl:" - Write an awesome description for your new site here. You can edit this - line in _config.yml. It will appear in your document head meta (for - Google search results) and in your feed.xml site description. -baseurl: "" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com -twitter_username: jekyllrb -github_username: jekyll - -# Build settings -theme: minima -plugins: - - jekyll-feed - -# Exclude from processing. -# The following items will not be processed, by default. -# Any item listed under the `exclude:` key here will be automatically added to -# the internal "default list". -# -# Excluded items can be processed by explicitly listing the directories or -# their entries' file path in the `include:` list. -# -# exclude: -# - .sass-cache/ -# - .jekyll-cache/ -# - gemfiles/ -# - Gemfile -# - Gemfile.lock -# - node_modules/ -# - vendor/bundle/ -# - vendor/cache/ -# - vendor/gems/ -# - vendor/ruby/ +defaults: + - + scope: + path: "" # an empty string here means all files in the project + values: + layout: "default" \ No newline at end of file
12
diff --git a/src/core/Core.test.js b/src/core/Core.test.js @@ -708,13 +708,68 @@ describe('src/Core', () => { }) describe('checkRestrictions', () => { + it('should enforce the maxNumberOfFiles rule', () => { + const core = new Core({ + autoProceed: false, + restrictions: { + maxNumberOfFiles: 1 + } + }) + + // add 2 files + core.addFile({ + source: 'jest', + name: 'foo1.jpg', + type: 'image/jpg', + data: utils.dataURItoFile(sampleImageDataURI, {}) + }) + expect(core.addFile({ + source: 'jest', + name: 'foo2.jpg', + type: 'image/jpg', + data: utils.dataURItoFile(sampleImageDataURI, {}) + })).rejects.toMatch('File not allowed').then(() => { + expect(core.state.info.message).toEqual('You can only upload 1 file') + }) + }) + xit('should enforce the minNumberOfFiles rule', () => {}) - xit('should enforce the maxNumberOfFiles rule', () => {}) + it('should enfore the allowedFileTypes rule', () => { + const core = new Core({ + autoProceed: false, + restrictions: { + allowedFileTypes: ['image/gif', 'image/png'] + } + }) - xit('should enfore the allowedFileTypes rule', () => {}) + expect(core.addFile({ + source: 'jest', + name: 'foo2.jpg', + type: 'image/jpg', + data: utils.dataURItoFile(sampleImageDataURI, {}) + })).rejects.toMatch('File not allowed').then(() => { + expect(core.state.info.message).toEqual('You can only upload: image/gif, image/png') + }) + }) - xit('should enforce the maxFileSize rule', () => {}) + it('should enforce the maxFileSize rule', () => { + const core = new Core({ + autoProceed: false, + restrictions: { + maxFileSize: 1234 + } + }) + + expect(core.addFile({ + source: 'jest', + name: 'foo.jpg', + type: 'image/jpg', + data: utils.dataURItoFile(sampleImageDataURI, {}) + })).rejects.toMatch('File not allowed').then(() => { + expect(core.state.info.message).toEqual('This file exceeds maximum allowed size of 1.2 KB') + }) + }) }) describe('actions', () => {})
0
diff --git a/install.php b/install.php @@ -307,7 +307,7 @@ function install($adminPassword, $timezone) } // System directories - $systemDirectories = array(PATH_UPLOADS_PROFILES, PATH_TMP, PATH_WORKSPACES, PATH_UPLOADS_PAGES); + $systemDirectories = array(PATH_UPLOADS_PROFILES, PATH_TMP, PATH_WORKSPACES); foreach ($systemDirectories as $directory) { if (!mkdir($directory, DIR_PERMISSIONS, true)) { $errorText = 'Error when trying to created the directory=>' . $directory;
2
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml @@ -31,15 +31,15 @@ jobs: - name: dotnet test [FunctionalTests] run: dotnet test ./tests/FunctionalTests/FunctionalTests.csproj -c $BUILD_CONFIG --no-build - name: dotnet pack [Esquio] - run: dotnet pack ./src/Esquio/Esquio.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix nightly --no-build --include-source --include-symbols + run: dotnet pack ./src/Esquio/Esquio.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix "-nightly" --no-build --include-source --include-symbols - name: dotnet pack [Esquio.AspNetCore] - run: dotnet pack ./src/Esquio.AspNetCore/Esquio.AspNetCore.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix nightly --no-build --include-source --include-symbols + run: dotnet pack ./src/Esquio.AspNetCore/Esquio.AspNetCore.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix "-nightly" --no-build --include-source --include-symbols - name: dotnet pack [Esquio.AspNetCore.ApplicationInsightProcessor] - run: dotnet pack ./src/Esquio.AspNetCore.ApplicationInsightProcessor/Esquio.AspNetCore.ApplicationInsightProcessor.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix nightly --no-build --include-source --include-symbols + run: dotnet pack ./src/Esquio.AspNetCore.ApplicationInsightProcessor/Esquio.AspNetCore.ApplicationInsightProcessor.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix "-nightly" --no-build --include-source --include-symbols - name: dotnet pack [Esquio.Configuration.Store] - run: dotnet pack ./src/Esquio.Configuration.Store/Esquio.Configuration.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix nightly --no-build --include-source --include-symbols + run: dotnet pack ./src/Esquio.Configuration.Store/Esquio.Configuration.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix "-nightly" --no-build --include-source --include-symbols - name: dotnet pack [Esquio.EntityFrameworkCore.Store] - run: dotnet pack ./src/Esquio.EntityFrameworkCore.Store/Esquio.EntityFrameworkCore.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix nightly --no-build --include-source --include-symbols + run: dotnet pack ./src/Esquio.EntityFrameworkCore.Store/Esquio.EntityFrameworkCore.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix "-nightly" --no-build --include-source --include-symbols - name: Publish nuget run: | for f in ./artifacts/*.nupkg
12
diff --git a/skeleton/docker/Dockerfile b/skeleton/docker/Dockerfile @@ -80,6 +80,10 @@ COPY src ./src COPY test ./test // @endif +// @if feat["cli-bundler"] && feat["dotnet-core"] +COPY wwwroot ./wwwroot +// @endif + // @if feat.jest || feat.karma # RUN UNIT TESTS RUN au test @@ -103,11 +107,15 @@ WORKDIR /usr/share/nginx/html COPY --from=publish /app/dist/ . // @endif -// @if feat["dotnet-core"] +// @if feat.webpack && feat["dotnet-core"] COPY --from=publish /app/wwwroot/dist/ . // @endif -// @if feat["cli-bundler"] +// @if feat["cli-bundler"] && feat["dotnet-core"] +COPY --from=publish /app/wwwroot/ . +// @endif + +// @if feat["cli-bundler"] && !feat["dotnet-core"] // @if feat["scaffold-navigation"] COPY --from=publish /app/bootstrap/dist/ ./bootstrap/dist/ // @endif
1
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml @@ -126,6 +126,14 @@ jobs: matrix: include: + - description: Verify package build + name: test-build-package + run: npm run build:package + + - description: Verify distribution build + name: test-build-dist + run: npm run build:dist + - description: JavaScript behaviour tests name: test-behaviour run: npx jest --color --selectProjects "JavaScript behaviour tests"
5
diff --git a/public/index.html b/public/index.html _animateControllers(); const device = renderer.vr.getDevice(); - if (device && device instanceof FakeDisplay) { + if (device && device instanceof FakeVRDisplay) { camera.position.copy(device.position); camera.quaternion.copy(device.quaternion);
10
diff --git a/src/agent/index.js b/src/agent/index.js @@ -159,9 +159,9 @@ const commandHandlers = { 'dt.': traceHere, 'dt-': clearTrace, 'dtr': traceRegs, - 'T': traceLogDump, - 'T-': traceLogClear, - 'T*': traceLog, + 'dtl': traceLogDump, + 'dtl-': traceLogClear, + 'dtl*': traceLog, 'dts': stalkTraceEverything, 'dts?': stalkTraceEverythingHelp, 'dtsj': stalkTraceEverythingJson,
10
diff --git a/rollup.config.js b/rollup.config.js @@ -34,8 +34,10 @@ const isExternal = id => !id.startsWith('\0') && !id.startsWith('.') && !id.star const licenseHeaderOptions = { sourcemap: true, banner: { + content: { file: path.join(__dirname, 'LICENSE') } + } }; const configs = [
4
diff --git a/src/components/site-logo.js b/src/components/site-logo.js @@ -4,7 +4,7 @@ const SiteLogo = () => ( /* eslint-disable max-len */ <svg - class="sprk-c-Masthead__logo" + className="sprk-c-Masthead__logo" xmlns="http://www.w3.org/2000/svg" width="365.4" height="101.35"
3