code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/lib/taiko.js b/lib/taiko.js @@ -1440,7 +1440,7 @@ module.exports.button = (attrValuePairs, ...args) => {
module.exports.inputField = (attrValuePairs, ...args) => {
validate();
const selector = getValues(attrValuePairs, args);
- let get = getElementGetter(selector,
+ const get = getElementGetter(selector,
async () => await $$xpath(`//input[@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)] | //label[contains(string(), ${xpath(selector.label)})]/input`),
'input');
@@ -1475,16 +1475,9 @@ module.exports.fileField = fileField;
function fileField(attrValuePairs, ...args) {
validate();
const selector = getValues(attrValuePairs, args);
- let get = async() => {
- let elements = await $$xpath(`//input[@type='file'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)]`);
- if(elements && elements.length)
- return getElementGetter(selector,
- async () => await $$xpath(`//input[@type='file'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)]`),
- 'input[type="file"]')();
- return getElementGetter(selector,
- async () => await $$xpath(`//label[contains(string(), ${xpath(selector.label)})]/input[@type='file']`),
- 'input[type="file"]')();
- };
+ const get = getElementGetter(selector,
+ async () => await $$xpath(`//input[@type='file'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)] | //label[contains(string(), ${xpath(selector.label)})]/input[@type='file']`),
+ 'select');
return {
get: getIfExists(get),
exists: exists(getIfExists(get)),
@@ -1515,16 +1508,9 @@ module.exports.textField = textField;
function textField(attrValuePairs, ...args) {
validate();
const selector = getValues(attrValuePairs, args);
- let get = async() => {
- let elements = await $$xpath(`//input[@type='text'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)]`);
- if(elements && elements.length)
- return getElementGetter(selector,
- async () => await $$xpath(`//input[@type='text'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)]`),
- 'input[type="text"]')();
- return getElementGetter(selector,
- async () => await $$xpath(`//label[contains(string(), ${xpath(selector.label)})]/input[@type='text']`),
- 'input[type="text"]')();
- };
+ const get = getElementGetter(selector,
+ async () => await $$xpath(`//input[@type='text'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)] | //label[contains(string(), ${xpath(selector.label)})]/input[@type='text']`),
+ 'select');
return {
get: getIfExists(get),
exists: exists(getIfExists(get)),
@@ -1591,7 +1577,7 @@ module.exports.tap = async (selector, options = {}, ...args) => {
module.exports.comboBox = (attrValuePairs, ...args) => {
validate();
const selector = getValues(attrValuePairs, args);
- let get = getElementGetter(selector,
+ const get = getElementGetter(selector,
async () => await $$xpath(`//select[@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)] | //label[contains(string(), ${xpath(selector.label)})]/select`),
'select');
@@ -1650,7 +1636,7 @@ module.exports.comboBox = (attrValuePairs, ...args) => {
module.exports.checkBox = (attrValuePairs, ...args) => {
validate();
const selector = getValues(attrValuePairs, args);
- let get = getElementGetter(selector,
+ const get = getElementGetter(selector,
async () => await $$xpath(`//input[@type='checkbox'][@id=(//label[contains(string(), ${xpath(selector.label)})]/@for)] | //label[contains(string(), ${xpath(selector.label)})]/input[@type='checkbox']`),
'input[type="checkbox"]');
| 1 |
diff --git a/best-practices.md b/best-practices.md ## Table of Contents
-- [STAC Best Practices](#stac-best-practices)
- - [Table of Contents](#table-of-contents)
- [Enable Cross-origin resource sharing (CORS)](#enable-cross-origin-resource-sharing-cors)
- [Field and ID formatting](#field-and-id-formatting)
- [Field selection and Metadata Linking](#field-selection-and-metadata-linking)
| 2 |
diff --git a/packages/styles/src/theme/config.js b/packages/styles/src/theme/config.js @@ -150,9 +150,9 @@ const BUTTON_PROPS = {
buttonTertiaryTextColor: get('buttonPrimaryColor'),
buttonTertiaryTextColorFocus: get('buttonPrimaryColor'),
buttonTertiaryTextColorActive: get('buttonPrimaryColor'),
- buttonTertiaryBorderColorHover: get('buttonTertiaryBorderColor'),
- buttonTertiaryBorderColorActive: get('buttonTertiaryBorderColor'),
- buttonTertiaryBorderColorFocus: get('buttonTertiaryBorderColor'),
+ buttonTertiaryBorderColorHover: get('buttonPrimaryColor'),
+ buttonTertiaryBorderColorActive: get('buttonPrimaryColor'),
+ buttonTertiaryBorderColorFocus: get('buttonPrimaryColor'),
buttonControlActiveStateColor: get('buttonPrimaryColor'),
buttonControlActiveStateColorHover: get('buttonControlActiveStateColor'),
| 7 |
diff --git a/src/components/GlobalRouter/index.js b/src/components/GlobalRouter/index.js @@ -254,17 +254,16 @@ export default class GlobalRouter extends PureComponent {
const { showMenu, collapsed, pathname, menuData } = this.props;
const { openKeys } = this.state;
// Don't show popup menu when it is been collapsed
- const menuProps = collapsed
- ? {}
- : {
- openKeys,
- };
+ // const menuProps = collapsed
+ // ? {}
+ // : {
+ // openKeys,
+ // };
// if pathname can't match, use the nearest parent's key
let selectedKeys = this.getSelectedMenuKeys(pathname);
if (!selectedKeys.length) {
selectedKeys = [openKeys[openKeys.length - 1]];
}
- // console.log(selectedKeys);
return (
<div
style={{
@@ -278,7 +277,7 @@ export default class GlobalRouter extends PureComponent {
key="Menu"
theme="dark"
mode="inline"
- {...menuProps}
+ // {...menuProps}
onOpenChange={this.handleOpenChange}
selectedKeys={selectedKeys}
inlineCollapsed="menu-fold"
| 1 |
diff --git a/app/views/photos/_photo_list_form.html.erb b/app/views/photos/_photo_list_form.html.erb <h4><%= t :select_one_or_more_photos %></h4>
<% photos.each do |photo| %>
<%-
- native_photo_id = photo.native_photo_id || photo.id
+ native_photo_id = photo.is_a?( LocalPhoto ) ? photo.id : ( photo.native_photo_id || photo.id )
thumb_url = photo.try_methods(:thumb_url, :square_url, :url_t, :url_sq)
next unless thumb_url
if photo.is_a?(Photo)
| 1 |
diff --git a/packages/component-library/stories/PathMap.story.js b/packages/component-library/stories/PathMap.story.js @@ -8,13 +8,7 @@ import { scaleThreshold } from "d3";
import { BaseMap, PathMap, MapTooltip, DemoJSONLoader } from "../src";
import notes from "./PathMap.notes.md";
-const optionsStyle = {
- "Hack Oregon Light": "mapbox://styles/hackoregon/cjiazbo185eib2srytwzleplg",
- "Hack Oregon Dark": "mapbox://styles/hackoregon/cjie02elo1vyw2rohd24kbtbd",
- "Navigation Guidance Night v2":
- "mapbox://styles/mapbox/navigation-guidance-night-v2",
- "Dark v9": "mapbox://styles/mapbox/dark-v9"
-};
+const baseMapStyle = "mapbox://styles/hackoregon/cjiazbo185eib2srytwzleplg";
const colorSchemeOptions = {
"Red Yellow Blue":
@@ -43,6 +37,13 @@ const mapData = [
"https://service.civicpdx.org/transportation-systems/sandbox/slides/routechange/"
];
+const highlightColor = [125, 125, 125, 125];
+
+const parseColors = colorScheme => JSON.parse(colorScheme);
+
+const getPath = f => f.geometry.coordinates;
+const getWidth = () => 15;
+
export default () => {
storiesOf("Component Lib|Maps/Path Map", module)
.addDecorator(withKnobs)
@@ -50,41 +51,33 @@ export default () => {
.add(
"Standard",
() => {
- const mapboxStyle = select(
- "Mapbox Style",
- optionsStyle,
- optionsStyle["Hack Oregon Light"]
- );
-
const colorScheme = select(
"Color Scheme:",
colorSchemeOptions,
colorSchemeOptions["Purple Green"]
);
- const colors = JSON.parse(colorScheme);
+ const colors = parseColors(colorScheme);
const divergingScale = scaleThreshold()
.domain([-100, -75, -50, -25, 0, 25, 50, 75, 100])
.range(colors);
const getPathColor = f => {
- const value = f.properties.pct_change;
- return divergingScale(value);
+ const percentChange = f.properties.pct_change;
+ return divergingScale(percentChange);
};
const opacity = number("Opacity:", 0.95, opacityOptions);
- const getPath = f => f.geometry.coordinates;
- const getWidth = () => 15;
+
const widthScale = number("Width Scale:", 1, widthScaleOptions);
const rounded = boolean("Rounded:", true);
- const highlightColor = [125, 125, 125, 125];
return (
<DemoJSONLoader urls={mapData}>
{data => {
return (
<BaseMap
- mapboxStyle={mapboxStyle}
+ mapboxStyle={baseMapStyle}
initialZoom={12}
initialLatitude={45.523027}
initialLongitude={-122.67037}
@@ -113,18 +106,12 @@ export default () => {
.add(
"Example: With Tooltip",
() => {
- const mapboxStyle = select(
- "Mapbox Style",
- optionsStyle,
- optionsStyle["Hack Oregon Light"]
- );
-
const colorScheme = select(
"Color Scheme:",
colorSchemeOptions,
colorSchemeOptions["Purple Green"]
);
- const colors = JSON.parse(colorScheme);
+ const colors = parseColors(colorScheme);
const divergingScale = scaleThreshold()
.domain([-100, -75, -50, -25, 0, 25, 50, 75, 100])
@@ -136,18 +123,16 @@ export default () => {
};
const opacity = number("Opacity:", 0.95, opacityOptions);
- const getPath = f => f.geometry.coordinates;
- const getWidth = () => 15;
+
const widthScale = number("Width Scale:", 1, widthScaleOptions);
const rounded = boolean("Rounded:", true);
- const highlightColor = [125, 125, 125, 125];
return (
<DemoJSONLoader urls={mapData}>
{data => {
return (
<BaseMap
- mapboxStyle={mapboxStyle}
+ mapboxStyle={baseMapStyle}
initialZoom={12}
initialLatitude={45.523027}
initialLongitude={-122.67037}
| 2 |
diff --git a/src/components/challenge/Post.js b/src/components/challenge/Post.js @@ -43,11 +43,16 @@ const CommentButton = Box.withComponent('button').extend`
box-shadow: none !important;
cursor: pointer;
position: relative;
+ padding-right: 0;
+ margin: 0;
span {
position: absolute;
width: 100%;
top: ${props => props.theme.space[2]}px;
}
+ ${props => props.theme.mediaQueries.md} {
+ padding-right: ${props => props.theme.space[3]}px;
+ }
`
const PostRow = ({
| 1 |
diff --git a/dc-worker-manager.js b/dc-worker-manager.js @@ -284,14 +284,14 @@ export class DcWorkerManager {
return result;
}
async drawSphereDamage(position, radius) {
- const chunkPosition = chunkMinForPosition(
- position.x,
- position.y,
- position.z,
- this.chunkSize
- );
- const chunkId = getLockChunkId(chunkPosition);
- return await this.locks.request(chunkId, async lock => {
+ // const chunkPosition = chunkMinForPosition(
+ // position.x,
+ // position.y,
+ // position.z,
+ // this.chunkSize
+ // );
+ // const chunkId = getLockChunkId(chunkPosition);
+ // return await this.locks.request(chunkId, async lock => {
const worker = this.getNextWorker();
const result = await worker.request('drawSphereDamage', {
instance: this.instance,
@@ -299,7 +299,7 @@ export class DcWorkerManager {
radius,
});
return result;
- });
+ // });
}
async eraseSphereDamage(position, radius) {
const chunkPosition = chunkMinForPosition(
| 2 |
diff --git a/articles/protocols/saml/index.html b/articles/protocols/saml/index.html @@ -55,41 +55,6 @@ title: SAML
</li>
</ul>
</li>
- <li>
- <i class="icon icon-budicon-715"></i><a href="/samlp">Configure a SAML Identity Provider Connection</a>
- <p>
- How to configure a SAML Identity Provider Connection
- </p>
- </li>
- <li>
- <i class="icon icon-budicon-715"></i><a href="/saml-idp-generic">Auth0 as Identity Provider</a>
- <p>
- How to configure Auth0 to serve as an Identity Provider in a SAML federation.
- </p>
- <ul>
- <li>
- <i class="icon icon-budicon-695"></i><a href="/protocols/saml/saml-idp-eloqua">Configure Auth0 as IdP for Oracle Eloqua</a>
- </li>
- </ul>
- </li>
- <li>
- <i class="icon icon-budicon-715"></i><a href="/saml-sp-generic">Auth0 as Service Provider</a>
- <p>
- How to configure Auth0 to serve as a Service Provider in a SAML federation.
- </p>
- </li>
- <li>
- <i class="icon icon-budicon-715"></i><a href="/samlsso-auth0-to-auth0">SAML SSO with Auth0 as Service Provider and as an Identity Provider</a>
- <p>
- Learn how to use SAML SSO with Auth0 as both the Service Provider and Identity Provider, using two Auth0 accounts, allowing you to test your Auth0 SAML without configuring another provider to do so!
- </p>
- </li>
- <li>
- <i class="icon icon-budicon-715"></i><a href="/samlp">SAML Identity Provider Configuration</a>
- <p>
- How to configure a SAML Identity Provider.
- </p>
- </li>
<li>
<i class="icon icon-budicon-715"></i><a href="/samlp-providers">List of SAML-P Identity Providers</a>
<p>
| 2 |
diff --git a/app/math-editor.js b/app/math-editor.js @@ -45,7 +45,7 @@ function initMathEditor() {
const $mathEditorContainer = $(`
<div class="math-editor" data-js="mathEditor">
<div class="math-editor-boxes">
- <div class="math-editor-equation-editor" data-js="equationEditor"></div>
+ <div class="math-editor-equation-editor" data-js="equationField"></div>
<textarea class="math-editor-latex-editor" data-js="latexField" placeholder="LaTex"></textarea>
</div>
</div>`)
@@ -53,7 +53,7 @@ function initMathEditor() {
hideElementInDOM($mathEditorContainer)
const $latexField = $mathEditorContainer.find('[data-js="latexField"]')
- const $equationEditor = $mathEditorContainer.find('[data-js="equationEditor"]')
+ const $equationField = $mathEditorContainer.find('[data-js="equationField"]')
let mqEditTimeout
function onMqEdit() {
clearTimeout(mqEditTimeout)
@@ -65,7 +65,7 @@ function initMathEditor() {
updateMathImg($mathEditorContainer.prev(), latex)
}, 100)
}
- const mqInstance = MQ.MathField($equationEditor.get(0), {
+ const mqInstance = MQ.MathField($equationField.get(0), {
handlers: {
edit: onMqEdit,
enter: field => {
@@ -75,9 +75,9 @@ function initMathEditor() {
}
}
})
- $equationEditor.on('keydown', '.mq-textarea textarea', onMqEdit)
+ $equationField.on('keydown', '.mq-textarea textarea', onMqEdit)
- $equationEditor
+ $equationField
.on('focus blur', '.mq-textarea textarea', e => {
equationFieldFocus = e.type !== 'blur' && e.type !== 'focusout'
onFocusChanged()
| 10 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -119,12 +119,18 @@ const _getLoaders = () => {
let currentAppRender = null;
let recursion = 0;
metaversefile.setApi({
- import(s) {
+ async import(s) {
if (/^https?:\/\//.test(s)) {
s = `/@proxy/${s}`;
}
// console.log('do import', s);
- return import(s);
+ try {
+ const m = await import(s);
+ return m;
+ } catch(err) {
+ console.warn('error loading', JSON.stringify(s), err.stack);
+ return null;
+ }
},
async load(s) {
const m = await this.import(s);
@@ -461,7 +467,7 @@ metaversefile.setApi({
App.prototype.addModule = function(m) {
return metaversefile.addModule(this, m);
};
-// window.metaversefile = metaversefile;
+window.metaversefile = metaversefile;
/* [
'./lol.jsx',
'./street/.metaversefile',
| 9 |
diff --git a/io-manager.js b/io-manager.js @@ -684,6 +684,7 @@ const _updateMouseMovement = e => {
const _getMouseRaycaster = (e, raycaster) => {
const {clientX, clientY} = e;
const renderer = getRenderer();
+ if (renderer) {
renderer.getSize(localVector2D2);
localVector2D.set(
(clientX / localVector2D2.x) * 2 - 1,
@@ -698,6 +699,9 @@ const _getMouseRaycaster = (e, raycaster) => {
} else {
return null;
}
+ } else {
+ return null;
+ }
};
const _updateMouseHover = e => {
let mouseHoverObject = null;
| 0 |
diff --git a/tests/integration/components/bs-collapse-test.js b/tests/integration/components/bs-collapse-test.js @@ -40,6 +40,7 @@ module('Integration | Component | bs-collapse', function (hooks) {
this.set('collapsed', false);
assert.ok(showAction.calledOnce, 'onShow action has been called');
+ assert.notOk(shownAction.called, 'onShown action has not been called');
assert.dom('.collapsing').exists('collapse has collapsing class while transition is running');
// wait for transitions to complete
@@ -62,6 +63,7 @@ module('Integration | Component | bs-collapse', function (hooks) {
this.set('collapsed', true);
assert.ok(hideAction.calledOnce, 'onHide action has been called');
+ assert.notOk(hiddenAction.called, 'onHidden action has not been called');
assert.dom('.collapsing').exists('collapse has collapsing class while transition is running');
// wait for transitions to complete
| 7 |
diff --git a/src/commands/Roles/RoleIds.js b/src/commands/Roles/RoleIds.js @@ -27,7 +27,15 @@ class Roles extends Command {
* or perform an action based on parameters.
*/
run(message) {
- const roles = message.guild.roles.array().sort((a, b) => { a.localeCompare(b) });
+ const roles = message.guild.roles.array().sort((a, b) => {
+ if (a < b) {
+ return -1;
+ } else if (b > a) {
+ return 1;
+ } else {
+ return 0;
+ }
+ });
const longest = roles.map(role => role.name)
.reduce((a, b) => (a.length > b.length ? a : b));
const roleGroups = createGroupedArray(roles.map(role => `\`${rpad(role.name, longest.length, ' ')} ${role.id}\``), 20);
| 2 |
diff --git a/src/components/views/DamageControl/index.js b/src/components/views/DamageControl/index.js @@ -38,7 +38,7 @@ class DamageControl extends Component {
};
this.systemSub = null;
}
- componentWillReceiveProps(nextProps) {
+ UNSAFE_componentWillReceiveProps(nextProps) {
if (!this.systemSub && !nextProps.data.loading) {
this.systemSub = nextProps.data.subscribeToMore({
document: SYSTEMS_SUB,
@@ -341,8 +341,10 @@ class DamageControl extends Component {
</Col>
<Col sm={6}>
<h3 className="text-center">
- {system ? system.damage.currentStep + 1 : 0} /{" "}
- {steps.length}
+ {system && system.damage.damageReportText
+ ? system.damage.currentStep + 1
+ : 0}{" "}
+ / {steps.length}
</h3>
</Col>
<Col sm={3}>
@@ -350,6 +352,7 @@ class DamageControl extends Component {
<Button
disabled={
!system ||
+ steps.length === 0 ||
system.damage.currentStep === steps.length - 1 ||
system.damage.validate
}
@@ -365,6 +368,7 @@ class DamageControl extends Component {
<Button
disabled={
!system ||
+ steps.length === 0 ||
system.damage.currentStep === steps.length - 1
}
block
| 1 |
diff --git a/packages/app/src/components/Icons/TriangleIcon.tsx b/packages/app/src/components/Icons/TriangleIcon.tsx import React from 'react';
const TriangleIcon = (): JSX.Element => (
- <svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8">
- <path
- d="M5.2,1.067a1,1,0,0,1,1.6,0l4,5.333A1,1,0,0,1,10,8H2a1,1,0,0,1-.8-1.6Z"
- transform="translate(12 8) rotate(180)"
- />
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="12"
+ height="12"
+ viewBox="0 0 12 12"
+ >
+ <g transform="translate(18194 -6790)">
+ <rect width="12" height="12" transform="translate(-18194 6790)" fill="none" />
+ <path d="M5.2,1.067a1,1,0,0,1,1.6,0l4,5.333A1,1,0,0,1,10,8H2a1,1,0,0,1-.8-1.6Z" transform="translate(-18183 6790) rotate(90)" />
+ </g>
</svg>
);
| 4 |
diff --git a/site/plugins.md b/site/plugins.md @@ -117,21 +117,21 @@ value on various platforms.
The built-in plugin directory is by definition version-independent: its contents will change
from release to release. So will its exact path (by default) which contains version number,
-e.g. `/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.15/plugins`. Because of this
+e.g. `/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/plugins`. Because of this
automated installation of 3rd party plugins into this directory is harder and more error-prone,
and therefore not recommended. To solve this problem, the plugin directory can be a list
of paths separated by a colon (on Linux, MacOS, BSD):
<pre class="lang-bash">
# Example rabbitmq-env.conf file that features a colon-separated list of plugin directories
-PLUGINS_DIR="/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.15/plugins"
+PLUGINS_DIR="/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/plugins"
</pre>
On Windows, a semicolon is used as path separator:
<pre class="lang-powershell">
# Example rabbitmq-env-conf.bat file that features a colon-separated list of plugin directories
-PLUGINS_DIR="C:\Example\RabbitMQ\plugins;C:\Example\RabbitMQ\rabbitmq_server-3.7.15\plugins"
+PLUGINS_DIR="C:\Example\RabbitMQ\plugins;C:\Example\RabbitMQ\rabbitmq_server-3.8.2\plugins"
</pre>
Plugin directory paths that don't have a version-specific component and are not updated
@@ -148,7 +148,7 @@ with a running RabbitMQ node:
<pre class="lang-bash">
rabbitmqctl eval 'application:get_env(rabbit, plugins_dir).'
-# => {ok,"/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.15/plugins"}
+# => {ok,"/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/plugins"}
</pre>
The first directory in the example above is the 3rd party plugin directory.
@@ -220,7 +220,7 @@ with a running RabbitMQ node:
<pre class="lang-bash">
rabbitmqctl eval 'application:get_env(rabbit, plugins_dir).'
-# => {ok,"/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.15/plugins"}
+# => {ok,"/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/plugins"}
</pre>
The first directory in the example above is the 3rd party plugin directory.
| 4 |
diff --git a/test/unit/tracing/exporters/jaeger.spec.js b/test/unit/tracing/exporters/jaeger.spec.js @@ -147,7 +147,7 @@ describe("Test Jaeger tracing exporter class", () => {
expect(res).toBe(fakeRemoteReporter);
expect(UDPSender).toHaveBeenCalledTimes(1);
- expect(UDPSender).toHaveBeenCalledWith({ host: "jaeger-host", port: 4567 });
+ expect(UDPSender).toHaveBeenCalledWith({ host: "jaeger-host", port: 4567, logger: exporter.logger });
expect(HTTPSender).toHaveBeenCalledTimes(0);
@@ -168,7 +168,7 @@ describe("Test Jaeger tracing exporter class", () => {
expect(res).toBe(fakeRemoteReporter);
expect(HTTPSender).toHaveBeenCalledTimes(1);
- expect(HTTPSender).toHaveBeenCalledWith({ endpoint: "http://jaeger-host:9411" });
+ expect(HTTPSender).toHaveBeenCalledWith({ endpoint: "http://jaeger-host:9411", logger: exporter.logger });
expect(UDPSender).toHaveBeenCalledTimes(0);
@@ -314,7 +314,7 @@ describe("Test Jaeger tracing exporter class", () => {
expect(exporter.getReporter).toHaveBeenCalledTimes(1);
expect(Jaeger.Tracer).toHaveBeenCalledTimes(1);
- expect(Jaeger.Tracer).toHaveBeenCalledWith("posts", fakeReporter, fakeSampler, { b: "John" });
+ expect(Jaeger.Tracer).toHaveBeenCalledWith("posts", fakeReporter, fakeSampler, { b: "John", logger: exporter.logger });
});
it("should return an existing tracer", () => {
| 3 |
diff --git a/src/components/Carousel.js b/src/components/Carousel.js @@ -640,7 +640,7 @@ export default class Carousel extends Component {
renderArrowRight = () => {
const slides = this.getChildren();
const value = this.getCurrentValue();
- const lastSlideIndex = slides.length;
+ const lastSlideIndex = slides.length - 1;
if (this.getProp('arrowRight')) {
return this.renderArrowWithAddedHandler(this.getProp('arrowRight'), this.nextSlide, 'arrowRight');
| 1 |
diff --git a/tools/olsonParser.js b/tools/olsonParser.js @@ -151,12 +151,52 @@ var sortRules = function ( a, b ) {
return a[1] - b[1];
};
-var convertFile = function ( text ) {
+// The following obsolete names are aliases rather than linked
+const alwaysAlias = {
+ 'GMT': true,
+ 'Etc/Universal': true,
+ 'Etc/Zulu': true,
+ 'Etc/Greenwich': true,
+ 'Etc/GMT-0': true,
+ 'Etc/GMT+0': true,
+ 'Etc/GMT0': true,
+};
+
+// We link rather than alias the common US/* zones, for ease of use
+// by Americans
+const alwaysLink = {
+ 'US/Alaska': true,
+ 'US/Arizona': true,
+ 'US/Central': true,
+ 'US/Eastern': true,
+ 'US/Hawaii': true,
+ 'US/Mountain': true,
+ 'US/Pacific': true,
+};
+
+// The following obsolete zones are defined in Olsen: alias them into an
+// equivalent modern zone
+const obsoleteZones = {
+ WET: 'Europe/Lisbon ',
+ CET: 'Europe/Paris',
+ MET: 'Europe/Paris',
+ EET: 'Europe/Helsinki',
+ EST: 'Etc/GMT+5',
+ MST: 'Etc/GMT+7',
+ HST: 'Etc/GMT+10',
+ EST5EDT: 'America/New_York',
+ CST6CDT: 'America/Chicago',
+ MST7MDT: 'America/Denver',
+ PST8PDT: 'America/Los_Angeles',
+};
+
+var convertFile = function ( text, isLinkAlias ) {
var lines = text.replace( /#.*$/gm, '' ).split( '\n' ),
zones = {},
rules = {},
usedRules = {},
result = {
+ alias: {},
link: {},
zones: zones,
rules: rules
@@ -175,7 +215,13 @@ var convertFile = function ( text ) {
// console.log( 'parsing line ' + i + ': ' + line );
switch ( parts[0] ) {
case 'Link':
- result.link[ parts[2] ] = parts[1];
+ zone = parts[2];
+ if ( ( isLinkAlias || alwaysAlias[ zone ] ) &&
+ !alwaysLink[ zone ] ) {
+ result.alias[ zone ] = parts[1];
+ } else {
+ result.link[ zone ] = parts[1];
+ }
break;
case 'Rule':
rule = formatRule( parts );
@@ -187,9 +233,14 @@ var convertFile = function ( text ) {
break;
case 'Zone':
zone = parts[1];
- // Skip obsolete legacy timezones.
+ // Handle obsolete legacy timezones.
if ( zone.indexOf( '/' ) === -1 ) {
- console.log( zone );
+ var alias = obsoleteZones[ zone ];
+ if ( alias ) {
+ result.alias[ zone ] = alias;
+ } else {
+ console.log( 'Unhandled obsolete zone: ' + zone );
+ }
continue;
}
parts = parts.slice( 2 );
@@ -238,11 +289,8 @@ var formatHeaderLine = function ( text, length ) {
( function () {
var args = process.argv.slice( 2 );
var olson = fs.readFileSync( args[0], 'utf8' );
- var json = convertFile( olson );
- if ( /backward/.test( args[0] ) ) {
- json.alias = json.link;
- delete json.link;
- }
+ var isLinkAlias = /backward/.test( args[0] );
+ var json = convertFile( olson, isLinkAlias );
var outputName = args[1];
fs.writeFileSync( outputName,
formatHeaderLine( new Array( 80 - 6 + 1 ).join( '-' ), 80 ) +
| 0 |
diff --git a/examples/viper/search_openaire_projects.js b/examples/viper/search_openaire_projects.js @@ -49,10 +49,11 @@ var setupPaginator = function (searchTerm) {
callback: function (data, pagination) {
var header = '<div id="project_count">Projects: ' + pagination.totalNumber + ' results for <span style="font-weight:bold;">' + decodeURI(searchTerm) + '</span></div>'
var html = simpleTemplating(data)
+ if (pagination.totalNumber === 0) {
+ $('#viper-search-results').html('<div class="viper-no-results-err">Sorry, no projects found for <span style="font-weight:bold;">' + decodeURI(searchTerm) + '</span>. Please try another search term.</div>')
+ } else {
$('#viper-search-results').html(header)
.append(html)
- if (pagination.totalNumber === 0) {
- $('#viper-search-results').append('<div class="viper-no-results-err">Sorry, no projects found for <span style="font-weight:bold;">' + decodeURI(searchTerm) + '</span> Please try another search term.</div>')
}
if(pagination.totalNumber <= pagination.pageSize) {
$("#viper-search-pager").hide();
| 2 |
diff --git a/database/schedule_models.py b/database/schedule_models.py @@ -258,7 +258,7 @@ class Intervention(TimestampedModel):
class InterventionDate(TimestampedModel):
- date = models.DateField(null=True)
+ date = models.DateField(null=True, blank=True)
participant = models.ForeignKey('Participant', on_delete=models.CASCADE, related_name='intervention_dates')
intervention = models.ForeignKey('Intervention', on_delete=models.CASCADE, related_name='intervention_dates')
| 12 |
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/code-editors/monaco.js @@ -921,6 +921,15 @@ RED.editor.codeEditor.monaco = (function() {
/*********** Create the monaco editor ***************/
var ed = monaco.editor.create(el, editorOptions);
+ //Unbind ctrl-Enter (default action is to insert a newline in editor) This permits the shortcut to close the tray.
+ try {
+ ed._standaloneKeybindingService.addDynamicKeybinding(
+ '-editor.action.insertLineAfter', // command ID prefixed by '-'
+ null, // keybinding
+ () => {} // need to pass an empty handler
+ );
+ } catch (error) { }
+
ed.nodered = {
refreshModuleLibs: refreshModuleLibs //expose this for function node externalModules refresh
}
| 2 |
diff --git a/src/technologies/p.json b/src/technologies/p.json "description": "Polylang is a WordPress plugin which allows you to create multilingual WordPress site.",
"dom": "img[src*='/wp-content/plugins/polylang/']",
"headers": {
- "x-redirected-by": "Polylang(?:\\s[a-zA-Z]+)?"
+ "x-redirected-by": "Polylang"
+ },
+ "icon": "Polylang.svg",
+ "oss": true,
+ "requires": "WordPress",
+ "website": "https://wordpress.org/plugins/polylang"
+ },
+ "Polylang Pro": {
+ "cats": [
+ 87,
+ 89
+ ],
+ "cookies": {
+ "pll_language": ""
+ },
+ "description": "Polylang is a WordPress plugin which allows you to create multilingual WordPress site.",
+ "dom": "img[src*='/wp-content/plugins/polylang/']",
+ "headers": {
+ "x-redirected-by": "Polylang Pro"
},
"icon": "Polylang.svg",
"oss": true,
| 7 |
diff --git a/helpers/wrapper/test/Wrapper.js b/helpers/wrapper/test/Wrapper.js @@ -96,7 +96,7 @@ contract('Wrapper', async ([aliceAddress, bobAddress, carolAddress]) => {
})
})
- it('Bob authorizesSender the Wrapper to send orders on his behalf', async () => {
+ it('Bob authorizes the Wrapper to send orders on his behalf', async () => {
let expiry = await getTimestampPlusDays(1)
let tx = await swapContract.authorizeSender(wrapperAddress, expiry, {
from: bobAddress,
| 3 |
diff --git a/unit-test/background/atb.es6.js b/unit-test/background/atb.es6.js @@ -26,7 +26,7 @@ describe('atb.canShowPostInstall()', () => {
// ensure settings.getSettings('hasSeenPostInstall') == false
spyOn(settings, 'getSetting').and.returnValue(false)
- const result = atb.canShowPostInstall(test.domain);
+ const result = atb.canShowPostInstall(test.domain)
expect(result).toBe(test.result)
})
})
| 2 |
diff --git a/docs/api.md b/docs/api.md @@ -1859,13 +1859,13 @@ use shears.
Attack a player or a mob.
* `entity` is a type of entity. To get a specific entity use [bot.nearestEntity()](#botnearestentitymatch--entity---return-true-) or [bot.entities](#botentities).
- * `swing` Default `true`. If false the bot does not swing its arm when attacking.
+ * `swing` Default to `true`. If false the bot does not swing its arm when attacking.
#### bot.swingArm([hand], showHand)
Play an arm swing animation.
- * `hand` can take `left` or `right` which is arm that is animated. Default: `right`
+ * `hand` can take `left` or `right` which is the arm that is animated. Default: `right`
* `showHand` is a boolean whether to add the hand to the packet, Default: `true`
#### bot.mount(entity)
| 7 |
diff --git a/assets/js/modules/tagmanager/components/common/FormInstructions.js b/assets/js/modules/tagmanager/components/common/FormInstructions.js /**
* WordPress dependencies
*/
-import { Fragment } from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
/**
@@ -107,13 +106,11 @@ export default function FormInstructions() {
}
return (
- <Fragment>
<p>
{ __(
'Please select your Tag Manager account and container below.',
'google-site-kit'
) }
</p>
- </Fragment>
);
}
| 2 |
diff --git a/server/lib/config.ts b/server/lib/config.ts @@ -112,7 +112,7 @@ const configSchema = convict({
fileTracker : {
doc : 'Bittorrent tracker.',
format : String,
- default : 'wss://tracker.lab.vvc.niif.hu:443'
+ default : 'wss://tracker.openwebtorrent.com'
},
redisOptions : {
host : {
| 3 |
diff --git a/lib/trace.js b/lib/trace.js @@ -440,7 +440,8 @@ Trace.prototype.getLoadRecord = function(canonical, traceOpts, parentStack) {
load.plugin = getCanonicalName(loader, pluginNormalized);
if (load.metadata.loaderModule &&
- (load.metadata.loaderModule.build === false || Object.keys(load.metadata.loaderModule).length == 0))
+ (load.metadata.loaderModule.build === false || Object.keys(load.metadata.loaderModule).length == 0 ||
+ (typeof load.metadata.loaderModule === 'function' || load.metadata.loaderModule.toString && load.metadata.loaderModule.toString() === 'Module' && typeof load.metadata.loaderModule.default === 'function')))
load.runtimePlugin = true;
if (pluginNormalized.indexOf('!') == -1 && !load.runtimePlugin && getPackage(loader.packages, pluginNormalized)) {
@@ -507,24 +508,6 @@ Trace.prototype.getLoadRecord = function(canonical, traceOpts, parentStack) {
return loader.translate({ name: normalized, metadata: load.metadata, address: address, source: source }, traceOpts);
})
- .then(function(source) {
- // treat transpilers as plugins detected on translate
- if (load.metadata.loaderModule)
- return Promise.resolve(loader.pluginLoader.normalize(load.metadata.loader, normalized))
- .then(function(pluginNormalized) {
- load.plugin = getCanonicalName(loader, pluginNormalized);
-
- if (getPackage(loader.packages, pluginNormalized)) {
- var packageConfigPath = getPackageConfigPath(loader.packageConfigPaths, pluginNormalized);
- if (packageConfigPath) {
- load.pluginConfig = getCanonicalName(loader, packageConfigPath);
- (loader.meta[packageConfigPath] = loader.meta[packageConfigPath] || {}).format = 'json';
- }
- }
- return source;
- });
- return source;
- })
.then(function(source) {
load.source = source;
| 2 |
diff --git a/config/canonical.json b/config/canonical.json "shop": "nutrition_supplements"
}
},
- "shop/office_supplies|Staples": {
- "count": 55,
- "tags": {
- "brand": "Staples",
- "name": "Staples",
- "shop": "office_supplies"
- }
- },
"shop/optician|Alain Afflelou": {
"count": 264,
"tags": {
},
"shop/stationery|Staples": {
"count": 734,
+ "match": ["shop/office_supplies|Staples"],
"tags": {
"brand": "Staples",
+ "brand:wikidata": "Q785943",
+ "brand:wikipedia": "en:Staples Inc.",
"name": "Staples",
"shop": "stationery"
}
| 4 |
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue @@ -111,6 +111,12 @@ export default {
},
onKeyDown(ev){
+ var nodeName = document.activeElement.nodeName
+ var className = document.activeElement.className
+ /* check no field is currently in focus */
+ if(nodeName === 'INPUT' || nodeName === 'TEXTAREA' || className === 'ql-editor'){
+ return false
+ } else {
var ctrlKey = 17
var cmdKey = 91
if (ev.keyCode == ctrlKey || ev.keyCode == cmdKey){
@@ -126,14 +132,22 @@ export default {
this.onPaste()
}
}
+ }
},
onKeyUp(ev){
+ var nodeName = document.activeElement.nodeName
+ var className = document.activeElement.className
+ /* check no field is currently in focus */
+ if(nodeName === 'INPUT' || nodeName === 'TEXTAREA' || className === 'ql-editor'){
+ return false
+ } else {
var ctrlKey = 17
var cmdKey = 91
if (ev.keyCode == ctrlKey || ev.keyCode == cmdKey){
this.ctrlDown = false
}
+ }
},
/* Iframe (editview) methods ===============
| 11 |
diff --git a/src/components/modebar/manage.js b/src/components/modebar/manage.js @@ -66,6 +66,25 @@ var DRAW_MODES = [
'eraseshape'
];
+var HOVER_MODES = [
+ 'hoverCompareCartesian',
+ 'hoverClosestCartesian',
+ 'hoverClosestGl2d',
+ 'hoverClosest3d',
+ 'hoverClosestGeo',
+ 'hoverClosestPie',
+ 'toggleHover'
+];
+
+var SPIKE_MODES = [
+ 'toggleSpikelines'
+];
+
+var EXTRA_MODES = []
+ .concat(DRAW_MODES)
+ .concat(HOVER_MODES)
+ .concat(SPIKE_MODES);
+
// logic behind which buttons are displayed by default
function getButtonGroups(gd) {
var fullLayout = gd._fullLayout;
@@ -152,8 +171,9 @@ function getButtonGroups(gd) {
for(var i = 0; i < buttonsToAdd.length; i++) {
var b = buttonsToAdd[i];
if(typeof b === 'string') {
- if(DRAW_MODES.indexOf(b) !== -1) {
+ if(EXTRA_MODES.indexOf(b) !== -1) {
if(
+ DRAW_MODES.indexOf(b) === -1 ||
fullLayout._has('mapbox') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)
fullLayout._has('cartesian') // draw shapes in data coordinate
) {
| 0 |
diff --git a/src/server/system_services/cluster_server.js b/src/server/system_services/cluster_server.js @@ -781,12 +781,12 @@ function update_dns_servers(req) {
throw new RpcError('OFFLINE_SERVER', 'Server is disconnected');
}
const config_to_compare = [
- dns_servers_config.dns_servers ? dns_servers_config.dns_servers.sort() : undefined,
- dns_servers_config.search_domains ? dns_servers_config.search_domains.sort() : undefined
+ dns_servers_config.dns_servers ? dns_servers_config.dns_servers.sort() : [],
+ dns_servers_config.search_domains ? dns_servers_config.search_domains.sort() : []
];
// don't update servers that already have the dame configuration
target_servers = target_servers.filter(srv => {
- const { dns_servers, search_domains } = srv;
+ const { dns_servers = [], search_domains = [] } = srv;
return !_.isEqual(config_to_compare, [dns_servers.sort(), search_domains.sort()]);
});
if (!target_servers.length) {
| 4 |
diff --git a/token-metadata/0x25cef4fB106E76080E88135a0e4059276FA9BE87/metadata.json b/token-metadata/0x25cef4fB106E76080E88135a0e4059276FA9BE87/metadata.json "symbol": "UNITS",
"address": "0x25cef4fB106E76080E88135a0e4059276FA9BE87",
"decimals": 5,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/content/guide/getting-started.md b/content/guide/getting-started.md @@ -106,7 +106,7 @@ Rendering hyperscript with a virtual DOM is pointless, though. We want to render
## Components
-Preact exports a generic `Component` class, which can be extended to build encapsulated, self-updating pieces of a User Interface. Components support all of the standard React [lifecycle methods][#the-component-lifecycle], like `shouldComponentUpdate()` and `componentWillReceiveProps()`. Providing specific implementations of these methods is the preferred mechanism for controlling _when_ and _how_ components update.
+Preact exports a generic `Component` class, which can be extended to build encapsulated, self-updating pieces of a User Interface. Components support all of the standard React [lifecycle methods](#the-component-lifecycle), like `shouldComponentUpdate()` and `componentWillReceiveProps()`. Providing specific implementations of these methods is the preferred mechanism for controlling _when_ and _how_ components update.
Components also have a `render()` method, but unlike React this method is passed `(props, state)` as arguments. This provides an ergonomic means to destructure `props` and `state` into local variables to be referenced from JSX.
| 1 |
diff --git a/docs/luigi-client-setup.md b/docs/luigi-client-setup.md @@ -25,28 +25,94 @@ Install the client in your project using npm:
npm install @luigi-project/client
```
+## Configuration
+
Import the client in places where you want to use it, depending on the environment of your choice:
+
+### No framework/Svelte
+Add this line to the imports section of the `src/main.js` file:
```javascript
-var LuigiClient = require('@luigi-project/client');
+import LuigiClient from '@luigi-project/client';
```
-or
+
+### Angular
+Add this line to the imports section of the `src/app/app.component.ts` file:
```javascript
import LuigiClient from '@luigi-project/client';
```
-or, if you are not using any bundler, Luigi is also available as a global object:
+
+### SAPUI5/OpenUI5
+Add this to the `webapp/home/Home.controller.js` file:
+```js
+sap.ui.define(
+ [
+ 'sap/ui/core/mvc/Controller',
+ 'sap/ui/core/UIComponent',
+ 'luigi/demo/libs/luigi-client/luigi-client'
+ ],
+```
+
+### Vue
+Add this line to the imports section of the `src/main.js` file:
+```js
+import LuigiClient from '@luigi-project/client';
+```
+
+### React
+Add this line to the imports section of the `src/App.js` file:
+
+```javascript
+import LuigiClient from '@luigi-project/client';
+```
+### Next.JS
+
+<!-- add-attribute:class:success -->
+> **TIP:** You can find an Next.JS example using Luigi Client [here](https://github.com/SAP/luigi/blob/master/core/examples/luigi-example-next/pages/sample1.js).
+
+1. Add this line to the imports section of the `src/App.js` file:
+
+```javascript
+import LuigiClient from '@luigi-project/client';
+```
+
+2. Add the `useEffect` function:
+```javascript
+import { useEffect } from 'react'
+
+ export default function Home() {
+ // recommended by https://nextjs.org/docs/migrating/from-create-react-app#safely-accessing-web-apis
+ useEffect(() => {
+ var luigiClient = require('@luigi-project/client');
+ console.log("Load LuigiClient in useEffect: " + luigiClient);
+ }, [])
+```
+
+### Other
+
+If you are not using any bundler, Luigi is also available as a global object:
```javascript
window.LuigiClient
```
-You can see Luigi Client in action by running the [Angular example application](/test/e2e-test-application).
+
+<!-- add-attribute:class:success -->
+> **TIP:** You can see Luigi Client in action by running the [Angular example application](/test/e2e-test-application).
## Usage
This section contains additional instructions and guidelines you can use to work with Luigi Client.
-### Generate documentation
-Validate and generate documentation using npm:
+### Luigi Client API
-```bash
-npm install
-npm run docu
+In the [Luigi Client API](/docs/luigi-client-api.md), you will find functions that will allow you to configure your micro frontend in the context of the main Luigi Core app.
+
+For example, if you want to use the function `addInitListener` in order to display a Luigi [alert](/docs/luigi-client-api.md#showalert) in the micro frontend, it can look like this:
+
+```js
+useEffect(() => {
+ const LuigiClient = require('@luigi-project/client');
+ LuigiClient.addInitListener(function(context) {
+ LuigiClient.showAlert({text: 'Hello'});
+ });
+ }, []);
```
+
| 7 |
diff --git a/books/serializers.py b/books/serializers.py @@ -13,11 +13,19 @@ class UserSerializer(serializers.ModelSerializer):
email_hash = md5(obj.email.strip().lower().encode()).hexdigest()
return 'https://www.gravatar.com/avatar/%s?size=100' % email_hash
+class BookDetailSerializer(serializers.ModelSerializer):
+ class Meta:
+ model = Book
+ fields = ('author','title','subtitle',
+ 'description','image_url','isbn','number_of_pages',
+ 'publication_date','publisher')
+
class BookCopySerializer(serializers.ModelSerializer):
user = UserSerializer()
+ book = BookDetailSerializer()
class Meta:
model = BookCopy
- fields = ('id', 'user')
+ fields = ('id', 'user', 'book')
class LibraryBookSerializer(serializers.ModelSerializer):
id = serializers.ReadOnlyField()
| 0 |
diff --git a/src/language/jhi-translate.directive.ts b/src/language/jhi-translate.directive.ts */
import { Input, Directive, ElementRef, OnChanges, OnInit, Optional, OnDestroy } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
-import { ReplaySubject } from 'rxjs';
+import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { JhiConfigService } from '../config.service';
@@ -33,7 +33,7 @@ export class JhiTranslateDirective implements OnChanges, OnInit, OnDestroy {
@Input() jhiTranslate: string;
@Input() translateValues: any;
- private readonly directiveDestroyed = new ReplaySubject<never>(1);
+ private readonly directiveDestroyed = new Subject<never>();
constructor(private configService: JhiConfigService, private el: ElementRef, @Optional() private translateService: TranslateService) {}
| 4 |
diff --git a/slick.editors.js b/slick.editors.js if (FloatEditor.AllowEmptyValue) {
if (!rtn && rtn !==0) { rtn = ''; }
} else {
- rtn |= 0;
+ rtn = rtn || 0;
}
var decPlaces = getDecimalPlaces();
| 1 |
diff --git a/demo/vue-viewer/src/router.js b/demo/vue-viewer/src/router.js import Vue from 'vue';
import Router from 'vue-router';
import Upload from './views/Upload.vue';
-import Home from './views/Home';
import Viewer from './views/Viewer.vue';
import ViewerText from './views/ViewerText.vue';
import ViewerMarkdown from './views/ViewerMarkdown.vue';
| 2 |
diff --git a/generators/info/index.js b/generators/info/index.js @@ -101,27 +101,6 @@ module.exports = class extends BaseGenerator {
});
},
- checkBower() {
- const done = this.async();
- shelljs.exec('bower -v', { silent: true }, (err, stdout, stderr) => {
- if (!err) {
- console.log(`bower: ${stdout}`);
- }
- done();
- });
- },
-
- checkGulp() {
- const done = this.async();
- shelljs.exec('gulp -v', { silent: true }, (err, stdout, stderr) => {
- if (!err) {
- console.log('gulp:');
- console.log(stdout);
- }
- done();
- });
- },
-
checkYeoman() {
const done = this.async();
shelljs.exec('yo --version', { silent: true }, (err, stdout, stderr) => {
| 2 |
diff --git a/language/de.json b/language/de.json }
},
{
- "label": "Default text track",
- "description": "If left empty or not matching any of the text tracks the first text track will be used as the default."
+ "label": "Vorgegebene Textspur",
+ "description": "Wenn das Feld leer gelassen wird oder keiner Spurbeschriftung entspricht, wird die erste Textspur verwendet."
}
]
}
| 0 |
diff --git a/common/lib/client/realtimepresence.ts b/common/lib/client/realtimepresence.ts @@ -239,7 +239,8 @@ class RealtimePresence extends Presence {
}
}
- get = ((function (this: RealtimePresence, params: RealtimePresenceParams, callback: StandardCallback<PresenceMessage[]>): void | Promise<PresenceMessage[]> {
+ // Return type is any to avoid conflict with base Presence class
+ get(this: RealtimePresence, params: RealtimePresenceParams, callback: StandardCallback<PresenceMessage[]>): any {
if(!callback && typeof(params) == 'function')
params = callback;
@@ -280,7 +281,7 @@ class RealtimePresence extends Presence {
returnMembers(members);
}
});
- }) as any)
+ }
history(params: RealtimeHistoryParams | null, callback: PaginatedResultCallback<PresenceMessage>): void | Promise<PaginatedResult<PresenceMessage>> {
Logger.logAction(Logger.LOG_MICRO, 'RealtimePresence.history()', 'channel = ' + this.name);
| 7 |
diff --git a/.eslintrc.js b/.eslintrc.js 'use strict'
-const { env, platform } = process
-
module.exports = {
extends: [
'eslint:recommended',
@@ -36,12 +34,6 @@ module.exports = {
// until we switch to ES6 modules (which use 'strict mode' implicitly)
strict: ['error', 'global'],
- // TODO FIXME workaround for git + prettier line ending issue on Travis for Windows OS:
- ...(env.TRAVIS &&
- platform === 'win32' && {
- 'prettier/prettier': ['error', { endOfLine: 'auto' }],
- }),
-
// TODO FIXME turn off temporary, to make eslint pass
'class-methods-use-this': 'off',
'no-console': 'off',
| 2 |
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js @@ -436,18 +436,17 @@ RED.popover = (function() {
return {
create: createPopover,
tooltip: function(target,content, action) {
+ var label = function() {
var label = content;
if (action) {
- label = function() {
- var label = content;
var shortcut = RED.keyboard.getShortcut(action);
if (shortcut && shortcut.key) {
label = $('<span>'+content+' <span class="red-ui-popover-key">'+RED.keyboard.formatKey(shortcut.key, true)+'</span></span>');
}
- return label;
}
+ return label;
}
- return RED.popover.create({
+ var popover = RED.popover.create({
tooltip: true,
target:target,
trigger: "hover",
@@ -456,6 +455,14 @@ RED.popover = (function() {
content: label,
delay: { show: 750, hide: 50 }
});
+ popover.setContent = function(newContent) {
+ content = newContent;
+ }
+ popover.setAction = function(newAction) {
+ action = newAction;
+ }
+ return popover;
+
},
menu: function(options) {
var list = $('<ul class="red-ui-menu"></ul>');
| 11 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -734,6 +734,8 @@ metaversefile.setApi({
if (in_front) {
app.position.copy(localPlayer.position).add(new THREE.Vector3(0, 0, -1).applyQuaternion(localPlayer.quaternion));
app.quaternion.copy(localPlayer.quaternion);
+ app.updateMatrixWorld();
+ app.lastMatrix.copy(app.matrixWorld);
}
if (start_url) {
(async () => {
| 0 |
diff --git a/components/core/Link/LinkCard.js b/components/core/Link/LinkCard.js +import * as React from "react";
import * as System from "~/components/system";
import * as Styles from "~/common/styles";
import * as Constants from "~/common/constants";
@@ -5,7 +6,7 @@ import * as SVG from "~/common/svg";
import LinkTag from "~/components/core/Link/LinkTag";
-import { LoaderSpinner } from "~/components/system/components/Loaders";
+import { P3 } from "~/components/system/components/Typography";
import { css } from "@emotion/react";
const STYLES_CARD = css`
@@ -24,6 +25,11 @@ const STYLES_CARD = css`
}
`;
+const STYLES_TAG_CONTAINER = (theme) => css`
+ color: ${theme.semantic.textGray};
+ ${Styles.HORIZONTAL_CONTAINER_CENTERED}
+`;
+
const STYLES_FREEFORM_CARD = css`
max-height: 90%;
max-width: 90%;
@@ -69,12 +75,75 @@ const STYLES_BODY = css`
max-width: 600px;
`;
+const STYLES_LINK = (theme) => css`
+ display: block;
+ width: 100%;
+ ${Styles.LINK}
+ :hover small, .link_external_link {
+ color: ${theme.semantic.textGrayDark};
+ }
+
+ .link_external_link {
+ opacity: 0;
+ transition: opacity 0.3s;
+ }
+ :hover .link_external_link {
+ opacity: 1;
+ }
+`;
+
+const STYLES_SOURCE = css`
+ transition: color 0.4s;
+ max-width: 80%;
+`;
+
+const STYLES_SOURCE_LOGO = css`
+ height: 12px;
+ width: 12px;
+ border-radius: 4px;
+`;
+
export default function LinkCard({ file, isNFTLink }) {
const url = file.url;
const link = file.data.link;
const { image, name, body } = link;
if (isNFTLink) {
+ const faviconImgState = useImage({ src: link.logo });
+
+ const tag = (
+ <a
+ css={STYLES_LINK}
+ href={file.url}
+ target="_blank"
+ rel="noreferrer"
+ style={{ position: "relative", zIndex: 2 }}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <div css={STYLES_TAG_CONTAINER}>
+ {faviconImgState.error ? (
+ <SVG.Link height={12} width={12} style={{ marginRight: 4 }} />
+ ) : (
+ <img
+ src={link.logo}
+ alt="Link source logo"
+ style={{ marginRight: 4 }}
+ css={STYLES_SOURCE_LOGO}
+ />
+ )}
+ <P3 css={STYLES_SOURCE} as="small" color="textGray" nbrOflines={1}>
+ {link.source}
+ </P3>
+ <SVG.ExternalLink
+ className="link_external_link"
+ height={12}
+ width={12}
+ style={{ marginLeft: 4 }}
+ />
+ </div>
+ </a>
+ );
+
return (
<a
css={Styles.LINK}
@@ -87,7 +156,8 @@ export default function LinkCard({ file, isNFTLink }) {
<div css={STYLES_IMAGE_CONTAINER}>
<img src={image} css={Styles.IMAGE_FILL} style={{ maxHeight: "calc(100vh - 200px)" }} />
</div>
- <div css={[Styles.VERTICAL_CONTAINER, STYLES_TEXT_BOX]}>
+ <div css={[STYLES_TEXT_BOX]}>{tag}</div>
+ {/* <div css={[Styles.VERTICAL_CONTAINER, STYLES_TEXT_BOX]}>
<div css={STYLES_NAME}>
<System.H3>{name}</System.H3>
</div>
@@ -95,7 +165,7 @@ export default function LinkCard({ file, isNFTLink }) {
<System.P1>{body}</System.P1>
</div>
<LinkTag url={url} fillWidth={false} style={{ color: Constants.semantic.textGray }} />
- </div>
+ </div> */}
</div>
</a>
);
@@ -143,3 +213,29 @@ export default function LinkCard({ file, isNFTLink }) {
</div> */
}
}
+
+const useImage = ({ src, maxWidth }) => {
+ const [imgState, setImgState] = React.useState({
+ loaded: false,
+ error: true,
+ overflow: false,
+ });
+
+ React.useEffect(() => {
+ if (!src) setImgState({ error: true, loaded: true });
+
+ const img = new Image();
+ img.src = src;
+
+ img.onload = () => {
+ if (maxWidth && img.naturalWidth < maxWidth) {
+ setImgState((prev) => ({ ...prev, loaded: true, error: false, overflow: true }));
+ } else {
+ setImgState({ loaded: true, error: false });
+ }
+ };
+ img.onerror = () => setImgState({ loaded: true, error: true });
+ }, []);
+
+ return imgState;
+};
| 2 |
diff --git a/articles/support/index.md b/articles/support/index.md @@ -16,6 +16,10 @@ Auth0's public [discussion forum](https://ask.auth0.com) offers support for __al
## Support Center
+:::panel-info Pricing
+For pricing information on the various subscription plans, please see your [Account Settings]({$manage_url}/#/account/billing/subscription).
+:::
+
Additionally, paid subscribers can create a private ticket via [Support Center](https://support.auth0.com). All account administrators will be able to view and add comments to Support Center tickets. Support Center can be accessed by clicking on the **Get Support** link on the [dashboard](${manage_url}).
[Learn more about creating tickets with Support Center](/support/tickets)
@@ -25,7 +29,7 @@ Critical Production issues should always be reported via the [Support Center](ht
### Ticket Response Times
-Ticket response times will vary based on your support plan (shown below). Note that customers on non-paying trial or free subscriptions are not eligible for a support plan and should utilize the discussion forum. Non-paying customers may still raise a private ticket via the Support Center however there is no support response SLA and tickets will be answered on a best effort basis after prioritization of paying subscribers' tickets, generally resulting in a 2-5+ business day response.
+Ticket response times will vary based on your support plan (shown below). Note that customers on non-paying trial or free subscriptions are not eligible for a support plan and should utilize the discussion forum. Non-paying customers may still raise a private ticket via the Support Center. However, there is no support response SLA for these users, and tickets will be answered on a best effort basis after prioritization of paying subscribers' tickets. This generally means that the user will receive a response in a 2-5+ business days.
<table class="table">
<thead>
| 0 |
diff --git a/src/slider.js b/src/slider.js @@ -129,26 +129,26 @@ export default class Slider extends React.Component {
currentWidth = children[k].props.style.width
}
if (k >= children.length) break
- row.push(React.cloneElement(children[k], {style: {
+ row.push(React.cloneElement(children[k], {key: 100*i+10*j+k, style: {
width: `${100 / settings.slidesPerRow}%`,
display: 'inline-block'
}}))
}
newSlide.push((
- <div>
+ <div key={10*i+j}>
{row}
</div>
))
}
if (settings.variableWidth) {
newChildren.push((
- <div style={{ width: currentWidth }}>
+ <div key={i} style={{ width: currentWidth }}>
{newSlide}
</div>
))
} else {
newChildren.push((
- <div>
+ <div key={i}>
{newSlide}
</div>
))
| 2 |
diff --git a/packages/zoe/src/contracts/myFirstDapp.js b/packages/zoe/src/contracts/myFirstDapp.js @@ -66,11 +66,12 @@ export const makeContract = harden((zoe, terms) => {
}
function getOffer(inviteHandle) {
- for (const handle of [...sellInviteHandles, ...buyInviteHandles]) {
- if (inviteHandle === handle) {
+ if (
+ sellInviteHandles.includes(inviteHandle) ||
+ buyInviteHandles.includes(inviteHandle)
+ ) {
return flattenOffer(getActiveOffers([inviteHandle])[0]);
}
- }
return 'not an active offer';
}
| 14 |
diff --git a/generators/server/templates/src/main/java/package/security/oauth2/CustomClaimConverter.java.ejs b/generators/server/templates/src/main/java/package/security/oauth2/CustomClaimConverter.java.ejs @@ -31,6 +31,7 @@ import org.springframework.security.oauth2.jwt.MappedJwtClaimSetConverter;
import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver;
import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver;
import org.springframework.web.client.RestTemplate;
+import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
@@ -68,9 +69,10 @@ public class CustomClaimConverter implements Converter<Map<String, Object>, Map<
return claims;
}
Map<String, Object> convertedClaims = this.delegate.convert(claims);
- if (RequestContextHolder.getRequestAttributes() != null && ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()) != null) {
+ RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
+ if (attributes instanceof ServletRequestAttributes) {
// Retrieve and set the token
- String token = bearerTokenResolver.resolve(((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest());
+ String token = bearerTokenResolver.resolve(((ServletRequestAttributes) attributes).getRequest());
HttpHeaders headers = new HttpHeaders();
headers.set("Authorization", buildBearer(token));
| 2 |
diff --git a/php/rest/test/test_async.php b/php/rest/test/test_async.php @@ -4,7 +4,7 @@ namespace ccxt;
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
-include_once '../../../vendor/autoload.php';
+include_once 'vendor/autoload.php';
include_once 'test_trade.php';
include_once 'test_order.php';
include_once 'test_ohlcv.php';
@@ -59,8 +59,8 @@ $args = array_values(array_filter($argv, function ($option) { return strstr($opt
//-----------------------------------------------------------------------------
-foreach (\ccxt\rest\async\Exchange::$exchanges as $id) {
- $exchange = '\\ccxt\\async\\' . $id;
+foreach (Exchange::$exchanges as $id) {
+ $exchange = '\\ccxt\\rest\\async\\' . $id;
$exchanges[$id] = new $exchange();
}
| 13 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.215.15",
+ "version": "0.216.0",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js @@ -362,8 +362,7 @@ function addMembersToWorkspace(memberLogins, welcomeNote, policyID) {
];
API.write('AddMembersToWorkspace', {
- // employees: JSON.stringify(_.map(logins, login => ({email: login}))),
- employees: JSON.stringify(logins),
+ employees: JSON.stringify(_.map(logins, login => ({email: login}))),
welcomeNote,
policyID,
}, {optimisticData, successData, failureData});
| 4 |
diff --git a/app/controllers/copy_controller.js b/app/controllers/copy_controller.js @@ -180,6 +180,12 @@ function handleCopyFrom (logger) {
})
.on('end', () => requestEnded = true);
+ pgstream.on('error', (err) => {
+ metrics.end(null, err);
+ req.unpipe(pgstream);
+
+ return next(err);
+ });
if (isGzip) {
req
| 9 |
diff --git a/app/views/navbar.scala.html b/app/views/navbar.scala.html @@ -404,9 +404,9 @@ $(document).ready(function () {
}
});
- // Callback function for checking sign-in results
+ // Callback function for checking sign-in results.
function handleSignIn(data) {
- //this means that logging in failed, alert user of failure
+ // This means that logging in failed, alert user of failure.
if (typeof data == 'string'){
$('#incorrect-signin-alert').hide();
$('#incorrect-login-modal-alert').show();
@@ -419,32 +419,31 @@ $(document).ready(function () {
location.replace('/serviceHoursInstructions');
}
- //otherwise, reflect login changes on user's end
+ // Otherwise, reflect login changes on user's end.
var htmlString = $("#navbar-user-dropdown-list-signed-in").html();
htmlString = htmlString.replace(/__USERNAME__/g, data.username);
-
$("#navbar-user-dropdown-list").html(htmlString);
var path = window.location.pathname;
- // Toggle the sign-in modal
+ // Toggle the sign-in modal.
$('#sign-in-modal-container').modal('toggle');
if (path.includes("/audit") && svl) {
svl.user.setProperty('username', data.username);
- // Turn neighborhood name into a link
+ // Turn neighborhood name into a link.
svl.ui.status.neighborhoodName.parent().wrap('<a href="" target="_blank" id="status-neighborhood-link"></a>');
svl.ui.status.neighborhoodLink = $('#status-neighborhood-link');
var neighborhood = svl.neighborhoodContainer.getCurrentNeighborhood();
var href = "/dashboard" + "?regionId=" + neighborhood.getProperty("regionId");
svl.statusFieldNeighborhood.setHref(href);
- // init: noInit is a flag that prevents the init functions in main from running
- // Need root directory to prevent cursor icons from disappearing
+ // init: noInit is a flag that prevents the init functions in main from running.
+ // Need root directory to prevent cursor icons from disappearing.
Main({init: "noInit", rootDirectory: "/assets/javascripts/SVLabel/"})
.loadData(neighborhood, svl.taskContainer, svl.missionModel, svl.neighborhoodModel);
- // Prevent first-mission popups
+ // Prevent first-mission popups.
if (!svl.initialMissionInstruction) {
svl.initialMissionInstruction = new InitialMissionInstruction(svl.compass, svl.map,
svl.popUpMessage, svl.taskContainer, svl.labelContainer, svl.tracker
@@ -454,7 +453,7 @@ $(document).ready(function () {
svl.map.unbindPositionUpdate(svl.initialMissionInstruction._instructForGSVLabelDisappearing);
}
- // Append the link to the admin interface if it the user is admin
+ // Append the link to the admin interface if the user is an admin.
if (data.role === "Administrator" || data.role === "Owner") {
var adminLi = '<li role="presentation"><a href="@routes.AdminController.index" role="menuitem">Admin</a></li>';
$('#nav-user-menu').children('#dashboard-link').after(adminLi);
@@ -489,7 +488,7 @@ $(document).ready(function () {
var email = $('#sign-in-form #identifier')[0].value;
var password = $('#sign-in-form #passwordSignIn')[0].value;
- //if not a valid email address, do not submit form
+ // If not a valid email address, do not submit form.
if (!email) {
invalidSignInUpAlert(true, '@Messages("authenticate.error.missing.email")');
return false;
@@ -562,7 +561,7 @@ $(document).ready(function () {
errorMessage = "@Messages("authenticate.error.username.exists")"
}
}
- else{ // Some other Bad Request
+ else { // Some other Bad Request.
errorMessage = '@Messages("authenticate.error.generic")'
}
$('#incorrect-signup-alert').hide();
| 1 |
diff --git a/lib/node_modules/@stdlib/ndarray/array/docs/types/index.d.ts b/lib/node_modules/@stdlib/ndarray/array/docs/types/index.d.ts @@ -37,11 +37,6 @@ interface Options {
*/
order?: Order;
- /**
- * Array shape.
- */
- shape?: Shape;
-
/**
* Specifies how to handle indices which exceed array dimensions (default: 'throw').
*/
@@ -78,6 +73,63 @@ interface Options {
readonly?: boolean;
}
+/**
+* Interface describing function options.
+*/
+interface OptionsWithShape extends Options {
+ /**
+ * Array shape.
+ */
+ shape: Shape;
+
+ /**
+ * Data source.
+ *
+ * ## Notes
+ *
+ * - If provided along with a `buffer` argument, the argument takes precedence.
+ */
+ buffer?: ArrayLike<any>;
+}
+
+/**
+* Interface describing function options.
+*/
+interface OptionsWithBuffer extends Options {
+ /**
+ * Array shape.
+ */
+ shape?: Shape;
+
+ /**
+ * Data source.
+ *
+ * ## Notes
+ *
+ * - If provided along with a `buffer` argument, the argument takes precedence.
+ */
+ buffer: ArrayLike<any>;
+}
+
+/**
+* Interface describing function options.
+*/
+interface ExtendedOptions extends Options {
+ /**
+ * Array shape.
+ */
+ shape?: Shape;
+
+ /**
+ * Data source.
+ *
+ * ## Notes
+ *
+ * - If provided along with a `buffer` argument, the argument takes precedence.
+ */
+ buffer?: ArrayLike<any>;
+}
+
/**
* Returns a multidimensional array.
*
@@ -112,7 +164,7 @@ interface Options {
* var v = arr.get( 0 );
* // returns [ 1, 2 ]
*/
-declare function array( options: Options ): ndarray;
+declare function array( options: OptionsWithShape | OptionsWithBuffer ): ndarray; // tslint:disable-line:max-line-length
/**
* Returns a multidimensional array.
@@ -168,7 +220,7 @@ declare function array( options: Options ): ndarray;
* var v = arr.get( 0, 0 );
* // returns 1.0
*/
-declare function array( buffer: ArrayLike<any>, options?: Options ): ndarray;
+declare function array( buffer: ArrayLike<any>, options?: ExtendedOptions ): ndarray; // tslint:disable-line:max-line-length
// EXPORTS //
| 7 |
diff --git a/lib/plugins/input/elasticsearchHttp.js b/lib/plugins/input/elasticsearchHttp.js @@ -119,8 +119,17 @@ InputElasticsearchHttp.prototype.elasticSearchHttpHandler = function (req, res)
req.on('end', function endHandler () {
if (!reqInfo.isBulk) {
+ if (!bodyIn) {
+ return res.end()
+ }
// post to single
- var msg = JSON.parse(bodyIn)
+ var msg = {}
+ try {
+ msg = JSON.parse(bodyIn)
+ } catch (err) {
+ consoleLogger.error('Invalid JSON: ' + bodyIn)
+ return
+ }
msg._index = reqInfo.defaultIndex
msg._type = reqInfo.defaultType
return self.eventEmitter.emit('data.raw', safeStringify(msg), {
| 7 |
diff --git a/client/src/components/StepWizard/WizardCheckboxItem.js b/client/src/components/StepWizard/WizardCheckboxItem.js @@ -3,7 +3,7 @@ import React from "react";
import {Checkbox} from "antd-mobile";
import {theme, mq} from "constants/theme";
-const {white, lightGray, royalBlue} = theme.colors;
+const {white, lightGray, royalBlue, black} = theme.colors;
export const WizardCheckboxWrapper = styled.div`
margin: 4rem auto;
@@ -43,7 +43,7 @@ const CheckboxItemStyles = styled.div`
}
}
> .text {
- color: #000;
+ color: ${black};
flex-grow: 1;
margin-left: 2rem;
}
| 4 |
diff --git a/packages/gluestick-cli/watch.js b/packages/gluestick-cli/watch.js @@ -38,12 +38,11 @@ module.exports = (exitWithError) => {
gsDependenciesPath.forEach((e, i) => {
const packageName = gsPackages[i];
const convertFilePath = filePath => {
- const split = filePath.split(packageName);
return path.join(
process.cwd(),
'node_modules',
packageName,
- split[split.length - 1],
+ /packages\/[a-zA-Z-_]*\/(.*)/.exec(filePath)[1],
);
};
const watcher = chokidar.watch(`${e}/**/*`, {
| 9 |
diff --git a/src/routing/routing.html b/src/routing/routing.html ngeo-routing-feature-on-change="$ctrl.handleChange">
</ngeo-routing-feature>
</div>
- <button type="button" class="btn btn-default delete-via" ng-click="$ctrl.deleteVia(index)">
+ <button type="button" class="btn prime delete-via" ng-click="$ctrl.deleteVia(index)">
<span class="fa fa-trash"></span>
</button>
</div>
</div>
<div class="form-group fill">
- <button type="button" class="btn btn-default" ng-click="$ctrl.clearRoute()">
+ <button type="button" class="btn prime" ng-click="$ctrl.clearRoute()">
<span class="fa fa-trash"></span> <span translate>Clear</span>
</button>
- <button type="button" class="btn btn-default" ng-click="$ctrl.reverseRoute()">
+ <button type="button" class="btn prime" ng-click="$ctrl.reverseRoute()">
<span class="fa fa-exchange-alt"></span> <span translate>Reverse</span>
</button>
- <button type="button" class="btn btn-default" ng-click="$ctrl.addVia()">
+ <button type="button" class="btn prime" ng-click="$ctrl.addVia()">
<span class="fa fa-plus"></span> <span translate>Add via</span>
</button>
</div>
| 4 |
diff --git a/test/generator-base.spec.js b/test/generator-base.spec.js const expect = require('chai').expect;
-const jhiCore = require('jhipster-core');
const expectedFiles = require('./utils/expected-files');
const BaseGenerator = require('../generators/generator-base').prototype;
@@ -35,48 +34,6 @@ describe('Generator Base', () => {
});
});
});
- describe('getExistingEntities', () => {
- describe('when entities change on-disk', () => {
- before(() => {
- const entities = {
- Region: {
- fluentMethods: true,
- relationships: [],
- fields: [
- {
- fieldName: 'regionName',
- fieldType: 'String'
- }
- ],
- changelogDate: '20170623093902',
- entityTableName: 'region',
- dto: 'mapstruct',
- pagination: 'no',
- service: 'serviceImpl',
- angularJSSuffix: 'mySuffix'
- }
- };
- jhiCore.exportEntities({
- entities,
- forceNoFiltering: true,
- application: {}
- });
- BaseGenerator.getExistingEntities();
- entities.Region.fields.push({ fieldName: 'regionDesc', fieldType: 'String' });
- jhiCore.exportEntities({
- entities,
- forceNoFiltering: true,
- application: {}
- });
- });
- it('returns an up-to-date state', () => {
- expect(BaseGenerator.getExistingEntities().find(it => it.name === 'Region').definition.fields[1]).to.eql({
- fieldName: 'regionDesc',
- fieldType: 'String'
- });
- });
- });
- });
describe('getTableName', () => {
describe('when called with a value', () => {
it('returns a table name', () => {
| 2 |
diff --git a/index.js b/index.js @@ -1550,7 +1550,7 @@ Read more on https://git.io/JJc0W`);
desc.push('Arguments:');
desc.push('');
this._args.forEach((arg) => {
- desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name], descriptionWidth, width + 4));
+ desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name] || '', descriptionWidth, width + 4));
});
desc.push('');
}
| 11 |
diff --git a/bl-plugins/backup/js/backup.js b/bl-plugins/backup/js/backup.js @@ -19,7 +19,6 @@ jQuery(document).ready(function($) {
processData: false,
error: function(jqXHR, status, error) {
var data = jqXHR.responseJSON;
- console.log(error);
var alert = $("<div></div>").addClass("alert alert-danger").text(data.message);
$("#jsform .alert:not(.alert-primary)").remove();
| 2 |
diff --git a/lambda/fulfillment/lib/middleware/lex.js b/lambda/fulfillment/lib/middleware/lex.js @@ -269,7 +269,7 @@ function assembleLexV2Response(response) {
}
exports.assemble=function(request,response){
- if (request._clientType == "LEX.Slack.Text") {
+ if (request._clientType === "LEX.Slack.Text") {
response = slackifyResponse(response);
}
qnabot.log("filterButtons")
| 3 |
diff --git a/src/utils/decorators/input-label/input-label.js b/src/utils/decorators/input-label/input-label.js @@ -64,10 +64,7 @@ let InputLabel = (ComposedComponent) => class Component extends ComposedComponen
* @property
* @type {String|Boolean}
*/
- label: PropTypes.oneOfType([
- PropTypes.string,
- PropTypes.bool
- ]),
+ label: PropTypes.node,
/**
* Pass true to format the input/label inline
| 11 |
diff --git a/tsconfig.json b/tsconfig.json /* Modules */
"module": "node16" /* Specify what module code is generated. */,
"rootDir": "./" /* Specify the root folder within your source files. */,
+ "resolveJsonModule": true,
/* JavaScript Support */
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
| 12 |
diff --git a/examples/helloworld/hello.js b/examples/helloworld/hello.js @@ -6,7 +6,9 @@ Promise.all([System.import('pdfjs/display/api'),
System.import('pdfjs/display/network'),
System.resolve('pdfjs/worker_loader')])
.then(function (modules) {
- var api = modules[0], global = modules[1];
+ var api = modules[0], global = modules[1], network = modules[2];
+ api.setPDFNetworkStreamClass(network.PDFNetworkStream);
+
// In production, change this to point to the built `pdf.worker.js` file.
global.PDFJS.workerSrc = modules[3];
| 1 |
diff --git a/core/task-executor/lib/jobs/jobCreator.js b/core/task-executor/lib/jobs/jobCreator.js @@ -238,6 +238,7 @@ const createJobSpec = ({ algorithmName, resourceRequests, workerImage, algorithm
spec = applyAlgorithmImage(spec, algorithmImage);
spec = applyWorkerImage(spec, workerImage);
spec = applyEnvToContainer(spec, CONTAINERS.ALGORITHM, algorithmEnv);
+ spec = applyEnvToContainer(spec, CONTAINERS.ALGORITHM, { 'ALGORITHM_MEMORY': resourceRequests.requests.memory })
spec = applyEnvToContainer(spec, CONTAINERS.WORKER, workerEnv);
spec = applyEnvToContainer(spec, CONTAINERS.WORKER, { ALGORITHM_IMAGE: algorithmImage });
spec = applyEnvToContainer(spec, CONTAINERS.WORKER, { WORKER_IMAGE: workerImage });
| 0 |
diff --git a/src/encoded/schemas/mixins.json b/src/encoded/schemas/mixins.json "description": "A lab specific identifier to reference an object.",
"comment": "Current convention is colon separated lab name and lab identifier. (e.g. john-doe:42).",
"type": "string",
- "pattern": "^(?:alexander-hoffmann|alexander-rudensky|alexander-urban|ali-mortazavi|alkes-price|andrew-fire|anshul-kundaje|anton-valouev|axel-visel|barbara-wold|bill-noble|bin-yu|bing-ren|bradley-bernstein|brenton-graveley|charles-gersbach|chris-burge|christina-leslie|colin-dewey|david-gifford|david-gilbert|douglas-black|elliott-margulies|emery-bresnick|encode-awg|encode-consortium|encode-processing-pipeline|erez-lieberman|eric-lecuyer|eric-mendehall|ewan-birney|feng-yue|gene-yeo|george-stamatoyannopoulos|greg-cooper|gregory-crawford|guo-cheng-yuan|haiyan-huang|haiyuan-yu|howard-chang|j-michael-cherry|jason-ernst|jason-lieb|jay-shendure|jennifer-harrow|jeremy-luban|job-dekker|joe-ecker|john-lis|john-rinn|john-stamatoyannopoulos|jonathan-pritchard|joseph-costello|kenneth-offit|kevin-struhl|kevin-white|ladeana-hillier|laura-elnitski|len-pennacchio|leonard-lipovich|manolis-kellis|manuel-garber|maria-ciofani|mark-gerstein|mats-ljungman|matteo-pellegrini|michael-bassik|michael-beer|michael-hoffman|michael-snyder|morgan-giddings|nadav-ahituv|pardis-sabeti|paul-khavari|peggy-farnham|peter-bickel|peter-park|piero-carninci|rafael-irizarry|richard-myers|roadmap-epigenomics|rob-spitale|robert-klein|robert-waterston|roderic-guigo|ross-hardison|ryan-tewhey|scott-tenenbaum|sherman-weissman|souma-raychaudhuri|stephen-smale|sunduz-keles|susan-celniker|thomas-gingeras|thomas-tullius|tim-reddy|timothy-hubbard|ting-wang|tommi-jaakkola|unknown|valerie-reinke|vishwanath-iyer|w-james-kent|wei-wang|will-greenleaf|xiang-dong-fu|xiaole-shirley|xinshu-xiao|yi-xing|yijun-ruan|yin-shen|yoav-gilad|zhiping-weng|brian-oliver|david-macalpine|hugo-bellen|peter-cherbas|terry-orr-weaver|abby-dernburg|anthony-hyman|arshad-desai|david-miller|eric-lai|fabio-piano|frank-slack|gary-karpen|gregory-hannon|james-posakony|john-kim|julie-ahringer|kamran-ahmad|kris-gunsalus|lincoln-stein|michael-brent|michael-maccoss|mitzi-kuroda|nikolaus-rajewsky|norbert-perrimon|philip-green|sarah-elgin|steven-henikoff|steven-russell|susan-strome|vincenzo-pirrotta|MitaniLab|UofC-HGAC|wesley-hung|encode|modern|dnanexus|modencode|gencode|ggr|cgc|bloomington|dssc|gtex|pgp|biochain|promocell|nichd|lonza|allcells):[a-zA-Z\\d_$.+!*,()'-]+(?:\\s[a-zA-Z\\d_$.+!*,()'-]+)*$"
+ "pattern": "^(?:alexander-hoffmann|alexander-rudensky|alexander-urban|ali-mortazavi|alkes-price|andrew-fire|anshul-kundaje|anton-valouev|axel-visel|barbara-wold|bill-noble|bin-yu|bing-ren|bradley-bernstein|brenton-graveley|charles-gersbach|chris-burge|christina-leslie|colin-dewey|david-gifford|david-gilbert|douglas-black|elliott-margulies|emery-bresnick|encode-awg|encode-consortium|encode-processing-pipeline|erez-aiden|erez-lieberman|eric-lecuyer|eric-mendehall|ewan-birney|feng-yue|gene-yeo|george-stamatoyannopoulos|greg-cooper|gregory-crawford|guo-cheng-yuan|haiyan-huang|haiyuan-yu|howard-chang|j-michael-cherry|jason-ernst|jason-lieb|jay-shendure|jennifer-harrow|jeremy-luban|job-dekker|joe-ecker|john-lis|john-rinn|john-stamatoyannopoulos|jonathan-pritchard|joseph-costello|kenneth-offit|kevin-struhl|kevin-white|ladeana-hillier|laura-elnitski|len-pennacchio|leonard-lipovich|manolis-kellis|manuel-garber|maria-ciofani|mark-gerstein|mats-ljungman|matteo-pellegrini|michael-bassik|michael-beer|michael-hoffman|michael-snyder|morgan-giddings|nadav-ahituv|pardis-sabeti|paul-khavari|peggy-farnham|peter-bickel|peter-park|piero-carninci|rafael-irizarry|richard-myers|roadmap-epigenomics|rob-spitale|robert-klein|robert-waterston|roderic-guigo|ross-hardison|ryan-tewhey|scott-tenenbaum|sherman-weissman|souma-raychaudhuri|stephen-smale|sunduz-keles|susan-celniker|thomas-gingeras|thomas-tullius|tim-reddy|timothy-hubbard|ting-wang|tommi-jaakkola|unknown|valerie-reinke|vishwanath-iyer|w-james-kent|wei-wang|will-greenleaf|xiang-dong-fu|xiaole-shirley|xinshu-xiao|yi-xing|yijun-ruan|yin-shen|yoav-gilad|zhiping-weng|brian-oliver|david-macalpine|hugo-bellen|peter-cherbas|terry-orr-weaver|abby-dernburg|anthony-hyman|arshad-desai|david-miller|eric-lai|fabio-piano|frank-slack|gary-karpen|gregory-hannon|james-posakony|john-kim|julie-ahringer|kamran-ahmad|kris-gunsalus|lincoln-stein|michael-brent|michael-maccoss|mitzi-kuroda|nikolaus-rajewsky|norbert-perrimon|philip-green|sarah-elgin|steven-henikoff|steven-russell|susan-strome|vincenzo-pirrotta|MitaniLab|UofC-HGAC|wesley-hung|encode|modern|dnanexus|modencode|gencode|ggr|cgc|bloomington|dssc|gtex|pgp|biochain|promocell|nichd|lonza|allcells):[a-zA-Z\\d_$.+!*,()'-]+(?:\\s[a-zA-Z\\d_$.+!*,()'-]+)*$"
}
}
},
| 0 |
diff --git a/src/TemplateLayout.js b/src/TemplateLayout.js @@ -208,7 +208,7 @@ class TemplateLayout extends TemplateContent {
} catch (e) {
debugDev("Clearing TemplateCache after error.");
templateCache.clear();
- reject(e);
+ throw e;
}
}
| 14 |
diff --git a/app/controllers/carto/api/visualizations_controller.rb b/app/controllers/carto/api/visualizations_controller.rb @@ -127,8 +127,6 @@ module Carto
@visualization.send_like_email(current_viewer, vis_url)
end
- event_properties = { user_id: current_viewer_id, visualization_id: @visualization.id, action: 'like' }
-
render_jsonp(
id: @visualization.id,
likes: @visualization.likes.count,
@@ -143,8 +141,6 @@ module Carto
@visualization.remove_like_from(current_viewer_id)
- event_properties = { user_id: current_viewer_id, visualization_id: @visualization.id, action: 'remove' }
-
render_jsonp(id: @visualization.id, likes: @visualization.likes.count, liked: false)
end
| 2 |
diff --git a/articles/libraries/when-to-use-lock.md b/articles/libraries/when-to-use-lock.md @@ -120,7 +120,7 @@ Although you cannot alter Lock's behavior, you can configure several [basic opti

-### When to Use Lock
+### When to use Lock
Consider using **Lock** if:
@@ -144,7 +144,7 @@ With Auth0's library for [Web](/libraries/auth0js), or with native libraries for
Unlike with **Lock**, neither of these options includes a user interface. You will have complete control over the user experience for signup and authentication flow, and for the UI aspects of layout, look and feel, branding, internationalization, RTL support, and more.
-### When to Use a Custom User Interface
+### When to use a custom user interface
Consider implementing a custom user interface in conjunction with an Auth0 library or the Authentication API for your app if:
@@ -156,5 +156,4 @@ Consider implementing a custom user interface in conjunction with an Auth0 libra
## See Also
-* [What is SSO](/sso)
-* [Single Sign On with username/password logins](/sso/sso-username-password)
+You can also see specific examples of the usage of both Lock and Auth0 SDKs for a wide variety of programming languages and platforms in our [Quickstarts](/). These guides may further assist you in your decision about which to use for your specific app needs.
| 0 |
diff --git a/test/sanity/nw_util.py b/test/sanity/nw_util.py @@ -78,7 +78,7 @@ def install_native_modules():
if sys.platform in ('win32', 'cygwin'):
nw_gyp_path = os.path.join(os.path.dirname(nw_gyp_path),
'node_modules', 'nw-gyp', 'bin', 'nw-gyp.js')
- npm_cmdline = [npm_path, 'install', '--msvs_version=2015']
+ npm_cmdline = [npm_path, 'install', '--msvs_version=2017']
print "nw_gyp: ", nw_gyp_path
print "npm_path: ", npm_path
| 4 |
diff --git a/app/scripts/controllers/token-rates.js b/app/scripts/controllers/token-rates.js @@ -39,7 +39,7 @@ class TokenRatesController {
*/
async fetchExchangeRate (address) {
try {
- const response = await fetch(`https://exchanges.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
+ const response = await fetch(`https://metamask.dev.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
const json = await response.json()
return json && json.length ? json[0].averagePrice : 0
} catch (error) { }
| 4 |
diff --git a/inspect.js b/inspect.js @@ -83,6 +83,21 @@ function parseQuery(queryString) {
return query;
}
+const isValidManifest = str => {
+ if (!str) return false;
+ try {
+ const json = JSON.parse(str);
+ const {name, xr_type: xrType, start_url: startUrl} = json;
+ if (!name || !xrType || !startUrl) return false;
+ if (!(/^[a-z0-9][a-z0-9-._~]*$/.test(name))) return false;
+ } catch (err) {
+ console.warn('invalid manifest json', err);
+ return false;
+ }
+
+ return true;
+};
+
const _makeScene = () => {
const renderer = new THREE.WebGLRenderer({
// canvas: pe.domElement,
@@ -286,6 +301,8 @@ const _renderPackage = async p => {
saveManifestButton.addEventListener('click', async () => {
const manifest = document.getElementById('manifest').value;
console.log('save manifest', manifest);
+ if (!isValidManifest(manifest)) return window.alert('Error: invalid manifest!');
+
const compileRawData = [{
url: '/manifest.json',
type: 'application/json',
@@ -307,6 +324,7 @@ const _renderPackage = async p => {
pe.reset();
await pe.add(p);
await _renderPackage(p);
+ openTab(0);
});
// files
| 0 |
diff --git a/packages/bitcore-lib-doge/test/hdprivatekey.js b/packages/bitcore-lib-doge/test/hdprivatekey.js @@ -13,8 +13,8 @@ var BufferUtil = bitcore.util.buffer;
var HDPrivateKey = bitcore.HDPrivateKey;
var Base58Check = bitcore.encoding.Base58Check;
-var xprivkey = 'Ltpv71G8qDifUiNetP6nmxPA5STrUVmv2J9YSmXajv8VsYBUyuPhvN9xCaQrfX2wo5xxJNtEazYCFRUu5FmokYMM79pcqz8pcdo4rNXAFPgyB4k';
-var json = '{"network":"livenet","depth":0,"fingerPrint":876747070,"parentFingerPrint":0,"childIndex":0,"chainCode":"873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508","privateKey":"e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35","checksum":-1489917903,"xprivkey":"Ltpv71G8qDifUiNetP6nmxPA5STrUVmv2J9YSmXajv8VsYBUyuPhvN9xCaQrfX2wo5xxJNtEazYCFRUu5FmokYMM79pcqz8pcdo4rNXAFPgyB4k"}';
+var xprivkey = 'dgpv51eADS3spNJh9Gjth94XcPwAczvQaDJs9rqx11kvxKs6r3Ek8AgERHhjLs6mzXQFHRzQqGwqdeoDkZmr8jQMBfi43b7sT3sx3cCSk5fGeUR';
+var json = '{"network":"livenet","depth":0,"fingerPrint":876747070,"parentFingerPrint":0,"childIndex":0,"chainCode":"873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508","privateKey":"e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35","checksum":-1564833822,"xprivkey":"dgpv51eADS3spNJh9Gjth94XcPwAczvQaDJs9rqx11kvxKs6r3Ek8AgERHhjLs6mzXQFHRzQqGwqdeoDkZmr8jQMBfi43b7sT3sx3cCSk5fGeUR"}';
describe('HDPrivate key interface', function() {
/* jshint maxstatements: 50 */
var expectFail = function(func, error) {
@@ -93,8 +93,8 @@ describe('HDPrivate key interface', function() {
});
describe('public key', function() {
- var testnetKey = new HDPrivateKey('ttpv96BtqegdxXcePuExhVwms6Q9nPtEbFKC2txyjpTpycy6dSt7AuAfK3EHTSsf3qKgkD2kGfmRbMXvM8tkcV4i4GF3uU6fewDoAnXdzMVL99i');
- var livenetKey = new HDPrivateKey('Ltpv71G8qDifUiNetcgj3gpe5PerjX2sK9yVfFFMbmxsBXGGyUwdKsJConpcJhEPH5x9E4HH5EA8U8hSTkSVnYvUpW7fWhfun8d7LwSSSt6Tecx');
+ var testnetKey = new HDPrivateKey('tprv8gbXMN21rnoHSFnYp9U1KDjxt6eQNXufff7Asxrr3Ti9FrMXK1i2YWNdEH85mdRigEKgMRk9KF2PJo3VU6pGJypc1UnyiBKxJ3ZwKynLgJp');
+ var livenetKey = new HDPrivateKey('dgpv51eADS3spNJh9Gjth94XcPwAczvQaDJs9rqx11kvxKs6r3Ek8AgERHhjLs6mzXQFHRzQqGwqdeoDkZmr8jQMBfi43b7sT3sx3cCSk5fGeUR');
it('matches the network', function() {
testnetKey.publicKey.network.should.equal(Networks.testnet);
@@ -264,7 +264,7 @@ describe('HDPrivate key interface', function() {
});
describe('conversion to/from buffer', function() {
- var str = 'Ltpv71G8qDifUiNetP6nmxPA5STrUVmv2J9YSmXajv8VsYBUyuPhvN9xCaQrfX2wo5xxJNtEazYCFRUu5FmokYMM79pcqz8pcdo4rNXAFPgyB4k';
+ var str = 'dgpv51eADS3spNJh9Gjth94XcPwAczvQaDJs9rqx11kvxKs6r3Ek8AgERHhjLs6mzXQFHRzQqGwqdeoDkZmr8jQMBfi43b7sT3sx3cCSk5fGeUR';
it('should roundtrip to/from a buffer', function() {
var priv = new HDPrivateKey(str);
var toBuffer = priv.toBuffer();
@@ -283,9 +283,8 @@ describe('HDPrivate key interface', function() {
'childIndex': 0,
'chainCode': '873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508',
'privateKey': 'e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35',
- 'checksum': -1489917903,
- 'xprivkey': 'Ltpv71G8qDifUiNetP6nmxPA5STrUVmv2J9YSmXajv8VsYBUyuPhvN9xCaQrfX2wo5' +
- 'xxJNtEazYCFRUu5FmokYMM79pcqz8pcdo4rNXAFPgyB4k'
+ 'checksum': -1564833822,
+ 'xprivkey': 'dgpv51eADS3spNJh9Gjth94XcPwAczvQaDJs9rqx11kvxKs6r3Ek8AgERHhjLs6mzXQFHRzQqGwqdeoDkZmr8jQMBfi43b7sT3sx3cCSk5fGeUR'
};
it('toObject leaves no Buffer instances', function() {
var privKey = new HDPrivateKey(xprivkey);
| 3 |
diff --git a/html/components/modal.stories.js b/html/components/modal.stories.js @@ -78,17 +78,27 @@ export const defaultStory = () => {
</p>
</div>
- <footer class="sprk-o-Stack__item">
- <button class="sprk-c-Button sprk-u-mrm">
- Confirm
- </button>
-
+ <footer
+ class="
+ sprk-o-Stack__item
+ sprk-c-Modal__footer
+ sprk-o-Stack
+ sprk-o-Stack--split@xxs
+ sprk-o-Stack--end-row">
<button
- class="sprk-c-Button sprk-c-Button--tertiary"
+ class="
+ sprk-c-Button
+ sprk-c-Button--tertiary
+ sprk-u-mrm
+ sprk-o-Stack__item"
data-sprk-modal-cancel="exampleChoiceModal"
>
Cancel
</button>
+
+ <button class="sprk-c-Button sprk-o-Stack__item">
+ Confirm
+ </button>
</footer>
</div>
</div>
| 3 |
diff --git a/src/components/dashboard/Dashboard.js b/src/components/dashboard/Dashboard.js @@ -39,6 +39,7 @@ import Send from './Send'
import SendConfirmation from './SendConfirmation'
import SendLinkSummary from './SendLinkSummary'
import SendQRSummary from './SendQRSummary'
+import { ACTION_SEND } from './utils/sendReceiveFlow'
const log = logger.child({ from: 'Dashboard' })
@@ -295,14 +296,17 @@ export default createStackNavigator({
Who: {
screen: Who,
path: ':action/Who',
+ params: { action: ACTION_SEND },
},
Amount: {
screen: Amount,
path: ':action/Amount',
+ params: { action: ACTION_SEND },
},
Reason: {
screen: Reason,
path: ':action/Reason',
+ params: { action: ACTION_SEND },
},
ReceiveSummary,
Confirmation: {
| 0 |
diff --git a/src/apps.json b/src/apps.json "url": "/shop/catalog/browse\\?sessid=",
"website": "http://1and1.com"
},
- "Google Analytics Enhanced eCommerce": {
- "cats": [
- 10
- ],
- "js": {
- "gaplugins.EC": ""
- },
- "icon": "Google Analytics.svg",
- "script": "google-analytics\\.com\\/plugins\\/ua\\/ec\\.js",
- "website": "https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce"
- },
"1C-Bitrix": {
"cats": [
1
"script": "1c-bitrix",
"website": "http://www.1c-bitrix.ru"
},
- "animate.css": {
- "cats": [
- 18
- ],
- "html": [
- "<link [^>]+(?:/([\\d.]+)/)?animate\\.(?:min\\.)?css\\;version:\\1"
- ],
- "website": "https://daneden.github.io/animate.css/"
- },
"2z Project": {
"cats": [
1
},
"website": "http://2zproject-cms.ru"
},
- "3DM": {
- "cats": [
- 19
- ],
- "html": "<title>3ware 3DM([\\d\\.]+)?\\;version:\\1",
- "icon": "3DM.png",
- "implies": "3ware",
- "website": "http://www.3ware.com"
- },
"3dCart": {
"cats": [
1,
"script": "(?:twlh(?:track)?\\.asp|3d_upsell\\.js)",
"website": "http://www.3dcart.com"
},
+ "3DM": {
+ "cats": [
+ 19
+ ],
+ "html": "<title>3ware 3DM([\\d\\.]+)?\\;version:\\1",
+ "icon": "3DM.png",
+ "implies": "3ware",
+ "website": "http://www.3ware.com"
+ },
"3ware": {
"cats": [
22
"implies": "PHP",
"website": "http://www.ampcms.org"
},
+ "animate.css": {
+ "cats": [
+ 18
+ ],
+ "html": [
+ "<link [^>]+(?:/([\\d.]+)/)?animate\\.(?:min\\.)?css\\;version:\\1"
+ ],
+ "website": "https://daneden.github.io/animate.css/"
+ },
"AOLserver": {
"cats": [
22
"icon": "ActOn.png",
"website": "http://act-on.com"
},
- "Prebid": {
- "cats": [
- 36
- ],
- "icon": "Prebid.png",
- "js": {
- "pbjs": "",
- "PREBID_TIMEOUT": ""
- },
- "script": [
- "/prebid\\.js",
- "adnxs\\.com/[^\"]*(?:prebid|/pb\\.js)"
- ],
- "website": "http://prebid.org"
- },
"AdInfinity": {
"cats": [
36
"icon": "Cloudera.png",
"website": "http://www.cloudera.com"
},
+ "CNV Platform": {
+ "cats": [
+ 1
+ ],
+ "cookies": {
+ "cnv_session": ""
+ },
+ "icon": "CNV.png",
+ "implies": "Laravel",
+ "website": "https://cnv.vn"
+ },
"CodeIgniter": {
"cats": [
18
"icon": "Debian.png",
"website": "http://debian.org"
},
- "PHPDebugBar": {
- "cats": [
- 47
- ],
- "js": {
- "phpdebugbar": "",
- "PhpDebugBar": ""
- },
- "script": [
- "debugbar.*\\.js"
- ],
- "icon": "phpdebugbar.png",
- "website": "http://phpdebugbar.com/"
- },
"Decorum": {
"cats": [
22
},
"website": "https://whatcd.github.io/Gazelle/"
},
+ "Genexus": {
+ "cats": [
+ 18,
+ 19
+ ],
+ "icon": "genexus.png",
+ "website": "https://www.genexus.com",
+ "js": {
+ "gx.evt": ""
+ },
+ "html": "<[^>]+class=\"gxp-page\"",
+ "script": "/gxp\\.js"
+ },
"Gentoo": {
"cats": [
28
"script": "google-analytics\\.com\\/(?:ga|urchin|(analytics))\\.js\\;version:\\1?UA:",
"website": "http://google.com/analytics"
},
+ "Google Analytics Enhanced eCommerce": {
+ "cats": [
+ 10
+ ],
+ "js": {
+ "gaplugins.EC": ""
+ },
+ "icon": "Google Analytics.svg",
+ "script": "google-analytics\\.com\\/plugins\\/ua\\/ec\\.js",
+ "website": "https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce"
+ },
"Google App Engine": {
"cats": [
22
"url": "^https?://sites\\.google\\.com",
"website": "http://sites.google.com"
},
- "CNV Platform": {
- "cats": [
- 1
- ],
- "cookies": {
- "cnv_session": ""
- },
- "icon": "CNV.png",
- "implies": "Laravel",
- "website": "https://cnv.vn"
- },
"Google Tag Manager": {
"cats": [
42
"script": "/phenomic\\.browser\\.[a-f0-9]+\\.js",
"website": "https://phenomic.io/"
},
+ "PHPDebugBar": {
+ "cats": [
+ 47
+ ],
+ "js": {
+ "phpdebugbar": "",
+ "PhpDebugBar": ""
+ },
+ "script": [
+ "debugbar.*\\.js"
+ ],
+ "icon": "phpdebugbar.png",
+ "website": "http://phpdebugbar.com/"
+ },
"PHPoole": {
"cats": [
57
"icon": "Powergap.png",
"website": "http://powergap.de"
},
+ "Prebid": {
+ "cats": [
+ 36
+ ],
+ "icon": "Prebid.png",
+ "js": {
+ "pbjs": "",
+ "PREBID_TIMEOUT": ""
+ },
+ "script": [
+ "/prebid\\.js",
+ "adnxs\\.com/[^\"]*(?:prebid|/pb\\.js)"
+ ],
+ "website": "http://prebid.org"
+ },
"Prefix-Free": {
"cats": [
19
},
"icon": "Woosa.png",
"website": "https://woosa.nl"
- },
- "Genexus": {
- "cats": [
- 18,
- 19
- ],
- "icon": "genexus.png",
- "website": "https://www.genexus.com",
- "js": {
- "gx.evt": ""
- },
- "html": "<[^>]+class=\"gxp-page\"",
- "script": "/gxp\\.js"
}
},
"categories": {
| 5 |
diff --git a/src/js/libcs/OpDrawing.js b/src/js/libcs/OpDrawing.js @@ -134,7 +134,7 @@ eval_helper.drawarc = function(args, modifs, df) {
if (!List._helper.isAlmostReal(List.turnIntoCSList([a, b, c]))) return nada;
// modifs handling
- Render2D.handleModifs(modifs, Render2D.conicModifs);
+ Render2D.handleModifs(modifs, df === "D" ? Render2D.lineModifs : Render2D.conicModifs);
Render2D.preDrawCurve();
var abcdet = List.det3(a, b, c);
| 11 |
diff --git a/lib/convert.js b/lib/convert.js @@ -6,10 +6,10 @@ var sdk = require('postman-collection'),
$RefParser = require('json-schema-ref-parser');
async = require('async');
-async function resolveOpenApiSpec(openapi){
- var resolvedSchema = await $RefParser.dereference(openapi);
- return resolvedSchema;
-}
+// async function resolveOpenApiSpec(openapi){
+// var resolvedSchema = await $RefParser.dereference(openapi);
+// return resolvedSchema;
+// }
var converter = {
@@ -27,6 +27,11 @@ var converter = {
}
},
+ resolveOpenApiSpec: async function(openapi){
+ var resolvedSchema = await $RefParser.dereference(openapi);
+ return resolvedSchema;
+ },
+
convert: function (data, callback){
// console.log("tuhin",data);
var validation = util.parseSpec(data),
@@ -36,6 +41,7 @@ var converter = {
description,
contact,
folderTree,
+ noVarUrl,
deRefObj = {},
baseUri;
@@ -51,6 +57,10 @@ var converter = {
openapi.baseUrl = openapi.servers[0].url;
openapi.baseUrlVariables = openapi.servers[0].variables;
+ // handling path templating in request url if any
+ openapi.baseUrl = openapi.baseUrl.replace(/{/g, ':').replace(/}/g, '');
+
+
// creating a new instance of the collection
this.POSTMAN.collection = new sdk.Collection({
info: {
@@ -59,13 +69,31 @@ var converter = {
},
});
- // @todo have to add the base url in a collection variable
- this.POSTMAN.collection.variables.add(new sdk.Variable({
- id: 'base-url',
- value: openapi.baseUrl,
- type: 'string',
- description: openapi.servers[0].description,
- }));
+ // adding the collection variables for all the necessary root level variables
+
+ this.POSTMAN.collection = util.addCollectionVariables(
+ this.POSTMAN.collection,
+ openapi.baseUrlVariables,
+ 'base-url',
+ openapi.baseUrl
+ );
+
+ // if(openapi.baseUrlVariables){
+ // _.forOwn(openapi.baseUrlVariables, (value, key) => {
+ // this.POSTMAN.collection.variables.add(new sdk.Variable({
+ // id: key,
+ // value: value.default || '',
+ // description: value.description + (value.enum || ''),
+ // }));
+ // });
+ // } else {
+ // this.POSTMAN.collection.variables.add(new sdk.Variable({
+ // id: 'base-url',
+ // value: openapi.baseUrl,
+ // type: 'string',
+ // description: openapi.servers[0].description,
+ // }));
+ // }
// adding the collection description
description = openapi.info.description;
@@ -77,33 +105,26 @@ var converter = {
this.POSTMAN.collection.describe(description);
- // getting the folder structure from the paths object
-
// the main callback exists in an asynchronous context,
- resolveOpenApiSpec(openapi).then((fromResolve) => {
+ this.resolveOpenApiSpec(openapi).then((fromResolve) => {
let status = {};
- folderTree = util.generateTrieFromPaths(fromResolve);
+ let folderObj = util.generateTrieFromPaths(fromResolve);
status = {
spec: fromResolve,
- tree: folderTree,
- }
-
- fs.writeFileSync('trie.json', JSON.stringify(status.tree, null, 4), (err) => {
- if(err){
- console.log('not done');
- } else {
- console.log('done');
+ tree: folderObj.tree,
}
+ // adding path level variables which would be used
+ if(folderObj.variables){
+ _.forEach(folderObj.variables, (collectionVariable) => {
+ this.POSTMAN.collection = util.addCollectionVariables(
+ this.POSTMAN.collection,
+ collectionVariable,
+ 'path-level-uri'
+ );
});
-
- fs.writeFileSync('data.json', JSON.stringify(status.spec, null, 4), (err) => {
- if(err){
- console.log('not done');
- } else {
- console.log('done');
}
- });
+
this.generateCollection(status);
callback({
result: true,
@@ -114,8 +135,11 @@ var converter = {
result: false,
reason: err,
});
- })
+ });
}
}
-module.exports = converter;
+// module.exports = converter;
+module.exports = function(json, callback){
+ converter.convert(json, callback);
+}
| 5 |
diff --git a/src/index.js b/src/index.js @@ -989,7 +989,7 @@ class Offline {
// Promise support
if (!this.requests[requestId].done) {
- if (x && typeof x.then === 'function' && typeof x.catch === 'function') x.then(lambdaContext.succeed).catch(lambdaContext.fail).then(cleanup, cleanup);
+ if (x && typeof x.then === 'function') x.then(lambdaContext.succeed).catch(lambdaContext.fail).then(cleanup, cleanup);
else if (x instanceof Error) lambdaContext.fail(x);
}
}
| 2 |
diff --git a/services/importer/spec/doubles/connector.rb b/services/importer/spec/doubles/connector.rb @@ -88,6 +88,7 @@ end
class DummyConnectorProviderWithModifiedDate < DummyConnectorProvider
metadata id: 'dummy_with_modified_date', name: 'DummyWithModifiedDate'
+ @copies = []
LAST_MODIFIED = Time.new(2020, 6, 16)
def remote_data_updated?
@modified_at.blank? || last_modified > @modified_at
| 1 |
diff --git a/android/build.gradle b/android/build.gradle @@ -32,8 +32,5 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
- maven {
- url "https://maven.google.com"
- }
}
}
| 2 |
diff --git a/src/urlhandlers/xhr_url_handler.js b/src/urlhandlers/xhr_url_handler.js @@ -29,13 +29,14 @@ function handleLoad(request, cb) {
}
function handleFail(request, cb, isTimeout) {
+ const statusCode = !isTimeout ? request.status : 408; // Request timeout
const msg = isTimeout
- ? `XHRURLHandler: Request timed out after ${request.timeout} ms.`
- : `XHRURLHandler: ${request.statusText}`;
+ ? `XHRURLHandler: Request timed out after ${
+ request.timeout
+ } ms (${statusCode})`
+ : `XHRURLHandler: ${request.statusText} (${statusCode})`;
- cb(new Error(msg), null, {
- statusCode: !isTimeout ? request.status : 408 // Request timeout
- });
+ cb(new Error(msg), null, { statusCode });
}
function get(url, options, cb) {
| 0 |
diff --git a/lxc/executors/java b/lxc/executors/java cd /tmp/$2
cp code.code interim.java
-name=$(cat interim.java | sed -E 's/(public\s+class|interface)\s+([A-Za-z0-9]+)/\2/')
+name=$(grep -Po "(?<=\n|\A)\s*(public\s+)?(class|interface|enum)\s+\K([^\n\s{]+)" interim.java)
mv interim.java $name.java
timeout -s KILL 10 javac $name.java
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 java $name"
| 14 |
diff --git a/jdl/parsing/validator.ts b/jdl/parsing/validator.ts @@ -582,9 +582,6 @@ class JDLSyntaxValidatorVisitor extends BaseJDLCSTVisitorWithDefaults {
export default function performAdditionalSyntaxChecks(cst) {
const syntaxValidatorVisitor = new JDLSyntaxValidatorVisitor();
- // TODO: This method receives less arguments then it expects. This could be a bug.
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-expect-error
syntaxValidatorVisitor.visit(cst);
return syntaxValidatorVisitor.errors;
}
| 2 |
diff --git a/public/javascripts/Admin/src/Admin.js b/public/javascripts/Admin/src/Admin.js @@ -783,7 +783,7 @@ function Admin(_, $, c3, turf) {
// "height": 800,
"height": 300,
"width": 800,
- "mark": "line",
+ "mark": "area",
"data": {"values": data[0], "format": {"type": "json"}},
"encoding": {
"x": {
| 13 |
diff --git a/README.md b/README.md @@ -711,6 +711,15 @@ This will list folders with no committed files. To permanently delete those fold
git clean -df
```
+If these commands do not show/remove anything, try:
+
+```
+git clean -dxn
+git clean -dxf
+```
+
+(The [`-x` flag](https://git-scm.com/docs/git-clean) asks Git to look at ignored files a different way.)
+
**NOTE:** This will delete any files that have not been committed, so
if you have any work in progress that you do not want deleted, you will
need to commit those files before running `git clean -df`.
| 3 |
diff --git a/sirepo/template/srw.py b/sirepo/template/srw.py @@ -656,10 +656,10 @@ def get_application_data(data):
if data['method'] == 'compute_grazing_angle':
return _compute_grazing_angle(data['optical_element'])
elif data['method'] == 'compute_crl_characteristics':
- return _compute_crl_focus(_compute_crl_characteristics(data['optical_element'], data['photon_energy']))
+ return _compute_crl_focus(_compute_material_characteristics(data['optical_element'], data['photon_energy']))
elif data['method'] == 'compute_fiber_characteristics':
- return _compute_crl_characteristics(
- _compute_crl_characteristics(
+ return _compute_material_characteristics(
+ _compute_material_characteristics(
data['optical_element'],
data['photon_energy'],
prefix='external',
@@ -668,7 +668,7 @@ def get_application_data(data):
prefix='core',
)
elif data['method'] == 'compute_delta_atten_characteristics':
- return _compute_crl_characteristics(data['optical_element'], data['photon_energy'])
+ return _compute_material_characteristics(data['optical_element'], data['photon_energy'])
elif data['method'] == 'compute_crystal_init':
return _compute_crystal_init(data['optical_element'])
elif data['method'] == 'compute_crystal_orientation':
@@ -1084,7 +1084,7 @@ def _calculate_beam_drift(ebeam_position, source_type, undulator_type, undulator
return ebeam_position['drift']
-def _compute_crl_characteristics(model, photon_energy, prefix=''):
+def _compute_material_characteristics(model, photon_energy, prefix=''):
fields_with_prefix = pkcollections.Dict({
'material': 'material',
'refractiveIndex': 'refractiveIndex',
@@ -1188,6 +1188,8 @@ def _compute_crystal_init(model):
def _compute_crystal_orientation(model):
+ if not model['dSpacing']:
+ return model
parms_list = ['nvx', 'nvy', 'nvz', 'tvx', 'tvy']
try:
opCr = srwlib.SRWLOptCryst(
| 10 |
diff --git a/dev/components/components/data-table.vue b/dev/components/components/data-table.vue <div class="column group" style="margin-bottom: 50px">
<q-input v-model="config.title" float-label="Data Table Title" />
- <div class="column group gt-sm-row">
+ <div class="column group">
<q-checkbox v-model="config.refresh" label="Refresh" />
<q-checkbox v-model="config.columnPicker" label="Column Picker" />
<q-checkbox v-model="pagination" label="Pagination" />
<q-checkbox v-model="config.noHeader" label="No Header" />
</div>
- <div class="column gt-sm-row group">
+ <div class="column group">
<q-select
v-model="config.selection"
label="Selection"
| 1 |
diff --git a/articles/migrations/index.md b/articles/migrations/index.md @@ -21,8 +21,6 @@ During the grace period, customers are informed via dashboard notifications and
If you need help with the migration, create a ticket in our [Support Center](${env.DOMAIN_URL_SUPPORT}).
----
-
## Active Migrations
Current migrations are listed below, newest first.
@@ -45,13 +43,11 @@ If you are currently implementing login in your application with Lock v8, v9, or
If you have any questions, create a ticket in our [Support Center](${env.DOMAIN_URL_SUPPORT}).
----
+## Upcoming Endpoint Migrations
-## 2018 Upcoming Endpoint Migrations
+Based on customer feedback, we have adjusted our plans and will continue to maintain and support the below listed endpoints and features.
-::: note
-Based on customer feedback, we have adjusted our plans and will continue to maintain and support the below listed proprietary endpoints. We will also publish guidance on the most effective ways to transition your applications to standards-based protocols. In the event that we need to make security enhancements to any of these legacy endpoints, we will promptly announce timeframes and guidelines for any required changes.
-:::
+We will publish guidance for each of the below scenarios on how to transition your applications to standards-based protocols. If we need to make security enhancements to any of these legacy endpoints which would require more urgency, we will promptly announce timeframes and guidelines for any required changes.
### Resource Owner Support for oauth/token Endpoint
@@ -61,7 +57,7 @@ Based on customer feedback, we have adjusted our plans and will continue to main
Support was introduced for [Resource Owner Password](/api/authentication#resource-owner-password) to the [/oauth/token](/api/authentication#authorization-code) endpoint earlier this year.
-The current [/oauth/ro](/api/authentication#resource-owner) and [/oauth/access_token](/api/authentication#social-with-provider-s-access-token) endpoints will be deprecated at some point in the future.
+The current [/oauth/ro](/api/authentication#resource-owner) and [/oauth/access_token](/api/authentication#social-with-provider-s-access-token) endpoints will be deprecated in 2018.
#### Am I affected by the change?
| 3 |
diff --git a/source/ua/UA.js b/source/ua/UA.js @@ -184,9 +184,11 @@ export default {
Property: O.UA.canU2F
Type: Boolean
- Does the browser support U2F?
+ Does the browser probably support U2F?
*/
- // TODO: Find a way of detecting this rather than hardcoding
- // For now, referencing http://caniuse.com/#feat=u2f
- canU2F: browser === 'chrome' && version >= 41,
+ // See http://caniuse.com/#feat=u2f
+ // Chrome 41+ supports it but exposes no obvious global; Firefox has it
+ // disabled by default but if enabled by security.webauth.u2f exposes a
+ // global called U2F.
+ canU2F: ( browser === 'chrome' && version >= 41 ) || !!window.U2F,
};
| 7 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -9,6 +9,11 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
where X.Y.Z is the semver of most recent plotly.js release.
+## [1.54.3] -- 2020-06-16
+### Fixed
+ - Fix `autosize` case of hidden div with non-px size [#4925]
+
+
## [1.54.2] -- 2020-06-10
### Changed
- Bump `regl` dependency to v1.6.1 [#4881]
| 3 |
diff --git a/semantics.json b/semantics.json "strong",
"em",
"del",
- "a"
+ "a",
+ "code"
],
"label": "Message"
},
"strong",
"em",
"del",
- "a"
+ "a",
+ "code"
],
"label": "Message"
},
| 0 |
diff --git a/Source/Scene/Camera.js b/Source/Scene/Camera.js @@ -369,9 +369,7 @@ Camera.prototype._updateCameraChanged = function () {
}
var headingChangedPercentage =
- (Math.abs(camera._changedHeading - currentHeading) /
- ((camera._changedHeading + currentHeading) / 2)) *
- 100;
+ Math.abs(camera._changedHeading - currentHeading) / Math.PI;
if (headingChangedPercentage > percentageChanged) {
camera._changed.raiseEvent(headingChangedPercentage);
| 3 |
diff --git a/packages/web/src/components/basic/ReactiveComponent.js b/packages/web/src/components/basic/ReactiveComponent.js @@ -48,7 +48,7 @@ class ReactiveComponent extends Component {
// set query for internal component
if (this.internalComponent && this.props.defaultQuery) {
- const { query, ...queryOptions } = this.props.defaultQuery;
+ const { query, ...queryOptions } = this.props.defaultQuery();
if (queryOptions) {
this.props.setQueryOptions(this.internalComponent, queryOptions, false);
@@ -124,7 +124,7 @@ ReactiveComponent.propTypes = {
URLParams: types.boolRequired,
showFilter: types.bool,
filterLabel: types.string,
- defaultQuery: types.selectedValues,
+ defaultQuery: types.func,
react: types.react,
children: types.children,
};
| 3 |
diff --git a/src/background/utils/tabs.js b/src/background/utils/tabs.js @@ -30,17 +30,17 @@ Object.assign(commands, {
// only incognito storeId may be specified when opening in an incognito window
const { incognito, windowId } = srcTab;
// Chrome can't open chrome-xxx: URLs in incognito windows
- const canOpenIncognito = !incognito || ua.isFirefox || !/^(chrome[-\w]*):/.test(url);
let storeId = srcTab.cookieStoreId;
if (storeId && !incognito) {
storeId = getContainerId(isInternal ? 0 : container) || storeId;
}
if (storeId) storeId = { cookieStoreId: storeId };
if (!url.startsWith('blob:')) {
- // URL needs to be expanded to check the protocol for 'chrome' below
+ // URL needs to be expanded for `canOpenIncognito` below
if (!isInternal) url = getFullUrl(url, srcUrl);
else if (!/^\w+:/.test(url)) url = browser.runtime.getURL(url);
}
+ const canOpenIncognito = !incognito || ua.isFirefox || !/^(chrome[-\w]*):/.test(url);
let newTab;
if (maybeInWindow && browser.windows && getOption('editorWindow')) {
const wndOpts = {
| 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.