code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/desktop/sources/scripts/core/library.js b/desktop/sources/scripts/core/library.js @@ -25,8 +25,8 @@ library.a = function OperatorA (orca, x, y, passive) {
library.b = function OperatorL (orca, x, y, passive) {
Operator.call(this, orca, x, y, 'b', passive)
- this.name = 'bounce'
- this.info = 'Outputs difference between inputs'
+ this.name = 'between'
+ this.info = 'Outputs the absolute value of the subtraction between the inputs'
this.ports.a = { x: -1, y: 0 }
this.ports.b = { x: 1, y: 0 }
| 10 |
diff --git a/public/javascripts/SidewalkGallery/src/cards/CardContainer.js b/public/javascripts/SidewalkGallery/src/cards/CardContainer.js @@ -323,6 +323,7 @@ function CardContainer(uiCardContainer) {
let imagePromises = [];
// TODO: Some label types like Occlusion, have a lot of null severities. What to do with these?
+ $("#page-loading").show();
for (let i = severities.length - 1; i >= 0; i--){
if (severities[i].getActive() || noSeverities){
let subBucket = cardBucket[severities[i].getSeverity()];
@@ -343,6 +344,7 @@ function CardContainer(uiCardContainer) {
Promise.all(imagePromises).then(() => {
console.log("all images loaded");
imagesToLoad.forEach(card => card.renderSize(uiCardContainer.holder, cardWidth));
+ $("#page-loading").hide();
});
} else {
// TODO: figure out how to better do the toggling of this element
| 1 |
diff --git a/src/containers/import-modal.jsx b/src/containers/import-modal.jsx @@ -50,7 +50,7 @@ class ImportModal extends React.Component {
this.setState({inputValue: e.target.value, hasValidationError: false});
}
validate (input) {
- const urlMatches = input.match(/^(https:\/\/)?scratch\.mit\.edu\/projects\/(\d+)(\/?|(\/#editor)?)$/);
+ const urlMatches = input.match(/^(https:\/\/)?scratch\.mit\.edu\/projects\/(\d+)(\/?|(\/#((editor)|(fullscreen)|(player)))?)$/);
if (urlMatches && urlMatches.length > 0) {
return urlMatches[2];
}
| 11 |
diff --git a/src/core/template.js b/src/core/template.js @@ -154,7 +154,7 @@ function registerCustomElement(classFn) {
}
}
// Register with the generated tag.
- customElements.define(tag, classFn);
+ customElements.define(tag, /** @type {any} */ classFn);
// Bump number and remember it. If we see the same base tag again later, we'll
// start counting at that number in our search for a uniquifying number.
mapBaseTagToCount.set(baseTag, count + 1);
| 8 |
diff --git a/src/store/factory/client.js b/src/store/factory/client.js @@ -205,8 +205,9 @@ function createPolygonClient (asset, network, mnemonic) {
const polygonNetwork = AssetNetworks.POLYGON[network]
const rpcApi = isTestnet ? 'https://rpc-mumbai.maticvigil.com/' : 'https://rpc-mainnet.maticvigil.com/'
const scraperApi = isTestnet ? 'https://liquality.io/polygon-testnet-api' : 'https://liquality.io/polygon-mainnet-api'
+ const feeProvider = new EthereumRpcFeeProvider({ slowMultiplier: 1, averageMultiplier: 1, fastMultiplier: 1.25 })
- return createEthereumClient(asset, polygonNetwork, rpcApi, scraperApi, EthereumRpcFeeProvider, mnemonic)
+ return createEthereumClient(asset, polygonNetwork, rpcApi, scraperApi, feeProvider, mnemonic)
}
export const createClient = (asset, network, mnemonic, walletType) => {
| 3 |
diff --git a/layouts/partials/fragments/contact.html b/layouts/partials/fragments/contact.html <div class="col-12">
<form class="contact" action="
{{- if not $contact.netlify -}}
- {{- $postEmailUrl := printf "https://formspree.io/$%s" $contact.email }}
- {{- $postUrl := $contact.posturl | default $postEmailUrl -}}
+ {{- $postUrl := $contact.posturl | default (printf "https://formspree.io/%s" $contact.email) -}}
{{- printf $postUrl -}}
{{- end -}}
" method="POST" name="
| 1 |
diff --git a/docs/configuration/animations.md b/docs/configuration/animations.md @@ -93,4 +93,4 @@ var chart = new Chart(ctx, {
});
```
-Another example usage of these callbacks can be found on [Github](https://github.com/chartjs/Chart.js/blob/master/samples/animation/progress-bar.html): this sample displays a progress bar showing how far along the animation is.
+Another example usage of these callbacks can be found on [Github](https://github.com/chartjs/Chart.js/blob/master/samples/advanced/progress-bar.html): this sample displays a progress bar showing how far along the animation is.
| 1 |
diff --git a/server/game/cards/06.4-TRW/TheRedWedding.js b/server/game/cards/06.4-TRW/TheRedWedding.js @@ -12,7 +12,8 @@ class TheRedWedding extends PlotCard {
cardCondition: (card, context) => (
card.getType() === 'character' &&
card.controller !== context.player &&
- (card.hasTrait('Lord') || card.hasTrait('Lady'))
+ (card.hasTrait('Lord') || card.hasTrait('Lady')) &&
+ card.location === 'play area'
)
},
handler: context => {
| 1 |
diff --git a/src/simplebar.js b/src/simplebar.js @@ -115,7 +115,7 @@ export default class SimpleBar {
const options = Object.keys(SimpleBar.htmlAttributes).reduce((acc, obj) => {
const attribute = SimpleBar.htmlAttributes[obj];
if (el.hasAttribute(attribute)) {
- acc[obj] = JSON.parse(el.getAttribute(attribute));
+ acc[obj] = JSON.parse(el.getAttribute(attribute) || true);
}
return acc;
}, {});
| 1 |
diff --git a/docs/source/docs/border-radius.blade.md b/docs/source/docs/border-radius.blade.md @@ -357,8 +357,6 @@ For more information about Tailwind's responsive design features, check out the
By default Tailwind provides five border radius size utilities. You can change, add, or remove these by editing the `borderRadius` section of your Tailwind config.
-Note that only the different border radius *sizes* can be customized; the utilities for controlling which side to round (like `.rounded-t`) aren't customizable.
-
@component('_partials.customized-config', ['key' => 'borderRadius'])
'none': '0',
- 'sm': '.125rem',
| 2 |
diff --git a/src/js/directives/walletBalanceDirective.js b/src/js/directives/walletBalanceDirective.js function formatBalance() {
var displayAsFiat = $scope.displayAsFiat === 'true';
+ if (!$scope.wallet) {
+ setDisplay('', '');
+ return;
+ }
+
var wallet = null;
try {
wallet = JSON.parse($scope.wallet);
| 9 |
diff --git a/src/components/Pane/Pane.styles.js b/src/components/Pane/Pane.styles.js @@ -15,9 +15,12 @@ export const MainContainer: ComponentType<*> =
display: flex;
flex-direction: row;
width: 100%;
- // height: 100%;
margin-left: 0 !important;
padding-top: 1px;
+
+ @media screen and (max-width: 900px) {
+ flex-direction: column;
+ }
`;
@@ -36,6 +39,10 @@ export const Column: ComponentType<*> =
flex-grow: 4;
max-width: 100%;
}
+
+ @media screen and (max-width: 900px) {
+ max-width: 100%;
+ }
`;
@@ -48,9 +55,6 @@ export const SelectorLabel: ComponentType<*> =
}))`
padding: .5rem;
text-decoration: underline;
- //white-space: nowrap;
- //overflow-x: hidden !important;
- //text-overflow: ellipsis;
${({ isActive }) => css`
font-weight: ${isActive ? "bold" : "normal"};
@@ -78,6 +82,13 @@ export const SelectorContainer: ComponentType<*> =
}
${({ isActive }) => css`background: ${isActive ? "#1d70b8" : "inherit"}`};
+
+ @media screen and (max-width: 900px) {
+ ${({ isActive }) => css`${ {
+ // display: isActive ? "block" : "none",
+ maxWidth: "initial"
+ }}`};
+ }
}
`;
| 7 |
diff --git a/character-controller.js b/character-controller.js @@ -224,6 +224,12 @@ class PlayerBase extends THREE.Object3D {
const voice = new VoiceEndpoint(url);
this.characterHups.setVoice(voice);
}
+ getCrouchFactor() {
+ return 1 - 0.4 * this.actionInterpolants.crouch.getNormalized();
+ /* let factor = 1;
+ factor *= 1 - 0.4 * this.actionInterpolants.crouch.getNormalized();
+ return factor; */
+ }
destroy() {
// nothing
}
| 0 |
diff --git a/test/functional/specs/Visitor/C36908.js b/test/functional/specs/Visitor/C36908.js @@ -44,11 +44,8 @@ test("C36908 When ID migration is enabled and Visitor and Alloy are both awaitin
await createMockOptIn(false);
await configureAlloyInstance("alloy", config);
- let errorMessage;
- await setConsent(CONSENT_IN).catch(err => {
- errorMessage = err.errMsg;
- });
- await t.expect(errorMessage).notOk("Expected no error message");
+
+ await setConsent(CONSENT_IN);
const alloyIdentity = await getIdentity();
await createMockOptIn(true);
const visitorIdentity = await getVisitorEcid(orgMainConfigMain.orgId);
| 2 |
diff --git a/vis/js/bubbles.js b/vis/js/bubbles.js @@ -121,7 +121,7 @@ BubblesFSM.prototype = {
}
});
- zoom(mediator.current_circle.data()[0]);
+ this.zoom(mediator.current_circle.data()[0]);
d3.event.stopPropagation(); // click stopps, "event bubbles up"
},
| 1 |
diff --git a/lib/cartodb/central.rb b/lib/cartodb/central.rb @@ -75,8 +75,7 @@ module Cartodb
payload = {
organization_name: organization_name
}.merge(user_attributes)
- topic = Carto::Common::MessageBroker.new(logger: Rails.logger).get_topic(:cartodb_central)
- topic.publish(:create_org_user, payload)
+ cartodb_central_topic.publish(:create_org_user, payload)
end
def update_organization_user(organization_name, username, user_attributes)
| 4 |
diff --git a/pages/tsconfig.json.md b/pages/tsconfig.json.md @@ -199,7 +199,7 @@ Setting a top-level property `compileOnSave` signals to the IDE to generate all
}
```
-This feature is currently supported in Visual Studio 2015 with TypeScript 1.8.4 and above, and [atom-typescript](https://github.com/TypeStrong/atom-typescript/blob/master/docs/tsconfig.md#compileonsave) plugin.
+This feature is currently supported in Visual Studio 2015 with TypeScript 1.8.4 and above, and [atom-typescript](https://github.com/TypeStrong/atom-typescript#compile-on-save) plugin.
## Schema
| 1 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.215.7",
+ "version": "0.215.8",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/test/jasmine/tests/icicle_test.js b/test/jasmine/tests/icicle_test.js @@ -793,6 +793,39 @@ describe('Test icicle restyle:', function() {
.then(_assert('back to dflt', ['', '0.7', '', '0.7']))
.then(done, done.fail);
});
+
+ it('should be able to restyle *marker.fillet*', function(done) {
+ var mock = {
+ data: [{
+ type: 'icicle',
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B']
+ }]
+ };
+
+ function _assert(msg, exp) {
+ return function() {
+ var layer = d3Select(gd).select('.iciclelayer');
+ layer.selectAll('.surface').each(function() {
+ var surfaces = d3Select(this);
+ var path = surfaces[0][0].getAttribute('d');
+ expect(path.indexOf('a') !== -1).toEqual(exp);
+ });
+ };
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(_assert('no arcs', false))
+ .then(function() {
+ return Plotly.restyle(gd, 'marker.fillet', 10);
+ })
+ .then(_assert('has arcs', true))
+ .then(function() {
+ return Plotly.restyle(gd, 'marker.fillet', 0);
+ })
+ .then(_assert('no arcs', false))
+ .then(done, done.fail);
+ });
});
describe('Test icicle texttemplate without `values` should work at root level:', function() {
| 0 |
diff --git a/src/trait_manager/view/TraitColorView.js b/src/trait_manager/view/TraitColorView.js @@ -10,16 +10,17 @@ module.exports = TraitView.extend({
getInputEl() {
if (!this.$input) {
var value = this.getModelValue();
- var inputNumber = new InputColor({
+ var inputColor = new InputColor({
target: this.config.em,
contClass: this.ppfx + 'field-color',
model: this.model,
ppfx: this.ppfx
});
- this.input = inputNumber.render();
+ this.input = inputColor.render();
this.$input = this.input.colorEl;
value = value || '';
this.model.set('value', value).trigger('change:value');
+ this.input.setValue(value);
}
return this.$input.get(0);
},
| 12 |
diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js @@ -804,7 +804,7 @@ function addAction(reportID, text, file) {
function deleteReportAction(reportID, reportAction) {
// Optimistic Response
const reportActionsToMerge = {};
- const oldMessage = _.copy(reportAction.message);
+ const oldMessage = {...reportAction.message};
reportActionsToMerge[reportAction.reportActionID] = {
...reportAction,
message: [
| 4 |
diff --git a/components/combobox/combobox.jsx b/components/combobox/combobox.jsx @@ -756,14 +756,14 @@ class Combobox extends React.Component {
: props.value
}
/>
+ {this.getDialog({
+ menuRenderer: this.renderMenu({ assistiveText, labels }),
+ })}
{props.errorText && (
<div id={this.getErrorId()} className="slds-form-element__help">
{props.errorText}
</div>
)}
- {this.getDialog({
- menuRenderer: this.renderMenu({ assistiveText, labels }),
- })}
</div>
</div>
<SelectedListBox
@@ -876,14 +876,14 @@ class Combobox extends React.Component {
: props.value
}
/>
+ {this.getDialog({
+ menuRenderer: this.renderMenu({ assistiveText, labels }),
+ })}
{props.errorText && (
<div id={this.getErrorId()} className="slds-form-element__help">
{props.errorText}
</div>
)}
- {this.getDialog({
- menuRenderer: this.renderMenu({ assistiveText, labels }),
- })}
</div>
</div>
</div>
@@ -994,14 +994,14 @@ class Combobox extends React.Component {
: value
}
/>
+ {this.getDialog({
+ menuRenderer: this.renderMenu({ assistiveText, labels }),
+ })}
{props.errorText && (
<div id={this.getErrorId()} className="slds-form-element__help">
{props.errorText}
</div>
)}
- {this.getDialog({
- menuRenderer: this.renderMenu({ assistiveText, labels }),
- })}
</div>
</div>
</div>
@@ -1113,14 +1113,14 @@ class Combobox extends React.Component {
role="textbox"
value={value}
/>
+ {this.getDialog({
+ menuRenderer: this.renderMenu({ assistiveText, labels }),
+ })}
{props.errorText && (
<div id={this.getErrorId()} className="slds-form-element__help">
{props.errorText}
</div>
)}
- {this.getDialog({
- menuRenderer: this.renderMenu({ assistiveText, labels }),
- })}
</div>
</div>
<SelectedListBox
@@ -1215,14 +1215,14 @@ class Combobox extends React.Component {
value
}
/>
+ {this.getDialog({
+ menuRenderer: this.renderMenu({ assistiveText, labels }),
+ })}
{props.errorText && (
<div id={this.getErrorId()} className="slds-form-element__help">
{props.errorText}
</div>
)}
- {this.getDialog({
- menuRenderer: this.renderMenu({ assistiveText, labels }),
- })}
</div>
</div>
</div>
| 5 |
diff --git a/articles/sso/current/index.md b/articles/sso/current/index.md @@ -11,10 +11,17 @@ Single Sign On (SSO) occurs when a user logs in to one application and is then s
[Universal login](/hosted-pages/login) is the easiest and most secure way to implement SSO with Auth0. If for some reason you cannot use universal login with your application, check out the [Lock](/libraries/lock) page or the [Auth0.js](/libraries/auth0js) page for more information on embedded authentication.
:::
-## In This Section
-
-<%= include('./_in-this-section', { links: [
- 'sso/current/introduction',
- 'sso/current/setup',
- 'sso/current/single-page-apps'
-] }) %>
+<ul class="topic-links">
+ <li>
+ <i class="icon icon-budicon-715"></i><a href="/sso/introduction">Introduction to Single Sign On with Auth0</a>
+ <p>A brief introduction to Single Sign On (SSO) and an overview of how SSO works with Auth0.</p>
+ </li>
+ <li>
+ <i class="icon icon-budicon-715"></i><a href="/sso/setup">Set Up Single Sign On with Auth0</a>
+ <p>Tutorial on implementing Single Sign On (SSO) with Auth0.</p>
+ </li>
+ <li>
+ <i class="icon icon-budicon-715"></i><a href="/sso/single-page-apps">Client-Side SSO on Single Page Applications</a>
+ <p>Tutorial on implementing client-side SSO on single page applications.</p>
+ </li>
+</ul>
| 3 |
diff --git a/token-metadata/0x62359Ed7505Efc61FF1D56fEF82158CcaffA23D7/metadata.json b/token-metadata/0x62359Ed7505Efc61FF1D56fEF82158CcaffA23D7/metadata.json "symbol": "CORE",
"address": "0x62359Ed7505Efc61FF1D56fEF82158CcaffA23D7",
"decimals": 18,
- "dharmaVerificationStatus": "UNVERIFIED"
+ "dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
| 3 |
diff --git a/token-metadata/0x0cf58006B2400ebec3eB8C05b73170138a340563/metadata.json b/token-metadata/0x0cf58006B2400ebec3eB8C05b73170138a340563/metadata.json "symbol": "GBP",
"address": "0x0cf58006B2400ebec3eB8C05b73170138a340563",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/generators/client/templates/vue/src/main/webapp/app/components/admin/user-management/UserManagementView.vue.ejs b/generators/client/templates/vue/src/main/webapp/app/components/admin/user-management/UserManagementView.vue.ejs <h2>
<span v-text="$t('userManagement.detail.title')">User</span> [<b>{{user.login}}</b>]
</h2>
- <dl class="row-md jh-entity-details">
+ <dl class="row jh-entity-details">
<dt><span v-text="$t('userManagement.login')">Login</span></dt>
<dd>
<span>{{user.login}}</span>
- <span class="badge badge-success" v-if="user.activated" v-text="$t('userManagement.activated')">Activated</span>
- <span class="badge badge-danger" v-if="!user.activated" v-text="$t('userManagement.deactivated')">Deactivated</span>
+ <b-badge variant="success" v-if="user.activated" v-text="$t('userManagement.activated')">Activated</b-badge>
+ <b-badge variant="danger" v-if="!user.activated" v-text="$t('userManagement.deactivated')">Deactivated</b-badge>
</dd>
<dt><span v-text="$t('userManagement.firstName')">First Name</span></dt>
<dd>{{user.firstName}}</dd>
<dd>
<ul class="list-unstyled">
<li v-for="authority of user.authorities">
- <span class="badge badge-info">{{authority}}</span>
+ <b-badge variant="info">{{authority}}</b-badge>
</li>
</ul>
</dd>
| 7 |
diff --git a/src/ApiGatewayWebSocket.js b/src/ApiGatewayWebSocket.js @@ -118,10 +118,10 @@ module.exports = class ApiGatewayWebSocket {
// end COPY PASTE FROM HTTP SERVER CODE
}
- async _doAction(websocketClient, connectionId, route, event, doDefaultRoute) {
+ async _doAction(websocketClient, connectionId, route, event) {
let routeOptions = this._webSocketRoutes.get(route)
- if (!routeOptions && doDefaultRoute) {
+ if (!routeOptions && route !== '$connect' && route !== '$disconnect') {
routeOptions = this._webSocketRoutes.get('$default')
}
@@ -200,13 +200,7 @@ module.exports = class ApiGatewayWebSocket {
this._options,
)
- this._doAction(
- webSocketClient,
- connectionId,
- '$connect',
- connectEvent,
- false,
- )
+ this._doAction(webSocketClient, connectionId, '$connect', connectEvent)
webSocketClient.on('close', () => {
debugLog(`disconnect:${connectionId}`)
@@ -220,7 +214,6 @@ module.exports = class ApiGatewayWebSocket {
connectionId,
'$disconnect',
disconnectEvent,
- false,
)
})
@@ -265,7 +258,7 @@ module.exports = class ApiGatewayWebSocket {
const event = new WebSocketEvent(connectionId, route, message)
- this._doAction(webSocketClient, connectionId, route, event, true)
+ this._doAction(webSocketClient, connectionId, route, event)
// return h.response().code(204)
})
| 2 |
diff --git a/token-metadata/0x468ab3b1f63A1C14b361bC367c3cC92277588Da1/metadata.json b/token-metadata/0x468ab3b1f63A1C14b361bC367c3cC92277588Da1/metadata.json "symbol": "YELD",
"address": "0x468ab3b1f63A1C14b361bC367c3cC92277588Da1",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/articles/overview/index.md b/articles/overview/index.md @@ -38,7 +38,7 @@ You can extend the functionality of Auth0 with JavaScript or C# through the use
## Flexible Deployment Models
-Auth0 is a service usually running in the [public cloud](${manage_url}), but it can also be deployed in **Private Instances** (PI). PIs are dedicated installations of Auth0. You may choose to run PIs in Auth0's datacenters (which are separate from those that run the multi-tenant services), in your own cloud hosting environments (e.g. AWS, Azure, Rackspace, DigitalOcean), or even on-premises. Customers often opt for a hybrid model. For example, some use the cloud service for their **development** and **test** environments and a PI for their **production** environment.
+Auth0 is a service usually running in the [public cloud](${manage_url}), but it can also be deployed in **Private Instances** (PI). PIs are dedicated installations of Auth0. You may choose to run PIs in Auth0's datacenters (which are separate from those that run the multi-tenant services), in your own cloud hosting environments (e.g. AWS, Azure, Rackspace, DigitalOcean), or even on-premises.
## Custom Domain Names
| 2 |
diff --git a/assets/js/util/index.js b/assets/js/util/index.js @@ -135,17 +135,13 @@ export const readableLargeNumber = ( number, currencyCode = false ) => {
if ( false !== currencyCode && '' !== readableNumber ) {
const formatedParts = new Intl.NumberFormat( navigator.language, { style: 'currency', currency: currencyCode } ).formatToParts( number );
- let decimal = formatedParts.find( part => 'decimal' === part.type );
- if ( ! isUndefined( decimal ) ) {
- decimal = decimal.value;
+ const decimal = formatedParts.find( part => 'decimal' === part.type );
+ if ( ! isUndefined( decimal ) && ! isUndefined( decimal.value ) && 1000 > number ) {
+ readableNumber = Number.isInteger( number ) ? number : number.replace( '.', decimal.value );
}
const currency = formatedParts.find( part => 'currency' === part.type ).value;
- if ( 1000 > number && ! isUndefined( decimal ) ) {
- readableNumber = Number.isInteger( number ) ? number : number.replace( '.', decimal );
- }
-
return `${currency}${readableNumber}`;
}
| 7 |
diff --git a/packages/cx/src/ui/layout/ContentPlaceholder.spec.js b/packages/cx/src/ui/layout/ContentPlaceholder.spec.js @@ -7,6 +7,7 @@ import {ContentPlaceholder} from "./ContentPlaceholder";
import renderer from 'react-test-renderer';
import assert from 'assert';
+import {PureContainer} from "../PureContainer";
describe('ContentPlaceholder', () => {
@@ -168,5 +169,65 @@ describe('ContentPlaceholder', () => {
store.set('body', 'B2');
assert.deepEqual(component.toJSON(), getTree('H2', 'B2', 'F2'));
});
+
+ it('data in a two-level deep outer-layout is correctly updated', () => {
+ let store = new Store({
+ data: {
+ header: 'H',
+ footer: 'F',
+ body: 'B'
+ }
+ });
+
+ let outerLayout = <cx>
+ <div>
+ <ContentPlaceholder/>
+ <footer><ContentPlaceholder name="footer"/></footer>
+ </div>
+ </cx>;
+
+ let innerLayout = <cx>
+ <PureContainer outerLayout={outerLayout}>
+ <header><ContentPlaceholder name="header"/></header>
+ <ContentPlaceholder/>
+ </PureContainer>
+ </cx>;
+
+ const component = renderer.create(
+ <Cx store={store} subscribe immediate>
+ <main outerLayout={innerLayout}>
+ <div putInto="header"><span text:bind="header"/></div>
+ <div putInto="footer"><span text:bind="footer"/></div>
+ <span text:bind="body" />
+ </main>
+ </Cx>
+ );
+
+ let getTree = (h, b, f) => ({
+ type: 'div',
+ props: {},
+ children: [{
+ type: 'header',
+ props: {},
+ children: [{type: 'div', props: {}, children: [{type: 'span', props: {}, children: [h]}]}]
+ }, {
+ type: 'main',
+ props: {},
+ children: [{type: 'span', props: {}, children: [b]}]
+ }, {
+ type: 'footer',
+ props: {},
+ children: [{type: 'div', props: {}, children: [{type: 'span', props: {}, children: [f]}]}]
+ }]
+ });
+
+ assert.deepEqual(component.toJSON(), getTree('H', 'B', 'F'));
+ store.set('header', 'H2');
+ assert.deepEqual(component.toJSON(), getTree('H2', 'B', 'F'));
+ store.set('footer', 'F2');
+ assert.deepEqual(component.toJSON(), getTree('H2', 'B', 'F2'));
+ store.set('body', 'B2');
+ assert.deepEqual(component.toJSON(), getTree('H2', 'B2', 'F2'));
+ });
});
| 0 |
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml # This workflow will do a clean install of node dependencies, build the source code, run integration and end-to-end tests, and deploy to GitHub Pages.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
-name: Deploy on pull-request to master
+name: Deploy on push to master
on:
# pull_request:
| 10 |
diff --git a/includes/Core/Modules/Module.php b/includes/Core/Modules/Module.php @@ -593,7 +593,8 @@ abstract class Module {
$date_end_day_of_week = gmdate( 'w', strtotime( $date_end ) );
- // When weekday_align is true, ensure the last & previous periods align by day of the week.
+ // When weekday_align is true and request is for a previous period,
+ // ensure the last & previous periods align by day of the week.
if ( $weekday_align && $previous && $date_end_day_of_week !== $last_end_day_of_week ) {
// Adjust the date to closest period that matches the same days of the week.
$off_by = $number_of_days % 7;
@@ -601,7 +602,7 @@ abstract class Module {
$off_by = $off_by - 7;
}
- // Move the past date to match the same day of the week.
+ // Move the date to match the same day of the week.
$date_end = gmdate( 'Y-m-d', strtotime( $off_by . ' days', strtotime( $date_end ) ) );
$date_start = gmdate( 'Y-m-d', strtotime( $off_by . ' days', strtotime( $date_start ) ) );
}
| 7 |
diff --git a/translations/en-us.yaml b/translations/en-us.yaml @@ -3400,7 +3400,7 @@ clusterNew:
help: 'Configuring Public/Priavte API access is an advanced use case. Users are encouraged to read the EKS cluster endpoint access control <a href="https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html" target="_blank" rel="nofollow noopener noreferrer">documentation</a>.'
public:
label: Public Access
- tooltip: Rancher currently relies on public endpoints to connect to the cluster; disabling public access is not recommended and will affect Ranchers' ability to communicate with the cluster.
+ tooltip: Rancher needs network access to the Kubernetes endpoint; disabling the public access will prevent Rancher from communicating with the endpoint if Rancher's network is not part of the private network.
private:
label: Private Access
endpoints:
| 3 |
diff --git a/token-metadata/0xA15C7Ebe1f07CaF6bFF097D8a589fb8AC49Ae5B3/metadata.json b/token-metadata/0xA15C7Ebe1f07CaF6bFF097D8a589fb8AC49Ae5B3/metadata.json "symbol": "NPXS",
"address": "0xA15C7Ebe1f07CaF6bFF097D8a589fb8AC49Ae5B3",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs:
with:
node-version: '14.x'
- run: yarn
- - run: yarn ganache > /dev/null &
+ - run: yarn compile
- run: yarn test
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
| 14 |
diff --git a/README.md b/README.md @@ -165,31 +165,26 @@ That is why you need to use our install script to install a container. We have [
```bash
# List containers
-sudo docker container list
-
-sudo docker logs <containerID>
+sudo docker logs -f -t opendatacam
```
**How to stop / restart OpenDataCam**
```bash
-# List containers
-sudo docker container list
-
-# Stop container (get id from previous command)
-sudo docker stop <containerID>
+# Stop container
+sudo docker stop opendatacam
# Start container (will mount the opendatacam_videos/ and the config.json + mount CUDA necessary stuff)
sudo ./run-opendatacam.sh
# Restart container (after modifying the config.json file for example)
-sudo docker restart <containerID>
+sudo docker restart opendatacam
# Install a newer version of opendatacam
# Follow the 1. Install and start OpenDataCam
# See stats ( CPU , memory usage ...)
-sudo docker stats <containerID>
+sudo docker stats opendatacam
# Clear all docker container, images ...
sudo docker system prune -a
| 3 |
diff --git a/src/inner-slider.js b/src/inner-slider.js @@ -383,6 +383,9 @@ export class InnerSlider extends React.Component {
value => this.state.lazyLoadedList.indexOf(value) < 0
);
onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);
+ if (!this.props.waitForAnimate && this.animationEndCallback) {
+ clearTimeout(this.animationEndCallback);
+ }
this.setState(state, () => {
asNavFor && asNavFor.innerSlider.slideHandler(index);
if (!nextState) return;
| 1 |
diff --git a/class/lnurl.js b/class/lnurl.js @@ -20,9 +20,9 @@ export default class Lnurl {
}
static findlnurl(bodyOfText) {
- var res = /^(http.*[&?]lightning=)?((lnurl)([0-9]{1,}[a-z0-9]+){1})/.exec(bodyOfText.toLowerCase());
+ var res = /^(?:http.*[&?]lightning=)?(lnurl1[02-9ac-hj-np-z]+)/.exec(bodyOfText.toLowerCase());
if (res) {
- return res[2];
+ return res[1];
}
return null;
}
| 7 |
diff --git a/src/styles/styles.js b/src/styles/styles.js @@ -906,8 +906,8 @@ const styles = {
},
signInPageLeftContainer: {
- paddingLeft: 52,
- paddingRight: 52,
+ paddingLeft: 40,
+ paddingRight: 40,
},
signInPageWideLeftContainer: {
| 7 |
diff --git a/benchmarks/benchmark-replication.js b/benchmarks/benchmark-replication.js @@ -29,6 +29,12 @@ const ipfsConf = {
Gateway: '/ip4/0.0.0.0/tcp/0'
},
Bootstrap: [],
+ Discovery: {
+ MDNS: {
+ Enabled: true,
+ Interval: 1
+ },
+ },
}
const repoConf = {
@@ -91,6 +97,9 @@ console.log("Starting IPFS daemons...")
pMapSeries([conf1, conf2], d => startIpfs(d))
.then(async ([ipfs1, ipfs2]) => {
try {
+ await ipfs2.swarm.connect(ipfs1._peerInfo.multiaddrs._multiaddrs[0].toString())
+ await ipfs1.swarm.connect(ipfs2._peerInfo.multiaddrs._multiaddrs[0].toString())
+
// Create the databases
const orbit1 = new OrbitDB(ipfs1, './orbitdb/benchmarks/replication/client1')
const orbit2 = new OrbitDB(ipfs2, './orbitdb/benchmarks/replication/client2')
| 7 |
diff --git a/packages/idyll-components/src/scroller.js b/packages/idyll-components/src/scroller.js @@ -122,7 +122,7 @@ class Scroller extends React.Component {
<div ref={(ref) => this.ref = ref} className="idyll-scroll" id={`idyll-scroll-${this.id}`}
style={Object.assign({ position: 'relative' }, { marginLeft: leftMarginAdjust})}>
<div className="idyll-scroll-graphic"
- style={Object.assign({ height: graphicHeight }, styles.SCROLL_GRAPHIC)} >
+ style={Object.assign({ height: graphicHeight, position: '-webkit-sticky' }, styles.SCROLL_GRAPHIC)} >
<div style={Object.assign({ width: graphicWidth }, styles.SCROLL_GRAPHIC_INNER)}>
{filterChildren(
children,
| 2 |
diff --git a/src/editing/attributesComponent.js b/src/editing/attributesComponent.js @@ -173,11 +173,8 @@ Controller.prototype.$onInit = function () {
// Listen to the feature inner properties change and apply them to the form
const uid = olUtilGetUid(this);
- this.ngeoEventHelper_.addListenerKey(
- uid,
- listen(this.feature, 'propertychange', this.handleFeaturePropertyChange_, this)
- );
+ // Set properties before starting to listen to changes to avoid multi AngularJS apply error.
this.attributes.forEach((attribute) => {
if (
attribute.type === 'boolean' &&
@@ -187,6 +184,11 @@ Controller.prototype.$onInit = function () {
this.feature.set(attribute.name, false);
}
});
+
+ this.ngeoEventHelper_.addListenerKey(
+ uid,
+ listen(this.feature, 'propertychange', this.handleFeaturePropertyChange_, this)
+ );
};
/**
| 12 |
diff --git a/demos/generator/typed.html b/demos/generator/typed.html <div class="clear"></div>
<xml id="toolbox" style="display: none">
- <category name="Logic" colour="%{BKY_LOGIC_HUE}">
<block type="logic_boolean_typed"></block>
<block type="logic_ternary_typed"></block>
<block type="logic_compare_typed"></block>
- </category>
- <category name="Lists" colour="%{BKY_LISTS_HUE}">
<block type="lists_create_with_typed"></block>
- </category>
- <category name="Math" colour="%{BKY_MATH_HUE}">
<block type="int_typed"></block>
<block type="float_typed"></block>
<block type="int_arithmetic_typed"></block>
<block type="float_arithmetic_typed"></block>
- </category>
- <category name="Pairs" colour="%{BKY_PAIRS_HUE}">
<block type="pair_create_typed"></block>
<block type="pair_first_typed"></block>
<block type="pair_second_typed"></block>
- </category>
- <category name="Functions" colour="%{BKY_PROCEDURES_HUE}">
<block type="lambda_typed"></block>
<block type="lambda_app_typed"></block>
<block type="match_typed"></block>
- </category>
- <category name="Variables" colour="%{BKY_VARIABLES_HUE}">
<block type="let_typed"></block>
- </category>
</xml>
</body>
</html>
| 2 |
diff --git a/app.js b/app.js @@ -233,6 +233,7 @@ addHandlers(listener, logger, 45000);
function addHandlers(listener, logger, killTimeout) {
process.on('uncaughtException', exitProcess(listener, logger, killTimeout));
process.on('unhandledRejection', exitProcess(listener, logger, killTimeout));
+ process.on('ENOMEM', exitProcess(listener, logger, killTimeout));
process.on('SIGINT', exitProcess(listener, logger, killTimeout));
process.on('SIGTERM', exitProcess(listener, logger, killTimeout));
}
| 9 |
diff --git a/package.json b/package.json "changelog:breaking": ":boom: Breaking Change",
"changelog:feat": ":rocket: Enhancement",
"changelog:bugfix": ":bug: Bug Fix",
+ "changelog:perf:": ":zap: Performance",
"changelog:cleanup": ":shower: Deprecation Removal",
"changelog:deprecation": ":evergreen_tree: New Deprecation",
"changelog:doc": ":memo: Documentation",
| 7 |
diff --git a/README.md b/README.md @@ -69,7 +69,7 @@ For security reasons, follow these guidelines when developing a micro frontend:
- Make the micro frontend accessible only through HTTPS.
- Add Content Security Policies (CSPs).
- Make the Access-Control-Allow-Origin HTTP header as restrictive as possible.
-- Maintain a whitelist with trusted domains and compare it with the origin of the Luigi Core application. The origin will be passed when you call the init listener in your micro frontend. Stop further processing if the origin does not match.
+- Maintain an allowlist with trusted domains and compare it with the origin of the Luigi Core application. The origin will be passed when you call the init listener in your micro frontend. Stop further processing if the origin does not match.
> **NOTE**: Luigi follows these [sandbox rules for iframes](https://github.com/SAP/luigi/blob/af1deebb392dcec6490f72576e32eb5853a894bc/core/src/utilities/helpers/iframe-helpers.js#L140).
| 14 |
diff --git a/test-basic/rows.js b/test-basic/rows.js @@ -27,15 +27,47 @@ const planPathBindings = './test-basic/data/literalsBindings.json';
const db = marklogic.createDatabaseClient(testconfig.restWriterConnection);
//db.setLogger('debug');
+const p = marklogic.planBuilder;
+
describe('rows', function(){
- const plan = fs.readFileSync(planPath);
- const planBindings = fs.readFileSync(planPathBindings);
+ const planFromJSON = fs.readFileSync(planPath, 'utf8');
+ const planFromJSONBindings = fs.readFileSync(planPathBindings, 'utf8');
+ const planFromBuilder = p.fromLiterals([
+ {"id": 1,"name": "Master 1","date": "2015-12-01"},
+ {"id": 2,"name": "Master 2","date": "2015-12-02"},
+ {"id": 3,"name": "Master 3","date": "2015-12-03"},
+ ])
+ .where(p.gt(p.col('id'), 1));
describe('read as a promise', function(){
- it('as an array of JSON objects', function(done){
- db.rows.query(plan, {format: 'json'})
+ it('as an array of JSON objects using plan builder as an input', function(done){
+ db.rows.query(planFromBuilder, {format: 'json'})
+ .result(function(response) {
+ //console.log(JSON.stringify(response, null, 2));
+ valcheck.isArray(response).should.equal(true);
+ response.length.should.equal(3);
+ const obj1 = response[0];
+ valcheck.isObject(obj1).should.equal(true);
+ valcheck.isArray(obj1).should.equal(false);
+ obj1.should.have.property('columns');
+ valcheck.isArray(obj1['columns']).should.equal(true);
+ obj1['columns'][0].should.have.property('name');
+ obj1['columns'][0].should.not.have.property('type');
+ const obj2 = response[1];
+ valcheck.isObject(obj2).should.equal(true);
+ valcheck.isArray(obj2).should.equal(false);
+ obj2.should.have.property('date');
+ obj2['date'].should.have.property('type');
+ obj2['date'].should.have.property('value');
+ done();
+ })
+ .catch(done);
+ });
+
+ it('as an array of JSON objects using JSON as an input', function(done){
+ db.rows.query(planFromJSON, {format: 'json'})
.result(function(response) {
//console.log(JSON.stringify(response, null, 2));
valcheck.isArray(response).should.equal(true);
@@ -59,7 +91,7 @@ describe('rows', function(){
});
it('as an array of JSON objects with header column types', function(done){
- db.rows.query(plan, {format: 'json', columnTypes: 'header'})
+ db.rows.query(planFromJSON, {format: 'json', columnTypes: 'header'})
.result(function(response) {
//console.log(JSON.stringify(response, null, 2));
valcheck.isArray(response).should.equal(true);
@@ -77,7 +109,7 @@ describe('rows', function(){
});
it('as an array of JSON objects with bindings', function(done){
- db.rows.query(planBindings, {
+ db.rows.query(planFromJSONBindings, {
format: 'json',
bindings: {
'limit': {value: 2, type: 'integer'},
@@ -94,7 +126,7 @@ describe('rows', function(){
});
it('as an array of XML elements', function(done){
- db.rows.query(plan, {format: 'xml'})
+ db.rows.query(planFromJSON, {format: 'xml'})
.result(function(response) {
//console.log(JSON.stringify(response, null, 2));
valcheck.isArray(response).should.equal(true);
@@ -119,7 +151,7 @@ describe('rows', function(){
let chunks = 0,
length = 0;
- db.rows.query(plan, {format: 'json'})
+ db.rows.query(planFromJSON, {format: 'json'})
.stream('chunked').
on('data', function(chunk){
// console.log(chunk);
@@ -142,7 +174,7 @@ describe('rows', function(){
// var chunks = 0,
// count = 0;
- // db.rows.query(plan, {format: 'json'})
+ // db.rows.query(planFromJSON, {format: 'json'})
// .stream('object').
// on('data', function(obj){
// count++;
@@ -162,7 +194,7 @@ describe('rows', function(){
describe('explain', function(){
it('a plan as JSON', function(done){
- db.rows.explain(plan, {format: 'json'})
+ db.rows.explain(planFromJSON, {format: 'json'})
.result(function(response) {
//console.log(JSON.stringify(response, null, 2));
valcheck.isObject(response).should.equal(true);
@@ -175,7 +207,7 @@ describe('rows', function(){
});
it('a plan as XML', function(done){
- db.rows.explain(plan, {format: 'xml'})
+ db.rows.explain(planFromJSON, {format: 'xml'})
.result(function(response) {
//console.log(JSON.stringify(response, null, 2));
valcheck.isString(response).should.equal(true);
| 0 |
diff --git a/package.json b/package.json "revert-package": "git checkout -- package.json"
},
"dependencies": {
- "babel-plugin-transform-es2015-arrow-functions": "^6.1.18",
- "babel-plugin-transform-es2015-parameters": "^6.3.13",
- "babel-plugin-transform-es2015-shorthand-properties": "^6.3.13",
"backbone": "^1.1.2",
"backbone.nativeajax": "^0.4.3",
"data-set": "^4.0.0",
"htmlparser2": "^3.8.3",
"jsdom": "^6.5.0",
"json-loader": "^0.5.2",
- "punch": "^0.5.46",
"purecss": "^0.6.0",
"underscore": "^1.7.0",
"virtual-dom": "^2.0.1",
"async": "^1.5.2",
"babel-core": "6.4.5",
"babel-loader": "6.2.4",
+ "babel-plugin-transform-es2015-arrow-functions": "^6.1.18",
+ "babel-plugin-transform-es2015-parameters": "^6.3.13",
+ "babel-plugin-transform-es2015-shorthand-properties": "^6.3.13",
"babel-plugin-transform-es2015-block-scoping": "^6.1.18",
"babel-plugin-transform-es2015-constants": "^6.1.4",
"babel-plugin-transform-es2015-template-literals": "^6.6.5",
| 2 |
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs:
- checkout
- run: if [ -e .git/shallow ]; then git fetch --unshallow; fi
- build:
+ prove:
docker:
- image: circleci/ubuntu-server:latest
@@ -23,4 +23,4 @@ workflows:
buildall:
jobs:
- checkout
- - build
+ - prove
| 10 |
diff --git a/test/jasmine/tests/select_test.js b/test/jasmine/tests/select_test.js @@ -612,9 +612,115 @@ describe('@flaky Test select box and lasso in general:', function() {
})
.catch(failTest)
.then(done);
-
});
+ it('should clear selected points on double click only on pan/lasso modes', function(done) {
+ var gd = createGraphDiv();
+ var fig = Lib.extendDeep({}, require('@mocks/0.json'));
+ fig.data = [fig.data[0]];
+ fig.layout.xaxis.autorange = false;
+ fig.layout.xaxis.range = [2, 8];
+ fig.layout.yaxis.autorange = false;
+ fig.layout.yaxis.range = [0, 3];
+
+ function _assert(msg, exp) {
+ expect(gd.layout.xaxis.range)
+ .toBeCloseToArray(exp.xrng, 2, 'xaxis range - ' + msg);
+ expect(gd.layout.yaxis.range)
+ .toBeCloseToArray(exp.yrng, 2, 'yaxis range - ' + msg);
+
+ if(exp.selpts === null) {
+ expect('selectedpoints' in gd.data[0])
+ .toBe(false, 'cleared selectedpoints - ' + msg);
+ } else {
+ expect(gd.data[0].selectedpoints)
+ .toBeCloseToArray(exp.selpts, 2, 'selectedpoints - ' + msg);
+ }
+ }
+
+ Plotly.plot(gd, fig).then(function() {
+ _assert('base', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: null
+ });
+ return Plotly.relayout(gd, 'xaxis.range', [0, 10]);
+ })
+ .then(function() {
+ _assert('after xrng relayout', {
+ xrng: [0, 10],
+ yrng: [0, 3],
+ selpts: null
+ });
+ return doubleClick(200, 200);
+ })
+ .then(function() {
+ _assert('after double-click under dragmode zoom', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: null
+ });
+ return Plotly.relayout(gd, 'dragmode', 'select');
+ })
+ .then(function() {
+ _assert('after relayout to select', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: null
+ });
+ return drag([[100, 100], [400, 400]]);
+ })
+ .then(function() {
+ _assert('after selection', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: [40, 41, 42, 43, 44, 45, 46, 47, 48]
+ });
+ return doubleClick(200, 200);
+ })
+ .then(function() {
+ _assert('after double-click under dragmode select', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: null
+ });
+ return drag([[100, 100], [400, 400]]);
+ })
+ .then(function() {
+ _assert('after selection 2', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: [40, 41, 42, 43, 44, 45, 46, 47, 48]
+ });
+ return Plotly.relayout(gd, 'dragmode', 'pan');
+ })
+ .then(function() {
+ _assert('after relayout to pan', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ selpts: [40, 41, 42, 43, 44, 45, 46, 47, 48]
+ });
+ return Plotly.relayout(gd, 'yaxis.range', [0, 20]);
+ })
+ .then(function() {
+ _assert('after yrng relayout', {
+ xrng: [2, 8],
+ yrng: [0, 20],
+ selpts: [40, 41, 42, 43, 44, 45, 46, 47, 48]
+ });
+ return doubleClick(200, 200);
+ })
+ .then(function() {
+ _assert('after double-click under dragmode pan', {
+ xrng: [2, 8],
+ yrng: [0, 3],
+ // N.B. does not clear selection!
+ selpts: [40, 41, 42, 43, 44, 45, 46, 47, 48]
+ });
+ })
+ .catch(failTest)
+ .then(done);
+ });
});
describe('@flaky Test select box and lasso per trace:', function() {
| 0 |
diff --git a/weapons-manager.js b/weapons-manager.js @@ -818,6 +818,12 @@ const deployMesh = _makeTargetMesh();
deployMesh.visible = false;
scene.add(deployMesh);
+const _deploy = () => {
+ if (deployMesh.visible) {
+ world.addObject(`https://avaer.github.io/lightsaber/index.js`, null, deployMesh.position, deployMesh.quaternion);
+ }
+};
+
/* const _snapBuildPosition = p => {
p.x = Math.floor(p.x / BUILD_SNAP) * BUILD_SNAP + BUILD_SNAP / 2;
p.y = Math.floor(p.y / BUILD_SNAP) * BUILD_SNAP + BUILD_SNAP / 2;
@@ -2177,7 +2183,8 @@ const weaponsManager = {
}
},
getMenu() {
- return menuMesh.visible;
+ // return menuMesh.visible;
+ return menuEl.classList.contains('open');
},
setMenu(newOpen) {
/* if (newOpen) {
@@ -2189,8 +2196,8 @@ const weaponsManager = {
menuMesh.setVertical(-2);
}
menuMesh.visible = newOpen; */
- menuEl.classList.toggle('open');
- deployMesh.visible = menuEl.classList.contains('open');
+ menuEl.classList.toggle('open', newOpen);
+ deployMesh.visible = newOpen;
},
menuVertical(offset, shift) {
menuMesh.offsetVertical(offset, shift);
@@ -2199,7 +2206,8 @@ const weaponsManager = {
menuMesh.offsetHorizontal(offset, shift);
},
menuEnter() {
- menuMesh.enter();
+ // menuMesh.enter();
+ _deploy();
},
menuKey(c) {
menuMesh.key(c);
| 0 |
diff --git a/packages/yoroi-extension/features/transactions.feature b/packages/yoroi-extension/features/transactions.feature @@ -389,12 +389,10 @@ Feature: Send transaction
@it-170
Scenario Outline: Can send some of a custom token (IT-170)
Given There is an Ergo wallet stored named ergo-token-wallet
- And I have a wallet with funds
+ And I have an ERGO wallet with funds
When I go to the send transaction screen
-
And I open the token selection dropdown
And I select token "USD"
-
And I fill the form:
| address | amount |
| <address> | <amount> |
| 4 |
diff --git a/demos/candlestick-ohlc.html b/demos/candlestick-ohlc.html <title>Candlestick Chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../src/uPlot.css">
- <script src="https://tobyzerner.github.io/placement.js/dist/index.js"></script>
</head>
<body>
<script src="../dist/uPlot.iife.js"></script>
};
}
- // A plugin which converts the legend into a Tooltip
- function legendAsTooltipPlugin({ className, style = {backgroundColor:'black', color:'white'} }={}) {
- let bound, bLeft, bTop, legendEl, currIdx;
+ // A plugin which converts the legend into a simple tooltip
+ function legendAsTooltipPlugin({ className, style = { backgroundColor:'rgba(255, 249, 196, 0.92)', color: 'black' } } = {}) {
+ let legendEl;
function init(u, opts) {
- bound = u.ctx.canvas;
- const bbox = bound.getBoundingClientRect();
- bTop = bbox.top;
- bLeft = bbox.left;
-
legendEl = u.root.querySelector('.legend');
+
legendEl.classList.remove('inline');
+ legendEl.classList.add('hidden');
+ className && legendEl.classList.add(className);
Object.assign(legendEl.style, {
- position:'absolute',
- opacity:0,
pointerEvents: 'none',
+ position: 'absolute',
+ display: "none",
+ zIndex: 100,
+ boxShadow: "2px 2px 10px rgba(0,0,0,0.5)",
+ left: 0,
+ top: 0,
...style
});
- if (style)
- Object.assign(legendEl.style, style);
+ // hide series color markers
+ const idents = legendEl.querySelectorAll(".ident");
- if (className)
- legendEl.classList.add(className);
- }
+ for (let i = 0; i < idents.length; i++)
+ idents[i].style.display = "none";
- function updatePosition(u) {
- const { left, top } = u.cursor;
- const anchor = { left: left + bLeft, top: top + bTop };
- placement(legendEl, anchor, "right", "start", { bound });
- }
+ const plotEl = u.root.querySelector('.plot');
- function updateVisibility(u) {
- if (u.cursor.idx !== currIdx) {
- currIdx = u.cursor.idx;
- legendEl.style.opacity = currIdx ? 1 : 0;
+ // move legend into plot bounds
+ plotEl.appendChild(legendEl);
+
+ // show/hide tooltip on enter/exit
+ plotEl.addEventListener("mouseenter", () => {legendEl.style.display = null;});
+ plotEl.addEventListener("mouseleave", () => {legendEl.style.display = "none";});
+
+ // let tooltip exit plot
+ plotEl.style.overflow = "visible";
}
+
+ function update(u) {
+ const { left, top } = u.cursor;
+ legendEl.style.transform = "translate(" + left + "px, " + top + "px)";
}
return {
init: [init],
- setCursor: [updatePosition, updateVisibility]
+ setCursor: [update]
}
}
| 4 |
diff --git a/yarn.lock b/yarn.lock @@ -6841,6 +6841,14 @@ file-loader@^0.11.1:
dependencies:
loader-utils "^1.0.2"
+file-loader@^6.0.0, file-loader@~6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.0.0.tgz#97bbfaab7a2460c07bcbd72d3a6922407f67649f"
+ integrity sha512-/aMOAYEFXDdjG0wytpTL5YQLfZnnTmLNjn+AIrJ/6HVnTfDqLsVKUUwkDf4I4kgex36BvjuXEn/TX9B/1ESyqQ==
+ dependencies:
+ loader-utils "^2.0.0"
+ schema-utils "^2.6.5"
+
file-saver@^1.3.8:
version "1.3.8"
resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-1.3.8.tgz#e68a30c7cb044e2fb362b428469feb291c2e09d8"
| 13 |
diff --git a/best-practices.md b/best-practices.md @@ -27,8 +27,8 @@ When defining one's STAC properties and fields there are many choices to make on
data. One of the key properties is the ID. The specification is quite flexible on ID's, primarily so that existing
providers can easily use their same ID when they translate their data into STAC - they just need to be sure it is globally
unique, so may need a prefix. But the use of URI reserved characters such as `:` or `/` is discouraged since this will
-result in [percented encoded](https://tools.ietf.org/html/rfc3986#section-2) STAC API endpoints. This isn't a blocker,
-it just makes the ID's served through API's a bit less parsable.
+result in [percented encoded](https://tools.ietf.org/html/rfc3986#section-2) [STAC API](https://github.com/radiantearth/stac-api-spec)
+endpoints. This isn't a blocker, it just makes the ID's served through API's a bit less parsable.
When defining unique fields for search, like constellation or platform, it is recommended that
the value consist of only lowercase characters, numbers, `_`, and `-`. Examples include `sentinel-1a` (Sentinel-1),
@@ -45,8 +45,8 @@ providers have lots of metadata then that can be linked to in the [Asset Object]
to loading and processing data, and while STAC does not prohibit providers from putting those type of fields in their items,
it is not recommended. For very large
catalogs (hundreds of millions of records), every additional field that is indexed will cost substantial money, so data
-providers are advised to just put the fields to be searched in STAC, so STAC API providers don't have bloated indices
-that no one actually uses.
+providers are advised to just put the fields to be searched in STAC, so [STAC API](https://github.com/radiantearth/stac-api-spec)
+providers don't have bloated indices that no one actually uses.
## Representing Vector Layers in STAC
@@ -196,7 +196,7 @@ sources to achieve this.
## Versioning for Catalogs
-In the Item and Collection STAC files or API responses, versions and deprecation can be indicated with the [Versioning Indicators Extension](./extensions/version).
+In the Item and Collection STAC JSON, versions and deprecation can be indicated with the [Versioning Indicators Extension](./extensions/version).
The [Items and Collections API Version Extension](https://github.com/radiantearth/stac-api-spec/tree/master/extensions/version/README.md) provides endpoints and semantics for keeping and accessing previous versions of Collections and Items. The same semantics can be used in static catalogs to preserve previous versions of the documents and link them together.
| 3 |
diff --git a/packages/openneuro-app/src/scripts/datalad/fragments/dataset-tools.jsx b/packages/openneuro-app/src/scripts/datalad/fragments/dataset-tools.jsx @@ -47,10 +47,22 @@ const toolConfig = [
},
]
+/**
+ * Immediate redirect to a dataset or snapshot route
+ * @param {object} history react-router-dom history
+ * @param {*} rootPath base path for relative redirects
+ * @param {*} path target path for redirect
+ */
const toolRedirect = (history, rootPath, path) => {
history.push(`${rootPath}/${path}`)
}
+/**
+ * Toolbar parent component
+ *
+ * Dataset is the API object for the context (dataset or snapshot)
+ * Edit boolean controls if the user should see write actions
+ */
const DatasetTools = ({ dataset, edit, location, history }) => {
const snapshot = snapshotVersion(location)
const rootPath = snapshot
| 7 |
diff --git a/articles/introduction-to-neural-networks/index.md b/articles/introduction-to-neural-networks/index.md @@ -21,12 +21,12 @@ These technologies solve problems in image recognition, speech recognition, patt
In this article, you will learn the basics of artificial neural networks or ANN. It will also give you an in-depth interpretation of how neural networks operate.
The contents to be discussed include:
-- [Neural Networks Overview](#Neural-Networks-Overview)
-- [How Neural Networks Work](#How-Neural-Networks-work)
-- [Types of Neural Networks](#Types-of-Neural-Networks)
-- [Applications of Neural Networks](#Applications-of-Neural-Networks)
-- [Advantages of Neural Networks](#Advantages-of-Neural-Networks)
-- [Disadvantages of Neural Networks](#Disadvantages-of-Neural-Networks)
+- [Neural Networks Overview](#neural-networks-overview)
+- [How Neural Networks Work](#how-neural-networks-work)
+- [Types of Neural Networks](#types-of-neural-networks)
+- [Applications of Neural Networks](#applications-of-neural-networks)
+- [Advantages of Neural Networks](#advantages-of-neural-networks)
+- [Disadvantages of Neural Networks](#disadvantages-of-neural-networks)
### Prerequisites
Neural Networks is a complex topic; therefore, I recommend the reader to have a basic understanding of [deep learning](/engineering-education/introduction-to-deep-learning/).
| 1 |
diff --git a/src/views/search/search.jsx b/src/views/search/search.jsx @@ -53,9 +53,9 @@ class Search extends React.Component {
this.props.dispatch(navigationActions.setSearchTerm(term));
let mode = '';
- const m = query.lastIndexOf('m=');
+ const m = query.lastIndexOf('mode=');
if (m !== -1) {
- mode = query.substring(m + 2, query.length).toLowerCase();
+ mode = query.substring(m + 5, query.length).toLowerCase();
}
while (mode.indexOf('/') > -1) {
mode = mode.substring(0, term.indexOf('/'));
@@ -89,7 +89,7 @@ class Search extends React.Component {
if (this.state.acceptableModes.indexOf(value) !== -1) {
const term = this.props.searchTerm.split(' ').join('+');
window.location =
- `${window.location.origin}/search/${this.state.tab}?q=${term}&m=${value}`;
+ `${window.location.origin}/search/${this.state.tab}?q=${term}&mode=${value}`;
}
}
handleGetSearchMore () {
| 10 |
diff --git a/src/encoded/static/components/auditmatrix.js b/src/encoded/static/components/auditmatrix.js @@ -158,7 +158,19 @@ class AuditMatrix extends React.Component {
const secondaryYGrouping = matrix.y.group_by[1];
const xBuckets = matrix.x.buckets;
const xLimit = matrix.x.limit || xBuckets.length;
- const yGroups = matrix.y[primaryYGrouping].buckets;
+ var yGroups = matrix.y[primaryYGrouping].buckets;
+ const orderKey = ['audit-ERROR-category', 'audit-NOT_COMPLIANT-category', 'audit-WARNING-category', 'audit-INTERNAL_ACTION-category'];
+ var orderIndex = 0;
+ var tempYGroups = [];
+ while(orderIndex < orderKey.length){
+ yGroups.forEach((group) => {
+ if(group.key === orderKey[orderIndex]){
+ tempYGroups.push(group);
+ }
+ });
+ orderIndex++;
+ }
+ yGroups = tempYGroups;
const yGroupFacet = _.findWhere(context.facets, { field: primaryYGrouping });
const yGroupOptions = yGroupFacet ? yGroupFacet.terms.map(term => term.key) : [];
yGroupOptions.sort();
@@ -184,7 +196,7 @@ class AuditMatrix extends React.Component {
};
// Make an array of colors corresponding to the ordering of biosample_type
- const biosampleTypeColors = this.context.biosampleTypeColors.colorList(yGroups.map(yGroup => yGroup.key));
+ const biosampleTypeColors = ["#cc0700", "#ff8000", "#e0e000"];
return (
<div>
| 0 |
diff --git a/articles/architecture-scenarios/application/mobile-api.md b/articles/architecture-scenarios/application/mobile-api.md @@ -231,9 +231,7 @@ To access secured resources from your API, the authenticated user's `access_toke
#### Renew the Token
::: warning
-Refresh tokens must be stored securely by an application since they do not expire and allow a user to remain authenticated essentially forever.
-
-If refresh tokens are compromised or you no longer need them, you can revoke the refresh tokens using the [Authentication API](/api/authentication#revoke-refresh-token).
+Refresh tokens must be stored securely by an application since they do not expire and allow a user to remain authenticated essentially forever. If refresh tokens are compromised or you no longer need them, you can revoke the refresh tokens using the [Authentication API](/api/authentication#revoke-refresh-token).
:::
To refresh your `access_token`, perform a `POST` request to the `/oauth/token` endpoint using the `refresh_token` from your authorization result.
| 2 |
diff --git a/token-metadata/0x3D3aB800D105fBd2F97102675A412Da3dC934357/metadata.json b/token-metadata/0x3D3aB800D105fBd2F97102675A412Da3dC934357/metadata.json "symbol": "MSV",
"address": "0x3D3aB800D105fBd2F97102675A412Da3dC934357",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/fonts/ploticon.js b/src/fonts/ploticon.js @@ -169,7 +169,6 @@ module.exports = {
'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'21 21 90 90\'>',
'<defs>',
' <style>',
- ' .cls-1{fill:#8c99cd;}',
' .cls-2{fill:url(#linear-gradient);}',
' .cls-3{fill:#777; stroke:#FFF; strokewidth:2;}',
' </style>',
@@ -181,12 +180,6 @@ module.exports = {
'</defs>',
' <title>plotly-logomark</title>',
' <g id=\'symbol\'>',
- ' <circle class=\'cls-1\' cx=\'78\' cy=\'54\' r=\'6\'/>',
- ' <circle class=\'cls-1\' cx=\'102\' cy=\'30\' r=\'6\'/>',
- ' <circle class=\'cls-1\' cx=\'78\' cy=\'30\' r=\'6\'/>',
- ' <circle class=\'cls-1\' cx=\'54\' cy=\'30\' r=\'6\'/>',
- ' <circle class=\'cls-1\' cx=\'30\' cy=\'30\' r=\'6\'/>',
- ' <circle class=\'cls-1\' cx=\'30\' cy=\'54\' r=\'6\'/>',
' <circle class=\'cls-2\' cx=\'78\' cy=\'54\' r=\'6\'/>',
' <circle class=\'cls-2\' cx=\'102\' cy=\'30\' r=\'6\'/>',
' <circle class=\'cls-2\' cx=\'78\' cy=\'30\' r=\'6\'/>',
| 2 |
diff --git a/src/encoded/schemas/donor.json b/src/encoded/schemas/donor.json "accession": {
"accessionType": "DO"
},
+ "external_id": {
+ "title": "External id",
+ "description": "External identifier that uniquely identifiers the donor.",
+ "type": "string",
+ "pattern": "^(BDSC:\\d+)|(NICHD:\\d+)|(CGC:\\d+)|(PGP:[a-z0-0]+)$"
+ },
"organism": {
"title": "Organism",
"description": "Organism of the donor.",
| 0 |
diff --git a/lib/plugins/inventory.js b/lib/plugins/inventory.js @@ -148,9 +148,8 @@ function inject(bot,{version}) {
}
function activateEntity(entity, cb) {
- // TODO: tell the server that we are sneaking while doing this
+ // TODO: tell the server that we are not sneaking while doing this
bot.lookAt(entity.position.offset(0, 1, 0),false,function(){
- bot._client.write('arm_animation', {hand:0});
bot._client.write('use_entity', {
target: entity.id,
mouse: 0
| 2 |
diff --git a/src/pages/LogInWithShortLivedTokenPage.js b/src/pages/LogInWithShortLivedTokenPage.js @@ -80,14 +80,15 @@ class LogInWithShortLivedTokenPage extends Component {
return;
}
+ // exitTo is URI encoded because it could contain a variable number of slashes (i.e. "workspace/new" vs "workspace/<ID>/card")
+ const exitTo = decodeURIComponent(lodashGet(this.props.route.params, 'exitTo', ''));
+
// In order to navigate to a modal, we first have to dismiss the current modal. But there is no current
// modal you say? I know, it confuses me too. Without dismissing the current modal, if the user cancels out
// of the workspace modal, then they will be routed back to
// /transition/<accountID>/<email>/<authToken>/workspace/<policyID>/card and we don't want that. We want them to go back to `/`
// and by calling dismissModal(), the /transition/... route is removed from history so the user will get taken to `/`
// if they cancel out of the new workspace modal.
- // exitTo is URI encoded because it could contain a variable number of slashes (i.e. "workspace/new" vs "workspace/<ID>/card")
- const exitTo = decodeURIComponent(lodashGet(this.props.route.params, 'exitTo', ''));
Navigation.dismissModal();
Navigation.navigate(exitTo);
}
| 5 |
diff --git a/vis/js/list.js b/vis/js/list.js @@ -104,7 +104,7 @@ list.drawList = function() {
show_list: config.localization[config.language].show_list,
filter_dropdown: config.filter_menu_dropdown,
filter_by_label: config.localization[config.language].filter_by_label,
- items: config.localization[config.language].items
+ items: config.localization[config.language].items,
dropdown: config.sort_menu_dropdown,
sort_by_label: config.localization[config.language].sort_by_label,
});
| 1 |
diff --git a/runtime.js b/runtime.js @@ -90,6 +90,7 @@ const importMap = {
crypto: _importMapUrl('./crypto.js'),
procgen: _importMapUrl('./procgen.js'),
drop: _importMapUrl('./drop-manager.js'),
+ npc: _importMapUrl('./npc-manager.js'),
constants: _importMapUrl('./constants.js'),
};
@@ -762,6 +763,7 @@ const _makeAppUrl = appId => {
import * as crypto from ${JSON.stringify(importMap.crypto)};
import procgen from ${JSON.stringify(importMap.procgen)};
import drop from ${JSON.stringify(importMap.drop)};
+ import npc from ${JSON.stringify(importMap.npc)};
import * as constants from ${JSON.stringify(importMap.constants)};
const renderer = Object.create(_renderer);
@@ -872,7 +874,7 @@ const _makeAppUrl = appId => {
rig.localRig.model.visible = false;
}
};
- export {renderer, scene, camera, runtime, world, universe, physics, ui, notifications, popovers, crypto, drop, constants, rig, app, appManager};
+ export {renderer, scene, camera, runtime, world, universe, physics, ui, notifications, popovers, crypto, drop, npc, constants, rig, app, appManager};
`;
const b = new Blob([s], {
type: 'application/javascript',
| 0 |
diff --git a/.github/dependabot.yml b/.github/dependabot.yml @@ -10,3 +10,9 @@ updates:
target-branch: "develop"
schedule:
interval: "weekly"
+ ignore:
+ - dependency-name: "jsdom"
+ # For jsdom, ignore all updates for version 16.
+ # We should test that this does not cause issue
+ # google/blockly-samples#665 when version 17 is released.
+ versions: "16.x"
| 3 |
diff --git a/.circleci/test.sh b/.circleci/test.sh @@ -83,6 +83,13 @@ case $1 in
exit $EXIT_STATE
;;
+ jasmine-bundle)
+ set_timezone
+
+ npm run test-bundle || EXIT_STATE=$?
+ exit $EXIT_STATE
+ ;;
+
make-baselines)
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?
@@ -94,13 +101,6 @@ case $1 in
exit $EXIT_STATE
;;
- jasmine-bundle)
- set_timezone
-
- npm run test-bundle || EXIT_STATE=$?
- exit $EXIT_STATE
- ;;
-
source-syntax)
npm run lint || EXIT_STATE=$?
npm run test-syntax || EXIT_STATE=$?
| 5 |
diff --git a/base/windows/djinn/DjinnListWindow.ts b/base/windows/djinn/DjinnListWindow.ts @@ -11,6 +11,7 @@ import {DjinnActionWindow} from "./DjinnActionWindow";
import {CharsQuickInfoDjinnWindow} from "./CharsQuickInfoDjinnWindow";
import {djinn_actions} from "../../main_menus/MainDjinnMenu";
import * as _ from "lodash";
+import {Control} from "utils/ControlManager";
const WIN_WIDTH = 236;
const WIN_HEIGHT = 116;
@@ -501,16 +502,23 @@ export class DjinnListWindow {
on_cancel: Function,
on_select: Function,
on_change_djinn_status?: Function,
- view_char_status?: Function
+ view_char_status?: Function,
+ on_change_all_djinn_status?: Function
) {
//Missing check for different states on R Button. Using "Set" sound for all
- const controls = [
+ const controls: Control[] = [
{buttons: Button.LEFT, on_down: this.previous_character.bind(this), sfx: {down: "menu/move"}},
{buttons: Button.RIGHT, on_down: this.next_character.bind(this), sfx: {down: "menu/move"}},
{buttons: Button.UP, on_down: this.previous_djinni.bind(this), sfx: {down: "menu/move"}},
{buttons: Button.DOWN, on_down: this.next_djinni.bind(this), sfx: {down: "menu/move"}},
{buttons: Button.A, on_down: on_select, sfx: {down: "menu/positive"}},
{buttons: Button.B, on_down: on_cancel, sfx: {down: "menu/negative"}},
+ {
+ buttons: [Button.R, Button.SELECT],
+ halt: true,
+ on_down: on_change_all_djinn_status,
+ sfx: {down: "menu/positive"},
+ },
{buttons: Button.R, on_down: on_change_djinn_status, sfx: {down: "menu/positive_3"}},
{buttons: Button.L, on_down: view_char_status, sfx: {down: "menu/positive"}},
];
@@ -678,27 +686,57 @@ export class DjinnListWindow {
}
}
+ change_all_djinn_status() {
+ const djinn_index = this.setting_djinn_status
+ ? this.setting_djinn_status_djinn_index
+ : this.selected_djinn_index;
+ const this_char = this.data.info.party_data.members[this.selected_char_index];
+ const this_djinn = this.data.info.djinni_list[this_char.djinni[djinn_index]];
+
+ let status: djinn_status = null;
+ if (this_djinn.status === djinn_status.SET) {
+ status = djinn_status.STANDBY;
+ } else if (this_djinn.status === djinn_status.STANDBY) {
+ status = djinn_status.SET;
+ }
+
+ if (status !== null) {
+ for (let i = 0; i < this.data.info.party_data.members.length; ++i) {
+ const member = this.data.info.party_data.members[i];
+ const djinn = member.djinni;
+ for (let j = 0; j < djinn.length; ++j) {
+ const djinni = this.data.info.djinni_list[djinn[j]];
+ djinni.set_status(status, member);
+ this.base_window.update_text_color(djinn_font_colors[status], this.djinn_names[i][j]);
+ }
+ }
+ this.chars_quick_info_window.update_text();
+ this.set_action_text();
+ this.set_djinn_sprite(false);
+ }
+ }
+
/**
* Toggles the current djinn status (Set <> Standby).
*/
change_djinn_status() {
- let djinn_index = this.setting_djinn_status ? this.setting_djinn_status_djinn_index : this.selected_djinn_index;
+ const djinn_index = this.setting_djinn_status
+ ? this.setting_djinn_status_djinn_index
+ : this.selected_djinn_index;
const this_char = this.data.info.party_data.members[this.selected_char_index];
const this_djinn = this.data.info.djinni_list[this_char.djinni[djinn_index]];
+ let status: djinn_status = null;
if (this_djinn.status === djinn_status.SET) {
- this_djinn.set_status(djinn_status.STANDBY, this_char);
- this.base_window.update_text_color(
- djinn_font_colors[djinn_status.STANDBY],
- this.djinn_names[this.selected_char_index][this.selected_djinn_index]
- );
- this.chars_quick_info_window.update_text();
- this.set_action_text();
- this.set_djinn_sprite(false);
+ status = djinn_status.STANDBY;
} else if (this_djinn.status === djinn_status.STANDBY) {
- this_djinn.set_status(djinn_status.SET, this_char);
+ status = djinn_status.SET;
+ }
+
+ if (status !== null) {
+ this_djinn.set_status(status, this_char);
this.base_window.update_text_color(
- djinn_font_colors[djinn_status.SET],
+ djinn_font_colors[status],
this.djinn_names[this.selected_char_index][this.selected_djinn_index]
);
this.chars_quick_info_window.update_text();
@@ -748,7 +786,8 @@ export class DjinnListWindow {
this.close.bind(this),
this.on_choose.bind(this),
this.change_djinn_status.bind(this),
- this.view_char_status.bind(this)
+ this.view_char_status.bind(this),
+ this.change_all_djinn_status.bind(this)
);
}
@@ -777,7 +816,8 @@ export class DjinnListWindow {
this.close.bind(this),
this.on_choose.bind(this),
this.change_djinn_status.bind(this),
- this.view_char_status.bind(this)
+ this.view_char_status.bind(this),
+ this.change_all_djinn_status.bind(this)
);
});
},
@@ -877,7 +917,8 @@ export class DjinnListWindow {
this.close.bind(this),
this.on_choose.bind(this),
this.change_djinn_status.bind(this),
- this.view_char_status.bind(this)
+ this.view_char_status.bind(this),
+ this.change_all_djinn_status.bind(this)
);
this.base_window.show(undefined, false);
| 12 |
diff --git a/src/sections/target/SubcellularLocation/SwissbioViz.js b/src/sections/target/SubcellularLocation/SwissbioViz.js @@ -131,6 +131,9 @@ const SwissbioViz = memo(({ locationIds, taxonId, sourceId, children }) => {
fill: ${config.profile.primaryColor} !important;
fill-opacity: 1 !important;
}
+ #swissbiopic > svg {
+ width: 100%;
+ }
`;
// add styles
| 12 |
diff --git a/spec/models/guide_taxon_spec.rb b/spec/models/guide_taxon_spec.rb @@ -49,7 +49,7 @@ describe GuideTaxon, "deletion" do
g = Guide.make!
ancestor = Taxon.make!(rank: Taxon::GENUS)
t1 = Taxon.make!(parent: ancestor, rank: Taxon::SPECIES)
- t2 = Taxon.make!(parent: ancestor, rank: Taxon::SPECIES)
+ t2 = Taxon.make!
gt1 = GuideTaxon.make!(:guide => g, :taxon => t1)
gt2 = GuideTaxon.make!(:guide => g, :taxon => t2)
g.reload
| 1 |
diff --git a/src/sdk/p2p/peer.js b/src/sdk/p2p/peer.js @@ -787,6 +787,7 @@ p2p.disconnect();
L.Logger.debug('Send invitation to ' + peerId);
peer.state = PeerState.OFFERED;
gab.sendChatInvitation(peerId, sysInfo, function() {
+ peer.isCaller = true;
if (successCallback) {
successCallback();
}
@@ -852,10 +853,14 @@ p2p.disconnect();
createPeer(peerId);
}
var peer = peers[peerId];
- peer.isCaller = false;
if (peer.state === PeerState.PENDING) {
peer.state = PeerState.MATCHED;
- gab.sendChatAccepted(peerId, sysInfo, successCallback, function(
+ gab.sendChatAccepted(peerId, sysInfo, function() {
+ peer.isCaller = false;
+ if(successCallback) {
+ successCallback();
+ }
+ }, function(
errCode) {
peer.state = PeerState.PENDING;
if (failureCallback) {
| 12 |
diff --git a/app/controllers/superadmin/platform_controller.rb b/app/controllers/superadmin/platform_controller.rb @@ -14,13 +14,14 @@ class Superadmin::PlatformController < Superadmin::SuperadminController
end
dbs = {}
hosts.each do |h|
- top_account_types = ::User.where(:database_host => h).group_and_count(:account_type).order(Sequel.desc(:count)).all[0..4]
+ total_account_types = ::User.where(:database_host => h).group_and_count(:account_type).order(Sequel.desc(:count)).all
users_in_database = ::User.where(:database_host => h).count
- dbs[h] = {'count' => users_in_database, 'top_account_types_percentages' => {}}
- top_account_types.each do |a|
+ dbs[h] = {'count' => users_in_database, 'total_account_types_percentages' => {}, 'total_account_types_count' => {}}
+ total_account_types.each do |a|
percentage = (a[:count] * 100) / users_in_database
if percentage > 1
- dbs[h]['top_account_types_percentages'][a[:account_type]] = percentage
+ dbs[h]['total_account_types_percentages'][a[:account_type]] = percentage
+ dbs[h]['total_account_types_count'][a[:account_type]] = a[:count]
end
end
end
| 7 |
diff --git a/website_code/php/management/templates.php b/website_code/php/management/templates.php @@ -62,7 +62,6 @@ if (is_user_admin()) {
echo "<p style=\"...\">" . TEMPLATE_RESTRICT_NOTTINGHAM_DESCRIPTION . "</p>";
echo "</br><button type='button' class='xerte_button' id='nottingham_btn'>manage</button>";
- $kaas = 'kaas';
echo "<div id='nottingham_modal' class='modal'>" .
"<div class='modal-content'>" .
"<span class='close'>×</span>" .
@@ -103,7 +102,7 @@ if (is_user_admin()) {
$version = explode('"', substr($template_check, $start_point, strpos($template_check, " ", $start_point) - $start_point));
- echo "<p>" . TEMPLATE_VERSION . " " . $version[1] . "</p>";
+ //echo "<p>" . TEMPLATE_VERSION . " " . $version[1] . "</p>";
}
@@ -126,29 +125,29 @@ if (is_user_admin()) {
echo " SelectedItem=\"true\" name=\"type\" id=\"" . $row['template_type_id'] . "active\" ><option value=\"true\" selected=\"selected\">" . TEMPLATE_ACTIVE . "</option><option value=\"false\">" . TEMPLATE_INACTIVE . "</option></select></p>";
}
+ if ($row['template_name'] == $row['parent_template']) {
+ // Not a subtemplate
echo "<p>" . TEMPLATE_REPLACE . "<br><form method=\"post\" enctype=\"multipart/form-data\" id=\"importpopup\" name=\"importform\" target=\"upload_iframe\" action=\"website_code/php/import/import_template.php\" onsubmit=\"javascript:iframe_check_initialise();\"><input name=\"filenameuploaded\" type=\"file\" /><br /><input type=\"hidden\" name=\"replace\" value=\"" . $row['template_type_id'] . "\" /><input type=\"hidden\" name=\"folder\" value=\"" . $row['template_name'] . "\" /><input type=\"hidden\" name=\"version\" value=\"" . $version[1] . "\" /><br /><button type=\"submit\" class=\"xerte_button\" name=\"submitBtn\" onsubmit=\"javascript:iframe_check_initialise()\" >" . TEMPLATE_UPLOAD_BUTTON . "</button></form></p>";
+ }
+ else {
+ // This is a sub-template
- if ($row['template_framework'] == "xerte")
- {
+ if ($row['template_framework'] == "xerte") {
$subpages = array();
- if ($row['template_sub_pages'] != "")
- {
+ if ($row['template_sub_pages'] != "") {
$template_sub_pages = $row['template_sub_pages'];
$simple_lo_page = false;
$pos = strpos($template_sub_pages, "simple_lo_page");
- if ($pos !== false)
- {
+ if ($pos !== false) {
$template_sub_pages = substr($template_sub_pages, 15); // Get rid of 'simple_lo_page,'
$simple_lo_page = true;
}
$subpages = explode(",", $template_sub_pages);
}
- if (count($subpages) > 0)
- {
+ if (count($subpages) > 0) {
$allselected = false;
- }
- else{
+ } else {
$allselected = true;
}
echo "<p>" . TEMPLATE_SUB_PAGES_TITLEONLY . "<br><div class='sub_page_selection sub_page_title'>";
@@ -172,9 +171,8 @@ if (is_user_admin()) {
}
echo "</div>";
}
-
+ }
echo "</div>";
-
}
} else {
| 7 |
diff --git a/bin/resources/app/themes/dark/dark.css b/bin/resources/app/themes/dark/dark.css #main .ace_status-bar {
color: #a0a5a9;
}
+#main .ace_status-comp {
+ border-color: #495057;
+}
#main #ace_status-hint, #main .ace_status-bar .context-pre {
border-color: #495057;
}
| 1 |
diff --git a/docs/quick-start.md b/docs/quick-start.md @@ -64,7 +64,7 @@ backend:
These lines specify your backend protocol and your publication branch. Git Gateway is an open source API that acts as a proxy between authenticated users of your site and your site repo. (We'll get to the details of that in the [Authentication section](#authentication) below.) If you leave out the `branch` declaration, it will default to `master`.
### Editorial Workflow
-By default, saving a post in the CMS interface will push a commit directly to the publication branch specified in `backend`. However, you also have the option to enable the [Editorial Workflow](editorial-workflow.md), which adds an interface for drafting, reviewing, and approving posts. To do this, add the following line to your `config.yml`:
+By default, saving a post in the CMS interface will push a commit directly to the publication branch specified in `backend`. However, you also have the option to enable the [Editorial Workflow](/docs/editorial-workflow), which adds an interface for drafting, reviewing, and approving posts. To do this, add the following line to your `config.yml`:
``` yaml
publish_mode: editorial_workflow
| 1 |
diff --git a/src/ReactiveMixin.js b/src/ReactiveMixin.js @@ -9,9 +9,9 @@ const stateKey = Symbol("state");
const raiseChangeEventsInNextRenderKey = Symbol(
"raiseChangeEventsInNextRender"
);
-
// Tracks total set of changes made to elements since their last render.
-const changedSinceLastRender = new WeakMap();
+/** @type {any} */
+const changedSinceLastRenderKey = Symbol("changedSinceLastRender");
/**
* Manages component state and renders changes in state
@@ -26,8 +26,8 @@ const changedSinceLastRender = new WeakMap();
export default function ReactiveMixin(Base) {
class Reactive extends Base {
constructor() {
- // @ts-ignore
super();
+ this[changedSinceLastRenderKey] = {};
// Set the initial state from the default state defined by the component
// and its mixins.
this[internal.setState](this[internal.defaultState]);
@@ -100,7 +100,7 @@ export default function ReactiveMixin(Base) {
*/
[internal.renderChanges]() {
// Determine what's changed since the last render.
- const changed = changedSinceLastRender.get(this);
+ const changed = this[changedSinceLastRenderKey];
// We only render if the component's never been rendered before, or is
// something's actually changed since the last render. Consecutive
@@ -109,7 +109,7 @@ export default function ReactiveMixin(Base) {
// state is available, and that is what is rendered. When the following
// render calls happen, they will see that the complete state has already
// been rendered, and skip doing any work.
- if (!this[mountedKey] || changed !== null) {
+ if (!this[mountedKey] || Object.keys(changed).length > 0) {
// If at least one of the[internal.setState] calls was made in response to user
// interaction or some other component-internal event, set the
// raiseChangeEvents flag so that componentDidMount/componentDidUpdate
@@ -131,7 +131,7 @@ export default function ReactiveMixin(Base) {
// Since we've now rendered all changes, clear the change log. If other
// async render calls are queued up behind this call, they'll see an
// empty change log, and so skip unnecessary render work.
- changedSinceLastRender.set(this, null);
+ this[changedSinceLastRenderKey] = {};
// Let the component know it was rendered.
// First time is consider mounting; subsequent times are updates.
@@ -168,10 +168,6 @@ export default function ReactiveMixin(Base) {
const firstSetState = this[stateKey] === undefined;
- // Get the log of fields that have changed since this component was last
- // rendered.
- const log = changedSinceLastRender.get(this) || {};
-
// Apply the changes to the component's state to produce a new state
// and a dictionary of flags indicating which fields actually changed.
const { state, changed } = copyStateWithChanges(this, changes);
@@ -190,8 +186,7 @@ export default function ReactiveMixin(Base) {
this[stateKey] = state;
// Log any fields that changed.
- Object.assign(log, changed);
- changedSinceLastRender.set(this, log);
+ Object.assign(this[changedSinceLastRenderKey], changed);
if (!this.isConnected) {
// Not in document, so no need to render.
| 4 |
diff --git a/shared/js/ui/templates/shared/site-rating.es6.js b/shared/js/ui/templates/shared/site-rating.es6.js @@ -18,7 +18,7 @@ module.exports = function (isCalculating, rating, isWhitelisted) {
}
}
- return bel`<div class="hero__icon
+ return bel`<div class="hero__icon site-info__rating
site-info__rating--${_rating}
${isActive}
js-rating"></div>`
| 1 |
diff --git a/templates/lively-debugger.js b/templates/lively-debugger.js import Morph from './Morph.js';
+const debuggerGitHubURL = 'https://github.com/LivelyKernel/lively4-chrome-debugger';
export default class Debugger extends Morph {
@@ -9,16 +10,7 @@ export default class Debugger extends Morph {
this.logType = 'stdout';
this.services = [];
this.debuggerTargets = this.getSubmorph('#debugger-targets');
-
this.targetSelection = document.createElement('select');
- lively4ChromeDebugger.getDebuggingTargets().then((targets) =>
- targets.forEach((ea) => {
- var option = document.createElement('option');
- option.text = ea.title;
- option.value = ea.id;
- this.targetSelection.appendChild(option);
- }
- ));
this.debuggerTargets.appendChild(this.targetSelection);
this.debugButton = this.getSubmorph('#debugButton');
@@ -39,6 +31,21 @@ export default class Debugger extends Morph {
this.codeEditor = this.getSubmorph('#codeEditor').editor;
this.codeEditor.getSession().setMode("ace/mode/javascript");
this.details = this.getSubmorph('#details');
+
+ if (lively4ChromeDebugger) {
+ lively4ChromeDebugger.getDebuggingTargets().then((targets) =>
+ targets.forEach((ea) => {
+ var option = document.createElement('option');
+ option.text = ea.title;
+ option.value = ea.id;
+ this.targetSelection.appendChild(option);
+ }
+ ));
+ } else {
+ if (window.confirm('Lively4 Debugger Extension not found. Do you want to install it?')) {
+ window.open(debuggerGitHubURL, '_blank').focus();
+ }
+ }
}
attachDebugger() {
| 7 |
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml @@ -51,4 +51,4 @@ jobs:
push: true
file: ./Docker/Dockerfile
tags: ${{ steps.prep.outputs.tags }}
- platforms: ${{ steps.buildx.outputs.platforms }}
+ platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
| 12 |
diff --git a/public/ipython/notebook/js/kernelselector.js b/public/ipython/notebook/js/kernelselector.js @@ -184,7 +184,7 @@ define([
// notebook's path.
var that = this;
var parent = utils.url_path_split(that.notebook.notebook_path)[0];
- that.notebook.contents.new_untitled(parent, {type: "notebook"}).then(
+ that.notebook.contents.new_untitled(parent, {type: "notebook", custom: {} }).then(
function (data) {
var url = utils.url_join_encode(
that.notebook.base_url, 'notebooks', data.path
| 1 |
diff --git a/bl-plugins/backup/plugin.php b/bl-plugins/backup/plugin.php @@ -135,10 +135,14 @@ class pluginBackup extends Plugin {
$filename = pathinfo($backup,PATHINFO_FILENAME);
$basename = pathinfo($backup,PATHINFO_BASENAME);
+ // Format Title
list($name, $count) = array_pad(explode(".", $filename, 2), 2, 0);
+ if (($temp = Date::format($name, BACKUP_DATE_FORMAT, 'F j, Y, g:i a')) !== false) {
+ $name = $temp;
+ }
$html .= '<div>';
- $html .= '<h4 class="font-weight-normal">'.Date::format($name, BACKUP_DATE_FORMAT, 'F j, Y, g:i a').($count > 0? " ($count)": "").'</h4>';
+ $html .= '<h4 class="font-weight-normal">'.$name.($count > 0? " ($count)": "").'</h4>';
// Allow download if a zip file
if ($this->zip) {
$html .= '<a class="btn btn-outline-secondary btn-sm mr-1 mt-1" href="'.DOMAIN_BASE.'plugin-backup-download?file='.$filename.'.zip"><span class="fa fa-download"></span> '.$L->get('download').'</a>';
| 11 |
diff --git a/src/DropdownList.js b/src/DropdownList.js @@ -65,6 +65,10 @@ class DropdownList extends Base {
get updates() {
const popupPosition = this.state.popupPosition;
const itemRole = 'itemRole' in this.$.menu ? this.state.itemRole : null;
+ const clone = this.selectedItem ?
+ this.selectedItem.cloneNode(true) :
+ null;
+ const childNodes = clone ? clone.childNodes : [];
return merge(super.updates, {
$: {
downIcon: {
@@ -90,7 +94,7 @@ class DropdownList extends Base {
}
},
value: {
- textContent: this.value
+ childNodes
}
}
});
| 9 |
diff --git a/lib/global-admin/addon/components/saml-config/template.hbs b/lib/global-admin/addon/components/saml-config/template.hbs placeholder=(t "ldap.customizeSchema.groups.groupDN.placeholder")
}}
</div>
- {{#if (not-eq authConfig.id "freeipa")}}
- <div class="pb-20">
- <label class="acc-label pb-5">
- {{t "ldap.customizeSchema.groups.nestedGroup.title"}}
- </label>
- <div class="radio">
- <label class="acc-label pb-5">
- {{radio-button
- selection=shibbolethOpenLdapConfig.nestedGroupMembershipEnabled
- value=false
- }}
- {{t "ldap.customizeSchema.groups.nestedGroup.disabled.labelText"}}
- </label>
- </div>
- <div class="radio">
- <label class="acc-label pb-5">
- {{radio-button
- selection=shibbolethOpenLdapConfig.nestedGroupMembershipEnabled
- value=true
- }}
- {{t "ldap.customizeSchema.groups.nestedGroup.enabled.labelText"}}
- <p class="help-block">
- {{t "ldap.customizeSchema.groups.nestedGroup.enabled.helpText"}}
- </p>
- </label>
- </div>
- </div>
- {{/if}}
</div>
</div>
</section>
| 2 |
diff --git a/lib/node_modules/@stdlib/repl/lib/process_top_level_await.js b/lib/node_modules/@stdlib/repl/lib/process_top_level_await.js @@ -238,7 +238,7 @@ function processAwait( cmd ) {
var ast;
// Wrap the command string in an async IIFE:
- tmp = '(async function wrapper() { ' + cmd + ' })()';
+ tmp = '(async function __wrapper__() {' + cmd + '})()';
// Attempt to parse the wrapped command string into an abstract syntax tree (AST):
try {
| 10 |
diff --git a/articles/quickstart/native/browser-based-vs-native-experience-on-mobile.md b/articles/quickstart/native/browser-based-vs-native-experience-on-mobile.md description: This doc covers the differences between a browser-based vs. native experience when implementing Auth0 on a mobile device.
---
-# Browser-Based vs. Native Experience on Mobile Devices
+# Browser-Based vs. Native Login Flows on Mobile Devices
When developing a native application, such as an app running on iOS or Android, you can choose between the following login flows:
@@ -17,6 +17,51 @@ When using a **native** login flow, the user signs up or enters their credential
Here are some considerations to think about when deciding whether you want to implement a browser-based or native login flow.
-* **SSO**: If you have a suite of mobile applications (such as Google Drive, Google Docs/Sheets, YouTube, and so on), you might want to automatically log the user into all of them if they log into any one app.
+### SSO Across Native Applications
+
+If you have a suite of mobile applications (such as Google Drive, Google Docs/Sheets, YouTube, and so on), you might want to automatically log the user into all of them if they log into any one app.
If your suite uses a wholly native experience, your users have to enter their credentials for each of your apps. However, if you use a browser-based UX, you can implement SSO to reduce the number of times the user has to log in.
+
+::: note
+You can implement SSO with native apps by storing refresh tokens on a shared keychain, but this technique is not compliant with the OAuth 2.0 specifications.
+:::
+
+### SSO Across Devices/Desktops/Laptops
+
+Google is currently investing in the ability to synchronize sessions across devices called [Google SmartLock](https://get.google.com/smartlock/). This allows users to sign in using one device or desktop/laptop computer and automatically sync their session across all of their devices.
+
+While SmartLock is not yet universal, using browser-based login flows allows you to take advantage of this tool.
+
+### Phishing and Security Issues
+
+With a native login flow, there's no way to avoid an unauthorized party from decompiling or intercepting traffic to/from your app to obtain the Client ID and authentication URL. Using these pieces of information, the unauthorized party can then create a rogue app, upload it to an app store, and use it to phish users for the username/passwords and access tokens.
+
+Using a browser-based flow protects you from this, since the callback URL is linked to the app through [universal app links](https://developer.apple.com/ios/universal-links/) (iOS) or App Links (Android). Note, however, that this is *not* a universally supported feature.
+
+### Implementation Time
+
+Using browser-based flows reduces the implementation time required, since everything is handled by the login page (including multifactor authetication and anomoly detection).
+
+By default, [Lock](/libraries/lock) provides the UX, but you can customize it completely by providing your own UX written in HTML/CSS and integrating it with [auth0.js](libraries/auth0js/v8)
+
+### Automatic Improvements
+
+By relying on a centralized login experience, you will automatically receive new features without requiring you to make any changes to your native application. For example, if Auth0 adds support for FIDO/U2F, you would not need to make any code changes to your app before you can use this functionality.
+
+### Load Time/User Experience
+
+When using a native login flow, the login UI and logic is embedded onto the app bundle. Conversely, with a browser-based login flow, the user sees some loading time as the page loads.
+
+However, it's worth noting that the number of times a user logs in with the mobile devices most commonly used today is low. Once the user logs in, your app should only log them out if you revoke their access or if the user opts to log out.
+
+## Conclusion
+
+There are upsides and downsides to using either a browser-based or native login flow on movile devices, but regardless of which option you choose, Auth0 supports either.
+
+### Keep Reading
+
+* [Implementing Browser-Based Flows for iOS](/quickstart/native/ios-swift/00-login)
+* [Implementing Browser-Based Flows for Android](/quickstart/native/android/00-login)
+
+For instructions on implementing a native experience for your users, please see the final sections of the two articles linked immediately above.
| 0 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.213.0",
+ "version": "0.214.0",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/articles/quickstart/spa/vuejs/_includes/_centralized_login.md b/articles/quickstart/spa/vuejs/_includes/_centralized_login.md @@ -141,7 +141,7 @@ class AuthService extends EventEmitter {
isAuthenticated() {
return (
- new Date().getTime() < this.tokenExpiry &&
+ Date.now() < this.tokenExpiry &&
localStorage.getItem(localStorageKey) === 'true'
);
}
| 3 |
diff --git a/packages/idyll-cli/src/pipeline/bundle-js.js b/packages/idyll-cli/src/pipeline/bundle-js.js @@ -57,8 +57,8 @@ module.exports = function (opts, paths, output) {
plugin: [
(b) => {
if (opts.minify) {
- b.require('react/dist/react.min.js', { expose: 'react' });
- b.require('react-dom/dist/react-dom.min.js', { expose: 'react-dom' });
+ b.require('react/umd/react.production.min.js', { expose: 'react' });
+ b.require('react-dom/umd/react-dom.production.min.js', { expose: 'react-dom' });
}
const aliases = {
ast: '__IDYLL_AST__',
| 3 |
diff --git a/articles/quickstart/backend/golang/01-authorization.md b/articles/quickstart/backend/golang/01-authorization.md @@ -6,7 +6,10 @@ description: This tutorial will show you how to use the Auth0 Go SDK to add auth
<%= include('../../../_includes/_package', {
org: 'auth0-samples',
repo: 'auth0-golang-api-samples',
- path: '01-Authorization-RS256'
+ path: '01-Authorization-RS256',
+ requirements: [
+ 'Go 1.8.2'
+ ]
}) %>
<%= include('../_includes/_api_auth_preamble') %>
| 0 |
diff --git a/docs/linux-service.md b/docs/linux-service.md If you are interested in running this application as a service on a Linux server here is a basic guide covering how to do that. This process works for RHEL 7 based Linux installations. It will likely work very similiarly on other systemctl enabled installations.
### Create directory for the application to reside
-Create a directory to place the application files.
+Create a user for BGPalerter
-`mkdir /opt/bgpalerter`
-
-This is the directory where the binary and yaml config files will be stored.
+```bash
+adduser bgpalerter
+sudo su bgpalerter
+```
-If this is a new installation, download the BGPalerter binary in the newly created directory and execute it:
+If this is a new installation, download the BGPalerter binary in the home of the newly created user and execute it:
```
-cd /opt/bgpalerter
+cd /home/bgpalerter
wget https://github.com/nttgin/BGPalerter/releases/latest/download/bgpalerter-linux-x64
chmod +x bgpalerter-linux-x64
./bgpalerter-linux-x64
```
-The autoconfiguration will start at the end of which all the needed files will be created.
+The auto-configuration will start at the end of which all the needed files will be created.
-If this is an existing install simply move the files of your existing install into this directory `mv -t /opt/bgpalerter bgpalerter-linux-x64 bgpalerter.pid config.yml prefixes.yml`
+If this is an existing install simply move the files of your existing install into this directory `mv -t /home/bgpalerter bgpalerter-linux-x64 bgpalerter.pid config.yml prefixes.yml`
-The application will also create `logs` and `src` subdirectories here if needed. You do not have to use `/opt/bgpalerter` as your directory of choice, if you choose something else - simply make sure whatever you choose gets updated in the systemd service file below as well.
+The application will also create `logs` and `src` subdirectories here if needed.
### Create systemd service file
Next you need to create the systemd service file.
-`vi /etc/systemd/system/bgpalerter.service`
+`sudo vi /etc/systemd/system/bgpalerter.service`
The contents of this file should be as follows:
@@ -36,8 +37,10 @@ After=network.target
[Service]
Type=simple
-WorkingDirectory=/opt/bgpalerter
-ExecStart=/opt/bgpalerter/bgpalerter-linux-x64
+Restart=on-failure
+User=bgpalerter
+WorkingDirectory=/home/bgpalerter
+ExecStart=/home/bgpalerter/bgpalerter-linux-x64
[Install]
WantedBy=multi-user.target
@@ -54,50 +57,3 @@ Enable BGPalerter to start at boot and then start the service.
`systemctl enable bgpalerter`
`systemctl start bgpalerter`
-
-### Another helpful trick
-Create this file.
-
-`vi /usr/bin/bgpalerter`
-
-The contents of this file should be as follows:
-
-```
-#!/bin/bash
-
-for arg in "$@"
-do
- if [ "$arg" == "--help" ] || [ "$arg" == "-h" ]
- then
- echo "--start Start the Services"
- echo "--stop Stop the Services"
- echo "--restart Restart the Services"
- elif [ "$arg" == "--start" ]
- then
- echo "Starting BGPalerter"
- systemctl start bgpalerter.service
- elif [ "$arg" == "--stop" ]
- then
- echo "Stopping BGPalerter"
- systemctl stop bgpalerter.service
- elif [ "$arg" == "--restart" ]
- then
- echo "Restarting BGPalerter"
- systemctl restart bgpalerter.service
-fi
-done
-```
-
-Make that file executable.
-
-`chmod +x /usr/bin/bgpalerter`
-
-This file allows you to simply type the following commands if systemctl is too much work for you to remember!
-
-`bgpalerter --help`
-
-`bgpalerter --start`
-
-`bgpalerter --stop`
-
-`bgpalerter --status`
| 7 |
diff --git a/package.json b/package.json {
"name": "prettier-atom",
"main": "./dist/main.js",
- "version": "0.58.2",
+ "version": "0.59.0",
"description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration",
"keywords": [
"atom",
| 6 |
diff --git a/site/passwords.xml b/site/passwords.xml @@ -171,6 +171,9 @@ limitations under the License.
].
</pre>
</p>
+
+ <doc:subsection name="credential-validation">
+ <doc:heading>Custom Credential Validators</doc:heading>
<p>
Every credential validator is a module that implements a single function
behaviour, <a href="https://github.com/rabbitmq/rabbitmq-server/blob/master/src/rabbit_credential_validator.erl">rabbit_credential_validator</a>.
@@ -180,6 +183,7 @@ limitations under the License.
Credential validators can also validate usernames or apply any other logic
(e.g. make sure that provided username and password are not identical).
</p>
+ </doc:subsection>
</doc:section>
</body>
</html>
| 4 |
diff --git a/generators/client/templates/react/src/test/javascript/spec/app/modules/account/password/password.reducer.spec.ts.ejs b/generators/client/templates/react/src/test/javascript/spec/app/modules/account/password/password.reducer.spec.ts.ejs @@ -78,8 +78,13 @@ describe('Password reducer tests', () => {
it('dispatches UPDATE_PASSWORD_PENDING and UPDATE_PASSWORD_FULFILLED actions', async () => {
const meta = {
+ <%_ if (enableTranslation) { _%>
+ errorMessage: 'translation-not-found[password.messages.error]',
+ successMessage: 'translation-not-found[password.messages.success]'
+ <%_ } else { _%>
errorMessage: '<strong>An error has occurred!</strong> The password could not be changed.',
successMessage: '<strong>Password changed!</strong>'
+ <%_ } _%>
};
const expectedActions = [
| 1 |
diff --git a/config/sidebar.yml b/config/sidebar.yml @@ -979,21 +979,8 @@ articles:
- title: "Overview"
url: "/addons"
- - title: "Auth0 Migrations"
- url: "/migrations"
- children:
-
- - title: "Past Migrations"
- url: "/migrations/past-migrations"
- hidden: true
-
- - title: "Management API and ID Tokens"
- url: "/migrations/guides/calling-api-with-idtokens"
- hidden: true
-
- - title: "Extensibility and Node.js v8"
- url: "/migrations/guides/extensibility-node8"
- hidden: true
+ - title: "Auth0 Deprecations"
+ url: "/deprecations"
- title: "Data Privacy"
url: "/compliance"
| 2 |
diff --git a/data/operators/amenity/police.json b/data/operators/amenity/police.json {
"displayName": "Metropolitan Police (London)",
"id": "metropolitanpolice-e8776d",
- "locationSet": {"include": ["gb-eng"]},
+ "locationSet": {"include": ["gb-lon.geojson"]},
"tags": {
"amenity": "police",
"operator": "Metropolitan Police",
| 12 |
diff --git a/packages/babel-plugin-fela/src/index.js b/packages/babel-plugin-fela/src/index.js @@ -17,14 +17,23 @@ function generateHashCode(str) {
return hash.toString(36)
}
-export default function ({ types }, file) {
+export default function({ types, traverse }, file) {
const {
identifier,
+ blockStatement,
+ returnStatement,
+ objectProperty,
+ binaryExpression,
isIdentifier,
isVariableDeclarator,
isStringLiteral,
isNumericLiteral,
- isObjectExpression
+ isObjectExpression,
+ isArrowFunctionExpression,
+ isFunctionExpression,
+ isFunctionDeclaration,
+ isReturnStatement,
+ isBlockStatement
} = types
function createStaticJSObject(props, path) {
@@ -52,19 +61,80 @@ export default function ({ types }, file) {
return {
visitor: {
- CallExpression(path) {
+ CallExpression(path, parentPath) {
if ((path.node.callee.name = 'createComponent')) {
const rule = path.node.arguments[0]
+ let ruleDeclaration, func
+
+ console.log(rule)
if (isIdentifier(rule)) {
if (path.scope.hasBinding(rule.name)) {
- const ruleDeclaration = path.scope.bindings[rule.name].path
+ const binded = path.scope.bindings[rule.name].path
+
+ if (
+ isVariableDeclarator(binded) ||
+ isFunctionDeclaration(binded)
+ ) {
+ ruleDeclaration = binded
+ func = isVariableDeclarator(binded)
+ ? ruleDeclaration.node.init
+ : ruleDeclaration.node
+ } else {
+ return
+ }
+ } else {
+ return
+ }
+ } else if (isFunctionDeclaration(rule)) {
+ ruleDeclaration = rule
+ func = rule.node
+ } else if (
+ isArrowFunctionExpression(rule) ||
+ isFunctionExpression(rule)
+ ) {
+ ruleDeclaration = rule
+ func = rule
+ } else {
+ return
+ }
+
+ if (func.params && func.params.length === 0) {
+ func.params.push('_')
+ }
+ if (func.params && func.params.length === 1) {
+ func.params.push(identifier('renderer'))
+ }
+
+ if (
+ func.params &&
+ func.params.length === 2 &&
+ (!isIdentifier(func.params[1]) ||
+ func.params[1].name !== 'renderer')
+ ) {
+ console.log('SHIT')
+ return
+ }
+
+ if (isArrowFunctionExpression(func)) {
+ console.log('ISARROW')
+
+ if (isObjectExpression(func.body)) {
+ console.log('ISOBJECT')
+
+ func.body = blockStatement([returnStatement(func.body)])
if (isVariableDeclarator(ruleDeclaration)) {
- let id,
- didTraverse
+ ruleDeclaration.node.init = func
+ } else {
+ ruleDeclaration.node = func
+ }
+ }
+ }
+
+ let id, didTraverse
- ruleDeclaration.traverse({
+ const traverser = {
ObjectExpression(childPath) {
if (!didTraverse) {
childPath.node.root = true
@@ -75,25 +145,29 @@ export default function ({ types }, file) {
const props = childPath.node.properties
const jsObject = createStaticJSObject(props, childPath)
- id = `_${generateHashCode(JSON.stringify(jsObject))}`
+ id = '_' + generateHashCode(JSON.stringify(jsObject))
childPath.node.properties.unshift(
- `_className: renderer.precompiled.${id}`
+ '_className: renderer.precompiled.' + id
)
- ruleDeclaration.traverse({
+ traverse(
+ func,
+ {
BlockStatement(bPath) {
bPath.node.body
.unshift(`if (!renderer.precompiled.${id}) {
- renderer.precompiled.${id} = renderer.renderRule(() => (${JSON.stringify(jsObject, null, 2)}))
+ renderer.precompiled.${id} = renderer.renderRule(() => (${JSON.stringify(
+ jsObject,
+ null,
+ 2
+ )}))
}`)
- },
- ArrowFunctionExpression(aPath) {
- if (aPath.node.params.length === 1) {
- aPath.node.params.push(identifier('renderer'))
}
- }
- })
+ },
+ childPath.scope,
+ childPath
+ )
}
childPath.traverse({
@@ -104,9 +178,12 @@ export default function ({ types }, file) {
}
})
}
- })
- }
}
+
+ if (ruleDeclaration.traverse) {
+ ruleDeclaration.traverse(traverser)
+ } else {
+ traverse(ruleDeclaration, traverser, path.scope, path)
}
}
}
| 7 |
diff --git a/assets/src/libraries/BookList.test.js b/assets/src/libraries/BookList.test.js @@ -33,8 +33,6 @@ describe('<BookList />', () => {
it('should render the list of books in its state', () => {
bookList.instance().setState({ books });
expect(bookList.find('Book')).to.have.length(books.length);
- expect(bookList.contains(<Book book={books[0]} service={bookService} />)).to.be.true;
- expect(bookList.contains(<Book book={books[1]} service={bookService} />)).to.be.true;
});
it('should call _loadBooks() when mounting the component', () => {
| 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.