code stringlengths 122 4.99k | label int64 0 14 |
|---|---|
diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml @@ -13,9 +13,22 @@ env:
DEVELOPER_DIR: /Applications/Xcode_12.5.app/Contents/Developer
jobs:
+ validateActor:
+ runs-on: ubuntu-latest
+ outputs:
+ IS_DEPLOYER: ${{ steps.isUserDeployer.outputs.isTeamMember || github.actor == 'OSBo... | 11 |
diff --git a/assets/js/components/notifications/util.js b/assets/js/components/notifications/util.js @@ -28,7 +28,7 @@ import { camelCase } from 'lodash';
import { getDaysBetweenDates } from '../../util';
import WinsWithData from './wins-withdata';
import data, { TYPE_MODULES } from '../data';
-
+import { getCache, del... | 3 |
diff --git a/packages/slack/src/models/errors.ts b/packages/slack/src/models/errors.ts -export class InvalidGrowiCommandError extends Error {
+import ExtensibleCustomError from 'extensible-custom-error';
- constructor(e?: string) {
- super(e);
- this.name = new.target.name;
- Object.setPrototypeOf(this, new.target.prot... | 7 |
diff --git a/server/preprocessing/conf/config.ini b/server/preprocessing/conf/config.ini @@ -27,7 +27,7 @@ snapshot_php = "server/services/snapshot/headstart_snapshot.php"
# Thumbnail width
snapshot_width = "1200px"
# snapshot_local_protocol fallback for non-server environments
-snapshot_local_protocol = "http"
+snapsh... | 3 |
diff --git a/client/src/releaseNotes.json b/client/src/releaseNotes.json "Remove the LayoutDefault.",
"Fixes adding decks and rooms in the simulator config.",
"Fixes tactical map toggles for flash, WASD, etc.",
- "Fixes the alert level selector in the simulator config."
+ "Fixes the alert level selector in the simulato... | 2 |
diff --git a/vis/js/HeadstartRunner.js b/vis/js/HeadstartRunner.js import ReactDOM from "react-dom";
import React from "react";
-import { createStore, applyMiddleware, compose } from 'redux';
+import { createStore } from "redux";
import { Provider } from "react-redux";
import rootReducer, { getInitialState } from "./re... | 2 |
diff --git a/source/guides/core-concepts/interacting-with-elements.md b/source/guides/core-concepts/interacting-with-elements.md @@ -132,7 +132,7 @@ After we verify the element is actionable, Cypress will then fire all of the app
cy.get('button').click({ position: 'topLeft' })
```
-The coordinates we fired the event at... | 7 |
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js @@ -363,7 +363,6 @@ RED.popover = (function() {
panel.css({ display: "none" });
panel.appendTo(document.body);
content.appendTo(panel);
- var closeCallback;
... | 11 |
diff --git a/src/tom-select.ts b/src/tom-select.ts @@ -2297,9 +2297,12 @@ export default class TomSelect extends MicroPlugin(MicroEvent){
i = Math.max(0, Math.min(self.items.length, i));
if( i != self.caretPos && !self.isPending ){
- var j, children = self.controlChildren();
+ var j, child,
+ children = self.controlChi... | 13 |
diff --git a/translations/en-us.yaml b/translations/en-us.yaml @@ -1457,17 +1457,17 @@ monitoringPage:
project: Project level monitoring is enabled.
insufficientSize:
prometheus:
- cpu: Please make sure you have at least one node with {cpu} milli CPUs available to enable Prometheus workload.
- memory: Please make sure ... | 3 |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
Test-Git-Meta:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: sudo apt-get ins... | 3 |
diff --git a/articles/libraries/lock-ios/v1/touchid-authentication.md b/articles/libraries/lock-ios/v1/touchid-authentication.md @@ -5,10 +5,8 @@ description: How to implement Touch ID authentication with Lock iOS.
---
# Lock iOS: Touch ID Authentication
-<%= include('../_includes/_lock-version-1') %>
-
-::: warning
-T... | 14 |
diff --git a/src/encoded/upgrade/donor.py b/src/encoded/upgrade/donor.py @@ -154,5 +154,5 @@ def human_donor_9_10(value, system):
if value.get('life_stage') == 'postnatal':
value['life_stage'] = 'newborn'
value.pop('children', None)
- if value.get('ethnicity') in ['NA', 'Unknown', 'unknown']:
+ if value.get('ethnicity'... | 0 |
diff --git a/processors/processExpand.js b/processors/processExpand.js @@ -35,6 +35,28 @@ function processExpand(entries, meta) {
}));
}
+ // Tracks current aegis holder so we can ignore kills that pop aegis
+ let aegisHolder = null;
+
+ // Used to ignore meepo clones killing themselves
+ let aegisDeathTime = null;
+
+... | 8 |
diff --git a/code/js/modules/Sitelist.js b/code/js/modules/Sitelist.js "plex": { name: "Plex", url: "http://www.plex.tv" },
"pluralsight": { name: "Pluralsight", url: "https://app.pluralsight.com" },
"pocketcasts": { name: "Pocketcasts", url: "https://play.pocketcasts.com" },
- "qq.com/portal/player.html": { name: "QQ ... | 10 |
diff --git a/include/Attribute.h b/include/Attribute.h @@ -47,7 +47,7 @@ public:
int size = attribute_name.size();
- if ((size >0 && !isalpha(aname[0]))||
+ if ((size >0 && !(isalpha(aname[0]) || aname[0] == '_')) ||
(size >=3 && (aname[0]=='X' && aname[1]=='M' && aname[2]=='L')))
{
attribute_name.insert(0,"ONE_");
| 11 |
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue @@ -705,10 +705,10 @@ export default {
event.dataTransfer.effectAllowed = ''
}
} else {
- if (relMousePos.yPercentage <= ... | 10 |
diff --git a/packages/tame-global-math-object/src/main.js b/packages/tame-global-math-object/src/main.js -const { defineProperties } = Object;
+const { defineProperties, getOwnPropertyDescriptors } = Object;
export default function tameGlobalMathObject() {
- const throwingRandom = {
+ const safeMathDescs = getOwnProper... | 7 |
diff --git a/character-controller.js b/character-controller.js @@ -171,6 +171,9 @@ class Player extends THREE.Object3D {
getActionsState() {
return this.state.getArray(this.prefix + '.' + actionsMapName);
}
+ getActionsArray() {
+ return Array.from(this.getActionsState());
+ }
getAvatarState() {
return this.state.getMa... | 0 |
diff --git a/webpack.config.js b/webpack.config.js @@ -217,15 +217,12 @@ const GOOGLESITEKIT_VERSION = googleSiteKitVersion
const corePackages = [
'api-fetch',
- 'components',
'compose',
'data',
'dom-ready',
'element',
- 'hooks',
'icons',
'keycodes',
- 'scripts',
'url',
];
| 2 |
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -17,6 +17,7 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
| `type: bug` | bug report confirmed by a plotly team member |
| `type: regression` | bug that introduced a change in behavior from one version to the next |
| `type: feature... | 0 |
diff --git a/server/server.js b/server/server.js @@ -243,6 +243,7 @@ var Server = IgeClass.extend({
},
startWebServer: function () {
const app = express();
+ const port = process.env.PORT || 80;
app.use(bodyParser.urlencoded({ extended: false }));
// parse application/json
@@ -345,7 +346,7 @@ var Server = IgeClass.exte... | 13 |
diff --git a/sirepo/util.py b/sirepo/util.py @@ -22,4 +22,4 @@ def merge_dicts(base, derived, depth):
merge_dicts(base[key], derived[key], depth-1)
def err(obj, format='', *args, **kwargs):
- return '{}: '.format(obj) + format.format(args, kwargs)
+ return '{}: '.format(obj) + format.format(*args, **kwargs)
| 1 |
diff --git a/lib/scheduler.js b/lib/scheduler.js @@ -52,7 +52,7 @@ class Scheduler {
}
restore(record) {
- const { id, name, every, data, run } = record;
+ const { id, name, every, args, run } = record;
this.stop(id);
const task = {
id,
@@ -66,7 +66,7 @@ class Scheduler {
executing: false,
runCount: 0,
timer: null,
- d... | 10 |
diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js @@ -869,7 +869,8 @@ module.exports = {
},
'/zh/': {
lang: 'zh-CN',
- label: translate('language'),
+ label: translate('language', 'zh-CN'),
+ title: translate('ethereum', 'zh-CN'),
nav: [
{ text: translate('page-home', 'zh-CN'), link: '/zh/' },
{
| 13 |
diff --git a/assets/filters/mode7.js b/assets/filters/mode7.js @@ -5,10 +5,11 @@ Phaser.Filter.Mode7 = function (game) {
this.uniforms.sin1 = {type: "1f", value: 1};
this.uniforms.sin2 = {type: "1f", value: 0};
this.uniforms.cos1 = {type: "1f", value: 0};
- this.uniforms.cos2 = {type: "1f", value: -1};
+ this.uniforms.... | 12 |
diff --git a/app/shared/components/Tools/Proxy.js b/app/shared/components/Tools/Proxy.js @@ -34,7 +34,7 @@ class ToolsProxy extends Component<Props> {
return (
<Grid centered>
<Grid.Column width={8} style={{ textAlign: 'center' }} >
- {(keys && keys.key) ?
+ {(keys && keys.key || settings.walletMode === 'watch') ?
(
<d... | 11 |
diff --git a/packages/uikit-default/src/js/postmessage.js b/packages/uikit-default/src/js/postmessage.js @@ -19,6 +19,8 @@ if (self != top) {
var parts = path.split("?");
var options = { "event": "patternLab.pageLoad", "path": parts[0] };
+ patternData = document.getElementById('sg-pattern-data-footer').innerHTML;
+ pa... | 4 |
diff --git a/articles/quickstart/spa/angular2/05-authorization.md b/articles/quickstart/spa/angular2/05-authorization.md @@ -74,7 +74,9 @@ The `userHasScopes` method can now be used alongside `isAuthenticated` to condit
## Protect Client-Side Routes
-To completely prevent access to client-side routes based on a particu... | 3 |
diff --git a/shared/js/background.js b/shared/js/background.js @@ -85,7 +85,7 @@ function Background() {
if ((!settings.getSetting('hasSeenPostInstall')) && (!domain.match(regExpPostInstall))) {
settings.updateSetting('hasSeenPostInstall', true)
chrome.tabs.create({
- url: 'https://www.duckduckgo.com/app?post=1'
+ url:... | 2 |
diff --git a/app/components/Account/AccountPage.jsx b/app/components/Account/AccountPage.jsx @@ -29,6 +29,12 @@ class AccountPage extends React.Component {
accountUtils.getPossibleFees(this.props.account, "transfer");
}
+ componentWillReceiveProps(np) {
+ if (np.account) {
+ AccountActions.setCurrentAccount.defer(np.ac... | 12 |
diff --git a/lib/plugins/physics.js b/lib/plugins/physics.js @@ -270,7 +270,7 @@ function inject (bot) {
const tickListener = () => {
ticks--
if (ticks === 0) {
- this.bot.removeListener('physicTick', tickListener)
+ bot.removeListener('physicTick', tickListener)
resolve()
}
}
| 2 |
diff --git a/app/models/carto/visualization.rb b/app/models/carto/visualization.rb @@ -39,8 +39,6 @@ class Carto::Visualization < ActiveRecord::Base
has_many :likes, foreign_key: :subject
has_many :shared_entities, foreign_key: :entity_id, inverse_of: :visualization
- # TODO: duplicated with user_table?
- belongs_to :t... | 2 |
diff --git a/README.md b/README.md @@ -31,6 +31,21 @@ npm run start
HiGlass provides an API for controlling the component from within a Javascript script. Complete documentation is availabe at [docs.higlass.io](http://docs.higlass.io/higlass_developer.html#public-api). Example:
```
+<link rel="stylesheet" href="//maxcd... | 3 |
diff --git a/README.md b/README.md @@ -222,6 +222,8 @@ The component accepts the following props:
|**`sort`**|boolean|true|Enable/disable sort on all columns.
|**`sortFilterList`**|boolean|true|Enable/disable alphanumeric sorting of filter lists.
|**`sortOrder`**|object|{}|Sets the column to sort by and its sort direct... | 0 |
diff --git a/app.json b/app.json "scripts": {
},
"env": {
+ "HEROKU_APP": "REVIEW",
+ "NPM_CONFIG_PRODUCTION": "false",
+ "NODE_MODULES_CACHE": "false"
},
"formation": {
},
],
"buildpacks": [
-
+ {
+ "url": "heroku/nodejs"
+ }
]
}
| 12 |
diff --git a/app/addons/replication/controller.js b/app/addons/replication/controller.js @@ -249,6 +249,8 @@ export default class ReplicationController extends React.Component {
getCrumbs () {
if (this.state.tabSection === 'new replication') {
return [{'name': 'Job Configuration'}];
+ } else {
+ return [{'name': 'Repli... | 0 |
diff --git a/package.json b/package.json "release-legacy": "git pull origin 5.x && git push origin 5.x --tags && npm publish --tag legacy",
"mongo": "node ./tools/repl.js",
"test": "mocha --exit ./test/*.test.js ./test/typescript/main.test.js",
- "test-types": "tsd",
+ "test-typings": "tsd",
"tdd": "mocha ./test/*.test... | 10 |
diff --git a/example/ionExample.js b/example/ionExample.js @@ -141,7 +141,11 @@ function reinstantiateTiles() {
let url = hashUrl || '../data/tileset.json';
- url = isInt( hashUrl ) ? hashUrl : url;
+ if ( hashUrl ) {
+
+ params.ionAssetId = isInt( hashUrl ) ? hashUrl : '';
+
+ }
if ( tiles ) {
| 12 |
diff --git a/packages/app/test/cypress/integration/60-home/60-home--home.spec.ts b/packages/app/test/cypress/integration/60-home/60-home--home.spec.ts @@ -11,7 +11,10 @@ context('Access Home', () => {
it('Visit home', () => {
cy.visit('/dummy');
cy.waitUntilSkeletonDisappear();
- cy.getByTestid('personal-dropdown-butto... | 13 |
diff --git a/lib/MongoLite/Database.php b/lib/MongoLite/Database.php @@ -322,11 +322,18 @@ class UtilArrayQuery {
case '$eq' :
$r = $a == $b;
break;
+
case '$not' :
case '$ne' :
$r = $a != $b;
break;
+
case '$gte' :
+ if ( (is_numeric($a) && is_numeric($b)) || (is_string($a) && is_string($b)) ) {
+ $r = $a >= $b;
+ }
+... | 1 |
diff --git a/Source/ThirdParty/GltfPipeline/updateVersion.js b/Source/ThirdParty/GltfPipeline/updateVersion.js @@ -687,19 +687,62 @@ define([
}
function moveByteStrideToBufferView(gltf) {
+ var bufferViews = gltf.bufferViews;
+ var bufferViewsToDelete = {};
ForEach.accessor(gltf, function(accessor) {
- if (defined(acce... | 1 |
diff --git a/grocy.openapi.json b/grocy.openapi.json ],
"parameters": [
{
- "in": "path",
+ "in": "query",
"name": "expiring_days",
"required": false,
"description": "The number of days in which products are considered expiring soon",
"properties": {
"amount": {
"type": "number",
- "format": "double",
+ "format": "numb... | 1 |
diff --git a/Apps/Sandcastle/gallery/3D Tiles Next CDB Yemen.html b/Apps/Sandcastle/gallery/3D Tiles Next CDB Yemen.html // 3D Tiles Next converted from CDB of Aden, Yemen (CDB provided by Presagis)
var terrainTileset = viewer.scene.primitives.add(
new Cesium.Cesium3DTileset({
- url: Cesium.IonResource.fromAssetId(6667... | 3 |
diff --git a/src/lib/draw-and-pick.js b/src/lib/draw-and-pick.js @@ -325,6 +325,8 @@ function getPickedColors(gl, {
// Make sure we clear scissor test and fbo bindings in case of exceptions
// We are only interested in one pixel, no need to render anything else
// Note that the callback here is called synchronously.
+ ... | 2 |
diff --git a/lib/plugins/aws/invokeLocal/index.js b/lib/plugins/aws/invokeLocal/index.js @@ -128,13 +128,17 @@ class AwsInvokeLocal {
NODE_PATH: '/var/runtime:/var/task:/var/runtime/node_modules',
};
- const credentialEnvVars = this.provider.cachedCredentials
- ? {
- AWS_ACCESS_KEY_ID: this.provider.cachedCredentials.a... | 1 |
diff --git a/lib/utils/config/index.js b/lib/utils/config/index.js @@ -5,6 +5,7 @@ const p = require('path');
const os = require('os');
const _ = require('lodash');
const rc = require('rc');
+const chalk = require('chalk');
const writeFileAtomic = require('write-file-atomic');
const fileExistsSync = require('../fs/file... | 7 |
diff --git a/src/controllers/chatTribes.ts b/src/controllers/chatTribes.ts @@ -38,12 +38,12 @@ export async function joinTribe(req, res) {
const existing = await models.Chat.findOne({ where: { uuid, tenant } })
if (existing) {
- console.log('[tribes] u are already in this tribe')
+ sphinxLogger.error('You are already i... | 3 |
diff --git a/includes/Core/Permissions/Permissions.php b/includes/Core/Permissions/Permissions.php @@ -213,8 +213,8 @@ final class Permissions {
// Special setup and authentication rules.
if ( ( isset( $this->primitive_to_core[ $cap ] ) || isset( $this->meta_to_core[ $cap ] ) ) ) {
// If setup has not yet been complete... | 4 |
diff --git a/lib/tests/test.js b/lib/tests/test.js @@ -33,6 +33,7 @@ class Test {
this.contracts = {};
this.events = new Events();
this.ready = true;
+ this.error = false;
this.builtContracts = {};
this.compiledContracts = {};
@@ -111,13 +112,19 @@ class Test {
}
onReady(callback) {
+ const self = this;
if (this.ready)... | 2 |
diff --git a/src/client/js/legacy/crowi.js b/src/client/js/legacy/crowi.js @@ -355,12 +355,13 @@ $(function() {
});
$('#renamePageForm, #unportalize-form').submit(function(e) {
// create name-value map
+ let name = $('input', this).val();
let nameValueMap = {};
$(this).serializeArray().forEach((obj) => {
nameValueMap[o... | 10 |
diff --git a/docs/lambda_hooks/README.md b/docs/lambda_hooks/README.md @@ -57,12 +57,22 @@ Add importable content packages in the `./ui_imports/content` folder using two f
- \<name>.json -- the JSON representation of the QnA documents to be imported (can be a file that was previous exported from Content Designer.
- \<n... | 3 |
diff --git a/src/pages/workspace/WorkspaceInvitePage.js b/src/pages/workspace/WorkspaceInvitePage.js @@ -81,7 +81,7 @@ class WorkspaceInvitePage extends React.Component {
personalDetails,
selectedOptions: [],
userToInvite,
- welcomeNote: this.getWelcomeNotePlaceholder(),
+ welcomeNote: this.getWelcomeNote(),
};
}
@@ -9... | 10 |
diff --git a/generate-constants.sh b/generate-constants.sh #!/bin/bash -ex
-rm -fv ./resources/provision/node_modules.zip
-rm -rf ./resources/provision/node_modules
-
-pushd ./resources/provision
-npm install
-popd
-
-pushd ./resources/provision/
-zip -r ./node_modules.zip ./node_modules/*
-popd
# Create the embedded v... | 2 |
diff --git a/lib/grammars.coffee b/lib/grammars.coffee @@ -378,6 +378,14 @@ module.exports =
command: "node"
args: (context) -> [context.filepath]
+ 'JavaScript with JSX':
+ "Selection Based":
+ command: "node"
+ args: (context) -> ['-e', context.getCode()]
+ "File Based":
+ command: "node"
+ args: (context) -> [contex... | 9 |
diff --git a/modules/Collections/bootstrap.php b/modules/Collections/bootstrap.php @@ -602,7 +602,7 @@ function cockpit_populate_collection(&$items, $maxlevel = -1, $level = 0, $field
if (isset($v['_id'], $v['link'])) {
$link = $v['link'];
$items[$k] = cockpit('collections')->_resolveLinkedItem($v['link'], $v['_id'], $... | 10 |
diff --git a/src/encoded/tests/test_audit_file.py b/src/encoded/tests/test_audit_file.py @@ -253,15 +253,6 @@ def test_audit_file_mismatched_paired_with(testapp, file1, file4):
assert any(error['category'] == 'inconsistent paired_with' for error in errors_list)
-def test_audit_file_size(testapp, file1):
- res = testapp... | 2 |
diff --git a/docs/modules/casper.rst b/docs/modules/casper.rst @@ -1787,7 +1787,7 @@ Sets the maximum number of listeners that can be added for each type of listener
.. note::
Incorrect registering of listeners in your casper scripts can result in a warning
- message indicating that a possible EventEmitter lead has bee... | 1 |
diff --git a/packages/react-devtools-inline/webpack.config.js b/packages/react-devtools-inline/webpack.config.js @@ -95,6 +95,7 @@ module.exports = {
loader: 'workerize-loader',
options: {
inline: true,
+ name: '[name]',
},
},
{
| 7 |
diff --git a/server/game/gamesteps/forcedtriggeredabilitywindow.js b/server/game/gamesteps/forcedtriggeredabilitywindow.js @@ -145,6 +145,7 @@ class ForcedTriggeredAbilityWindow extends BaseStep {
emitEvents() {
this.choices = [];
+ this.events = _.reject(this.events, event => event.cancelled);
_.each(this.events, even... | 2 |
diff --git a/site/src/pages/HomePageNative.js b/site/src/pages/HomePageNative.js @@ -223,7 +223,7 @@ export default class HomePageNative extends Component {
style={{ width: '100%', flexWrap: 'wrap' }}
>
- <Flex className={card} onClick={() => this.openLink('https://medium.com/@siddharthlatest/v2-ui-components-for-elast... | 3 |
diff --git a/assets/js/components/setup/setup-proxy.js b/assets/js/components/setup/setup-proxy.js @@ -98,7 +98,7 @@ class SetupUsingProxy extends Component {
<Button
href={ proxySetupURL }
onClick={ () => {
- sendAnalyticsTrackingEvent( 'plugin_setup', 'signin_with_google' );
+ sendAnalyticsTrackingEvent( 'plugin_setu... | 3 |
diff --git a/doc/index.md b/doc/index.md @@ -45,8 +45,8 @@ What objection.js **doesn't** give you:
to you. knex has a great [migration tool](http://knexjs.org/#Migrations) that we recommend for this job. Check
out the [example project](https://github.com/Vincit/objection.js/tree/master/examples/express-es6).
-Objection... | 7 |
diff --git a/packages/helpers/classes/mail.d.ts b/packages/helpers/classes/mail.d.ts @@ -152,7 +152,7 @@ export interface MailData {
substitutionWrappers?: string[],
isMultiple?: boolean,
- dynamicTemplateData?: { [key: string]: string },
+ dynamicTemplateData?: { [key: string]: any },
}
export interface MailJSON {
| 11 |
diff --git a/source/views/controls/ButtonView.js b/source/views/controls/ButtonView.js @@ -285,7 +285,6 @@ const ButtonView = Class({
automatically double click everything (yep! that's a type of user), we
won't trigger twice. This is important if you automatically select the
next item after applying an action.
- .
*/
n... | 2 |
diff --git a/src/modules/router/tab.js b/src/modules/router/tab.js @@ -91,6 +91,7 @@ function tabLoad(tabRoute, loadOptions = {}) {
const { url, content, el, template, templateUrl, component, componentUrl } = loadTabParams;
// Component/Template Callbacks
function resolve(contentEl) {
+ router.allowPageChange = true;
i... | 11 |
diff --git a/resources/js/MusicKitInterop.js b/resources/js/MusicKitInterop.js @@ -15,20 +15,20 @@ const MusicKitInterop = {
const nowPlayingItem = MusicKit.getInstance().nowPlayingItem;
if (typeof nowPlayingItem != "undefined") {
if (nowPlayingItem["type"] === "musicVideo") {
- document.querySelector(`div[aria-label="... | 11 |
diff --git a/src/components/dashboard/ReceiveByQR.web.js b/src/components/dashboard/ReceiveByQR.web.js @@ -30,12 +30,26 @@ const ReceiveByQR = ({ screenProps }) => {
log.debug({ url })
if (url === null) {
- throw new Error('Invalid QR Code.')
+ store.set('currentScreen')({
+ dialogData: {
+ visible: true,
+ title: 'Err... | 14 |
diff --git a/source/api/utilities/blob.md b/source/api/utilities/blob.md @@ -47,6 +47,26 @@ cy.get('input[type=file]').then(function($input) {
})
```
+### Using an image fixture for upload
+
+```javascript
+// programmatically upload the logo
+cy.fixture('images/logo.png').as('logo')
+cy.get('input[type=file]').then(fu... | 4 |
diff --git a/contracts/ExternStateFeeToken.sol b/contracts/ExternStateFeeToken.sol @@ -252,8 +252,8 @@ contract ExternStateFeeToken is Proxyable, SafeDecimalMath {
returns (bool)
{
// The fee is deducted from the amount sent
- uint fee = safeSub(value, priceToSpend(value));
- uint amountReceived = safeSub(value, fee);
... | 2 |
diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js @@ -146,14 +146,16 @@ function create(name = '') {
Report.fetchChatReportsByIDs([response.policy.chatReportIDAdmins, response.policy.chatReportIDAnnounce, response.ownerPolicyExpenseChatID]);
// We are awaiting this merge so that we can guarantee our ... | 4 |
diff --git a/democracylab/settings.py b/democracylab/settings.py @@ -322,8 +322,8 @@ ENVIRONMENT_VARIABLE_WARNINGS = {
}
}
-# TODO: Set to True in productions
-# SESSION_COOKIE_SECURE = True
+CSRF_COOKIE_SECURE = not DEBUG
+SESSION_COOKIE_SECURE = not DEBUG
CSRF_COOKIE_SAMESITE = 'None'
SESSION_COOKIE_SAMESITE = 'None'... | 12 |
diff --git a/src/services/events/events.hooks.js b/src/services/events/events.hooks.js @@ -2,13 +2,13 @@ import { disallow } from 'feathers-hooks-common';
export default {
before: {
- all: [disallow('external')],
+ all: [],
find: [],
get: [],
- create: [],
- update: [],
- patch: [],
- remove: [],
+ create: [disallow('e... | 11 |
diff --git a/generators/server/templates/build.gradle.ejs b/generators/server/templates/build.gradle.ejs @@ -532,7 +532,6 @@ dependencies {
liquibaseRuntime "com.oracle.ojdbc:ojdbc8"
<%_ } _%>
<%_ if (messageBroker === 'kafka') { _%>
- testImplementation "org.testcontainers:database-commons"
testImplementation "org.tes... | 2 |
diff --git a/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/defaultFileSet.js b/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/defaultFileSet.js @@ -18,7 +18,7 @@ var i18n = require("@node-red/util").i18n;
module.exports = {
"package.json": function(project) {... | 10 |
diff --git a/packages/cx/src/widgets/overlay/Dropdown.js b/packages/cx/src/widgets/overlay/Dropdown.js @@ -19,6 +19,8 @@ export class Dropdown extends Overlay {
this.trackMouseX = true;
this.trackMouseY = true;
}
+ if (this.autoFocus && !this.hasOwnProperty(this.focusable))
+ this.focusable = true;
super.init();
}
| 11 |
diff --git a/lib/devstates.js b/lib/devstates.js @@ -2042,6 +2042,7 @@ const states = {
min: 0,
max: 100,
unit: '%',
+ getter: payload => (payload.position !== null) ? payload.position : undefined,
},
curtain_stop: {
id: 'stop',
| 8 |
diff --git a/userscript.user.js b/userscript.user.js @@ -73133,6 +73133,11 @@ var $$IMU_EXPORT$$;
waitingel.style.display = "none";
}
+ // camhub.cc (ublock origin blocks any setTimeout'd function with 'stop' in the name)
+ function dont_wait_anymore() {
+ stop_waiting();
+ }
+
var not_allowed_timer = null;
function cu... | 7 |
diff --git a/lib/determine-basal/determine-basal.js b/lib/determine-basal/determine-basal.js @@ -535,7 +535,8 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
rT.carbsReq = carbsReq;
rT.reason += "~" + carbsReq + " add'l carbs req + 30m zero temp; ";
}
- if (bg < threshold) { // low g... | 11 |
diff --git a/angular/projects/spark-angular/src/lib/components/sprk-card/directives/sprk-card-media/sprk-card-media.directive.spec.ts b/angular/projects/spark-angular/src/lib/components/sprk-card/directives/sprk-card-media/sprk-card-media.directive.spec.ts @@ -11,7 +11,7 @@ import { SprkCardMediaDirective } from './spr... | 3 |
diff --git a/packages/bitcore-wallet-service/src/config.ts b/packages/bitcore-wallet-service/src/config.ts @@ -140,12 +140,24 @@ module.exports = {
// defaultUnit: 'btc',
// publicTxUrlTemplate: {
// btc: {
- // livenet: 'https://insight.bitcore.io/#/BTC/mainnet/tx/{{txid}}',
- // testnet: 'https://insight.bitcore.io/#... | 3 |
diff --git a/src/govuk/components/input/input.yaml b/src/govuk/components/input/input.yaml @@ -88,7 +88,7 @@ params:
- name: classes
type: string
required: false
- description: Classes to add to the form group (e.g. to show error state for the whole group)
+ description: Classes to add to the form group (for example to... | 14 |
diff --git a/styles/override-editor.scss b/styles/override-editor.scss @@ -744,10 +744,15 @@ body {
.components-button {
justify-content: flex-start !important;
+ gap: 0.4rem;
}
.components-button:not(.is-pressed) {
border: 1px solid #F2F2F2;
+
+ &:hover {
+ border-color: var(--wp-admin-theme-color, #111111);
+ }
}
}
| 7 |
diff --git a/src/components/views/Sensors/GridDom/index.js b/src/components/views/Sensors/GridDom/index.js @@ -84,7 +84,10 @@ class GridDom extends Component {
opacity: nextProps.pings
? this.contactPing(c, Date.now() - nextProps.pingTime)
: 1,
- destination: c.destination
+ destination:
+ this.state.movingContact === ... | 1 |
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md **PR Checklist:**
+- [ ] This PR is made against the dev branch (all proposed changes except releases should be against dev, not master).
- [ ] This PR has **no** breaking changes.
- [ ] I have added my changes to the [CHANGELOG](https://g... | 0 |
diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js @@ -393,7 +393,7 @@ class ReportActionCompose extends React.Component {
const newComment = EmojiUtils.replaceEmojis(comment, this.props.isSmallScreenWidth);
this.setState((prevState) => {
const newState = {
- isComm... | 11 |
diff --git a/articles/client-auth/client-side-web.md b/articles/client-auth/client-side-web.md @@ -59,6 +59,7 @@ This endpoint supports the following query string parameters:
| redirect_uri | The URL in your application where the user will be redirected to after they have authenticated, e.g. `https://YOUR_APP/callback`... | 0 |
diff --git a/src/components/Spinner.js b/src/components/Spinner.js -import React from 'react';
+import React, {Fragment} from 'react';
import PropTypes from 'prop-types';
-import {omit} from 'ramda';
+import {omit, type} from 'ramda';
import {Spinner as RSSpinner} from 'reactstrap';
const Spinner = props => {
- const {... | 11 |
diff --git a/packages/inertia-vue3/src/head.js b/packages/inertia-vue3/src/head.js @@ -44,8 +44,10 @@ export default {
].indexOf(vnode.type) > -1
},
renderFullTag(vnode) {
- if (typeof vnode.type === 'symbol') {
+ if (vnode.type.toString() === 'Symbol(Text)') {
return vnode.children
+ } else if (vnode.type.toString() =... | 1 |
diff --git a/apps/waypoints/lib.js b/apps/waypoints/lib.js exports.load = (num) => {
- return require("Storage").readJSON(`waypoints${num?`.${num}`:""}.json`)||[{name:"NONE"}];
+ return require("Storage").readJSON(`waypoints${num?".${num}":""}.json`)||[{name:"NONE"}];
};
exports.save = (waypoints,num) => {
- require("S... | 14 |
diff --git a/core/block_svg.js b/core/block_svg.js @@ -487,25 +487,6 @@ Blockly.BlockSvg.prototype.getBoundingRectangle = function() {
return {topLeft: topLeft, bottomRight: bottomRight};
};
-/**
- * Set block opacity for SVG rendering.
- * @param {number} opacity Intended opacity, betweeen 0 and 1
- */
-Blockly.BlockS... | 2 |
diff --git a/home.scn b/home.scn {
"objects": [
+ {
+ "name": "home",
+ "position": [0, 0, 0],
+ "quaternion": [0, 0, 0, 1],
+ "scale": [1, 1, 1],
+ "start_url": "https://avaer.github.io/home/home.glb",
+ "physics": true
+ },
{
"name": "physicscube",
"position": [0, 0, 0],
| 0 |
diff --git a/tests/operations/index.mjs b/tests/operations/index.mjs @@ -86,8 +86,6 @@ import "./tests/Media";
// Cannot test operations that use the File type yet
//import "./tests/SplitColourChannels";
-import "./tests/nodeApi/nodeApi";
-import "./tests/nodeApi/ops";
let allTestsPassing = true;
const testStatusCounts... | 2 |
diff --git a/.travis.yml b/.travis.yml @@ -33,7 +33,7 @@ script:
npm i -q --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve &&
gemini test test/visual && gemini test test/visual -c .gemini-chrome.yml;
else
- wct --env saucelabs;
+ wct --env saucelabs:$TEST_SUITE;
fi;
else
xvfb-run -s '-screen 0 1024x768x24' wct;
@@... | 4 |
diff --git a/tests/date-picker/date-picker.test.jsx b/tests/date-picker/date-picker.test.jsx @@ -14,7 +14,7 @@ import { createMountNode, destroyMountNode } from '../enzyme-helpers';
// Import your internal dependencies (for example):
import Datepicker from '../../components/date-picker';
import Input from '../../compon... | 13 |
diff --git a/website/src/_posts/2018-12-0.29.md b/website/src/_posts/2018-12-0.29.md ---
-title: "Uppy 0.29"
+title: "Uppy 0.29: Separate Core and Plugin styles, React Native in tus-js-client"
date: 2018-12-11
author: arturi
image: "https://uppy.io/images/blog/0.29/uppy-core-plugins-separate-styles.jpg"
| 0 |
diff --git a/docs/providers/aws/events/alexa-skill.md b/docs/providers/aws/events/alexa-skill.md @@ -14,9 +14,10 @@ layout: Doc
## Event definition
-This will enable your Lambda function to be called by an Alexa Skill kit.
-`amzn1.ask.skill.xx-xx-xx-xx-xx` is a skill ID for Alexa Skills kit. You receive a skill ID once... | 7 |
diff --git a/js/views/external_agent_support.js b/js/views/external_agent_support.js @@ -72,16 +72,31 @@ define(["../globals", "underscore"], function(Globals, _) {
}
}
+ function determineCanonicalLinkHref(contentWindow) {
+ // Only grab the href if there's no potential cross-domain violation
+ // and the reader appli... | 4 |
diff --git a/packages/app/src/components/Sidebar/PageTree/Item.tsx b/packages/app/src/components/Sidebar/PageTree/Item.tsx @@ -181,9 +181,6 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
return;
}
- if (pagePathUtils.isUsersProtectedPages(page.path)) {
- return toastError(t('pagetree.forbidden_to_move_target_pa... | 7 |
diff --git a/module/gurps.js b/module/gurps.js @@ -206,15 +206,15 @@ GURPS.hitlocationRolls = {
"Eyeslit (in helmet)": { penalty: -10},
"Skull": { roll: "3-4", penalty: -7},
"Face": { roll: "5", penalty: -5},
- "Nose": { penalty: -7, desc: "front only, miss by 1 hit chest"},
- "Jaw": { penalty: -6, desc: "front only, m... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.