code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/includes/Core/Authentication/Clients/OAuth_Client.php b/includes/Core/Authentication/Clients/OAuth_Client.php @@ -24,7 +24,6 @@ use Google\Site_Kit\Core\Storage\Options;
use Google\Site_Kit\Core\Storage\User_Options;
use Google\Site_Kit\Core\Util\Scopes;
use Google\Site_Kit_Dependencies\Google\Service\PeopleService as Google_Service_PeopleService;
-use WP_HTTP_Proxy;
/**
* Class for connecting to Google APIs via OAuth.
@@ -111,14 +110,6 @@ final class OAuth_Client {
*/
private $token;
- /**
- * WP_HTTP_Proxy instance.
- *
- * @since 1.2.0
- * @var WP_HTTP_Proxy
- */
- private $http_proxy;
-
/**
* Owner_ID instance.
*
@@ -139,7 +130,6 @@ final class OAuth_Client {
* @param Google_Proxy $google_proxy Optional. Google proxy instance. Default is a new instance.
* @param Profile $profile Optional. Profile instance. Default is a new instance.
* @param Token $token Optional. Token instance. Default is a new instance.
- * @param WP_HTTP_Proxy $http_proxy Optional. WP_HTTP_Proxy instance. Default is a new instance.
*/
public function __construct(
Context $context,
@@ -148,8 +138,7 @@ final class OAuth_Client {
Credentials $credentials = null,
Google_Proxy $google_proxy = null,
Profile $profile = null,
- Token $token = null,
- WP_HTTP_Proxy $http_proxy = null
+ Token $token = null
) {
$this->context = $context;
$this->options = $options ?: new Options( $this->context );
@@ -158,7 +147,6 @@ final class OAuth_Client {
$this->google_proxy = $google_proxy ?: new Google_Proxy( $this->context );
$this->profile = $profile ?: new Profile( $this->user_options );
$this->token = $token ?: new Token( $this->user_options );
- $this->http_proxy = $http_proxy ?: new WP_HTTP_Proxy();
$this->owner_id = new Owner_ID( $this->options );
}
| 2 |
diff --git a/docs/coding-standards/css.md b/docs/coding-standards/css.md @@ -81,7 +81,7 @@ Break elements and modifiers outside of blocks rather than nesting using a paren
Bad:
```
-.gv-c-breadcrumb {
+.govuk-c-breadcrumb {
...
&__item {
...
@@ -91,11 +91,11 @@ Bad:
Good:
```
-.gv-c-breadcrumb {
+.govuk-c-breadcrumb {
...
}
-.gv-c-breadcrumb__item {
+.govuk-c-breadcrumb__item {
...
}
```
@@ -235,7 +235,7 @@ a {
Bad:
```
-.gv-c-breadcrumb {
+.govuk-c-breadcrumb {
...
&__item {
...
@@ -245,11 +245,11 @@ Bad:
Good:
```
-.gv-c-breadcrumb {
+.govuk-c-breadcrumb {
...
}
-.gv-c-breadcrumb__item {
+.govuk-c-breadcrumb__item {
...
}
```
| 4 |
diff --git a/app/controllers/carto/api/tables_controller.rb b/app/controllers/carto/api/tables_controller.rb @@ -57,12 +57,13 @@ module Carto
end
def update
+ # TODO This endpoint is only used to geocode from editor, passing `latitude_column` and `longitude_column`
+ # TODO It also supports renames and all attributes assignement, but this is not called from our frontend
table = @user_table.service
warnings = []
# Perform name validations
# TODO move this to the model!
- # TODO consider removing this code. The entry point is only used to set lat/long columns
if params[:name]
new_name = params[:name].downcase
if new_name != table.name
| 7 |
diff --git a/reference/api/settings.md b/reference/api/settings.md @@ -4,7 +4,7 @@ sidebarDepth: 2
# Settings
-## Global settings
+## All settings
The `/settings` route allows you to customize search settings for the given index. It is possible to modify all of an index's settings at once using the [`update settings` endpoint](#update-settings), or modify each one individually using the child routes.
| 10 |
diff --git a/vis/js/streamgraph.js b/vis/js/streamgraph.js @@ -229,14 +229,18 @@ streamgraph.drawStreamgraph = function (streams, area, z) {
streamgraph.drawLabels = function (series, x, y, streamgraph_width, streamgraph_height, label_positions) {
let self = this;
-
let text = d3.select(".streamgraph-chart").selectAll("text.label")
.data(series.data())
.enter()
.append("text")
.attr("dy", "10")
.classed("label", true)
- .text(function (d) { return d.key })
+ .text(function (d) {
+ if(d.key === "") {
+ d.key = "NO_LABEL";
+ }
+ return d.key
+ })
.attr("transform", function (d) {
return self.initialPositionLabel(this, d, x, y, streamgraph_width, label_positions)
})
| 14 |
diff --git a/ext/abp-filter-parser-modified/abp-filter-parser.js b/ext/abp-filter-parser-modified/abp-filter-parser.js @@ -521,6 +521,7 @@ function parse (input, parserData, callback, options = {}) {
if (options.async === false) {
processChunk(0, filters.length)
+ parserData.initialized = true
} else {
/* parse filters in chunks to prevent the main process from freezing */
| 1 |
diff --git a/test-complete/nodejs-optic-read-file.js b/test-complete/nodejs-optic-read-file.js @@ -89,7 +89,15 @@ describe('Nodejs Optic read from file test', function(){
//console.log(output);
const outputStr = output.toString().trim().replace(/[\n\r]/g, '');
//console.log(outputStr);
- expect(outputStr).to.equal('<t:table xmlns:t="http://marklogic.com/table"><t:columns><t:column name="myPlayer.player_id" type="sem:iri"/><t:column name="myTeam.team_id" type="sem:iri"/><t:column name="myPlayer.player_age" type="xs:integer"/><t:column name="myPlayer.player_name" type="xs:string"/><t:column name="myPlayer.player_team" type="sem:iri"/><t:column name="myTeam.team_name" type="xs:string"/><t:column name="myTeam.team_city" type="xs:string"/></t:columns><t:rows><t:row><t:cell name="myPlayer.player_id">http://marklogic.com/other/bball/id#101</t:cell><t:cell name="myTeam.team_id">http://marklogic.com/mlb/team/id/003</t:cell><t:cell name="myPlayer.player_age">26</t:cell><t:cell name="myPlayer.player_name">Phil Green</t:cell><t:cell name="myPlayer.player_team">http://marklogic.com/mlb/team/id/003</t:cell><t:cell name="myTeam.team_name">Padres</t:cell><t:cell name="myTeam.team_city">San Diego</t:cell></t:row></t:rows></t:table>');
+ //expect(outputStr).to.equal('<t:table xmlns:t="http://marklogic.com/table"><t:columns><t:column name="myPlayer.player_id" type="sem:iri"/><t:column name="myTeam.team_id" type="sem:iri"/><t:column name="myPlayer.player_age" type="xs:integer"/><t:column name="myPlayer.player_name" type="xs:string"/><t:column name="myPlayer.player_team" type="sem:iri"/><t:column name="myTeam.team_name" type="xs:string"/><t:column name="myTeam.team_city" type="xs:string"/></t:columns><t:rows><t:row><t:cell name="myPlayer.player_id">http://marklogic.com/other/bball/id#101</t:cell><t:cell name="myTeam.team_id">http://marklogic.com/mlb/team/id/003</t:cell><t:cell name="myPlayer.player_age">26</t:cell><t:cell name="myPlayer.player_name">Phil Green</t:cell><t:cell name="myPlayer.player_team">http://marklogic.com/mlb/team/id/003</t:cell><t:cell name="myTeam.team_name">Padres</t:cell><t:cell name="myTeam.team_city">San Diego</t:cell></t:row></t:rows></t:table>');
+ expect(outputStr).to.contains('<t:columns><t:column name="myPlayer.player_id" type="sem:iri"/><t:column name="myTeam.team_id" type="sem:iri"/><t:column name="myPlayer.player_age" type="xs:integer"/><t:column name="myPlayer.player_name" type="xs:string"/><t:column name="myPlayer.player_team" type="sem:iri"/><t:column name="myTeam.team_name" type="xs:string"/><t:column name="myTeam.team_city" type="xs:string"/></t:columns>');
+ expect(outputStr).to.contains('<t:cell name="myPlayer.player_id">http://marklogic.com/other/bball/id#101</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myTeam.team_id">http://marklogic.com/mlb/team/id/003</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myPlayer.player_age">26</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myPlayer.player_name">Phil Green</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myPlayer.player_team">http://marklogic.com/mlb/team/id/003</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myTeam.team_name">Padres</t:cell>');
+ expect(outputStr).to.contains('<t:cell name="myTeam.team_city">San Diego</t:cell>');
done();
}, done);
});
@@ -115,7 +123,7 @@ describe('Nodejs Optic read from file test', function(){
it('TEST 6 - read plan sparql from file', function(done){
db.rows.query(planFromSPARQL, { format: 'json', structure: 'array', columnTypes: 'rows'})
.then(function(output) {
- //console.log(JSON.stringify(output, null, 2));
+ console.log(JSON.stringify(output, null, 2));
expect(output.length).to.equal(7);
expect(output[0][0].name).to.equal('MySPARQL.industry');
expect(output[1][0].value).to.equal('Retail/Wholesale');
| 1 |
diff --git a/scenes/scenes.json b/scenes/scenes.json "tron-gothic-city.scn",
"tanabata-city.scn",
"sci-fi-neon.scn",
- "city.scn"
+ "city.scn",
+ "bridge-game.scn",
+ "club.scn",
+ "desert_mon.scn",
+ "greenhill.scn",
+ "nons.scn",
+ "planet.scn",
+ "range.scn",
+ "stage.scn",
+ "theatre_Piano.scn"
]
| 0 |
diff --git a/guide/popular-topics/miscellaneous-examples.md b/guide/popular-topics/miscellaneous-examples.md @@ -84,8 +84,10 @@ const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = '!';
+const escapeRegex = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+
client.on('message', message => {
- const prefixRegex = new RegExp(`^(<@!?${client.user.id}>|\\${prefix})\\s*`);
+ const prefixRegex = new RegExp(`^(<@!?${client.user.id}>|${escapeRegex(prefix)})\\s*`);
if (!prefixRegex.test(message.content)) return;
const [, matchedPrefix] = message.content.match(prefixRegex);
@@ -102,6 +104,10 @@ client.on('message', message => {
client.login('your-token-goes-here');
```
+::: tip
+The `escapeRegex` function is used to convert special characters into literal characters by escaping them, so that they don't terminate the pattern within the [Regular Expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)!
+:::
+
::: tip
If you aren't familiar with the syntax used on the `const [, matchedPrefix] = ...` line, that's called "array destructuring". Feel free to read more about it in the [ES6 syntax](/additional-info/es6-syntax.md#array-destructuring) guide!
:::
| 1 |
diff --git a/test/tests/blob.js b/test/tests/blob.js @@ -394,12 +394,12 @@ describe("Blob", function() {
.then(function(entry) {
return entry.getBlob();
})
- .then(function(bblob) {
- test.bblob = bblob;
- assert.equal(true, bblob.isBinary());
+ .then(function(binaryBlob) {
+ test.binaryBlob = binaryBlob;
+ assert.equal(true, binaryBlob.isBinary());
return Blob.filteredContent(
- test.bblob,
+ test.binaryBlob,
newFileName,
1
);
@@ -436,12 +436,12 @@ describe("Blob", function() {
.then(function(entry) {
return entry.getBlob();
})
- .then(function(bblob) {
- test.bblob = bblob;
- assert.equal(true, bblob.isBinary());
+ .then(function(binaryBlob) {
+ test.binaryBlob = binaryBlob;
+ assert.equal(true, binaryBlob.isBinary());
return Blob.filteredContent(
- test.bblob,
+ test.binaryBlob,
newFileName,
0
);
| 10 |
diff --git a/src/resources/views/crud/list.blade.php b/src/resources/views/crud/list.blade.php data-visible="{{var_export($column['visibleInTable'] ?? true)}}"
data-can-be-visible-in-table="true"
data-visible-in-modal="{{var_export($column['visibleInModal'] ?? true)}}"
- data-visible-in-export="{{var_export($column['visibleInExport'] ?? true)}}"
- data-force-export="{{var_export($column['visibleInExport'] ?? true)}}"
+ @if(isset($column['visibleInExport']))
+ @if($column['visibleInExport'] === false)
+ data-visible-in-export="false"
+ data-force-export="false"
+ @else
+ data-visible-in-export="true"
+ data-force-export="true"
+ @endif
+ @else
+ data-visible-in-export="true"
+ data-force-export="false"
+ @endif
@endif
>
{!! $column['label'] !!}
| 13 |
diff --git a/token-metadata/0x1BeEF31946fbbb40B877a72E4ae04a8D1A5Cee06/metadata.json b/token-metadata/0x1BeEF31946fbbb40B877a72E4ae04a8D1A5Cee06/metadata.json "symbol": "PAR",
"address": "0x1BeEF31946fbbb40B877a72E4ae04a8D1A5Cee06",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/generators/client/templates/vue/src/main/webapp/app/account/account.service.ts.ejs b/generators/client/templates/vue/src/main/webapp/app/account/account.service.ts.ejs @@ -20,7 +20,7 @@ export default class AccountService {
private cookie: any,
<%_ } _%>
<%_ if (websocket === 'spring-websocket') { _%>
- private private trackerService: TrackerService,
+ private trackerService: TrackerService,
<%_ } _%>
private router: VueRouter
) {
| 2 |
diff --git a/articles/sso/current/setup.md b/articles/sso/current/setup.md @@ -21,7 +21,7 @@ For information on SSO Integrations, check out the [Single Sign On Integrations]
Before enabling SSO on an [application](/applications), create and configure a Connection for each [Identity Provider](/identityproviders) you want to use.
-For Social Identity Providers, make sure the Connection is not using [developer keys](/connections/devkeys).
+For Social Identity Providers, make sure the Connection is not using [developer keys](/connections/social/devkeys).
## 2. Configure SSO
| 1 |
diff --git a/assets/src/edit-story/app/layout/index.js b/assets/src/edit-story/app/layout/index.js @@ -11,7 +11,7 @@ import Header from '../../components/header';
import Inspector from '../../components/inspector';
import Library from '../../components/library';
import Canvas from '../../components/canvas';
-import DropzoneProvider from '../../components/dropzone/dropzoneProvider';
+import DropZoneProvider from '../../components/dropzone/dropZoneProvider';
import { LIBRARY_WIDTH, INSPECTOR_WIDTH, HEADER_HEIGHT } from '../../constants';
const Editor = styled.div`
@@ -45,9 +45,9 @@ function Layout() {
<Library />
</Area>
<Area area="canv">
- <DropzoneProvider>
+ <DropZoneProvider>
<Canvas />
- </DropzoneProvider>
+ </DropZoneProvider>
</Area>
<Area area="insp">
<Inspector />
| 10 |
diff --git a/sirepo/package_data/static/js/srw.js b/sirepo/package_data/static/js/srw.js @@ -144,7 +144,6 @@ SIREPO.app.factory('srwService', function(activeSection, appState, panelState, $
return;
}
['simulation', 'sourceIntensityReport'].forEach(function(f) {
- panelState.showField(f, 'photonEnergy', activeSection.getActiveSection() == 'beamline');
var isAutomatic = appState.models[f].samplingMethod == 1;
panelState.showField(f, 'sampleFactor', isAutomatic);
panelState.showField(f, 'horizontalPointCount', ! isAutomatic);
| 1 |
diff --git a/public_app/public/index.html b/public_app/public/index.html <head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
- <meta name="viewport" content="width=720" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
| 13 |
diff --git a/grails-app/assets/javascripts/streama/templates/modal--manage-files.tpl.htm b/grails-app/assets/javascripts/streama/templates/modal--manage-files.tpl.htm <th>Type</th>
<th>Label</th>
<th>Language</th>
- <th style="width: 10px;"></th>
+ <th style="width: 68px;"></th>
</tr>
</thead>
<tbody>
<td>{{file.originalFilename}}</td>
<td>{{file.contentType}}</td>
<th>
- <input class="form-control" value="{{file.subtitleLabel}}" placeholder="Country" ng-change="subtitleLabel" ng-model="file.subtitleLabel"></input>
+ <input class="form-control input-xs" value="{{file.subtitleLabel}}" placeholder="Country" ng-change="subtitleLabel" ng-model="file.subtitleLabel"></input>
</th>
<th>
- <input class="form-control" value="{{file.subtitleSrcLang}}" placeholder="ISO-3166 Country Code" ng-change="subtitleSrcLang" ng-model="file.subtitleSrcLang"></input>
+ <input class="form-control input-xs" value="{{file.subtitleSrcLang}}" placeholder="ISO-3166 Country Code" ng-change="subtitleSrcLang" ng-model="file.subtitleSrcLang"></input>
</th>
<td style="padding: 6px;">
<button title="Delete file" class="btn btn-xs btn-danger" ng-click="removeFile(file)"><i class="ion-trash-a"></i></button>
| 7 |
diff --git a/app/controllers/carto/api/public/custom_visualizations_controller.rb b/app/controllers/carto/api/public/custom_visualizations_controller.rb @@ -50,23 +50,20 @@ class Carto::Api::Public::CustomVisualizationsController < Carto::Api::Public::A
end
if params[:data].present?
- return render_jsonp({ error: 'data parameter must be encoded in base64' }, 400) unless base64?(params[:data])
- return render_jsonp({ error: 'data parameter must be HTML' }, 400) unless html_param?(params[:data])
+ begin
+ decoded_data = Base64.strict_decode64(params[:data])
+ return render_jsonp({ error: 'data parameter must be HTML' }, 400) unless html_param?(decoded_data)
+ rescue ArgumentError
+ return render_jsonp({ error: 'data parameter must be encoded in base64' }, 400)
end
end
-
- def base64?(data)
- Base64.strict_decode64(data)
- true
- rescue ArgumentError
- false
end
def html_param?(data)
# FIXME this is a very naive implementantion. I'm trying to use
# Nokogiri to validate the HTML but it doesn't works as I want
# so
- Base64.strict_decode64(data).match(/\<html.*\>/).present?
+ data.match(/\<html.*\>/).present?
end
end
| 2 |
diff --git a/vr-ui.js b/vr-ui.js import * as THREE from 'https://static.xrpackage.org/xrpackage/three.module.js';
-import {XRPackage} from './run.js';
+/* import {XRPackage} from './run.js';
import {TextMesh} from './textmesh-standalone.esm.js'
const apiHost = 'https://ipfs.exokit.org/ipfs';
@@ -452,9 +452,185 @@ const makeRayMesh = () => {
return ray;
};
+const uiRenderer = (() => {
+ const loadPromise = Promise.all([
+ new Promise((accept, reject) => {
+ const iframe = document.createElement('iframe');
+ iframe.src = 'https://render.exokit.xyz/';
+ iframe.onload = () => {
+ accept(iframe);
+ };
+ iframe.onerror = err => {
+ reject(err);
+ };
+ iframe.setAttribute('frameborder', 0);
+ iframe.style.position = 'absolute';
+ iframe.style.width = `${uiSize}px`;
+ iframe.style.height = `${uiSize}px`;
+ iframe.style.top = '-4096px';
+ iframe.style.left = '-4096px';
+ document.body.appendChild(iframe);
+ }),
+ fetch('interface-world.html')
+ .then(res => res.text()),
+ ]);
+
+ let renderIds = 0;
+ return {
+ async render(searchResults, inventory, channels, selectedTab, rtcConnected, landConnected) {
+ const [iframe, interfaceHtml] = await loadPromise;
+
+ if (renderIds > 0) {
+ iframe.contentWindow.postMessage({
+ method: 'cancel',
+ id: renderIds,
+ });
+ }
+
+ const start = Date.now();
+ const mc = new MessageChannel();
+ const templateData = {
+ width: uiSize,
+ height: uiSize,
+ zoom: 5,
+ };
+ iframe.contentWindow.postMessage({
+ method: 'render',
+ id: ++renderIds,
+ htmlString: interfaceHtml,
+ templateData,
+ width: uiSize,
+ height: uiSize,
+ port: mc.port2,
+ }, '*', [mc.port2]);
+ const result = await new Promise((accept, reject) => {
+ mc.port1.onmessage = e => {
+ const {data} = e;
+ const {error, result} = data;
+
+ if (result) {
+ console.log('time taken', Date.now() - start);
+
+ accept(result);
+ } else {
+ reject(error);
+ }
+ };
+ });
+ return result;
+ },
+ };
+})(); */
+const makeUiMesh = () => {
+ const geometry = new THREE.PlaneBufferGeometry(0.2, 0.2)
+ .applyMatrix4(new THREE.Matrix4().makeTranslation(0, uiWorldSize/2, 0));
+ const canvas = document.createElement('canvas');
+ canvas.width = uiSize;
+ canvas.height = uiSize;
+ const ctx = canvas.getContext('2d');
+ const imageData = ctx.createImageData(uiSize, uiSize);
+ const texture = new THREE.Texture(
+ canvas,
+ THREE.UVMapping,
+ THREE.ClampToEdgeWrapping,
+ THREE.ClampToEdgeWrapping,
+ THREE.LinearFilter,
+ THREE.LinearMipMapLinearFilter,
+ THREE.RGBAFormat,
+ THREE.UnsignedByteType,
+ 16,
+ THREE.LinearEncoding
+ );
+ const material = new THREE.MeshBasicMaterial({
+ map: texture,
+ side: THREE.DoubleSide,
+ });
+ const mesh = new THREE.Mesh(geometry, material);
+ mesh.visible = false;
+ mesh.frustumCulled = false;
+
+ const highlightMesh = (() => {
+ const geometry = new THREE.BoxBufferGeometry(1, 1, 0.01);
+ const material = new THREE.MeshBasicMaterial({
+ color: 0x42a5f5,
+ transparent: true,
+ opacity: 0.5,
+ });
+ const mesh = new THREE.Mesh(geometry, material);
+ mesh.frustumCulled = false;
+ mesh.visible = false;
+ return mesh;
+ })();
+ /* highlightMesh.position.x = -uiWorldSize/2 + (10 + 150/2)/uiSize*uiWorldSize;
+ highlightMesh.position.y = uiWorldSize - (60 + 150/2)/uiSize*uiWorldSize;
+ highlightMesh.scale.x = highlightMesh.scale.y = 150/uiSize*uiWorldSize; */
+ mesh.add(highlightMesh);
+
+ let anchors = [];
+ mesh.update = () => {
+ uiRenderer.render()
+ .then(result => {
+ imageData.data.set(result.data);
+ ctx.putImageData(imageData, 0, 0);
+ texture.needsUpdate = true;
+ mesh.visible = true;
+
+ anchors = result.anchors;
+ // console.log(anchors);
+ });
+ };
+ let hoveredAnchor = null;
+ mesh.intersect = uv => {
+ hoveredAnchor = null;
+ highlightMesh.visible = false;
+
+ if (uv) {
+ uv.y = 1 - uv.y;
+ uv.multiplyScalar(uiSize);
+
+ for (let i = 0; i < anchors.length; i++) {
+ const anchor = anchors[i];
+ const {top, bottom, left, right, width, height} = anchor;
+ if (uv.x >= left && uv.x < right && uv.y >= top && uv.y < bottom) {
+ hoveredAnchor = anchor;
+
+ highlightMesh.position.x = -uiWorldSize/2 + (left + width/2)/uiSize*uiWorldSize;
+ highlightMesh.position.y = uiWorldSize - (top + height/2)/uiSize*uiWorldSize;
+ highlightMesh.scale.x = width/uiSize*uiWorldSize;
+ highlightMesh.scale.y = height/uiSize*uiWorldSize;
+ highlightMesh.visible = true;
+ break;
+ }
+ }
+ }
+ };
+ mesh.click = () => {
+ if (hoveredAnchor) {
+ const {id} = hoveredAnchor;
+ if (/^(?:tool-|color-)/.test(id)) {
+ interfaceDocument.getElementById(id).click();
+ } else {
+ switch (id) {
+ default: {
+ console.warn('unknown anchor click', id);
+ break;
+ }
+ }
+ }
+ return true;
+ } else {
+ return false;
+ }
+ };
+ mesh.update();
+
+ return mesh;
+};
+
export {
- makeTextMesh,
+ makeUiMesh,
+ /* makeTextMesh,
makeWristMenu,
makeHighlightMesh,
- makeRayMesh,
-}
\ No newline at end of file
+ makeRayMesh, */
+};
\ No newline at end of file
| 0 |
diff --git a/test_apps/test_app/config/contracts.js b/test_apps/test_app/config/contracts.js @@ -6,11 +6,11 @@ module.exports = {
type: "ws"
},
dappConnection: [
- "$WEB3",
"ws://localhost:8546",
"http://localhost:8550",
"http://localhost:8545",
- "http://localhost:8550"
+ "http://localhost:8550",
+ "$WEB3"
],
gas: "auto",
contracts: {
| 1 |
diff --git a/resource/js/components/PageEditor/Editor.js b/resource/js/components/PageEditor/Editor.js @@ -141,33 +141,58 @@ export default class Editor extends React.Component {
* @returns {string[]} a list of shortname
*/
searchEmojiShortnames(term) {
+ const maxLength = 12;
+
var results = [];
var results2 = [];
var results3 = [];
+ var results4 = [];
+ // TODO performance tune
+ // when total length of all results is less than `maxLength`
for (let unicode in emojiStrategy) {
const data = emojiStrategy[unicode];
- if (data.shortname.indexOf(term) > -1) {
+
+ // prefix match to shortname
+ if (maxLength <= results.length) {
+ break;
+ }
+ else if (data.shortname.indexOf(`:${term}`) > -1) {
results.push(data.shortname);
+ continue;
}
- else {
- if((data.aliases != null) && (data.aliases.indexOf(term) > -1)) {
+ // partial match to shortname
+ if (maxLength <= results.length + results2.length) {
+ continue;
+ }
+ else if (data.shortname.indexOf(term) > -1) {
results2.push(data.shortname);
+ continue;
}
- else if ((data.keywords != null) && (data.keywords.indexOf(term) > -1)) {
+ // partial match to aliases
+ if (maxLength <= results.length + results2.length + results.length) {
+ continue;
+ }
+ else if ((data.aliases != null) && (data.aliases.indexOf(term) > -1)) {
results3.push(data.shortname);
+ continue;
+ }
+ // partial match to keywords
+ if (maxLength <= results.length + results2.length + results.length + results4.length) {
+ continue;
}
+ else if ((data.keywords != null) && (data.keywords.indexOf(term) > -1)) {
+ results4.push(data.shortname);
}
};
if (term.length >= 3) {
results.sort(function(a,b) { return (a.length > b.length); });
results2.sort(function(a,b) { return (a.length > b.length); });
- results3.sort();
+ results3.sort(function(a,b) { return (a.length > b.length); });
+ results4.sort();
}
- var newResults = results.concat(results2).concat(results3);
-
- // limit 10
- newResults = newResults.slice(0, 10);
+ var newResults = results.concat(results2).concat(results3).concat(results4);
+ newResults = newResults.slice(0, maxLength);
return newResults;
}
| 7 |
diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md @@ -104,8 +104,8 @@ Parameter is the text of label, and return value is the color. See the following
```js
textStyle: {
- color: function (value, index, params) {
- return params.value >= 0 ? 'green' : 'red';
+ color: function (value, index) {
+ return value >= 0 ? 'green' : 'red';
}
}
```
@@ -438,7 +438,7 @@ Example:
formatter: '{value} kg'
// Use callback function; function parameters are axis index
-formatter: function (value, index, params) {
+formatter: function (value, index) {
// Formatted to be month/day; display year only in the first label
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
| 13 |
diff --git a/token-metadata/0x175Ab41E2CEDF3919B2e4426C19851223CF51046/metadata.json b/token-metadata/0x175Ab41E2CEDF3919B2e4426C19851223CF51046/metadata.json "symbol": "BACON",
"address": "0x175Ab41E2CEDF3919B2e4426C19851223CF51046",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/test/text/ttml_text_parser_unit.js b/test/text/ttml_text_parser_unit.js @@ -902,9 +902,8 @@ describe('TtmlTextParser', () => {
'<smpte:image imagetype="PNG" encoding="Base64" xml:id="img_0">' +
'base64EncodedImage</smpte:image>' +
'</metadata>' +
- '<body><div>' +
- '<p begin="01:02.05" end="01:02:03.200" ' +
- 'smpte:backgroundImage="#img_0" />' +
+ '<body><div smpte:backgroundImage="#img_0">' +
+ '<p begin="01:02.05" end="01:02:03.200"></p>' +
'</div></body></tt>',
{periodStart: 0, segmentStart: 0, segmentEnd: 0});
});
| 1 |
diff --git a/templates/master/default-settings.js b/templates/master/default-settings.js @@ -31,7 +31,7 @@ var default_settings = {
KENDRA_INDEXER_SCHEDULE: "rate(1 day)",//See https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html for valid expressions
KENDRA_WEB_PAGE_INDEX: "${DefaultKendraIndexId}",//The index to use for the web crawler, a custom data source will automatically be added to the specified index. The index will automatically be added to ALT_SEARCH_KENDRA_INDEXES
ERRORMESSAGE: "Unfortunately I encountered an error when searching for your answer. Please ask me again later.",
- EMPTYMESSAGE: "You stumped me! Sadly I don't know how to answer your question.",
+ EMPTYMESSAGE: "You stumped me! Sadly I do not know how to answer your question.",
DEFAULT_ALEXA_LAUNCH_MESSAGE: "Hello, Please ask a question",
DEFAULT_ALEXA_REPROMPT: "Please either answer the question, ask another question or say Goodbye to end the conversation.",
DEFAULT_ALEXA_STOP_MESSAGE: "Goodbye",
| 2 |
diff --git a/lib/plugins/entities.js b/lib/plugins/entities.js @@ -178,11 +178,20 @@ function inject(bot,{version}) {
entity.type = 'mob';
entity.uuid=packet.entityUUID;
var entityData = mobs[packet.type];
+ if(entityData == undefined) {
+ entity.mobType = "unknown";
+ entity.displayName = "unknown";
+ entity.entityType = packet.type;
+ entity.name = "unknown";
+ entity.kind = "unknown";
+ }
+ else {
entity.mobType = entityData.displayName;
entity.displayName = entityData.displayName;
entity.entityType = entityData.id;
entity.name = entityData.name;
entity.kind = entityData.category;
+ }
if(bot.majorVersion=="1.8") {
entity.position.set(packet.x/32, packet.y/32, packet.z/32);
}
| 9 |
diff --git a/docs/topics/lombok.md b/docs/topics/lombok.md @@ -48,7 +48,7 @@ plugins {
```kotlin
plugins {
- id ("org.jetbrains.kotlin.plugin.lombok") version "%kotlinVersion%"
+ kotlin("plugin.lombok") version "%kotlinVersion%"
id("io.freefair.lombok") version "5.3.0"
}
```
| 7 |
diff --git a/articles/tokens/access-token.md b/articles/tokens/access-token.md @@ -12,15 +12,19 @@ The Access Token, commonly referred to as `access_token` in code samples, is a c
Auth0 currently generates access tokens in two formats:
-* As opaque strings, when `${account.namespace}/userinfo` is the audience.
-* As a [JSON Web Token (JWT)](/jwt) when a custom API is specified as the audience.
+* As opaque strings, when `${account.namespace}/userinfo` is the **audience** in the [authorization request](/api/authentication#authorize-client).
+* As a [JSON Web Token (JWT)](/jwt), when a custom API is specified as the **audience** in the [authorization request](/api/authentication#authorize-client).
::: note
-The audience is a parameter which is set during [authorization](/api/authentication#authorize-client). It contains the unique identifier of the target API.
+The **audience** is a parameter set during [authorization](/api/authentication#authorize-client), and it contains the unique identifier of the target API. This is how you tell Auth0 for which API to issue an access token. If you do not want to access a custom API, then by setting the audience to `${account.namespace}/userinfo`, you can use the opaque access token to [retrieve the user's profile](/api/authentication#get-user-info).
:::
When a custom API audience is specified along with an `openid` scope, an access token is generated that will be valid for both the `/userinfo` endpoint and for the custom API.
+:::panel Use RS256 for multiple audiences
+If you specify more than one audience, then your custom API must use **RS256**. Tokens signed with HS256 can hold only one audience for security reasons. This applies also if you have set a **Default Audience** at your [API Authorization settings](${manage_url}/#/tenant).
+:::
+
Both the client and the API will also need to be using the same signing algorithm (RS256/HS256) in order to get and use a properly formed JWT access token.
The client signing algorithm can be specified in the [Dashboard](${manage_url}) under the client's settings -> Advanced Settings -> Oauth.
| 0 |
diff --git a/src/components/dashboard/SendQRSummary.js b/src/components/dashboard/SendQRSummary.js @@ -3,12 +3,12 @@ import React, { useState } from 'react'
import { View } from 'react-native'
import logger from '../../lib/logger/pino-logger'
-import goodWallet from '../../lib/wallet/GoodWallet'
+import { useWrappedGoodWallet } from '../../lib/wallet/useWrappedWallet'
import { BackButton, useScreenState } from '../appNavigation/stackNavigation'
import { Avatar, BigNumber, CustomButton, CustomDialog, Section, Wrapper } from '../common'
import TopBar from '../common/TopBar'
import { receiveStyles } from './styles'
-
+import GDStore from '../../lib/undux/GDStore'
export type AmountProps = {
screenProps: any,
navigation: any
@@ -21,28 +21,27 @@ const log = logger.child({ from: 'SendQRSummary' })
const SendQRSummary = (props: AmountProps) => {
const { screenProps } = props
const [screenState] = useScreenState(screenProps)
- const [dialogData, setDialogData] = useState()
- const [loading, setLoading] = useState(false)
+ const goodWallet = useWrappedGoodWallet()
+ const store = GDStore.useStore()
+ const { loading } = store.get('currentScreen')
const { amount, reason, to } = screenState
-
- const dismissDialog = () => {
- setDialogData({ visible: false })
- screenProps.goToParent()
- }
-
const sendGD = async () => {
- setLoading(true)
-
try {
const receipt = await goodWallet.sendAmount(to, amount)
log.debug({ receipt })
- setDialogData({ visible: true, title: 'SUCCESS!', message: 'The GD was sent successfully', dismissText: 'Yay!' })
+ store.set('currentScreen')({
+ dialogData: {
+ visible: true,
+ title: 'SUCCESS!',
+ message: 'The GD was sent successfully',
+ dismissText: 'Yay!',
+ onDismiss: screenProps.goToParent
+ }
+ })
} catch (e) {
- setDialogData({ visible: true, title: 'Error', message: e.message })
+ log.error(e)
}
-
- setLoading(false)
}
return (
@@ -64,13 +63,12 @@ const SendQRSummary = (props: AmountProps) => {
<BackButton mode="text" screenProps={screenProps} style={{ flex: 1 }}>
Cancel
</BackButton>
- <CustomButton mode="contained" onPress={sendGD} style={{ flex: 2 }} loading={loading} disabled={loading}>
+ <CustomButton mode="contained" onPress={sendGD} style={{ flex: 2 }} loading={loading}>
Confirm
</CustomButton>
</View>
</Section.Row>
</Section>
- <CustomDialog onDismiss={dismissDialog} {...dialogData} />
</Wrapper>
)
}
| 0 |
diff --git a/includes/Modules/PageSpeed_Insights.php b/includes/Modules/PageSpeed_Insights.php @@ -36,23 +36,6 @@ final class PageSpeed_Insights extends Module implements Module_With_Scopes {
*/
public function register() {}
- /**
- * Checks whether the module is connected.
- *
- * A module being connected means that all steps required as part of its activation are completed.
- *
- * @since 1.0.0
- *
- * @return bool True if module is connected, false otherwise.
- */
- public function is_connected() {
- return in_array(
- 'openid',
- $this->authentication->get_oauth_client()->get_granted_scopes(),
- true
- );
- }
-
/**
* Cleans up when the module is deactivated.
*
| 2 |
diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js @@ -486,7 +486,6 @@ export class GurpsActorSheet extends ActorSheet {
html.find('#qnotes').on('drop', this.handleQnoteDrop.bind(this))
-
html.find('#maneuver').on('change', ev => {
let target = $(ev.currentTarget)
this.actor.replaceManeuver(target.val())
@@ -1286,6 +1285,15 @@ export class GurpsActorSheet extends ActorSheet {
// Token Configuration
if (this.options.editable && isConfigurationAllowed(this.actor)) {
+ buttons = this._customHeaderButtons.concat(buttons)
+ }
+ return buttons
+ }
+
+ /**
+ * Override this to chsange the buttons appended tp the sactor sheet title bar.
+ */
+ get _customHeaderButtons() {
let b = [
{
label: isFull ? altsheet : 'Full View',
@@ -1311,9 +1319,7 @@ export class GurpsActorSheet extends ActorSheet {
onclick: ev => this._onOpenEditor(ev),
})
}
- buttons = b.concat(buttons)
- }
- return buttons
+ return b
}
async _onFileImport(event) {
| 11 |
diff --git a/src/utils/tribeBots.ts b/src/utils/tribeBots.ts @@ -3,6 +3,7 @@ import { getHost } from './tribes'
import fetch from 'node-fetch'
import { loadConfig } from './config'
import { genSignedTimestamp } from './tribes'
+import { sphinxLogger } from './logger'
const config = loadConfig()
@@ -17,10 +18,10 @@ export async function delete_bot({ uuid, owner_pubkey }) {
headers: { 'Content-Type': 'application/json' },
})
const j = await r.json()
- console.log('=> bot deleted:', j)
+ sphinxLogger.info(`=> bot deleted: ${j}`)
return true
} catch (e) {
- console.log('[tribes] unauthorized to delete bot', e)
+ sphinxLogger.error(`[tribes] unauthorized to delete bot ${e}`)
throw e
}
}
@@ -60,9 +61,9 @@ export async function declare_bot({
headers: { 'Content-Type': 'application/json' },
})
const j = await r.json()
- console.log('=> bot created:', j)
+ sphinxLogger.info(`=> bot created: ${j}`)
} catch (e) {
- console.log('[tribes] unauthorized to declare bot', e)
+ sphinxLogger.error(`[tribes] unauthorized to declare bot ${e}`)
throw e
}
}
| 3 |
diff --git a/src/proxy_configuration.js b/src/proxy_configuration.js @@ -255,7 +255,8 @@ export class ProxyConfiguration {
* All the HTTP requests going through the proxy with the same session identifier
* will use the same target proxy server (i.e. the same IP address).
* The identifier must not be longer than 50 characters and include only the following: `0-9`, `a-z`, `A-Z`, `"."`, `"_"` and `"~"`.
- * @return {string} represents the proxy URL.
+ * @return {string} A string with a proxy URL, including authentication credentials and port number.
+ * For example, `http://bob:[email protected]:8000`
*/
newUrl(sessionId) {
if (typeof sessionId === 'number') sessionId = `${sessionId}`;
| 7 |
diff --git a/src/widgets/Icon.scss b/src/widgets/Icon.scss @import "../styles/colors.scss";
+@font-face {
+ font-family: 'Material Icons';
+ font-style: normal;
+ font-weight: 400;
+ src: url('../fonts/MaterialIcons-Regular.eot'); /* For IE6-8 */
+ src: local('Material Icons'),
+ local('MaterialIcons-Regular'),
+ url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
+ url('../fonts/MaterialIcons-Regular.woff') format('woff'),
+ url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
+}
+
+.material-icons {
+ font-family: 'Material Icons';
+ font-weight: normal;
+ font-style: normal;
+ font-size: 24px; /* Preferred icon size */
+ display: inline-block;
+ line-height: 1;
+ text-transform: none;
+ letter-spacing: normal;
+ word-wrap: normal;
+ white-space: nowrap;
+ direction: ltr;
+
+ /* Support for all WebKit browsers. */
+ -webkit-font-smoothing: antialiased;
+ /* Support for Safari and Chrome. */
+ text-rendering: optimizeLegibility;
+
+ /* Support for Firefox. */
+ -moz-osx-font-smoothing: grayscale;
+
+ /* Support for IE. */
+ font-feature-settings: 'liga';
+}
+
+
.Icon {
vertical-align: middle;
color: #c2ccd3;
}
}
}
-
-@font-face {
- font-family: 'Material Icons';
- font-style: normal;
- font-weight: 400;
- src: url('../fonts/MaterialIcons-Regular.eot'); /* For IE6-8 */
- src: local('Material Icons'),
- local('MaterialIcons-Regular'),
- url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
- url('../fonts/MaterialIcons-Regular.woff') format('woff'),
- url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
-}
-
-.material-icons {
- font-family: 'Material Icons';
- font-weight: normal;
- font-style: normal;
- font-size: 24px; /* Preferred icon size */
- display: inline-block;
- line-height: 1;
- text-transform: none;
- letter-spacing: normal;
- word-wrap: normal;
- white-space: nowrap;
- direction: ltr;
-
- /* Support for all WebKit browsers. */
- -webkit-font-smoothing: antialiased;
- /* Support for Safari and Chrome. */
- text-rendering: optimizeLegibility;
-
- /* Support for Firefox. */
- -moz-osx-font-smoothing: grayscale;
-
- /* Support for IE. */
- font-feature-settings: 'liga';
-}
-
| 1 |
diff --git a/components/system/components/Markdown.js b/components/system/components/Markdown.js @@ -11,7 +11,7 @@ export const Markdown = ({ md, options }) => {
{
unified()
.use(parse)
- .use(linkifyRegex(/[@#](\w*[0-9a-zA-Z-_]+\w*[0-9a-zA-Z-_])/g)) // @user #tag
+ .use(linkifyRegex(/@(\w*[0-9a-zA-Z-_]+\w*[0-9a-zA-Z-_])/g)) // @user
.use(linkifyRegex(/^(https?):\/\/[^\s$.?#].[^\s]*$/gm)) // http(s) links
.use(remark2react, options)
.processSync(md).result
| 2 |
diff --git a/vm.image.js b/vm.image.js @@ -865,6 +865,7 @@ Object.subclass('Squeak.Image',
oopOffset = segmentWordArray.oop,
oopMap = {},
rawBits = {};
+ readLoop:
while (pos < data.byteLength) {
var nWords = 0,
classInt = 0,
@@ -872,6 +873,7 @@ Object.subclass('Squeak.Image',
switch (header & Squeak.HeaderTypeMask) {
case Squeak.HeaderTypeSizeAndClass:
nWords = header >>> 2;
+ if (pos > data.byteLength - 8) break readLoop; // some segments have extra zeroes
classInt = readWord();
header = readWord();
break;
| 9 |
diff --git a/includes/Core/Admin/Screen.php b/includes/Core/Admin/Screen.php @@ -208,27 +208,4 @@ final class Screen {
</div>
<?php
}
-
- /**
- * Verifies if it's required to detect and warn user to disable ad blocker in the current screen.
- *
- * Required on dashboard and settings page if module is inactive.
- * Required on adsense dashboard if module is active and not setup complete.
- *
- * @return bool True if ad blocker detection is required.
- */
- private function is_ad_blocker_detection_required() {
- $screens = array(
- 'googlesitekit-settings',
- 'googlesitekit-dashboard',
- 'googlesitekit-module-adsense',
- 'googlesitekit-splash',
- );
-
- if ( in_array( $this->slug, $screens, true ) ) {
- return true;
- }
-
- return false;
- }
}
| 2 |
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json "failed": "inject failed, see log for details",
"toolong": "Interval too large",
"invalid-expr": "Invalid JSONata expression: __error__"
- },
- "userValueButtons": {
- "close": "Close",
- "apply": "Keep Changes",
- "inject": "Inject"
}
},
"catch": {
| 2 |
diff --git a/userscript.user.js b/userscript.user.js @@ -50450,6 +50450,13 @@ var $$IMU_EXPORT$$;
return src.replace(/\/c\/+[a-z]+_([^/.]*\.[^/.]*)(?:[?#].*)?$/, "/c/$1");
}
+ if (domain === "m.atcdn.co.uk") {
+ // https://m.atcdn.co.uk/a/media/w816h612pf7f7f5/0ebc06e72cbf4f9c99c3707fa5526820.jpg
+ // https://m.atcdn.co.uk/a/media/w800h600/0ebc06e72cbf4f9c99c3707fa5526820.jpg
+ // https://m.atcdn.co.uk/a/media/0ebc06e72cbf4f9c99c3707fa5526820.jpg
+ return src.replace(/\/a\/media\/+(?:[wh][0-9]+|p[0-9a-f]{6}){1,}\/+/, "/a/media/");
+ }
+
if (domain_nowww === "you-anime.ru") {
// https://you-anime.ru/anime-images/posters/preview/6231.jpg
// https://you-anime.ru/anime-images/posters/6231.jpg
@@ -56564,7 +56571,43 @@ var $$IMU_EXPORT$$;
});
};
- query_gfycat(match[1], options.cb);
+ var query_gdn = function(id, cb) {
+ var cache_key = "gifdeliverynetwork:" + id;
+
+ api_cache.fetch(cache_key, cb, function(done) {
+ options.do_request({
+ url: "https://www.gifdeliverynetwork.com/" + id,
+ method: "GET",
+ headers: {
+ Referer: ""
+ },
+ onload: function(resp) {
+ if (resp.status !== 200) {
+ console_error(cache_key, resp);
+ return done(null, false);
+ }
+
+ try {
+ var match = resp.responseText.match(/<script type="application\/ld\+json">([[]{.*?}])<\/script>/);
+ if (match) {
+ var json = JSON_parse(match[1]);
+
+ for (var i = 0; i < json.length; i++) {
+ if (json[i].thumbnailUrl)
+ return done(json[i].thumbnailUrl[0], 24*60*60);
+ }
+ }
+ } catch (e) {
+ console_error(e);
+ }
+
+ return done(null, false);
+ }
+ });
+ });
+ };
+
+ query_gdn(match[1], options.cb);
return {
waiting: true
@@ -56572,10 +56615,7 @@ var $$IMU_EXPORT$$;
}
}
- if (domain === "thumbs.gfycat.com" ||
- domain === "thumbs1.redgifs.com" ||
- domain === "zippy.gfycat.com" ||
- domain === "giant.gfycat.com") {
+ if ((domain_nosub === "gfycat.com" || domain_nosub === "redgifs.com") && (/^(?:thumbs[0-9]*|zippy|giant)\./.test(domain))) {
// https://thumbs.gfycat.com/YellowTornCockatiel-size_restricted.gif
// https://thumbs.gfycat.com/YellowTornCockatiel-mobile.mp4
// https://zippy.gfycat.com/YellowTornCockatiel.mp4
| 7 |
diff --git a/scripts/release-web.js b/scripts/release-web.js @@ -65,7 +65,7 @@ function copyUxFiles() {
}
function copyLightning() {
- return exec("cp -r " + dir + "/../wpe-lightning/dist/lightning-web.js ./dist/" + info.dest + "/js/src/");
+ return exec("cp -r " + dir + "/js/lib/lightning-web.js ./dist/" + info.dest + "/js/src/");
}
function copyAppFiles() {
| 1 |
diff --git a/appjs/logicjavascript.js b/appjs/logicjavascript.js @@ -4652,7 +4652,10 @@ function convertgrey() {
for (var i = 1; i < input.length; i++)
x += parseInt(x[i - 1] ^ input[i]).toString();
-
+ if (input == "") {
+ x= "";
+ } else if(input.search(/^[10]+$/) == -1)
+ x= "Binary and grey code can only have 0's and 1's";
result.innerHTML = x;
}
| 1 |
diff --git a/src/setData/yearThree.js b/src/setData/yearThree.js @@ -244,7 +244,7 @@ export default ([
sections: [
{
name: "Weapons",
- season: 9,
+ season: 10,
items: [
3434944005 // Point of the Stag
]
| 5 |
diff --git a/articles/tokens/concepts/jwts.md b/articles/tokens/concepts/jwts.md @@ -45,7 +45,7 @@ The information contained within the JSON object can be verified and trusted bec
In general, JWTs can be signed using a secret (with the **HMAC** algorithm) or a public/private key pair using **RSA** or **ECDSA** (although Auth0 supports only HMAC and RSA). When tokens are signed using public/private key pairs, the signature also certifies that only the party holding the private key is the one that signed it.
-Before a received JWT is used, it should be [properly validated using its signature](/tokens/guides/id-tokens/validate-id-tokens#verify-the-signature). Note that a successfully validated token only means that the information contained within the token has not been modified by anyone else. This doesn't mean that others weren't able to see the content, which is stored in plain text. Because of this, you should never store sensitive information inside a JWT and should take other steps to ensure that JWTs are not intercepted, such as by sending JWTs only over HTTPS, following [best practices](/best-practices/token-best-practices), and using only secure and up-to-date libraries.
+Before a received JWT is used, it should be [properly validated using its signature](/tokens/guides/validate-jwts#check-the-signature). Note that a successfully validated token only means that the information contained within the token has not been modified by anyone else. This doesn't mean that others weren't able to see the content, which is stored in plain text. Because of this, you should never store sensitive information inside a JWT and should take other steps to ensure that JWTs are not intercepted, such as by sending JWTs only over HTTPS, following [best practices](/best-practices/token-best-practices), and using only secure and up-to-date libraries.
## Keep reading
| 1 |
diff --git a/packages/checkbox/README.md b/packages/checkbox/README.md Checkboxes provide a control to select from a list of non-exclusive options.
-Read more about when and how to use the Checkbox component [on the website](https://hig.autodesk.com/web/components/form-elements).
+Read more about when and how to use the Checkbox component [on the website](https://hig.autodesk.com/web/components/inputs-and-controls#checkboxes).
## Getting started
| 1 |
diff --git a/articles/user-profile/user-impersonation.md b/articles/user-profile/user-impersonation.md @@ -16,6 +16,10 @@ Auth0 provides a _Sign in As_ feature for user impersonation, and provides the f
- Restrictions on impersonation which allows you to reject an impersonated authentication transaction based on, for instance, corporate policies around privacy and sensitive data.
- Unlimited customization on who can impersonate who, when, depending on whatever context, using our [Rules](/rules) engine. In a Rule, you have access to `user.impersonated` (the impersonated login) and `user.impersonator` (the impersonating login) and you can write arbitrary Javascript to define how it works.
+::: panel-warning
+Any Rules that you've implemented will run when you impersonate a user, including any actions that update the user.
+:::
+
## Use the Dashboard
Navigate to the [Users](${manage_url}/#/users) page in the Management Dashboard and select the user you want to login as. Click on the __Sign in as User__ and select the client you want to log into using the dropdown menu.
| 0 |
diff --git a/docs/08-guides.md b/docs/08-guides.md @@ -159,6 +159,21 @@ The [Workbox CLI](https://developers.google.com/web/tools/workbox/modules/workbo
Remember that Workbox expects to be run every time you deploy, as a part of a production "build" process (similar to how Snowpack's [`--optimize`](#production-optimization) flag works). If you don't have one yet, create package.json [`"deploy"` and/or `"build"` scripts](https://michael-kuehnel.de/tooling/2018/03/22/helpers-and-tips-for-npm-run-scripts.html) to automate your production build process.
+### Server side rendering
+
+Snowpack dev can be configured to work with an existing server rendering environment. To ensure that snowpack dev can be proxied, set `HMR_WEBSOCKET_URL` to the snowpack dev server address:
+
+```
+<script>window.HMR_WEBSOCKET_URL = "ws://localhost:8080"</script>
+```
+
+Also include the scripts that are generated in the snowpack dev html:
+
+```
+<script type="module" src="http://localhost:8080/_dist_/index.js"></script>
+<script type="module" src="http://localhost:8080/__snowpack__/hmr.js"></script>
+```
+
### Leaving Snowpack
Snowpack is designed for zero lock-in. If you ever feel the need to add a traditional application bundler to your stack (for whatever reason!) you can do so in seconds.
| 0 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -117,6 +117,13 @@ What we need to do to release Uppy 1.0
- [ ] docs: improve on React docs https://uppy.io/docs/react/, add small example for each component maybe? Dashboard, DragDrop, ProgressBar? No need to make separate pages for all of them, just headings on the same page. Right now docs are confusing, because they focus on DashboardModal. Also problems with syntax highlight on https://uppy.io/docs/react/dashboard-modal/.
- [ ] docs: add note in docs or solve the .run() issue, see #756
+## 0.24.2
+
+Released: 2018-04-17.
+
+- dashboard: Fix showLinkToFileUploadResult option (@arturi / #763)
+- docs: Consistent shape for the getResponseData (responseText, response) (@arturi / #765)
+
## 0.24.1
Released: 2018-04-16.
| 3 |
diff --git a/assets/js/modules/adsense/components/dashboard/AdSensePerformanceWidget.js b/assets/js/modules/adsense/components/dashboard/AdSensePerformanceWidget.js @@ -30,6 +30,7 @@ import {
getTimeInSeconds,
readableLargeNumber,
changeToPercent,
+ numberFormat,
} from '../../../../util';
import { TYPE_MODULES } from '../../../../components/data';
import DataBlock from '../../../../components/data-block.js';
@@ -102,7 +103,7 @@ class AdSensePerformanceWidget extends Component {
className: 'googlesitekit-data-block--impression',
title: __( 'Page CTR', 'google-site-kit' ),
/* translators: %s: percentage value. */
- datapoint: sprintf( _x( ' %1$s%%', 'AdSense performance Page CTA percentage', 'google-site-kit' ), currentRangeData.totals[ 3 ] * 100 ),
+ datapoint: sprintf( _x( ' %1$s%%', 'AdSense performance Page CTA percentage', 'google-site-kit' ), numberFormat( currentRangeData.totals[ 3 ] * 100, { maximumFractionDigits: 2 } ) ),
change: ( ! isUndefined( prevRangeData.totals ) ) ? changeToPercent( prevRangeData.totals[ 3 ], currentRangeData.totals[ 3 ] ) : 0,
changeDataUnit: '%',
},
| 12 |
diff --git a/generators/needle/needle-client-webpack.js b/generators/needle/needle-client-webpack.js @@ -2,7 +2,7 @@ const needleClient = require('./needle-client-base');
module.exports = class extends needleClient {
addEntity(microserviceName) {
- const errorMessage = `${chalk.yellow(' Reference to ') + microserviceName} ${chalk.yellow('not added to menu.\n')}`;
+ const errorMessage = `${chalk.yellow(' Reference to ') + microserviceName} ${chalk.yellow('not added to menu.')}`;
const webpackDevPath = `${CLIENT_WEBPACK_DIR}/webpack.dev.js`;
const rewriteFileModel = this.generateFileModel(webpackDevPath,
'jhipster-needle-add-entity-to-webpack',
| 2 |
diff --git a/website/static/css/homepage/Feature.css b/website/static/css/homepage/Feature.css .Feature .CodeExample {
background-color: $dark;
+ height: 450px;
+ overflow-y: scroll;
}
@media only screen and (min-width: 736px) {
| 4 |
diff --git a/api/requests/process.js b/api/requests/process.js @@ -131,6 +131,7 @@ class processRequest {
}
async sendToDvr(profile) {
+ if (!this.request.id) this.request.id = this.request.requestId;
let filterMatch = await filter(this.request);
if (filterMatch) {
logger.log(
@@ -153,7 +154,7 @@ class processRequest {
console.log(r, profile.radarr[r]);
let active = profile.radarr[r];
if (active) {
- new Radarr(r).processRequest(this.request.requestId);
+ new Radarr(r).processRequest(this.request.id);
}
});
}
@@ -161,7 +162,7 @@ class processRequest {
Object.keys(profile.sonarr).map((s) => {
let active = profile.sonarr[s];
if (active) {
- new Sonarr(s).processRequest(this.request.requestId);
+ new Sonarr(s).processRequest(this.request.id);
}
});
}
| 1 |
diff --git a/packages/component-library/src/Sandbox/Sandbox.js b/packages/component-library/src/Sandbox/Sandbox.js @@ -47,7 +47,7 @@ const Sandbox = ({
styles,
onFoundationClick,
onSlideHover,
- onBaseMapClick,
+ onBaseMapHover,
tooltipInfo,
tooltipInfoVector,
allSlides,
@@ -84,10 +84,10 @@ const Sandbox = ({
x: info.point[0],
y: info.point[1]
};
- onBaseMapClick(selectedDatum, selectedIndex);
+ onBaseMapHover(selectedDatum, selectedIndex);
} else {
const selectedDatum = {};
- onBaseMapClick(selectedDatum, selectedIndex);
+ onBaseMapHover(selectedDatum, selectedIndex);
}
};
@@ -95,7 +95,7 @@ const Sandbox = ({
const selectedDatum = {
object: {}
};
- onBaseMapClick(selectedDatum);
+ onBaseMapHover(selectedDatum);
};
return (
@@ -210,7 +210,7 @@ Sandbox.propTypes = {
styles: string,
onFoundationClick: func,
onSlideHover: func,
- onBaseMapClick: func,
+ onBaseMapHover: func,
tooltipInfo: shape({
content: arrayOf(shape({})),
x: number,
| 10 |
diff --git a/packages/component-library/src/CivicStoryCard/CivicStoryFooter.js b/packages/component-library/src/CivicStoryCard/CivicStoryFooter.js @@ -44,34 +44,22 @@ export default class StoryFooter extends Component {
source: PropTypes.string
};
- constructor(props) {
- super(props);
- this.state = {
- copied: false
- };
- }
-
- setToFalse = () => this.setState({ copied: false });
-
handleCopy = () => {
const { slug } = this.props;
// NOTE: we need to make sure this will work on all browsers
copy(`${get(window, "location.origin", "")}/cards/${slug}`);
this.switchState(MS_TO_SWITCH_TEXT);
- this.setState({ copied: true });
};
switchState = ms => setTimeout(this.setToFalse, ms);
render() {
const { slug, source } = this.props;
- const { copied } = this.state;
- const shareTxt = copied ? "Copied!" : "Share"; // if copied, show Link copied, otherwise, show Share card
- const shareIcon = copied ? ICONS.check : ICONS.link;
const isEmbedded =
`${get(window, "location.origin", "")}/cards/${slug}/embed/` ===
get(window, "location.href", "");
const issue = `https://github.com/hackoregon/civic/issues/new?labels=type%3Astory-card&template=story-card-improve.md&title=[FEEDBACK] ${slug}`;
+ const fullView = `https://civicplatform.org/cards/${slug}`;
return (
<div css={actionsClass}>
@@ -96,10 +84,11 @@ export default class StoryFooter extends Component {
</CivicStoryLink>
<CivicStoryLink
additionalClassName={alignRight}
- action={this.handleCopy}
- icon={shareIcon}
+ route={isEmbedded ? undefined : `/cards/${slug}`}
+ link={isEmbedded ? fullView : undefined}
+ icon={ICONS.info}
>
- {shareTxt}
+ More
</CivicStoryLink>
</div>
</div>
| 14 |
diff --git a/src/components/TelInput.js b/src/components/TelInput.js @@ -19,18 +19,36 @@ export default class TelInput extends Component {
cursorPosition: PropTypes.number,
};
+ state = {
+ hasFocus: false,
+ }
+
componentDidUpdate() {
+ if (this.state.hasFocus) {
this.tel.setSelectionRange(
this.props.cursorPosition,
this.props.cursorPosition
);
}
+ }
refHandler = element => {
this.tel = element;
this.props.refCallback(element);
};
+ inputOnBlur = () => {
+ this.setState({ hasFocus: false });
+
+ if (this.props.handleOnBlur) {
+ this.props.handleOnBlur();
+ }
+ }
+
+ inputOnFocus = () => {
+ this.setState({ hasFocus: true });
+ }
+
render() {
return (
<input
@@ -46,7 +64,8 @@ export default class TelInput extends Component {
value={this.props.value}
placeholder={this.props.placeholder}
onChange={this.props.handleInputChange}
- onBlur={this.props.handleOnBlur}
+ onBlur={this.inputOnBlur}
+ onFocus={this.inputOnFocus}
autoFocus={this.props.autoFocus}
/>
);
| 3 |
diff --git a/src/framework/components/layout-group/component.js b/src/framework/components/layout-group/component.js @@ -147,6 +147,9 @@ pc.extend(pc, function () {
return;
}
+ var containerWidth = Math.max(container.calculatedWidth, 0);
+ var containerHeight = Math.max(container.calculatedHeight, 0);
+
var options = {
orientation: this._orientation,
reverseX: this._reverseX,
@@ -157,7 +160,7 @@ pc.extend(pc, function () {
widthFitting: this._widthFitting,
heightFitting: this._heightFitting,
wrap: this._wrap,
- containerSize: new pc.Vec2(container.calculatedWidth, container.calculatedHeight)
+ containerSize: new pc.Vec2(containerWidth, containerHeight)
};
// In order to prevent recursive reflow (i.e. whereby setting the size of
| 8 |
diff --git a/src/muncher/sceneEnhancer.js b/src/muncher/sceneEnhancer.js @@ -28,7 +28,7 @@ function getNotes(scene, bookCode) {
// removed un-needed userdata
const flags = page.flags.ddb;
if (flags?.userData) delete flags.userData;
- const label = flags.ddb.labelName ? flags.ddb.labelName : page.name;
+ const label = flags.labelName ? flags.labelName : page.name;
return {
index,
label,
@@ -175,7 +175,7 @@ export function collectSceneData(scene, bookCode) {
return data;
}
-function getCompendiumScenes(compendiumCollection, selectedId) {
+function getCompendiumScenes(compendiumCollection, selectedId = null, selectedName = null) {
let scenes = [];
const compendium = game.packs.find((pack) => pack.collection === compendiumCollection);
if (compendium) {
@@ -183,7 +183,7 @@ function getCompendiumScenes(compendiumCollection, selectedId) {
const option = {
_id: scene._id,
name: scene.name,
- selected: selectedId && selectedId == scene._id,
+ selected: (selectedId && selectedId == scene._id) || (selectedName && selectedName.trim().includes(scene.name)),
};
scenes.push(option);
});
@@ -214,18 +214,20 @@ export class SceneEnhancerExport extends Application {
this.scene = scene;
const sceneExportFlags = this.scene.flags.ddbimporter?.export;
+ const lastCompendium = localStorage.getItem("ddb-last-compendium");
+ const lastBook = localStorage.getItem("ddb-last-book");
this.description = sceneExportFlags?.description || "";
this.url = sceneExportFlags?.url || "";
- this.compendium = sceneExportFlags?.compendium;
- this.compendiumScene = sceneExportFlags?.scene;
- this.bookCode = this.scene.flags?.ddb?.bookCode.toLowerCase();
- this.compendiumScenes = this.compendium ? getCompendiumScenes(this.compendium, this.compendiumScene) : [];
+ this.compendium = sceneExportFlags?.compendium ?? lastCompendium;
+ this.compendiumSceneId = sceneExportFlags?.scene;
+ this.bookCode = this.scene.flags?.ddb?.bookCode.toLowerCase() ?? lastBook;
+ this.compendiumScenes = this.compendium ? getCompendiumScenes(this.compendium, this.compendiumSceneId, this.scene.name) : [];
- if (this.compendiumScene && this.compendiumScenes) this.sceneSet = true;
+ if (this.compendiumSceneId && this.compendiumScenes) this.sceneSet = true;
this.compendiums = game.packs
- .filter((pack) => pack.metadata?.entity === "Scene")
+ .filter((pack) => pack.metadata?.type === "Scene")
.map((pack) => {
if (this.compendium && this.compendium === pack.collection) pack.selected = true;
else pack.selected = false;
@@ -405,6 +407,7 @@ export class SceneEnhancerExport extends Application {
if (!sceneFlags.ddbimporter.export) sceneFlags.ddbimporter.export = {};
sceneFlags.ddb["bookCode"] = formData["select-book"];
+ localStorage.setItem("ddb-last-book", formData["select-book"]);
sceneFlags.ddbimporter.export['description'] = formData["description"];
sceneFlags.ddbimporter.export['actors'] = formData["export-actors"] == "on";
sceneFlags.ddbimporter.export['notes'] = formData["export-notes"] == "on";
@@ -417,6 +420,7 @@ export class SceneEnhancerExport extends Application {
sceneFlags.ddbimporter.export['url'] = formData["download-url"];
} else {
sceneFlags.ddbimporter.export['compendium'] = formData["select-compendium"];
+ localStorage.setItem("ddb-last-compendium", formData["select-compendium"]);
sceneFlags.ddbimporter.export['scene'] = formData["select-scene"];
}
| 7 |
diff --git a/stories/index.tsx b/stories/index.tsx @@ -481,6 +481,79 @@ storiesOf('Griddle main', module)
</div>
)
})
+ .add('with extra re-render', () => {
+ let data = fakeData;
+
+ class customComponent extends React.PureComponent<any, any> {
+ render() {
+ const { value, extra } = this.props;
+
+ console.log('rerender!');
+ return (
+ <span>{value} {extra && <em> {extra}</em>}</span>
+ );
+ }
+ }
+ let interval = null;
+
+ class UpdatingDataTable extends React.Component<any, any> {
+ constructor(props, context) {
+ super(props, context);
+
+ this.state = {
+ data: this.updateDataWithProgress(props.data, 0),
+ progressValue: 0,
+ };
+ }
+
+ updateDataWithProgress(data, progressValue) {
+ return data.map(item => ({
+ ...item,
+ progress: progressValue,
+ }));
+ }
+
+ componentDidMount() {
+ interval = setInterval(() => {
+ this.setState(state => {
+ const newProgressValue = state.progressValue + 1;
+ return {
+ data: this.updateDataWithProgress(state.data, newProgressValue),
+ progressValue: newProgressValue,
+ }
+ })
+ }, 5000)
+ }
+
+ componentWillUnmount() {
+ console.log('unmount!');
+ clearInterval(interval);
+ }
+
+ render() {
+ const { data } = this.state;
+
+ return (
+ <div>
+ <small><em>extra</em> from <code>custom(Heading)Component</code>; <strong>extra</strong> from <code>(TableHeading)Cell</code></small>
+ <Griddle data={data} plugins={[LocalPlugin]} >
+ <RowDefinition rowKey="name">
+ <ColumnDefinition id="name" order={2} extraData={{extra: 'extra'}}
+ customComponent={customComponent} />
+ <ColumnDefinition id="state" order={1} />
+ <ColumnDefinition id="progress" />
+ </RowDefinition>
+ </Griddle>
+ </div>
+ )
+ }
+ }
+
+
+ return (
+ <UpdatingDataTable data={fakeData} />
+ )
+ })
.add('with custom griddle key', () => {
return (
<div>
| 0 |
diff --git a/activities/Paint.activity/lib/sugar-web/graphics/journalchooser.js b/activities/Paint.activity/lib/sugar-web/graphics/journalchooser.js @@ -21,6 +21,8 @@ define(['picoModal','sugar-web/datastore','sugar-web/graphics/icon','mustache','
featureLocalJournal.placeholder = "$holderSearchJournal";
featureLocalJournal.icon = "lib/sugar-web/graphics/icons/actions/activity-journal.svg";
featureLocalJournal.beforeActivate = function() {
+ featureLocalJournal.isFavorite = false;
+ document.getElementById('favorite-button').style.backgroundImage = "url(lib/sugar-web/graphics/icons/emblems/favorite.svg)";
fillJournal.apply(null, featureLocalJournal.filters);
};
featureLocalJournal.beforeUnactivate = function() {
@@ -41,16 +43,19 @@ define(['picoModal','sugar-web/datastore','sugar-web/graphics/icon','mustache','
featureLocalJournal.onCancelSearch = function() {
fillJournal.apply(null, featureLocalJournal.filters);
};
- featureLocalJournal.isFavorite = false;
// Chooser feature to search in Abecedarium database
var featureAbecedarium = {};
- featureAbecedarium.id = "journal-button";
+ featureAbecedarium.id = "abecedarium-button";
featureAbecedarium.title = "$titleAbecedarium";
featureAbecedarium.placeholder = "$holderSearchAbecedarium";
featureAbecedarium.icon = "lib/sugar-web/graphics/icons/actions/activity-abecedarium.svg";
- featureAbecedarium.beforeActivate = function() {};
- featureAbecedarium.beforeUnactivate = function() {};
+ featureAbecedarium.beforeActivate = function() {
+ document.getElementById('favorite-button').style.visibility = "hidden";
+ };
+ featureAbecedarium.beforeUnactivate = function() {
+ document.getElementById('favorite-button').style.visibility = "visible";
+ };
featureAbecedarium.onFavorite = function() {};
featureAbecedarium.onSearch = function() {};
featureAbecedarium.onCancelSearch = function() {};
@@ -65,7 +70,7 @@ define(['picoModal','sugar-web/datastore','sugar-web/graphics/icon','mustache','
// chooser.show({activity: 'org.olpcfrance.PaintActivity'}, {mimetype: 'image/png'})
var modal;
var result;
- var features = [featureLocalJournal];
+ var features = [featureLocalJournal, featureAbecedarium];
var currentFeature = 0;
chooser.show = function(callback, filter1, orFilter2, orFilter3, orFilter4) {
result = null;
@@ -102,7 +107,28 @@ define(['picoModal','sugar-web/datastore','sugar-web/graphics/icon','mustache','
icon.colorize(document.getElementById(features[currentFeature].id), color, function() {});
var radios = [];
for (var i = 0 ; i < features.length ; i++) {
- radios.push(document.getElementById(features[i].id));
+ var radio = document.getElementById(features[i].id);
+ radios.push(radio);
+ radio.addEventListener("click", function(e) {
+ var index = -1;
+ for (var j = 0 ; j < features.length ; j++) {
+ if (features[j].id == e.srcElement.id) {
+ index = j;
+ break;
+ }
+ }
+ if (index != currentFeature) {
+ features[currentFeature].beforeUnactivate();
+ document.getElementById(features[currentFeature].id).style.backgroundImage = "url("+features[currentFeature].icon+")";
+ document.getElementById('journal-container').innerHTML = "";
+ document.getElementById('search-text').value = '';
+ currentFeature = index;
+ features[currentFeature].filters = [filter1, orFilter2, orFilter3, orFilter4];
+ features[currentFeature].beforeActivate();
+ icon.colorize(document.getElementById(features[currentFeature].id), color, function() {});
+ document.getElementById('search-text').placeholder=doLocalize(features[currentFeature].placeholder);
+ }
+ })
}
new radioButtonsGroup.RadioButtonsGroup(radios);
@@ -270,11 +296,11 @@ define(['picoModal','sugar-web/datastore','sugar-web/graphics/icon','mustache','
// Util: Localize content - currently means only localize in English
var l10n = {
titleJournal: 'Local journal',
- titleAbecedarium: 'Abecedarium database',
+ titleAbecedarium: 'Abecedarium',
titleClose: 'Cancel',
titleChoose: 'Choose an object',
holderSearchJournal: 'Search in Journal',
- holderSearchAbecedarium: 'Search in Abecedarium database',
+ holderSearchAbecedarium: 'Search in Abecedarium',
noMatchingEntries: 'No matching entries',
SecondsAgo: 'Seconds ago',
Ago: ' ago',
| 9 |
diff --git a/app/services/carto/user_metadata_export_service.rb b/app/services/carto/user_metadata_export_service.rb @@ -200,12 +200,12 @@ module Carto
def import_user_from_directory(path, import_visualizations: true)
# Import user
- user_file = Dir["#{path}/user_*.json"].first
+ user_file = Dir["#{path}/*/meta/user_*.json"].first
user = build_user_from_json_export(File.read(user_file))
save_imported_user(user)
- Carto::RedisExportService.new.restore_redis_from_json_export(File.read(Dir["#{path}/redis_user_*.json"].first))
+ Carto::RedisExportService.new.restore_redis_from_json_export(File.read(Dir["#{path}/*/meta/redis_user_*.json"].first))
if import_visualizations
import_user_visualizations_and_search_tweets_from_directory(user, path)
@@ -223,7 +223,7 @@ module Carto
end
def import_search_tweets_from_directory(path, user)
- user_file = Dir["#{path}/user_*.json"].first
+ user_file = Dir["#{path}/*/meta/user_*.json"].first
search_tweets = build_search_tweets_from_json_export(File.read(user_file))
search_tweets.each { |st| save_imported_search_tweet(st, user) }
@@ -231,7 +231,7 @@ module Carto
def import_user_visualizations_from_directory(user, type, path)
with_non_viewer_user(user) do
- Dir["#{path}/#{type}_*#{Carto::VisualizationExporter::EXPORT_EXTENSION}"].each do |fname|
+ Dir["#{path}/*/meta/#{type}_*#{Carto::VisualizationExporter::EXPORT_EXTENSION}"].each do |fname|
imported_vis = Carto::VisualizationsExportService2.new.build_visualization_from_json_export(File.read(fname))
Carto::VisualizationsExportPersistenceService.new.save_import(user, imported_vis, full_restore: true)
if Carto::VisualizationsExportService2.new.marked_as_vizjson2_from_json_export?(File.read(fname))
| 1 |
diff --git a/content/en/community/_index.html b/content/en/community/_index.html ----
+----
title: Community
menu:
main:
weight: 40
---
-
-{{< blocks/cover title="Community" height="min" >}}
-
-<p class="lead mt-5">Join the community.</p>
-
-{{< /blocks/cover >}}
-
-{{% blocks/lead %}}
-
-{{% /blocks/lead %}}
-
-
-{{< blocks/section >}}
-
-
-{{< /blocks/section >}}
-
-
-
-{{< blocks/section >}}
-
-<div class="col-12">
-<h1 class="text-center">This is the third Section</h1>
-</div>
-
-{{< /blocks/section >}}
| 4 |
diff --git a/src/core/operations/DNSOverHTTPS.mjs b/src/core/operations/DNSOverHTTPS.mjs @@ -51,7 +51,9 @@ class HTTPSOverDNS extends Operation {
"A",
"AAAA",
"TXT",
- "MX"
+ "MX",
+ "DNSKEY",
+ "NS"
]
},
{
@@ -82,6 +84,7 @@ class HTTPSOverDNS extends Operation {
" - An invalid Resolver URL\n" )
}
var params = {name:input, type:requestType, cd:DNSSEC};
+
url.search = new URLSearchParams(params)
| 0 |
diff --git a/packages/shared/getComponentNameFromType.js b/packages/shared/getComponentNameFromType.js @@ -53,7 +53,7 @@ export default function getComponentNameFromType(type: mixed): string | null {
if (__DEV__) {
if (typeof (type: any).tag === 'number') {
console.error(
- 'Received an unexpected object in getComponentName(). ' +
+ 'Received an unexpected object in getComponentNameFromType(). ' +
'This is likely a bug in React. Please file an issue.',
);
}
| 10 |
diff --git a/CodingChallenges/CC_093_DoublePendulum_p5.js/sketch.js b/CodingChallenges/CC_093_DoublePendulum_p5.js/sketch.js @@ -23,6 +23,8 @@ let buffer;
function setup() {
createCanvas(500, 300);
+ //Issue with wrong rendering on a retina Mac. See Issue: https://github.com/CodingTrain/website/issues/574
+ pixelDensity(1);
a1 = PI / 2;
a2 = PI / 2;
cx = width / 2;
| 1 |
diff --git a/articles/client-auth/v2/mobile-desktop.md b/articles/client-auth/v2/mobile-desktop.md @@ -163,3 +163,24 @@ Auth0's `id_token` is a [JSON Web Token (JWT)](/jwt) of type **Bearer** containi
If you would like additional information on JWTs, please visit our section on [JWT section](/jwt).
Once you've decoded the JWT, you can extract user information from the `id_token` payload. The JSON payload contains the user claims (attributes), as well as metadata.
+
+##### The `id_token` Payload
+
+Your `id_token` payload will look something like this:
+
+```json
+{
+ "name": "John Smith",
+ "email": "[email protected]",
+ "picture": "https://example.com/profile-pic.png",
+ "iss": "https://auth0user.auth0.com/",
+ "sub": "auth0|581...",
+ "aud": "xvt...",
+ "exp": 1478113129,
+ "iat": 1478077129
+}
+```
+
+::: panel-info Debugging a JWT
+The [JWT.io website](https://jwt.io) has a debugger that allows you to debug any JSON Web Token. This is useful if you want to quckly decode a JWT to see the information it contains.
+:::
| 0 |
diff --git a/packages/bitcore-lib-cash/lib/transaction/transaction.js b/packages/bitcore-lib-cash/lib/transaction/transaction.js @@ -559,6 +559,64 @@ Transaction.prototype.from = function(utxo, pubkeys, threshold, opts) {
return this;
};
+/**
+ * associateInputs - Update inputs with utxos, allowing you to specify value, and pubkey.
+ * Populating these inputs allows for them to be signed with .sign(privKeys)
+ *
+ * @param {Array<Object>} utxos
+ * @param {Array<string | PublicKey>} pubkeys
+ * @param {number} threshold
+ * @param {Object} opts
+ * @returns {Array<number>}
+ */
+Transaction.prototype.associateInputs = function(utxos, pubkeys, threshold, opts) {
+ let indexes = [];
+ for(let utxo of utxos) {
+ const index = this.inputs.findIndex(i => i.prevTxId.toString('hex') === utxo.txId && i.outputIndex === utxo.outputIndex);
+ indexes.push(index);
+ if(index >= 0) {
+ this.inputs[index] = this._getInputFrom(utxo, pubkeys, threshold, opts);
+ }
+ }
+ return indexes;
+};
+
+Transaction.prototype._selectInputType = function(utxo, pubkeys, threshold) {
+ var clazz;
+ utxo = new UnspentOutput(utxo);
+ if(pubkeys && threshold) {
+ if (utxo.script.isMultisigOut()) {
+ clazz = MultiSigInput;
+ } else if (utxo.script.isScriptHashOut() || utxo.script.isWitnessScriptHashOut()) {
+ clazz = MultiSigScriptHashInput;
+ }
+ } else if (utxo.script.isPublicKeyHashOut() || utxo.script.isWitnessPublicKeyHashOut() || utxo.script.isScriptHashOut()) {
+ clazz = PublicKeyHashInput;
+ } else if (utxo.script.isPublicKeyOut()) {
+ clazz = PublicKeyInput;
+ } else {
+ clazz = Input;
+ }
+ return clazz;
+};
+
+Transaction.prototype._getInputFrom = function(utxo, pubkeys, threshold, opts) {
+ utxo = new UnspentOutput(utxo);
+ const InputClass = this._selectInputType(utxo, pubkeys, threshold);
+ const input = {
+ output: new Output({
+ script: utxo.script,
+ satoshis: utxo.satoshis
+ }),
+ prevTxId: utxo.txId,
+ outputIndex: utxo.outputIndex,
+ sequenceNumber: utxo.sequenceNumber,
+ script: Script.empty()
+ };
+ let args = pubkeys && threshold ? [pubkeys, threshold, false, opts] : []
+ return new InputClass(input, ...args);
+};
+
Transaction.prototype._fromNonP2SH = function(utxo) {
var clazz;
utxo = new UnspentOutput(utxo);
| 11 |
diff --git a/lib/ContextModule.js b/lib/ContextModule.js @@ -103,6 +103,7 @@ class ContextModule extends Module {
if(err) return callback(err);
if(!dependencies) {
+ this.dependencies = [];
callback();
return;
}
@@ -249,14 +250,8 @@ webpackEmptyContext.id = ${JSON.stringify(id)};`;
let count = 160;
// if we dont have dependencies we stop here.
- if(!this.dependencies) {
- return count;
- }
-
- for(let i = 0; i < this.dependencies.length; i++) {
- count += 5 + this.dependencies[i].userRequest.length;
- }
- return count;
+ return this.dependencies
+ .reduce((count, dependency) => count + 5 + dependency.userRequest.length, count);
}
}
| 12 |
diff --git a/src/sdk/conference/client.js b/src/sdk/conference/client.js @@ -172,7 +172,7 @@ export const ConferenceClient = function(config, signalingImpl) {
}
}
}
- resolve(new ConferenceInfo(resp.id, Array.from(participants
+ resolve(new ConferenceInfo(resp.room.id, Array.from(participants
.values()), Array.from(remoteStreams.values()), me));
}, (e) => {
self.state = DISCONNECTED;
| 1 |
diff --git a/ReviewQueueHelper.user.js b/ReviewQueueHelper.user.js // @description Keyboard shortcuts, skips accepted questions and audits (to save review quota)
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 2.6.4
+// @version 2.6.5
//
// @include https://*stackoverflow.com/review*
// @include https://*serverfault.com/review*
@@ -752,13 +752,23 @@ async function waitForSOMU() {
// Filter options event
$('#review-history-tabs').on('click', 'a[data-filter]', function() {
- if($(this).hasClass('youarehere')) return false;
+
+ // Unset if set, and show all
+ if($(this).hasClass('youarehere')) {
+
+ $('.history-table tbody tr').show();
+
+ // Update active tab highlight class
+ $(this).removeClass('youarehere')
+ }
+ else {
// Filter posts based on selected filter
$('.history-table tbody tr').hide().filter(`[data-action-type="${this.dataset.filter}"]`).show();
// Update active tab highlight class
$(this).addClass('youarehere').siblings('[data-filter]').removeClass('youarehere');
+ }
return false;
});
@@ -1112,6 +1122,9 @@ pre {
.reviewable-post .question {
position: relative;
}
+.reviewable-post-stats table {
+ min-height: 150px;
+}
.suggested-edits-review-queue .review-bar .review-summary {
flex-basis: 45%;
| 11 |
diff --git a/packages/2018-neighborhood-development/src/components/ExploreUrbanCampsiteSweeps/index.js b/packages/2018-neighborhood-development/src/components/ExploreUrbanCampsiteSweeps/index.js @@ -17,12 +17,6 @@ const LAT = 45.5231;
const LONG = -122.6765;
const ZOOM = 9.5;
-const mapWrapper = css`
- width: 100%;
- overflow: hidden;
- display: block;
-`;
-
export class ExploreUrbanCampsiteSweeps extends React.Component {
componentDidMount() {
this.props.init();
@@ -55,7 +49,7 @@ export class ExploreUrbanCampsiteSweeps extends React.Component {
>
<Collapsable>
<Collapsable.Section>
- <div className={mapWrapper}>
+ <div>
<p>{contextualDesc}</p>
<BaseMap
initialLongitude={LONG}
| 2 |
diff --git a/src/contrib/highlight.js b/src/contrib/highlight.js @@ -17,13 +17,16 @@ export function highlight(element, pattern) {
if (node.nodeType === 3) {
var pos = node.data.search(regex);
if (pos >= 0 && node.data.length > 0) {
+ var match = node.data.match(regex);
var spannode = document.createElement('span');
spannode.className = 'highlight';
var middlebit = node.splitText(pos);
+ middlebit.splitText(match[0].length);
var middleclone = middlebit.cloneNode(true);
spannode.appendChild(middleclone);
middlebit.parentNode.replaceChild(spannode, middlebit);
skip = 1;
+
}
}
// Recurse element node, looking for child text nodes to highlight, unless element
| 13 |
diff --git a/userscript.user.js b/userscript.user.js @@ -1067,7 +1067,9 @@ var $$IMU_EXPORT$$;
category: "rules",
example_websites: [
"Private Flickr images"
- ]
+ ],
+ // Until GM_Cookie is implemented
+ extension_only: true
},
bigimage_blacklist: {
name: "Blacklist",
@@ -7898,6 +7900,7 @@ var $$IMU_EXPORT$$;
// http://www.femalefirst.co.uk/image-library/deluxe/d/despicable-me-3-character-poster-5.jpg (4050x6000)
// http://www.femalefirst.co.uk/image-library/deluxe/r/real-housewives-of-beverly-hills-season-8-camille-grammer-deluxe-image.jpg (2249x3000)
// http://www.femalefirst.co.uk/image-library/deluxe/w/world-of-warcraft-battle-for-azeroth-logo-deluxe.jpg (4500x2400)
+ // https://www.femalefirst.co.uk/image-library/deluxe/s/starsdance-1.jpg -- 404, returns blank document (0 bytes), but "original" etc. return a proper 404 html page
//return src.replace(/\/(?:[0-9]+x[0-9]+x)?x*([^/.]*\.[^/.]*)[^/]*$/, "/$1");
src = src.replace(/\/[0-9x]*([^/.]*\.[^/.]*)[^/]*$/, "/$1");
origsize = src.match(/\/([0-9]*)\/.\/[^/]*$/);
@@ -37572,6 +37575,12 @@ var $$IMU_EXPORT$$;
}
}
+ if (domain_nowww === "boutiquefonts.com") {
+ // https://boutiquefonts.com/images/thumbnails/170/170/detailed/2/Dance_Stars.PNG
+ // https://boutiquefonts.com/images/detailed/2/Dance_Stars.PNG
+ return src.replace(/\/images\/+thumbnails\/+[0-9]+\/+[0-9]+\/+/, "/images/");
+ }
+
@@ -38038,6 +38047,9 @@ var $$IMU_EXPORT$$;
// https://th.gossipblog.it/0Rz-WpcEpaLroC6K0lYFrW8FfLE=/fit-in/600x400/http://media.gossipblog.it/c/car/cara-delevingne-le-foto-piu-belle/th/cara-delevingne-foto-155752915-10.jpg
// https://media.gossipblog.it/c/car/cara-delevingne-le-foto-piu-belle/th/cara-delevingne-foto-155752915-10.jpg
domain === "th.gossipblog.it" ||
+ // https://th.cineblog.it/h75SqpcjC6zmBnzgVBp1jV-ULrs=/170x170/filters:quality(20)/media.cineblog.it/th/terms/cat_119.jpg
+ // http://media.cineblog.it/th/terms/cat_119.jpg
+ domain === "th.cineblog.it" ||
src.match(/:\/\/[^/]*\/thumbor\/[^/]*=\//) ||
// https://www.orlandosentinel.com/resizer/tREpzmUU7LJX1cbkAN-unm7wL0Y=/fit-in/800x600/top/filters:fill(black)/arc-anglerfish-arc2-prod-tronc.s3.amazonaws.com/public/XC6HBG2I4VHTJGGCOYVPLBGVSM.jpg
// http://arc-anglerfish-arc2-prod-tronc.s3.amazonaws.com/public/XC6HBG2I4VHTJGGCOYVPLBGVSM.jpg
| 12 |
diff --git a/package.json b/package.json "json"
],
"moduleNameMapper": {
- "^[./a-zA-Z0-9$_!-]+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|json)$": "<rootDir>/config/jest/FileStub.js",
+ "^[./a-zA-Z0-9$_!-]+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|json|md)$": "<rootDir>/config/jest/FileStub.js",
"^[./a-zA-Z0-9$_\\-\\!]+\\.css": "<rootDir>/config/jest/CSSStub.js"
},
"transform": {
| 11 |
diff --git a/lib/waterline/utils/system/datastore-builder.js b/lib/waterline/utils/system/datastore-builder.js @@ -42,6 +42,9 @@ module.exports = function DatastoreBuilder(adapters, datastoreConfigs) {
// Mix together the adapter's default config values along with the user
// defined values.
var datastoreConfig = _.extend({}, adapters[config.adapter].defaults, config, { version: API_VERSION });
+ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ // ^^TODO: remove `version`, since it's not being used anywhere.
+ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Build the datastore config
datastores[datastoreName] = {
| 0 |
diff --git a/bin/browsertimeWebPageReplay.js b/bin/browsertimeWebPageReplay.js @@ -11,7 +11,13 @@ const browsertimeConfig = require('../lib/plugins/browsertime/index').config;
async function testURL(engine, url) {
try {
await engine.start();
- await engine.run(url);
+ const result = await engine.run(url);
+ // check for errors
+ for (let errors of result.errors) {
+ if (errors.length > 0) {
+ process.exitCode = 1;
+ }
+ }
} finally {
engine.stop();
}
@@ -59,6 +65,7 @@ async function runBrowsertime() {
for (let url of urls) {
await testURL(engine, url);
}
+ process.exit();
}
runBrowsertime();
| 12 |
diff --git a/_data/conferences.yml b/_data/conferences.yml place: Brisbane, Australia
sub: RO
-- name: ICLR
- year: 2018
- id: iclr18
- link: http://iclr.cc/
- deadline: "2017-10-27 17:00:00"
- timezone: America/Los_Angeles
- date: April 30-May 3, 2018
- place: Vancouver Convention Center, Vancouver, Canada
- sub: ML
-
-
-
- name: AAMAS
year: 2018
id: aamas18
| 2 |
diff --git a/src/styles/themes/default.js b/src/styles/themes/default.js @@ -35,8 +35,8 @@ const darkTheme = {
componentBG: colors.greenAppBackground,
hoverComponentBG: colors.greenHighlightBackground,
activeComponentBG: colors.greenBorders,
- sidebar: colors.greenHighlightBackground,
- sidebarHover: colors.greenAppBackground,
+ sidebar: colors.greenAppBackground,
+ sidebarHover: colors.greenHighlightBackground,
heading: colors.white,
textLight: colors.white,
textDark: colors.greenAppBackground,
@@ -65,8 +65,8 @@ const oldTheme = {
activeComponentBG: colors.gray2,
appBG: colors.white,
heading: colors.dark,
- sidebar: colors.gray1,
- sidebarHover: colors.white,
+ sidebar: colors.white,
+ sidebarHover: colors.grey1,
border: colors.gray2,
borderFocus: colors.blue,
icon: colors.gray3,
| 13 |
diff --git a/articles/libraries/when-to-use-lock.md b/articles/libraries/when-to-use-lock.md @@ -5,7 +5,7 @@ description: When should you use Lock, Auth0's drop-in authentication widget, an
# Lock vs. a Custom UI
-When adding Auth0 to your web apps, the best solution is to use Auth0's [Hosted Login Page](/hosted-pages/login). Using the Hosted Login Page is an incredibly simple process, and prevents the dangers of cross-origin authentication. The Hosted Login Page uses the Lock Widget to allow your users to authenticate, by default, but also has templates for Lock Passwordless and for a custom UI built with Auth0.js SDK. You can customize the page in the [Hosted Pages Editor](${manage_url}/#/login_page), and use any of the following to implement your auth needs.
+When adding Auth0 to your web apps, the best solution is to use Auth0's [Hosted Login Page](/hosted-pages/login). Using the Hosted Login Page is an incredibly simple process, and prevents the dangers of cross-origin authentication. The Hosted Login Page uses the Lock Widget to allow your users to authenticate by default, but also has templates for Lock Passwordless and for a custom UI built with Auth0.js SDK. You can customize the page in the [Hosted Pages Editor](${manage_url}/#/login_page), and use any of the following to implement your authentication needs.
* Lock, Auth0's drop-in login and signup widget
* [Lock for Web](/libraries/lock)
| 14 |
diff --git a/includes/Core/Authentication/Setup.php b/includes/Core/Authentication/Setup.php @@ -158,7 +158,7 @@ class Setup {
wp_die(
sprintf(
/* translators: 1: Error message or error code. 2: Get Help link. */
- esc_html__( 'The request to the authentication proxy has failed with an error: %1$s. %2$s.', 'google-site-kit' ),
+ esc_html__( 'The request to the authentication proxy has failed with an error: %1$s %2$s.', 'google-site-kit' ),
esc_html( $error_message ),
wp_kses(
$oauth_proxy_failed_help_link,
| 2 |
diff --git a/src/encoded/static/components/file.js b/src/encoded/static/components/file.js @@ -276,6 +276,13 @@ const File = React.createClass({
</div>
: null}
+ {context.content_error_detail ?
+ <div data-test="contenterrordetail">
+ <dt>Content error detail</dt>
+ <dd>{context.content_error_detail}</dd>
+ </div>
+ : null}
+
{aliasList ?
<div data-test="aliases">
<dt>Aliases</dt>
| 0 |
diff --git a/includes/Core/User_Input/User_Input.php b/includes/Core/User_Input/User_Input.php @@ -229,18 +229,6 @@ class User_Input {
$this->site_specific_answers->set( $site_settings );
$this->user_specific_answers->set( $user_settings );
- $updated_settings = $this->get_answers();
- $is_empty = $this->are_settings_empty( $updated_settings );
-
- /**
- * Fires when the User Input answers are set.
- *
- * @since 1.90.0
- *
- * @param bool $is_empty If at least one of the answers has empty values.
- */
- do_action( 'googlesitekit_user_input_set', $is_empty );
-
- return $updated_settings;
+ return $this->get_answers();
}
}
| 2 |
diff --git a/ReadMe.md b/ReadMe.md @@ -245,6 +245,28 @@ dayjs().format(String);
dayjs().format(); // "2014-09-08T08:02:17-05:00" (ISO 8601, no fractional seconds)
dayjs().format("[YYYY] MM-DDTHH:mm:ssZ"); // "[2014] 09-08T08:02:17-05:00"
```
+List of all available formats:
+| Format | Output | Description |
+| ------ | ------ | ----------- |
+| YY | 18 | Two digit year |
+| YYYY | 2018 | Four digit year |
+| M | 1-12 | The month, beginning at 1 |
+| MM | 01-12 | The month, with preceeding 0
+| MMM | Jan-Dec | The abbreviated month name |
+| MMMM | January-December | The full month name |
+| D | 1-31 | The day of the month |
+| DD | 01-31 | The day of the month, preceeding 0 |
+| d | 0-6 | The day of the week, with Sunday as 0 |
+| dddd | Sunday-Saturday | The name of the day of the week |
+| H | 0-23 | The hour |
+| HH | 00-23 | The hour, with preceeding 0 |
+| m | 0-59 | The minute |
+| mm | 00-59 | The minute, with preceeding 0 |
+| s | 0-59 | The second |
+| ss | 00-59 | The second, with preceeding 0 |
+| Z | +5:00 | The offset from UTC |
+| ZZ | +0500 | The offset from UTC with preceeding 0 |
+
#### Difference
- return Number
| 0 |
diff --git a/vis/js/templates/contextfeatures/Timespan.jsx b/vis/js/templates/contextfeatures/Timespan.jsx import React from "react";
-const DataSource = ({ children }) => {
+const Timespan = ({ children }) => {
return (
// html template starts here
<span id="timespan" className="context_item">
@@ -10,4 +10,4 @@ const DataSource = ({ children }) => {
);
};
-export default DataSource;
+export default Timespan;
| 10 |
diff --git a/firebase.json b/firebase.json "rules": "firebase/firestore.rules",
"indexes": "firebase/firestore.indexes.json"
},
- "functions": {
- "predeploy": [
- "npm --prefix \"$RESOURCE_DIR\" run lint"
- ]
- },
"hosting": {
"public": "build",
"ignore": [
| 2 |
diff --git a/packages/cx/src/svg/Svg.js b/packages/cx/src/svg/Svg.js @@ -100,6 +100,7 @@ class SvgComponent extends VDOM.Component {
this.el = el
}}
className={data.classNames} style={style}
+ { ...instance.getJsxEventProps()}
>
{
size.width > 0 && size.height > 0 && (
| 0 |
diff --git a/src/parser/features/features.js b/src/parser/features/features.js @@ -206,7 +206,7 @@ export default function parseFeatures(ddb, character) {
ddb.character.race.racialTraits
.filter(
(trait) =>
- !["Ability Score Increase", "Age", "Alignment", "Size", "Speed", "Languages"].includes(trait.definition.name) &&
+ !trait.definition.hideInSheet &&
!ddb.character.actions.race.some((action) => action.name === trait.definition.name)
)
.forEach((feat) => {
@@ -226,6 +226,17 @@ export default function parseFeatures(ddb, character) {
// class and subclass traits
let classItems = parseClassFeatures(ddb, character);
+ // optional class features
+ ddb.classOptions
+ .filter((feat) => !ddb.character.actions.class.some((action) => action.name === feat.name))
+ .forEach((feat) => {
+ const source = utils.parseSource(feat);
+ let feats = parseFeature(feat, ddb, character, source, "feat");
+ feats.forEach((item) => {
+ items.push(item);
+ });
+ });
+
// now we loop over class features and add to list, removing any that match racial traits, e.g. Darkvision
classItems.forEach((item) => {
const existingFeature = getNameMatchedFeature(items, item);
@@ -238,7 +249,7 @@ export default function parseFeatures(ddb, character) {
}
});
- // finally add feats
+ // add feats
ddb.character.feats
.filter((feat) => !ddb.character.actions.feat.some((action) => action.name === feat.name))
.forEach((feat) => {
| 9 |
diff --git a/src/index.html b/src/index.html </div>
</div>
- <script src="https://unpkg.com/[email protected]/dist/react.js"></script>
- <script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script>
+ <script src="https://unpkg.com/[email protected]/dist/react.js"></script>
+ <script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script>
<script src="https://unpkg.com/prop-types/prop-types.min.js"></script>
<!--[if gte IE 9]><!-->
<script>hljs.initHighlightingOnLoad();</script>
| 3 |
diff --git a/src/app/services/NotificationService/polling.js b/src/app/services/NotificationService/polling.js @@ -213,7 +213,7 @@ export default Mixin.create( Evented, {
/**
* @param {TwitchStream[]} streams
- * @returns {Promise<TwitchStream[]>}
+ * @returns {Promise.<TwitchStream[]>}
*/
async _filterStreams( streams ) {
const filter = get( this, "settings.notification.filter" );
@@ -221,18 +221,18 @@ export default Mixin.create( Evented, {
// get a list of all streams and their channel's individual settings
const streamSettingsObjects = await Promise.all( streams.map( async stream => {
const channel = get( stream, "channel" );
- const { notification_enabled: settings } = await channel.getChannelSettings();
+ const { notification_enabled } = await channel.getChannelSettings();
- return { stream, settings };
+ return { stream, notification_enabled };
}) );
return streamSettingsObjects
- .filter( ({ settings }) => filter === true
+ .filter( ({ notification_enabled }) => filter === true
// include all, exclude disabled (blacklist)
- ? settings !== false
+ ? notification_enabled !== false
// exclude all, include enabled (whitelist)
- : settings === true
+ : notification_enabled === true
)
- .map( obj => obj.stream );
+ .map( ({ stream }) => stream );
}
});
| 7 |
diff --git a/packages/node_modules/@node-red/nodes/core/function/90-exec.html b/packages/node_modules/@node-red/nodes/core/function/90-exec.html <option value="true" data-i18n="exec.opt.spawn"></option>
</select>
</div>
- <div class="form-row">
- <label> </label>
- <input type="checkbox" id="node-input-oldrc" style="display:inline-block; width:auto; vertical-align:top;">
- <label for="node-input-oldrc" style="width:70%;"><span data-i18n="exec.oldrc"></span></label>
- </div>
<div class="form-row">
<label for="node-input-timer"><i class="fa fa-clock-o"></i> <span data-i18n="exec.label.timeout"></span></label>
<input type="text" id="node-input-timer" style="width:65px;" data-i18n="[placeholder]exec.label.timeoutplace">
| 2 |
diff --git a/articles/protocols/saml/index.html b/articles/protocols/saml/index.html @@ -113,4 +113,10 @@ title: SAML
</li>
</ul>
</li>
+ <li>
+ <i class="icon icon-budicon-715"></i><a href="/protocols/saml/idp-initiated-sso">IdP-Initiated SSO</a>
+ <p>
+ This article explains how to set up Identity Provider initiated Single Sign On.
+ </p>
+ </li>
</ul>
| 0 |
diff --git a/core/field_bound_variable.js b/core/field_bound_variable.js @@ -326,7 +326,6 @@ Blockly.FieldBoundVariable.prototype.isForConstructor = function() {
* @param {!Blockly.BoundVariableValue}
*/
Blockly.FieldBoundVariable.prototype.setBoundValue = function(value) {
- goog.asserts.assert(this.isNormalVariable_, 'not implemented');
if (this.forValue_) {
throw 'Can\'t set a bound value to a variable value.';
}
@@ -341,7 +340,6 @@ Blockly.FieldBoundVariable.prototype.setBoundValue = function(value) {
* @return {Blockly.BoundVariableValue}
*/
Blockly.FieldBoundVariable.prototype.getBoundValue = function() {
- goog.asserts.assert(this.isNormalVariable_, 'not implemented');
if (this.forValue_) {
throw 'Can\'t get a bound value from a variable value.';
}
| 2 |
diff --git a/lib/sketchPage.js b/lib/sketchPage.js m.restore();
}
- isSketchCmdMode = false;
-
- if (! this.isClick && isk())
+ if (! isSketchCmdMode && ! this.isClick && isk())
if (! sk().suppressSwipe)
if (sk().doSwipe(pieMenuIndex(x - this.xDown, y - this.yDown, 8)))
return;
sk().suppressSwipe = false;
+ isSketchCmdMode = false;
+
if (this.isClick && isHover() && isDef(sk().onClick)) {
m.save();
computeStandardViewInverse();
| 1 |
diff --git a/ghost/admin/app/styles/app-dark.css b/ghost/admin/app/styles/app-dark.css @@ -1305,6 +1305,10 @@ kbd {
background: linear-gradient(90deg, rgba(21,23,25,0) 0%, rgba(21,23,25,1) 100%);
}
+.gh-all-sources .gh-dashboard-list-body:before, .gh-all-sources .gh-dashboard-list-body:after {
+ background: transparent;
+}
+
.gh-dashboard-resource .gh-dashboard-list-item:hover {
background: transparent;
}
| 1 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -339,12 +339,15 @@ metaversefile.setApi({
throw new Error('useApp cannot be called outside of render()');
}
},
- useCamera() {
- return camera;
+ useRenderer() {
+ return getRenderer();
},
useScene() {
return scene;
},
+ useCamera() {
+ return camera;
+ },
usePostOrthographicScene() {
return postSceneOrthographic;
},
| 0 |
diff --git a/src/apps.json b/src/apps.json 19
],
"js": {
- "hljs.listLanguages": ""
+ "hljs.listLanguages": "",
+ "hljs.highlightBlock": ""
},
"icon": "Highlight.js.png",
"script": "/(?:([\\d.])+/)?highlight(?:\\.min)?\\.js\\;version:\\1",
| 7 |
diff --git a/src/encoded/audit/experiment.py b/src/encoded/audit/experiment.py @@ -770,7 +770,7 @@ def check_experiment_dnase_seq_standards(experiment,
if 'mapped' in metric and 'quality_metric_of' in metric:
alignment_file = metric['quality_metric_of'][0]
suffix = 'According to ENCODE standards, conventional ' + \
- 'DNase-seq profile, requires a minimum of 20 million uniquely mapped ' + \
+ 'DNase-seq profile requires a minimum of 20 million uniquely mapped ' + \
'reads to generate a reliable ' + \
'SPOT (Signal Portion of Tags) score. ' + \
'The recommended value is > 50 million. For deep, foot-printing depth ' + \
@@ -823,6 +823,8 @@ def check_experiment_dnase_seq_standards(experiment,
detail = "Signal Portion of Tags (SPOT) is a measure of enrichment, " + \
"analogous to the commonly used fraction of reads in peaks metric. " + \
"ENCODE processed hotspots files {} ".format(file_names_string) + \
+ "produced by {} ".format(pipelines[0]['title']) + \
+ "( {} ) ".format(pipelines[0]['@id']) + \
"have a SPOT score of {0:.2f}. ".format(metric["SPOT score"]) + \
"According to ENCODE standards, " + \
"SPOT score of 0.4 or higher is considered a product of high quality " + \
@@ -830,7 +832,7 @@ def check_experiment_dnase_seq_standards(experiment,
"Any sample with a SPOT score <0.3 should be targeted for replacement " + \
"with a higher quality sample, and a " + \
"SPOT score of 0.25 is considered minimally acceptable " + \
- "for rare and hard to find primary tissues. ( {} )".format(
+ "for rare and hard to find primary tissues. (See {} )".format(
link_to_standards)
if 0.3 <= metric["SPOT score"] < 0.4:
yield AuditFailure('low spot score', detail, level='WARNING')
@@ -861,10 +863,13 @@ def check_experiment_dnase_seq_standards(experiment,
'calculating the Pearson correlation between signal quantification ' + \
'of the replicates. ' + \
'ENCODE processed signal files {} '.format(file_names_string) + \
+ 'produced by {} '.format(pipelines[0]['title']) + \
+ '( {} ) '.format(pipelines[0]['@id']) + \
'have a Pearson correlation of {0:.2f}. '.format(metric['Pearson correlation']) + \
'According to ENCODE standards, in an {} '.format(experiment['replication_type']) + \
'assay a Pearson correlation value > {} '.format(threshold) + \
- 'is recommended.'
+ 'is recommended. (See {} )'.format(
+ link_to_standards)
if metric['Pearson correlation'] < threshold:
yield AuditFailure('insufficient replicate concordance',
| 0 |
diff --git a/docs/components/componentdoc.vue b/docs/components/componentdoc.vue <code v-code class="html">
<{{componentName}}
-
- <template v-for="prop in props_items">
- {{isConst(prop.default) ? '' : ':'}}{{prop.prop}}="{{prop.default}}"<br></template>
- <template v-for="event in events"> @{{event.event}}=""<br></template>
- ></code>
-
+ <template v-for="prop in props_items" v-if="prop.default">{{isConst(prop.default) ? '' : ':'}}{{prop.prop}}="{{prop.default}}"<br></template>>
+ </code>
<template v-if="props_items && props_items.length > 0">
<h4>Properties</h4>
<section>
| 7 |
diff --git a/src/formio.form.js b/src/formio.form.js +import _ from 'lodash';
import AllComponents from './components';
import Builders from './builders/Builders';
import Components from './components/Components';
@@ -20,7 +21,7 @@ const registerPlugin = (plugin) => {
const current = plugin.framework || Templates.framework || 'bootstrap';
switch (key) {
case 'options':
- Formio.options = plugin.options;
+ Formio.options = _.merge(Formio.options, plugin.options);
break;
case 'templates':
for (const framework of Object.keys(plugin.templates)) {
| 11 |
diff --git a/assets/js/components/PostSearcherAutoSuggest.js b/assets/js/components/PostSearcherAutoSuggest.js @@ -139,7 +139,7 @@ export default function PostSearcherAutoSuggest( {
if (
debouncedValue !== '' &&
debouncedValue !== currentEntityTitle &&
- debouncedValue !== postTitleFromMatch
+ debouncedValue?.toLowerCase() !== postTitleFromMatch?.toLowerCase()
) {
setIsLoading?.( true );
/**
| 1 |
diff --git a/renovate.json b/renovate.json {
"extends": ["config:base", ":disablePeerDependencies"],
- "includePaths": ["package.json", "starters/**", "themes/**", "packages/**", "www"],
+ "includePaths": [
+ "package.json",
+ "starters/**",
+ "themes/**",
+ "packages/**",
+ "www"
+ ],
"major": {
"masterIssueApproval": true
},
"rebaseStalePrs": false,
"rangeStrategy": "bump",
"bumpVersion": null,
- "semanticCommitScope": null
+ "semanticCommitScope": null,
+ "prHourlyLimit": 0
}
| 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.