code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/src/components/images/draw.js b/src/components/images/draw.js @@ -99,11 +99,15 @@ module.exports = function draw(gd) {
var dataURL = canvas.toDataURL('image/png');
thisImage.attr('xlink:href', dataURL);
+
+ // resolve promise in onload handler instead of on 'load' to support IE11
+ // see https://github.com/plotly/plotly.js/issues/1685
+ // for more details
+ resolve();
};
thisImage.on('error', errorHandler);
- thisImage.on('load', resolve);
img.src = d.source;
| 5 |
diff --git a/test/jasmine/tests/cartesian_test.js b/test/jasmine/tests/cartesian_test.js @@ -659,6 +659,88 @@ describe('subplot creation / deletion:', function() {
.then(done);
});
+ it('should clear obsolete content out of axis layers when changing overlaying configuation', function(done) {
+ function data() {
+ return [
+ {x: [1, 2], y: [1, 2]},
+ {x: [1, 2], y: [1, 2], xaxis: 'x2', yaxis: 'y2'}
+ ];
+ }
+
+ function fig0() {
+ return {
+ data: data(),
+ layout: {
+ xaxis2: {side: 'top', overlaying: 'x'},
+ yaxis2: {side: 'right', overlaying: 'y'}
+ }
+ };
+ }
+
+ function fig1() {
+ return {
+ data: data(),
+ layout: {
+ xaxis2: {side: 'top', domain: [0.37, 1]},
+ yaxis2: {side: 'right', overlaying: 'y'}
+ }
+ };
+ }
+
+ function getParentClassName(query, level) {
+ level = level || 1;
+ var cl = gd.querySelector('g.cartesianlayer');
+ var node = cl.querySelector(query);
+ while(level--) node = node.parentNode;
+ return node.getAttribute('class');
+ }
+
+ function _assert(msg, exp) {
+ expect(getParentClassName('.xtick'))
+ .toBe(exp.xtickParent, 'xitck parent - ' + msg);
+ expect(getParentClassName('.x2tick'))
+ .toBe(exp.x2tickParent, 'x2tick parent - ' + msg);
+ expect(getParentClassName('.trace' + gd._fullData[0].uid, 2))
+ .toBe(exp.trace0Parent, 'data[0] parent - ' + msg);
+ expect(getParentClassName('.trace' + gd._fullData[1].uid, 2))
+ .toBe(exp.trace1Parent, 'data[1] parent - ' + msg);
+ }
+
+ Plotly.react(gd, fig0())
+ .then(function() {
+ _assert('x2/y2 both overlays', {
+ xtickParent: 'xaxislayer-above',
+ x2tickParent: 'x2y2-x',
+ trace0Parent: 'plot',
+ trace1Parent: 'x2y2'
+ });
+ })
+ .then(function() {
+ return Plotly.react(gd, fig1());
+ })
+ .then(function() {
+ _assert('x2 free / y2 overlaid', {
+ xtickParent: 'xaxislayer-above',
+ x2tickParent: 'xaxislayer-above',
+ trace0Parent: 'plot',
+ trace1Parent: 'plot'
+ });
+ })
+ .then(function() {
+ return Plotly.react(gd, fig0());
+ })
+ .then(function() {
+ _assert('back to x2/y2 both overlays', {
+ xtickParent: 'xaxislayer-above',
+ x2tickParent: 'x2y2-x',
+ trace0Parent: 'plot',
+ trace1Parent: 'x2y2'
+ });
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
it('clear axis ticks, labels and title when relayout an axis to `*visible:false*', function(done) {
function _assert(xaxis, yaxis) {
var g = d3.select('.subplot.xy');
| 0 |
diff --git a/tests/phpunit/bootstrap.php b/tests/phpunit/bootstrap.php @@ -42,23 +42,6 @@ $GLOBALS['wp_tests_options'] = array(
'active_plugins' => array( basename( TESTS_PLUGIN_DIR ) . '/google-site-kit.php' ),
);
-/**
- * PHP 8 Compatibility with PHPUnit 7.
- *
- * WordPress core loads these via the main autoloader but these files
- * aren't installed via Composer (yet) so we need to require them manually
- * before PHPUnit's bundled versions are autoloaded to use the compatible versions.
- *
- * @see https://core.trac.wordpress.org/ticket/50902
- * @see https://core.trac.wordpress.org/ticket/50913
- */
-if ( version_compare( '8.0', phpversion(), '<=' ) ) {
- require_once $_test_root . '/includes/phpunit7/MockObject/Builder/NamespaceMatch.php';
- require_once $_test_root . '/includes/phpunit7/MockObject/Builder/ParametersMatch.php';
- require_once $_test_root . '/includes/phpunit7/MockObject/InvocationMocker.php';
- require_once $_test_root . '/includes/phpunit7/MockObject/MockMethod.php';
-}
-
// Give access to tests_add_filter() function.
require $_test_root . '/includes/functions.php';
| 2 |
diff --git a/packages/core/types/stitches.d.ts b/packages/core/types/stitches.d.ts @@ -35,7 +35,7 @@ export default interface Stitches<
'@font-face'?: unknown
} & {
[K in Prelude]: K extends '@import'
- ? string
+ ? string | string[]
: K extends '@font-face'
? CSSUtil.Native.AtRule.FontFace | CSSUtil.Native.AtRule.FontFace[]
: K extends `@keyframes ${string}`
| 11 |
diff --git a/core/worker/lib/consumer/JobConsumer.js b/core/worker/lib/consumer/JobConsumer.js @@ -47,7 +47,10 @@ class JobConsumer extends EventEmitter {
});
this._job = job;
- etcd.watch({ jobId: this._job.data.jobID });
+ await etcd.watch({ jobId: this._job.data.jobID });
+ await etcd.update({
+ jobId: this._job.data.jobID, taskId: this._job.id, status: 'active'
+ });
stateManager.setJob(job);
stateManager.prepare(job);
this.emit('job', job);
| 12 |
diff --git a/userscript.user.js b/userscript.user.js @@ -1238,7 +1238,7 @@ var $$IMU_EXPORT$$;
},
mouseover_allow_partial: {
name: "Allow showing partially loaded",
- description: "This will allow the popup to open for a partially loaded video or image+video, but this might break some images for the userscript",
+ description: "This will allow the popup to open for partially loaded media, but this might break some images for the userscript",
requires: {
mouseover: true,
mouseover_open_behavior: "popup"
| 7 |
diff --git a/src/data/faq.json b/src/data/faq.json },
{
"title": "Is my certificate valid in the country I am travelling to?",
- "anchor": "eu_dcc_check_validity",
+ "anchor": "eu_cert_travel",
"active": true,
"textblock": [
"Starting with version 2.6, you can check before travelling whether your certificates (test, recovery and/or vaccination certificate) are valid in a selected country at the time of your trip. The Corona-Warn-App takes into account the applicable entry rules of the selected travel country and compares them with various parameters of the certificate, such as the date and type of test, test center or date of vaccination.",
| 10 |
diff --git a/web/components/pages/AuditLogPage.js b/web/components/pages/AuditLogPage.js @@ -32,7 +32,7 @@ const AuditLogPage = class extends Component {
<div
className="audit__author"
>
- {`${author.first_name} ${author.last_name}`}
+ {author? `${author.first_name} ${author.last_name}`: 'Unknown'}
</div>
</Flex>
<div className="audit__date">{moment(created_date).format('Do MMM YYYY HH:mma')}</div>
| 9 |
diff --git a/src/tracing/exporters/console.js b/src/tracing/exporters/console.js @@ -260,6 +260,8 @@ class ConsoleTraceExporter extends BaseTraceExporter {
*/
printRequest(id) {
const main = this.spans[id];
+ if (!main) return ; // Async span
+
const margin = 2 * 2;
const w = this.opts.width - margin;
| 9 |
diff --git a/demo/app/css/main.css b/demo/app/css/main.css @@ -12,3 +12,15 @@ div {
border-radius: 8px;
}
+.tab-content {
+ border-left: 1px solid #ddd;
+ border-right: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ padding: 10px;
+ margin: 0px;
+}
+
+.nav-tabs {
+ margin-bottom: 0;
+}
+
| 7 |
diff --git a/src/gmx/SfGmx.hx b/src/gmx/SfGmx.hx package gmx;
using StringTools;
+import tools.Dictionary;
import tools.StringBuilder;
/**
@@ -22,7 +23,7 @@ class SfGmx {
//
public var children:Array<SfGmx> = [];
private var attrList:Array<String> = [];
- private var attrMap:Map<String, String> = new Map();
+ private var attrMap:Dictionary<String> = new Dictionary();
public function new(name:String, text:String = null) {
this.name = name;
this.text = text;
@@ -89,15 +90,15 @@ class SfGmx {
}
//
private function toStringRec(r:StringBuilder, t:String) {
- if (children.length == 0 && text == null) {
- r.addFormat("<%s/>", name);
- return;
- }
r.addChar("<".code);
r.addString(name);
for (attr in attrList) {
r.addFormat(' %s="%s"', attr, attrMap[attr].htmlEscape(true));
}
+ if (children.length == 0 && text == null) {
+ r.addString("/>");
+ return;
+ }
r.addChar(">".code);
var n = children.length;
if (n > 0) {
| 1 |
diff --git a/physx.js b/physx.js @@ -957,6 +957,105 @@ const physxWorker = (() => {
moduleInstance._setAngularLockFlagsPhysics(physics, physicsId, x, y, z)
}
+ w.sweepBox = (
+ physics,
+ origin,
+ quaternion,
+ halfExtents,
+ direction,
+ sweepDistance,
+ maxHits,
+ /* numHitsBuf.byteOffset,
+ positionBuf.byteOffset,
+ normalBuf.byteOffset,
+ distanceBuf.byteOffset,
+ objectIdBuf.byteOffset,
+ faceIndexBuf.byteOffset, */
+ ) => {
+ const allocator = new Allocator();
+
+ // inputs
+ const originBuf = allocator.alloc(
+ Float32Array,
+ 3
+ );
+ origin.toArray(originBuf);
+ const quaternionBuf = allocator.alloc(
+ Float32Array,
+ 4
+ );
+ quaternion.toArray(quaternionBuf);
+ const halfExtentsBuf = allocator.alloc(
+ Float32Array,
+ 3
+ );
+ halfExtents.toArray(halfExtentsBuf);
+ const directionBuf = allocator.alloc(
+ Float32Array,
+ 3
+ );
+ direction.toArray(directionBuf);
+
+ // outputs
+ const numHitsBuf = allocator.alloc(
+ Uint32Array,
+ 1
+ );
+ const positionBuf = allocator.alloc(
+ Float32Array,
+ maxHits * 3
+ );
+ const normalBuf = allocator.alloc(
+ Float32Array,
+ maxHits * 3
+ );
+ const distanceBuf = allocator.alloc(
+ Float32Array,
+ maxHits * 1
+ );
+ const objectIdBuf = allocator.alloc(
+ Uint32Array,
+ maxHits * 1
+ );
+ const faceIndexBuf = allocator.alloc(
+ Uint32Array,
+ maxHits * 1
+ );
+
+ moduleInstance._sweepBox(
+ physics,
+ originBuf.byteOffset,
+ quaternionBuf.byteOffset,
+ halfExtentsBuf.byteOffset,
+ directionBuf.byteOffset,
+ sweepDistance,
+ maxHits,
+ numHitsBuf.byteOffset,
+ positionBuf.byteOffset,
+ normalBuf.byteOffset,
+ distanceBuf.byteOffset,
+ objectIdBuf.byteOffset,
+ faceIndexBuf.byteOffset,
+ );
+
+ const numHits = numHitsBuf[0];
+ let result = Array(numHits);
+ for (let i = 0; i < numHits; i++) {
+ const object = {
+ position: new THREE.Vector3().fromArray(positionBuf, i * 3),
+ normal: new THREE.Vector3().fromArray(normalBuf, i * 3),
+ distance: distanceBuf[i],
+ objectId: objectIdBuf[i],
+ faceIndex: faceIndexBuf[i],
+ };
+ result[i] = object;
+ }
+
+ allocator.freeAll();
+
+ return result
+ };
+
w.getPathPhysics = (
physics,
start,
| 0 |
diff --git a/src/plugins/ProgressBar.js b/src/plugins/ProgressBar.js @@ -14,6 +14,7 @@ module.exports = class ProgressBar extends Plugin {
// set default options
const defaultOptions = {
+ target: 'body',
replaceTargetContent: false,
fixed: false
}
| 12 |
diff --git a/lib/media/drm_engine.js b/lib/media/drm_engine.js @@ -281,12 +281,12 @@ shaka.media.DrmEngine.prototype.attach = function(video) {
// warn when the stream is encrypted, even though the manifest does not know
// it.
// Don't complain about this twice, so just listenOnce().
- this.eventManager_.listenOnce(video, 'encrypted', function(event) {
+ this.eventManager_.listenOnce(video, 'encrypted', (event) => {
this.onError_(new shaka.util.Error(
shaka.util.Error.Severity.CRITICAL,
shaka.util.Error.Category.DRM,
shaka.util.Error.Code.ENCRYPTED_CONTENT_WITHOUT_DRM_INFO));
- }.bind(this));
+ });
return Promise.resolve();
}
| 14 |
diff --git a/src/commands/dev.ts b/src/commands/dev.ts @@ -375,6 +375,8 @@ export async function command(commandOptions: CommandOptions) {
proxy.web(req, res, {
target: `${workerConfig.args.fromUrl}${newPath}`,
ignorePath: true,
+ secure: false,
+ changeOrigin: true,
});
return;
}
| 0 |
diff --git a/htdocs/js/ui/notebook_merger/merger_model.js b/htdocs/js/ui/notebook_merger/merger_model.js @@ -4,12 +4,14 @@ RCloud.UI.merger_model = (function() {
// TODO: Was this actual requirement?
const MERGE_CHANGES_BY = 'merge-changes-by';
+ const DEFAULT_SOURCE = 'url';
+
const MESSAGES = Object.freeze({
same_notebook_error : 'You cannot merge from your current notebook; the source must be a different notebook.',
invalid_notebook_id_error : 'Invalid notebook ID.',
not_found_notebook_error : 'The notebook could not be found.',
- no_file_to_upload_error : 'No file to upload',
- invalid_url_error : 'Invalid URL'
+ no_file_to_upload_error : 'No file to upload.',
+ invalid_url_error : 'Invalid RCloud Notebook URL.'
});
const merger_model = class {
@@ -38,7 +40,7 @@ RCloud.UI.merger_model = (function() {
this._diff_engine = new RCloud.UI.merging.diff_engine();
this._dialog_stage = this.DialogStage.INIT;
- this._merge_source = 'url';
+ this._merge_source = DEFAULT_SOURCE;
this._notebook_from_file = undefined;
this._delta_decorations = [];
this._diff_info = [];
@@ -49,9 +51,15 @@ RCloud.UI.merger_model = (function() {
get_notebook_merge_property() {
// Use previous selection used.
- rcloud.get_notebook_property(shell.gistname(), MERGE_CHANGES_BY).then(val => {
+ rcloud.get_notebook_property(shell.gistname(), MERGE_CHANGES_BY).catch((e) => {
+ console.error(e);
+ this.on_set_merge_source.notify({
+ type: DEFAULT_SOURCE
+ });
+
+ }).then(val => {
+ // value has format '<source-type>:<source-value>''
if(val && val.indexOf(':') !== -1) {
- // split and set:
var separatorIndex = val.indexOf(':');
var type = val.substring(0, separatorIndex);
var value = val.substring(separatorIndex + 1);
@@ -63,18 +71,16 @@ RCloud.UI.merger_model = (function() {
type,
value
});
- }
- else {
- // default:
+ } else {
this.on_set_merge_source.notify({
- type: 'url'
+ type: DEFAULT_SOURCE
});
}
});
}
reset() {
- this._merge_source = 'url';
+ this._merge_source = DEFAULT_SOURCE;
this._notebook_from_file = undefined;
this._dialog_stage = this.DialogStage.INIT;
this._diff_engine = new RCloud.UI.merging.diff_engine();
| 7 |
diff --git a/src/modules/helpers/UpdateHelpers.js b/src/modules/helpers/UpdateHelpers.js @@ -218,8 +218,7 @@ export default class UpdateHelpers {
}
forceYAxisUpdate(options) {
- const w = this.w
- if (w.config.chart.stacked && w.config.chart.stackType === '100%') {
+ if (options.chart && options.chart.stacked && options.chart.stackType === '100%') {
if (Array.isArray(options.yaxis)) {
options.yaxis.forEach((yaxe, index) => {
options.yaxis[index].min = 0
| 4 |
diff --git a/netlify.toml b/netlify.toml DISABLE_CREATE_ACCOUNT = "true"
REACT_APP_MULTISIG_MIN_AMOUNT = "36"
MIXPANEL_TOKEN = "4a10180da7af8d6d0728154d535aa7bb"
+ LOCKUP_ACCOUNT_ID_SUFFIX = "lockup.near"
[[headers]]
for = "/*"
| 12 |
diff --git a/aura-components/src/main/components/aurajstest/jstestCase/jstestCaseHelper.js b/aura-components/src/main/components/aurajstest/jstestCase/jstestCaseHelper.js }
if (!root) {
- if (!win.$A.test.isComplete()) {
+ if(!win.$A || !win.$A.test || !win.$A.test.isComplete()){
cmp.set("v.status", "spin");
setTimeout(function () {
cmp.getDef().getHelper().runTest(cmp);
| 9 |
diff --git a/src/abstract-ops/type-conversion.mjs b/src/abstract-ops/type-conversion.mjs @@ -131,7 +131,7 @@ export function ToNumber(argument) {
// FIXME(devsnek): https://tc39.github.io/ecma262/#sec-runtime-semantics-mv-s
return new Value(+(argument.stringValue()));
case 'Symbol':
- return surroundingAgent.Throw('TypeError');
+ return surroundingAgent.Throw('TypeError', 'Can not convert a Symbol value to a number');
case 'Object': {
const primValue = Q(ToPrimitive(argument, 'Number'));
return Q(ToNumber(primValue));
| 3 |
diff --git a/tools/webpack.config.js b/tools/webpack.config.js @@ -39,9 +39,7 @@ const baseConfig = {
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
- use: (__DEV__ && pkg.app.reactHotLoader ? [{
- loader: 'react-hot-loader/webpack'
- }] : []).concat([{
+ use: [{
loader: 'babel-loader',
options: {
"presets": ["react", ["es2015", { "modules": false }], "stage-2"],
@@ -52,7 +50,7 @@ const baseConfig = {
].concat(__DEV__ && pkg.app.reactHotLoader ? ['react-hot-loader/babel'] : []),
"only": ["*.js", "*.jsx"],
}
- }]).concat(
+ }].concat(
pkg.app.persistGraphQL ?
['persistgraphql-webpack-plugin/js-loader'] : []
)
| 14 |
diff --git a/articles/api/management/v2/changes.md b/articles/api/management/v2/changes.md @@ -95,7 +95,6 @@ Logs endpoints in Management API v2 are described at [Search Log Events](https:/
| v1 Endpoint | Change | v2 Endpoint |
| ----------- | ------ | ----------- |
| [GET /logs](/api/v1#logs) | Syntax Changes, described at [Breaking Changes](https://auth0.com/docs/logs/query-syntax#search-engine-v3-breaking-changes) | [GET /api/v2/logs](/api/v2#!/Logs/get_logs) |
-| [GET /logs/{id}](/api/v1#logs) | Syntax Changes, described at [Breaking Changes](https://auth0.com/docs/logs/query-syntax#search-engine-v3-breaking-changes) | [GET /api/v2/logs/{id}](/api/v2#!/Logs/get_logs_by_id) |
## Authentication mechanism
| 2 |
diff --git a/articles/metadata/index.md b/articles/metadata/index.md @@ -16,22 +16,25 @@ An authenticated user can modify data in their profile's `user_metadata`, but no
## How to Read, Create, or Edit Metadata
-There are two ways by which you can manage your user metadata:
-
-1. [Rules](/rules/metadata-in-rules)
-2. [Auth0 APIs](/metadata/apis)
+There are two ways by which you can manage your user metadata: using Rules, or using the Auth0 APIs.
### Use Rules
-[Rules](/rules) are JavaScript functions executed as part of the Auth0 authentication process (prior to authorization). Using rules, you can read, create, or update user metadata and have such changes affect the results of the authorization process. For more information and examples refer to [User Metadata in Rules](/rules/current/metadata-in-rules).
+[Rules](/rules) are JavaScript functions executed as part of the Auth0 authentication process (prior to authorization). Using rules, you can read, create, or update user metadata and have such changes affect the results of the authorization process.
+
+For more information and examples refer to [User Metadata in Rules](/rules/current/metadata-in-rules).
-### Auth0 APIs
+### Use the Auth0 APIs
When you use the [Authentication API](/api/authentication), you can use the [Signup](/api/authentication?shell#signup) endpoint, in order to set the `user_metadata` for a user. Note though that this endpoint only works for database connections.
For an example, refer to [Custom Signup > Using the API](/libraries/custom-signup#using-the-api).
-You can also use the [Management API](/api/management/v2) in order to retrieve, create, or update both the `user_metadata` and `app_metadata` fields at any point.
+:::note
+You can also use the [GET /userinfo endpoint](/api/authentication#get-user-info) in order to get a user's `user_metadata`. To do so, you first have to [write a Rule to copy `user_metadata` properties to the ID token](/rules#copy-user-metadata-to-id-token).
+:::
+
+You can use the [Management API](/api/management/v2) in order to retrieve, create, or update both the `user_metadata` and `app_metadata` fields at any point.
| **Endpoint** | **Description** |
|--|--|
@@ -41,6 +44,10 @@ You can also use the [Management API](/api/management/v2) in order to retrieve,
| [Create User](/api/management/v2#!/Users/post_users) | Create a new user and (optionally) set metadata. For a body sample see [POST /api/v2/users](/api/management/v2#!/Users/post_users).|
| [Update User](/api/management/v2#!/Users/patch_users_by_id) | Update a user using a JSON object. For example requests see [PATCH /api/v2/users/{id}](/api/management/v2#!/Users/patch_users_by_id).|
+:::note
+For examples and more info you can also refer to [How to Create and Update User Metadata With the Auth0 APIs](/metadata/apis).
+:::
+
#### Search Metadata
Beginning **1 September 2017**, new tenants cannot search any of the `app_metadata` fields.
| 0 |
diff --git a/scripts/fetch-helpers/whatwg.js b/scripts/fetch-helpers/whatwg.js @@ -4,6 +4,6 @@ module.exports = function(id, ref) {
href: ref.href,
title: ref.title,
obsoletedBy: ref.obsoletedBy,
- status: "Living Standard"
+ status: ref.status || "Living Standard"
};
}
| 11 |
diff --git a/lib/cartodb/models/dataview/numeric-histogram.js b/lib/cartodb/models/dataview/numeric-histogram.js @@ -207,7 +207,7 @@ module.exports = class NumericHistogram extends BaseDataview {
_buildQuery (psql, override, callback) {
- const histogramSql = this.buildQueryTpl({
+ const histogramSql = this._buildQueryTpl({
_override: override,
_column: this._columnType === 'date' ? columnCastTpl({ column: this.column }) : this.column,
_isFloatColumn: this._columnType === 'float',
@@ -223,7 +223,7 @@ module.exports = class NumericHistogram extends BaseDataview {
return callback(null, histogramSql);
}
- buildQueryTpl (ctx) {
+ _buildQueryTpl (ctx) {
return `
WITH
${filteredQueryTpl(ctx)},
| 10 |
diff --git a/packages/components/src/components/PipelineRuns/PipelineRuns.js b/packages/components/src/components/PipelineRuns/PipelineRuns.js @@ -97,51 +97,59 @@ const PipelineRuns = ({
}
});
- const pipelineRunsFormatted = pipelineRuns.map(pipelineRun => ({
- id: `${pipelineRun.metadata.namespace}:${pipelineRun.metadata.name}`,
- name: (
- <Link
- to={createPipelineRunURL({
- namespace: pipelineRun.metadata.namespace,
- pipelineRunName: createPipelineRunDisplayName({
+ const pipelineRunsFormatted = pipelineRuns.map(pipelineRun => {
+ const { namespace, annotations } = pipelineRun.metadata;
+ const pipelineRunName = createPipelineRunDisplayName({
pipelineRunMetadata: pipelineRun.metadata
- })
- })}
- >
- {pipelineRun.metadata.name}
- </Link>
- ),
- pipeline: !hidePipeline && (
+ });
+ const pipelineRefName = pipelineRun.spec.pipelineRef.name;
+ const pipelineRunType = pipelineRun.spec.type;
+ const { reason, status } = getStatus(pipelineRun);
+ const statusIcon = getPipelineRunStatusIcon(pipelineRun);
+ const pipelineRunStatus = getPipelineRunStatus(pipelineRun, intl);
+ const url = createPipelineRunURL({
+ namespace,
+ pipelineRunName,
+ annotations
+ });
+ return {
+ id: `${namespace}:${pipelineRunName}`,
+ name: url ? <Link to={url}>{pipelineRunName}</Link> : pipelineRunName,
+ pipeline:
+ !hidePipeline &&
+ (pipelineRefName ? (
<Link
to={createPipelineRunsByPipelineURL({
- namespace: pipelineRun.metadata.namespace,
- pipelineName: pipelineRun.spec.pipelineRef.name
+ namespace,
+ pipelineName: pipelineRefName
})}
>
- {pipelineRun.spec.pipelineRef.name}
+ {pipelineRefName}
</Link>
- ),
- namespace: !hideNamespace && pipelineRun.metadata.namespace,
+ ) : (
+ ''
+ )),
+ namespace: !hideNamespace && namespace,
status: (
<div className="definition">
- <div
- className="status"
- data-status={getStatus(pipelineRun).status}
- data-reason={getStatus(pipelineRun).reason}
- >
- <div className="status-icon">
- {getPipelineRunStatusIcon(pipelineRun)}
- </div>
- {getPipelineRunStatus(pipelineRun, intl)}
+ <div className="status" data-status={status} data-reason={reason}>
+ {statusIcon}
+ {pipelineRunStatus}
</div>
</div>
),
transitionTime: (
- <FormattedDate date={createPipelineRunTimestamp(pipelineRun)} relative />
+ <FormattedDate
+ date={createPipelineRunTimestamp(pipelineRun)}
+ relative
+ />
),
- type: pipelineRun.spec.type,
- dropdown: <RunDropdown items={pipelineRunActions} resource={pipelineRun} />
- }));
+ type: pipelineRunType,
+ dropdown: (
+ <RunDropdown items={pipelineRunActions} resource={pipelineRun} />
+ )
+ };
+ });
return (
<Table
| 9 |
diff --git a/bin/cli.js b/bin/cli.js @@ -545,7 +545,7 @@ if (command === 'create') {
};
let promptSaveAuthDetails = function () {
- promptConfirm(`Would you like to save your DockerHub username and password as Base64 to ${asyngularK8sConfigFilePath}?`, {default: true}, handleSaveDockerAuthDetails);
+ promptConfirm(`Would you like to save your Docker registry username and password as Base64 to ${asyngularK8sConfigFilePath}?`, {default: true}, handleSaveDockerAuthDetails);
};
let handlePassword = function (password) {
@@ -563,7 +563,7 @@ if (command === 'create') {
handlePassword(dockerPassword);
return;
}
- promptInput('Enter your DockerHub password:', handlePassword, true);
+ promptInput('Enter your Docker registry password:', handlePassword, true);
};
let promptUsername = function () {
@@ -571,7 +571,7 @@ if (command === 'create') {
handleUsername(dockerUsername);
return;
}
- promptInput('Enter your DockerHub username:', handleUsername);
+ promptInput('Enter your Docker registry username:', handleUsername);
};
promptUsername();
| 7 |
diff --git a/unlock-protocol-com/src/components/helpers/Provider.tsx b/unlock-protocol-com/src/components/helpers/Provider.tsx @@ -65,7 +65,7 @@ export function Provider({ children }: Props) {
script.innerText = `(function(d, s) {
var js = d.createElement(s),
sc = d.getElementsByTagName(s)[0];
- js.src="https://paywall.unlock-protocol.com/static/unlock.latest.min.js";
+ js.src="https://paywall.unlock-protocol.com/static/unlock.latest.min.js?alpha=true";
sc.parentNode.insertBefore(js, sc); }(document, "script"));
`.trim()
document.body.appendChild(script)
| 4 |
diff --git a/weapons-manager.js b/weapons-manager.js @@ -556,9 +556,17 @@ const _mousedown = () => {
if (useComponent) {
let useAction = localPlayer.actions.find(action => action.type === 'use');
if (!useAction) {
+ const {instanceId} = wearApp;
+ const {boneAttachment, animation, position, quaternion, scale} = useComponent;
useAction = {
type: 'use',
time: 0,
+ instanceId,
+ animation,
+ boneAttachment,
+ position,
+ quaternion,
+ scale,
};
localPlayer.actions.push(useAction);
}
| 0 |
diff --git a/token-metadata/0x3936Ad01cf109a36489d93cabdA11cF062fd3d48/metadata.json b/token-metadata/0x3936Ad01cf109a36489d93cabdA11cF062fd3d48/metadata.json "symbol": "COIL",
"address": "0x3936Ad01cf109a36489d93cabdA11cF062fd3d48",
"decimals": 9,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/kiri/print.js b/src/kiri/print.js @@ -396,7 +396,8 @@ class Print {
// the old sequence and start a new one
if (newlayer || (autolayer && seq.Z != pos.Z)) {
newlayer = false;
- let nh = (pos.Z - seq.Z || defh);
+ let dz = pos.Z - seq.Z;
+ let nh = dz > 0 ? dz : defh;
seq = [];
seq.height = height = nh;
if (fdm) dz = -height / 2;
| 1 |
diff --git a/.github/workflows/TEST-release.yml b/.github/workflows/TEST-release.yml @@ -42,3 +42,8 @@ jobs:
- run: mkdir -p $CUCUMBER_ARTIFACTS_DIR
- run: sudo chmod -R 777 $CUCUMBER_ARTIFACTS_DIR
- run: npm run test:bdd;
+ - uses: actions/upload-artifact@v2
+ if: ${{ always() }}
+ with:
+ name: my-artifact
+ path: /home/runner/work/ot-node/ot-node/artifacts
| 3 |
diff --git a/lib/resque/user_jobs.rb b/lib/resque/user_jobs.rb @@ -76,9 +76,9 @@ module Resque
response = http_client.delete(url, request_params.symbolize_keys)
response_code_string = response.code.to_s
- if response_code_string.match?(/^2/)
+ if response_code_string.start_with?("2")
response.response_body
- elsif (response_code_string.match?(/^5/) || response.code == 429) && retries < MAX_RETRY_ATTEMPTS
+ elsif (response_code_string.start_with?("5") || response.code == 429) && retries < MAX_RETRY_ATTEMPTS
sleep(RETRY_TIME_SECONDS**retries)
delete(url, request_params, retries: retries + 1)
end
| 14 |
diff --git a/vis/js/templates/contextfeatures/DocumentTypes.jsx b/vis/js/templates/contextfeatures/DocumentTypes.jsx @@ -39,7 +39,9 @@ const DocumentTypes = ({ documentTypes, popoverContainer }) => {
>
<span className="context_moreinfo">{loc.documenttypes_label}</span>
</HoverPopover>
- </span>{" "}
+ </span>
+ {/* this empty space was on web interface in context line */}
+ {/*{" "}*/}
</>
);
};
| 2 |
diff --git a/src/js/utils/colors.js b/src/js/utils/colors.js export const normalizeColor = (color, theme, required) => {
- const colorSpec = theme.global.colors[color] || color;
+ const colorSpec =
+ theme.global.colors[color] !== undefined
+ ? theme.global.colors[color]
+ : color;
// If the color has a light or dark object, use that
let result = colorSpec;
if (colorSpec) {
- if (theme.dark && colorSpec.dark) {
+ if (theme.dark && colorSpec.dark !== undefined) {
result = colorSpec.dark;
- } else if (!theme.dark && colorSpec.light) {
+ } else if (!theme.dark && colorSpec.light !== undefined) {
result = colorSpec.light;
}
}
// allow one level of indirection in color names
- if (result && theme.global.colors[result]) {
+ if (result && theme.global.colors[result] !== undefined) {
result = normalizeColor(result, theme);
}
return required && result === color ? 'inherit' : result;
| 1 |
diff --git a/OurUmbraco/Community/BlogPosts/BlogPostsService.cs b/OurUmbraco/Community/BlogPosts/BlogPostsService.cs @@ -65,6 +65,8 @@ namespace OurUmbraco.Community.BlogPosts
// Initialize a new web client (with the encoding specified for the blog)
using (var wc = new WebClient())
{
+ ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
+
wc.Headers.Add(HttpRequestHeader.UserAgent, userAgent);
wc.Encoding = blog.Encoding;
| 8 |
diff --git a/README.md b/README.md @@ -77,16 +77,15 @@ Be aware that all methods can be used with promises or callbacks. However, when
```js
// Using callbacks.
-auth0.getUsers(function (err, users) {
+management.getUsers(function (err, users) {
if (err) {
// handle error.
}
console.log(users);
});
-
// Using promises.
-auth0
+management
.getUsers()
.then(function (users) {
console.log(users);
| 7 |
diff --git a/assets/js/modules/analytics/common/account-create.js b/assets/js/modules/analytics/common/account-create.js @@ -47,8 +47,7 @@ const AccountCreate = () => {
const isDoingCreateAccount = useSelect(
( select ) => {
return select( STORE_NAME ).isDoingCreateAccount();
- },
- []
+ }
);
const accountTicketTermsOfServiceURL = useSelect(
| 2 |
diff --git a/tools/metadata/index.ts b/tools/metadata/index.ts @@ -11,18 +11,14 @@ export async function fetchTokens(
let tokens = []
const promises = await Promise.allSettled(
known.map(async url => {
- try {
const res = await axios.get(url)
return res.data.tokens
- } catch (e) {
- throw e.message
- }
})
)
tokens.push(...defaults)
promises.forEach(promise => {
if (promise.status === 'rejected') {
- errors.push(promise.reason)
+ errors.push(promise.reason.message)
} else {
tokens.push(...promise.value)
}
| 2 |
diff --git a/js/binance.js b/js/binance.js @@ -144,13 +144,14 @@ module.exports = class binance extends ccxt.binance {
const message = messages[i];
const U = this.safeInteger (message, 'U');
const u = this.safeInteger (message, 'u');
+ const pu = this.safeInteger (message, 'pu');
if (type === 'future') {
// 4. Drop any event where u is < lastUpdateId in the snapshot
if (u < orderbook['nonce']) {
continue;
}
// 5. The first processed event should have U <= lastUpdateId AND u >= lastUpdateId
- if ((U <= orderbook['nonce']) && (u >= orderbook['nonce'])) {
+ if ((U <= orderbook['nonce']) && (u >= orderbook['nonce']) || pu === orderbook['nonce']) {
this.handleOrderBookMessage (client, message, orderbook);
}
} else {
| 1 |
diff --git a/scenes/street.scn b/scenes/street.scn "position": [-1, 4, -1],
"quaternion": [0, 0, 0, 1],
"start_url": "https://avaer.github.io/physicscube/"
+ },
+ {
+ "position": [-2, 1, 1],
+ "quaternion": [0, 0.7071067811865475, 0, 0.7071067811865476],
+ "start_url": "https://webaverse.github.io/sword/"
}
]
}
| 0 |
diff --git a/token-metadata/0xb056c38f6b7Dc4064367403E26424CD2c60655e1/metadata.json b/token-metadata/0xb056c38f6b7Dc4064367403E26424CD2c60655e1/metadata.json "symbol": "CEEK",
"address": "0xb056c38f6b7Dc4064367403E26424CD2c60655e1",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/articles/quickstart/webapp/aspnet-core/_includes/_login.md b/articles/quickstart/webapp/aspnet-core/_includes/_login.md @@ -161,7 +161,7 @@ Add the `Login` and `Logout` actions to `AccountController`.
To add the `Login` action, call `ChallengeAsync` and pass "Auth0" as the authentication scheme. This will invoke the OIDC authentication handler you registered in the `ConfigureServices` method.
-After the OIDC middleware signs the user in, the user is also automatically signed in to the cookie middleware. This allows the user to be authenticated later.
+After the OIDC middleware signs the user in, the user is also automatically signed in to the cookie middleware. This allows the user to be authenticated on subsequent requests.
For the `Logout` action, you need to sign the user out of both middlewares.
| 0 |
diff --git a/metaverse_modules/target-reticle/index.js b/metaverse_modules/target-reticle/index.js @@ -13,6 +13,7 @@ const menuRadius = 0.025; */
const localVector = new THREE.Vector3();
const localVector2D = new THREE.Vector2();
+const localQuaternion = new THREE.Quaternion();
const targetTypes = [
'object',
@@ -171,6 +172,7 @@ const _makeTargetReticleMesh = () => {
// #define PI 3.1415926535897932384626433832795
attribute vec3 offset;
+ attribute vec4 quaternion;
attribute vec2 normal2;
// uniform vec4 uBoundingBox;
uniform float uZoom;
@@ -190,6 +192,9 @@ const _makeTargetReticleMesh = () => {
v.x * sin(a) + v.y * cos(a)
);
}
+ vec3 rotateVec3Quat( vec3 v, vec4 q ) {
+ return v + 2.0*cross(cross(v, q.xyz ) + q.w*v, q.xyz);
+ }
void main() {
vec3 p = position;
@@ -197,6 +202,7 @@ const _makeTargetReticleMesh = () => {
float angle = uTime * PI * 2.;
p = vec3(rotate2D(p.xy, angle) + rotate2D(normal2 * uZoom * zoomDistance, angle), p.z);
}
+ p = rotateVec3Quat(p, quaternion);
p += offset;
vec4 mvPosition = modelViewMatrix * vec4(p, 1.0);
@@ -353,7 +359,8 @@ const _makeTargetReticleMesh = () => {
} else {
f2 = 1 - ((f - 3/4) * 4);
}
- material.uniforms.uZoom.value = 1 - f2;
+ // material.uniforms.uZoom.value = 1 - f2;
+ material.uniforms.uZoom.value = 0;
material.uniforms.uZoom.needsUpdate = true;
material.uniforms.uTime.value = f;
@@ -366,7 +373,7 @@ const _makeTargetReticleMesh = () => {
const reticle = reticles[i];
const position = reticle.position;
- const quaternion = camera.quaternion;
+ const quaternion = localQuaternion.copy(camera.quaternion).invert();
for (let j = 0; j < geometry.drawStride; j++) {
position.toArray(geometry.attributes.offset.array, (i * geometry.drawStride * 3) + (j * 3));
| 0 |
diff --git a/src/views/studio/studio.jsx b/src/views/studio/studio.jsx @@ -64,7 +64,7 @@ const StudioShell = ({showCuratorMuteError, muteExpiresAtMs, studioLoadFailed})
<p>
<div>
<FormattedMessage
- id="studios.mutedProjects"
+ id="studios.mutedCurators"
values={{
inDuration: formatRelativeTime(muteExpiresAtMs, window._locale)
}}
| 4 |
diff --git a/redux/replyList.js b/redux/replyList.js @@ -120,7 +120,12 @@ export default createReducer(
.set(
'edges',
(payload.get('edges') || List())
- .map(edge => edge.setIn(['node', 'replyConnectionCount']))
+ .map(edge =>
+ edge.setIn(
+ ['node', 'replyConnectionCount'],
+ (edge.getIn(['node', 'replyConnections']) || List()).size
+ )
+ )
)
.set(
'firstCursor',
| 12 |
diff --git a/README-dev.md b/README-dev.md // works through node version 19.4.0
// electron-devtools-vendor must be at version 1.1 for now due to a bug
// react must be version 17 due to a dependency for mui
-// fix-path ???
+// fix-path must be version 3.0.0 due to 4.0.0 only being usable with an import statement which is not supported in electron.jsx
1. Fork and clone this repository.
2. Install node version 16.13: ```nvm install 16.13```
| 3 |
diff --git a/src/js/controllers/export.js b/src/js/controllers/export.js @@ -55,13 +55,14 @@ angular.module('copayApp.controllers').controller('exportController',
function checkValueFileAndChangeStatusExported() {
$timeout(function() {
var inputFile = document.getElementById('nwExportInputFile');
- if(!inputFile.value && self.exporting){
+ var value = inputFile ? inputFile.value : null;
+ if(!value && self.exporting){
self.exporting = false;
$timeout(function() {
$rootScope.$apply();
});
}
- if(!inputFile.value && self.connection){
+ if(!value && self.connection){
self.connection.release();
self.connection = false;
}
| 9 |
diff --git a/includes/Modules/PageSpeed_Insights.php b/includes/Modules/PageSpeed_Insights.php @@ -193,7 +193,7 @@ final class PageSpeed_Insights extends Module {
* @return Google_Client Google client instance.
*/
protected function setup_client() {
- return $this->authentication->get_api_key_client()->get_client();
+ return $this->authentication->get_oauth_client()->get_client();
}
/**
| 3 |
diff --git a/app/wallet/api.js b/app/wallet/api.js @@ -73,20 +73,15 @@ export const getBalance = (net, address) => {
/**
* @function
* @description
- * Hit the bittrex api getticker to fetch the latest BTC to ANS price
- * then hit the latest USDT to BTC conversion rate
+ * Hit the bittrex api getticker to fetch the latest USDT to NEO price
*
- * @param {number} amount - The current ANS amount in wallet
- * @return {string} - The converted ANS to USDT fiat amount
+ * @param {number} amount - The current NEO amount in wallet
+ * @return {string} - The converted NEO to USDT fiat amount
*/
export const getMarketPriceUSD = (amount) => {
- let lastBTCANS, lastUSDBTC;
- return axios.get('https://bittrex.com/api/v1.1/public/getticker?market=BTC-ANS').then((response) => {
- lastBTCANS = response.data.result.Last;
- return axios.get('https://bittrex.com/api/v1.1/public/getticker?market=USDT-BTC').then((response) => {
- lastUSDBTC = response.data.result.Last;
- return ('$' + (lastBTCANS * lastUSDBTC * amount).toFixed(2).toString());
- });
+ return axios.get('https://bittrex.com/api/v1.1/public/getticker?market=USDT-NEO').then((response) => {
+ let lastUSDNEO = response.data.result.Last;
+ return ('$' + (lastUSDNEO * amount).toFixed(2).toString());
});
};
| 3 |
diff --git a/docs/topics/properties.md b/docs/topics/properties.md @@ -58,13 +58,13 @@ the property (this way you can implement a computed property). Here's an example
```kotlin
//sampleStart
class Rectangle(val width: Int, val height: Int) {
- val square: Int
+ val area: Int
get() = this.width * this.height
}
//sampleEnd
fun main() {
val rectangle = Rectangle(3, 4)
- println("Width=${rectangle.width}, height=${rectangle.height}, square=${rectangle.square}")
+ println("Width=${rectangle.width}, height=${rectangle.height}, area=${rectangle.area}")
}
```
{kotlin-runnable="true"}
@@ -72,7 +72,7 @@ fun main() {
You can omit the property type if it can be inferred from the getter:
```kotlin
-val square get() = this.width * this.height
+val area get() = this.width * this.height
```
If you define a custom setter, it will be called every time you assign a value to the property, except its initialization.
| 4 |
diff --git a/token-metadata/0xEeEeeeeEe2aF8D0e1940679860398308e0eF24d6/metadata.json b/token-metadata/0xEeEeeeeEe2aF8D0e1940679860398308e0eF24d6/metadata.json "symbol": "ETHV",
"address": "0xEeEeeeeEe2aF8D0e1940679860398308e0eF24d6",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/helpers.json b/helpers.json },
{
"name": "Let's Enhance.io",
- "desc": "Image enhancement and upscaling by AI",
+ "desc": "Improve colors, remove compression and upscale your image",
"url": "https://letsenhance.io/",
"tags": [
"Images"
| 7 |
diff --git a/assets/js/components/setup/SetupUsingProxyWithSignIn.test.js b/assets/js/components/setup/SetupUsingProxyWithSignIn.test.js @@ -36,63 +36,18 @@ jest.mock( './CompatibilityChecks', () => ( { children } ) =>
describe( 'SetupUsingProxyWithSignIn', () => {
let registry;
- // const homeURL = 'http://example.com';
beforeEach( () => {
- // jest.useFakeTimers();
registry = createTestRegistry();
+
provideModules( registry );
provideUserInfo( registry );
provideUserAuthentication( registry );
provideUserCapabilities( registry );
registry.dispatch( CORE_USER ).receiveConnectURL( 'test-url' );
- // provideSiteConnection( registry );
-
- // CompatibilityChecks setup
- // Mock global.location.hostname with value that won't throw error in first check.
- // Object.defineProperty( global.window, 'location', {
- // value: {
- // hostname: 'validurl.tld',
- // },
- // writable: true,
- // } );
-
- // provideSiteInfo( registry, { homeURL } );
-
- // const token = 'test-token-value';
-
- // // Mock request to setup-tag.
- // fetchMock.postOnce(
- // /^\/google-site-kit\/v1\/core\/site\/data\/setup-tag/,
- // { body: { token }, status: 200 }
- // );
- // // Mock request to setup-tag.
- // fetchMock.postOnce( homeURL, { body: { token }, status: 200 } );
-
- // // Mock request to health-checks.
- // fetchMock.getOnce(
- // /^\/google-site-kit\/v1\/core\/site\/data\/health-checks/,
- // { body: { checks: { googleAPI: { pass: true } } }, status: 200 }
- // );
-
- // // Mock request to AMP project.
- // muteFetch( AMP_PROJECT_TEST_URL );
- // muteFetch(
- // /^\/google-site-kit\/v1\/core\/site\/data\/developer-plugin/
- // );
muteFetch( /^\/google-site-kit\/v1\/core\/site\/data\/connection/ );
-
muteFetch( /^\/google-site-kit\/v1\/core\/user\/data\/tracking/ );
-
- // // Mock getExistingTag request
- // fetchMock.get(
- // { query: { tagverify: '1' } },
- // {
- // body: `<html><head><meta name="googlesitekit-setup" content="${ token }"/></head><body></body>`,
- // status: 200,
- // }
- // );
} );
it( 'should render the setup page, including the Activate Analytics notice', () => {
@@ -103,10 +58,6 @@ describe( 'SetupUsingProxyWithSignIn', () => {
}
);
- // await waitForElementToBeRemoved(
- // document.querySelector( '.mdc-linear-progress' )
- // );
-
expect( container ).toMatchSnapshot();
expect(
| 2 |
diff --git a/common/fixedpool/fixedpool.go b/common/fixedpool/fixedpool.go @@ -85,7 +85,10 @@ func NewCustom(network, addr string, size int, df DialFunc) (*Pool, error) {
// make the rest of the connections in the background, if any fail it's fine
go func() {
for i := 0; i < size-1; i++ {
- mkConn()
+ err := mkConn()
+ if err != nil {
+ panic("Failde initializing redis pool: " + err.Error())
+ }
}
close(p.initDoneCh)
}()
| 9 |
diff --git a/index.html b/index.html </div>
<!-- end of Double Factorial calculator -->
<!-- start of Catalan numbers calculator -->
- <div>
- <div class="collapse" id="catNum">
+ <div class="collapse" id="catNum" style="text-align: center;">
+ <div class="container">
+ <h2 style="color: white;font-family:mathfont;text-align: center;">Catalan Numbers</h2>
+ <br>
+ <p>The Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involving recursively defined objects. </p>
+ <p>The nth Catalan number is given as: \[C_n = \frac{1}{n+1}{2n\choose n} = \frac{(2n)!}{(n+1)!\,n!}\]</p>
+ <br>
<form action="">
- <div class="form-group" style="display:inline-block">
- <label>Enter the number : </label>
- <input type="number" id="cat-num" class="form__field" placeholder="x"
- style="width:3rem;display:inline;margin-right: 5rem;">
+ <div class="form-group">
+ <input style="color: white; font-family:mathfont" type="number" id="cat-num" placeholder="Enter the input number" class="form__field">
</div>
<div class="form-group">
- <button type="button" class="btn btn-light"
- onclick="catalanNumbers(document.getElementById('cat-num').value);">
- Solve
- </button>
- <button type="button" class="btn btn-light"
- onclick="this.form.reset();">
+ <button type="button" class="btn btn-light" onclick="catalanNumbers(document.getElementById('cat-num').value);">Find</button>
+ <button type="button" class="btn btn-light" onclick="this.form.reset();">
Reset
</button>
</div>
</form>
-
+ <br>
<div class="form-group text-center">
- <p class="stopwrap" style="color:white;" id="catNumResult"></p>
+ <p class="stopwrap" style="color:white;" id="catNumResult"></p><br>
</div>
</div>
</div>
| 7 |
diff --git a/articles/libraries/auth0-android/save-and-refresh-tokens.md b/articles/libraries/auth0-android/save-and-refresh-tokens.md @@ -17,7 +17,7 @@ When an authentication is performed with the `offline_access` <dfn data-key="sco
[Auth0.Android](https://github.com/auth0/Auth0.Android) provides a utility class to streamline the process of storing and renewing credentials. You can access the `accessToken` or `idToken` properties from the [Credentials](https://github.com/auth0/Auth0.Android/blob/master/auth0/src/main/java/com/auth0/android/result/Credentials.java) instance. This is the preferred method to manage user credentials.
-<%= include('./_gradle.md') %>
+<%= include('../../quickstart/native/android/_includes/_gradle.md') %>
Next, decide which class to use depending on your Android SDK target version.
| 1 |
diff --git a/docs/hot-module-replacement.md b/docs/hot-module-replacement.md @@ -17,7 +17,7 @@ Both Laravel and Laravel Mix work together to abstract away the complexities in
}
```
-Take note of the `hmr` option; this is the one you want. From the command line, run `npm run hmr` to boot up a Node server and monitor your bundle for changes. Next, load your Laravel app in the browser, as you normally would. Perhaps, `http://my-app.dev`.
+Take note of the `hot` option; this is the one you want. From the command line, run `npm run hot` to boot up a Node server and monitor your bundle for changes. Next, load your Laravel app in the browser, as you normally would. Perhaps, `http://my-app.dev`.
The key to making hot reloading work within a Laravel application is ensuring that all script sources reference the Node server URL that we just booted up. This will be [http://localhost:8080](http://localhost:8080). Now you could of course manually update your HTML/Blade files, like so:
@@ -40,7 +40,7 @@ However, it can be a burden to manually change this URL for production deploys.
</body>
```
-With this adjustment, Laravel will do the work for you. If you run 'npm run hmr' to enable hot reloading, the function will set the necessary `http://localhost:8080` base url. If, instead, you use `npm run dev` or `npm run production`, it'll use your domain as the base.
+With this adjustment, Laravel will do the work for you. If you run 'npm run hot' to enable hot reloading, the function will set the necessary `http://localhost:8080` base url. If, instead, you use `npm run dev` or `npm run production`, it'll use your domain as the base.
| 14 |
diff --git a/src/commands/open/index.js b/src/commands/open/index.js @@ -4,7 +4,6 @@ const renderShortDesc = require('../../utils/renderShortDescription')
class OpenCommand extends Command {
async run() {
- this.log(`Opening {SITE XYZ} admin in your default browser`)
const accessToken = this.global.get('accessToken')
const siteId = this.site.get('siteId')
if (!accessToken) {
@@ -19,6 +18,8 @@ class OpenCommand extends Command {
let site
try {
site = await this.netlify.getSite({siteId})
+ this.log(`Opening "${site.name}" site admin UI:`)
+ this.log(`> ${site.admin_url}`)
} catch (e) {
if (e.status === 401 /* unauthorized*/) {
this.warn(`Log in with a different account or re-link to a site you have permission for`)
| 3 |
diff --git a/src/Embed.js b/src/Embed.js @@ -61,6 +61,9 @@ export function embed(config = {}) {
before: () => {},
after: () => {}
}, config);
+ if (config.addPremiumLib) {
+ config.addPremiumLib(config.libs, scriptSrc);
+ }
/**
* Print debug statements.
@@ -340,9 +343,17 @@ export function embed(config = {}) {
addStyles(config.libs.fontawesome.css, true);
addStyles(config.libs.bootstrap.css);
}
+ else if (config.libs.premium) {
+ addStyles(config.libs.premium.css);
+ addScript(config.libs.premium.js, 'premium', (premium) => {
+ debug('Using premium');
+ Formio.use(premium);
+ renderForm();
+ });
+ }
// Render the form if no template is provided.
- if (!config.template) {
+ if (!config.template && !config.libs.premium) {
renderForm();
}
});
| 11 |
diff --git a/src/Model.d.ts b/src/Model.d.ts @@ -26,7 +26,7 @@ export type OneIndexSchema = {
hash?: string,
sort?: string,
description?: string,
- project?: string | string[],
+ project?: string | readonly string[],
follow?: boolean,
};
@@ -36,7 +36,7 @@ export type OneIndexSchema = {
export type OneField = {
crypt?: boolean,
default?: string | number | boolean | object,
- enum?: string[],
+ enum?: readonly string[],
filter?: boolean,
hidden?: boolean,
map?: string,
| 11 |
diff --git a/.github/workflows/lint_changed_files.yml b/.github/workflows/lint_changed_files.yml @@ -82,8 +82,17 @@ jobs:
id: changed-files
run: |
if [ -n "${{ github.event.pull_request.number }}" ]; then
- # Get the list of changed files in pull request via the GitHub API. We use `awk` to get the value of the link header with the URL for the next page of results, and keep requesting next pages until all the files are retrieved:
- files=$(curl -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/stdlib-js/stdlib/pulls/${{ github.event.pull_request.number }}/files?page=1&per_page=100" -D - | awk '{if (match($0, "Link:")){print}}' | awk '{print $2}' | tr -d '<>' | tr -d ',' | xargs -I {} curl -s -H "Accept: application/vnd.github.v3+json" {} | jq -r '.[] | .filename')
+ # Get the list of changed files in pull request via the GitHub API:
+ page=1
+ files=""
+ while true; do
+ new_files=$(curl -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/stdlib-js/stdlib/pulls/${{ github.event.pull_request.number }}/files?page=$page&per_page=100" | jq -r '.[] | .filename')
+ if [ -z "$new_files" ]; then
+ break
+ fi
+ files="$files $new_files"
+ page=$((page+1))
+ done
else
# Get changed files by comparing the current commit to the commit before the push event:
files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
| 4 |
diff --git a/source/timezones/TimeZone.js b/source/timezones/TimeZone.js @@ -141,24 +141,12 @@ const getRule = function (rules, offset, datetime, isUTC, recurse) {
return ruleInEffect;
};
-const switchSign = function (string) {
- return string.replace(/[+-]/, (sign) => (sign === '+' ? '-' : '+'));
-};
-
const idToTZ = new Map();
const getTimeZoneById = (id) => idToTZ.get(id) || null;
class TimeZone {
constructor(id, periods) {
- let name = id.replace(/_/g, ' ');
- // The IANA ids have the +/- the wrong way round for historical reasons.
- // Display correctly for the user.
- if (/GMT[+-]/.test(name)) {
- name = switchSign(name);
- }
-
this.id = id;
- this.name = name;
this.periods = periods;
}
@@ -180,12 +168,15 @@ class TimeZone {
}
return new Date(+date + offset * 1000);
}
+
convertDateToUTC(date) {
return this.convert(date, false);
}
+
convertDateToTimeZone(date) {
return this.convert(date, true);
}
+
getSuffix(date) {
return this.getTZAbbr(date) || this.getGMTAbbr(date);
}
| 2 |
diff --git a/src/Eleventy.js b/src/Eleventy.js @@ -78,18 +78,23 @@ class Eleventy {
* @member {Boolean} - Running in serverless mode
* @default false
*/
-
- // This needs to happen before `getEnvironmentVariableValues` below.
if ("isServerless" in options) {
this.isServerless = !!options.isServerless;
} else {
this.isServerless = !!process.env.AWS_LAMBDA_FUNCTION_NAME;
}
+ /**
+ * @member {String} - One of build, serve, or watch
+ * @default "build"
+ */
+ this.runMode = options.runMode || "build";
+
/**
* @member {Object} - Initialize Eleventy environment variables
* @default null
*/
+ // both this.isServerless and this.runMode need to be set before this
this.env = this.getEnvironmentVariableValues();
this.initializeEnvironmentVariables(this.env);
@@ -109,12 +114,6 @@ class Eleventy {
*/
this.verboseModeSetViaCommandLineParam = false;
- /**
- * @member {String} - One of build, serve, or watch
- * @default "build"
- */
- this.runMode = "build";
-
/**
* @member {Boolean} - Is Eleventy running in verbose mode?
* @default true
@@ -468,6 +467,7 @@ Verbose Output: ${this.verboseMode}`);
getEnvironmentVariableValues() {
let values = {
source: this.source,
+ runMode: this.runMode,
};
let configPath = this.eleventyConfig.getLocalProjectConfigFile();
if (configPath) {
@@ -495,6 +495,7 @@ Verbose Output: ${this.verboseMode}`);
debug("Setting process.env.ELEVENTY_ROOT: %o", env.root);
process.env.ELEVENTY_SOURCE = env.source;
+ process.env.ELEVENTY_RUN_MODE = env.runMode;
// https://github.com/11ty/eleventy/issues/1957
// Note: when using --serve, ELEVENTY_SERVERLESS is also set in Serverless.js
| 0 |
diff --git a/samples/csharp_dotnetcore/51.cafe-bot/CafeBot.csproj b/samples/csharp_dotnetcore/51.cafe-bot/CafeBot.csproj <CodeAnalysisRuleSet>BotBuilder.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
- <ItemGroup>
- <Content Include="CafeBot.bot">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
-
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.7" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.0.7" />
| 2 |
diff --git a/src/libs/ValidationUtils.js b/src/libs/ValidationUtils.js @@ -305,12 +305,12 @@ function isValidRoutingNumber(number) {
* Checks if each string in array is of valid length and then returns true
* for each string which exceeds the limit.
*
- * @param {Number} limit
- * @param {String[]} toBeValidated
+ * @param {Number} maxLength
+ * @param {String[]} valuesToBeValidated
* @returns {Boolean[]}
*/
-function doesFailCharacterLimit(limit, toBeValidated) {
- return _.map(toBeValidated, x => x.length > limit);
+function doesFailCharacterLimit(maxLength, valuesToBeValidated) {
+ return _.map(valuesToBeValidated, x => x.length > maxLength);
}
export {
| 10 |
diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py @@ -1452,7 +1452,7 @@ class Scalene:
# Grab local and global variables.
if not Scalene.__args.cpu_only:
import register_files_to_profile
- register_files_to_profile.register_files_to_profile(Scalene.__files_to_profile.split(',') if Scalene.__files_to_profile else [], Scalene.__program_path, Scalene.__args.profile_all)
+ register_files_to_profile.register_files_to_profile(list(Scalene.__files_to_profile.keys()), Scalene.__program_path, Scalene.__args.profile_all)
import __main__
| 7 |
diff --git a/README.md b/README.md @@ -606,10 +606,10 @@ Creating An ai2html Graphic
The ai2html template uses an open-source script called [ai2html](http://ai2html.org/) to convert Illustrator graphics to HTML and CSS and display them in our responsive dailygraphics template.
To use this template, you'll need to install ai2html as an Illustrator
-script. Copy [the latest version of the script here](etc/ai2html.jsx)
+script. Copy [the latest version of the script here](etc/ai2html.js)
into the Illustrator folder where scripts are located.
For example, on Mac OS X running Adobe Illustrator CC 2015, the path would be:
-`/Applications/Adobe Illustrator CC 2015/Presets.localized/en_US/Scripts/ai2html.jsx`
+`/Applications/Adobe Illustrator CC 2015/Presets.localized/en_US/Scripts/ai2html.js`
**You only need to install the script once on your machine.** To check whether you
have it installed, open Adobe Illustrator and look for the "ai2html"
@@ -630,7 +630,7 @@ queries in `css/graphic.less`.)
You can only use fonts that are supported on our website, so make sure
you are using the correct typeface and weight. [Here's a list of
-supported fonts](https://github.com/nprapps/dailygraphics/blob/ai2html/etc/ai2html.jsx#L593-L605).
+supported fonts](https://github.com/nprapps/dailygraphics/blob/master/etc/ai2html.js#L138-L151).
(For users outside of NPR, refer to the [ai2html docs](http://ai2html.org/#using-fonts-other-than-arial-and-georgia) to learn how to customize your fonts.)
Create your graphic within Illustrator, referring to the [ai2html
| 3 |
diff --git a/packages/webpack-plugin/lib/runtime/injectHelper.wxs b/packages/webpack-plugin/lib/runtime/injectHelper.wxs @@ -91,7 +91,7 @@ function isDef (v) {
}
function stringifyClass (value) {
- if (value === undefined) return ''
+ if (!value) return ''
if (likeArray(value)) {
return stringifyArray(value)
}
@@ -179,7 +179,7 @@ function mergeObjectArray (arr) {
}
function normalizeDynamicStyle (value) {
- if (value === undefined) return {}
+ if (!value) return {}
if (likeArray(value)) {
return mergeObjectArray(value)
}
| 1 |
diff --git a/ChatImprovements.user.js b/ChatImprovements.user.js // @description Show users in room as a list with usernames, more timestamps
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 0.9.4
+// @version 0.9.5
//
// @include https://chat.stackoverflow.com/*
// @include https://chat.stackexchange.com/*
}
// Attempt to display chat domain, and room name or message id with (transcript) label
- if(el.href.includes('chat.') && el.href.includes('/transcript/')) {
+ if(el.href.includes('chat.') && el.href.includes('/transcript/') && !/^\d+ messages?$/.test(el.innerText)) {
let chatDomain = [
{ host: 'chat.stackexchange.com', name: 'SE chat' },
{ host: 'chat.meta.stackexchange.com', name: 'MSE chat' },
| 8 |
diff --git a/src/actions/Play.js b/src/actions/Play.js @@ -169,11 +169,17 @@ export class Play extends Action {
player.dataset.fade = 'in';
player.dataset.maxVolume = maxVolume;
+ if (Math.sign (volume) === 1) {
return new Promise ((resolve, reject) => {
setTimeout (() => {
Play.fade (player, volume, interval, expected, resolve);
}, interval);
});
+ } else {
+ // If the volume is set to zero or not valid, the fade effect is disabled
+ // to prevent errors
+ return Promise.resolve ();
+ }
}
/**
| 1 |
diff --git a/docs/modules/stripeSubscription.md b/docs/modules/stripeSubscription.md @@ -126,10 +126,7 @@ stripe-local sends requests to Stripe every 15 seconds to verify if any new even
subscribe in development mode. If there are any new events, stripe-local will get them and send them to your application
on `localhost:port`. Simply put, you can consider stripe-local as a _proxy_ between your application and Stripe.
-<p align="center">
- <img alt="Notification flow between Stripe and your application in development flow with the stripe-local library"
- src="https://user-images.githubusercontent.com/24529997/46010501-91188f00-c0cb-11e8-8bf0-58e21b125588.png" />
-</p>
+
### Configuring stripe-local
| 14 |
diff --git a/test/TestCasesCachePack.longtest.js b/test/TestCasesCachePack.longtest.js @@ -25,10 +25,6 @@ describe("TestCases", () => {
["no-string"]:
/^Pack got invalid because of write to: Compilation\/modules.+no-string[/\\]loader\.js!.+no-string[/\\]file\.js$/
},
- large: {
- ["big-assets"]:
- /^Pack got invalid because of write to: ResolverCachePlugin|normal|dependencyType=|esm|path=|.+|request=|\.\/large\/big-assets\/$/
- },
parsing: {
// Module parse failed
context:
| 2 |
diff --git a/.eslintrc b/.eslintrc "eslint:recommended"
],
"parserOptions": {
- "ecmaVersion": 5,
+ "ecmaVersion": 5
},
"env": {
"commonjs": true
"indent": [0],
"indent-legacy": [2, 4, {"SwitchCase": 1}],
"max-len": [0, 80],
- "brace-style": [0, "stroustrup", {"allowSingleLine": true}],
+ "brace-style": [2, "1tbs", {"allowSingleLine": true}],
"curly": [2, "multi-line"],
"camelcase": [2, {"properties": "never"}],
"comma-spacing": [2, {"before": false, "after": true}],
| 3 |
diff --git a/taiko.js b/taiko.js @@ -14,6 +14,7 @@ function runFile(file) {
validate(file);
const realFuncs = {};
for (let func in taiko) {
+ try{
realFuncs[func] = taiko[func];
if (realFuncs[func].constructor.name === 'AsyncFunction') global[func] = async function() {
const res = await realFuncs[func].apply(this, arguments);
@@ -28,6 +29,10 @@ function runFile(file) {
};
require.cache[path.join(__dirname, 'taiko.js')].exports[func] = global[func];
}
+ catch(e){
+ console.log(e);
+ }
+ }
const oldNodeModulesPaths = module.constructor._nodeModulePaths;
module.constructor._nodeModulePaths = function() {
const ret = oldNodeModulesPaths.apply(this, arguments);
| 9 |
diff --git a/src/components/general/world-objects-list/ComponentEditor.jsx b/src/components/general/world-objects-list/ComponentEditor.jsx @@ -17,7 +17,7 @@ export const ComponentEditor = () => {
//
- const initComponentsList = () => {
+ const syncComponentsList = () => {
const newComponents = [];
@@ -37,12 +37,6 @@ export const ComponentEditor = () => {
};
- const updateState = () => {
-
- setComponents( [ ...components ] );
-
- };
-
const validateValues = () => {
for ( let i = 0; i < selectedApp.components.length; i ++ ) {
@@ -108,7 +102,7 @@ export const ComponentEditor = () => {
selectedApp.components.push({ key: `New item ${selectedApp.components.length}`, value: '', type: 'string' });
// components.push({ key: 'New item', value: '', type: 'string', error: false });
- initComponentsList();
+ syncComponentsList();
};
@@ -124,7 +118,7 @@ export const ComponentEditor = () => {
}
selectedApp.components = newList;
- initComponentsList();
+ syncComponentsList();
};
@@ -148,7 +142,7 @@ export const ComponentEditor = () => {
}
validateValues();
- updateState();
+ syncComponentsList();
};
@@ -201,7 +195,7 @@ export const ComponentEditor = () => {
}
setEditComponentKey( null );
- updateState();
+ syncComponentsList();
};
@@ -209,7 +203,7 @@ export const ComponentEditor = () => {
useEffect( () => {
- initComponentsList();
+ syncComponentsList();
}, [ selectedApp ] );
| 2 |
diff --git a/server/workers/api/src/apis/export.py b/server/workers/api/src/apis/export.py @@ -36,13 +36,9 @@ def transform2bibtex(metadata):
fields["doi"] = doi
if url != "":
fields["url"] = url
- if entrytype == "article":
- if published_in != "":
- fields["journal"] = published_in
- else:
- entrytype = "misc"
if entrytype == "misc" and published_in != "":
entrytype = "article"
+ fields["journal"] = published_in
if entrytype == "book":
fields["publisher"] = published_in
if entrytype == "inbook":
| 2 |
diff --git a/src/api/v4/layer/layer.js b/src/api/v4/layer/layer.js @@ -62,6 +62,8 @@ var metadataParser = require('./metadata/parser');
* @api
*/
function Layer (source, style, options) {
+ Base.apply(this, arguments);
+
options = options || {};
_checkSource(source);
@@ -75,8 +77,9 @@ function Layer (source, style, options) {
this._visible = true;
this._featureClickColumns = options.featureClickColumns || [];
this._featureOverColumns = options.featureOverColumns || [];
-
- Base.apply(this, arguments);
+ if (options.id) {
+ this._id = options.id;
+ }
}
Layer.prototype = Object.create(Base.prototype);
| 11 |
diff --git a/articles/libraries/lock/v10/auth0js.md b/articles/libraries/lock/v10/auth0js.md @@ -41,7 +41,54 @@ var webAuth = new auth0.WebAuth({
});
```
-If you need further detail about usage, check out the [Auth0.js v8 Reference](/libraries/auth0js/v8).
+### Example Use Case for Lock and Auth0.js
+
+It may be that in your application, you would like to use Lock for authentication and signup, but also decide you'd like to use Auth0.js v8 for access to the `renewAuth` method, to allow your users' access tokens to be replaced upon expiration.
+
+::: note
+For more information about `renewAuth`, check out the [Auth0.js v8 documentation](/libraries/auth0js/v8#using-renewauth-to-acquire-new-tokens)
+:::
+
+For this, you'll use both Lock and Auth0.js:
+
+```html
+<script src="https://cdn.auth0.com/js/lock/10.13.0/lock.min.js"></script>
+<script src="https://cdn.auth0.com/js/auth0/8.0.4/auth0.min.js"></script>
+```
+
+In your JavaScript, you'll initiate a new `Auth0Lock` as well as a new `auth0.WebAuth`:
+
+```js
+var lock = new Auth0Lock(
+ '${account.clientID}',
+ '${account.namespace}'
+});
+
+var webAuth = new auth0.WebAuth({
+ domain: '${account.clientID}',
+ clientID: '${account.namespace}'
+});
+```
+
+And then you'll go about using Lock as normal. However, you may also wish to call `renewAuth` you need it.
+
+```js
+webAuth.renewAuth({
+ redirectUri: 'http://example.com/silent-callback.html',
+ usePostMessage: true
+}, function (err, result) {
+ if (err) {
+ alert(`Could not get a new token using silent authentication (${err.error}).`);
+ webAuth.authorize();
+ } else {
+ localStorage.setItem('accessToken', result.accessToken);
+ }
+});
+```
+
+In addition to `renewAuth`, the [use of the Management API from Auth0.js](https://auth0.com/docs/libraries/auth0js/v8#user-management) is also an excellent reason to use the Auth0.js SDK alongside of Lock.
+
+If you need further detail about Auth0.js usage, check out the [Auth0.js v8 Reference](/libraries/auth0js/v8).
## Using auth0.js v7
| 0 |
diff --git a/publish/releases.json b/publish/releases.json },
{
"sip": 158,
- "layer": "base"
+ "layer": "base",
+ "released": "base"
},
{
"sip": 169,
- "layer": "base"
+ "layer": "base",
+ "released": "base"
},
{
"sip": 170,
| 3 |
diff --git a/CHANGELOG.md b/CHANGELOG.md # Changelog
+### 0.21.0 (October 23, 2020)
+
+Fixes and Functionality:
+
+- Fixing requestHeaders.Authorization ([#3287](https://github.com/axios/axios/pull/3287))
+- Fixing node types ([#3237](https://github.com/axios/axios/pull/3237))
+- Fixing axios.delete ignores config.data ([#3282](https://github.com/axios/axios/pull/3282))
+- Revert "Fixing overwrite Blob/File type as Content-Type in browser. (#1773)" ([#3289](https://github.com/axios/axios/pull/3289))
+- Fixing an issue that type 'null' and 'undefined' is not assignable to validateStatus when typescript strict option is enabled ([#3200](https://github.com/axios/axios/pull/3200))
+
+Internal and Tests:
+
+- Lock travis to not use node v15 ([#3361](https://github.com/axios/axios/pull/3361))
+
+Documentation:
+
+- Fixing simple typo, existant -> existent ([#3252](https://github.com/axios/axios/pull/3252))
+- Fixing typos ([#3309](https://github.com/axios/axios/pull/3309))
+
+Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
+
+- Allan Cruz <[email protected]>
+- George Cheng <[email protected]>
+- Jay <[email protected]>
+- Kevin Kirsche <[email protected]>
+- Remco Haszing <[email protected]>
+- Taemin Shin <[email protected]>
+- Tim Gates <[email protected]>
+- Xianming Zhong <[email protected]>
+
### 0.20.0 (August 20, 2020)
Release of 0.20.0-pre as a full release with no other changes.
| 3 |
diff --git a/.github/workflows/integration-local.yml b/.github/workflows/integration-local.yml @@ -20,7 +20,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v1
with:
- node-version: 14.x
+ node-version: 16.x
- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"
| 3 |
diff --git a/includes/Dashboard.php b/includes/Dashboard.php @@ -178,7 +178,7 @@ class Dashboard {
* Issue: 1897
* Creation date: 2020-05-21
*/
- 'enableAnimation' => true,
+ 'enableAnimation' => false,
/**
* Description: Enables in-progress views to be accessed.
* Author: @carlos-kelly
| 13 |
diff --git a/Specs/Scene/WebMapTileServiceImageryProviderSpec.js b/Specs/Scene/WebMapTileServiceImageryProviderSpec.js @@ -117,6 +117,9 @@ describe("Scene/WebMapTileServiceImageryProvider", function () {
expect(queryObject.tilematrixset).toEqual(options.tileMatrixSetID);
expect(queryObject.tilematrix).toEqual(options.tileMatrixLabels[level]);
expect(parseInt(queryObject.tilerow, 10)).toEqual(tilerow);
+ expect(uri.scheme + "://" + uri.authority).toEqual(
+ "http://wmtsa.invalid" || "http://wmtsb.invalid" || "http://wmtsc.invalid"
+ );
tilecol = 1;
tilerow = 3;
@@ -135,6 +138,9 @@ describe("Scene/WebMapTileServiceImageryProvider", function () {
expect(queryObject.tilematrixset).toEqual(options.tileMatrixSetID);
expect(queryObject.tilematrix).toEqual(options.tileMatrixLabels[level]);
expect(parseInt(queryObject.tilerow, 10)).toEqual(tilerow);
+ expect(uri.scheme + "://" + uri.authority).toEqual(
+ "http://wmtsa.invalid" || "http://wmtsb.invalid" || "http://wmtsc.invalid"
+ );
});
it("supports subdomains string urls", function () {
| 3 |
diff --git a/lib/sandbox.js b/lib/sandbox.js @@ -21,6 +21,14 @@ const AWS_SANDBOX_OCAPI_SETTINGS = [{ client_id: "CLIENTID",
{ resource_id: "/jobs/*/executions/*", methods: ["get"], read_attributes: "(**)", write_attributes: "(**)" }
]
}];
+// webdav permissions to apply to aws sandbox at provisioning time, CLIENTID to be set beforehand
+const AWS_SANDBOX_WEBDAV_PERMISSIONS = [{ client_id: "CLIENTID",
+ permissions: [
+ { path: "/impex", operations: ["read_write"] },
+ { path: "/cartridges", operations: ["read_write"] }
+ ]
+}];
+
const AWS_SANDBOX_STATUS_POLL_TIMEOUT = 5000;
const AWS_SANDBOX_STATUS_UP_AND_RUNNING = 'started';
const BM_PATH = '/on/demandware.store/Sites-Site';
@@ -172,14 +180,18 @@ function createSandbox(realm, callback) {
// prep initial ocapi settings
var ocapiSettings = AWS_SANDBOX_OCAPI_SETTINGS;
- // and set the clientid
ocapiSettings[0]['client_id'] = auth.getClient();
+ // prep initial webdav permissions
+ var webdavPermissions = AWS_SANDBOX_WEBDAV_PERMISSIONS;
+ webdavPermissions[0]['client_id'] = auth.getClient();
+
// the payload
options['body'] = {
realm : realm,
settings : {
- ocapi : ocapiSettings
+ ocapi : ocapiSettings,
+ webdav : webdavPermissions
}
};
| 12 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -19,11 +19,9 @@ last Friday of every new month.
Ideas that will be planned and find their way into a release at one point.
PRs are welcome! Please do open an issue to discuss first if it's a big feature, priorities may have changed after something was added here.
-- [ ] core: Decouple rendering from the Plugin base class?
- [ ] core: Make sure Uppy works well in VR
- [ ] test: Human should check http://www.webpagetest.org and https://developers.google.com/web/tools/lighthouse/, use it sometimes to test website and Uppy. Will show response/loading times and other issues
- [ ] test: Human should test with real screen reader to identify accessibility problems
-- [ ] test: setup an HTML page with all sorts of crazy styles, resets & bootstrap to see what brakes Uppy (@arturi)
- [ ] dependencies: es6-promise --> lie https://github.com/calvinmetcalf/lie ?
- [ ] core: accessibility research: https://chrome.google.com/webstore/detail/accessibility-developer-t/fpkknkljclfencbdbgkenhalefipecmb, http://khan.github.io/tota11y/
- [ ] core: consider adding presets, see https://github.com/cssinjs/jss-preset-default/blob/master/src/index.js (@arturi)
@@ -89,6 +87,11 @@ PRs are welcome! Please do open an issue to discuss first if it's a big feature,
- [ ] dragdrop: allow customizing arrow icon https://github.com/transloadit/uppy/pull/374#issuecomment-334116208 (@arturi)
- [ ] show thumbnails when connecting with Google Drive #1162 (@ifedapoolarewaju)
+## 1.1
+
+- [ ] dashboard: optional alert `onbeforeunload` while upload is in progress, safeguarding from accidentaly navigating away from a page with an ongoing upload
+- [ ] dashboard: Bring back "Drop Here" screen for dragged URLs without introducing flickering (tricky! see PR #1400)
+
## 1.0 Goals
What we need to do to release Uppy 1.0
@@ -106,8 +109,7 @@ What we need to do to release Uppy 1.0
- [ ] website: design polish
- [ ] companion: rename `serverUrl` and `serverPattern` to `companionUrl` and `companionAllowedHosts` (@ifedapoolarewaju)
- [ ] transloadit: add error reporting, see https://github.com/transloadit/jquery-sdk/blob/891e99b08dd8142d8d8adc0553e6511967635ad7/js/lib/Modal.js#L122-L136 (@goto-bus-stop, @arturi)
-- [ ] transloadit: should adhere cancel event and abort assembly (@arturi, @goto-bus-stop)
-- [ ] dashboard: optional alert `onbeforeunload` while upload is in progress, safeguarding from accidentaly navigating away from a page with an ongoing upload
+- [ ] transloadit: should adhere cancel event and abort assembly (@goto-bus-stop)
- [x] chore: remove the not-working npm scripts (@kvz, @arturi)
- [x] build: (BREAKING) `npm run dev` no longer starts Companion by default, use `npm run dev:with-companion` for that (@arturi)
- [x] core: uppy should not crash or be slow for many files. Specifically: be able to drop 5 files (or 7mb) without the upload button to take 2 seconds to appear
| 0 |
diff --git a/documentation/api/shift.md b/documentation/api/shift.md @@ -32,9 +32,9 @@ optionally takes one via `<assertion?>` and is invoked without,
`expect.shift` will propagate its argument as the fulfillment value of the
promise returned from your assertion:
-<!-- unexpected-markdown async:true -->
+<!-- unexpected-markdown async:true, freshExpect:true -->
-```js&freshExpect:true
+```js
expect.addAssertion(
'<string> [when] parsed as an integer <assertion?>',
function(expect, subject) {
| 1 |
diff --git a/sandbox/public/index.html b/sandbox/public/index.html <script nonce="%REACT_APP_NONCE%">
alloy("configure", {
defaultConsent: getUrlParameter("defaultConsent") || "in",
- edgeDomain: "firstparty.alloyio.com",
- /*location.host.indexOf("alloyio.com") !== -1
+ edgeDomain:
+ location.host.indexOf("alloyio.com") !== -1
? "firstparty.alloyio.com"
- : undefined,*/
+ : undefined,
edgeConfigId: "bc1a10e0-aee4-4e0e-ac5b-cdbb9abbec83",
orgId: "5BFE274A5F6980A50A495C08@AdobeOrg",
debugEnabled: true,
- idMigrationEnabled: false,
- thirdPartyCookiesEnabled: false,
+ idMigrationEnabled: !(
+ getUrlParameter("idMigrationEnabled") === "false"
+ ),
prehidingStyle: ".personalization-container { opacity: 0 !important }",
onBeforeEventSend: function(options) {
const xdm = options.xdm;
| 13 |
diff --git a/articles/support/pre-deployment/index.html b/articles/support/pre-deployment/index.html @@ -11,13 +11,28 @@ description: Using Auth0's pre-production deployment tests
</p>
</div>
-<h2>Run the Tests</h2>
-
<ul class="topic-links">
<li>
- <i class="icon icon-budicon-715"></i><a href="/pre-deployment/how-to-run-test">How to Run the Pre-Deployment Tests</a>
+ <i class="icon icon-budicon-715"></i><a href="/support/pre-deployment/how-to-run-test">How to Run the Pre-Deployment Tests</a>
<p>
Run the pre-deployment tests against one or more clients to see if they're production-ready or not.
</p>
</li>
+ <li>
+ <i class="icon icon-budicon-715"></i><a href="/support/pre-deployment/tests">Test Results</a>
+ <p>
+ View your results to see any outstanding required and recommended tasks, as well changes you can make to ensure that you comply with best practices.
+ </p>
+ <ul>
+ <li>
+ <i class="icon icon-budicon-695"></i><a href="/support/pre-deployment/tests/required">Required</a>
+ </li>
+ <li>
+ <i class="icon icon-budicon-695"></i><a href="/support/pre-deployment/tests/recommended">Recommended</a>
+ </li>
+ <li>
+ <i class="icon icon-budicon-695"></i><a href="/support/pre-deployment/tests/best-practices">Best Practices</a>
+ </li>
+ </ul>
+ </li>
</ul>
| 0 |
diff --git a/app/views/main.scala.html b/app/views/main.scala.html <script src='@routes.Assets.at("javascripts/lib/leaflet-omnivore.min.js")'></script>
<script src='@routes.Assets.at("javascripts/lib/js.cookie.js")'></script>
<script type="text/javascript"
- src="https://maps.googleapis.com/maps/api/js?v=3.29&key=AIzaSyB0ToxwyHzvubTo9gm0zbtECWuEe3yYo8M&libraries=geometry">
+ src="https://maps.googleapis.com/maps/api/js?v=3.31&key=AIzaSyB0ToxwyHzvubTo9gm0zbtECWuEe3yYo8M&libraries=geometry">
</script>
<link href='@routes.Assets.at("stylesheets/fonts.css")' rel="stylesheet"/>
<link href='@routes.Assets.at("stylesheets/mapbox.css")' rel='stylesheet' />
| 3 |
diff --git a/package.json b/package.json "prepublishOnly": "npm run lint && npm run build:all && npm run build-declaration",
"update-latest-release": "git checkout master && git branch -D latest-release || git checkout -b latest-release && git push -f origin/latest-release",
"start": "node bin/signalk-server",
- "test-only": "mocha --require ts-node/register --extensions ts,tsx,js --timeout 10000 --exit 'test/**/*.[jt]s' 'lib/**/*.test.js'",
+ "test-only": "mocha --require ts-node/register --extensions ts,tsx,js --timeout 20000 --exit 'test/**/*.[jt]s' 'lib/**/*.test.js'",
"test": "npm run build && npm run test-only && npm run ci-lint",
"typedoc": "typedoc",
"heroku-postbuild": "npm run build:all",
| 1 |
diff --git a/QuestionListsHelper.user.js b/QuestionListsHelper.user.js // @description Adds more information about questions to question lists
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 1.0
+// @version 1.1
//
// @include https://stackoverflow.com/*
// @include https://serverfault.com/*
@@ -59,7 +59,7 @@ const getQuestions = async function (pids) {
/**
* @summary Main async function
*/
-(async function() {
+const doPageLoad = async function() {
// Run on question lists and search results pages only
const qList = document.querySelector('#questions, #question-mini-list, .js-search-results > div:last-child');
@@ -212,7 +212,14 @@ const getQuestions = async function (pids) {
// Closed
if(closed_reason) {
- moreStats.innerHTML += `<div>closed_reason: <strong>${closed_reason}</strong></div>`;
+ const { reason, description } = closed_details;
+
+ // Convert HTML descriptions to text
+ const tempEl = document.createElement('div');
+ tempEl.innerHTML = description.replace('StackOverflow.StackHtmlContent', '');
+ const descriptionText = tempEl.innerText;
+
+ moreStats.innerHTML += `<div>closed_reason: <strong>${reason}</strong><div class="fs-fine">${descriptionText}</div></div>`;
const closedByMods = closed_details?.by_users.filter(u => u.user_type === 'moderator');
const closedByHammer = closed_details?.by_users.filter(u => u.user_type !== 'unregistered');
@@ -247,7 +254,11 @@ const getQuestions = async function (pids) {
// Do once on page load
processQuestionList();
-})();
+};
+
+
+// On page load
+doPageLoad();
// Append styles
@@ -358,4 +369,4 @@ styles.innerHTML = `
margin-left: 0;
}
`;
-document.body.appendChild(style);
+document.body.appendChild(styles);
\ No newline at end of file
| 1 |
diff --git a/apps/st2-history/history-details.component.js b/apps/st2-history/history-details.component.js @@ -131,10 +131,6 @@ export default class HistoryDetails extends React.Component {
parameters = {...parameters, ...object};
}
}
-
- if ('secret' in data) {
- delete parameters[data.name];
- }
});
return (
<PanelDetails data-test="details">
| 2 |
diff --git a/app/hotels/src/singleHotel/roomList/RoomRow.js b/app/hotels/src/singleHotel/roomList/RoomRow.js @@ -6,14 +6,17 @@ import { NetworkImage } from '@kiwicom/react-native-app-common';
import ReadMore from 'react-native-read-more-text';
import type { RoomRowContainer_availableRoom } from './__generated__/RoomRowContainer_availableRoom.graphql';
+import RoomPicker from '../roomPicker/RoomPicker';
const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
padding: 15,
- flexDirection: 'row',
marginBottom: 10,
},
+ row: {
+ flexDirection: 'row',
+ },
thumbnail: {
width: 60,
height: 80,
@@ -45,6 +48,8 @@ type Props = {|
|};
export default class RoomRow extends React.Component<Props> {
+ doNothing() {}
+
render() {
const availableRoom = this.props.availableRoom;
const title = idx(availableRoom, _ => _.room.description.title) || 'Room';
@@ -53,9 +58,17 @@ export default class RoomRow extends React.Component<Props> {
availableRoom,
_ => _.room.photos.edges[0].node.thumbnailUrl,
);
+ const price = idx(availableRoom, _ => _.minimalPrice.amount);
+ const currency = idx(availableRoom, _ => _.minimalPrice.currency);
+ const selectableCount =
+ idx(availableRoom, _ => _.incrementalPrice.length) || 0;
return (
<View style={styles.container}>
- <NetworkImage source={{ uri: thumbnailUrl }} style={styles.thumbnail} />
+ <View style={styles.row}>
+ <NetworkImage
+ source={{ uri: thumbnailUrl }}
+ style={styles.thumbnail}
+ />
<View style={styles.details}>
<Text style={styles.title}>{title}</Text>
{description && (
@@ -68,6 +81,18 @@ export default class RoomRow extends React.Component<Props> {
)}
</View>
</View>
+ {price &&
+ currency && (
+ <RoomPicker
+ price={price}
+ currency={currency}
+ selectedCount={0}
+ selectableCount={selectableCount}
+ increment={this.doNothing}
+ decrement={this.doNothing}
+ />
+ )}
+ </View>
);
}
}
| 0 |
diff --git a/src/main/webapp/org/cboard/util/CBoardEChartRender.js b/src/main/webapp/org/cboard/util/CBoardEChartRender.js @@ -77,7 +77,7 @@ CBoardEChartRender.prototype.chart = function (group, persist) {
CBoardEChartRender.prototype.changeSize = function (instance) {
var o = instance.getOption();
- if (o.series[0] ? o.series[0].type : null) {
+ if ((o.series[0] ? o.series[0].type : null) == 'pie') {
var l = o.series.length;
var b = instance.getWidth() / (l + 1 + l * 8)
for (var i = 0; i < l; i++) {
| 1 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.208.1",
+ "version": "0.208.2",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/paywall/.eslintrc.js b/paywall/.eslintrc.js @@ -19,6 +19,7 @@ module.exports = {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
+ argsIgnorePattern: /^_$/,
},
],
'react/prefer-stateless-function': [2],
| 11 |
diff --git a/package.json b/package.json {
"name": "cesium",
- "version": "1.33.0",
+ "version": "1.34.0",
"description": "Cesium is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.",
"homepage": "http://cesiumjs.org",
"license": "Apache-2.0",
| 3 |
diff --git a/docs/APIRef.DeviceObjectAPI.md b/docs/APIRef.DeviceObjectAPI.md @@ -46,7 +46,7 @@ Grant or deny runtime permissions for your application.
await device.launchApp({permissions: {calendar: 'YES'}});
```
Detox uses [AppleSimUtils](https://github.com/wix/AppleSimulatorUtils) on iOS to support this functionality. Read about the different types of permissions and how to set them in AppleSimUtils' Readme.
-Check out Detox's [own test suite](../detox/test/e2e/l-permissions.js)
+Check out Detox's [own test suite](../detox/test/e2e/m-permissions.js)
##### 3. Launch from URL
Mock opening the app from URL to test your app's deep link handling mechanism.
| 1 |
diff --git a/generators/server/templates/pom.xml.ejs b/generators/server/templates/pom.xml.ejs <jacoco.utReportFile>${jacoco.reportFolder}/test.exec</jacoco.utReportFile>
<jacoco.itReportFile>${jacoco.reportFolder}/integrationTest.exec</jacoco.itReportFile>
- <!-- Sonar properties -->
- <!--
- <sonar.host.url>http://localhost:9001</sonar.host.url>
- <sonar.exclusions><%= CLIENT_MAIN_SRC_DIR %>content/**/*.*, <%= CLIENT_MAIN_SRC_DIR %>i18n/*.js, <%= CLIENT_DIST_DIR %>**/*.*</sonar.exclusions>
- <sonar.issue.ignore.multicriteria>S3437,<% if (authenticationType === 'jwt') { %>S4502,<% } %>S4684,UndocumentedApi,BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria>
-
- <sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey><%= CLIENT_MAIN_SRC_DIR %>app/**/*.*</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>
- <sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>Web:BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>
-
- <sonar.issue.ignore.multicriteria.S3437.resourceKey><%= MAIN_DIR %>java/**/*</sonar.issue.ignore.multicriteria.S3437.resourceKey>
- <sonar.issue.ignore.multicriteria.S3437.ruleKey>squid:S3437</sonar.issue.ignore.multicriteria.S3437.ruleKey>
-
- <sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey><%= MAIN_DIR %>java/**/*</sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>
- <sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>squid:UndocumentedApi</sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>
- <%_ if (authenticationType === 'jwt') { _%>
-
- <sonar.issue.ignore.multicriteria.S4502.resourceKey><%= MAIN_DIR %>java/**/*</sonar.issue.ignore.multicriteria.S4502.resourceKey>
- <sonar.issue.ignore.multicriteria.S4502.ruleKey>squid:S4502</sonar.issue.ignore.multicriteria.S4502.ruleKey>
- <%_ } _%>
-
- <sonar.issue.ignore.multicriteria.S4684.resourceKey><%= MAIN_DIR %>java/**/*</sonar.issue.ignore.multicriteria.S4684.resourceKey>
- <sonar.issue.ignore.multicriteria.S4684.ruleKey>squid:S4684</sonar.issue.ignore.multicriteria.S4684.ruleKey>
- <sonar.java.codeCoveragePlugin>jacoco</sonar.java.codeCoveragePlugin>
- <sonar.junit.utReportFolder>${project.testresult.directory}/test</sonar.junit.utReportFolder>
- <sonar.junit.itReportFolder>${project.testresult.directory}/integrationTest</sonar.junit.itReportFolder>
- <sonar.junit.reportPaths>${sonar.junit.utReportFolder},${sonar.junit.itReportFolder}</sonar.junit.reportPaths>
- <sonar.sources>${project.basedir}/<%= MAIN_DIR %></sonar.sources>
- <sonar.tests>${project.basedir}/<%= TEST_DIR %></sonar.tests>
- <%_ if (!skipClient) { _%>
- <sonar.testExecutionReportPaths>${project.testresult.directory}/jest/TESTS-results-sonar.xml</sonar.testExecutionReportPaths>
- <sonar.typescript.lcov.reportPaths>${project.testresult.directory}/lcov.info</sonar.typescript.lcov.reportPaths>
- <%_ } _%>
- <sonar.sources>${project.basedir}/<%= MAIN_DIR %></sonar.sources>
- <sonar.junit.reportsPath>${project.testresult.directory}</sonar.junit.reportsPath>
- <sonar.tests>${project.basedir}/<%= TEST_DIR %></sonar.tests>
- -->
<!-- jhipster-needle-maven-property -->
</properties>
| 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.