code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/public/math-editor.css b/public/math-editor.css .math-editor-button-action { padding: 5px 10px; font-weight: normal; background: none; border: none; font-family: SourceSansPro-Semibold, sans-serif; font-size: 16px; color: #359BB7; letter-spacing: 0; line-height: 22px; }
.math-editor-new-equation { display: block; vertical-align: top; height: 35px; width: 150px; }
.math-editor-focus .math-editor-new-equation { display: none; }
-.math-editor-tools { display: none; }
-.rich-text-editor-focus .math-editor-tools { display: block; z-index: 2; border-bottom: 1px solid #DFDFDF; border-top: 1px solid #DFDFDF; position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 1px 10px 1px rgba(0, 0, 0, .2); line-height: 0; background: white; }
+.math-editor-tools { display: none; z-index: 2; border-bottom: 1px solid #DFDFDF; border-top: 1px solid #DFDFDF; position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 1px 10px 1px rgba(0, 0, 0, .2); line-height: 0; background: white;}
+.rich-text-editor-focus .math-editor-tools { display: block; }
.math-editor-toolbar-wrapper { margin: auto; max-width: 990px; position: relative; }
.math-editor-tools-row:nth-child(even) { background: #fff; }
.math-editor-tools-row:nth-child(odd) { background: #fafafa; border-top: 1px solid #DFDFDF;}
| 5 |
diff --git a/src/pages/AddCluster/KClusterList/index.js b/src/pages/AddCluster/KClusterList/index.js @@ -41,7 +41,7 @@ export default class EnterpriseClusters extends PureComponent {
showTaskDetail: false,
linkedClusters: new Map(),
lastTask: {},
- clusterID: ''
+ currentClusterID: ''
};
}
componentWillMount() {
@@ -91,7 +91,7 @@ export default class EnterpriseClusters extends PureComponent {
},
callback: data => {
if (data) {
- this.setState({ lastTask: data, clusterID: data.clusterID });
+ this.setState({ lastTask: data, currentClusterID: data.clusterID });
// to load create event
if (data.status === 'start') {
this.setState({ showTaskDetail: true });
@@ -139,9 +139,6 @@ export default class EnterpriseClusters extends PureComponent {
});
};
handleStartLog = taskID => {
- if (!taskID) {
- return false;
- }
const {
match: {
params: { eid, provider }
@@ -231,6 +228,14 @@ export default class EnterpriseClusters extends PureComponent {
return steps;
};
+ handleOk = (task, upDateInfo) => {
+ this.setState(upDateInfo);
+ if (task && task.taskID) {
+ this.handleStartLog(task.taskID);
+ }
+ this.cancelAddCluster();
+ this.loadKubernetesCluster();
+ };
renderCreateClusterShow = () => {
const {
match: {
@@ -247,14 +252,12 @@ export default class EnterpriseClusters extends PureComponent {
this.cancelAddCluster();
}}
onOK={task => {
- this.setState({
+ const upDateInfo = {
lastTask: task,
showTaskDetail: true,
- clusterID: task.clusterID
- });
- this.handleStartLog(task && task.taskID);
- this.cancelAddCluster();
- this.loadKubernetesCluster();
+ currentClusterID: task.clusterID
+ };
+ this.handleOk(task, upDateInfo);
}}
/>
);
@@ -268,12 +271,10 @@ export default class EnterpriseClusters extends PureComponent {
this.cancelAddCluster();
}}
onOK={task => {
- this.setState({
- clusterID: task.clusterID
- });
- this.handleStartLog(task && task.taskID);
- this.loadKubernetesCluster();
- this.cancelAddCluster();
+ const upDateInfo = {
+ currentClusterID: task.clusterID
+ };
+ this.handleOk(task, upDateInfo);
}}
/>
);
@@ -285,14 +286,12 @@ export default class EnterpriseClusters extends PureComponent {
this.cancelAddCluster();
}}
onOK={task => {
- this.setState({
+ const upDateInfo = {
lastTask: task,
showTaskDetail: true,
- clusterID: task.clusterID
- });
- this.handleStartLog(task && task.taskID);
- this.cancelAddCluster();
- this.loadKubernetesCluster(task);
+ currentClusterID: task.clusterID
+ };
+ this.handleOk(task, upDateInfo);
}}
/>
);
@@ -305,7 +304,7 @@ export default class EnterpriseClusters extends PureComponent {
params: { eid, provider }
},
location: {
- query: { clusterID: ID, updateKubernetes }
+ query: { clusterID, updateKubernetes }
}
} = this.props;
const {
@@ -316,7 +315,7 @@ export default class EnterpriseClusters extends PureComponent {
showTaskDetail,
lastTask,
linkedClusters,
- clusterID
+ currentClusterID
} = this.state;
const nextDisable = selectClusterID === '';
@@ -375,7 +374,7 @@ export default class EnterpriseClusters extends PureComponent {
linkedClusters={linkedClusters}
showBuyClusterConfig={this.showBuyClusterConfig}
updateKubernetes={updateKubernetes}
- updateKubernetesClusterID={ID}
+ updateKubernetesClusterID={clusterID}
/>
{showBuyClusterConfig && this.renderCreateClusterShow()}
<Col style={{ textAlign: 'center', marginTop: '32px' }} span={24}>
@@ -392,7 +391,7 @@ export default class EnterpriseClusters extends PureComponent {
eid={eid}
selectProvider={provider}
taskID={lastTask.taskID}
- clusterID={clusterID}
+ clusterID={currentClusterID}
/>
)}
</Card>
| 1 |
diff --git a/generators/entity-client/templates/angular/src/test/javascript/spec/app/entities/_entity-management.service.spec.ts b/generators/entity-client/templates/angular/src/test/javascript/spec/app/entities/_entity-management.service.spec.ts @@ -25,7 +25,6 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/
import { JhiDateUtils } from 'ng-jhipster';
import { <%= entityAngularName %>Service } from '../../../../../../main/webapp/app/entities/<%= entityFolderName %>/<%= entityFileName %>.service';
-import { <%= entityAngularName %> } from '../../../../../../main/webapp/app/entities/<%= entityFolderName %>/<%= entityFileName %>.model';
import { SERVER_API_URL } from '../../../../../../main/webapp/app/app.constants';
describe('Service Tests', () => {
@@ -60,7 +59,7 @@ describe('Service Tests', () => {
});
it('should return <%= entityAngularName %>', () => {
- service.find(<%- tsKeyId %>).subscribe(received => {
+ service.find(<%- tsKeyId %>).subscribe((received) => {
expect(received.body.id).toEqual(<%- tsKeyId %>);
});
| 1 |
diff --git a/token-metadata/0x5D1b1019d0Afa5E6cc047B9e78081D44cc579FC4/metadata.json b/token-metadata/0x5D1b1019d0Afa5E6cc047B9e78081D44cc579FC4/metadata.json "symbol": "YFRB",
"address": "0x5D1b1019d0Afa5E6cc047B9e78081D44cc579FC4",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/package.json b/package.json "cloc": "^2.3.3",
"compressible": "^2.0.9",
"compression": "^1.6.2",
- "eslint": "^5.2.0",
+ "eslint": "5.12.1",
"eslint-plugin-html": "^5.0.0",
"express": "^4.15.0",
"globby": "^8.0.1",
| 12 |
diff --git a/src/components/ButtonFormDownload/ButtonFormDownload.js b/src/components/ButtonFormDownload/ButtonFormDownload.js @@ -75,6 +75,7 @@ const ButtonFormDownload = ({
subheader={subheader}
formName={formName}
setFormSubmitted={setFormSubmitted}
+ buttonText='Download Now'
css={css`
display: ${isActive ? `flex` : `none`};
`}
| 12 |
diff --git a/iris/mutations/community/editCommunity.js b/iris/mutations/community/editCommunity.js @@ -32,7 +32,10 @@ export default async (
}
// user must own the community to edit the community
- if (!currentUserCommunityPermissions.isOwner) {
+ if (
+ !currentUserCommunityPermissions.isOwner &&
+ !currentUserCommunityPermissions.isModerator
+ ) {
return new UserError(
"You don't have permission to make changes to this community."
);
| 11 |
diff --git a/experimental/adaptive-tool/syntaxes/lg.tmLanguage.json b/experimental/adaptive-tool/syntaxes/lg.tmLanguage.json "end": "\\}",
"name":"entity.other",
"patterns": [
+ {
+ "include": "#string"
+ },
+ {
+ "include": "#number"
+ },
{
"match": "([a-zA-Z0-9_]+\\s*)\\(",
"captures": {
"1": {
"name":"support.function"
- },
- "2": {
- "name":"entity.other"
}
}
},
}
]
},
+ "string": {
+ "patterns": [{
+ "match": "(\")[^\"]*(\")",
+ "name": "string.quoted.double"
+ },
+ {
+ "match": "(\\')[^\\']*(\\')",
+ "name": "string.quoted.single"
+ }
+ ]
+ },
+ "number": {
+ "match": "-?[0-9]+(\\.[0-9]*)*",
+ "name":"constant.numeric"
+ },
"inline_string": {
"match": "(\").+?(\")",
"name":"string.quoted.double.lg"
"template_name_line":{
"begin": "^\\s*#",
"end":"\n",
- "name":"markup.bold.lg"
+ "name":"entity.other",
+ "patterns": [{
+ "match": "([a-zA-Z0-9_]+)(\\(.*\\))?",
+ "captures": {
+ "1": {
+ "name":"markup.bold.templateName"
+ },
+ "2": {
+ "patterns": [
+ {
+ "match": "[a-zA-Z_][a-zA-Z0-9_]*",
+ "name":"variable.name"
+ }
+ ]
+ }
+
+ }
+ }]
},
"template_body": {
"begin":"^\\s*-",
| 0 |
diff --git a/packages/iov-bns/src/bnsconnection.ts b/packages/iov-bns/src/bnsconnection.ts @@ -788,15 +788,17 @@ export class BnsConnection implements AtomicSwapConnection {
}
public async getAccounts(query: BnsAccountsQuery): Promise<readonly AccountNft[]> {
- let keyPrefix = "account:";
+ let keyPrefix: string;
let results: readonly Result[];
if (isBnsAccountByNameQuery(query)) {
+ keyPrefix = "account:";
results = (await this.query("/accounts", toUtf8(query.name))).results;
} else if (isBnsAccountsByOwnerQuery(query)) {
keyPrefix = "";
const rawAddress = decodeBnsAddress(query.owner).data;
results = (await this.query("/accounts/owner", rawAddress)).results;
} else if (isBnsAccountsByDomainQuery(query)) {
+ keyPrefix = "account:";
results = (await this.query("/accounts/domain", toUtf8(query.domain))).results;
} else {
throw new Error("Unsupported query");
| 12 |
diff --git a/Source/Renderer/GLSLModernizer.js b/Source/Renderer/GLSLModernizer.js @@ -150,16 +150,16 @@ define([
var stack = [];
for (var i = 0; i < splitSource.length; ++i) {
var line = splitSource[i];
- var hasIF = line.search(/(#ifdef|#if)/g) !== -1;
- var hasELSE = line.search(/#else/g) !== -1;
- var hasENDIF = line.search(/#endif/g) !== -1;
+ var hasIF = /(#ifdef|#if)/g.test(line);
+ var hasELSE = /#else/g.test(line);
+ var hasENDIF = /#endif/g.test(line);
if (hasIF) {
stack.push(line);
} else if (hasELSE) {
var top = stack[stack.length - 1];
var op = top.replace("ifdef", "ifndef");
- if (op.search(/if/g) !== -1) {
+ if (/if/g.test(op)) {
op = op.replace(/(#if\s+)(\S*)([^]*)/, "$1!($2)$3");
}
stack.pop();
@@ -169,7 +169,7 @@ define([
negativeMap[op] = top;
} else if (hasENDIF) {
stack.pop();
- } else if (line.search(/layout/g) === -1) {
+ } else if (!/layout/g.test(line)) {
for (a = 0; a < variablesThatWeCareAbout.length; ++a) {
var care = variablesThatWeCareAbout[a];
if (line.indexOf(care) !== -1) {
@@ -228,7 +228,7 @@ define([
var fragDataString = "gl_FragData\\[" + i + "\\]";
var newOutput = 'czm_out' + i;
var regex = new RegExp(fragDataString, "g");
- if (source.search(fragDataString) != -1) {
+ if (regex.test(source)) {
setAdd(newOutput, variableSet);
replaceInSource(regex, newOutput);
splitSource.splice(outputDeclarationLine, 0, "layout(location = " + i + ") out vec4 " + newOutput + ";");
@@ -279,7 +279,7 @@ define([
var versionThree = "#version 300 es";
var foundVersion = false;
for (number = 0; number < splitSource.length; number++) {
- if (splitSource[number].search(/#version/) != -1) {
+ if (/#version/.test(splitSource[number])) {
splitSource[number] = versionThree;
foundVersion = true;
}
| 14 |
diff --git a/js/core/bisweb_userpreferences.js b/js/core/bisweb_userpreferences.js @@ -33,8 +33,6 @@ let count=1;
* The internal user preferences Object
* @alias biswebUserPreferences.userPreferences
*/
-
- //TODO: Rename favoriteFolders to localFolders? S3 now maintains a separate cached list of favorite folders from the server
const userPreferences = {
orientationOnLoad : 'None',
snapshotscale : 2,
| 2 |
diff --git a/test/client/fixtures/sandbox/shadow-ui-test.js b/test/client/fixtures/sandbox/shadow-ui-test.js @@ -678,7 +678,7 @@ test("do nothing if ShadowUIStylesheet doesn't exist", function () {
module('regression');
test('SVG elements\' className is of the SVGAnimatedString type instead of string (GH-354)', function () {
- setProperty(document.body, 'innerHTML', '<svg></svg>' + document.body.innerHTML);
+ setProperty(document.body, 'innerHTML', '<svg></svg>' + getProperty(document.body, 'innerHTML'));
var svg = document.body.childNodes[0];
var processedBodyChildrenLength = getProperty(document.body.children, 'length');
| 1 |
diff --git a/shows/150 - gatsby themes.md b/shows/150 - gatsby themes.md @@ -68,9 +68,9 @@ Get a 30 day free trial of Freshbooks at [Freshbook](https://freshbooks.com/synt
* Wes: [Waterproof Digital Instant Read Meat Thermometer](https://amzn.to/2Yxy09R)
## Shameless Plugs
-* [Jason's Weekly Live stream](twitch.tv/jlinksdorf)
-* [Scott's Courses](leveluptutorials.com/pro)
-* [Wes' Courses](wesbos.com/courses) - Use the coupon code 'Syntax' for $10 off!
+* [Jason's Weekly Live stream](https://www.twitch.tv/jlengstorf)
+* [Scott's Courses](https://leveluptutorials.com/pro)
+* [Wes' Courses](https://wesbos.com/courses) - Use the coupon code 'Syntax' for $10 off!
## Tweet us your tasty treats!
* [Scott's Instagram](https://www.instagram.com/stolinski/)
| 3 |
diff --git a/src/muncher/monster/utils.js b/src/muncher/monster/utils.js @@ -383,10 +383,7 @@ function getWeaponAttack(resultData, proficiencyBonus) {
// negative mods!
if (!result.baseAbility) {
- logger.warn("NEGATIVE PARSE!");
- logger.warn(result.monsterName);
- logger.warn(result.name);
- logger.info(result.toHit);
+ logger.info(`Negative ability parse for ${result.monsterName}, to hit ${result.toHit} with ${result.name}`);
const magicAbilities = checkAbilities(initialAbilities, result.abilities, proficiencyBonus, result.toHit, true);
// logger.info(magicAbilities);
| 7 |
diff --git a/src/server/service/page.js b/src/server/service/page.js @@ -87,13 +87,14 @@ class PageService {
pages.forEach(async(page) => {
const newPagePath = page.path.replace(pathRegExp, newPagePathPrefix);
// await page.populate({ path: 'revision', model: 'Revision', select: 'body' }).execPopulate();
+ const revisionId = new mongoose.Types.ObjectId();
duplicatePageBulkOp.insert({
- path: newPagePath, body: 'new', creator: user._id, lastUpdateUser: user._id,
+ path: newPagePath, body: 'new', creator: user._id, lastUpdateUser: user._id, revision: revisionId,
});
revisionPrepareBulkOp.insert({
- path: newPagePath, body: 'new', author: user._id, format: 'markdown',
+ _id: revisionId, path: newPagePath, body: 'new', author: user._id, format: 'markdown',
});
});
| 12 |
diff --git a/client/homebrew/pages/userPage/userPage.jsx b/client/homebrew/pages/userPage/userPage.jsx @@ -53,7 +53,7 @@ const UserPage = createClass({
sortBrews : function(brews, sortType){
if(sortType == 'alpha') {
- return _.orderBy(brews, (brew)=>{ return brew.title; }, this.state.sortDir);
+ return _.orderBy(brews, (brew)=>{ return brew.title.toLowerCase(); }, this.state.sortDir);
}
if(sortType == 'created'){
return _.orderBy(brews, (brew)=>{ return brew.createdAt; }, this.state.sortDir);
@@ -67,7 +67,7 @@ const UserPage = createClass({
if(sortType == 'latest'){
return _.orderBy(brews, (brew)=>{ return brew.lastViewed; }, this.state.sortDir);
}
- return _.orderBy(brews, (brew)=>{ return brew.title; }, this.state.sortDir);
+ return _.orderBy(brews, (brew)=>{ return brew.title.toLowerCase(); }, this.state.sortDir);
},
handleSortOptionChange : function(event){
| 8 |
diff --git a/.eslintrc.json b/.eslintrc.json "no-unmodified-loop-condition": "off",
"no-unneeded-ternary": "off",
"no-unused-expressions": "off",
- "no-unused-vars": "warn",
+ "no-unused-vars": "error",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-computed-key": "error",
| 12 |
diff --git a/package.json b/package.json {
"name": "minimap",
"main": "./lib/main",
- "version": "4.29.4",
+ "version": "4.29.5",
"private": true,
"description": "A preview of the full source code.",
"author": "Fangdun Cai <[email protected]>",
| 6 |
diff --git a/src/components/staking/StakingContainer.js b/src/components/staking/StakingContainer.js @@ -10,6 +10,7 @@ import Staking from './components/Staking'
import Validators from './components/Validators'
import Validator from './components/Validator'
import StakingAction from './components/StakingAction'
+import { setStakingAccountSelected, getStakingAccountSelected } from '../../utils/localStorage'
const StyledContainer = styled(Container)`
button {
@@ -158,6 +159,7 @@ export function StakingContainer({ history, match }) {
}, [accountId])
const handleSwitchAccount = async (accountId) => {
+ setStakingAccountSelected(accountId)
await dispatch(switchAccount(accountId, stakingAccounts))
}
| 12 |
diff --git a/generators/server/templates/src/main/java/package/config/CacheConfiguration.java.ejs b/generators/server/templates/src/main/java/package/config/CacheConfiguration.java.ejs @@ -441,7 +441,7 @@ public class CacheConfiguration {
if (this.registration == null) { // if registry is not defined, use native discovery
log.warn("No discovery service is set up, Infinispan will use default discovery for cluster formation");
return () -> GlobalConfigurationBuilder
- .defaultClusteredBuilder().defaultCacheName("infinispan-<%= baseName %>-cluster-cache").transport().defaultTransport()
+ .defaultClusteredBuilder().transport().defaultTransport()
.addProperty("configurationFile", jHipsterProperties.getCache().getInfinispan().getConfigFile())
.clusterName("infinispan-<%= baseName %>-cluster")
.jmx().enabled(jHipsterProperties.getCache().getInfinispan().isStatsEnabled())
@@ -449,7 +449,7 @@ public class CacheConfiguration {
.build();
} else if (discoveryClient.getInstances(registration.getServiceId()).size() == 0) {
return () -> GlobalConfigurationBuilder
- .defaultClusteredBuilder().defaultCacheName("infinispan-<%= baseName %>-cluster-cache").transport()
+ .defaultClusteredBuilder().transport()
.transport(new JGroupsTransport())
.clusterName("infinispan-<%= baseName %>-cluster")
.jmx().enabled(jHipsterProperties.getCache().getInfinispan().isStatsEnabled())
@@ -457,7 +457,7 @@ public class CacheConfiguration {
.build();
} else {
return () -> GlobalConfigurationBuilder
- .defaultClusteredBuilder().defaultCacheName("infinispan-<%= baseName %>-cluster-cache").transport()
+ .defaultClusteredBuilder().transport()
.transport(new JGroupsTransport(getTransportChannel()))
.clusterName("infinispan-<%= baseName %>-cluster")
.jmx().enabled(jHipsterProperties.getCache().getInfinispan().isStatsEnabled())
@@ -466,7 +466,7 @@ public class CacheConfiguration {
}
<%_ } else { _%>
return () -> GlobalConfigurationBuilder
- .defaultClusteredBuilder().defaultCacheName("infinispan-<%= baseName %>-cluster-cache").transport().defaultTransport()
+ .defaultClusteredBuilder().transport().defaultTransport()
.addProperty("configurationFile", jHipsterProperties.getCache().getInfinispan().getConfigFile())
.clusterName("infinispan-<%= baseName %>-cluster")
.jmx().enabled(jHipsterProperties.getCache().getInfinispan().isStatsEnabled())
| 2 |
diff --git a/articles/protocols/oidc/index.md b/articles/protocols/oidc/index.md ---
-description: What is the OpenID Connect protocol and how it works.
+title: OpenID Connect
+description: What is the OpenID Connect protocol and how it works
---
# OpenID Connect
@@ -30,5 +31,5 @@ The [ID token](/tokens/id_token) is a [JSON Web Token (JWT)](/jwt) that contains
JWT Tokens contain [claims](/jwt#payload), which are statements (such as name or email address) about an entity (typically, the user) and additional metadata.
-The [OpenID Connect specification](https://openid.net/specs/openid-connect-core-1_0.html) defines a set of [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims). The set of standard claims include name, email, gender, birth date, and so on. However, if you want to capture information about a user and there currently isn't a standard claim that best reflects this piece of information, you can create [self-defined custom claims](https://openid.net/specs/openid-connect-core-1_0.html#AdditionalClaims).
+The [OpenID Connect specification](https://openid.net/specs/openid-connect-core-1_0.html) defines a set of [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims). The set of standard claims include name, email, gender, birth date, and so on. However, if you want to capture information about a user and there currently isn't a standard claim that best reflects this piece of information, you can create [custom claims and add them to your tokens](/tokens/id-token#add-custom-claims).
| 0 |
diff --git a/example.html b/example.html <meta content="http://branch.io/img/logo_icon_black.png" property="og:image" />
<meta content="Branch Metrics Web SDK Example App" property="og:title" />
<meta content="A basic example to demonstrate some of the ways that the Web SDK can be used" property="og:description" />
- <meta content='key_live_hkDytPACtipny3N9XmnbZlapBDdj4WIL' name='branch_key'/>
+ <meta content='key_live_feebgAAhbH9Tv85H5wLQhpdaefiZv5Dv' name='branch_key'/>
<title>Branch Metrics Web SDK Example App</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style type="text/css">
| 13 |
diff --git a/public/javascripts/Admin/src/Admin.GSVLabelView.js b/public/javascripts/Admin/src/Admin.GSVLabelView.js @@ -41,9 +41,9 @@ function AdminGSVLabelView(admin) {
'</button>' +
'</div>' +
'<div id="validation-comment-holder">' +
- '<textarea id="comment-textarea" placeholder="' + i18next.t('label-map.add-comment') + '" class="validation-comment-box"></textarea>' +
+ '<textarea id="comment-textarea" placeholder="' + i18next.t('common:label-map.add-comment') + '" class="validation-comment-box"></textarea>' +
'<button id="comment-button" class="submit-button">' +
- i18next.t('label-map.submit') +
+ i18next.t('common:label-map.submit') +
'</button>' +
'</div>' +
'<div class="modal-footer">' +
| 3 |
diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js that.$menuInner.trigger('scroll.createView');
}
- $items = that.findLis().filter(selector);
+ $items = that.findLis();
if (!$items.length) return;
index = $items.index($items.filter('.active'));
} else if (e.keyCode == 40 || downOnTab) { // down
index++;
index = index % $items.length;
+
+ if (!$items.eq(index).filter(selector).length) {
+ index = $items.index($items.eq(index).nextAll(selector).eq(0));
+
+ if (index === -1) {
+ index = that.liObj[that.$element.find('option').index(that.$element.find('option').slice($items.eq(prevIndex).data('originalIndex') + 1).filter(':not(:disabled)').eq(0))];
+ }
+ }
}
that.$menuInner.data('prevIndex', index);
e.preventDefault();
- that.findLis().removeClass('active');
- $liActive = $items.eq(index).addClass('active');
+ $liActive = $items.removeClass('active').eq(index).addClass('active');
if (e.keyCode == 40 || downOnTab) { // down
// check to see how many options are hidden at the bottom of the menu (1 or 2 depending on scroll position)
| 7 |
diff --git a/karma.conf.js b/karma.conf.js @@ -125,7 +125,7 @@ module.exports = function(config) {
},
sauceLabs: {
recordVideo: false,
- startConnect: false,
+ startConnect: true,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER,
testName: process.env.COMMIT_MESSAGE,
| 13 |
diff --git a/js/base/Exchange.js b/js/base/Exchange.js @@ -862,8 +862,9 @@ module.exports = class Exchange {
setMarkets (markets, currencies = undefined) {
const values = [];
this.markets_by_id = {};
- const marketValues = this.toArray (markets);
// handle marketId conflicts
+ // we insert spot markets first
+ const marketValues = this.sortBy (this.toArray (markets), 'spot', true);
for (let i = 0; i < marketValues.length; i++) {
const value = marketValues[i];
if (value['id'] in this.markets_by_id) {
@@ -2552,7 +2553,9 @@ module.exports = class Exchange {
if (symbol in this.markets) {
return this.markets[symbol];
} else if (symbol in this.markets_by_id) {
- return this.markets_by_id[symbol];
+ // we insert spot markets first so this will return a spot market
+ // if there is a conflict between the spot and swap markets
+ return this.markets_by_id[symbol][0];
}
}
throw new BadSymbol (this.id + ' does not have market symbol ' + symbol);
| 9 |
diff --git a/token-metadata/0xb339FcA531367067e98d7c4f9303Ffeadff7B881/metadata.json b/token-metadata/0xb339FcA531367067e98d7c4f9303Ffeadff7B881/metadata.json "symbol": "ALD",
"address": "0xb339FcA531367067e98d7c4f9303Ffeadff7B881",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/js/components/Notification/index.d.ts b/src/js/components/Notification/index.d.ts @@ -6,7 +6,7 @@ export type StatusType = 'critical' | 'warning' | 'normal' | 'info' | 'unknown';
export interface NotificationProps {
actions?: AnchorType[];
global?: boolean;
- title: string;
+ title?: string;
message?: string | React.ReactNode;
status?: StatusType;
toast?:
| 13 |
diff --git a/rig.js b/rig.js @@ -66,6 +66,11 @@ class RigManager {
this.addLocalRig(o);
}
+ isPeerRigModel(rig) {
+ const peerRigs = Array.from(this.peerRigs.values()).map(rig => rig.model);
+ return peerRigs.includes(rig);
+ }
+
async addPeerRig(peerId) {
const peerRig = new Avatar(null, {
fingers: true,
| 0 |
diff --git a/app/templates/_package.json b/app/templates/_package.json "test": "gulp client.unit_test",
"build-dev": "gulp client.build:dev",
"build-dist": "gulp client.build:dist",
- "start-client": "gulp client.watch",
"dev": "gulp client.watch",
<% } else {%>
<% if (clientBundler === "webpack") { %>
"test": "gulp client.unit_test",
"build-dev": "webpack --config webpack.config.dev.js -p",
"build-dist": "webpack --config webpack.config.prod.js -p && gulp client.build:dist",
- "start-client": "webpack-dev-server --config webpack.config.dev.js --content-base client/dev/",
- "start-client-dist": "webpack-dev-server --config webpack.config.dev.js --content-base client/dist/",
- "dev": "webpack-dev-server --config webpack.config.dev.js --content-base client/dev/",
+ "dev": "webpack-dev-server --progress --config webpack.config.dev.js --content-base client/dev/",
<% } else if (clientBundler === "parcel") { %>
"test": "gulp client.unit_test",
"build-dev": "parcel build client/dev/index.html --out-dir client/dev",
"build-dist": "parcel build client/dev/index.html --out-dir client/dev && gulp client.build:dist",
- "start-client": "parcel client/dev/index.html --out-dir client/dev",
- "start-client-dist": "parcel client/dist/index.html",
"dev": "parcel client/dev/index.html --out-dir client/dev",
<% } %>
<% } %>
| 2 |
diff --git a/src/renderVelocityTemplateObject.js b/src/renderVelocityTemplateObject.js @@ -4,7 +4,7 @@ const Velocity = require('velocityjs');
const isPlainObject = require('lodash').isPlainObject;
const debugLog = require('./debugLog');
-const { polluteStringPrototype, depolluteStringPrototype } = require('./javaHelpers');
+const stringPollution = require('./javaHelpers');
const Compile = Velocity.Compile;
const parse = Velocity.parse;
@@ -24,7 +24,7 @@ function tryToParseJSON(string) {
function renderVelocityString(velocityString, context) {
// Add Java helpers to String prototype
- polluteStringPrototype();
+ stringPollution.polluteStringPrototype();
// This line can throw, but this function does not handle errors
// Quick args explanation:
@@ -33,7 +33,7 @@ function renderVelocityString(velocityString, context) {
const renderResult = (new Compile(parse(velocityString), { escape: false })).render(context, null, true);
// Remove Java helpers from String prototype
- depolluteStringPrototype();
+ stringPollution.depolluteStringPrototype();
debugLog('Velocity rendered:', renderResult || 'undefined');
| 1 |
diff --git a/src/core/operations/ParseIPRange.mjs b/src/core/operations/ParseIPRange.mjs @@ -22,7 +22,7 @@ class ParseIPRange extends Operation {
this.name = "Parse IP range";
this.module = "JSBN";
- this.description = "Given a CIDR range (e.g. <code>10.0.0.0/24</code>), hyphenated range (e.g. <code>10.0.0.0 - 10.0.1.0</code>), or a list of IPs and/or CIDR ranges (separated by a new line), this operation provides network information and enumerates all IP addresses in the range.<br><br>IPv6 is supported but will not be enumerated";
+ this.description = "Given a CIDR range (e.g. <code>10.0.0.0/24</code>), hyphenated range (e.g. <code>10.0.0.0 - 10.0.1.0</code>), or a list of IPs and/or CIDR ranges (separated by a new line), this operation provides network information and enumerates all IP addresses in the range.<br><br>IPv6 is supported but will not be enumerated.";
this.infoURL = "https://wikipedia.org/wiki/Subnetwork";
this.inputType = "string";
this.outputType = "string";
| 0 |
diff --git a/lambda/fulfillment/lib/middleware/1_parse.js b/lambda/fulfillment/lib/middleware/1_parse.js @@ -96,8 +96,13 @@ function getClientType(req) {
// Try to determine which Lex client is being used based on patterns in the req - best effort attempt.
const voiceortext = (req._preferredResponseType == 'SSML') ? "Voice" : "Text" ;
+
//for LexV1 channels -- check for x-amz-lex:channel-type requestAttribute
+ //more information on deploying an Amazon Lex V1 Bot on a Messaging Platform: https://docs.aws.amazon.com/lex/latest/dg/example1.html
+
//for LexV2 channels -- check for x-amz-lex:channels:platform requestAttribute
+ //more information on deploying an Amazon Lex V2 Bot on a Messaging Platform: https://docs.aws.amazon.com/lexv2/latest/dg/deploying-messaging-platform.html
+
if ((_.get(req,"_event.requestAttributes.x-amz-lex:channel-type") == "Slack") || (_.get(req,"_event.requestAttributes.x-amz-lex:channels:platform") == "Slack")) {
return "LEX.Slack." + voiceortext ;
| 3 |
diff --git a/articles/design/using-auth0-with-multi-tenant-apps.md b/articles/design/using-auth0-with-multi-tenant-apps.md @@ -54,9 +54,3 @@ This is perhaps the simplest and most straightforward scenario, in which you sim
We recommend that you follow this approach only if you need to share access to the Auth0 Dashboard with individual customers. Otherwise, one of the above solutions is a more practical and easy to manage one than attempting to manage many Auth0 tenant dashboards, which is also not a scalable solution as your customer base grows.
This method would require you to use a different set of Auth0 credentials for the users belonging to each customer, as each would be a different application.
-
-## Conclusions
-
-::: note
-If you're planning to build a multi-tenant solution, please [contact our Sales or Professional Services](https://auth0.com/?contact=true) teams.
-:::
\ No newline at end of file
| 2 |
diff --git a/app/shared/components/Wallet/Panel/Unlocked.js b/app/shared/components/Wallet/Panel/Unlocked.js @@ -34,17 +34,16 @@ export default class WalletPanelUnlocked extends Component<Props> {
{
(t) => (
<div>
- {(keys.temporary)
+ {(!keys.temporary)
? (
- <WalletPanelButtonRemove
- removeWallet={actions.removeWallet}
- />
- )
- : (
- <Segment vertical>
<WalletPanelButtonLock
lockWallet={actions.lockWallet}
/>
+ )
+ : ''
+ }
+ <Segment vertical>
+
<Accordion
as={Menu}
fluid
@@ -102,8 +101,6 @@ export default class WalletPanelUnlocked extends Component<Props> {
</Menu.Item>
</Accordion>
</Segment>
- )
- }
</div>
)
}
| 11 |
diff --git a/packages/react/src/elements/components/GlobalNav/TopNav/Search.js b/packages/react/src/elements/components/GlobalNav/TopNav/Search.js @@ -82,6 +82,9 @@ class Search extends Component {
case 38:
this._arrowUp();
break;
+ case 13:
+ this._submitInput();
+ break;
default:
console.log("no focused option");
}
@@ -121,6 +124,13 @@ class Search extends Component {
}
}
+ _submitInput() {
+ this.props.onSearchInput({
+ value: this.props.options[this.state.focusedOptionIndex].label
+ });
+ this.hideOptions();
+ }
+
render() {
return (
<SearchAdapter
| 9 |
diff --git a/lib/misc/blocks.js b/lib/misc/blocks.js @@ -16,21 +16,21 @@ function isBlank ({line, scope}, allowDocstrings = false) {
return true
}
}
- return line.match(/^\s*(#.*)?$/)
+ return /^\s*(#.*)?$/.test(line)
+}
+function isEnd ({ line, scope }) {
+ for (const s of scope) {
+ if (/\bstring\.multiline\.end\b/.test(s)) {
+ return true
+ }
}
-function isEnd ({ line }) {
return line.match(/^(end\b|\)|\]|\})/)
}
function isCont ({ line }) {
return line.match(/^(else|elseif|catch|finally)\b/)
}
function isStart (lineInfo) {
- for (const s of lineInfo.scope) {
- if (/\bstring\b/.test(s)) {
- return false
- }
- }
- return !(lineInfo.line.match(/^\s/) || isBlank(lineInfo) || isEnd(lineInfo) || isCont(lineInfo))
+ return !(/^\s/.test(lineInfo.line) || isBlank(lineInfo) || isEnd(lineInfo) || isCont(lineInfo))
}
function walkBack(ed, row) {
@@ -46,13 +46,12 @@ function walkForward (ed, start) {
while (mark < ed.getLastBufferRow()) {
mark++
const lineInfo = getLine(ed, mark)
+
if (isStart(lineInfo)) {
break
}
if (isEnd(lineInfo)) {
- if (!(forLines(ed, start, mark-1).length === 0)) {
end = mark
- }
} else if (!(isBlank(lineInfo) || isStart(lineInfo))) {
end = mark
}
| 7 |
diff --git a/moderation/commands.go b/moderation/commands.go @@ -543,6 +543,9 @@ var ModerationCommands = []*commands.YAGCommand{
if page < 1 {
page = 1
}
+ if parsed.Context().Value(paginatedmessages.CtxKeyNoPagination) != nil {
+ return PaginateWarnings(parsed)(nil, page)
+ }
_, err = paginatedmessages.CreatePaginatedMessage(parsed.GS.ID, parsed.CS.ID, page, 0, PaginateWarnings(parsed))
return nil, err
},
| 11 |
diff --git a/userscript.user.js b/userscript.user.js @@ -32725,27 +32725,99 @@ var $$IMU_EXPORT$$;
}
if (domain_nowww === "imgflare.com") {
- newsrc = website_query({
- website_regex: [
- /^[a-z]+:\/\/[^/]+\/+([0-9a-z]{5,})\/+[^/]*\.html(?:[?#].*)?$/, // old style
- /^[a-z]+:\/\/[^/]+\/+f\/+([0-9a-z]{5,})(?:[?#].*)?$/
- ],
- query_for_id: "https://www.imgflare.com/f/${id}",
- process: function(done, resp, cache_key) {
+ var get_form_inputs = function(text) {
+ var matches = match_all(text, /<input\s+(?:id=\S+\s+)?type="hidden"\s+name="([^"]+)" value="([^"]+)"/);
+ if (!matches || !matches.length)
+ return null;
+
+ var data = {};
+ array_foreach(matches, function(match) {
+ data[decode_entities(match[1])] = decode_entities(match[2]);
+ });
+
+ return data;
+ };
+
+ var get_img_from_imgflare = function(resp) {
var match = resp.responseText.match(/<img[^>]*src="(https?:\/\/i\.imgflare\.com\/+i\.php\?[^"]+)"/);
- if (!match) {
- console_error(cache_key, "Unable to find match for", resp, "(is captcha solved?)");
- return done(null, false);
- }
+ if (!match)
+ return null;
- return done({
+ return {
url: decode_entities(match[1]),
headers: {
Referer: resp.finalUrl,
Origin: "https://www.imgflare.com"
},
is_private: true // contains auth code
+ };
+ };
+
+ var query_imgflare = function(url, cb, inputs, times) {
+ if (!times) times = 0;
+
+ // works after the 3-5th time usually
+ if (times >= 5) {
+ console_error("Unable to find image for", url, "(tried too many times)");
+ return cb(null);
+ }
+
+ var req = {
+ url: url,
+ imu_mode: "document",
+ headers: {
+ Referer: "https://www.imgflare.com/",
+ Origin: "https://www.imgflare.com"
+ }
+ };
+
+ if (inputs) {
+ req.method = "POST",
+ req.data = stringify_queries(inputs);
+ req.headers["Content-Type"] = "application/x-www-form-urlencoded";
+ }
+
+ api_query("imgflare:" + id, req, function(data) {
+ if (!data)
+ return cb(null);
+
+ if (data.img)
+ return cb(data.img);
+
+ if (data.inputs) {
+ return setTimeout(function() {
+ query_imgflare(url, cb, data.inputs, times + 1);
+ }, 3*1000);
+ }
+ }, function(done, resp, cache_key) {
+ var img = get_img_from_imgflare(resp);
+ if (img) {
+ return done({
+ img: img
+ }, 60*60);
+ }
+
+ var inputs = get_form_inputs(resp.responseText);
+ if (!inputs) {
+ console_error(cache_key, "Unable to find form inputs for", resp, "(is captcha solved?)");
+ return done(null, false);
+ }
+
+ return done({
+ inputs: inputs
+ }, false);
});
+ };
+
+ newsrc = website_query({
+ website_regex: [
+ /^[a-z]+:\/\/[^/]+\/+([0-9a-z]{5,})\/+[^/]*\.html(?:[?#].*)?$/, // old style
+ /^[a-z]+:\/\/[^/]+\/+f\/+([0-9a-z]{5,})(?:[?#].*)?$/
+ ],
+ run: function(cb, match) {
+ var id = match[1];
+ var url = "https://www.imgflare.com/f/" + id;
+ query_imgflare(url, cb);
}
});
if (newsrc) return newsrc;
| 7 |
diff --git a/packages/idyll-layouts/src/centered/index.js b/packages/idyll-layouts/src/centered/index.js @@ -2,7 +2,10 @@ import createStyles from './styles';
const config = {
maxWidth: 600,
- margin: '0 auto'
+ marginTop: 0,
+ marginRight: 'auto',
+ marginBottom: 0,
+ marginLeft: 'auto'
};
export default {
| 3 |
diff --git a/src/muncher/encounters.js b/src/muncher/encounters.js @@ -546,7 +546,7 @@ export class DDBEncounterMunch extends Application {
logger.info(`Updating DDBI scene ${sceneData.name}`);
sceneData._id = worldScene.id;
await worldScene.deleteEmbeddedDocuments("Token", [], { deleteAll: true });
- await Scene.update(mergeObject(worldScene.data.toObject(), sceneData));
+ await worldScene.update(mergeObject(worldScene.data.toObject(), sceneData));
} else if (useExistingScene) {
logger.info(`Checking existing scene ${sceneData.name} for encounter monsters`);
const existingSceneMonsterIds = worldScene.data.tokens
@@ -576,10 +576,11 @@ export class DDBEncounterMunch extends Application {
this.scene = worldScene;
}
+ logger.debug("Scene created", this.scene);
- return new Promise((resolve) => {
- resolve(this.scene);
- });
+ this.scene.render();
+
+ return this.scene;
}
async createCombatEncounter() {
@@ -795,7 +796,8 @@ export class DDBEncounterMunch extends Application {
await this.importMonsters();
await this.importCharacters(html);
await this.createJournalEntry();
- await this.createScene();
+ const scene = await this.createScene();
+ logger.info(`Scene ${scene.id} created`);
await this.createCombatEncounter();
// to do:
| 7 |
diff --git a/renderer.js b/renderer.js @@ -24,7 +24,7 @@ function bindCanvas(c) {
antialias: true,
alpha: true,
// preserveDrawingBuffer: false,
- // logarithmicDepthBuffer: true,
+ logarithmicDepthBuffer: true,
});
const rect = renderer.domElement.getBoundingClientRect();
| 0 |
diff --git a/promise.js b/promise.js @@ -161,7 +161,7 @@ class PromiseConnection extends EventEmitter {
const c = this.connection;
const localErr = new Error();
return new this.Promise((resolve, reject) => {
- c.ping((err) => {
+ c.ping(err => {
if (err) {
localErr.message = err.message;
localErr.code = err.code;
| 1 |
diff --git a/src/struct/Command.js b/src/struct/Command.js @@ -323,7 +323,7 @@ class Command extends AkairoModule {
return word || def;
};
- wordArgs.forEach((arg, i) => {
+ for (const [i, arg] of wordArgs.entries()){
let word;
if (arg.match === ArgumentMatches.REST){
@@ -335,7 +335,7 @@ class Command extends AkairoModule {
if ((this.split === ArgumentSplits.QUOTED || this.split === ArgumentSplits.STICKY) && /^".*"$/.test(word)) word = word.slice(1, -1);
args[arg.id] = processType(arg, word);
- });
+ }
if (prefixArgs.length || flagArgs.length) words.reverse();
| 14 |
diff --git a/aleph.env.tmpl b/aleph.env.tmpl @@ -32,14 +32,6 @@ ALEPH_PASSWORD_LOGIN=true
ALEPH_OAUTH=false
ALEPH_OAUTH_KEY=
ALEPH_OAUTH_SECRET=
-ALEPH.OAUTH_NAME=
-ALEPH_OAUTH_SCOPE=
-ALEPH_OAUTH_BASE_URL=
-ALEPH_OAUTH_REQUEST_TOKEN_URL=
-ALEPH_OAUTH_TOKEN_METHOD=
-ALEPH_OAUTH_TOKEN_URL=
-ALEPH_OAUTH_AUTHORIZE_URL=
-
# Where and how to store the underlying files:
# ALEPH_ARCHIVE_TYPE=file
| 13 |
diff --git a/Tests/web3swiftTests/remoteTests/web3swiftENSTests.swift b/Tests/web3swiftTests/remoteTests/web3swiftENSTests.swift @@ -27,7 +27,7 @@ class web3swiftENSTests: XCTestCase {
let ens = ENS(web3: web)
let domain = "somename.eth"
let address = try ens?.registry.getResolver(forDomain: domain).resolverContractAddress
- print(address)
+ print(address as Any)
XCTAssertEqual(address?.address.lowercased(), "0x5ffc014343cd971b7eb70732021e26c35b744cc4")
}
| 1 |
diff --git a/sirepo/sim_data/srw.py b/sirepo/sim_data/srw.py @@ -531,6 +531,7 @@ class SimData(sirepo.sim_data.SimDataBase):
# this is a hack for existing bad data
for k in ['outframevx', 'outframevy', 'outoptvx', 'outoptvy', 'outoptvz',
'tvx', 'tvy']:
+ if i.get(k, 0) is None: i[k] = 0
i[k] = float(i.get(k, 0))
if 'diffractionAngle' not in i:
allowed_angles = [x[0] for x in cls.schema().enum.DiffractionPlaneAngle]
| 1 |
diff --git a/src/service-broker.js b/src/service-broker.js @@ -1069,7 +1069,7 @@ class ServiceBroker {
this._finishCall(ctx, err);
// Handle fallback response
- if (opts.fallbackResponse) {
+ if (_.has(opts, 'fallbackResponse')) {
this.logger.warn(`Action '${actionName}' returns with fallback response.`);
if (_.isFunction(opts.fallbackResponse))
return opts.fallbackResponse(ctx, err);
| 11 |
diff --git a/app/package.json b/app/package.json "bids-validator": "0.21.6",
"bowser": "^1.0.0",
"bytes": "^2.3.0",
- "es6-react-mixins": "^0.1.6",
"favico.js": "git://github.com/ejci/favico.js#0.3.10",
"moment": "^2.10.3",
"pluralize": "^1.1.2",
"react": "0.14.8",
"react-bootstrap": "0.29.4",
- "react-dom": "0.14.0",
+ "react-dom": "0.14.8",
"react-ga": "^2.2.0",
"react-input-autosize": "1.1.0",
"react-router": "^0.13.3",
- "react-select": "^1.0.0-rc.3",
+ "react-select": "^1.0.0-rc.5",
"reactable": "0.14.0",
"reflux": "^0.2.7",
"remarkable": "1.6.2",
| 1 |
diff --git a/dual-contouring.js b/dual-contouring.js @@ -310,7 +310,7 @@ w.getChunkHeightfieldAsync = async (inst, x, z, lod) => {
// const heights = allocator.alloc(Float32Array, chunkSize * chunkSize);
- try {
+ // try {
const taskId = Module._getChunkHeightfieldAsync(
inst,
x, z,
@@ -324,9 +324,9 @@ w.getChunkHeightfieldAsync = async (inst, x, z, lod) => {
const heights2 = new Float32Array(Module.HEAPU8.buffer, heights, chunkSize * chunkSize).slice();
Module._doFree(heights);
return heights2;
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
/* w.getHeightfieldRange = (inst, x, z, w, h, lod) => {
const allocator = new Allocator(Module);
@@ -352,7 +352,7 @@ w.getChunkSkylightAsync = async (inst, x, y, z, lod) => {
// const gridPoints = chunkSize + 3 + lod;
// const skylights = allocator.alloc(Uint8Array, chunkSize * chunkSize * chunkSize);
- try {
+ // try {
const taskId = Module._getChunkSkylightAsync(
inst,
x, y, z,
@@ -366,16 +366,16 @@ w.getChunkSkylightAsync = async (inst, x, y, z, lod) => {
const skylights2 = new Uint8Array(Module.HEAPU8.buffer, skylights, chunkSize * chunkSize * chunkSize).slice();
Module._doFree(skylights);
return skylights2;
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
w.getChunkAoAsync = async (inst, x, y, z, lod) => {
// const allocator = new Allocator(Module);
// const aos = allocator.alloc(Uint8Array, chunkSize * chunkSize * chunkSize);
- try {
+ // try {
const taskId = Module._getChunkAoAsync(
inst,
x, y, z,
@@ -389,9 +389,9 @@ w.getChunkAoAsync = async (inst, x, y, z, lod) => {
const aos2 = new Uint8Array(Module.HEAPU8.buffer, aos, chunkSize * chunkSize * chunkSize).slice();
Module._doFree(aos);
return aos2;
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
/* w.getSkylightFieldRange = (inst, x, y, z, w, h, d, lod) => {
const allocator = new Allocator(Module);
@@ -439,7 +439,7 @@ w.createGrassSplatAsync = async (inst, x, z, lod) => {
// const instances = allocator.alloc(Float32Array, allocSize);
// const count = allocator.alloc(Uint32Array, 1);
- try {
+ // try {
const taskId = Module._createGrassSplatAsync(
inst,
x, z,
@@ -460,9 +460,9 @@ w.createGrassSplatAsync = async (inst, x, z, lod) => {
qs: qs.slice(0, numElements * 4),
instances: instances.slice(0, numElements),
}; */
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
w.createVegetationSplatAsync = async (inst, x, z, lod) => {
// const allocator = new Allocator(Module);
@@ -473,7 +473,7 @@ w.createVegetationSplatAsync = async (inst, x, z, lod) => {
// const instances = allocator.alloc(Float32Array, allocSize);
// const count = allocator.alloc(Uint32Array, 1);
- try {
+ // try {
const taskId = Module._createVegetationSplatAsync(
inst,
x, z,
@@ -494,9 +494,9 @@ w.createVegetationSplatAsync = async (inst, x, z, lod) => {
qs: qs.slice(0, numElements * 4),
instances: instances.slice(0, numElements),
}; */
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
w.createMobSplatAsync = async (inst, x, z, lod) => {
// const allocator = new Allocator(Module);
@@ -507,7 +507,7 @@ w.createMobSplatAsync = async (inst, x, z, lod) => {
const instances = allocator.alloc(Float32Array, allocSize);
const count = allocator.alloc(Uint32Array, 1); */
- try {
+ // try {
const taskId = Module._createMobSplatAsync(
inst,
x, z,
@@ -528,9 +528,9 @@ w.createMobSplatAsync = async (inst, x, z, lod) => {
qs: qs.slice(0, numElements * 4),
instances: instances.slice(0, numElements),
}; */
- } finally {
+ /* } finally {
// allocator.freeAll();
- }
+ } */
};
// _parsePQI parses ps, qs, instances from a buffer
// the buffer contains 6 entries:
| 2 |
diff --git a/src/govuk/settings/_links.scss b/src/govuk/settings/_links.scss /// Enable new link styles
///
+/// If enabled, the link styles will change. Underlines will:
+///
+/// - be consistently thinner and a bit further away from the link text
+/// - have a clearer hover state, where the underline gets thicker to make the
+/// link stand out to users
+///
+/// You should only enable the new link styles if both:
+///
+/// - you've made sure your whole service will use the new style consistently
+/// - you do not have links in a multi-column CSS layout - there's [a Chromium
+/// bug that affects links](https://github.com/alphagov/govuk-frontend/issues/2204)
+///
/// @type Boolean
/// @access public
$govuk-new-link-styles: false !default;
-/// Link underline thickness
+/// Thickness of link underlines
+///
+/// The default will be either:
///
-/// The default is, for a given link, whichever is thicker:
-/// - an absolute 1px underline
-/// - .0625rem, equivalent to 1px but adjusts with the root font size if the
-///. user has zoomed in 'text only'
+/// - 1px
+/// - 0.0625rem, if it's thicker than 1px because the user has changed the text
+/// size in their browser
///
-/// Set to false to disable setting a thickness
+/// Set this variable to `false` to avoid setting a thickness.
///
/// @type Number
/// @access public
$govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;
-/// Link underline offset.
+/// Offset of link underlines from text baseline
///
-/// Set to false to disable setting an offset
+/// Set this variable to `false` to avoid setting an offset.
///
/// @type Number
/// @access public
$govuk-link-underline-offset: .1em !default;
-/// Link hover state underline thickness
+/// Thickness of link underlines in hover state
+///
+/// The default for each link will be the thickest of the following:
///
-/// The default is, for a given link, whichever is the thicker of:
-/// - an absolute 3px underline
-/// - .1875rem, which equivalent to 3px (at 16px root font size) but adjusts
-/// with the root font size if the user has zoomed in 'text only'
-/// - .12em relative to the link's text size
+/// - 3px
+/// - 0.1875rem, if it's thicker than 3px because the user has changed the text
+/// size in their browser
+/// - 0.12em (relative to the link's text size)
///
-/// Set to false to disable setting a thickness
+/// Set this variable to `false` to avoid setting a thickness.
///
/// @type Number
/// @access public
| 7 |
diff --git a/tools/genbuiltins.py b/tools/genbuiltins.py @@ -2317,7 +2317,7 @@ def rom_emit_strings_source(genc, meta):
for lst in romstr_hash:
for v in reversed(lst):
tmp = 'DUK_INTERNAL const duk_romstr_%d %s = {' % (len(v), bi_str_map[v])
- flags = [ 'DUK_HTYPE_STRING', 'DUK_HEAPHDR_FLAG_READONLY' ]
+ flags = [ 'DUK_HTYPE_STRING', 'DUK_HEAPHDR_FLAG_READONLY', 'DUK_HEAPHDR_FLAG_REACHABLE' ]
is_arridx = string_is_arridx(v)
blen = len(v)
@@ -2741,7 +2741,7 @@ def rom_emit_objects(genc, meta, bi_str_map):
else:
tmp = 'DUK_EXTERNAL const duk_romobj duk_obj_%d = ' % idx
- flags = [ 'DUK_HTYPE_OBJECT', 'DUK_HEAPHDR_FLAG_READONLY' ]
+ flags = [ 'DUK_HTYPE_OBJECT', 'DUK_HEAPHDR_FLAG_READONLY', 'DUK_HEAPHDR_FLAG_REACHABLE' ]
if isfunc:
flags.append('DUK_HOBJECT_FLAG_NATFUNC')
flags.append('DUK_HOBJECT_FLAG_STRICT')
| 12 |
diff --git a/lib/plugins/html/templates/url/browsertime/index.pug b/lib/plugins/html/templates/url/browsertime/index.pug @@ -28,7 +28,7 @@ if options.browsertime.video
- var tracePath = 'data/video/' + (runIndex ? (Number(runIndex)+1) : 1) +'.mp4'
a.button.button-download(href=tracePath, download=downloadName + '-video.mp4') Download video
-if options.browsertime.speedIndex
+if options.browsertime.visualMetrics
a#visualmetrics
h3 Visual Metrics
.row
| 10 |
diff --git a/dockerhub/run.sh b/dockerhub/run.sh #!/bin/bash
-export LOG_URL
+export LOGSENE_RECEIVER_URL
export RECEIVERS_CONFIG="/etc/sematext/receivers.config"
if [[ -z "$LOG_INDEX" ]]; then
@@ -27,26 +27,26 @@ touch /etc/sematext/logagent.conf
chmod 600 /etc/sematext/logagent.conf
generate_config() {
- if [[ ! -z "$LOG_URL" ]]; then
+ if [[ ! -z "$LOGSENE_RECEIVER_URL" ]]; then
echo -e "SPM_RECEIVER_URL=$SPM_RECEIVER_URL
EVENTS_RECEIVER_URL=$EVENTS_RECEIVER_URL
-LOG_URL=$LOG_URL" >"$RECEIVERS_CONFIG"
+LOGSENE_RECEIVER_URL=$LOGSENE_RECEIVER_URL" >"$RECEIVERS_CONFIG"
REGION="custom"
fi
if [[ $REGION == "US" ]]; then
echo -e "SPM_RECEIVER_URL=https://spm-receiver.sematext.com/receiver/v1
EVENTS_RECEIVER_URL=https://event-receiver.sematext.com
-LOG_URL=https://logsene-receiver.sematext.com" >"$RECEIVERS_CONFIG"
+LOGSENE_RECEIVER_URL=https://logsene-receiver.sematext.com" >"$RECEIVERS_CONFIG"
fi
if [[ $REGION == "EU" ]]; then
echo -e "SPM_RECEIVER_URL=https://spm-receiver.eu.sematext.com/receiver/v1
EVENTS_RECEIVER_URL=https://event-receiver.eu.sematext.com
-LOG_URL=https://logsene-receiver.eu.sematext.com" >"$RECEIVERS_CONFIG"
+LOGSENE_RECEIVER_URL=https://logsene-receiver.eu.sematext.com" >"$RECEIVERS_CONFIG"
fi
- LOG_URL=$(grep -w LOG_URL "$RECEIVERS_CONFIG" | sed 's/\(LOG_URL=\)\(.*\)/\2/')
+ LOGSENE_RECEIVER_URL=$(grep -w LOGSENE_RECEIVER_URL "$RECEIVERS_CONFIG" | sed 's/\(LOGSENE_RECEIVER_URL=\)\(.*\)/\2/')
echo "Receivers config from $RECEIVERS_CONFIG:"
cat "$RECEIVERS_CONFIG"
@@ -95,7 +95,7 @@ cat >>/etc/sematext/logagent.conf <<EOF
output:
logsene:
module: elasticsearch
- url: $LOG_URL
+ url: $LOGSENE_RECEIVER_URL
index: ${LOG_INDEX}
EOF
| 10 |
diff --git a/packages/simplebar-vue/tests/__snapshots__/index.test.js.snap b/packages/simplebar-vue/tests/__snapshots__/index.test.js.snap @@ -8,7 +8,7 @@ exports[`simplebar renders with default slot 1`] = `
</div>
<div class="simplebar-mask">
<div class="simplebar-offset" style="right: 0px; bottom: 0px;">
- <div class="simplebar-content-wrapper" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
+ <div class="simplebar-content-wrapper" tabindex="0" role="region" aria-label="scrollable content" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
<div class="simplebar-content">
<div class="inner-content"></div>
</div>
@@ -34,7 +34,7 @@ exports[`simplebar renders with options 1`] = `
</div>
<div class="simplebar-mask">
<div class="simplebar-offset" style="right: 0px; bottom: 0px;">
- <div class="simplebar-content-wrapper" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
+ <div class="simplebar-content-wrapper" tabindex="0" role="region" aria-label="scrollable content" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
<div class="simplebar-content"></div>
</div>
</div>
@@ -58,7 +58,7 @@ exports[`simplebar renders without crashing 1`] = `
</div>
<div class="simplebar-mask">
<div class="simplebar-offset" style="right: 0px; bottom: 0px;">
- <div class="simplebar-content-wrapper" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
+ <div class="simplebar-content-wrapper" tabindex="0" role="region" aria-label="scrollable content" style="height: auto; overflow-x: hidden; overflow-y: hidden;">
<div class="simplebar-content"></div>
</div>
</div>
| 3 |
diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx @@ -57,7 +57,7 @@ class Blocks extends React.Component {
this.workspace = this.ScratchBlocks.inject(this.blocks, workspaceConfig);
// Load the toolbox from the GUI (otherwise we get the scratch-blocks default toolbox)
- this.workspace.updateToolbox(makeToolboxXML());
+ this.workspace.updateToolbox(this.props.toolboxXML);
// @todo change this when blockly supports UI events
addFunctionListener(this.workspace, 'translate', this.onWorkspaceMetricsChange);
| 4 |
diff --git a/main/utils/config.js b/main/utils/config.js @@ -46,7 +46,7 @@ const defaultOptions = {
configFilePath: OONI_CONFIG_PATH
}
-export const initializeConfig = (opts = {}) => {
+const initializeConfig = (opts = {}) => {
const config = {
'_version': LATEST_CONFIG_VERSION,
'_informed_consent': true,
| 2 |
diff --git a/articles/connections/social/devkeys.md b/articles/connections/social/devkeys.md @@ -28,6 +28,6 @@ When using the Auth0 developer keys, there are a few caveats you need to be awar
4. [Federated Logout](/logout#log-out-a-user) does not work. When using the Auth0 developer keys, calling `/v2/logout?federated` will sign the user out of Auth0, but not out of the Social Identity Provider.
-5. `prompt=none` won't work on the [/authorize](/api/authentication/reference#social) endpoint.
+5. `prompt=none` won't work on the [/authorize](/api/authentication/reference#social) endpoint. [Auth0.js' renewAuth() method](https://github.com/auth0/auth0.js#api) uses `prompt=none` internally, so that won't work either.
6. If Auth0 is acting as a SAML Identity Provider and you use a social connection with the Auth0 developer keys, the generated SAML response will have some errors, like a missing `InResponseTo` attribute or an empty `AudienceRestriction` element.
| 0 |
diff --git a/packages/cx/src/data/ops/index.d.ts b/packages/cx/src/data/ops/index.d.ts @@ -3,5 +3,8 @@ export * from './merge';
export * from './filter';
export * from './updateArray';
export * from './updateTree';
+export * from './removeTreeNodes';
export * from './findTreeNode';
+export * from './moveElement';
+export * from './insertElement';
| 0 |
diff --git a/examples/viper/search_openaire_projects.js b/examples/viper/search_openaire_projects.js @@ -54,6 +54,9 @@ var setupPaginator = function (searchTerm) {
if (pagination.totalNumber === 0) {
$('#viper-search-results').append('<div class="viper-no-results-err">Sorry, no projects found for <span style="font-weight:bold;">' + decodeURI(searchTerm) + '</span> Please try another search term.</div>')
}
+ if(pagination.totalNumber <= pagination.pageSize) {
+ $("#viper-search-pager").hide();
+ }
},
formatAjaxError: function (jqXHR, textStatus, errorThrown) {
$('#viper-search-results').text('Error Searching: Check your search terms. See Console for error details')
@@ -79,6 +82,8 @@ var setupPaginator = function (searchTerm) {
} else {
$('.pagination').find("li:first").addClass("active")
}
+
+ $("#viper-search-pager").show();
},
dataFilter: function (data, type) {
try {
| 2 |
diff --git a/semcore/ui/__tests__/index.test.js b/semcore/ui/__tests__/index.test.js @@ -89,7 +89,6 @@ describe('Icon', () => {
const pkgFiles = glob.sync(`${iconsDir}/**/*.js`).filter(isCopiedFile);
const rscFiles = glob.sync(`${rscIconsDir}/**/*.js`).filter(isCopiedFile);
- console.log(`${rscIconsDir}/**/*.js`);
test(`package provides whole filesystem to release system`, () => {
const pathFormatter = (path) => path.split('/icon/')[1];
| 2 |
diff --git a/policykit/slackintegration/models.py b/policykit/slackintegration/models.py @@ -20,6 +20,8 @@ class SlackCommunity(Community):
team_id = models.CharField('team_id', max_length=150, unique=True)
+ bot_id = models.CharField('bot_id', max_length=150, unique=True)
+
access_token = models.CharField('access_token',
max_length=300,
unique=True)
| 0 |
diff --git a/examples/transloadit-textarea/package.json b/examples/transloadit-textarea/package.json {
+ "aliasify": {
+ "aliases": {
+ "@uppy": "../../packages/@uppy"
+ }
+ },
"dependencies": {
"drag-drop": "^4.2.0",
"marked": "^0.6.0"
},
"devDependencies": {
+ "aliasify": "^2.1.0",
"browserify": "^16.2.3",
"ecstatic": "^3.0.0"
},
"scripts": {
- "start": "browserify main.js > bundle.js && ecstatic"
+ "start": "browserify -g aliasify main.js > bundle.js && ecstatic"
}
}
| 0 |
diff --git a/src/data-structures/tree/binary-search-tree/BinarySearchTree.js b/src/data-structures/tree/binary-search-tree/BinarySearchTree.js @@ -6,6 +6,9 @@ export default class BinarySearchTree {
*/
constructor(nodeValueCompareFunction) {
this.root = new BinarySearchTreeNode(null, nodeValueCompareFunction);
+
+ // Steal node comparator from the root.
+ this.nodeComparator = this.root.nodeComparator;
}
/**
| 12 |
diff --git a/server/game/cards/01-Core/YoungRumormonger.js b/server/game/cards/01-Core/YoungRumormonger.js @@ -11,7 +11,7 @@ class YoungRumormonger extends DrawCard {
target: {
cardType: 'character',
cardCondition: (card, context) => card !== context.event.card && card.controller === context.event.card.controller &&
- card.allowGameAction(context.event.gameAction.action, context)
+ card.allowGameAction(context.event.gameAction.name, context)
},
effect: '{1} {0} instead of {2}',
effectArgs: context => [context.event.gameAction.name, context.event.card],
| 1 |
diff --git a/js/bittrex.js b/js/bittrex.js @@ -24,7 +24,7 @@ module.exports = class bittrex extends Exchange {
'fetchDepositAddress': true,
'fetchClosedOrders': true,
'fetchCurrencies': true,
- 'fetchMyTrades': true,
+ 'fetchMyTrades': false,
'fetchOHLCV': true,
'fetchOrder': true,
'fetchOpenOrders': true,
| 12 |
diff --git a/accessibility-checker-engine/help-v4/en-US/text_spacing_valid.html b/accessibility-checker-engine/help-v4/en-US/text_spacing_valid.html ### Why is this important?
-The visual appearance of spacing in text should be accomplished using style sheets to maintain meaningful text sequencing. Simply adding blank characters to control the spacing may change the meaning, pronunciation or the interpretation of the word or cause the word not to be programmatically recognized as a single word.
+End users need to be able to adjust text, word, and line spacing to make it easier to read;
+and that the content is still fully usable and understandable (e.g. no truncation) when making adjustments.
+Assistive technologies cannot adjust spacing when authors use the `!important` attribute.
+
+Authors must ensure the content can be transformed (such as through user style sheets) to attain all of the following specific requirements without loss of content or functionality:
+* Line height (line spacing) to at least 1.5 times the font size
+* Spacing following paragraphs to at least 2 times the font size
+* Letter spacing (tracking) to at least 0.12 times the font size
+* Word spacing to at least 0.16 times the font size
<!-- This is where the code snippet is injected -->
<div id="locSnippet"></div>
### What to do
- * Verify space characters are not being used to create space between the letters of a word;
- * **Or**, if the letters of a word letters need to be spaced out, [use the CSS `letter-spacing` property](https://www.w3.org/WAI/WCAG21/Techniques/css/C8.html).
+* Use CSS to control spacing within a word, between words, and between lines
+* Avoid using the `!important` style attribute that prevents users from adjusting the spacing
+* Or, provide a custom mechanism on the page to allow users to adjust the spacing
</script></mark-down>
<!-- End main panel -->
@@ -65,8 +74,12 @@ The visual appearance of spacing in text should be accomplished using style shee
### About this requirement
-* [IBM 1.3.2 Meaningful Sequence](https://www.ibm.com/able/requirements/requirements/#1_3_2)
-* [WCAG technique C9](https://www.w3.org/WAI/WCAG21/Techniques/css/C8.html)
+* [IBM 1.4.12 Text Spacing](https://www.ibm.com/able/requirements/requirements/#1_4_12)
+* [WCAG technique C35](https://www.w3.org/WAI/WCAG21/Techniques/css/C35)
+* [WCAG technique C36](https://www.w3.org/WAI/WCAG21/Techniques/css/C36
+* [Design - Responsive reflow](https://www.ibm.com/able/toolkit/design/visual/#responsive-reflow)
+* [Verify - Resize and re-space text](https://www.ibm.com/able/toolkit/verify/manual/#resizetext)
+* [Verify - Reflow text](https://www.ibm.com/able/toolkit/verify/manual/#reflow)
### Who does this affect?
| 14 |
diff --git a/semantics.json b/semantics.json "type": "text",
"label": "Source language, must be defined for subtitles",
"importance": "low",
+ "default": "en",
"description": "Must be a valid BCP 47 language tag. If 'Subtitles' is the type of text track selected, the source language of the track must be defined."
},
{
| 0 |
diff --git a/src/web/html/index.html b/src/web/html/index.html <div class="collapse" id="faq-load-files">
<p>Yes! Just drag your file over the input box and drop it.</p>
<p>CyberChef can handle files up to around 2GB (depending on your browser), however some of the operations may take a very long time to run over this much data.</p>
- <p>If the output is larger than a certain threshold (default 1MiB), it will be presented to you as a file available for download. Slices of the file can be viewed in the output if you need to inspect them.</p>
+ <p>If the output is larger than a certain threshold (default <a href="#recipe=Multiply('Line%20feed')Convert_data_units('Bytes%20(B)','Mebibytes%20(MiB)')&input=MTAyNAoxMDI0">1MiB</a>), it will be presented to you as a file available for download. Slices of the file can be viewed in the output if you need to inspect them.</p>
</div>
<br>
| 0 |
diff --git a/contracts/actions/flashloan/FLAction.sol b/contracts/actions/flashloan/FLAction.sol @@ -4,9 +4,7 @@ pragma solidity =0.8.10;
import "../ActionBase.sol";
import "../../utils/ReentrancyGuard.sol";
-import "../../DS/DSMath.sol";
import "../../utils/TokenUtils.sol";
-import "../../utils/SafeMath.sol";
import "../../interfaces/IDSProxy.sol";
import "../../interfaces/flashloan/IFlashLoanBase.sol";
@@ -22,9 +20,8 @@ import "../../core/strategy/StrategyModel.sol";
import "./helpers/FLHelper.sol";
/// @title Action that gets and receives FL from different variety of sources
-contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel, FLHelper, DSMath {
+contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel, FLHelper {
using TokenUtils for address;
- using SafeMath for uint256;
/// @dev FL Initiator must be this contract
error UntrustedInitiator();
@@ -33,6 +30,8 @@ contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel,
error WrongPaybackAmountError(); // Wrong FL payback amount sent
+ error NonexistantFLSource();
+
enum FLSource {
EMPTY,
AAVE,
@@ -83,6 +82,8 @@ contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel,
_flEuler(_flParams);
} else if (_source == FLSource.MAKER) {
_flMaker(_flParams);
+ } else {
+ revert NonexistantFLSource();
}
}
@@ -185,7 +186,7 @@ contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel,
// return FL
for (uint256 i = 0; i < _assets.length; i++) {
- uint256 paybackAmount = add(_amounts[i], _fees[i]);
+ uint256 paybackAmount = _amounts[i] + _fees[i];
bool correctAmount = _assets[i].getBalance(address(this)) ==
paybackAmount + balancesBefore[i];
@@ -228,11 +229,11 @@ contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel,
// call Action execution
IDSProxy(proxy).execute{value: address(this).balance}(
recipeExecutorAddr,
- abi.encodeWithSelector(CALLBACK_SELECTOR, currRecipe, _amounts[0].add(_feeAmounts[0]))
+ abi.encodeWithSelector(CALLBACK_SELECTOR, currRecipe, _amounts[0] +_feeAmounts[0])
);
for (uint256 i = 0; i < _tokens.length; i++) {
- uint256 paybackAmount = _amounts[i].add(_feeAmounts[i]);
+ uint256 paybackAmount = _amounts[i] + (_feeAmounts[i]);
if (_tokens[i].getBalance(address(this)) != paybackAmount + balancesBefore[i]) {
revert WrongPaybackAmountError();
@@ -297,7 +298,7 @@ contract FLAction is ActionBase, ReentrancyGuard, IFlashLoanBase, StrategyModel,
address payable recipeExecutorAddr = payable(registry.getAddr(bytes4(RECIPE_EXECUTOR_ID)));
- uint256 paybackAmount = _amount.add(_fee);
+ uint256 paybackAmount = _amount +_fee;
// call Action execution
IDSProxy(proxy).execute{value: address(this).balance}(
recipeExecutorAddr,
| 1 |
diff --git a/src/layers/core/scatterplot-layer/scatterplot-layer.js b/src/layers/core/scatterplot-layer/scatterplot-layer.js @@ -56,7 +56,7 @@ export default class ScatterplotLayer extends Layer {
log.once(0, 'ScatterplotLayer no longer accepts props.radius in this version of deck.gl. Please use props.radiusScale instead.');
}
- if (this.props.outline !== undefined) {
+ if (this.props.drawOutline !== undefined) {
log.once(0, 'ScatterplotLayer no longer accepts props.drawOutline in this version of deck.gl. Please use props.outline instead.');
}
| 1 |
diff --git a/src/runtimes/react-native/net_info.ts b/src/runtimes/react-native/net_info.ts @@ -14,7 +14,7 @@ export class NetInfo extends EventsDispatcher implements Reachability {
super();
this.online = true;
- NativeNetInfo.getConnectionInfo().then(connectionState => {
+ NativeNetInfo.fetch().then(connectionState => {
this.online = hasOnlineConnectionState(connectionState);
});
| 4 |
diff --git a/dist/index.html b/dist/index.html @@ -62,6 +62,14 @@ el('h1', 'Hello RE:DOM!');
</script></code></pre>
<pre><code class="language-markup"><h1>Hello modules!</h1></code></pre>
+ <h3>You can even use plain old ES5</h3>
+ <pre><code class="language-html"><script src='https://redom.js.org/redom.min.js'></script>
+<script>
+ var element = redom.el('h1', 'Hello ES5!');
+ redom.mount(document.body, element);
+</script></code></pre>
+ <pre><code class="language-markup"><h1>Hello ES5!</h1></code></pre>
+
<h3>Add attributes</h3>
<pre><code class="language-js">import { el, mount } from 'redom';
| 0 |
diff --git a/app/controllers/superadmin/organizations_controller.rb b/app/controllers/superadmin/organizations_controller.rb @@ -2,7 +2,7 @@ module Superadmin
class OrganizationsController < ::Superadmin::SuperadminController
respond_to :json
- ssl_required :show, :create, :update, :destroy, :index
+ ssl_required :show, :index
layout 'application'
def show
| 2 |
diff --git a/js/node/pipelinemodule.js b/js/node/pipelinemodule.js @@ -262,7 +262,7 @@ let makePipeline = function(pipelineOptions,odir='',debug=false) {
let listMatchString = new RegExp('#(' + key + ')#', 'g');
let listMatch = listMatchString.exec(job.options);
if (listMatch) {
- listMatches[key] = listMatch; console.log('match', listMatch);
+ listMatches[key] = listMatch;
} else if (expandedVariables[key].length > numOutputs) {
numOutputs = expandedVariables[key].length;
}
@@ -291,15 +291,23 @@ let makePipeline = function(pipelineOptions,odir='',debug=false) {
for (let i = 0; i < numOutputs; i++) {
let outname= variableNaming[variable.name]+variableSuffix[variable.name];
- outname=outname.trim().replace(/ /g,'-');
+ outname=outname.trim().replace(/ /g,'-');
+ console.log('preemptive outname', outname);
inputsUsedByJob.forEach( (input) => {
if (listMatches[input.name]) {
//mark entry as a list
input.isList = true;
- console.log('outname', outname);
- let matchString = `%${input.name}%`;
- outname = outname.replace(matchString, expandedVariables[input.name][0]);
+ let filename = expandedVariables[input.name][0];
+ let splitString = filename.split('/');
+ let basename = splitString[splitString.length - 1];
+ let matchString = new RegExp('%' + input.name + '%');
+
+ //need to trim off outname's .nii.gz to avoid having two
+ basename = outname.replace(matchString, basename);
+ splitString[splitString.length - 1] = basename;
+ outname = splitString.join('/');
+ console.log('outname', outname, basename);
} else {
let marker=`%${input.name}%`;
let ind=outname.indexOf(marker);
| 1 |
diff --git a/components/maplibre/ban-map/index.js b/components/maplibre/ban-map/index.js @@ -224,13 +224,8 @@ function BanMap({map, isSourceLoaded, popup, address, setSources, setLayers, onS
}
if (address?.positions?.length > 1) {
- map.setFilter('positions', ['==', ['get', 'id'], address.id])
- map.setFilter('positions-label', ['==', ['get', 'id'], address.id])
map.setFilter('adresse', ['!=', ['get', 'id'], address.id])
map.setFilter('adresse-label', ['!=', ['get', 'id'], address.id])
- } else {
- map.setFilter('positions', ['==', ['get', 'id'], ''])
- map.setFilter('positions-label', ['==', ['get', 'id'], ''])
}
}
}, [map, selectedPaintLayer, isCadastreLayersShown, address, isSourceLoaded])
| 2 |
diff --git a/token-metadata/0xcbd55D4fFc43467142761A764763652b48b969ff/metadata.json b/token-metadata/0xcbd55D4fFc43467142761A764763652b48b969ff/metadata.json "symbol": "ASTRO",
"address": "0xcbd55D4fFc43467142761A764763652b48b969ff",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/lore-ai.js b/lore-ai.js @@ -29,6 +29,7 @@ class LoreAI {
const endIndex = fullS.indexOf(end);
if (endIndex !== -1) {
+ es.close();
resolve(fullS.substring(0, endIndex));
}
} else {
| 0 |
diff --git a/base/Map.ts b/base/Map.ts @@ -12,6 +12,7 @@ import {Djinn} from "./Djinn";
import {Pushable} from "./interactable_objects/Pushable";
import {RopeDock} from "./interactable_objects/RopeDock";
+/** The class reponsible for the maps of the engine. */
export class Map {
private static readonly MAX_CAMERA_ROTATION = 0.035;
private static readonly CAMERA_ROTATION_STEP = 0.003;
@@ -99,67 +100,83 @@ export class Map {
this._background_key = background_key;
}
+ /** The list of TileEvents of this map. */
get events() {
return this._events;
}
+ /** The list of NPCs of this map. */
get npcs() {
return this._npcs;
}
+ /** The list of Interactable Objects of this map. */
get interactable_objects() {
return this._interactable_objects;
}
+ /** The current active collision layer. */
get collision_layer() {
return this._collision_layer;
}
+ /** The sprite without texture just responsible to enable the map collision body. */
get collision_sprite() {
return this._collision_sprite;
}
+ /** The number of collision layers of this map. */
get collision_layers_number() {
return this._collision_layers_number;
}
+ /** Whether this map will load its assets only when the hero reaches it. */
get lazy_load() {
return this._lazy_load;
}
+ /** Whether this map is world map or not. */
get is_world_map() {
return this._is_world_map;
}
+ /** The map main sprite. */
get sprite() {
return this._sprite;
}
+ /** Whether this map has chars footprint system enabled. */
get show_footsteps() {
return this._show_footsteps;
}
+ /** The Phaser.Filter object responsible for this map texture color control. */
get color_filter() {
return this._color_filter;
}
+ /** The map name. */
get name() {
return this._name;
}
+ /** The map key name. */
get key_name() {
return this._key_name;
}
+ /** The list of layers of this map. */
get layers() {
return this.sprite.layers;
}
+ /** The battle background key of this map. */
get background_key() {
return this._background_key;
}
-
+ /** The tile width of this map. */
get tile_width() {
return this.sprite.properties?.real_tile_width ?? this.sprite.tileWidth;
}
-
+ /** The tile height of this map. */
get tile_height() {
return this.sprite.properties?.real_tile_height ?? this.sprite.tileHeight;
}
/**
* Sorts the sprites in the GoldenSun.npc_group by y position and base_collision_layer
- * properties. After this first sort, send_to_front, sort_function, send_to_back and sort_function_end
- * are properties are checked in this order.
+ * properties. After this first sort, send_to_front [boolean], sort_function [callable],
+ * send_to_back [boolean] and sort_function_end [callable] Phaser.DisplayObject properties
+ * are checked in this order.
*/
sort_sprites() {
- //maybe these array initializations need a better performative approach...
+ //these array initializations need a better performative approach...
const send_to_back_list = new Array(this.data.npc_group.children.length);
const send_to_front_list = new Array(this.data.npc_group.children.length);
const has_sort_function = new Array(this.data.npc_group.children.length);
| 7 |
diff --git a/src/mesh/work.js b/src/mesh/work.js @@ -127,8 +127,8 @@ let model = {
// return two arrays of vertices for each resulting object
split(data) {
let { id, matrix, z } = data;
- let o1 = [];
- let o2 = [];
+ let o1 = []; // new bottom
+ let o2 = []; // new top
let pos = translate_encode(id, matrix);
let split = [];
let on = [];
@@ -170,11 +170,29 @@ let model = {
g2 = o1;
oa = over;
ua = under;
- } else {
+ } else if (underl === 2) {
g1 = o1;
g2 = o2;
oa = under;
ua = over;
+ } else if (onl === 1) {
+ let p1 = over[0];
+ let p2 = on[0];
+ let p3 = under[0];
+ let p4 = lerp(p1, p3);
+ let cw = (v1 === p1 && v2 === p2)
+ || (v1 === p2 && v2 === p3)
+ || (v1 === p3 && v2 === p1);
+ // clockwise vs counter-clockwise
+ if (cw) {
+ o1.appendAll([ ...p2, ...p3, ...p4 ]);
+ o2.appendAll([ ...p1, ...p2, ...p4 ]);
+ } else {
+ o1.appendAll([ ...p3, ...p2, ...p4 ]);
+ o2.appendAll([ ...p2, ...p1, ...p4 ]);
+ }
+ on.length = over.length = under.length = 0;
+ continue;
}
let [ p1, p2 ] = oa;
let p3 = ua[0] || on[0]; // under or on
| 9 |
diff --git a/scenes/greenhill.scn b/scenes/greenhill.scn "type": "application/light",
"content": {
"lightType": "directional",
- "args": [[255, 255, 255], 5],
+ "args": [[255, 255, 255], 2],
"position": [1, 100, 3],
"shadow": [150, 5120, 0.1, 10000, -0.0001]
}
},
- {
- "position": [
- 0,
- 100,
- -5
- ],
- "start_url": "https://tcm390.github.io/mist/"
- },
- {
- "position": [
- 0,
- 2,
- 50
- ],
- "physics": true,
- "start_url": "https://tcm390.github.io/campfire/"
- },
- {
- "position": [
- 0,
- 2,
- 50
- ],
- "physics": true,
- "start_url": "https://tcm390.github.io/temp-greenhill-effect/"
- },
{
"position": [
0,
],
"start_url": "https://webaverse.github.io/aurora-sky/"
},
-
-
{
"position": [
0,
- 50,
+ 0,
0
],
"physics": true,
- "start_url": "https://tcm390.github.io/greenhill/greenhill.glb",
+ "start_url": "https://webaverse.github.io/green-hill/",
"dynamic": false
},
- {
- "position": [-75.1,101,40.5],
- "scale":[0.45,0.45,0.45],
- "physics": true,
- "start_url": "https://tcm390.github.io/temp_glb/campfire.glb",
- "dynamic": false
- },
- {
- "position": [-73.1,93.2,40.5],
- "scale":[0.5,0.5,0.5],
- "physics": true,
- "start_url": "https://tcm390.github.io/temp_glb/camp.glb",
- "dynamic": false
- },
- {
- "position": [-78.1,101.2,43.5],
- "physics": true,
- "start_url": "https://tcm390.github.io/temp_glb/chest.glb",
- "dynamic": false
- },
- {
- "position": [-80.1,101.2,38.5],
- "physics": true,
- "start_url": "https://tcm390.github.io/temp_glb/half-tree.glb",
- "dynamic": false
- },
-
{
"position": [
- 35,
- 49.5,
- -30
- ],
- "quaternion": [
- 0,
0,
0,
- 1
- ],
- "start_url": "https://webaverse.github.io/hovercraft/"
- },
- {
- "position": [-78.2,102.4,38.5],
- "scale":[0.06,0.06,0.06],
- "quaternion": [
- 0,
- 0,
- 2.7,
- 1
+ 0
],
- "start_url": "https://webaverse.github.io/sword/"
+ "start_url": "https://webaverse.github.io/dynamic-water/"
}
]
| 3 |
diff --git a/token-metadata/0x7a545Ed3863221A974F327199Ac22F7f12535F11/metadata.json b/token-metadata/0x7a545Ed3863221A974F327199Ac22F7f12535F11/metadata.json "symbol": "BGTT",
"address": "0x7a545Ed3863221A974F327199Ac22F7f12535F11",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/test/jasmine/assets/mock_lists.js b/test/jasmine/assets/mock_lists.js @@ -23,6 +23,7 @@ var svgMockList = [
['layout-colorway', require('@mocks/layout-colorway.json')],
['polar_categories', require('@mocks/polar_categories.json')],
['polar_direction', require('@mocks/polar_direction.json')],
+ ['polar_wind-rose', require('@mocks/polar_wind-rose.json')],
['range_selector_style', require('@mocks/range_selector_style.json')],
['range_slider_multiple', require('@mocks/range_slider_multiple.json')],
['sankey_energy', require('@mocks/sankey_energy.json')],
| 0 |
diff --git a/package.json b/package.json {
"name": "milsymbol",
- "version": "2.0.0",
+ "version": "2.0.0-rc1",
"description":
"Milsymbol.js is a small library in pure javascript that creates symbols according to MIL-STD-2525 and APP6.",
"main": "dist/milsymbol.js",
| 12 |
diff --git a/package.json b/package.json "jsdoc": "^3.6.6",
"jsdoc-x": "^4.1.0",
"mini-css-extract-plugin": "^1.4.1",
- "node-sass": "^5.0.0",
"postcss": "^8.2.10",
"postcss-loader": "^4.2.0",
+ "sass": "^1.32.8",
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"webpack": "^5.33.2",
| 14 |
diff --git a/sparta.go b/sparta.go @@ -270,6 +270,9 @@ type LambdaContext struct {
// response/Error value provided to AWS Lambda.
type LambdaFunction func(*json.RawMessage, *LambdaContext, http.ResponseWriter, *logrus.Logger)
+// HTTPLambdaFunction is a more Go-friendly HTTP handler definition
+type HTTPLambdaFunction func(http.ResponseWriter, *http.Request)
+
// LambdaFunctionOptions defines additional AWS Lambda execution params. See the
// AWS Lambda FunctionConfiguration (http://docs.aws.amazon.com/lambda/latest/dg/API_FunctionConfiguration.html)
// docs for more information. Note that the "Runtime" field will be automatically set
@@ -657,6 +660,8 @@ func (resourceInfo *customResourceInfo) export(serviceName string,
type LambdaAWSInfo struct {
// pointer to lambda function
lambdaFn LambdaFunction
+ // HTTP handler function
+ httpHandler http.Handler
// Role name (NOT ARN) to use during AWS Lambda Execution. See
// the FunctionConfiguration (http://docs.aws.amazon.com/lambda/latest/dg/API_FunctionConfiguration.html)
// docs for more info.
@@ -704,8 +709,10 @@ func (info *LambdaAWSInfo) lambdaFunctionName() string {
// Using the default name, let's at least remove the
// first prefix, since that's the SCM provider and
// doesn't provide a lot of value...
+ if info.lambdaFn != nil {
lambdaPtr := runtime.FuncForPC(reflect.ValueOf(info.lambdaFn).Pointer())
lambdaFuncName = lambdaPtr.Name()
+ }
// Split
// cwd: /Users/mweagle/Documents/gopath/src/github.com/mweagle/SpartaHelloWorld
@@ -1073,6 +1080,29 @@ func NewLambda(roleNameOrIAMRoleDefinition interface{},
return lambda
}
+// HandleAWSLambda registers lambdaHandler with the given functionName
+// using the default lambdaFunctionOptions
+func HandleAWSLambda(functionName string,
+ lambdaHandler http.Handler,
+ roleNameOrIAMRoleDefinition interface{}) *LambdaAWSInfo {
+ lambda := &LambdaAWSInfo{
+ httpHandler: lambdaHandler,
+ Options: defaultLambdaFunctionOptions(),
+ Permissions: make([]LambdaPermissionExporter, 0),
+ EventSourceMappings: make([]*EventSourceMapping, 0),
+ }
+ switch v := roleNameOrIAMRoleDefinition.(type) {
+ case string:
+ lambda.RoleName = roleNameOrIAMRoleDefinition.(string)
+ case IAMRoleDefinition:
+ definition := roleNameOrIAMRoleDefinition.(IAMRoleDefinition)
+ lambda.RoleDefinition = &definition
+ default:
+ panic(fmt.Sprintf("Unsupported IAM Role type: %s", v))
+ }
+ return lambda
+}
+
// NewLoggerWithFormatter returns a logger with the given formatter. If formatter
// is nil, a TTY-aware formatter is used
func NewLoggerWithFormatter(level string, formatter logrus.Formatter) (*logrus.Logger, error) {
| 0 |
diff --git a/src/component/parent/props.js b/src/component/parent/props.js @@ -45,6 +45,8 @@ export function normalizeProp(component, instance, props, key, value) {
value = () => val;
}
+ value = getter(value);
+
let _value = value;
value = function() {
@@ -52,8 +54,6 @@ export function normalizeProp(component, instance, props, key, value) {
return _value.apply(this, arguments);
};
- value = getter(value);
-
if (prop.memoize) {
let val = memoize(value);
value = () => val();
| 12 |
diff --git a/js/popup.js b/js/popup.js var bg = chrome.extension.getBackgroundPage();
var settings = bg.settings;
-var stats = bg.stats;
var load = bg.load;
var elements = load.JSONfromLocalFile("data/popup_data.json");
@@ -53,7 +52,6 @@ var FAKE_POST_FUNCTION =
window.onload = function() {
-
document.getElementById(search_data.input).focus();
document.getElementById(search_data.form).onsubmit = search;
@@ -112,8 +110,7 @@ window.onload = function() {
var trackers = document.getElementById(by_id.trackers),
tracker_name = document.getElementById(by_id.tracker_name),
- req_count = document.getElementById(by_id.req_count),
- topBlockedElement = document.getElementById('top-blocked');
+ req_count = document.getElementById(by_id.req_count);
(function(){
getTab(function(t) {
@@ -121,7 +118,6 @@ window.onload = function() {
tracker_name.innerHTML = '';
req_count.innerHTML = '';
-
if (tab && ((!tab.trackers) || (!Object.keys(tab.trackers).length))) {
trackers.classList.add(css_class.hide);
}
@@ -129,7 +125,6 @@ window.onload = function() {
if(tab && tab.trackers && Object.keys(tab.trackers).length){
trackers.classList.remove(css_class.hide);
-
Object.keys(tab.trackers).forEach( function(name) {
var temp_url = '',
trackers_html = '',
@@ -155,9 +150,6 @@ window.onload = function() {
}
}
-
- var topBlocked = stats.getTopBlocked();
- topBlockedElement.innerHTML = Handlebars.templates.topBlocked({'topBlocked': topBlocked});
});
})();
| 2 |
diff --git a/camera-manager.js b/camera-manager.js @@ -5,7 +5,7 @@ import metaversefile from 'metaversefile';
import physicsManager from './physics-manager.js';
import {shakeAnimationSpeed} from './constants.js';
import Simplex from './simplex-noise.js';
-import alea from './alea.js';
+// import alea from './alea.js';
const localVector = new THREE.Vector3();
const localVector2 = new THREE.Vector3();
| 2 |
diff --git a/src/components/Avatar.js b/src/components/Avatar.js @@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
import {Image, View} from 'react-native';
import PropTypes from 'prop-types';
import _ from 'underscore';
-import styles from '../styles/styles';
import stylePropTypes from '../styles/stylePropTypes';
import Icon from './Icon';
import themeColors from '../styles/themes/default';
@@ -42,7 +41,7 @@ class Avatar extends PureComponent {
}
const imageStyle = [
- this.props.size === CONST.AVATAR_SIZE.SMALL ? styles.avatarSmall : styles.avatarNormal,
+ StyleUtils.getAvatarStyle(this.props.size),
...this.props.imageStyles,
];
| 4 |
diff --git a/tarteaucitron.js b/tarteaucitron.js @@ -865,14 +865,15 @@ var tarteaucitron = {
expireTime = time + 31536000000, // 365 days
regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
cookie = tarteaucitron.cookie.read().replace(regex, ""),
- value = 'tarteaucitron=' + cookie + '!' + key + '=' + status;
+ value = 'tarteaucitron=' + cookie + '!' + key + '=' + status,
+ domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? 'domain=' + tarteaucitron.parameters.cookieDomain + ';' : '';
if (tarteaucitron.cookie.read().indexOf(key + '=' + status) === -1) {
tarteaucitron.pro('!' + key + '=' + status);
}
d.setTime(expireTime);
- document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;';
+ document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;' + domain;
},
"read": function () {
"use strict";
| 11 |
diff --git a/token-metadata/0x28cb7e841ee97947a86B06fA4090C8451f64c0be/metadata.json b/token-metadata/0x28cb7e841ee97947a86B06fA4090C8451f64c0be/metadata.json "symbol": "YFL",
"address": "0x28cb7e841ee97947a86B06fA4090C8451f64c0be",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/accessibility-checker/test/mocha/aChecker.Fast/aChecker.ObjectStructure/JSONObjectStructureVerification.html b/accessibility-checker/test/mocha/aChecker.Fast/aChecker.ObjectStructure/JSONObjectStructureVerification.html </head>
<body>
- <div role="navigation">
+ <div role="navigation" id="ace">
<a href="#navskip" alt="skip to main content"> NavSkip </a>
</div>
| 3 |
diff --git a/test/jasmine/tests/scatter_test.js b/test/jasmine/tests/scatter_test.js @@ -879,15 +879,16 @@ describe('end-to-end scatter tests', function() {
.then(done);
});
- it('should update axis range accordingly on marker.size edits', function(done) {
- function _assert(msg, xrng, yrng) {
+ function assertAxisRanges(msg, xrng, yrng) {
var fullLayout = gd._fullLayout;
expect(fullLayout.xaxis.range).toBeCloseToArray(xrng, 2, msg + ' xrng');
expect(fullLayout.yaxis.range).toBeCloseToArray(yrng, 2, msg + ' yrng');
}
- // edit types are important to this test
var schema = Plotly.PlotSchema.get();
+
+ it('should update axis range accordingly on marker.size edits', function(done) {
+ // edit types are important to this test
expect(schema.traces.scatter.attributes.marker.size.editType)
.toBe('calc', 'marker.size editType');
expect(schema.layout.layoutAttributes.xaxis.autorange.editType)
@@ -895,29 +896,82 @@ describe('end-to-end scatter tests', function() {
Plotly.plot(gd, [{ y: [1, 2, 1] }])
.then(function() {
- _assert('auto rng / base marker.size', [-0.13, 2.13], [0.93, 2.07]);
+ assertAxisRanges('auto rng / base marker.size', [-0.13, 2.13], [0.93, 2.07]);
return Plotly.relayout(gd, {
'xaxis.range': [0, 2],
'yaxis.range': [0, 2]
});
})
.then(function() {
- _assert('set rng / base marker.size', [0, 2], [0, 2]);
+ assertAxisRanges('set rng / base marker.size', [0, 2], [0, 2]);
return Plotly.restyle(gd, 'marker.size', 50);
})
.then(function() {
- _assert('set rng / big marker.size', [0, 2], [0, 2]);
+ assertAxisRanges('set rng / big marker.size', [0, 2], [0, 2]);
return Plotly.relayout(gd, {
'xaxis.autorange': true,
'yaxis.autorange': true
});
})
.then(function() {
- _assert('auto rng / big marker.size', [-0.28, 2.28], [0.75, 2.25]);
+ assertAxisRanges('auto rng / big marker.size', [-0.28, 2.28], [0.75, 2.25]);
return Plotly.restyle(gd, 'marker.size', null);
})
.then(function() {
- _assert('auto rng / base marker.size', [-0.13, 2.13], [0.93, 2.07]);
+ assertAxisRanges('auto rng / base marker.size', [-0.13, 2.13], [0.93, 2.07]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
+ it('should update axis range according to visible edits', function(done) {
+ Plotly.plot(gd, [
+ {x: [1, 2, 3], y: [1, 2, 1]},
+ {x: [4, 5, 6], y: [-1, -2, -1]}
+ ])
+ .then(function() {
+ assertAxisRanges('both visible', [0.676, 6.323], [-2.29, 2.29]);
+ return Plotly.restyle(gd, 'visible', false, [1]);
+ })
+ .then(function() {
+ assertAxisRanges('visible [true,false]', [0.87, 3.128], [0.926, 2.07]);
+ return Plotly.restyle(gd, 'visible', false, [0]);
+ })
+ .then(function() {
+ assertAxisRanges('both invisible', [0.87, 3.128], [0.926, 2.07]);
+ return Plotly.restyle(gd, 'visible', true, [1]);
+ })
+ .then(function() {
+ assertAxisRanges('visible [false,true]', [3.871, 6.128], [-2.07, -0.926]);
+ return Plotly.restyle(gd, 'visible', true);
+ })
+ .then(function() {
+ assertAxisRanges('back to both visible', [0.676, 6.323], [-2.29, 2.29]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
+ it('should be able to start from visible:false', function(done) {
+ function _assert(msg, cnt) {
+ var layer = d3.select(gd).select('g.scatterlayer');
+ expect(layer.selectAll('.point').size()).toBe(cnt, msg + '- scatter pts cnt');
+ }
+
+ Plotly.plot(gd, [{
+ visible: false,
+ y: [1, 2, 1]
+ }])
+ .then(function() {
+ _assert('visible:false', 0);
+ return Plotly.restyle(gd, 'visible', true);
+ })
+ .then(function() {
+ _assert('visible:true', 3);
+ return Plotly.restyle(gd, 'visible', false);
+ })
+ .then(function() {
+ _assert('back to visible:false', 0);
})
.catch(failTest)
.then(done);
| 0 |
diff --git a/src/graphql/queries/Search.js b/src/graphql/queries/Search.js @@ -42,9 +42,9 @@ export default {
client.msearch({
body: [
{ index: 'rumors', type: 'basic' },
- { query: { match: { text: truncatedText } } },
+ { query: { more_like_this: { 'fields': ['text'], 'like': text, 'min_term_freq': 1, 'min_doc_freq': 1 } } },
{ index: 'answers', type: 'basic' },
- { query: { match: { 'versions.text': truncatedText } } },
+ { query: { more_like_this: { 'fields': ['versions.text'], 'like': text, 'min_term_freq': 1, 'min_doc_freq': 1 } } },
],
}),
findInCrawled ?
| 4 |
diff --git a/app/templates/components/events/event-import-section.hbs b/app/templates/components/events/event-import-section.hbs <div class="sixteen wide column">
<form class="ui form">
- <div class="field five wide column">
+ <div class="field {{if device.isMobile 'sixteen' 'five'}} wide column">
<label class='required'> {{t 'Select event source file to import'}}</label>
{{input type='file'}}
<br>
| 7 |
diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php @@ -15,7 +15,6 @@ if (DEBUG_MODE) {
// Turn on all error reporting
ini_set("display_errors", 0);
ini_set('display_startup_errors',0);
- ini_set("track_errors", 1);
ini_set("html_errors", 1);
ini_set('log_errors', 1);
error_reporting(E_ALL | E_STRICT | E_NOTICE);
| 2 |
diff --git a/packages/bitcore-node/test/unit/models/coin.spec.ts b/packages/bitcore-node/test/unit/models/coin.spec.ts @@ -111,7 +111,9 @@ describe('Coin Model', function() {
}
},
{
- spentHeight: -2
+ spentHeight: {
+ $in: [-1, -2, -3]
+ }
}
],
mintHeight: {
| 1 |
diff --git a/generators/client/templates/angular/src/test/javascript/protractor.conf.js.ejs b/generators/client/templates/angular/src/test/javascript/protractor.conf.js.ejs @@ -46,7 +46,7 @@ exports.config = {
reporter: 'spec',
slow: 3000,
ui: 'bdd',
- timeout: 30000
+ timeout: 720000
},
beforeLaunch: function() {
| 7 |
diff --git a/lib/api/apex.js b/lib/api/apex.js @@ -41,7 +41,12 @@ Apex.prototype._createRequestParams = function(method, path, body, options) {
}
params.headers = _headers;
if (body) {
+ var contentType = params.headers["Content-Type"];
+ if (!contentType || contentType === "application/json") {
params.body = JSON.stringify(body);
+ } else {
+ params.body = body;
+ }
}
return params;
};
| 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.