code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/articles/migrations/index.md b/articles/migrations/index.md @@ -25,6 +25,29 @@ If you need help with the migration, create a ticket in our [Support Center](${e Current migrations are listed below, newest first. For migrations that have already been enabled see [Past Migrations](#past-migrations). +### Whitelisting IP Address Ranges + +| Severity | Grace Period Start | Mandatory Opt-In| +| --- | --- | --- | +| Low | 2017-08-22 | 2017-09-30 | + +Auth0 is expanding into new global regions, and traffic originating from these regions will have new IP addresses. If you are whitelisting IP addresses, you will need to add the new addresses to your firewall rules. + +#### Am I affected by the change? + +If you are using a custom database connection, rule, and/or custom email provider that connects to your environment, **and** you have implemented firewall restrictions for IP address ranges, then you are affected by this change. You will need to make sure the following IP addresses are in your firewall rules: + +``` +13.54.254.182, 13.55.232.24, 13.210.52.131, 35.156.51.163, 35.157.221.52, 35.160.3.103, +35.166.202.113, 35.167.200.3, 35.167.74.121, 34.253.4.94, 52.16.193.66, 52.16.224.164, +52.28.184.187, 52.28.212.16, 52.28.45.240, 52.28.56.226, 52.29.176.99, 52.36.51.33, +52.39.222.143, 52.50.106.250, 52.57.230.214, 52.62.91.160, 52.63.36.78, 52.64.111.197, +52.64.120.184, 52.64.84.177, 52.70.240.59, 52.211.56.181, 52.213.216.142, 52.213.38.246, +52.213.74.69, 54.66.205.24, 54.79.46.4, 54.153.131.0 +``` + +If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_URL_SUPPORT}). + ### CDN provider migration in the Europe and Australia environments | Severity | Grace Period Start | Mandatory Opt-In| @@ -43,7 +66,11 @@ This change shouldn't cause any disruption or change in behavior in your applica If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_URL_SUPPORT}). -### Whitelisting IP Address Ranges +## Past Migrations + +These are migrations that have already been enabled for all customers. + +### Whitelisting IP Address Ranges (Q1 2017) | Severity | Grace Period Start | Mandatory Opt-In| | --- | --- | --- | @@ -65,10 +92,6 @@ If you are using a custom database connection, rule, and/or custom email provide If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_URL_SUPPORT}). -## Past Migrations - -These are migrations that have already been enabled for all customers. - ### Vulnerable Password Flow | Severity | Grace Period Start | Mandatory Opt-In|
0
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,14 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master where X.Y.Z is the semver of most recent plotly.js release. +## [1.36.1] -- 2018-04-18 + +### Fixed +- Fix `scattergl` in dist and CDN bundles + (due to `browser-pack-flat` discrepancy introduced in 1.36.0) + by removing `browser-pack-flat` from our bundling pipeline [#2572] + + ## [1.36.0] -- 2018-04-17 ### Added
3
diff --git a/src/web/store/index.js b/src/web/store/index.js @@ -69,6 +69,10 @@ const persist = (data) => { }; const normalizeState = (state) => { + // + // Normalize workspace widgets + // + // Keep default widgets unchanged const defaultList = get(defaultState, 'workspace.container.default.widgets'); set(state, 'workspace.container.default.widgets', defaultList); @@ -99,6 +103,17 @@ const normalizeState = (state) => { set(state, 'workspace.container.primary.widgets', primaryList); set(state, 'workspace.container.secondary.widgets', secondaryList); + // + // Remember configured axes (#416) + // + const configuredAxes = ensureArray(get(cnc.state, 'widgets.axes.axes')); + const defaultAxes = ensureArray(get(defaultState, 'widgets.axes.axes')); + if (configuredAxes.length > 0) { + set(state, 'widgets.axes.axes', configuredAxes); + } else { + set(state, 'widgets.axes.axes', defaultAxes); + } + return state; };
1
diff --git a/src/kiri-mode/cam/topo.js b/src/kiri-mode/cam/topo.js @@ -212,38 +212,7 @@ class Topo { lastP = undefined; } - function rastering(slices) { - if (!topo.raster) { - console.log(widget.id, 'topo raster cached'); - return topo.box; - } - - topo.raster = false; - topo.box = new THREE.Box2(); - - let gridx = 0; - for (let slice of slices) { - newslices.push(slice); - slice.points = raster_slice({ - lines: slice.lines, - box: topo.box, - data, - resolution, - curvesOnly, - flatness, - zMin, - minY, - maxY, - stepsY, - slice, - gridx: gridx++ - }); - onupdate(++stepsTaken, stepsTotal, "raster surface"); - } - - } - - function contouring(slices) { + function contouring() { let gridx = 0, gridy, gridi, // index @@ -360,6 +329,8 @@ class Topo { } } + const box = topo.box = new THREE.Box2(); + const params = { resolution, curvesOnly, @@ -368,13 +339,13 @@ class Topo { minY, maxY, zMin, - data + data, + box }; - const slices2 = await this.topo_slice(widget, params); + await this.topo_slice(widget, params); - rastering(slices2); - contouring(slices2); + contouring(); ondone(newslices); return this; @@ -389,6 +360,7 @@ class Topo { const minions = kiri.minions; const vertices = widget.getGeoVertices().toShared(); const range = { min: Infinity, max: -Infinity }; + const { box } = params; // swap XZ in shared array for (let i=0,l=vertices.length; i<l; i += 3) { @@ -424,7 +396,7 @@ class Topo { // console.log({ put_cache_done: data }); }}); - let ps = slices.map((slice, index) => { + let promises = slices.map((slice, index) => { return new Promise(resolve => { minions.queue({ cmd: "topo_slice", @@ -437,41 +409,34 @@ class Topo { }); }); - slices = (await Promise.all(ps)) - .map(rec => rec.res) - .flat() - .sort((a,b) => a[0] - b[0]) - .map(rec => { - let slice = kiri.newSlice(rec[0]); - slice.index = rec[1]; - let lines = slice.lines = []; - for (let i=2, l=rec.length; i<l; ) { - lines.push( - base.newLine( - base.newPoint(rec[i++], rec[i++], rec[i++]), - base.newPoint(rec[i++], rec[i++], rec[i++]) - ) - ); - } - return slice; + // merge boxes for all rasters for contouring clipping + (await Promise.all(promises)) + .map(rec => rec.box) + .map(box => new THREE.Box2( + new THREE.Vector2(box.min.x, box.min.y), + new THREE.Vector2(box.max.x, box.max.y) + )) + .map(box2 => { + box.union(box2); + return box2; }); dispatch.clearCache({}, { done: data => { // console.log({ clear_cache_done: data }); }}); console.timeEnd('new topo slice minion'); - return slices; } else { console.time('new topo slice'); // iterate over shards, merge output - const output = []; + // const output = []; for (let slice of slices) { - const res = new kiri.topo_slicer(slice.index) + new kiri.topo_slicer(slice.index) .setFromArray(vertices, slice) .slice(resolution) .map(rec => { + const slice = kiri.newSlice(rec.z); slice.index = rec.index; slice.lines = rec.lines; @@ -480,13 +445,18 @@ class Topo { if (!p1.swapped) { p1.swapXZ(); p1.swapped = true } if (!p2.swapped) { p2.swapXZ(); p2.swapped = true } } + + raster_slice({ + ...params, + box, + lines: rec.lines, + gridx: rec.index + }); + return slice; }); - output.appendAll(res); } - output.sort((a,b) => a.z - b.z); console.timeEnd('new topo slice'); - return output; } } @@ -595,33 +565,28 @@ moto.broker.subscribe("minion.started", msg => { const { id, slice, params } = data; const { resolution } = params; const vertices = cache[id]; - const res = new kiri.topo_slicer(slice.index) + const box = new THREE.Box2(); + new kiri.topo_slicer(slice.index) .setFromArray(vertices, slice) .slice(resolution) - .map(rec => { + .forEach(rec => { const { z, index, lines } = rec; - const ret = [ z, index ]; for (let line of lines) { const { p1, p2 } = line; if (!p1.swapped) { p1.swapXZ(); p1.swapped = true } if (!p2.swapped) { p2.swapXZ(); p2.swapped = true } - ret.push(p1.x, p1.y, p1.z); - ret.push(p2.x, p2.y, p2.z); } - // const box = new THREE.Box2(); - // const points = raster_slice({ - // ...params, - // box, - // lines, - // gridx: index - // }); - // console.log({ box, points }); - - return ret; + raster_slice({ + ...params, + box, + lines, + gridx: index + }); }); - reply({ seq, res }); + // only pass back bounds of rasters to be merged + reply({ seq, box }); }; });
2
diff --git a/articles/quickstart/native/ionic/02-custom-login.md b/articles/quickstart/native/ionic/02-custom-login.md @@ -22,7 +22,7 @@ If you are using social logins, you can also launch the login screen for a parti To implement a custom login screen, the **auth0.js** library and **angular-auth0** wrapper are required. Install these packages, along with angular-jwt, and add them to your project. ```bash -bower install auth0.js#7.6.1 angular-auth0#1.0.6 angular-jwt +bower install auth0.js#8.6.1 angular-auth0#1.0.7 angular-jwt ``` ```html
3
diff --git a/token-metadata/0x3408B204d67BA2dBcA13b9C50e8a45701d8a1cA6/metadata.json b/token-metadata/0x3408B204d67BA2dBcA13b9C50e8a45701d8a1cA6/metadata.json "symbol": "SVB", "address": "0x3408B204d67BA2dBcA13b9C50e8a45701d8a1cA6", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/core/Core.js b/src/core/Core.js @@ -277,7 +277,7 @@ class Uppy { }) .catch((err) => { this.emit('informer', err, 'error', 5000) - Promise.reject(`onBeforeFileAdded: ${err}`) + return Promise.reject(`onBeforeFileAdded: ${err}`) }) } @@ -684,7 +684,10 @@ class Uppy { this.emit('core:success', waitingFileIDs) }) }) - .catch((err) => Promise.reject(`onBeforeUpload: ${err}`)) + .catch((err) => { + this.emit('informer', err, 'error', 5000) + return Promise.reject(`onBeforeUpload: ${err}`) + }) } }
0
diff --git a/src/core/ChefWorker.js b/src/core/ChefWorker.js @@ -112,6 +112,16 @@ async function bake(data) { }) }); } catch (err) { + if (err instanceof DOMException) { + self.postMessage({ + action: "bakeError", + data: { + error: err.message, + id: data.id, + inputNum: data.inputNum + } + }); + } else { self.postMessage({ action: "bakeError", data: { @@ -121,6 +131,7 @@ async function bake(data) { } }); } + } self.inputNum = -1; }
0
diff --git a/demos/generator/typed.html b/demos/generator/typed.html <link rel="stylesheet" href="style.css"> <script type="text/javascript" src="../../blockly_uncompressed.js"></script> -<!-- - <script type="text/javascript" src="../../blocks_compressed.js"></script> ---> +<!-- <script type="text/javascript" src="../../blocks_compressed.js"></script> --> <script src="../../blocks/logic.js"></script> <script src="../../blocks/loops.js"></script> <script src="../../blocks/math.js"></script> <script src="../../blocks/colour.js"></script> <script src="../../blocks/variables.js"></script> <script src="../../blocks/procedures.js"></script> -<!-- - <script type="text/javascript" src="../../javascript_compressed.js"></script> ---> +<!-- <script type="text/javascript" src="../../javascript_compressed.js"></script> --> <script src="../../generators/typedlang.js"></script> <script src="../../generators/typedlang/logic.js"></script> <script src="../../generators/typedlang/loops.js"></script>
2
diff --git a/test/docs/validation.test.js b/test/docs/validation.test.js @@ -499,7 +499,7 @@ describe('validation docs', function() { * you try to explicitly `$unset` the key. */ - it('Update Validator Paths', function(done) { + it('Update Validators Only Run On Updated Paths', function(done) { // acquit:ignore:start var outstanding = 2; // acquit:ignore:end @@ -542,12 +542,14 @@ describe('validation docs', function() { * - `$pullAll` (>= 4.12.0) * * For instance, the below update will succeed, regardless of the value of - * `number`, because update validators ignore `$inc`. Also, `$push`, - * `$addToSet`, `$pull`, and `$pullAll` validation does **not** run any - * validation on the array itself, only individual elements of the array. + * `number`, because update validators ignore `$inc`. + * + * Also, `$push`, `$addToSet`, `$pull`, and `$pullAll` validation does + * **not** run any validation on the array itself, only individual elements + * of the array. */ - it('Update Validators Only Run On Specified Paths', function(done) { + it('Update Validators Only Run For Some Operations', function(done) { var testSchema = new Schema({ number: { type: Number, max: 0 }, arr: [{ message: { type: String, maxlength: 10 } }]
10
diff --git a/api/test/__snapshots__/community.test.js.snap b/api/test/__snapshots__/community.test.js.snap @@ -94,20 +94,20 @@ Object { "members": Object { "edges": Array [ Object { - "cursor": "My0x", + "cursor": "Mi0x", "node": Object { "isBlocked": false, "isMember": true, "isModerator": false, "isOwner": false, - "reputation": 100, + "reputation": 101, "user": Object { - "id": "3", + "id": "2", }, }, }, Object { - "cursor": "Mi0y", + "cursor": "My0y", "node": Object { "isBlocked": false, "isMember": true, @@ -115,7 +115,7 @@ Object { "isOwner": false, "reputation": 100, "user": Object { - "id": "2", + "id": "3", }, }, },
1
diff --git a/package.json b/package.json "build:js": "npm-run-all build:lib build:bundle", "build:lib": "node ./bin/build-lib.js", "build": "npm-run-all --parallel build:js build:css build:companion --serial build:gzip size", - "clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist", + "clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist && rm -rf packages/@uppy/robodog/dist", "lint:fix": "npm run lint -- --fix", "lint": "eslint . --cache", "lint-staged": "lint-staged",
0
diff --git a/articles/quickstart/webapp/aspnet-core/05-user-profile.md b/articles/quickstart/webapp/aspnet-core/05-user-profile.md @@ -103,6 +103,12 @@ Added to that, none of the user's profile details will be returned in the `id_to Once Auth0 passed back the `name` claim, you will have to retrieve the value of the `name` claim in the `OnTicketReceived` event and add a new claim of type `ClaimTypes.Name` (which resolves to `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name`). This will ensure that the user's name is returned when accessing the `User.Identity.Name` property. ```csharp +// Startup.cs + +public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IOptions<Auth0Settings> auth0Settings) +{ + [...] // omitted for brevity + var options = new OpenIdConnectOptions("Auth0") { // Set the authority to your Auth0 domain @@ -141,10 +147,14 @@ var options = new OpenIdConnectOptions("Auth0") if (!context.Principal.HasClaim(c => c.Type == ClaimTypes.Name) && identity.HasClaim(c => c.Type == "name")) identity.AddClaim(new Claim(ClaimTypes.Name, identity.FindFirst("name").Value)); - } - return Task.FromResult(0); + [...] } + + return Task.CompletedTask; + }, + // handle the logout redirection + OnRedirectToIdentityProviderForSignOut = [...] // omitted for brevity } }; options.Scope.Clear(); @@ -153,6 +163,7 @@ options.Scope.Add("name"); options.Scope.Add("email"); options.Scope.Add("picture"); app.UseOpenIdConnectAuthentication(options); + [...] ``` Now, after the user has signed it you will be able to see the user's name in the top right corner of the Navbar:
3
diff --git a/src/parser/features/actions.js b/src/parser/features/actions.js @@ -376,6 +376,7 @@ function getAttackActions(ddb, character) { function getOtherActions(ddb, character, items) { const actions = [ddb.character.actions.race, ddb.character.actions.class, ddb.character.actions.feat, getCustomActions(ddb, false)] .flat() + .filter((action) => action.name && action.name !== "") .filter( (action) => // lets grab other actions and add, make sure we don't get attack based ones that haven't parsed
9
diff --git a/package.json b/package.json "test": "jest", "coverage": "jest --coverage", "codecov": "codecov", - "lint": "eslint --cache --ext .jsx --ext .js packages/" + "lint": "eslint --cache --ext .jsx --ext .js packages/", + "openneuro": "node packages/openneuro-cli/src" }, "devDependencies": { "babel-eslint": "8.2.2",
11
diff --git a/packages/app/src/components/SubscribeButton.tsx b/packages/app/src/components/SubscribeButton.tsx import React, { useState, FC } from 'react'; +import { useTranslation } from 'react-i18next'; +import { UncontrolledTooltip } from 'reactstrap'; import { withUnstatedContainers } from './UnstatedUtils'; import { toastError } from '~/client/util/apiNotification'; @@ -12,9 +14,9 @@ type Props = { }; const SubscruibeButton: FC<Props> = (props: Props) => { + const { t } = useTranslation(); const [isWatching, setIsWatching] = useState(true); - const { appContainer, pageContainer } = props; const handleClick = async() => { @@ -36,7 +38,7 @@ const SubscruibeButton: FC<Props> = (props: Props) => { type="button" id="subscribe-button" onClick={handleClick} - className={`btn btn-watch border-0 ${isWatching ? 'active' : ''} `} + className={`btn btn-watch border-0 ${isWatching ? 'active' : ''} ${appContainer.isGuestUser ? 'disabled' : ''}`} > {isWatching && ( <i className="fa fa-eye"></i> @@ -46,6 +48,12 @@ const SubscruibeButton: FC<Props> = (props: Props) => { <i className="fa fa-eye-slash"></i> )} </button> + + {appContainer.isGuestUser && ( + <UncontrolledTooltip placement="top" target="subscribe-button" fade={false}> + {t('Not available for guest')} + </UncontrolledTooltip> + )} </> ); @@ -55,5 +63,4 @@ const SubscruibeButton: FC<Props> = (props: Props) => { * Wrapper component for using unstated */ const SubscruibeButtonWrapper = withUnstatedContainers(SubscruibeButton, [AppContainer, PageContainer]); - export default SubscruibeButtonWrapper;
12
diff --git a/package.json b/package.json "lint": "lerna run lint --stream --no-bail", "lint:fix": "lerna run lint:fix --stream --no-bail", "bootstrap": "npm install && lerna bootstrap && lerna run --stream bootstrap", - "version": "lerna version --exact --preid beta --force-publish", + "version": "lerna version --exact --preid beta", "version:dry": "npm run version -- --no-git-tag-version", "release": "lerna publish from-git --pre-dist-tag beta --no-verify-access --yes", "clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules",
2
diff --git a/test/index.js b/test/index.js @@ -21,6 +21,7 @@ import "./tests/operations/Code.js"; import "./tests/operations/Compress.js"; import "./tests/operations/DateTime.js"; import "./tests/operations/FlowControl.js"; +import "./tests/operations/Hash.js"; import "./tests/operations/Image.js"; import "./tests/operations/MorseCode.js"; import "./tests/operations/MS.js";
0
diff --git a/best-practices.md b/best-practices.md @@ -204,12 +204,11 @@ ended up doing. Following these recommendations makes for more legible catalogs. 1. Root documents (catalogs / collections) should be at the root of a directory tree containing the static catalog. 2. Catalogs that are not also Collections should be named `catalog.json` and Collections should be named `collection.json`. -3. Collections at the root of a Catalog should be named `collection.json`. -4. Items should be named `<id>.json`. -5. Sub-catalogs should be stored in subdirectories of their parent (and only 1 subdirectory deeper than a document's parent) (e.g. `.../sample/sub1/catalog.json`). -6. Items should be stored in subdirectories of their parent catalog. +3. Items should be named `<id>.json`. +4. Sub-catalogs should be stored in subdirectories of their parent (and only 1 subdirectory deeper than a document's parent) (e.g. `.../sample/sub1/catalog.json`). +5. Items should be stored in subdirectories of their parent catalog. This means that each item and its assets are contained in a unique subdirectory. -7. Limit the number of items in a catalog or sub-catalog, grouping / partitioning as relevant to the dataset. +6. Limit the number of items in a catalog or sub-catalog, grouping / partitioning as relevant to the dataset. ### Dynamic Catalog Layout
2
diff --git a/packages/examples/pages/linking/index.js b/packages/examples/pages/linking/index.js @@ -20,8 +20,10 @@ export default class LinkingPage extends PureComponent { <Text accessibilityRole="link" href="https://mathiasbynens.github.io/rel-noopener/malicious.html" + hrefAttrs={{ + target: '_blank' + }} style={styles.text} - target="_blank" > target="_blank" </Text>
1
diff --git a/packages/titus-kitchen-sink-backend/docker/docker-compose-dev.yml b/packages/titus-kitchen-sink-backend/docker/docker-compose-dev.yml @@ -15,7 +15,7 @@ services: networks: - titus volumes: - # - ../pgdata:/var/lib/postgresql/data + - ../pgdata:/var/lib/postgresql/data - ./db/initdb:/docker-entrypoint-initdb.d redis:
13
diff --git a/_src/_data/sheets.js b/_src/_data/sheets.js @@ -7,6 +7,7 @@ const fetch = require('node-fetch') const { format, utcToZonedTime } = require('date-fns-tz') const getJson = url => fetch(url).then(res => res.json()) + function dateStr(date) { const pattern = "M/dd HH:mm 'ET'" const timeZone = 'America/New_York' @@ -44,7 +45,8 @@ const pressLinks = _.flow( ) module.exports = function() { - return Promise.all([ + return Promise.all( + [ getJson('https://covid.cape.io/states'), getJson('https://covid.cape.io/states/info'), getJson('https://covid.cape.io/states/daily'), @@ -52,14 +54,26 @@ module.exports = function() { getJson('https://covid.cape.io/us/daily'), getJson('https://covid.cape.io/screenshots'), getJson('https://covid.cape.io/press'), - ]).then( - ([stateTest, stateInfo, stateDaily, us, usDaily, screenshots, press]) => ({ + ].map(promise => promise.catch(() => undefined)), + ).then( + ([stateTest, stateInfo, stateDaily, us, usDaily, screenshots, press]) => { + if ( + typeof stateTest === 'undefined' || + typeof stateInfo === 'undefined' || + typeof stateDaily === 'undefined' || + typeof us === 'undefined' || + typeof usDaily === 'undefined' + ) { + return false + } + return { updated: dateStr(new Date()), us: us[0], states: mergeStateInfo([stateTest, stateInfo]), - stateDaily: mergeStateDaily(stateDaily, screenshots), + stateDaily: mergeStateDaily(stateDaily, screenshots ? screenshots : {}), usDaily: _.orderBy(['date'], ['desc'], usDaily), press: pressLinks(press), - }), + } + }, ) }
9
diff --git a/src/object.coffee b/src/object.coffee @@ -52,6 +52,13 @@ createTestDoublesForFunctionNames = (names) -> , {} createTestDoubleViaProxy = (name, config) -> + if typeof Proxy == 'undefined' + throw new Error(""" + The current runtime does not have Proxy support. + + Did you mean `td.object([#{name}])`? + """) + proxy = new Proxy obj = {}, get: (target, propKey, receiver) -> if !obj.hasOwnProperty(propKey) && !_.includes(config.excludeMethods, propKey)
7
diff --git a/compose/basic-auth-compose.yml b/compose/basic-auth-compose.yml @@ -3,7 +3,7 @@ version: '3.0' services: api: environment: - - SESSION_SECRET=_session_secret_ + - SESSION_SECRET=${SESSION_SECRET:-_super_secret_session_secret_needs_to_be_long_} - AUTH_ENABLED=true - AUTH_USER=${AUTH_USER:-arty} - AUTH_PASSWORD
11
diff --git a/index.html b/index.html </li> <li class="dropdown"> <div class="btn-group navbar-btn"> + <a href="https://www.wikidata.org/wiki/Wikidata:Tools" target="_blank" class="btn btn-default"> + <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> <span data-i18n="wdqs-app-button-more-tools" id="tools-label"></span> + </a> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" id="tools-toggle"> - <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> - <span data-i18n="wdqs-app-button-tools" id="tools-label"></span> <span class="caret"></span> </button> <ul class="dropdown-menu"> - <li><a target="_blank" rel="noopener" href="https://tools.wmflabs.org/hay/propbrowse/"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> Hay's Properties Browser</a></li> - <li><a target="_blank" rel="noopener" href="https://tools.wmflabs.org/sqid/#/browse?type=properties"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> SQID Properties Browser</a></li> - <li><a target="_blank" rel="noopener" href="https://angryloki.github.io/wikidata-graph-builder/"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> Wikidata Graph Builder</a></li> - <li><a target="_blank" rel="noopener" href="http://qanswer-frontend.univ-st-etienne.fr"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> Text to SPARQL (QAnswer)</a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/Edit_items" data-i18n="wdqs-app-tools-edit-items"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/Query_data" data-i18n="wdqs-app-tools-query-data"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/Enhance_user_interface" data-i18n="wdqs-app-tools-enhance-ui"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/Visualize_data" data-i18n="wdqs-app-tools-visualize-data"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties" data-i18n="wdqs-app-tools-list-properties"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/Lexicographical_data" data-i18n="wdqs-app-tools-lexicographical-data"></a></li> + <li><a target="_blank" rel="noopener" href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Tools/For_programmers" data-i18n="wdqs-app-tools-for-programmers"></a></li> <li role="separator" class="divider"></li> - <li><a target="_blank" rel="noopener" href="https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/exploring-linked-data.md"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> Exploring Linked Data</a></li> - <li><a target="_blank" rel="noopener" href="https://tools.wmflabs.org/wdq2sparql/w2s.php"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> WDQ Syntax Translator</a></li> - <li><a target="_blank" rel="noopener" href="https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#SPARQL_endpoint"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> SPARQL REST Endpoint</a></li> + <li><a target="_blank" rel="noopener" href="https://tools.wmflabs.org/hay/directory/#/search/wikidata">Wikimedia Toolforge</a></li> </ul> </div> </li>
7
diff --git a/aleph/views/cache.py b/aleph/views/cache.py @@ -70,11 +70,14 @@ def cache_response(resp): resp.headers['X-Accel-Buffering'] = 'no' if not request._http_cache: + resp.cache_control.no_cache = True return resp if request.method != 'GET' or resp.status_code != 200: + resp.cache_control.no_cache = True return resp + resp.cache_control.public = True resp.vary.add('Accept-Language') resp.vary.add('Authorization') @@ -86,6 +89,4 @@ def cache_response(resp): if request._http_private: resp.cache_control.private = True - else: - resp.cache_control.public = True return resp
12
diff --git a/modules/@apostrophecms/piece-type/index.js b/modules/@apostrophecms/piece-type/index.js const _ = require('lodash'); -const cacheOnDemand = require('express-cache-on-demand')(); +const expressCacheOnDemand = require('express-cache-on-demand')(); C; module.exports = { extend: '@apostrophecms/doc-type', @@ -171,7 +171,7 @@ module.exports = { return { getAll: [ - ...enableCacheOnDemand ? [ cacheOnDemand ] : [], + ...enableCacheOnDemand ? [ expressCacheOnDemand ] : [], async (req) => { self.publicApiCheck(req); const query = self.getRestQuery(req); @@ -204,7 +204,7 @@ module.exports = { } ], getOne: [ - ...enableCacheOnDemand ? [ cacheOnDemand ] : [], + ...enableCacheOnDemand ? [ expressCacheOnDemand ] : [], async (req, _id) => { _id = self.inferIdLocaleAndMode(req, _id); self.publicApiCheck(req);
10
diff --git a/token-metadata/0xC969e16e63fF31ad4BCAc3095C616644e6912d79/metadata.json b/token-metadata/0xC969e16e63fF31ad4BCAc3095C616644e6912d79/metadata.json "symbol": "SEED", "address": "0xC969e16e63fF31ad4BCAc3095C616644e6912d79", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/immer.js b/immer.js @@ -72,6 +72,13 @@ function immer(baseState, thunk) { getCurrentSource(target), prop ) + }, + defineProperty(target, property, descriptor) { + Object.defineProperty(getOrCreateCopy(target), property, descriptor) + return true + }, + setPrototypeOf() { + throw new Error("Don't even try this...") } }
0
diff --git a/spec/services/carto/organization_metadata_export_service_spec.rb b/spec/services/carto/organization_metadata_export_service_spec.rb @@ -23,37 +23,7 @@ describe Carto::OrganizationMetadataExportService do def destroy_organization Organization[@organization.id].destroy_cascade end - def import_organization_and_users_from_directory(path) - # Import organization - organization_file = Dir["#{path}/organization_*.json"].first - organization = build_organization_from_json_export(File.read(organization_file)) - save_imported_organization(organization) - user_list = Dir["#{path}/user_*"] - - # In order to get permissions right, we first import all users, then all datasets and finally, all maps - organization.users = user_list.map do |user_path| - Carto::UserMetadataExportService.new.import_user_from_directory(user_path, import_visualizations: false) - end - - organization - end - - def import_organization_visualizations_from_directory(organization, path) - organization.users.each do |user| - Carto::UserMetadataExportService.new.import_user_visualizations_from_directory( - user, Carto::Visualization::TYPE_CANONICAL, "#{path}/user_#{user.id}" - ) - end - - organization.users.each do |user| - Carto::UserMetadataExportService.new.import_user_visualizations_from_directory( - user, Carto::Visualization::TYPE_DERIVED, "#{path}/user_#{user.id}" - ) - end - - organization - end let(:service) { Carto::OrganizationMetadataExportService.new } describe '#organization export' do @@ -118,7 +88,7 @@ describe Carto::OrganizationMetadataExportService do @organization.destroy imported_organization = service.import_organization_and_users_from_directory(path) - import_organization_visualizations_from_directory(imported_organization, path) + service.import_organization_visualizations_from_directory(imported_organization, path) compare_excluding_dates(imported_organization.attributes, source_organization) expect(imported_organization.users.count).to eq source_users.count
2
diff --git a/package.json b/package.json "name": "find-and-replace", "main": "./lib/find", "description": "Find and replace within buffers and across the project.", - "version": "0.209.1", + "version": "0.209.2", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/aura-impl/src/main/java/org/auraframework/impl/linker/AccessChecker.java b/aura-impl/src/main/java/org/auraframework/impl/linker/AccessChecker.java @@ -237,6 +237,10 @@ public class AccessChecker { // not internal namespace && namespace allowed to be used externally && module has minVersion return null; } + if (!isReferencingInternal && !configAdapter.isInternalNamespace(targetNamespace)) { + // both referencing and target namespace are custom namespace + return null; + } } from = " from " + referencingNamespace + ":" + referencingDescriptor.getName(); }
11
diff --git a/lib/modules/apostrophe-video-fields/views/video.html b/lib/modules/apostrophe-video-fields/views/video.html {%- import "apostrophe-schemas:macros.html" as schemas -%} {%- import "apostrophe-ui:components/buttons.html" as buttons -%} - {% macro video(field) %} {% if not field.readOnly %}<input type="text" class="apos-field-input apos-field-input-text" name="{{ field.name }}" />{% endif %} <div class="apos-video-player" data-apos-video-player></div> - <div class="apos-video-error" data-apos-video-error="401">Embedding is not allowed for this video.</div> + <div class="apos-video-error" data-apos-video-error="401">{{ __('Embedding is not allowed for this video.') }}</div> + <div class="apos-video-error" data-apos-video-error="404">{{ __('That video was not found. Paste a URL to the video\'s page.') }}</div> {% endmacro %} {{ schemas.fieldset(data, video) }}
9
diff --git a/assets/js/googlesitekit/data/create-settings-store.test.js b/assets/js/googlesitekit/data/create-settings-store.test.js @@ -479,7 +479,6 @@ describe( 'createSettingsStore store', () => { storeDefinition ); dispatch = registry.dispatch( storeDefinition.STORE_NAME ); - store = registry.stores[ storeDefinition.STORE_NAME ].store; select = registry.select( storeDefinition.STORE_NAME ); // Initially false.
2
diff --git a/src/components/routes/CheckoutApp.vue b/src/components/routes/CheckoutApp.vue <div class="_checkout-payment" v-else-if="activeStep === 2"> <transition name="fade"> - <div key="checkout-loading" v-if="!loaded" class="_checkout-loading"></div> + <div key="checkout-loading" v-if="cartLoading || checkoutLoading" class="_checkout-loading"></div> <el-row key="checkout-payment" v-else id="payment"> <el-col :md="17" :sm="16" :xs="24"> @@ -191,7 +191,8 @@ export default { data () { return { - loaded: false, + cartLoading: true, + checkoutLoading: false, activeStep: 0 } }, @@ -199,6 +200,7 @@ export default { computed: mapGetters([ 'cart', 'checkout', + 'checkoutZip', 'customerUpdate', 'customerEmail', 'customerAddress', @@ -208,9 +210,11 @@ export default { methods: { ...mapActions([ 'loadCart', + 'initPaymentGateways', 'login' ]), ...mapMutations([ + 'setCheckoutZip', 'logout' ]), formatMoney, @@ -219,8 +223,15 @@ export default { // update current checkout step if (this.customerEmail) { if (this.customerAddress) { - // payment + // ready for payment this.activeStep = 2 + + // update checkout shipping address + this.setCheckoutZip(this.customerAddress.zip) + // load payment methods + this.initPaymentGateways().catch(err => { + // alert + }).then(() => this.checkoutLoading = false) } else { // shipping this.activeStep = 1 @@ -235,10 +246,15 @@ export default { created () { // reload cart data this.loadCart({ id: this.$route.params.id }).finally(() => { - this.loaded = true + this.cartLoading = false }) - // go to correct checkout step + }, + + mounted () { + this.$nextTick(() => { + // starts going to correct checkout step this.updateStep() + }) }, watch: {
9
diff --git a/contracts/swap/test/Swap-unit.js b/contracts/swap/test/Swap-unit.js @@ -119,12 +119,18 @@ contract.only('Swap Unit Tests', async accounts => { let signature = [EMPTY_ADDRESS, v, r, s, ver] //mock maker authorizes mock taker + emitted( await swap.authorize(mockTaker, Jun_06_2017T00_00_00_UTC, { from: mockMaker, - }) + }), + 'Authorize' + ) //mock taker will take the order - await swap.swap(order, signature, { from: mockTaker }) + await reverted( + swap.swap(order, signature, { from: mockTaker }), + 'SIGNER_UNAUTHORIZED.' + ) }) it('test when order is not specified', async () => {})
1
diff --git a/src/traces/parcoords/parcoords.js b/src/traces/parcoords/parcoords.js @@ -32,19 +32,20 @@ function findExtreme(fn, values, len) { } function findExtremes(values, len) { - return [ + return fixExtremes( findExtreme(Math.min, values, len), findExtreme(Math.max, values, len) - ]; + ); } function dimensionExtent(dimension) { var range = dimension.range; - if(!range) range = findExtremes(dimension.values, dimension._length); - - var lo = range[0]; - var hi = range[1]; + return range ? + fixExtremes(range[0], range[1]) : + findExtremes(dimension.values, dimension._length); +} +function fixExtremes(lo, hi) { if(isNaN(lo) || !isFinite(lo)) { lo = 0; } @@ -404,8 +405,15 @@ function calcAllTicks(cd) { var dim = dimensions[k]._ax; if(dim) { - if(!dim.range) dim.range = findExtremes(values, trace._length); - if(!dim.dtick) dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1); + if(!dim.range) { + dim.range = findExtremes(values, trace._length); + } else { + dim.range = fixExtremes(dim.range[0], dim.range[1]); + } + + if(!dim.dtick) { + dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1); + } dim.tickformat = dimensions[k].tickformat; Axes.calcTicks(dim);
0
diff --git a/src/adapters/icon_manager.js b/src/adapters/icon_manager.js -const iconProperties = require('@qwant/qwant-basic-gl-style/icons.yml').mappings +const {mappings, defaultIcon, defaultColor} = require('@qwant/qwant-basic-gl-style/icons.yml') function IconManager() {} -IconManager.mappings = iconProperties.map((mapping) => {return mapping}) +IconManager.mappings = mappings.map((mapping) => {return mapping}) IconManager.get = ({className, subClassName}) => { - let icon = iconProperties.find((iconProperty) => { + let icon = mappings.find((iconProperty) => { return iconProperty.subclass === subClassName && iconProperty.class === className }) if(!icon) { - icon = iconProperties.find((iconProperty) => { + icon = mappings.find((iconProperty) => { return iconProperty.subclass === subClassName && !iconProperty.class }) } if(!icon) { - icon = iconProperties.find((iconProperty) => { + icon = mappings.find((iconProperty) => { return iconProperty.class === className && !iconProperty.subclass }) } @@ -24,6 +24,8 @@ IconManager.get = ({className, subClassName}) => { let color = icon.color let iconClass = iconName.match(/^(.*?)-[0-9]{1,2}$/)[1] return {iconClass : iconClass, color : color} + } else { + return {iconClass : defaultIcon.match(/^(.*?)-[0-9]{1,2}$/)[1], color : defaultColor} } }
12
diff --git a/packages/spark-extras/components/highlight-board/_highlight-board.scss b/packages/spark-extras/components/highlight-board/_highlight-board.scss @@ -54,7 +54,7 @@ $highlight-board-color: $white !default; position: absolute; bottom: $space-l; left: $space-l; - margin-right: $space-l; + right: $space-l; } .sprk-c-HighlightBoard--stacked {
3
diff --git a/styles/tokens/table.json b/styles/tokens/table.json "header": { "background-color": { "comment": "The background color of Secondary Table headers.", - "value": "{black.value}", + "value": "{white.value}", "file": "settings", "themable": true },
3
diff --git a/packages/spark/base/inputs/_labels.scss b/packages/spark/base/inputs/_labels.scss } .sprk-b-InputContainer--huge > :first-child.sprk-b-TextInput:focus + .sprk-b-Label, -.sprk-b-InputContainer--huge .sprk-b-TextInputIconContainer--has-text-icon .sprk-b-TextInputIconContainer .sprk-b-TextInput:focus + .sprk-b-Label, +.sprk-b-InputContainer--huge .sprk-b-TextInputIconContainer--has-text-icon .sprk-b-TextInputIconContainer .sprk-b-TextInput:focus + .sprk-b-Label { + font-size: $sprk-text-input-huge-label-font-size; + top: $sprk-text-input-huge-label-active-top; + color: $sprk-text-input-huge-focus-label-color; +} + .sprk-b-InputContainer--huge > :first-child.sprk-b-TextInput.sprk-b-TextInput--float-label + .sprk-b-Label, .sprk-b-InputContainer--huge .sprk-b-TextInputIconContainer--has-text-icon .sprk-b-TextInputIconContainer .sprk-b-TextInput.sprk-b-TextInput--float-label + .sprk-b-Label { font-size: $sprk-text-input-huge-label-font-size; top: $sprk-text-input-huge-label-active-top; - color: $sprk-text-input-huge-focus-label-color; + color: $sprk-text-input-huge-complete-label-color; } + .sprk-b-InputContainer--huge > :first-child.sprk-b-TextInput:not(:placeholder-shown) + .sprk-b-Label, .sprk-b-InputContainer--huge .sprk-b-TextInputIconContainer--has-text-icon .sprk-b-TextInputIconContainer .sprk-b-TextInput:not(:placeholder-shown) + .sprk-b-Label { font-size: $sprk-text-input-huge-label-font-size;
3
diff --git a/userscript.user.js b/userscript.user.js @@ -23832,13 +23832,6 @@ var $$IMU_EXPORT$$; } } - /*if (false && domain === "imagesmtv-a.akamaihd.net") { - // http://imagesmtv-a.akamaihd.net/uri/mgid:file:http:shared:mtv.com/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg - // http://mtv.com/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg -- doesn't exist - // http://imagesmtv-a.akamaihd.net/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg -- works - return src.replace(/.*\/uri\/([a-z:]*:)?/, "http://"); - }*/ - if (domain_nosub === "pmdstatic.net") { // https is not supported // http://img.voi.pmdstatic.net/fit/http.3A.2F.2Fprd2-bone-image.2Es3-website-eu-west-1.2Eamazonaws.2Ecom.2Fvoi.2F2018.2F09.2F05.2Ff6deca2b-fea8-4f1b-8045-fa30eb8515df.2Ejpeg/565x317/quality/80/pamela-anderson-decouvrez-qui-sera-son-partenaire-dans-danse-avec-les-stars-9.jpg @@ -24083,8 +24076,6 @@ var $$IMU_EXPORT$$; domain === "images.indianexpress.com" || // can't find a test case domain === "images.contentful.com" || - // http://imagesmtv-a.akamaihd.net/uri/mgid:file:http:shared:mtv.com/news/wp-content/uploads/2016/03/Spy-Kids-1459273031.jpg?quality=.8&height=400&wid - domain === "imagesmtv-a.akamaihd.net" || // https://d.ibtimes.co.uk/en/full/435849/anjem-choudary-shariah-project-protest-brick-lane-pic-ibtimes-co-uk.jpg?w=720&e=f9b092054c209d993bb1be7d435f293a domain === "d.ibtimes.co.uk" || // http://akns-images.eonline.com/eol_images/Entire_Site/2014519/rs_300x300-140619060824-600.Harry-Potter-Cast-JR-61914.jpg @@ -49362,7 +49353,9 @@ var $$IMU_EXPORT$$; return src.replace(/(\/userfiles\/materials\/[0-9]+\/[0-9]+\/)(?:[0-9]+x[0-9]+|[a-z]+)(\.[^/.]*)$/, "$1origin$2"); } - if (domain_nosub === "mtvnimages.com") { + if (domain_nosub === "mtvnimages.com" || + // http://imagesmtv-a.akamaihd.net/uri/mgid:file:http:shared:mtv.com/news/wp-content/uploads/2016/03/Spy-Kids-1459273031.jpg?quality=.8&height=400&wid + domain === "imagesmtv-a.akamaihd.net") { // http://mtv.mtvnimages.com/uri/mgid:file:gsp:scenic:/international/mtvema/2017/images/nominees/Taylor_Swift_1940x720.jpg?quality=0.85&width=1024&height=450&crop=true -- 400 // https://mtv.mtvnimages.com/uri/mgid:file:http:shared:mtv.com/news/wp-content/uploads/2017/03/GettyImages-661260604-1490974103.jpg?quality=.8&height=1221.3740458015266&width=800 -- 400 // http://vh1.mtvnimages.com/uri/mgid:file:http:shared:vh1.com/news/uploads/sites/2/2018/03/GettyImages-873076880-1522090083.jpg?quality=0.85&format=jpg&width=480 @@ -49378,7 +49371,11 @@ var $$IMU_EXPORT$$; } } - if (domain_nosub === "mtvnimages.com") { + if (domain_nosub === "mtvnimages.com" || + // http://imagesmtv-a.akamaihd.net/uri/mgid:file:http:shared:mtv.com/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg + // http://mtv.com/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg -- doesn't exist + // http://imagesmtv-a.akamaihd.net/news/wp-content/uploads/2016/09/Guess-whooooooo-1473944872.jpg -- works + domain === "imagesmtv-a.akamaihd.net") { // http://vh1.mtvnimages.com/uri/mgid:file:http:shared:vh1.com/news/uploads/sites/2/2018/03/GettyImages-873076880-1522090083.jpg // http://vh1.com/news/uploads/sites/2/2018/03/GettyImages-873076880-1522090083.jpg // http://www.vh1.com/news/uploads/sites/2/2018/03/GettyImages-873076880-1522090083.jpg
7
diff --git a/src/lib/actions/ActionsReport.js b/src/lib/actions/ActionsReport.js @@ -29,7 +29,14 @@ function updateReportWithNewAction(reportID, reportAction) { // Get the comments for this report, and add the comment (being sure to sort and filter properly) let foundExistingReportHistoryItem = false; - Ion.get(`${IONKEYS.REPORT_HISTORY}_${reportID}`) + Ion.get(`${IONKEYS.REPORT}_${reportID}`, 'reportID') + .then((reportID) => { + if (!reportID) { + throw new Error('Report does not exist in the store, so ignoring new comments'); + } + + return Ion.get(`${IONKEYS.REPORT_HISTORY}_${reportID}`); + }) // Use a reducer to replace an existing report history item if there is one .then(reportHistory => _.map(reportHistory, (reportHistoryItem) => {
8
diff --git a/content/getting-started/yaml.md b/content/getting-started/yaml.md @@ -114,10 +114,12 @@ The main sections in each workflow are described below. ### Instance Type `instance_type:` specifies the [build machine type](../specs/machine-type) to use for the build. The supported build machines are: -* `mac_mini` -* `mac_pro` -* `linux` -* `linux_x2` +| **Instance Type** | **Build Machine** | +| ------------- | ----------------- | +| `mac_mini` | macOS standard VM | +| `mac_pro` | macOS premium VM | +| `linux` | Linux standard VM | +| `linux_x2` | Linux premium VM | {{<notebox>}} Note that `mac_pro`, `linux`, and `linux_x2` are only available for teams and users with [billing enabled](../billing/billing/).
3
diff --git a/AlienRPGroller/script.json b/AlienRPGroller/script.json { "name": "Alien RPG Dice Roller", "script": "AlienRPG.js", - "version": "1.00", + "version": "v1.00", "description": "This is a Dice Roller used for Alien RPG dice rolls. It can be used in combination with the Alien RPG Character Sheet, but can also be used independently. Get info on how to use with chat command '!arpg' (without quotes).", "authors": "Richard W", "roll20userid": "8097845",
3
diff --git a/package.json b/package.json { "name": "prettier-atom", "main": "./dist/main.js", - "version": "0.56.2", + "version": "0.56.3", "description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration", "keywords": [ "atom",
6
diff --git a/Source/Scene/Cesium3DTileStyle.js b/Source/Scene/Cesium3DTileStyle.js @@ -161,6 +161,9 @@ define([ function getExpression(tileStyle, value, key) { var defines = defaultValue(tileStyle._style, defaultValue.EMPTY_OBJECT).defines; + if (!defined(tileStyle._style)) { + tileStyle._style = {}; + } if (!defined(value)) { delete tileStyle._style[key]; return undefined;
9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -101,13 +101,15 @@ jobs: ember-try-scenario: [ ember-lts-3.20, ember-lts-3.24, - ember-release, - ember-beta, ember-default-with-jquery, ember-classic, ] allow-failure: [false] include: + - ember-try-scenario: ember-release + allow-failure: true + - ember-try-scenario: ember-beta + allow-failure: true - ember-try-scenario: ember-canary allow-failure: true
11
diff --git a/OneWayDynamicLighting/script.json b/OneWayDynamicLighting/script.json { "name": "One-Way Dynamic Lighting", "script": "script.js", - "version": "1.0", + "version": "1.0.1", "previousversions": [], "description": "# One-Way Dynamic Lighting\r\rThis script allows you to set up dynamic lighting walls that allow you to\rsee through one side, but not the other.\r\r### Creating Walls\r\rTo create a one-way dynamic lighting wall, you need to create a path for the wall itself and\ra filled path representing a area from which characters can see through the wall. Once you have those\rtwo objects created, select both of them, and activate the ```OneWayDynamicLighting``` macro installed\rby this script. That's all there is to it!\r\r__Note:__\rDue to limitations of the API, if at least one player character is on the visible\rside of the wall, then all characters will be able to see through it, even if\ryour dynamic lighting is set to require line-of-sight. This is because it works by\rmoving the one-way walls back and forth from the GM layer and the Dynamic Lighting layer,\rwhich at any point in time is the same for everyone.\r\rAlas, there are some paradigms I've considered when implementing this script that\rwould allow each character to have their own perspective of the dynamic lighting.\rUnfortunately, this would only be possible if it were implemented in Roll20's\rdynamic lighting system itself using some WebGL magic involving stencil buffers\rand lighting polygon unions.\r\rA while ago, I presented an algorithm for\rimplementing one-way dynamic lighting in the dynamic lighting system detailed in\rmy post here: https://app.roll20.net/forum/post/4804351/questions-roll20-roundtable-hour-number-1-q1-2017/?pageforid=4806305#post-4806305\rIf it's compatible with their current system, maybe the Roll20 developers can make use of it.\rFor the time being though, I hope that this humble script will suffice for everyone's\rone-way dynamic lighting needs.\r\r### Help\r\rIf you experience any issues while using this script,\rneed help using it, or if you have a neat suggestion for a new feature, please\rpost to the script's thread in the API forums or shoot me a PM:\rhttps://app.roll20.net/users/46544/stephen-l\r\r### Show Support\r\rIf you would like to show your appreciation and support for the work I do in writing,\rupdating, and maintaining my API scripts, consider buying one of my art packs from the Roll20 marketplace (https://marketplace.roll20.net/browse/search/?keywords=&sortby=newest&type=all&genre=all&author=Stephen%20Lindberg)\ror, simply leave a thank you note in the script's thread on the Roll20 forums.\rEither is greatly appreciated! Happy gaming!\r", "authors": "Stephen Lindberg",
1
diff --git a/lib/rules/declaration-block-no-duplicate-properties/README.md b/lib/rules/declaration-block-no-duplicate-properties/README.md @@ -114,7 +114,7 @@ Ignore consecutive duplicated properties with identical values, when ignoring th This option is useful to deal with draft CSS values while still being future proof. E.g. using `fit-content` and `-moz-fit-content`. -The following patterns are considered violations: +The following patterns are considered problems: <!-- prettier-ignore --> ```css @@ -135,7 +135,7 @@ p { } ``` -The following patterns are _not_ considered violations: +The following patterns are _not_ considered problems: <!-- prettier-ignore --> ```css
14
diff --git a/src/routes/kdhGuild.js b/src/routes/kdhGuild.js @@ -8,13 +8,21 @@ module.exports = class extends Route { async get(request, response) { const { id } = request.params; - if (!id) return response.end("No ID parameter passed"); + if (!id) { + response.statusCode = 400; + return response.end(JSON.stringify({ message: "No id provided" })); + } + + const guild = await this.client.shard.fetchGuild(id) + .catch(() => null); - const guildArray = await this.client.shard.broadcastEval(`this.guilds.get("${id}")`); - const foundGuild = guildArray.find(guild => guild); + if (!guild) { + response.statusCode = 404; + return response.end(JSON.stringify({ message: "Guild not found" })); + } - if (!foundGuild) return response.end("Guild not found"); - return response.end(JSON.stringify(foundGuild)); + response.statusCode = 200; + return response.end(JSON.stringify(guild)); } };
1
diff --git a/server/util/pushshift.py b/server/util/pushshift.py @@ -113,10 +113,14 @@ def _reddit_submission_to_row(item): def _cached_reddit_submissions(**kwargs): data = _reddit_submission_search(**kwargs) cleaned_data = [] + try: for row in range(0, kwargs['limit']): item = next(data) item_data = _reddit_submission_to_row(item) cleaned_data.append(item_data) + except StopIteration: + # not really a problem, just an indication that we have less than kwargs['limit'] results + pass return cleaned_data
9
diff --git a/.env.dev b/.env.dev #for dev env tell webpack.config.dev.js to install service worker -REACT_APP_SERVICE_WORKER=false +REACT_APP_SERVICE_WORKER=true REACT_APP_ENV=development REACT_APP_LOG_LEVEL=trace -REACT_APP_SERVER_URL=http://localhost:3003 -REACT_APP_GUN_PUBLIC_URL=http://localhost:8765/gun +REACT_APP_SERVER_URL=https://good-server.herokuapp.com +REACT_APP_GUN_PUBLIC_URL=https://goodgun-dev.herokuapp.com REACT_APP_INFURA_KEY= -REACT_APP_NETWORK=develop +REACT_APP_NETWORK=fuse REACT_APP_WEB3_RPC= REACT_APP_WEB3_TRANSPORT_PROVIDER= REACT_APP_ZOOM_LICENSE_KEY= REACT_APP_SKIP_EMAIL_VERIFICATION=true REACT_APP_AMPLITUDE_API_KEY= +REACT_APP_ROLLBAR_API_KEY= REACT_APP_THROW_SAVE_PROFILE_ERRORS=true REACT_APP_WEB3_SITE_URL=https://w3.gooddollar.org REACT_APP_WEB3_SITE_URL_ECONOMY_ENDPOINT=/learn/economy REACT_APP_MNEMONIC_TO_SEED=true -REACT_APP_MARKET_URL=https://etoro.paperclip.co -REACT_APP_MARKET=true -REACT_APP_PUBLIC_URL=http://localhost +REACT_APP_MARKET=false +REACT_APP_USE_TORUS=true +REACT_APP_GOOGLE_CLIENT_ID=1015336103925-reqktqs0ns9vfaeh7nbt8mi634u9157k.apps.googleusercontent.com +REACT_APP_FACEBOOK_APP_ID=2494863677435036 +REACT_APP_ENABLE_INVITES=true +REACT_APP_SHOW_INVITE=true
0
diff --git a/token-metadata/0x8A9C67fee641579dEbA04928c4BC45F66e26343A/metadata.json b/token-metadata/0x8A9C67fee641579dEbA04928c4BC45F66e26343A/metadata.json "symbol": "JRT", "address": "0x8A9C67fee641579dEbA04928c4BC45F66e26343A", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/utils/staking.js b/src/utils/staking.js @@ -218,13 +218,7 @@ export class Staking { } else { lockupId = getLockupAccountId(accountId) } - try { await (await new nearApiJs.Account(this.wallet.connection, lockupId)).state() - } catch (e) { - if (e.message.indexOf('is not valid') === -1) { - throw(e) - } - } const contract = await this.getContractInstance(lockupId, lockupMethods) return { contract, lockupId, accountId } } @@ -234,8 +228,7 @@ export class Staking { await (await new nearApiJs.Account(this.wallet.connection, contractId)).state() return await new nearApiJs.Contract(this.wallet.getAccount(), contractId, { ...methods }) } catch(e) { - console.warn('No lockup contract for account') - // throw new WalletError('No lockup contract for account', 'staking.errors.noLockup') + throw new WalletError('No lockup contract for account', 'staking.errors.noLockup') } }
13
diff --git a/src/core/operations/GenerateImage.mjs b/src/core/operations/GenerateImage.mjs import Operation from "../Operation.mjs"; import OperationError from "../errors/OperationError.mjs"; +import Utils from "../Utils.mjs"; import {isImage} from "../lib/FileType"; import {toBase64} from "../lib/Base64"; import jimp from "jimp"; +import {isWorkerEnvironment} from "../Utils"; /** * Generate Image operation @@ -32,7 +34,7 @@ class GenerateImage extends Operation { { "name": "Mode", "type": "option", - "value": ["Greyscale", "RG", "RGB", "RGBA"] + "value": ["Greyscale", "RG", "RGB", "RGBA", "Bits"] }, { "name": "Pixel Scale Factor", @@ -70,18 +72,35 @@ class GenerateImage extends Operation { "RG": 2, "RGB": 3, "RGBA": 4, + "Bits": 1/8, }; const bytesPerPixel = bytePerPixelMap[mode]; - if (input.length % bytesPerPixel !== 0) { + if (bytesPerPixel > 0 && input.length % bytesPerPixel !== 0) { throw new OperationError(`Number of bytes is not a divisor of ${bytesPerPixel}`); } const height = Math.ceil(input.length / bytesPerPixel / width); const image = await new jimp(width, height, (err, image) => {}); + if (isWorkerEnvironment()) + self.sendStatusMessage("Generate image from data..."); + if (mode === "Bits") { + let index = 0; + for (let j = 0; j < input.length; j++) { + const curByte = Utils.bin(input[j]); + for (let k = 0; k < 8; k++, index++) { + const x = index % width; + const y = Math.floor(index / width); + + const value = curByte[k] === "0" ? 0xFF : 0x00; + const pixel = jimp.rgbaToInt(value, value, value, 0xFF); + image.setPixelColor(pixel, x, y); + } + } + } else { let i = 0; while (i < input.length) { const index = i / bytesPerPixel; @@ -127,8 +146,12 @@ class GenerateImage extends Operation { throw new OperationError(`Error while generating image from pixel values. (${err})`); } } + } if (scale !== 1) { + if (isWorkerEnvironment()) + self.sendStatusMessage("Scale image..."); + image.scaleToFit(width*scale, height*scale, jimp.RESIZE_NEAREST_NEIGHBOR); }
0
diff --git a/site/community-plugins.xml b/site/community-plugins.xml @@ -70,7 +70,7 @@ limitations under the License. <doc:heading>Routing</doc:heading> <table class="plugins"> - <r:plugin name="rabbitmq_lvc"> + <r:plugin name="rabbitmq_lvc_exchange"> The last value exchange acts like a direct exchange (binding keys are compared for equality with routing keys); but it also keeps track of the last value that was published with @@ -79,7 +79,7 @@ limitations under the License. <ul> <li><a href="https://bintray.com/rabbitmq/community-plugins/rabbitmq_lvc/_latestVersion#files">Download</a></li> <li>Maintainer: <b>Team RabbitMQ</b></li> - <li>Github: <a href="https://github.com/rabbitmq/rabbitmq-lvc-plugin">rabbitmq/rabbitmq-lvc-plugin</a></li> + <li>Github: <a href="https://github.com/rabbitmq/rabbitmq-lvc-exchange">rabbitmq/rabbitmq/rabbitmq-lvc-exchange</a></li> </ul> </r:plugin>
10
diff --git a/scenes/dev.scn b/scenes/dev.scn 0, 0 ], - "start_url": "../street-green/" + "start_url": "https://webaverse.github.io/street-green/" }, { "position": [ 1 ], "physics": false, - "start_url": "../silkworm/", + "start_url": "https://webaverse.github.io/silkworm/", "dynamic": true }, { 0, 1 ], - "start_url": "../npc/", + "start_url": "https://webaverse.github.io/npc/", "components": [ { "key": "name", 0, 1 ], - "start_url": "../npc/", + "start_url": "https://webaverse.github.io/npc/", "components": [ { "key": "name", 0, 1 ], - "start_url": "../npc/", + "start_url": "https://webaverse.github.io/npc/", "components": [ { "key": "name", 0, 1 ], - "start_url": "../npc/", + "start_url": "https://webaverse.github.io/npc/", "components": [ { "key": "name", 0.5, 0.5 ], - "start_url": "../potion/" + "start_url": "https://webaverse.github.io/potion/" }, { "position": [ 1, 1 ], - "start_url": "../pistol/" + "start_url": "https://webaverse.github.io/pistol/" }, { "position": [ 1, 1 ], - "start_url": "../bow/" + "start_url": "https://webaverse.github.io/bow/" }, { "position": [ 1, 1 ], - "start_url": "../silsword/" + "start_url": "https://webaverse.github.io/silsword/" }, { "position": [ 1, 1 ], - "start_url": "../scissors/" + "start_url": "https://webaverse.github.io/scissors/" }, { "position": [30, 0, 4], - "start_url": "../origin-tablet/" + "start_url": "https://webaverse.github.io/origin-tablet/" }, { "position": [ 0, -1 ], - "start_url": "../mirror/" + "start_url": "https://webaverse.github.io/mirror/" }, { "position": [ 0, 0 ], - "start_url": "../bomb/" + "start_url": "https://webaverse.github.io/bomb/" }, { "position": [ 0, 2 ], - "start_url": "../flower/" + "start_url": "https://webaverse.github.io/flower/" }, { "position": [ 0, 2 ], - "start_url": "../witch-hat/" + "start_url": "https://webaverse.github.io/witch-hat/" }, { "position": [ 0, 6 ], - "start_url": "../turret/" + "start_url": "https://webaverse.github.io/turret/" }, { "position": [ 0, 6 ], - "start_url": "../dreadnought/" + "start_url": "https://webaverse.github.io/dreadnought/" }, { "position": [ -20 ], "quaternion": [0, 0, 0, 1], - "start_url": "../lisk/" + "start_url": "https://webaverse.github.io/lisk/" } ] }
0
diff --git a/editor/elfinder/php/connector.php b/editor/elfinder/php/connector.php @@ -68,9 +68,11 @@ function sanitizeName($cmd, $result, $args, $elfinder) $files = $result['added']; foreach ($files as $file) { $filename = str_replace(' ', '_' , $file['name']); + if ($filename != $file['name']) { $arg = array('target' => $file['hash'], 'name' => $filename); $elfinder->exec('rename', $arg); } + } return true; }
1
diff --git a/source/views/controls/TextView.js b/source/views/controls/TextView.js @@ -358,6 +358,29 @@ const TextView = Class({ this.focus(); }, + selectAll: function () { + return this.set( 'selection', { + start: 0, + end: this.get( 'value' ).length, + }); + }, + + copySelectionToClipboard: function () { + var didSucceed = false; + var focused = null; + if ( !this.get( 'isFocused' ) ) { + focused = document.activeElement; + this.focus(); + } + try { + didSucceed = document.execCommand( 'copy' ); + } catch ( error ) {} + if ( focused ) { + focused.focus(); + } + return didSucceed; + }, + // --- Scrolling and focus --- savedSelection: null,
0
diff --git a/app-manager.js b/app-manager.js @@ -452,6 +452,9 @@ class AppManager extends EventTarget { srcAppManager.setBlindStateMode(false); dstAppManager.setBlindStateMode(false); } + hasApp(app) { + return this.apps.includes(app); + } pushAppUpdates() { this.setPushingLocalUpdates(true);
0
diff --git a/generators/server/templates/src/main/java/package/config/SecurityConfiguration.java.ejs b/generators/server/templates/src/main/java/package/config/SecurityConfiguration.java.ejs @@ -88,6 +88,7 @@ import org.springframework.security.web.csrf.CsrfFilter; <%_ if (authenticationType === 'jwt' && applicationType !== 'microservice') { _%> import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; <%_ } _%> +import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter; <%_ if (applicationType !== 'microservice') { _%> import org.springframework.web.filter.CorsFilter; <%_ } _%> @@ -223,8 +224,14 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { <%_ } _%> .and() .headers() + .contentSecurityPolicy("default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'") + .and() + .referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy.STRICT_ORIGIN_WHEN_CROSS_ORIGIN) + .and() + .featurePolicy("geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; fullscreen 'self'; payment 'none'") + .and() .frameOptions() - .disable() + .deny() .and() <%_ if (authenticationType === 'jwt' || (authenticationType === 'oauth2' && applicationType === 'microservice')) { _%> .sessionManagement()
7
diff --git a/src/pages/Group/Backup.js b/src/pages/Group/Backup.js @@ -316,6 +316,11 @@ export default class AppList extends PureComponent { loading: false }); }; + cancelLoading = () => { + this.setState({ + loading: false + }); + }; handleBackup = data => { this.setState({ loading: true @@ -344,12 +349,9 @@ export default class AppList extends PureComponent { }); } else if (res.data.msg_show) { notification.warning({ message: res.data.msg_show }); - - this.setState({ - loading: false - }); } } + this.cancelLoading(); } }); };
1
diff --git a/src/lib/DDBCharacterImport.js b/src/lib/DDBCharacterImport.js @@ -944,7 +944,8 @@ export default class DDBCharacterImport extends FormApplication { if (e.origin?.includes(".Item.")) { // eslint-disable-next-line no-await-in-loop const parent = await fromUuid(e.origin); - setProperty(e, "flags.ddbimporter.type", parent.type); + logger.debug("Effect Backup flags", { e, parent }); + if (parent) setProperty(e, "flags.ddbimporter.type", parent.type); } } await this.actor.deleteEmbeddedDocuments("ActiveEffect", [], { deleteAll: true });
9
diff --git a/src/resources/views/crud/inc/form_fields_script.blade.php b/src/resources/views/crud/inc/form_fields_script.blade.php subfield.isSubfield = true; subfield.subfieldHolder = this.name; }else{ - subfield.wrapper = $('[data-repeatable-identifier="'+this.name+'"][data-row-number="'+rowNumber+'"]'); + subfield.wrapper = $('[data-repeatable-identifier="'+this.name+'"][data-row-number="'+rowNumber+'"]').find('[bp-field-wrapper][bp-field-name$="'+name+'"]'); subfield.input = subfield.wrapper.closest('[data-repeatable-input-name$="'+name+'"][bp-field-main-input]'); // if no bp-field-main-input has been declared in the field itself, // assume it's the first input in that wrapper, whatever it is
1
diff --git a/js/plugin/POIMarkers.js b/js/plugin/POIMarkers.js @@ -83,7 +83,8 @@ BR.PoiMarkers = L.Control.extend({ var self = this; bootbox.prompt({ title: i18next.t('map.enter-poi-name'), - required: true, + // allow empty name with client-side formatting + required: !BR.Browser.download, callback: function (result) { if (result !== null) { self.addMarker(e.latlng, result);
11
diff --git a/src/components/signup/FaceRecognition.js b/src/components/signup/FaceRecognition.js @@ -10,8 +10,9 @@ type Props = { type State = {} export default class FaceRecognition extends React.Component<Props, State> { handleSubmit = () => { - this.props.screenProps.doneCallback({ isEmailConfirmed: true }) + this.props.screenProps.doneCallback({}) } + render() { return ( <Wrapper valid={true} handleSubmit={this.handleSubmit} submitText="Quick face recognition">
2
diff --git a/packages/testkit-backend/src/skipped-tests/common.js b/packages/testkit-backend/src/skipped-tests/common.js @@ -80,7 +80,7 @@ const skippedTests = [ ), skip( 'Keeps retrying on commit despite connection being dropped', - ifEquals('stub.retry.TestRetry.test_disconnect_on_commit') + ifEquals('stub.retry.test_retry.TestRetry.test_disconnect_on_commit') ), skip( 'Wait clarification about verifyConnectivity behaviour when no reader connection is available',
14
diff --git a/assets/js/components/settings/SettingsActiveModule/Footer.js b/assets/js/components/settings/SettingsActiveModule/Footer.js @@ -160,16 +160,21 @@ export default function Footer( props ) { setValue( dialogActiveKey, ! dialogActive ); }, [ dialogActive, dialogActiveKey, setValue ] ); - const handleEdit = useCallback( - () => + const handleEdit = useCallback( () => { trackEvent( `${ viewContext }_module-list`, 'edit_module_settings', slug - ), - [ slug, viewContext ] ); + setValues( FORM_SETUP, { + // Pre-enable GA4 controls. + enableGA4: true, + // Enable tooltip highlighting GA4 property select. + enableGA4PropertyTooltip: true, + } ); + }, [ setValues, slug, viewContext ] ); + if ( ! module ) { return null; }
12
diff --git a/src/PlayerContextProvider.js b/src/PlayerContextProvider.js @@ -130,8 +130,9 @@ class PlayerContextProvider extends Component { // html audio element used for playback this.audio = null; - // bind callback methods to pass to descendant elements this.setAudioElementRef = this.setAudioElementRef.bind(this); + + // bind callback methods to pass to descendant elements this.togglePause = this.togglePause.bind(this); this.selectTrackIndex = this.selectTrackIndex.bind(this); this.forwardSkip = this.forwardSkip.bind(this); @@ -146,7 +147,7 @@ class PlayerContextProvider extends Component { this.setPlaybackRate = this.setPlaybackRate.bind(this); this.pipeVideoStreamToCanvas = this.pipeVideoStreamToCanvas.bind(this); - // bind audio event listeners to add on mount and remove on unmount + // bind audio event handlers this.handleAudioPlay = this.handleAudioPlay.bind(this); this.handleAudioPause = this.handleAudioPause.bind(this); this.handleAudioSrcrequest = this.handleAudioSrcrequest.bind(this); @@ -172,20 +173,9 @@ class PlayerContextProvider extends Component { audio.defaultPlaybackRate = this.props.defaultPlaybackRate; audio.playbackRate = this.state.playbackRate; - // add event listeners on the audio element - audio.addEventListener('play', this.handleAudioPlay); - audio.addEventListener('pause', this.handleAudioPause); + // add special event listeners on the audio element audio.addEventListener('srcrequest', this.handleAudioSrcrequest); - audio.addEventListener('ended', this.handleAudioEnded); - audio.addEventListener('stalled', this.handleAudioStalled); - audio.addEventListener('canplaythrough', this.handleAudioCanplaythrough); - audio.addEventListener('timeupdate', this.handleAudioTimeupdate); - audio.addEventListener('loadedmetadata', this.handleAudioLoadedmetadata); - audio.addEventListener('volumechange', this.handleAudioVolumechange); - audio.addEventListener('durationchange', this.handleAudioDurationchange); - audio.addEventListener('progress', this.handleAudioProgress); audio.addEventListener('loopchange', this.handleAudioLoopchange); - audio.addEventListener('ratechange', this.handleAudioRatechange); this.addMediaEventListeners(this.props.onMediaEvent); if (isPlaylistValid(this.props.playlist) && this.props.autoplay) { @@ -306,20 +296,9 @@ class PlayerContextProvider extends Component { componentWillUnmount () { const { audio } = this; - // remove event listeners on the audio element - audio.removeEventListener('play', this.handleAudioPlay); - audio.removeEventListener('pause', this.handleAudioPause); + // remove special event listeners on the audio element audio.removeEventListener('srcrequest', this.handleAudioSrcrequest); - audio.removeEventListener('ended', this.handleAudioEnded); - audio.removeEventListener('stalled', this.handleAudioStalled); - audio.removeEventListener('canplaythrough', this.handleAudioCanplaythrough); - audio.removeEventListener('timeupdate', this.handleAudioTimeupdate); - audio.removeEventListener('loadedmetadata', this.handleAudioLoadedmetadata); - audio.removeEventListener('volumechange', this.handleAudioVolumechange); - audio.removeEventListener('durationchange', this.handleAudioDurationchange); - audio.removeEventListener('progress', this.handleAudioProgress); audio.removeEventListener('loopchange', this.handleAudioLoopchange); - audio.removeEventListener('ratechange', this.handleAudioRatechange); removeMediaEventListeners(this.props.onMediaEvent); clearTimeout(this.gapLengthTimeout); @@ -788,6 +767,17 @@ class PlayerContextProvider extends Component { crossOrigin={this.props.crossOrigin} preload="metadata" loop={this.state.loop} + onPlay={this.handleAudioPlay} + onPause={this.handleAudioPause} + onEnded={this.handleAudioEnded} + onStalled={this.handleAudioStalled} + onCanPlayThrough={this.handleAudioCanplaythrough} + onTimeUpdate={this.handleAudioTimeupdate} + onLoadedMetadata={this.handleAudioLoadedmetadata} + onVolumeChange={this.handleAudioVolumechange} + onDurationChange={this.handleAudioDurationchange} + onProgress={this.handleAudioProgress} + onRateChange={this.handleAudioRatechange} > {sources.map(source => <source key={source.src} src={source.src} type={source.type} />
5
diff --git a/src/og/shaders/drawnode.js b/src/og/shaders/drawnode.js @@ -15,44 +15,14 @@ import { Program } from "../webgl/Program.js"; const NIGHT = `const vec3 nightStep = 10.0 * vec3(0.58, 0.48, 0.25);`; -const __BLEND__ = ` - void blend( - out vec4 dest, - in sampler2D sampler, - in vec4 tileOffset, - in float opacity) - { - vec4 src = texture( sampler, tileOffset.xy + vTextureCoord.xy * tileOffset.zw ); - dest = dest * (1.0 - src.a * opacity) + src * opacity; - }`; - -const __BLEND1__ = - `void blend( - out vec4 dest, - in sampler2D sampler, - in vec4 tileOffset, - in float opacity) - { - vec4 src = texture2D(sampler, tileOffset.xy + vTextureCoord.xy * tileOffset.zw); - dest = dest * (1.0 - src.a * opacity) + src * opacity; - }` +const DEF_BLEND = `#define blend(DEST, SAMPLER, OFFSET, OPACITY) \ + src = texture( SAMPLER, OFFSET.xy + vTextureCoord.xy * OFFSET.zw ); \ + DEST = DEST * (1.0 - src.a * OPACITY) + src * OPACITY;`; + +const DEF_BLEND_WEBGL1 = `#define blend(DEST, SAMPLER, OFFSET, OPACITY) \ + src = texture2D( SAMPLER, OFFSET.xy + vTextureCoord.xy * OFFSET.zw ); \ + DEST = DEST * (1.0 - src.a * OPACITY) + src * OPACITY;`; -const DEF_BLEND = `#define blend(DEST, SAMPLER, OFFSET, OPACITY) src = texture( SAMPLER, OFFSET.xy + vTextureCoord.xy * OFFSET.zw ); DEST = DEST * (1.0 - src.a * OPACITY) + src * OPACITY;`; -const DEF_BLEND_WEBGL1 = `#define blend(DEST, SAMPLER, OFFSET, OPACITY) src = texture2D( SAMPLER, OFFSET.xy + vTextureCoord.xy * OFFSET.zw ); DEST = DEST * (1.0 - src.a * OPACITY) + src * OPACITY;`; - -const __BLEND_PICKING__ = `void blendPicking( - out vec4 dest, - in vec4 tileOffset, - in sampler2D sampler, - in sampler2D pickingMask, - in vec4 pickingColor, - in float opacity) -{ - vec2 tc = tileOffset.xy + vTextureCoord.xy * tileOffset.zw; - vec4 t = texture2D(sampler, tc); - vec4 p = texture2D(pickingMask, tc); - dest = mix(dest, vec4(max(pickingColor.rgb, p.rgb), opacity), (t.a == 0.0 ? 0.0 : 1.0) * pickingColor.a); -}` const DEF_BLEND_PICKING = `#define blendPicking(DEST, OFFSET, SAMPLER, MASK, COLOR, OPACITY) \ tc = OFFSET.xy + vTextureCoord.xy * OFFSET.zw; \
2
diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js @@ -29,9 +29,8 @@ class Tooltip extends Component { this.animation = new Animated.Value(0); - // The child component wrapped by this Tooltip. - // Since it's using Hoverable, there must be only one child of a Tooltip. - this.child = null; + // The wrapper view containing the wrapped content along with the Tooltip itself. + this.wrapperView = null; // The distance between the left side of the rendered view and the left side of the window this.xOffset = 0; @@ -44,7 +43,7 @@ class Tooltip extends Component { } getPosition() { - this.child.measureInWindow((x, y) => { + this.wrapperView.measureInWindow((x, y) => { this.xOffset = x; this.yOffset = y; }); @@ -67,7 +66,7 @@ class Tooltip extends Component { return ( <View - ref={el => this.child = el} + ref={el => this.wrapperView = el} onLayout={el => this.getPosition(el)} collapsable={false} >
10
diff --git a/plugins/cindygl/src/js/Renderer.js b/plugins/cindygl/src/js/Renderer.js @@ -330,6 +330,7 @@ Renderer.prototype.render = function(a, b, sizeX, sizeY, canvaswrapper) { Renderer.prototype.renderXR = function(viewIndex) { if (viewIndex == 0) { + gl.clearColor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); // Attribute locations might be changed by OpenXR. this.resetAttribLocations();
12
diff --git a/Source/Scene/ClassificationModel.js b/Source/Scene/ClassificationModel.js @@ -352,7 +352,7 @@ Object.defineProperties(ClassificationModel.prototype, { */ readyPromise: { get: function () { - return this._readyPromise.promise; + return this._readyPromise; }, },
1
diff --git a/token-metadata/0xF9c36C7aD7FA0f0862589c919830268d1A2581A1/metadata.json b/token-metadata/0xF9c36C7aD7FA0f0862589c919830268d1A2581A1/metadata.json "symbol": "BOA", "address": "0xF9c36C7aD7FA0f0862589c919830268d1A2581A1", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/index.js b/index.js @@ -24,17 +24,6 @@ const dataPath = __dirname; const canvasSymbol = Symbol(); const contexts = []; const _windowHandleEquals = (a, b) => a[0] === b[0] && a[1] === b[1]; -const _isAttached = el => { - for (;;) { - if (el === el.ownerDocument.documentElement) { - return true; - } else if (el.parentNode) { - el = el.parentNode; - } else { - return false; - } - } -}; const args = (() => { if (require.main === module) { @@ -86,7 +75,7 @@ nativeBindings.nativeGl.onconstruct = (gl, canvas) => { const canvasHeight = canvas.height || innerHeight; const windowHandle = (() => { try { - const visible = !args.image && _isAttached(canvas); + const visible = !args.image && canvas.ownerDocument.documentElement.contains(canvas); return nativeWindow.create(canvasWidth, canvasHeight, visible); } catch (err) { console.warn(err.message); @@ -106,7 +95,7 @@ nativeBindings.nativeGl.onconstruct = (gl, canvas) => { const ondomchange = () => { process.nextTick(() => { // show/hide synchronously emits events - if (_isAttached(canvas)) { + if (canvas.ownerDocument.documentElement.contains(canvas)) { nativeWindow.show(windowHandle); } else { nativeWindow.hide(windowHandle);
14
diff --git a/src/pages/index.js b/src/pages/index.js import React from 'react' -import { Link } from 'gatsby' +import { Link, graphql } from 'gatsby' import get from 'lodash/get' import Helmet from 'react-helmet' @@ -42,7 +42,7 @@ class BlogIndex extends React.Component { export default BlogIndex export const pageQuery = graphql` - query IndexQuery { + query { site { siteMetadata { title
0
diff --git a/src/traces/surface/convert.js b/src/traces/surface/convert.js @@ -546,12 +546,6 @@ proto.update = function(data) { data._objectOffset[2] ]; - params.objectScale = [ - scaleFactor[0], - scaleFactor[1], - scaleFactor[2] - ]; - params.coords = coords; surface.update(params);
2
diff --git a/nerdamer.core.js b/nerdamer.core.js @@ -4327,7 +4327,7 @@ var nerdamer = (function (imports) { acsc: function (symbol) { if (Settings.PARSE2NUMBER) { if (symbol.isConstant()) - return new Symbol(Math.acos(symbol.invert().valueOf())); + return new Symbol(Math.asin(symbol.invert().valueOf())); if (symbol.isImaginary()) return complex.evaluate(symbol, 'acsc'); }
1
diff --git a/config/examples/performance_sensitive.yaml b/config/examples/performance_sensitive.yaml # You should choose the fastest setjmp/longjmp for your platform. +# With the vast majority of compilers some of the 'undefined behavior' +# assumptions are fine, and produce smaller and faster code, so enable +# by default for performance oriented targets. You may need to disable +# this for some compilers. +DUK_USE_ALLOW_UNDEFINED_BEHAVIOR: true + DUK_USE_PREFER_SIZE: false DUK_USE_PACKED_TVAL: false # packed duk_tval slower in most cases DUK_USE_FASTINT: true
11
diff --git a/themes/5ePhb.style.less b/themes/5ePhb.style.less @@ -600,12 +600,19 @@ body { //***************************** // * CLASS TABLE // *****************************/ -.page .classTable{ +.page { + * + .classTable.frame { + margin-top : 0.66cm; + } + .classTable{ th[colspan]:not([rowspan]) { white-space : nowrap; } &.frame { margin-top : 0.66cm; + &.wide { // Allow top border to move into margin if + margin-top : 0; + } margin-bottom : 1.05cm; margin-left : -0.1cm; margin-right : -0.1cm; @@ -614,7 +621,7 @@ body { background-color : white; border : initial; border-style : solid; - border-image-outset : 0.55cm 0.3cm; + border-image-outset : 0.4cm 0.3cm; border-image-repeat : stretch; border-image-slice : 200; border-image-source : @frameBorderImage; @@ -645,6 +652,7 @@ body { margin-top : 0.2cm; } } +} //***************************** // * TABLE OF CONTENTS // *****************************/
11
diff --git a/src/Components/TextField/TextFieldLabel/TextFieldLabel.js b/src/Components/TextField/TextFieldLabel/TextFieldLabel.js @@ -171,9 +171,7 @@ class TextFieldLabel extends Component { } const baseFontSize = - StyleSheet.flatten(style).fontSize || - (Text.defaultProps || {}).fontSize || - 16; + StyleSheet.flatten(style).fontSize || theme.subtitleOne.fontSize; const fontStyle = { fontSize: fontSizeAnimation.interpolate({ inputRange: [0, 1],
4
diff --git a/src/components/sound.js b/src/components/sound.js @@ -173,7 +173,7 @@ module.exports.Component = registerComponent('sound', { for (i = 0; i < this.pool.children.length; i++) { sound = this.pool.children[i]; sound.onEnded = function () { - sound.isPlaying = false; + this.isPlaying = false; self.el.emit('sound-ended', self.evtDetail, false); }; }
12
diff --git a/scenes/silk-fountains.scn b/scenes/silk-fountains.scn { "position": [ 0, - 0, + -10.0, 0 ], "start_url": "https://webaverse.github.io/silk-fountains/silk-fountain-01/index.js" 0, 0 ], - "start_url": "https://webaverse.github.io/atmospheric-sky/" - }, - { - "position": [ - 0, - 0, - 0 - ], - "start_url": "https://plankatron.github.io./zone0/terrain.glb" + "start_url": "https://webaverse.github.io/silk-fountains/silk-fountains-ground/" }, { "position": [ 0, 0 ], - "start_url": "https://plankatron.github.io./zone0/street.glb" + "start_url": "https://webaverse.github.io/atmospheric-sky/" }, { "position": [ 0, 0 ], - "start_url": "https://plankatron.github.io./zone0/wall.glb" + "start_url": "https://plankatron.github.io./zone0/terrain.glb" } - ] } \ No newline at end of file
0
diff --git a/src/components/media/README.md b/src/components/media/README.md @@ -124,13 +124,13 @@ You can easily nest media objects by including another `<b-media>` inside parent ## Vertical align -Aside can be vertical aligned using `vertical-align` should be either `top`, `center` or `end`. -Default is `top`. +Aside can be vertically aligned using `vertical-align` prop, set to `top`, `center` or `end`. +The default alignment is `top`. ## Media list -Because the media object has so few structural requirements, you can also use these component as -list HTML elements. On your `<ul>` or `<ol>`, add the class `list-unstyled` to remove any browser +Because the media object has few structural requirements, you can use this component as +a list item in HTML lists. On your `<ul>` or `<ol>`, add the class `list-unstyled` to remove any browser default list styles, and then use the `<b-media>` component with `tag` prop set to `li`. As always, use spacing utilities wherever needed to fine tune.
7
diff --git a/lib/api-ban.js b/lib/api-ban.js @@ -38,10 +38,6 @@ export function getVoiesFantoir(communeCode) { return _fetch(`${API_BAN_URL}/api-fantoir/communes/${communeCode}/voies`) } -export function getVoiesCSVFantoir(communeCode) { - return `${API_BAN_URL}/api-fantoir/communes/${communeCode}/voies.csv` -} - export function getVoieFantoir(voieCode) { return _fetch(`${API_BAN_URL}/api-fantoir/voies/${voieCode}`) }
2
diff --git a/test/jasmine/tests/mapbox_test.js b/test/jasmine/tests/mapbox_test.js @@ -1329,13 +1329,13 @@ describe('@noCI, mapbox plots', function() { expect([evtData['mapbox.center'].lon, evtData['mapbox.center'].lat]).toBeCloseToArray(center); expect(evtData['mapbox.zoom']).toBeCloseTo(zoom); - expect(evtData['mapbox._derived']).toEqual({ - coordinates: [ + expect(Object.keys(evtData['mapbox._derived'])).toEqual(['coordinates']); + expect(evtData['mapbox._derived'].coordinates).toBeCloseTo2DArray([ [lon0, lat1], [lon1, lat1], [lon1, lat0], [lon0, lat0] - ]}); + ], -0.1); } _assertLayout([-4.710, 19.475], 1.234);
0
diff --git a/game.js b/game.js @@ -1332,6 +1332,7 @@ class GameManager extends EventTarget { this.closestObject = null; this.usableObject = null; this.hoverEnabled = false; + this.mapOpen = false; } getMenu() { return this.menuOpen; @@ -1520,6 +1521,15 @@ class GameManager extends EventTarget { } } + toggleMap() { + this.mapOpen = !this.mapOpen; + this.dispatchEvent(new MessageEvent('mapopenchange', { + data: { + mapOpen: this.mapOpen, + } + })); + } + menuVDown() { if (_getGrabbedObject(0)) { this.menuGridSnap();
0
diff --git a/js/format/VoiceHints.js b/js/format/VoiceHints.js this.turnInstructionMode = turnInstructionMode; this.transportMode = transportMode; - for (const feature of geoJson.features) { - let voicehints = feature?.properties.voicehints; - if (voicehints) { - this.voicehints = voicehints; - this.track = feature; - break; - } - } + this.track = geoJson.features?.[0]; + this.voicehints = this.track?.properties?.voicehints; }, getGpxTransform: function () { }, _loopHints: function (hintCallback) { + if (!this.voicehints) return; for (const [i, values] of this.voicehints.entries()) { const [indexInTrack, commandId, exitNumber, distance, time, angle, geometry] = values; const hint = { indexInTrack, commandId, exitNumber, distance, time, angle, geometry }; const trkseg = gpx.trk[0].trkseg[0]; let trkpt = trkseg.trkpt[0]; - const startTime = this.track.properties.times[this.voicehints[0][0]]; - rteptList.push({ + const startPt = { '@lat': trkpt['@lat'], '@lon': trkpt['@lon'], desc: 'start', - extensions: { time: Math.round(startTime), offset: 0 }, - }); + }; + const times = this.track?.properties?.times; + if (this.voicehints && times) { + const startTime = times[this.voicehints[0][0]]; + startPt.extensions = { time: Math.round(startTime), offset: 0 }; + } + rteptList.push(startPt); this._loopHints((hint, cmd, coord) => { const rtept = {
9
diff --git a/src/elements.js b/src/elements.js @@ -541,7 +541,7 @@ _.register({ dateTypes: { "month": /^[Y\d]{4}-[M\d]{2}$/i, "time": /^[H\d]{2}:[M\d]{2}/i, - "datetime-local": /^[Y\d]{4}-[M\d]{2}-[D\d]{2} [H\d]{2}:[M\d]{2}/i, + "datetime-local": /^[Y\d]{4}-[M\d]{2}-[D\d]{2} [H\d]{2}:[Mi\d]{2}/i, "date": /^[Y\d]{4}-[M\d]{2}-[D\d]{2}$/i, }, defaultFormats: {
11
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -13,7 +13,8 @@ and fixes the following bugs: * [Bug on not being able to see Admin Panel if not having access to Board List](https://github.com/wekan/wekan/pull/1371); * [Bug on not able to see member avatar on sidebar activity](https://github.com/wekan/wekan/pull/1380); * [Don't open swipebox on update card cover / download file / delete file](https://github.com/wekan/wekan/pull/1386); -* [Boards subscription should be placed at header for all other component can be used](https://github.com/wekan/wekan/pull/1381). +* [Boards subscription should be placed at header for all other component can be used](https://github.com/wekan/wekan/pull/1381); +* [bug on long url of attachment in card activity log](https://github.com/wekan/wekan/pull/1388). Thanks to GitHub users mfshiu, thuanpq and xet7 for their contributions. Thanks to translators for their translations.
1
diff --git a/services/datalad/datalad_service/common/user.py b/services/datalad/datalad_service/common/user.py @@ -2,7 +2,7 @@ def get_user_info(req): """Parse the name, email fields from a request.""" name = None email = None - if 'user' in req.context: + if 'user' in req.context and req.context['user']: user = req.context['user'] name = user['name'] email = user['email']
9
diff --git a/.travis.yml b/.travis.yml @@ -22,8 +22,6 @@ addons: - google-chrome packages: - google-chrome-stable fluxbox - sonarcloud: - organization: "adobeinc" before_script: - export DISPLAY=:99.0 @@ -41,7 +39,6 @@ script: - npm run allure:generate - npm run functional - rollup -c --environment BUILD:production && rollup -c --environment MINIFY,BUILD:production && bundlesize -- sonar-scanner jobs: include:
2
diff --git a/tests/e2e/specs/modules/analytics/write-scope-requests.test.js b/tests/e2e/specs/modules/analytics/write-scope-requests.test.js @@ -117,7 +117,6 @@ describe( 'Analytics write scope requests', () => { interceptCreatePropertyRequest = false; interceptCreateProfileRequest = false; - await activatePlugin( 'e2e-tests-site-verification-plugin' ); await activatePlugin( 'e2e-tests-oauth-callback-plugin' ); await setupSiteKit();
2
diff --git a/css/components/app/pages/splash_detail.scss b/css/components/app/pages/splash_detail.scss justify-content: center; background-color: $dark-pink; border-radius: 4px 0 0 4px; - cursor: cursor-pointer; - - img { - cursor: cursor-pointer; - } + cursor: pointer; } .detail-container { height: 100%; width: 100%; - .menu { - display: flex; + .menu-container { position: absolute; bottom: 50px; left: 50px; - align-items: center; z-index: 9999; + + .scenario-box { + display: flex; + align-items: center; + justify-content: center; + height: 40px; + width: 95px; + background-color: rgba(0,0,0,0.4); + border-radius: 4px 4px 0 0; + color: $white; + } + + .menu { + display: flex; + align-items: center; background: $white; padding: 10px; border-radius: 4px; } } } + } a-scene { width: 100%;
14
diff --git a/api/survey_api.py b/api/survey_api.py @@ -43,7 +43,10 @@ def update_survey(survey_id=None): except Survey.DoesNotExist: return abort(404) - content = json.loads(request.values['content']) + # BUG: There is an unknown situation where the frontend sends a string requiring an extra + # deserialization operation, causing 'content' to be a string containing a json string + # containing a json list, instead of just a string containing a json list. + content = recursive_survey_content_json_decode(request.values['content']) content = make_slider_min_max_values_strings(content) if survey.survey_type == Survey.TRACKING_SURVEY: @@ -60,6 +63,18 @@ def update_survey(survey_id=None): return make_response("", 201) +def recursive_survey_content_json_decode(json_entity): + """ Decodes through up to 100 attempts a json entity until it has deserialized to a list. """ + count = 100 + decoded_json = None + while not isinstance(decoded_json, list): + count -= 1 + if count < 0: + raise Exception("could not decode json entity to list") + decoded_json = json.loads(json_entity) + return decoded_json + + def make_slider_min_max_values_strings(json_content): """ Turns min/max int values into strings, because the iOS app expects strings. This is for backwards compatibility; when all the iOS apps involved in studies can handle ints,
9
diff --git a/react/src/base/lists/SprkList.js b/react/src/base/lists/SprkList.js @@ -31,7 +31,7 @@ SprkList.defaultProps = { }; SprkList.propTypes = { - /** The element that will be rendered. */ + /** Determines the type of list element is ordered or unordered. */ element: PropTypes.oneOf(['ol', 'ul']).isRequired, /** The children that will be rendered inside the list. */ children: PropTypes.node,
7
diff --git a/docs/articles/documentation/using-testcafe/using-testcafe-docker-image.md b/docs/articles/documentation/using-testcafe/using-testcafe-docker-image.md @@ -36,6 +36,10 @@ This command takes the following parameters: `-v //d/tests:/myTests` + If you are running a Windows machine with Docker Toolbox, note that Docker containers can only access the `C:\Users` directory by default. If you need to run tests from other directories, share these directories as described in the [Docker documentation](https://docs.docker.com/toolbox/toolbox_install_windows/#optional-add-shared-directories). + + In modern Docker for Windows, you also need to share a drive to reach it from Docker containers. For more information, see [Docker for Windows documentation](https://docs.docker.com/docker-for-windows/#shared-drives). + * `-it testcafe/testcafe` - runs TestCafe in the interactive mode with the console enabled; * `${TESTCAFE_ARGS}` - arguments passed to the `testcafe` command. You can use any arguments from the TestCafe [CLI](command-line-interface.md);
0
diff --git a/components/api-doc/tuto/result.js b/components/api-doc/tuto/result.js @@ -48,4 +48,18 @@ function Result({example, results, isLoading}) { ) } +Result.propTypes = { + example: PropTypes.string.isRequired, + results: PropTypes.oneOfType([ + PropTypes.array, + PropTypes.object + ]), + isLoading: PropTypes.bool +} + +Result.defaultProps = { + isLoading: true, + results: null +} + export default Result
0
diff --git a/lib/taiko.js b/lib/taiko.js @@ -146,7 +146,7 @@ module.exports.title = async () => { */ module.exports.click = click; -async function click(selector, waitForNavigation = false, options = {}) { +async function click(selector, waitForNavigation = true, options = {}) { validate(); const e = await element(selector); // const type = await p.evaluate(e => e.type, e);
12