code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/apps/antonclk/README.md b/apps/antonclk/README.md @@ -41,8 +41,8 @@ The main menu contains several settings covering Anton clock in general.
Weekday name depends on the current locale.
If seconds are shown, the weekday is never shown as there is not enough space on the watch face.
* **Show Weeknumber** - Week-number (ISO-8601) is shown. (default: Off)
-when weekday name "Off" it displays week #:<num>
-when weekday name "On": weekday name is cut at 6th position and .#<week num> is added
+If "Show Weekday" is "Off" the week-number is displayed as week #:<num>.
+If "Show Weekday" is "On" the weekday name is cut at 6th position and .#<week num> is added.
If seconds are shown, the week number is never shown as there is not enough space on the watch face.
* **Vector font** - Use the built-in vector font for dates and weekday.
This can improve readability.
| 3 |
diff --git a/editor.js b/editor.js @@ -2882,6 +2882,12 @@ sacks3.vrm`,
.setFromAxisAngle(new THREE.Vector3(0, 1, 0), -Math.PI/2),
contentId: 188,
},
+ {
+ position: new THREE.Vector3(3, 3, -9),
+ quaternion: new THREE.Quaternion()
+ .setFromAxisAngle(new THREE.Vector3(0, 1, 0), -Math.PI/2),
+ contentId: 'https://avaer.github.io/sakura/manifest.json',
+ },
/* {
position: new THREE.Vector3(-3, 1.5, -1),
quaternion: new THREE.Quaternion(),
| 0 |
diff --git a/modules/experimental-layers/src/bezier-curve-layer/README.md b/modules/experimental-layers/src/bezier-curve-layer/README.md @@ -24,9 +24,11 @@ Each point is defined as an array of three numbers: `[x, y, z]`.
Each point is defined as an array of three numbers: `[x, y, z]`.
-##### `getColor` (Function, optional)
+##### `getColor` (Function|Array, optional)
-- Default: `d => d.color`
+- Default: `[0, 0, 0, 255]`
-Called for each data object to retreive stroke colors.
-Returns an array in the form of `[r, g, b]`.
+The rgba color of each object, in `r, g, b, [a]`. Each component is in the 0-255 range.
+
+* If an array is provided, it is used as the color for all objects.
+* If a function is provided, it is called on each object to retrieve its color.
| 3 |
diff --git a/source/wrapper/reports/SECURITY.md b/source/wrapper/reports/SECURITY.md @@ -114,8 +114,6 @@ Wrapper.swap(Types.Order) (Full.sol#456-506) ignores return value by external ca
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#unused-return
```
-The WETH contract that is used is known contract with its behavior well understood. The WETH contract will either return true or revert if there is a failure. As far as the code describes, there is no way that false could be returned or that true would be returned without the specified amount of WETH tokens transferred.
-
## Notes
- When deploying a Wrapper contract, we recommend using the [canonical WETH contracts](https://blog.0xproject.com/canonical-weth-migration-8a7ab6caca71).
| 2 |
diff --git a/token-metadata/0x066798d9ef0833ccc719076Dab77199eCbd178b0/metadata.json b/token-metadata/0x066798d9ef0833ccc719076Dab77199eCbd178b0/metadata.json "symbol": "SAKE",
"address": "0x066798d9ef0833ccc719076Dab77199eCbd178b0",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/components/Marketing/index.js b/components/Marketing/index.js @@ -10,7 +10,7 @@ import Cover from './Cover'
import Offers from './Offers'
import PreviewForm from './PreviewForm'
-import { STATS_POLL_INTERVAL_MS } from '../../lib/constants'
+import { CDN_FRONTEND_BASE_URL, STATS_POLL_INTERVAL_MS } from '../../lib/constants'
import {
Button,
@@ -128,7 +128,12 @@ const styles = {
const MarketingPage = ({ me, t, crowdfundingName, data }) => (
<Fragment>
- <Cover image={{src: '/static/cover.jpg', srcMobile: '/static/cover_mobile.jpg'}}>
+ <Cover
+ image={{
+ src: `${CDN_FRONTEND_BASE_URL}/static/cover.jpg`,
+ srcMobile: `${CDN_FRONTEND_BASE_URL}/static/cover_mobile.jpg`
+ }}
+ >
<div {...styles.cta}>
<Interaction.H1 {...styles.coverHeadline}>
<RawHtml
| 4 |
diff --git a/lib/repository.js b/lib/repository.js @@ -207,17 +207,18 @@ function performRebase(
/* In the case of FF merges and a beforeFinishFn, this will fail
* when looking for 'rewritten' so we need to handle that case.
*/
- function readRebaseMetadataFile(fileName, determineExistance) {
- const fullPath = path.join(repository.path(), "rebase-merge", fileName);
- if (determineExistance && !fse.existsSync(fullPath)) {
- return Promise.resolve(null);
- }
-
+ function readRebaseMetadataFile(fileName, continueOnError) {
return fse.readFile(
- fullPath,
+ path.join(repository.path(), "rebase-merge", fileName),
{ encoding: "utf8" }
)
- .then(fp.trim);
+ .then(fp.trim)
+ .catch(function(err) {
+ if (continueOnError) {
+ return null;
+ }
+ throw err;
+ });
}
function calcHeadName(input) {
| 14 |
diff --git a/packages/idyll-document/src/index.js b/packages/idyll-document/src/index.js @@ -136,7 +136,7 @@ class Wrapper extends React.PureComponent {
render() {
return (
- <span style={{backgroundColor: 'deepskyblue'}}>
+ <span>
{
React.Children.map(this.props.children, c => {
return React.cloneElement(c, {...this.state});
| 2 |
diff --git a/renderer/components/measurement/RawDataContainer.js b/renderer/components/measurement/RawDataContainer.js @@ -40,7 +40,7 @@ const StyledCloseButton = styled(MdClose)`
const RawDataContainer = ({ rawData, isOpen, onClose }) => {
const props = useSpring({
- from: { bottom: -6000 },
+ from: { bottom: -2000 },
to: { bottom: isOpen ? 0 : -2000 }
})
@@ -73,7 +73,7 @@ const RawDataContainer = ({ rawData, isOpen, onClose }) => {
}
return (
- <AnimatedWrapper bottom={props.bottom} left right>
+ <AnimatedWrapper style={props}>
<Flex flexDirection='column' flexWrap='wrap'>
<Box width={1} mb={2}>
<Flex justifyContent='space-between' alignItems='center' bg='gray3'>
| 1 |
diff --git a/pages/community.js b/pages/community.js @@ -4,12 +4,10 @@ import * as Actions from "~/common/actions";
import * as System from "~/components/system";
import { css, keyframes } from "@emotion/react";
-import { SceneUtils } from "three";
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
import WebsitePrototypeHeader from "~/components/core/NewWebsitePrototypeHeader";
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
-import CodeBlock from "~/components/system/CodeBlock";
const SLATE_CORE_TEAM = [
{
@@ -378,47 +376,6 @@ const STYLES_SLATE_CARD_EFFECTS = css`
}
`;
-const STYLES_FEATURE_CARD_WRAPPER = css`
- width: 33%;
- height: auto;
- padding-right: 24px;
- :nth-last-child() {
- padding-right: 0px;
- }
-
- @media (max-width: ${Constants.sizes.tablet}px) {
- width: 100%;
- height: auto;
- margin-bottom: 32px;
- }
-
- @media (max-width: ${Constants.sizes.mobile}px) {
- width: 100%;
- height: auto;
- margin-bottom: 32px;
- }
-`;
-
-const STYLES_FEATURE_CARD = css`
- margin: 24px auto;
- padding: 16px;
- border-radius: 8px;
- background-color: #f2f4f8;
- box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.1);
-
- @media (max-width: ${Constants.sizes.tablet}px) {
- width: 100%;
- height: auto;
- margin-bottom: 32px;
- }
-
- @media (max-width: ${Constants.sizes.mobile}px) {
- width: 100%;
- height: auto;
- margin-bottom: 32px;
- }
-`;
-
const STYLES_CONTRIBUTION_CARD = css`
margin-left: 33.3%;
width: 66.6%;
@@ -433,16 +390,6 @@ const STYLES_CONTRIBUTION_CARD = css`
}
`;
-const STYLES_FEATURE_TEXT = css`
- font-family: ${Constants.font.text};
- font-weight: 400;
- font-size: ${Constants.typescale.lvl1};
- letter-spacing: -0.011rem;
- line-height: 1.5;
- margin: 8px 0 0 0;
- color: ${Constants.system.slate};
-`;
-
const STYLES_CONTRIBUTION_TEXT = css`
font-family: ${Constants.font.text};
font-weight: 400;
| 2 |
diff --git a/src/platform/web/ui/general/LazyListView.js b/src/platform/web/ui/general/LazyListView.js @@ -43,9 +43,7 @@ class ItemRange {
}
containsIndex(idx) {
- // TODO: Replace by lastIndex
- // TODO: Should idx be <= since lastIndex is not rendered?
- return idx >= this.topCount && idx <= (this.topCount + this.renderCount);
+ return idx >= this.topCount && idx < this.lastIndex;
}
expand(amount) {
| 7 |
diff --git a/services/importer/lib/importer/connector_runner.rb b/services/importer/lib/importer/connector_runner.rb @@ -82,14 +82,6 @@ module CartoDB
@tracker || lambda { |state| state }
end
- def georeference
- georeferencer = Georeferencer.new(@job.db, @job.table_name, {}, 'cdb_importer', @job)
-
- job.log 'Georeferencing...'
- georeferencer.run
- job.log 'Georeferenced'
- end
-
def visualizations
# This method is needed to make the interface of ConnectorRunner compatible with Runner
[]
| 3 |
diff --git a/src/lib/wf_convert.erl b/src/lib/wf_convert.erl @@ -419,6 +419,8 @@ qs_revdecode([C | Rest], Acc) ->
qs_revdecode(Rest, [C | Acc]).
+json_encode(Data) when is_map(Data) ->
+ json_encode(maps:to_list(Data));
json_encode(Data) ->
nitro_mochijson2:encode(add_json_struct(Data)).
| 11 |
diff --git a/packages/idyll-document/test/component.js b/packages/idyll-document/test/component.js +import fs from 'fs';
+import { join } from 'path';
import React from 'react';
import Enzyme, { mount, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
import * as components from 'idyll-components';
-
import IdyllDocument from '../src/';
-import { translate } from '../src/utils'
-import ReactJsonSchema from '../src/utils/schema2element';
-import ast from './fixtures/ast.json'
-import schema from './fixtures/schema.json'
+
+const fixture = f => fs.readFileSync(join(__dirname, `fixtures/${f}`), 'utf8');
describe('IdyllDocument', () => {
- it('creates an IdyllDocument', () => {
- expect(shallow(
- <IdyllDocument ast={ast} components={components} />
- ).contains(<h1>Welcome to Idyll</h1>)).toBe(true);
+ let src, srcDoc, ast, astDoc;
+
+ beforeEach(() => {
+ src = fixture('src.idl');
+ ast = JSON.parse(fixture('ast.json'));
+ srcDoc = shallow(<IdyllDocument src={src} components={components} />);
+ astDoc = shallow(<IdyllDocument ast={ast} components={components} />);
+ });
+
+ it('can be constructed with ast prop', () => {
+ const doc = new IdyllDocument({ ast, components });
+ expect(doc.props.ast).toBeDefined();
+ });
+
+ it('can be constructed with src prop', () => {
+ const doc = new IdyllDocument({ src, components });
+ expect(doc.props.src).toBeDefined();
+ });
+
+ // TODO: compare docs directly once Victory is deterministic
+ it('treats src and ast props equivalently', () => {
+ const header = <h1>Welcome to Idyll</h1>;
+ const code = <code>[var name:"x" value:1 /]</code>;
+
+ expect(srcDoc.contains(header)).toBe(true);
+ expect(srcDoc.contains(code)).toBe(true);
+
+ expect(astDoc.contains(header)).toBe(true);
+ expect(astDoc.contains(code)).toBe(true);
+ });
+
+ it('wraps the right components', () => {
+ expect(astDoc.find('Wrapper').length).toBe(7);
+ });
+
+ it('wraps both of the charts', () => {
+ expect(srcDoc.find('Wrapper Chart').length).toBe(2);
});
});
| 7 |
diff --git a/token-metadata/0x6ff313FB38d53d7A458860b1bf7512f54a03e968/metadata.json b/token-metadata/0x6ff313FB38d53d7A458860b1bf7512f54a03e968/metadata.json "symbol": "MRO",
"address": "0x6ff313FB38d53d7A458860b1bf7512f54a03e968",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/js/coinone.js b/js/coinone.js @@ -243,7 +243,7 @@ module.exports = class coinone extends Exchange {
'format': 'json',
}, params));
let trades = result['completeOrders'];
- return this.parseTrades (trades, symbol);
+ return this.parseTrades (trades, market);
}
async cancelOrder (id, symbol = undefined, params = {}) {
| 1 |
diff --git a/doc/develop/conformance_rules.md b/doc/develop/conformance_rules.md @@ -320,6 +320,7 @@ communication to/from an iframe hosted on the same domain as the page containing
the iframe. However, be sure to get a security review to allow usage of this.
+
{: #expose}
### @expose
| 7 |
diff --git a/README.md b/README.md @@ -29,89 +29,82 @@ GET https://api.spacexdata.com/v2/launches/latest
```json
{
- "flight_number": 55,
+ "flight_number": 56,
"launch_year": "2018",
- "launch_date_unix": 1517949900,
- "launch_date_utc": "2018-02-06T20:45:00Z",
- "launch_date_local": "2018-02-06T15:45:00-05:00",
+ "launch_date_unix": 1519309020,
+ "launch_date_utc": "2018-02-22T14:17:00Z",
+ "launch_date_local": "2018-02-22T06:17:00-08:00",
"rocket": {
- "rocket_id": "falconheavy",
- "rocket_name": "Falcon Heavy",
+ "rocket_id": "falcon9",
+ "rocket_name": "Falcon 9",
"rocket_type": "FT",
"first_stage": {
"cores": [
{
- "core_serial": "B1033",
- "flight": 1,
- "block": 3,
- "reused": false,
- "land_success": false,
- "landing_type": "ASDS",
- "landing_vehicle": "OCISLY"
- },
- {
- "core_serial": "B1025",
- "flight": 2,
- "block": 2,
- "reused": true,
- "land_success": true,
- "landing_type": "RTLS",
- "landing_vehicle": "LZ-1"
- },
- {
- "core_serial": "B1023",
+ "core_serial": "B1038",
"flight": 2,
- "block": 2,
+ "block": 3,
"reused": true,
- "land_success": true,
- "landing_type": "RTLS",
- "landing_vehicle": "LZ-1"
+ "land_success": null,
+ "landing_type": null,
+ "landing_vehicle": null
}
]
},
"second_stage": {
"payloads": [
{
- "payload_id": "Tesla Roadster",
+ "payload_id": "Paz",
+ "reused": false,
+ "customers": [
+ "HisdeSAT"
+ ],
+ "payload_type": "Satellite",
+ "payload_mass_kg": 1350,
+ "payload_mass_lbs": 2976.2,
+ "orbit": "LEO"
+ },
+ {
+ "payload_id": "Microsat-2a, -2b",
"reused": false,
"customers": [
"SpaceX"
],
"payload_type": "Satellite",
- "payload_mass_kg": null,
- "payload_mass_lbs": null,
- "orbit": "Heliocentric orbit"
+ "payload_mass_kg": 800,
+ "payload_mass_lbs": 1763.7,
+ "orbit": "LEO"
}
]
}
},
"telemetry": {
- "flight_club": "https://www.flightclub.io/result?code=FHD1"
+ "flight_club": "https://www.flightclub.io/result?code=PAZ1"
},
"reuse": {
- "core": false,
- "side_core1": true,
- "side_core2": true,
+ "core": true,
+ "side_core1": false,
+ "side_core2": false,
"fairings": false,
"capsule": false
},
"launch_site": {
- "site_id": "ksc_lc_39a",
- "site_name": "KSC LC 39A",
- "site_name_long": "Kennedy Space Center Historic Launch Complex 39A"
+ "site_id": "vafb_slc_4e",
+ "site_name": "VAFB SLC 4E",
+ "site_name_long": "Vandenberg Air Force Base Space Launch Complex 4E"
},
"launch_success": true,
"links": {
- "mission_patch": "https://i.imgur.com/24OyAPQ.png",
- "reddit_campaign": "https://www.reddit.com/r/spacex/comments/7hjp03/falcon_heavy_demo_launch_campaign_thread/",
- "reddit_launch": "https://www.reddit.com/r/spacex/comments/7vg63x/rspacex_falcon_heavy_test_flight_official_launch/",
+ "mission_patch": "https://i.imgur.com/6iUJpn4.png",
+ "reddit_campaign": "https://www.reddit.com/r/spacex/comments/7qnflk/paz_microsat2a_2b_launch_campaign_thread/",
+ "reddit_launch": "https://www.reddit.com/r/spacex/comments/7y0grt/rspacex_paz_official_launch_discussion_updates/",
"reddit_recovery": null,
- "reddit_media": "https://www.reddit.com/r/spacex/comments/7vimtm/rspacex_falcon_heavy_test_flight_media_thread/",
- "presskit": "http://www.spacex.com/sites/spacex/files/falconheavypresskit_v1.pdf",
- "article_link": "https://spaceflightnow.com/2018/02/07/spacex-debuts-worlds-most-powerful-rocket-sends-tesla-toward-the-asteroid-belt/",
- "video_link": "https://www.youtube.com/watch?v=wbSwFU6tY1c"
+ "reddit_media": "https://www.reddit.com/r/spacex/comments/7zdvop/rspacex_paz_media_thread_videos_images_gifs/",
+ "presskit": "http://www.spacex.com/sites/spacex/files/paz_press_kit_2.21.pdf",
+ "article_link": "https://spaceflightnow.com/2018/02/22/recycled-spacex-rocket-boosts-paz-radar-satellite-first-starlink-testbeds-into-orbit/",
+ "video_link": "https://www.youtube.com/watch?v=-p-PToD2URA"
},
- "details": "The launch was a success, and the side boosters landed simultaneously at adjacent ground pads. Drone ship landing of the central core failed. Final burn to heliocentric mars-earth orbit was successful after the second stage and payload passed through the Van Allen belts."
+ "details": "First launch attempt on the 21st scrubbed due to upper level winds. Will also carry two SpaceX test satellites for the upcoming Starlink constellation."
}
```
| 3 |
diff --git a/lib/assets/core/javascripts/cartodb3/editor/layers/layer-content-views/analyses/analysis-form-models/filter-form-model.js b/lib/assets/core/javascripts/cartodb3/editor/layers/layer-content-views/analyses/analysis-form-models/filter-form-model.js @@ -37,26 +37,26 @@ module.exports = BaseAnalysisFormModel.extend({
initialize: function () {
BaseAnalysisFormModel.prototype.initialize.apply(this, arguments);
- var nodeDefModel = this._layerDefinitionModel.findAnalysisDefinitionNodeModel(this.get('source'));
+ this._nodeDefModel = this._layerDefinitionModel.findAnalysisDefinitionNodeModel(this.get('source'));
this._columnData = new ColumnData({
column: this.get('column'),
type: this._getSelectedColumnType()
}, {
- nodeDefModel: nodeDefModel,
+ nodeDefModel: this._nodeDefModel,
configModel: this._configModel
});
this._columnRowData = new ColumnRowData({
column: this.get('column')
}, {
- nodeDefModel: nodeDefModel,
+ nodeDefModel: this._nodeDefModel,
configModel: this._configModel
});
this._columnOptions = new ColumnOptions({}, {
configModel: this._configModel,
- nodeDefModel: nodeDefModel
+ nodeDefModel: this._nodeDefModel
});
this.on('change:kind change:column', this._updateSchema, this);
@@ -149,8 +149,9 @@ module.exports = BaseAnalysisFormModel.extend({
options: this._getInputOptions(),
dialogMode: 'float',
editorAttrs: {
- showSearch: !this._isBoolean(),
- allowFreeTextInput: !this._isBoolean(),
+ column: 'column',
+ nodeDefModel: this._nodeDefModel,
+ configModel: this._configModel,
placeholder: _t('editor.layers.analysis-form.select-value')
}
},
@@ -171,7 +172,7 @@ module.exports = BaseAnalysisFormModel.extend({
_getInputType: function () {
var rows = this._columnRowData.getRows();
- return rows && rows.length ? 'Select' : 'Text';
+ return rows && rows.length ? 'LazySelect' : 'Text';
},
_getMinLabel: function () {
| 4 |
diff --git a/vis/js/bubbles.js b/vis/js/bubbles.js @@ -148,25 +148,16 @@ BubblesFSM.prototype = {
var self = this;
d3.selectAll('#headstart-chart circle').on("click", function (d) {
+ d3.event.stopPropagation();
mediator.publish("bubble_click", d, self);
- // self.zoomin(d);
});
- d3.selectAll('#headstart-chart circle').on("dblclick", function () {
- if (self.is("hoverbig") && mediator.is_zoomed && mediator.zoom_finished) {
- self.zoomout();
- }
+ d3.selectAll('#headstart-chart circle').on("touchstart", function (d) {
+ d3.event.stopPropagation();
+ mediator.publish("bubble_click", d, self);
});
- var tappedTwice = false;
- $('#headstart-chart circle').on("touchstart", function (event) {
- if(!tappedTwice) {
- tappedTwice = true;
- setTimeout( function() { tappedTwice = false; }, 300 );
- mediator.publish("bubble_click", d, self);
- return false;
- }
- event.preventDefault();
+ $('#headstart-chart circle').on("dblclick doubletap", function () {
if (self.is("hoverbig") && mediator.is_zoomed && mediator.zoom_finished) {
self.zoomout();
}
@@ -177,7 +168,7 @@ BubblesFSM.prototype = {
initMouseListenersForTitles: function () {
var this_bubble_fsm = this;
d3.selectAll("#area_title")
- .on("click", function () {
+ .on("touchstart", function () {
let d = this.parentElement.parentElement.previousElementSibling;
mediator.publish("bubble_mouseover", d3.select(d).data()[0], d, this_bubble_fsm);
})
@@ -901,3 +892,33 @@ StateMachine.create({
]
});
+
+(function($){
+
+ $.event.special.doubletap = {
+ bindType: 'touchend',
+ delegateType: 'touchend',
+
+ handle: function(event) {
+ var handleObj = event.handleObj,
+ targetData = jQuery.data(event.target),
+ now = new Date().getTime(),
+ delta = targetData.lastTouch ? now - targetData.lastTouch : 0,
+ delay = delay == null ? 300 : delay;
+
+ if (delta < delay && delta > 30) {
+ targetData.lastTouch = null;
+ event.type = handleObj.origType;
+ ['clientX', 'clientY', 'pageX', 'pageY'].forEach(function(property) {
+ event[property] = event.originalEvent.changedTouches[0][property];
+ })
+
+ // let jQuery handle the triggering of "doubletap" event handlers
+ handleObj.handler.apply(this, arguments);
+ } else {
+ targetData.lastTouch = now;
+ }
+ }
+ };
+
+})(jQuery);
| 7 |
diff --git a/buildtools/webpack.commons.js b/buildtools/webpack.commons.js @@ -18,7 +18,7 @@ const providePlugin = new webpack.ProvidePlugin({
const babelAnnotateUse = {
loader: 'babel-loader',
options: {
- presets: ['es2015'],
+ presets: ['env'],
plugins: ['@camptocamp/babel-plugin-angularjs-annotate'],
}
}
@@ -49,7 +49,7 @@ const olRule = {
loader: 'babel-loader',
options: {
babelrc: false,
- presets: ['es2015'],
+ presets: ['env'],
}
}
};
| 4 |
diff --git a/app/models/carto/account_type.rb b/app/models/carto/account_type.rb @@ -7,7 +7,7 @@ module Carto
FREE_2020 = 'Free 2020'.freeze
TRIAL_PLANS = [FREE_2020].freeze
- TRIAL_DURATION = { INDIVIDUAL => 14.days, FREE_2020 => 1.year }.freeze
+ TRIAL_DURATION = { FREE_2020 => 1.year }.freeze
FULLSTORY_SUPPORTED_PLANS = [FREE, PERSONAL30, INDIVIDUAL, FREE_2020].freeze
| 2 |
diff --git a/lib/views/commit-view.js b/lib/views/commit-view.js @@ -18,6 +18,13 @@ const temporaryAuthors = [
{ name: 'Josh Abernathy', login: 'joshaber', email: '[email protected]' },
]
+class FakeKeyDownEvent extends CustomEvent {
+ constructor(keyCode) {
+ super('keydown')
+ this.keyCode = keyCode
+ }
+}
+
export default class CommitView extends React.Component {
static focus = {
EDITOR: Symbol('commit-editor'),
@@ -75,14 +82,7 @@ export default class CommitView extends React.Component {
return
}
- const fakeEvent = {
- keyCode,
- preventDefault: () => { fakeEvent.defaultPrevented = true },
- stopPropagation: () => {},
- defaultPrevented: false,
- }
-
- if (this.refCoAuthorSelect.handleKeyDown) {
+ const fakeEvent = new FakeKeyDownEvent(keyCode)
this.refCoAuthorSelect.handleKeyDown(fakeEvent)
if (!fakeEvent.defaultPrevented) {
@@ -90,7 +90,6 @@ export default class CommitView extends React.Component {
}
}
}
- }
componentWillMount() {
this.scheduleShowWorking(this.props);
| 4 |
diff --git a/src/client/js/components/SearchTypeahead.js b/src/client/js/components/SearchTypeahead.js @@ -43,7 +43,7 @@ export default class SearchTypeahead extends React.Component {
componentDidMount() {
// **MEMO** This doesn't work at this time -- 2019.05.13 Yuki Takei
// It is needed to use Modal component of react-bootstrap when showing Move/Duplicate/CreateNewPage modals
- this.typeahead.getInstance().focus();
+ // this.typeahead.getInstance().focus();
}
componentWillUnmount() {
| 13 |
diff --git a/src/plots/cartesian/axis_format.js b/src/plots/cartesian/axis_format.js @@ -36,7 +36,9 @@ function descriptionOnlyNumbers(label) {
function descriptionWithDates(label) {
return descriptionOnlyNumbers(label) + [
' And for dates see: ' + DATE_FORMAT_LINK,
- 'We add one item to d3\'s date formatter: *%{n}f* for fractional seconds',
+ 'We add two items to d3\'s date formatter:',
+ '*%h* for half of the year as a decimal number as well as',
+ '*%{n}f* for fractional seconds',
'with n digits. For example, *2016-10-13 09:15:23.456* with tickformat',
'*%H~%M~%S.%2f* would display *09~15~23.46*'
].join(' ');
| 0 |
diff --git a/src/transit.js b/src/transit.js @@ -361,6 +361,21 @@ class Transit {
.catch(err => this.sendResponse(payload.sender, payload.id, ctx.meta, null, err));
}
+ _createErrFromPayload(packet) {
+ const err = new Error(packet.error.message + ` (NodeID: ${packet.sender})`);
+ // TODO create the original error object if it's available
+ // let constructor = errors[packet.error.name]
+ // let error = Object.create(constructor.prototype);
+ err.name = packet.error.name;
+ err.code = packet.error.code;
+ err.type = packet.error.type;
+ err.nodeID = packet.error.nodeID || packet.sender;
+ err.data = packet.error.data;
+ if (packet.error.stack)
+ err.stack = packet.error.stack;
+ return err;
+ }
+
/**
* Process incoming response of request
*
@@ -392,23 +407,9 @@ class Transit {
let pass = this.pendingResStreams.get(id);
if (pass) {
if (!packet.stream) {
-
- if (!packet.success) {
- // Recreate exception object
- let err = new Error(packet.error.message + ` (NodeID: ${packet.sender})`);
- // TODO create the original error object if it's available
- // let constructor = errors[packet.error.name]
- // let error = Object.create(constructor.prototype);
- err.name = packet.error.name;
- err.code = packet.error.code;
- err.type = packet.error.type;
- err.nodeID = packet.error.nodeID || packet.sender;
- err.data = packet.error.data;
- if (packet.error.stack)
- err.stack = packet.error.stack;
-
- pass.emit("error", err);
- }
+ // Received error?
+ if (!packet.success)
+ pass.emit("error", this._createErrFromPayload(packet));
// End of stream
pass.end();
@@ -438,20 +439,7 @@ class Transit {
this.removePendingRequest(id);
if (!packet.success) {
- // Recreate exception object
- let err = new Error(packet.error.message + ` (NodeID: ${packet.sender})`);
- // TODO create the original error object if it's available
- // let constructor = errors[packet.error.name]
- // let error = Object.create(constructor.prototype);
- err.name = packet.error.name;
- err.code = packet.error.code;
- err.type = packet.error.type;
- err.nodeID = packet.error.nodeID || packet.sender;
- err.data = packet.error.data;
- if (packet.error.stack)
- err.stack = packet.error.stack;
-
- req.reject(err);
+ req.reject(this._createErrFromPayload(packet));
} else {
req.resolve(packet.data);
}
@@ -654,6 +642,18 @@ class Transit {
});
}
+ _createPayloadErrorField(err) {
+ return {
+ name: err.name,
+ message: err.message,
+ nodeID: err.nodeID || this.nodeID,
+ code: err.code,
+ type: err.type,
+ stack: err.stack,
+ data: err.data
+ };
+ }
+
/**
* Send back the response of request
*
@@ -674,17 +674,9 @@ class Transit {
data: data
};
- if (err) {
- payload.error = {
- name: err.name,
- message: err.message,
- nodeID: err.nodeID || this.nodeID,
- code: err.code,
- type: err.type,
- stack: err.stack,
- data: err.data
- };
- }
+ if (err)
+ payload.error = this._createPayloadErrorField(err);
+
if (data && typeof data.on === "function" && typeof data.read === "function" && typeof data.pipe === "function") {
// Streaming response
payload.stream = true;
@@ -711,15 +703,7 @@ class Transit {
payload.stream = false;
if (err) {
payload.success = false;
- payload.error = {
- name: err.name,
- message: err.message,
- nodeID: err.nodeID || this.nodeID,
- code: err.code,
- type: err.type,
- stack: err.stack,
- data: err.data
- };
+ payload.error = this._createPayloadErrorField(err);
}
return this.publish(new Packet(P.PACKET_RESPONSE, nodeID, payload))
| 7 |
diff --git a/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-blockquote-rules.ts b/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-blockquote-rules.ts @@ -77,7 +77,7 @@ let a11yRulesBlockquote: Rule[] = [
// we're not already marked up
// Also skip if we're in a script - there's lots of quotes used in scripts
if ((dblQuotes != null || snglQuotes != null) &&
- RPTUtil.getAncestor(walkNode, ["blockquote", "q", "script"]) == null) {
+ RPTUtil.getAncestor(walkNode, ["blockquote", "q", "script", "style"]) == null) {
if (dblQuotes != null) {
for (let i = 0; passed && i < dblQuotes.length; ++i)
passed = RPTUtil.wordCount(dblQuotes[i]) < minWords;
@@ -109,6 +109,11 @@ let a11yRulesBlockquote: Rule[] = [
passed = checkAncestor == null || checkAncestor.nodeName.toLowerCase() != "body";
}
+ //if the violatedtext is longer than 69 chars, only keep the first 32, the " ... ", and the last 32 chars
+ if (!passed && violatedtext.length && violatedtext.length > 69) {
+ violatedtext = violatedtext.substring(0, 32) + " ... " + violatedtext.substring(violatedtext.length-32);
+ }
+
return passed ? RulePass("Pass_0") : RulePotential("Potential_1", [violatedtext]);
}
}
| 2 |
diff --git a/token-metadata/0x931ad0628aa11791C26FF4d41ce23E40C31c5E4e/metadata.json b/token-metadata/0x931ad0628aa11791C26FF4d41ce23E40C31c5E4e/metadata.json "symbol": "PGS",
"address": "0x931ad0628aa11791C26FF4d41ce23E40C31c5E4e",
"decimals": 8,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/apps/recorder/interface.html b/apps/recorder/interface.html <script>
var domTracks = document.getElementById("tracks");
-function saveKML(track,title) {
+function filterGPSCoordinates(track) {
// only include data points with GPS values
- track=track.filter(pt=>pt.Latitude!="" && pt.Longitude!="");
+ var allowNoGPS = localStorage.getItem("recorder-allow-no-gps")=="true";
+ if (!allowNoGPS)
+ return track.filter(pt=>pt.Latitude!="" && pt.Longitude!="");
+ return track.map(pt => {
+ if (!isFinite(parseFloat(pt.Latitude))) pt.Latitude=0;
+ if (!isFinite(parseFloat(pt.Longitude))) pt.Longitude=0;
+ if (!isFinite(parseFloat(pt.Altitude))) pt.Altitude=0;
+ return pt;
+ })
+}
+
+function saveKML(track,title) {
+ // filter out coords with no GPS (or allow, but force to 0)
+ track = filterGPSCoordinates(track);
// Now output KML
var kml = `<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
@@ -81,7 +94,9 @@ function saveGPX(track, title) {
showToast("Error in trackfile.", "error");
return;
}
-
+ // filter out coords with no GPS (or allow, but force to 0)
+ track = filterGPSCoordinates(track);
+ // Output GPX
var gpx = `<?xml version="1.0" encoding="UTF-8"?>
<gpx creator="Bangle.js" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
<metadata>
@@ -91,7 +106,7 @@ function saveGPX(track, title) {
<name>${title}</name>
<trkseg>`;
track.forEach(pt=>{
- if (pt.Latitude!="" && pt.Longitude!="") gpx += `
+ gpx += `
<trkpt lat="${pt.Latitude}" lon="${pt.Longitude}">
<ele>${pt.Altitude}</ele>
<time>${pt.Time.toISOString()}</time>
@@ -199,7 +214,9 @@ function getTrackList() {
// ================================================
// When 'promise' completes we now have all the info in trackList
promise.then(() => {
- var html = `<div class="container">
+ var html = `
+ <div class="container">
+ <h2>Tracks</h2>
<div class="columns">\n`;
trackList.forEach(track => {
console.log("track", track);
@@ -242,9 +259,20 @@ ${trackData.Latitude ? `
`;
}
html += `
+ </div><!-- columns -->
+ <h2>Settings</h2>
+ <div class="form-group">
+ <label class="form-switch">
+ <input type="checkbox" id="settings-allow-no-gps" ${(localStorage.getItem("recorder-allow-no-gps")=="true")?"checked":""}>
+ <i class="form-icon"></i> Include GPX/KML entries even when there's no GPS info
+ </label>
</div>
</div>`;
domTracks.innerHTML = html;
+ document.getElementById("settings-allow-no-gps").addEventListener("change",event=>{
+ var allowNoGPS = event.target.checked;
+ localStorage.setItem("recorder-allow-no-gps", allowNoGPS);
+ });
Util.hideModal();
var buttons = domTracks.querySelectorAll("button");
for (var i=0;i<buttons.length;i++) {
| 11 |
diff --git a/app/modules/WalletDapp/WalletDappWebViewScreen.js b/app/modules/WalletDapp/WalletDappWebViewScreen.js @@ -157,6 +157,18 @@ class WalletDappWebViewScreen extends PureComponent {
onMessage = async (e) => {
+ console.log()
+ console.log()
+ console.log()
+ console.log()
+ console.log()
+ console.log('eeeeee', e)
+ console.log()
+ console.log()
+ console.log()
+ console.log()
+ console.log()
+
let showLog = false
if (config.debug.appErrors) {
if (e.nativeEvent.data.indexOf('eth_accounts') === -1 && e.nativeEvent.data.indexOf('net_version') === -1) {
@@ -307,9 +319,7 @@ class WalletDappWebViewScreen extends PureComponent {
onShouldStartLoadWithRequest={this.handleWebViewNavigationTestLink}
injectedJavaScript={prepared}
- onMessage={(e) => {
- this.onMessage(e)
- }}
+ onMessage={this.onMessage}
onError={(e) => {
Log.err('WalletDapp.WebViewScreen.on error ' + e.nativeEvent.title + ' ' + e.nativeEvent.url + ' ' + e.nativeEvent.description)
@@ -320,15 +330,14 @@ class WalletDappWebViewScreen extends PureComponent {
}}
renderLoading={this.renderLoading}
- renderError={() => {
- this.renderError()
- }}
+ renderError={this.renderError}
javaScriptEnabled={true}
useWebKit={true}
startInLoadingState={true}
allowsInlineMediaPlayback={true}
allowsBackForwardNavigationGestures={true}
+ userAgent='Mozilla/5.0 (Linux; Android 10; MI 8 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.45 Mobile Safari/537.36'
/>
</ScreenWrapper>
)
| 12 |
diff --git a/src/Button.js b/src/Button.js @@ -13,15 +13,15 @@ class Button extends Component {
}
componentDidMount() {
+ if (!M) return;
+
const { tooltip, tooltipOptions, fab } = this.props;
- if (
- typeof $ !== 'undefined' &&
- (typeof tooltip !== 'undefined' || typeof tooltipOptions !== 'undefined')
- ) {
- $(this._btnEl).tooltip(tooltipOptions);
+ if (tooltip || tooltipOptions) {
+ M.Tooltip.init(this._btnEl, tooltipOptions);
}
+
if (fab && this._floatingActionBtn) {
- $(this._floatingActionBtn).floatingActionButton();
+ M.FloatingActionButton.init(this._floatingActionBtn);
}
}
| 14 |
diff --git a/src/components/nodes/genericFlow/genericFlow.vue b/src/components/nodes/genericFlow/genericFlow.vue @@ -131,15 +131,12 @@ export default {
&& this.node.definition.sourceRef.default.id === this.node.definition.id;
},
updateRouter() {
- this.shape.router('orthogonal', { padding: 1 });
+ this.shape.router('normal');
},
createDefaultFlowMarker() {
this.shape.attr('line', {
- sourceMarker: {
- 'type': 'polyline',
- 'stroke-width': this.isDefaultFlow() ? 2 : 0,
- points: '2,6 6,-6',
- },
+ strokeWidth: 1,
+ strokeDasharray: '2 2',
});
},
},
| 4 |
diff --git a/articles/email/liquid-syntax.md b/articles/email/liquid-syntax.md @@ -24,6 +24,10 @@ There are two types of markup in Liquid: **output** and **tag**.
`Hello {{ name }}!`
+::: note
+For more information on supported output attributes and their usage, see [Customizing Your Emails](/email/templates).
+:::
+
You can further customize the appearance of the output by using filters, which are simple methods. For example, the `upcase` filter will convert the text which is passed to the filter to upper case:
`Hello {{ name | upcase }}!`
| 0 |
diff --git a/lib/config.js b/lib/config.js @@ -733,7 +733,10 @@ Config.prototype.logUnknown = function logUnknown(json, key) {
*/
Config.prototype.checkAsyncHookStatus = function checkAsyncHookStatus() {
return (
- semver.satisfies(process.version, '>=8.2') &&
+ (
+ semver.satisfies(process.version, '>=8.2') ||
+ semver.prerelease(process.version)
+ ) &&
this.feature_flag.await_support
)
}
| 11 |
diff --git a/modules/xerte/parent_templates/Nottingham/models_html5/tabNavExtra.html b/modules/xerte/parent_templates/Nottingham/models_html5/tabNavExtra.html var $pageContents = $("#pageContents"),
$currentTab = $thisHolder.find(".tabHeader a:contains(" + $pageContents.data("currentTab") + ")");
+ $currentTab.trigger("click");
+
if ($currentTab.length != 0) {
var $currentPaneHolder = $thisHolder.find(".paneHolder:eq(" + $currentTab.parent().index() + ")"),
$currentPane = $currentPaneHolder.find(".paneList a:contains(" + $pageContents.data("currentPane") + ")");
$currentPaneHolder.find(".paneList a:eq(0)").trigger("click");
}
- $currentTab.trigger("click").parent().focus();
+ $currentTab.parent().focus();
} else {
// no tab match so go to 1st tab in topic
var firstLoad = true;
if (x_currentPageXML.getAttribute("rememberTab") == "true") {
$("#pageContents .infoHolder").tabs({
- show: function(event, ui) {
+ activate: function(event, ui) {
if (firstLoad != true) {
var $pageContents = $("#pageContents"),
$panel = $(ui.panel);
$(".customHTMLHolder").detach();
- $pageContents.data("currentTab", $panel.parent().find(".tabList .tabHeader:eq(" + ui.index + ") a").html());
+ $pageContents.data("currentTab", ui.newTab.find("a").html());
+
if ($pageContents.data("currentTopic") != $panel.parents(".infoHolder").index()) {
$pageContents.data("currentTopic", $panel.parents(".infoHolder").index());
} else {
- $pageContents.data("currentPane", $panel.parent().find(".paneHolder:eq(" + ui.index + ") .paneList a:first").html());
+ $pageContents.data("currentPane", ui.newPanel.find(".paneList a:first").html());
if ($panel.find(".paneInfo").length > 1) {
$panel.find(".paneList a:eq(0)").trigger("click");
}
| 1 |
diff --git a/articles/compliance/gdpr/features-aiding-compliance/user-consent/_redirect.md b/articles/compliance/gdpr/features-aiding-compliance/user-consent/_redirect.md @@ -50,14 +50,11 @@ If you are implementing this from a regular web app, hosting your own form, then
- **Key**: `CONSENT_FORM_URL`
- **Value**: `https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form`
- :::note
+
If you want to work with your own implementation of the consent form webtask, you can host your own version of the webtask.js script. For instructions see [Consent Form Setup](https://github.com/auth0/rules/tree/master/redirect-rules/simple#consent-form-setup).
- :::
+
+To learn more about redirect rules, see [Redirect Users from Rules](/rules/redirect).
:::warning
If you plan on using this approach in a production environment, make sure to review [Trusted Callback URL's](https://github.com/auth0/rules/tree/master/redirect-rules/simple#trusted-callback-urls) and [Data Integrity](https://github.com/auth0/rules/tree/master/redirect-rules/simple#data-integrity) (both sections address some security concerns).
:::
\ No newline at end of file
-
-:::note
-To learn more about redirect rules, see [Redirect Users from Rules](/rules/redirect).
-:::
\ No newline at end of file
| 2 |
diff --git a/src/js/module/Statusbar.js b/src/js/module/Statusbar.js @@ -24,7 +24,7 @@ export default class Statusbar {
const editableCodeTop = this.$codable.offset().top - this.$document.scrollTop();
const onStatusbarMove = (event) => {
- let originalEvent = (event.type == 'mousedown') ? event : event.originalEvent.changedTouches[0];
+ let originalEvent = (event.type == 'mousemove') ? event : event.originalEvent.changedTouches[0];
let height = originalEvent.clientY - (editableTop + EDITABLE_PADDING);
let heightCode = originalEvent.clientY - (editableCodeTop + EDITABLE_PADDING);
| 12 |
diff --git a/experimental/generation/generator/src/library/mergeAssets.ts b/experimental/generation/generator/src/library/mergeAssets.ts @@ -709,7 +709,7 @@ async function mergeDialogs(schemaName: string, oldPath: string, newPath: string
*/
function getTriggerName(trigger: any): string {
let triggerName: string
- if (typeof trigger === 'object') {
+ if (typeof trigger !== 'string') {
triggerName = trigger['$id']
} else {
triggerName = trigger
| 1 |
diff --git a/Source/Renderer/modernizeShader.js b/Source/Renderer/modernizeShader.js @@ -27,9 +27,9 @@ define([
}
var outputDeclarationLine = -1;
- var i;
+ var i, line;
for (i = 0; i < splitSource.length; ++i) {
- var line = splitSource[i];
+ line = splitSource[i];
if (outputDeclarationRegex.test(line)) {
outputDeclarationLine = i;
break;
@@ -65,12 +65,12 @@ define([
var variableMap = getVariablePreprocessorBranch(outputVariables, splitSource);
var lineAdds = {};
for (i = 0; i < splitSource.length; i++) {
- var l = splitSource[i];
+ line = splitSource[i];
for (var care in variableMap) {
if (variableMap.hasOwnProperty(care)) {
var matchVar = new RegExp('(layout)[^]+(out)[^]+(' + care + ')[^]+', 'g');
- if (matchVar.test(l)) {
- lineAdds[l] = care;
+ if (matchVar.test(line)) {
+ lineAdds[line] = care;
}
}
}
| 10 |
diff --git a/sirepo/server.py b/sirepo/server.py @@ -252,7 +252,11 @@ def api_getApplicationData(filename=None):
if 'filename' in req:
assert isinstance(res, pkconst.PY_PATH_LOCAL_TYPE), \
'{}: template did not return a file'.format(res)
- return http_reply.gen_file_as_attachment(res, filename=req.filename)
+ return http_reply.gen_file_as_attachment(
+ res,
+ filename=req.filename,
+ content_type=req.req_data.get('contentType', None)
+ )
return http_reply.gen_json(res)
| 11 |
diff --git a/src/cli/site/create.js b/src/cli/site/create.js @@ -27,8 +27,20 @@ const main = async function(args) {
scheduleAnchor: interval
}
+ const testProfiles = [
+ {
+ name: 'Chrome Desktop',
+ connection: 'cable'
+ },
+ {
+ name: 'MotoG4, 3G connection',
+ device: 'MotorolaMotoG4',
+ connection: 'regular3G'
+ }
+ ]
+
try {
- const site = await create({ name, pages, agentSettings })
+ const site = await create({ name, pages, agentSettings, testProfiles })
if (!args.json) {
spinner.succeed(`${site.name} added to Calibre`)
@@ -55,11 +67,13 @@ module.exports = {
})
.option('schedule', {
describe:
- 'Schedule for automated snapshots. One of: hourly, daily, every_x_hours'
+ 'Schedule for automated snapshots. One of: hourly, daily, every_x_hours',
+ default: 'every_x_hours'
})
.option('interval', {
describe:
- "Automated snapshot interval. UTC hour of day for 'daily', hour interval for 'every_x_hours'"
+ "Automated snapshot interval. UTC hour of day for 'daily', hour interval for 'every_x_hours'",
+ default: 6
})
.option('json', {
describe: 'Return the site attributes as JSON'
| 12 |
diff --git a/src/components/fx/hover.js b/src/components/fx/hover.js @@ -2000,9 +2000,15 @@ function getCoord(axLetter, winningPoint, fullLayout) {
var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
if(periodalignment) {
var d = winningPoint.cd[winningPoint.index];
+
var start = d[axLetter + 'Start'];
+ if(start === undefined) start = d[axLetter];
+
var end = d[axLetter + 'End'];
+ if(end === undefined) end = d[axLetter];
+
var diff = end - start;
+
if(periodalignment === 'end') {
val += diff;
} else if(periodalignment === 'middle') {
| 9 |
diff --git a/docs/reference.rst b/docs/reference.rst @@ -818,18 +818,22 @@ For example, the command below runs ``my_flow.tag`` without showing the web brow
tagui my_flow.tag -headless -report
+
-deploy or -d
********************
Deploys a flow, creating a shortcut which can be double-clicked to run the flow. If the flow file is moved, a new shortcut must be created. The flow will be run with all the options used when creating the shortcut.
+
-headless or -h
********************
Runs the flow with an invisible Chrome web browser (does not work for visual automation).
+
-nobrowser or -n
********************
Runs without any web browser, for example to perform automation only with visual automation.
+
-report or -r
********************
Tracks flow run result in ``tagui/src/tagui_report.csv`` and saves html logs of flows execution.
@@ -850,20 +854,11 @@ my_datatable.csv
********************
Uses the specified csv file as the datatable for batch automation. See :ref:`datatables <datatables>`.
+
input(s)
********************
Add your own parameter(s) to be used in your automation flow as variables p1 to p8.
-For example, from the command prompt, below line runs ``register_attendence.tag`` workflow using Microsoft Edge browser and with various student names as inputs. ::
-
- tagui register_attendence.tag -edge Jenny Jason John Joanne
-
-Inside the workflow, the variables ``p1``, ``p2``, ``p3``, ``p4`` will be available for use as part of the automation, for example to fill up student names into a web form for recording attendence. The following lines in the workflow will output various student names given as inputs. ::
-
- echo `p1`
- echo `p2`
- echo `p3`
- echo `p4`
See :doc:`other deprecated options </dep_options>`.
| 13 |
diff --git a/tests/phpunit/integration/Core/Util/REST_Entity_Search_ControllerTest.php b/tests/phpunit/integration/Core/Util/REST_Entity_Search_ControllerTest.php namespace Google\Site_Kit\Tests\Core\Util;
use Google\Site_Kit\Context;
-use Google\Site_Kit\Core\Dismissals\Dismissed_Items;
-use Google\Site_Kit\Core\Dismissals\REST_Dismissals_Controller;
use Google\Site_Kit\Core\REST_API\REST_Routes;
-use Google\Site_Kit\Core\Storage\User_Options;
use Google\Site_Kit\Core\Util\REST_Entity_Search_Controller;
use Google\Site_Kit\Tests\TestCase;
use WP_REST_Request;
use WP_REST_Server;
-/**
- * @group tracking
- */
class REST_Entity_Search_ControllerTest extends TestCase {
/**
| 2 |
diff --git a/assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidget/UserDimensionsPieChart.js b/assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidget/UserDimensionsPieChart.js @@ -27,7 +27,6 @@ import classnames from 'classnames';
*/
import { useCallback, useState } from '@wordpress/element';
import { __, _x, sprintf } from '@wordpress/i18n';
-import { useInstanceId } from '@wordpress/compose';
/**
* Internal dependencies
@@ -102,9 +101,6 @@ export default function UserDimensionsPieChart( { dimensionName, entityURL, sour
}
}, [ dimensionName, setValues ] );
- // Create a unique chartID to use for this component's GoogleChart child component.
- const chartID = useInstanceId( UserDimensionsPieChart );
-
if ( ! loaded ) {
return <PreviewBlock width="282px" height="282px" shape="circular" />;
}
@@ -213,7 +209,6 @@ export default function UserDimensionsPieChart( { dimensionName, entityURL, sour
return (
<div className="googlesitekit-widget--analyticsAllTraffic__dimensions-chart">
<GoogleChart
- chartID={ `user-dimensions-pie-chart-${ chartID }` }
chartType="pie"
options={ options }
data={ dataMap }
| 2 |
diff --git a/src/page/home/sidebar/ChatSwitcherView.js b/src/page/home/sidebar/ChatSwitcherView.js @@ -76,8 +76,8 @@ class ChatSwitcherView extends React.Component {
this.handleKeyPress = this.handleKeyPress.bind(this);
this.reset = this.reset.bind(this);
- this.onUserSelected = this.onUserSelected.bind(this);
- this.onReportSelected = this.onReportSelected.bind(this);
+ this.selectUser = this.selectUser.bind(this);
+ this.selectReport = this.selectReport.bind(this);
this.triggerOnFocusCallback = this.triggerOnFocusCallback.bind(this);
this.updateSearch = this.updateSearch.bind(this);
@@ -109,7 +109,7 @@ class ChatSwitcherView extends React.Component {
* @param {object} option
* @param {string} option.login
*/
- onUserSelected(option) {
+ selectUser(option) {
fetchOrCreateChatReport([this.props.session.email, option.login]);
this.reset();
}
@@ -120,7 +120,7 @@ class ChatSwitcherView extends React.Component {
* @param {object} option
* @param {string} option.reportID
*/
- onReportSelected(option) {
+ selectReport(option) {
redirect(option.reportID);
this.reset();
}
@@ -244,7 +244,7 @@ class ChatSwitcherView extends React.Component {
searchText: personalDetail.displayNameWithEmail,
icon: personalDetail.avatarURL,
login: personalDetail.login,
- callback: this.onUserSelected,
+ callback: this.selectUser,
}))
.value();
@@ -260,7 +260,7 @@ class ChatSwitcherView extends React.Component {
searchText: report.reportName,
reportID: report.reportID,
icon: CONFIG.FAVICON.DEFAULT,
- callback: this.onReportSelected,
+ callback: this.selectReport,
}))
.value();
| 10 |
diff --git a/spec/queries/carto/visualization_query_builder_spec.rb b/spec/queries/carto/visualization_query_builder_spec.rb @@ -539,7 +539,7 @@ describe Carto::VisualizationQueryBuilder do
it 'returns the public maps of a user' do
result = Carto::VisualizationQueryBuilder.user_public_privacy_visualizations(@user).build
- expect(result.count).to eq 2
+ expect(result.count).to eq 3
expect(result.all.map(&:privacy).uniq).to eq [Carto::Visualization::PRIVACY_PUBLIC]
end
@@ -560,7 +560,7 @@ describe Carto::VisualizationQueryBuilder do
it 'returns all the user maps' do
result = Carto::VisualizationQueryBuilder.user_all_visualizations(@user).build
- expect(result.count).to eq 5
+ expect(result.count).to eq 6
end
end
end
| 3 |
diff --git a/packages/app/src/client/services/PageContainer.js b/packages/app/src/client/services/PageContainer.js @@ -47,8 +47,7 @@ export default class PageContainer extends Container {
this.state = {
// local page data
- markdown: 'markdown test', // will be initialized after initStateMarkdown()
- // markdown: null, // will be initialized after initStateMarkdown()
+ markdown: null, // will be initialized after initStateMarkdown()
pageId: mainContent.getAttribute('data-page-id'),
revisionId,
revisionCreatedAt: +mainContent.getAttribute('data-page-revision-created'),
@@ -88,8 +87,7 @@ export default class PageContainer extends Container {
// latest(on remote) information
remoteRevisionId: revisionId,
- remoteRevisionBody: 'remoteRevisionBody',
- // remoteRevisionBody: null,
+ remoteRevisionBody: null,
remoteRevisionUpdateAt: null,
revisionIdHackmdSynced: mainContent.getAttribute('data-page-revision-id-hackmd-synced') || null,
lastUpdateUsername: mainContent.getAttribute('data-page-last-update-username') || null,
@@ -97,8 +95,7 @@ export default class PageContainer extends Container {
pageIdOnHackmd: mainContent.getAttribute('data-page-id-on-hackmd') || null,
hasDraftOnHackmd: !!mainContent.getAttribute('data-page-has-draft-on-hackmd'),
isHackmdDraftUpdatingInRealtime: false,
- isConflictDiffModalOpen: true,
- // isConflictDiffModalOpen: false,
+ isConflictDiffModalOpen: false,
};
// parse creator, lastUpdateUser and revisionAuthor
@@ -691,7 +688,7 @@ export default class PageContainer extends Container {
async resolveConflictAndReload(pageId, revisionId, markdown, optionsToSave) {
await this.resolveConflict(pageId, revisionId, markdown, optionsToSave);
- // window.location.reload();
+ window.location.reload();
}
}
| 13 |
diff --git a/client/components/boards/boardsList.styl b/client/components/boards/boardsList.styl @@ -44,6 +44,7 @@ $spaceBetweenTiles = 16px
margin: ($spaceBetweenTiles/2)
position: relative
text-decoration: none
+ word-wrap: break-word
&.tile
background-size: auto
| 11 |
diff --git a/templates/customdashboard/publicdashboard/program_dashboard.html b/templates/customdashboard/publicdashboard/program_dashboard.html <!--- Hosted Leaflet CSS -->
<script src="{{ STATIC_URL }}js/Chart.HorizontalBar.js"></script>
+<script>
+ $(document).ready(() => {
+ $('#summaryTable').dataTable()
+ })
+</script>
+
<link
rel="borders"
type="application/json"
</ul>
<div class="tab-content">
<div class="tab-pane" id="projects">
- <h1 class="sidebar-header">
+ <h4 class="page-header">
{{ user.activity_user.organization.level_2_label }} Status and Key
Performance Indicators
- </h1>
+ </h4>
<h4>
<strong
>
<span class="badge">{{ total_projects }}</span>
</h4>
+ <div class="row mb-3">
+ <div class="col-md-12">
+
<!-- approved count-->
- <h4>
- <a href="/workflow/dashboard/{{ get_program.id }}/approved/"
- ><span class="label label-success"
- >Approved <span class="badge">{{
- get_approved_count
- }}</span></span
- ></a
+ <a class="btn btn-success btn-xs" href="/workflow/dashboard/{{ get_program.id }}/approved/"
>
+ Approved <span class="badge badge-success">
+ {{ get_approved_count }}</span></a>
<!-- awaiting approval count-->
- <a href="/workflow/dashboard/{{ get_program.id }}/awaiting_approval/"
- ><span class="label label-success"
- >Awaiting Approval <span class="badge">{{
- get_awaiting_approval_count
- }}</span></span
- ></a
+ <a class="btn btn-info btn-xs" href="/workflow/dashboard/{{ get_program.id }}/awaiting_approval/"
>
+ Awaiting Approval
+ <span class="badge badge-info">
+ {{ get_awaiting_approval_count }}</span>
+ </a>
<!-- in progress count-->
- <a href="/workflow/dashboard/{{ get_program.id }}/in_progress/"
- ><span class="label label-success"
- >In Progress <span class="badge">{{
- get_in_progress_count
- }}</span></span
- ></a
+ <a class="btn btn-primary btn-xs" href="/workflow/dashboard/{{ get_program.id }}/in_progress/"
+ >In Progress <span class="badge badge-primary">{{ get_in_progress_count }}</span></a
>
<!-- in progress count-->
- <a href="/workflow/dashboard/{{ get_program.id }}/new/"
- ><span class="label label-success"
- >New <span class="badge">{{ nostatus_count }}</span></span
- ></a
+ <a class="btn btn-default btn-xs" href="/workflow/dashboard/{{ get_program.id }}/new/"
+ >New <span class="badge">{{ nostatus_count }}</span></a
>
<!-- rejected count-->
- <a href="/workflow/dashboard/{{ get_program.id }}/rejected/"
- ><span class="label label-success"
- >Rejected <span class="badge">{{
- get_rejected_count
- }}</span></span
- ></a
+ <a class="btn btn-danger btn-xs" href="/workflow/dashboard/{{ get_program.id }}/rejected/"
+ >Rejected <span class="badge badge-danger">
+ {{get_rejected_count }}</span></a
>
- </h4>
+ </div>
+ </div>
<!-- The table collapse panel -->
<div class="panel-group">
class="panel-collapse collapse"
>
<div class="panel-body">
- <table class="table table-striped">
+ <table class="table" id="summaryTable">
+ <thead>
<tr>
<th>
{{ user.activity_user.organization.level_4_label }} Code
<th>Status</th>
<th>EXp. Start Date</th>
</tr>
+ </thead>
+ <tbody>
{% for project in getAllProjects %}
<tr>
<td>{{ project.activity_code }}</td>
<td>{{ project.expected_start_date }}</td>
</tr>
{% endfor %}
+ </tbody>
</table>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<strong
- >{{
- user.activity_user.organization.level_1_label
- }}
+ >
+ {{ user.activity_user.organization.level_1_label }}
Expenditure</strong
><br />
- <strong>Budgets</strong> Vs <strong>Actuals</strong>
+ <small>Budgets Vs Actuals</small>
</div>
<div class="panel-body">
</div>
</div>
</div>
+
<div class="col-md-6">
<div class="panel panel-info">
<div class="panel-heading">
<strong>Key Performance Indicators (KPIs)</strong><br />
- <strong>Targets</strong> Vs <strong>Actuals</strong>
+ <small>Targets Vs Actuals</small>
</div>
<div class="panel-body">
<div class="canvas-container-fixed">
| 3 |
diff --git a/website/src/docs/server.md b/website/src/docs/server.md @@ -18,6 +18,7 @@ As of now uppy-server is integrated to work with:
- Google Drive
- Dropbox
- Instagram
+- Remote Urls
- Amazon S3
- Local disk
| 0 |
diff --git a/world.js b/world.js @@ -16,6 +16,7 @@ import {scene, postScene, sceneHighPriority, sceneLowPriority} from './renderer.
import metaversefileApi from 'metaversefile';
import {worldMapName, appsMapName, playersMapName} from './constants.js';
import {playersManager} from './players-manager.js';
+import * as metaverseModules from './metaverse-modules.js';
// world
export const world = {};
@@ -336,9 +337,22 @@ const _bindHitTracker = app => {
const result = hitTracker.hit(damage);
const {hit, died} = result;
if (hit) {
- const {collisionId, hitDirection} = opts;
+ const {collisionId, hitPosition, hitDirection, hitQuaternion} = opts;
if (collisionId) {
hpManager.triggerDamageAnimation(collisionId);
+
+ const app = metaversefileApi.createApp();
+ (async () => {
+ await metaverseModules.waitForLoad();
+ const {modules} = metaversefileApi.useDefaultModules();
+ const m = modules['damageMesh'];
+ await app.addModule(m);
+ })();
+ app.position.copy(hitPosition);
+ app.quaternion.copy(hitQuaternion);
+ app.updateMatrixWorld();
+ // console.log('new damage mesh', app, hitPosition, hitDirection, hitQuaternion);
+ scene.add(app);
}
app.dispatchEvent({
| 0 |
diff --git a/src/utils/innerSliderUtils.js b/src/utils/innerSliderUtils.js @@ -339,7 +339,9 @@ export const swipeMove = (e, spec) => {
trackStyle: getTrackCSS({...spec, left: swipeLeft})
}
if (Math.abs(touchObject.curX - touchObject.startX) <
- Math.abs(touchObject.curY - touchObject.startY) * 0.8) return
+ Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
+ return state
+ }
if (touchObject.swipeLength > 10) {
state['swiping'] = true
e.preventDefault()
| 1 |
diff --git a/elements/code-editor/lib/monaco-element/monaco-element.js b/elements/code-editor/lib/monaco-element/monaco-element.js @@ -331,7 +331,7 @@ class MonacoElement extends LitElement {
},
});
}
- if (this.autofocus) this.iframe.focus();
+ if (this.autofocus && this.iframe) this.iframe.focus();
}
handleMessage(message) {
| 1 |
diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.lua @@ -304,6 +304,9 @@ function Util:process_and_verify_token(session, acceptedIssuers)
-- Binds any features details to the session
session.jitsi_meet_context_features = claims["context"]["features"];
end
+ if claims["context"]["room"] ~= nil then
+ session.jitsi_meet_context_room = claims["context"]["room"]
+ end
end
return true;
else
@@ -370,13 +373,18 @@ function Util:verify_room(session, room_address)
room_to_check = room_node;
end
else
- -- no wildcard, so check room against authorized room regex from the token
+ -- no wildcard, so check room against authorized room from the token
+ if session.jitsi_meet_context_room and (session.jitsi_meet_context_room["regex"] == true or session.jitsi_meet_context_room["regex"] == "true") then
if target_room ~= nil then
-- room with subdomain
room_to_check = target_room:match(auth_room);
else
room_to_check = room_node:match(auth_room);
end
+ else
+ -- not a regex
+ room_to_check = auth_room;
+ end
module:log("debug", "room to check: %s", room_to_check)
if not room_to_check then
return false
| 11 |
diff --git a/token-metadata/0xFAb5a05C933f1A2463E334E011992E897D56eF0a/metadata.json b/token-metadata/0xFAb5a05C933f1A2463E334E011992E897D56eF0a/metadata.json "symbol": "DOTX",
"address": "0xFAb5a05C933f1A2463E334E011992E897D56eF0a",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/encoded/schemas/donor.json b/src/encoded/schemas/donor.json "title": "External id",
"description": "External identifier that uniquely identifiers the donor.",
"type": "string",
- "pattern": "^(BDSC:\\d+)$|^(NICHD:\\d+)$|^(CGC:\\d+)$|^(PGP:[a-z0-9]+)$|^(Promocell:\\d+)$|^(Biochain:\\d+)$|^(DSSC:\\d+)$|^(DGGR:\\d+)$"
+ "pattern": "^(BDSC:\\d+)$|^(NICHD:\\d+)$|^(CGC:\\d+)$|^(PGP:hu[A-Z0-9]+)$|^(Promocell:\\d+)$|^(Biochain:\\d+)$|^(DSSC:\\d+)$|^(DGGR:\\d+)$"
},
"organism": {
"title": "Organism",
| 3 |
diff --git a/src/pages/Regional/Regional.js b/src/pages/Regional/Regional.js @@ -17,7 +17,7 @@ import isIE from 'isIE';
import type { Props } from './Regional.types';
import * as Styles from './Regional.styles';
-import {ChartTable} from "components/AltChartTable/ChartTable";
+import ChartTable from "components/ChartTable";
/**
| 10 |
diff --git a/lib/plugins/platform/platform.js b/lib/plugins/platform/platform.js @@ -6,10 +6,15 @@ const gql = require('graphql-tag');
const jwtDecode = require('jwt-decode');
const fsExtra = require('../../utils/fs/fse');
// const userStats = require('../../utils/userStats');
+const fetch = require('node-fetch');
const configUtils = require('../../utils/config');
const functionInfoUtils = require('../../utils/functionInfoUtils');
const createApolloClient = require('../../utils/createApolloClient');
+// TODO... patching globals is very very bad. Needed for apollo to work
+
+global.fetch = fetch
+
// TODO move elsewhere
function addReadme(attributes, readmePath) {
if (fs.existsSync(readmePath)) {
| 12 |
diff --git a/assets/src/dashboard/components/popoverPanel/index.js b/assets/src/dashboard/components/popoverPanel/index.js @@ -45,7 +45,7 @@ export const Panel = styled.div`
transform: ${({ isOpen }) =>
isOpen ? 'translate3d(0, 0, 0)' : 'translate3d(0, -1rem, 0)'};
z-index: ${Z_INDEX.POPOVER_PANEL};
- max-width: ${({ theme }) => theme.popoverPanel.desktopWidth}px;
+ width: ${({ theme }) => theme.popoverPanel.desktopWidth}px;
@media ${({ theme }) => theme.breakpoint.tablet} {
width: ${({ theme }) => theme.popoverPanel.tabletWidth}px;
| 12 |
diff --git a/Code_Of_Conduct.md b/Code_Of_Conduct.md @@ -63,7 +63,7 @@ Project administrators will follow these Community Impact Guidelines in determin
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interaction in all community spaces as well. Violating these terms may lead to a temporary or permanent ban.
-### 4. Permanent Ban
+### 3. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
| 14 |
diff --git a/components/ProductGrid/ProductGrid.js b/components/ProductGrid/ProductGrid.js @@ -53,9 +53,6 @@ class ProductGrid extends Component {
);
}
- // @trackProductClicked()
- onItemClick = (event, product) => {} // eslint-disable-line no-unused-vars
-
renderMainArea() {
const { catalogItems, isLoadingCatalogItems, pageInfo } = this.props;
@@ -68,7 +65,6 @@ class ProductGrid extends Component {
<Fragment>
<Grid container spacing={3}>
<CatalogGrid
- onItemClick={this.onItemClick}
products={products}
placeholderImageURL="/images/placeholder.gif"
{...this.props}
| 2 |
diff --git a/src/io_frida.c b/src/io_frida.c @@ -486,7 +486,11 @@ static bool resolve_device(FridaDeviceManager *manager, const char *device_id, F
GError *error = NULL;
if (device_id != NULL) {
+ if (!strcmp (device_id, "localhost") || !strcmp (device_id, "127.0.0.1")) {
+ *device = frida_device_manager_add_remote_device_sync (manager, "127.0.0.1:27042", &error);
+ } else {
*device = frida_device_manager_get_device_by_id_sync (manager, device_id, 0, NULL, &error);
+ }
} else {
*device = frida_device_manager_get_device_by_type_sync (manager, FRIDA_DEVICE_TYPE_LOCAL, 0, NULL, &error);
}
| 9 |
diff --git a/test/image/strict-d3.js b/test/image/strict-d3.js @@ -32,10 +32,10 @@ selProto.style = function() {
if(sel.size()) {
if(typeof obj === 'string') {
- if(arguments.length === 1) {
+ if(arguments.length === 1 && !d3.event) {
throw new Error('d3 selection.style called as getter: ' +
- 'disallowed as it can fail for unattached elements. ' +
- 'Use node.style.attribute instead.');
+ 'disallowed outside event handlers as it can fail for ' +
+ 'unattached elements. Use node.style.attribute instead.');
}
checkStyleVal(sel, obj, arguments[1]);
} else {
| 11 |
diff --git a/src/web/containers/Workspace/Widget.jsx b/src/web/containers/Workspace/Widget.jsx @@ -48,6 +48,10 @@ class WidgetWrapper extends PureComponent {
const name = widgetId.split(':')[0];
const Widget = getWidgetByName(name);
+ if (!Widget) {
+ return null;
+ }
+
return (
<Widget
{...this.props}
| 1 |
diff --git a/src/components/MapTable/MapTable.js b/src/components/MapTable/MapTable.js @@ -84,13 +84,14 @@ export class MapTable extends Component<MapTableProps, {}> {
geoData,
loading
} = this.state,
- { children, location, isMobile = false } = this.props,
- hash = location.hash !== ""
- ? location.hash
+ { children, isMobile = false, history: { location: { hash: locHash = "" } } } = this.props,
+ hash = locHash !== ""
+ ? locHash
: utils.createHash({category: category, map: viewMapAs}),
parsedHash = utils.getParams(hash),
contentData = Content.filter(item => item.textLabel === parsedHash.category)[0];
+ // console.log(history)
if (loading) return <Styles.P>Loading…</Styles.P>
return <Styles.MainContainer>
| 7 |
diff --git a/examples/inventory.js b/examples/inventory.js @@ -77,25 +77,23 @@ function sayItems (items = null) {
}
}
-function tossItem (name, amount) {
+async function tossItem (name, amount) {
amount = parseInt(amount, 10)
const item = itemByName(name)
if (!item) {
bot.chat(`I have no ${name}`)
- } else if (amount) {
- bot.toss(item.type, null, amount, checkIfTossed)
} else {
- bot.tossStack(item, checkIfTossed)
- }
-
- function checkIfTossed (err) {
- if (err) {
- bot.chat(`unable to toss: ${err.message}`)
- } else if (amount) {
+ try {
+ if (amount) {
+ await bot.toss(item.type, null, amount)
bot.chat(`tossed ${amount} x ${name}`)
} else {
+ await bot.tossStack(item)
bot.chat(`tossed ${name}`)
}
+ } catch (err) {
+ bot.chat(`unable to toss: ${err.message}`)
+ }
}
}
| 2 |
diff --git a/Makefile b/Makefile @@ -149,8 +149,8 @@ C_HEADER_FILENAME_EXT ?= h
CSL_FILENAME_EXT ?= csl
CSS_FILENAME_EXT ?= css
CSV_FILENAME_EXT ?= csv
-CXX_FILENAME_EXT ?= cpp
-CXX_HEADER_FILENAME_EXT ?= hpp
+CPP_FILENAME_EXT ?= cpp
+CPP_HEADER_FILENAME_EXT ?= hpp
FORTRAN_FILENAME_EXT ?= f
GYP_FILENAME_EXT ?= gyp
GYPI_FILENAME_EXT ?= gypi
| 10 |
diff --git a/runtime/manual/driver.js b/runtime/manual/driver.js @@ -606,7 +606,7 @@ ManualDriver.prototype._onG2Status = function (status) {
}.bind(this)
);
}
- break;
+ // Fall through is intended here, do not add a break
case this.driver.STAT_END:
case this.driver.STAT_HOLDING:
// Handle nudges once we've come to a stop
| 2 |
diff --git a/src/components/auth/torus/AuthTorus.js b/src/components/auth/torus/AuthTorus.js @@ -36,7 +36,6 @@ import DeepLinking from '../../../lib/utils/deepLinking'
import { GoodWalletContext } from '../../../lib/wallet/GoodWalletProvider'
import { GlobalTogglesContext } from '../../../lib/contexts/togglesContext'
import AuthContext from '../context/AuthContext'
-import mustache from '../../../lib/utils/mustache'
import useTorus from './hooks/useTorus'
import { TorusStatusCode } from './sdk/TorusSDK'
@@ -144,10 +143,7 @@ const AuthTorus = ({ screenProps, navigation, styles }) => {
android: 'Chrome',
})
- suggestion = mustache(
- t`Your default browser isn't supported. Please, set {suggestedBrowser} as default and try again.`,
- { suggestedBrowser },
- )
+ suggestion = t`Your default browser isn't supported. Please, set ${suggestedBrowser} as default and try again.`
break
}
case UserCancel:
@@ -157,7 +153,7 @@ const AuthTorus = ({ screenProps, navigation, styles }) => {
break
}
- showErrorDialog(t`We were unable to load the wallet.` + ` ${suggestion}`)
+ showErrorDialog(t`We were unable to load the wallet. ${suggestion}`)
}
const selfCustodyLogin = useCallback(() => {
| 2 |
diff --git a/packages/slackbot-proxy/src/controllers/growi-to-slack.ts b/packages/slackbot-proxy/src/controllers/growi-to-slack.ts @@ -196,6 +196,8 @@ export class GrowiToSlackCtrl {
try {
const opt = req.body as WebAPICallOptions;
opt.headers = req.headers;
+ opt.private_metadata = { growiUri: relation.growiUri };
+
await client.apiCall(method, opt);
}
catch (err) {
| 12 |
diff --git a/src/inner-slider.js b/src/inner-slider.js @@ -114,12 +114,7 @@ export var InnerSlider = createReactClass({
})
},
componentDidUpdate: function () {
- let images = document.querySelectorAll('.slick-slide img')
- images.forEach(image => {
- if (!image.onload) {
- image.onload = () => setTimeout(() => this.update(this.props), this.props.speed)
- }
- })
+ this.checkImagesLoad()
if (this.props.reInit) {
this.props.reInit()
}
@@ -146,6 +141,24 @@ export var InnerSlider = createReactClass({
clearTimeout(this.animationEndCallback);
delete this.animationEndCallback;
},
+ checkImagesLoad: function () {
+ let images = document.querySelectorAll('.slick-slide img')
+ let imagesCount = images.length,
+ loadedCount = 0
+ images.forEach(image => {
+ const handler = () => ++loadedCount &&
+ (loadedCount >= imagesCount) && this.onWindowResized()
+ if (!image.onload) {
+ if (this.props.lazyLoad) {
+ image.onload = () => this.adaptHeight() ||
+ setTimeout(this.onWindowResized, this.props.speed)
+ } else {
+ image.onload = handler
+ image.onerror = handler
+ }
+ }
+ })
+ },
slickPrev: function () {
// this and fellow methods are wrapped in setTimeout
// to make sure initialize setState has happened before
| 0 |
diff --git a/src/graphql.tsx b/src/graphql.tsx @@ -662,13 +662,6 @@ class ObservableQueryRecycler {
const { observableQuery, subscription } = this.observableQueries.pop();
subscription.unsubscribe();
- // Strip away options set when `ObservableQuery` was recycled.
- const { fetchPolicy, pollInterval, ...rest } = observableQuery.options;
-
- // Override `ObservableQuery`s options before invoking `setOptions`
- // since it doesn't allow removal of previously set options.
- observableQuery.options = rest;
-
// When we reuse an `ObservableQuery` then the document and component
// GraphQL display name should be the same. Only the options may be
// different.
@@ -676,7 +669,13 @@ class ObservableQueryRecycler {
// Therefore we need to set the new options.
//
// If this observable query used to poll then polling will be restarted.
- observableQuery.setOptions(options);
+ observableQuery.setOptions({
+ ...options,
+ // Excpliticly set options changed when recycling to make sure they
+ // are set to `undefined` if not provided in options.
+ pollInterval: options.pollInterval,
+ fetchPolicy: options.fetchPolicy,
+ });
return observableQuery;
}
| 12 |
diff --git a/books/admin.py b/books/admin.py @@ -15,6 +15,7 @@ class BookCopyInline(admin.TabularInline):
class LibraryAdmin(admin.ModelAdmin):
inlines = [BookCopyInline]
list_display = ['name']
+ search_fields = ['name']
class BookAdmin(admin.ModelAdmin):
@@ -27,8 +28,8 @@ class BookAdmin(admin.ModelAdmin):
class BookCopyAdmin(admin.ModelAdmin):
list_display = ['id', 'book', 'library', 'user']
list_per_page = 20
- search_fields = ['book__title', ]
- autocomplete_fields = ['book', 'user']
+ search_fields = ['book__title', 'user__username']
+ autocomplete_fields = ['book', 'library', 'user']
def add_view(self, request):
self.exclude = ['user', 'borrow_date']
| 0 |
diff --git a/scripts/upgrade.js b/scripts/upgrade.js @@ -20,8 +20,11 @@ fs.readdirSync(pkgsPath, "utf8").forEach(function (folder) {
if (fs.statSync(folderPath).isDirectory() === false) {
return null;
}
- //Read the package.json file
let localPath = path.join(folderPath, "package.json");
+ //Check for no package.json on this folder
+ if (fs.existsSync(localPath) === false) {
+ return null;
+ }
let localPkg = JSON.parse(fs.readFileSync(localPath, "utf8"));
//Update version
localPkg.version = pkg.packages[localPkg.name];
| 1 |
diff --git a/src/core/lib/DisassembleX86-64.js b/src/core/lib/DisassembleX86-64.js @@ -1443,8 +1443,8 @@ const Operands = [
------------------------------------------------------------------------------------------------------------------------*/
"10000004","10000004","10000004","10000004",
"16000C00","170E0C00","0C001600","0C00170E",
- "10020008",
- "10020008",
+ "110E0008",
+ "110E0008",
"0D060C01", //JMP Ap (w:z).
"100000040004",
"16001A01","170E1A01",
@@ -5703,7 +5703,6 @@ function LDisassemble()
}
-
////////////////////////////////////////////////////////////////////////////////////////////////
/*
| 3 |
diff --git a/_data/conferences.yml b/_data/conferences.yml ---
- title: ICML
+ hindex: 135
year: 2021
id: icml21
link: https://icml.cc/Conferences/2021
place: Oregon State University at Corvallis, Oregon
sub: RO
-- title: ICML
- hindex: 135
- year: 2020
- id: icml20
- link: https://icml.cc/Conferences/2020
- deadline: '2020-02-06 23:59:00'
- abstract_deadline: '2020-01-30 23:59:00'
- timezone: UTC-12
- date: July 12-18, 2020
- place: Online
- sub: ML
- note: '<b>NOTE</b>: Mandatory abstract deadline on Jan 30, 2020. More info <a href=''https://icml.cc/Conferences/2020/CallForPapers''>here</a>.'
-
- title: KDD
hindex: 30
year: 2020
| 2 |
diff --git a/package.json b/package.json "build:server": "cross-env NODE_ENV=production webpack -p --config ./webpack/webpack.server.config.js",
"build:client": "npm run cleanup-public && mkdir -p public && cp -r ./assets/* ./public/ && webpack -p --config ./webpack/webpack.prod.config.js",
"build": "cross-env NODE_ENV=production npm run build:client && npm run build:server",
- "heroku-prebuild": "npm i pm2 && pm2 install pm2-logrotate",
+ "heroku-prebuild": "npm i pm2",
"heroku-postbuild": "npm run build",
"cleanup-public": "gulp cleanup-public",
"storybook": "start-storybook -p 6006",
| 2 |
diff --git a/core/block_dragger.js b/core/block_dragger.js @@ -304,14 +304,13 @@ Blockly.BlockDragger.prototype.endBlockDrag = function(e, currentDragDeltaXY) {
this.draggingBlock_.setDragging(false);
this.fireMoveEvent_();
this.transferAndConnect_();
+ this.draggingBlock_.scheduleSnapAndBump();
} else {
// TODO(harukam): Dispose the block if it was created from a flyout.
this.draggingBlock_.setDragging(false);
this.restoreStartTargetConnection_();
this.draggingBlock_.render();
}
- } else {
- this.draggingBlock_.scheduleSnapAndBump();
}
this.workspace_.setResizesEnabled(true);
| 1 |
diff --git a/src/components/profile/Profile.js b/src/components/profile/Profile.js @@ -151,9 +151,9 @@ export function Profile({ match }) {
return (
<StyledContainer>
- {isOwner && profileBalance && profileBalance.lockupIdExists && !new BN(profileBalance.lockupBalance.availableToTransfer).isZero() &&
+ {isOwner && profileBalance && profileBalance.lockupIdExists && !new BN(profileBalance.lockupBalance.unlocked.availableToTransfer).isZero() &&
<LockupAvailTransfer
- available={profileBalance.lockupBalance.availableToTransfer || '0'}
+ available={profileBalance.lockupBalance.unlocked.availableToTransfer || '0'}
onTransfer={handleTransferFromLockup}
sending={actionsPending('TRANSFER_ALL_FROM_LOCKUP')}
/>
| 3 |
diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx @@ -225,7 +225,8 @@ Blocks.propTypes = {
insertionMarkerOpacity: PropTypes.number,
fieldShadow: PropTypes.string,
dragShadowOpacity: PropTypes.number
- })
+ }),
+ comments: PropTypes.bool
}),
vm: PropTypes.instanceOf(VM).isRequired
};
@@ -252,7 +253,8 @@ Blocks.defaultOptions = {
insertionMarkerOpacity: 0.2,
fieldShadow: 'rgba(255, 255, 255, 0.3)',
dragShadowOpacity: 0.6
- }
+ },
+ comments: false
};
Blocks.defaultProps = {
| 4 |
diff --git a/client/components/cards/cardCustomFields.js b/client/components/cards/cardCustomFields.js @@ -287,7 +287,12 @@ CardCustomField.register('cardCustomField');
let items = this.getItems();
items.splice(idx + 1, 0, '');
this.stringtemplateItems.set(items);
- //event.target.nextSibling.focus();
+
+ Tracker.afterFlush(() => {
+ const element = this.findAll('input')[idx + 1];
+ element.focus();
+ element.value = '';
+ });
}
}
}
| 4 |
diff --git a/admin-base/materialize/custom/_vue-form-generator.scss b/admin-base/materialize/custom/_vue-form-generator.scss }
.form-group {
position: relative;
- padding: 1.5rem 0;
- border-top: 1px solid #fff;
- border-bottom: 1px solid color("blue-grey", "lighten-4");
+ padding: 0.75rem 0;
&.required {
> label:after {
display: inline-block;
clear: both;
.wrap {
h5 {
- color: color("blue-grey", "darken-2");
- font-size: 1rem;
- text-transform: capitalize;
+ color: color("blue-grey", "base");
+ font-size: 1.25rem;
.btn-floating {
width: 30px;
height: 30px;
.collapsible {
margin: 0 -0.75rem 1.5rem;
box-shadow: none;
- border-left: 0;
- border-right: 0;
- border-color: color("blue-grey", "lighten-4");
+ border: none;
clear: both;
> li {
.collapsible-header {
background-color: #fff;
border-bottom-color: color("blue-grey", "lighten-4");
color: color("blue-grey", "darken-2");
- i {
+ .material-icons {
float: none;
float: right;
margin: 0 0 0 0.75rem;
+ &:hover,
+ &:focus,
+ &:active {
+ color: color("blue-grey", "base");
+ }
}
}
.collapsible-body {
border-color: color("blue-grey", "lighten-4");
padding: 0.75rem 0.75rem 0;
+
+ label {
+ font-size: 0.9rem;
+ }
}
&.active {
.collapsible-header {
- background-color: transparent;
- border-bottom-color: transparent;
- border-top: 1px solid #fff !important;
+ font-weight: 500;
}
- .collapsible-body {
- padding: 0.75rem 0.75rem 0;
- display: block;
+ }
+ &.deleted {
+ display: none;
+ }
+ &:first-child {
+ .collapsible-header {
+ border-top: 1px solid color("blue-grey", "lighten-4");
}
}
&:last-child {
.collection-fields {
width: 100%;
margin: 0;
- padding: 0 0.75rem;
+ padding: 0;
clear: both;
> .collection-field {
padding: 0;
position: relative;
+ label {
+ font-size: 0.9rem;
+ }
.vue-form-generator {
display: inline-block;
width: calc(100% - 3rem);
- background-color: #fff;
+ background-color: transparent;
fieldset {
.form-group {
padding: 0;
.wrapper {
input {
width: 100%;
- border-top: 0;
- margin: 0 0 1px;
+ margin: 0;
}
}
}
.btn-flat {
width: 3rem;
height: 100%;
- float:right;
display: inline-block;
padding: 0;
color: color("blue-grey", "darken-1");
}
}
- > li:first-child {
- .vue-form-generator {
- fieldset {
- .form-group {
- .field-wrap {
- .wrapper {
- input {
- border-top: 1px solid color("blue-grey", "lighten-4");
- }
- }
- }
- }
- }
- }
- }
- > li:last-child,
- > li:only-child {
- .vue-form-generator {
- fieldset {
- .form-group {
- .field-wrap {
- .wrapper {
- input {
- margin-bottom: 0;
- }
- }
- }
- }
- }
- }
- }
+ // > li:first-child {
+ // .vue-form-generator {
+ // fieldset {
+ // .form-group {
+ // .field-wrap {
+ // .wrapper {
+ // input {
+ // border-top: 1px solid color("blue-grey", "lighten-4");
+ // }
+ // }
+ // }
+ // }
+ // }
+ // }
+ // }
+ // > li:last-child,
+ // > li:only-child {
+ // .vue-form-generator {
+ // fieldset {
+ // .form-group {
+ // .field-wrap {
+ // .wrapper {
+ // input {
+ // margin-bottom: 0;
+ // }
+ // }
+ // }
+ // }
+ // }
+ // }
+ // }
}
}
}
| 7 |
diff --git a/packages/openneuro-app/src/scripts/uploader/uploader.jsx b/packages/openneuro-app/src/scripts/uploader/uploader.jsx @@ -100,7 +100,7 @@ class UploadClient extends React.Component {
{},
)
for (const newFile of files) {
- const newFilePath = newFile.webkitRelativePath.split('/')[1]
+ const newFilePath = newFile.webkitRelativePath.split(/\/(.*)/)[1]
// Skip any existing files
if (existingFiles[newFilePath] !== newFile.size) {
filesToUpload.push(newFile)
| 1 |
diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js @@ -198,6 +198,7 @@ class ReportActionItem extends Component {
}
return (
<PressableWithSecondaryInteraction
+ pointerEvents={this.props.action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? 'none' : 'auto'}
ref={el => this.popoverAnchor = el}
onPressIn={() => this.props.isSmallScreenWidth && DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()}
onPressOut={() => ControlSelection.unblock()}
| 12 |
diff --git a/contracts/Proxy.sol b/contracts/Proxy.sol @@ -42,7 +42,7 @@ import "contracts/Proxyable.sol";
contract Proxy is Owned {
Proxyable public target;
- event TargetUpdated(Proxyable _new_address);
+ event TargetUpdated(Proxyable newTarget);
modifier onlyTarget() {
require(Proxyable(msg.sender) == target,
| 10 |
diff --git a/voice-pack-voicer.js b/voice-pack-voicer.js @@ -93,6 +93,10 @@ class VoicePackVoicer {
this.startTime = -1;
this.charactersSinceStart = 0;
}
+ preloadMessage(text) {
+ // voice pack does not need loading
+ return text;
+ }
start(text) {
this.clearTimeouts();
| 0 |
diff --git a/modules/glimpseBidAdapter.js b/modules/glimpseBidAdapter.js @@ -142,11 +142,12 @@ function getGdprConsentChoice(bidderRequest) {
if (hasGdprConsent) {
const gdprConsent = bidderRequest.gdprConsent
+ const hasGdprApplies = hasBooleanValue(gdprConsent.gdprApplies)
return {
consentString: gdprConsent.consentString || '',
vendorData: gdprConsent.vendorData || {},
- gdprApplies: gdprConsent.gdprApplies || true,
+ gdprApplies: hasGdprApplies ? gdprConsent.gdprApplies : true,
}
}
@@ -182,6 +183,13 @@ function hasValue(value) {
)
}
+function hasBooleanValue(value) {
+ return (
+ hasValue(value) &&
+ typeof value === 'boolean'
+ )
+}
+
function hasStringValue(value) {
return (
hasValue(value) &&
| 9 |
diff --git a/src/js/components/InfiniteScroll/__tests__/InfiniteScroll-test.js b/src/js/components/InfiniteScroll/__tests__/InfiniteScroll-test.js import React from 'react';
-import { render } from '@testing-library/react';
+import { render, act } from '@testing-library/react';
import 'jest-styled-components';
import { Grommet, Image, Box } from '../..';
@@ -229,6 +229,10 @@ describe('Number of Items Rendered', () => {
describe('show scenarios', () => {
test(`When show, show item should be visible in window`, () => {
+ jest.useFakeTimers();
+ // Mock scrollIntoView since JSDOM doesn't do layout.
+ // https://github.com/jsdom/jsdom/issues/1695#issuecomment-449931788
+ window.HTMLElement.prototype.scrollIntoView = jest.fn();
const { container } = render(
<Grommet>
<InfiniteScroll items={simpleItems(300)} show={105}>
@@ -236,6 +240,8 @@ describe('show scenarios', () => {
</InfiniteScroll>
</Grommet>,
);
+ // advance timers so InfiniteScroll can scroll to show index
+ act(() => jest.advanceTimersByTime(200));
// item(104) = 'item 105' because indexing starts at 0.
// Need to modify this next selection to only be concerned with the
// visible window.
| 1 |
diff --git a/package.json b/package.json {
"name": "prettier-atom",
"main": "./dist/main.js",
- "version": "0.47.0",
+ "version": "0.47.1",
"description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration",
"keywords": [
"atom",
| 6 |
diff --git a/packages/bitcore-wallet-client/README.md b/packages/bitcore-wallet-client/README.md @@ -36,19 +36,18 @@ Create two files `irene.js` and `tomas.js` with the content below:
#### irene.js
```javascript
-var Client = require('bitcore-wallet-client');
+var Client = require('bitcore-wallet-client/index').default;
var fs = require('fs');
var BWS_INSTANCE_URL = 'https://bws.bitpay.com/bws/api'
// Generates a new extended private key
-var ireneKeys = Keys.create();
+var ireneKeys = Client.Key.create();
var client = new Client({
baseUrl: BWS_INSTANCE_URL,
- verbose: false,
-
+ verbose: false
});
client.createWallet("My Wallet", "Irene", 2, 2, {network: 'testnet'}, function(err, secret) {
| 3 |
diff --git a/vis/js/io.js b/vis/js/io.js @@ -280,7 +280,7 @@ IO.prototype = {
} else if(config.service === "base") {
d.oa = (d.oa_state === 1 || d.oa_state === "1")?(true):(false);
d.oa_link = d.link;
- } else if(config.service = "openaire") {
+ } else if(config.service === "openaire") {
d.oa = (d.oa_state === 1 || d.oa_state === "1")?(true):(false);
d.oa_link = d.link;
} else {
| 1 |
diff --git a/util.js b/util.js @@ -720,6 +720,10 @@ export function copyPQS(dst, src) {
dst.scale.copy(src.scale);
}
+export async function loadJson(u) {
+ const res = await fetch(u);
+ return await res.json();
+}
export async function loadAudio(u) {
const audio = new Audio();
const p = new Promise((accept, reject) => {
| 0 |
diff --git a/public/assets/js/validationFunctions.js b/public/assets/js/validationFunctions.js // validation function which checks the proposed file's type, size, and name
-var validationFunctions = {
+const validationFunctions = {
validateFile: function (file) {
if (!file) {
console.log('no file found');
| 1 |
diff --git a/js/feature/mergedTrack.js b/js/feature/mergedTrack.js @@ -28,6 +28,7 @@ import TrackBase from "../trackBase.js";
import {inferTrackType} from "../util/trackUtils.js";
class MergedTrack extends TrackBase {
+
constructor(config, browser) {
super(config, browser);
}
@@ -40,10 +41,26 @@ class MergedTrack extends TrackBase {
super.init(config);
}
+ get height() {
+ return this._height;
+ }
+
+ set height(h) {
+ this._height = h;
+ if(this.tracks) {
+ for (let t of this.tracks) {
+ t.height = h;
+ t.config.height = h;
+ }
+ }
+ }
+
+
async postInit() {
+
this.tracks = [];
+ const p = [];
for (let tconf of this.config.tracks) {
- if (!tconf.type) inferTrackType(tconf);
tconf.isMergedTrack = true;
const t = await this.browser.createTrack(tconf);
if (t) {
@@ -52,22 +69,15 @@ class MergedTrack extends TrackBase {
} else {
console.warn("Could not create track " + tconf);
}
- }
- Object.defineProperty(this, "height", {
- get() {
- return this._height;
- },
- set(h) {
- this._height = h;
- for (let t of this.tracks) {
- t.height = h;
- t.config.height = h;
+ if (typeof t.postInit === 'function') {
+ p.push(t.postInit());
}
}
- });
this.height = this.config.height || 100;
+
+ return Promise.all(p)
}
@@ -131,6 +141,12 @@ class MergedTrack extends TrackBase {
return popupData;
}
}
+
+
+ supportsWholeGenome() {
+ const b = this.tracks.every(track => track.supportsWholeGenome());
+ return b;
+ }
}
function autoscale(chr, featureArrays) {
| 1 |
diff --git a/articles/connections/database/password-options.md b/articles/connections/database/password-options.md @@ -27,7 +27,7 @@ Note that upon enabling this option, only password changes going forward will be
## Password Dictionary
-The Password Dictionary option, when enabled, allows the use of a password dictionary to stop users from choosing common passwords. The [default dictionary list](https://github.com/danielmiessler/SecLists/blob/master/Passwords/10k_most_common.txt) that Auth0 uses can be enabled just by toggling this option on. It will not allow users to use a password that is present on that list.
+The Password Dictionary option, when enabled, allows the use of a password dictionary to stop users from choosing common passwords. The [default dictionary list](https://github.com/danielmiessler/SecLists/blob/master/Passwords/Common-Credentials/10k-most-common.txt) that Auth0 uses can be enabled just by toggling this option on. It will not allow users to use a password that is present on that list.
Additionally, you can use the text area here and add your own prohibited passwords, one per line. These can be items that are specific to your company, or passwords that your own research has shown you are commonly used in general or at your company in specific.
| 3 |
diff --git a/source/shaders/ibl_filtering.frag b/source/shaders/ibl_filtering.frag @@ -135,8 +135,8 @@ MicrofacetDistributionSample GGX(vec2 xi, float roughness)
// evaluate sampling equations
float alpha = roughness * roughness;
- ggx.cosTheta = sqrt(1.0 - alpha * alpha * xi.y / (1.0 - xi.y));
- ggx.sinTheta = alpha * sqrt(xi.y) / (sqrt(1.0 - xi.y) * ggx.cosTheta);
+ ggx.cosTheta = sqrt((1.0 - xi.y) / (1.0 + (alpha * alpha - 1.0) * xi.y));
+ ggx.sinTheta = sqrt(1.0 - ggx.cosTheta * ggx.cosTheta);
ggx.phi = 2.0 * MATH_PI * xi.x;
// evaluate GGX pdf (for half vector)
| 4 |
diff --git a/includes/Core/Authentication/Clients/OAuth_Client.php b/includes/Core/Authentication/Clients/OAuth_Client.php @@ -669,7 +669,6 @@ final class OAuth_Client {
*/
public function get_proxy_setup_url( $access_code = '', $error_code = '' ) {
$query_params = array(
- 'version' => GOOGLESITEKIT_VERSION,
'scope' => rawurlencode( implode( ' ', $this->get_required_scopes() ) ),
'supports' => rawurlencode( implode( ' ', $this->get_proxy_setup_supports() ) ),
'nonce' => rawurlencode( wp_create_nonce( Google_Proxy::ACTION_SETUP ) ),
| 2 |
diff --git a/articles/design/browser-based-vs-native-experience-on-mobile.md b/articles/design/browser-based-vs-native-experience-on-mobile.md @@ -58,6 +58,10 @@ However, it's worth noting that the number of times a user logs in with the mobi
As explained in the [RFC 8252 OAuth 2.0 for Native Apps](https://tools.ietf.org/html/rfc8252), OAuth 2.0 authorization requests from native apps should only be made through external user-agents, primarily the user's browser. The specification details the security and usability reasons why this is the case.
+::: note
+For an overview of RFC 8252, refer to [OAuth 2.0 Best Practices for Native Apps](https://auth0.com/blog/oauth-2-best-practices-for-native-apps).
+:::
+
## Conclusion
There are upsides and downsides to using either a browser-based or native login flow on mobile devices, but regardless of which option you choose, Auth0 supports either.
| 0 |
diff --git a/website/src/_posts/2019-04-liftoff-08.md b/website/src/_posts/2019-04-liftoff-08.md @@ -33,6 +33,8 @@ After:<br />
- We are currently investigating an issue with `tuts-js-client` which affects uploads where the file size is larger than 500MB as reported in this [issue](https://github.com/tus/tus-js-client/issues/146).
+- We are investigating more on `tus-js-client` fingerprints as they are identical for each file on React Native, the team is figuring out how to properly identify files on that platform, because [the standard file properties that tus-js-client relies on](https://github.com/tus/tus-js-client/blob/master/lib/fingerprint.js#L10) are not available.
+
- We have our first WIP screenshot for the React Native implementation.
<center><img width="400" src="/images/blog/30daystoliftoff/2019-04-02-wip-react-native.png"></center>
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.