code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/lib/helpers/populate/assignVals.js b/lib/helpers/populate/assignVals.js @@ -130,7 +130,7 @@ module.exports = function assignVals(o) {
docs[i].populated(_path, o.justOne ? originalIds[0] : originalIds, o.allOptions);
// If virtual populate and doc is already init-ed, need to walk through
// the actual doc to set rather than setting `_doc` directly
- mpath.set(_path, valueToSet, docs[i], setValue);
+ mpath.set(_path, valueToSet, docs[i], void 0, setValue, false);
continue;
}
| 1 |
diff --git a/assets/js/modules/analytics/setup.js b/assets/js/modules/analytics/setup.js @@ -103,7 +103,6 @@ class AnalyticsSetup extends Component {
errorReason: err.data && err.data.reason ? err.data.reason : false,
}
);
- data.deleteCache( 'analytics', 'existingTag' );
}
} else {
await this.getAccounts();
| 2 |
diff --git a/includes/Modules/Analytics.php b/includes/Modules/Analytics.php @@ -598,7 +598,7 @@ final class Analytics extends Module implements Module_With_Screen, Module_With_
'dimensions' => array( $title_dimension, $path_dimension ),
'start_date' => $date_range[0],
'end_date' => $date_range[1],
- 'page' => ! empty( $data['pageUrl'] ) ? $data['pageUrl'] : ( ! empty( $data['url'] ) ? $data['url'] : '' ),
+ 'page' => ! empty( $data['url'] ) ? $data['url'] : '',
'row_limit' => isset( $data['limit'] ) ? $data['limit'] : 10,
)
);
| 2 |
diff --git a/src/pages/MetricDocs/Documentation/Documentation.js b/src/pages/MetricDocs/Documentation/Documentation.js @@ -45,7 +45,7 @@ const AreaTypes = {
};
-const Markdown: ComponentType<*> = ({ payload }) => {
+const Markdown: ComponentType<*> = ({ payload, className="" }) => {
const data = useMarkdown(payload ? payload.replace(/([#]+)/g, '###$1') : null);
@@ -53,24 +53,24 @@ const Markdown: ComponentType<*> = ({ payload }) => {
else if ( !data ) return <Loading/>;
return <MarkdownContent
- className={ "govuk-body markdown page" }
+ className={ `govuk-body markdown page ${className}` }
dangerouslySetInnerHTML={ { __html: data } }
/>;
}; // Markdown
-const Introduction: ComponentType<*> = ({ data }) => {
+const Summary: ComponentType<*> = ({ data }) => {
if ( !data ) return null;
return <section>
- <h3 className={ "govuk-heading-m" }>Introduction</h3>
- <Markdown payload={ data?.body }/>
+ <h3 className={ "govuk-heading-m" }>Summary</h3>
+ <Markdown payload={ data?.body } className={ "no-left-margin" }/>
<hr className={ "govuk-section-break govuk-section-break--l" }/>
</section>;
-}; // Introduction
+}; // Summary
const AssociatingLogs: ComponentType<*> = ({ data }) => {
@@ -251,7 +251,7 @@ const MetricDocumentation: ComponentType<*> = ({}) => {
</header>
<Container>
<MainContent style={{ borderTop: "none" }}>
- <Introduction data={ data.documentation?.abstract }/>
+ <Summary data={ data.documentation?.abstract }/>
<AdditionalDetails documentation={ data.documentation }/>
<hr className={ "govuk-section-break govuk-section-break--l" }/>
<AssociatingLogs data={ data?.logs }/>
| 10 |
diff --git a/src/ui/analytics.js b/src/ui/analytics.js @@ -8,6 +8,7 @@ import ElectronCookies from '@exponent/electron-cookies';
// @endif
const isProduction = process.env.NODE_ENV === 'production';
+const devInternalApis = process.env.LBRY_API_URL;
type Analytics = {
pageView: string => void,
@@ -48,7 +49,7 @@ const analytics: Analytics = {
// @endif
},
apiLogView: (uri, outpoint, claimId, timeToStart) => {
- if (analyticsEnabled && isProduction) {
+ if (analyticsEnabled && (isProduction || devInternalApis)) {
const params: {
uri: string,
outpoint: string,
| 11 |
diff --git a/components/layersviewer/layersviewer.js b/components/layersviewer/layersviewer.js @@ -533,8 +533,7 @@ LayersViewer.prototype.addItems = function(data, type) {
if (loadingIcon) loadingIcon.parentNode.removeChild(loadingIcon);
if (type=='human' || type=='ruler') {
- this.searchBar.elt.style.display = null;
- this.searchList.style.display = null;
+ this.toggleSearchPanel();
const chk = typeData.elt.querySelector('input[type=checkbox]');
chk.style.display = '';
}
@@ -860,7 +859,11 @@ LayersViewer.prototype.update = function() {
*/
LayersViewer.prototype.__search = function(e) {
// show all li with leaf class
- const human = this.setting.categoricalData['human'].items;
+ const human = [];
+ for (const [key, data] of Object.entries(this.setting.categoricalData['human'].items)) {
+ human.push(...data.items)
+ }
+
const ruler = this.setting.categoricalData['ruler'].items;
const heatmap = this.setting.categoricalData['heatmap'].items;
const segmentation = this.setting.categoricalData['segmentation'].items;
@@ -868,7 +871,6 @@ LayersViewer.prototype.__search = function(e) {
list.forEach((data) => {
data.elt.style.display = 'flex';
- // item.sortItem.style.display='flex';
});
const pattern = this.searchBar.text.value;
| 1 |
diff --git a/src/js/L.PM.Map.js b/src/js/L.PM.Map.js @@ -27,7 +27,7 @@ const Map = L.Class.extend({
},
removeLayer(e) {
const layer = e.target;
- if(!layer._layers && !layer.pm.dragging()) {
+ if(!layer._layers && (!layer.pm || !layer.pm.dragging())) {
e.target.remove();
}
},
| 1 |
diff --git a/app/models/user.rb b/app/models/user.rb @@ -764,9 +764,6 @@ class User < Sequel::Model
end
def get_database(options, configuration)
- db_config = Rails.configuration.database_configuration[Rails.env]
- configuration[:connect_timeout] = db_config['connect_timeout']
-
::Sequel.connect(configuration.merge(after_connect: (proc do |conn|
unless options[:as] == :cluster_admin
conn.execute(%{ SET search_path TO #{db_service.build_search_path} })
| 2 |
diff --git a/src/page/home/sidebar/SidebarLinks.js b/src/page/home/sidebar/SidebarLinks.js @@ -2,7 +2,7 @@ import React from 'react';
import {View} from 'react-native';
import _ from 'underscore';
import PropTypes from 'prop-types';
-import lodashOrderBy from 'lodash.orderBy';
+import { lodashOrderBy } from 'lodash.orderby'
import styles from '../../../style/StyleSheet';
import Text from '../../../components/Text';
import SidebarLink from './SidebarLink';
| 4 |
diff --git a/src/components/selections/select.js b/src/components/selections/select.js @@ -350,7 +350,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
fillRangeItems(eventData, poly);
- gd.emit('plotly_selecting', eventData);
+ emitSelecting(gd, eventData);
}
);
}
@@ -381,7 +381,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
clearSelectionsCache(dragOptions);
- gd.emit('plotly_deselect', null);
+ emitDeselect(gd);
if(searchTraces.length) {
var clickedXaxis = searchTraces[0].xaxis;
@@ -419,7 +419,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
// but in case anyone depends on it we don't want to break it now.
// Note that click-to-select introduced pre v3 also emitts proper
// event data when clickmode is having 'select' in its flag list.
- gd.emit('plotly_selected', undefined);
+ emitSelected(gd, undefined);
}
}
@@ -452,7 +452,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
}
eventData.selections = gd.layout.selections;
- gd.emit('plotly_selected', eventData);
+ emitSelected(gd, eventData);
}).catch(Lib.error);
};
}
@@ -491,7 +491,7 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
clearSelectionsCache(dragOptions);
if(sendEvents) {
- gd.emit('plotly_deselect', null);
+ emitDeselect(gd);
}
} else {
subtract = evt.shiftKey &&
@@ -531,7 +531,7 @@ function selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutli
if(sendEvents) {
eventData.selections = gd.layout.selections;
- gd.emit('plotly_selected', eventData);
+ emitSelected(gd, eventData);
}
}
}
@@ -1196,7 +1196,7 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
}
eventData.selections = gd.layout.selections;
- gd.emit('plotly_selected', eventData);
+ emitSelected(gd, eventData);
}
fullLayout._reselect = false;
@@ -1217,7 +1217,7 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
if(sendEvents) {
if(eventData.points.length) {
eventData.selections = gd.layout.selections;
- gd.emit('plotly_selected', eventData);
+ emitSelected(gd, eventData);
} else {
gd.emit('plotly_deselect', null);
}
@@ -1506,6 +1506,17 @@ function getFillRangeItems(dragOptions) {
);
}
+function emitSelecting(gd, eventData) {
+ gd.emit('plotly_selecting', eventData);
+}
+
+function emitSelected(gd, eventData) {
+ gd.emit('plotly_selected', eventData);
+}
+
+function emitDeselect(gd) {
+ gd.emit('plotly_deselect', null);
+}
module.exports = {
reselect: reselect,
| 0 |
diff --git a/src/app.hooks.js b/src/app.hooks.js const auth = require('@feathersjs/authentication');
const { discard } = require('feathers-hooks-common');
const { NotAuthenticated } = require('@feathersjs/errors');
+const { DonationStatus } = require('./models/donations.model');
const { isRequestInternal } = require('./utils/feathersUtils');
const { responseLoggerHook, startMonitoring } = require('./hooks/logger');
@@ -22,7 +23,8 @@ const authenticate = () => context => {
if (
context.params.provider === 'socketio' &&
context.path === 'donations' &&
- context.method === 'create'
+ context.method === 'create' &&
+ context.data.status === DonationStatus.PENDING
) {
// for creating donations it's not needed to be authenticated, anonymous users can donate
return context;
| 11 |
diff --git a/htdocs/js/notebook/notebook_model.js b/htdocs/js/notebook/notebook_model.js @@ -44,7 +44,7 @@ Notebook.create_model = function()
if(user_appended){
asset_filenames.push(asset_model.change_object().filename);
- asset_filenames.sort();
+ asset_filenames.sort((a,b) => a.localeCompare(b, undefined, {sensitivity: 'base'}));
new_asset_index = asset_filenames.indexOf(asset_model.change_object().filename);
this.assets.splice(new_asset_index, 0, asset_model);
}
| 8 |
diff --git a/app/src/components/VideoContainers/VideoView.js b/app/src/components/VideoContainers/VideoView.js @@ -143,7 +143,8 @@ const styles = (theme) =>
color : 'rgba(255, 255, 255, 0.85)',
border : 'none',
borderBottom : '1px solid #aeff00',
- backgroundColor : 'transparent'
+ backgroundColor : 'rgba(0, 0, 0, 0.25)',
+ padding : theme.spacing(0.6)
},
displayNameStatic :
{
@@ -152,6 +153,8 @@ const styles = (theme) =>
fontSize : 14,
fontWeight : 400,
color : 'rgba(255, 255, 255, 0.85)',
+ backgroundColor : 'rgba(0, 0, 0, 0.25)',
+ padding : theme.spacing(0.6),
'&:hover' :
{
backgroundColor : 'rgb(174, 255, 0, 0.25)'
| 7 |
diff --git a/public/app/js/cbus-ui.js b/public/app/js/cbus-ui.js @@ -74,7 +74,7 @@ cbus.ui.display = function(thing, data) {
document.getElementsByClassName("player_detail_feed-title")[0].textContent = feed.title;
document.getElementsByClassName("player_detail_date")[0].textContent = moment(data.date).calendar();
- var descriptionFormatted = data.description.trim();
+ var descriptionFormatted = data.description ? data.description.trim() : "";
if (
descriptionFormatted.toLowerCase().indexOf("<br>") === -1 &&
descriptionFormatted.toLowerCase().indexOf("<br />") === -1 &&
| 1 |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -21,6 +21,9 @@ jobs:
- name: Install dependencies
run: npm ci
+ - name: Lint code
+ run: npm run lint
+
- name: Setup browser testing
uses: browserstack/github-actions/setup-env@master
with:
| 0 |
diff --git a/VisionOnEdge/EdgeSolution/modules/WebModule/ui/src/components/CameraConfigure/CameraConfigureInfo.tsx b/VisionOnEdge/EdgeSolution/modules/WebModule/ui/src/components/CameraConfigure/CameraConfigureInfo.tsx @@ -121,7 +121,7 @@ export const CameraConfigureInfo: React.FC<{ camera: Camera; projectId: number }
{project.prevConsequence && (
<>
<Text>Previous Model Metrics</Text>
- <ConsequenseInfo
+ <ConsequenceDashboard
precision={project.prevConsequence?.precision}
recall={project.prevConsequence?.recall}
mAP={project.prevConsequence?.mAP}
@@ -129,7 +129,7 @@ export const CameraConfigureInfo: React.FC<{ camera: Camera; projectId: number }
</>
)}
<Text>Updated Model Metrics</Text>
- <ConsequenseInfo
+ <ConsequenceDashboard
precision={project.curConsequence?.precision}
recall={project.curConsequence?.recall}
mAP={project.curConsequence?.mAP}
@@ -146,12 +146,12 @@ export const CameraConfigureInfo: React.FC<{ camera: Camera; projectId: number }
);
};
-interface ConsequenseInfoProps {
+interface ConsequenceDashboardProps {
precision: number;
recall: number;
mAP: number;
}
-const ConsequenseInfo: FC<ConsequenseInfoProps> = ({ precision, recall, mAP }) => {
+const ConsequenceDashboard: FC<ConsequenceDashboardProps> = ({ precision, recall, mAP }) => {
return (
<Grid columns={3}>
<div style={{ height: '5em', display: 'flex', flexFlow: 'column', justifyContent: 'space-between' }}>
@@ -159,7 +159,7 @@ const ConsequenseInfo: FC<ConsequenseInfoProps> = ({ precision, recall, mAP }) =
Precison
</Text>
<Text align="center" size="large" weight="semibold" styles={{ color: '#9a0089' }}>
- {precision}%
+ {precision === null ? '' : `${((precision * 1000) | 0) / 10}%`}
</Text>
</div>
<div style={{ height: '5em', display: 'flex', flexFlow: 'column', justifyContent: 'space-between' }}>
@@ -167,7 +167,7 @@ const ConsequenseInfo: FC<ConsequenseInfoProps> = ({ precision, recall, mAP }) =
Recall
</Text>
<Text align="center" size="large" weight="semibold" styles={{ color: '#0063b1' }}>
- {recall}%
+ {recall === null ? '' : `${((recall * 1000) | 0) / 10}%`}
</Text>
</div>
<div style={{ height: '5em', display: 'flex', flexFlow: 'column', justifyContent: 'space-between' }}>
@@ -175,7 +175,7 @@ const ConsequenseInfo: FC<ConsequenseInfoProps> = ({ precision, recall, mAP }) =
mAP
</Text>
<Text align="center" size="large" weight="semibold" styles={{ color: '#69c138' }}>
- {mAP}%
+ {mAP === null ? '' : `${((mAP * 1000) | 0) / 10}%`}
</Text>
</div>
</Grid>
| 10 |
diff --git a/lib/utils/accountParser.js b/lib/utils/accountParser.js @@ -31,6 +31,12 @@ class AccountParser {
hexBalance = getHexBalanceFromString(accountConfig.balance, web3);
//hexBalance = getHexBalanceFromString(accountConfig.balance, web3);
}
+
+ if (accountConfig.privateKey === 'random') {
+ let randomAccount = web3.eth.accounts.create();
+ accountConfig.privateKey = randomAccount.privateKey;
+ }
+
if (accountConfig.privateKey) {
if (!accountConfig.privateKey.startsWith('0x')) {
accountConfig.privateKey = '0x' + accountConfig.privateKey;
| 11 |
diff --git a/guides/cloudshell.md b/guides/cloudshell.md @@ -13,20 +13,29 @@ image:
thumb:
---
-One of the attractions of using the Azure Cloud Shell is that there is little configuration required. The containers for both Bash and PowerShell are evergreen, and you can access it from the portal, via <https://shell.azure.com>, from the Azure mobile app for iOS and Android, and also from VS Code using the Azure Account extension.
+One of the attractions of using the Azure Cloud Shell is that there is little configuration required. However the default colours are not the most readable, so feel free to use the commands below to change them.
-You cannot install software into the Bash Cloud Shell, but it has a number of [tools](https://docs.microsoft.com/en-gb/azure/cloud-shell/features#tools) preinstalled including az, azcopy, terraform, ansible, git, jq, docker, kubectl, helm, etc.
+## Cloud Shell Background
-There are two areas are persisted to the storage account that is automatically created when you use Cloud Shell for the first time:
+You can access the Cloud Shell from
+
+* the Azure portal (**>_**)
+* <https://shell.azure.com>
+* the Azure mobile app for iOS and Android
+* from VS Code using the Azure Account extension
+
+The Cloud Shell container image for Bash has a good number of [tools](https://docs.microsoft.com/en-gb/azure/cloud-shell/features#tools) preinstalled including az, azcopy, terraform, ansible, git, jq, docker, kubectl, helm, etc. The containers for both Bash and PowerShell are evergreen, so you never need to worry about updating the software packages. Which is good as you do not have sudo access, and you cannot install software.
+
+Two areas are persisted to the storage account that is automatically created when you use Cloud Shell for the first time:
1. /home/\<user> directory
2. /usr/\<user>/clouddrive (symlinked to ~/clouddrive/)
-Note that the clouddrive area is based on Azure Files, and therefore everything will show as 777. You can also upload files into the area via a number of tools including [Storage Explorer](https://azure.microsoft.com/en-gb/features/storage-explorer/).
+Note that the clouddrive area is based on Azure Files and mounted using SMB. All files and directories in that area will have 777 permissions as defined by the mount options, to keep the file ownership simple. You can upload files into the area via a number of tools including [Storage Explorer](https://azure.microsoft.com/en-gb/features/storage-explorer/).
## Configuring vi colours
-The default cloud shell colours for vim are difficult to read.
+The default cloud shell colours for vi are difficult to read.
As a quick fix you can type `Esc :` and then `colo delek` to switch to a more readable colourscheme.
@@ -46,15 +55,15 @@ This will download a .vim colourscheme file, and then create a .vimrc file to sp
## Configure the ls colours
-The default colour for listing directories which are world writeable (777) is a rather lurid blue on green, which should never be seen.
+The default colour for listing directories which are world writeable (777) is a rather lurid blue on green, which should never be seen. It is an intentionally garish combination designed to encourage you to specify a more appropriate permission. However, this is the enforced permission for the clouddrive files and directories. Here is how you can make listing the clouddrive a little less headache inducing.
-If you run the following commands then it will create a dircolors file for you to edit.
+Run the following commands to create a dircolors file.
```bash
umask 022
dircolors -p > ~/.dircolors
```
-You may then edit the ~/.dircolors file using vi or nano and change the `STICKY_OTHER_WRITABLE` and `OTHER_WRITABLE` values to something like `01;33` which will be bold yellow on black.
+You may then edit the new ~/.dircolors file using vi or nano and change the `STICKY_OTHER_WRITABLE` and `OTHER_WRITABLE` values to something like `01;33` which will be bold yellow on black.
-If you want to customise it further then the .dircolors file includes the codes and their impact.
\ No newline at end of file
+If you want to customise it differently then the .dircolors file includes the various codes and their impact.
\ No newline at end of file
| 7 |
diff --git a/js/lbank2.js b/js/lbank2.js @@ -444,13 +444,14 @@ module.exports = class lbank2 extends Exchange {
*/
await this.loadMarkets ();
const market = this.market (symbol);
+ if (limit === undefined) {
+ throw new ArgumentsRequired (this.id + ' fetchOrderBook () requires a limit argument');
+ }
const request = {
'symbol': market['id'],
+ 'size': limit,
};
- if (limit !== undefined) {
- request['limit'] = limit;
- }
- const response = await this.publicGetIncrDepth (this.extend (request, params));
+ const response = await this.publicGetDepth (this.extend (request, params));
const orderbook = response['data'];
const timestamp = this.milliseconds ();
return this.parseOrderBook (orderbook, symbol, timestamp);
| 4 |
diff --git a/OpenRobertaServer/staticResources/js/app/roberta/controller/robot.controller.js b/OpenRobertaServer/staticResources/js/app/roberta/controller/robot.controller.js @@ -83,7 +83,7 @@ define([ 'exports', 'util', 'log', 'message', 'guiState.controller', 'guiState.m
$('#single-modal label').text(Blockly.Msg["POPUP_VALUE"]);
$('#singleModalInput').addClass('capitalLetters');
$('#single-modal a[href]').text(Blockly.Msg["POPUP_STARTUP_HELP"]);
- $('#single-modal a[href]').attr("href", "https://wiki.open-roberta.org");
+ $('#single-modal a[href]').attr("href", "http://wiki.open-roberta.org");
}, function() {
setToken($('#singleModalInput').val().toUpperCase());
}, function() {
@@ -116,7 +116,7 @@ define([ 'exports', 'util', 'log', 'message', 'guiState.controller', 'guiState.m
$('#single-modal-list h3').text(Blockly.Msg["MENU_CONNECT"]);
$('#single-modal-list label').text(Blockly.Msg["POPUP_VALUE"]);
$('#single-modal-list a[href]').text(Blockly.Msg["POPUP_STARTUP_HELP"]);
- $('#single-modal-list a[href]').attr("href", "https://wiki.open-roberta.org");
+ $('#single-modal-list a[href]').attr("href", "http://wiki.open-roberta.org");
}, function() {
console.log(document.getElementById("singleModalListInput").value);
setPort(document.getElementById("singleModalListInput").value);
| 1 |
diff --git a/tests/phpunit/integration/Core/Modules/ModulesTest.php b/tests/phpunit/integration/Core/Modules/ModulesTest.php @@ -47,7 +47,7 @@ class ModulesTest extends TestCase {
$modules->get_available_modules()
);
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
array(
'adsense' => 'Google\\Site_Kit\\Modules\\AdSense',
'analytics' => 'Google\\Site_Kit\\Modules\\Analytics',
@@ -87,7 +87,7 @@ class ModulesTest extends TestCase {
// Analytics is no longer present due to the filter above.
// Optimize is no longer present due to its dependency on Analytics.
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
array(
'adsense' => 'Google\\Site_Kit\\Modules\\AdSense',
'analytics-4' => 'Google\\Site_Kit\\Modules\\Analytics_4',
@@ -112,7 +112,7 @@ class ModulesTest extends TestCase {
'pagespeed-insights' => 'Google\\Site_Kit\\Modules\\PageSpeed_Insights',
);
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
$always_on_modules + $default_active_modules,
array_map( 'get_class', $modules->get_active_modules() )
);
@@ -122,7 +122,7 @@ class ModulesTest extends TestCase {
// Active modules will fallback to legacy option if set.
update_option( 'googlesitekit-active-modules', array( 'analytics' ) );
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
$always_on_modules + array(
'analytics' => 'Google\\Site_Kit\\Modules\\Analytics',
'analytics-4' => 'Google\\Site_Kit\\Modules\\Analytics_4',
@@ -578,7 +578,7 @@ class ModulesTest extends TestCase {
$shareable_active_modules = array_map( 'get_class', $modules->get_shareable_modules() );
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
array(
'search-console' => 'Google\\Site_Kit\\Modules\\Search_Console',
'pagespeed-insights' => 'Google\\Site_Kit\\Modules\\PageSpeed_Insights',
@@ -595,7 +595,7 @@ class ModulesTest extends TestCase {
// Check shared ownership for modules activated by default.
$modules = new Modules( $context );
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
array(
'pagespeed-insights' => 'Google\\Site_Kit\\Modules\\PageSpeed_Insights',
),
@@ -624,7 +624,7 @@ class ModulesTest extends TestCase {
// Verify shared ownership for active and connected modules.
$modules = new Modules( $context );
- $this->assertEqualSets(
+ $this->assertSameSetsWithIndex(
array(
'idea-hub' => 'Google\\Site_Kit\\Modules\\Idea_Hub',
'pagespeed-insights' => 'Google\\Site_Kit\\Modules\\PageSpeed_Insights',
@@ -1306,7 +1306,7 @@ class ModulesTest extends TestCase {
'analytics' => 2,
'pagespeed-insights' => 0,
);
- $this->assertEqualSets( $expected_module_owners, $modules->get_shareable_modules_owners() );
+ $this->assertSameSetsWithIndex( $expected_module_owners, $modules->get_shareable_modules_owners() );
}
public function test_shared_ownership_module_default_settings() {
@@ -1326,10 +1326,10 @@ class ModulesTest extends TestCase {
);
$settings = apply_filters( 'option_' . Module_Sharing_Settings::OPTION, array() );
- $this->assertEqualSets( $expected, $settings );
+ $this->assertSameSetsWithIndex( $expected, $settings );
$settings = apply_filters( 'default_option_' . Module_Sharing_Settings::OPTION, array(), '', '' );
- $this->assertEqualSets( $expected, $settings );
+ $this->assertSameSetsWithIndex( $expected, $settings );
}
}
| 14 |
diff --git a/bundles/core-player-events/player-events.js b/bundles/core-player-events/player-events.js @@ -11,7 +11,7 @@ module.exports = (srcPath) => {
commandQueued: state => function (commandIndex) {
const command = this.commandQueue.queue[commandIndex];
const ttr = sprintf('%.1f', this.commandQueue.getTimeTilRun(commandIndex));
- Broadcast.sayAt(this, `<bold><yellow>Executing</yellow> '<white>${command.label}</white>' <yellow>in</yellow> <white>${ttr}</white> seconds.`);
+ Broadcast.sayAt(this, `<bold><yellow>Executing</yellow> '<white>${command.label}</white>' <yellow>in</yellow> <white>${ttr}</white> <yellow>seconds.</yellow>`);
},
updateTick: state => function () {
| 1 |
diff --git a/src/apps.json b/src/apps.json },
"Mobify": {
"cats": [
+ 6,
26
],
+ "headers": {
+ "X-Powered-By": "Mobify"
+ },
"icon": "Mobify.png",
"js": {
"Mobify": ""
},
- "script": "//cdn\\.mobify\\.com/",
+ "script": [
+ "//cdn\\.mobify\\.com/",
+ "//a\\.mobify\\.com/"
+ ],
"website": "https://www.mobify.com"
},
"Mobirise": {
| 7 |
diff --git a/src/algorithms/utils/exportResult.ts b/src/algorithms/utils/exportResult.ts @@ -41,7 +41,7 @@ export async function exportAll(params: AllParams, result: AlgorithmResult) {
console.error('Error: the results of the simulation cannot be exported because they are nondeterministic')
} else {
const path = 'covid.summary.tsv'
- zip.file(path, exportSimulation(trajectory, path))
+ zip.file(path, exportSimulation(trajectory))
}
const zipFile = await zip.generateAsync({ type: 'blob' })
| 4 |
diff --git a/articles/libraries/auth0js/v8/index.md b/articles/libraries/auth0js/v8/index.md @@ -213,11 +213,10 @@ var url = webAuth.client.buildAuthorizeUrl({
The `state` parameter, is not required, but it is recommended. It is an opaque value that Auth0 will send back to you. This method helps prevent CSRF attacks.
:::
-### Passwordless login
+## Passwordless Login
Passwordless authentication allows users to log in by receiving a one-time password via email or text message. The process will require you to start the Passwordless process, generating and dispatching a code to the user, (or a code within a link), followed by accepting their credentials via the verification method. That could happen in the form of a login screen which asks for their (email or phone number) and the code you just sent them. It could also be implemented in the form of a Passwordless link instead of a code sent to the user. They would simply click the link in their email or text and it would hit your endpoint and verify this data automatically using the same verification method (just without manual entry of a code by the user).
-
In order to use Passwordless, you will want to initialize Auth0.js with a `redirectUri` and to set the `responseType: 'token'`.
```js
@@ -229,7 +228,7 @@ var webAuth = new auth0.WebAuth({
});
```
-#### Start passwordless
+### Start Passwordless
The first step in Passwordless authentication with Auth0.js is the `passwordlessStart` method, which has several parameters which can be passed within its `options` object:
@@ -253,7 +252,7 @@ webAuth.passwordlessStart({
);
```
-#### Verify passwordless
+### Verify passwordless
If sending a code, you will then need to prompt the user to enter that code. You will process the code, and authenticate the user, with the `passwordlessVerify` method, which has several paramaters which can be sent in its `options` object:
@@ -283,7 +282,7 @@ webAuth.passwordlessVerify({
## Extract the authResult and Get User Info
-After authentication occurs, the `parseHash` method parses a URL hash fragment to extract the result of an Auth0 authentication response.
+After authentication occurs, you can use the `parseHash` method to parse a URL hash fragment when the user is redirected back to your application in order to extract the result of an Auth0 authentication response. You may choose to handle this in a callback page that will then redirect to your main application, or in-page, as the situation dictates.
The `parseHash` method takes an `options` object that contains the following parameters:
| 3 |
diff --git a/docs/index.md b/docs/index.md # Lightning Core Reference
-The Reference Documentation for Lightning Core contains detailed descriptions about various concepts of Lightning Core, which are:
+The Reference Documentation for Lightning Core contains detailed descriptions about various concepts of Lightning Core.
+## Table of Contents
+<!---TOC_start--->
* [Runtime Configuration](RuntimeConfig/index.md)
* [Render Engine](RenderEngine/index.md)
+ * [Render Tree](RenderEngine/RenderTree.md)
+ * [Elements](RenderEngine/Elements/index.md)
+ * [Positioning](RenderEngine/Elements/Positioning.md)
+ * [Rendering](RenderEngine/Elements/Rendering.md)
+ * [Transform](RenderEngine/Elements/Transform.md)
+ * [Children](RenderEngine/Elements/Children.md)
+ * [Texture Types](RenderEngine/Textures/index.md)
+ * [Rectangle](RenderEngine/Textures/Rectangle.md)
+ * [Image](RenderEngine/Textures/Image.md)
+ * [Text](RenderEngine/Textures/Text.md)
+ * [Toolbox](RenderEngine/Textures/Toolbox.md)
+ * [Canvas](RenderEngine/Textures/Canvas.md)
+ * [Custom](RenderEngine/Textures/Custom.md)
+ * [Shaders](RenderEngine/Shaders.md)
* [Components](Components/index.md)
+ * [Creation](Components/CompCreation.md)
+ * [Lifecycle Events](Components/LifecycleEvents.md)
+ * [Component States](Components/CompStates/index.md)
+ * [State Creation](Components/CompStates/StateCreation.md)
+ * [State Switching](Components/CompStates/SwitchingStates.md)
+ * [State Nesting](Components/CompStates/NestingStates.md)
+ * [Change Events](Components/CompStates/StateChEvents.md)
* [Templates](Templates/index.md)
+ * [Patching](Templates/Patching.md)
+ * [Tags](Templates/Tags.md)
+ * [Clipping](Templates/Clipping.md)
+ * [Flexbox](Templates/Flexbox.md)
+ * [Events](Templates/Events.md)
* [Remote Control Interaction](RemoteControl/index.md)
+ * [Key Handling](RemoteControl/KeyHandling.md)
+ * [Focus](RemoteControl/Focus.md)
* [Animations](Animations/index.md)
+ * [Attributes](Animations/Attributes.md)
+ * [Actions](Animations/Actions.md)
+ * [Action Value](Animations/ActionValue.md)
+ * [Value Smoothing](Animations/ValueSmoothing.md)
+ * [Methods](Animations/Methods.md)
+ * [Events](Animations/Events.md)
+* [Transitions](Transitions/index.md)
+ * [Attributes](Transitions/Attributes.md)
+ * [Methods](Transitions/Methods.md)
+ * [Events](Transitions/Events.md)
* [Communication](Communication/index.md)
+ * [Signal](Communication/Signal.md)
+ * [Fire Ancestors](Communication/FireAncestors.md)
+* [Accessibility](Accessibility/index.md)
+<!---TOC_start--->
\ No newline at end of file
| 0 |
diff --git a/src/js/createTippy.js b/src/js/createTippy.js @@ -342,9 +342,7 @@ export default function createTippy(reference, collectionProps) {
if (!instance.state.isVisible) {
lastTriggerEvent = event
- // Use the `mouseenter` event as a "mock" mousemove event for touch
- // devices
- if (isUsingTouch && includes(event.type, 'mouse')) {
+ if (event instanceof MouseEvent) {
lastMouseMoveEvent = event
}
}
@@ -579,6 +577,18 @@ export default function createTippy(reference, collectionProps) {
arrow.style.margin = ''
}
+ // Allow followCursor: 'initial' on touch devices
+ if (
+ isUsingTouch &&
+ lastMouseMoveEvent &&
+ instance.props.followCursor === 'initial'
+ ) {
+ positionVirtualReferenceNearCursor(lastMouseMoveEvent)
+ if (arrow) {
+ arrow.style.margin = '0'
+ }
+ }
+
afterPopperPositionUpdates(instance.popperInstance, callback)
const { appendTo } = instance.props
@@ -910,11 +920,6 @@ export default function createTippy(reference, collectionProps) {
instance.popperInstance.update()
}
- // Allow followCursor: 'initial' on touch devices
- if (isUsingTouch && instance.props.followCursor === 'initial') {
- positionVirtualReferenceNearCursor(lastMouseMoveEvent)
- }
-
applyTransitionDuration([instance.popper], props.updateDuration)
applyTransitionDuration(getInnerElements(), duration)
| 7 |
diff --git a/src/js/core/Utils.js b/src/js/core/Utils.js @@ -1005,7 +1005,6 @@ var Utils = {
return html;
};
- var Utils = this;
var html = "<div style='padding: 5px;'>" +
files.length +
" file(s) found</div>\n";
| 2 |
diff --git a/assets/js/googlesitekit-idea-hub-post-list-notice.js b/assets/js/googlesitekit-idea-hub-post-list-notice.js @@ -36,7 +36,7 @@ domReady( () => {
return;
}
const type = notice.id.replace( 'googlesitekit-notice-', '' );
- const expiresInSeconds = type === 'new-ideas' ? WEEK_IN_SECONDS : 0;
+ const expiresInSeconds = type === 'idea-hub_new-ideas' ? WEEK_IN_SECONDS : 0;
notice.addEventListener( 'click', ( event ) => {
if ( 'notice-dismiss' === event.target.className ) {
| 4 |
diff --git a/magda-web-server/src/index.ts b/magda-web-server/src/index.ts @@ -213,7 +213,7 @@ const topLevelRoutes = [
"sign-in-redirect",
"dataset",
"projects",
- "publishers"
+ "organisations"
];
topLevelRoutes.forEach(topLevelRoute => {
@@ -225,6 +225,14 @@ topLevelRoutes.forEach(topLevelRoute => {
});
});
+/**
+ * For whatever reason a user still requests /publishers, redirect to /organisations
+ */
+app.get("/publishers", function(req, res) {
+ //Redirect to static page
+ res.redirect("/organisations");
+});
+
app.get("/page/*", function(req, res) {
res.sendFile(path.join(clientBuild, "index.html"));
});
| 14 |
diff --git a/detox/android/detox/src/main/java/com/wix/detox/instruments/reflected/InstrumentsReflected.java b/detox/android/detox/src/main/java/com/wix/detox/instruments/reflected/InstrumentsReflected.java package com.wix.detox.instruments.reflected;
import android.content.Context;
-import android.util.Log;
import com.wix.detox.instruments.DetoxInstrumentsException;
import com.wix.detox.instruments.Instruments;
@@ -34,8 +33,6 @@ public class InstrumentsReflected implements Instruments {
methodGetInstanceOfProfiler = profilerClass.getDeclaredMethod("getInstance", Context.class);
methodStartRecording = profilerClass.getDeclaredMethod("startProfiling", Context.class, configurationClass);
} catch (Exception e) {
- Log.i("DetoxInstrumentsManager", "InstrumentsRecording not found", e);
-
constructorDtxProfilingConfiguration = null;
methodGetInstanceOfProfiler = null;
methodStartRecording = null;
| 2 |
diff --git a/package-lock.json b/package-lock.json }
},
"vue-loader-v16": {
- "version": "npm:[email protected]",
- "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-rc.2.tgz",
- "integrity": "sha512-cz8GK4dgIf1UTC+do80pGvh8BHcCRHLIQVHV9ONVQ8wtoqS9t/+H02rKcQP+TVNg7khgLyQV2+8eHUq7/AFq3g==",
+ "version": "npm:[email protected]",
+ "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.1.tgz",
+ "integrity": "sha512-wz/+HFg/3SBayHWAlZXARcnDTl3VOChrfW9YnxvAweiuyKX/7IGx1ad/4yJHmwhgWlOVYMAbTiI7GV8G33PfGQ==",
"dev": true,
"optional": true,
"requires": {
"esprima": "^4.0.0"
}
},
+ "js-yaml-loader": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/js-yaml-loader/-/js-yaml-loader-1.2.2.tgz",
+ "integrity": "sha512-H+NeuNrG6uOs/WMjna2SjkaCw13rMWiT/D7l9+9x5n8aq88BDsh2sRmdfxckWPIHtViYHWRG6XiCKYvS1dfyLg==",
+ "dev": true,
+ "requires": {
+ "js-yaml": "^3.13.1",
+ "loader-utils": "^1.2.3",
+ "un-eval": "^1.2.0"
+ }
+ },
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==",
"dev": true
},
+ "un-eval": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/un-eval/-/un-eval-1.2.0.tgz",
+ "integrity": "sha512-Wlj/pum6dQtGTPD/lclDtoVPkSfpjPfy1dwnnKw/sZP5DpBH9fLhBgQfsqNhe5/gS1D+vkZUuB771NRMUPA5CA==",
+ "dev": true
+ },
"undeclared-identifiers": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz",
| 3 |
diff --git a/config.js b/config.js @@ -9,6 +9,6 @@ module.exports = {
enable_cache: process.env.ENABLE_CACHE || false,
redis_url: process.env.REDIS_URL || '',
hasura_admin_key: process.env.HASURA_ADMIN_KEY || '',
- hasura_url: process.env.HASURA_URL,
+ hasura_url: process.env.HASURA_URL || 'https://localhost:8080/v1/graphql',
enableTestnet: process.env.TESTNET === 'true'
}
| 12 |
diff --git a/website/themes/uppy/layout/layout.ejs b/website/themes/uppy/layout/layout.ejs @@ -41,7 +41,7 @@ if (page.series) {
<div class="page">
<div class="TransloaditBar js-TransloaditBar">
<div class="TransloaditBar-about">
- <a class="TransloaditBar-logo" href="https://transloadit.com/" target="_blank" rel="noopener noreferrer">
+ <a class="TransloaditBar-logo" href="https://transloadit.com/" target="_blank" rel="noopener">
<img class="TransloaditBar-logoImg" src="/images/transloadit-white-glyph.svg" width="20" height="20" alt="Transloadit">
</a>
<span>Uppy is an open source project by <a class="TransloaditBar-link" href="https://transloadit.com/" target="_blank">Transloadit</a></span>
| 0 |
diff --git a/src/components/input/Select.js b/src/components/input/Select.js -import React, {useState} from 'react';
+import React, {useEffect, useState} from 'react';
import PropTypes from 'prop-types';
import {omit} from 'ramda';
import {CustomInput} from 'reactstrap';
const Select = props => {
- const [value, setValue] = useState(props.value);
+ const [value, setValue] = useState('');
const handleChange = e => {
if (props.setProps) {
props.setProps({value: e.target.value});
- }
+ } else {
setValue(e.target.value);
+ }
};
+ useEffect(() => {
+ if (props.value !== value) {
+ setValue(props.value || '');
+ }
+ }, [props.value]);
+
return (
<CustomInput
{...omit(['value', 'setProps', 'bs_size', 'options'], props)}
@@ -21,6 +28,7 @@ const Select = props => {
value={value}
bsSize={props.bs_size}
>
+ <option value="" disabled hidden></option>
{props.options.map(option => (
<option
key={option.value}
| 11 |
diff --git a/docs/api/utils.md b/docs/api/utils.md @@ -196,7 +196,7 @@ request. All `options` not recognized by this function are passed to it, so see
<tr>
<td colspan="3"><p>Function accepts <code>response</code> object as a single parameter and should return true or false.
If function returns true request gets aborted. This function is passed to the
- (@apify/http-request)[<a href="https://www.npmjs.com/package/@apify/http-request%5D">https://www.npmjs.com/package/@apify/http-request]</a> NPM package.</p>
+ (@apify/http-request)[<a href="https://www.npmjs.com/package/@apify/http-request">https://www.npmjs.com/package/@apify/http-request]</a> NPM package.</p>
</td></tr></tbody>
</table>
<a name="utils.sleep"></a>
| 1 |
diff --git a/docs/installation.md b/docs/installation.md @@ -10,7 +10,7 @@ Laravel 5.4 ships with everything you need to get started. Simply:
* Run `npm install`
* Visit your `webpack.mix.js file`, and get started!
-Now, from the command line, you may run `npm run dev` to watch your files for changes, and then recompile.
+Now, from the command line, you may run `npm run watch` to watch your files for changes, and then recompile.
> Note: You won't find a `webpack.config.js` file in your project root. By default, Laravel defers to the config file from this repo. However, should you need to configure it, you may copy the file to your project root, and then update your `package.json` NPM scripts accordingly: `cp node_modules/laravel-mix/setup/webpack.config.js ./`.
@@ -51,7 +51,7 @@ Take note of the source paths, and create the directory structure to match \(or,
* `dist/app.css`
* `dist/app.js`
-* `dist/mix.json` (Your asset dump file, which we'll discuss later.)
+* `dist/mix-manifest.json` (Your asset dump file, which we'll discuss later.)
Nice job! Now get to work on that project.
@@ -61,8 +61,8 @@ As a tip, consider adding the following NPM scripts to your `package.json` file,
```js
"scripts": {
- "webpack": "cross-env NODE_ENV=development webpack --progress --hide-modules",
- "dev": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules",
+ "dev": "cross-env NODE_ENV=development webpack --progress --hide-modules",
+ "watch": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules",
"hmr": "cross-env NODE_ENV=development webpack-dev-server --inline --hot",
"production": "cross-env NODE_ENV=production webpack --progress --hide-modules"
}
| 1 |
diff --git a/magda-scala-common/src/main/scala/au/csiro/data61/magda/model/Registry.scala b/magda-scala-common/src/main/scala/au/csiro/data61/magda/model/Registry.scala @@ -206,8 +206,8 @@ object Registry {
if (totalWeighting > 0) {
ratings.map(rating =>
(rating.score) * (rating.weighting / totalWeighting)).reduce(_ + _)
- } else 1d
- case _ => 1d
+ } else 0d
+ case _ => 0d
}
val coverageStart = ApiDate(tryParseDate(temporalCoverage.extract[String]('intervals.? / element(0) / 'start.?)), dcatStrings.extract[String]('temporal.? / 'start.?).getOrElse(""))
| 12 |
diff --git a/src/sections/Meshery/Meshery-integrations/Individual-Integrations/index.js b/src/sections/Meshery/Meshery-integrations/Individual-Integrations/index.js @@ -35,7 +35,7 @@ const IndividualIntegrations = ({ data }) => {
<h2>Overview</h2>
<MDXRenderer>{body}</MDXRenderer>
<section className="external-btns">
- <Button primary className="get-started" title="Get Started" url="https://layer5.io/service-mesh-management/meshery/getting-started" />
+ <Button primary className="get-started" title="Get Started" url="../../getting-started" />
<span className="doc-link">
<a href={frontmatter.docURL}>See Documentation</a>
<FaArrowRight />
| 14 |
diff --git a/lib/assets/test/spec/builder/components/code-mirror/code-mirror-view.spec.js b/lib/assets/test/spec/builder/components/code-mirror/code-mirror-view.spec.js @@ -24,7 +24,7 @@ function fakeCodeMirrorKey (cm, type, code, props) {
}
}
-fdescribe('components/code-mirror/code-mirror-view', function () {
+describe('components/code-mirror/code-mirror-view', function () {
var createViewFn = function (options) {
this.model = new Backbone.Model({
content: 'Foo',
| 2 |
diff --git a/vendor/ember-cli-addon-docs/404.html b/vendor/ember-cli-addon-docs/404.html var l = window.location;
var segments = l.pathname.split('/');
- // Special case the `latest` version so we don't wind up in a redirect loop
- if (segments[segmentCount] !== 'latest') {
+ // Avoid an infinite loop if we try to direct to a location that doesn't exist
+ if (!/^\?p=\/.*&q=.*/.test(l.search)) {
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
segments.slice(0, 1 + segmentCount).join('/') + '/?p=/' +
}
</script>
</head>
- <body>No latest release found.</body>
+ <body>The request page wasn't found.</body>
</html>
| 7 |
diff --git a/src/core/operations/AdvancedEntropy.mjs b/src/core/operations/AdvancedEntropy.mjs @@ -34,7 +34,7 @@ class AdvancedEntropy extends Operation {
{
"name": "Visualization",
"type": "option",
- "value": ["Histogram (Bar)", "Histogram (Line)"]
+ "value": ["Histogram (Bar)", "Histogram (Line)", "Curve"]
}
];
}
@@ -66,6 +66,26 @@ class AdvancedEntropy extends Operation {
return -entropy;
}
+ /**
+ *
+ * @param inputBytes
+ * @returns {entropyData}
+ */
+ calculateScanningEntropy(inputBytes) {
+ let entropyData = [];
+ let binSelection = Math.ceil(inputBytes.length / 256);
+ let binWidth = binSelection < 256 ? 256 : binSelection;
+
+ for (let bytePos = 0; bytePos < inputBytes.length; bytePos+=binWidth) {
+ const block = inputBytes.slice(bytePos, bytePos+binWidth)
+ const blockEntropy = this.calculateShannonEntropy(block);
+ entropyData.push(blockEntropy);
+ }
+
+ return { entropyData, binWidth };
+ }
+
+
/**
* Calculates the frequency of bytes in the input.
*
@@ -75,9 +95,11 @@ class AdvancedEntropy extends Operation {
* @param {integer} svgHeight
* @param {integer} svgWidth
* @param {object} margins
+ * @param {string} xTitle
+ * @param {string} yTitle
* @returns {undefined}
*/
- createHistogramAxes(svg, xScale, yScale, svgHeight, svgWidth, margins) {
+ createAxes(svg, xScale, yScale, svgHeight, svgWidth, margins, title, xTitle, yTitle) {
// Axes
const yAxis = d3.axisLeft()
.scale(yScale);
@@ -100,18 +122,18 @@ class AdvancedEntropy extends Operation {
.attr("x", 0 - (svgHeight / 2))
.attr("dy", "1em")
.style("text-anchor", "middle")
- .text("Frequency (%)")
+ .text(yTitle)
svg.append("text")
.attr("transform", `translate(${svgWidth / 2}, ${svgHeight - margins.bottom + 40})`)
.style("text-anchor", "middle")
- .text("Byte")
+ .text(xTitle)
// Add title
svg.append("text")
.attr("transform", `translate(${svgWidth / 2}, ${margins.top - 10})`)
.style("text-anchor", "middle")
- .text("Byte Frequency")
+ .text(title)
}
/**
@@ -175,11 +197,10 @@ class AdvancedEntropy extends Operation {
svg.append('path')
.datum(byteFrequency)
- .attr("class", "line")
.attr("d", line)
.attr("fill", "steelblue");
- this.createHistogramAxes(svg, xScale, yScale, svgHeight, svgWidth, margins);
+ this.createAxes(svg, xScale, yScale, svgHeight, svgWidth, margins, "", "Byte", "Byte Frequency");
return svg._groups[0][0].outerHTML;
}
@@ -223,7 +244,57 @@ class AdvancedEntropy extends Operation {
.attr("height", dataPoint => yScale(0) - yScale(dataPoint))
.attr("fill", "blue");
- this.createHistogramAxes(svg, xScale, yScale, svgHeight, svgWidth, margins);
+ this.createAxes(svg, xScale, yScale, svgHeight, svgWidth, margins, "", "Byte", "Byte Frequency");
+
+ return svg._groups[0][0].outerHTML;
+ }
+
+ /**
+ * Creates a byte frequency histogram
+ *
+ * @param {byteArray} input
+ * @param {number} blockSize
+ * @returns {HTML}
+ */
+ createEntropyCurve(input) {
+ const { entropyData, binWidth } = this.calculateScanningEntropy(input);
+
+ const svgWidth = 500,
+ svgHeight = 500;
+
+ const document = new nodom.Document();
+ let svg = document.createElement("svg");
+ svg = d3.select(svg)
+ .attr("width", "100%")
+ .attr("height", "100%")
+ .attr("viewBox", `0 0 ${svgWidth} ${svgHeight}`);
+
+ const margins = {top: 30, right: 20, bottom: 50, left: 30};
+
+ const yScale = d3.scaleLinear()
+ .domain([0, d3.max(entropyData, d => d)])
+ .range([svgHeight - margins.bottom, margins.top]);
+
+ const xScale = d3.scaleLinear()
+ .domain([0, entropyData.length])
+ .range([margins.left, svgWidth - margins.right]);
+
+ const line = d3.line()
+ .x((d, i) => { return xScale(i)})
+ .y((d) => { return yScale(d)})
+ .curve(d3.curveMonotoneX);
+
+ if (entropyData.length > 0 ) {
+ svg.append('path')
+ .datum(entropyData)
+ .attr("d", line);
+
+ svg.selectAll("path").attr("fill", "none").attr("stroke", "steelblue");
+ }
+
+ this.createAxes(svg, xScale, yScale, svgHeight, svgWidth, margins, "Scanning Entropy" , `Block (${binWidth}B)`, "Entropy");
+
+ console.log('TEST', entropyData);
return svg._groups[0][0].outerHTML;
}
@@ -244,6 +315,7 @@ class AdvancedEntropy extends Operation {
let svgData;
if (visualizationType === "Histogram (Bar)") svgData = this.createByteFrequencyBarHistogram(entropyData);
else if (visualizationType === "Histogram (Line)") svgData = this.createByteFrequencyLineHistogram(entropyData);
+ else if (visualizationType === "Curve") svgData = this.createEntropyCurve(input);
return svgData;
}
| 0 |
diff --git a/tests/e2e/config/wordpress-debug-log/log-ignore-list.js b/tests/e2e/config/wordpress-debug-log/log-ignore-list.js @@ -16,6 +16,7 @@ export const logIgnoreList = {
'PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/html/wp-includes/class-wp-editor.php on line 708',
'PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/html/wp-includes/SimplePie/Parse/Date.php on line 545',
'PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/html/wp-includes/SimplePie/Parse/Date.php on line 546',
+ "PHP Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /var/www/html/wp-admin/includes/class-wp-ajax-upgrader-skin.php on line 103",
// Undefined variables in compact() are fixed in later WP versions.
'PHP Notice: compact(): Undefined variable: context in /var/www/html/wp-includes/post.php on line 3222',
| 8 |
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/field/material-select/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/field/material-select/template.vue computed: {
modelFromValue: {
get () {
- if(this.value){
- this.schema.values.forEach(item => {
- if (item.value === this.value) {
- return item
+ // will catch falsy, null or undefined
+ if(this.value && this.value != null){
+ // if model is a string, convert to object with name and value
+ if(typeof this.value === 'string'){
+ return this.schema.values.filter(item => item.value === this.value)[0]
+ } else {
+ return this.value
}
- })
} else {
return ''
}
},
set (newValue) {
- this.value = newValue
+ this.value = newValue.value
}
}
}
| 11 |
diff --git a/experimental/adaptive-dialog/docs/anatomy-and-runtime-behavior.md b/experimental/adaptive-dialog/docs/anatomy-and-runtime-behavior.md @@ -60,7 +60,7 @@ Here's the flow when user says `I'd like to book a flight`
<p align="center">
<img alt="Adaptive_dialog_scenario_setup" src="./Assets/adaptive-dialog-first-utterance.png" style="max-width:700px;" />
</p>
-The active dialog (rootDialog) recognizer triggers an IntentRule that you can handle. In this case the BegingDialog step to call for the Book a flight dialog. The book a flight dialog execute its steps, one of them is asking which city do you want to fly to.
+The active dialog (rootDialog) recognizer triggers an IntentRule that you can handle. In this case the BeginDialog step to call for the Book a flight dialog. The book a flight dialog execute its steps, one of them is asking which city do you want to fly to.
The bot's end user can provide any type of answer, and here's the flow when user says `How's the weather in Seattle?`
| 1 |
diff --git a/src/components/Translation.tsx b/src/components/Translation.tsx import React from "react"
-import { FormattedMessage } from "react-intl"
+import { FormattedHTMLMessage } from "react-intl"
import { getDefaultMessage, TranslationKey } from "../utils/translations"
-// Wrapper on <FormattedMessage /> to always fallback to English
+// Wrapper on <FormattedHTMLMessage /> to always fallback to English
// Use this component for any user-facing string
const Translation = ({ id }: { id: TranslationKey }) => (
- <FormattedMessage id={id} defaultMessage={getDefaultMessage(id)} />
+ <FormattedHTMLMessage id={id} defaultMessage={getDefaultMessage(id)} />
)
export default Translation
| 13 |
diff --git a/src/component/component/props.js b/src/component/component/props.js @@ -10,6 +10,15 @@ import { uniqueID } from '../../lib';
export const internalProps = {
+ env: {
+ type: 'string',
+ required: false,
+ queryParam: true,
+ def() {
+ return this.defaultEnv;
+ }
+ },
+
uid: {
type: 'string',
def() {
@@ -29,15 +38,6 @@ export const internalProps = {
// The desired env in which the component is being rendered. Used to determine the correct url to use from envUrls
- env: {
- type: 'string',
- required: false,
- queryParam: true,
- def() {
- return this.defaultEnv;
- }
- },
-
version: {
type: 'string',
required: false,
@@ -46,28 +46,32 @@ export const internalProps = {
dimensions: {
type: 'object',
- required: false
+ required: false,
+ sendToChild: false
},
// A millisecond timeout before onTimeout is called
timeout: {
type: 'number',
- required: false
+ required: false,
+ sendToChild: false
},
onDisplay: {
type: 'function',
required: false,
noop: true,
- promisify: true
+ promisify: true,
+ sendToChild: false
},
onEnter: {
type: 'function',
required: false,
noop: true,
- promisify: true
+ promisify: true,
+ sendToChild: false
},
// When we get an INIT message from the child
@@ -76,7 +80,8 @@ export const internalProps = {
type: 'function',
required: false,
noop: true,
- promisify: true
+ promisify: true,
+ sendToChild: false
},
// When the user closes the component. Defaults to onError if no handler passed.
@@ -86,7 +91,8 @@ export const internalProps = {
required: false,
noop: true,
once: true,
- promisify: true
+ promisify: true,
+ sendToChild: false
},
// When we time-out before getting an INIT message from the child. Defaults to onError if no handler passed.
@@ -96,6 +102,7 @@ export const internalProps = {
required: false,
memoize: true,
promisify: true,
+ sendToChild: false,
def() {
return function(err) {
return this.props.onError(err);
@@ -109,6 +116,7 @@ export const internalProps = {
type: 'function',
required: false,
promisify: true,
+ sendToChild: false,
def() {
return function() {
// pass
| 12 |
diff --git a/src/kiri-mode/fdm/slice.js b/src/kiri-mode/fdm/slice.js let heights = [];
// handle z cutting (floor method) and base flattening
- let zPress = process.firstLayerFlatten || 0;
+ let zPress = isBelt ? process.firstLayerFlatten || 0 : 0;
let zCut = widget.track.zcut || 0;
if (zCut || zPress) {
for (let p of points) {
| 11 |
diff --git a/src/input/keyboard.js b/src/input/keyboard.js }
}
// prevent event propagation
- if (preventDefaultForKeys[keyCode]) {
+ if (preventDefaultForKeys[keyCode] && (typeof e.preventDefault === "function")) {
+ // "fake" events generated through triggerKeyEvent do not have a preventDefault fn
return e.preventDefault();
}
else {
keyLocked[action] = false;
// prevent event propagation
- if (preventDefaultForKeys[keyCode]) {
+ if (preventDefaultForKeys[keyCode] && (typeof e.preventDefault === "function")) {
+ // "fake" events generated through triggerKeyEvent do not have a preventDefault fn
return e.preventDefault();
}
else {
| 1 |
diff --git a/gulpfile.babel.js b/gulpfile.babel.js @@ -36,6 +36,7 @@ gulp.task('js:app', () => {
.pipe(gulp.dest(distPath + '/js'));
});
+/*jshint camelcase: false */
var excludeDefaultStyles = process.env.npm_config_excludeDefaultStyles || false;
gulp.task('js:vendor', ['bower'], () => {
| 8 |
diff --git a/Source/Core/RectangleGeometry.js b/Source/Core/RectangleGeometry.js @@ -4,6 +4,7 @@ define([
'./Cartesian2',
'./Cartesian3',
'./Cartographic',
+ './Check',
'./ComponentDatatype',
'./defaultValue',
'./defined',
@@ -30,6 +31,7 @@ define([
Cartesian2,
Cartesian3,
Cartographic,
+ Check,
ComponentDatatype,
defaultValue,
defined,
@@ -647,13 +649,10 @@ define([
var rectangle = options.rectangle;
//>>includeStart('debug', pragmas.debug);
- if (!defined(rectangle)) {
- throw new DeveloperError('rectangle is required.');
- }
+ Check.typeOf.object(rectangle, 'rectangle');
Rectangle.validate(rectangle);
- if (rectangle.north < rectangle.south) {
- throw new DeveloperError('options.rectangle.north must be greater than options.rectangle.south');
- }
+ Check.numeric.minimum(rectangle.north, rectangle.south);
+
//>>includeEnd('debug');
var rotation = defaultValue(options.rotation, 0.0);
@@ -690,13 +689,8 @@ define([
*/
RectangleGeometry.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.defined(array, 'array');
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
@@ -753,9 +747,7 @@ define([
*/
RectangleGeometry.unpack = function(array, startingIndex, result) {
//>>includeStart('debug', pragmas.debug);
- if (!defined(array)) {
- throw new DeveloperError('array is required');
- }
+ Check.defined(array, 'array');
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
| 14 |
diff --git a/src/Services/Terminal/Terminal.js b/src/Services/Terminal/Terminal.js @@ -149,6 +149,7 @@ module.exports = function (settings) {
break;
}
});
+ /* istanbul ignore next */
process.on('exit', () => {
switch (state.terminalState) {
case TERMINAL_STATE_BUSY:
| 0 |
diff --git a/CHANGELOG.md b/CHANGELOG.md # Changelog
-## Unreleased
+<!-- ## Unreleased -->
+
+## [24.0.0] - 2018-08-30
### Fixed
* `plugin:shopify/flow` now disables rules checked by Flow's static analyzer. ([#135](https://github.com/Shopify/eslint-plugin-shopify/pull/135))
* [`typescript/no-var-requires`](https://github.com/nzakas/eslint-plugin-typescript/blob/master/docs/rules/no-var-requires.md)
-## [23.1.0] - 2018-08-02s
+## [23.1.0] - 2018-08-02
### Fixed
* Updated `typescript-eslint-parser` dependency to version 17.0.1 in order to support TypeScript 3. ([#121](https://github.com/Shopify/eslint-plugin-shopify/pull/121))
@@ -410,7 +412,8 @@ Example:
Changes were originally tracked in Shopify's [JavaScript monorepo](https://github.com/Shopify/javascript/blob/f10bf7ddbdae07370cfe7c94617c450257731552/CHANGELOG.md).
-[Unreleased]: https://github.com/Shopify/eslint-plugin-shopify/compare/v23.1.0...HEAD
+[Unreleased]: https://github.com/Shopify/eslint-plugin-shopify/compare/v24.0.0...HEAD
+[24.0.0]: https://github.com/Shopify/eslint-plugin-shopify/compare/v23.1.0...v24.0.0
[23.1.0]: https://github.com/Shopify/eslint-plugin-shopify/compare/v23.0.0...v23.1.0
[23.0.0]: https://github.com/Shopify/eslint-plugin-shopify/compare/v22.1.0...v23.0.0
[22.1.0]: https://github.com/Shopify/eslint-plugin-shopify/compare/v22.0.0...v22.1.0
| 3 |
diff --git a/index.html b/index.html <script src="js/plugins/tern.js"></script> <!-- smart autocomplete -->
<script src="js/plugins/debugger.js"></script>
<script src="js/plugins/tour.js"></script>
+ <script src="js/plugins/settingsProfile.js"></script>
<script src="js/plugins/helpLinks.js"></script>
<script src="js/plugins/arrows.js"></script>
<script src="js/plugins/offline.js"></script>
| 11 |
diff --git a/package.json b/package.json "description": "The motion graphics toolbelt for the web",
"source": "src/mojs.babel.js",
"main": "dist/mo.umd.js",
+ "module": "src/mojs.babel.js",
"browser": "dist/mo.umd.js",
"unpkg": "dist/mo.umd.js",
"scripts": {
| 0 |
diff --git a/tests/e2e/specs/auth-setup-search-console.test.js b/tests/e2e/specs/auth-setup-search-console.test.js @@ -6,18 +6,14 @@ import { activatePlugin, createURL, visitAdminPage } from '@wordpress/e2e-test-u
/**
* Internal dependencies
*/
-import { resetSiteKit, deactivateAllOtherPlugins, pasteText, wpApiFetch, useRequestInterception } from '../utils';
-
-const oauthClientConfig = JSON.stringify( {
- web: {
- client_id: 'test-client-id',
- client_secret: 'test-client-secret',
- project_id: 'test-project-id',
- auth_uri: 'https://accounts.google.com/o/oauth2/auth',
- token_uri: 'https://accounts.google.com/o/oauth2/token',
- auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs',
- },
-} );
+import {
+ deactivateAllOtherPlugins,
+ pasteText,
+ resetSiteKit,
+ setSiteVerification,
+ testClientConfig,
+ useRequestInterception,
+} from '../utils';
describe( 'Site Kit set up flow for the first time with search console setup', () => {
beforeAll( async () => {
@@ -43,12 +39,7 @@ describe( 'Site Kit set up flow for the first time with search console setup', (
beforeEach( async () => {
await activatePlugin( 'e2e-tests-oauth-callback-plugin' );
await activatePlugin( 'e2e-tests-site-verification-api-mock' );
-
- // Simulate that the user is already verified.
- await wpApiFetch( {
- path: 'google-site-kit/v1/e2e/verify-site',
- method: 'post',
- } );
+ await setSiteVerification();
} );
afterEach( async () => {
@@ -60,7 +51,7 @@ describe( 'Site Kit set up flow for the first time with search console setup', (
await visitAdminPage( 'admin.php', 'page=googlesitekit-splash' );
await page.waitForSelector( '#client-configuration' );
- await pasteText( '#client-configuration', oauthClientConfig );
+ await pasteText( '#client-configuration', JSON.stringify( testClientConfig ) );
await expect( page ).toClick( '#wizard-step-one-proceed' );
await page.waitForSelector( '.googlesitekit-wizard-step--two button' );
@@ -80,16 +71,10 @@ describe( 'Site Kit set up flow for the first time with search console setup', (
} );
it( 'saves search console property when site exists', async () => {
- // Simulate that site exists.
- await wpApiFetch( {
- path: 'google-site-kit/v1/e2e/sc-site-exists',
- method: 'post',
- } );
-
await visitAdminPage( 'admin.php', 'page=googlesitekit-splash' );
await page.waitForSelector( '#client-configuration' );
- await pasteText( '#client-configuration', oauthClientConfig );
+ await pasteText( '#client-configuration', JSON.stringify( testClientConfig ) );
await expect( page ).toClick( '#wizard-step-one-proceed' );
await page.waitForSelector( '.googlesitekit-wizard-step--two button' );
| 3 |
diff --git a/src/apps.json b/src/apps.json "<meta content=\"GitLab\" property=\"og:site_name\">",
"<meta content=\"https?://[^/]+/assets/gitlab_logo-"
],
- "env": "GitLab",
+ "env": "^GitLab$",
"icon": "GitLab.svg",
"implies": [
"Ruby",
| 7 |
diff --git a/src/libs/reportUtils.js b/src/libs/reportUtils.js @@ -189,12 +189,12 @@ function getChatRoomSubtitle(report, policiesMap) {
// The domainAll rooms are just #domainName, so we ignore the prefix '#' to get the domainName
return report.reportName.substring(1);
}
- if (isArchivedRoom(report)) {
- return report.oldPolicyName;
- }
if (isPolicyExpenseChat(report) && report.isOwnPolicyExpenseChat) {
return Localize.translateLocal('workspace.common.workspace');
}
+ if (isArchivedRoom(report)) {
+ return report.oldPolicyName;
+ }
return lodashGet(
policiesMap,
[`${ONYXKEYS.COLLECTION.POLICY}${report.policyID}`, 'name'],
| 4 |
diff --git a/src/pages/settings/Profile/ProfilePage.js b/src/pages/settings/Profile/ProfilePage.js @@ -71,11 +71,11 @@ class ProfilePage extends Component {
super(props);
this.state = {
firstName: props.myPersonalDetails.firstName,
- firstNameError: false,
+ hasFirstNameError: false,
lastName: props.myPersonalDetails.lastName,
- lastNameError: false,
+ hasLastNameError: false,
pronouns: props.myPersonalDetails.pronouns,
- pronounError: false,
+ hasPronounError: false,
hasSelfSelectedPronouns: !_.isEmpty(props.myPersonalDetails.pronouns) && !props.myPersonalDetails.pronouns.startsWith(CONST.PRONOUNS.PREFIX),
selectedTimezone: lodashGet(props.myPersonalDetails.timezone, 'selected', CONST.DEFAULT_TIME_ZONE.selected),
isAutomaticTimezone: lodashGet(props.myPersonalDetails.timezone, 'automatic', CONST.DEFAULT_TIME_ZONE.automatic),
@@ -161,13 +161,13 @@ class ProfilePage extends Component {
}
validateInputs() {
- const [firstNameError, lastNameError, pronounError] = ValidationUtils.doesFailCharacterLimit(50, [this.state.firstName, this.state.lastName, this.state.pronouns]);
+ const [hasFirstNameError, hasLastNameError, hasPronounError] = ValidationUtils.doesFailCharacterLimit(50, [this.state.firstName, this.state.lastName, this.state.pronouns]);
this.setState({
- firstNameError,
- lastNameError,
- pronounError,
+ hasFirstNameError,
+ hasLastNameError,
+ hasPronounError,
});
- return !firstNameError && !lastNameError && !pronounError;
+ return !hasFirstNameError && !hasLastNameError && !hasPronounError;
}
render() {
@@ -213,9 +213,9 @@ class ProfilePage extends Component {
</Text>
<FullNameInputRow
firstName={this.state.firstName}
- firstNameError={PersonalDetails.getMaxCharacterError(this.state.firstNameError)}
+ firstNameError={PersonalDetails.getMaxCharacterError(this.state.hasFirstNameError)}
lastName={this.state.lastName}
- lastNameError={PersonalDetails.getMaxCharacterError(this.state.lastNameError)}
+ lastNameError={PersonalDetails.getMaxCharacterError(this.state.hasLastNameError)}
onChangeFirstName={firstName => this.setState({firstName})}
onChangeLastName={lastName => this.setState({lastName})}
style={[styles.mt4, styles.mb4]}
@@ -243,7 +243,7 @@ class ProfilePage extends Component {
value={this.state.pronouns}
onChangeText={pronouns => this.setState({pronouns})}
placeholder={this.props.translate('profilePage.selfSelectYourPronoun')}
- errorText={PersonalDetails.getMaxCharacterError(this.state.pronounError)}
+ errorText={PersonalDetails.getMaxCharacterError(this.state.hasPronounError)}
/>
</View>
)}
| 10 |
diff --git a/data.js b/data.js @@ -73,6 +73,14 @@ module.exports = [
url: "https://github.com/unicorn-standard/uniloc",
source: "https://raw.githubusercontent.com/unicorn-standard/uniloc/master/uniloc.js"
},
+ {
+ name: "body-scroll-freezer.js",
+ github: "ramonvictor/body-scroll-freezer",
+ tags: ["scroll", "freeze", "modal", "scrolling", "lightbox", "performance"],
+ description: "Dependency-free JS module to freeze body scroll when opening modal box",
+ url: "https://github.com/ramonvictor/body-scroll-freezer",
+ source: "https://raw.githubusercontent.com/ramonvictor/body-scroll-freezer/master/src/body-scroll-freezer.js"
+ },
{
name: "MagJS",
github: "magnumjs/mag.js",
| 0 |
diff --git a/Apps/Sandcastle/index.html b/Apps/Sandcastle/index.html content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<title>Cesium Sandcastle</title>
+ <link
+ rel="icon"
+ type="image/svg+xml"
+ href="https://cesium.com/cesium-logomark.svg"
+ />
+ <link
+ rel="icon"
+ type="image/png"
+ sizes="192x192"
+ href="https://cesium.com/cesium-logomark-192.png"
+ />
+ <link
+ rel="apple-touch-icon"
+ href="https://cesium.com/cesium-logomark-192.png"
+ />
+ <link
+ rel="mask-icon"
+ href="https://cesium.com/cesium-logomark-mask.svg"
+ color="rgb(15,98,105)"
+ />
<link
rel="stylesheet"
href="../../ThirdParty/codemirror-5.52.0/lib/codemirror.css"
property="og:url"
content="https://sandcastle.cesium.com/index.html"
/>
- <meta
- property="og:image"
- content="https://cesium.com/images/social-card.jpg"
- />
+ <meta property="og:image" content="https://cesium.com/social-card.jpg" />
<meta property="og:site_name" content="Cesium" />
<meta property="fb:admins" content="1222088662,1322006496" />
</head>
| 4 |
diff --git a/src/client/public/gallery.ts b/src/client/public/gallery.ts @@ -169,10 +169,14 @@ export class Gallery {
}?gallery=true`;
if (isCustomFunctionScript(snippet.script.content)) {
+ // Navigate to the dashboard page. Since it's on the same domain,
+ // navigation should be quick, so don't worry about changing the progress text.
navigateToCustomFunctionsDashboard(returnUrl);
} else {
- // The regular runner can take a
+ // The regular runner can take a moment to load, since it requires
+ // navigating to a different server. So, show a progress indicator
this.showProgress(`${Strings().HtmlPageStrings.running} "${snippet.name}"`);
+
navigateToRunner(snippet, returnUrl);
}
}
| 7 |
diff --git a/src/plots/domain.js b/src/plots/domain.js @@ -131,6 +131,6 @@ exports.defaults = function(containerOut, layout, coerce, dfltDomains) {
var y = coerce('domain.y', dfltY);
// don't accept bad input data
- if(!(x[0] < x[1])) containerOut.domain.x = dfltX;
- if(!(y[0] < y[1])) containerOut.domain.y = dfltY;
+ if(!(x[0] < x[1])) containerOut.domain.x = dfltX.slice();
+ if(!(y[0] < y[1])) containerOut.domain.y = dfltY.slice();
};
| 0 |
diff --git a/src/docs/plugins/edge.md b/src/docs/plugins/edge.md @@ -243,10 +243,10 @@ The content inside of the `edge` shortcode is generated on the Edge.
{% raw %}
```js
-module.exports = function(data) {
+module.exports = async function(data) {
return `The content outside of the \`edge\` shortcode is generated with the Build.
-${await this.edge(`The content inside of the \`edge\` shortcode is generated on the Edge.
+${await this.edge(`{% edge %} The content inside of the \`edge\` shortcode is generated on the Edge.
<pre>
{{ eleventy | json }}
| 1 |
diff --git a/packages/e2e-tests/pagerduty-reporter.js b/packages/e2e-tests/pagerduty-reporter.js @@ -17,7 +17,7 @@ class PagerDutyReporter {
assignments: [
{
assignee: {
- id: "PM9MK7I", // [email protected]
+ id: "PB796BV", // [email protected]
type: "user_reference",
},
},
@@ -28,7 +28,7 @@ class PagerDutyReporter {
Wallet e2e-test ${test.title} has failed. See https://dashboard.render.com/cron/crn-bvrt6tblc6ct62bdjmig/logs for details.
Make sure that account recovery works well on https://wallet.near.org.
-${result.error}
+${JSON.stringify(result.error, null, 2)}
`,
},
},
| 3 |
diff --git a/userscript.user.js b/userscript.user.js @@ -41446,7 +41446,8 @@ var $$IMU_EXPORT$$;
method: "GET",
headers: {
Referer: referer,
- "Sec-Fetch-Site": "same-origin"
+ "Sec-Fetch-Site": "same-origin",
+ "Accept": "application/json, text/plain, */*"
},
onload: function(result) {
if (result.readyState !== 4)
@@ -41501,7 +41502,9 @@ var $$IMU_EXPORT$$;
return false;
};
- if (options.element.parentElement && options.element.parentElement.classList.contains("b-avatar")) {
+ if (options.element.parentElement &&
+ (options.element.parentElement.classList.contains("b-avatar") ||
+ options.element.parentElement.classList.contains("g-avatar"))) {
var dparent = options.element.parentElement.parentElement;
if (dparent.tagName === "A") {
if (get_avatar_from_a(dparent, options.cb)) {
@@ -49441,6 +49444,10 @@ var $$IMU_EXPORT$$;
}
if (domain === "az743702.vo.msecnd.net" ||
+ // https://storage.ko-fi.com/cdn/useruploads/post/jpeg_kofi_fae75b09-be70-424f-925b-8c368393107de457b463-0bb8-4cc0-aca2-1895e0eecb7d.jpeg
+ // https://storage.ko-fi.com/cdn/useruploads/display/jpeg_kofi_fae75b09-be70-424f-925b-8c368393107de457b463-0bb8-4cc0-aca2-1895e0eecb7d.jpeg
+ // https://storage.ko-fi.com/cdn/useruploads/jpeg_KoFi_d916702b-5a9f-4a87-98b1-305cd893f268E05FD454-3CF2-4AF8-8A44-D8EA2014088F_post.jpg
+ domain === "storage.ko-fi.com" ||
// https://cdn.ko-fi.com/cdn/useruploads/e53090ad-734d-4c1c-ab15-73215be79804_tiny.png
// https://cdn.ko-fi.com/cdn/useruploads/e53090ad-734d-4c1c-ab15-73215be79804.png
// https://cdn.ko-fi.com/cdn/useruploads/jpg_b66ba568-a447-47f9-82bc-cb3c654f14b18ibBOS1CoRI_post.jpg
@@ -49449,10 +49456,14 @@ var $$IMU_EXPORT$$;
// https://az743702.vo.msecnd.net/cdn/useruploads/dfc72789-50bf-486f-9a87-81d05ee09437.jpg
// doesn't work for all:
// https://az743702.vo.msecnd.net/cdn/useruploads/jpeg_577f9238-f040-4b13-8851-587909cbfb1ccover.jpeg?v=5e0bd932-2264-40a3-b2ce-8643b5b351a3
- newsrc = src.replace(/(\/useruploads\/+)((?:[a-z_]+_)?[-0-9a-f]{20,}(?:[^/.]+)?)_post(\.[^/.]*)(?:[?#].*)?$/, "$1$2_display$3");
+ newsrc = src.replace(/\/useruploads\/+post\/+/, "/useruploads/display/");
if (newsrc !== src)
return newsrc;
+ newsrc = src.replace(/(\/useruploads\/+)((?:[a-z_]+_(?:KoFi_)?)?[-0-9a-f]{20,}(?:[^/.]+)?)_post(\.[^/.]*)(?:[?#].*)?$/, "$1$2_display$3");
+ if (newsrc !== src)
+ return add_extensions_jpeg(newsrc);
+
return src.replace(/(\/useruploads\/+)(?:[a-z]+_)?([-0-9a-f]{20,}(?:[a-z]+)?)(?:_[a-z]+)?(\.[^/.]*)(?:[?#].*)?$/, "$1$2$3");
}
@@ -58554,6 +58565,20 @@ var $$IMU_EXPORT$$;
}
}
+ if (domain === "imagery.zoogletools.com" ||
+ // https://s3.amazonaws.com/zoogle-imager-production-2020/u/333257/1349c4b77893af624e4e8ca9650d49bfcdeac1ef/original/untitled-1.jpg/!!/b%3AW1siZXh0cmFjdCIseyJsZWZ0IjoxMDMsInRvcCI6NTMsIndpZHRoIjo1NzQ0LCJoZWlnaHQiOjI5NzZ9XSxbInJlc2l6ZSIsMTYwMF0sWyJtYXgiXSxbIndlIl1d.jpg
+ // https://s3.amazonaws.com/zoogle-imager-production-2020/u/333257/1349c4b77893af624e4e8ca9650d49bfcdeac1ef/original/untitled-1.jpg
+ amazon_container === "zoogle-imager-production-2020") {
+ // https://imagery.zoogletools.com/u/333257/1349c4b77893af624e4e8ca9650d49bfcdeac1ef/original/untitled-1.jpg/!!/b%3AW1siZXh0cmFjdCIseyJsZWZ0IjoxMDMsInRvcCI6NTMsIndpZHRoIjo1NzQ0LCJoZWlnaHQiOjI5NzZ9XSxbInJlc2l6ZSIsMTYwMF0sWyJtYXgiXSxbIndlIl1d.jpg
+ // https://s3.amazonaws.com/zoogle-imager-production-2020/u/333257/1349c4b77893af624e4e8ca9650d49bfcdeac1ef/original/untitled-1.jpg
+ // atob("W1siZXh0cmFjdCIseyJsZWZ0IjoxMDMsInRvcCI6NTMsIndpZHRoIjo1NzQ0LCJoZWlnaHQiOjI5NzZ9XSxbInJlc2l6ZSIsMTYwMF0sWyJtYXgiXSxbIndlIl1d")
+ // = [["extract",{"left":103,"top":53,"width":5744,"height":2976}],["resize",1600],["max"],["we"]]
+ return {
+ url: src.replace(/(\/u\/+[0-9]+\/+[0-9a-f]{10,}\/+[^/]+\/+[^/]+)\/+!!\/.*/, "$1"),
+ can_head: false // 403
+ };
+ }
+
| 1 |
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js @@ -220,7 +220,11 @@ RED.palette.editor = (function() {
var setElements = nodeEntry.sets[setName];
if (set.err) {
errorCount++;
- $("<li>").text(set.err).appendTo(nodeEntry.errorList);
+ var errMessage = set.err;
+ if (set.err.message) {
+ errMessage = set.err.message;
+ }
+ $("<li>").text(errMessage).appendTo(nodeEntry.errorList);
}
if (set.enabled) {
activeTypeCount += set.types.length;
| 9 |
diff --git a/token-metadata/0x150b0b96933B75Ce27af8b92441F8fB683bF9739/metadata.json b/token-metadata/0x150b0b96933B75Ce27af8b92441F8fB683bF9739/metadata.json "symbol": "GOLD",
"address": "0x150b0b96933B75Ce27af8b92441F8fB683bF9739",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/assets/js/googlesitekit/widgets/components/WidgetRenderer.js b/assets/js/googlesitekit/widgets/components/WidgetRenderer.js @@ -78,7 +78,6 @@ const WidgetRenderer = ( { slug, OverrideComponent } ) => {
WidgetRenderer.propTypes = {
slug: PropTypes.string.isRequired,
- columnWidth: PropTypes.number,
OverrideComponent: PropTypes.elementType,
};
| 2 |
diff --git a/articles/email/custom.md b/articles/email/custom.md ---
description: The Auth0 APIs provide endpoints that allow you to completely manage email flow, and control when and how emails are sent.
+toc: true
---
-
# Custom Email Handling
The default email flow in Auth0 can address the requirements of most applications, but there may be instances where more flexibility is required. For example:
@@ -14,7 +14,7 @@ The Auth0 Management API provides endpoints that allow you to completely manage
To begin, you will need to disable automatic emails by deselecting **Status** under the **Verification Email** and **Welcome Email** tabs on the [Email Templates](${manage_url}/#/emails) page of the Auth0 dashboard.
-
+
## Verification Email
@@ -98,10 +98,12 @@ You can now send an email to the user containing this link. Only when the user c
Alternatively, if you invoke the [change password ticket](/api/management/v2#!/Tickets/post_password_change) endpoint without specifying the `new_password` parameter, the link at the email will redirect the user to a page prompting to set a new password.
-
+
-## Additional Information
+## Keep Reading
+::: next-steps
* [Emails in Auth0](/email)
* [Customizing Your Emails](/email/templates)
* [Using your own SMTP provider (SendGrid/Amazon SES/Mandrill)](/email/providers)
+ :::
| 0 |
diff --git a/src/styles/styles.js b/src/styles/styles.js @@ -790,6 +790,7 @@ const styles = {
borderWidth: 0,
borderRadius: 0,
height: 'auto',
+ lineHeight: '25px',
// On Android, multiline TextInput with height: 'auto' will show extra padding unless they are configured with
// paddingVertical: 0, alignSelf: 'center', and textAlignVertical: 'center'
| 12 |
diff --git a/src/modules/DataLabels.js b/src/modules/DataLabels.js @@ -220,6 +220,14 @@ class DataLabels {
) {
dataLabelColor = w.globals.dataLabels.style.colors[j]
}
+ if (typeof dataLabelColor === 'function') {
+ dataLabelColor = dataLabelColor({
+ series: w.globals.series,
+ seriesIndex: i,
+ dataPointIndex: j,
+ w
+ })
+ }
if (color) {
dataLabelColor = color
}
| 11 |
diff --git a/src/widgets/tooltip/ProfileTooltip.js b/src/widgets/tooltip/ProfileTooltip.js @@ -78,7 +78,7 @@ export default class ProfileTooltip extends Component {
if (this.state.fetching || _.isEmpty(userData)) {
return (
- <div className={className}>
+ <div className={className} style={style}>
<Loading />
</div>
);
| 1 |
diff --git a/src/io_frida.c b/src/io_frida.c @@ -1132,8 +1132,16 @@ static bool resolve4(RList *args, R2FridaLaunchOptions *lo, GCancellable *cancel
GError *error = NULL;
const char *devid = R_STR_ISNOTEMPTY (arg2)? arg2: NULL;
- if (link == R2F_LINK_REMOTE) {
+ switch (link) {
+ case R2F_LINK_USB:
+ devid = R_STR_ISNOTEMPTY (arg2)? arg2: "usb";
+ break;
+ case R2F_LINK_REMOTE:
devid = arg2;
+ break;
+ default:
+ devid = NULL;
+ break;
}
FridaDevice *device = get_device_manager (device_manager, devid, cancellable, &error);
@@ -1142,18 +1150,20 @@ static bool resolve4(RList *args, R2FridaLaunchOptions *lo, GCancellable *cancel
case R2F_ACTION_UNKNOWN:
break;
case R2F_ACTION_LIST_APPS:
- if (!device) {
- eprintf ("Cannot find peer.\n");
- }
+ if (device) {
if (!dumpApplications (device, cancellable)) {
eprintf ("Cannot enumerate apps\n");
}
+ } else {
+ eprintf ("Cannot find peer.\n");
+ }
break;
case R2F_ACTION_LIST_PIDS:
- if (!device) {
+ if (device) {
+ dumpProcesses (device, cancellable);
+ } else {
eprintf ("Cannot find peer.\n");
}
- dumpProcesses (device, cancellable);
break;
case R2F_ACTION_LAUNCH:
case R2F_ACTION_SPAWN:
| 7 |
diff --git a/README.md b/README.md @@ -178,13 +178,13 @@ Listen for resize events from the parent page, or the iFrame. Select the 'child'
### scrolling
default: false
- type: mixed | 'auto'
+ type: true | false | 'omit' | 'auto'
Enable scroll bars in iFrame.
-* `true` applies `scrolling="yes"`
-* `false` applies `scrolling="no"`
-* `'omit'` applies no `scrolling` attribute to the iFrame
+* **true** or **'auto'** applies `scrolling="yes"`
+* **false** applies `scrolling="no"`
+* **'omit'** applies no `scrolling` attribute to the iFrame
### sizeHeight
| 7 |
diff --git a/CHANGELOG.md b/CHANGELOG.md # Changelog
-## Unreleased
- - MySQL: Fix for MySQL instrumentation sometimes losing the tracing context
+## 1.47.1
+ - MySQL: Fix for MySQL instrumentation sometimes losing the tracing context.
## 1.47.0
- Add MSSQL (Microsoft SQL Server) instrumentation (supports [mssql](https://www.npmjs.com/package/mssql), version >= 4 via [tedious driver](https://www.npmjs.com/package/tedious)).
| 6 |
diff --git a/test/jasmine/tests/gl3d_plot_interact_test.js b/test/jasmine/tests/gl3d_plot_interact_test.js @@ -1175,6 +1175,65 @@ describe('Test gl3d drag and wheel interactions', function() {
.then(done);
});
+ it('@gl should update the scene aspectratio when zooming with scroll wheel i.e. orthographic case', function(done) {
+ var sceneLayout, sceneLayout2, sceneTarget, sceneTarget2;
+
+ var mock = {
+ data: [
+ { type: 'scatter3d', x: [1, 2, 3], y: [2, 3, 1], z: [3, 1, 2] },
+ { type: 'surface', scene: 'scene2', x: [1, 2], y: [2, 1], z: [[1, 2], [2, 1]] }
+ ],
+ layout: {
+ scene: { camera: { projection: {type: 'orthographic'}}},
+ scene2: { camera: { projection: {type: 'orthographic'}}, aspectratio: { x: 3, y: 2, z: 1 }}
+ }
+ };
+
+ var aspectratio;
+ var relayoutEvent;
+ var relayoutCnt = 0;
+
+ Plotly.plot(gd, mock)
+ .then(function() {
+ gd.on('plotly_relayout', function(e) {
+ relayoutCnt++;
+ relayoutEvent = e;
+ });
+
+ sceneLayout = gd._fullLayout.scene;
+ sceneLayout2 = gd._fullLayout.scene2;
+ sceneTarget = gd.querySelector('.svg-container .gl-container #scene canvas');
+ sceneTarget2 = gd.querySelector('.svg-container .gl-container #scene2 canvas');
+
+ expect(sceneLayout.aspectratio).toEqual({x: 1, y: 1, z: 1});
+ expect(sceneLayout2.aspectratio).toEqual({x: 3, y: 2, z: 1});
+ })
+ .then(function() {
+ return scroll(sceneTarget);
+ })
+ .then(function() {
+ expect(relayoutCnt).toEqual(1);
+
+ aspectratio = relayoutEvent['scene.aspectratio'];
+ expect(aspectratio.x).toBeCloseTo(0.909, 3, 'aspectratio.x');
+ expect(aspectratio.y).toBeCloseTo(0.909, 3, 'aspectratio.y');
+ expect(aspectratio.z).toBeCloseTo(0.909, 3, 'aspectratio.z');
+ })
+ .then(function() {
+ return scroll(sceneTarget2);
+ })
+ .then(function() {
+ expect(relayoutCnt).toEqual(2);
+
+ aspectratio = relayoutEvent['scene2.aspectratio'];
+ expect(aspectratio.x).toBeCloseTo(2.727, 3, 'aspectratio.x');
+ expect(aspectratio.y).toBeCloseTo(1.818, 3, 'aspectratio.y');
+ expect(aspectratio.z).toBeCloseTo(0.909, 3, 'aspectratio.z');
+ })
+ .catch(failTest)
+ .then(done);
+ });
+
it('@gl should fire plotly_relayouting events when dragged - perspective case', function(done) {
var sceneTarget, relayoutEvent;
@@ -1216,8 +1275,10 @@ describe('Test gl3d drag and wheel interactions', function() {
.then(function() {
expect(events.length).toEqual(nsteps);
expect(relayoutCnt).toEqual(1);
+
Object.keys(relayoutEvent).sort().forEach(function(key) {
expect(Object.keys(events[0])).toContain(key);
+ expect(key).not.toBe('scene.aspectratio');
});
})
.catch(failTest)
@@ -1267,6 +1328,7 @@ describe('Test gl3d drag and wheel interactions', function() {
expect(relayoutCnt).toEqual(1);
Object.keys(relayoutEvent).sort().forEach(function(key) {
expect(Object.keys(events[0])).toContain(key);
+ expect(key).not.toBe('scene.aspectratio');
});
})
.catch(failTest)
| 0 |
diff --git a/README.md b/README.md @@ -438,12 +438,11 @@ Embark includes a testing lib to fastly run & test your contracts in a EVM.
# test/simple_storage_spec.js
var assert = require('assert');
-var Embark = require('embark');
-var EmbarkSpec = Embark.initTests();
-var web3 = EmbarkSpec.web3;
+var EmbarkSpec = require('embark/lib/core/test.js');
describe("SimpleStorage", function() {
before(function(done) {
+ this.timeout(0);
var contractsConfig = {
"SimpleStorage": {
args: [100]
@@ -469,6 +468,7 @@ describe("SimpleStorage", function() {
});
});
+
```
Embark uses [Mocha](http://mochajs.org/) by default, but you can use any testing framework you want.
| 3 |
diff --git a/docs/_posts/2017-07-08-switch.html b/docs/_posts/2017-07-08-switch.html @@ -42,7 +42,7 @@ keywords: "switch,checkbox"
</div>
</div>
<pre class="sd-snippet-code">
-<label class="siimple-label">Your switch:</label>
+<label class="siimple-label">Your switch:</label>
<div class="siimple-switch">
<input type="checkbox" id="mySwitch" checked>
<label for="mySwitch"></label>
@@ -66,7 +66,7 @@ keywords: "switch,checkbox"
</div>
</div>
<pre class="sd-snippet-code">
-<label class="siimple-label">Your switch:</label>
+<label class="siimple-label">Your switch:</label>
<div class="siimple-switch siimple-switch--error">
<input type="checkbox" id="mySwitch2" checked>
<label for="mySwitch2"></label>
| 1 |
diff --git a/hyperion/cache.js b/hyperion/cache.js @@ -30,8 +30,10 @@ const cache = (
return next();
}
- const key = `__cache__${req.originalUrl || req.url}`;
- debug(`unauthenticated request, checking cache for ${key}`);
+ // NOTE(@mxstbr): Using req.path here (instead of req.url or req.originalUrl) to avoid sending unique pages
+ // for query params, i.e. /spectrum?bla=xyz will be treated the same as /spectrum
+ const key = `__cache__${req.path}`;
+ debug(`unauthenticated request, checking cache for ${req.path}`);
redis.get(key).then(result => {
if (result) {
debug(`cached html found, sending to user`);
@@ -43,7 +45,7 @@ const cache = (
res.originalSend = res.send;
// $FlowFixMe
res.send = (...args) => {
- debug(`monkey-patched res.send called, caching at ${key}`);
+ debug(`monkey-patched res.send called, caching at ${req.path}`);
redis.set(key, ...args, 'ex', 3600);
// $FlowFixMe
| 8 |
diff --git a/assets/js/components/data/index.test.js b/assets/js/components/data/index.test.js @@ -25,7 +25,7 @@ import * as DateRange from '../../util/date-range.js';
import { getCacheKey } from './cache';
import { enableTracking } from '../../util/tracking';
-describe( 'googlesitekit.dataAPI', () => {
+describe( 'dataAPI', () => {
let dataLayerPushSpy;
const backupBaseData = global._googlesitekitBaseData;
const restoreGlobal = () => global._googlesitekitBaseData = backupBaseData;
| 2 |
diff --git a/src/v2/guide/unit-testing.md b/src/v2/guide/unit-testing.md @@ -131,4 +131,4 @@ it('updates the rendered message when vm.message updates', done => {
We are planning to work on a collection of common test helpers to make it easier to render components with different constraints (e.g. shallow rendering that ignores child components) and assert their output.
-For more in-depth information on unit testing in Vue, check out [vue-test-utils](https://vue-test-utils.vuejs.org/) and our cookbook entry about [unit testing vue components](https://vuejs.org/v2/cookbook/unit-testing-vue-components.html).
+For more in-depth information on unit testing in Vue, check out [Vue Test Utils](https://vue-test-utils.vuejs.org/) and our cookbook entry about [unit testing vue components](https://vuejs.org/v2/cookbook/unit-testing-vue-components.html).
| 14 |
diff --git a/appdata/menu.html b/appdata/menu.html </span>
<span class="caltext">Linear Algebra</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">13 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Conic</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">05 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Calculus</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">31 Calculators</span>
</div>
</div>
</span>
<span class="caltext">General Maths</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">111 Calculators</span>
</div>
</div>
<div class="col-md-3 col-6">
</span>
<span class="caltext">Basic Converters</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">09 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Graphs/Shapes</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">36 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Equations</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">05 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Binary</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">15 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Complex</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">09 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Probability</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">18 Calculators</span>
</div>
</div>
</span>
<span class="caltext">Statistics</span>
- <span class="totalcal">21 Calculators</span>
+ <span class="totalcal">41 Calculators</span>
</div>
</div>
</div>
| 3 |
diff --git a/articles/email/spa-redirect.md b/articles/email/spa-redirect.md @@ -27,17 +27,17 @@ However, SPA frameworks (such as Angular) typically expect URLs in the `scheme|a
For example, with the above URL, the app will be routed to `/` instead of `/#/register`.
-## Using state
+## Using a Query String Parameter
-To work around this limitation of SPA frameworks, it is recommended to use a server-side callback URL as the **redirect To** URL with a `state` parameter that preserves the SPA app route for the redirect. Once in this server-side URL, simply redirect to the SPA route saved in `state` parameter along with rest of the query string.
+To work around this limitation of SPA frameworks, it is recommended to use a server-side callback URL as the **redirect To** URL with a `route` parameter that preserves the SPA app route for the redirect. Once in this server-side URL, simply redirect to the SPA route saved in the `route` parameter along with rest of the query string.
-1. Add a server-side URL as the **redirect To** URL with a `state` parameter that records the SPA route for the redirect.
+1. Add a server-side URL as the **redirect To** URL with a `route` parameter that records the SPA route for the redirect.
```text
-http://localhost:3001/register?state=register
+http://localhost:3001/register?route=register
```
-1. Next, create a server-side route controller that reads the `state` and other parameters from the URL and redirects to the SPA route specified in `state` parameter. Remember to append the other parameters received from Auth0.
+1. Next, create a server-side route controller that reads the `route` and other parameters from the URL and redirects to the SPA route specified in `route` parameter. Remember to append the other parameters received from Auth0.
```js
var express = require('express');
@@ -45,10 +45,10 @@ var router = express.Router();
var qs = require('qs'); // to read query string params and stringify them
router.get('/register', function(req, res, next) {
- var state = req.query.state; // retrieve the state param that contains the SPA client side route user needs to be redirected to.
+ var route = req.query.route; // retrieve the route param that contains the SPA client side route user needs to be redirected to.
- delete req.query.state; // remove it from query params.
- res.redirect('http://localhost:3000/#/' + state + '?' + qs.stringify(req.query)); // Send a 302 redirect for the expected route
+ delete req.query.route; // remove it from query params.
+ res.redirect('http://localhost:3000/#/' + route + '?' + qs.stringify(req.query)); // Send a 302 redirect for the expected route
});
module.exports = router;
| 10 |
diff --git a/src/components/EmojiPicker/EmojiPickerButton.js b/src/components/EmojiPicker/EmojiPickerButton.js import React from 'react';
import {Keyboard, Pressable} from 'react-native';
import PropTypes from 'prop-types';
-import {compose} from 'underscore';
+import compose from '../../libs/compose';
import styles from '../../styles/styles';
import * as StyleUtils from '../../styles/StyleUtils';
import getButtonState from '../../libs/getButtonState';
| 4 |
diff --git a/guides/airflow-scaling-workers.md b/guides/airflow-scaling-workers.md @@ -37,8 +37,8 @@ Here are the settings and their default values.
<td align="center">16</td>
</tr>
<tr>
- <td>max_threads</td>
- <td>AIRFLOW__SCHEDULER__MAX_THREADS</td>
+ <td>parsing_processes</td>
+ <td>AIRFLOW__SCHEDULER__PARSING_PROCESSES</td>
<td align="center">2</td>
</tr>
</table>
@@ -62,7 +62,9 @@ If you're using Astronomer, you can configure both worker resources and environm
If you decide to increase these settings, Airflow will be able to scale up and process many tasks in parallel. This could however put a strain on the scheduler. For example, you may notice delays in task execution, tasks remaining a in `queued` state for longer than expected, or gaps in the Gantt chart of the Airflow UI.
-The **max_threads = 2** setting can be used to increase the number of threads running on the scheduler. This can prevent the scheduler from getting behind, but may also require more resources. If you increase this, you may need to increase CPU and/or memory on your scheduler. This should be set to n-1 where n is the number of CPUs of your scheduler.
+The **parsing_processes = 2** setting can be used to increase the number of threads running on the scheduler. This can prevent the scheduler from getting behind, but may also require more resources. If you increase this, you may need to increase CPU and/or memory on your scheduler. This should be set to n-1 where n is the number of CPUs of your scheduler.
+
+> **Note:** In Airflow 1.10.13 and prior versions, the parsing_processes setting is called max_threads.
On Astronomer, simply increase the slider on the Scheduler to increase CPU and memory.
| 14 |
diff --git a/js/core/bis_bidsutils.js b/js/core/bis_bidsutils.js @@ -171,6 +171,10 @@ let dicom2BIDS = async function (opts) {
console.log('parsed filenames', parsedFilenames);
+
+ //TODO: This seems to cause errors on Windows? Something about how it reads the raw data gives a strange error with toString()
+ //My instinct would say that the issue is in bis_util.SHA256 (which is invoked by bis_genericio from calculateChecksums())
+ // -Zach
let makeHash = ( calcHash ? calculateChecksums(parsedFilenames) : [ Promise.resolve()]);
@@ -253,7 +257,7 @@ let dicom2BIDS = async function (opts) {
if (calcHash) {
for (let val of checksums) {
console.log('val', val);
- for (let fileEntry of dicomobj.job) {
+ for (let fileEntry of dicomobj.files) {
if (val.output.filename.includes(fileEntry.name)) {
fileEntry.hash = val.output.hash;
break;
| 1 |
diff --git a/docs/src/examples/QSelect/OptionSlot.vue b/docs/src/examples/QSelect/OptionSlot.vue options-selected-class="text-deep-orange"
>
<template v-slot:option="scope">
- <q-item
- v-bind="scope.itemProps"
- v-on="scope.itemEvents"
- >
+ <q-item v-bind="scope.itemProps">
<q-item-section avatar>
<q-icon :name="scope.opt.icon" />
</q-item-section>
| 1 |
diff --git a/src/pipeline/bundle-js.js b/src/pipeline/bundle-js.js @@ -9,12 +9,12 @@ const Promise = require('bluebird');
let b;
-const getTransform = (opts) => {
+const getTransform = (opts, paths) => {
const _getTransform = (name) => {
return (opts[name] || []).map(d => require(d));
};
- return [[ babelify, { presets: [ reactPreset, es2015Preset ], ignore: ['node_modules/**/*'] } ]]
+ return [[ babelify, { presets: [ reactPreset, es2015Preset ], ignore: ['node_modules/!(idyll)/**/*'] } ]]
.concat(_getTransform('transform'))
.concat([[ brfs ]]);
};
@@ -29,7 +29,7 @@ module.exports = function (opts, paths) {
packageCache: {},
fullPaths: true,
cacheFile: path.join(paths.TMP_DIR, 'browserify-cache.json'),
- transform: getTransform(opts),
+ transform: getTransform(opts, paths),
plugin: [
(b) => b.require([
{file: paths.SYNTAX_OUTPUT_FILE, expose: '__IDYLL_SYNTAX_HIGHLIGHT__'},
| 1 |
diff --git a/runtime.js b/runtime.js @@ -144,6 +144,46 @@ const _loadGltf = async (file, {optimize = false, physics = false, physics_url =
};
_loadLightmaps(parser);
+ const textureToData = new Map();
+ const registeredTextures = [];
+ const _loadUvScroll = o => {
+ o.traverse(o => {
+ if (o.isMesh && o?.userData?.gltfExtensions?.MOZ_hubs_components?.['uv-scroll']) {
+ const uvScrollSpec = o.userData.gltfExtensions.MOZ_hubs_components['uv-scroll'];
+ const {increment, speed} = uvScrollSpec;
+
+ const mesh = o; // this.el.getObject3D("mesh") || this.el.getObject3D("skinnedmesh");
+ const {material} = mesh;
+ if (material) {
+ const spec = {};
+
+ // We store mesh here instead of the material directly because we end up swapping out the material in injectCustomShaderChunks.
+ // We need material in the first place because of MobileStandardMaterial
+ const instance = { component: spec, mesh, data: {increment, speed} };
+
+ spec.instance = instance;
+ spec.map = material.map || material.emissiveMap;
+
+ if (spec.map && !textureToData.has(spec.map)) {
+ textureToData.set(spec.map, {
+ offset: new THREE.Vector2(),
+ instances: [instance]
+ });
+ registeredTextures.push(spec.map);
+ } else if (!spec.map) {
+ console.warn("Ignoring uv-scroll added to mesh with no scrollable texture.");
+ } else {
+ console.warn(
+ "Multiple uv-scroll instances added to objects sharing a texture, only the speed/increment from the first one will have any effect"
+ );
+ textureToData.get(spec.map).instances.push(instance);
+ }
+ }
+ }
+ });
+ };
+ _loadUvScroll(o);
+
const mesh = (() => {
if (optimize) {
const specs = [];
@@ -219,6 +259,23 @@ const _loadGltf = async (file, {optimize = false, physics = false, physics_url =
physicsIds.push(physicsId);
staticPhysicsIds.push(physicsId);
}
+ {
+ const dt = Date.now();
+ for (let i = 0; i < registeredTextures.length; i++) {
+ const map = registeredTextures[i];
+ const { offset, instances } = textureToData.get(map);
+ const { component } = instances[0];
+
+ offset.addScaledVector(component.data.speed, dt / 1000);
+
+ offset.x = offset.x % 1.0;
+ offset.y = offset.y % 1.0;
+
+ const increment = component.data.increment;
+ map.offset.x = increment.x ? offset.x - (offset.x % increment.x) : offset.x;
+ map.offset.y = increment.y ? offset.y - (offset.y % increment.y) : offset.y;
+ }
+ }
};
mesh.destroy = () => {
for (const physicsId of physicsIds) {
| 0 |
diff --git a/server/src/input/pdfminer/pdfminer.ts b/server/src/input/pdfminer/pdfminer.ts @@ -24,9 +24,7 @@ import {
Document,
Element,
Font,
- Line,
Page,
- Paragraph,
Word,
} from '../../types/DocumentRepresentation';
import { PdfminerPage } from '../../types/PdfminerPage';
@@ -121,13 +119,11 @@ function getPage(pageObj: PdfminerPage): Page {
// treat paragraphs
if (pageObj.textbox !== undefined) {
- const paras: Paragraph[] = pageObj.textbox.map(para => {
- const lines: Line[] = para.textline.map(line =>
- breakLineIntoWords(line, ',', pageBbox.height),
- );
- return new Paragraph(getBoundingBox(para._attr.bbox, ',', pageBbox.height), lines);
+ pageObj.textbox.forEach(para => {
+ para.textline.map(line => {
+ elements = [...elements, ...breakLineIntoWords(line, ',', pageBbox.height)];
+ });
});
- elements = [...elements, ...paras];
}
return new Page(parseFloat(pageObj._attr.id), elements, pageBbox);
}
@@ -153,7 +149,7 @@ function breakLineIntoWords(
wordSeperator: string = ' ',
pageHeight: number,
scalingFactor: number = 1,
-): Line {
+): Word[] {
const chars: Character[] = line.text.map(char => {
if (char._ === undefined) {
return undefined;
@@ -210,7 +206,7 @@ function breakLineIntoWords(
);
}
}
- return new Line(getBoundingBox(line._attr.bbox, ',', pageHeight), words);
+ return words;
}
/**
| 2 |
diff --git a/lib/test_task.js b/lib/test_task.js @@ -101,7 +101,7 @@ var TestTask = function () {
}
task(this.testName, prereqs, {async: true}, function () {
- var t = jake.Task[self.testName + ':run'];
+ var t = jake.Task[this.fullName + ':run'];
t.on('complete', function () {
complete();
});
| 1 |
diff --git a/assets/js/modules/analytics/datastore/setup-flow.test.js b/assets/js/modules/analytics/datastore/setup-flow.test.js @@ -34,12 +34,7 @@ import {
unsubscribeFromAll,
provideModules,
untilResolved,
- freezeFetch,
} from '../../../../../tests/js/utils';
-import { CORE_MODULES } from '../../../googlesitekit/modules/datastore/constants';
-import { MODULES_TAGMANAGER } from '../../tagmanager/datastore/constants';
-import { parseLiveContainerVersionIDs } from '../../tagmanager/datastore/__factories__/utils';
-import * as gtmFixtures from '../../tagmanager/datastore/__fixtures__';
const accountID = 'pub-12345678';
@@ -339,176 +334,5 @@ describe( 'modules/analytics setup-flow', () => {
expect( canUseControls ).toBe( true );
} );
} );
-
- describe( 'hasFinishedLoadingGTMContainers', () => {
- it( 'should return TRUE when the GTM module is not available', () => {
- // Set tagmanager module to not available.
- registry.dispatch( CORE_MODULES ).receiveGetModules( [
- {
- slug: 'analytics',
- name: 'Analytics',
- active: true,
- },
- ] );
-
- const hasFinishedLoading = registry
- .select( MODULES_ANALYTICS )
- .hasFinishedLoadingGTMContainers();
-
- expect( hasFinishedLoading ).toBe( true );
- } );
-
- it( 'should return TRUE when the GTM module is available and the web containers are loaded', async () => {
- registry.dispatch( CORE_MODULES ).receiveGetModules( [
- {
- slug: 'analytics',
- name: 'Analytics',
- active: true,
- },
- {
- slug: 'tagmanager',
- name: 'Tag Manager',
- active: true,
- },
- ] );
-
- const webContainerVersion =
- gtmFixtures.liveContainerVersions.web.gaWithVariable;
- const gtmAccountID = webContainerVersion.accountId; // eslint-disable-line sitekit/acronym-case
- const gtmContainerID = webContainerVersion.containerId; // eslint-disable-line sitekit/acronym-case
-
- parseLiveContainerVersionIDs(
- webContainerVersion,
- ( { internalContainerID, containerID } ) => {
- registry.dispatch( MODULES_TAGMANAGER ).setSettings( {
- accountID: gtmAccountID,
- containerID,
- internalContainerID,
- useSnippet: true,
- } );
- registry
- .dispatch( MODULES_TAGMANAGER )
- .receiveGetLiveContainerVersion(
- webContainerVersion,
- {
- accountID: gtmAccountID,
- internalContainerID,
- }
- );
- registry
- .select( MODULES_TAGMANAGER )
- .getLiveContainerVersion(
- gtmAccountID,
- internalContainerID
- );
- }
- );
-
- await untilResolved(
- registry,
- MODULES_TAGMANAGER
- ).getLiveContainerVersion( gtmAccountID, gtmContainerID );
- const hasFinishedLoading = registry
- .select( MODULES_ANALYTICS )
- .hasFinishedLoadingGTMContainers();
-
- expect( hasFinishedLoading ).toBe( true );
- } );
-
- it( 'should return TRUE when the GTM module is available and the AMP containers are loaded', async () => {
- registry.dispatch( CORE_MODULES ).receiveGetModules( [
- {
- slug: 'analytics',
- name: 'Analytics',
- active: true,
- },
- {
- slug: 'tagmanager',
- name: 'Tag Manager',
- active: true,
- },
- ] );
-
- const ampContainerVersion =
- gtmFixtures.liveContainerVersions.amp.ga;
- const gtmAccountID = ampContainerVersion.accountId; // eslint-disable-line sitekit/acronym-case
- const gtmAMPContainerID = ampContainerVersion.containerId; // eslint-disable-line sitekit/acronym-case
-
- parseLiveContainerVersionIDs(
- ampContainerVersion,
- ( { internalAMPContainerID, containerID } ) => {
- registry.dispatch( MODULES_TAGMANAGER ).setSettings( {
- accountID: gtmAccountID,
- containerID,
- internalContainerID: internalAMPContainerID,
- useSnippet: true,
- } );
- registry
- .dispatch( MODULES_TAGMANAGER )
- .setInternalAMPContainerID(
- internalAMPContainerID
- );
- registry
- .dispatch( MODULES_TAGMANAGER )
- .receiveGetLiveContainerVersion(
- ampContainerVersion,
- {
- accountID: gtmAccountID,
- internalContainerID: internalAMPContainerID,
- }
- );
- registry
- .select( MODULES_TAGMANAGER )
- .getLiveContainerVersion(
- gtmAccountID,
- internalAMPContainerID
- );
- }
- );
-
- await untilResolved(
- registry,
- MODULES_TAGMANAGER
- ).getLiveContainerVersion( gtmAccountID, gtmAMPContainerID );
- const hasFinishedLoading = registry
- .select( MODULES_ANALYTICS )
- .hasFinishedLoadingGTMContainers();
-
- expect( hasFinishedLoading ).toBe( true );
- } );
-
- it( 'should return FALSE when the selector is not resolved yet', () => {
- registry.dispatch( CORE_MODULES ).receiveGetModules( [
- {
- slug: 'analytics',
- name: 'Analytics',
- active: true,
- },
- {
- slug: 'tagmanager',
- name: 'Tag Manager',
- active: true,
- },
- ] );
- registry.dispatch( MODULES_TAGMANAGER ).setSettings( {
- accountID: 100,
- containerID: 200,
- internalContainerID: 200,
- useSnippet: true,
- } );
-
- freezeFetch(
- new RegExp(
- '^/google-site-kit/v1/modules/tagmanager/data/live-container-version'
- )
- );
-
- const hasFinishedLoading = registry
- .select( MODULES_ANALYTICS )
- .hasFinishedLoadingGTMContainers();
-
- expect( hasFinishedLoading ).toBe( false );
- } );
- } );
} );
} );
| 2 |
diff --git a/src/schemas/json/comet.json b/src/schemas/json/comet.json "oneOf": [
{
"const": "NONE",
- "description": ""
+ "description": "Don't sink. This is the default"
},
{
"const": "JBDC",
- "description": ""
+ "description": "dataset will be sinked to a JDBC Database. See JdbcSink"
},
{
"const": "BQ",
- "description": ""
+ "description": "Dataset is sinked to BigQuery. See BigQuerySink"
},
{
"const": "ES",
- "description": ""
+ "description": "Dataset is indexed into Elasticsearch. See EsSink below"
},
{
"const": "FS",
- "description": ""
+ "description": "Sink to Filesystem"
+ },
+ {
+ "const": "KAFKA",
+ "description": "Sink to Kafka"
}
]
},
"name": {
"type": "string"
},
+ "primitiveType": {
+ "$ref": "#/definitions/PrimitiveType"
+ },
"pattern": {
"type": "string"
},
},
"required": [
"name",
- "pattern"
+ "pattern",
+ "primitiveType"
]
},
"Partition": {
"type": "object",
"properties": {
"sampling": {
- "type": "number"
+ "type": "number",
+ "description": "0.0 means no sampling, > 0 && < 1 means sample dataset, >=1 absolute number of partitions."
},
"attributes": {
"type": "array",
"items": {
- "type": "string"
+ "type": "string",
+ "description": "Attributes used to partition de dataset."
}
}
},
"type": "object",
"properties": {
"type": {
- "$ref": "#/definitions/SinkType"
+ "$ref": "#/definitions/SinkType",
+ "description": "Once ingested, files may be sinked to BigQuery, Elasticsearch or any JDBC compliant Database."
},
"name": {
- "type": "string"
+ "type": "string",
+ "description": "Once ingested, files may be sinked to BigQuery, Elasticsearch or any JDBC compliant Database."
},
"id": {
- "type": "string"
+ "type": "string",
+ "description": "ES: Attribute to use as id of the document. Generated by Elasticseach if not specified."
},
"timestamp": {
- "type": "string"
+ "type": "string",
+ "description": "BQ: The timestamp column to use for table partitioning if any. No partitioning by default\\nES:Timestamp field format as expected by Elasticsearch (\"{beginTs|yyyy.MM.dd}\" for example)."
},
"location": {
- "type": "string"
+ "type": "string",
+ "description": "BQ: Database location (EU, US, ...)"
},
"clustering": {
- "type": "string"
+ "type": "string",
+ "description": "BQ: List of ordered columns to use for table clustering"
},
"days": {
- "type": "number"
+ "type": "number",
+ "description": "BQ: Number of days before this table is set as expired and deleted. Never by default."
},
"requirePartitionFilter": {
- "type": "boolean"
+ "type": "boolean",
+ "description": "BQ: Should be require a partition filter on every request ? No by default."
},
"connection": {
- "type": "string"
+ "type": "string",
+ "description": "JDBC: Connection String"
},
"partitions": {
- "type": "number"
+ "type": "number",
+ "description": "JDBC: Number of Spark partitions"
},
"batchSize": {
- "type": "number"
+ "type": "number",
+ "description": "JDBC: Batch size of each JDBC bulk insert"
}
},
"required": [
"description": "List of columns used for partitioning the outtput."
},
"presql": {
- "type": "string",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
"description": "List of SQL requests to executed before the main SQL request is run"
},
"postsql": {
- "type": "string",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
"description": "List of SQL requests to executed after the main SQL request is run"
},
"sink": {
}
},
"required": [
- "name",
"domain",
"dataset",
- "write"
+ "write",
+ "sql"
]
},
"Domain": {
"properties": {
"name": {
"type": "string",
- "description": "Job logical name"
+ "description": "Job name. Must be set to the prefix of the filename. [JOBNAME].comet.yml "
},
"area": {
"type": "string",
}
},
"required": [
- "name"
+ "name",
+ "tasks"
]
}
},
| 7 |
diff --git a/pages/docs/react/latest/arrays-and-keys.mdx b/pages/docs/react/latest/arrays-and-keys.mdx @@ -101,21 +101,24 @@ In case you ever want to render a `list` of items, you can do something like thi
```res
type todo = {id: string, text: string}
+
[email protected]
+let make = () => {
let todoList = list{
{id: "todo1", text: "Todo 1"},
- {id: "todo2", text: "Todo 2"}
+ {id: "todo2", text: "Todo 2"},
}
let items =
todoList
->Belt.List.toArray
- ->Belt.List.map((todo) => {
- <li key={todo.id}>
- {React.string(todo.text)}
- </li>
+ ->Belt.Array.map(todo => {
+ <li key={todo.id}> {React.string(todo.text)} </li>
})
<div> {React.array(items)} </div>
+}
+
```
We use `Belt.List.toArray` to convert our list to an array before creating our `array<React.element>`. Please note that using `list` has performance impact due to extra conversion costs.
| 1 |
diff --git a/website/source/index.html.erb b/website/source/index.html.erb @@ -63,7 +63,7 @@ title: Sir Trevor JS | Made by Many
<h2>Features</h2>
<ul class="features cf">
- <li class="feature" data-icon="add">No HTML is stored, only structured JSON and clean Markdown</li>
+ <li class="feature" data-icon="add">Stored in structured JSON with limited inline HTML markup</li>
<li class="feature" data-icon="add">Trivial to extend and create your own block types</li>
<li class="feature" data-icon="add">Intuitive interface for creating rich content</li>
<li class="feature" data-icon="add">Used on a national broadcast news site serving millions of users</li>
| 3 |
diff --git a/tests/smoke/smoke.js b/tests/smoke/smoke.js @@ -22,14 +22,14 @@ chai.use(chaiHttp);
var expect = chai.expect;
-tests.forEach((testItem) => {
- it(`${testItem.engine} should answer with HTTP 200`, function(done) {
+tests.forEach((testCase) => {
+ it(`${testCase.engine} should answer with HTTP 200`, function(done) {
chai.request('localhost:8000')
- .post(`/${testItem.engine}/svg`)
+ .post(`/${testCase.engine}/svg`)
.type('text/plain')
.set('Content-Type', 'text/plain')
.set('Accept', 'image/svg+xml')
- .send(fs.readFileSync(`${__dirname}/diagrams/${testItem.file}`))
+ .send(fs.readFileSync(`${__dirname}/diagrams/${testCase.file}`))
.end((error, response) => {
expect(error).to.be.null;
expect(response).to.have.status(200);
| 10 |
diff --git a/articles/implementing-shooting-method-in-matlab/index.md b/articles/implementing-shooting-method-in-matlab/index.md @@ -13,13 +13,11 @@ images:
- url: /engineering-education/implementing-shooting-method-in-matlab/hero.png
alt: shooting method Matlab
+---
In numerical analysis, the shooting method reduces a boundary value problem to an initial value problem. It is a popular method for the solution of two-point boundary value problems.
<!--more-->
-
-
-### Introduction
-In numerical analysis, the shooting method reduces a boundary value problem to an initial value problem. It is a popular method for the solution of two-point boundary value problems. If the problem is first defined by *y=f(x); y(x0)=a* and *$y(X_1)$*, it is transformed into the initial problem *y' =z(x)* and *z'(x) = f(x)* with some initial values.
+If the problem is first defined by *y=f(x); y(x0)=a* and *$y(X_1)$*, it is transformed into the initial problem *y' =z(x)* and *z'(x) = f(x)* with some initial values.
Since this method is a two-point boundary value problem, then it has two initial values. In the shooting method, one of the initial values is not known. This value is guessed and compared to the known solution at the boundary conditions until the target thus shooting method. This article contains the construction of the shooting method code for a linear BVP. We will look at recognizing the boundary value problem and formulate the BVP as an equivalent system of IVP.
| 1 |
diff --git a/src/resources/views/crud/fields/switch.blade.php b/src/resources/views/crud/fields/switch.blade.php <div class="d-inline-flex">
{{-- Switch --}}
- <label class="switch switch-sm switch-label switch-pill switch-{{ $field['color'] }}" style="margin-bottom: 0;">
+ <label class="switch switch-sm switch-label switch-pill switch-{{ $field['color'] }} mb-0" style="--bg-color: {{ $field['color'] }};">
<input
type="hidden"
name="{{ $field['name'] }}"
@endLoadOnce
@endpush
-@if(\Str::startsWith($field['color'], '#'))
@push('crud_fields_styles')
@loadOnce('bpFieldInitSwitchStyle')
<style>
- .switch .switch-input:checked+.switch-slider {
- background-color: {{ $field['color'] }};
+ .switch-input:checked+.switch-slider {
+ background-color: var(--bg-color);
}
</style>
@endLoadOnce
@endpush
-@endif
{{-- End of Extra CSS and JS --}}
{{-- ########################################## --}}
| 11 |
diff --git a/weapons-manager.js b/weapons-manager.js @@ -1109,6 +1109,22 @@ const itemSpecs3 = [
"name": "camera",
"start_url": "https://avaer.github.io/camera/index.js"
},
+ {
+ "name": "cat-in-hat",
+ "start_url": "https://avaer.github.io/cat-in-hat/manifest.json"
+ },
+ {
+ "name": "sword",
+ "start_url": "https://avaer.github.io/sword/manifest.json"
+ },
+ {
+ "name": "dragon-pet",
+ "start_url": "https://avaer.github.io/dragon-pet/manifest.json"
+ },
+ {
+ "name": "dragon-mount",
+ "start_url": "https://avaer.github.io/dragon-mount/manifest.json"
+ },
{
"name": "cityscape",
"start_url": "https://raw.githubusercontent.com/metavly/cityscape/master/manifest.json"
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.