code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/js/fcoin.js b/js/fcoin.js @@ -499,7 +499,9 @@ module.exports = class fcoin extends Exchange {
}
if (api === 'private') {
this.checkRequiredCredentials ();
- body = this.json (query);
+ if (method === 'POST') {
+ body = this.urlencode (query);
+ }
request = '/' + this.version + request;
url += request;
let paramsStr = '';
@@ -510,16 +512,17 @@ module.exports = class fcoin extends Exchange {
}
// HTTP_METHOD + HTTP_REQUEST_URI + TIMESTAMP + POST_BODY
let timestamp = this.nonce ();
- let signStr = method + url + timestamp;
+ let tsStr = timestamp.toString ();
+ let signStr = method + url + tsStr;
signStr += (method === 'POST' && paramsStr) ? paramsStr : '';
- let payload = this.stringToBase64 (signStr);
+ let payload = this.stringToBase64 (this.encode (signStr));
let secret = this.encode (this.secret);
let signature = this.hmac (payload, secret, 'sha1', 'binary');
- signature = this.stringToBase64 (signature);
+ signature = this.decode (this.stringToBase64 (signature));
headers = {};
headers['FC-ACCESS-KEY'] = this.apiKey;
headers['FC-ACCESS-SIGNATURE'] = signature;
- headers['FC-ACCESS-TIMESTAMP'] = timestamp.toString ();
+ headers['FC-ACCESS-TIMESTAMP'] = tsStr;
headers['Content-Type'] = 'application/json;charset=UTF-8';
}
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
@@ -545,8 +548,8 @@ module.exports = class fcoin extends Exchange {
const response = JSON.parse (body);
const feedback = this.id + ' ' + this.json (response);
let message = undefined;
- if ('message' in response) {
- message = response['message'];
+ if ('data' in response) {
+ message = response['data'];
} else if ('error' in response) {
message = response['error'];
} else {
| 1 |
diff --git a/website/src/docs/url.md b/website/src/docs/url.md @@ -97,3 +97,12 @@ strings: {
}
```
+## Methods
+
+### `addFile`
+
+You can add a file to the Url plugin directly via the API, like this:
+
+```js
+uppy.getPlugin('Url').addFile('https://example.com/myfile.pdf').then(uppy.upload)
+```
| 0 |
diff --git a/parent_composer.js b/parent_composer.js @@ -33,7 +33,7 @@ function pickParentUnits(conn, arrWitnesses, onDone){
// we need at least one compatible parent, otherwise go deep
if (rows.filter(function(row){ return (row.count_matching_witnesses >= count_required_matches); }).length === 0)
return pickDeepParentUnits(conn, arrWitnesses, onDone);
- onDone(rows.map(function(row){ return row.unit; }));
+ onDone(null, rows.map(function(row){ return row.unit; }));
}
);
}
@@ -57,8 +57,8 @@ function pickDeepParentUnits(conn, arrWitnesses, onDone){
[arrWitnesses, constants.COUNT_WITNESSES - constants.MAX_WITNESS_LIST_MUTATIONS],
function(rows){
if (rows.length === 0)
- throw Error("no deep units?");
- onDone(rows.map(function(row){ return row.unit; }));
+ return onDone("failed to find compatible parents: no deep units");
+ onDone(null, rows.map(function(row){ return row.unit; }));
}
);
}
@@ -75,8 +75,8 @@ function findLastStableMcBall(conn, arrWitnesses, onDone){
[arrWitnesses, constants.COUNT_WITNESSES - constants.MAX_WITNESS_LIST_MUTATIONS],
function(rows){
if (rows.length === 0)
- throw Error("no last stable ball?");
- onDone(rows[0].ball, rows[0].unit, rows[0].main_chain_index);
+ return onDone("failed to find last stable ball");
+ onDone(null, rows[0].ball, rows[0].unit, rows[0].main_chain_index);
}
);
}
@@ -102,8 +102,12 @@ function adjustLastStableMcBall(conn, last_stable_mc_ball_unit, arrParentUnits,
}
function pickParentUnitsAndLastBall(conn, arrWitnesses, onDone){
- pickParentUnits(conn, arrWitnesses, function(arrParentUnits){
- findLastStableMcBall(conn, arrWitnesses, function(last_stable_mc_ball, last_stable_mc_ball_unit, last_stable_mc_ball_mci){
+ pickParentUnits(conn, arrWitnesses, function(err, arrParentUnits){
+ if (err)
+ return onDone(err);
+ findLastStableMcBall(conn, arrWitnesses, function(err, last_stable_mc_ball, last_stable_mc_ball_unit, last_stable_mc_ball_mci){
+ if (err)
+ return onDone(err);
adjustLastStableMcBall(conn, last_stable_mc_ball_unit, arrParentUnits, function(last_stable_ball, last_stable_unit, last_stable_mci){
storage.findWitnessListUnit(conn, arrWitnesses, last_stable_mci, function(witness_list_unit){
var objFakeUnit = {parent_units: arrParentUnits};
| 9 |
diff --git a/lib/assets/javascripts/do-catalog/router.js b/lib/assets/javascripts/do-catalog/router.js @@ -94,7 +94,7 @@ router.afterEach(to => {
if (!to.meta.titleInComponent) {
document.title = to.meta.title(to);
}
- addCanonical(`https://carto.com/spatial-data-catalog/browser${to.fullPath}`);
+ addCanonical(`https://carto.com/spatial-data-catalog/browser${to.path}`);
});
});
| 2 |
diff --git a/api/core/sun/index.js b/api/core/sun/index.js module.exports.init = require('./sun.init.js');
-module.exports.state = require('./sun.state.js');
+module.exports.getState = require('./sun.getState.js');
module.exports.isItNight = require('./sun.isItNight.js');
module.exports.isItDay = require('./sun.isItDay.js');
| 10 |
diff --git a/detox/ios/Detox/Utilities/UIImage+DetoxUtils.m b/detox/ios/Detox/Utilities/UIImage+DetoxUtils.m NSString* somePath = NSHomeDirectory();
NSString* userPath = [somePath substringToIndex:[somePath rangeOfString:@"/Library"].location];
desktopURL = [[NSURL fileURLWithPath:userPath] URLByAppendingPathComponent:@"Desktop"];
-
-// let somePath = NSHomeDirectory()
-// let userPath = somePath[somePath.startIndex..<somePath.range(of: "/Library")!.lowerBound]
-// try! LNViewHierarchyDumper.shared.dumpViewHierarchy(to: URL(fileURLWithPath: String(userPath)).appendingPathComponent("Desktop"))
});
[UIImagePNGRepresentation(self) writeToURL:[desktopURL URLByAppendingPathComponent:@"view.png"] atomically:YES];
| 2 |
diff --git a/src/components/dashboard/FaceVerification/components/DeviceOrientationError.js b/src/components/dashboard/FaceVerification/components/DeviceOrientationError.js @@ -34,7 +34,7 @@ const DeviceOrientationError = ({ styles, displayTitle, onRetry, exception }) =>
}
Dimensions.addEventListener('change', listener)
return () => Dimensions.removeEventListener('change', listener)
- }, [])
+ }, [setSvgHeight])
return (
<Wrapper>
| 0 |
diff --git a/src/lib/wallet/GoodWalletClass.js b/src/lib/wallet/GoodWalletClass.js @@ -576,9 +576,9 @@ export class GoodWallet {
return this.sendTransaction(this.UBIContract.methods.claim(), callbacks)
}
- checkEntitlement(): Promise<number> {
+ async checkEntitlement(): Promise<number> {
try {
- return retry(() =>
+ return await retry(() =>
this.UBIContract.methods
.checkEntitlement()
.call()
| 0 |
diff --git a/test/testHelpers.js b/test/testHelpers.js @@ -54,12 +54,15 @@ export function getMountPoint (t) {
export function testAsync (name, func) {
test(name, async assert => {
+ let success = false
try {
await func(assert)
- } catch (error) {
- assert.fail(error.message)
- console.error(error.stack)
+ success = true
+ } finally {
+ if (!success) {
+ assert.fail('Test failed with an uncaught exception.')
assert.end()
}
+ }
})
}
| 7 |
diff --git a/src/ace/AceStatusBar.hx b/src/ace/AceStatusBar.hx @@ -28,7 +28,7 @@ class AceStatusBar {
public var contextRow:Int = 0;
public var contextName:String = null;
public var ignoreUntil:Float = Main.window.performance.now();
- public var delayTime(default, null):Int;
+ public var delayTime(default, null):Int = 50;
public function new() {
statusBar = document.createDivElement();
statusBar.className = "ace_status-bar";
@@ -56,7 +56,8 @@ class AceStatusBar {
this.editor = editor;
editor.statusBar = this;
var lang = AceWrap.require("ace/lib/lang");
- var dcUpdate = lang.delayedCall(update).schedule.bind(null, delayTime);
+ var dc = lang.delayedCall(update);
+ var dcUpdate = function() dc.schedule(delayTime);
editor.on("changeStatus", dcUpdate);
editor.on("changeSelection", dcUpdate);
editor.on("keyboardActivity", dcUpdate);
| 11 |
diff --git a/test/jasmine/tests/select_test.js b/test/jasmine/tests/select_test.js @@ -420,4 +420,44 @@ describe('select box and lasso', function() {
.catch(fail)
.then(done);
});
+
+ it('should work on scattercarpet traces', function(done) {
+ var fig = Lib.extendDeep({}, require('@mocks/scattercarpet'));
+ var gd = createGraphDiv();
+ var pts = [];
+
+ fig.layout.dragmode = 'select';
+
+ function assertPoints(expected) {
+ expect(pts.length).toBe(expected.length, 'selected points length');
+
+ pts.forEach(function(p, i) {
+ var e = expected[i];
+ expect(p.a).toBe(e.a, 'selected pt a val');
+ expect(p.b).toBe(e.b, 'selected pt b val');
+ });
+ pts = [];
+ }
+
+ Plotly.plot(gd, fig).then(function() {
+ gd.on('plotly_selected', function(data) {
+ pts = data.points;
+ });
+
+ assertSelectionNodes(0, 0);
+ drag([[300, 200], [400, 250]]);
+ assertSelectionNodes(0, 2);
+ assertPoints([{ a: 0.2, b: 1.5 }]);
+
+ return Plotly.relayout(gd, 'dragmode', 'lasso');
+ })
+ .then(function() {
+ assertSelectionNodes(0, 0);
+ drag([[300, 200], [400, 200], [400, 250], [300, 250], [300, 200]]);
+ assertSelectionNodes(0, 2);
+ assertPoints([{ a: 0.2, b: 1.5 }]);
+ })
+ .catch(fail)
+ .then(done);
+ });
});
| 0 |
diff --git a/demos/nice-scale.html b/demos/nice-scale.html <html>
<head>
<meta charset="utf-8">
- <title>Nice Scale</title>
+ <title>Nice Scale & Ticks</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dist/uPlot.min.css">
+ <style>
+ #resize {
+ resize: both;
+ display: inline-block;
+ min-height: 100px;
+ min-width: 100px;
+ background: #f5f5f5;
+ overflow: auto;
+ }
+ </style>
</head>
<body>
+ <div id="resize"></div>
<script src="../dist/uPlot.iife.js"></script>
<script>
// terse port of https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks
function niceScale(dataMin, dataMax, maxTicks) {
- maxTicks = maxTicks || 10;
-
let range = niceNum(dataMax - dataMin, false);
+
let incr = niceNum(range / (maxTicks - 1), true);
return {
+ // dec, // num decimals needed for tick differentiation
incr,
min: Math.floor(dataMin / incr) * incr,
max: Math.ceil(dataMax / incr) * incr,
let niceFrac = round ? (
frac < 1.5 ? 1 :
- frac < 3 ? 2 :
+ frac < 3 ? (frac > 2.25 ? 2.5 : 2) :
frac < 7 ? 5 :
10
) : (
return niceFrac * Math.pow(10, exp);
}
- let xs = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30];
- let vals = [-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11];
-
let data = [
- xs,
- xs.map((t, i) => vals[Math.floor(Math.random() * vals.length)]),
- xs.map((t, i) => vals[Math.floor(Math.random() * vals.length)]),
- xs.map((t, i) => vals[Math.floor(Math.random() * vals.length)]),
+ [0, 1, 2, 3, 4, 5],
+ [-5, -2, 1, 7, 9, 13],
+ [-123, 4, 29, 37, 217, 230],
+ [.5, 0.1, -7, -9, -13, 1],
+ // [7, 8, 9, 10, 11, 12]
];
+ let yNiceScale;
+ let yMaxTicks = 10;
+ let yMinSpace = 30;
+ let yDataMin, yDataMax;
+
+ let width = 1920,
+ height = 600;
+
const opts = {
- width: 1920,
- height: 600,
- title: "Nice Scale",
+ width,
+ height,
+ title: "Nice Scale & Ticks (resize me)",
scales: {
x: {
time: false,
},
y: {
+ // rescale on setSize if incrs is dynamic?
+ // this does change with resize but should in case the range is expanded for niceness
range: (u, dataMin, dataMax) => {
- const { min, max } = niceScale(dataMin, dataMax);
- return [min, max];
+ // if non-zero min or max, grow each by 2% to provide scale padding
+ dataMin *= (dataMin < 0 ? 1.02 : dataMin > 0 ? 0.98 : 1);
+ dataMax *= (dataMax < 0 ? 0.98 : dataMax > 0 ? 1.02 : 1);
+
+ yDataMin = dataMin;
+ yDataMax = dataMax;
+
+ yMaxTicks = Math.floor(u.bbox.height / yMinSpace);
+ yNiceScale = niceScale(dataMin, dataMax, yMaxTicks);
+ return [yNiceScale.min, yNiceScale.max];
}
},
},
+ axes: [
+ {},
+ {
+ incrs: u => {
+ yMaxTicks = Math.floor(u.bbox.height / yMinSpace);
+
+ let _yNiceScale = niceScale(yDataMin, yDataMax, yMaxTicks);
+
+ if (_yNiceScale.min != yNiceScale.min || _yNiceScale.max != yNiceScale.max) {
+ console.log('rescale y!');
+
+ queueMicrotask(() => {
+ u.setScale('y', yNiceScale);
+ });
+ }
+
+ yNiceScale = _yNiceScale;
+
+ return [yNiceScale.incr];
+ },
+ space: yMinSpace
+ }
+ ],
series: [
{},
{
],
};
- let u = new uPlot(opts, data, document.body);
+ let ctnr = document.querySelector("#resize");
+
+ let u = new uPlot(opts, data, ctnr);
+
+ setTimeout(() => {
+ let tr = document.querySelector(".u-title").getBoundingClientRect();
+ let lr = document.querySelector(".u-legend").getBoundingClientRect();
+
+ setInterval(() => {
+ let cr = ctnr.getBoundingClientRect();
+
+ let newWidth = cr.width;
+ let newHeight = cr.height - tr.height - lr.height;
+
+ if (width != newWidth || height != newHeight)
+ u.setSize({width: width = newWidth, height: height = newHeight});
+ }, 500);
+ }, 500);
</script>
</body>
</html>
\ No newline at end of file
| 7 |
diff --git a/src/filesystem/impls/appshell/AppshellFileSystem.js b/src/filesystem/impls/appshell/AppshellFileSystem.js @@ -162,7 +162,7 @@ define(function (require, exports, module) {
return FileSystemError.ALREADY_EXISTS;
case appshell.fs.ERR_ENCODE_FILE_FAILED:
return FileSystemError.ENCODE_FILE_FAILED;
- case appshell.fs.ERR_ENCODE_FILE_FAILED:
+ case appshell.fs.ERR_DECODE_FILE_FAILED:
return FileSystemError.DECODE_FILE_FAILED;
case appshell.fs.ERR_UNSUPPORTED_UTF16_ENCODING:
return FileSystemError.UNSUPPORTED_UTF16_ENCODING;
| 1 |
diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js @@ -46,13 +46,16 @@ class UserLayout extends React.PureComponent {
return null;
});
}
- if (isOauth && oauthInfo && isLogin) {
- const isDisableAutoLogin = query.disable_auto_login;
- if (oauthInfo.is_auto_login && isDisableAutoLogin !== 'true') {
+ const isDisableAutoLogin = query && query.disable_auto_login;
+ if (
+ isOauth &&
+ oauthInfo &&
+ isLogin &&
+ oauthInfo.is_auto_login &&
+ isDisableAutoLogin !== 'true'
+ ) {
globalUtil.removeCookie();
window.location.href = oauthUtil.getAuthredictURL(oauthInfo);
- }
- this.isRender(!oauthInfo.is_auto_login);
} else {
this.isRender(true);
}
| 1 |
diff --git a/kitty-items-js/README.md b/kitty-items-js/README.md @@ -41,6 +41,11 @@ Note that when the API starts, it will automatically run the database migrations
docker-compose up -d
```
+- Configure the value `SALE_OFFER_EVENT_NAME` on the `.env`, following the Flow event
+ format (`A.ContractAddress.Contract.EventName`). For example:
+ `A.fcceff21d9532b58.KittyItemsMarket.SaleOfferCreated`, where the address where the contracts have been deployed
+ is `fcceff21d9532b58`.
+
- Start workers / flow event handlers:
```
| 0 |
diff --git a/lib/node_modules/@stdlib/types/ndarray/ctor/lib/main.js b/lib/node_modules/@stdlib/types/ndarray/ctor/lib/main.js @@ -83,6 +83,9 @@ function ctor( dtype, ndims, options ) {
this._iget = parent.prototype.iget; // TODO: remove
this._iset = parent.prototype.iset; // TODO: remove
+ // Set private properties:
+ this._mode = opts.mode;
+
return this;
} // end FUNCTION ndarray()
| 12 |
diff --git a/token-metadata/0x130Da3E198f092Fe2a6e6c21893dc77746d7e406/metadata.json b/token-metadata/0x130Da3E198f092Fe2a6e6c21893dc77746d7e406/metadata.json "symbol": "NEWS",
"address": "0x130Da3E198f092Fe2a6e6c21893dc77746d7e406",
"decimals": 8,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/__experimental__/components/select/select.style.js b/src/__experimental__/components/select/select.style.js import styled, { css } from 'styled-components';
import PropTypes from 'prop-types';
import baseTheme from '../../../style/themes/base';
+import StyledPill from '../../../components/pill/pill.style';
import { isClassic } from '../../../utils/helpers/style-helper';
const StyledSelectPillContainer = styled.div`
@@ -9,11 +10,12 @@ const StyledSelectPillContainer = styled.div`
justify-content: center;
margin: 3px 2px 3px 0;
- .carbon-pill {
+ && ${StyledPill} {
max-width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ margin: 0px;
${({ theme }) => !isClassic(theme) && css`
.carbon-icon {
| 14 |
diff --git a/examples/README.md b/examples/README.md # Plugin examples
The following examples should help you to get up & running with Plugin development.
+
+* [Hello World](./hello-world): a starter plugin example, which illustrates how to add a menu command to the Plugins menu and execute some code when it is selected.
+* [Resources](./resources): an example which illustrates how to bundle resource files along with your Plugin, and access them from your code.
+* [Selection Changed](./selection-changed): an example plugin which illustrates how to listen for the `SelectionChanged` action, and to do something whenever the user changes the selection.
+* [SVGO export](./svgo-export): this plugin compresses SVG assets using SVGO right after they're exported from Sketch and shows how to hook into the `ExportSlices` action.
+* [Text Utilities](./text-utilities): this plugin provides some debugging tools which annotate text layers to show where their baselines and bounding boxes are.
| 7 |
diff --git a/src/geometry/Path.js b/src/geometry/Path.js @@ -97,11 +97,13 @@ class Path extends Geometry {
'easing': easing
}, frame => {
if (!this.getMap()) {
+ if (player.playState !== 'finished') {
player.finish();
if (cb) {
const coordinates = this.getCoordinates();
cb(frame, coordinates[coordinates.length - 1]);
}
+ }
return;
}
const currentCoord = this._drawAnimShowFrame(frame.styles.t, duration, length, animCoords);
| 1 |
diff --git a/generators/server/templates/build.gradle.ejs b/generators/server/templates/build.gradle.ejs @@ -203,7 +203,7 @@ liquibase {
activities {
main {
driver "<% if (devDatabaseType === 'mysql') { %>com.mysql.cj.jdbc.Driver<% } else if (devDatabaseType === 'mariadb') { %>org.mariadb.jdbc.Driver<% } else if (devDatabaseType === 'postgresql') { %>org.postgresql.Driver<% } else if (devDatabaseType === 'h2Disk') { %>org.h2.Driver<% } else if (devDatabaseType === 'oracle') { %>oracle.jdbc.OracleDriver<% } %>"
- url "<% if (devDatabaseType === 'mysql') { %>jdbc:mysql://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'mariadb') { %>jdbc:mariadb://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'postgresql') { %>jdbc:postgresql://localhost:5432/<%= baseName %><% } else if (devDatabaseType === 'h2Disk') { %>jdbc:h2:file:./target/h2db/db/<%= lowercaseBaseName %><% } else if (devDatabaseType === 'oracle') { %>jdbc:oracle:thin:@localhost:1521:<%= baseName %><% } else if (devDatabaseType === 'mssql') { %>jdbc:sqlserver://localhost:1433;database=<%= baseName %><% } %>"
+ url "<% if (devDatabaseType === 'mysql') { %>jdbc:mysql://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'mariadb') { %>jdbc:mariadb://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'postgresql') { %>jdbc:postgresql://localhost:5432/<%= baseName %><% } else if (devDatabaseType === 'h2Disk') { %>jdbc:h2:file:./build/h2db/db/<%= lowercaseBaseName %><% } else if (devDatabaseType === 'oracle') { %>jdbc:oracle:thin:@localhost:1521:<%= baseName %><% } else if (devDatabaseType === 'mssql') { %>jdbc:sqlserver://localhost:1433;database=<%= baseName %><% } %>"
username "<% if (devDatabaseType === 'mysql') { %>root<% } else if (devDatabaseType === 'postgresql' || devDatabaseType === 'h2Disk' || devDatabaseType === 'h2Memory') { %><%= baseName %><% } else if (devDatabaseType === 'mssql') { %>SA<% } %>"
password "<% if (devDatabaseType === 'mssql') { %>yourStrong(!)Password<% } %>"
changeLogFile "<%= SERVER_MAIN_RES_DIR %>config/liquibase/master.xml"
@@ -213,7 +213,7 @@ liquibase {
}
diffLog {
driver "<% if (devDatabaseType === 'mysql') { %>com.mysql.cj.jdbc.Driver<% } else if (devDatabaseType === 'mariadb') { %>org.mariadb.jdbc.Driver<% } else if (devDatabaseType === 'postgresql') { %>org.postgresql.Driver<% } else if (devDatabaseType === 'h2Disk') { %>org.h2.Driver<% } else if (devDatabaseType === 'oracle') { %>oracle.jdbc.OracleDriver<% } %>"
- url "<% if (devDatabaseType === 'mysql') { %>jdbc:mysql://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'mariadb') { %>jdbc:mariadb://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'postgresql') { %>jdbc:postgresql://localhost:5432/<%= baseName %><% } else if (devDatabaseType === 'h2Disk') { %>jdbc:h2:file:./target/h2db/db/<%= lowercaseBaseName %><% } else if (devDatabaseType === 'oracle') { %>jdbc:oracle:thin:@localhost:1521:<%= baseName %><% } else if (devDatabaseType === 'mssql') { %>jdbc:sqlserver://localhost:1433;database=<%= baseName %><% } %>"
+ url "<% if (devDatabaseType === 'mysql') { %>jdbc:mysql://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'mariadb') { %>jdbc:mariadb://localhost:3306/<%= baseName %><% } else if (devDatabaseType === 'postgresql') { %>jdbc:postgresql://localhost:5432/<%= baseName %><% } else if (devDatabaseType === 'h2Disk') { %>jdbc:h2:file:./build/h2db/db/<%= lowercaseBaseName %><% } else if (devDatabaseType === 'oracle') { %>jdbc:oracle:thin:@localhost:1521:<%= baseName %><% } else if (devDatabaseType === 'mssql') { %>jdbc:sqlserver://localhost:1433;database=<%= baseName %><% } %>"
username "<% if (devDatabaseType === 'mysql') { %>root<% } else if (devDatabaseType === 'postgresql' || devDatabaseType === 'h2Disk' || devDatabaseType === 'h2Memory') { %><%= baseName %><% } else if (devDatabaseType === 'mssql') { %>SA<% } %>"
password "<% if (devDatabaseType === 'mssql') { %>yourStrong(!)Password<% } %>"
changeLogFile project.ext.diffChangelogFile
| 3 |
diff --git a/src/client/public/functions.ts b/src/client/public/functions.ts @@ -66,27 +66,27 @@ Office.initialize = () => {
(window as any).launchFeedback = (event) => launchInDialog(urls.feedback, event, 60, 60);
- (window as any).launchAsk = (event) => launchInDialog(urls.ask, event, 60, 60);
+ (window as any).launchAsk = (event) => launchInIframe(urls.ask, event, 60, 60);
(window as any).launchApiDocs = (event) => {
if (Office.context.requirements.isSetSupported('ExcelApi')) {
- return launchInDialog(urls.excel_api, event, 60, 60);
+ return launchInIframe(urls.excel_api, event, 60, 60);
}
else if (Office.context.requirements.isSetSupported('WordApi')) {
- return launchInDialog(urls.word_api, event, 60, 60);
+ return launchInIframe(urls.word_api, event, 60, 60);
}
else if (Office.context.requirements.isSetSupported('OneNoteApi')) {
- return launchInDialog(urls.onenote_api, event, 60, 60);
+ return launchInIframe(urls.onenote_api, event, 60, 60);
}
else {
if (Utilities.host === HostType.POWERPOINT) {
- return launchInDialog(urls.powepoint_api, event, 60, 60);
+ return launchInIframe(urls.powepoint_api, event, 60, 60);
}
else if (Utilities.host === HostType.PROJECT) {
- return launchInDialog(urls.project_api, event, 60, 60);
+ return launchInIframe(urls.project_api, event, 60, 60);
}
else {
- return launchInDialog(urls.generic_api, event, 60, 60);
+ return launchInIframe(urls.generic_api, event, 60, 60);
}
}
};
| 12 |
diff --git a/src/scripts/browser/menus/templates/main-help.js b/src/scripts/browser/menus/templates/main-help.js @@ -4,10 +4,10 @@ export default {
label: '&Help',
role: 'help',
submenu: [{
- label: 'App Website',
+ label: 'Open App Website',
click: $.openUrl('https://messengerfordesktop.com/')
}, {
- label: 'Email Us',
- click: $.openUrl('mailto:[email protected]')
+ label: 'Send Feedback',
+ click: $.openUrl('https://aluxian.typeform.com/to/sr2gEc')
}]
};
| 14 |
diff --git a/sources/us/pa/union.json b/sources/us/pa/union.json "address": "Union County Government Center, 155 N. 15th Street, Lewisburg, PA 17837"
},
"website": "https://unioncounty.maps.arcgis.com/home/index.html",
- "data": "https://github.com/aaronpdennis/pa-county-addresses/raw/master/data/UNION/UNION_addresses.csv",
- "protocol": "http",
- "note": "Data extracted from 2009 state government collection. Individual county GIS offices may have more recent addresses.",
+ "data": "https://www.unionco.org/unioncomaps/rest/services/Union/UnionLandRecords/MapServer/0",
+ "protocol": "ESRI",
"conform": {
- "format": "csv",
- "number": "SAN",
- "street": ["PRD","STP","STN","STS","POD"],
- "city": "MCN",
- "lon": "X",
- "lat": "Y",
- "id": "PIN",
- "accuracy": 5
+ "format": "geojson",
+ "number": "ADDRNUM",
+ "street": [
+ "St_PreDir",
+ "StreetName",
+ "St_PosTyp",
+ "St_PosDir"
+ ],
+ "unit": "Unit",
+ "city": "Post_Comm",
+ "postcode": "Post_Code"
}
}
\ No newline at end of file
| 14 |
diff --git a/assets/js/modules/analytics/setup.js b/assets/js/modules/analytics/setup.js @@ -906,13 +906,13 @@ class AnalyticsSetup extends Component {
return (
<div className={ showErrorFormat ? 'googlesitekit-error-text' : '' }>
- <p><p>{
+ <p>{
showErrorFormat ?
/* translators: %s: Error message */
sprintf( __( 'Error: %s', 'google-site-kit' ), message ) :
message
- }</p></p>
+ }</p>
</div>
);
}
| 2 |
diff --git a/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js b/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js @@ -2,7 +2,7 @@ import React from 'react';
import {
View, TouchableOpacity, Dimensions, InteractionManager, LayoutAnimation,
} from 'react-native';
-import {withOnyx} from 'react-native-onyx';
+import Onyx, {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
import lodashGet from 'lodash/get';
import PaymentMethodList from '../PaymentMethodList';
@@ -34,6 +34,7 @@ import {withNetwork} from '../../../../components/OnyxProvider';
import * as PaymentUtils from '../../../../libs/PaymentUtils';
import Icon from '../../../../components/Icon';
import colors from '../../../../styles/colors';
+import OfflineWithFeedback from '../../../../components/OfflineWithFeedback';
class BasePaymentsPage extends React.Component {
constructor(props) {
@@ -258,6 +259,13 @@ class BasePaymentsPage extends React.Component {
Navigation.navigate(ROUTES.SETTINGS_PAYMENTS_TRANSFER_BALANCE);
}
+ /**
+ * Dismisses the error on the user's wallet
+ */
+ dismissError() {
+ Onyx.merge(ONYXKEYS.USER_WALLET, {errors: null});
+ }
+
render() {
const isPayPalMeSelected = this.state.formattedSelectedPaymentMethod.type === CONST.PAYMENT_METHODS.PAYPAL;
const shouldShowMakeDefaultButton = !this.state.isSelectedPaymentMethodDefault && Permissions.canUseWallet(this.props.betas) && !isPayPalMeSelected;
@@ -438,14 +446,8 @@ class BasePaymentsPage extends React.Component {
danger
/>
{
- !_.isEmpty(errorMessage) && (
- <View style={[styles.flexRow, styles.alignItemsCenter, styles.mb3, styles.ml3]}>
- <Icon src={Expensicons.Exclamation} fill={colors.red} />
- <View style={[styles.flexRow, styles.ml2, styles.flexWrap, styles.flex1]}>
- <Text style={styles.mutedTextLabel}>{errorMessage}</Text>
- </View>
- </View>
- )
+ <OfflineWithFeedback onClose={() => this.dismissError()} errors={this.props.userWallet.errors} errorStyle={styles.ph6}>
+ </OfflineWithFeedback>
}
</ScreenWrapper>
);
| 4 |
diff --git a/src/base/FormElementMixin.js b/src/base/FormElementMixin.js @@ -89,7 +89,7 @@ export default function FormElementMixin(Base) {
this.setAttribute("name", this[state].name);
}
- if (this[nativeInternals]) {
+ if (this[nativeInternals] && this[nativeInternals].setValidity) {
// Reflect validity state to internals.
if (changed.valid || changed.validationMessage) {
const { valid, validationMessage } = this[state];
| 9 |
diff --git a/src/views/Swap/Swap.vue b/src/views/Swap/Swap.vue @@ -806,7 +806,7 @@ export default {
return getSwapProvider(this.activeNetwork, this.selectedQuote.provider)
},
defaultAmount() {
- return 1
+ return this.max;
},
isPairAvailable() {
const liqualityMarket = this.networkMarketData?.find(
| 3 |
diff --git a/source/dom/Element.js b/source/dom/Element.js @@ -578,6 +578,26 @@ Object.toCSSString = function ( object ) {
return result;
};
+/**
+ Function: O.Element.getAncestors
+
+ Gets an array of all the elements ancestors, including itself.
+
+ Parameters:
+ el - {Element} The element whose ancestors will be returned.
+
+ Returns:
+ {Element[]} An array of elements.
+*/
+const getAncestors = function ( el ) {
+ const ancestors = [];
+ while ( el ) {
+ ancestors.push( el );
+ el = el.parentElement;
+ }
+ return ancestors.reverse();
+};
+
export {
forView,
create,
@@ -589,6 +609,7 @@ export {
contains,
nearest,
getPosition,
+ getAncestors,
};
// TODO(cmorgan/modulify): do something about these exports: Object.toCSSString
| 0 |
diff --git a/_includes/languages.html b/_includes/languages.html <div class="col l4">
<!----------multi language support----------->
- <p class="white-text" style="font-weight: bold;font-size:1.3em;">Language</p>
+ <p class="black-text" style="font-weight: bold;font-size:1.3em;">Language</p>
<div style="margin-top:-50px;margin-left:25px;">
<a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="gflag nturl" style="background-position:-200px -0px;-webkit-filter: grayscale(90%);filter: grayscale(90%);"></br><img src="/assets/images/flags/en.svg" height="23" alt="English" /></a>
| 3 |
diff --git a/js/ui/templates/hamburger-menu.es6.js b/js/ui/templates/hamburger-menu.es6.js @@ -19,17 +19,15 @@ module.exports = function () {
</a>
</li>
<li>
- <a href="https://www.surveymonkey.com/r/feedback_firefox"
- class="menu-title"
- target="_blank">
+ <a href="mailto:[email protected]?subject=Firefox%20Extension%20Feedback&body=Help%20us%20improve%20by%20sharing%20a%20little%20info%20about%20the%20issue%20you've%20encountered.%0A%0ATell%20us%20which%20features%20or%20functionality%20your%20feedback%20refers%20to%2E%20What%20do%20you%20love%3F%20What%20isn%27t%20working%3F%20How%20could%20it%20be%20improved%3F"
+ class="menu-title">
Send feedback
<span>Got issues or suggestions? Let us know!</span>
</a>
</li>
<li>
- <a href="https://www.surveymonkey.com/r/V6L5ZY2"
- class="menu-title"
- target="_blank">
+ <a href="mailto:[email protected]?subject=Firefox%20Extension%20Broken%20Site%20Report&body=Help%20us%20improve%20by%20sharing%20a%20little%20info%20about%20the%20issue%20you%27ve%20encountered%2E%0A%0A1%2E%20Which%20website%20is%20broken%3F%20%28copy%20and%20paste%20the%20URL%29%0A%0A2%2E%20Describe%20the%20issue%2E%20%28What%27s%20breaking%20on%20the%20page%3F%20Attach%20a%20screenshot%20if%20possible%2E%29%0A"
+ class="menu-title">
Report broken site
<span>If a site's not working, please tell us.</span>
</a>
| 14 |
diff --git a/app/pages/lab/workflow-viewer/task.cjsx b/app/pages/lab/workflow-viewer/task.cjsx React = require 'react'
ReactDOM = require 'react-dom'
-Resizable = require 'react-component-resizable'
+Resizable = require('react-component-resizable').default
{TaskName, RequireBox, HelpButton} = require './task-helpers'
AnswerList = require './answers'
jsPlumbStyle = require './jsplumb-style'
| 1 |
diff --git a/lib/validate.js b/lib/validate.js @@ -17,6 +17,23 @@ const preferredExtensions = [ '.js', '.ts', '.jsx', '.tsx' ];
module.exports = {
validate() {
+ const getHandlerFileAndFunctionName = functionDefinition => {
+ const { handler: handlerProp, image: imageProp } = functionDefinition;
+
+ if (handlerProp) {
+ return handlerProp;
+ }
+
+ if (!imageProp || !imageProp.command || !imageProp.command.length < 1) {
+ const docsLink = 'https://www.serverless.com/blog/container-support-for-lambda';
+ throw new this.serverless.classes.Error(
+ `Either function.handler or function.image must be defined. Pass the handler name (i.e. 'index.handler') as the value for function.image.command[0]. For help see: ${docsLink}`
+ );
+ }
+
+ return imageProp.command[0];
+ };
+
const getHandlerFile = handler => {
// Check if handler is a well-formed path based handler.
const handlerEntry = /(.*)\..*?$/.exec(handler);
@@ -59,7 +76,7 @@ module.exports = {
};
const getEntryForFunction = (name, serverlessFunction) => {
- const handler = serverlessFunction.handler;
+ const handler = getHandlerFileAndFunctionName(serverlessFunction);
const handlerFile = getHandlerFile(handler);
if (!handlerFile) {
@@ -212,7 +229,7 @@ module.exports = {
}),
funcName => {
const func = this.serverless.service.getFunction(funcName);
- const handler = func.handler;
+ const handler = getHandlerFileAndFunctionName(func);
const handlerFile = path.relative('.', getHandlerFile(handler));
return {
handlerFile,
| 11 |
diff --git a/src/components/dashboard/Claim.js b/src/components/dashboard/Claim.js @@ -150,14 +150,24 @@ const Claim = ({ screenProps }: ClaimProps) => {
<Wrapper>
<TopBar push={screenProps.push} />
<Section.Stack grow={3} justifyContent="flex-start">
- <Text style={styles.description}>GoodDollar allows you to collect</Text>
+ <Text color="surface">GoodDollar allows you to collect</Text>
<Section.Row justifyContent="center">
- <Text style={styles.descriptionPunch}>1</Text>
- <Text style={[styles.descriptionPunch, styles.descriptionPunchCurrency]}> G$</Text>
- <Text style={[styles.descriptionPunch, styles.noTransform]}> Free</Text>
+ <Text family="slabBold" size={36} color="surface">
+ 1
+ </Text>
+ <Text family="slabBold" size={20} color="surface">
+ {' '}
+ G$
+ </Text>
+ <Text family="slabBold" size={36} color="surface">
+ {' '}
+ Free
+ </Text>
</Section.Row>
<Section.Row justifyContent="center">
- <Text style={[styles.descriptionPunch, styles.noTransform]}>Every Day</Text>
+ <Text family="slabBold" size={36} color="surface">
+ Every Day
+ </Text>
</Section.Row>
</Section.Stack>
<Section grow={3} style={styles.extraInfo}>
@@ -178,7 +188,9 @@ const Claim = ({ screenProps }: ClaimProps) => {
</Section.Row>
<Section.Stack grow={3} style={styles.extraInfoCountdown} justifyContent="center">
<Text>Next daily income:</Text>
- <Text style={styles.extraInfoCountdownClock}>{nextClaim}</Text>
+ <Text family="slabBold" size={36} color="#00c3ae">
+ {nextClaim}
+ </Text>
</Section.Stack>
{ClaimButton}
</Section>
@@ -187,21 +199,14 @@ const Claim = ({ screenProps }: ClaimProps) => {
}
const styles = StyleSheet.create({
- description: { fontSize: normalize(16), color: '#ffffff' },
- descriptionPunch: { fontFamily: 'RobotoSlab-Bold', fontSize: normalize(36), color: '#ffffff' },
- descriptionPunchCurrency: { fontSize: normalize(20) },
- noTransform: { textTransform: 'none' },
extraInfo: { marginBottom: 0, padding: normalize(8), paddingTop: normalize(8), paddingBottom: normalize(8) },
- valueHighlight: { fontWeight: 'bold', color: '#00afff' },
extraInfoStats: { backgroundColor: '#e0e0e0', borderRadius: normalize(5) },
- extraInfoStatsCurrency: { fontSize: normalize(12) },
extraInfoCountdown: {
backgroundColor: '#e0e0e0',
marginTop: normalize(8),
marginBottom: normalize(16),
borderRadius: normalize(5)
- },
- extraInfoCountdownClock: { fontSize: normalize(36), color: '#00c3ae', fontFamily: 'RobotoSlab-Bold' }
+ }
})
const claim = GDStore.withStore(Claim)
| 14 |
diff --git a/main_chain.js b/main_chain.js @@ -799,7 +799,7 @@ function determineIfStableInLaterUnits(conn, earlier_unit, arrLaterUnits, handle
var arrNotIncludedTips = [];
var arrRemovedBestChildren = [];
- function goDownAndCollectBestChildren(arrStartUnits, cb){
+ function goDownAndCollectBestChildrenOld(arrStartUnits, cb){
conn.query("SELECT unit, is_free, main_chain_index FROM units WHERE best_parent_unit IN(?)", [arrStartUnits], function(rows){
if (rows.length === 0)
return cb();
@@ -812,7 +812,7 @@ function determineIfStableInLaterUnits(conn, earlier_unit, arrLaterUnits, handle
if (row.is_free === 1 || arrLaterUnits.indexOf(row.unit) >= 0)
cb2();
else
- goDownAndCollectBestChildren([row.unit], cb2);
+ goDownAndCollectBestChildrenOld([row.unit], cb2);
}
if (row.main_chain_index !== null && row.main_chain_index <= max_later_limci)
@@ -952,8 +952,8 @@ function determineIfStableInLaterUnits(conn, earlier_unit, arrLaterUnits, handle
console.log("collectBestChildren took "+(Date.now()-start_time)+"ms");
cb();
});
- goDownAndCollectBestChildren(arrFilteredAltBranchRootUnits, function(){
- console.log("goDownAndCollectBestChildren took "+(Date.now()-start_time)+"ms");
+ goDownAndCollectBestChildrenOld(arrFilteredAltBranchRootUnits, function(){
+ console.log("goDownAndCollectBestChildrenOld took "+(Date.now()-start_time)+"ms");
var arrBestChildren1 = _.clone(arrBestChildren.sort());
arrBestChildren = arrInitialBestChildren;
start_time = Date.now();
| 10 |
diff --git a/src/components/select/Select.js b/src/components/select/Select.js @@ -518,7 +518,7 @@ export default class SelectComponent extends Field {
}
refresh(value, { instance }) {
- if (this.component.clearOnRefresh && !instance.pristine) {
+ if (this.component.clearOnRefresh && (instance && !instance.pristine)) {
this.setValue(this.emptyValue);
}
| 9 |
diff --git a/source/delegate/test/Delegate.js b/source/delegate/test/Delegate.js @@ -69,10 +69,9 @@ contract('Delegate Integration Tests', async accounts => {
await setupIndexer()
await setupFactory()
- let trx = await delegateFactory.createDelegate(
- aliceAddress,
- aliceTradeWallet
- )
+ let trx = await delegateFactory.createDelegate(aliceTradeWallet, {
+ from: aliceAddress,
+ })
let aliceDelegateAddress
emitted(trx, 'CreateDelegate', e => {
//capture the delegate address
| 3 |
diff --git a/packages/build/src/log/main.js b/packages/build/src/log/main.js @@ -219,7 +219,9 @@ const logTimer = function(logs, durationNs, timerName) {
const logFailPluginWarning = function(methodName, event) {
logError(
undefined,
- `Plugin error: Inside "${event}", utils.build.failPlugin() should be used instead of utils.build.${methodName}()`,
+ `Plugin error: since "${event}" happens after deploy, the build has already succeeded and cannot fail anymore. This plugin should either:
+- use utils.build.failPlugin() instead of utils.build.${methodName}() to clarify that the plugin failed, but not the build.
+- use "onPostBuild" instead of "${event}" if the plugin failure should make the build fail too. Please note that "onPostBuild" (unlike "${event}") happens before deploy.`,
)
}
| 7 |
diff --git a/tools/patch_libs.js b/tools/patch_libs.js @@ -31,8 +31,9 @@ function patch_slowaes(text) {
.replace(/(var blockSize = 16;\s*)(for \(var i = data\.length - 1;)/, "$1if (data.length > 16) {\r\n\t\t$2")
.replace(/(data\.splice\(data\.length - padCount, padCount\);\r\n)/, "$1\t\t}\r\n");
- // this section is to ensure byte-for-byte correctness with the old build_libs.sh version, it's otherwise useless
+ // dos_to_unix because web archive does this and therefore integrity checks for the userscript can fail
patched = dos_to_unix(patched);
+ // this section is to ensure byte-for-byte correctness with the old build_libs.sh version, it's otherwise useless
var matchregex = /for \(var i = data\.length - 1;[\s\S]+data\.splice\(data\.length - padCount, padCount\);/
var match = patched.match(matchregex);
var indented = match[0].replace(/^/mg, "\t");
@@ -98,6 +99,7 @@ lib_patches["shaka"] = {
};
function patch_jszip(text) {
+ // don't store in window
text = text
.replace(/^/, "var _fakeWindow={};\n")
.replace(/\("undefined"!=typeof window.window:"undefined"!=typeof global.global:"undefined"!=typeof self.self:this\)/g, "(_fakeWindow)")
@@ -142,10 +144,8 @@ async function do_patch(libname, getfile) {
return patched;
}
-module.exports = do_patch;
-
// https://stackoverflow.com/a/42587206
-var isCLI = !module.parent;
+var isCLI = typeof navigator === "undefined" && !module.parent;
if (isCLI) {
var fs = require("fs");
var readfile = function(file) {
| 6 |
diff --git a/story.js b/story.js @@ -432,10 +432,11 @@ done && currentConversation.finish();
};
export const handleStoryMouseClick = async (e) => {
-
if (cameraManager.pointerLockElement) {
if (e.button === 0 && (cameraManager.focus && zTargeting.focusTargetReticle)) {
const app = metaversefile.getAppByPhysicsId(zTargeting.focusTargetReticle.physicsId);
+
+ if (app) {
const {appType} = app;
// cameraManager.setFocus(false);
@@ -474,6 +475,9 @@ export const handleStoryMouseClick = async (e) => {
_startConversation(comment, fakePlayer, true);
}
})();
+ } else {
+ console.warn('could not find app for physics id', zTargeting.focusTargetReticle.physicsId);
+ }
} else if (e.button === 0 && currentConversation) {
if (!currentConversation.progressing) {
currentConversation.progress();
| 0 |
diff --git a/magda-gateway/src/Authenticator.ts b/magda-gateway/src/Authenticator.ts @@ -139,7 +139,9 @@ export default class Authenticator {
this.authApiBaseUrl,
options.enableSessionForAPIKeyAccess
);
- this.validAndRecoverSession = this.validAndRecoverSession.bind(this);
+ this.validateAndRefreshSession = this.validateAndRefreshSession.bind(
+ this
+ );
}
/**
@@ -188,8 +190,8 @@ export default class Authenticator {
/**
* A middleware that:
- * - validate the session and destory invalid session
- * - recover session data for valid session
+ * - Validate the session and destroy the invalid one (so the future request won't carry cookies)
+ * - If it's valid session, handle over to `this.passportMiddleware` and `this.passportSessionMiddleware` to build up full session env (i.e. pull session data and set them probably to req.user)
*
* @param {express.Request} req
* @param {express.Response} res
@@ -197,7 +199,7 @@ export default class Authenticator {
* @returns
* @memberof Authenticator
*/
- validAndRecoverSession(
+ validateAndRefreshSession(
req: express.Request,
res: express.Response,
next: express.NextFunction
@@ -333,7 +335,7 @@ export default class Authenticator {
// - if valid API key headers exist, attempt to login via API key
// - otherwise, only make session & passport data available if session has already started (cookie set)
return runMiddlewareList(
- [this.apiKeyMiddleware, this.validAndRecoverSession],
+ [this.apiKeyMiddleware, this.validateAndRefreshSession],
req,
res,
next
| 10 |
diff --git a/src/commands/Settings/Track.js b/src/commands/Settings/Track.js @@ -23,7 +23,7 @@ class Track extends Command {
async run(message) {
const eventsOrItems = new RegExp(`${eventTypes.join('|').replace(/\./ig,'\.')}|${rewardTypes.join('|')}|all|events|items|fissures|syndicates|conclave|clantech|deals`, 'ig');
- const roomId = new RegExp('(?:\\<\\#)?\\d+(?:\\>)?|here', 'ig');
+ const roomId = new RegExp('(?:\\<\\#)?\\d{15,}(?:\\>)?|here', 'ig');
const unsplitItems = message.strippedContent.match(eventsOrItems) ? message.strippedContent.match(eventsOrItems).join(' ') : undefined;
if (!unsplitItems) {
| 4 |
diff --git a/.travis.yml b/.travis.yml @@ -4,7 +4,7 @@ node_js:
- '8'
cache: yarn
after_success:
- - 'if [ "$TRAVIS_REPO_SLUG" = "auth0/cosmos" ]; cp tooling/deployment-package.json build/package.json'
- - 'if [ "$TRAVIS_REPO_SLUG" = "auth0/cosmos" ]; then cd build && npx now-cd --team auth0-design --alias "master=auth0-cosmos-master.now.sh" --alias "stable=auth0-cosmos.now.sh"'
+ - cp tooling/deployment-package.json build/package.json
+ - cd build && npx now-cd --team auth0-design --alias "master=auth0-cosmos-master.now.sh" --alias "stable=auth0-cosmos.now.sh"
notifications:
email: false
| 13 |
diff --git a/src/components/layouts/Layout.js b/src/components/layouts/Layout.js @@ -78,15 +78,22 @@ const Layout = ({ children, initialContext, hasSideBar, location }) => {
</div>
<div
className="sprk-u-BackgroundColor--black
- sprk-u-pvm
+ sprk-u-pam
sprk-u-AbsoluteCenter"
>
+ <p className="sprk-u-Color--white">
+ Designs launching
+ <span className="sprk-u-FontWeight--bold sprk-u-mas">before</span>
+ July 14, 2021, please reference
<a
href="https://v13--spark-design-system.netlify.app/"
- className="docs-c-Banner--link sprk-u-mlm"
+ className="docs-c-Banner--link sprk-u-mls"
>
- View the previous major release of Spark
+ version 13 of Spark
</a>
+ . Questions? Please contact your Product Owner or Experience
+ Director.
+ </p>
</div>
<Header
context={context}
| 3 |
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -34,12 +34,12 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
#### Prerequisites
- git
-- [node.js](https://nodejs.org/en/). We recommend using node.js v8.x, but all
+- [node.js](https://nodejs.org/en/). We recommend using node.js v10.x, but all
versions starting from v6 should work. Upgrading and managing node versions
can be easily done using [`nvm`](https://github.com/creationix/nvm) or its
Windows alternatives.
-- [`npm`](https://www.npmjs.com/) v5.x and up (which ships by default with
- node.js v8.x) to ensure that the
+- [`npm`](https://www.npmjs.com/) v6.x and up (which ships by default with
+ node.js v10.x) to ensure that the
[`package-lock.json`](https://docs.npmjs.com/files/package-lock.json) file is
used and updated correctly.
| 3 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -25,6 +25,7 @@ import * as mathUtils from './math-utils.js';
import JSON6 from 'json-6';
import * as materials from './materials.js';
import * as geometries from './geometries.js';
+import {MeshLodder} from './mesh-lodder.js';
import * as avatarCruncher from './avatar-cruncher.js';
import * as avatarSpriter from './avatar-spriter.js';
import {chatManager} from './chat-manager.js';
@@ -524,6 +525,9 @@ metaversefile.setApi({
useLoaders() {
return loaders;
},
+ useMeshLodder() {
+ return MeshLodder;
+ },
usePhysics() {
const app = currentAppRender;
if (app) {
| 0 |
diff --git a/src/article/converter/r2t/jats2internal.js b/src/article/converter/r2t/jats2internal.js @@ -321,6 +321,9 @@ function _populateBody (doc, jats, jatsImporter) {
let bodyEl = jats.find('article > body')
if (bodyEl) {
let body = doc.get('body')
+ // ATTENTION: because there is already a body node in the document, *the* body, with id 'body'
+ // we must use change the id of the body element so that it does not collide with the internal one
+ bodyEl.id = uuid()
let tmp = jatsImporter.convertElement(bodyEl)
body.append(tmp.children)
doc.delete(tmp)
| 4 |
diff --git a/src/interactions/warframe/LFG.js b/src/interactions/warframe/LFG.js @@ -74,13 +74,12 @@ const fmtLoc = (options, i18n) => {
let val = '';
if (options?.get('place')?.value) {
val += options?.get('place')?.value;
+ }
if (options?.get('place_custom')?.value) {
- val += ` (${options?.get('place_custom')?.value})`;
+ val += options?.get('place_custom')?.value;
}
- } else if (options?.get('place_custom')?.value) {
- val += options?.get('place_for')?.value;
- } else {
- val += i18n`Anywhere`;
+ if (!val.length) {
+ val = i18n`Anywhere`;
}
return val;
};
@@ -94,13 +93,12 @@ const fmtThing = (options, i18n) => {
let val = '';
if (options?.get('for')?.value) {
val += options?.get('for')?.value;
- if (options?.get('for_custom')?.value) {
- val += ` (${options?.get('for_custom')?.value})`;
}
- } else if (options?.get('for_custom')?.value) {
+ if (options?.get('for_custom')?.value) {
val += options?.get('for_custom')?.value;
- } else {
- val += i18n`Anything`;
+ }
+ if (!val) {
+ return i18n`Anything`;
}
return val;
};
| 1 |
diff --git a/lib/jsdom/living/xmlhttprequest.js b/lib/jsdom/living/xmlhttprequest.js @@ -720,7 +720,7 @@ module.exports = function createXMLHttpRequest(window) {
if (!validCORSHeaders(this, response, flag, properties, flag.origin)) {
return;
}
- if (urlObj.username || urlObj.password || response.request.uri.href.match(/^https?:\/\/:@/)) {
+ if (urlObj.username || urlObj.password) {
properties.error = "Userinfo forbidden in cors redirect";
dispatchError(this);
return;
| 11 |
diff --git a/publish/deployed/mainnet/synths.json b/publish/deployed/mainnet/synths.json "asset": "BTC",
"subclass": "PurgeableSynth",
"inverted": {
- "entryPoint": 27680,
- "upperLimit": 41520,
- "lowerLimit": 13840
+ "entryPoint": 40378,
+ "upperLimit": 60567,
+ "lowerLimit": 20189
}
},
{
| 3 |
diff --git a/meeting/meetingPane.js b/meeting/meetingPane.js @@ -805,6 +805,8 @@ module.exports = {
iframe.setAttribute('src', target.uri)
// iframe.setAttribute('style', 'height: 350px; border: 0; margin: 0; padding: 0; resize:both; width: 100%;')
iframe.setAttribute('style', 'border: none; margin: 0; padding: 0; height: 100%; width: 100%; resize: both; overflow:scroll;')
+ // Following https://dev.chromium.org/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes :
+ iframe.setAttribute('allow', 'getUserMedia') // Allow iframe to request camera and mic
containerDiv.style.resize = 'none' // Remove scroll bars on outer div - don't seem to work so well
containerDiv.style.padding = 0
}
| 11 |
diff --git a/index.mjs b/index.mjs import http from 'http';
import https from 'https';
import url from 'url';
+import path from 'path';
import fs from 'fs';
import express from 'express';
import vite from 'vite';
@@ -8,6 +9,7 @@ import fetch from 'node-fetch';
import wsrtc from 'wsrtc/wsrtc-server.mjs';
Error.stackTraceLimit = 300;
+const cwd = process.cwd();
const isProduction = process.argv[2] === '-p';
@@ -35,6 +37,24 @@ function makeId(length) {
return result;
}
+const _proxyUrl = (req, res, u) => {
+ console.log('got u', {u});
+ const proxyReq = /https/.test(u) ? https.request(u) : http.request(u);
+ proxyReq.on('response', proxyRes => {
+ for (const header in proxyRes.headers) {
+ res.setHeader(header, proxyRes.headers[header]);
+ }
+ res.statusCode = proxyRes.statusCode;
+ proxyRes.pipe(res);
+ });
+ proxyReq.on('error', err => {
+ console.error(err);
+ res.statusCode = 500;
+ res.end();
+ });
+ proxyReq.end();
+};
+
(async () => {
const app = express();
app.use('*', async (req, res, next) => {
@@ -43,7 +63,7 @@ function makeId(length) {
res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin');
const o = url.parse(req.originalUrl, true);
- if (/^\/(?:@proxy|public)\//.test(o.pathname) && o.search !== '?import') {
+ if (/^\/(?:@proxy|public)\//.test(o.pathname) && o.query['import'] === undefined) {
const u = o.pathname
.replace(/^\/@proxy\//, '')
.replace(/^\/public/, '')
@@ -67,6 +87,21 @@ function makeId(length) {
req.originalUrl = u;
next();
}
+ } else if (o.query['noimport'] !== undefined) {
+ const p = path.join(cwd, o.pathname);
+ const rs = fs.createReadStream(p);
+ rs.on('error', err => {
+ if (err.code === 'ENOENT') {
+ res.statusCode = 404;
+ res.end('not found');
+ } else {
+ console.error(err);
+ res.statusCode = 500;
+ res.end(err.stack);
+ }
+ });
+ rs.pipe(res);
+ // _proxyUrl(req, res, req.originalUrl);
} else if (/^\/login/.test(o.pathname)) {
req.originalUrl = req.originalUrl.replace(/^\/(login)/,'/');
return res.redirect(req.originalUrl);
| 0 |
diff --git a/OurUmbraco.Site/Views/Partials/Community/Home.cshtml b/OurUmbraco.Site/Views/Partials/Community/Home.cshtml @@ -139,12 +139,13 @@ else
<p>
Contributions to Umbraco GitHub repositories
<small class="link-list">
+ Contributions to default branches for
<a href="https://github.com/umbraco/Umbraco-CMS" target="_blank" title="Umbraco-CMS">Umbraco-CMS</a>,
<a href="https://github.com/umbraco/UmbracoDocs" target="_blank" title="UmbracoDocs">UmbracoDocs</a>,
<a href="https://github.com/umbraco/OurUmbraco" target="_blank" title="OurUmbraco">OurUmbraco</a>,
<a href="https://github.com/umbraco/Umbraco.Deploy.Contrib" target="_blank" title="Umbraco.Deploy.Contrib">Umbraco.Deploy.Contrib</a>,
- <a href="https://github.com/umbraco/Umbraco.Courier.Contrib" target="_blank" title="Umbraco.Courier.Contrib">Umbraco.Courier.Contrib</a>,
- <a href="https://github.com/umbraco/Umbraco.Deploy.ValueConnectors" target="_blank" title="Umbraco.Deploy.ValueConnectors">Umbraco.Deploy.ValueConnectors</a>
+ <a href="https://github.com/umbraco/Umbraco.Courier.Contrib" target="_blank" title="Umbraco.Courier.Contrib">Umbraco.Courier.Contrib</a> and
+ <a href="https://github.com/umbraco/Umbraco.Deploy.ValueConnectors" target="_blank" title="Umbraco.Deploy.ValueConnectors">Umbraco.Deploy.ValueConnectors</a> repos
</small>
</p>
</div>
| 3 |
diff --git a/README.md b/README.md @@ -90,6 +90,7 @@ import 'react-table/react-table.css'
```javascript
import ReactTable from 'react-table'
+render() {
const data = [{
name: 'Tanner Linsley',
age: 26,
@@ -121,6 +122,7 @@ const columns = [{
data={data}
columns={columns}
/>
+}
```
## Data
| 3 |
diff --git a/package.json b/package.json {
"name": "origintrail_node",
"version": "6.0.0-beta.2.0",
- "description": "OTNode v6 Beta 1",
+ "description": "OTNode v6 Beta 2",
"main": "index.js",
"scripts": {
"start": "node index.js",
| 3 |
diff --git a/assets/js/components/wp-dashboard/WPDashboardIdeaHub.stories.js b/assets/js/components/wp-dashboard/WPDashboardIdeaHub.stories.js @@ -33,7 +33,7 @@ const mockEndpoints = () => {
fetchMock.reset();
fetchMock.get(
/^\/google-site-kit\/v1\/modules\/idea-hub\/data\/saved-ideas/,
- { body: savedIdeas, status: 200 }
+ { body: savedIdeas }
);
};
| 2 |
diff --git a/generators/server/templates/src/test/java/package/web/rest/TestUtil.java.ejs b/generators/server/templates/src/test/java/package/web/rest/TestUtil.java.ejs @@ -35,6 +35,7 @@ import org.springframework.security.test.context.TestSecurityContextHolder;
import java.io.IOException;
import java.time.ZonedDateTime;
import java.time.format.DateTimeParseException;
+<%_ if (databaseType === 'sql') { _%>
import java.util.List;
import javax.persistence.EntityManager;
@@ -42,6 +43,7 @@ import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
+<%_ } _%>
import static org.assertj.core.api.Assertions.assertThat;
@@ -171,6 +173,7 @@ public final class TestUtil {
return dfcs;
}
+<%_ if (databaseType === 'sql') { _%>
/**
* Makes a an executes a query to the EntityManager finding all stored objects.
* @param <T> The type of objects to be searched
@@ -186,6 +189,7 @@ public final class TestUtil {
TypedQuery<T> allQuery = em.createQuery(all);
return allQuery.getResultList();
}
+<%_ } _%>
private TestUtil() {}
}
| 1 |
diff --git a/src/OutputChannel.js b/src/OutputChannel.js @@ -324,9 +324,9 @@ export class OutputChannel extends EventEmitter {
* (DOMHighResTimeStamp), the operation will be scheduled for that time. If `time` is omitted, or
* in the past, the operation will be carried out as soon as possible.
*/
- _deselectRegisteredParameter(time) {
- this.sendControlChange(0x65, 0x7F, {time: time});
- this.sendControlChange(0x64, 0x7F, {time: time});
+ _deselectRegisteredParameter({options = {}}) {
+ this.sendControlChange(0x65, 0x7F, {time: options.time});
+ this.sendControlChange(0x64, 0x7F, {time: options.time});
};
/**
@@ -343,7 +343,7 @@ export class OutputChannel extends EventEmitter {
* (DOMHighResTimeStamp), the operation will be scheduled for that time. If `time` is omitted, or
* in the past, the operation will be carried out as soon as possible.
*/
- _selectRegisteredParameter(parameter, time) {
+ _selectRegisteredParameter(parameter, options = {}) {
parameter[0] = Math.floor(parameter[0]);
if (!(parameter[0] >= 0 && parameter[0] <= 127)) {
@@ -355,8 +355,8 @@ export class OutputChannel extends EventEmitter {
throw new RangeError("The control64 value must be between 0 and 127");
}
- this.sendControlChange(0x65, parameter[0], {time: time});
- this.sendControlChange(0x64, parameter[1], {time: time});
+ this.sendControlChange(0x65, parameter[0], {time: options.time});
+ this.sendControlChange(0x64, parameter[1], {time: options.time});
};
@@ -1227,9 +1227,9 @@ export class OutputChannel extends EventEmitter {
parameter = WebMidi.MIDI_REGISTERED_PARAMETER[parameter];
}
- this._selectRegisteredParameter(parameter, this.number, options.time);
- this._setCurrentRegisteredParameter(data, this.number, options.time);
- this._deselectRegisteredParameter(options.time);
+ this._selectRegisteredParameter(parameter, this.number, {time: options.time});
+ this._setCurrentRegisteredParameter(data, this.number, {time: options.time});
+ this._deselectRegisteredParameter({time: options.time});
return this;
| 11 |
diff --git a/src/lib/coerce.js b/src/lib/coerce.js @@ -361,6 +361,10 @@ exports.valObjectMeta = {
* as a convenience, returns the value it finally set
*/
exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt) {
+ return _coerce(containerIn, containerOut, attributes, attribute, dflt).value;
+};
+
+function _coerce(containerIn, containerOut, attributes, attribute, dflt) {
var opts = nestedProperty(attributes, attribute).get();
var propIn = nestedProperty(containerIn, attribute);
var propOut = nestedProperty(containerOut, attribute);
@@ -383,7 +387,10 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
*/
if(opts.arrayOk && isArrayOrTypedArray(valIn)) {
propOut.set(valIn);
- return valIn;
+ return {
+ value: valIn,
+ default: dflt
+ };
}
var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;
@@ -397,8 +404,11 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
coerceFunction(valIn, propOut, dflt, opts);
valOut = propOut.get();
}
- return valOut;
+ return {
+ value: valOut,
+ default: dflt
};
+}
/**
* Variation on coerce
@@ -408,11 +418,11 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
* returns false if there is no user input.
*/
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {
- var valOut = exports.coerce(containerIn, containerOut, attributes, attribute, dflt);
-
- var attr = attributes[attribute];
- var theDefault = (dflt !== undefined) ? dflt : (attr || {}).dflt;
+ var out = _coerce(containerIn, containerOut, attributes, attribute, dflt);
+ var valOut = out.value;
+ var theDefault = out.default;
if(
+ valOut !== undefined &&
theDefault !== undefined &&
theDefault !== valOut
) {
| 0 |
diff --git a/articles/universal-login/i18n.md b/articles/universal-login/i18n.md @@ -19,7 +19,7 @@ The New <dfn data-key="universal-login">Universal Login</dfn> Experience is curr
| en | English |
| es | Spanish |
| fi | Finnish |
-| fr | French |
+| fr-FR | French |
| fr-CA | French (Canada) |
| hi | Hindi |
| hu | Hungarian |
| 3 |
diff --git a/packages/stockflux-components/src/index.css b/packages/stockflux-components/src/index.css --color-highlight: #21B1CA;
--color-highlight-hover: #2198AE;
--color-inactive: #8A96A6;
- --color-hover:#1B3B56;
+ --color-hover:#0D2437;
--color-primary:#0D2437;
--color-secondary:#091A29;
/* Windows*/
--window-background-color:#0D2437;
- --window-header-bar:#071521;
- --window-divider:#091A29;
+ --window-background-color-dark:#071521;
+ --window-header-bar:#010F1B;
+ --window-divider:#010F1B;
--window-icon:#FFFFFF;
--window-stock-hover:#091A29;
/* Charts */
--icon-active:#21B1CA;
--icon-inactive: #8A96A6;
--icon-hover: #1B3B56;
- --icon-hover-light: rgba(256,256,256,0.15);
+ --icon-hover-light:#1B3B56;
+ --header-icon: #ABB3B9;
/* Text */
--text-color:#FFFFFF;
--text-increase:#41D442;
--toolbar-height: 50px;
--search-result-height: 60px;
--icons-size: 30px;
- --titlebar-height: 28px;
+ --titlebar-height: 30px;
--bottom-tab-height: 33px;
--scrollbar-width: 12px;
| 3 |
diff --git a/src/components/general/zone-title-card/zone-title-card.module.css b/src/components/general/zone-title-card/zone-title-card.module.css object-fit: contain;
}
.zoneTitleCard .leftWing .tailImg {
- width: calc(300px);
- height: calc(300px * 300px / 512px);
- transform: scaleY(0.7) translateY(-250px);
- transform-origin: 50% 0;
- z-index: -1;
+ width: 300px;
+ height: calc(300px / 341px * 120px);
}
.zoneTitleCard .rightSection {
/* background-image: linear-gradient(to bottom, #56ab2f, #a8e063); */
/* transition: background-color 1s cubic-bezier(0, 1, 0, 1); */
}
+
+.rainFx {
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ /* width: 100%;
+ height: 100%; */
+ z-index: -1;
+ pointer-events: none;
+}
\ No newline at end of file
| 0 |
diff --git a/utils/pre-swap-checker/contracts/PreSwapChecker.sol b/utils/pre-swap-checker/contracts/PreSwapChecker.sol @@ -27,7 +27,6 @@ contract PreSwapChecker {
IWETH public wethContract;
-
/**
* @notice Contract Constructor
* @param preSwapCheckerWethContract address
@@ -92,7 +91,6 @@ contract PreSwapChecker {
// ensure that sender wallet if receiving weth has approved
// the wrapper to transfer weth and deliver eth to the sender
-
if (order.signer.token == address(wethContract)) {
uint256 allowance = wethContract.allowance(order.sender.wallet, wrapper);
if (allowance < order.signer.amount) {
@@ -100,7 +98,6 @@ contract PreSwapChecker {
errorCount++;
}
}
-
return (errorCount, errors);
}
@@ -228,7 +225,6 @@ contract PreSwapChecker {
errorCount++;
}
}
-
return (errorCount, errors);
}
| 2 |
diff --git a/src/plugins/Tus10.js b/src/plugins/Tus10.js @@ -37,7 +37,8 @@ module.exports = class Tus10 extends Plugin {
const defaultOptions = {
resume: true,
allowPause: true,
- autoRetry: true
+ autoRetry: true,
+ retryDelays: [0, 1000, 3000, 5000]
}
// merge default options with the ones set by user
| 0 |
diff --git a/package.json b/package.json "webpack": "^4.41.2"
},
"devEngines": {
- "node": "8.x || 9.x || 10.x || 11.x || 12.x || 13.x"
+ "node": "8.x || 9.x || 10.x || 11.x || 12.x || 13.x || 14.x"
},
"jest": {
"testRegex": "/scripts/jest/dont-run-jest-directly\\.js$"
| 11 |
diff --git a/src/technologies/j.json b/src/technologies/j.json "headers": {
"X-Powered-By": "JSF(?:/([\\d.]+))?\\;version:\\1"
},
+ "html": "<input type=\"hidden\" name=\"javax.faces.ViewState\"",
"icon": "JavaServer Faces.png",
"implies": "Java",
"website": "http://javaserverfaces.java.net"
| 7 |
diff --git a/articles/connections/apple-siwa/set-up-apple.md b/articles/connections/apple-siwa/set-up-apple.md @@ -41,7 +41,7 @@ Before you can register your app in the Apple Developer Portal, you must have an
1. On the Apple Developer Portal, go to **Certificates, IDs, & Profiles > Identifiers** and click the **blue plus icon** next to **Identifiers** to create a new App ID.
1. Choose **App IDs** as the identifier type and click **Continue**.
-1. Provide a description and a Bundle ID (reverse-domain name style, e.g., `com.exampleco`).
+1. Provide a description and a Bundle ID (reverse-domain name style, e.g., `com.example`).
1. Scroll down and check **Sign In with Apple**.
1. Click **Continue**, and then click **Register**.
@@ -49,8 +49,8 @@ Before you can register your app in the Apple Developer Portal, you must have an
1. Return to the **Certificates, IDs, & Profiles** section and click the **blue plus icon** next to **Identifiers**.

-1. Choose **Services IDs** and click **Continue**. Fill in the description and identifier (`com.exampleco.webapp`).
-1. After checking **Sign In with Apple**, click on **Configure** and define your **Web Domain** (`exampleco.com`) and your **Return URL**. Make sure that your Return URL is your Auth0 domain, such as `foo.auth0.com` (or your Auth0 custom domain if you have one) and follows this format: `https://YOUR_AUTH0_DOMAIN/login/callback`.
+1. Choose **Services IDs** and click **Continue**. Fill in the description and identifier (`com.example.webapp`).
+1. After checking **Sign In with Apple**, click on **Configure** and define your **Web Domain** (`example.com`) and your **Return URL**. Make sure that your Return URL is your Auth0 domain, such as `foo.auth0.com` (or your Auth0 custom domain if you have one) and follows this format: `https://YOUR_AUTH0_DOMAIN/login/callback`.

1. Click **Save**, **Continue**, and then click **Register**.
| 3 |
diff --git a/docs/documentation/Configuration/Server-Options.md b/docs/documentation/Configuration/Server-Options.md @@ -28,7 +28,7 @@ If you're following the [recommended project structure](/getting-started/yo-gene
The template engine to use by default. Any engine with express support should work. You will need to install any view engine you intend to use in your project
-This option is set on the express app ([see docs here](expressjs.com/api.html)).
+This option is set on the express app ([see docs here](http://expressjs.com/api.html)).
<h4 data-primitive-type="Function"><code>custom engine</code></h4>
@@ -52,7 +52,7 @@ If you're following the [recommended project structure](/getting-started/yo-gene
<h4 data-primitive-type="Object"><code>static options</code></h4>
-Optional config options that will be passed to the `serve-static` middleware ([see docs here](github.com/expressjs/serve-static)).
+Optional config options that will be passed to the `serve-static` middleware ([see docs here](https://github.com/expressjs/serve-static)).
<h4 data-primitive-type="String|Array"><code>less</code></h4>
@@ -62,7 +62,7 @@ When this option is set, any requests to a **.css** or **.min.css** file will fi
<h4 data-primitive-type="Object"><code>less options</code></h4>
-Optional config options that will be passed to the `less` middleware; see [github.com/emberfeather/less.js-middleware](github.com/emberfeather/less.js-middleware) for more information.
+Optional config options that will be passed to the `less` middleware; see [github.com/emberfeather/less.js-middleware](https://github.com/emberfeather/less.js-middleware) for more information.
<h4 data-primitive-type="String|Array"><code>sass</code></h4>
@@ -74,7 +74,7 @@ When this option is set, any requests to a **.css** or **.min.css** file will fi
<h4 data-primitive-type="Object"><code>sass options</code></h4>
-Optional config options that will be passed to the `sass` middleware; see [github.com/sass/node-sass](github.com/sass/node-sass) for more information.
+Optional config options that will be passed to the `sass` middleware; see [github.com/sass/node-sass](https://github.com/sass/node-sass) for more information.
<h4 data-primitive-type="String"><code>favicon</code></h4>
@@ -83,19 +83,19 @@ If you're following the [recommended project structure](/getting-started/yo-gene
<h4 data-primitive-type="Boolean"><code>compress</code></h4>
-Set this to true to enable HTTP compression. This will include the `compression` middleware ([see docs here](github.com/expressjs/compression)).
+Set this to true to enable HTTP compression. This will include the `compression` middleware ([see docs here](https://github.com/expressjs/compression)).
<h4 data-primitive-type="String"><code>logger</code></h4>
-Set this to include the `morgan` middleware. The value will be passed to the middleware initialisation ([see docs here](github.com/expressjs/morgan)). Set this to `false` to disable logging altogether. Defaults to `:method :url :status :response-time ms`.
+Set this to include the `morgan` middleware. The value will be passed to the middleware initialisation ([see docs here](https://github.com/expressjs/morgan)). Set this to `false` to disable logging altogether. Defaults to `:method :url :status :response-time ms`.
<h4 data-primitive-type="Object"><code>logger options</code></h4>
-Optional config options that will be passed to the morgan middleware; see [github.com/expressjs/morgan](github.com/expressjs/morgan) for more information.
+Optional config options that will be passed to the morgan middleware; see [github.com/expressjs/morgan](https://github.com/expressjs/morgan) for more information.
<h4 data-primitive-type="Boolean"><code>trust proxy</code></h4>
-Set this to enable processing of the HTTP request `X-Forwarded-For` header. Extracted IP addresses will be available as the array `req.ips` ([see docs here](expressjs.com/en/api.html)).
+Set this to enable processing of the HTTP request `X-Forwarded-For` header. Extracted IP addresses will be available as the array `req.ips` ([see docs here](http://expressjs.com/en/api.html)).
### Exposes `onHttpServerCreated` event
@@ -109,7 +109,7 @@ keystone.start({
## HTTPS Web Server Options
-There are two ways to implement HTTPS for your KeystoneJS application: either use a web server (e.g. [NGINX](nginx.com)) or PAAS (e.g. [Heroku](heroku.com)) that handles it for you, or set the following options to use the [https server provided by node.js](https://nodejs.org/api/https.html).
+There are two ways to implement HTTPS for your KeystoneJS application: either use a web server (e.g. [NGINX](https://nginx.com)) or PAAS (e.g. [Heroku](https://heroku.com)) that handles it for you, or set the following options to use the [https server provided by node.js](https://nodejs.org/api/https.html).
<h4 data-primitive-type="Boolean|String"><code>ssl</code></h4>
| 3 |
diff --git a/packages/openneuro-server/libs/authentication/passport.js b/packages/openneuro-server/libs/authentication/passport.js @@ -29,7 +29,12 @@ export const setupPassportAuth = () => {
}
export const registerUser = (accessToken, refreshToken, profile, done) => {
- User.findOrCreate({ id: profile.id }, function(err, user) {
+ User.findOneAndUpdate(
+ { id: profile.id },
+ { id: profile.id, email: profile.email },
+ { upsert: true },
+ function(err, user) {
return done(err, addJWT(config)(user))
- }).catch(done)
+ },
+ ).catch(done)
}
| 1 |
diff --git a/scenes/gunroom.scn b/scenes/gunroom.scn }
},
{
+ "type": "application/text",
+ "content": {
+ "text": "S.L.Y",
+ "font": "./fonts/Bangers-Regular.ttf",
+ "fontSize": 1,
+ "anchorX": "left",
+ "anchorY": "middle",
+ "color": [255, 255, 255]
+ },
"position": [
0,
- 0,
- 0
- ],
- "start_url": "https://webaverse.github.io/atmospheric-sky/"
+ 2,
+ 4
+ ]
},
{
"position": [
| 0 |
diff --git a/lib/containers/timeline-items/commit-container.js b/lib/containers/timeline-items/commit-container.js @@ -20,7 +20,7 @@ export class Commit extends React.Component {
/>
<span
className="commit-message-headline"
- title={commit.messageHeadline}
+ title={commit.message}
dangerouslySetInnerHTML={{__html: commit.messageHeadlineHTML}}
/>
<span className="commit-sha">{commit.oid.slice(0, 8)}</span>
@@ -39,7 +39,7 @@ export default Relay.createContainer(Commit, {
login
}
}
- oid messageHeadline messageHeadlineHTML
+ oid message messageHeadlineHTML
}
`,
},
| 12 |
diff --git a/js/models/profile/Profile.js b/js/models/profile/Profile.js @@ -119,6 +119,14 @@ export default class extends BaseModel {
response.colors = this.standardizeColorFields(response.colors);
}
+ if (response.avatarHashes === null) {
+ delete response.avatarHashes;
+ }
+
+ if (response.headerHashes === null) {
+ delete response.headerHashes;
+ }
+
return response;
}
@@ -140,6 +148,22 @@ export default class extends BaseModel {
delete options.attrs.stats.averageRating;
}
+ const images = [options.attrs.avatarHashes, options.attrs.headerHashes];
+ images.forEach(imageHashes => {
+ if (typeof imageHashes === 'object') {
+ // If the image models are still in their default state (all images hashes as empty
+ // strings), we won't send over the image to the server, since it will fail validation.
+ if (Object.keys(imageHashes).filter(key => imageHashes[key] === '').length ===
+ Object.keys(imageHashes).length) {
+ if (imageHashes === options.attrs.avatarHashes) {
+ delete options.attrs.avatarHashes;
+ } else {
+ delete options.attrs.headerHashes;
+ }
+ }
+ }
+ });
+
if (method !== 'delete') {
// convert the amount field
if (options.attrs.moderatorInfo && options.attrs.moderatorInfo.fee &&
| 9 |
diff --git a/src/client/js/components/PasswordResetRequestForm.jsx b/src/client/js/components/PasswordResetRequestForm.jsx @@ -26,7 +26,7 @@ const PasswordResetRequestForm = (props) => {
<input name="reset-password-btn" className="btn btn-lg btn-primary btn-block" value="Reset Password" type="submit" />
</div>
<a href="/login">
- <i className="icon-login mr-1"></i>Back to Login Page
+ <i className="icon-login mr-1"></i>Return to login
</a>
</form>
</div>
| 7 |
diff --git a/detox/src/android/expect.js b/detox/src/android/expect.js @@ -303,7 +303,7 @@ class ExpectElement extends Expect {
return await new MatcherAssertionInteraction(this._element, new TextMatcher(value)).execute();
}
async toHaveLabel(value) {
- return await new MatcherAssertionInteraction(this._element, new LabelMatcher(value)).execute();
+ return await new MatcherAssertionInteraction(this._element, new TextMatcher(value)).execute();
}
async toHaveId(value) {
return await new MatcherAssertionInteraction(this._element, new IdMatcher(value)).execute();
| 1 |
diff --git a/bin/logagent.js b/bin/logagent.js */
process.on('unhandledRejection', (reason, p) => {
console.log('Possibly Unhandled Rejection at: Promise ', p, 'reason: ', reason)
+ console.dir(reason)
})
var clone = require('clone')
var consoleLogger = require('../lib/util/logger.js')
@@ -453,7 +454,7 @@ LaCli.prototype.initState = function () {
process.once('SIGQUIT', function () { self.terminate('SIGQUIT') })
process.once('SIGTERM', function () { self.terminate('SIGTERM') })
process.once('beforeExit', self.terminate)
- process.once('uncaughtException', function (error) { self.terminate(error.message) })
+ process.once('uncaughtException', function (error) { self.terminate(error) })
}
LaCli.prototype.log = function (err, data) {
@@ -501,7 +502,7 @@ LaCli.prototype.parseChunks = function (chunk, enc, callback) {
}
LaCli.prototype.terminate = function (reason) {
- consoleLogger.log('terminate reason: ' + reason)
+ consoleLogger.log('terminate reason: ' + JSON.stringify(reason, null, '\t'))
if (this.argv.heroku && reason !== 'exitWorker') {
return
}
| 7 |
diff --git a/generators/server/templates/src/main/resources/config/application-tls.yml.ejs b/generators/server/templates/src/main/resources/config/application-tls.yml.ejs @@ -31,7 +31,7 @@ server:
key-store-password: password
key-store-type: PKCS12
key-alias: selfsigned
- ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
+ ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
enabled-protocols: TLSv1.2
http2:
enabled: true
| 2 |
diff --git a/server/game/gamesteps/plot/selectplotprompt.js b/server/game/gamesteps/plot/selectplotprompt.js @@ -19,10 +19,18 @@ class SelectPlotPrompt extends AllPlayerPrompt {
menuTitle: 'Waiting for opponent to select plot',
buttons: [
{ arg: 'changeplot', text: 'Change Plot' }
- ] };
+ ]
+ };
+ }
+
+ onMenuCommand(player, arg) {
+ if(arg === 'changeplot') {
+ player.selectedPlot = undefined;
+ this.game.addMessage('{0} has cancelled their plot selection', player);
+
+ return;
}
- onMenuCommand(player) {
var plot = player.findCard(player.plotDeck, card => {
return card.selected;
});
@@ -31,16 +39,10 @@ class SelectPlotPrompt extends AllPlayerPrompt {
return;
}
- let newPlot = !!player.selectedPlot;
-
player.selectedPlot = plot;
- if(newPlot) {
- this.game.addMessage('{0} has changed their plot selection', player);
- } else {
this.game.addMessage('{0} has selected a plot', player);
}
}
-}
module.exports = SelectPlotPrompt;
| 7 |
diff --git a/token-metadata/0xb6EE9668771a79be7967ee29a63D4184F8097143/metadata.json b/token-metadata/0xb6EE9668771a79be7967ee29a63D4184F8097143/metadata.json "symbol": "CXO",
"address": "0xb6EE9668771a79be7967ee29a63D4184F8097143",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/config/vars.yml b/config/vars.yml -lock_url: 'https://cdn.auth0.com/js/lock/11.0.0/lock.min.js'
+lock_url: 'https://cdn.auth0.com/js/lock/11.0.1/lock.min.js'
lock_urlv10: 'https://cdn.auth0.com/js/lock/10.24.1/lock.min.js'
-lock_urlv11: 'https://cdn.auth0.com/js/lock/11.0.0/lock.min.js'
+lock_urlv11: 'https://cdn.auth0.com/js/lock/11.0.1/lock.min.js'
lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js'
-auth0js_url: 'https://cdn.auth0.com/js/auth0/9.0.0/auth0.min.js'
-auth0js_urlv9: 'https://cdn.auth0.com/js/auth0/9.0.0/auth0.min.js'
+auth0js_url: 'https://cdn.auth0.com/js/auth0/9.0.1/auth0.min.js'
+auth0js_urlv9: 'https://cdn.auth0.com/js/auth0/9.0.1/auth0.min.js'
auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.12.1/auth0.min.js'
auth0js_urlv7: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js'
auth0_community: 'https://community.auth0.com/'
| 3 |
diff --git a/token-metadata/0xd64904232b4674c24fA59170D12fC7df20f5880e/metadata.json b/token-metadata/0xd64904232b4674c24fA59170D12fC7df20f5880e/metadata.json "symbol": "VEDX",
"address": "0xd64904232b4674c24fA59170D12fC7df20f5880e",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/panel/poi_bloc/poi_bloc_container.js b/src/panel/poi_bloc/poi_bloc_container.js @@ -14,11 +14,11 @@ PoiBlocContainer.initBlockComponents = function() {
builder = require(`./${poiBlock.panelName}_panel`);
} catch (err) {
const name = poiBlock.panelName.charAt(0).toUpperCase() + poiBlock.panelName.slice(1);
- const el = require(`../../views/poi_bloc/${name}`);
+ const ReactComponent = require(`../../views/poi_bloc/${name}`).default;
builder = {
default: function reactBlockWrapper(block, poi, options) {
this.render = () =>
- renderStaticReact(<el.default block={block} poi={poi} options={options} />);
+ renderStaticReact(<ReactComponent block={block} poi={poi} options={options} />);
},
};
}
| 7 |
diff --git a/ModUserQuicklinksEverywhere.user.js b/ModUserQuicklinksEverywhere.user.js // @description Adds quicklinks to user infobox in posts
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 2.3.1
+// @version 2.3.1.1
//
// @include https://*stackoverflow.com/*
// @include https://*serverfault.com/*
function appendStyles() {
+ $('.task-stat-leaderboard').removeClass('user-info');
+
const styles = `
<style>
.user-info .user-details {
| 2 |
diff --git a/apps.json b/apps.json {"name":"*hrm","url":"heartrate-icon.js","evaluate":true}
]
},
+ { "id": "stetho",
+ "name": "Stethoscope",
+ "icon": "stetho.png",
+ "version":"0.01",
+ "description": "Hear your heart rate",
+ "tags": "health",
+ "storage": [
+ {"name":"+stetho","url":"stetho.json"},
+ {"name":"-stetho","url":"stetho.js"},
+ {"name":"*stetho","url":"stetho-icon.js","evaluate":true}
+ ]
+ },
{ "id": "swatch",
"name": "Stopwatch",
"icon": "stopwatch.png",
| 3 |
diff --git a/assets/babel-plugin.js b/assets/babel-plugin.js @@ -25,7 +25,7 @@ function rewriteImport(imp, dir, shouldAddMissingExtension) {
* partial imports is missing in the browser and being phased out of Node.js, but
* this can be a useful option for migrating an old project to Snowpack.
*/
-module.exports = function pikaWebBabelTransform({types: t}, {optionalExtensions, dir}) {
+module.exports = function pikaWebBabelTransform({types: t}, {optionalExtensions, dir} = {}) {
return {
visitor: {
CallExpression(path, {file, opts}) {
| 0 |
diff --git a/README.md b/README.md @@ -191,7 +191,6 @@ Additions to this document that are properly formatted will automatically be pus
- [DeSmart](https://www.desmart.com) | Gdynia, Poland | Technical interview, take-home project and talk about your experience
- [Despark](https://despark.com) | Sofia, Bulgaria & Remote | Culture add interview, sample code review and paid pair programming with team member or take-home project.
- [Detroit Labs](https://www.detroitlabs.com/careers) | Detroit, MI | Our technical interview starts with a take-home assignment that we will look at during the interview. You'll walk us though your thought process, add functionality if applicable to the interview, and talk about your experience. We believe that showing us your work in a practical setting is more telling of your abilities and what you will bring to the table, than writing code on a whiteboard.
-- [DevMynd](https://www.devmynd.com) | Chicago, IL; San Francisco, CA | Take-home project, take-home project phone review, a few hour-long pairing sessions on real projects.
- [DG-i](https://www.dg-i.net) | Cologne, Germany | Take-home project and/or discussion on-site about past experiences
- [DICE](http://www.dice.se) | Stockholm, Sweden | Take-home project and code review at the on-site
- [Digitally Imported](http://www.di.fm/jobs) | Denver, Colorado & Remote | Video meetings on past experience and high level tech questions, take-home project
@@ -597,6 +596,7 @@ Additions to this document that are properly formatted will automatically be pus
- [TableCheck](https://corp.tablecheck.com/en/jobs) | Tokyo, Japan | Show us your code! Brief Skype interview and take-home project or pairing for those without code.
- [Tailor Brands](https://tailorbrands.com/jobs) | Tel Aviv-Yafo, Israel | Discuss knowledge and interests, explore previous work experience, during the technical interview we discuss real-life problems.
- [tails.com](https://tails.com/careers) | Richmond (London), UK | Live pair programming or take home project with review
+- [Tandem](https://www.madeintandem.com) | Chicago, IL; San Francisco, CA | Introductory phone screen, take-home project, take-home project phone review, a few hour-long pairing sessions on real projects.
- [Tanooki Labs](http://tanookilabs.com) | New York, NY | Paid half-day take home project with followup review and discussion
- [Tattoodo](https://www.tattoodo.com) | Copenhagen, Denmark | Takehome exercise
- [Telus Digital](https://labs.telus.com) | Toronto, Canada; Vancouver, Canada | Discuss knowledge and interest, explore previous work, pair with developers when possible, alternatively take home project.
| 10 |
diff --git a/detox/ios/Detox/Next/Actions/UIView+DetoxActions.m b/detox/ios/Detox/Next/Actions/UIView+DetoxActions.m @@ -480,15 +480,24 @@ static NSDictionary* DTXPointToDictionary(CGPoint point)
}
}];
- rv[@"frame"] = DTXRectToDictionary(self.frame);
- rv[@"bounds"] = DTXRectToDictionary(self.bounds);
- rv[@"center"] = DTXPointToDictionary(self.center);
- rv[@"accessibilityFrame"] = DTXRectToDictionary(self.accessibilityFrame);
+ BOOL enabled = self.userInteractionEnabled;
+ if([self respondsToSelector:@selector(enabled)])
+ {
+ enabled &&= [[self valueForKey:@"enabled"] boolValue]
+ }
+ rv[@"enabled"] = enabled ? @YES : @NO;
+
+ rv[@"frame"] = DTXRectToDictionary(self.accessibilityFrame);
+ rv[@"elementFrame"] = DTXRectToDictionary(self.frame);
+ rv[@"elementBounds"] = DTXRectToDictionary(self.bounds);
rv[@"safeAreaInsets"] = DTXInsetsToDictionary(self.safeAreaInsets);
- rv[@"safeBounds"] = DTXRectToDictionary(self.dtx_safeAreaBounds);
+ rv[@"elementSafeBounds"] = DTXRectToDictionary(self.dtx_safeAreaBounds);
rv[@"activationPoint"] = DTXPointToDictionary(self.dtx_accessibilityActivationPointInViewCoordinateSpace);
+ rv[@"hittable"] = self.dtx_isHittable ? @YES : @NO;
+ rv[@"visible"] = self.dtx_isVisible ? @YES : @NO;
+
return rv;
}
| 7 |
diff --git a/src/content/en/tools/chrome-devtools/console/api.md b/src/content/en/tools/chrome-devtools/console/api.md @@ -78,9 +78,9 @@ Resets a count.
## console.debug(object [, object, ...]) {: #debug }
-[Log level][level]: `Info`
+[Log level][level]: `Verbose`
-Identical to [`console.log(object [, object, ...])`](#log).
+Identical to [`console.log(object [, object, ...])`](#log) except different log level.
console.debug('debug');
| 1 |
diff --git a/lib/index.js b/lib/index.js @@ -28,6 +28,7 @@ const memoize = require("./util/memoize");
/** @typedef {import("./MultiStats")} MultiStats */
/** @typedef {import("./Parser").ParserState} ParserState */
/** @typedef {import("./stats/DefaultStatsFactoryPlugin").StatsCompilation} StatsCompilation */
+/** @typedef {import("./Watching")} Watching */
/**
* @template {Function} T
| 3 |
diff --git a/samples/WebApp/appsettings.json b/samples/WebApp/appsettings.json "Features": [
{
"Name": "MatchScore",
- "Enabled": true,
+ "Enabled": false,
"Toggles": []
},
{
"Name": "DarkMode",
- "Enabled": false,
+ "Enabled": true,
"Toggles": [
{
"Type": "Esquio.Toggles.GradualRolloutUserNameToggle",
},
{
"Name": "BuyTickets",
- "Enabled": true,
+ "Enabled": false,
"Toggles": [
{
"Type": "WebApp.Toggles.LocationToggle, WebApp",
| 12 |
diff --git a/src/components/Table/Table.HeaderCell.jsx b/src/components/Table/Table.HeaderCell.jsx @@ -38,7 +38,7 @@ export default function HeaderCell({ column, isLoading, sortedInfo }) {
e.persist()
if (!isLoading && column.sorter != null) {
- const sorterFn = Array.isArray(column.columnKey)
+ const sorterFnResult = Array.isArray(column.columnKey)
? column.sorter(column.sortKey)
: column.sorter(column.columnKey)
@@ -49,8 +49,8 @@ export default function HeaderCell({ column, isLoading, sortedInfo }) {
* The check here only looks for a `then` function as we don't want
* to run this in all cases (like it would be if we use `Promise.resolve`)
*/
- if (sorterFn && typeof sorterFn.then === 'function') {
- sorterFn.then(() => {
+ if (sorterFnResult && typeof sorterFnResult.then === 'function') {
+ sorterFnResult.then(() => {
/**
* Refocus button only if the event was triggered with keyboard (thus avoid having to setup a separate onKeyDown event)
*
| 10 |
diff --git a/package.json b/package.json "@liquality/bitcoin-swap-provider": "^1.1.6",
"@liquality/client": "^1.1.6",
"@liquality/crypto": "^1.1.6",
- "@liquality/cryptoassets": "^1.1.1",
+ "@liquality/cryptoassets": "^1.1.2",
"@liquality/ethereum-erc20-provider": "^1.1.6",
"@liquality/ethereum-erc20-scraper-swap-find-provider": "^1.1.6",
"@liquality/ethereum-erc20-swap-provider": "^1.1.6",
| 3 |
diff --git a/content/blog/stop-using-isloading-booleans/index.mdx b/content/blog/stop-using-isloading-booleans/index.mdx @@ -29,7 +29,7 @@ bannerCredit:
https://egghead.io/lessons/javascript-use-a-status-enum-instead-of-booleans?pl=kent-s-blog-posts-as-screencasts-eefa540c
-**[Watch "Handle HTTP Errors with React" on egghead.io](https://egghead.io/lessons/javascript-use-a-status-enum-instead-of-booleans?pl=kent-s-blog-posts-as-screencasts-eefa540c)**
+**[Watch "Handle HTTP Errors with React" on egghead.io](https://egghead.io/lessons/react-handle-http-errors-with-react)**
(part of [The Beginner's Guide to ReactJS](https://kcd.im/beginner-react))
https://egghead.io/lessons/react-handle-http-errors-with-react
| 9 |
diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js };
var changed_arguments = null;
+
+ var EventIsSupported = (function() {
+ try {
+ new Event('change');
+ return true;
+ } catch (e) {
+ return false;
+ }
+ })();
+
$.fn.triggerNative = function (eventName) {
var el = this[0],
event;
if (el.dispatchEvent) { // for modern browsers & IE9+
- if (typeof Event === 'function') {
+ if (EventIsSupported) {
// For modern browsers
event = new Event(eventName, {
bubbles: true
| 7 |
diff --git a/doc/admin/adminguide.md b/doc/admin/adminguide.md @@ -56,13 +56,13 @@ PS> docker pull 4minitz/4minitz
```
PS> docker create -v /4minitz_storage --name 4minitz-storage 4minitz/4minitz
```
-4. If you want to edit the configuration, especially after updating your 4minitz images, you should do so in an up-to-date 4minitz container by spawning a bash shell into it. For now it suffices to simply start the volume container, install vim and edit the config file `4minitz_settings.json`:
+4. If you want to edit the configuration, especially after updating your 4minitz images, you should do so in an up-to-date 4minitz container by spawning a bash shell into it. For now it suffices to simply start the volume container, install nano and edit the config file `4minitz_settings.json`:
```
PS> $container = docker ps -q -l
PS> docker start $docker
PS> docker exec -ti $docker /bin/bash
-root# apt-get update && apt-get install vim -y
-root# vim /4minitz_storage/4minitz_settings.json
+root# apt-get update && apt-get install nano -y
+root# nano /4minitz_storage/4minitz_settings.json
root# exit
PS> docker stop $docker
```
| 14 |
diff --git a/docs/api.md b/docs/api.md @@ -1147,7 +1147,7 @@ command handler, for example.
If the arguments have not been parsed, this property is `false`.
If the arguments have been parsed, this contain detailed parsed arguments. See
-the documentation in [yargs-parser `.detailed()`][https://github.com/yargs/yargs-parser/blob/master/README.md#requireyargs-parserdetailedargs-opts]
+the documentation in [yargs-parser `.detailed()`](https://github.com/yargs/yargs-parser/blob/master/README.md#requireyargs-parserdetailedargs-opts)
for details of this object
<a name="parserConfiguration"></a>.parserConfiguration(obj)
| 1 |
diff --git a/src/components/zoom/zoom.js b/src/components/zoom/zoom.js @@ -57,7 +57,7 @@ const Zoom = {
}
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
if (Support.gestures) {
- swiper.zoom.scale = e.scale * zoom.currentScale;
+ zoom.scale = e.scale * zoom.currentScale;
} else {
zoom.scale = (gesture.scaleMove / gesture.scaleStart) * zoom.currentScale;
}
@@ -239,12 +239,13 @@ const Zoom = {
if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {
gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');
gesture.$imageWrapEl.transform('translate3d(0,0,0)');
- gesture.$slideEl = undefined;
- gesture.$imageEl = undefined;
- gesture.$imageWrapEl = undefined;
zoom.scale = 1;
zoom.currentScale = 1;
+
+ gesture.$slideEl = undefined;
+ gesture.$imageEl = undefined;
+ gesture.$imageWrapEl = undefined;
}
},
// Toggle Zoom
@@ -466,12 +467,28 @@ export default {
prevTime: undefined,
},
};
+
('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach((methodName) => {
zoom[methodName] = Zoom[methodName].bind(swiper);
});
Utils.extend(swiper, {
zoom,
});
+
+ let scale = 1;
+ Object.defineProperty(swiper.zoom, 'scale', {
+ get() {
+ return scale;
+ },
+ set(value) {
+ if (scale !== value) {
+ const imageEl = swiper.zoom.gesture.$imageEl ? swiper.zoom.gesture.$imageEl[0] : undefined;
+ const slideEl = swiper.zoom.gesture.$slideEl ? swiper.zoom.gesture.$slideEl[0] : undefined;
+ swiper.emit('zoomChange', value, imageEl, slideEl);
+ }
+ scale = value;
+ },
+ });
},
on: {
init() {
| 0 |
diff --git a/server/preprocessing/other-scripts/test/linkedcat-test.R b/server/preprocessing/other-scripts/test/linkedcat-test.R @@ -7,7 +7,7 @@ options(warn=1)
wd <- dirname(rstudioapi::getActiveDocumentContext()$path)
setwd(wd) #Don't forget to set your working directory
-query <- "Kommissionsbericht" #args[2]
+query <- "Sitzung" #args[2]
service <- "linkedcat"
params <- NULL
params_file <- "params_linkedcat.json"
@@ -21,6 +21,8 @@ if (DEBUG==TRUE){
setup_logging('INFO')
}
+tslog <- getLogger('ts')
+
source("../vis_layout.R")
source('../linkedcat.R')
@@ -35,13 +37,25 @@ if(!is.null(params_file)) {
#start.time <- Sys.time()
+tryCatch({
input_data = get_papers(query, params)
+}, error=function(err){
+ tslog$error(gsub("\n", " ", paste("Query failed", service, query, paste(params, collapse=" "), err, sep="||")))
+})
#end.time <- Sys.time()
#time.taken <- end.time - start.time
#time.taken
-output_json = vis_layout(input_data$text, input_data$metadata, max_clusters=MAX_CLUSTERS,
- add_stop_words=ADDITIONAL_STOP_WORDS, testing=TRUE, list_size=100)
+tryCatch({
+ output_json = vis_layout(input_data$text, input_data$metadata,
+ max_clusters = MAX_CLUSTERS,
+ lang = LANGUAGE,
+ add_stop_words = ADDITIONAL_STOP_WORDS,
+ testing=TRUE, list_size=-1)
+
+}, error=function(err){
+ tslog$error(gsub("\n", " ", paste("Processing failed", query, paste(params, collapse=" "), err, sep="||")))
+})
print(output_json)
| 1 |
diff --git a/_data/conferences.yml b/_data/conferences.yml date: December 6-12, 2020
place: Vancouver Convention Centre, Canada
sub: ML
- note: '<b>NOTE</b>: Mandatory abstract deadline on May 27, 2020, Paper submission
- deadline June 3, 2020'
+ note: '<b>NOTE</b>: Mandatory abstract deadline on May 27, 2020'
- title: AACL-IJCNLP
year: 2020
| 3 |
diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs //Token for data gathering
info("GitHub token", token, {token:true})
if (!token)
- throw new Error('You must provide a valid GitHub personal token to gather your metrics (see "How to setup?" section at https://github.com/lowlighter/metrics#%EF%B8%8F-using-github-action-on-your-profile-repository-5-min-setup)')
+ throw new Error("You must provide a valid GitHub personal token to gather your metrics (see https://github.com/lowlighter/metrics/blob/master/.github/readme/partials/setup/action/setup.md for more informations)")
conf.settings.token = token
const api = {}
api.graphql = octokit.graphql.defaults({headers:{authorization:`token ${token}`}})
Object.assign(api, await mocks(api))
info("Use mocked API", true)
}
+ //Test token validity
+ else if (!/^(?:MOCKED_TOKEN|NOT_NEEDED)$/.test(token)) {
+ const {headers} = await api.rest.request("HEAD /")
+ if (!("x-oauth-scopes" in headers))
+ throw new Error("GitHub API did not send any \"x-oauth-scopes\" header back from provided \"token\". It means that your token may not be valid or you're using GITHUB_TOKEN which cannot be used since metrics will fetch data outside of this repository scope. Use a personal access token instead (see https://github.com/lowlighter/metrics/blob/master/.github/readme/partials/setup/action/setup.md for more informations).")
+ info("Token validity", "seems ok")
+ }
//Extract octokits
const {graphql, rest} = api
| 7 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -10,6 +10,16 @@ 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.27.1] -- 2017-05-17
+
+### Fixed
+- Fix text box positioning on scrolled windows (bug introduced in 1.27.0) [#1683, #1690]
+- Fix styling over links in annotation text [#1681]
+- Fix `mesh3d` with `vertexcolor` coloring [#1686]
+- Fix `sort` transform with set `categoryarray` [#1689]
+- Fix `scatter` text node data join [#1672]
+- Fix `plot` promise resolution in graphs with layout images in IE11 [#1691]
+
## [1.27.0] -- 2017-05-10
### Added
| 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.