code stringlengths 122 4.99k | label int64 0 14 |
|---|---|
diff --git a/articles/multifactor-authentication/developer/mfa-from-id-token.md b/articles/multifactor-authentication/developer/mfa-from-id-token.md @@ -29,29 +29,55 @@ For more information on the signature verification and claims validation, see [I
## Example
-This example is built on top of the [JSON Web Token Sample... | 14 |
diff --git a/packages/three-vrm/lib/three-vrm.module.js b/packages/three-vrm/lib/three-vrm.module.js @@ -1699,7 +1699,7 @@ class VRMLookAtImporter {
const getEncodingComponents = (encoding) => {
switch (encoding) {
case THREE.LinearEncoding:
- return ['Linear', '( value )'];
+ // return ['Linear', '( value )'];
case TH... | 0 |
diff --git a/packages/sampler/stories/qa/VirtualGridList.js b/packages/sampler/stories/qa/VirtualGridList.js @@ -51,7 +51,7 @@ const updateDataSize = (dataSize) => {
updateDataSize(defaultDataSize);
-storiesOf('VirtualList.VirtualGridList', module)
+storiesOf('VirtualGridList', module)
.add(
'Horizontal VirtualGridList... | 5 |
diff --git a/src/config.js b/src/config.js @@ -88,14 +88,6 @@ module.exports = {
keyCode: 73,
text: "i"
},
- {
- name: "Superscript",
- title: "superscript",
- iconName: "fmt-superscript",
- cmd: "superscriptPrompt",
- keyCode: 190,
- text: "superscript"
- },
{
name: "Link",
title: "link",
| 2 |
diff --git a/assets/js/components/GoogleChartV2.js b/assets/js/components/GoogleChartV2.js @@ -145,9 +145,13 @@ export default function GoogleChartV2( props ) {
height={ height }
getChartWrapper={ ( chartWrapper, google ) => {
// Remove all the event listeners on the old chart before we draw
- // a new one.
+ // a new ... | 2 |
diff --git a/src/core/util/strings.js b/src/core/util/strings.js @@ -73,8 +73,8 @@ export function stringWidth(text, font) {
* @memberOf StringUtil
*/
export function stringLength(text, font) {
- if (stringLength.env) {
- return stringLength.env(text, font);
+ if (stringLength.node) {
+ return stringLength.node(text, f... | 3 |
diff --git a/storage.js b/storage.js @@ -66,6 +66,11 @@ function readJointDirectly(conn, unit, callbacks, bRetrying) {
objectHash.cleanNulls(objUnit);
var bVoided = (objUnit.content_hash && main_chain_index < min_retrievable_mci);
var bRetrievable = (main_chain_index >= min_retrievable_mci || main_chain_index === null)... | 11 |
diff --git a/includes/Modules/PageSpeed_Insights.php b/includes/Modules/PageSpeed_Insights.php @@ -153,8 +153,7 @@ final class PageSpeed_Insights extends Module {
protected function parse_data_response( $method, $datapoint, $response ) {
if ( 'GET' === $method ) {
switch ( $datapoint ) {
- case 'site-pagespeed-mobile':... | 3 |
diff --git a/app/assets/stylesheets/users.scss b/app/assets/stylesheets/users.scss }
}
+.primary-checkpoint {
+ border: 1px solid $secondary-green;
+ background-color: white;
+ padding-left: 4px;
+ padding-top: 4px;
+ text-align: center;
+ cursor: pointer;
+
+ &:hover {
+ opacity: 1;
+ border-color: $primary-green;
+ t... | 1 |
diff --git a/CodingChallenges/CC_29_SmartRockets/population.js b/CodingChallenges/CC_29_SmartRockets/population.js @@ -23,7 +23,7 @@ function Population() {
for (var i = 0; i < this.popsize; i++) {
// Calculates fitness
this.rockets[i].calcFitness();
- // If current fitness is greater than max, then make max eqaul to c... | 1 |
diff --git a/shared/js/content-scripts/click-to-load.js b/shared/js/content-scripts/click-to-load.js /**
* Creates a safe element and replaces the original tracking element with it.
- * @param {Object} widgetData - a single entry from elementData
- * @param {Element} originalElement - the element on the page we are rep... | 7 |
diff --git a/map.html b/map.html import App from './app.js';
import {camera, orthographicCamera, renderer} from './app-object.js';
import {world} from './world.js';
+ import {parseQuery} from './util.js';
import {homeScnUrl} from './constants.js';
const width = 128;
camera.updateProjectionMatrix();
camera.up.set(0, 0, ... | 0 |
diff --git a/src/client/js/components/Admin/Customize/CustomizeTitle.jsx b/src/client/js/components/Admin/Customize/CustomizeTitle.jsx @@ -36,9 +36,13 @@ class CustomizeTitle extends React.Component {
return (
<React.Fragment>
+ <div className="row">
+ <div className="col-12">
<h2 className="admin-setting-header">{t('a... | 12 |
diff --git a/app/stores/WalletDb.js b/app/stores/WalletDb.js @@ -16,7 +16,7 @@ import {ChainStore, PrivateKey, key, Aes} from "bitsharesjs";
import {Apis, ChainConfig} from "bitsharesjs-ws";
import AddressIndex from "stores/AddressIndex";
import SettingsActions from "actions/SettingsActions";
-import notify from "actio... | 14 |
diff --git a/readme.md b/readme.md @@ -19,12 +19,18 @@ Please follow the format of existing issues for consistency.
## Development
-Development requires [Hugo static site generator](https://gohugo.io) v0.61.0 from [releases page](https://github.com/gohugoio/hugo/releases) or with Homebrew
+Development requires [Hugo st... | 3 |
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/reference/units/decomposition.md b/i18n/en/docusaurus-plugin-content-docs/current/reference/units/decomposition.md @@ -232,7 +232,7 @@ However, as a result of [discussions and analysis of extensive experience][disc-
[ref-layers]: /docs/reference/units/layers
[... | 1 |
diff --git a/articles/security/bulletins/index.md b/articles/security/bulletins/index.md @@ -27,7 +27,7 @@ Each bulletin contains a description of the vulnerability, how to identify if yo
| **Date** | **Bulletin number** | **Title** | **Affected software** |
|-|-|-|-|
-| October 04, 2019 | [CVE 2019-16929](/security/bu... | 1 |
diff --git a/articles/quickstart/webapp/laravel/01-login.md b/articles/quickstart/webapp/laravel/01-login.md @@ -15,15 +15,15 @@ github:
---
<%= include('../_includes/_getting_started', { library: 'Laravel', callback: 'http://localhost:3000/callback' }) %>
-## Install and Configure Laravel 5.5
+## Install and Configure... | 3 |
diff --git a/src/components/Modeler.vue b/src/components/Modeler.vue <b-col
class="paper-container h-100 pr-4"
ref="paper-container"
- :class="[cursor, { 'dragging-cursor' : isDragging }]"
+ :class="[cursor, { 'dragging-cursor' : isGrabbing }]"
:style="{ width: parentWidth, height: parentHeight }"
>
<div class="btn-too... | 10 |
diff --git a/lib/editor/components/ScheduleExceptionForm.js b/lib/editor/components/ScheduleExceptionForm.js @@ -71,7 +71,10 @@ export default class ScheduleExceptionForm extends Component {
{EXEMPLARS.map(exemplar => {
return (
<option value={exemplar} key={exemplar}>
- {toSentenceCase(exemplar)}
+ {exemplar === 'SWAP... | 1 |
diff --git a/tests/e2e/plugins/site-verification-api-mock.php b/tests/e2e/plugins/site-verification-api-mock.php @@ -83,7 +83,7 @@ add_action( 'rest_api_init', function () {
return array(
'updated' => true,
- 'sites' => array( $data['siteURL'] ),
+ 'sites' => array(),
'identifier' => $data['siteURL'],
);
}
| 3 |
diff --git a/lib/determine-basal/determine-basal.js b/lib/determine-basal/determine-basal.js @@ -502,14 +502,15 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
} else {
rT.reason += " and waiting " + nextBolusMins + "m to microbolus again";
}
- //return tempBasalFunctions.setTempBasa... | 12 |
diff --git a/app/models/taxon_change.rb b/app/models/taxon_change.rb @@ -45,7 +45,10 @@ class TaxonChange < ActiveRecord::Base
scope :taxon, lambda{|taxon|
joins(TAXON_JOINS).
- where("t1.id = ? OR t2.id = ? OR t1.ancestry LIKE ? OR t1.ancestry LIKE ?", taxon, taxon, "#{taxon.ancestry}/%", "#{taxon.ancestry}/%" )
+ whe... | 1 |
diff --git a/minimap.js b/minimap.js @@ -21,6 +21,11 @@ const localMatrix = new THREE.Matrix4();
const cameraHeight = 50;
+// XXX TODO:
+// render at mose once per frame
+// do not render avatars
+// debug mirrors
+
const vertexShader = `\
varying vec2 vUv;
| 0 |
diff --git a/server/preprocessing/other-scripts/base.R b/server/preprocessing/other-scripts/base.R @@ -45,7 +45,7 @@ get_papers <- function(query, params, limit=100,
# add "textus:" to each word/phrase to enable verbatim search
# make sure it is added after any opening parentheses to enable queries such as "(a and b) o... | 9 |
diff --git a/monitoring/alerts.yaml b/monitoring/alerts.yaml @@ -61,8 +61,8 @@ groups:
# version listing operation latency is more than 300ms
- alert: ListingLatencyWarning
expr: |
- rate(http_request_duration_seconds_sum{namespace="${namespace}",service="${service}",action="getService|listBucket"}[1m])
- / rate(http_r... | 4 |
diff --git a/src/pages/strategy/strategy.html b/src/pages/strategy/strategy.html <script type="text/javascript" src="../../library/managers/ShipManager.js"></script>
<script type="text/javascript" src="../../library/managers/GoalTemplateManager.js"></script>
<!-- @nonbuildend -->
- <script type="text/javascript" src=".... | 1 |
diff --git a/lib/git-shell-out-strategy.js b/lib/git-shell-out-strategy.js @@ -416,10 +416,23 @@ export default class GitShellOutStrategy {
}
async getCommitMessageFromTemplate() {
- const templatePath = await this.getConfig('commit.template');
- if (!templatePath || ! await fileExists(templatePath)) return;
+ let temp... | 9 |
diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js @@ -217,9 +217,10 @@ class TileLayer extends Layer {
};
let containerExtent = map.getContainerExtent();
+ const extent2d = map._get2DExtent();
const maskExtent = this._getMask2DExtent();
if (maskExtent) {
- const intersection = maskExtent.intersecti... | 7 |
diff --git a/lib/plugins/account/src/test/account-backend-test.js b/lib/plugins/account/src/test/account-backend-test.js @@ -12,11 +12,16 @@ require.cache[require.resolve('abacus-request')].exports = {
const backendResponse = require('./backend-test-response.json');
-process.env.ACCOUNT_IGNORE_PATTERN = 'idz:';
+descri... | 7 |
diff --git a/src/lib/composite-layer.js b/src/lib/composite-layer.js @@ -7,7 +7,12 @@ export default class CompositeLayer extends Layer {
// Initialize layer is usually not needed for composite layers
// Provide empty definition to disable check for missing definition
- initializeLayer() {}
+ initializeLayer(updatePara... | 1 |
diff --git a/hooks/src/index.js b/hooks/src/index.js @@ -16,12 +16,12 @@ options.beforeRender = vnode => {
const hooks = component.__hooks;
- if (hooks) {
+ if (!hooks) return;
+
let effect;
while (effect = hooks._pendingEffects.shift()) {
invokeEffect(effect);
}
- }
};
@@ -34,7 +34,8 @@ options.afterDiff = vnode => {
... | 4 |
diff --git a/package.json b/package.json {
"name": "monaco-json",
- "version": "2.3.0",
+ "version": "2.2.0",
"description": "JSON plugin for the Monaco Editor",
"scripts": {
"compile": "mrmdir ./out && tsc -p ./src/tsconfig.json && tsc -p ./src/tsconfig.esm.json",
| 13 |
diff --git a/packages/shared/styles/components/SfIcon.scss b/packages/shared/styles/components/SfIcon.scss @@ -36,6 +36,8 @@ $sf-icon-colors : (
outline: none;
background-color: transparent;
box-sizing: border-box;
+ display: flex;
+
fill: var(--icon-color);
width: var(--icon-size);
height: var(--icon-size);
@@ -52,8 +... | 1 |
diff --git a/lib/node_modules/@stdlib/math/generics/random/shuffle/README.md b/lib/node_modules/@stdlib/math/generics/random/shuffle/README.md @@ -38,7 +38,7 @@ By default, the function returns a shallow copy. To mutate the input `array` (e.
var arr = [ 1, 2, 3 ];
var out = shuffle( arr, {
'copy': 'none'
-})
+});
var b... | 7 |
diff --git a/experimental/adaptive-dialog/docs/anatomy-and-runtime-behavior.md b/experimental/adaptive-dialog/docs/anatomy-and-runtime-behavior.md - [Inputs](#Inputs)
<p align="center">
- <img alt="Adaptive_dialog_anatomy" src="./assets/adaptive-dialog-anatomy.png" style="max-width:700px;" />
+ <img alt="Adaptive_dialo... | 1 |
diff --git a/src/ServerlessOffline.js b/src/ServerlessOffline.js @@ -11,14 +11,14 @@ import {
import pkg from '../package.json'
export default class ServerlessOffline {
- constructor(serverless, options) {
+ constructor(serverless, cliOptions) {
this._http = null
this._schedule = null
this._webSocket = null
this._lambd... | 10 |
diff --git a/test/geometry/LineStringSpec.js b/test/geometry/LineStringSpec.js @@ -414,7 +414,9 @@ describe('Geometry.LineString', function () {
layer = new maptalks.VectorLayer('id2');
var polyline = new maptalks.LineString([
map.getCenter(),
- map.getCenter().add(0.01, 0.01)
+ map.getCenter().add(0.01, 0.01),
+ map.g... | 3 |
diff --git a/packages/build/src/core/main.js b/packages/build/src/core/main.js @@ -41,13 +41,7 @@ const { doDryRun } = require('./dry')
* @returns {string[]} buildResult.logs - When using the `buffer` option, all log messages
*/
const build = async function(flags = {}) {
- const buildTimer = startTimer()
-
- const logs... | 5 |
diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js @@ -413,10 +413,10 @@ function formatReportLastMessageText(lastMessageText) {
* @returns {String}
*/
function getDefaultAvatar(login = '') {
- // There are 8 possible default avatars, so we choose which one this user has based
+ // There are 24 possible def... | 4 |
diff --git a/token-metadata/0xa19A40FbD7375431fAB013a4B08F00871B9a2791/metadata.json b/token-metadata/0xa19A40FbD7375431fAB013a4B08F00871B9a2791/metadata.json "symbol": "SWAGG",
"address": "0xa19A40FbD7375431fAB013a4B08F00871B9a2791",
"decimals": 4,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"... | 3 |
diff --git a/src/pages/guidelines/color/overview.mdx b/src/pages/guidelines/color/overview.mdx @@ -168,7 +168,7 @@ color.
| Theme | Primary background | Token | Hex value | |
| -------- | ----------------------- | ---------------- | --------- | ------------------------------------------: |
| White | Global Background L... | 12 |
diff --git a/src/article/converter/html/ArticleHTMLExporter.js b/src/article/converter/html/ArticleHTMLExporter.js @@ -22,4 +22,43 @@ export default class ArticleHTMLExporter extends HTMLExporter {
}
return super.annotatedText(path)
}
+
+ getDefaultBlockConverter () {
+ return defaultBlockConverter // eslint-disable-li... | 7 |
diff --git a/documentation/assertions/any/to-satisfy.md b/documentation/assertions/any/to-satisfy.md @@ -17,13 +17,16 @@ expect({ hey: { there: true } }, 'to exhaustively satisfy', {
});
```
-Regular expressions and `expect.it` expressions in the right-hand side object
-will be run against the corresponding values in t... | 2 |
diff --git a/src/pages/developers/tutorials.tsx b/src/pages/developers/tutorials.tsx @@ -266,6 +266,11 @@ const TutorialsPage = ({
[pageContext.locale]
)
+ const allTags = useMemo(
+ () => getSortedTutorialTagsForLang(filteredTutorialsByLang),
+ [filteredTutorialsByLang]
+ )
+
const intl = useIntl()
const [isModalOpen,... | 13 |
diff --git a/packages/next/next-server/server/config.ts b/packages/next/next-server/server/config.ts @@ -97,7 +97,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
`The 'public' directory is reserved in Next.js and can not be set as the 'distDir'. https://err.sh/zeit/next.js/can-not-output-to-public`
)... | 7 |
diff --git a/resources/functions/media/mpris.js b/resources/functions/media/mpris.js @@ -76,7 +76,7 @@ module.exports = {
const MetaData = {
'mpris:trackid': app.mpris.objectPath(`track/${attributes.playParams.id.replace(/[.]+/g, "")}`),
'mpris:length': attributes.durationInMillis * 1000, // In microseconds
- 'mpris:ar... | 7 |
diff --git a/priv/public/ui/app/mn_admin/mn_xdcr/reference_dialog/mn_xdcr_reference_dialog.html b/priv/public/ui/app/mn_admin/mn_xdcr/reference_dialog/mn_xdcr_reference_dialog.html </div>
<div class="formrow">
<textarea
- rows="3"
+ rows="4"
autocorrect="off"
autocompleterg="off"
spellcheck="false"
ng-show="xdcrReferen... | 7 |
diff --git a/contracts/Synthetix.sol b/contracts/Synthetix.sol @@ -482,8 +482,8 @@ contract Synthetix is ExternStateToken {
/**
* @notice Function that allows synth contract to delegate sending fee to the fee Pool.
- * @dev Only the synth contract can call this function
- * @param from The address to
+ * @dev Only the ... | 3 |
diff --git a/src/components/Backtester/style.scss b/src/components/Backtester/style.scss margin-bottom: 10px;
.hfui-backtester_row {
- margin-bottom: 5px !important;
+ margin-bottom: spacing(0.25) !important;
}
.hfui-dropdown__button, .react-datepicker__input-container input {
border: none;
}
- .input-label {
- color: ... | 7 |
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml @@ -130,7 +130,7 @@ jobs:
- name: Build Android Release
env:
RELEASE_ANDROID_PASSPHRASE: ${{ secrets.RELEASE_ANDROID_PASSPHRASE }}
- ENVFILE: '.env.${{ env.ENV }}'
+ ENVFILE: '../.env.${{ env.ENV }}'
BUILD_NUMBER: ${{ github.run_number }}
run: |... | 3 |
diff --git a/src/architecture/network.js b/src/architecture/network.js @@ -132,6 +132,7 @@ function Network(input_size, output_size) {
// Activate nodes chronologically - first input, then hidden, then output
// activate input nodes
// TODO: fix, this should be activated according to nodes order
+
let input_node_index ... | 14 |
diff --git a/docker-compose.example.yml b/docker-compose.example.yml @@ -7,7 +7,7 @@ services:
- 1705:1705
- 1780:1780
volumes:
- - HOST_SNAPCAST_TEMP:/tmp
+ - /tmp/snapserver:/tmp
- ./docker/snapserver.conf:/etc/snapserver.conf
mopidy:
image: jaedb/iris
@@ -26,5 +26,5 @@ services:
#- ./IRIS_VERSION:/iris/IRIS_VERSION
... | 4 |
diff --git a/src/resources/basis.js b/src/resources/basis.js @@ -18,7 +18,7 @@ const getCompressionFormats = (device) => {
const prepareWorkerModules = (config, callback) => {
const getWorkerBlob = () => {
const code = '(' + BasisWorker.toString() + ')()\n\n';
- return new File([code], 'basis_worker.js', { type: 'appli... | 14 |
diff --git a/src/components/TableSelectCell.js b/src/components/TableSelectCell.js @@ -9,7 +9,7 @@ import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
const defaultSelectCellStyles = theme => ({
root: {
[theme.breakpoints.down('sm')]: {
- display: 'none',
+ backgroundColor: theme.palette.background.... | 11 |
diff --git a/src/yy/YyObject.hx b/src/yy/YyObject.hx @@ -140,7 +140,7 @@ import yy.YyResourceRef;
if (ev != null) {
// OK!
}
- else if (YyTools.isV22(this)) {
+ else if (v22) {
ev = {
id: new YyGUID(),
modelName: "GMEvent",
@@ -162,7 +162,7 @@ import yy.YyResourceRef;
parent: { name: this.name, path: 'objects/${this.na... | 1 |
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md @@ -312,3 +312,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [Jon Beniston](https://github.com/srcejon)
- [Ugnius Malukas](https://github.com/ugnelis)
- [Justin Peter](https://github.com/themagicnacho)
+- [Jefferson Chua](https://g... | 3 |
diff --git a/src/browser/provider/built-in/chrome/local-chrome.js b/src/browser/provider/built-in/chrome/local-chrome.js +import OS from 'os-family';
+import Promise from 'pinkie';
import browserTools from 'testcafe-browser-tools';
import killBrowserProcess from '../../utils/kill-browser-process';
+import delay from '.... | 0 |
diff --git a/data.js b/data.js @@ -4999,6 +4999,14 @@ module.exports = [
url: "https://github.com/kylepaulsen/NanoModal",
source: "https://raw.githubusercontent.com/kylepaulsen/NanoModal/master/nanomodal.js"
},
+ {
+ name: "pure-dialog",
+ github: "john-doherty/pure-dialog",
+ tags: ["modal", "dialog", "popup", "pop un... | 0 |
diff --git a/util.js b/util.js @@ -819,6 +819,16 @@ export const proxifyUrl = u => {
return u;
}
};
+export const createRelativeUrl = (u, baseUrl) => {
+ if (/^(?:[\.\/]|([a-z0-9]+):\/\/)/i.test(u)) {
+ return u;
+ } else {
+ if (!/([a-z0-9]+):\/\//i.test(baseUrl)) {
+ baseUrl = new URL(baseUrl, window.location.href).h... | 0 |
diff --git a/components/button/__docs__/storybook-stories.jsx b/components/button/__docs__/storybook-stories.jsx @@ -65,7 +65,7 @@ storiesOf(BUTTON, module)
))
.add('Icon Container Small', () =>
getIconButton({
- assistiveText: { icon: 'Icon border container small' },
+ assistiveText: { icon: 'Icon container small' },
... | 3 |
diff --git a/src/PanelTraits/Update.php b/src/PanelTraits/Update.php @@ -59,7 +59,7 @@ trait Update
$field['value'][] = $entry->{$subfield['name']};
}
} else {
- $field['value'] = $this->getEntryValue($entry, $field);
+ $field['value'] = $this->getModelAttributeValue($entry, $field);
}
}
}
@@ -79,18 +79,18 @@ trait Upd... | 10 |
diff --git a/spec/models/table_spec.rb b/spec/models/table_spec.rb @@ -224,20 +224,16 @@ describe Table do
}
}
- # To forget about internals of zooming
- ::Map.any_instance.stubs(:recalculate_zoom).returns(nil)
- Carto::Map.any_instance.stubs(:recalculate_zoom).returns(nil)
-
visualizations = CartoDB::Visualization::Co... | 1 |
diff --git a/scene-previewer.js b/scene-previewer.js @@ -304,9 +304,11 @@ class ScenePreviewer extends THREE.Object3D {
// pop old state
popPreviewContainerTransform();
popRenderSettings();
- }
+ } */
{
+ const popRenderSettings = this.#pushRenderSettings();
+
const worldResolution = new THREE.Vector2(2048, 2048);
cons... | 0 |
diff --git a/services/user-mover/export_user.rb b/services/user-mover/export_user.rb @@ -62,7 +62,7 @@ module CartoDB
private
def pg_dump_bin_path
- get_pg_dump_bin_path(user_pg_conn)
+ get_pg_dump_bin_path(@conn)
end
end
end
@@ -492,7 +492,7 @@ module CartoDB
redis_conn.quit
if @options[:data]
DumpJob.new(
- pg_conn,
... | 4 |
diff --git a/lib/recurly/elements.js b/lib/recurly/elements.js @@ -52,25 +52,27 @@ export default class Elements extends Emitter {
* @param {Element} element
*/
add (element) {
+ const { elements } = this;
+
if (!(element instanceof Element)) {
throw new Error(`Invalid element. Expected Element, got ${typeof element}`)... | 3 |
diff --git a/modules/Collections/Controller/RestApi.php b/modules/Collections/Controller/RestApi.php @@ -124,7 +124,7 @@ class RestApi extends \LimeExtra\Controller {
return $this->stop('{"error": "Collection not found"}', 412);
}
- if (!$id) {
+ if (!$id && !$this->param('filter')) {
return $this->stop('{"error": "Mis... | 11 |
diff --git a/src/content/runtime-apis/fetch-event.md b/src/content/runtime-apis/fetch-event.md ## Background
-The event type for HTTP requests dispatched to a Worker (i.e the `Object` passed through as `event` in [`addEventListener()`](/runtime-apis/add-event-listener).
+The event type for HTTP requests dispatched to a... | 7 |
diff --git a/cli/cli.js b/cli/cli.js @@ -91,46 +91,48 @@ Object.entries(allCommands).forEach(([key, opts]) => {
command
.allowUnknownOption()
.description(opts.desc)
- .action((first, second, third) => {
- let args;
+ .action((...everything) => {
let cmdOptions;
- let unknownArgs;
- logger.debug(`first command arg: ${t... | 7 |
diff --git a/packages/component-library/stories/HeatMap.story.js b/packages/component-library/stories/HeatMap.story.js /* eslint-disable import/no-extraneous-dependencies */
import React from "react";
import { storiesOf } from "@storybook/react";
-import { withKnobs, number, select } from "@storybook/addon-knobs";
+imp... | 2 |
diff --git a/game.js b/game.js @@ -25,6 +25,7 @@ import npcManager from './npc-manager.js';
import raycastManager from './raycast-manager.js';
import zTargeting from './z-targeting.js';
import Avatar from './avatars/avatars.js';
+import {makeId} from './util.js'
const localVector = new THREE.Vector3();
const localVecto... | 0 |
diff --git a/components/core/DataView.js b/components/core/DataView.js @@ -198,7 +198,6 @@ export default class DataView extends React.Component {
state = {
menu: null,
loading: {},
- startIndex: 0,
checked: {},
view: "grid",
viewLimit: 50,
@@ -251,8 +250,8 @@ export default class DataView extends React.Component {
htm... | 2 |
diff --git a/js/drawSamples.js b/js/drawSamples.js @@ -12,13 +12,13 @@ var labelFont = 12;
// rounding that up to the next half-order.
//
// XXX 1.2 is lifted from vgmixed, which uses this to set line height for
-// a given font. The 0.5 fudge is due to floating point noise, I think. Otherwise
+// a given font. The 0.1... | 7 |
diff --git a/components/core/FontFrame/Views/Glyphs.js b/components/core/FontFrame/Views/Glyphs.js @@ -14,22 +14,24 @@ const STYLES_GLYPHS_LETTER = css`
const STYLES_GLYPHS_GRID = css`
margin-top: -16px;
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
+ grid-template-columns: repeat(auto-f... | 3 |
diff --git a/src/algorithms/utils/createMitigationInterval.ts b/src/algorithms/utils/createMitigationInterval.ts @@ -14,7 +14,7 @@ export function suggestNextMitigationInterval(intervals: MitigationIntervals): M
id: uuidv4(),
name: `Intervention from ${tMinMoment.format('D MMM YYYY')}`,
timeRange,
- mitigationValue: 10... | 1 |
diff --git a/src/muncher/importMonster.js b/src/muncher/importMonster.js @@ -87,6 +87,17 @@ async function addNPCToCompendium(npc) {
}
if (!updateImages && existingNPC.data.token.img !== "icons/svg/mystery-man.svg") {
npc.token.img = existingNPC.data.token.img;
+ npc.token.scale = existingNPC.data.token.scale;
+ npc.to... | 7 |
diff --git a/assets/js/modules/analytics/dashboard/dashboard-widget.js b/assets/js/modules/analytics/dashboard/dashboard-widget.js @@ -183,7 +183,7 @@ class AnalyticsDashboardWidget extends Component {
<Layout
header
/* translators: %s: date range */
- title={ sprintf( __( 'Audience overview for the HELLO last %s', 'go... | 2 |
diff --git a/js/pdfViewer.js b/js/pdfViewer.js @@ -54,25 +54,3 @@ var PDFViewer = {
}
ipc.on('openPDF', PDFViewer.handlePDFOpenEvent)
-
-/*
-migrate legacy bookmarked PDFs to the new viewer URL
-TODO remove this in a future version
-*/
-
-var legacyPDFViewerURL = 'file://' + __dirname + '/pdfjs/web/viewer.html?url='
-
... | 2 |
diff --git a/packages/config/src/validate/helpers.js b/packages/config/src/validate/helpers.js @@ -6,9 +6,9 @@ const isBoolean = function(value) {
return typeof value === 'boolean'
}
-const validProperties = function(propNames) {
+const validProperties = function(propNames, legacyPropNames = propNames) {
return {
- che... | 11 |
diff --git a/src/journeys_utils.js b/src/journeys_utils.js @@ -303,11 +303,7 @@ journeys_utils.addIframeOuterCSS = function(cssIframeContainer) {
if (cssIframeContainer) {}
else if (journeys_utils.position === 'top') {
var calculatedBodyMargin = +bannerMarginNumber + bodyMarginTopNumber;
- document.body.style.marginTop... | 2 |
diff --git a/src/commands/DefaultRoles/AddDefaultRole.js b/src/commands/DefaultRoles/AddDefaultRole.js @@ -8,7 +8,7 @@ class AddDefaultRole extends Command {
this.usages = [
{ description: 'Add a new default role for persons joining the server.', parameters: ['role id'] },
];
- this.regex = new RegExp(`^${this.call}\\s... | 11 |
diff --git a/source/common/res/features/pacing/main.js b/source/common/res/features/pacing/main.js const showDays = ynabToolKit.options.pacing === '2';
const showIndicator = ynabToolKit.options.pacing === '3';
- var temperature = (pace > 1) ? 'cautious' : 'positive';
-
var deemphasized = masterCategory.get('isDebtPayme... | 7 |
diff --git a/activities/Planets.activity/js/activity.js b/activities/Planets.activity/js/activity.js -define(["sugar-web/activity/activity", 'sugar-web/datastore'], function (activity, datastore) {
+define(["sugar-web/activity/activity", "sugar-web/env", "sugar-web/datastore"], function (activity, env, datastore) {
// ... | 9 |
diff --git a/test/functional/test.js b/test/functional/test.js @@ -131,7 +131,7 @@ describe('Declarative Onboarding Functional Test Suite', function performFunctio
return common.dumpDeclaration(bigipAddress, auth);
})
.then((declarationStatus) => {
- reject(new Error(declarationStatus));
+ reject(new Error(JSON.stringi... | 7 |
diff --git a/source/guides/tooling/IDE-integration.md b/source/guides/tooling/IDE-integration.md @@ -15,7 +15,7 @@ The first time you click a file path, Cypress will prompt you to select which lo
- A specified application path
{% note warning %}
-Cypress attempts to find available file editors on your system and displa... | 7 |
diff --git a/lib/carto/tracking/events.rb b/lib/carto/tracking/events.rb @@ -172,24 +172,14 @@ module Carto
class ConnectionEvent < Event
include Carto::Tracking::Services::Hubspot
include Carto::Tracking::Services::Segment
- include Carto::Tracking::Services::PubSub
include Carto::Tracking::Validators::User
required_p... | 2 |
diff --git a/publish/deployed/mainnet/synths.json b/publish/deployed/mainnet/synths.json "desc": "Inverted Binance Coin",
"subclass": "PurgeableSynth",
"inverted": {
- "entryPoint": 12.57,
- "upperLimit": 18.86,
- "lowerLimit": 6.29
+ "entryPoint": 22.258,
+ "upperLimit": 33.387,
+ "lowerLimit": 11.129
}
},
{
"desc": "... | 3 |
diff --git a/userscript.user.js b/userscript.user.js @@ -99830,7 +99830,9 @@ var $$IMU_EXPORT$$;
var modified_date = null;
- var newobj_ext = null;
+ var contenttype_ext = null;
+ var orig_filename = null;
+ var wanted_ext = null;
if (respdata) {
try {
var headers = parse_headers(respdata.responseHeaders);
@@ -99867,21... | 11 |
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -2144,6 +2144,95 @@ class Avatar {
}
this.lastBackwardFactor = mirrorFactor;
+ const _updateSound = () => {
+ if (idleWalkFactor > 0.7 && !this.jumpState) {
+ const isRunning = walkRunFactor > 0.5;
+ const isCrouching = crouchFactor > 0.5;
+ const animationAngles ... | 0 |
diff --git a/src/technologies/a.json b/src/technologies/a.json "icon": "aws.svg",
"implies": "Amazon Web Services",
"headers": {
- "x-amzn-waf-action": ""
+ "x-amzn-waf-action": "^captcha$"
},
+ "scriptSrc": "captcha\\.awswaf\\.com/",
"saas": true,
"pricing": [
"recurring",
| 7 |
diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php @@ -234,7 +234,7 @@ class Theme {
public static function favicon($file='favicon.png', $typeIcon='image/png')
{
- return '<link rel="shortcut icon" href="'.DOMAIN_THEME.$file.'" type="'.$typeIcon.'">'.PHP_EOL;
+ return '<link rel="icon" h... | 2 |
diff --git a/jenkins-build-pack-api/Jenkinsfile b/jenkins-build-pack-api/Jenkinsfile @@ -44,6 +44,7 @@ def Event_Status = [
@Field def configLoader
@Field def scmModule
@Field def serviceConfigdata
+@Field def utilModule
@Field def auth_token = ''
@Field def g_svc_admin_cred_ID = 'SVC_ADMIN'
@@ -57,7 +58,7 @@ node() {
... | 4 |
diff --git a/src/upgrade/platform_upgrade.js b/src/upgrade/platform_upgrade.js @@ -224,6 +224,25 @@ async function platform_upgrade_2_8_0() {
await exec('systemctl restart systemd-tmpfiles-clean.service');
}
+async function supervisor_tmp_deletion_rules() {
+ if (process.env.PLATFORM === 'docker') return;
+ dbg.log0('U... | 1 |
diff --git a/source/localisation/RelativeDate.js b/source/localisation/RelativeDate.js @@ -73,11 +73,14 @@ const formatDuration = Date.formatDuration = function ( durationInMS, approx ) {
approx - {Boolean} (optional) If true, only return a string for the
most significant part of the relative time (e.g. just "5
hours a... | 0 |
diff --git a/src/DevChatter.Bot.Core/Commands/GiveCommand.cs b/src/DevChatter.Bot.Core/Commands/GiveCommand.cs @@ -21,7 +21,7 @@ public GiveCommand(IRepository repository, IChatUserCollection chatUserCollectio
public override void Process(IChatClient chatClient, CommandReceivedEventArgs eventArgs)
{
string coinGiver = ... | 1 |
diff --git a/token-metadata/0xAFFCDd96531bCd66faED95FC61e443D08F79eFEf/metadata.json b/token-metadata/0xAFFCDd96531bCd66faED95FC61e443D08F79eFEf/metadata.json "symbol": "PMGT",
"address": "0xAFFCDd96531bCd66faED95FC61e443D08F79eFEf",
"decimals": 5,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
... | 3 |
diff --git a/lib/ui/components/common/MainControls.js b/lib/ui/components/common/MainControls.js @@ -15,6 +15,8 @@ const TeamSync = styled.div`
display: flex;
justify-content: center;
align-items: center;
+ color: #b5b5b5;
+ margin-right: 20px;
`;
const Action = styled.div`
@@ -42,11 +44,9 @@ const toggleMimic = () => ... | 7 |
diff --git a/src/components/postHtmlRenderer/postHtmlRenderer.tsx b/src/components/postHtmlRenderer/postHtmlRenderer.tsx @@ -162,6 +162,16 @@ export const PostHtmlRenderer = memo(
}
}
+ if (tnode.children.length === 1 && tnode.children[0].tagName === 'img') {
+ const maxImgWidth = getMaxImageWidth(tnode);
+ return <Aut... | 9 |
diff --git a/.storybook/storybook-data.js b/.storybook/storybook-data.js @@ -120,19 +120,6 @@ module.exports = [
},
},
},
- {
- id: 'dashboard--post-searcher',
- kind: 'Dashboard',
- name: 'Post Searcher',
- story: 'Post Searcher',
- parameters: {
- fileName: './stories/dashboard.stories.js',
- options: {
- hierarchyRo... | 2 |
diff --git a/tests/e2e/specs/modules/pagespeed-insights/activation.test.js b/tests/e2e/specs/modules/pagespeed-insights/activation.test.js @@ -8,7 +8,6 @@ import { visitAdminPage, activatePlugin } from '@wordpress/e2e-test-utils';
*/
import {
deactivateUtilityPlugins,
- pasteText,
resetSiteKit,
setSearchConsoleProperty... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.