code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/src/components/__snapshots__/NavigationTabBar.test.js.snap b/src/components/__snapshots__/NavigationTabBar.test.js.snap @@ -62,7 +62,7 @@ exports[`renders correctly 1`] = `
}
}
>
- <AnimatedComponent
+ <Component
style={
Array [
Object {
@@ -84,8 +84,8 @@ exports[`renders correctly 1`] = `
>
0
</Text>
- </AnimatedComponent>
- <AnimatedComponent
+ </Component>
+ <Component
style={
Array [
Object {
@@ -107,10 +107,12 @@ exports[`renders correctly 1`] = `
>
0
</Text>
- </AnimatedComponent>
</Component>
- <AnimatedComponent
+ </Component>
+ <Text
+ accessible={true}
allowFontScaling={true}
+ ellipsizeMode="tail"
numberOfLines={1}
style={
Array [
@@ -121,13 +123,13 @@ exports[`renders correctly 1`] = `
"lineHeight": 16,
},
Object {
- "color": "rgba(45, 47, 127, 1)",
+ "color": "rgb(45, 47, 127)",
},
]
}
>
Tab 0
- </AnimatedComponent>
+ </Text>
</Touchable>
<Touchable
accessibilityComponentType="button"
@@ -161,7 +163,7 @@ exports[`renders correctly 1`] = `
}
}
>
- <AnimatedComponent
+ <Component
style={
Array [
Object {
@@ -183,8 +185,8 @@ exports[`renders correctly 1`] = `
>
1
</Text>
- </AnimatedComponent>
- <AnimatedComponent
+ </Component>
+ <Component
style={
Array [
Object {
@@ -206,10 +208,12 @@ exports[`renders correctly 1`] = `
>
1
</Text>
- </AnimatedComponent>
</Component>
- <AnimatedComponent
+ </Component>
+ <Text
+ accessible={true}
allowFontScaling={true}
+ ellipsizeMode="tail"
numberOfLines={1}
style={
Array [
@@ -220,13 +224,13 @@ exports[`renders correctly 1`] = `
"lineHeight": 16,
},
Object {
- "color": "rgba(88, 88, 88, 1)",
+ "color": "rgb(88, 88, 88)",
},
]
}
>
Tab 1
- </AnimatedComponent>
+ </Text>
</Touchable>
<AnimatedComponent
style={
| 3 |
diff --git a/examples/hello_ml.html b/examples/hello_ml.html let enabled = false;
let mesher = null;
+ let planeTracker = null;
let eyeTracker = null;
const _enable = () => {
window.browser.nativeMl.RequestHand(_onHand);
mesher = window.browser.nativeMl.RequestMeshing();
mesher.onmesh = _onMesh;
- window.browser.nativeMl.RequestPlanes(_onPlanes);
+ planeTracker = window.browser.nativeMl.RequestPlaneTracking();
+ planeTracker.onplanes = _onPlanes;
eyeTracker = window.browser.nativeMl.RequestEyeTracker();
enabled = true;
mesher.destroy();
mesher = null;
_clearTerrainMeshes();
- window.browser.nativeMl.CancelPlanes(_onPlanes);
+ planeTracker.destroy();
+ planeTracker = null;
_clearPlanes();
eyeTracker.destroy();
eyeTracker = null;
| 4 |
diff --git a/Source/Core/CorridorOutlineGeometry.js b/Source/Core/CorridorOutlineGeometry.js @@ -3,6 +3,7 @@ define([
'./arrayRemoveDuplicates',
'./BoundingSphere',
'./Cartesian3',
+ './Check',
'./ComponentDatatype',
'./CornerType',
'./CorridorGeometryLibrary',
@@ -21,6 +22,7 @@ define([
arrayRemoveDuplicates,
BoundingSphere,
Cartesian3,
+ Check,
ComponentDatatype,
CornerType,
CorridorGeometryLibrary,
@@ -331,12 +333,8 @@ define([
var width = options.width;
//>>includeStart('debug', pragmas.debug);
- if (!defined(positions)) {
- throw new DeveloperError('options.positions is required.');
- }
- if (!defined(width)) {
- throw new DeveloperError('options.width is required.');
- }
+ Check.typeOf.object('options.positions', positions);
+ Check.typeOf.number('options.width', width);
//>>includeEnd('debug');
this._positions = positions;
@@ -366,12 +364,8 @@ define([
*/
CorridorOutlineGeometry.pack = function(value, array, startingIndex) {
//>>includeStart('debug', pragmas.debug);
- if (!defined(value)) {
- throw new DeveloperError('value is required');
- }
- if (!defined(array)) {
- throw new DeveloperError('array is required');
- }
+ Check.typeOf.object('value', value);
+ Check.typeOf.object('array', array);
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
@@ -417,9 +411,7 @@ define([
*/
CorridorOutlineGeometry.unpack = function(array, startingIndex, result) {
//>>includeStart('debug', pragmas.debug);
- if (!defined(array)) {
- throw new DeveloperError('array is required');
- }
+ Check.typeOf.object('array', array);
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
| 14 |
diff --git a/lib/github/oauth.js b/lib/github/oauth.js @@ -88,8 +88,7 @@ module.exports = (robot) => {
defaults: { userId, accessToken },
})
.then(([gitHubUser, created]) => {
- robot.log(gitHubUser.get({ plain: true }));
- robot.log(created);
+ robot.log({ created, gitHubUser }, 'Created and linked GitHubUser');
if (!created) {
gitHubUser.update(accessToken);
}
| 7 |
diff --git a/app/assets/stylesheets/editor-3/_context-switcher.scss b/app/assets/stylesheets/editor-3/_context-switcher.scss right: 392px;
}
.Editor-contextSwitcher.has-timeSeries {
- bottom: 167px;
+ bottom: 209px;
}
.Editor-contextSwitcher.has-timeSeries.has-timeSeries--animated {
- bottom: 190px;
+ bottom: 211px;
}
.Editor-contextSwitcher--geom {
right: 102px;
bottom: 32px;
}
.Editor-contextSwitcher.has-timeSeries {
- bottom: 151px;
+ bottom: 203px;
}
.Editor-contextSwitcher.has-timeSeries.has-timeSeries--animated {
- bottom: 174px;
+ bottom: 205px;
}
.Editor-contextSwitcher--geom.is-moved {
right: 390px;
.Editor-contextSwitcher--geom.is-moved {
right: 101px;
}
- .Editor-contextSwitcher.has-timeSeries {
- bottom: 341px;
- }
- .Editor-contextSwitcher.has-timeSeries.has-timeSeries--animated {
- bottom: 364px;
- }
-}
-@media (max-width: $sViewport-xl) {
.Editor-contextSwitcher.in-table {
right: 16px;
bottom: 16px;
}
.Editor-contextSwitcher.is-moved {
- bottom: 214px;
+ bottom: 243px;
}
.Editor-contextSwitcher.has-timeSeries {
- bottom: 333px;
+ bottom: 414px;
}
.Editor-contextSwitcher.has-timeSeries.has-timeSeries--animated {
- bottom: 358px;
+ bottom: 416px;
}
}
| 1 |
diff --git a/token-metadata/0x7dE91B204C1C737bcEe6F000AAA6569Cf7061cb7/metadata.json b/token-metadata/0x7dE91B204C1C737bcEe6F000AAA6569Cf7061cb7/metadata.json "symbol": "XRT",
"address": "0x7dE91B204C1C737bcEe6F000AAA6569Cf7061cb7",
"decimals": 9,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/token-metadata/0xdAC17F958D2ee523a2206206994597C13D831ec7/metadata.json b/token-metadata/0xdAC17F958D2ee523a2206206994597C13D831ec7/metadata.json "symbol": "USDT",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"decimals": 6,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/renderer/marketplace/bank-accounts/list/offers-table.jsx b/src/renderer/marketplace/bank-accounts/list/offers-table.jsx @@ -53,6 +53,9 @@ const styles = theme => ({
width: '245px'
},
eligibilityCellBody: {
+ alignItems: 'center',
+ display: 'flex',
+ flexWrap: 'wrap',
paddingTop: '15px',
paddingBottom: '15px',
whiteSpace: 'normal',
| 1 |
diff --git a/components/Bookmarks/BookmarkMiniFeed.js b/components/Bookmarks/BookmarkMiniFeed.js @@ -23,6 +23,10 @@ const BookmarkMiniFeed = ({ t, data, closeHandler, ...props }) => {
loading={data.loading}
error={data.error}
render={() => {
+ // only members have a bookmark collection
+ if (!data.me.collection) {
+ return null
+ }
const nodes = data.me.collection.items.nodes
return (
<div {...styles.tilesContainer} {...props}>
| 9 |
diff --git a/config/ember-try.js b/config/ember-try.js @@ -40,6 +40,8 @@ module.exports = async function () {
},
{
name: 'ember-canary',
+ // TODO: remove this once ember-basic-dropdown is compatible with canary again.
+ allowedToFail: true,
npm: {
devDependencies: {
'ember-source': await getChannelURL('canary'),
| 11 |
diff --git a/checkfiles/checkfiles.py b/checkfiles/checkfiles.py @@ -891,7 +891,7 @@ def run(out, err, url, username, password, encValData, mirror, search_query,
except multiprocessing.NotImplmentedError:
nprocesses = 1
- version = '1.09'
+ version = '1.10'
out.write("STARTING Checkfiles version %s (%s): with %d processes %s at %s\n" %
(version, search_query, nprocesses, dr, datetime.datetime.now()))
| 3 |
diff --git a/public/index.js b/public/index.js @@ -556,8 +556,6 @@ $(function(){
var playerRoleContainer = $("#modal" + playerNum + " .role_container");
var playerRole = $("#modal" + playerNum + " .player_role");
- console.log('last_location', last_location);
-
if(socket){
if(players[playerName]){
@@ -756,6 +754,8 @@ $(function(){
game_info.spy = undefined;
game_info.spy2 = undefined;
+ last_location = game_info.location;
+
var location = randomLocation();
var playersCount = $("#players .player_data").length;
var selected_custom_locations = getSelectedCustomLocations();
@@ -805,8 +805,6 @@ $(function(){
$(".location_item.loc_" + last_location).addClass('cross');
}
- last_location = location;
-
$("#languages").attr("disabled","disabled");
$("#game_result").hide();
$("#start_game").fadeOut();
@@ -1140,8 +1138,6 @@ $(function(){
//**************************************************************************
function configureRemotePlayer(data){
- console.log('configureRemotePlayer', data.last_location, data);
-
selected_locations = data.selected_locations;
custom_locations = data.custom_locations;
@@ -1230,7 +1226,12 @@ $(function(){
$('.player_data.' + sanitizedPlayer + ' .player_remote').fadeIn();
- socket.emit('data',playerName,{type: "CONNECTED", selected_locations: selected_locations, custom_locations: getSelectedCustomLocations()});
+ socket.emit('data',playerName, {
+ type: "CONNECTED",
+ selected_locations: selected_locations,
+ custom_locations: getSelectedCustomLocations(),
+ last_location: last_location,
+ });
if(game_info.state === "running"){
@@ -1316,7 +1317,6 @@ $(function(){
room_id = _room;
player_name = _player;
- console.log(_player);
game_info.room = room_id;
| 1 |
diff --git a/tools/make/lib/addons/Makefile b/tools/make/lib/addons/Makefile @@ -25,7 +25,7 @@ FORTRAN_COMPILER ?= gfortran
install-addons: $(NODE_GYP)
$(QUIET) $(MAKE) -f $(this_file) list-pkgs-addons | while read -r pkg; do \
- if [[ "$$pkg" != /* ]]; then \
+ if echo "$$pkg" | grep -v '^\/.*' >/dev/null; then \
continue; \
fi; \
echo ''; \
@@ -48,7 +48,7 @@ install-addons: $(NODE_GYP)
clean-addons:
$(QUIET) $(MAKE) -f $(this_file) list-pkgs-addons | while read -r pkg; do \
- if [[ "$$pkg" != /* ]]; then \
+ if echo "$$pkg" | grep -v '^\/.*' >/dev/null; then \
continue; \
fi; \
echo ''; \
| 7 |
diff --git a/src/snapshot/svgtoimg.js b/src/snapshot/svgtoimg.js @@ -89,11 +89,12 @@ function svgToImg(opts) {
imgData = url;
break;
default:
- reject(new Error('Image format is not jpeg, png or svg'));
+ var errorMsg = 'Image format is not jpeg, png, svg or webp.';
+ reject(new Error(errorMsg));
// eventually remove the ev
// in favor of promises
if(!opts.promise) {
- return ev.emit('error', 'Image format is not jpeg, png or svg');
+ return ev.emit('error', errorMsg);
}
}
resolve(imgData);
| 0 |
diff --git a/src/patterns/components/footer/react/code/footer.hbs b/src/patterns/components/footer/react/code/footer.hbs @@ -16,7 +16,7 @@ const globalItems = {
altText: 'Spark Logo',
mediaAddClasses: 'drizzle-c-Logo drizzle-c-Logo--small',
description: 'Lorem ipsum dolor sit amet, consectetur.',
- linkElement: 'a',
+ element: 'a',
},
{
mediaType: 'image',
@@ -24,7 +24,7 @@ const globalItems = {
altText: 'Spark Logo',
mediaAddClasses: 'drizzle-c-Logo drizzle-c-Logo--small',
description: 'Lorem ipsum dolor sit amet, consectetur.',
- linkElement: 'a',
+ element: 'a',
},
{
mediaType: 'image',
@@ -32,7 +32,7 @@ const globalItems = {
altText: 'Spark Logo',
mediaAddClasses: 'drizzle-c-Logo drizzle-c-Logo--small',
description: 'Lorem ipsum dolor sit amet, consectetur.',
- linkElement: 'a',
+ element: 'a',
},
{
mediaType: 'image',
@@ -40,7 +40,7 @@ const globalItems = {
altText: 'Spark Logo',
mediaAddClasses: 'drizzle-c-Logo drizzle-c-Logo--small',
description: 'Lorem ipsum dolor sit amet, consectetur.',
- linkElement: 'a',
+ element: 'a',
},
],
};
@@ -53,27 +53,27 @@ const linkColumns = [
href: '#nogo',
text: 'About This.',
analyticsString: 'about-this-link',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'About This Other Thing',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'About That',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'Link Item',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'This Link Item',
- linkElement: 'a',
+ element: 'a',
},
],
},
@@ -83,22 +83,22 @@ const linkColumns = [
{
href: '#nogo',
text: 'About This Other Thing',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'About This',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'About That',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'Link Item',
- linkElement: 'a',
+ element: 'a',
},
],
},
@@ -108,22 +108,22 @@ const linkColumns = [
{
href: '#nogo',
text: 'Share Your Screen',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'Opt Out',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'Disclosures and Other Things',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
text: 'We Want Your Feedback',
- linkElement: 'a',
+ element: 'a',
},
],
},
@@ -136,25 +136,25 @@ const connectIcons = {
href: '#nogo',
name: 'facebook',
screenReaderText: 'Facebook',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
name: 'instagram',
screenReaderText: 'Instagram',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
name: 'twitter',
screenReaderText: 'Twitter',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
name: 'youtube',
screenReaderText: 'Youtube',
- linkElement: 'a',
+ element: 'a',
},
],
};
@@ -167,14 +167,14 @@ const awards = {
src: 'https://sparkdesignsystem.com/assets/toolkit/images/spark-logo.svg',
altText: 'Spark Logo',
addClasses: 'drizzle-c-Logo',
- linkElement: 'a',
+ element: 'a',
},
{
href: '#nogo',
src: 'https://sparkdesignsystem.com/assets/toolkit/images/spark-logo.svg',
altText: 'Spark Logo',
addClasses: 'drizzle-c-Logo',
- linkElement: 'a',
+ element: 'a',
},
],
disclaimerTitle: 'My Award Disclaimer',
@@ -194,19 +194,19 @@ const additionalIcons = [
name: 'house',
href: '#nogo',
screenReaderText: 'House',
- linkElement: 'a',
+ element: 'a',
},
{
name: 'house',
href: '#nogo',
screenReaderText: 'House',
- linkElement: 'a',
+ element: 'a',
},
{
name: 'house',
href: '#nogo',
screenReaderText: 'House',
- linkElement: 'a',
+ element: 'a',
},
];
</script>
\ No newline at end of file
| 3 |
diff --git a/test/jasmine/tests/axes_test.js b/test/jasmine/tests/axes_test.js @@ -5196,6 +5196,243 @@ describe('Test axes', function() {
});
});
});
+
+ describe('label positioning using *ticklabelmode*: "period"', function() {
+ var gd;
+
+ beforeEach(function() {
+ gd = createGraphDiv();
+ });
+
+ afterEach(destroyGraphDiv);
+
+ function _assert(msg, exp) {
+ var labelPositions = gd._fullLayout.xaxis._vals.map(function(d) { return d.periodX; });
+ expect(labelPositions).withContext(msg).toEqual(exp);
+ }
+
+ ['%Y', '%y'].forEach(function(tickformat) {
+ it('should respect yearly tickformat that includes ' + tickformat, function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-01-01', '2026-01-01']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: tickformat
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1562079600000,
+ 1593615600000,
+ 1625238000000,
+ 1656774000000,
+ 1688310000000,
+ 1719846000000,
+ 1751468400000,
+ 1783004400000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+ });
+
+ it('should respect quarters tickformat that includes %q', function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-01-01', '2022-01-01']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%Y-%q'
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1573832700000,
+ 1581781500000,
+ 1589643900000,
+ 1597506300000,
+ 1605455100000,
+ 1613403900000,
+ 1621179900000,
+ 1629042300000,
+ 1636991100000,
+ 1644939900000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
+ ['%B', '%b', '%m'].forEach(function(tickformat) {
+ it('should respect monthly tickformat that includes ' + tickformat, function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-01-01', '2020-07-01']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%q-' + tickformat
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1576473300000,
+ 1579151700000,
+ 1581830100000,
+ 1584335700000,
+ 1587014100000,
+ 1589606100000,
+ 1592284500000,
+ 1594876500000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+ });
+
+ it('should respect Sunday-based week tickformat that includes %U', function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-02-01', '2020-04-01']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%b-%U'
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1580299200000,
+ 1580904000000,
+ 1581508800000,
+ 1582113600000,
+ 1582718400000,
+ 1583323200000,
+ 1583928000000,
+ 1584532800000,
+ 1585137600000,
+ 1585742400000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
+ ['%V', '%W'].forEach(function(tickformat) {
+ it('should respect Monday-based week tickformat that includes ' + tickformat, function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-02-01', '2020-04-01']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%b-' + tickformat
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1580385600000,
+ 1580990400000,
+ 1581595200000,
+ 1582200000000,
+ 1582804800000,
+ 1583409600000,
+ 1584014400000,
+ 1584619200000,
+ 1585224000000,
+ 1585828800000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+ });
+
+ ['%A', '%a', '%d', '%e', '%j', '%u', '%w', '%x'].forEach(function(tickformat) {
+ it('should respect daily tickformat that includes ' + tickformat, function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-01-01', '2020-01-08']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%b-' + tickformat
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1577793600000,
+ 1577880000000,
+ 1577966400000,
+ 1578052800000,
+ 1578139200000,
+ 1578225600000,
+ 1578312000000,
+ 1578398400000,
+ 1578484800000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+ });
+
+ ['%f', '%L', '%Q', '%s', '%S', '%M', '%H', '%I', '%p', '%X'].forEach(function(tickformat) {
+ it('should respect daily tickformat that includes ' + tickformat, function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ x: ['2020-01-01', '2020-01-02']
+ }],
+ layout: {
+ width: 1000,
+ xaxis: {
+ ticklabelmode: 'period',
+ tickformat: '%a-' + tickformat
+ }
+ }
+ })
+ .then(function() {
+ _assert('', [
+ 1577826000000,
+ 1577836800000,
+ 1577847600000,
+ 1577858400000,
+ 1577869200000,
+ 1577880000000,
+ 1577890800000,
+ 1577901600000,
+ 1577912400000,
+ 1577923200000
+ ]);
+ })
+ .catch(failTest)
+ .then(done);
+ });
+ });
+ });
});
function getZoomInButton(gd) {
| 0 |
diff --git a/app.js b/app.js @@ -13,6 +13,7 @@ import * as universe from './universe.js';
import minimap from './minimap.js';
import weaponsManager from './weapons-manager.js';
import cameraManager from './camera-manager.js';
+import {arrowGeometry, arrowMaterial} from './shaders.js';
import {renderer, scene, orthographicScene, avatarScene, camera, orthographicCamera, avatarCamera, dolly, /*orbitControls,*/ renderer2, scene2, scene3, appManager} from './app-object.js';
const leftHandOffset = new THREE.Vector3(0.2, -0.2, -0.4);
@@ -90,6 +91,13 @@ export default class App {
camera.position.copy(coord);
}
+ const arrowMesh = new THREE.Mesh(arrowGeometry, arrowMaterial);
+ arrowMesh.frustumCulled = false;
+ if (coord) {
+ arrowMesh.position.copy(coord).add(new THREE.Vector3(0, 2, 0));
+ }
+ scene.add(arrowMesh);
+
try {
await Promise.all([
universe.enterWorld(worldJson),
| 0 |
diff --git a/packages/app/next.config.js b/packages/app/next.config.js +import eazyLogger from 'eazy-logger';
import { I18NextHMRPlugin } from 'i18next-hmr/plugin';
import { WebpackManifestPlugin } from 'webpack-manifest-plugin';
import { i18n, localePath } from './src/next-i18next.config';
import { listScopedPackages } from './src/utils/next.config.utils';
+
+// setup logger
+const logger = eazyLogger.Logger({
+ prefix: '[{green:next.config.js}] ',
+ useLevelPrefixes: false,
+});
+
+
+const setupWithTM = () => {
// define transpiled packages for '@growi/*'
-const scopedPackages = listScopedPackages(['@growi']);
-const withTM = require('next-transpile-modules')(scopedPackages);
+ const scopedPackages = listScopedPackages(['@growi'], { ignorePackageNames: '@growi/app' });
+
+ logger.info('{bold:Listing scoped packages for transpiling:}');
+ logger.unprefixed('info', `{grey:${JSON.stringify(scopedPackages, null, 2)}}`);
+
+ return require('next-transpile-modules')(scopedPackages);
+};
+const withTM = setupWithTM();
+
// define additional entries
const additionalWebpackEntries = {
| 8 |
diff --git a/bin/definition-validator.js b/bin/definition-validator.js @@ -235,7 +235,14 @@ function runChildValidator(data) {
const validator = fn(data.validator, data);
data.validator = validator;
if (EnforcerRef.isEnforcerRef(validator)) {
+ if (data.definitionType === 'object') {
return new data.context[validator.value](new ValidatorState(data));
+ } else if (data.validator.config) {
+ data.validator = data.validator.config;
+ return normalize(data);
+ } else {
+ return data.result;
+ }
} else if (data.validator) {
return normalize(data);
} else {
| 1 |
diff --git a/token-metadata/0x43044f861ec040DB59A7e324c40507adDb673142/metadata.json b/token-metadata/0x43044f861ec040DB59A7e324c40507adDb673142/metadata.json "symbol": "CAP",
"address": "0x43044f861ec040DB59A7e324c40507adDb673142",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py @@ -20,6 +20,7 @@ import contextlib
import functools
import gc
import http.server
+import importlib.util
import inspect
import json
import math
@@ -38,8 +39,21 @@ import time
import traceback
import webbrowser
from collections import defaultdict
-from types import FrameType
-from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union, cast
+from importlib.abc import SourceLoader
+from importlib.machinery import ModuleSpec
+from types import CodeType, FrameType
+from typing import (
+ Any,
+ Callable,
+ Dict,
+ List,
+ Optional,
+ Set,
+ Tuple,
+ Type,
+ Union,
+ cast,
+)
from scalene.scalene_arguments import ScaleneArguments
from scalene.scalene_client_timer import ScaleneClientTimer
@@ -114,6 +128,73 @@ def stop() -> None:
Scalene.stop()
+def _get_module_details(
+ mod_name: str,
+ error: Type[Exception] = ImportError,
+) -> Tuple[str, ModuleSpec, CodeType]:
+ """Copy of `runpy._get_module_details`, but not private."""
+ if mod_name.startswith("."):
+ raise error("Relative module names not supported")
+ pkg_name, _, _ = mod_name.rpartition(".")
+ if pkg_name:
+ # Try importing the parent to avoid catching initialization errors
+ try:
+ __import__(pkg_name)
+ except ImportError as e:
+ # If the parent or higher ancestor package is missing, let the
+ # error be raised by find_spec() below and then be caught. But do
+ # not allow other errors to be caught.
+ if e.name is None or (e.name != pkg_name and
+ not pkg_name.startswith(e.name + ".")):
+ raise
+ # Warn if the module has already been imported under its normal name
+ existing = sys.modules.get(mod_name)
+ if existing is not None and not hasattr(existing, "__path__"):
+ from warnings import warn
+ msg = "{mod_name!r} found in sys.modules after import of " \
+ "package {pkg_name!r}, but prior to execution of " \
+ "{mod_name!r}; this may result in unpredictable " \
+ "behaviour".format(mod_name=mod_name, pkg_name=pkg_name)
+ warn(RuntimeWarning(msg))
+
+ try:
+ spec = importlib.util.find_spec(mod_name)
+ except (ImportError, AttributeError, TypeError, ValueError) as ex:
+ # This hack fixes an impedance mismatch between pkgutil and
+ # importlib, where the latter raises other errors for cases where
+ # pkgutil previously raised ImportError
+ msg = "Error while finding module specification for {!r} ({}: {})"
+ if mod_name.endswith(".py"):
+ msg += (f". Try using '{mod_name[:-3]}' instead of "
+ f"'{mod_name}' as the module name.")
+ raise error(msg.format(mod_name, type(ex).__name__, ex)) from ex
+ if spec is None:
+ raise error("No module named %s" % mod_name)
+ if spec.submodule_search_locations is not None:
+ if mod_name == "__main__" or mod_name.endswith(".__main__"):
+ raise error("Cannot use package as __main__ module")
+ try:
+ pkg_main_name = mod_name + ".__main__"
+ return _get_module_details(pkg_main_name, error)
+ except error as e:
+ if mod_name not in sys.modules:
+ raise # No module loaded; being a package is irrelevant
+ raise error(("%s; %r is a package and cannot " +
+ "be directly executed") %(e, mod_name))
+ loader = spec.loader
+ # use isinstance instead of `is None` to placate mypy
+ if not isinstance(loader, SourceLoader):
+ raise error("%r is a namespace package and cannot be executed"
+ % mod_name)
+ try:
+ code = loader.get_code(mod_name)
+ except ImportError as e:
+ raise error(format(e)) from e
+ if code is None:
+ raise error("No code object available for %s" % mod_name)
+ return mod_name, spec, code
+
+
class Scalene:
"""The Scalene profiler itself."""
@@ -1829,6 +1910,23 @@ class Scalene:
progs = None
exit_status = 0
try:
+ if len(sys.argv) >= 2 and sys.argv[0] == "-m":
+ module = True
+
+ # Remove -m and the provided module name
+ _, mod_name, *sys.argv = sys.argv
+
+ # Given `some.module`, find the path of the corresponding
+ # some/module/__main__.py or some/module.py file to run.
+ _, spec, _ = _get_module_details(mod_name)
+ if not spec.origin:
+ raise FileNotFoundError
+
+ # Prepend the found .py file to arguments
+ sys.argv.insert(0, spec.origin)
+ else:
+ module = False
+
# Look for something ending in '.py'. Treat the first one as our executable.
progs = [x for x in sys.argv if re.match(r".*\.py$", x)]
# Just in case that didn't work, try sys.argv[0] and __file__.
@@ -1850,7 +1948,9 @@ class Scalene:
sys.exit(1)
# Push the program's path.
program_path = os.path.dirname(os.path.abspath(progs[0]))
+ if not module:
sys.path.insert(0, program_path)
+
# If a program path was specified at the command-line, use it.
if len(args.program_path) > 0:
Scalene.__program_path = os.path.abspath(
| 11 |
diff --git a/source/views/collections/ToolbarView.js b/source/views/collections/ToolbarView.js import { Class } from '../../core/Core';
import '../../foundation/ComputedProps'; // For Function#property
import '../../foundation/ObservableProps'; // For Function#observes
+import RunLoop from '../../foundation/RunLoop';
import { lookupKey } from '../../dom/DOMEvent';
import Element from '../../dom/Element';
import { loc } from '../../localisation/LocaleController';
@@ -274,7 +275,7 @@ const ToolbarView = Class({
this.beginPropertyChanges();
ToolbarView.parent.didEnterDocument.call( this );
if ( this.get( 'preventOverlap' ) ) {
- this.postMeasure();
+ RunLoop.invokeInNextFrame( this.postMeasure, this );
}
this.endPropertyChanges();
return this;
| 7 |
diff --git a/articles/connector/test-dc.md b/articles/connector/test-dc.md @@ -22,16 +22,23 @@ You can run your VM on any cloud platform, but this guide will walk through how
* Region: (your choice)
1. Click the **CREATE A VIRTUAL MACHINE** button. It will take a few minutes for the VM to provision.
1. Click on the **ENDPOINTS** tab of the new VM, and take note of the **PUBLIC PORT** for the **Remote Desktop** endpoint.
+

+
1. Open up Microsoft Remote Desktop client (Windows or Mac) or the client of your choice (such as [rdesktop](http://www.rdesktop.org/) for Linux systems). Create a new connection to your VM:
+

+
1. Open the connection, disregarding any certificate warnings presented by the Remote Desktop client. You should be logged in automatically and eventually see a desktop that looks like this:
+

+
1. If you're prompted to find PC's, devices, and content on the local network, choose **No**.
## Install Active Directory Domain Services
1. Click the PowerShell icon  in the Windows Task Bar to open the **PowerShell Command Prompt**.
+

1. Install Active Directory Domain Services (ADDS) using this command:
@@ -91,6 +98,7 @@ You can run your VM on any cloud platform, but this guide will walk through how
* Click on the **Search** tab.
* Under "Find User by Login", type `mary.smith`.
* Click **Search**. You should get JSON back that contains that user's AD profile data:
+

## Test an Authentication Flow from Auth0
@@ -110,6 +118,7 @@ To ensure that everything is working using your Auth0 account, we're going to co
1. Log in with one of the test users that was created in the directory:
* Username: `mary.smith` or `bob.johnson`
* Password: `Pass@word1!`
+

1. If everything is working, you should be redirected to the JWT.io website to see the contents of the resulting JWT:

| 0 |
diff --git a/ghost/core/core/server/services/mega/post-email-serializer.js b/ghost/core/core/server/services/mega/post-email-serializer.js @@ -248,7 +248,14 @@ const serialize = async (postModel, newsletter, options = {isBrowserPreview: fal
const momentDate = post.published_at ? moment(post.published_at) : moment();
post.published_at = momentDate.tz(timezone).format('DD MMM YYYY');
- post.authors = post.authors && post.authors.map(author => author.name).join(', ');
+ if (post.authors) {
+ if (post.authors.length <= 2) {
+ post.authors = post.authors.map(author => author.name).join(' & ');
+ } else if (post.authors.length > 2) {
+ post.authors = `${post.authors[0].name} & ${post.authors.length - 1} others`;
+ }
+ }
+
if (post.posts_meta) {
post.email_subject = post.posts_meta.email_subject;
}
| 7 |
diff --git a/website/widgets/download.js b/website/widgets/download.js @@ -9,10 +9,10 @@ Download.ifchange=function(event){
Download.render=function(div, json){
$(div).append("<div id='pagebody' class='notop'><div class='pillarform'></div></div>"); var $div=$(div).find("div.pillarform");
- $div.append("<div class='title'>Download xslt script</div>");
+ $div.append("<div class='title'>XSLT transformation on download</div>");
$div.append("<textarea class='textbox' id='download_xslt' spellcheck='false'></textarea>");
$div.find("#download_xslt").val(json.xslt).data("origval", json.xslt).on("change keyup", Download.ifchange);
- $div.append("<div class='instro'>If input is not a valid xslt, no transform is applied.</div>");
+ $div.append("<div class='instro'>You can use this functionality to automatically apply an XSLT transformation when the dictionary is downloaded. If you do not input valid XSLT here, no transformation will be applied.</div>");
};
Download.harvest=function(div){
| 1 |
diff --git a/package.json b/package.json "prebuild:dev:watch": "npm run prebuild:dev",
"prebuild:dev": "npm run clean:app && env-cmd -f config/env.dev.js npm run plugin:def && env-cmd -f config/env.dev.js npm run resource",
"prebuild:prod": "npm run clean && env-cmd -f config/env.prod.js npm run plugin:def && env-cmd -f config/env.prod.js npm run resource",
- "preserver:prod:ci": "npm run clean && env-cmd -f config/env.prod.js npm run plugin:def",
"prelint:swagger2openapi": "npm run build:apiv3:jsdoc",
"preserver:prod": "npm run migrate",
"prestart": "npm run build:prod",
| 13 |
diff --git a/src/DOM.js b/src/DOM.js @@ -1850,7 +1850,7 @@ class HTMLIFrameElement extends HTMLSrcableElement {
this.width||context.canvas.ownerDocument.defaultView.innerWidth,
this.height||context.canvas.ownerDocument.defaultView.innerHeight,
url,
- path.join(this.ownerDocument.defaultView[symbols.optionsSymbol].dataPath, 'cef')
+ path.join(this.ownerDocument.defaultView[symbols.optionsSymbol].dataPath, '.cef')
);
this.browser = browser;
| 10 |
diff --git a/Source/Scene/Camera.js b/Source/Scene/Camera.js @@ -2972,6 +2972,7 @@ function getPickRayOrthographic(camera, windowPosition, result) {
* @param {Cartesian2} windowPosition The x and y coordinates of a pixel.
* @param {Ray} [result] The object onto which to store the result.
* @returns {Ray} Returns the {@link Cartesian3} position and direction of the ray.
+ * If the Scene is not rendered or the pickRay cannot be determined, returns undefined.
*/
Camera.prototype.getPickRay = function (windowPosition, result) {
//>>includeStart('debug', pragmas.debug);
| 3 |
diff --git a/src/components/Pagination/Pagination.jsx b/src/components/Pagination/Pagination.jsx @@ -231,10 +231,10 @@ export const Pagination = props => {
return (
<PaginationUI
- {...getValidProps(rest)}
data-testid="Pagination"
role="navigation"
aria-label="Pagination Navigation"
+ {...getValidProps(rest)}
className={componentClassName}
>
{renderCustomContent ? (
| 11 |
diff --git a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js @@ -351,7 +351,7 @@ class Jet_PFD_AirspeedIndicator extends HTMLElement {
shape.setAttribute("fill", "none");
shape.setAttribute("stroke", "cyan");
shape.setAttribute("stroke-width", "2");
- shape.setAttribute("d", "M 0 22 l 15 -8 l 15 0 l 0 16 l -15 0 l -15 -8 z");
+ shape.setAttribute("d", "M 0 22 l 18 -8 l 11 0 l 0 16 l -11 0 l -18 -8 z");
this.targetSpeedPointerSVG.appendChild(shape);
}
var speedMarkersPosX = _left + gradWidth;
@@ -509,7 +509,7 @@ class Jet_PFD_AirspeedIndicator extends HTMLElement {
this.targetSpeedIconSVG = document.createElementNS(Avionics.SVG.NS, "path");
this.targetSpeedIconSVG.setAttribute("fill", "black");
- this.targetSpeedIconSVG.setAttribute("d", "M21 19 l15 -8 l15 0 l0 16 l-15 0 l-15 -8 Z");
+ this.targetSpeedIconSVG.setAttribute("d", "M 21 19 l 19 -8 l 11 0 l 0 16 l -11 0 l -19 -8 z");
this.targetSpeedIconSVG.setAttribute("fill", "none");
this.targetSpeedIconSVG.setAttribute("stroke", "cyan");
this.targetSpeedIconSVG.setAttribute("stroke-width", "2");
| 7 |
diff --git a/packages/inertia/src/files.ts b/packages/inertia/src/files.ts -export function hasFiles(data: File|FileList|Blob|unknown): boolean {
+import { FormDataConvertible, RequestPayload } from './types'
+
+export function hasFiles(data: RequestPayload|FormDataConvertible): boolean {
return (
data instanceof File ||
data instanceof Blob ||
- data instanceof FileList ||
+ (data instanceof FileList && data.length > 0) ||
(data instanceof FormData && Array.from(data.values()).some((value) => hasFiles(value))) ||
- (typeof data === 'object' && data !== null && Object.values(data).find((value) => hasFiles(value)) !== undefined)
+ (typeof data === 'object' && data !== null && Object.values(data).some((value) => hasFiles(value)))
)
}
| 7 |
diff --git a/bin/value.js b/bin/value.js module.exports = EnforcerValue;
-const defaultCoerce = false;
+const defaultPopulate = true;
const defaultSerialize = true;
const defaultValidate = true;
@@ -27,7 +27,7 @@ const defaultValidate = true;
* will be created with handling overwritten where specified.
* @param {*} value
* @param {object} [config]
- * @param {boolean} [config.coerce] Whether the value should use strong type coercion.
+ * @param {boolean} [config.populate] Whether the value should be populated.
* @param {boolean} [config.serialize] Whether the value should be serialized or deserialized.
* @param {boolean} [config.validate] Whether the value should be validated.
* @returns {EnforcerValue}
@@ -38,15 +38,15 @@ function EnforcerValue(value, config) {
if (typeof value === 'object' && value instanceof EnforcerValue) {
config = {
- coerce: config.coerce === undefined ? value.coerce : config.coerce,
+ populate: config.populate === undefined ? value.populate : config.populate,
serialize: config.serialize === undefined ? value.serialize : config.serialize,
validate: config.validate === undefined ? value.validate : config.validate
};
value = value.value;
}
- const { coerce, serialize, validate } = config;
- this.coerce = coerce;
+ const { populate, serialize, validate } = config;
+ this.populate = populate;
this.serialize = serialize;
this.validate = validate;
this.value = value;
@@ -54,40 +54,31 @@ function EnforcerValue(value, config) {
/**
* Get the attributes (with defaults applied) for an enforcer value.
- * @returns {{coerce: boolean, serialize: boolean, validate: boolean, value: *}}
+ * @returns {{populate: boolean, serialize: boolean, validate: boolean, value: *}}
*/
EnforcerValue.prototype.attributes = function () {
return {
- coerce: this.coerce === undefined ? defaultCoerce : this.coerce,
+ populate: this.populate === undefined ? defaultPopulate : this.populate,
serialize: this.serialize === undefined ? defaultSerialize : this.serialize,
validate: this.validate === undefined ? defaultValidate : this.validate,
value: this.value
};
};
-/**
- * Shorthand method for creating an EnforcerValue instance with coerce set to true.
- * @param {*} value
- * @returns {EnforcerValue}
- */
-EnforcerValue.coerce = function (value) {
- return new EnforcerValue(value, { coerce: true });
-};
-
/**
* Create a new EnforcerValue instance that keeps it's own configuration over a supplied secondary configuration.
* @param {*} value
* @param {object} [config]
- * @param {boolean} [config.coerce] Whether the value should use strong type coercion.
+ * @param {boolean} [config.populate] Whether the value should use strong type coercion.
* @param {boolean} [config.serialize] Whether the value should be serialized or deserialized.
* @param {boolean} [config.validate] Whether the value should be validated.
* @returns {EnforcerValue}
*/
EnforcerValue.inherit = function (value, config) {
if (typeof value === 'object' && value instanceof EnforcerValue) {
- const { coerce, serialize, validate } = value;
+ const { populate, serialize, validate } = value;
const result = new EnforcerValue(value.value);
- if (coerce === undefined && config.coerce !== undefined) result.coerce = config.coerce;
+ if (populate === undefined && config.populate !== undefined) result.populate = config.populate;
if (serialize === undefined && config.serialize !== undefined) result.serialize = config.serialize;
if (validate === undefined && config.validate !== undefined) result.validate = config.validate;
return result;
@@ -99,13 +90,13 @@ EnforcerValue.inherit = function (value, config) {
/**
* Get EnforcerValue attributes whether the value is actually an EnforcerValue instance or a plain value.
* @param {*} value
- * @returns {{coerce: boolean, serialize: boolean, validate: boolean, value: *}}
+ * @returns {{populate: boolean, serialize: boolean, validate: boolean, value: *}}
*/
EnforcerValue.getAttributes = function (value) {
return typeof value === 'object' && value instanceof EnforcerValue
? value.attributes()
: {
- coerce: defaultCoerce,
+ populate: defaultPopulate,
serialize: defaultSerialize,
validate: defaultValidate,
value
| 2 |
diff --git a/articles/tutorials/dashboard-account-settings.md b/articles/tutorials/dashboard-account-settings.md @@ -84,7 +84,3 @@ The **Global Client ID** and **Global Client Secret** are used to generate token
You can configure how the Change Password widget will look like at the [Password Reset](${manage_url}/#/password_reset) tab inside the [Hosted Pages](${manage_url}/#/login_page) section of the dashboard.
**Enable Client Connections**: This flag determines whether all current connections shall be enabled when a new [Client](${manage_url}/#/clients) is created.
-
-**Enable APIs Section**: If you enable this, you will be able to see the [APIs](${manage_url}/#/apis) on the sidebar of your dashboard.
-
-**OAuth 2.0 API Authorization**: This feature is enabled for every account without further configuration. You can check the latest documentation [here](/api-auth).
| 2 |
diff --git a/plugins/cindygl/src/js/WebGL.js b/plugins/cindygl/src/js/WebGL.js @@ -512,10 +512,10 @@ webgl["random"] = first([
[], type.float, useincludefunction('random')
],
[
- [type.float], type.float, (a, cb) => (`${useincludefunction('random')([], cb)}*${a[0]}`)
+ [type.float], type.float, (a, modifs, cb) => (`${useincludefunction('random')([], modifs, cb)}*${a[0]}`)
],
[
- [type.complex], type.complex, (a, cb) => (`vec2(${useincludefunction('random')([], cb)},${useincludefunction('random')([], cb)})*${a[0]}`)
+ [type.complex], type.complex, (a, modifs, cb) => (`vec2(${useincludefunction('random')([], modifs, cb)},${useincludefunction('random')([], modifs, cb)})*${a[0]}`)
]
]);
| 1 |
diff --git a/src/docs/languages/webc.md b/src/docs/languages/webc.md @@ -85,7 +85,8 @@ const pluginWebc = require("@11ty/eleventy-plugin-webc");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginWebc, {
// Glob to find no-import global components
- components: false,
+ // (The default changed from `false` in Eleventy WebC v0.7.0)
+ components: "_components/**/*.webc",
// Adds an Eleventy WebC transform to process all HTML output
useTransform: false,
@@ -885,7 +886,8 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginWebc, {
// Glob to find no-import global components
// This path is relative to the project-root!
- components: "_includes/components/**/*.webc",
+ // (The default changed from `false` in Eleventy WebC v0.7.0)
+ components: "_components/**/*.webc",
});
};
```
| 3 |
diff --git a/imports/ui/templates/components/decision/ballot/ballot.js b/imports/ui/templates/components/decision/ballot/ballot.js @@ -38,7 +38,6 @@ function getVoterContractBond(object) {
}
function activateDragging() {
- // Dragable options
let sortableIn;
this.$('#ballotOption, #proposalSuggestions').sortable({
stop() {
@@ -113,7 +112,8 @@ Template.ballot.onCreated(() => {
Template.ballot.onRendered(() => {
if (Template.instance().contract.get().stage === 'DRAFT') {
- activateDragging();
+ // TODO: use this when dragging becomes a feature
+ // activateDragging();
} else if (Meteor.userId() !== undefined) {
candidateBallot(Meteor.userId(), Template.instance().contract.get()._id);
}
@@ -125,7 +125,8 @@ Template.ballot.helpers({
},
ballotEnabled() {
if (Template.instance().contract.get().ballotEnabled) {
- activateDragging();
+ // TODO: use this when dragging becomes a feature
+ // activateDragging();
}
return Template.instance().contract.get().ballotEnabled;
},
| 11 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -53,6 +53,7 @@ import particleSystemManager from './particle-system.js';
import domRenderEngine from './dom-renderer.jsx';
import dropManager from './drop-manager.js';
import hitManager from './character-hitter.js';
+import terrainManager from './terrain-manager.js';
import cardsManager from './cards-manager.js';
const localVector2D = new THREE.Vector2();
@@ -1201,6 +1202,9 @@ export default () => {
useHitManager() {
return hitManager;
},
+ useTerrainManager() {
+ return terrainManager;
+ },
useCardsManager() {
return cardsManager;
},
| 0 |
diff --git a/stories/module-analytics-settings.stories.js b/stories/module-analytics-settings.stories.js @@ -32,11 +32,7 @@ import {
import { MODULES_ANALYTICS_4 } from '../assets/js/modules/analytics-4/datastore/constants';
import { MODULES_TAGMANAGER } from '../assets/js/modules/tagmanager/datastore/constants';
import { CORE_MODULES } from '../assets/js/googlesitekit/modules/datastore/constants';
-import {
- provideModules,
- provideModuleRegistrations,
- provideUserInfo,
-} from '../tests/js/utils';
+import { provideModules, provideModuleRegistrations } from '../tests/js/utils';
import createLegacySettingsWrapper from './utils/create-legacy-settings-wrapper';
import {
accountsPropertiesProfiles,
@@ -57,7 +53,6 @@ function WithRegistry( Story ) {
dispatch( MODULES_ANALYTICS ).receiveGetExistingTag( null );
dispatch( MODULES_TAGMANAGER ).receiveGetSettings( {} );
- provideUserInfo( registry );
provideModules( registry, [
{
@@ -379,7 +374,7 @@ storiesOf( 'Analytics Module/Settings', module )
slug: 'analytics',
active: true,
connected: true,
- owner: { id: '2', login: 'test-owner-username' },
+ owner: { login: 'test-owner-username' },
},
{
slug: 'analytics-4',
| 2 |
diff --git a/webpack.common.js b/webpack.common.js @@ -30,8 +30,7 @@ module.exports = (argv) => ({
'@babel/plugin-proposal-object-rest-spread'
]
}
- },
- exclude: /node_modules/
+ }
}, {
test: /\.coffee$/,
use: {
@@ -39,8 +38,7 @@ module.exports = (argv) => ({
options: {
bare: true
}
- },
- exclude: /node_modules/
+ }
}]
},
plugins: [
| 2 |
diff --git a/cli/templates/.env b/cli/templates/.env @@ -7,7 +7,7 @@ WEB_URL=http://localhost:3000
WEB_SERVER=true
WORKERS=1
-SERVER_TOKEN=my-serer-token
+SERVER_TOKEN=my-server-token
# By default, the config directory should be located in a folder named "config" within the root of your project. You can change that with `GROUPAROO_CONFIG_DIR`
# GROUPAROO_CONFIG_DIR=/path/to/config
| 1 |
diff --git a/test/channel-recipes.js b/test/channel-recipes.js @@ -61,10 +61,11 @@ test('action channel generator', assert => {
})
test('action channel generator with buffers', assert => {
- assert.plan(2)
+ assert.plan(3)
function* saga() {
- const chan = yield actionChannel('ACTION', buffers.dropping(1))
+ const buffer = yield call(buffers.dropping, 1)
+ const chan = yield actionChannel('ACTION', buffer)
while (true) {
const { payload } = yield take(chan)
yield Promise.resolve() // block
@@ -72,8 +73,10 @@ test('action channel generator with buffers', assert => {
}
let gen = saga()
- let chan = actionChannel('ACTION', buffers.dropping(1))
- assert.deepEqual(gen.next().value, chan)
+ assert.deepEqual(gen.next().value, call(buffers.dropping, 1))
+ let buffer = buffers.dropping(1)
+ let chan = actionChannel('ACTION', buffer)
+ assert.deepEqual(gen.next(buffer).value, chan)
const mockChannel = channel()
| 3 |
diff --git a/edit.js b/edit.js @@ -1073,22 +1073,38 @@ class CollisionRaycaster {
}
const collisionRaycaster = new CollisionRaycaster();
-const collisionCubeGeometry = new THREE.BoxBufferGeometry(0.1, 0.1, 0.1);
-const collisionCubeMaterial = new THREE.MeshBasicMaterial({
+const collisionCubeGeometry = new THREE.BoxBufferGeometry(0.05, 0.05, 0.05);
+const sideCollisionCubeMaterial = new THREE.MeshBasicMaterial({
color: 0xFF0000,
});
-const collisionCubes = (() => {
+const floorCollisionCubeMaterial = new THREE.MeshBasicMaterial({
+ color: 0x00FF00,
+});
+const sideCollisionCubes = (() => {
+ const result = Array(10*10);
+ for (let i = 0; i < 10*10; i++) {
+ const mesh = new THREE.Mesh(collisionCubeGeometry, sideCollisionCubeMaterial);
+ mesh.frustumCulled = false;
+ mesh.visible = false;
+ result[i] = mesh;
+ }
+ return result;
+})();
+for (let i = 0; i < sideCollisionCubes.length; i++) {
+ scene.add(sideCollisionCubes[i]);
+}
+const floorCollisionCubes = (() => {
const result = Array(10*10);
for (let i = 0; i < 10*10; i++) {
- const mesh = new THREE.Mesh(collisionCubeGeometry, collisionCubeMaterial);
+ const mesh = new THREE.Mesh(collisionCubeGeometry, floorCollisionCubeMaterial);
mesh.frustumCulled = false;
mesh.visible = false;
result[i] = mesh;
}
return result;
})();
-for (let i = 0; i < collisionCubes.length; i++) {
- scene.add(collisionCubes[i]);
+for (let i = 0; i < floorCollisionCubes.length; i++) {
+ scene.add(floorCollisionCubes[i]);
}
function parseQuery(queryString) {
| 0 |
diff --git a/src/UserConfig.js b/src/UserConfig.js @@ -235,15 +235,21 @@ class UserConfig {
this.collections[name] = callback;
}
- addPlugin(pluginCallback) {
+ addPlugin(plugin, options = {}) {
debug("Adding plugin (unknown name: check your config file).");
- if (typeof pluginCallback !== "function") {
+ if (typeof plugin === "function") {
+ plugin(this);
+ } else if (plugin && plugin.configFunction) {
+ if (typeof options.init === "function") {
+ options.init.call(this, plugin.initArguments || {});
+ }
+
+ plugin.configFunction(this, options);
+ } else {
throw new UserConfigError(
- "EleventyConfig.addPlugin expects the first argument to be a function."
+ "Invalid EleventyConfig.addPlugin signature. Should be a function or a valid Eleventy plugin object."
);
}
-
- pluginCallback(this);
}
getNamespacedName(name) {
| 0 |
diff --git a/src/handlers/choosingArticle.js b/src/handlers/choosingArticle.js @@ -23,7 +23,7 @@ function reorderArticleReplies(articleReplies) {
for (let articleReply of articleReplies) {
if (articleReply.reply.type !== 'NOT_ARTICLE') {
- replies.unshift(articleReply); // FIXME: reverse order until API blocker is resolved in #78
+ replies.push(articleReply);
} else {
notArticleReplies.push(articleReply);
}
| 4 |
diff --git a/.travis.yml b/.travis.yml @@ -85,7 +85,6 @@ script:
if [[ "$E2E" == "1" ]]; then
npm run build || exit 1 # Build for tests.
npm run env:start || exit 1
- npm run env:reset-site || exit 1
npm run test:e2e:ci || exit 1 # E2E tests.
npm run env:stop || exit 1
fi
| 2 |
diff --git a/src/__percy__/panels.percy.js b/src/__percy__/panels.percy.js @@ -59,7 +59,7 @@ Object.keys(mocks).forEach(m => {
const panelGroup = words[0];
const panelName = words.slice(1, -1).join(' ');
- percySnapshot(`${m}_${p}`, {widths: [snapshotWidth]}, () =>
+ percySnapshot(`Panels: ${m}_${p}`, {widths: [snapshotWidth]}, () =>
panelFixture(panels[p], panelGroup, panelName, mocks[m])
);
});
| 10 |
diff --git a/scripts/build.js b/scripts/build.js @@ -14,12 +14,42 @@ const inputOptions = {
plugins: [resolve({ browser: true }), commonjs(), babel()],
}
-const outputOptions = {
+let outputOptions = {
format: 'iife',
- name: 'appBundle',
+ name: 'APP_',
file: path.join(baseDir, '/dist/appBundle.js'),
}
+const getName = function() {
+ return new Promise((resolve, reject) => {
+ fs.readFile(baseDir + "/metadata.json", function(err, res) {
+ if (err) {
+ console.error(err)
+ return reject(new Error("Metadata.json file can't be read: run this from a directory containing a metadata file."));
+ }
+
+ const contents = res.toString();
+ const data = JSON.parse(contents);
+
+ if (!data.identifier) {
+ return reject(new Error("Can't find identifier in metadata.json file"));
+ }
+
+ if(!data.version){
+ return reject(new Error("Can't find version in metadata.json file"));
+ }
+
+ if(!data.name){
+ return reject(new Error("No name provided for your app"));
+ }
+
+ return resolve(data);
+ });
+ });
+}
+
+getName().then( (data) => {
+ outputOptions.name = "APP_" + data.identifier.replace(/[^0-9a-zA-Z_$]/g, "_");
rollup(inputOptions)
.then(bundle => {
return bundle
@@ -33,6 +63,7 @@ rollup(inputOptions)
.catch(console.error)
})
.catch(console.error)
+})
fs.copyFile(
| 12 |
diff --git a/_events/GatheringForOpenScienceHardware/GatheringForOpenScienceHardware.md b/_events/GatheringForOpenScienceHardware/GatheringForOpenScienceHardware.md title: Gathering For Open Science Hardware
subtitle: GOSH
website: http://openhardware.science/
-start-date: Sept/Oct 2018
+start-date: 2018-09-01
type-org: Community
-city: Shenzhen
-country: China
+city:
+country:
twitter: https://twitter.com/goshcommunity
facebook:
tags:
@@ -14,3 +14,8 @@ tags:
## About
Without hardware, there is no science. Instruments, reagents, computers, and lab equipment are the platforms for producing systematic knowledge. Yet, current supply chains limit access and impede creativity and customization through high mark-ups and proprietary designs. This can be compounded by private hardware licenses and patents. Open Science Hardware (OSH) addresses part of this problem by sharing designs, instructions for building, and protocols.
+
+## Events
+2019: May 17th is the first Great Lakes Gathering for Open Science Hardware in Toronto, Canada. http://openhardware.science/gatherings/great-lakes-gosh-2019/
+
+2018: The event took place in Shenzhen, China Oct 10-13.
| 0 |
diff --git a/src/consumer/consumerGroup.js b/src/consumer/consumerGroup.js const flatten = require('../utils/flatten')
const sleep = require('../utils/sleep')
+const arrayDiff = require('../utils/arrayDiff')
const OffsetManager = require('./offsetManager')
const Batch = require('./batch')
const SeekOffsets = require('./seekOffsets')
@@ -129,7 +130,29 @@ module.exports = class ConsumerGroup {
memberAssignment: decodedAssigment,
})
- this.memberAssignment = decodedAssigment
+ let currentMemberAssignment = decodedAssigment
+ const assignedTopics = keys(currentMemberAssignment)
+ const topicsNotSubscribed = arrayDiff(assignedTopics, this.topics)
+
+ if (topicsNotSubscribed.length > 0) {
+ this.logger.warn('Consumer group received unsubscribed topics', {
+ groupId,
+ generationId,
+ memberId,
+ assignedTopics,
+ topicsSubscribed: this.topics,
+ topicsNotSubscribed,
+ })
+
+ // Remove unsubscribed topics from the list
+ const safeAssignment = arrayDiff(assignedTopics, topicsNotSubscribed)
+ currentMemberAssignment = safeAssignment.reduce(
+ (assignment, topic) => ({ ...assignment, [topic]: decodedAssigment[topic] }),
+ {}
+ )
+ }
+
+ this.memberAssignment = currentMemberAssignment
this.topics = keys(this.memberAssignment)
this.offsetManager = new OffsetManager({
cluster: this.cluster,
| 8 |
diff --git a/src/mixins/event-handlers.js b/src/mixins/event-handlers.js @@ -79,7 +79,9 @@ var EventHandlers = {
},
// invoked when swiping/dragging starts (just once)
swipeStart: function (e) {
+ if (e.target.tagName === 'IMG') {
e.preventDefault()
+ }
var touches, posX, posY;
// the condition after or looked redundant
| 0 |
diff --git a/conf/evolutions/default/40.sql b/conf/evolutions/default/40.sql @@ -15,40 +15,40 @@ DROP TABLE mission_progress_cvgroundtruth;
DELETE
FROM audit_task_interaction
-WHERE mission_id in
- (
+WHERE mission_id IN (
SELECT mission_id
- from mission
- inner join mission_type
- on mission.mission_type_id = mission_type.mission_type_id
- WHERE mission_type.mission_type = 'cvGroundTruth');
+ FROM mission
+ INNER JOIN mission_type ON mission.mission_type_id = mission_type.mission_type_id
+ WHERE mission_type.mission_type = 'cvGroundTruth'
+);
DELETE
FROM audit_task_environment
-WHERE mission_id in
- (
+WHERE mission_id IN (
SELECT mission_id
- from mission
- inner join mission_type
- on mission.mission_type_id = mission_type.mission_type_id
- WHERE mission_type.mission_type = 'cvGroundTruth');
+ FROM mission
+ INNER JOIN mission_type ON mission.mission_type_id = mission_type.mission_type_id
+ WHERE mission_type.mission_type = 'cvGroundTruth'
+);
DELETE
FROM label
-WHERE mission_id in (
+WHERE mission_id IN (
SELECT mission_id
- from mission
- inner join mission_type
- on mission.mission_type_id = mission_type.mission_type_id
- WHERE mission_type.mission_type = 'cvGroundTruth');
+ FROM mission
+ INNER JOIN mission_type ON mission.mission_type_id = mission_type.mission_type_id
+ WHERE mission_type.mission_type = 'cvGroundTruth'
+);
DELETE
FROM mission
-WHERE mission_type_id in
- (SELECT mission_type_id
- from mission_type
- where mission_type = 'cvGroundTruth');
+WHERE mission_type_id IN (
+ SELECT mission_type_id
+ FROM mission_type
+ WHERE mission_type = 'cvGroundTruth'
+);
DELETE
FROM "sidewalk"."mission_type"
WHERE "mission_type" = 'cvGroundTruth'
+
| 3 |
diff --git a/frontend/lost/src/tools/sia/src/components/properties/properties.styles.scss b/frontend/lost/src/tools/sia/src/components/properties/properties.styles.scss -o-user-select: none !important;
user-select: none !important;
- #sia-propview-canvas-container{
+ [data-ref="canvas-area"] {
grid-area: first;
display: grid;
grid-template-columns: auto;
}
}
- #sia-propview-label-and-descr-container{
+ [data-ref="label-area"] {
grid-area: second;
display: grid;
grid-template-columns: auto;
}
}
- #sia-propview-bounds-and-buttons-container{
+ [data-ref="properties-area"] {
grid-area: third;
display: grid;
grid-template-columns: repeat(2, 50%);
justify-items: center;
strong {
- margin: 0em 0.5em;
+ margin-right: 0.3em;
}
strong, span {
- font-size: 120%;
+ font-size: 100%;
}
button{
width: 90%;
| 7 |
diff --git a/articles/clients/index.md b/articles/clients/index.md @@ -47,6 +47,8 @@ Click on the [Settings](${manage_url}/#/clients/${account.clientId}/settings) ta
- **Name**: The name of your client. This information is editable and you will see in the portal, emails, logs, and so on.
+- **Description**: A free-text description of the Client's purpose with a maximum of 140 characters.
+
- **Domain**: Your Auth0 account name. Note that the domain name is chosen when you create a new Auth0 account and cannot be changed. If you need a different one you have to register for a new account by selecting *New Account* at the top right menu.
- **Client ID**: The unique identifier for your client. This is the ID you will use with when configuring authentication with Auth0. It is generated by the system when you create a new client and it cannot be modified.
| 0 |
diff --git a/lib/recurly/element/element.js b/lib/recurly/element/element.js @@ -204,13 +204,15 @@ export default class Element extends Emitter {
}
/**
- * Configures the element
+ * Configures the element, enforcing the config whitelist
*
- * @private
+ * @public
*/
configure (options = {}) {
if (!this._config) this._config = {};
- Object.assign(this._config, pick(options, OPTIONS));
+ const newConfig = Object.assign({}, this._config, pick(options, OPTIONS));
+ if (JSON.stringify(this._config) === JSON.stringify(newConfig)) return;
+ this._config = newConfig;
this.update();
}
@@ -232,8 +234,13 @@ export default class Element extends Emitter {
this.emit('ready', this);
}
+ /**
+ * Updates state to reflect changes signaled by the Element iframe
+ *
+ * @param {Object} body message body, containing new state
+ */
onStateChange (body) {
- let newState = Object.assign({}, body);
+ let newState = clone(body);
delete newState.type;
this.state = newState;
this.update();
| 3 |
diff --git a/Makefile b/Makefile @@ -168,8 +168,12 @@ deps:
cp third-party/soyutils.js $(APP_ENGINE_THIRD_PARTY)/
cp -R third-party/soundfonts $(APP_ENGINE_THIRD_PARTY)/
+ @# Blockly's externs include extra files we don't want.
+ rm -f $(APP_ENGINE_THIRD_PARTY)/blockly/externs/block-externs.js
+ rm -f $(APP_ENGINE_THIRD_PARTY)/blockly/externs/generator-externs.js
+
@# Blockly's date field needs Closure. But we don't use it.
- rm -r $(APP_ENGINE_THIRD_PARTY)/blockly/core/field_date.js
+ rm -f $(APP_ENGINE_THIRD_PARTY)/blockly/core/field_date.js
svn checkout https://github.com/NeilFraser/JS-Interpreter/trunk/ $(APP_ENGINE_THIRD_PARTY)/JS-Interpreter
@# Remove @license tag so compiler will strip Google's license.
| 3 |
diff --git a/src/content/platform/routes.md b/src/content/platform/routes.md @@ -14,9 +14,9 @@ For zones proxied on Cloudflare\*, route patterns decide what (if any) script is
Route patterns can be added with the Cloudflare API or on the [Workers tab](https://dash.cloudflare.com/?zone=workers) in the Cloudflare dashboard (after selecting a zone).
-<!-- TODO -->
+<!-- TODO: add image -->
<!--
-
+
-->
Cloudflare Site routes are comprised of:
| 7 |
diff --git a/app/math-editor.js b/app/math-editor.js @@ -62,9 +62,7 @@ function init($outerPlaceholder, focus) {
return {
insertNewEquation,
insertMath,
- closeMathEditor,
- openMathEditor,
- onFocusChanged,
+ openMathEditor
}
function onMqEdit(e) {
| 2 |
diff --git a/src/components/dashboard/Reason.js b/src/components/dashboard/Reason.js // @flow
-import React, { useCallback } from 'react'
+import React from 'react'
import { StyleSheet, TouchableOpacity, View } from 'react-native'
import InputText from '../common/form/InputText'
import { Section, Wrapper } from '../common'
@@ -71,18 +71,6 @@ const SendReason = (props: AmountProps) => {
const { reason, isDisabledNextButton, ...restState } = screenState
- const next = useCallback(() => {
- const [nextRoute, ...nextRoutes] = screenState.nextRoutes || []
-
- screenState.category &&
- props.screenProps.push(nextRoute, {
- nextRoutes,
- ...restState,
- reason,
- params,
- })
- }, [restState, reason, screenState.nextRoutes, params])
-
const handleCategoryBoxOnPress = category => {
// set category and enable next button
setScreenState({ category, isDisabledNextButton: false })
@@ -250,7 +238,6 @@ const SendReason = (props: AmountProps) => {
placeholder="Add a message"
placeholderTextColor={theme.colors.darkGray}
enablesReturnKeyAutomatically
- onSubmitEditing={next}
/>
</Section.Stack>
<Section.Row style={styles.bottomContent}>
| 2 |
diff --git a/buildspec.yml b/buildspec.yml @@ -8,6 +8,9 @@ phases:
- echo Entered the install phase...
- git submodule init
- git submodule update
+ - cd ./packages/totum
+ - git pull origin main
+ - cd ../../
pre_build:
commands:
- REPOSITORY_URI=907263135169.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/ecrrepository-app-$AWS_DEFAULT_REGION
@@ -31,6 +34,6 @@ phases:
- docker push $REPOSITORY_URI:latest
- docker push $REPOSITORY_URI:$IMAGE_TAG
- echo Writing image definitions file...
- - printf '[{"name":"ECSContainer-app-'$AWS_DEFAULT_REGION'","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json
+ - printf '[{"name":"ECSContainer-'$SERVICE_NAME'-'$AWS_DEFAULT_REGION'","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json
artifacts:
files: imagedefinitions.json
| 0 |
diff --git a/scripts/build-plugins/rollup-plugin-build-themes.js b/scripts/build-plugins/rollup-plugin-build-themes.js @@ -31,29 +31,6 @@ function appendVariablesToCSS(variables, cssSource) {
return cssSource + getRootSectionWithVariables(variables);
}
-function findLocationFromThemeName(name, locations) {
- const themeLocation = locations.find(location => {
- const manifest = require(`${location}/manifest.json`);
- if (manifest.name === name) {
- return true;
- }
- });
- if (!themeLocation) {
- throw new Error(`Cannot find location from theme name "${name}"`);
- }
- return themeLocation;
-}
-
-function findManifestFromThemeName(name, locations) {
- for (const location of locations) {
- const manifest = require(`${location}/manifest.json`);
- if (manifest.name === name) {
- return manifest;
- }
- }
- throw new Error(`Cannot find manifest from theme name "${name}"`);
-}
-
function parseBundle(bundle) {
const chunkMap = new Map();
const assetMap = new Map();
@@ -112,15 +89,14 @@ module.exports = function buildThemes(options) {
async buildStart() {
if (isDevelopment) { return; }
- const { manifestLocations } = options;
- for (const location of manifestLocations) {
+ const { themeConfig } = options;
+ for (const [name, location] of Object.entries(themeConfig.themes)) {
manifest = require(`${location}/manifest.json`);
variants = manifest.values.variants;
- const themeName = manifest.name;
for (const [variant, details] of Object.entries(variants)) {
- const fileName = `theme-${themeName}-${variant}.css`;
- if (details.default) {
- // This is one of the default variants for this theme.
+ const fileName = `theme-${name}-${variant}.css`;
+ if (name === themeConfig.default && details.default) {
+ // This is the default theme, stash the file name for later
if (details.dark) {
defaultDark = fileName;
}
@@ -139,7 +115,7 @@ module.exports = function buildThemes(options) {
this.emitFile({
type: "chunk",
id: `${location}/theme.css?type=runtime`,
- fileName: `theme-${themeName}-runtime.css`,
+ fileName: `theme-${name}-runtime.css`,
});
}
},
@@ -155,7 +131,7 @@ module.exports = function buildThemes(options) {
if (id.startsWith(resolvedVirtualModuleId)) {
let [theme, variant, file] = id.substr(resolvedVirtualModuleId.length).split("/");
if (theme === "default") {
- theme = "Element";
+ theme = "element";
}
if (!variant || variant === "default") {
variant = "light";
@@ -163,16 +139,15 @@ module.exports = function buildThemes(options) {
if (!file) {
file = "index.js";
}
+ const location = options.themeConfig.themes[theme];
+ const manifest = require(`${location}/manifest.json`);
switch (file) {
case "index.js": {
- const location = findLocationFromThemeName(theme, options.manifestLocations);
- const manifest = findManifestFromThemeName(theme, options.manifestLocations);
const isDark = manifest.values.variants[variant].dark;
return `import "${path.resolve(`${location}/theme.css`)}${isDark? "?dark=true": ""}";` +
`import "@theme/${theme}/${variant}/variables.css"`;
}
case "variables.css": {
- const manifest = findManifestFromThemeName(theme, options.manifestLocations);
const variables = manifest.values.variants[variant].variables;
const css = getRootSectionWithVariables(variables);
return css;
| 4 |
diff --git a/src/asset_manager/view/FileUploader.js b/src/asset_manager/view/FileUploader.js @@ -285,6 +285,25 @@ module.exports = Backbone.View.extend(
return
}
+ var fileURL = URL.createObjectURL(file)
+ videoNode.src = fileURL
+ */
+
+ /*
+ // Show local video files
+ var file = this.files[0]
+ var type = file.type
+ var videoNode = document.createElement('video');
+ var canPlay = videoNode.canPlayType(type) // can use also for 'audio' types
+ if (canPlay === '') canPlay = 'no'
+ var message = 'Can play type "' + type + '": ' + canPlay
+ var isError = canPlay === 'no'
+ displayMessage(message, isError)
+
+ if (isError) {
+ return
+ }
+
var fileURL = URL.createObjectURL(file)
videoNode.src = fileURL
*/
| 6 |
diff --git a/accessibility-checker-engine/src/v2/checker/accessibility/nls/index.ts b/accessibility-checker-engine/src/v2/checker/accessibility/nls/index.ts let a11yNls = {
// AU - DONE
"landmark_name_unique": {
- 0: "Multiple \"{0}\" landmarks should have a unique 'aria-labelledby' or 'aria-label' or be nested in a different parent regions",
+ 0: "Multiple landmarks should have a unique 'aria-labelledby' or 'aria-label' or be nested in a different parent regions",
"Pass_0": "Multiple \"{0}\" landmarks with the same parent region are distinguished by unique 'aria-label' or 'aria-labelledby'",
// Fail_0 occurs when we have: not disambiguated by same parent, labels are blank: "" == "", or same aria-label/labelledby
"Fail_0": "Multiple \"{0}\" landmarks with the same parent region are not distinguished from one another because they have the same \"{1}\" label"
| 2 |
diff --git a/atlaspack.js b/atlaspack.js @@ -232,7 +232,7 @@ Atlas.prototype._ontoCanvas = function(node) {
// make sure we're always working with rects
Atlas.prototype._toRect = function(rect) {
// if rect is an image
- if ((rect.nodeName && (rect.nodeName === 'IMG' || rect.nodeName === 'CANVAS')) || rect instanceof ImageBitmap) {
+ if ((rect.nodeName && (rect.nodeName === 'IMG' || rect.nodeName === 'CANVAS')) || rect instanceof ImageBitmap || rect instanceof OffscreenCanvas) {
this.img = rect;
rect = new Rect(rect.x, rect.y, rect.width, rect.height);
}
| 0 |
diff --git a/src/components/nodes/pool/pool.vue b/src/components/nodes/pool/pool.vue @@ -508,7 +508,6 @@ export default {
invalidPool = pool.component.shape;
invalidPool.attr('body/fill', invalidNodeColor);
element.component.allowSetNodePosition = false;
-
} else {
this.paper.drawBackground({ color: defaultNodeColor });
previousValidPosition = null;
@@ -564,6 +563,7 @@ export default {
if (newPool) {
/* Remove the shape from its current pool */
this.moveElement(draggingElement, newPool);
+ newPool = null;
} else {
this.expandToFitElement(draggingElement);
this.laneSet && this.updateLaneChildren();
| 1 |
diff --git a/server/services/searchBASE.php b/server/services/searchBASE.php @@ -11,7 +11,7 @@ $dirty_query = library\CommUtils::getParameter($_POST, "q");
$precomputed_id = (isset($_POST["unique_id"]))?($_POST["unique_id"]):(null);
$params_array = array("from", "to", "document_types", "sorting", "min_descsize");
-$optional_get_params = ["repo", "coll"];
+$optional_get_params = ["repo", "coll", "vis_type", "limit"];
foreach($optional_get_params as $param) {
if(isset($_POST[$param])) {
| 3 |
diff --git a/package.json b/package.json },
"dependencies": {
"@material-ui/core": "^3.1.0",
- "@reactioncommerce/components": "0.55.0",
+ "@reactioncommerce/components": "0.56.0",
"@reactioncommerce/components-context": "^1.0.0",
"@segment/snippet": "^4.3.1",
"apollo-cache-inmemory": "^1.1.11",
| 3 |
diff --git a/src/components/dashboard/ReceiveAmount.js b/src/components/dashboard/ReceiveAmount.js @@ -41,7 +41,7 @@ const AmountRow = props => {
return (
<Section.Row style={styles.tableRow}>
<Section.Text style={styles.tableRowLabel}>Amount:</Section.Text>
- <BigGoodDollar elementStyles={styles.bigGoodDollar} number={amount} />
+ <BigGoodDollar elementStyles={styles.bigGoodDollar} number={amount} color={styles.bigGoodDollar.color} />
</Section.Row>
)
}
@@ -146,11 +146,12 @@ const getStylesFromProps = ({ theme }) => {
return {
tableRow: {
// TODO: see where should we take this color from
- borderBottomColor: '#CBCBCB',
+ borderBottomColor: theme.colors.gray50Percent,
borderBottomWidth: normalize(1),
borderBottomStyle: 'solid',
marginTop: theme.paddings.defaultMargin * 2,
alignItems: 'baseline',
+ paddingBottom: normalize(8),
},
// TODO: all this properties can be removed once we merge Text component in
@@ -159,6 +160,8 @@ const getStylesFromProps = ({ theme }) => {
},
bigGoodDollar: {
color: theme.colors.primary,
+ fontSize: normalize(24),
+ fontFamily: theme.fonts.bold,
},
reason: {
fontSize: normalize(16),
| 3 |
diff --git a/lib/nodes/addon/components/driver-amazonec2/template.hbs b/lib/nodes/addon/components/driver-amazonec2/template.hbs {{#if config.encryptEbsVolume}}
<div class="col span-6 offset-6">
- {{#if loadFailedKmsKeys}}
<label class="acc-label">
{{t "clusterNew.amazoneks.secretsEncryption.kmsHelpLabel"}}
</label>
+ {{#if loadFailedKmsKeys}}
<Input
@type="text"
value={{mut config.kmsKey}}
| 3 |
diff --git a/examples/react-native-expo/app.json b/examples/react-native-expo/app.json "sdkVersion": "31.0.0",
"platforms": ["ios", "android"],
"version": "1.0.0",
- "orientation": "portrait",
+ "orientation": "default",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
| 11 |
diff --git a/app/src/controllers/filter/reducer.js b/app/src/controllers/filter/reducer.js @@ -20,7 +20,7 @@ const updateFilterConditions = (filters, filterId, conditions) => {
export const launchesFiltersReducer = (state = [], { type, payload, meta: { oldId } = {} }) => {
switch (type) {
case FETCH_USER_FILTERS_SUCCESS:
- return [...state, ...payload];
+ return payload;
case UPDATE_FILTER_CONDITIONS:
return updateFilterConditions(state, payload.filterId, payload.conditions);
case UPDATE_FILTER_SUCCESS:
| 14 |
diff --git a/test/TemplateRenderLiquidTest.js b/test/TemplateRenderLiquidTest.js @@ -57,17 +57,6 @@ test("Liquid Render Include with HTML Suffix and Data Pass in", async t => {
t.is((await fn()).trim(), "This is an include. myValue");
});
-// This is an upstream limitation of the Liquid implementation
-// test("Liquid Render Include No Quotes", async t => {
-// t.is(new TemplateRender("liquid", "./test/stubs/").getEngineName(), "liquid");
-
-// let fn = await new TemplateRender(
-// "liquid",
-// "./test/stubs/"
-// ).getCompiledTemplate("<p>{% include included.liquid %}</p>");
-// t.is(await fn(), "<p>This is an include.</p>");
-// });
-
test("Liquid Custom Filter", async t => {
let tr = new TemplateRender("liquid", "./test/stubs/");
tr.engine.addFilter("prefixWithZach", function(val) {
@@ -287,3 +276,23 @@ test("Liquid Render Include Subfolder Double quotes HTML dynamicPartials true",
);
t.is(await fn(), "<p>This is an include.</p>");
});
+
+test("Liquid Render Include Subfolder Single quotes HTML dynamicPartials true, data passed in", async t => {
+ let tr = new TemplateRender("liquid", "./test/stubs/");
+ tr.engine.setLiquidOptions({ dynamicPartials: true });
+
+ let fn = await tr.getCompiledTemplate(
+ `<p>{% include 'subfolder/included.html', myVariable: 'myValue' %}</p>`
+ );
+ t.is(await fn(), "<p>This is an include.</p>");
+});
+
+test("Liquid Render Include Subfolder Double quotes HTML dynamicPartials true, data passed in", async t => {
+ let tr = new TemplateRender("liquid", "./test/stubs/");
+ tr.engine.setLiquidOptions({ dynamicPartials: true });
+
+ let fn = await tr.getCompiledTemplate(
+ `<p>{% include "subfolder/included.html", myVariable: "myValue" %}</p>`
+ );
+ t.is(await fn(), "<p>This is an include.</p>");
+});
| 0 |
diff --git a/src/components/legend/draw.js b/src/components/legend/draw.js @@ -508,6 +508,8 @@ function computeTextDimensions(g, gd, legendObj, aTitle) {
return;
}
+ var isVertical = helpers.isVertical(legendObj);
+
var mathjaxGroup = g.select('g[class*=math-group]');
var mathjaxNode = mathjaxGroup.node();
if(!legendObj) legendObj = gd._fullLayout.legend;
@@ -539,6 +541,11 @@ function computeTextDimensions(g, gd, legendObj, aTitle) {
// approximation to height offset to center the font
// to avoid getBoundingClientRect
if(aTitle === MAIN_TITLE) {
+ if(!isVertical) {
+ // add extra space between legend title and itmes
+ width += constants.titlePad * 2;
+ }
+
svgTextUtils.positionText(textEl,
bw + constants.titlePad,
bw + lineHeight
| 0 |
diff --git a/js/okx.js b/js/okx.js @@ -27,11 +27,11 @@ module.exports = class okx extends Exchange {
'future': true,
'option': undefined,
'addMargin': true,
+ 'borrowMargin': true,
'cancelAllOrders': undefined,
'cancelOrder': true,
'cancelOrders': true,
'createDepositAddress': undefined,
- 'createMarginLoan': true,
'createOrder': true,
'createReduceOnlyOrder': undefined,
'createStopLimitOrder': true,
@@ -100,7 +100,7 @@ module.exports = class okx extends Exchange {
'fetchWithdrawals': true,
'fetchWithdrawalWhitelist': undefined,
'reduceMargin': true,
- 'repayMarginLoan': true,
+ 'repayMargin': true,
'setLeverage': true,
'setMarginMode': true,
'setPositionMode': true,
@@ -5168,15 +5168,12 @@ module.exports = class okx extends Exchange {
};
}
- async createMarginLoan (code, amount, symbol = undefined, params = {}) {
+ async borrowMargin (code, amount, symbol = undefined, params = {}) {
await this.loadMarkets ();
const currency = this.currency (code);
- if (symbol !== undefined) {
- amount = this.amountToPrecision (symbol, amount);
- }
const request = {
'ccy': currency['id'],
- 'amt': amount,
+ 'amt': this.currencyToPrecision (code, amount),
'side': 'borrow',
};
const response = await this.privatePostAccountBorrowRepay (this.extend (request, params));
@@ -5205,15 +5202,12 @@ module.exports = class okx extends Exchange {
});
}
- async repayMarginLoan (code, amount, symbol = undefined, params = {}) {
+ async repayMargin (code, amount, symbol = undefined, params = {}) {
await this.loadMarkets ();
const currency = this.currency (code);
- if (symbol !== undefined) {
- amount = this.amountToPrecision (symbol, amount);
- }
const request = {
'ccy': currency['id'],
- 'amt': amount,
+ 'amt': this.currencyToPrecision (code, amount),
'side': 'repay',
};
const response = await this.privatePostAccountBorrowRepay (this.extend (request, params));
| 10 |
diff --git a/frontend/imports/ui/client/widgets/offermodal.html b/frontend/imports/ui/client/widgets/offermodal.html <th>OWNER</th>
<td><span class="owner-address">{{address}}</span></td>
</tr>
- <tr class="row-data-line">
- <th>Price</th>
- <td>{{{formatNumber offerPrice '' true}}} <span class="quote-currency">{{quoteCurrency}}</span></td>
+ <tr class="row-input-line">
+ <th>PRICE</th>
+ <td><input type="number" class="input" step="any" min="0" {{b "value: offerPrice, input: calcNewOfferTotal"}}> <span class="span-offer-currency">{{quoteCurrency}}</span></td>
</tr>
<tr class="row-input-line">
<th>VOLUME</th>
| 11 |
diff --git a/src/content/en/fundamentals/performance/optimizing-content-efficiency/automating-image-optimization/index.md b/src/content/en/fundamentals/performance/optimizing-content-efficiency/automating-image-optimization/index.md @@ -2,8 +2,9 @@ project_path: /web/fundamentals/_project.yaml
book_path: /web/fundamentals/_book.yaml
description: Image formats!
-{# wf_updated_on: 2017-12-07 #}
+{# wf_updated_on: 2017-12-15 #}
{# wf_published_on: 2017-11-16 #}
+{# wf_blink_components: Blink>Image,Internals>Images,Internals>Images>Codecs #}
# Automating image optimization {: .page-title }
@@ -1458,8 +1459,8 @@ data to achieve better compression.
* Use [ffmpeg](https://www.ffmpeg.org/) to convert your animated GIFs (or
sources) to H.264 MP4s. I use this one-liner from[
Rigor](http://rigor.com/blog/2015/12/optimizing-animated-gifs-with-html5-video):
- ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf
- "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
+ `ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf
+ "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4`
* ImageOptim API also supports [converting animated gifs to WebM/H.264
video](https://imageoptim.com/api/ungif), [removing dithering from
GIFs](https://github.com/pornel/undither#examples) which can help video
@@ -2399,7 +2400,7 @@ operations](https://docs.imgix.com/apis/url?_ga=2.52377449.1538976134.1501179780
against Guetzli as a default)
* Strips all associated metadata from the transformed image file (the original
image is left untouched). To override this behavior and deliver a
- transformed image with its metadata intact, add the keep_iptc flag.
+ transformed image with its metadata intact, add the `keep_iptc` flag.
* Can generate WebP, GIF, JPEG, and JPEG-XR formats with automatic quality. To
override the default adjustments, set the quality parameter in your
transformation.
@@ -2495,7 +2496,7 @@ default
[session_cache_limiter](http://php.net/manual/en/function.session-cache-limiter.php)
setting. This can be a disaster for image caching and you may want to [work
around](https://stackoverflow.com/a/3905468) this by setting
-session_cache_limiter('public') which will set public, max-age=. Disabling and
+session_cache_limiter('public') which will set `public, max-age=`. Disabling and
setting custom cache-control headers is also fine.
## Preloading critical image assets {: #preload-critical-image-assets }
| 7 |
diff --git a/stats.js b/stats.js * @author jetienne / http://jetienne.com/
*/
+import metaversefile from 'metaversefile';
+const {useLocalPlayer} = metaversefile;
export var Stats = function () {
@@ -11,6 +13,7 @@ export var Stats = function () {
var frames = 0;
var beginTime = Date.now();
var lastTime = beginTime;
+ var localPlayer = useLocalPlayer();
var container = document.createElement( 'div' );
container.style.cssText = 'width:120px;opacity:0.9;cursor:pointer';
@@ -26,7 +29,7 @@ export var Stats = function () {
msDiv.appendChild( msText );
var msTexts = [];
- var nLines = 5;
+ var nLines = 8;
for(var i = 0; i < nLines; i++){
msTexts[i] = document.createElement( 'div' );
msTexts[i].style.cssText = 'color:white;background-color:rgba(0,0,0,0.3);;font-family:Helvetica,Arial,sans-serif;font-size:13px;line-height:15px';
@@ -42,10 +45,17 @@ export var Stats = function () {
update: function(webGLRenderer){
frames++;
- if (Date.now() > lastTime + 1000) {
+ var i = 0;
+ // Update every frame
+ if(localPlayer) {
+ msTexts[i++].textContent = "X: " + localPlayer.position.x.toFixed( 2 );
+ msTexts[i++].textContent = "Y: " + localPlayer.position.y.toFixed( 2 );
+ msTexts[i++].textContent = "Z: " + localPlayer.position.z.toFixed( 2 );
+ }
- var i = 0;
+ // Only update once per second
+ if (Date.now() > lastTime + 1000) {
msTexts[i++].textContent = "FPS: " + Math.round((frames * 1000) / (Date.now() - lastTime));
msTexts[i++].textContent = "== Memory =====";
msTexts[i++].textContent = "Programs: " + webGLRenderer.info.programs.length;
| 0 |
diff --git a/lib/route/feed.js b/lib/route/feed.js @@ -66,7 +66,7 @@ router.get('/:token/ical.ics', function(req, res){
});
} else {
- cal.name(user.full_name() + ' team');
+ cal.name(`${ user.full_name() }'s team whereabout`);
// Get the list of month deltas in relation to current month, to we can calculate
// moths for which to build the feed
| 10 |
diff --git a/assets/js/modules/analytics/common/account-select.js b/assets/js/modules/analytics/common/account-select.js @@ -34,7 +34,6 @@ export default function AccountSelect() {
const accounts = useSelect( ( select ) => select( STORE_NAME ).getAccounts() ) || [];
const accountID = useSelect( ( select ) => select( STORE_NAME ).getAccountID() );
const hasExistingTag = useSelect( ( select ) => select( STORE_NAME ).hasExistingTag() );
- const { accountID: existingTagAccountID } = useSelect( ( select ) => select( STORE_NAME ).getExistingTag() ) || {};
const { setAccountID } = useDispatch( STORE_NAME );
const onChange = useCallback( ( index, item ) => {
@@ -46,7 +45,7 @@ export default function AccountSelect() {
className="googlesitekit-analytics__select-account"
enhanced
name="accounts"
- value={ existingTagAccountID || accountID }
+ value={ accountID }
onEnhancedChange={ onChange }
label={ __( 'Account', 'google-site-kit' ) }
disabled={ hasExistingTag }
| 2 |
diff --git a/token-metadata/0x9903A4Cd589DA8e434f264deAFc406836418578E/metadata.json b/token-metadata/0x9903A4Cd589DA8e434f264deAFc406836418578E/metadata.json "symbol": "FIRST",
"address": "0x9903A4Cd589DA8e434f264deAFc406836418578E",
"decimals": 4,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/README.md b/README.md @@ -29,12 +29,18 @@ It runs directly on the vacuum and requires no cloud connection whatsoever.
### Getting started
-You'll find information on how to install valetudo in the deployment folder.
-
-If your vacuum is already rooted **and you know what you're doing**
-just download the latest valetudo binary from the releases page and scp it to `/usr/local/bin/`.
-Then grab the `valetudo.conf` from the deployment folder put it inside `/etc/init/`
- run `service valetudo start` and you're good. Don't forget to `chmod +x` the binary.
+You'll find information on how to install/build valetudo in the deployment folder.
+
+If your vacuum is already rooted **and you know what you're doing** just:
+1. download the latest valetudo binary from the releases page or build it from source.
+2. scp it to `/usr/local/bin/`.
+3. grab the `valetudo.conf` from the deployment folder put it inside `/etc/init/`.
+4. run `service valetudo start` and you're good. Don't forget to `chmod +x /usr/local/bin/valetudo` the binary.
+
+#### Updating to newer versions
+1. Stop the running service `service valetudo stop`.
+2. Replace the binary `/usr/local/bin/valetudo` by the new one (make sure to `chmod +x` it).
+3. Start the service again `service valetudo start`.
### Remote API
If you are looking forward getting support for the map on any other device (like OpenHab, FHEM,..), this is now supported using Valetudo.
| 7 |
diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/understand-string-immutability/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/understand-string-immutability/index.md @@ -3,8 +3,19 @@ title: Understand String Immutability
---
## Understand String Immutability
-This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/javascript-algorithms-and-data-structures/basic-javascript/understand-string-immutability/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
+## Problem Explanation
+Correct the assignment to ```myStr``` so it contains the string value of ```Hello World``` using the approach shown in the example above.
-<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
+## Hint
+Instead of ```Jello World ```, ```myStr``` should be assigned ```Hello World```.
-<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
+ ## Spoiler Alert! Solution ahead.
+**Solution**
+```javascript
+// Setup
+var myStr = "Jello World";
+ // Only change code below this line
+ myStr = "Hello World";
+```
+ ## Code Explanation
+String literals such as ```"Jello World"``` cannot be changed by the individual letter (hence being *immutable*), so the variable containing the incorrect string must be replaced with the desired string using the assignment operator ```=```
| 14 |
diff --git a/__tests__/frozen.js b/__tests__/frozen.js "use strict"
import deepFreeze from "deep-freeze"
-import produce, {setUseProxies} from "../src/"
+import produce, {setUseProxies, setAutoFreeze} from "../src/"
runTests("proxy", true)
runTests("es5", false)
@@ -8,6 +8,8 @@ runTests("es5", false)
function runTests(name, useProxies) {
describe("auto freeze - " + name, () => {
setUseProxies(useProxies)
+ setAutoFreeze(true)
+
const baseState = {
object: {a: 1},
array: [1, 2]
| 1 |
diff --git a/articles/cms/wordpress/jwt-authentication.md b/articles/cms/wordpress/jwt-authentication.md @@ -4,7 +4,7 @@ description: Explains how to install the WordPress JWT Authentication and integr
# Wordpress JWT Authentication
-Auth0 provides a plugin to enable JWT authentication for your APIs. It is compatible with any API that uses the `determine_current_user` function to retrieve the logged in user (such as [WP REST API](https://wordpress.org/plugins/json-rest-api/)).
+Auth0 provides a plugin to enable [JWT](/jwt) authentication for your APIs. It is compatible with any API that uses the `determine_current_user` function to retrieve the logged in user (such as [WP REST API](https://wordpress.org/plugins/json-rest-api/)).
## Installation
@@ -20,7 +20,7 @@ Auth0 provides a plugin to enable JWT authentication for your APIs. It is compat
## Integration with Auth0 plugin
-If the WordPress JWT Authentication plugin is installed and enabled, the latest version of the Auth0 plugin will give you the option to configure the WordPress plugin automatically, setting your *client id*, *client secret* and the *Auth0 User Repository*.
+If the [WordPress JWT Authentication](/cms/wordpress/how-does-it-work) plugin is installed and enabled, the latest version of the Auth0 plugin will give you the option to configure the WordPress plugin automatically, setting your *client id*, *client secret* and the *Auth0 User Repository*.
## Authenticating requests
| 0 |
diff --git a/src/client/js/components/PageEditor/LinkEditModal.jsx b/src/client/js/components/PageEditor/LinkEditModal.jsx @@ -50,7 +50,7 @@ class LinkEditModal extends React.PureComponent {
this.toggleIsUsePamanentLink = this.toggleIsUsePamanentLink.bind(this);
this.save = this.save.bind(this);
this.generateLink = this.generateLink.bind(this);
- this.getPageWithLinkInputValue = this.getPageWithLinkInputValue.bind(this);
+ this.getPreviewWithLinkInputValue = this.getPreviewWithLinkInputValue.bind(this);
this.renderPreview = this.renderPreview.bind(this);
}
@@ -58,7 +58,7 @@ class LinkEditModal extends React.PureComponent {
const { linkInputValue: prevLinkInputValue } = prevState;
const { linkInputValue } = this.state;
if (linkInputValue !== prevLinkInputValue) {
- this.getPageWithLinkInputValue(linkInputValue);
+ this.getPreviewWithLinkInputValue(linkInputValue);
}
}
@@ -162,7 +162,7 @@ class LinkEditModal extends React.PureComponent {
this.hide();
}
- async getPageWithLinkInputValue(path) {
+ async getPreviewWithLinkInputValue(path) {
let markdown = '';
let permalink = '';
let isEnablePermanentLink = false;
| 10 |
diff --git a/src/sections/Meshery/Meshery-integrations/IntegrationsGrid.js b/src/sections/Meshery/Meshery-integrations/IntegrationsGrid.js @@ -50,13 +50,12 @@ const IntegrationsGrid = ({ category, theme, count }) => {
];
const categoryCount = (categoryName) => {
- let k = 0;
- IntegrationList.map((integration) => {
+ return IntegrationList.reduce((count, integration) => {
if (integration.frontmatter.category === categoryName){
- k++;
+ count += 1;
}
- });
- return k;
+ return count;
+ }, 0);
};
let [categoryNameList ,setcategoryNameList] = useState([{ id: -1,
| 14 |
diff --git a/lib/assets/core/javascripts/cartodb3/editor/editor-pane.js b/lib/assets/core/javascripts/cartodb3/editor/editor-pane.js @@ -342,6 +342,7 @@ module.exports = CoreView.extend({
switch (this._mapTabPaneView.getSelectedTabPaneName()) {
case 'widgets':
+ this._tooltipTitle = String;
if (this._widgetDefinitionsCollection.size()) {
this._showAddButton();
}
| 2 |
diff --git a/src/component/parent/props.js b/src/component/parent/props.js @@ -28,6 +28,10 @@ export function normalizeProp(component, instance, props, key, value) {
value = prop.decorate(value);
}
+ if (prop.value) {
+ value = prop.value;
+ }
+
if (prop.getter) {
if (!value) {
| 11 |
diff --git a/templates/formlibrary/filter.html b/templates/formlibrary/filter.html <span class="fa {% if program_id == 0 %} fa-angle-down {% else %} fa-filter {% endif %}"></span>
</button>
<ul class="dropdown-menu">
- <li class="{% if program_id == 0 %} active {% endif %}"><a href="/formlibrary/{{form_component}}/0/0/">--All--</a></li>
+ <li class="{% if program_id == 0 %} active {% endif %}"><a href="/formlibrary/{{form_component}}/0/{{training_id}}/">--All--</a></li>
{% for program in get_programs %}
{% if program.name %}
<li class="{% if program_id == program.id %} active {% endif %}">
- <a href="/formlibrary/{{form_component}}/{{ program.id }}/0/">{{ program.name | truncatechars:30 }}</a>
+ <a href="/formlibrary/{{form_component}}/{{ program.id }}/{{training_id}}/">{{ program.name | truncatechars:30 }}</a>
</li>
{% endif %}
{% endfor %}
| 3 |
diff --git a/src/utils/emoji-data.js b/src/utils/emoji-data.js @@ -226,7 +226,14 @@ export class EmojiIndex {
}
emoji(emojiId) {
- return this._emojis[emojiId]
+ if (this._data.aliases.hasOwnProperty(emojiId)) {
+ emojiId = this._data.aliases[emojiId]
+ }
+ let emoji = this._emojis[emojiId]
+ if (!emoji) {
+ throw new Error('Can not find emoji by id: ' + emojiId)
+ }
+ return emoji
}
search(value, maxResults) {
| 7 |
diff --git a/token-metadata/0xF970b8E36e23F7fC3FD752EeA86f8Be8D83375A6/metadata.json b/token-metadata/0xF970b8E36e23F7fC3FD752EeA86f8Be8D83375A6/metadata.json "symbol": "RCN",
"address": "0xF970b8E36e23F7fC3FD752EeA86f8Be8D83375A6",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/lib/waterline/methods/find-or-create.js b/lib/waterline/methods/find-or-create.js @@ -251,6 +251,6 @@ module.exports = function findOrCreate( /* criteria?, newRecord?, done?, meta? *
// > Note we set the `wasCreated` flag to `true` in this case.
return done(undefined, createdRecord, true);
- }, _.extend({fetch: true}, query.meta));//</.create()>
+ }, _.extend({fetch: true}, query.meta || {}));//</.create()>
}, query.meta);//</.findOne()>
};
| 0 |
diff --git a/tests/e2e/mu-plugins/e2e-assets.php b/tests/e2e/mu-plugins/e2e-assets.php @@ -17,7 +17,7 @@ add_action(
}
wp_enqueue_script(
- 'googlesitekit-e2e',
+ 'googlesitekit-e2e-utilities',
plugins_url( 'dist/assets/js/e2e-utilities.js', GOOGLESITEKIT_PLUGIN_MAIN_FILE ),
array(),
md5_file( plugin_dir_path( GOOGLESITEKIT_PLUGIN_MAIN_FILE ) . 'dist/assets/js/e2e-utilities.js' ),
@@ -25,7 +25,7 @@ add_action(
);
wp_add_inline_script(
- 'googlesitekit-e2e',
+ 'googlesitekit-e2e-utilities',
implode(
"\n",
array(
| 10 |
diff --git a/token-metadata/0x8515cD0f00aD81996d24b9A9C35121a3b759D6Cd/metadata.json b/token-metadata/0x8515cD0f00aD81996d24b9A9C35121a3b759D6Cd/metadata.json "symbol": "BURN",
"address": "0x8515cD0f00aD81996d24b9A9C35121a3b759D6Cd",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/plugins/proxy/index.js b/src/plugins/proxy/index.js @@ -19,16 +19,16 @@ export function prepareConfig(config) {
const swarmEnabled = config.swarm === true;
config.app.env = config.app.env || {};
+ config.app.docker = config.app.docker || {};
if (!swarmEnabled) {
config.app.env = addProxyEnv(config, config.app.env);
+ config.app.env.VIRTUAL_PORT = config.app.docker.imagePort || 3000;
}
config.app.env.HTTP_FORWARDED_COUNT =
config.app.env.HTTP_FORWARDED_COUNT || 1;
- config.app.docker = config.app.docker || {};
-
if (swarmEnabled) {
config.app.docker.networks = config.app.docker.networks || [];
config.app.docker.networks.push('mup-proxy');
| 12 |
diff --git a/runtime.js b/runtime.js @@ -24,7 +24,7 @@ const importMap = {
const _clone = o => JSON.parse(JSON.stringify(o));
// const thingFiles = {};
-const _loadGltf = async file => {
+const _loadGltf = async (file, {raw = false} = {}) => {
// const u = `${storageHost}/${hash}`;
const u = URL.createObjectURL(file);
let o;
@@ -39,6 +39,9 @@ const _loadGltf = async file => {
}
o = o.scene;
+ if (raw) {
+ return o;
+ } else {
const specs = [];
o.traverse(o => {
if (o.isMesh) {
@@ -71,6 +74,7 @@ const _loadGltf = async file => {
// EXT_hash: hash,
};
return mesh;
+ }
/* const u = URL.createObjectURL(file);
let o;
@@ -365,12 +369,12 @@ const _loadWebBundle = async file => {
return mesh;
};
-runtime.loadFile = async file => {
+runtime.loadFile = async (file, {raw = false} = {}) => {
switch (getExt(file.name)) {
case 'gltf':
case 'glb':
case 'vrm': {
- return await _loadGltf(file);
+ return await _loadGltf(file, {raw});
}
case 'vox': {
return await _loadVox(file);
| 0 |
diff --git a/lib/modules/apostrophe-schemas/index.js b/lib/modules/apostrophe-schemas/index.js @@ -977,12 +977,13 @@ module.exports = {
converters: {
string: function(req, data, name, object, field, callback) {
object[name] = self.apos.launder.string(data[name], field.def);
- if (field.required && field.min && (object[name].length < field.min)) {
+ if (object[name] && field.min && (object[name].length < field.min)) {
// Would be unpleasant, but shouldn't happen since the browser
// also implements this. We're just checking for naughty scripts
return callback('min');
}
- if (field.max && (object[name].length > field.max)) {
+ // If max is longer than allowed, trim the value down to the max length
+ if (object[name] && field.max && (object[name].length > field.max)) {
object[name] = object[name].substr(0, field.max);
}
return setImmediate(callback);
| 7 |
diff --git a/includes/Modules/TagManager.php b/includes/Modules/TagManager.php @@ -32,16 +32,6 @@ final class TagManager extends Module implements Module_With_Scopes {
const OPTION = 'googlesitekit_tagmanager_settings';
- /**
- * Temporary storage for very specific data for 'list-accounts' datapoint.
- *
- * Bad to have, but works for now.
- *
- * @since 1.0.0
- * @var array|null
- */
- private $_list_accounts_data = null;
-
/**
* Temporary storage for requested account ID while retrieving containers.
*
@@ -359,9 +349,6 @@ final class TagManager extends Module implements Module_With_Scopes {
return $option['containerId'];
};
case 'accounts-containers':
- if ( ! empty( $data['accountId'] ) ) {
- $this->_list_accounts_data = $data;
- }
$service = $this->get_service( 'tagmanager' );
return $service->accounts->listAccounts();
case 'containers':
@@ -502,9 +489,8 @@ final class TagManager extends Module implements Module_With_Scopes {
if ( 0 === count( $response['accounts'] ) ) {
return $response;
}
- if ( is_array( $this->_list_accounts_data ) && isset( $this->_list_accounts_data['accountId'] ) ) {
- $account_id = $this->_list_accounts_data['accountId'];
- $this->_list_accounts_data = null;
+ if ( $data['accountId'] ) {
+ $account_id = $data['accountId'];
} else {
$account_id = $response['accounts'][0]->getAccountId();
}
| 2 |
diff --git a/lib/builder.js b/lib/builder.js @@ -37,7 +37,12 @@ export default class Builder {
parseLogFile (jobState) {
const logFilePath = this.resolveLogFilePath(jobState)
if (fs.existsSync(logFilePath)) {
- const parser = this.getLogParser(logFilePath, jobState.getTexFilePath())
+ let filePath = jobState.getTexFilePath()
+ // Use main source path if the generated LaTeX file is missing. This will
+ // enable log parsing and finding the project root to continue without the
+ // generated LaTeX file.
+ if (!filePath) filePath = jobState.getFilePath()
+ const parser = this.getLogParser(logFilePath, filePath)
const result = parser.parse()
if (result) {
if (result.messages) {
| 8 |
diff --git a/includes/Modules/Site_Verification.php b/includes/Modules/Site_Verification.php @@ -150,6 +150,8 @@ final class Site_Verification extends Module implements Module_With_Scopes {
$sites = array();
if ( ! empty( $site['verified'] ) ) {
+ $this->authentication->verification()->set( true );
+
return $site;
} else {
$token = $this->get_data( 'verification-token', $data );
| 12 |
diff --git a/packages/remark-abbr/README.md b/packages/remark-abbr/README.md @@ -10,7 +10,7 @@ An abbreviation works the same as footnotes:
This plugin works on MDAST, a Markdown AST
implemented by [remark](https://github.com/wooorm/remark)
-*[HAST]: Markdown Abstract Syntax Tree.
+*[MDAST]: Markdown Abstract Syntax Tree.
*[AST]: Abstract syntax tree
```
| 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.