code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/lib/output.js b/lib/output.js @@ -487,6 +487,17 @@ function raw () { return this._updateFormatOut('raw'); } +const formats = new Map([ + ['heic', 'heif'], + ['heif', 'heif'], + ['jpeg', 'jpeg'], + ['jpg', 'jpeg'], + ['png', 'png'], + ['raw', 'raw'], + ['tiff', 'tiff'], + ['webp', 'webp'] +]); + /** * Force output to a given format. * @@ -502,14 +513,11 @@ function raw () { * @throws {Error} unsupported format or options */ function toFormat (format, options) { - if (is.object(format) && is.string(format.id)) { - format = format.id; - } - if (format === 'jpg') format = 'jpeg'; - if (!is.inArray(format, ['jpeg', 'png', 'webp', 'tiff', 'raw'])) { - throw is.invalidParameterError('format', 'one of: jpeg, png, webp, tiff, raw', format); + const actualFormat = formats.get(is.object(format) && is.string(format.id) ? format.id : format); + if (!actualFormat) { + throw is.invalidParameterError('format', `one of: ${[...formats.keys()].join(`, `)}`, format); } - return this[format](options); + return this[actualFormat](options); } /**
11
diff --git a/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/FMC/CJ4_FMC_LegsPage.js b/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/FMC/CJ4_FMC_LegsPage.js @@ -285,7 +285,7 @@ class CJ4_FMC_LegsPage { switch (this._fmc.selectMode) { case CJ4_FMC_LegsPage.SELECT_MODE.NONE: { // CANT SELECT MAGENTA OR BLUE ON PAGE 1 - if (((i > 1 && this._currentPage == 1) || (this._currentPage > 1))) { + if (((i > 0 && this._currentPage == 1) || (this._currentPage > 1))) { // SELECT EXISTING WAYPOINT FROM FLIGHT PLAN this._approachWaypoints = this._fmc.flightPlanManager.getApproachWaypoints(); if (this._approachWaypoints.length > 0) { @@ -315,10 +315,14 @@ class CJ4_FMC_LegsPage { let isDirectTo = (i == 1 && this._currentPage == 1); if (isDirectTo) { // DIRECT TO - // this._fmc.ensureCurrentFlightPlanIsTemporary(() => { - this._fmc.flightPlanManager.activateDirectTo(this._fmc.selectedWaypoint.fix.icao, () => { - this.resetAfterOp(); - // }); + this._fmc.ensureCurrentFlightPlanIsTemporary(() => { + this._fmc.activateDirectToWaypoint(this._fmc.selectedWaypoint.fix, () => { + this._fmc.setMsg(); + this._fmc._activatingDirectTo = true; + this._fmc.refreshPageCallback = () => { this.resetAfterOp(); }; // TODO this seems annoying, but this is how stuff works in cj4_fmc right now + this._fmc.onExecDefault(); + }); + this._fmc.setMsg(); }); } else { // MOVE TO POSITION IN FPLN @@ -395,8 +399,22 @@ class CJ4_FMC_LegsPage { const userWaypoint = await this.parseWaypointInput(value, scratchPadWaypointIndex); if (userWaypoint) { this._fmc.ensureCurrentFlightPlanIsTemporary(() => { - this._fmc.flightPlanManager.addUserWaypoint(userWaypoint, selectedWpIndex, () => { + this._fmc.flightPlanManager.addUserWaypoint(userWaypoint, selectedWpIndex, (isSuccess) => { + if (isSuccess) { + let isDirectTo = (i == 1 && this._currentPage == 1); + if (isDirectTo) { + const activeIndex = fmc.flightPlanManager.getActiveWaypointIndex(); + fmc.ensureCurrentFlightPlanIsTemporary(() => { + let wp = fmc.flightPlanManager.getWaypoint(activeIndex); + fmc.activateDirectToWaypoint(wp, () => { + fmc._activatingDirectTo = true; + fmc.refreshPageCallback = () => { this.resetAfterOp(); }; // TODO this seems annoying, but this is how stuff works in cj4_fmc right now + fmc.onExecDefault(); + }); + }); + } else this.resetAfterOp(); + } }); }); } @@ -405,9 +423,18 @@ class CJ4_FMC_LegsPage { if (isSuccess) { let isDirectTo = (i == 1 && this._currentPage == 1); if (isDirectTo) { - let wp = this._fmc.flightPlanManager.getWaypoint(selectedWpIndex); - this._fmc.activateDirectToWaypoint(wp, () => { - this.resetAfterOp(); + // let wp = this._fmc.flightPlanManager.getWaypoint(selectedWpIndex); + // this._fmc.activateDirectToWaypoint(wp, () => { + // this.resetAfterOp(); + // }); + const activeIndex = fmc.flightPlanManager.getActiveWaypointIndex(); + fmc.ensureCurrentFlightPlanIsTemporary(() => { + let wp = fmc.flightPlanManager.getWaypoint(activeIndex); + fmc.activateDirectToWaypoint(wp, () => { + fmc._activatingDirectTo = true; + fmc.refreshPageCallback = () => { this.resetAfterOp(); }; // TODO this seems annoying, but this is how stuff works in cj4_fmc right now + fmc.onExecDefault(); + }); }); } else this.resetAfterOp();
11
diff --git a/src/encoded/static/vis_defs/DNASE_vis_def.json b/src/encoded/static/vis_defs/DNASE_vis_def.json "sortOrder": [ "Biosample", "Targets", "Replicates", "Views" ], "Views": { "tag": "view", - "group_order": [ "Signal", "Peaks", "Hotspots", "AutoScale Signal" ], + "group_order": [ "Normalized Signal", "Signal", "Peaks", "Hotspots", "AutoScale Signal" ], "groups": { + "Normalized Signal": { + "tag": "aNSIG", + "visibility": "full", + "type": "bigWig", + "viewLimits": "0:1", + "autoScale": "off", + "maxHeightPixels": "32:16:8", + "windowingFunction": "mean+whiskers", + "output_type": [ "read-depth normalized signal" ] + }, "Signal": { "tag": "aSIG", "visibility": "full",
0
diff --git a/.elasticbeanstalk/config.yml b/.elasticbeanstalk/config.yml @@ -5,7 +5,7 @@ branch-defaults: environment: beiweCluster-staging global: application_name: Beiwe Cluster - default_ec2_keyname: new_beiwe_key_pair + default_ec2_keyname: actually_beiwe_key_pair default_platform: 64bit Amazon Linux 2016.09 v2.3.0 running Python 2.7 default_region: us-east-1 profile: eb-cli
13
diff --git a/README.md b/README.md @@ -42,8 +42,7 @@ Server side framework is Spring+MyBatis and front-end is based on AngularJS1 and <img src="https://cloud.githubusercontent.com/assets/6037522/19501689/1439ff8c-95da-11e6-9374-750eb6ad82fe.png" width="450"> </div> -## Demo(Click for larger gif) - +<h2>Demo <font color="red">(Click pics for full screen demo!)</font></h2> |Load Data from query or DataSet | Basic Operation | | :-----------: | :------: | | ![case 0-switchdataload](https://cloud.githubusercontent.com/assets/6037522/21477518/9a874210-cb7d-11e6-9b7e-11721aac322c.gif) | ![case 1-](https://cloud.githubusercontent.com/assets/6037522/21477521/9c2ead88-cb7d-11e6-9ae4-4c1990f675c2.gif) | @@ -54,7 +53,7 @@ Server side framework is Spring+MyBatis and front-end is based on AngularJS1 and | Add Dashboard Parameters | Use Parameters | | :-----------: | :------: | -| ![case4-useparam](https://cloud.githubusercontent.com/assets/6037522/21478021/73f81fe8-cb82-11e6-95ea-d98b43a4abf2.gif) | ![case4-addboardparam](https://cloud.githubusercontent.com/assets/6037522/21478022/74216f2e-cb82-11e6-9612-390a2f93184c.gif)| +| ![case4-addboardparam](https://cloud.githubusercontent.com/assets/6037522/21478022/74216f2e-cb82-11e6-9612-390a2f93184c.gif) | ![case4-useparam](https://cloud.githubusercontent.com/assets/6037522/21478021/73f81fe8-cb82-11e6-95ea-d98b43a4abf2.gif)| ## How to build project 1 Download or git clone project
3
diff --git a/tests/phpunit/integration/Core/REST_API/REST_RoutesTest.php b/tests/phpunit/integration/Core/REST_API/REST_RoutesTest.php @@ -47,10 +47,10 @@ class REST_RoutesTest extends TestCase { '/' . REST_Routes::REST_ROOT . '/core/modules/data/list', '/' . REST_Routes::REST_ROOT . '/core/modules/data/info', '/' . REST_Routes::REST_ROOT . '/core/modules/data/activation', - '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z\\-]+)/data/(?P<datapoint>[a-z\\-]+)', + '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z0-9\\-]+)/data/(?P<datapoint>[a-z\\-]+)', '/' . REST_Routes::REST_ROOT . '/data', - '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z\\-]+)/data/notifications', - '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z\\-]+)/data/settings', + '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z0-9\\-]+)/data/notifications', + '/' . REST_Routes::REST_ROOT . '/modules/(?P<slug>[a-z0-9\\-]+)/data/settings', '/' . REST_Routes::REST_ROOT . '/core/search/data/post-search', '/' . REST_Routes::REST_ROOT . '/core/site/data/developer-plugin', '/' . REST_Routes::REST_ROOT . '/core/site/data/health-checks',
1
diff --git a/index.d.ts b/index.d.ts -declare module "eris" { - // TODO good hacktoberfest PR: implement ShardManager, RequestHandler and other stuff import { EventEmitter } from "events"; import { Readable as ReadableStream } from "stream"; - import { Agent as HTTPAgent } from "http"; import { Agent as HTTPSAgent } from "https"; +declare function Eris(token: string, options?: Eris.ClientOptions): Eris.Client; + +declare namespace Eris { + // TODO good hacktoberfest PR: implement ShardManager, RequestHandler and other stuff + export const VERSION: string; interface JSONCache { [s: string]: any; } @@ -463,7 +465,7 @@ declare module "eris" { defaultImageSize?: number; ws?: any; latencyThreshold?: number; - agent?: HTTPAgent | HTTPSAgent + agent?: HTTPSAgent } interface CommandClientOptions { defaultHelpCommand?: boolean; @@ -1642,3 +1644,5 @@ declare module "eris" { public unregisterCommand(label: string): void; } } + +export = Eris;
11
diff --git a/src/ApiGatewayWebSocket.js b/src/ApiGatewayWebSocket.js @@ -17,7 +17,6 @@ const { stringify } = JSON module.exports = class ApiGatewayWebSocket { constructor(service, options, config) { - this._actions = {} this._config = config this._lambdaFunctionPool = new LambdaFunctionPool() this._options = options @@ -25,6 +24,7 @@ module.exports = class ApiGatewayWebSocket { this._server = null this._service = service this._webSocketClients = new Map() + this._webSocketRoutes = {} this._websocketsApiRouteSelectionExpression = this._provider.websocketsApiRouteSelectionExpression || '$request.body.action' @@ -119,9 +119,9 @@ module.exports = class ApiGatewayWebSocket { } async _doAction(ws, connectionId, name, event, doDefaultAction) { - let action = this._actions[name] + let action = this._webSocketRoutes[name] - if (!action && doDefaultAction) action = this._actions.$default + if (!action && doDefaultAction) action = this._webSocketRoutes.$default if (!action) return const sendError = (err) => { @@ -365,7 +365,7 @@ module.exports = class ApiGatewayWebSocket { functionObj, } - this._actions[actionName] = action + this._webSocketRoutes[actionName] = action serverlessLog(`Action '${websocket.route}'`) }
10
diff --git a/src/app/Library/CrudPanel/CrudFilter.php b/src/app/Library/CrudPanel/CrudFilter.php @@ -280,12 +280,12 @@ class CrudFilter * For example, the dropdown, select2 and select2 filters let the user select * pre-determined values to filter with. This is how to set those values that will be picked up. * - * @param array $value Key-value array with values for the user to pick from. + * @param array|function $value Key-value array with values for the user to pick from, or a function which also return a Key-value array. * @return CrudFilter */ public function values($value) { - $this->values = is_callable($value) ? $value() : $value; + $this->values = (!is_string($value) && is_callable($value)) ? $value() : $value; return $this->save(); }
3
diff --git a/includes/Core/Authentication/Verification_File.php b/includes/Core/Authentication/Verification_File.php @@ -13,7 +13,7 @@ namespace Google\Site_Kit\Core\Authentication; use Google\Site_Kit\Core\Storage\User_Options; /** - * Class representing the site verification file for a user. + * Class representing the site verification file token for a user. * * @since n.e.x.t * @access private @@ -46,35 +46,34 @@ final class Verification_File { } /** - * Retrieves the user verification file. + * Retrieves the user verification file token. * * @since n.e.x.t * - * @return string|bool Verification file, or false if not set. + * @return string|bool Verification file token, or false if not set. */ public function get() { return $this->user_options->get( self::OPTION ); } /** - * Saves the user verification file. + * Saves the user verification file token. * * @since n.e.x.t - * - * @param string $filename File name to store. + * @param string $token Token portion of file name to store. * * @return bool True on success, false on failure. */ - public function set( $filename ) { - return $this->user_options->set( self::OPTION, $filename ); + public function set( $token ) { + return $this->user_options->set( self::OPTION, $token ); } /** - * Checks whether a verification file for the user is present. + * Checks whether a verification file token for the user is present. * * @since n.e.x.t * - * @return bool True if verification file file is set, false otherwise. + * @return bool True if verification file token is set, false otherwise. */ public function has() { return (bool) $this->get();
3
diff --git a/core/server/api/v2/posts-public.js b/core/server/api/v2/posts-public.js const models = require('../../models'); -const i18n = require('../../../shared/i18n'); +const tpl = require('@tryghost/tpl'); const errors = require('@tryghost/errors'); const allowedIncludes = ['tags', 'authors']; +const messages = { + postNotFound: 'Post not found.' +}; + module.exports = { docName: 'posts', @@ -63,7 +67,7 @@ module.exports = { .then((model) => { if (!model) { throw new errors.NotFoundError({ - message: i18n.t('errors.api.posts.postNotFound') + message: tpl(messages.postNotFound) }); }
14
diff --git a/include.xml b/include.xml </section> + <section if="lime-modular"> + <set name="haxe-module-name" value="haxe" unless="haxe-module-name" /> <set name="lime-module-name" value="lime" unless="lime-module-name" /> - <setenv name="HAXE_STD_PATH" value="${HAXE_STD_PATH}" if="modular HAXE_STD_PATH" /> + <setenv name="HAXE_STD_PATH" value="${HAXE_STD_PATH}" if="HAXE_STD_PATH" /> - <module name="${haxe-module-name}" if="html5 modular" unless="exclude-haxe-module"> + <module name="${haxe-module-name}" if="html5" unless="exclude-haxe-module"> <!--<source path="${HAXE_STD_PATH}" package="js.html" />--> <source path="${HAXE_STD_PATH}" package="haxe.ds" exclude="haxe.ds.StringMap" /> </module> - <module name="${lime-module-name}" if="html5 modular" unless="exclude-lime-module"> + <module name="${lime-module-name}" if="html5" unless="exclude-lime-module"> <source path="" package="lime" exclude="lime._backend.*|lime.project.*|lime.tools.*|lime.net.*|lime.graphics.console.*|lime.text.harfbuzz.*" /> <source path="" package="lime" include="lime._backend.html5" /> </section> + </section> + <haxelib name="hxcpp" if="setup" /> <haxelib name="lime-samples" if="setup" />
10
diff --git a/js/popup.js b/js/popup.js @@ -196,25 +196,25 @@ window.onload = function() { } function toggle_blocking() { - bg.isExtensionEnabled = check_uncheck(bg.isExtensionEnabled, elements_by_id.toggle_blocking); + settings.updateSetting("extensionIsEnabled", check_uncheck(settings.getSetting("extensionIsEnabled"), by_id.toggle_blocking); var social = document.getElementById(by_id.toggle_social_blocking); - if (!bg.isExtensionEnabled) { - bg.isSocialBlockingEnabled = false; + if (!settings.getSetting("extensionIsEnabled")) { + settings.updateSetting("socialBlockingIsEnabled", false); social.parentNode.classList.add(css_class.hide); social.checked = false; - bg.isSocialBlockingEnabled = false; } else { social.parentNode.classList.remove(css_class.hide); - social.checked = bg.isSocialBlockingEnabled? true : false; + social.checked = settings.getSetting("socialBlockingIsEnabled")? true : false; } - chrome.runtime.sendMessage({"social": bg.isSocialBlockingEnabled}, function(){}); + chrome.runtime.sendMessage({"social": settings.getSetting("socialBlockingIsEnabled")}, function(){}); } function toggle_social_blocking() { - bg.isSocialBlockingEnabled = check_uncheck(bg.isSocialBlockingEnabled, by_id.toggle_social_blocking); - chrome.runtime.sendMessage({"social": bg.isSocialBlockingEnabled}, function(){}); + social_blocking = settings.getSetting("socialBlockingIsEnabled"); + settings.updateSetting("socialBlockingIsEnabled", check_uncheck(social_blocking, by_id.toggle_social_blocking); + chrome.runtime.sendMessage({"social": settings.getSetting("socialBlockingIsEnabled")}, function(){}); } setTimeout(function(){ @@ -341,12 +341,12 @@ window.onload = function() { document.getElementById(adv.meanings).checked = true; } - if (bg.isExtensionEnabled) { + if (settings.getSetting('extensionIsEnabled') { document.getElementById(by_id.toggle_blocking).checked = true; var social = document.getElementById(by_id.toggle_social_blocking); social.parentNode.classList.remove(css_class.hide); - social.checked = bg.isSocialBlockingEnabled? true : false; + social.checked = settings.getSetting('socialBlockingIsEnabled')? true : false; } }
14
diff --git a/packages/app/src/interfaces/named-query.ts b/packages/app/src/interfaces/named-query.ts @@ -2,8 +2,7 @@ import { IUser } from './user'; export enum SearchResolverName { - ELASTIC_SEARCH = 'ElasticSearch', - SEARCH_BOX = 'SearchBox', + DEFAULT = 'FullTextSearch', PRIVATE_LEGACY_PAGES = 'PrivateLegacyPages', } export interface INamedQuery {
7
diff --git a/appjs/logicjavascript.js b/appjs/logicjavascript.js @@ -17916,13 +17916,10 @@ function multBinDecHexOct() { print += "<h5>Step3 : Now multiply the decimal values found in STEP1 and STEP2</h5>"; print += x1 + "&nbsp; X &nbsp;" + x2 + "&nbsp; = &nbsp;" + x3; - if(input1 === '1' || input1 === '0' || input2 === '1' || input2 === '0') - { - console.log(input1); if (resultType === "Binary") { - result.innerHTML = "Answer in binary=" + fracDectoBinHexOct(x3, 2); + result.innerHTML = "Answer in binary=" + parseInt(fracDectoBinHexOct(x3, 2)); print += "<h5>Step4 : To find the result in "+resultType+" convert the answer found in STEP3 to "+resultType+"</h5>"; - print += x3 + "->" + fracDectoBinHexOct(x3, 2); + print += x3 + "->" + parseInt(fracDectoBinHexOct(x3, 2)); } else if (resultType === "Octal") { result.innerHTML = "Answer in Octal=" + fracDectoBinHexOct(x3, 8); print += "<h5>Step4 : To find the result in "+resultType+" convert the answer found in STEP3 to "+resultType+"</h5>"; @@ -17938,7 +17935,6 @@ function multBinDecHexOct() { } work.innerHTML = print; } -} //----------------------------
1
diff --git a/SearchbarNavImprovements.user.js b/SearchbarNavImprovements.user.js // @description Searchbar & Nav Improvements. Advanced search helper when search box is focused. Bookmark any search for reuse (stored locally, per-site). // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 3.0.3 +// @version 3.0.4 // // @include https://*stackoverflow.com/* // @include https://*serverfault.com/* // Saved Search helper functions const ssKeyRoot = 'SavedSearch'; + // Sanitize: strip mixed, strip page, convert to lowercase + function sanitizeQuery(value) { + return value.toLowerCase().replace(/[?&]mixed=[10]/, '').replace(/[?&]page=\d+/, '').replace(/^[&]/, '?'); + } function addSavedSearch(value) { if(value == null || value == '') return false; - value = value.replace(/&mixed=[10]/, ''); + value = sanitizeQuery(value); + let items = getSavedSearches(); items.unshift(value); // add to beginning store.setItem(ssKeyRoot, JSON.stringify(items)); } function hasSavedSearch(value) { if(value == null || value == '') return false; + value = sanitizeQuery(value); + const items = getSavedSearches(); const result = jQuery.grep(items, function(v) { - return v + '&mixed=0' == value; + return v == value; }); return result.length > 0; } function removeSavedSearch(value) { if(value == null || value == '') return false; + value = sanitizeQuery(value); + const items = getSavedSearches(); const result = jQuery.grep(items, function(v) { return v != value; } function humanizeSearchQuery(value) { if(value == null || value == '') return false; - value = decodeURIComponent(value) - .replace(/&mixed=[10]$/, '') + value = decodeURIComponent(value); + value = sanitizeQuery(value) .replace(/[?&][a-z]+=/g, ' ') .replace(/\+/g, ' ') .trim();
11
diff --git a/articles/hosted-pages/login/index.md b/articles/hosted-pages/login/index.md @@ -16,8 +16,8 @@ Auth0's Hosted Login Page is the most secure way to easily authenticate users fo Auth0 shows the Hosted Login Page whenever something (or someone) triggers an authentication request, such as calling the `/authorize` endpoint (OIDC/OAuth) or sending a SAML login request. It can also be accessed via a request, in the following format: -```html -https://${account.namespace}.auth0.com/login?client=${account.clientId} +```text +https://${account.namespace}/login?client=${account.clientId} ``` Users will see the Hosted Login Page, typically with either the Lock widget or with your custom UI. Once they login, they will be redirected back to your application.
2
diff --git a/assets/js/modules/analytics/datastore/accounts.js b/assets/js/modules/analytics/datastore/accounts.js @@ -223,6 +223,13 @@ export const resolvers = { registry.dispatch( STORE_NAME ).selectProperty( matchedProperty.id, matchedProperty.internalWebPropertyId ); } } catch ( err ) { + // Not the best check here, but this message comes from the API. + // err.data.reason is also 'insufficientPermissions' but that isn't as clear, + // and may not be "no accounts". + if ( err.message && err.message === 'User does not have any Google Analytics account.' ) { + yield actions.receiveAccounts( [] ); + } + // TODO: Implement an error handler store or some kind of centralized // place for error dispatch... return actions.receiveAccountsPropertiesProfilesFailed( err );
9
diff --git a/workshops/terraform/installLatestTerraform.sh b/workshops/terraform/installLatestTerraform.sh @@ -14,12 +14,16 @@ error() exit 1 } -# Install zip if not there -[[ ! -x /usr/bin/zip ]] && sudo apt-get --assume-yes -qq install zip -[[ ! -x /usr/bin/zip ]] && error "Install package \"zip\" and rerun" +# Check for zip and jq +_pkgs="" +[[ ! -x /usr/bin/zip ]] && _pkgs="$_pkgs zip" +[[ ! -x /usr/bin/jq ]] && _pkgs="$_pkgs jq" + +if [[ -n "$_pkgs" ]] +then sudo apt-get update && sudo apt-get install --assume-yes -qq $_pkgs +fi -# Install jq if not there -[[ ! -x /usr/bin/jq ]] && sudo apt-get --assume-yes -qq install jq +[[ ! -x /usr/bin/zip ]] && error "Install package \"zip\" and rerun" [[ ! -x /usr/bin/jq ]] && error "Install package \"jq\" and rerun" # Determine latest file using the API
7
diff --git a/components/doc-download.js b/components/doc-download.js @@ -18,7 +18,7 @@ function DocDownload({title, link, label, src, alt, isReverse, version, children </div> {version && <div className='version'>Version {version}</div>} </div> - <a href={link}> + <a href={link} className='download-url'> <DownloadCloud style={{verticalAlign: 'bottom', marginRight: '5px'}} /> {label} </a> @@ -60,6 +60,10 @@ function DocDownload({title, link, label, src, alt, isReverse, version, children font-weight: bold; font-size: .9em; } + + .download-url { + text-align: center; + } `}</style> </div> )
7
diff --git a/models/boards.js b/models/boards.js @@ -556,7 +556,7 @@ if (Meteor.isServer) { //BOARDS REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/user/:userId/boards', function (req, res, next) { + JsonRoutes.add('GET', '/api/users/:userId/boards', function (req, res, next) { Authentication.checkLoggedIn(req.userId); const paramUserId = req.params.userId; // A normal user should be able to see their own boards,
1
diff --git a/src/pages/using-spark/components/link.mdx b/src/pages/using-spark/components/link.mdx @@ -10,7 +10,7 @@ A Link takes the user to another page or to a specific location on a page. <ComponentPreview - componentName="link--default-link" + componentName="link--default-story" hasReact hasAngular hasHTML
3
diff --git a/index.html b/index.html diagrammingMarkupEnabled: false, statusSearchFilter: "activeOnly", highlightByEffectiveTime: "false", - dailyBuildBrowser: false + dailyBuildBrowser: true }; options.languageNameOfLangRefset = { function determineServer() { if(window.location.hostname.includes('dailybuild')) { options.dailyBuildBrowser = true; + options.queryBranch = 'MAIN'; + options.edition = 'MAIN'; } xhr = $.getJSON("/snowstorm/snomed-ct/v2/codesystems", function(result) { addEditionLinks($('#international_editions'), internationalReleases); - options.dailyBuildReleases = internationalReleases.filter((item)=>{ return item.dailyBuildAvailable}); - addEditionLinks($('#dailybuild_editions'), options.dailyBuildReleases); - // sort local extensions again localReleases.sort(function(a, b) { return a.name.localeCompare(b.name); }); addEditionLinks($('#local_editions'), localReleases); + + options.dailyBuildReleases = internationalReleases.filter((item)=>{ return item.dailyBuildAvailable}); + addEditionLinks($('#dailybuild_editions'), options.dailyBuildReleases); }).fail(function() { console.log('fail'); options.serverUrl = "/snowowl/snomed-ct/v2"; var $span1 = $('<span>').attr("class", "i18n").attr("data-i18n-id", "i18n_go_browsing"); $span1.text("Go browsing..."); var $span2 = $('<span>').attr("class", "small"); + if(options.dailyBuildBrowser) { + $span2.append(release.name + "<br>DAILY BUILD"); + $("#editionLabel").html(release.name + " DAILY BUILD"); + } else { $span2.append(release.name + "<br>" + release.latestVersion.version); + } var $a = $('<a>').attr("class", "btn btn-primary btn-lg").attr("role", "button").attr("style", "margin-bottom : 15px"); $a.append($img); parsedLanguages = parsedLanguages + language + ','; } parsedLanguages = parsedLanguages.slice(0, -1); + if(options.dailyBuildBrowser) { + options.edition = release.branchPath; + $("#editionLabel").html(release.name + " DAILY BUILD"); + } + else { options.edition = release.latestVersion.branchPath; + $("#editionLabel").html(release.name + " " + release.latestVersion.version); + } options.release = ''; options.languages = parsedLanguages; options.languageObject = release.languages; - $("#editionLabel").html(release.name + " " + release.latestVersion.version); let ui_language = release.defaultLanguageCode ? release.defaultLanguageCode : parsedLanguages.substr(0, 2); options.defaultLanguage = parsedLanguages.substr(0, 2); var $releaseSwitcher = $('#releaseSwitcher'); for (let i = 0; i < options.dailyBuildReleases.length; ++i) { var $li = $('<li>'); - var $a = $('<a>').attr("shortName", options.dailyBuildReleases[i].shortName).append(options.dailyBuildReleases[i].name + " " + options.dailyBuildReleases[i].latestVersion.version); + var $a = $('<a>').attr("shortName", options.dailyBuildReleases[i].shortName).append(options.dailyBuildReleases[i].name + " ").append('<span style="color: dodgerblue;">DAILY BUILD</span>'); $a.attr("href", "javascript:void(0);"); $a.on("click", function() { postal.unsubscribeFor(); parsedLanguages = parsedLanguages + language + ','; } parsedLanguages = parsedLanguages.slice(0, -1); - options.edition = options.dailyBuildReleases[i].latestVersion.branchPath; + options.edition = options.dailyBuildReleases[i].branchPath; options.release = ''; options.languages = parsedLanguages; options.languageObject = options.dailyBuildReleases[i].languages; - $("#editionLabel").html(options.dailyBuildReleases[i].name + " " + options.dailyBuildReleases[i].latestVersion.version); + $("#editionLabel").html(options.dailyBuildReleases[i].name + " DAILY BUILD"); let ui_language = options.dailyBuildReleases[i].defaultLanguageCode ? options.dailyBuildReleases[i].defaultLanguageCode : parsedLanguages.substr(0, 2); $releaseSwitcher.append($li); // set default selection for release - if (options.edition && options.dailyBuildReleases[i].latestVersion.branchPath === options.edition) { - $("#editionLabel").html(options.dailyBuildReleases[i].name + " " + options.dailyBuildReleases[i].latestVersion.version); + if (options.edition && options.dailyBuildReleases[i].branchPath === options.edition) { + $("#editionLabel").html(options.dailyBuildReleases[i].name + " DAILY BUILD"); } } }
14
diff --git a/dependencies/extension-api/build.gradle b/dependencies/extension-api/build.gradle @@ -14,4 +14,9 @@ apply plugin: 'com.android.library' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION + + defaultConfig { + minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) + targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) + } }
12
diff --git a/examples/running-tests-in-chrome-using-bitbucket-pipelines-ci/README.md b/examples/running-tests-in-chrome-using-bitbucket-pipelines-ci/README.md ``` 2. Create a new Bitbucket repository and copy the sample files from *examples/running-tests-in-chrome-using-bitbucket-pipelines-ci* to your repository. -3. Follow the steps described in the [Running Tests in Bitbucket Pipelines CI](http://devexpress.github.io/testcafe/documentation/recipes/running-tests-in-chrome-using-bitbucket-pipelines-ci.html) topic. +3. Follow the steps described in the [Running Tests in Bitbucket Pipelines CI](https://devexpress.github.io/testcafe/documentation/continuous-integration/bitbucket-pipelines.html) topic.
1
diff --git a/src/reducers/likelyTokens/index.js b/src/reducers/likelyTokens/index.js @@ -4,11 +4,18 @@ import reduceReducers from 'reduce-reducers' import { likelyTokens } from '../../actions/likelyTokens' const initialState = { + likelyContracts: [], tokens: [] } const tokens = handleActions({ - + [likelyTokens.get]: (state, { ready, error, payload }) => + (!ready || error) + ? state + : ({ + ...state, + likelyContracts: payload + }), }, initialState) export default reduceReducers(
9
diff --git a/src/parser/comment.js b/src/parser/comment.js @@ -11,14 +11,17 @@ module.exports = { * Comments with // or # or / * ... * / */ read_comment: function() { - const result = this.node("doc"); - return result(false, this.text()); + const result = this.node("commentblock"); + return result(this.text()); }, /** * Comments with / ** ... * / */ read_doc_comment: function() { - const result = this.node("doc"); - return result(true, this.text()); + const text = this.text(); + const result = this.node( + text.substring(0, 2) === "/*" ? "commentblock" : "commentline" + ); + return result(text); } };
4
diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/add-rounded-corners-with-border-radius.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/add-rounded-corners-with-border-radius.english.md @@ -13,7 +13,7 @@ Your cat photo currently has sharp corners. We can round out those corners with ## Instructions <section id='instructions'> You can specify a <code>border-radius</code> with pixels. Give your cat photo a <code>border-radius</code> of <code>10px</code>. -<strong>Note:</strong> this challenge allows for multiple possible solutions. For example, you may add <code>border-radius</code> to either the <code>.thick-green-border</code> class or the <code>.smaller-image</code> class. +<strong>Note:</strong> This challenge allows for multiple possible solutions. For example, you may add <code>border-radius</code> to either the <code>.thick-green-border</code> class or the <code>.smaller-image</code> class. </section> ## Tests
7
diff --git a/src/components/layout.js b/src/components/layout.js @@ -137,8 +137,9 @@ const Layout = props => { </p> <div> {contributors.map( - ({ login, avatar_url, html_url }) => ( + ({ login, avatar_url, html_url, id }) => ( <a + key={id} href={html_url} style={{ boxShadow: 'none' }} >
0
diff --git a/dev/testTracks.json b/dev/testTracks.json "format": "bed", "url": "https://data.broadinstitute.org/igvdata/annotations/hg19/dbSnp/snp137.hg19.bed.gz", "indexURL": "https://data.broadinstitute.org/igvdata/annotations/hg19/dbSnp/snp137.hg19.bed.gz.tbi", - "name": "dbSNP 137 - Tribble index", + "name": "dbSNP 137 - Tabix index", "visibilityWindow": 200000 }, { "type": "annotation", - "format": "gtf", + "format": "gtf - Tabix index", "url": "https://s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v24lift37.annotation.sorted.gtf.gz", "indexURL": "https://s3.amazonaws.com/igv.broadinstitute.org/annotations/hg19/genes/gencode.v24lift37.annotation.sorted.gtf.gz.tbi", "name": "Gencode v24 (gtf)",
1
diff --git a/articles/multifactor-authentication/guardian/admin-guide.md b/articles/multifactor-authentication/guardian/admin-guide.md --- description: How to enable and use Push Notifications and SMS for Guardian MFA. +toc: true --- # Guardian for Administrators @@ -14,7 +15,7 @@ For information for your users on Guardian, how to download the app, and common To enable Push Notifications MFA for sign in and sign up for your application by your users, go to the [Multifactor Auth](${manage_url}/#/guardian) section of the dashboard. Then toggle the **Push Notification** slider to enable it. -![](/media/articles/mfa/guardian-dashboard.png) +![Dashboard > Guardian](/media/articles/mfa/guardian-dashboard.png) For your users to utilize this type of MFA, they will need a supported mobile device. The device must have either the Guardian app installed, the Google Authenticator app installed, or an app that supports scanning Time-based One-time Password(TOTP) codes to use with Guardian. Here are the available options: @@ -26,7 +27,9 @@ For your users to utilize this type of MFA, they will need a supported mobile de | **Blackberry** | Must use a TOTP scanning app | Requires OS 4.5-7.0 | | **Other** | Must use a TOTP scanning app | Unsupported | -For more information on using the Google Authenticator app, see: [Google Authenticator](/multifactor-authentication/google-authenticator). +::: note +For more information on using the Google Authenticator app, refer to [Google Authenticator](/multifactor-authentication/google-authenticator). +::: New users signing up will be prompted to download the Guardian app from either the App Store or Google Play. Once they indicate that they downloaded the app, a code will appear. They will have five minutes to scan the code with the app before it expires. After the code has been successfully scanned, users will see a confirmation screen which includes a recovery code. They need to have this recovery code to login without their mobile device. If they lose both the recovery code and their mobile device, you will need to [reset their MFA](#reset-an-mfa-for-a-user). Then they will receive a push notification to their device and they will be logged in. @@ -46,7 +49,7 @@ After sign up, they receive a six digit code to their phone. They need to enter ::: panel Rate Limits -Each hour, any given user is allotted a maximum of ten failed SMS attempts. After that, Auth0 considers all OTP codes invalid, and any additional attempts to log in results in a "Too Many Attempts" error. +Each hour, any given user is allotted a maximum of ten failed SMS attempts. After that, Auth0 considers all OTP codes invalid, and any additional attempts to log in results in a `Too Many Attempts` error. More specifically, this means that if someone enters in the code incorrectly ten or more times within an hour, they will need to wait six minutes to gain another attempt. If the user attempts another code before sufficient time has elapsed, Auth0 considers all OTP codes invalid (even if they aren't expired). :::
0
diff --git a/js/views/Column.js b/js/views/Column.js @@ -569,6 +569,8 @@ class Column extends PureComponent { * generate URL with cohort A, cohort B, samples A (and name a sub cohort), samples B (and name a sub cohort), analysis */ showGeneSetComparison = () => { + + console.log('kittens'); const {column: {heatmap, codes}, cohort: {name} } = this.props; const heatmapData = heatmap[0]; if (!heatmapData || codes.length !== 2) { @@ -587,12 +589,15 @@ class Column extends PureComponent { const subCohortB = `subCohortSamples2=${name}:${codes[1]}:${subCohortData[1]}&selectedSubCohorts2=${codes[1]}&cohort2Color=${categoryMore[1]}`; // const filter = 'BPA Gene Expression'; - // const ROOT_URL = 'http://xenademo.berkeleybop.io/xena/#'; - const ROOT_URL = 'http://localhost:3000/xena/#'; + const ROOT_URL = 'http://xenademo.berkeleybop.io/xena/#'; + // const ROOT_URL = 'http://localhost:3000/xena/#'; // http://localhost:3000/#wizard=analysis&cohort=TCGA%20Ovarian%20Cancer%20(OV)&view=Mutation + const finalUrl = `${ROOT_URL}cohort=${name}&wizard=analysis&${subCohortA}&${subCohortB}`; + console.log('final url', finalUrl); + this.setState({ - geneSetUrl: `${ROOT_URL}cohort=${name}&wizard=analysis&${subCohortA}&${subCohortB}`, + geneSetUrl: `${finalUrl}`, showGeneSetWizard: true, onHide: this.hideGeneSetWizard, });
5
diff --git a/src/EleventyConfig.js b/src/EleventyConfig.js const EventEmitter = require("events"); const lodashget = require("lodash.get"); const Sortable = require("./Util/Sortable"); +const chalk = require("chalk"); const debug = require("debug")("Eleventy:EleventyConfig"); // API to expose configuration options in config file @@ -37,27 +38,71 @@ class EleventyConfig { ); } + if (this.liquidTags[name]) { + debug( + chalk.yellow( + "Warning, overwriting a Liquid tag with `addLiquidTag(%o)`" + ), + name + ); + } this.liquidTags[name] = tagFn; } addLiquidFilter(name, callback) { + if (this.liquidFilters[name]) { + debug( + chalk.yellow( + "Warning, overwriting a Liquid filter with `addLiquidFilter(%o)`" + ), + name + ); + } + this.liquidFilters[name] = callback; } addNunjucksAsyncFilter(name, callback) { + if (this.nunjucksAsyncFilters[name]) { + debug( + chalk.yellow( + "Warning, overwriting a Nunjucks filter with `addNunjucksAsyncFilter(%o)`" + ), + name + ); + } + this.nunjucksAsyncFilters[name] = callback; } // Support the nunjucks style syntax for asynchronous filter add addNunjucksFilter(name, callback, isAsync) { if (isAsync) { - this.nunjucksAsyncFilters[name] = callback; + this.addNunjucksAsyncFilter(name, callback); } else { + if (this.nunjucksFilters[name]) { + debug( + chalk.yellow( + "Warning, overwriting a Nunjucks filter with `addNunjucksFilter(%o)`" + ), + name + ); + } + this.nunjucksFilters[name] = callback; } } addHandlebarsHelper(name, callback) { + if (this.handlebarsHelpers[name]) { + debug( + chalk.yellow( + "Warning, overwriting a Handlebars helper with `addHandlebarsHelper(%o)`" + ), + name + ); + } + this.handlebarsHelpers[name] = callback; } @@ -109,6 +154,12 @@ class EleventyConfig { } addPlugin(pluginCallback) { + if (typeof pluginCallback !== "function") { + throw new Error( + "EleventyConfig.addPlugin expects the first argument to be a function." + ); + } + pluginCallback(this); } }
0
diff --git a/src/browser/provider/built-in/firefox/runtime-info.js b/src/browser/provider/built-in/firefox/runtime-info.js @@ -36,6 +36,7 @@ async function generatePrefs (profileDir, port) { 'user_pref("datareporting.policy.dataSubmissionEnabled", false);', 'user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);', 'user_pref("app.shield.optoutstudies.enabled", false);', + 'user_pref("extensions.shield-recipe-client.enabled", false);', 'user_pref("extensions.shield-recipe-client.first_run", false);', 'user_pref("extensions.shield-recipe-client.startupExperimentPrefs.browser.newtabpage.activity-stream.enabled", false);', 'user_pref("devtools.toolbox.host", "window");',
0
diff --git a/src/drawEdge.js b/src/drawEdge.js @@ -166,6 +166,10 @@ export function moveCurrentEdgeEndPoint(x2, y2, options={}) { export function abortDrawingEdge() { + if (!this._currentEdge) { + return this; + } + var edge = this._currentEdge.g; edge.remove();
8
diff --git a/packages/idyll-document/test/vars.js b/packages/idyll-document/test/vars.js @@ -118,7 +118,6 @@ describe('Component state initialization', () => { expect(updateProps).toEqual(expect.any(Function)); idyllContext.onUpdate((newState) => { - console.log('NEW STATE IN THE CONTEXT') expect(newState).toEqual({ x: 4, frequency: 1,
2
diff --git a/static/css/app.css b/static/css/app.css @@ -63,9 +63,9 @@ button:focus, .navbar-brand>img { display: block; - max-height: 52px; + max-height: 50px; margin-top: -15px; - height: 52px; + height: 50px; } .navbar-nav>li#user-initial>a {
3
diff --git a/README.md b/README.md @@ -13,7 +13,7 @@ Works with HTML, Markdown, Liquid, Nunjucks, Handlebars, Mustache, EJS, Haml, Pu - [@11ty on npm](https://www.npmjs.com/org/11ty) - [@11ty on GitHub](https://github.com/11ty) -[![Build Status](https://img.shields.io/travis/11ty/eleventy/master.svg?style=for-the-badge)](https://travis-ci.org/11ty/eleventy) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy.svg?style=for-the-badge)](https://github.com/11ty/eleventy/issues) +[![Build Status](https://img.shields.io/travis/11ty/eleventy/master.svg?style=for-the-badge)](https://travis-ci.org/11ty/eleventy) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy.svg?style=for-the-badge)](https://github.com/11ty/eleventy/issues) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier) ## Tests
0
diff --git a/app_web/src/logic/uimodel.js b/app_web/src/logic/uimodel.js @@ -26,8 +26,7 @@ class UIModel map( value => ({mainFile: value, additionalFiles: undefined})), ); this.flavour = app.flavourChanged$.pipe(pluck("event", "msg")); // TODO gltfModelPathProvider needs to be changed to accept flavours explicitely - const sceneSubject = new Subject(); - this.scene = app.sceneChanged$.pipe(pluck("event", "msg"), multicast(sceneSubject)); + this.scene = app.sceneChanged$.pipe(pluck("event", "msg")); this.camera = app.cameraChanged$.pipe(pluck("event", "msg")); this.environment = app.environmentChanged$.pipe(pluck("event", "msg")); this.environmentRotation = app.environmentRotationChanged$.pipe(pluck("event", "msg"));
2
diff --git a/package.json b/package.json }, "dependencies": { "chalk": "2.4.1", - "ejs": "2.6.1", "eslint-config-airbnb": "17.1.0", "generator-jhipster": "6.8.0", - "glob": "7.1.2", - "gulp-filter": "5.1.0", - "insight": "0.10.1", "jhipster-core": "6.0.4", - "js-yaml": "3.13.1", "lodash": "4.17.13", - "meow": "5.0.0", "mkdirp": "0.5.1", "pluralize": "7.0.0", "prettier": "1.13.5",
2
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - test-name: ['boostPayment', 'botCreation', 'chatPayment', 'cleanup', 'clearAllChats', 'clearAllContacts', 'contacts', 'images', 'latestTest', 'lsats', 'paidMeet', 'paidTribeImages', 'queryRoutes', 'self', 'sphinxPeople', 'streamPayment', 'tribe', 'tribe3Escrow', 'tribe3Messages', 'tribe3Private', 'tribe3Profile', 'tribeEdit', 'tribeImages'] + test-name: ['boostPayment', 'botCreation', 'chatPayment', 'cleanup', 'clearAllChats', 'clearAllContacts', 'contacts', 'images', 'latestTest', 'lsats', 'paidMeet', 'paidTribeImages', 'queryRoutes', 'self', 'sphinxPeople', 'streamPayment', 'tribe', 'tribe3Escrow', 'tribe3Messages', 'tribe3Private', 'tribe3Profile', 'tribeEdit', 'tribeImages', 'transportToken'] steps: - name: Enable docker.host.internal for Ubuntu run: |
0
diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.lua @@ -103,7 +103,10 @@ end --- Returns the public key by keyID -- @param keyId the key ID to request -- @return the public key (the content of requested resource) or nil -function Util:get_public_key(keyId) +function Util:get_public_key(keyId,asapKeyServer) + if asapKeyServer == "" then + asapKeyServer = self.asapKeyServer) + end local content = cache:get(keyId); if content == nil then -- If the key is not found in the cache. @@ -117,7 +120,7 @@ function Util:get_public_key(keyId) end done(); end - local keyurl = path.join(self.asapKeyServer, hex.to(sha256(keyId))..'.pem'); + local keyurl = path.join(asapKeyServer, hex.to(sha256(keyId))..'.pem'); module:log("debug", "Fetching public key from: "..keyurl); -- We hash the key ID to work around some legacy behavior and make @@ -239,6 +242,12 @@ end -- @param session the current session -- @return false and error function Util:process_and_verify_token(session) + return self:process_and_verify_token_with_keyserver(session,"") +end +function Util:process_and_verify_token_with_keyserver(session,asapKeyServer) + if asapKeyServer == "" then + asapKeyServer = self.asapKeyServer + end if session.auth_token == nil then if self.allowEmptyToken then @@ -249,7 +258,7 @@ function Util:process_and_verify_token(session) end local pubKey; - if self.asapKeyServer and session.auth_token ~= nil then + if asapKeyServer and session.auth_token ~= nil then local dotFirst = session.auth_token:find("%."); if not dotFirst then return nil, "Invalid token" end local header = json.decode(basexx.from_url64(session.auth_token:sub(1,dotFirst-1))); @@ -257,7 +266,7 @@ function Util:process_and_verify_token(session) if kid == nil then return false, "not-allowed", "'kid' claim is missing"; end - pubKey = self:get_public_key(kid); + pubKey = self:get_public_key(kid,asapKeyServer); if pubKey == nil then return false, "not-allowed", "could not obtain public key"; end @@ -265,7 +274,7 @@ function Util:process_and_verify_token(session) -- now verify the whole token local claims, msg; - if self.asapKeyServer then + if asapKeyServer then claims, msg = self:verify_token(session.auth_token, pubKey); else claims, msg = self:verify_token(session.auth_token, self.appSecret);
11
diff --git a/includes/Core/Authentication/Google_Proxy.php b/includes/Core/Authentication/Google_Proxy.php @@ -124,6 +124,10 @@ class Google_Proxy { return $response; } + if ( wp_remote_retrieve_response_code( $response ) !== 200 ) { + return new WP_Error( 'non_200_response_code' ); + } + $raw_body = wp_remote_retrieve_body( $response ); $response_data = json_decode( $raw_body, true ); @@ -210,10 +214,6 @@ class Google_Proxy { ) ); - if ( wp_remote_retrieve_response_code( $response ) !== 200 ) { - return new WP_Error( 'non_200_response_code' ); - } - if ( is_wp_error( $response ) ) { throw new Exception( $response->get_error_code() ); }
5
diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js @@ -946,7 +946,7 @@ axes.calcTicks = function calcTicks(ax, opts) { var lastVisibleHead; var hideLabel = function(tick) { - tick.text = ' '; // don't use an empty string here which can confuse automargin (issue 5132) + tick.text = ''; ax._prevDateHead = lastVisibleHead; }; @@ -3008,7 +3008,7 @@ axes.drawLabels = function(gd, ax, opts) { var axLetter = axId.charAt(0); var cls = opts.cls || axId + 'tick'; - var vals = opts.vals; + var vals = opts.vals.filter(function(e) { return e.text; }); var labelFns = opts.labelFns; var tickAngle = opts.secondary ? 0 : ax.tickangle;
2
diff --git a/policykit/templates/policyadmin/dashboard/editor.html b/policykit/templates/policyadmin/dashboard/editor.html window.open(`https://policykit.readthedocs.io/en/latest/index.html`, '_blank'); } + function sanitize_text(s) { + // backticks break everything, so remove them before saving any code or text + return s.replaceAll("`","") + } + + function get_policy_data() { + // Build JS object with policy data, to download or submit + const policy_object = {} + policy_object.action_types = $("#actionpicker").val(); + policy_object.name = sanitize_text(document.getElementById("name").value); + policy_object.description = sanitize_text(document.getElementById("description").value); + policy_object.is_bundled = false + const code_fields = ["filter", "initialize", "check", "notify", "pass", "fail"] + const code_field_args = {} + code_fields.forEach(fieldname => { + const value = document.getElementById(fieldname).nextSibling.CodeMirror.getValue() + const key = fieldname == "pass" ? "success" : fieldname + policy_object[key] = sanitize_text(value) + }) + return policy_object + } + function propose() { - const name = document.getElementById("name").value; - const description = document.getElementById("description").value; - const action_types = $("#actionpicker").val(); - const filter = document.getElementById("filter").nextSibling.CodeMirror.getValue(); - const initialize = document.getElementById("initialize").nextSibling.CodeMirror.getValue(); - const check = document.getElementById("check").nextSibling.CodeMirror.getValue(); - const notify = document.getElementById("notify").nextSibling.CodeMirror.getValue(); - const success = document.getElementById("pass").nextSibling.CodeMirror.getValue(); - const fail = document.getElementById("fail").nextSibling.CodeMirror.getValue(); + const policy_data = get_policy_data() fetch('../../../main/policyengine/policy_action_save', { method: 'POST', 'type': `{{type}}`, 'operation': `{{operation}}`, 'policy': `{{policy}}`, - 'name': name, - 'description': description, - 'action_types': action_types, - 'is_bundled': false, - 'filter': filter, - 'initialize': initialize, - 'check': check, - 'notify': notify, - 'success': success, - 'fail': fail + ...policy_data }) }).then(response => { if (!response.ok) { } function download() { - const name = document.getElementById("name").value; - - let policy_data = { - 'name': name, - 'description': document.getElementById("description").value, - 'is_bundled': false, - 'action_types': $("#actionpicker").val(), - 'filter': document.getElementById("filter").nextSibling.CodeMirror.getValue(), - 'initialize': document.getElementById("initialize").nextSibling.CodeMirror.getValue(), - 'check': document.getElementById("check").nextSibling.CodeMirror.getValue(), - 'notify': document.getElementById("notify").nextSibling.CodeMirror.getValue(), - 'success': document.getElementById("pass").nextSibling.CodeMirror.getValue(), - 'fail': document.getElementById("fail").nextSibling.CodeMirror.getValue() - }; + const policy_data = get_policy_data() + const name = policy_data.name + let policy_data_string = 'data:text/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(policy_data));
2
diff --git a/Gruntfile.js b/Gruntfile.js @@ -301,6 +301,7 @@ module.exports = function(grunt) { nwjs: { windows : { options: { + downloadUrl: 'https://dl.nwjs.io/', version : "0.19.4", build_dir: './dest/desktop/', // destination folder of releases. win: true, @@ -311,6 +312,7 @@ module.exports = function(grunt) { }, macos : { options: { + downloadUrl: 'https://dl.nwjs.io/', osx64: true, version : "0.19.4", build_dir: './dest/desktop/'
12
diff --git a/platform/base/core/src/main/java/com/peregrine/sitemap/PageRecognizerBase.java b/platform/base/core/src/main/java/com/peregrine/sitemap/PageRecognizerBase.java @@ -51,14 +51,14 @@ public abstract class PageRecognizerBase implements PageRecognizer { } public final boolean isPage(final Page candidate) { - return isAPageBasically(candidate) && !isExcludedByProperty(excludeFromSiteMapPropertyName, candidate); + return hasAllPageMarkers(candidate) && !isExcludedByProperty(excludeFromSiteMapPropertyName, candidate); } public final boolean isBucket(final Page candidate) { - return isAPageBasically(candidate) && !isExcludedByProperty(excludeTreeFromSiteMapPropertyName, candidate); + return hasAllPageMarkers(candidate) && !isExcludedByProperty(excludeTreeFromSiteMapPropertyName, candidate); } - private boolean isAPageBasically(final Page candidate) { + private boolean hasAllPageMarkers(final Page candidate) { if (!isUnfrozenPrimaryType(candidate, pagePrimaryType)) { return false; }
4
diff --git a/contracts/Havven.sol b/contracts/Havven.sol @@ -478,5 +478,5 @@ contract Havven is ExternStateProxyToken, SelfDestructible { event FeePeriodDurationUpdated(uint duration); - event FeesWithdrawn(address account, address indexed accountIndex, uint fees); + event FeesWithdrawn(address account, address indexed accountIndex, uint value); }
10
diff --git a/src/pages/RequestCallPage.js b/src/pages/RequestCallPage.js @@ -100,20 +100,21 @@ class RequestCallPage extends Component { return; } - // If there's a lastAccessedWorkspacePolicyID in Onyx then use that as the policy for the call, otherwise use the personal policy - const policyForCall = this.props.lastAccessedWorkspacePolicyID - ? this.props.lastAccessedWorkspacePolicyID : _.find(this.props.policies, policy => policy && policy.type === CONST.POLICY.TYPE.PERSONAL); - - if (!policyForCall) { - Growl.error(this.props.translate('requestCallPage.growlMessageNoPersonalPolicy'), 3000); + const policyForCall = _.find(this.props.policies, (policy) => { + if (!policy) { return; } - const policyIDForCall = _.isObject(policyForCall) ? policyForCall.id : policyForCall; + if (this.props.lastAccessedWorkspacePolicyID) { + return policy.id === this.props.lastAccessedWorkspacePolicyID; + } + + return policy.type === CONST.POLICY.TYPE.PERSONAL; + }); Inbox.requestInboxCall({ taskID: this.props.route.params.taskID, - policyID: policyIDForCall, + policyID: policyForCall.id, firstName: this.state.firstName, lastName: this.state.lastName, phoneNumber: LoginUtil.getPhoneNumberWithoutSpecialChars(this.state.phoneNumber),
7
diff --git a/modules/@apostrophecms/oembed-field/index.js b/modules/@apostrophecms/oembed-field/index.js @@ -26,13 +26,13 @@ module.exports = { addFieldType() { self.apos.schema.addFieldType({ name: self.name, - convert: async function (req, field, data, object) { + async convert(req, field, data, destination) { if (typeof data[field.name] === 'string') { - object[field.name] = { + destination[field.name] = { url: self.apos.launder.url(data[field.name], null, true) }; } else if (data[field.name]) { - object[field.name] = { + destination[field.name] = { url: self.apos.launder.url(data[field.name].url, null, true), title: self.apos.launder.string(data[field.name].title), thumbnail: self.apos.launder.url(data[field.name].thumbnail, null, true)
10
diff --git a/server/game/drawcard.js b/server/game/drawcard.js @@ -455,7 +455,7 @@ class DrawCard extends BaseCard { } returnHomeFromConflict() { - let side = this.game.currentConflict.isAttacker(this) ? 'attacker' : 'defender'; + let side = this.game.currentConflict.isAttacking(this) ? 'attacker' : 'defender'; if(!this.conflictOptions.doesNotBowAs[side] && !this.bowed) { this.controller.bowCard(this); }
1
diff --git a/packages/2019-housing/src/components/HomeLoanApprovals/HomeLoanApprovalsVisualization.js b/packages/2019-housing/src/components/HomeLoanApprovals/HomeLoanApprovalsVisualization.js @@ -56,8 +56,8 @@ const HomeLoanApprovalsVisualization = ({ isLoading, data }) => { [166, 97, 26], [223, 194, 125], [255, 255, 255], - [128, 205, 193], - [1, 133, 113] + [143, 240, 232], + [25, 183, 170] ]); return (
4
diff --git a/token-metadata/0x6368e1E18c4C419DDFC608A0BEd1ccb87b9250fc/metadata.json b/token-metadata/0x6368e1E18c4C419DDFC608A0BEd1ccb87b9250fc/metadata.json "symbol": "XTP", "address": "0x6368e1E18c4C419DDFC608A0BEd1ccb87b9250fc", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/app/src/components/JoinDialog.js b/app/src/components/JoinDialog.js @@ -164,7 +164,7 @@ const JoinDialog = ({ const [ authType, setAuthType ] = useState('guest'); const [ roomId, setRoomId ] = useState( - encodeURIComponent(location.pathname.slice(1)) || + decodeURIComponent(location.pathname.slice(1)) || randomString({ length: 8 }).toLowerCase() ); @@ -281,7 +281,7 @@ const JoinDialog = ({ id : 'label.roomName', defaultMessage : 'Room name' })} - value={decodeURIComponent(roomId)} + value={roomId} variant='outlined' margin='normal' InputProps={{
1
diff --git a/packages/app/src/server/service/g2g-transfer.ts b/packages/app/src/server/service/g2g-transfer.ts @@ -151,6 +151,8 @@ export class G2GTransferPusherService implements Pusher { ...form.getHeaders(), // This generates a unique boundary for multi part form data [X_GROWI_TRANSFER_KEY_HEADER_NAME]: key, }, + maxContentLength: Infinity, + maxBodyLength: Infinity, }); } catch (errs) { @@ -202,6 +204,8 @@ export class G2GTransferPusherService implements Pusher { ...form.getHeaders(), // This generates a unique boundary for multi part form data [X_GROWI_TRANSFER_KEY_HEADER_NAME]: key, }, + maxContentLength: Infinity, + maxBodyLength: Infinity, }); } catch (errs) {
12
diff --git a/userscript.user.js b/userscript.user.js @@ -31985,7 +31985,20 @@ var $$IMU_EXPORT$$; // https://s.hdnux.com/photos/01/13/31/60/19766273/3/rawImage.jpg // https://s.hdnux.com/photos/01/14/05/62/19946629/3/core_centerpiece_tab_small.jpg // https://s.hdnux.com/photos/01/14/05/62/19946629/3/rawImage.jpg - return src.replace(/(\/photos\/+(?:[0-9]{2}\/+){4}[0-9]+\/+[0-9]+\/+)(?:[0-9]+x[0-9]+|core_[^/.]+)(\.[^/.]*)$/, "$1rawImage$2"); + // thanks to llacb47 on github: https://github.com/qsniyg/maxurl/issues/477 + // https://s.hdnux.com/photos/01/13/61/33/19863286/5/landscape_43.jpg + // https://s.hdnux.com/photos/01/13/61/33/19863286/5/rawImage.jpg + // https://s.hdnux.com/photos/01/14/14/30/19973652/3/ratio3x2_1200.jpg + // https://s.hdnux.com/photos/01/14/14/30/19973652/3/rawImage.jpg + // https://s.hdnux.com/photos/01/14/46/25/20079940/3/ratio3x2_875.jpg + // https://s.hdnux.com/photos/01/14/46/25/20079940/3/rawImage.jpg + // https://s.hdnux.com/photos/01/14/50/15/20087648/3/ratio3x2_225.jpg + // https://s.hdnux.com/photos/01/14/50/15/20087648/3/rawImage.jpg + // https://s.hdnux.com/photos/01/06/44/44/18499903/5/ratio1x1_200.jpg + // https://s.hdnux.com/photos/01/06/44/44/18499903/5/rawImage.jpg + // https://s.hdnux.com/photos/51/22/04/10821926/4/ratio1x1_85.jpg + // https://s.hdnux.com/photos/51/22/04/10821926/4/rawImage.jpg + return src.replace(/(\/photos\/+(?:[0-9]{2}\/+){3,4}[0-9]+\/+[0-9]+\/+)[^/.?#]+(\.[^/.]*)(?:[?#].*)?$/, "$1rawImage$2"); } if (domain_nosub === "busan.com" && domain.match(/^news[0-9]*\./)) {
7
diff --git a/packages/gallery/src/components/gallery/proGallery/galleryView.js b/packages/gallery/src/components/gallery/proGallery/galleryView.js @@ -143,6 +143,8 @@ class GalleryView extends React.Component { } else { galleryHeight = galleryStructure.height + 'px'; } + const galleryWidth = this.props.isPrerenderMode ? 'auto' : this.props.container.galleryWidth - options.imageMargin; + const galleryStructureItems = getVisibleItems( galleryStructure.galleryItems, container @@ -182,7 +184,7 @@ class GalleryView extends React.Component { style={{ margin: options.layoutParams.gallerySpacing + 'px', height: galleryHeight, - width: this.props.container.galleryWidth - options.imageMargin, + width: galleryWidth, overflow: 'visible', position: 'relative', }}
12
diff --git a/babel.config.json b/babel.config.json { - "presets": ["@babel/preset-env"], + "presets": [ + ["@babel/preset-env", { "targets": "last 2 chrome versions, node 12" }] + ], "plugins": [ "@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"
12
diff --git a/package-lock.json b/package-lock.json { "name": "unpoly", - "version": "2.6.0", + "version": "3.0.0-rc1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "unpoly", - "version": "2.6.0", + "version": "3.0.0-rc1", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.29.0",
12
diff --git a/package.json b/package.json "lint": "eslint app.js \"lib/**/*.js\" \"test/**/*.js\"", "preinstall": "make pre-install", "pretest": "NODE_ENV=test node test setup", - "test": "mocha -t 5000 --exit --recursive test/acceptance test/integration test/unit", + "test": "NODE_ENV=test mocha -t 5000 --exit --recursive test/acceptance test/integration test/unit", "posttest": "NODE_ENV=test node test teardown", "update-internal-deps": "rm -rf node_modules && npm install", "docker-test": "./docker-test.sh",
12
diff --git a/lime/_backend/native/NativeAudioSource.hx b/lime/_backend/native/NativeAudioSource.hx @@ -57,7 +57,10 @@ class NativeAudioSource { if (handle != null) { + stop (); + AL.sourcei (handle, AL.BUFFER, null); AL.deleteSource (handle); + handle = null; } @@ -117,17 +120,27 @@ class NativeAudioSource { if (parent.buffer.__srcBuffer == null) { parent.buffer.__srcBuffer = AL.createBuffer (); + + if (parent.buffer.__srcBuffer != null) { + AL.bufferData (parent.buffer.__srcBuffer, format, parent.buffer.data, parent.buffer.data.length, parent.buffer.sampleRate); } + } + dataLength = parent.buffer.data.length; handle = AL.createSource (); + + if (handle != null) { + AL.sourcei (handle, AL.BUFFER, parent.buffer.__srcBuffer); } + } + samples = Std.int ((dataLength * 8) / (parent.buffer.channels * parent.buffer.bitsPerSample)); } @@ -196,6 +209,8 @@ class NativeAudioSource { public function pause ():Void { playing = false; + + if (handle == null) return; AL.sourcePause (handle); if (streamTimer != null) { @@ -324,9 +339,14 @@ class NativeAudioSource { public function stop ():Void { - playing = false; + if (playing && handle != null && AL.getSourcei (handle, AL.SOURCE_STATE) == AL.PLAYING) { + AL.sourceStop (handle); + } + + playing = false; + if (streamTimer != null) { streamTimer.stop (); @@ -358,10 +378,9 @@ class NativeAudioSource { private function timer_onRun ():Void { - playing = false; - if (loops > 0) { + playing = false; loops--; setCurrentTime (0); play (); @@ -369,8 +388,7 @@ class NativeAudioSource { } else { - AL.sourceStop (handle); - timer.stop (); + stop (); } @@ -393,7 +411,9 @@ class NativeAudioSource { return getLength (); - } else if (stream) { + } else if (handle != null) { + + if (stream) { var time = (Std.int (parent.buffer.__srcVorbisFile.timeTell () * 1000) + Std.int (AL.getSourcef (handle, AL.SEC_OFFSET) * 1000)) - parent.offset; if (time < 0) return 0; @@ -415,9 +435,15 @@ class NativeAudioSource { } + return 0; + + } + public function setCurrentTime (value:Int):Int { + if (handle != null) { + if (stream) { AL.sourceStop (handle); @@ -447,6 +473,8 @@ class NativeAudioSource { } + } + if (playing) { if (timer != null) { @@ -478,14 +506,27 @@ class NativeAudioSource { public function getGain ():Float { + if (handle != null) { + return AL.getSourcef (handle, AL.GAIN); + } else { + + return 1; + + } + } public function setGain (value:Float):Float { + if (handle != null) { + AL.sourcef (handle, AL.GAIN, value); + + } + return value; } @@ -546,6 +587,8 @@ class NativeAudioSource { public function getPosition ():Vector4 { + if (handle != null) { + #if !emscripten var value = AL.getSource3f (handle, AL.POSITION); position.x = value[0]; @@ -553,6 +596,8 @@ class NativeAudioSource { position.z = value[2]; #end + } + return position; } @@ -565,9 +610,13 @@ class NativeAudioSource { position.z = value.z; position.w = value.w; + if (handle != null) { + AL.distanceModel (AL.NONE); AL.source3f (handle, AL.POSITION, position.x, position.y, position.z); + } + return position; }
7
diff --git a/token-metadata/0xc3771d47E2Ab5A519E2917E61e23078d0C05Ed7f/metadata.json b/token-metadata/0xc3771d47E2Ab5A519E2917E61e23078d0C05Ed7f/metadata.json "symbol": "GTH", "address": "0xc3771d47E2Ab5A519E2917E61e23078d0C05Ed7f", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/renderer/pages/settings.js b/renderer/pages/settings.js @@ -6,8 +6,6 @@ import styled from 'styled-components' import Layout from '../components/Layout' import Sidebar from '../components/Sidebar' -import BackButton from '../components/BackButton' - import { Flex, Box, @@ -114,10 +112,7 @@ class Settings extends React.Component { <Box w={1}> <TopBar> <Flex align='center'> - <Box> - <BackButton /> - </Box> - <Box> + <Box pl={3}> <Heading h={3}>Settings</Heading> </Box> </Flex>
2
diff --git a/articles/policies/rate-limits.md b/articles/policies/rate-limits.md @@ -198,10 +198,6 @@ The following Auth0 Management API endpoints return rate limit-related headers. The following Auth0 Authentication API endpoints return rate limit-related headers. -::: note -For all endpoints, Enterprise subscribers are limited to 100 requests per second. -::: - <table class="table"> <thead> <tr>
2
diff --git a/src/Eleventy.js b/src/Eleventy.js @@ -181,6 +181,11 @@ Eleventy.prototype.write = async function() { try { let ret = await this.writer.write(); this.finish(); + + debug(` +Getting frustrated? Have a suggestion/feature request/feedback? +I want to hear it! Open an issue: https://github.com/11ty/eleventy/issues/new`); + return ret; } catch (e) { console.log("\n" + chalk.red("Problem writing eleventy templates: "));
0
diff --git a/packages/titus-cli/actions/init.js b/packages/titus-cli/actions/init.js @@ -31,14 +31,14 @@ module.exports = async (input, { hapi, react }) => { spinner.succeed(`Api setup in ${chalk.cyan.bold(`${projectDir}-api`)}`) } - spinner.render().start('Clearing temporary cache') + spinner.render().start('Clearing temporary files') await fs.remove(`${tmpDir}`) - spinner.succeed('Cache cleared') + spinner.succeed('Temporary files cleared') console.log(dedent` \nMove to your newly created project by running: - ${react && chalk.cyan.bold(`cd ${projectDir}-app`)}${react && hapi && ` or `}${hapi && chalk.cyan.bold(`cd ${projectDir}-api`)} + ${react ? chalk.cyan.bold(`cd ${projectDir}-app`) : ''}${react && hapi ? ` or ` : ''}${hapi ? chalk.cyan.bold(`cd ${projectDir}-api`) : ''} Install the project dependencies:
7
diff --git a/src/components/general/map-gen/MapGen.jsx b/src/components/general/map-gen/MapGen.jsx @@ -8,6 +8,7 @@ import {getRenderer} from '../../../../renderer.js'; import game from '../../../../game.js'; import {world} from '../../../../world.js'; import cameraManager from '../../../../camera-manager.js'; +import {Text} from 'troika-three-text'; import alea from '../../../../alea.js'; import styles from './map-gen.module.css'; @@ -927,6 +928,28 @@ const _makeChunkMesh = (x, y) => { mesh.updateMatrixWorld(); mesh.x = x; mesh.y = y; + + { + const rng = makeRng(x, y); + + const textMesh = new Text(); + textMesh.text = names[Math.floor(rng() * names.length)]; + textMesh.font = './assets/fonts/GeosansLight.ttf'; + textMesh.fontSize = 1; + textMesh.color = 0xFFFFFF; + textMesh.anchorX = 'left'; + textMesh.anchorY = 'bottom'; + // textMesh.frustumCulled = false; + textMesh.sync(); + /* await new Promise(accept => { + textMesh.sync(accept); + }); */ + textMesh.position.set(-numBlocks / 2, 1, -numBlocks / 2); + textMesh.quaternion.setFromAxisAngle(new THREE.Vector3(1, 0, 0), -Math.PI / 2); + mesh.add(textMesh); + textMesh.updateWorldMatrix(); + } + return mesh; };
0
diff --git a/docs/transports.md b/docs/transports.md @@ -31,7 +31,7 @@ There are several [core transports](#winston-core) included in `winston`, which * [Logsene](#logsene-transport) (including Log-Alerts and Anomaly Detection) * [Logz.io](#logzio-transport) * [Pusher](#pusher-transport) - * [Google Stackdriver Logging)(#google-stackdriver-transport) + * [Google Stackdriver Logging](#google-stackdriver-transport) ## Winston Core
1
diff --git a/src/lib/analytics/analytics.js b/src/lib/analytics/analytics.js @@ -54,7 +54,7 @@ export const FV_TRYAGAINLATER = 'FV_TRYAGAINLATER' export const FV_CANTACCESSCAMERA = 'FV_CANTACCESSCAMERA' const log = logger.child({ from: 'analytics' }) -const { sentryDSN, amplitudeKey, version, env, network } = Config +const { sentryDSN, amplitudeKey, version, env, network, phase } = Config /** @private */ // eslint-disable-next-line require-await @@ -101,10 +101,9 @@ export const initAnalytics = async () => { if (isAmplitudeEnabled) { const identity = new Amplitude.Identify().setOnce('first_open_date', new Date().toString()) - + identity.append('phase', String(phase)) Amplitude.setVersionName(version) Amplitude.identify(identity) - if (isFSEnabled) { const sessionUrl = FS.getCurrentSessionURL()
0
diff --git a/src/components/filter/index.js b/src/components/filter/index.js @@ -171,7 +171,7 @@ function SelectFilter({ defaultValue, options, onChange, isMulti = false, label, </ConditionalWrapper>; }; -function InputFilter({ defaultValue, type, placeholder, onChange, label }) { +function InputFilter({ defaultValue, type = 'text', placeholder, onChange, label }) { return <label className={'single-filter-wrapper'} >
12
diff --git a/articles/rules/context.md b/articles/rules/context.md @@ -33,9 +33,9 @@ The following properties are available for the `context` object: * `sso`: this object will contain information about the SSO transaction (if available) - `with_auth0`: when a user signs in with SSO to an application where the `Use Auth0 instead of the IdP to do Single Sign On` setting is enabled. - `with_dbconn`: an SSO login for a user that logged in through a database connection. - - `current_clients`: ? -* `access_token`: ? -* `id_token`: ? + - `current_clients`: client IDs using SSO. +* `access_token`: used to add custom namespaced claims to the `access_token`. +* `id_token`: used to add custom namespaced claims to the `id_token`. * `sessionID`: unique id for the authentication session. * `request`: an object containing useful information of the request. It has the following properties: - `userAgent`: the user-agent of the client that is trying to log in. @@ -56,5 +56,50 @@ The following properties are available for the `context` object: ## Sample Object ```js - +{ + clientID: 'q2hn...pXmTUA', + clientName: 'Default App', + clientMetadata: {}, + connection: 'Username-Password-Authentication', + connectionStrategy: 'auth0', + samlConfiguration: {}, + jwtConfiguration: {}, + protocol: 'oidc-basic-profile', + stats: { loginsCount: 111 }, + sso: { with_auth0: false, with_dbconn: false, current_clients: [] }, + accessToken: {}, + idToken: {}, + sessionID: 'jYA5wG...BNT5Bak', + request: + { + userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36', + ip: '188.6.125.49', + hostname: 'mydomain.auth0.com', + query: + { + scope: 'openid', + response_type: 'code', + connection: 'Username-Password-Authentication', + sso: 'true', + protocol: 'oauth2', + audience: 'my-api', + state: 'nB7rfBCL41nppFxqLQ-3cO75XO1QRFyD', + client_id: 'q2hn...pXmTUA', + redirect_uri: 'http://localhost/callback', + device: 'Browser' + }, + body: {}, + geoip: + { + country_code: 'GR', + country_code3: 'GRC', + country_name: 'Greece', + city_name: 'Athens', + latitude: 136.9733, + longitude: 125.7233, + time_zone: 'Europe/Athens', + continent_code: 'EU' + } + } +} ```
0
diff --git a/website/src/docs/uppy.md b/website/src/docs/uppy.md @@ -261,6 +261,8 @@ uppy.addFile({ If `uppy.opts.autoProceed === true`, Uppy will begin uploading automatically when files are added. +> Sometimes you might need to add a remote file to Uppy. This can be achieved by [fetching the file, then creating a Blob object, or using the Url plugin with Companion](https://github.com/transloadit/uppy/issues/1006#issuecomment-413495493). + ### `uppy.removeFile(fileID)` Remove a file from Uppy.
0
diff --git a/tools/webpack.config.js b/tools/webpack.config.js @@ -80,9 +80,9 @@ const serverConfig = merge.smart(_.cloneDeep(baseConfig), { test: /\.scss$/, loaders: __DEV__ ? [ 'isomorphic-style-loader', - 'css', + 'css?sourceMap', 'postcss', - 'sass'] : ['ignore-loader'] + 'sass?sourceMap'] : ['ignore-loader'] } ] }, @@ -125,7 +125,7 @@ const clientConfig = merge.smart(_.cloneDeep(baseConfig), { loaders: [ { test: /\.scss$/, - loader: __DEV__ ? 'style!css?importLoaders=1!postcss?sourceMap=inline!sass' : ExtractTextPlugin.extract("style", "css!postcss!sass") + loader: __DEV__ ? 'style!css?sourceMap&importLoaders=1!postcss?sourceMap=inline!sass?sourceMap' : ExtractTextPlugin.extract("style", "css!postcss!sass") } ] },
7
diff --git a/accessibility-checker-engine/help/IBMA_Focus_MultiTab.mdx b/accessibility-checker-engine/help/IBMA_Focus_MultiTab.mdx @@ -10,35 +10,29 @@ import { Tag } from "carbon-components-react"; ## Who does this affect? -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +* Blind people using screen readers +* People who physically cannot use a pointing device +* People with tremor or other movement disorders ## Why is this important? -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +Unlike native HTML form elements, browsers do not provide keyboard support for graphical user interface (GUI) components that are made accessible with ARIA - authors must incorporate the code for keyboard access. </Column> <Column colLg={11} colMd={5} colSm={4} className="toolMain"> <div id="locLevel" className="level-violation">Violation</div> -## Image does not have a short text alternative -Images that convey meaning must have a short text alternative. +## The component does not have a tabbable element +The component must have at least one tabbable element -[IBM 1.1.1 Non-text content]() | [WCAG technique H37]() +[IBM 2.1.1 Keyboard](https://www.ibm.com/able/guidelines/ci162/keyboard.html) | [The Tab Sequence](https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_general_between) <div id="locSnippet"></div> ## What to do -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +* Use the HTML tabindex attribute to include the component in the tab sequence. (Refer to the [WAI-ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard) for more information on how to manage keyboard focus.) </Column>
3
diff --git a/core/task-executor/lib/reconcile/normalize.js b/core/task-executor/lib/reconcile/normalize.js @@ -89,25 +89,20 @@ const normalizeHotRequests = (algorithmRequests, algorithmTemplateStore) => { */ const normalizeHotWorkers = (normWorkers, algorithmTemplates) => { const hotWorkers = []; - if (normWorkers.length === 0) { + if (!Array.isArray(normWorkers) || normWorkers.length === 0) { return hotWorkers; } - const algorithmStore = Object.entries(algorithmTemplates).filter(([, v]) => v.minHotWorkers > 0); const groupNorWorkers = groupBy(normWorkers, 'algorithmName'); + Object.entries(groupNorWorkers).forEach(([k, v]) => { + const algorithm = algorithmTemplates[k]; + const requestHot = algorithm && algorithm.minHotWorkers; + const currentHot = v.filter(w => w.hotWorker).length; + const currentCold = v.filter(w => !w.hotWorker); - algorithmStore.forEach(([k, v]) => { - const minHot = v.minHotWorkers; - const groupWorkers = groupNorWorkers[k]; - - if (groupWorkers) { - const currentHot = groupWorkers.filter(w => w.hotWorker).length; - - if (currentHot < minHot) { - const diff = minHot - currentHot; - const array = groupWorkers.slice(0, diff); + if (currentHot < requestHot && currentCold.length > 0) { + const array = currentCold.slice(0, requestHot); hotWorkers.push(...array); } - } }); return hotWorkers; };
7
diff --git a/src/collection/algorithms/karger-stein.js b/src/collection/algorithms/karger-stein.js @@ -182,7 +182,12 @@ const elesfn = ({ let ret = { cut, - components + components, + + // n.b. partitions are included to be compatible with the old api spec + // (could be removed in a future major version) + partition1, + partition2 }; return ret;
11
diff --git a/templates/examples/extensions/js_lambda_hooks/KendraFallback/KendraFallback.js b/templates/examples/extensions/js_lambda_hooks/KendraFallback/KendraFallback.js @@ -134,6 +134,7 @@ async function routeKendraRequest(event, context) { docInfo.text = element.DocumentExcerpt.Text.replace(/\r?\n|\r/g, " "); docInfo.uri = element.DocumentURI; helpfulDocumentsUris.add(docInfo); + foundAnswerCount++; foundDocumentCount++; } });
1
diff --git a/includes/Core/Authentication/Clients/Google_Site_Kit_Client.php b/includes/Core/Authentication/Clients/Google_Site_Kit_Client.php @@ -68,8 +68,6 @@ class Google_Site_Kit_Client extends Google_Client { /** * Sets whether or not to return raw requests and returns a callback to reset to the previous value. * - * This works similar to e.g. a higher-order component in JavaScript. - * * @since n.e.x.t * * @param bool $defer Whether or not to return raw requests.
2
diff --git a/example.js b/example.js @@ -249,20 +249,24 @@ class MapExample extends Component { })}> Get bounds </Text> - <Text onPress={() => { - Mapbox.addOfflinePack({ + <Text onPress={async () => { + try { + await Mapbox.initializeOfflinePacks(); + + await Mapbox.addOfflinePack({ name: 'test', type: 'bbox', - bounds: [0, 0, 0, 0], - minZoomLevel: 0, - maxZoomLevel: 0, + bounds: [42.00273287349021, 12.635713745117073, 41.74068098333959, 12.153523284912126], + minZoomLevel: 4, + maxZoomLevel: 15, metadata: { anyValue: 'you wish' }, styleURL: Mapbox.mapStyles.dark - }).then(() => { - console.log('Offline pack added'); - }).catch(err => { - console.log(err); }); + + console.log('Offline pack added'); + } catch (e) { + console.log(e); + } }}> Create offline pack </Text>
3
diff --git a/system.json b/system.json "name": "gurps", "title": "GURPS 4th Edition Game Aid (Unofficial)", "description": "A game aid to help play GURPS 4e for Foundry VTT (GCS/GCA edition)", - "version": "0.8.14", + "version": "0.8.13", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9", "templateVersion": 2, "secondaryTokenAttribute": "FP", "url": "https://github.com/crnormand/gurps", "manifest": "https://raw.githubusercontent.com/crnormand/gurps/release/system.json", - "download": "https://github.com/crnormand/gurps/archive/0.8.14.zip", + "download": "https://github.com/crnormand/gurps/archive/0.8.13.zip", "license": "LICENSE.txt" } \ No newline at end of file
14
diff --git a/assets/src/libraries/BookDetail.js b/assets/src/libraries/BookDetail.js @@ -68,7 +68,7 @@ export default class BookDetail extends Component { <div className="modal-book__borrowed-with-wrapper"> <div className="modal-book__borrowed-person"> - <Avatar src={book.image_url}/> + <Avatar src={user.image_url}/> <span>{user.username}</span> </div> <div className="modal-book__borrowed-elapsed-time"> @@ -84,6 +84,7 @@ export default class BookDetail extends Component { <span className="modal-book__waitlist-amount">4</span> </div> <div className="modal-book__waitlist-value">""</div> + <div className="modal-book__waitlist-button"><span>ENTRAR NA FILA</span></div> </div> </div> </div>
0
diff --git a/commands/rssadd.js b/commands/rssadd.js @@ -55,13 +55,13 @@ module.exports = async (bot, message) => { // Only show link-specific error if it's one link since they user may be trying to add a huge number of links that exceeds the message size limit if (totalLinks.length === 1) failedAddLinks[link] = `Maximum feed limit of ${maxFeedsAllowed} has been reached.` else limitExceeded = true - return + continue } for (var x in rssList) { if (rssList[x].link === link && message.channel.id === rssList[x].channel) { failedAddLinks[link] = 'Already exists for this channel.' - return + continue } } linkItem.shift()
1
diff --git a/docs/articles/documentation/test-api/a-z-index.md b/docs/articles/documentation/test-api/a-z-index.md @@ -12,7 +12,9 @@ This topic lists test API members in alphabetical order. * [DOM Node State](selecting-page-elements/dom-node-state.md) * *[members](selecting-page-elements/dom-node-state.md#members-common-across-all-nodes)* * [fixture](test-code-structure.md#fixtures) + * [after](test-code-structure.md#fixture-hooks) * [afterEach](test-code-structure.md#initialization-and-clean-up) + * [before](test-code-structure.md#fixture-hooks) * [beforeEach](test-code-structure.md#initialization-and-clean-up) * [httpAuth](http-authentication.md) * [only](test-code-structure.md#skipping-tests)
0
diff --git a/CHANGELOG.md b/CHANGELOG.md ## [Unreleased](https://github.com/akiran/react-slick/tree/HEAD) +## 0.22.0 + +**Release Changes** + +- Internal Changes + - converted InnerSlider from createReactClass object to ES6 class + - removed all the mixins, created classMethods and pure utility functions instead + - changed autoplay from setTimeout to setInterval + - added images onload handlers to update dynamically + - added autoplaying state for the betterment of autoplay and pause + - removed usage of assign or Object.assign, using object spreading instead + - implemented effects of touchMove props + - fixed transition in opposite direction in case of continuous scrolling + - added separate onclick event listener for images + - added missing classes `regular` and `slider` + - renamed events + - edgeEvent => onEdge + - init => onInit + - reInit => onReInit + - implemented `pauseOnDotsHover` property + - implemented Progressive LazyLoad property, lazyLoad is now ondemand/progressive + - implemented lazyloadError event + - implemented useTransform property + - implemented pauseOnFocus property + - added resize observer to update on slider resize + +- Bug Fixes + - dynamic track updates on image load + - fixed slickPause and autoPlay issues (paused slider would resume autoplay sometime) + - fixed trackStyle update on window resize + - fixed NodeList forEach problem for chrome 51 or below + - fixed bugs due to uncleared callback timers + - fixed update issues on just slider resize + + ## 0.21.0 **Release Changes**
0
diff --git a/PostHeadersQuestionToc.user.js b/PostHeadersQuestionToc.user.js // @description Sticky post headers while you view each post (helps for long posts). Question ToC of Answers in sidebar. // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 1.3.4 +// @version 1.3.5 // // @include https://*stackoverflow.com/questions/* // @include https://*serverfault.com/questions/* @@ -305,14 +305,8 @@ ${isQuestion ? 'Question' : 'Answer'} by ${postuserHtml}${postismod ? modflair : float: none; border-radius: 2px; font-size: 90%; - background-color: #eff0f1; - color: #3b4045; transform: translateY(-1px); } -#qtoc .answer-votes.answered-accepted { - color: #FFF; - background-color: #5fba7d; -} #qtoc .answer-votes.large { min-width: 16px; }
2
diff --git a/src/components/general/map-gen/MapGen.jsx b/src/components/general/map-gen/MapGen.jsx @@ -1177,6 +1177,7 @@ export const MapGen = () => { forwardTarget, moved: false, }); + setAnimation(null); } function goClick(e) { e.preventDefault();
0
diff --git a/src/encoded/audit/experiment.py b/src/encoded/audit/experiment.py @@ -809,6 +809,45 @@ def check_experiment_dnase_seq_standards(experiment, 'lack read depth information.' yield AuditFailure('missing read depth', detail, level='WARNING') + alignments_assemblies = {} + for alignment_file in alignment_files: + if 'assembly' in alignment_file: + alignments_assemblies[alignment_file['accession']] = alignment_file['assembly'] + + duplicates_quality_metrics = get_metrics(alignment_files, + 'DuplicatesQualityMetric', + desired_assembly) + if duplicates_quality_metrics: + for metric in samtools_flagstat_metrics: + percentage = metric.get('Percent Duplication') + if percentage: + percentage = percentage * 100 + upper_threshold = 12 + lower_threshold = 5 + if metric.get('UMI Read Duplicates'): + upper_threshold = 7.5 + if percentage > lower_threshold: + file_names = [] + for f in metric['quality_metric_of']: + file_names.append(f['@id'].split('/')[2]) + file_names_string = str(file_names).replace('\'', ' ') + + detail = 'Alignment file(s) ( {} ) '.format(file_names_string) + \ + 'produced by {} '.format(pipelines[0]['title']) + \ + '( {} ) '.format(pipelines[0]['@id']) + \ + assemblies_detail(extract_assemblies(alignments_assemblies, file_names)) + \ + 'have duplication rate of {0:.2f}%. '.format(percentage) + \ + 'According to ENCODE standards, ' + \ + 'library duplication rate < 5% is considered a product of high quality ' + \ + 'data. For standard libraries and for UMI libraries duplication rate < 12% and 7.5% ' + \ + 'respectively is considered acceptable. ' + \ + '(See {} )'.format(link_to_standards) + if percentage < upper_threshold: + yield AuditFailure('high duplicatioon rate', detail, level='WARNING') + else: + yield AuditFailure('extremely high duplicatioon rate', + detail, level='ERROR') + hotspot_assemblies = {} for hotspot_file in hotspots_files: if 'assembly' in hotspot_file:
0
diff --git a/lib/helper/Protractor.js b/lib/helper/Protractor.js @@ -87,6 +87,14 @@ class Protractor extends SeleniumWebdriver { Runner = require('protractor/built/runner').Runner; By = require('protractor').ProtractorBy; this.isProtractor5 = !require('protractor').wrapDriver; + + try { + // get selenium-webdriver + this.webdriver = requireg('selenium-webdriver'); + } catch (e) { + // maybe it is installed as protractor dependency? + this.webdriver = requireg('protractor/node_modules/selenium-webdriver'); + } } static _checkRequirements() {
13
diff --git a/src/components/Calendar.js b/src/components/Calendar.js @@ -164,8 +164,7 @@ class Calendar extends React.Component { borderRadius: 3, boxSizing: 'border-box', marginTop: 10, - padding: 20, - width: 600 + padding: 20 }, this.props.style), //Calendar Header @@ -209,10 +208,10 @@ class Calendar extends React.Component { //Calenday table calendarTable: { - alignItems: 'center', - display: 'flex', - flexWrap: 'wrap', - justifyContent: 'space-around' + // alignItems: 'center', + // display: 'flex', + // flexWrap: 'wrap', + // justifyContent: 'space-around' }, calendarDay: { alignItems: 'center',
1
diff --git a/js/views/modals/orderDetail/summaryTab/Summary.js b/js/views/modals/orderDetail/summaryTab/Summary.js @@ -827,6 +827,9 @@ export default class extends BaseVw { this.disputeStarted.setState({ disputerName: profile.get('name') })); } + this.listenTo(this.disputeStarted, 'clickResolveDispute', + () => this.trigger('clickResolveDispute')); + this.$subSections.prepend(this.disputeStarted.render().el); } @@ -858,9 +861,6 @@ export default class extends BaseVw { }); }); - this.listenTo(this.disputeStarted, 'clickResolveDispute', - () => this.trigger('clickResolveDispute')); - this.$subSections.prepend(this.disputePayout.render().el); }
5
diff --git a/nin/dasBoot/THREENode.js b/nin/dasBoot/THREENode.js class THREENode extends NIN.Node { constructor(id, options) { + if(!('render' in options.outputs)) { + options.outputs.render = new NIN.TextureOutput(); + } super(id, { inputs: options.inputs, - outputs: { - render: new NIN.TextureOutput() - } + outputs: options.outputs, }); this.options = options;
11
diff --git a/packages/config/src/validate/main.js b/packages/config/src/validate/main.js @@ -55,8 +55,14 @@ const validateProperty = function( return } - throw new Error(`Configuration property ${cyan.bold(propPath)} ${message} -${getExample({ value, key, prevPath, example })}`) + reportError({ prevPath, propPath, message, example, warn, value, key, parent }) +} + +const reportError = function({ prevPath, propPath, message, example, warn, value, key, parent }) { + const messageA = typeof message === 'function' ? message(value, key, parent) : message + const error = `Configuration property ${cyan.bold(propPath)} ${messageA} +${getExample({ value, key, prevPath, example })}` + throw new Error(error) } // Recurse over children (each part of the `property` array).
11
diff --git a/learn/configuration/typo_tolerance.md b/learn/configuration/typo_tolerance.md # Typo tolerance -Typo tolerance helps users find relevant results even when their search queries contain spelling mistakes or typos, e.g. typing `phnoe` instead of `phone`. Meilisearch allows you to [configure the typo tolerance feature for each index](/reference/api/typo_tolerance.md#update-typo-tolerance). +Typo tolerance helps users find relevant results even when their search queries contain spelling mistakes or typos, e.g. typing `phnoe` instead of `phone`. You can [configure the typo tolerance feature for each index](/reference/api/typo_tolerance.md#update-typo-tolerance). ::: note Meilisearch considers a typo on a query's first character as two typos. This increases performance during search. @@ -12,7 +12,9 @@ Typo tolerance is enabled by default, but you can disable it if needed: <CodeSamples id="typo_tolerance_guide_1" /> -Disabling typo tolerance will mean Meilisearch no longer applies typo tolerance to match queries at search time. However, it will still [sort results by increasing number of typos](#impact-of-typo-tolerance-on-the-typo-ranking-rule). +With typo tolerance disabled, Meilisearch no longer considers words that are a few characters off from your query terms as matches. For example, a query for `phnoe` will no longer return a document containing the word `phone`. + +**We recommend keeping typo tolerance enabled for most uses.** Massive or multilingual datasets may be exceptions, as typo tolerance can cause false-positive matches in these cases. ### `minWordSizeForTypos`
7
diff --git a/sparta.go b/sparta.go package sparta import ( + "context" "crypto/sha1" "encoding/hex" + "encoding/json" "fmt" "math/rand" "os" @@ -312,9 +314,6 @@ type WorkflowHooks struct { Rollback RollbackHook // Rollbacks are called if there is an error performing the requested operation Rollbacks []RollbackHookHandler - - // Allow minimal customization of the runtime logger - RuntimeLoggerHook RuntimeLoggerHook } //////////////////////////////////////////////////////////////////////////////// @@ -588,6 +587,84 @@ func (resourceInfo *customResourceInfo) export(serviceName string, // END - customResourceInfo //////////////////////////////////////////////////////////////////////////////// +// Interceptor is the type of an event interceptor that taps the event lifecycle +type Interceptor func(ctx context.Context, msg json.RawMessage) context.Context + +// NamedInterceptor represents a named interceptor that's invoked in the event path +type NamedInterceptor struct { + Name string + Interceptor Interceptor +} + +// InterceptorList is a list of NamedInterceptors +type InterceptorList []*NamedInterceptor + +//////////////////////////////////////////////////////////////////////////////// +// START - LambdaEventInterceptors + +// LambdaEventInterceptors is the struct that stores event handlers that tap into +// the normal event dispatching workflow +type LambdaEventInterceptors struct { + Begin InterceptorList + BeforeSetup InterceptorList + AfterSetup InterceptorList + BeforeDispatch InterceptorList + AfterDispatch InterceptorList + Complete InterceptorList +} + +// Register is a convenience function to register a struct that +// implements the LambdaInterceptorProvider interface +func (lei *LambdaEventInterceptors) Register(provider LambdaInterceptorProvider) *LambdaEventInterceptors { + namedInterceptor := func(interceptor Interceptor) *NamedInterceptor { + return &NamedInterceptor{ + Name: fmt.Sprintf("%T", provider), + Interceptor: interceptor, + } + } + if lei.Begin == nil { + lei.Begin = make(InterceptorList, 0) + } + lei.Begin = append(lei.Begin, namedInterceptor(provider.Begin)) + + if lei.BeforeSetup == nil { + lei.BeforeSetup = make(InterceptorList, 0) + } + lei.BeforeSetup = append(lei.BeforeSetup, namedInterceptor(provider.BeforeSetup)) + + if lei.AfterSetup == nil { + lei.AfterSetup = make(InterceptorList, 0) + } + lei.AfterSetup = append(lei.AfterSetup, namedInterceptor(provider.AfterSetup)) + + if lei.BeforeDispatch == nil { + lei.BeforeDispatch = make(InterceptorList, 0) + } + lei.BeforeDispatch = append(lei.BeforeDispatch, namedInterceptor(provider.BeforeDispatch)) + + if lei.AfterDispatch == nil { + lei.AfterDispatch = make(InterceptorList, 0) + } + lei.AfterDispatch = append(lei.AfterDispatch, namedInterceptor(provider.AfterDispatch)) + + if lei.Complete == nil { + lei.Complete = make(InterceptorList, 0) + } + lei.Complete = append(lei.Complete, namedInterceptor(provider.Complete)) + return lei +} + +// LambdaInterceptorProvider is the interface that defines an event interceptor +// Interceptors are able to hook into the normal event processing pipeline +type LambdaInterceptorProvider interface { + Begin(ctx context.Context, msg json.RawMessage) context.Context + BeforeSetup(ctx context.Context, msg json.RawMessage) context.Context + AfterSetup(ctx context.Context, msg json.RawMessage) context.Context + BeforeDispatch(ctx context.Context, msg json.RawMessage) context.Context + AfterDispatch(ctx context.Context, msg json.RawMessage) context.Context + Complete(ctx context.Context, msg json.RawMessage) context.Context +} + //////////////////////////////////////////////////////////////////////////////// // START - LambdaAWSInfo @@ -634,6 +711,9 @@ type LambdaAWSInfo struct { // deprecation notices deprecationNotices []string + + // interceptors + Interceptors *LambdaEventInterceptors } // lambdaFunctionName returns the internal
0
diff --git a/src/lib/gundb/UserStorage.js b/src/lib/gundb/UserStorage.js @@ -386,21 +386,24 @@ class UserStorage { standardizeFeed(feed: FeedEvent): StandardFeed { const avatar = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAIAAAB0Xu9BAAAABGdBTUEAALGPC/xhBQAAAuNJREFUWEetmD1WHDEQhDdxRMYlnBFyBIccgdQhKVcgJeQMpE5JSTd2uqnvIGpVUqmm9TPrffD0eLMzUn+qVnXPwiFd/PP6eLh47v7EaazbmxsOxjhTT88z9hV7GoNF1cUCvN7TTPv/gf/+uQPm862MWTL6fff4HfDx4S79/oVAlAUwqOmYR0rnazuFnhfOy/ErMKkcBFOr1vOjUi2MFn4nuMil6OPh5eGANLhW3y6u3aH7ijEDCxgCvzFmimvc95TekZLyMSeJC68Bkw0kqUy1K87FlpGZqsGFCyqEtQNDdFUtFctTiuhnPKNysid/WFEFLE2O102XJdEE+8IgeuGsjeJyGHm/xHvQ3JtKVsGGp85g9rK6xMHtvHO9+WACYjk5vkVM6XQ6OZubCJvTfPicYPeHO2AKFl5NuF5UK1VDUbeLxh2BcRGKTQE3irHm3+vPj6cfCod50Eqv5QxtwBQUGhZhbrGVuRia1B4MNp6edwBxld2sl1splfHCwfsvCZfrCQyWmX10djjOlWJSSy3VQlS6LmfrgNvaieRWx1LZ6s9co+P0DLsy3OdLU3lWRclQsVcHJBcUQ0k9/WVVrmpRzYQzpgAdQcAXxZzUnFX3proannrYH+Vq6KkLi+UkarH09mC8YPr2RMWOlEqFkQClsykGEv7CqCUbXcG8+SaGvJ4a8d4y6epND+pEhxoN0vWUu5ntXlFb5/JT7JfJJqoTdy9u9qc7ax3xJRHqJLADWEl23cFWl4K9fvoaCJ2BHpmJ3s3z+O0U/DmzdMjB9alWZtg4e3yxzPa7lUR7nkvxLHO9+tvJX3mtSDpwX8GajB283I8R8a7D2MhUZr1iNWdny256yYLd52DwRYBtRMvE7rsmtxIUE+zLKQCDO4jlxB6CZ8M17GhuY+XTE8vNhQiIiSE82ZsGwk1pht4ZSpT0YVpon6EvevOXXH8JxVR78QzNuamupW/7UB7wO/+7sG5V4ekXb4cL5Lyv+4IAAAAASUVORK5CYII=' - const stdFeed = { - id: feed.id, - date: new Date(feed.date).getTime(), - type: feed.type, - data: { + + const data = feed.data + ? { endpoint: { - address: feed.data ? feed.data.sender : '', + // address: feed.data.sender, fullName: 'Misao Matimbo', avatar: avatar }, amount: feed.data.amount, message: feed.data.reason } + : undefined + const stdFeed = { + id: feed.id, + date: new Date(feed.date).getTime(), + type: feed.type, + data } - return stdFeed }
9
diff --git a/deps/exokit-bindings/magicleap/src/magicleap.cc b/deps/exokit-bindings/magicleap/src/magicleap.cc @@ -8,7 +8,7 @@ using namespace std; namespace ml { -const char application_name[] = "com.magicleap.simpleglapp"; +const char application_name[] = "com.exokit.app"; application_context_t application_context; MLLifecycleCallbacks lifecycle_callbacks = {}; MLResult lifecycle_status;
10
diff --git a/test/jasmine/tests/scattermapbox_test.js b/test/jasmine/tests/scattermapbox_test.js @@ -368,7 +368,7 @@ describe('scattermapbox convert', function() { it('for lines traces with trailing gaps', function() { var opts = _convert(Lib.extendFlat({}, base, { mode: 'lines', - lon: [10, '20', 30, 20, null, 20, 10, null], + lon: [10, '20', 30, 20, null, 20, 10, null, null], lat: [20, 20, '10', null, 10, 10, 20, null] }));
0
diff --git a/Orchestrator/README.md b/Orchestrator/README.md @@ -98,6 +98,20 @@ This enables basic intent recognition. For more advanced scenarios follow the st * Only English language recognition is available in this preview release. * Only the *default* base model is available to Orchestrator solutions. +## Platform Support +Orchestrator supports the following platforms. + +### OS Support +MacOS v10.14 / v10.15 +Ubuntu 18 / 20 +Windows 10 + +### Language Support +Nodejs v10, v12, v14 +C# .NET Standard 2.1 (x64-only) +C# .NET Core 3.1 (x64-only) + + ## Additional Reading - [Tech overview][18]
3
diff --git a/tools/protocols/package.json b/tools/protocols/package.json { "name": "@airswap/protocols", - "version": "0.4.8", + "version": "0.4.7", "description": "Protocol Libraries for AirSwap Developers", "contributors": [ "Don Mosites <[email protected]>"
3
diff --git a/index.js b/index.js @@ -52,7 +52,7 @@ const args = (() => { 'performance', 'frame', 'minimalFrame', - 'test', + 'quit', 'blit', 'require', ], @@ -68,7 +68,7 @@ const args = (() => { s: 'size', f: 'frame', m: 'minimalFrame', - t: 'test', + q: 'quit', b: 'blit', i: 'image', r: 'require', @@ -82,7 +82,7 @@ const args = (() => { size: minimistArgs.size, frame: minimistArgs.frame, minimalFrame: minimistArgs.minimalFrame, - test: minimistArgs.test, + quit: minimistArgs.quit, blit: minimistArgs.blit, image: minimistArgs.image, require: minimistArgs.require, @@ -1362,7 +1362,7 @@ const _start = () => { } callback(err, result); }; - if (args.test) { + if (args.quit) { process.exit(); } const r = repl.start({
10