code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/vmm_mad/remotes/vcenter/migrate b/src/vmm_mad/remotes/vcenter/migrate @@ -55,8 +55,8 @@ begin VCenterDriver::VirtualMachine.migrate_routine(vm_id, src_host, dst_host) end rescue StandardError => e - message = "Cannot migrate for VM #{vm_id}"\ - 'failed due to '\ + message = "Cannot migrate for VM #{vm_id}. "\ + 'Failed due to '\ "\"#{e.message}\"." OpenNebula.log_error(message)
7
diff --git a/pages/_app.tsx b/pages/_app.tsx @@ -63,9 +63,12 @@ const WebApp = ({ Component, pageProps }: AppProps<BasePageProps>) => { return ( <ErrorBoundary> <ApolloProvider client={apolloClient}> + <MeContextProvider> <UserAgentProvider providedValue={providedUserAgent}> <MediaProgressContext> - <IconContextProvider value={{ style: { verticalAlign: 'middle' } }}> + <IconContextProvider + value={{ style: { verticalAlign: 'middle' } }} + > <AudioProvider> <AppVariableContext> <ColorContextProvider root colorSchemeKey='auto'> @@ -76,12 +79,10 @@ const WebApp = ({ Component, pageProps }: AppProps<BasePageProps>) => { content='width=device-width, initial-scale=1' /> </Head> - <MeContextProvider> <Component serverContext={serverContext} {...otherPageProps} /> - </MeContextProvider> <Track /> <AudioPlayer /> <MessageSync /> @@ -91,6 +92,7 @@ const WebApp = ({ Component, pageProps }: AppProps<BasePageProps>) => { </IconContextProvider> </MediaProgressContext> </UserAgentProvider> + </MeContextProvider> </ApolloProvider> </ErrorBoundary> )
5
diff --git a/BokehPass.js b/BokehPass.js @@ -17,7 +17,8 @@ import { import { Pass, FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js'; import { BokehShader } from './BokehShader.js'; -const _nop = () => {}; +const oldParentCache = new WeakMap(); +const oldMaterialCache = new WeakMap(); /** * Depth-of-field post-process with bokeh shader @@ -116,8 +117,9 @@ class BokehPass extends Pass { const _recurse = o => { if (o.isMesh && o.customPostMaterial) { - o.originalParent = o.parent; - o.originalMaterial = o.material; + oldParentCache.set(o, o.parent); + oldMaterialCache.set(o, o.material); + o.material = o.customPostMaterial; this.customScene.add(o); } @@ -128,8 +130,11 @@ class BokehPass extends Pass { _recurse(this.scene); renderer.render( this.customScene, this.camera ); for (const child of this.customScene.children) { - child.originalParent.add(child); - child.material = child.originalMaterial; + oldParentCache.get(child).add(child); + child.material = oldMaterialCache.get(child); + + oldParentCache.delete(child); + oldMaterialCache.delete(child); } renderer.render( this.scene, this.camera );
0
diff --git a/token-metadata/0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671/metadata.json b/token-metadata/0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671/metadata.json "symbol": "NMR", "address": "0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/package.json b/package.json "main": "index.js", "dependencies": { "babel-core": "^6.18.2", - "babel-plugin-transform-amd-system-wrapper": "^0.1.0", + "babel-plugin-transform-amd-system-wrapper": "github:systemjs/babel-plugin-transform-amd-system-wrapper#^0.2.0", "babel-plugin-transform-cjs-system-wrapper": "^0.4.0", "babel-plugin-transform-es2015-modules-systemjs": "^6.6.5", "babel-plugin-transform-global-system-wrapper": "0.1.0",
3
diff --git a/test/unit/specs/main.spec.js b/test/unit/specs/main.spec.js @@ -129,8 +129,7 @@ describe("Startup Process", () => { LOGGING: "false", COSMOS_NETWORK: "app/networks/basecoind-2", COSMOS_HOME: testRoot, - NODE_ENV: "testing", - BINARY_PATH: null // binary path is set for e2e tests but for some reason confuses the unit tests where child_processes should be mocked anyway o.O + NODE_ENV: "testing" }) jest.mock(appRoot + "src/root.js", () => "./test/unit/tmp/test_root")
13
diff --git a/edit.js b/edit.js @@ -1808,13 +1808,6 @@ const [ accept(); }); }); - w.requestReleaseMine = subparcelSharedPtr => new Promise((accept, reject) => { // XXX - /* callStack.allocRequest(METHODS.releaseUpdate, 1, true, offset => { - callStack.u32[offset] = subparcelSharedPtr; - }, offset => { - accept(); - }); */ - }); w.update = () => { if (moduleInstance) { if (currentChunkMesh) {
2
diff --git a/token-metadata/0x8888889213DD4dA823EbDD1e235b09590633C150/metadata.json b/token-metadata/0x8888889213DD4dA823EbDD1e235b09590633C150/metadata.json "symbol": "MBC", "address": "0x8888889213DD4dA823EbDD1e235b09590633C150", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/lib/windshaft/renderers/plain/image_renderer.js b/lib/windshaft/renderers/plain/image_renderer.js @@ -20,13 +20,43 @@ ImageRenderer.prototype.getTile = function(z, x, y, callback) { timer.start('render'); timer.end('render'); - var TILE_SIZE = this.options.tileSize; - + try { mapnik.Image.fromBytes(this.imageBuffer, (err, image) => { if (err) { return callback(err); } + const tiles = getTilesFromImage(image, x, y, this.imageBuffer, this.options.tileSize); + + const blendOptions = { + format: 'png', + width: this.options.tileSize, + height: this.options.tileSize, + reencode: true + }; + + blend(tiles, blendOptions, function (err, buffer) { + if (err) { + return callback(err); + } + + return callback(null, buffer, PLAIN_IMAGE_HEADERS, {}); + }); + }); + } catch (error) { + return callback(error); + } +}; + +ImageRenderer.prototype.getMetadata = function(callback) { + return callback(null, {}); +}; + +ImageRenderer.prototype.close = function() { + this.cachedTile = null; +}; + +function getTilesFromImage(image, x, y, imageBuffer, tileSize) { let tiles = []; const imageWidth = image.width(); const imageHeight = image.height(); @@ -34,16 +64,16 @@ ImageRenderer.prototype.getTile = function(z, x, y, callback) { let coveredHeight = 0; let tY = 0; - while(coveredHeight < TILE_SIZE) { + while(coveredHeight < tileSize) { let tX = 0; - const yPos = tY * imageHeight - (y * TILE_SIZE % imageHeight); + const yPos = tY * imageHeight - (y * tileSize % imageHeight); let coveredWidth = 0; - while (coveredWidth < TILE_SIZE) { - const xPos = tX * imageWidth - (x * TILE_SIZE % imageWidth); + while (coveredWidth < tileSize) { + const xPos = tX * imageWidth - (x * tileSize % imageWidth); tiles.push({ - buffer: this.imageBuffer, + buffer: imageBuffer, headers: {}, stats: {}, x: xPos, @@ -59,27 +89,5 @@ ImageRenderer.prototype.getTile = function(z, x, y, callback) { tY++; } - const blendOptions = { - format: 'png', - width: TILE_SIZE, - height: TILE_SIZE, - reencode: true - }; - - blend(tiles, blendOptions, function (err, buffer) { - if (err) { - return callback(err); + return tiles; } - - return callback(null, buffer, PLAIN_IMAGE_HEADERS, {}); - }); - }); -}; - -ImageRenderer.prototype.getMetadata = function(callback) { - return callback(null, {}); -}; - -ImageRenderer.prototype.close = function() { - this.cachedTile = null; -};
9
diff --git a/src/track.js b/src/track.js @@ -45,9 +45,9 @@ var getSlideStyle = function (spec) { if (spec.fade) { style.position = 'relative'; if (spec.vertical) { - style.top = -spec.index * spec.slideHeight; + style.top = -spec.index * parseInt(spec.slideHeight); } else { - style.left = -spec.index * spec.slideWidth; + style.left = -spec.index * parseInt(spec.slideWidth); } style.opacity = (spec.currentSlide === spec.index) ? 1 : 0; style.transition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
2
diff --git a/ItsATrap_theme_5E_Shaped/script.json b/ItsATrap_theme_5E_Shaped/script.json { "name": "It's a Trap! - D&D 5E Shaped theme", "script": "theme.js", - "version": "3.0.2", + "version": "3.0.1", "previousversions": ["1.0", "1.1", "1.2", "3.0"], "description": "# It's A Trap! - 5th Edition (Shapedv2) theme (Deprecated)\r\r_This script is deprecated. Please use the generic D&D 5E trap theme instead._\r", "authors": "Stephen Lindberg",
1
diff --git a/scoper.inc.php b/scoper.inc.php @@ -76,7 +76,8 @@ return array( Finder::create() ->files() ->ignoreVCS( true ) - ->name( "#($google_services)\.php#" ) + ->name( "#^($google_services)\.php$#" ) + ->depth( '== 0' ) ->in( 'vendor/google/apiclient-services/src/Google/Service' ), ), 'files-whitelist' => array(
7
diff --git a/vis/js/list.js b/vis/js/list.js @@ -432,6 +432,9 @@ list.filterListByKeyword = function(keyword) { d3.selectAll("#list_holder") .filter(function(x) { + if (typeof x.subject_orig === "undefined") { + x.subject_orig = ""; + } let keywords = x.subject_orig.split("; "); let contains_keyword = keywords.includes(keyword); return contains_keyword
14
diff --git a/src/renderer/component/common/file-selector.jsx b/src/renderer/component/common/file-selector.jsx @@ -9,6 +9,8 @@ type Props = { type: string, currentPath: ?string, onFileChosen: (string, string) => void, + fileLabel: ?string, + directoryLabel: ?string, }; class FileSelector extends React.PureComponent<Props> { @@ -47,15 +49,14 @@ class FileSelector extends React.PureComponent<Props> { input: ?HTMLInputElement; render() { - const { type, currentPath } = this.props; + const { type, currentPath, fileLabel, directoryLabel } = this.props; + + const label = + type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory'); return ( <FormRow verticallyCentered padded> - <Button - button="primary" - onClick={() => this.handleButtonClick()} - label={type === 'file' ? __('Choose File') : __('Choose Directory')} - /> + <Button button="primary" onClick={() => this.handleButtonClick()} label={label} /> <input webkitdirectory="true" className="input-copyable"
11
diff --git a/cmd/yagpdb/static/css/custom.css b/cmd/yagpdb/static/css/custom.css @@ -218,16 +218,16 @@ html.sidebar-left-collapsed #nav-footer { /*Proper Design, f**king bootztrap*/ -.bg-success, -.bg-info, -.bg-warning, -.bg-danger { +.card-body.bg-success, +.card-body.bg-info, +.card-body.bg-warning, +.card-body.bg-danger { padding: 2px !important; border-radius: 5px !important; } .card { - margin: 0 4px !important; + margin: 4px 0 !important; } .nav-tabs {
1
diff --git a/lib/assets/core/javascripts/cartodb3/editor/editor-pane.js b/lib/assets/core/javascripts/cartodb3/editor/editor-pane.js @@ -241,9 +241,7 @@ module.exports = CoreView.extend({ var nodeModel = model.getAnalysisDefinitionNodeModel(); var query = nodeModel.querySchemaModel.get('query'); - zoomToData(this._configModel, this._stateDefinitionModel, query, { - notifications: false - }); + zoomToData(this._configModel, this._stateDefinitionModel, query); this._visDefinitionModel.fetch(); },
2
diff --git a/packages/next/README.md b/packages/next/README.md @@ -1593,23 +1593,26 @@ Note: we recommend putting `.next`, or your [custom dist folder](https://github. <details> <summary><b>Examples</b></summary> <ul> - <li><a href="https://github.com/zeit/now-examples/tree/master/nextjs">Now.sh</a></li> + <li><a href="https://github.com/zeit/now-examples/tree/master/nextjs">now.sh</a></li> + <li><a href="https://github.com/TejasQ/anna-artemov.now.sh">anna-artemov.now.sh</a></li> <li>We encourage contributing more examples to this section</li> </ul> </details> -Serverless deployment dramatically improves reliability and scalability by splitting your application into many entrypoints. In case of Next.js an entrypoint is a page in the `pages` directory. +Serverless deployment dramatically improves reliability and scalability by splitting your application into smaller parts (also called [**lambdas**](https://zeit.co/docs/v2/deployments/concepts/lambdas/)). In the case of Next.js, each page in the `pages` directory becomes a serverless lambda. -To enable building serverless functions you have to enable the `serverless` build `target` in `next.config.js`: +There are [a number of benefits](https://zeit.co/blog/serverless-express-js-lambdas-with-now-2#benefits-of-serverless-express) to serverless. The referenced link talks about some of them in the context of Express, but the principles apply universally: serverless allows for distributed points of failure, infinite scalability, and is incredibly affordable with a "pay for what you use" model. + +To enable **serverless mode** in Next.js, add the `serverless` build `target` in `next.config.js`: ```js // next.config.js module.exports = { - target: 'serverless' -} + target: "serverless", +}; ``` -The serverless target will output a single file per page, this file is completely standalone and doesn't require any dependencies to run: +The `serverless` target will output a single lambda per page. This file is completely standalone and doesn't require any dependencies to run: - `pages/index.js` => `.next/serverless/pages/index.js` - `pages/about.js` => `.next/serverless/pages/about.js` @@ -1622,27 +1625,29 @@ export function render(req: http.IncomingMessage, res: http.ServerResponse) => v - [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage) - [http.ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse) -- `void` refers to the function not having a return value. Calling the function will finish the request. +- `void` refers to the function not having a return value and is equivalent to JavaScript's `undefined`. Calling the function will finish the request. -Next.js provides low-level APIs for Serverless as hosting platforms have different function signatures. In general you will want to wrap the output of a Next.js Serverless build with a compatability layer. +#### One Level Lower + +Next.js provides low-level APIs for serverless deployments as hosting platforms have different function signatures. In general you will want to wrap the output of a Next.js serverless build with a compatability layer. For example if the platform supports the Node.js [`http.Server`](https://nodejs.org/api/http.html#http_class_http_server) class: ```js -const http = require('http') -const page = require('./.next/serverless/about.js') -const server = new http.Server((req, res) => page.render(req, res)) -server.listen(3000, () => console.log('Listening on http://localhost:3000')) +const http = require("http"); +const page = require("./.next/serverless/about.js"); +const server = new http.Server((req, res) => page.render(req, res)); +server.listen(3000, () => console.log("Listening on http://localhost:3000")); ``` For specific platform examples see [the examples section above](#serverless-deployment). -To summarize: +#### Summary -- Low-level API for implementing Serverless deployment -- Every page in the `pages` directory becomes a serverless function -- Creates the smallest possible Serverless function (50Kb base zip size) -- Optimized for fast cold start of the function +- Low-level API for implementing serverless deployment +- Every page in the `pages` directory becomes a serverless function (lambda) +- Creates the smallest possible serverless function (50Kb base zip size) +- Optimized for fast [cold start](https://zeit.co/blog/serverless-ssr#cold-start) of the function - The serverless function has 0 dependencies (they are included in the function bundle) - Uses the [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage) and [http.ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse) from Node.js - opt-in using `target: 'serverless'` in `next.config.js`
7
diff --git a/services/datasources/lib/datasources/url/bigquery.rb b/services/datasources/lib/datasources/url/bigquery.rb @@ -240,9 +240,7 @@ module CartoDB { error: false, total_bytes_processed: resp.total_bytes_processed, - cache_hit: resp.cache_hit, - location: resp.location, - job_complete: resp.job_complete + cache_hit: resp.cache_hit } rescue Google::Apis::ClientError => err {
2
diff --git a/contracts/Court.sol b/contracts/Court.sol @@ -115,7 +115,7 @@ We might consider updating the contract with any of these features at a later da ----------------------------------------------------------------- */ -pragma solidity ^0.4.19; +pragma solidity ^0.4.20; import "contracts/Owned.sol"; @@ -370,7 +370,7 @@ contract Court is Owned, SafeDecimalMath { voteStartTime[voteIndex] = now; votesFor[voteIndex] = 0; votesAgainst[voteIndex] = 0; - ConfiscationVote(msg.sender, msg.sender, target, target, voteIndex, voteIndex); + MotionBegun(msg.sender, msg.sender, target, target, voteIndex, voteIndex); return voteIndex; } @@ -460,7 +460,7 @@ contract Court is Owned, SafeDecimalMath { // A cancelled vote is only meaningful if a vote is running voteWeight[msg.sender] = 0; - CancelledVote(msg.sender, msg.sender, voteIndex, voteIndex); + VoteCancelled(msg.sender, msg.sender, voteIndex, voteIndex); } userVote[msg.sender] = Court.Vote.Abstention; @@ -479,7 +479,7 @@ contract Court is Owned, SafeDecimalMath { voteStartTime[voteIndex] = 0; votesFor[voteIndex] = 0; votesAgainst[voteIndex] = 0; - VoteClosed(voteIndex, voteIndex); + MotionClosed(voteIndex, voteIndex); } /* The foundation may only confiscate a balance during the confirmation @@ -499,8 +499,8 @@ contract Court is Owned, SafeDecimalMath { voteStartTime[voteIndex] = 0; votesFor[voteIndex] = 0; votesAgainst[voteIndex] = 0; - VoteClosed(voteIndex, voteIndex); - ConfiscationApproval(voteIndex, voteIndex); + MotionClosed(voteIndex, voteIndex); + MotionApproved(voteIndex, voteIndex); } /* The foundation may veto a motion at any time. */ @@ -514,24 +514,24 @@ contract Court is Owned, SafeDecimalMath { voteStartTime[voteIndex] = 0; votesFor[voteIndex] = 0; votesAgainst[voteIndex] = 0; - VoteClosed(voteIndex, voteIndex); - Veto(voteIndex, voteIndex); + MotionClosed(voteIndex, voteIndex); + MotionVetoed(voteIndex, voteIndex); } /* ========== EVENTS ========== */ - event ConfiscationVote(address initator, address indexed initiatorIndex, address target, address indexed targetIndex, uint voteIndex, uint indexed voteIndexIndex); + event MotionBegun(address initator, address indexed initiatorIndex, address target, address indexed targetIndex, uint voteIndex, uint indexed voteIndexIndex); event VoteFor(address voter, address indexed voterIndex, uint voteIndex, uint indexed voteIndexIndex, uint weight); event VoteAgainst(address voter, address indexed voterIndex, uint voteIndex, uint indexed voteIndexIndex, uint weight); - event CancelledVote(address voter, address indexed voterIndex, uint voteIndex, uint indexed voteIndexIndex); + event VoteCancelled(address voter, address indexed voterIndex, uint voteIndex, uint indexed voteIndexIndex); - event VoteClosed(uint voteIndex, uint indexed voteIndexIndex); + event MotionClosed(uint voteIndex, uint indexed voteIndexIndex); - event Veto(uint voteIndex, uint indexed voteIndexIndex); + event MotionVetoed(uint voteIndex, uint indexed voteIndexIndex); - event ConfiscationApproval(uint voteIndex, uint indexed voteIndexIndex); + event MotionApproved(uint voteIndex, uint indexed voteIndexIndex); }
10
diff --git a/packages/wast-parser/src/fsm.js b/packages/wast-parser/src/fsm.js @@ -10,7 +10,8 @@ type TransitionList<Q> = { [Q]: Array<TransitionEdge<Q>> }; function makeTransition<Q>( regex: RegExp, nextState: Q, - { n = 1, allowedSeparator }: { n: number, allowedSeparator: ?string } = {} + // $FlowIgnore + { n = 1, allowedSeparator } = {} ): TransitionEdge<Q> { return function() { if (allowedSeparator) {
8
diff --git a/README.md b/README.md -## Hack OR Front-End Starter - This is a starter kit for Hack Oregon front-end development using React + Redux. -This repo should help get started and keep the different projects aligned. +This is a clone of the [Hack Oregon Starter kit](https://github.com/hackoregon/hackoregon-frontend-starter). #### Guide -1. Get [Node 6.5 +](https://nodejs.org) - I recommend using [Node Version Manager](https://github.com/creationix/nvm). -2. `git clone https://github.com/hackoregon/hackor-frontend-starter.git`. -3. `npm i` - install +1. Get [Node 6.5 +](https://nodejs.org) - I recommend using [Node Version Manager](https://github.com/creationix/nvm#install-script): +2. `git clone https://github.com/hackoregon/team-budget-frontend.git`. +3. `nvm install 6.9.5` and `nvm use` (sets your node version) +3. install [yarn](https://yarnpkg.com/en/docs/install) (using yarn instead of npm for installing dependencies will help keep versions in sync more easily), and run `yarn` from inside the repo to install dependencies. 4. `npm start` - start dev mode (watching tests + linter) 5. `npm test` - run tests 6. `npm run coverage` - run tests w/ coverage -#### Next up -[ ] Docs -[ ] Ability to remove reference files -[![Stories in Ready](https://badge.waffle.io/hackoregon/hackoregon-frontend-starter.png?label=ready&title=Ready)](http://waffle.io/hackoregon/hackoregon-frontend-starter) +#### Using the [Component Library](https://github.com/hackoregon/component-library) in your project +The component libary has been installed as a dependency from the npm build version 0.0.6 (https://www.npmjs.com/package/@hackoregon/component-library) + +To use a component in your project, import the component from its source in the lib folder + +Example: importing the Header compoenent from the component library + +`import Header from '@hackoregon/component-library/lib/Navigation/Header';`
3
diff --git a/test/testnet/index.js b/test/testnet/index.js @@ -517,6 +517,13 @@ program gasLimitForTransfer * gasPrice ).toString(); + // set minimumStakeTime back to 1 minute on testnets + console.log(gray(`set minimumStakeTime back to 60 seconds on testnets`)); + txns.push( + await Issuer.methods.setMinimumStakeTime(60).send({ from: owner.address, gas, gasPrice }) + ); + console.log(green(`Success. ${lastTxnLink()}`)); + console.log( gray( `Transferring remaining test ETH back to owner (${web3.utils.fromWei(
3
diff --git a/src/rss/logic/LinkLogic.js b/src/rss/logic/LinkLogic.js const { EventEmitter } = require('events') const ArticleIDResolver = require('../../structs/ArticleIDResolver.js') const dbCmds = require('../db/commands.js') -const log = require('../../util/logger.js') +// const log = require('../../util/logger.js') /** * @typedef {Object} FeedArticle @@ -394,9 +394,9 @@ class LinkLogic extends EventEmitter { const checkDates = LinkLogic.shouldCheckDates(config, feed) const toDebug = debug.has(feedID) - if (toDebug) { - log.debug.info(`${feedID}: Processing collection. Total article list length: ${totalArticles}.\nDatabase IDs:\n${JSON.stringify(Array.from(dbIDs), null, 2)}}`) - } + // if (toDebug) { + // log.debug.info(`${feedID}: Processing collection. Total article list length: ${totalArticles}.\nDatabase IDs:\n${JSON.stringify(Array.from(dbIDs), null, 2)}}`) + // } const newArticles = [] // Loop from oldest to newest so the queue that sends articleMessages work properly, sending the older ones first
1
diff --git a/helpers/gifcap.json b/helpers/gifcap.json "desc": "Capture a video of your screen, create a screencast and export as a Gif. No installation. Client-side only, no data is uploaded", "url": "https://gifcap.dev", "tags": [ - "Animations", - "Illustration", "Images", "Videos" ],
2
diff --git a/lib/dynamic.js b/lib/dynamic.js @@ -137,6 +137,10 @@ export default function dynamicComponent (p, o) { this.loadBundle(nextProps) } + componentWillUnmount () { + this.mounted = false + } + render () { const { AsyncComponent, asyncElement } = this.state const { LoadingComponent } = this
12
diff --git a/src/map/handler/Map.Drag.js b/src/map/handler/Map.Drag.js @@ -123,6 +123,7 @@ class MapDragHandler extends Handler { if (!this.startDragTime) { return; } + const isTouch = param.domEvent.type === 'touchend'; const map = this.target; let t = now() - this.startDragTime; const mx = param['mousePos'].x, @@ -134,7 +135,8 @@ class MapDragHandler extends Handler { if (map.options['panAnimation'] && !param.interupted && map._verifyExtent(map._getPrjCenter()) && t < 280 && Math.abs(dy) + Math.abs(dx) > 5) { t = 5 * t; - map.panBy(new Point(dx * 3, dy * 3), { 'duration': t * 1.5, 'easing': 'outExpo' }); + const dscale = isTouch ? 5 : 2.8; + map.panBy(new Point(dx * dscale, dy * dscale), { 'duration': isTouch ? t * 3 : t * 2, 'easing': 'outExpo' }); } else { map.onMoveEnd(param); }
7
diff --git a/README.md b/README.md @@ -402,7 +402,7 @@ Say thanks! <td>Backbone<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/backbone.svg" width="125" title="Backbone" /><br>463 Bytes</td> </tr> <tr> -<td>Vue<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/vue.svg" width="125" title="Vue" /><br>286 Bytes</td> +<td>Vue<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/vue.svg" width="125" title="Vue" /><br>272 Bytes</td> <td>Gradle<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/gradle.svg" width="125" title="Gradle" /><br>690 Bytes</td> <td>Amber<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/amberframework.svg" width="125" title="Amber Framework" /><br>753 Bytes</td> <td>Gitea<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/gitea.svg" width="125" title="Gitea" /><br>766 Bytes</td>
3
diff --git a/runtime/opensbp/opensbp.js b/runtime/opensbp/opensbp.js @@ -1161,6 +1161,9 @@ SBPRuntime.prototype._setUnits = function(units) { this.maxjerk_a = convert(this.jogspeed_a); this.maxjerk_b = convert(this.jogspeed_b); this.maxjerk_c = convert(this.jogspeed_c); + this.cmd_posx = convert(this.cmd_posx); + this.cmd_posy = convert(this.cmd_posy); + this.cmd_posz = convert(this.cmd_posz); this.units = units }
0
diff --git a/src/lib/API/api.js b/src/lib/API/api.js @@ -30,11 +30,32 @@ class API { log.info('initializing api...') AsyncStorage.getItem('GoodDAPP_jwt').then(async jwt => { this.jwt = jwt - this.client = await axios.create({ + let instance = axios.create({ baseURL: Config.serverUrl, timeout: 30000, headers: { Authorization: `Bearer ${this.jwt || ''}` } }) + instance.interceptors.request.use( + req => { + return req + }, + error => { + // Do something with response error + log.error('axios req error', { error }) + return Promise.reject(error) + } + ) + instance.interceptors.response.use( + response => { + return response + }, + error => { + // Do something with response error + log.error('axios response error', { error }) + return Promise.reject(error) + } + ) + this.client = await instance log.info('API ready', this.jwt) }) }
0
diff --git a/struts2-jquery-grid-showcase/pom.xml b/struts2-jquery-grid-showcase/pom.xml <velocity.version>1.7</velocity.version> <velocity-tools.version>2.0</velocity-tools.version> <derby.version>10.11.1.1</derby.version> - <c3p0.version>0.9.1.2</c3p0.version> + <c3p0.version>0.9.5.5</c3p0.version> <hibernate-validator.version>4.3.2.Final</hibernate-validator.version> <javax.interceptor-api.version>1.2</javax.interceptor-api.version> </properties> <!-- Connection Pooling --> <dependency> - <groupId>c3p0</groupId> + <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> </dependency> <!-- Connection Pooling --> <dependency> - <groupId>c3p0</groupId> + <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>${c3p0.version}</version> </dependency>
3
diff --git a/src/commands/utility/ServerInfoCommand.js b/src/commands/utility/ServerInfoCommand.js @@ -29,6 +29,7 @@ class ServerInfoCommand extends Command{ const embed = new Discord.MessageEmbed() .setTitle(`Info of ${guild.name}`) + .setColor(0xf04747) .setThumbnail(guild.iconURL({dynamic: true, size: 2048})) .setFooter(`Command executed by ${util.escapeFormatting(this.message.author.tag)}`) .setTimestamp()
12
diff --git a/src/client/styles/scss/_mixins.scss b/src/client/styles/scss/_mixins.scss @mixin expand-modal-fullscreen($hasModalHeader: true, $hasModalFooter: true) { // full-screen modal - width: 97%; - height: 95%; + width: auto; + height: calc(100vh - 30px); + margin: 15px; + .modal-content { - height: 95%; + height: calc(100vh - 30px); } // expand .modal-body (with calculating height)
7
diff --git a/apps/waypointer/app.js b/apps/waypointer/app.js @@ -5,6 +5,7 @@ var pal_bb = new Uint16Array([0x0000,0x07ff],0,1); // black, blue // having 3 2 color pallette keeps the memory requirement lower var buf1 = Graphics.createArrayBuffer(160,160,1, {msb:true}); var buf2 = Graphics.createArrayBuffer(80,40,1, {msb:true}); +var arrow_img = require("heatshrink").decompress(atob("lEowIPMjAEDngEDvwED/4DCgP/wAEBgf/4AEBg//8AEBh//+AEBj///AEBn///gEBv///wmCAAImCAAIoBFggE/AkaaEABo=")); function flip1(x,y) { g.drawImage({width:160,height:160,bpp:1,buffer:buf1.buffer, palette:pal_by},x,y); @@ -46,17 +47,15 @@ function clear_previous() { function drawCompass(course) { if(!candraw) return; - if (Math.abs(previous.course - course) < 12) return; // reduce number of draws due to compass jitter + if (Math.abs(previous.course - course) < 9) return; // reduce number of draws due to compass jitter previous.course = course; - var img = require("heatshrink").decompress(atob("lEowIPMjAEDngEDvwED/4DCgP/wAEBgf/4AEBg//8AEBh//+AEBj///AEBn///gEBv///wmCAAImCAAIoBFggE/AkaaEABo=")); - buf1.setColor(1); buf1.fillCircle(80,80,79,79); buf1.setColor(0); buf1.fillCircle(80,80,69,69); buf1.setColor(1); - buf1.drawImage(img, 80, 80, {scale:3, rotate:radians(course)} ); + buf1.drawImage(arrow_img, 80, 80, {scale:3, rotate:radians(course)} ); flip1(40, 30); }
5
diff --git a/_data/conferences.yml b/_data/conferences.yml year: 2019 id: neurips19 link: https://neurips.cc/Conferences/2019 - deadline: '2019-05-23 18:00:00' + deadline: '2019-05-23 13:00:00' timezone: America/Los_Angeles date: December 9-14, 2019 place: Vancouver Convention Centre, Canada
1
diff --git a/test/expr-update.spec.js b/test/expr-update.spec.js @@ -765,6 +765,70 @@ describe("Expression Update Detect", function () { }); }); + it("array literal with spread, in multi-line attr", function (done) { + var List = san.defineComponent({ + template: '<ul><li s-for="item in list">{{item}}</li></ul>' + }); + + var MyComponent = san.defineComponent({ + components: { + 'x-l': List + }, + template: '<div><x-l list="{{[1, \n true, \n ...ext, \n \'erik\', \n ...ext2]}}"/></div>' + }); + var myComponent = new MyComponent({ + data: { + ext2: [] + } + }); + + var wrap = document.createElement('div'); + document.body.appendChild(wrap); + myComponent.attach(wrap); + + var lis = wrap.getElementsByTagName('li'); + expect(lis.length).toBe(3); + + expect(lis[0].innerHTML).toBe('1'); + expect(lis[1].innerHTML).toBe('true'); + expect(lis[2].innerHTML).toBe('erik'); + myComponent.data.set('ext', [3, 4]); + myComponent.data.set('ext2', [5, 6]); + san.nextTick(function () { + var lis = wrap.getElementsByTagName('li'); + expect(lis.length).toBe(7); + + expect(lis[0].innerHTML).toBe('1'); + expect(lis[1].innerHTML).toBe('true'); + expect(lis[4].innerHTML).toBe('erik'); + expect(lis[2].innerHTML).toBe('3'); + expect(lis[3].innerHTML).toBe('4'); + + expect(lis[5].innerHTML).toBe('5'); + expect(lis[6].innerHTML).toBe('6'); + + myComponent.data.push('ext', 10); + + san.nextTick(function () { + expect(lis[0].innerHTML).toBe('1'); + expect(lis[1].innerHTML).toBe('true'); + expect(lis[2].innerHTML).toBe('3'); + expect(lis[3].innerHTML).toBe('4'); + + expect(lis[4].innerHTML).toBe('10'); + expect(lis[5].innerHTML).toBe('erik'); + expect(lis[6].innerHTML).toBe('5'); + expect(lis[7].innerHTML).toBe('6'); + + myComponent.dispose(); + document.body.removeChild(wrap); + + done(); + }) + + }); + }); + it("object literal", function (done) { var Article = san.defineComponent({ template: '<div><h3>{{a.title}}</h3><b s-if="a.hot">hot</b><div s-if="a.author"><u>{{a.author.name}}</u><a>{{a.author.email}}</a></div><p>{{a.content}}</p></div>'
11
diff --git a/core/algorithm-operator/lib/templates/algorithm-builder.js b/core/algorithm-operator/lib/templates/algorithm-builder.js @@ -122,6 +122,14 @@ const openshiftVolumes = { { name: 'workspace', mountPath: '/tmp/workspace' + }, + { + name: 'uploads', + mountPath: '/hkube/algorithm-builder/uploads' + }, + { + name: 'builds', + mountPath: '/hkube/algorithm-builder/builds' } ], volumes: [ @@ -136,6 +144,14 @@ const openshiftVolumes = { { name: 'config', emptyDir: {} + }, + { + name: 'uploads', + emptyDir: {} + }, + { + name: 'builds', + emptyDir: {} } ] };
0
diff --git a/token-metadata/0xD6940A1FfD9F3B025D1F1055AbCfd9F7CdA81eF9/metadata.json b/token-metadata/0xD6940A1FfD9F3B025D1F1055AbCfd9F7CdA81eF9/metadata.json "symbol": "YFR", "address": "0xD6940A1FfD9F3B025D1F1055AbCfd9F7CdA81eF9", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/compiler/theme.imba b/src/compiler/theme.imba @@ -177,28 +177,28 @@ export const variants = easings: "sine-in": "cubic-bezier(0.47, 0, 0.745, 0.715)", "sine-out": "cubic-bezier(0.39, 0.575, 0.565, 1)", - "sine-out-in": "cubic-bezier(0.445, 0.05, 0.55, 0.95)", + "sine-in-out": "cubic-bezier(0.445, 0.05, 0.55, 0.95)", "quad-in": "cubic-bezier(0.55, 0.085, 0.68, 0.53)", "quad-out": "cubic-bezier(0.25, 0.46, 0.45, 0.94)", - "quad": "cubic-bezier(0.455, 0.03, 0.515, 0.955)", + "quad-in-out": "cubic-bezier(0.455, 0.03, 0.515, 0.955)", "cubic-in": "cubic-bezier(0.55, 0.055, 0.675, 0.19)", "cubic-out": "cubic-bezier(0.215, 0.61, 0.355, 1)", - "cubic": "cubic-bezier(0.645, 0.045, 0.355, 1)", + "cubic-in-out": "cubic-bezier(0.645, 0.045, 0.355, 1)", "quart-in": "cubic-bezier(0.895, 0.03, 0.685, 0.22)", "quart-out": "cubic-bezier(0.165, 0.84, 0.44, 1)", - "quart": "cubic-bezier(0.77, 0, 0.175, 1)", + "quart-in-out": "cubic-bezier(0.77, 0, 0.175, 1)", "quint-in": "cubic-bezier(0.755, 0.05, 0.855, 0.06)", "quint-out": "cubic-bezier(0.23, 1, 0.32, 1)", - "quint": "cubic-bezier(0.86, 0, 0.07, 1)", + "quint-in-out": "cubic-bezier(0.86, 0, 0.07, 1)", "expo-in": "cubic-bezier(0.95, 0.05, 0.795, 0.035)", "expo-out": "cubic-bezier(0.19, 1, 0.22, 1)", - "expo": "cubic-bezier(1, 0, 0, 1)", + "expo-in-out": "cubic-bezier(1, 0, 0, 1)", "circ-in": "cubic-bezier(0.6, 0.04, 0.98, 0.335)", "circ-out": "cubic-bezier(0.075, 0.82, 0.165, 1)", - "circ": "cubic-bezier(0.785, 0.135, 0.15, 0.86)", + "circ-in-out": "cubic-bezier(0.785, 0.135, 0.15, 0.86)", "back-in": "cubic-bezier(0.6, -0.28, 0.735, 0.045)", "back-out": "cubic-bezier(0.175, 0.885, 0.32, 1.275)", - "back": "cubic-bezier(0.68, -0.55, 0.265, 1.55)" + "back-in-out": "cubic-bezier(0.68, -0.55, 0.265, 1.55)" export const colors = { gray: {
10
diff --git a/test/unit/collection/validations.js b/test/unit/collection/validations.js @@ -6,6 +6,7 @@ var Waterline = require('../../../lib/waterline'); describe('Collection Validator ::', function() { describe('.validate()', function() { var person; + var car; before(function(done) { var waterline = new Waterline(); @@ -31,7 +32,23 @@ describe('Collection Validator ::', function() { } }); + var Car = Waterline.Model.extend({ + identity: 'car', + datastore: 'foo', + primaryKey: 'id', + attributes: { + id: { + type: 'string', + required: true, + validations: { + minLength: 6 + } + } + } + }); + waterline.registerModel(Person); + waterline.registerModel(Car); var datastores = { 'foo': { @@ -44,6 +61,7 @@ describe('Collection Validator ::', function() { return done(err); } person = orm.collections.person; + car = orm.collections.car; done(); }); }); @@ -125,5 +143,21 @@ describe('Collection Validator ::', function() { }); }); + it('should return an Error with name `UsageError` when a primary key fails a validation rule in a `create`', function(done) { + car.create({ id: 'foobarbax' }).exec(function(err) { + assert(!err); + return done(); + }); + }); + + it('should not return any errors when a primary key does not violate any validations.', function(done) { + car.create({ id: 'foo' }).exec(function(err) { + assert(err); + assert.equal(err.name, 'UsageError'); + assert(err.message.match(/rule/)); + return done(); + }); + }); + }); });
0
diff --git a/db/migrations/20181221164327-create-deleted-subscription.js b/db/migrations/20181221164327-create-deleted-subscription.js @@ -2,7 +2,6 @@ module.exports = { up: (queryInterface, Sequelize) => queryInterface.createTable('DeletedSubscriptions', { id: { allowNull: false, - autoIncrement: true, primaryKey: true, type: Sequelize.BIGINT, },
4
diff --git a/token-metadata/0x749826F1041CAF0Ea856a4b3578Ba327B18335F8/metadata.json b/token-metadata/0x749826F1041CAF0Ea856a4b3578Ba327B18335F8/metadata.json "symbol": "TIG", "address": "0x749826F1041CAF0Ea856a4b3578Ba327B18335F8", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/util.js b/util.js @@ -384,3 +384,20 @@ export function parseCoord(s) { return null; } } + +export function parseExtents(s) { + if (s) { + const split = s.match(/^\[\[(-?[0-9\.]+),(-?[0-9\.]+),(-?[0-9\.]+)\],\[(-?[0-9\.]+),(-?[0-9\.]+),(-?[0-9\.]+)\]\]$/); + let x1, y1, z1, x2, y2, z2; + if (split && !isNaN(x1 = parseFloat(split[1])) && !isNaN(y1 = parseFloat(split[2])) && !isNaN(z1 = parseFloat(split[3])) && !isNaN(x2 = parseFloat(split[4])) && !isNaN(y2 = parseFloat(split[5])) && !isNaN(z2 = parseFloat(split[6]))) { + return new THREE.Box3( + new THREE.Vector3(x1, y1, z1), + new THREE.Vector3(x2, y2, z2) + ); + } else { + return null; + } + } else { + return null; + } +} \ No newline at end of file
0
diff --git a/avatars/vrarmik/LegsManager.js b/avatars/vrarmik/LegsManager.js import THREE from '../../three.module.js'; import {Helpers} from './Unity.js'; +const avatarHeightFactor = 0.95; const stepRate = 0.2; const stepHeight = 0.2; const stepMinDistance = 0; @@ -262,7 +263,7 @@ class LegsManager { this.rightLeg.stepping = false; } */ - const floorHeight = this.poseManager.vrTransforms.floorHeight + this.rig.height * 0.1; + const floorHeight = this.poseManager.vrTransforms.floorHeight + this.rig.height * (1 - avatarHeightFactor); const hipsFloorPosition = localVector.copy(this.hips.position); hipsFloorPosition.y = floorHeight;
0
diff --git a/src/schemas/json/appveyor.json b/src/schemas/json/appveyor.json "enum": [ "x86", "x64", + "ARM", "Any CPU" ] }, "configuration": { - "enum": [ - "Debug", - "Release" - ] + "type": "string" }, - "jobScalars": { - "type": "object", - "properties": { - "image": { - "description": "Build worker image (VM template) -DEV_VERSION", - "oneOf": [ - { - - "type": "array", - "items": { - "type": "string", + "imageName": { "enum": [ "Ubuntu", "Ubuntu1604", "Ubuntu1804", + "Previous Ubuntu", + "Previous Ubuntu1604", + "Previous Ubuntu1804", "Visual Studio 2013", "Visual Studio 2015", "Visual Studio 2017", + "Visual Studio 2019", + "Visual Studio 2017 Preview", + "Visual Studio 2019 Preview", "Previous Visual Studio 2013", "Previous Visual Studio 2015", - "Previous Visual Studio 2017" + "Previous Visual Studio 2017", + "zhaw18", + "WMF 5" ] + }, + "image": { + "description": "Build worker image (VM template) -DEV_VERSION", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/imageName" } }, { - "type": "string", - "enum": [ - "Ubuntu", - "Ubuntu1604", - "Ubuntu1804", - "Visual Studio 2013", - "Visual Studio 2015", - "Visual Studio 2017", - "Previous Visual Studio 2013", - "Previous Visual Studio 2015", - "Previous Visual Studio 2017" - ] - + "$ref": "#/definitions/imageName" } ] }, + "jobScalars": { + "type": "object", + "properties": { + "image": { + "$ref": "#/definitions/image" + }, "platform": { "description": "Build platform, i.e. x86, x64, Any CPU. This setting is optional", "oneOf": [ } }, "image": { - "description": "Build worker image (VM template) -DEV_VERSION", - "oneOf": [ - { - - "type": "array", - "items": { - "type": "string", - "enum": [ - "Ubuntu", - "Ubuntu1604", - "Ubuntu1804", - "Visual Studio 2013", - "Visual Studio 2015", - "Visual Studio 2017", - "Previous Visual Studio 2013", - "Previous Visual Studio 2015", - "Previous Visual Studio 2017" - ] - } - }, - { - "type": "string", - "enum": [ - "Ubuntu", - "Ubuntu1604", - "Ubuntu1804", - "Visual Studio 2013", - "Visual Studio 2015", - "Visual Studio 2017", - "Previous Visual Studio 2013", - "Previous Visual Studio 2015", - "Previous Visual Studio 2017" - ] - - } - ] + "$ref": "#/definitions/image" }, "init": { "description": "Scripts that are called at very beginning, before repo cloning", "build": { "oneOf": [ { - "type": "boolean" + "enum": [ + false + ] }, { "type": "object", "$ref": "#/definitions/command" } }, - "before_after": { + "after_build": { "description": "Scripts to run after build", "type": "array", "items": { "test": { "oneOf": [ { + "type": "boolean", "enum": [ - "off" + false ], "description": "To disable automatic tests" }, "oneOf": [ { "enum": [ - "off" + false ] }, {
7
diff --git a/src/Eleventy.js b/src/Eleventy.js @@ -1018,6 +1018,11 @@ Arguments: ret = this.logger.closeStream(to); } + // Passing the processed output to the eleventy.after event is new in 2.0 + let [passthroughCopyResults, ...templateResults] = ret; + let processedResults = templateResults.flat().filter((entry) => !!entry); + eventsArg.results = processedResults; + await this.config.events.emit("afterBuild", eventsArg); await this.config.events.emit("eleventy.after", eventsArg); } catch (e) {
0
diff --git a/token-metadata/0xAEA5E11E22E447fA9837738A0cd2848857748ADF/metadata.json b/token-metadata/0xAEA5E11E22E447fA9837738A0cd2848857748ADF/metadata.json "symbol": "SOFI", "address": "0xAEA5E11E22E447fA9837738A0cd2848857748ADF", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/server/src/errors/index.js b/server/src/errors/index.js -export class AuthentificationError extends Error { +import * as Sentry from '@sentry/node'; + +class ClientError extends Error { + constructor(args) { + super(args); + Sentry.configureScope((scope) => { + scope.setLevel('info'); + }); + Sentry.captureException(this); + } +} + +class ServerError extends Error { + constructor(args) { + super(args); + Sentry.configureScope((scope) => { + scope.setLevel('error'); + }); + Sentry.captureException(this); + } +} + +export class AuthentificationError extends ClientError { code = 401 message = 'Autentification not found, you have to be authentificated to perform this action' } -export class DatabaseError extends Error { +export class DatabaseError extends ClientError { code = 404 message = `Ressource not found : ${this.message}` } -export class WrongArgumentsError extends Error { +export class WrongArgumentsError extends ClientError { code = 400 message = `Wrong arguments : ${this.message}` } -export class ServiceUnavailableError extends Error { +export class ServiceUnavailableError extends ServerError { code = 503 message = `At least one service is unresponding ${this.message}`
12
diff --git a/articles/quickstart/spa/_includes/_token_renewal_server_setup.md b/articles/quickstart/spa/_includes/_token_renewal_server_setup.md @@ -53,5 +53,5 @@ console.log('Listening on http://localhost:${serverPort}'); ``` ::: note -Add `http://localhost:$(serverPort)/silent` to the **Callback URLs** section in your application's client settings. +Add `http://localhost:$(serverPort)/silent` to the **Allowed Callback URLs** section in your application's [Client Settings](${manage_url}/#/applications/${account.clientId}/settings). :::
0
diff --git a/src/styles/cascader.less b/src/styles/cascader.less cursor: not-allowed; } + &:not(&-disabled) { &-focus &-close, &-result:hover &-close { display: block; } + } &-multiple { .@{cascader-prefix}-close {
1
diff --git a/SECURITY.md b/SECURITY.md | Version | Supported Until | | ------- | --------------- | | <= 2.3 | Unsupported | -| 2.4 | 30/06/2022 | +| 2.4 | Best effort | | 2.5 | Best effort | | 2.6 | 06/01/2023 | | 2.7 | To be defined |
12
diff --git a/src/js/components/Tiles.js b/src/js/components/Tiles.js @@ -92,11 +92,6 @@ export default class Tiles extends Component { componentDidUpdate (prevProps, prevState) { const { direction, onMore, selectable } = this.props; - const { selected } = this.state; - if (JSON.stringify(selected) !== - JSON.stringify(prevState.selected)) { - this._setSelection(); - } if (onMore && !this._scroll) { this._scroll = InfiniteScroll.startListeningForScroll(this.moreRef, onMore); @@ -107,6 +102,7 @@ export default class Tiles extends Component { setTimeout(this._layout, 10); } if (selectable) { + this._setSelection(); // only listen for navigation keys if the list row can be selected this._keyboardHandlers = { left: this._onPreviousTile, @@ -314,24 +310,6 @@ export default class Tiles extends Component { } } - _renderChild (element) { - const { flush } = this.props; - - if (element) { - // only clone tile children - if (element.type && element.type.displayName === 'Tile') { - const elementClone = React.cloneElement(element, { - hoverBorder: !flush - }); - - return elementClone; - } - return element; - } - - return undefined; - } - _onResize () { // debounce clearTimeout(this._resizeTimer); @@ -375,6 +353,24 @@ export default class Tiles extends Component { } } + _renderChild (element) { + const { flush } = this.props; + + if (element) { + // only clone tile children + if (element.type && element.type.displayName === 'Tile') { + const elementClone = React.cloneElement(element, { + hoverBorder: !flush + }); + + return elementClone; + } + return element; + } + + return undefined; + } + // children should be an array of Tile render () { const {
1
diff --git a/articles/api-auth/tutorials/multifactor-resource-owner-password.md b/articles/api-auth/tutorials/multifactor-resource-owner-password.md @@ -29,10 +29,19 @@ The flow starts by collecting end-user credentials and sending them to Auth0, as 5. The Client will then make a request to the [MFA challenge](/api/authentication#resource-owner-password) endpoint, specifying the challenge types it supports. Valid challenge types are: [OTP](#challenge-type-otp), [OOB and binding method `prompt`](#challenge-type-oob-and-binding-method-prompt), [OOB with no binding method](#challenge-type-oob-with-no-binding-method) 6. Auth0 sends a response containing the `challenge_type` derived from the types supported by the Client and the specific user. Additionally, extra information, such as `binding_method` may be included to assist in resolving the challenge and displaying the correct UI to the user. +The supported challenge types are: + +- `otp`: A one-time password generated by an app setup with a seed, or by token generation hardware. This mechanism does not require an extra channel to prove possession; you can get it directly from the app / hardware device. + +- `oob`: The proof of possession is done 'out of band' via a side channel. There are several different channels, including push notification based authenticators and sms based authenticators. Depending on the channel and the authenticator chosen at enrollment, you may need to provide a `binding_code` used to bind the side channel and the channel used for authentication. + To execute MFA, follow the next steps according to the challenge type you will use: -- [OTP](#challenge-type-otp) -- [OOB and binding method `prompt`](#challenge-type-oob-and-binding-method-prompt) -- [OOB with no binding method](#challenge-type-oob-with-no-binding-method) + +- [OTP](#challenge-type-otp): for this challenge type your client application must prompt end-user for an otp code and continue the flow on the __mfa-otp__ grant type. + +- [OOB and binding method `prompt`](#challenge-type-oob-and-binding-method-prompt): the challenge will be sent through a side channel (for example, SMS), and your client application will need to prompt the user for the `binding_code` (that was included as part of the challenge sent) and provide this code and the `oob_code` received as response for this request to prove possesion. + +- [OOB with no binding method](#challenge-type-oob-with-no-binding-method): in this case the proof of possession will be driven entirely in a side channel (for example, via a push notification based authenticator). The response will include an `oob_code` that the Client application will use to periodically check for the resolution of the transaction. Continue the flow on __mfa-oob__ grant type. ## Execute Multifactor
0
diff --git a/README.md b/README.md @@ -12,11 +12,11 @@ _Follow steps as necessary. If you already have Reaction installed, you may be a 0. Prerequesites - Install [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/). Docker Compose is included when installing Docker on Mac and Windows, but will need to be installed separately on Linux. -1. Clone the main [Reaction repo](https://github.com/reactioncommerce/reaction) and checkout the `release-1.12.0` branch +1. Clone the main [Reaction repo](https://github.com/reactioncommerce/reaction) and checkout the `release-1.15.0` branch ```sh git clone [email protected]:reactioncommerce/reaction.git cd reaction - git checkout release-1.12.0 + git checkout release-1.15.0 # change directory to the parent of your reaction install cd ..
3
diff --git a/src/components/signup/SignupState.js b/src/components/signup/SignupState.js @@ -140,7 +140,6 @@ const Signup = ({ navigation, screenProps }: { navigation: any, screenProps: any // saved to the `state` await API.addUser(state) // Stores creationBlock number into 'lastBlock' feed's node - const creationBlock = (await goodWallet.getBlockNumber()).toString() await Promise.all([ (saveProfile({ registered: true }), userStorage.setProfileField('registered', true),
2
diff --git a/app/views/navbar.scala.html b/app/views/navbar.scala.html <a class="navbarBtn navbarStartBtn" href="@routes.AuditController.audit()">Start Mapping</a> </li> <li class="active navbarLink"> - <a class="navbarBtn navbarStartBtn" href="@routes.ApplicationController.labelingGuide">Labeling Guide</a> + <a class="navbarBtn navbarStartBtn" href="@routes.ApplicationController.labelingGuide">How to Label</a> </li> <li class="active navbarLink"> <a class="navbarBtn navbarResultsBtn" href="@routes.ApplicationController.results">See Results</a> <a href="#" id="toolbar-onboarding-link">Retake tutorial</a> </li> <li class="navbarLink"> - <a href='@routes.ApplicationController.labelingGuide' id="toolbar-faq-link" target="_blank">Labeling guide</a> + <a href='@routes.ApplicationController.labelingGuide' id="toolbar-faq-link" target="_blank">How to label</a> </li> <li class = "navbarLink"> <a href='@routes.ApplicationController.faq' id="toolbar-faq-link" target="_blank">FAQ</a>
10
diff --git a/packages/gatsby/src/internal-plugins/query-runner/__tests__/pages-writer.js b/packages/gatsby/src/internal-plugins/query-runner/__tests__/pages-writer.js const _ = require(`lodash`) const { writePages, resetLastHash } = require(`../pages-writer`) +const { joinPath } = require(`../../../utils/path`) const jsonDataPathsFixture = require(`./fixtures/jsonDataPaths.json`) const pagesFixture = require(`./fixtures/pages.json`) @@ -67,7 +68,7 @@ describe(`Pages writer`, () => { await writePages() expect(spy).toBeCalledWith( - `my/gatsby/project/.cache/data.json.${now}`, + joinPath(`my`, `gatsby`, `project`, `.cache`, `data.json.${now}`), expectedResult ) }) @@ -96,7 +97,7 @@ describe(`Pages writer`, () => { await writePages() expect(spy).toBeCalledWith( - `my/gatsby/project/.cache/data.json.${now}`, + joinPath(`my`, `gatsby`, `project`, `.cache`, `data.json.${now}`), expectedResult ) })
4
diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js @@ -1817,17 +1817,6 @@ axes.doTicks = function(gd, axid, skipTitle) { } } - // make sure we only have allowed options for exponents - // (others can make confusing errors) - if(!ax.tickformat) { - if(['none', 'e', 'E', 'power', 'SI', 'B'].indexOf(ax.exponentformat) === -1) { - ax.exponentformat = 'e'; - } - if(['all', 'first', 'last', 'none'].indexOf(ax.showexponent) === -1) { - ax.showexponent = 'all'; - } - } - // set scaling to pixels ax.setScale();
2
diff --git a/src/screens/HomeScreen/component.js b/src/screens/HomeScreen/component.js @@ -187,7 +187,8 @@ const styles = StyleSheet.create({ backgroundColor: bgColor }, partnershipBar: { - height: 42 + height: 42, + marginBottom: 4 }, innerBar: { backgroundColor: lightNavyBlueColor,
0
diff --git a/app/views/comments/_comments.html.erb b/app/views/comments/_comments.html.erb <%- parent ||= comments hide_form ||= false - hide_form = true if current_user.blocked_by?( parent.try(:user) ) + hide_form = true if current_user && current_user.blocked_by?( parent.try(:user) ) remote ||= nil header_tag ||= "h3" -%>
1
diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js @@ -431,5 +431,6 @@ $('#qu_id_purchase').blur(function(e) var QuIdPurchase = $('#qu_id_purchase'); if (QuIdStock[0].selectedIndex === 0 && QuIdPurchase[0].selectedIndex !== 0) { QuIdStock[0].selectedIndex = QuIdPurchase[0].selectedIndex; + Grocy.FrontendHelpers.ValidateForm('product-form'); } });
0
diff --git a/articles/api/authentication/_multifactor-authentication.md b/articles/api/authentication/_multifactor-authentication.md @@ -106,8 +106,8 @@ If OTP is supported by the user and you don't want to request a different factor | `client_id` <br/><span class="label label-danger">Required</span> | Your application's Client ID. | | `client_secret` | Your application's Client Secret. **Required** when the **Token Endpoint Authentication Method** field at your [Application Settings](${manage_url}/#/applications) is `Post` or `Basic`. | | `challenge_type` | A whitespace-separated list of the challenges types accepted by your application. Accepted challenge types are `oob` or `otp`. Excluding this parameter means that your client application accepts all supported challenge types. | -| `oob_channel` | **(early access users only)** The channel to use for OOB. Can only be provided when `challenge_type` is `oob`. Accepted channel types are `sms` or `auth0`. Excluding this parameter means that your client application will accept all supported OOB channels. | -| `authenticator_id` | **(early access users only)** The ID of the authenticator to challenge. You can get the ID by querying the list of available authenticators for the user as explained on [List authenticators](#list-authenticators) below. | +| `oob_channel` | The channel to use for OOB. Can only be provided when `challenge_type` is `oob`. Accepted channel types are `sms` or `auth0`. Excluding this parameter means that your client application will accept all supported OOB channels. | +| `authenticator_id` | The ID of the authenticator to challenge. You can get the ID by querying the list of available authenticators for the user as explained on [List authenticators](#list-authenticators) below. | ### Remarks @@ -115,7 +115,7 @@ If OTP is supported by the user and you don't want to request a different factor - Auth0 chooses the challenge type based on the application's supported types and types the user is enrolled with. - An `unsupported_challenge_type` error is returned if your application does not support any of the challenge types the user has enrolled with. - An `unsupported_challenge_type` error is returned if the user is not enrolled. -- **(early access only)** If the user is not enrolled, you will get a `association_required` error, indicating the user needs to enroll to use MFA. Check [Add an authenticator](#add-an-authenticator) below on how to proceed. +- If the user is not enrolled, you will get a `association_required` error, indicating the user needs to enroll to use MFA. Check [Add an authenticator](#add-an-authenticator) below on how to proceed. ### More information
2
diff --git a/src/pages/dashboard/_StateCumulativeTestsContainer.js b/src/pages/dashboard/_StateCumulativeTestsContainer.js @@ -209,8 +209,8 @@ export default function CumulativeTestsByStateContainer() { .toLowerCase() .replace(/\s/g, '-')}`} > - See all data from - {` ${stateName.replace(/\s/g, ' ')}`} + View data from + {` ${state.key}`} </a> </p> </div>
1
diff --git a/styles/modules/modals/_editListing.scss b/styles/modules/modals/_editListing.scss border-style: solid; padding: $pad; word-break: break-word; - min-width: 120px; + min-width: 90px; max-width: 125px; input[type=text] { width: 100%; } - &:last-child { - border-right-width: 0; - } - &.unconstrainedWidth { white-space: nowrap; width: auto;
9
diff --git a/src/gltf/camera.js b/src/gltf/camera.js @@ -47,7 +47,8 @@ class gltfCamera extends GltfObject } } - if(this.node === undefined) + // cameraIndexStays undefined if camera is not assigned to any node + if(this.node === undefined && cameraIndex !== undefined) { console.error("Invalid node for camera " + cameraIndex); }
2
diff --git a/src/core/vdom/patch.js b/src/core/vdom/patch.js @@ -327,6 +327,7 @@ export function createPatchFunction (backend) { function removeAndInvokeRemoveHook (vnode, rm) { if (isDef(rm) || isDef(vnode.data)) { + let i const listeners = cbs.remove.length + 1 if (isDef(rm)) { // we have a recursively passed down rm callback
7
diff --git a/lib/instrumentation/core/globals.js b/lib/instrumentation/core/globals.js var asyncHookInstrumentation = require('./async_hooks') var events = require('events') -var wrap = require('../../shimmer').wrapMethod +var logger = require('../../logger').child({component: 'globals'}) +var shimmer = require('../../shimmer') module.exports = initialize @@ -12,7 +13,7 @@ function initialize(agent) { // Node.js v0.8. We use `_fatalException` because wrapping it will not // potentially change the behavior of the server unlike listening for // `uncaughtException`. - wrap(process, 'process', '_fatalException', function wrapper(original) { + shimmer.wrapMethod(process, 'process', '_fatalException', function wrapper(original) { return function wrappedFatalException(error) { // Only record the error if we are not currently within an instrumented // domain. @@ -24,35 +25,36 @@ function initialize(agent) { } }) - wrap( - process, - 'process', - 'emit', + shimmer.wrapMethod(process, 'process', 'emit', wrapEmit) function wrapEmit(original) { return function wrappedEmit(ev, error, promise) { - // Check for unhandledRejections here so we don't change the - // behavior of the event + // Check for unhandledRejections here so we don't change the behavior of + // the event. if (ev === 'unhandledRejection' && error && !process.domain) { if (listenerCount(process, 'unhandledRejection') === 0) { - // If there are no unhandledRejection handlers report the error - var transaction = promise.__NR_segment && promise.__NR_segment.transaction - agent.errors.add(transaction, error) + // If there are no unhandledRejection handlers report the error. + var tx = promise.__NR_segment && promise.__NR_segment.transaction + logger.trace('Captured unhandled rejection for transaction %s', tx && tx.id) + agent.errors.add(tx, error) } } return original.apply(this, arguments) } } - ) - // This will initialize the most optimal native-promise instrumentation - // that we have available. + // This will initialize the most optimal native-promise instrumentation that + // we have available. asyncHookInstrumentation(agent) } function listenerCount(emitter, evnt) { - if (events.EventEmitter.listenerCount) { - return events.EventEmitter.listenerCount(emitter, evnt) + // EventEmitter#listenerCount was introduced in Node 3.2.0. The older + // EventEmitter.listenerCount was introduced in Node 0.9.12 and deprecated in + // Node 4.0.0. + // TODO: Simplify this logic when dropping Node <4. + if (emitter.listenerCount) { + return emitter.listenerCount(evnt) } - return emitter.listeners(evnt).length + return events.EventEmitter.listenerCount(emitter, evnt) }
7
diff --git a/cravat/util.py b/cravat/util.py import re import os +import importlib +import sys def get_ucsc_bins (start, stop=None): if stop is None: @@ -151,7 +153,10 @@ def get_caller_name (path): def load_class(class_name, path): """Load a class from the class's name and path. (dynamic importing)""" + path_dir = os.path.dirname(path) + sys.path = [path_dir] + sys.path spec = importlib.util.spec_from_file_location(class_name, path) mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) + del sys.path[0] return getattr(mod, class_name) \ No newline at end of file
12
diff --git a/src/utils/utils.js b/src/utils/utils.js @@ -452,16 +452,21 @@ export function checkSimpleConditional(component, condition, row, data) { if (_.isNil(value)) { value = ''; } + + value = String(value); + const eq = String(condition.eq); + const show = String(condition.show); + // Special check for selectboxes component. if (_.isObject(value) && _.has(value, condition.eq)) { - return value[condition.eq].toString() === condition.show.toString(); + return String(value[condition.eq]) === show; } // FOR-179 - Check for multiple values. - if (Array.isArray(value) && value.includes(condition.eq)) { - return (condition.show.toString() === 'true'); + if (Array.isArray(value) && value.map(String).includes(eq)) { + return show === 'true'; } - return (value.toString() === condition.eq.toString()) === (condition.show.toString() === 'true'); + return (value === eq) === (show === 'true'); } /**
7
diff --git a/userscript.user.js b/userscript.user.js @@ -81052,7 +81052,82 @@ var $$IMU_EXPORT$$; if (domain === "assets-jpcust.jwpsrv.com") { // https://assets-jpcust.jwpsrv.com/thumbnails/ere54hzk-320.jpg // https://assets-jpcust.jwpsrv.com/thumbnails/ere54hzk.jpg - return src.replace(/(\/thumbnails\/+[^-./]+)-[0-9]+(\.[^/.]+)(?:[?#].*)?$/, "$1$2"); + newsrc = src.replace(/(\/thumb(?:nail)?s\/+[^-./]+)-[0-9]+(\.[^/.]+)(?:[?#].*)?$/, "$1$2"); + match = src.match(/\/thumb(?:nail)?s\/+([a-zA-Z0-9]+)(?:-[0-9]+)?\./); + if (match) { + page = "https://content.jwplatform.com/players/" + match[1] + ".html"; + return [ + { + url: page, + is_pagelink: true + }, + { + url: newsrc, + extra: { + page: page + } + } + ]; + } else { + return newsrc; + } + } + + if (domain === "videos-cloudflare.jwpsrv.com") { + match = src.match(/\/content\/+conversions\/+[a-zA-Z0-9]+\/+videos\/+([a-zA-Z0-9]+)-[0-9]+\.mp4/); + if (match) { + return { + url: "https://content.jwplatform.com/players/" + match[1] + ".html", + is_pagelink: true + }; + } + } + + if (domain === "content.jwplatform.com") { + newsrc = website_query({ + website_regex: /^[a-z]+:\/\/[^/]+\/+(?:players|previews)\/+([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?(?:\.html)?(?:[?#].*)?$/, + query_for_id: "https://content.jwplatform.com/players/${id}.html", + process: function(done, resp, cache_key, match) { + var id = match[1]; + + var title = get_meta(resp.responseText, "og:title"); + var thumb = get_meta(resp.responseText, "og:image"); + + var obj = { + extra: { + caption: title, + page: resp.finalUrl + } + }; + + var urls = []; + + urls.push({ + url: "https://content.jwplatform.com/manifests/" + id + ".m3u8", + headers: { + Referer: src + }, + video: "hls" + }); + + var video = get_meta(resp.responseText, "og:video"); + if (video) { + urls.push({ + url: video, + video: true + }); + } + + if (thumb) { + var newthumb = thumb.replace(/(\/thumb(?:nail)?s\/+[^-./]+)-[0-9]+(\.[^/.]+)(?:[?#].*)?$/, "$1$2"); + if (newthumb !== thumb) urls.push(newthumb); + urls.push(thumb); + } + + return done(fillobj_urls(urls, obj), 6*60*60); + } + }); + if (newsrc) return newsrc; } if (domain_nowww === "k2s.cc") { @@ -93597,21 +93672,6 @@ var $$IMU_EXPORT$$; return src.replace(/(\/products\/+[0-9]+\/+.*\/[^/.?#]+?)(?:(?:\[|%5[bB])[0-9]+x[0-9]+(?:\]|%5[dD]))*(\.[^/.?#]+)(?:[?#].*)?$/, "$1$2"); } - if (domain === "content.jwplatform.com") { - newsrc = website_query({ - website_regex: /^[a-z]+:\/\/[^/]+\/+players\/+([a-zA-Z0-9]+)-[a-zA-Z0-9]+\.html(?:[?#].*)?$/, - run: function(cb, match) { - return cb({ - url: "https://content.jwplatform.com/manifests/" + match[1] + ".m3u8", - headers: { - Referer: src - }, - video: "hls" - }); - } - }); - if (newsrc) return newsrc; - }
7
diff --git a/src/index.js b/src/index.js @@ -236,7 +236,9 @@ class Dayjs { return date } if (['y', C.Y].indexOf(unit) > -1) { - return this.set(C.Y, this.$y + number) + let date = this.set(C.DATE, 1).set(C.Y, this.$y + number) + date = date.set(C.DATE, Math.min(this.$D, date.daysInMonth())) + return date } let step switch (unit) {
1
diff --git a/data.js b/data.js @@ -1394,6 +1394,14 @@ module.exports = [{ url: "https://github.com/Cedriking/is.js", source: "https://raw.githubusercontent.com/Cedriking/is.js/master/is.js" }, + { + name: "wavyjs", + github: "northeastnerd/wavyjs", + tags: ["audio", "wav", "sound", "html5", "RIFF"], + description: "Zero dependency javascript RIFF Wav file manipulation routines.", + url: "https://github.com/northeastnerd/wavyjs", + source: "https://raw.githubusercontent.com/northeastnerd/wavyjs/master/wavyjs.min.js" + }, { name: "jBone", github: "kupriyanenko/jbone",
0
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/fileupload/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/fileupload/template.vue @@ -82,9 +82,14 @@ export default { setUploadProgress(percentCompleted){ this.uploadProgress = percentCompleted if(percentCompleted === 100){ - $perAdminApp.notifyUser('Success', 'File uploaded successfully.', ()=>{this.uploadProgress = 0}) + $perAdminApp.notifyUser( + 'Success', + 'File uploaded successfully.', + ()=>{ + this.uploadProgress = 0 + }) + } } - }, } }
7
diff --git a/package.json b/package.json "babel-loader": "^6.2.1", "babel-plugin-react-transform": "^2.0.0", "babel-plugin-syntax-object-rest-spread": "^6.3.13", - "babel-plugin-tailcall-optimization": "^1.0.11", + "babel-plugin-tailcall-optimization": "^1.0.12", "babel-plugin-transform-object-rest-spread": "^6.3.13", "babel-polyfill": "^6.3.14", "babel-preset-es2015": "^6.3.13",
7
diff --git a/assets/js/googlesitekit/widgets/components/WidgetRenderer.test.js b/assets/js/googlesitekit/widgets/components/WidgetRenderer.test.js /** * Internal dependencies */ -import Widget from './WidgetRenderer'; +import WidgetRenderer from './WidgetRenderer'; import { STORE_NAME } from '../datastore/constants'; import { render } from '../../../../../tests/js/test-utils'; @@ -38,14 +38,14 @@ const setupRegistry = ( { component = () => <div>Test</div>, dispatch } ) => { describe( 'WidgetRenderer', () => { it( 'should output children directly', async () => { - const { container } = render( <Widget slug="TestWidget" />, { setupRegistry } ); + const { container } = render( <WidgetRenderer slug="TestWidget" />, { setupRegistry } ); expect( Object.values( container.firstChild.classList ) ).toEqual( [] ); expect( container.firstChild ).toMatchSnapshot(); } ); it( 'should output null when no slug is found', async () => { - const { container } = render( <Widget slug="NotFound" />, { setupRegistry } ); + const { container } = render( <WidgetRenderer slug="NotFound" />, { setupRegistry } ); expect( container.firstChild ).toEqual( null ); } );
10
diff --git a/framer/Layer.coffee b/framer/Layer.coffee @@ -58,6 +58,7 @@ layerProperty = (obj, name, cssProperty, fallback, validator, transformer, optio elementContainer = @ if cssProperty in @_stylesAppliedToParent elementContainer = @parent + @_parent._properties[name] = fallback mainElement = elementContainer._element if includeMainElement or not targetElement subElement = elementContainer[targetElement] if targetElement? if name is cssProperty and not LayerStyle[cssProperty]?
12
diff --git a/src/components/lights/HemisphereLight.js b/src/components/lights/HemisphereLight.js @@ -2,11 +2,15 @@ import {HemisphereLight as HemisphereLightNative, HemisphereLightHelper} from 't import {LightComponent} from '../../core/LightComponent'; class HemisphereLight extends LightComponent { - // static helpers = { - // default: [HemisphereLightHelper, { - // size: 0 - // }, ['size']] - // }; + static defaults = { + ...LightComponent.defaults, + light: { + skyColor: 0xffffff, + groundColor: 0xffffff, + + intensity: 1 + } + } constructor(params = {}) { super(params);
3
diff --git a/src/components/victory-line/helper-methods.js b/src/components/victory-line/helper-methods.js @@ -60,7 +60,7 @@ export default { dataset = []; } - const dataSegments = this.getDataSegments(dataset, props.sortKey); + const dataSegments = this.getDataSegments(dataset); const range = { x: Helpers.getRange(props, "x"), @@ -88,20 +88,19 @@ export default { return defaults({}, labelStyle, {opacity, fill, padding}); }, - getDataSegments(dataset, sortKey = "x") { - const orderedData = sortBy(dataset, `_${sortKey}`); + getDataSegments(dataset) { const segments = []; let segmentStartIndex = 0; let segmentIndex = 0; - for (let index = 0, len = orderedData.length; index < len; index++) { - const datum = orderedData[index]; + for (let index = 0, len = dataset.length; index < len; index++) { + const datum = dataset[index]; if (datum._y === null || typeof datum._y === "undefined") { - segments[segmentIndex] = orderedData.slice(segmentStartIndex, index); + segments[segmentIndex] = dataset.slice(segmentStartIndex, index); segmentIndex++; segmentStartIndex = index + 1; } } - segments[segmentIndex] = orderedData.slice(segmentStartIndex, orderedData.length); + segments[segmentIndex] = dataset.slice(segmentStartIndex, dataset.length); return segments.filter((segment) => { return Array.isArray(segment) && segment.length > 0; });
4
diff --git a/elements/simple-login/lib/simple-camera-snap.js b/elements/simple-login/lib/simple-camera-snap.js @@ -93,6 +93,15 @@ class SimpleCameraSnap extends HTMLElement { const selfie = this.shadowRoot.querySelector("#selfie"); selfie.innerHTML = ""; selfie.appendChild(img); + // throw up event for other things to find the image + this.dispatchEvent( + new CustomEvent("simple-camera-snap-image", { + bubbles: true, + composed: true, + cancelable: true, + detail: img + }) + ); selfie.classList.add("has-snap"); } clearPhoto(e) {
11
diff --git a/src/Appwrite/Utopia/Request/Filters/V12.php b/src/Appwrite/Utopia/Request/Filters/V12.php @@ -9,53 +9,121 @@ class V12 extends Filter // Convert 0.11 params format to 0.12 format public function parse(array $content, string $model): array { - $parsedResponse = []; + // TODO: Double-check! switch ($model) { // No IDs -> Custom IDs case "account.create": case "account.createMagicURLSession": case "users.create": - $parsedResponse = $this->addId('userId', $content); + $content = $this->addId($content, 'userId'); break; case "functions.create": - $parsedResponse = $this->addId('functionId', $content); + $content = $this->addId($content, 'functionId'); break; case "teams.create": - $parsedResponse = $this->addId('teamId', $content); + $content = $this->addId($content, 'teamId'); break; // Status integer -> boolean case "users.updateStatus": - $parsedResponse = $this->convertStatus($content); + $content = $this->convertStatus($content); + break; + + // Deprecating order type + case "functions.listExecutions": + $content = $this->removeOrderType($content); break; // The rest (more complex) formats case "database.createDocument": - $parsedResponse = $this->addId('documentId', $content); + $content = $this->addId($content, 'documentId'); + $content = $this->removeParentProperties($content); + break; + case "database.listDocuments": + $content = $this->removeOrderCast($content); + $content = $this->convertOrder($content); + $content = $this->convertQueries($content); break; case "database.createCollection": - $parsedResponse = $this->addId('collectionId', $content); + $content = $this->addId($content, 'collectionId'); + $content = $this->removeRules($content); + $content = $this->addCollectionPermissionLevel($content); + break; + case "database.updateCollection": + $content = $this->removeRules($content); + $content = $this->addCollectionPermissionLevel($content); break; } - if(empty($parsedResponse)) { - // No changes between current version and the one user requested - $parsedResponse = $content; + return $content; } - return $parsedResponse; - } + // New parameters - protected function addUserId(string $key, array $content): array + protected function addUserId(array $content, string $key): array { $content[$key] = 'unique()'; return $content; } + protected function addCollectionPermissionLevel(array $content): array + { + $content['permission'] = 'document'; + return $content; + } + + // Deprecated parameters + + protected function removeRules(array $content): array + { + unset($content['rules']); + return $content; + } + + protected function removeOrderType(array $content): array + { + unset($content['orderType']); + return $content; + } + + protected function removeOrderCast(array $content): array + { + unset($content['orderCast']); + return $content; + } + + protected function removeParentProperties(array $content): array + { + unset($content['parentDocument']); + unset($content['parentProperty']); + unset($content['parentPropertyType']); + return $content; + } + + // Modified parameters + protected function convertStatus(array $content): array { - $content['status'] = 'false'; // TODO: True or false. original is integer + $content['status'] = $content['status'] === 2 ? false : true; + return $content; + } + + protected function convertOrder(array $content): array + { + $content['orderAttributes'] = [ $content['orderField'] ]; + $content['orderTypes'] = [ $content['orderType'] ]; + + unset($content['orderField']); + unset($content['orderType']); + + return $content; + } + + protected function convertQueries(array $content): array + { + // TODO: remove filters, search; add queries + return $content; } }
7
diff --git a/package.json b/package.json "url": "https://opencollective.com/redom", "logo": "https://opencollective.com/redom/logo.txt" }, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/redom" + } + ], "types": "index.d.ts" }
0
diff --git a/generators/server/templates/pom.xml.ejs b/generators/server/templates/pom.xml.ejs <%_ } _%> <!-- Plugin versions --> <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version> + <maven-site-plugin.version>3.7.1</maven-site-plugin.version> <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> <maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version> <artifactId>maven-clean-plugin</artifactId> <version>${maven-clean-plugin.version}</version> </plugin> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin.version}</version> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId>
3
diff --git a/token-metadata/0x0A913beaD80F321E7Ac35285Ee10d9d922659cB7/metadata.json b/token-metadata/0x0A913beaD80F321E7Ac35285Ee10d9d922659cB7/metadata.json "symbol": "DOS", "address": "0x0A913beaD80F321E7Ac35285Ee10d9d922659cB7", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/item-spec/json-schema/item.json b/item-spec/json-schema/item.json "title": "STAC Item", "type": "object", "description": "This object represents the metadata for an item in a SpatioTemporal Asset Catalog.", - "additionalProperties": true, "allOf": [ { "$ref": "#/definitions/core"
2
diff --git a/tests/connectors/kollekt.js b/tests/connectors/kollekt.js 'use strict'; -module.exports = function(driver, connectorSpec) { - // Auth is required - connectorSpec.shouldLoadWebsite(driver, { +module.exports = (driver, spec) => { + spec.shouldLoadWebsite(driver, { url: 'https://kollekt.fm/' }); + + spec.shouldBehaveLikeMusicSite(driver, { + url: 'https://community.kollekt.fm/playlist/16885', + playButtonSelector: '.fa-play' + }); };
7
diff --git a/src/govuk/components/accordion/accordion.js b/src/govuk/components/accordion/accordion.js @@ -94,7 +94,7 @@ Accordion.prototype.initSectionHeaders = function () { nodeListForEach(this.$sections, function ($section, i) { // Set header attributes var $header = $section.querySelector('.' + this.sectionHeaderClass) - this.initHeaderAttributes($header, i) + this.constructHeaderMarkup($header, i) this.setExpanded(this.isExpanded($section), $section) // Handle events @@ -106,8 +106,7 @@ Accordion.prototype.initSectionHeaders = function () { }.bind(this)) } -// Set individual header attributes -Accordion.prototype.initHeaderAttributes = function ($headerWrapper, index) { +Accordion.prototype.constructHeaderMarkup = function ($headerWrapper, index) { var $span = $headerWrapper.querySelector('.' + this.sectionButtonClass) var $heading = $headerWrapper.querySelector('.' + this.sectionHeadingClass) var $summary = $headerWrapper.querySelector('.' + this.sectionSummaryClass)
10
diff --git a/src/lib/realmdb/feedSource/NewsSource.js b/src/lib/realmdb/feedSource/NewsSource.js @@ -111,6 +111,8 @@ export default class NewsSource extends FeedSource { if ('DOCUMENT_NOT_FOUND' !== exception.name) { throw exception } + + log.warn('imported ceramic feed item not exists', exception.message, exception, { postId, action }) } if (post) {
0
diff --git a/controls_fhemtabletui.txt b/controls_fhemtabletui.txt @@ -52,7 +52,7 @@ UPD 2017-12-22_09:57:40 5722 www/tablet/js/widget_select.js UPD 2018-08-16_07:43:39 9665 www/tablet/js/widget_popup.js UPD 2018-12-03_21:14:03 2672 www/tablet/js/widget_tts.js UPD 2018-11-06_22:35:11 9772 www/tablet/js/widget_html.js -UPD 2018-09-28_03:09:44 50163 www/tablet/js/fhem-tablet-ui.min.js +UPD 2019-01-25_07:15:18 50023 www/tablet/js/fhem-tablet-ui.min.js UPD 2017-09-22_08:48:55 7740 www/tablet/js/widget_controller.js UPD 2017-02-28_22:04:09 8209 www/tablet/js/widget_highchart3d.js UPD 2017-11-19_14:35:00 21234 www/tablet/js/highcharts-meteogram.js @@ -83,7 +83,7 @@ UPD 2018-08-21_23:58:12 18187 www/tablet/js/widget_calview.js UPD 2017-02-11_14:27:26 8419 www/tablet/js/widget_itunes_artwork.js UPD 2017-02-11_14:27:26 1493 www/tablet/js/widget_loading.js UPD 2018-01-21_14:59:59 9875 www/tablet/js/widget_settimer.js -UPD 2018-11-04_17:25:19 98066 www/tablet/js/fhem-tablet-ui.js +UPD 2019-01-25_07:09:09 97744 www/tablet/js/fhem-tablet-ui.js UPD 2018-01-21_14:50:53 5053 www/tablet/js/widget_controlbutton.js UPD 2018-10-02_23:13:57 1776 www/tablet/js/widget_push.js UPD 2018-09-29_22:33:53 5838 www/tablet/js/widget_playstream.js
1
diff --git a/app/core/src/navigation/HotelsStack.js b/app/core/src/navigation/HotelsStack.js @@ -75,8 +75,8 @@ export default { onGoToHotelGallery={goToGalleryGrid} search={{ // FIXME: we need to solve how to pass these data from search or map - // After GraphQL merge-request !564 is merged, change this to aG90ZWw6MjUyMTU= - hotelId: 'SG90ZWxBdmFpbGFiaWxpdHk6MjUyMTU=', + // After GraphQL merge-request !564 is merged, change this to aG90ZWw6NzcwOTQ= + hotelId: 'SG90ZWxBdmFpbGFiaWxpdHk6NzcwOTQ=', checkin: new Date('2018-03-01'), checkout: new Date('2018-03-08'), roomsConfiguration: [
4
diff --git a/src/utils.js b/src/utils.js @@ -378,6 +378,8 @@ const extractUrls = ({ string, urlRegExp = URL_NO_COMMAS_REGEX }) => { /** * Returns a randomly selected User-Agent header out of a list of the most common headers. + * @returns {String} + * @memberOf utils */ const getRandomUserAgent = () => { const index = getRandomInt(USER_AGENT_LIST.length);
7
diff --git a/token-metadata/0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e/metadata.json b/token-metadata/0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e/metadata.json "symbol": "MOD", "address": "0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e", "decimals": 0, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/parser/vast_parser.js b/src/parser/vast_parser.js @@ -312,7 +312,8 @@ export class VASTParser extends EventEmitter { this.emit('VAST-ad-parsed', { type: result.type, url, - wrapperDepth + wrapperDepth, + adIndex: ads.length - 1 }); } else { // VAST version of response not supported.
0
diff --git a/metaverse-modules.js b/metaverse-modules.js @@ -19,6 +19,7 @@ const moduleUrls = { cameraPlaceholder: './metaverse_modules/camera-placeholder/', targetReticle: './metaverse_modules/target-reticle/', halo: './metaverse_modules/halo/', + meshLodItem: './metaverse_modules/mesh-lod-item/', }; const modules = {}; const loadPromise = (async () => {
0
diff --git a/src/os/layer/preset/layerpresetmanager.js b/src/os/layer/preset/layerpresetmanager.js @@ -156,13 +156,16 @@ class LayerPresetManager extends Disposable { * @protected */ onLayerStyleChanged(layerId, layer, check, event) { - const meta = /** @type {!LayerPresetsMetaData} */ (this.presets_.entry(layerId)[2]); + const regEntry = this.presets_.entry(layerId); + if (regEntry !== null) { + const meta = /** @type {!LayerPresetsMetaData} */ (regEntry[2]); // get the debouncer for this layerId if (meta && !meta.debouncer.isDisposed()) { meta.debouncer.fire(check, event); } } + } /** * Handle layer style changed.
1
diff --git a/packages/yoroi-extension/features/support.feature b/packages/yoroi-extension/features/support.feature @@ -8,7 +8,7 @@ Feature: Wallet UI Support Then Revamp. I switch to revamp version And I should see the Support button -@support-1 +@support-1 @ignore Scenario: Contact Support successful When I click on Support button And I send a new Support request with text "Autotests. This is the test message from the extension."
8
diff --git a/framer/TextLayer.coffee b/framer/TextLayer.coffee @@ -38,6 +38,7 @@ class exports.TextLayer extends Layer fontSize: 40 fontWeight: 400 lineHeight: 1.25 + font: options.fontFamily ? @defaultFont() super options @@ -51,11 +52,6 @@ class exports.TextLayer extends Layer # Reset width and height @autoSize() - print @defaultFont() - - # Set defaults - @fontFamily = @defaultFont() - for key, value of options if _.isFunction(value) and @[key]? @[key] = value @@ -73,7 +69,6 @@ class exports.TextLayer extends Layer @on "change:height", @updateExplicitHeight defaultFont: => - # Store current device @_currentDevice = Framer.Device.deviceType @@ -139,7 +134,7 @@ class exports.TextLayer extends Layer @style.padding = "#{@_padding.top}px #{@_padding.right}px #{@_padding.bottom}px #{@_padding.left}px" - @define "fontFamily", layerProperty(@, "fontFamily", "fontFamily", null, _.isString, {}, (layer, value) -> layer.font = value) + @define "fontFamily", layerProperty(@, "fontFamily", "fontFamily", null, _.isString, null, (layer, value) -> layer.font = value) @define "fontSize", layerProperty(@, "fontSize", "fontSize", null, _.isNumber) @define "fontWeight", layerProperty(@, "fontWeight", "fontWeight") @define "fontStyle", layerProperty(@, "fontStyle", "fontStyle", "normal", _.isString)
12
diff --git a/src/traces/contour/plot.js b/src/traces/contour/plot.js @@ -273,8 +273,16 @@ function makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, perimeter) { lineContainer.enter().append('g') .classed('contourlines', true); + var showLines = contours.showlines !== false; + var showLabels = contours.showlabels; + var clipLinesForLabels = showLines && showLabels; + + // Even if we're not going to show lines, we need to create them + // if we're showing labels, because the fill paths include the perimeter + // so can't be used to position the labels correctly. + // In this case we'll remove the lines after making the labels. var linegroup = lineContainer.selectAll('g.contourlevel') - .data(contours.showlines === false ? [] : pathinfo); + .data(showLines || showLabels ? pathinfo : []); linegroup.enter().append('g') .classed('contourlevel', true); linegroup.exit().remove(); @@ -303,11 +311,10 @@ function makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, perimeter) { .style('stroke-miterlimit', 1) .style('vector-effect', 'non-scaling-stroke'); - var showLabels = contours.showlabels; - var clipId = showLabels ? 'clipline' + cd0.trace.uid : null; + var clipId = clipLinesForLabels ? 'clipline' + cd0.trace.uid : null; var lineClip = defs.select('.clips').selectAll('#' + clipId) - .data(showLabels ? [0] : []); + .data(clipLinesForLabels ? [0] : []); lineClip.exit().remove(); lineClip.enter().append('clipPath') @@ -440,11 +447,14 @@ function makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, perimeter) { .call(Drawing.font, contours.font.family, contours.font.size); }); + if(clipLinesForLabels) { var lineClipPath = lineClip.selectAll('path').data([0]); lineClipPath.enter().append('path'); lineClipPath.attr('d', labelClipPathData); } + } + if(showLabels && !showLines) linegroup.remove(); } function straightClosedPath(pts) {
11
diff --git a/extensions/README.md b/extensions/README.md @@ -43,7 +43,8 @@ the Item Asset objects contained in the Item, but may also be used in an individ ## Core STAC Extensions -These extensions are considered stable, and are included directly in this repository. +These extensions are considered stable and are widely used in many production implementations. As additional extensions advance +through the [Extension Maturity](#extension-maturity) classification they will be added here. | Extension Title | Identifier | Field Name Prefix | Scope | Description | |---------------------------------------------|------------|-------------------|------------------|-------------| @@ -54,33 +55,14 @@ These extensions are considered stable, and are included directly in this reposi ## Community Extensions -There are many more extensions that the broader STAC community is working on. These aren't included directly in the -main repository as many are still evolving through active usage. But they are listed here. - -### List of STAC Community Extensions - -This is a list of all known STAC Community extensions. It is currently more oriented to general domains, but it will include -more data provider specific extensions in the future as well. Any extension with documentation and a published schema -is encouraged to list here. - -| Extension Title | Identifier | Field Name Prefix | Scope | Description | -| ------------------------------------------------ | ----------------- | ------------------- | ------------------------- | ----------- | -| [CARD4L](https://github.com/stac-extensions/card4l) | card4l | card4l | Item | How to comply to the CEOS CARD4L product family specifications (Optical and SAR) | -| [Data Cube](https://github.com/stac-extensions/datacube) | datacube | cube | Item, Collection | Data Cube related metadata, especially to describe their dimensions. | -| [File Info](https://github.com/stac-extensions/file) | file | file | Item, Collection | Provides a way to specify file details such as size, data type and checksum for assets in Items and Collections. | -| [Item Asset Definition](https://github.com/stac-extensions/item-assets) | item-assets | - | Collection | Provides a way to specify details about what assets may be found in Items belonging to a Collection. | -| [Label](https://github.com/stac-extensions/label) | label | label | Item, Collection | Items that relate labeled AOIs with source imagery | -| [Point Cloud](https://github.com/stac-extensions/pointcloud) | pointcloud | pc | Item, Collection | Provides a way to describe point cloud datasets. The point clouds can come from either active or passive sensors, and data is frequently acquired using tools such as LiDAR or coincidence-matched imagery. | -| [Processing](https://github.com/stac-extensions/processing) | processing | processing | Item, Collection | Indicates from which processing chain data originates and how the data itself has been produced. | -| [SAR](https://github.com/stac-extensions/sar) | sar | sar | Item, Collection | Covers synthetic-aperture radar data that represents a snapshot of the earth for a single date and time. | -| [Single File STAC](https://github.com/stac-extensions/single-file-stac) | single-file-stac | - | Catalog | An extension to provide a set of Collections and Items within a single file STAC. | -| [Tiled Assets](https://github.com/stac-extensions/tiled-assets) | tiled-assets | tiles | Item, Catalog, Collection | Allows to specify numerous assets using asset templates via tile matrices and dimensions. | -| [Timestamps](https://github.com/stac-extensions/timestamps) | timestamps | - | Item, Collection | Allows to specify numerous timestamps for assets and metadata. | -| [Versioning Indicators](https://github.com/stac-extensions/version) | version | - | Item, Collection | Provides fields and link relation types to provide a version and indicate deprecation. | +There are many more extensions that are part of the broader STAC ecosystem. The center of activity for these is the +[stac-extensions GitHub org](https://github.com/stac-extensions), which has a number of extension repositories. For +an overview of all extensions with their [Extension Maturity](#extension-maturity) classification see the +[STAC extensions overview page](https://stac-extensions.github.io/). ### Proposed extensions -Beyond the list above there have been a number of extensions that people have proposed to the STAC community. These +Beyond the community extensions there have been a number of extensions that people have proposed to the STAC community. These can be found in the STAC [Issue Tracker](https://github.com/radiantearth/stac-spec/issues) under the [new extension](https://github.com/radiantearth/stac-spec/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+extension%22) label. These are ideas that others would likely use and potentially collaborate on. Anyone is free to add new
2
diff --git a/src/core/core.js b/src/core/core.js @@ -1384,6 +1384,7 @@ Crafty._addCallbackMethods(Crafty); Crafty.extend({ // Define Crafty's id 0: "global", + /**@ * #Crafty.init * @category Core @@ -1426,6 +1427,64 @@ Crafty.extend({ return this; }, + /**@ + * #Crafty.initAsync + * @category Core + * @kind Method + * + * @trigger Load - Just after the viewport is initialised. Before the UpdateFrame loops is started + * @sign public this Crafty.initAsync([Array loaders], [Number width, Number height, String stage_elem]) + * @param Array loaders An array that can contain a mix of Promises, or functions that Promises + * @param Number width - Width of the stage + * @param Number height - Height of the stage + * @param String or HTMLElement stage_elem - the element to use for the stage + * + * A version of Crafty.init that uses Promises to load any needed resources before initialization. + * + * The first argument is an array of either Promises, or functions that return promises. + * In the second case, a Promise will be generated by invoking the function with the current Crafty instance as an argument. + * (The array can be a mixture of the two types.) + * + * Once all promises are ready, and the document itself has loaded, Crafty.init will be invoked with the `w`, `h`, and `stage_elem` arguments. + * + * The method returns a Promise whose fufillment is an array of each passed promises fufillment, + * and whose rejection is the rejection of the first promise to fail. (Essentially the same as Promise.all) + * + * @see Crafty.init + */ + initAsync: function(loaders, w, h, stage_elem) { + // first argument is optional + if (typeof loaders !== "object") { + stage_elem = h; + h = w; + w = loaders; + loaders = []; + } + + var promises = []; + for (var i in loaders) { + if (typeof loaders[i] === "function") { + promises.push(loaders[i](Crafty)); + } else { + promises.push(loaders[i]); + } + } + + // wait for document loading if necessary + if (document.readyState !== "complete") { + var window_load = new Promise(function(resolve, reject) { + window.onload = resolve; + promises.push(window_load); + }); + } + + return Promise.all(promises).then(function(values) { + Crafty.init(w, h, stage_elem); + // Return results only for promises passed in with the loaders array + return values.slice(0, loaders.length); + }); + }, + // There are some events that need to be bound to Crafty when it's started/restarted, so store them here // Switching Crafty's internals to use the new system idiom should allow removing this hack _bindOnInit: [],
0
diff --git a/app/models/daos/slick/UserDAOSlick.scala b/app/models/daos/slick/UserDAOSlick.scala @@ -486,7 +486,7 @@ object UserDAOSlick { // Map(user_id: String -> (most_recent_sign_in_time: Option[Timestamp], sign_in_count: Int)). val signInTimesAndCounts = - WebpageActivityTable.activities.filter(_.activity inSet List("SignIn")) + WebpageActivityTable.activities.filter(_.activity inSet List("AnonAutoSignUp", "SignIn")) .groupBy(_.userId).map{ case (_userId, group) => (_userId, group.map(_.timestamp).max, group.length) } .list.map{ case (_userId, _time, _count) => (_userId, (_time, _count)) }.toMap
13
diff --git a/src/utils/wallet.js b/src/utils/wallet.js @@ -932,7 +932,7 @@ class Wallet { } } - async signAndSendTransactions(transactions, accountId) { + async signAndSendTransactions(transactions, accountId = this.accountId) { const account = await this.getAccount(accountId); store.dispatch(setSignTransactionStatus('in-progress'));
11