code
stringlengths 122
4.99k
| label
int64 0
14
|
---|---|
diff --git a/articles/api/management/v2/user-search.md b/articles/api/management/v2/user-search.md @@ -10,10 +10,24 @@ Auth0 allows you, as an administrator, to search for users using [Lucene Query S
This document will demonstrate the various ways in which you can search for users, as well as give some example queries. It is however suggested that you also reference the [Query String Syntax document](/api/management/v2/query-string-syntax) for more examples of the query string syntax.
-All the [normalized user profile](/user-profile/normalized) fields, as well as the `user_metadata` and `app_metadata` are searchable.
+## Searchable Fields
+
+You can search for user using the following fields:
+
+* All the [normalized user profile](/user-profile/normalized) fields
+
+* __Only__ the profile information under the `user_metadata` object:
+ - `name`
+ - `nickname`
+ - `given_name`
+ - `family_name`
+
+::: warning
+__None__ of the `app_metadata` fields are searchable.
+:::
::: note
-For more information on working with `user_metadata` and `app_metadata`, please read the [Metadata documentation](https://auth0.com/docs/metadata).
+For more information on user related metadata refer to [User Metadata](](/metadata).
:::
## Search for Users in the Dashboard
| 0 |
diff --git a/client/app/services/l10n.js b/client/app/services/l10n.js @@ -22,7 +22,7 @@ export const L10nContext = React.createContext(undefined);
* Provides "t" "setLanguage" and "language" to Children (via react's useContext)
* Usage:
* const {t} = useContext(L10nContext);
- * return <div >{t('some-translation-key')}</div>;
+ * return <div >{t('room')}</div>;
*
*/
export const WithL10n = ({children}) => {
| 4 |
diff --git a/app/src/tests/scripts/common/forms/warn-button.spec.jsx b/app/src/tests/scripts/common/forms/warn-button.spec.jsx import WarnButton from '../../../../scripts/common/forms/warn-button';
-describe('component WarnButton', () => {
+describe('common/forms/WarnButton', () => {
it('renders successfully', () => {
const wrapper = shallow(
<WarnButton message="A Button!"/>
@@ -12,5 +12,5 @@ describe('component WarnButton', () => {
<WarnButton message="A Button!" warn={false}/>
);
expect(wrapper).toMatchSnapshot();
- })
+ });
});
| 1 |
diff --git a/node-binance-api.js b/node-binance-api.js @@ -528,11 +528,20 @@ LIMIT_MAKER
if ( callback ) callback(balanceData(data));
});
},
+/*
+Breaking change: Spread operator is unsupported by Electron
+Move this to a future release
trades: function(symbol, callback, options) {
signedRequest(base+'v3/myTrades', {symbol:symbol, ...options}, function(data) {
if ( callback ) return callback.call(this, data, symbol);
});
},
+*/
+ trades: function(symbol, callback) {
+ signedRequest(base+'v3/myTrades', {symbol:symbol}, function(data) {
+ if ( callback ) return callback.call(this, data, symbol);
+ });
+ },
recentTrades: function(symbol, callback, limit = 500) {
signedRequest(base+'v1/trades', {symbol:symbol, limit:limit}, callback);
},
| 2 |
diff --git a/src/docs/filters.md b/src/docs/filters.md @@ -33,7 +33,7 @@ Various template engines can be extended with custom filters to modify content.
<h1>{{ name | makeUppercase }}</h1>
{% endraw %}{% endhighlight %}
</div>
- <div id="filter-11tyjs" role="tabpanel">
+ <div id="filter-js" role="tabpanel">
{% codetitle "sample.11ty.js" %}
{%- highlight "js" %}{% raw %}
module.exports = function({name}) {
| 1 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.215.13",
+ "version": "0.215.14",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/tools/import_conservation_statuses.rb b/tools/import_conservation_statuses.rb @@ -95,7 +95,9 @@ CSV.foreach( csv_path, headers: HEADERS ) do |row|
skipped << identifier
next
end
- unless iucn = Taxon::IUCN_STATUS_VALUES[row["iucn"].to_s.parameterize.underscore]
+ iucn = Taxon::IUCN_STATUS_VALUES[row["iucn"].to_s.strip.parameterize.underscore]
+ iucn ||= Taxon::IUCN_CODE_VALUES[row["iucn"].to_s.strip.upcase]
+ unless iucn
puts "\t#{row["iucn"]} is not a valid IUCN status, skipping..."
skipped << identifier
next
| 11 |
diff --git a/src/plugin/buddhistEra/index.js b/src/plugin/buddhistEra/index.js @@ -6,14 +6,15 @@ export default (o, c) => { // locale needed later
// extend en locale here
proto.format = function (formatStr, localeObject) {
const yearBias = 543
+ const utils = this.$utils()
const locale = localeObject || this.$locale()
const str = formatStr || FORMAT_DEFAULT
const result = str.replace(/BBBB|BB/g, (match) => {
switch (match) {
case 'BB':
- return (this.$y + yearBias) % 100
+ return utils.padStart(String((this.$y + yearBias) % 100), 2, '0')
default: // BBBB
- return this.$y + yearBias
+ return utils.padStart(String(this.$y + yearBias), 4, '0')
}
})
return oldFormat.bind(this)(result, locale)
| 0 |
diff --git a/styles/components/_type.scss b/styles/components/_type.scss @@ -6,7 +6,6 @@ h1,h2,h3,h4,h5,h6,
font-weight: 700;
-webkit-margin-before: 0;
-webkit-margin-after: 0.5em;
- -webkit-user-select: none;
}
// all font sizes are multiples of the base rem. This allows us to increase or decrease all the fonts by changing the
| 11 |
diff --git a/src/model_path_provider.js b/src/model_path_provider.js @@ -7,7 +7,7 @@ import {
class gltfModelPathProvider
{
- constructor(modelIndexerPath, ignoredVariants = ["glTF-Draco", "glTF-Embedded"])
+ constructor(modelIndexerPath, ignoredVariants = ["glTF-Embedded"])
{
this.modelIndexerPath = modelIndexerPath;
this.ignoredVariants = ignoredVariants;
| 11 |
diff --git a/cli/jhipster-command.js b/cli/jhipster-command.js @@ -49,15 +49,18 @@ class JHipsterCommand extends Command {
* @return {JHipsterCommand} this;
*/
addOption(option) {
- const result = super.addOption(option);
- // Add a hidden negate option for boolean options
- if (option.long && !option.required && !option.optional) {
+ if (!option.long || option.required || option.optional) {
+ return super.addOption(option);
+ }
if (option.negate) {
- option.default(undefined);
+ // Add a affirmative option for negative boolean options.
+ // Should be done before, because commander adds a non working affirmative by itself.
super.addOption(new Option(option.long.replace(/^--no-/, '--')).hideHelp());
- } else {
- super.addOption(new Option(option.long.replace(/^--/, '--no-')).hideHelp());
}
+ const result = super.addOption(option);
+ if (!option.negate) {
+ // Add a hidden negative option for affirmative boolean options.
+ super.addOption(new Option(option.long.replace(/^--/, '--no-')).hideHelp());
}
return result;
}
| 7 |
diff --git a/articles/api-auth/grant/authorization-code-pkce.md b/articles/api-auth/grant/authorization-code-pkce.md @@ -42,26 +42,16 @@ For details on how to implement this using Auth0, refer to [Execute an Authoriza
For details on how to implement this, refer to [Execute an Authorization Code Grant Flow with PKCE: Customize the Tokens](/api-auth/tutorials/authorization-code-grant-pkce#optional-customize-the-tokens).
-## Read more
-
-[Execute an Authorization Code Grant Flow with PKCE](/api-auth/tutorials/authorization-code-grant-pkce)
-
-[How to configure an API in Auth0](/apis)
-
-[Mobile/Native App Quickstarts](/quickstart/native)
-
-[Client Authentication for Mobile & Desktop Apps](/client-auth/mobile-desktop)
-
-[Authentication API: GET /authorize](/api/authentication#authorization-code-grant-pkce-)
-
-[Authentication API: POST /oauth/token](/api/authentication#authorization-code-pkce-)
-
-[The OAuth 2.0 protocol](/protocols/oauth2)
-
-[The OpenID Connect protocol](/protocols/oidc)
-
-[Tokens used by Auth0](/tokens)
-
-[RFC 6749 - The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)
-
-[RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients](https://tools.ietf.org/html/rfc7636)
+## Keep reading
+
+- [Execute an Authorization Code Grant Flow with PKCE](/api-auth/tutorials/authorization-code-grant-pkce)
+- [How to configure an API in Auth0](/apis)
+- [Mobile/Native App Quickstarts](/quickstart/native)
+- [Client Authentication for Mobile & Desktop Apps](/client-auth/mobile-desktop)
+- [Authentication API: GET /authorize](/api/authentication#authorization-code-grant-pkce-)
+- [Authentication API: POST /oauth/token](/api/authentication#authorization-code-pkce-)
+- [The OAuth 2.0 protocol](/protocols/oauth2)
+- [The OpenID Connect protocol](/protocols/oidc)
+- [Tokens used by Auth0](/tokens)
+- [RFC 6749 - The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)
+- [RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients](https://tools.ietf.org/html/rfc7636)
| 0 |
diff --git a/lib/global-admin/addon/security/authentication/localauth/template.hbs b/lib/global-admin/addon/security/authentication/localauth/template.hbs <section>
- <h2>{{headerText}}</h2>
+ <h2>
+ {{headerText}}
+ </h2>
<div class="text-center">
- {{t 'authPage.localAuth.subtext.enabled.text' appName=settings.appName}} {{#link-to "accounts"}}{{t 'authPage.localAuth.subtext.enabled.linkText'}}{{/link-to}}
+ {{t "authPage.localAuth.subtext.enabled.text" appName=settings.appName}}
+ {{#link-to "security.accounts.users"}}
+ {{t "authPage.localAuth.subtext.enabled.linkText"}}
+ {{/link-to}}
+ </div>
+ <div class="text-center">
+ {{t "authPage.localAuth.subtext.enabled.alwaysOn"}}
</div>
- <div class="text-center">{{t 'authPage.localAuth.subtext.enabled.alwaysOn'}}</div>
</section>
| 1 |
diff --git a/userscript.user.js b/userscript.user.js @@ -3411,6 +3411,37 @@ var $$IMU_EXPORT$$;
}
};
+ var js_set_available = false;
+ var new_set = function() {
+ var set = [];
+
+ try {
+ set = new Set();
+ js_set_available = true;
+ } catch (e) {
+ }
+
+ return set;
+ };
+
+ var set_add = function(set, key) {
+ if (js_set_available) {
+ set.add(key);
+ } else {
+ if (!set_has(set, key)) {
+ set.push(key);
+ }
+ }
+ };
+
+ var set_has = function(set, key) {
+ if (js_set_available) {
+ return set.has(key);
+ } else {
+ return set.indexOf(key) >= 0;
+ }
+ };
+
function Cache() {
this.data = new_map();
this.times = new_map();
@@ -62013,7 +62044,7 @@ var $$IMU_EXPORT$$;
console_log("find_els_at_point", deepcopy(xy), deepcopy(els), deepcopy(prev));
if (!prev) {
- prev = [];
+ prev = new_set();
}
if (zoom_cache === undefined) {
@@ -62038,10 +62069,10 @@ var $$IMU_EXPORT$$;
for (var i = 0; i < els.length; i++) {
var el = els[i];
- if (prev.indexOf(el) >= 0)
+ if (set_has(prev, el))
continue;
- prev.push(el);
+ set_add(prev, el);
// FIXME: should we stop checking if not in bounding client rect?
// this would depend on the fact that children are always within the bounding rect
| 4 |
diff --git a/src/state/state.js b/src/state/state.js // call the stage destroy method
if (_stages[_state]) {
// just notify the object
- _stages[_state].screen.destroy();
+ _stages[_state].stage.destroy();
}
if (_stages[state]) {
_state = state;
// call the reset function with _extraArgs as arguments
- _stages[_state].screen.reset.apply(_stages[_state].screen, _extraArgs);
+ _stages[_state].stage.reset.apply(_stages[_state].stage, _extraArgs);
// and start the main loop of the
// new requested state
* @public
* @function
* @param {Number} state State ID (see constants)
- * @param {me.Stage} so Instantiated Stage to associate
+ * @param {me.Stage} stage Instantiated Stage to associate
* with state ID
* @example
* var MenuButton = me.GUI_Object.extend({
*
* me.state.set(me.state.MENU, new MenuScreen());
*/
- api.set = function (state, so) {
- if (!(so instanceof me.Stage)) {
- throw new me.Error(so + " is not an instance of me.Stage");
+ api.set = function (state, stage) {
+ if (!(stage instanceof me.Stage)) {
+ throw new me.Error(stage + " is not an instance of me.Stage");
}
_stages[state] = {};
- _stages[state].screen = so;
+ _stages[state].stage = stage;
_stages[state].transition = true;
};
* @return {me.Stage}
*/
api.current = function () {
- return _stages[_state].screen;
+ return _stages[_state].stage;
};
/**
| 10 |
diff --git a/src/article/shared/FigureLabelGenerator.js b/src/article/shared/FigureLabelGenerator.js @@ -91,14 +91,22 @@ export default class FigureLabelGenerator {
return String(def[0].pos)
} else {
let figCounter = def[0].pos
- let panelCounter = def[1].pos
// TODO: we should think about some way to make this configurable
- return `${figCounter}${LATIN_LETTERS_UPPER_CASE[panelCounter - 1]}`
+ return `${figCounter}${this._getPanelLabel(def)}`
+ }
}
+
+ _getPanelLabel (def) {
+ let panelCounter = def[1].pos
+ return `${LATIN_LETTERS_UPPER_CASE[panelCounter - 1]}`
}
_getGroupCounter (first, last) {
// ATTENTION: assuming that first and last have the same level (according to our implementation)
+ if (first.length === 1) {
return `${this._getSingleCounter(first)}${this.config.to}${this._getSingleCounter(last)}`
+ } else {
+ return `${this._getSingleCounter(first)}${this.config.to}${this._getPanelLabel(last)}`
+ }
}
}
| 7 |
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -109,6 +109,19 @@ PRs are welcome! Please do open an issue to discuss first if it's a big feature,
- [ ] providers: Get Facebook integration on its feet (@ife)
- [ ] companion: what happens if access token expires during/between an download & upload (@ife)
+## 1.9.4
+
+Released: 2020-02-27
+
+Previous `1.9.3` release has been deprecated due to broken URL Provider (see [#2094](https://github.com/transloadit/uppy/pull/2094)).
+
+| Package | Version | Package | Version |
+|-|-|-|-|
+| @uppy/companion | 1.9.4 | @uppy/locales | 1.11.5 |
+
+- @uppy/companion: return the right httpAgent when protocol value contains ":" (#2094 / @ifedapoolarewaju)
+- @uppy/locales: fix pluralization in pt_BR (#2093 / @fgallinari)
+
## 1.9.3
Released: 2020-02-26
| 0 |
diff --git a/src/govuk/template.njk b/src/govuk/template.njk <html lang="{{ htmlLang | default('en') }}" class="govuk-template {{ htmlClasses }}">
<head>
<meta charset="utf-8" />
- <title>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
+ <title{% if pageTitleLang %} lang="{{ pageTitleLang }}"{% endif %}>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="{{ themeColor | default('#0b0c0c') }}" /> {# Hardcoded value of $govuk-black #}
{# Ensure that older IE versions always render with the correct rendering engine #}
{% block main %}
<div class="govuk-width-container">
{% block beforeContent %}{% endblock %}
- <main class="govuk-main-wrapper {{ mainClasses }}" id="main-content" role="main">
+ <main class="govuk-main-wrapper {{ mainClasses }}" id="main-content" role="main"{% if mainLang %} lang="{{ mainLang }}"{% endif %}>
{% block content %}{% endblock %}
</main>
</div>
| 11 |
diff --git a/lib/plugins/browsertime/index.js b/lib/plugins/browsertime/index.js @@ -220,7 +220,9 @@ module.exports = {
if (this.resultUrls.hasBaseUrl()) {
const base = this.resultUrls.absoluteSummaryPageUrl(url);
- _meta.screenshot = `${base}data/screenshots/${runIndex}.png`;
+ _meta.screenshot = `${base}data/screenshots/${runIndex}.${
+ this.options.screenshotType
+ }`;
_meta.result = `${base}${runIndex}.html`;
if (this.options.video) {
_meta.video = `${base}data/video/${runIndex}.mp4`;
| 4 |
diff --git a/articles/appliance/infrastructure/virtual-machines.md b/articles/appliance/infrastructure/virtual-machines.md @@ -13,11 +13,7 @@ sitemap: false
# PSaaS Appliance Infrastructure Requirements: Virtual Machines
-You may deploy the PSaaS Appliance on your premises using your own infrastructure or the infrastructure of a cloud provider. Currently, Auth0 supports the following PSaaS Appliance usage on the following virtualization environments:
-
-* Amazon Web Services (AWS);
-* Microsoft Azure;
-* VMware.
+You may deploy the PSaaS Appliance on your premises using your own infrastructure or the infrastructure of a cloud provider. Currently, Auth0 supports PSaaS Appliance usage on Amazon Web Services (AWS).
## Virtual Machine Templates
| 2 |
diff --git a/src/settings/schema.js b/src/settings/schema.js @@ -102,8 +102,8 @@ module.exports = [
`CREATE TABLE IF NOT EXISTS builds (
build_id VARCHAR(8) NOT NULL,
title VARCHAR(255) NOT NULL default 'My Build',
- body TEXT NOT NULL default 'My Build Body',
- image TEXT NOT NULL default 'https://i.imgur.com/2ZJiRKC.png',
+ body TEXT NOT NULL,
+ image TEXT NOT NULL,
owner_id BIGINT UNSIGNED NOT NULL,
PRIMARY KEY (build_id)
);`,
| 2 |
diff --git a/src/js/easymde.js b/src/js/easymde.js @@ -145,8 +145,8 @@ function createToolbarButton(options, enableTooltips, shortcuts) {
for (var classNameIndex = 0; classNameIndex < classNameParts.length; classNameIndex++) {
var classNamePart = classNameParts[classNameIndex];
// Split icon classes from the button.
- // Regex will detect "fa" and "fa-something", but not "fanfare".
- if (classNamePart.match(/^fa((-.*)|$)/)) {
+ // Regex will detect "fa", "fas", "fa-something" and "fa-some-icon-1", but not "fanfare".
+ if (classNamePart.match(/^fa([srlb]|(-[\w-]*)|$)/)) {
iconClasses.push(classNamePart);
} else {
el.classList.add(classNamePart);
| 7 |
diff --git a/package.json b/package.json "deploy": "./deploy.sh",
"build": "npx @11ty/eleventy",
"start": "npx @11ty/eleventy --serve --incremental",
- "build-production": "node node-avatars-opencollective && NODE_ENV=production npx @11ty/eleventy",
+ "build-production": "npm run get-new-data && node node-avatars-opencollective && NODE_ENV=production npx @11ty/eleventy",
+ "get-new-data": "rm -rf ./src/_data/builtwith/ && npx degit github:11ty/11ty-community/built-with-eleventy src/_data/builtwith/",
"get-new-supporters": "eleventy && node node-supporters",
"get-new-avatars": "node node-avatars-opencollective && node node-avatars-twitter",
"format": "prettier --write '**/*.{js,css,html,md}'"
| 4 |
diff --git a/token-metadata/0x6B175474E89094C44Da98b954EedeAC495271d0F/metadata.json b/token-metadata/0x6B175474E89094C44Da98b954EedeAC495271d0F/metadata.json "symbol": "DAI",
"address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/packages/inertia/src/inertia.js b/packages/inertia/src/inertia.js @@ -64,6 +64,7 @@ export default {
region.scrollTop = 0
region.scrollLeft = 0
})
+ this.saveScrollPositions()
if (window.location.hash) {
const el = document.getElementById(window.location.hash.slice(1))
@@ -265,7 +266,7 @@ export default {
},
restoreState(event) {
- if (event.state) {
+ if (event.state && event.state.component) {
const page = this.transformProps(event.state)
let visitId = this.createVisitId()
return Promise.resolve(this.resolveComponent(page.component)).then(component => {
@@ -276,6 +277,8 @@ export default {
})
}
})
+ } else {
+ this.resetScrollPositions()
}
},
| 7 |
diff --git a/src/components/nodes/boundaryTimerEvent/boundaryTimerEvent.vue b/src/components/nodes/boundaryTimerEvent/boundaryTimerEvent.vue @@ -8,6 +8,7 @@ import timerEventIcon from '@/assets/timer-event-icon.svg';
import boundaryEventSwitcher from '@/mixins/boundaryEventSwitcher';
import { portGroups } from '@/mixins/portsConfig';
import portsConfig from '@/mixins/portsConfig';
+import crownConfig from '@/mixins/crownConfig';
import joint from 'jointjs';
function getPointFromGroup(model, group) {
@@ -45,7 +46,7 @@ function snapToAnchor(coords, model) {
export default {
extends: BoundaryEvent,
- mixins: [boundaryEventSwitcher, portsConfig],
+ mixins: [boundaryEventSwitcher, portsConfig, crownConfig],
watch: {
'node.definition.cancelActivity'(value) {
this.renderBoundaryTimer(value);
@@ -67,6 +68,11 @@ export default {
const solidLine = 0;
isCancelActivity ? this.updateBoundaryShape(solidLine) : this.updateBoundaryShape(dashedLine);
},
+ updateSnappingPosition(task) {
+ const { x, y } = snapToAnchor(this.shape.position(), task);
+ const { width } = this.shape.size();
+ this.shape.position(x - (width / 2), y - (width / 2));
+ },
},
async mounted() {
this.shape.attr('image/xlink:href', timerEventIcon);
@@ -87,15 +93,16 @@ export default {
if (task) {
task.embed(this.shape);
- const { x, y } = snapToAnchor(this.shape.position(), task);
- const { width } = this.shape.size();
-
- this.shape.position(x - (width / 2), y - (width / 2));
+ this.updateSnappingPosition(task);
this.renderBoundaryTimer(this.node.definition.cancelActivity);
- this.shape.set('elementMove', false);
} else {
this.$emit('remove-node', this.node);
}
+
+ this.shape.listenTo(this.paper, 'element:pointerup', () => {
+ this.updateSnappingPosition(task);
+ this.updateCrownPosition();
+ });
},
};
</script>
| 11 |
diff --git a/userscript.user.js b/userscript.user.js @@ -20903,6 +20903,16 @@ var $$IMU_EXPORT$$;
return newsrc;
}
+ if (host_domain_nosub === "fc2.com" && options.element) {
+ if (options.element.tagName === "svg" && options.element.parentElement && options.element.parentElement.tagName === "DIV") {
+ if (string_indexof(options.element.parentElement.getAttribute("class"), "c-videoThumbOver") >= 0)
+ return {
+ url: origsrc,
+ bad: "mask"
+ };
+ }
+ }
+
if (domain_nosub === "fc2.com" && domain.match(/blog-imgs-[0-9]*(?:-[^.]*)?.*\.fc2\.com/)) {
// https://blog-imgs-118.fc2.com/s/h/i/shiomusubinokasu/20171212120106s.jpg
// https://blog-imgs-118-origin.fc2.com/s/h/i/shiomusubinokasu/20171212120106.jpg
| 8 |
diff --git a/scripts/deployment/liquidity-mining/deploy-liquidity-mining.py b/scripts/deployment/liquidity-mining/deploy-liquidity-mining.py @@ -54,7 +54,7 @@ def main():
wrapper = "0x0000000000000000000000000000000000000000" # can be updated later using setWrapper
# The % (in Basis Point) which determines how much will be unlocked immediately.
# 10000 is 100%
- basisPoint = 100 # 1%
+ basisPoint = 0 # 0%
liquidityMining.initialize(contracts['SOV'], rewardTokensPerBlock, startDelayBlocks, numberOfBonusBlocks, wrapper, lockedSOV.address, basisPoint)
# TODO prepare pool tokens list
| 12 |
diff --git a/src/views/preview-faq/preview-faq.scss b/src/views/preview-faq/preview-faq.scss margin-bottom: 5rem;
}
-h1 {
+.title-banner-h1 {
line-height: 1.7em !important;
font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif !important;
font-size: 2.5rem !important;
font-weight: 900 !important;
}
+
+.preview-faq li {
+ margin: 0 2rem !important;
+}
| 9 |
diff --git a/package.json b/package.json "file-saver": "^1.3.8",
"handlebars": "^4.7.6",
"handlebars-loader": "^1.7.0",
- "highlight.js": "^9.15.10",
+ "highlight.js": "^10.4.1",
"html-webpack-plugin": "^3.2.0",
"idle-vue": "^2.0.5",
"js-cache": "^1.0.3",
| 3 |
diff --git a/world.js b/world.js @@ -78,6 +78,13 @@ world.disableMic = () => {
localPlayer.setMicMediaStream(null);
}
};
+world.toggleMic = () => {
+ if (mediaStream) {
+ world.disableMic();
+ } else {
+ world.enableMic();
+ }
+};
world.connectState = state => {
state.setResolvePriority(1);
| 0 |
diff --git a/doc/developer-center/auth-api/guides/01-CARTO-Authorization.md b/doc/developer-center/auth-api/guides/01-CARTO-Authorization.md @@ -12,7 +12,7 @@ And here you can see the process of creating a new API key, managing its name an
It requires to add a name and grant permission for at least one of these:
* SQL API: you will have to include CREATE datasets or specific permissions on any table.
* MAPS API: you will have to specify SELECT permissions on any table.
-* CREATE datasets: allows you to create tables in the user schema by using the SQL API, and also modify or delete the tables previously created.
+* CREATE datasets: allows you to create tables in the user schema by using the SQL API, and also modify or delete the tables previously created with it. It won't allow to modify or delete a table created with a different API key, in that case you'll receive an `Access denied` error.
* LISTING datasets: allows to read the metadata from the existing tables, views and materialized views in the user schema by using the endpoint: `api/v4/datasets`

| 7 |
diff --git a/src/context/useGenerateTest.jsx b/src/context/useGenerateTest.jsx @@ -232,7 +232,7 @@ function useGenerateTest(test, projectFilePath) {
// Hooks & Context Import Statements
const addHooksImportStatements = () => {
- hooksTestCase["hooksStatements"].forEach((statement) => {
+ hooksTestCase.hooksStatements.forEach((statement) => {
switch (statement.type) {
case 'hooks':
return addRenderHooksImportStatement(), createPathToHooks(statement);
| 3 |
diff --git a/src/setData/yearFour.js b/src/setData/yearFour.js @@ -319,7 +319,7 @@ export default ([
{
name: 'Extras',
season: 12,
- items: [3677784672, 532530783]
+ items: [3677784672]
}
]
},
@@ -342,7 +342,14 @@ export default ([
{
name: 'Extras',
season: 13,
- items: [532530782, 532530777, 1249788648, 397043529, 1953632753]
+ items: [
+ 532530782,
+ 532530777,
+ 532530783,
+ 1249788648,
+ 397043529,
+ 1953632753
+ ]
}
]
}
| 5 |
diff --git a/ui/js/lbryio.js b/ui/js/lbryio.js @@ -10,7 +10,7 @@ const lbryio = {
enabled: false
};
-const CONNECTION_STRING = 'http://localhost:8080/';
+const CONNECTION_STRING = 'https://api.lbry.io/';
const mocks = {
'reward_type.get': ({name}) => {
@@ -26,7 +26,7 @@ const mocks = {
lbryio.call = function(resource, action, params={}, method='get') {
return new Promise((resolve, reject) => {
- if (!lbryio.enabled) {
+ if (!lbryio.enabled && (resource != 'discover' || action != 'list')) {
reject(new Error("LBRY interal API is disabled"))
return
}
| 11 |
diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js @@ -64,7 +64,7 @@ ConnectionIndicator.getStringFromArray = function (array) {
ConnectionIndicator.prototype.generateText = function () {
var downloadBitrate, uploadBitrate, packetLoss, i;
- if(this.bitrate === null) {
+ if(!this.bitrate) {
downloadBitrate = "N/A";
uploadBitrate = "N/A";
}
@@ -75,7 +75,7 @@ ConnectionIndicator.prototype.generateText = function () {
this.bitrate.upload? this.bitrate.upload + " Kbps" : "N/A";
}
- if(this.packetLoss === null) {
+ if(!this.packetLoss) {
packetLoss = "N/A";
} else {
@@ -132,7 +132,7 @@ ConnectionIndicator.prototype.generateText = function () {
if (this.showMoreValue) {
var downloadBandwidth, uploadBandwidth, transport;
- if (this.bandwidth === null) {
+ if (!this.bandwidth) {
downloadBandwidth = "N/A";
uploadBandwidth = "N/A";
} else {
@@ -341,7 +341,7 @@ ConnectionIndicator.prototype.updateConnectionStatusIndicator
*/
ConnectionIndicator.prototype.updateConnectionQuality =
function (percent, object) {
- if (percent === null) {
+ if (!percent) {
this.connectionIndicatorContainer.style.display = "none";
this.popover.forceHide();
return;
| 7 |
diff --git a/edit.js b/edit.js @@ -6,7 +6,7 @@ import * as THREE from './three.module.js';
// import {GLTFExporter} from './GLTFExporter.js';
// import {TransformControls} from './TransformControls.js';
import {tryLogin, loginManager} from './login.js';
-// import runtime from './runtime.js';
+import runtime from './runtime.js';
import {parseQuery, downloadFile} from './util.js';
import {rigManager} from './rig.js';
// import {makeRayMesh} from './vr-ui.js';
| 0 |
diff --git a/src/resources/pingables.json b/src/resources/pingables.json "invasions,vandal,forma",
"invasions,vandal,other",
"invasions,vandal,credits",
+ "invasions,vandal,exilus",
"invasions,wraith,vandal",
"invasions,wraith,nitain",
"invasions,wraith,mutalist",
"invasions,wraith,forma",
"invasions,wraith,other",
"invasions,wraith,credits",
+ "invasions,wraith,exilus",
"invasions,nitain,vandal",
"invasions,nitain,wraith",
"invasions,nitain,mutalist",
"invasions,nitain,forma",
"invasions,nitain,other",
"invasions,nitain,credits",
+ "invasions,nitain,exilus",
"invasions,mutalist,vandal",
"invasions,mutalist,wraith",
"invasions,mutalist,nitain",
"invasions,mutalist,forma",
"invasions,mutalist,other",
"invasions,mutalist,credits",
+ "invasions,mutalist,exilus",
"invasions,weapon,vandal",
"invasions,weapon,wraith",
"invasions,weapon,nitain",
"invasions,weapon,forma",
"invasions,weapon,other",
"invasions,weapon,credits",
+ "invasions,weapon,exilus",
"invasions,fieldron,vandal",
"invasions,fieldron,wraith",
"invasions,fieldron,nitain",
"invasions,fieldron,forma",
"invasions,fieldron,other",
"invasions,fieldron,credits",
+ "invasions,fieldron,exilus",
"invasions,detonite,vandal",
"invasions,detonite,wraith",
"invasions,detonite,nitain",
"invasions,detonite,forma",
"invasions,detonite,other",
"invasions,detonite,credits",
+ "invasions,detonite,exilus",
"invasions,mutagen,vandal",
"invasions,mutagen,wraith",
"invasions,mutagen,nitain",
"invasions,mutagen,forma",
"invasions,mutagen,other",
"invasions,mutagen,credits",
+ "invasions,mutagen,exilus",
"invasions,reactor,vandal",
"invasions,reactor,wraith",
"invasions,reactor,nitain",
"invasions,reactor,forma",
"invasions,reactor,other",
"invasions,reactor,credits",
+ "invasions,reactor,exilus",
"invasions,catalyst,vandal",
"invasions,catalyst,wraith",
"invasions,catalyst,nitain",
"invasions,catalyst,forma",
"invasions,catalyst,other",
"invasions,catalyst,credits",
+ "invasions,reactor,exilus",
"invasions,forma,vandal",
"invasions,forma,wraith",
"invasions,forma,nitain",
"invasions,forma,catalyst",
"invasions,forma,other",
"invasions,forma,credits",
+ "invasions,forma,exilus",
"invasions,other,vandal",
"invasions,other,wraith",
"invasions,other,nitain",
"invasions,other,catalyst",
"invasions,other,forma",
"invasions,other,credits",
+ "invasions,other,exilus",
"invasions,credits,vandal",
"invasions,credits,wraith",
"invasions,credits,nitain",
"invasions,credits,catalyst",
"invasions,credits,forma",
"invasions,credits,other",
+ "invasions,credits,exilus",
"invasions,vandal",
"invasions,wraith",
"invasions,nitain",
"invasions,reactor",
"invasions,catalyst",
"invasions,forma",
- "invasions,credits"
+ "invasions,credits",
+ "invasions,exilus"
]
| 1 |
diff --git a/backend/lost/logic/jobs/jobs.py b/backend/lost/logic/jobs/jobs.py @@ -166,6 +166,14 @@ def remove_empty_annos():
dbm.close_session()
return c_2dannos
+def get_file_ext_from_export_type(export_type):
+ if export_type == 'LOST_Dataset':
+ return '.parquet'
+ elif export_type == 'CSV':
+ return '.csv'
+ else:
+ raise NotImplementedError(f'Unsupported export type: {export_type}')
+
def write_df (base_path, df, export_type, zip_file=None, fs_stream=None):
def write_stream(zip_dir, bytestream):
if zip_file is not None:
@@ -226,22 +234,22 @@ def export_ds(pe_id, user_id, export_id, export_name, splits, export_type, inclu
ate.progress=pg
dbm.save_obj(ate)
- # if not include_imgs:
- # df = ds.df
+ if not include_imgs and splits is None:
+ df = ds.df
# df['img_path'] = df['img_path'].apply(lambda x: os.path.join(*x.split('/')[-2:]))
- # ds = lds.LOSTDataset(df, filesystem=dst_fs)
- # with dst_fs.open(root_path, 'wb') as f:
- # write_df(root_path, ds.df, export_type, fs_stream=dst_fs)
- # return
-
-
+ root_path = f'{root_path}{get_file_ext_from_export_type(export_type)}'
+ with dst_fs.open(root_path, 'wb') as f:
+ write_df(root_path, df, export_type, fs_stream=f)
+ else:
root_path = f'{root_path}.zip'
-
with dst_fs.open(root_path, 'wb') as f:
with ZipFile(f, 'w') as zip_file:
+ if include_imgs:
df = lds.pack_ds(ds.df, root_path, filesystem=src_fs,
zip_file=zip_file, progress_callback=progress_callback)
df['img_path'] = df['img_path'].apply(lambda x: os.path.join(*x.split('/')[-2:]))
+ else:
+ df = ds.df
out_base = os.path.basename(root_path)
out_base = os.path.splitext(out_base)[0]
if splits is not None:
| 11 |
diff --git a/src/server/crowi/index.js b/src/server/crowi/index.js @@ -203,27 +203,34 @@ Crowi.prototype.setupDatabase = function() {
return mongoose.connect(mongoUri, { useNewUrlParser: true });
};
-Crowi.prototype.setupSessionConfig = function() {
- const self = this;
+Crowi.prototype.setupSessionConfig = async function() {
const session = require('express-session');
const sessionAge = (1000 * 3600 * 24 * 30);
const redisUrl = this.env.REDISTOGO_URL || this.env.REDIS_URI || this.env.REDIS_URL || null;
+ const uid = require('uid-safe').sync;
- let sessionConfig;
+ // generate pre-defined uid for healthcheck
+ const healthcheckUid = uid(24);
- return new Promise(((resolve, reject) => {
- sessionConfig = {
+ const sessionConfig = {
rolling: true,
- secret: self.env.SECRET_TOKEN || 'this is default session secret',
+ secret: this.env.SECRET_TOKEN || 'this is default session secret',
resave: false,
saveUninitialized: true,
cookie: {
maxAge: sessionAge,
},
+ genid(req) {
+ // return pre-defined uid when healthcheck
+ if (req.path === '/_api/v3/healthcheck') {
+ return healthcheckUid;
+ }
+ return uid(24);
+ },
};
- if (self.env.SESSION_NAME) {
- sessionConfig.name = self.env.SESSION_NAME;
+ if (this.env.SESSION_NAME) {
+ sessionConfig.name = this.env.SESSION_NAME;
}
// use Redis for session store
@@ -239,9 +246,7 @@ Crowi.prototype.setupSessionConfig = function() {
sessionConfig.store = new MongoStore({ mongooseConnection: mongoose.connection });
}
- self.sessionConfig = sessionConfig;
- resolve();
- }));
+ this.sessionConfig = sessionConfig;
};
Crowi.prototype.setupConfigManager = async function() {
| 7 |
diff --git a/articles/onboarding/sprint.md b/articles/onboarding/sprint.md @@ -79,7 +79,7 @@ The outcome of these obligations is a Success Plan that will be co-managed by yo
</tbody>
</table>
-* *Live sessions are delivered remotely via web conference.*
+<sup>*</sup> *Live sessions are delivered remotely via web conference.*
#### Timing
@@ -130,4 +130,4 @@ The table below outlines examples of the different ongoing engagement delivered
</tbody>
</table>
-* *Live sessions are delivered remotely via web conference.*
+<sup>*</sup> *Live sessions are delivered remotely via web conference.*
| 14 |
diff --git a/src/pages/Authentication/AuthenticationUnlockForm.js b/src/pages/Authentication/AuthenticationUnlockForm.js @@ -45,11 +45,11 @@ export default class AuthenticationInit extends React.PureComponent {
}
}
- onPasswordChange(password) {
+ onPasswordChange = (password) => {
this.setState(() => ({ password }))
}
- onUnlock() {
+ onUnlock = () => {
const {
mode,
password,
@@ -65,25 +65,25 @@ export default class AuthenticationInit extends React.PureComponent {
onUnlock(password, mode)
}
- onReset() {
+ onReset = () => {
const { onReset } = this.props
onReset()
}
- onEnterPress(event = {}) {
+ onEnterPress = (event = {}) => {
const { keyCode } = event
if (keyCode === ENTER_KEY_CODE) {
this.onUnlock()
}
}
- updateAutoLoginState(state) {
+ updateAutoLoginState = (state) => {
this.setState(() => ({
AUTOLOGIN_STATE: state,
}))
}
- selectMode(mode) {
+ selectMode = (mode) => {
this.setState(() => ({ mode }))
}
@@ -98,7 +98,7 @@ export default class AuthenticationInit extends React.PureComponent {
const options = [{ value: 'main', label: 'Production' }, { value: 'paper', label: 'Paper Trading' }]
return (
- <div className='hfui-authenticationpage__content' onKeyDown={(e) => this.onEnterPress(e)}>
+ <div className='hfui-authenticationpage__content' onKeyDown={this.onEnterPress}>
<h2>Honey Framework UI</h2>
<p>Enter your password to unlock.</p>
@@ -115,7 +115,7 @@ export default class AuthenticationInit extends React.PureComponent {
autocomplete='current-password'
placeholder='Password'
value={password}
- onChange={(changedPass) => this.onPasswordChange(changedPass)}
+ onChange={this.onPasswordChange}
/>
<div className='hfui-authenticationpage__mode-select'>
<p>Select trading mode</p>
@@ -133,12 +133,12 @@ export default class AuthenticationInit extends React.PureComponent {
<Checkbox
label='Auto-login in development mode'
value={AUTOLOGIN_STATE}
- onChange={(state) => this.updateAutoLoginState(state)}
+ onChange={this.updateAutoLoginState}
/>
</div>
)}
<Button
- onClick={() => this.onUnlock()}
+ onClick={this.onUnlock}
disabled={!submitReady}
label='Unlock'
green
@@ -149,7 +149,7 @@ export default class AuthenticationInit extends React.PureComponent {
<p>Alternatively, clear your credentials & and stored data to set a new password.</p>
<Button
- onClick={() => this.onReset()}
+ onClick={this.onReset}
label='Clear Data & Reset'
red
/>
| 3 |
diff --git a/assets/stylesheets/editor-3/_form-tags.scss b/assets/stylesheets/editor-3/_form-tags.scss @@ -86,7 +86,6 @@ ul.tagit input[type="text"] {
color: $cBlue;
font-size: $sFontSize-small;
line-height: 14px;
- text-transform: uppercase;
}
.Form-tagsList.tagit .tagit-choice .tagit-close {
| 2 |
diff --git a/src/components/layouts/Layout.js b/src/components/layouts/Layout.js @@ -85,7 +85,9 @@ const Layout = ({ children, initialContext, hasSideBar, location }) => {
href="https://v13--spark-design-system.netlify.app/"
className="docs-c-Banner--link sprk-u-mlm"
>
- View the previous major release of Spark
+ For designs launching BEFORE July 14, 2021, please reference
+ version 13 of Spark. Talk to your PO or Experience Director if
+ there are any questions.
</a>
</div>
<Header
| 3 |
diff --git a/src/components/topic/summary/TopicSummaryContainer.js b/src/components/topic/summary/TopicSummaryContainer.js @@ -26,7 +26,7 @@ const localMessages = {
title: { id: 'topic.summary.summary.title', defaultMessage: 'Topic: {name}' },
previewTitle: { id: 'topic.summary.public.title', defaultMessage: 'Topic Preview: {name}' },
previewIntro: { id: 'topic.summary.public.intro', defaultMessage: 'This is a preview of our {name} topic. It shows just a sample of the data available once you login to the Topic Mapper tool. To explore, click on a link and sign in.' },
- aboutTab: { id: 'topic.summary.summary.about', defaultMessage: 'Topic Stats' },
+ statsTabTitle: { id: 'topic.summary.summary.about', defaultMessage: 'Stats' },
};
class TopicSummaryContainer extends React.Component {
@@ -182,7 +182,7 @@ class TopicSummaryContainer extends React.Component {
formatMessage(messages.attention),
formatMessage(messages.language),
formatMessage(messages.representation),
- formatMessage(localMessages.aboutTab),
+ formatMessage(localMessages.statsTabTitle),
]}
onViewSelected={index => this.setState({ selectedViewIndex: index })}
/>
| 10 |
diff --git a/articles/multifactor-authentication/yubikey.md b/articles/multifactor-authentication/yubikey.md @@ -268,13 +268,18 @@ function (user, context, callback) {
//Trigger MFA
context.redirect = {
- url: config.WEBTASK_URL + "?user=" + user.name
- }
+ url: configuration.WEBTASK_URL + "?user=" + user.name
+ };
callback(null,user,context);
}
```
+You also need to create two new settings on [Rules](${manage_url}/#/rules):
+
+* One using `WEBTASK_URL` as the key, and the URL returned by the `create` command as the value.
+* Another using `YUBIKEY_SECRET` as the key, and `{YOUR YUBIKEY SECRET}` passed to `create` as the value.
+
::: note
The returning section of the rule validates the JWT issued by the Webtask. This prevents the result of the MFA part of the transaction from being tampered with because the payload is digitally signed with a shared secret.
:::
| 4 |
diff --git a/UserHistoryImprovements.user.js b/UserHistoryImprovements.user.js // @description Fixes broken links in user annotations, and minor layout improvements
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
-// @version 1.2.5
+// @version 1.2.6
//
// @include https://*stackoverflow.com/users/history/*
// @include https://*serverfault.com/users/history/*
// Fix broken links
const str = td.html()
+ .replace(/" rel="nofollow noreferrer/g, '') // remove auto-inserted rel attribute from external links
.replace(/(<a href="|">[^<]+<\/a>)/g, '') // strip existing links (text)
.replace(/(<a href="|">[^&]+<\/a>)/g, '') // strip existing links (html-encoded)
.replace(/\s(\/users\/\d+\/[^\s\b]+)\b/gi, ' <a href="$1">$1</a> ') // relink users relative urls
| 2 |
diff --git a/OurUmbraco.Site/Views/Partials/Home/Documentation.cshtml b/OurUmbraco.Site/Views/Partials/Home/Documentation.cshtml </div>
<div class="col-md-6">
- <div class="advanced">icon-imp
+ <div class="advanced">
<a href="/documentation/Implementation/">
<img src="/documentation/images/code.png" width="130" alt="">
</a>
| 2 |
diff --git a/Source/Renderer/GLSLModernizer.js b/Source/Renderer/GLSLModernizer.js @@ -34,7 +34,7 @@ define([
var outputDeclarationLine = -1;
var number;
- for (number = 0; number < splitSource.length; number++) {
+ for (number = 0; number < splitSource.length; ++number) {
var line = splitSource[number];
if (outputDeclarationRegex.exec(line)) {
outputDeclarationLine = number;
@@ -43,7 +43,7 @@ define([
};
if (outputDeclarationLine == -1) {
- for (number = 0; number < splitSource.length; number++) {
+ for (number = 0; number < splitSource.length; ++number) {
var line = splitSource[number];
if (mainFunctionRegex.exec(line)) {
outputDeclarationLine = number;
@@ -110,13 +110,13 @@ define([
}
function replaceInSource(regex, replacement) {
- for (var number = 0; number < splitSource.length; number++) {
+ for (var number = 0; number < splitSource.length; ++number) {
splitSource[number] = safeNameReplace(regex, splitSource[number], replacement);
}
}
function findInSource(regex) {
- for (var number = 0; number < splitSource.length; number++) {
+ for (var number = 0; number < splitSource.length; ++number) {
var line = splitSource[number];
if (safeNameFind(regex, line) !== -1) {
return true;
@@ -127,7 +127,7 @@ define([
function compileSource() {
var wholeSource = "";
- for (var number = 0; number < splitSource.length; number++) {
+ for (var number = 0; number < splitSource.length; ++number) {
wholeSource += splitSource[number] + "\n";
}
return wholeSource;
@@ -139,7 +139,7 @@ define([
}
function setUnion(set1, set2) {
- for (var a = 0; a < set2.length; a++) {
+ for (var a = 0; a < set2.length; ++a) {
setAdd(set2[a], set1);
}
}
@@ -148,13 +148,13 @@ define([
var variableMap = {};
var negativeMap = {};
- for (var a = 0; a < variablesThatWeCareAbout.length; a++) {
+ for (var a = 0; a < variablesThatWeCareAbout.length; ++a) {
var variableThatWeCareAbout = variablesThatWeCareAbout[a];
variableMap[variableThatWeCareAbout] = [null];
}
var stack = [];
- for (var i = 0; i < splitSource.length; i++) {
+ for (var i = 0; i < splitSource.length; ++i) {
var line = splitSource[i];
var hasIF = line.search(/(#ifdef|#if)/g) !== -1;
var hasELSE = line.search(/#else/g) !== -1;
@@ -176,7 +176,7 @@ define([
} else if (hasENDIF) {
stack.pop();
} else if (line.search(/layout/g) === -1) {
- for (a = 0; a < variablesThatWeCareAbout.length; a++) {
+ for (a = 0; a < variablesThatWeCareAbout.length; ++a) {
var care = variablesThatWeCareAbout[a];
if (line.indexOf(care) !== -1) {
if (variableMap[care].length === 1 &&
@@ -197,7 +197,7 @@ define([
if (variableMap.hasOwnProperty(care)) {
var entry = variableMap[care];
var toDelete = [];
- for (var b = 0; b < entry.length; b++) {
+ for (var b = 0; b < entry.length; ++b) {
var item = entry[b];
if (entry.indexOf(negativeMap[item]) !== -1) {
toDelete.push(item);
@@ -205,7 +205,7 @@ define([
}
}
- for (var c = 0; c < toDelete.length; c++) {
+ for (var c = 0; c < toDelete.length; ++c) {
var ind = entry.indexOf(toDelete[c]);
if (ind !== -1) {
entry.splice(ind, 1);
| 14 |
diff --git a/plugins/playback-speed/front.js b/plugins/playback-speed/front.js @@ -8,6 +8,7 @@ const slider = ElementFromFile(templatePath(__dirname, "slider.html"));
const roundToTwo = (n) => Math.round( n * 1e2 ) / 1e2;
const MIN_PLAYBACK_SPEED = 0.07;
+const MAX_PLAYBACK_SPEED = 16;
let playbackSpeed = 1;
@@ -61,8 +62,9 @@ const setupSliderListeners = () => {
}
// e.deltaY < 0 means wheel-up
playbackSpeed = roundToTwo(e.deltaY < 0 ?
- playbackSpeed + 0.01 :
- Math.max(playbackSpeed - 0.01, MIN_PLAYBACK_SPEED));
+ math.min(playbackSpeed + 0.01, MAX_PLAYBACK_SPEED) :
+ Math.max(playbackSpeed - 0.01, MIN_PLAYBACK_SPEED)
+ );
updatePlayBackSpeed();
// update slider position
| 12 |
diff --git a/src/feats.js b/src/feats.js @@ -41,6 +41,7 @@ const Feats = {
type: 'defense_boost',
combatModName: 'leatherskin',
name: 'Leatherskin',
+ desc: 'Your skin has hardened into tough, leathery hide.',
aura: 'leather',
defenseBonus: bonus,
healthBonus: bonus * 5,
@@ -76,6 +77,7 @@ const Feats = {
combatModName: 'ironskin',
name: 'Ironskin',
aura: 'steeliness',
+ desc: 'Your skin has an iron-like chitin coating it.',
defenseBonus: bonus * 4,
healthBonus: bonus + 5,
activate: () => player.combat.addSpeedMod({
| 7 |
diff --git a/docker/rootfs/etc/nginx/nginx.conf b/docker/rootfs/etc/nginx/nginx.conf @@ -60,6 +60,9 @@ http {
# Real IP Determination
# Docker subnet:
set_real_ip_from 172.0.0.0/8;
+ # Local subnets:
+ set_real_ip_from 10.0.0.0/8;
+ set_real_ip_from 192.0.0.0/8;
# NPM generated CDN ip ranges:
include conf.d/include/ip_ranges.conf;
# always put the following 2 lines after ip subnets:
| 8 |
diff --git a/app/talk/active-users.spec.js b/app/talk/active-users.spec.js @@ -13,7 +13,7 @@ const users = [
describe('ActiveUsers', function () {
const wrapper = shallow(<ActiveUsers />);
const controller = wrapper.instance();
- const getActiveIdsStub = sinon.stub(controller, 'getActiveUserIds', () => Promise.resolve(activeIds));
+ const getActiveIdsStub = sinon.stub(controller, 'getActiveUserIds').callsFake(() => Promise.resolve(activeIds));
const fetchUsersSpy = sinon.spy(controller, 'fetchUncachedUsers');
const pageCountSpy = sinon.spy(controller, 'pageCount');
const boundedPageSpy = sinon.spy(controller, 'boundedPage');
| 1 |
diff --git a/src/parsers/linter/GmlLinter.hx b/src/parsers/linter/GmlLinter.hx @@ -516,7 +516,7 @@ class GmlLinter {
var imp:GmlImports = getImports();
var locals = editor.locals[context];
- if (imp != null && locals.kind.exists(currName)) {
+ if (imp != null && locals != null && locals.kind.exists(currName)) {
currType = imp.localTypes[currName];
currFunc = currType.getSelfCallDoc(imp);
break;
| 1 |
diff --git a/books/test/test_views.py b/books/test/test_views.py @@ -125,6 +125,8 @@ class LibraryViewSet(TestCase):
self.bookCopy = BookCopy.objects.create(book=self.book, library=self.library)
def test_user_can_retrieve_library_information_with_existing_slug(self):
+ """tests the following url: /api/libraries/(?P<slug>)/books/"""
+
self.request = self.client.get("/api/libraries/" + self.library.slug + "/")
self.assertEqual(self.request.status_code, 200)
@@ -134,19 +136,34 @@ class LibraryViewSet(TestCase):
self.assertEqual(self.library.name, library_json['name'])
self.assertEqual(self.library.slug, library_json['slug'])
- print(library_json)
-
# Get the books
self.request = self.client.get(library_json['books'])
self.assertEqual(self.request.status_code, 200)
library_json = json.loads(json.dumps(self.request.data))
- print(library_json["results"][0])
self.assertEqual(1, library_json['count'])
self.assertEqual(1, len(library_json['results'][0]['copies']))
+ def test_user_can_retrieve_books_from_library(self):
+ self.request = self.client.get("/api/libraries/" + self.library.slug + "/books/")
+
+ self.assertEqual(self.request.status_code, 200)
+
+ request_data = json.loads(json.dumps(self.request.data))
+
+ self.assertEqual(request_data['count'], 1)
+ self.assertIsNone(request_data['next'])
+ self.assertIsNone(request_data['previous'])
+ self.assertEqual(len(request_data['results']), 1)
+
+ book = request_data['results'][0]
+
+ self.assertEqual(book['title'], self.book.title)
+ self.assertEqual(book['author'], self.book.author)
+ self.assertEqual(book['subtitle'], self.book.subtitle)
+
class UserView(TestCase):
def setUp(self):
| 0 |
diff --git a/server/classes/simulator.js b/server/classes/simulator.js import uuid from "uuid";
import Team from "./teams";
-import { DamageStep } from "./generic";
+import DamageStep from "./generic/damageStep";
class RemoteAccess {
constructor(params = {}) {
| 1 |
diff --git a/src/rapidoc.js b/src/rapidoc.js @@ -294,8 +294,12 @@ export default class RapiDoc extends LitElement {
}
.tooltip-text {
color: var(--fg2);
+ max-width: 400px;
+ position: absolute;
+ z-index:1;
background-color: var(--bg2);
visibility: hidden;
+
overflow-wrap: break-word;
}
.tooltip:hover {
@@ -308,7 +312,6 @@ export default class RapiDoc extends LitElement {
.tooltip:hover .tooltip-text {
visibility: visible;
- opacity: 1;
}
@keyframes spin {
| 7 |
diff --git a/data.js b/data.js @@ -2057,7 +2057,7 @@ module.exports = [{
name: "ICanHaz",
tags: ["templating"],
description: "Simple & powerful client-side templating for jQuery or Zepto.js.",
- url: "http://icanhazjs.com/",
+ url: "https://github.com/HenrikJoreteg/ICanHaz.js",
source: "https://raw.githubusercontent.com/HenrikJoreteg/ICanHaz.js/master/ICanHaz.js"
},
{
| 1 |
diff --git a/.eslintrc.json b/.eslintrc.json "import/prefer-default-export": 0,
"import/no-absolute-path": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/test/*.js"] }],
- "no-underscore-dangle": 0
+ "no-underscore-dangle": 0,
+ "no-await-in-loop": 0
}
}
| 11 |
diff --git a/Orchestrator/docs/NLRModels.md b/Orchestrator/docs/NLRModels.md @@ -73,9 +73,10 @@ Its architecture is pretrained for example-based use ([KNN][3]), thus it can be
## Models Evaluation
For a more quantitative comparison analysis of the different models see the following performance characteristics.
-### Model attributes
+### English Intent Detection Models Evaluation
+
+- The following table shows the size & speed performance attributes.
-The following table shows the size & speed performance attributes.
| Model |Base Model |Layers |Encoding time per query | Disk Allocation |
| ------------ | ------------ | ------------ | ------------ | ------------ |
@@ -83,9 +84,9 @@ The following table shows the size & speed performance attributes.
|pretrained.20200924.microsoft.dte.00.06.en.onnx | BERT | 6 | ~ 16 ms | 261M |
|pretrained.20200924.microsoft.dte.00.12.en.onnx | BERT | 12 | ~ 26 ms | 427M |
-### Model performance, evaluated by micro-average-accuracy
+-
+ The following table shows how accurate is each model relative to provided training sample size using [Snips NLU][4] system, evaluated by **micro-average-accuracy**.
-The following table shows how accurate is each model relative to provided training sample size using [Snips NLU][4] system.
|Training samples per intent |5 |10 |25 |50 |100 |200 |
| ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |------------ |
@@ -93,6 +94,45 @@ The following table shows how accurate is each model relative to provided traini
|pretrained.20200924.microsoft.dte.00.06.en.onnx | 0.924 | 0.940 | 0.957 | 0.960 | 0.966 | 0.969 |
|pretrained.20200924.microsoft.dte.00.12.en.onnx | 0.902 | 0.931 | 0.951 | 0.960 | 0.964 | 0.969 |
+### Multilingual Intent Detection Models Evaluation
+- The following table shows the size & speed performance attributes.
+
+| Model | Base Model | Layers | Encoding time per query | Disk Allocation |
+| ------------------------------------------------------------ | ---------- | ------ | ----------------------- | --------------- |
+| pretrained.20210205.microsoft.dte.00.06.unicoder_multilingual.onnx | Unicoder | 6 | ~ 16 ms | 896M |
+| pretrained.20201210.microsoft.dte.00.12.unicoder_multilingual.onnx | Unicoder | 12 | ~ 30 ms | 1.08G |
+
+- The following table shows how accurate is each model by training and testing on the same language, evaluated by **micro-average-accuracy** on an internal dataset.
+
+| Model | de-de | en-us | es-es | es-mx | fr-ca | fr-fr | it-it | ja-jp | pt-br | zh-cn |
+| ------------------------------------------------------------ | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
+| pretrained.20210205.microsoft.dte.00.06.unicoder_multilingual.onnx | 0.638 | 0.785 | 0.662 | 0.760 | 0.723 | 0.661 | 0.701 | 0.786 | 0.735 | 0.805 |
+| pretrained.20201210.microsoft.dte.00.12.unicoder_multilingual.onnx | 0.642 | 0.764 | 0.646 | 0.754 | 0.722 | 0.636 | 0.689 | 0.789 | 0.725 | 0.809 |
+
+- The following table shows how accurate is each model by training on **en-us** and testing on the different languages, evaluated by **micro-average-accuracy** on an internal dataset.
+
+| Model | de-de | en-us | es-es | es-mx | fr-ca | fr-fr | it-it | ja-jp | pt-br | zh-cn |
+| ------------------------------------------------------------ | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ----- |
+| pretrained.20210205.microsoft.dte.00.06.unicoder_multilingual.onnx | 0.495 | 0.785 | 0.530 | 0.621 | 0.560 | 0.518 | 0.546 | 0.663 | 0.568 | 0.687 |
+| pretrained.20201210.microsoft.dte.00.12.unicoder_multilingual.onnx | 0.499 | 0.764 | 0.529 | 0.604 | 0.562 | 0.515 | 0.547 | 0.646 | 0.555 | 0.681 |
+
+### English Entity Extraction Models Evaluation
+
+- The following table shows the size & speed performance attributes.
+
+| Model | Base Model | Layers | Encoding time per query | Disk Allocation |
+| ------------------------------------------------------------ | ---------- | ------ | ----------------------- | --------------- |
+| pretrained.20210205.microsoft.dte.00.06.bert_example_ner.en.onnx | BERT | 6 | ~ 23 ms | 259M |
+| pretrained.20210205.microsoft.dte.00.12.bert_example_ner.en.onnx | BERT | 12 | ~ 40 ms | 427M |
+
+- The following table shows how accurate is each model relative to provided training sample size using [Snips NLU][4] system, evaluated by **macro-average-F1**.
+
+| Training samples per entity type | 10 | 20 | 50 | 100 | 200 |
+| ------------------------------------------------------------ | ----- | ----- | ----- | ----- | ----- |
+| pretrained.20210205.microsoft.dte.00.06.bert_example_ner.en.onnx | 0.662 | 0.678 | 0.680 | 0.684 | 0.674 |
+| pretrained.20210205.microsoft.dte.00.12.bert_example_ner.en.onnx | 0.637 | 0.658 | 0.684 | 0.698 | 0.702 |
+
+
## License
| 0 |
diff --git a/token-metadata/0x9235bDA06B8807161b8FBB1e102CB654555b212F/metadata.json b/token-metadata/0x9235bDA06B8807161b8FBB1e102CB654555b212F/metadata.json "symbol": "FLL",
"address": "0x9235bDA06B8807161b8FBB1e102CB654555b212F",
"decimals": 3,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
}
\ No newline at end of file
-}
\ No newline at end of file
| 3 |
diff --git a/src/Form/doc/Form.mdx b/src/Form/doc/Form.mdx @@ -32,33 +32,6 @@ Try not to include too many optional fields, as it will make the form harder to
## Basic Usage
<Playground>
- {() => {
- class DatePickerExample extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- date: null,
- datePickerFocused: false
- };
-
- this.onDateChange = this.onDateChange.bind(this);
- this.onFocusChange = this.onFocusChange.bind(this);
- }
-
- onDateChange(date) {
- this.setState({
- date
- });
- };
-
- onFocusChange({ focused }) {
- this.setState({
- datePickerFocused: focused
- });
- };
-
- render() {
- return (
<Form>
<FormControl>
<TextField defaultValue="Map Man" label="Name:" />
@@ -103,12 +76,6 @@ Try not to include too many optional fields, as it will make the form harder to
</Fieldset>
</FormControl>
</Form>
- );
- }
- }
-
- return <DatePickerExample />;
- }}
</Playground>
## Horizontal Forms
| 1 |
diff --git a/index.html b/index.html @@ -171,7 +171,7 @@ node server</pre>
tableView: true,
inputType: 'text',
inputMask: '',
- label: '',
+ label: 'First Name',
key: 'firstName',
placeholder: 'Enter your first name',
prefix: '',
| 1 |
diff --git a/src/pages/using-spark/components/icon.mdx b/src/pages/using-spark/components/icon.mdx @@ -31,7 +31,12 @@ give feedback.
- Icons should only be sized to 16px, 32px, 64px, or 128px.
- Icons should not be used in place of artwork or illustrations.
-### Accessibility
+<SprkDivider
+ element="span"
+ additionalClasses="sprk-u-Measure"
+></SprkDivider>
+
+## Accessibility
Icons are a great way to provide additional meaning for clients
with cognitive and visual disabilities. They should be
| 3 |
diff --git a/README.md b/README.md @@ -79,14 +79,15 @@ Note:
<script src="node_modules/angular-patternfly/node_modules/patternfly/node_modules/c3/c3.min.js"></script>
<script src="node_modules/angular-patternfly/node_modules/patternfly/node_modules/d3/d3.min.js"></script>
-5. (optional) The 'patternfly.charts' module is not a dependency in the default angular 'patternfly' module.
- In order to use patternfly charts you must add 'patternfly.charts' as a dependency in your application:
+5. (optional) The 'patternfly.charts' and 'patternfly.table' modules are not a dependencies in the default angular 'patternfly' module.
+ In order to use patternfly charts and/or patternfly.table, you must add them as a dependencies in your application:
my-app.module.js:
angular.module('myApp', [
'patternfly',
- 'patternfly.charts'
+ 'patternfly.charts',
+ 'patternfly.table'
]);
### Using with Webpack
| 3 |
diff --git a/apps/dragboard/README.md b/apps/dragboard/README.md @@ -10,9 +10,7 @@ The drag in Dragboard is a nod to the javascript 'drag' event, which is used to
Known bugs:
- Initially developed for use with dark theme set on Bangle.js 2 - that is still the preferred way to view it although it now works with other themes.
-- Text does not wrap.
+- When doing 'del' on a empty text-string, the letter case is changed.
To do:
-- Make text wrap and/or scroll up/sideways once available space runs out.
-- Optimize code. Further split it up in functions.
- Possibly provide a dragboard.settings.js file
| 3 |
diff --git a/userscript.user.js b/userscript.user.js @@ -13257,6 +13257,20 @@ var $$IMU_EXPORT$$;
id = website_match.groups.id;
}
+ var fill_string_vars = function(str) {
+ return str
+ .replace(/\${id}/g, id)
+ .replace(/\${([^/]+)}/g, function(_, x) {
+ if (/^[0-9]+$/.test(x))
+ return website_match[x];
+ return website_match.groups[x];
+ });
+ };
+
+ if (options.id) {
+ id = fill_string_vars(options.id);
+ }
+
var query = options.query_for_id;
if (typeof options.query_for_id === "string") {
@@ -13266,13 +13280,7 @@ var $$IMU_EXPORT$$;
}
if (typeof query === "object" && query.url) {
- query.url = query.url
- .replace(/\${id}/g, id)
- .replace(/\${([^/]+)}/g, function(_, x) {
- if (/^[0-9]+$/.test(x))
- return website_match[x];
- return website_match.groups[x];
- });
+ query.url = fill_string_vars(query.url);
} else {
query = query(id, website_match);
}
@@ -83806,7 +83814,6 @@ var $$IMU_EXPORT$$;
regex: /^[a-z]+:\/\/[^/]+\/+shows\/+([^/]+)\/+([^/?#.]+)(?:\/+embed)?(?:[?#].*)?$/,
groups: ["showname", "clipname"]
},
- id: "${showname}/${clipname}",
run: function(cb, match) {
query_omny_api(match.groups.showname, match.groups.clipname, function(data) {
if (!data) return cb(null);
| 11 |
diff --git a/lib/assets/core/javascripts/cartodb3/editor/layers/layer-content-views/data/data-view.js b/lib/assets/core/javascripts/cartodb3/editor/layers/layer-content-views/data/data-view.js @@ -69,6 +69,12 @@ module.exports = DatasetBaseView.extend({
loading: false
});
+ this._togglerModel = new Backbone.Model({
+ labels: [_t('editor.data.data-toggle.values'), _t('editor.data.data-toggle.cartocss')],
+ active: this._editorModel.isEditing(),
+ disabled: this._editorModel.isDisabled()
+ });
+
this._tableStats = new TableStats({
configModel: this._configModel,
userModel: this._userModel
@@ -155,6 +161,8 @@ module.exports = DatasetBaseView.extend({
_initBinds: function () {
this.listenTo(this._editorModel, 'change:edition', this._onChangeEdition);
+ this.listenTo(this._editorModel, 'change:disabled', this._onChangeDisabled);
+ this.listenTo(this._togglerModel, 'change:active', this._onTogglerChanged);
this.listenTo(this._querySchemaModel, 'change:query', this._onQuerySchemaChange);
this.listenTo(this._querySchemaModel, 'change:status', this._onQuerySchemaStatusChange);
@@ -260,6 +268,16 @@ module.exports = DatasetBaseView.extend({
this._collectionPane.at(index).set({ selected: true });
},
+ _onChangeDisabled: function () {
+ var disabled = this._editorModel.get('disabled');
+ this._togglerModel.set({ disabled: disabled });
+ },
+
+ _onTogglerChanged: function () {
+ var checked = this._togglerModel.get('active');
+ this._editorModel.set({ edition: checked });
+ },
+
_configPanes: function () {
var self = this;
var tabPaneTabs = [{
@@ -394,8 +412,7 @@ module.exports = DatasetBaseView.extend({
},
createControlView: function () {
return new Toggler({
- editorModel: self._editorModel,
- labels: [_t('editor.data.data-toggle.values'), _t('editor.data.data-toggle.cartocss')]
+ model: self._togglerModel
});
},
createActionView: function () {
| 4 |
diff --git a/game.js b/game.js @@ -49,8 +49,6 @@ const localRay = new THREE.Ray();
const localRaycaster = new THREE.Raycaster();
const oneVector = new THREE.Vector3(1, 1, 1);
-const leftHandOffset = new THREE.Vector3(0.2, -0.2, -0.4);
-const rightHandOffset = new THREE.Vector3(-0.2, -0.2, -0.4);
// const cubicBezier = easing(0, 1, 0, 1);
@@ -332,16 +330,7 @@ const _getNextUseIndex = animationCombo => {
} else {
return 0;
}
-};
-let lastPistolUseStartTime = -Infinity;
-const _handleNewLocalUseAction = (app, action) => {
- // console.log('got action animation', action);
- if (action.ik === 'pistol') {
- lastPistolUseStartTime = performance.now();
}
-
- app.use();
-};
const _startUse = () => {
const localPlayer = metaversefileApi.useLocalPlayer();
const wearApps = Array.from(localPlayer.getActionsState())
@@ -372,7 +361,7 @@ const _startUse = () => {
// console.log('new use action', newUseAction, useComponent, {animation, animationCombo, animationEnvelope});
localPlayer.addAction(newUseAction);
- _handleNewLocalUseAction(wearApp, newUseAction);
+ wearApp.use();
}
break;
}
@@ -633,73 +622,6 @@ const _gameUpdate = (timestamp, timeDiff) => {
const localPlayer = metaversefileApi.useLocalPlayer();
- const _updateFakeHands = () => {
- const session = renderer.xr.getSession();
- if (!session) {
- localMatrix.copy(localPlayer.matrixWorld)
- .decompose(localVector, localQuaternion, localVector2);
-
- const avatarHeight = localPlayer.avatar ? localPlayer.avatar.height : 0;
- const handOffsetScale = localPlayer.avatar ? avatarHeight / 1.5 : 1;
- {
- const leftGamepadPosition = localVector2.copy(localVector)
- .add(localVector3.copy(leftHandOffset).multiplyScalar(handOffsetScale).applyQuaternion(localQuaternion));
- const leftGamepadQuaternion = localQuaternion;
- const leftGamepadPointer = 0;
- const leftGamepadGrip = 0;
- const leftGamepadEnabled = false;
-
- localPlayer.leftHand.position.copy(leftGamepadPosition);
- localPlayer.leftHand.quaternion.copy(leftGamepadQuaternion);
- }
- {
- const rightGamepadPosition = localVector2.copy(localVector)
- .add(localVector3.copy(rightHandOffset).multiplyScalar(handOffsetScale).applyQuaternion(localQuaternion));
- const rightGamepadQuaternion = localQuaternion;
- const rightGamepadPointer = 0;
- const rightGamepadGrip = 0;
- const rightGamepadEnabled = false;
-
- localPlayer.rightHand.position.copy(rightGamepadPosition);
- localPlayer.rightHand.quaternion.copy(rightGamepadQuaternion);
- }
-
- if (lastPistolUseStartTime >= 0) {
- const lastUseTimeDiff = timestamp - lastPistolUseStartTime;
- const kickbackTime = 300;
- const kickbackExponent = 0.05;
- const f = Math.min(Math.max(lastUseTimeDiff / kickbackTime, 0), 1);
- const v = Math.sin(Math.pow(f, kickbackExponent) * Math.PI);
- const fakeArmLength = 0.2;
- localQuaternion.setFromRotationMatrix(
- localMatrix.lookAt(
- localVector.copy(localPlayer.leftHand.position),
- localVector2.copy(localPlayer.leftHand.position)
- .add(
- localVector3.set(0, 1, -1)
- .applyQuaternion(localPlayer.leftHand.quaternion)
- ),
- localVector3.set(0, 0, 1)
- .applyQuaternion(localPlayer.leftHand.quaternion)
- )
- )// .multiply(localPlayer.leftHand.quaternion);
-
- localPlayer.leftHand.position.sub(
- localVector.set(0, 0, -fakeArmLength)
- .applyQuaternion(localPlayer.leftHand.quaternion)
- );
-
- localPlayer.leftHand.quaternion.slerp(localQuaternion, v);
-
- localPlayer.leftHand.position.add(
- localVector.set(0, 0, -fakeArmLength)
- .applyQuaternion(localPlayer.leftHand.quaternion)
- );
- }
- }
- };
- _updateFakeHands();
-
const _handlePush = () => {
if (gameManager.canPush()) {
if (ioManager.keys.forward) {
| 2 |
diff --git a/test/exchange/dfs-sell.js b/test/exchange/dfs-sell.js @@ -239,7 +239,7 @@ describe('Dfs-Sell', function () {
const buyBalanceBefore = await balanceOf(ETH_ADDR, senderAcc.address);
// eslint-disable-next-line max-len
- const amount = hre.ethers.utils.parseUnits('3000', getAssetInfo('DAI').decimals);
+ const amount = hre.ethers.utils.parseUnits('1000', getAssetInfo('DAI').decimals);
const dfsSellAddr = await getAddrFromRegistry('DFSSell');
| 1 |
diff --git a/appjs/logicjavascript.js b/appjs/logicjavascript.js @@ -10772,8 +10772,10 @@ function computeprobability() {
var nettotal = parseInt(document.getElementById('total').value);
let result = document.getElementById('probability-result');
-
-
+ if((isNaN(favour)) || (isNaN(nettotal)) ){
+ result.innerHTML = "Please enter valid input";
+ }
+ else{
if (favour < 0 || nettotal < 0) {
result.innerHTML = "Outcomes can't be negative. Enter positive values only";
@@ -10784,11 +10786,18 @@ function computeprobability() {
result.innerHTML = "The probability of the event is : " + (favour / nettotal).toFixed(3);
}
}
+}
function condprobability(){
var netevent = parseFloat(document.getElementById('totevent').value);
var event = parseFloat(document.getElementById('event').value);
var result1 = (netevent/event).toFixed(3);
+ if((isNaN(netevent)) || (isNaN(event)) ){
+ document.getElementById("result1").innerHTML = "Please enter valid input";
+ document.getElementById("result2").innerHTML = "";
+ document.getElementById("result3").innerHTML = "";
+ }
+ else{
if (netevent < 0 || event < 0) {
document.getElementById("result1").innerHTML = "Outcomes can't be negative, Enter positive values only. ";
document.getElementById("result2").innerHTML = "";
@@ -10802,6 +10811,7 @@ function condprobability(){
}
}
+}
function computejointprobability() {
@@ -10821,6 +10831,12 @@ function computejointprobability() {
let result3 = document.getElementById("probability-result3");
var check = true;
+ if((isNaN(favourable1)) || (isNaN(favourable2)) || (isNaN(total1)) || (isNaN(total2))){
+ result1.innerHTML = "Please enter valid input";
+ result2.innerHTML = "";
+ result3.innerHTML = "";
+ }
+ else{
if (favourable1 >= 0 && total1 > 0 && favourable2 >= 0 && total2 > 0) {
if (favourable1 > total1) {
result1.innerHTML = "Number of favourable outcomes can't exceeds number of possible outcomes in first event";
@@ -10846,6 +10862,7 @@ function computejointprobability() {
result3.innerHTML = "";
}
}
+}
function computebayesprobability() {
@@ -10870,14 +10887,21 @@ function computebayesprobability() {
let result2=document.getElementById("bayesresult2");
var check = true;
+ if((isNaN(favourable1)) || (isNaN(favourable2)) || (isNaN(total1)) || (isNaN(total2)) || (isNaN(pbanda))){
+ result1.innerHTML = "Please enter valid input";
+ result2.innerHTML = "";
+ }
+else{
if (favourable1 >= 0 && total1 > 0 && favourable2 >= 0 && total2 > 0) {
if (favourable1 > total1) {
result1.innerHTML = "Number of favourable outcomes can't exceeds number of possible outcomes in first event";
+ result2.innerHTML = "";
check = false;
}
else if (favourable2 > total2) {
- result2.innerHTML = "Number of favourable outcomes can't exceeds number of possible outcomes in second event";
+ result1.innerHTML = "Number of favourable outcomes can't exceeds number of possible outcomes in second event";
+ result2.innerHTML = "";
check = false;
}
else if (pbanda>probability2 || pbanda>probability1) {
@@ -10892,10 +10916,12 @@ function computebayesprobability() {
}
} else {
- result.innerHTML = "Outcomes can't be negative. Enter positive values only";
+ result1.innerHTML = "Outcomes can't be negative. Enter positive values only";
+ result2.innerHTML = "";
}
}
+}
function angleplot() {
| 1 |
diff --git a/src/components/Layout.js b/src/components/Layout.js @@ -37,12 +37,46 @@ class Layout extends React.Component {
constructor(props) {
super(props)
this.state = {
- isDarkTheme: false, // TODO set based on browser preference
+ isDarkTheme: false,
}
}
+ // set isDarkTheme based on browser/app user preferences
+ componentDidMount = () => {
+ if (localStorage && localStorage.getItem("dark-theme") !== null) {
+ this.setState({
+ isDarkTheme: localStorage.getItem("dark-theme") === "true",
+ })
+ } else {
+ this.setState({
+ isDarkTheme: window.matchMedia("(prefers-color-scheme: dark)").matches,
+ })
+ }
+ window
+ .matchMedia("(prefers-color-scheme: dark)")
+ .addListener(({ matches }) => {
+ if (localStorage && localStorage.getItem("dark-theme") === null) {
+ this.setState({ isDarkTheme: matches })
+ }
+ })
+ }
+
+ componentWillUnmount = () => {
+ window
+ .matchMedia("(prefers-color-scheme: dark)")
+ .removeListener(({ matches }) => {
+ if (localStorage && localStorage.getItem("dark-theme") === null) {
+ this.setState({ isDarkTheme: matches })
+ }
+ })
+ }
+
handleThemeChange = () => {
- this.setState({ isDarkTheme: !this.state.isDarkTheme })
+ const isDarkTheme = !this.state.isDarkTheme
+ this.setState({ isDarkTheme: isDarkTheme })
+ if (localStorage) {
+ localStorage.setItem("dark-theme", isDarkTheme)
+ }
}
render() {
| 12 |
diff --git a/packages/app/test/integration/service/user-groups.test.ts b/packages/app/test/integration/service/user-groups.test.ts @@ -99,14 +99,13 @@ describe('UserGroupService', () => {
* Update UserGroup
*/
test('Updated values should be reflected. (name, description, parent)', async() => {
- const userGroup1 = await UserGroup.findOne({ _id: groupId1 });
const userGroup2 = await UserGroup.findOne({ _id: groupId2 });
const newGroupName = 'v5_group1_new';
const newGroupDescription = 'description1_new';
const newParentId = userGroup2._id;
- const updatedUserGroup = await crowi.userGroupService.updateGroup(userGroup1._id, newGroupName, newGroupDescription, newParentId);
+ const updatedUserGroup = await crowi.userGroupService.updateGroup(groupId1, newGroupName, newGroupDescription, newParentId);
expect(updatedUserGroup.name).toBe(newGroupName);
expect(updatedUserGroup.description).toBe(newGroupDescription);
@@ -114,10 +113,10 @@ describe('UserGroupService', () => {
});
test('Should throw an error when trying to set existing group name', async() => {
- const userGroup1 = await UserGroup.findOne({ _id: groupId1 });
+
const userGroup2 = await UserGroup.findOne({ _id: groupId2 });
- const result = crowi.userGroupService.updateGroup(userGroup1._id, userGroup2.name);
+ const result = crowi.userGroupService.updateGroup(groupId1, userGroup2.name);
await expect(result).rejects.toThrow('The group name is already taken');
});
@@ -129,32 +128,31 @@ describe('UserGroupService', () => {
expect(updatedUserGroup.parent).toBeNull();
});
- // In case that forceUpdateParents is false
+ /*
+ * forceUpdateParents: false
+ */
test('Should throw an error when users in child group do not exist in parent group', async() => {
const userGroup4 = await UserGroup.findOne({ _id: groupId4 });
- const userGroup5 = await UserGroup.findOne({ _id: groupId5 });
-
- const result = crowi.userGroupService.updateGroup(userGroup4._id, userGroup4.name, userGroup4.description, userGroup5._id);
+ const result = crowi.userGroupService.updateGroup(userGroup4._id, userGroup4.name, userGroup4.description, groupId5);
await expect(result).rejects.toThrow('The parent group does not contain the users in this group.');
});
/*
- * forceUpdateParents true
+ * forceUpdateParents: true
*/
test('User should be included to parent group (2 groups ver)', async() => {
const userGroup4 = await UserGroup.findOne({ _id: groupId4 });
const userGroup4Relation = await UserGroupRelation.findOne({ relatedGroup: userGroup4, relatedUser: userId1 });
- const userGroup5 = await UserGroup.findOne({ _id: groupId5 });
const forceUpdateParents = true;
const updatedUserGroup = await crowi.userGroupService.updateGroup(
- userGroup4._id, userGroup4.name, userGroup4.description, userGroup5._id, forceUpdateParents,
+ userGroup4._id, userGroup4.name, userGroup4.description, groupId5, forceUpdateParents,
);
- const relatedGroup = await UserGroupRelation.findOne({ relatedGroup: userGroup5._id, relatedUser: userGroup4Relation.relatedUser });
+ const relatedGroup = await UserGroupRelation.findOne({ relatedGroup: groupId5, relatedUser: userGroup4Relation.relatedUser });
- expect(updatedUserGroup.parent).toStrictEqual(userGroup5._id);
+ expect(updatedUserGroup.parent).toStrictEqual(groupId5);
expect(relatedGroup).toBeTruthy();
});
| 12 |
diff --git a/assets/sass/components/global/_googlesitekit-table.scss b/assets/sass/components/global/_googlesitekit-table.scss .googlesitekit-table__head-item {
color: $c-secondary;
font-weight: $fw-primary-medium;
+ hyphens: auto;
outline: 0;
padding: 0 ($grid-gap-phone / 2) ($grid-gap-phone / 2) ($grid-gap-phone / 2);
position: relative;
| 11 |
diff --git a/server/views/explorer/apicache.py b/server/views/explorer/apicache.py @@ -61,7 +61,7 @@ def _cached_sentence_list(mc_api_key, q, fq, rows, include_stories=True):
tool_mc = user_admin_mediacloud_client(mc_api_key)
sentences = tool_mc.sentenceList(q, fq)[:rows]
stories_id_list = [str(s['stories_id']) for s in sentences]
- if include_stories:
+ if (len(stories_id_list) > 0) and include_stories:
# this is the fastest way to get a list of stories by id
stories = user_mediacloud_client().storyList("stories_id:({})".format(" ".join(stories_id_list)))
stories_by_id = {s['stories_id']: s for s in stories} # build a quick lookup table by stories_id
| 9 |
diff --git a/assets/js/components/logo.js b/assets/js/components/logo.js import SvgIcon from 'GoogleUtil/svg-icon';
const { __ } = wp.i18n;
-const Logo = ( props ) => {
- const { beta = true } = props;
-
+const Logo = () => {
return (
<div className="googlesitekit-logo" aria-hidden="true">
<SvgIcon
@@ -34,13 +32,12 @@ const Logo = ( props ) => {
width="32"
/>
<SvgIcon
- id={ beta ? 'logo-sitekit-beta' : 'logo-sitekit' }
+ id="logo-sitekit"
className={ `
googlesitekit-logo__logo-sitekit
- ${ beta ? 'googlesitekit-logo__logo-sitekit--beta' : '' }
` }
- height={ beta ? '28' : '26' }
- width={ beta ? '206' : '99' }
+ height="26"
+ width="99"
/>
<span className="screen-reader-text">
{ __( 'Site Kit by Google Logo', 'google-site-kit' ) }
| 2 |
diff --git a/css/newTabPage.css b/css/newTabPage.css @@ -14,14 +14,9 @@ body:not(.is-ntp) #ntp-content {
#ntp-background {
/*max-height: max(100%, 72vw);*/
width: 100%;
- min-width: 150vh;
- max-width: 100vw;
- position: absolute;
- top: -99999px;
- left: -99999px;
- right: -99999px;
- bottom: -99999px;
+ height: 100%;
margin: auto;
+ object-fit: cover;
}
#ntp-background-controls {
| 7 |
diff --git a/packages/@uppy/webcam/src/style.scss b/packages/@uppy/webcam/src/style.scss overflow: hidden;
background-color: $color-black;
text-align: center;
+ position: relative;
}
.uppy-size--md .uppy-Webcam-videoContainer {
// height: 100%;
max-width: 100%;
max-height: 100%;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ margin: auto;
}
.uppy-Webcam-video--mirrored {
| 1 |
diff --git a/articles/tutorials/building-multi-tenant-saas-applications-with-azure-active-directory.md b/articles/tutorials/building-multi-tenant-saas-applications-with-azure-active-directory.md @@ -213,9 +213,11 @@ Before showing the Lock we're adding a button to allow login with Azure AD conne
import Auth0Lock from 'auth0-lock';
import Auth0js from 'auth0-js';
-const YOUR_AUTH0_CONNECTION_AZURE_AD_NAME = 'fabrikamcorp-waad'
+const YOUR_AUTH0_CONNECTION_AZURE_AD_NAME = 'fabrikamcorp-waad';
+const YOUR_AUTH0_DOMAIN = 'fabrikamcorp.auth0.com';
+const YOUR_AUTH0_CLIENTID = '2d8C6oCsRI6dw8V0rmvcE8GtkBaLvi8v';
-lock.once('signin ready', function() {
+function createReadyCallback(btnText) {
var buttonList = $('#auth0-lock-container-' + lock.id).find('.auth0-lock-social-buttons-container');
//Azure AD custom button
@@ -223,9 +225,9 @@ lock.once('signin ready', function() {
$('<button type="button" data-provider="windows">')
.addClass('auth0-lock-social-button auth0-lock-social-big-button')
.append('<div class="auth0-lock-social-button-icon">')
- .append('<div class="auth0-lock-social-button-text">Log in with Azure AD</div>')
+ .append($('<div class="auth0-lock-social-button-text">').text(btnText))
.on('click', function() {
- var webAuth = new Auth0js.WebAuth({domain, clientID});
+ var webAuth = new Auth0js.WebAuth({YOUR_AUTH0_DOMAIN, YOUR_AUTH0_CLIENTID});
webAuth.authorize({
connection: YOUR_AUTH0_CONNECTION_AZURE_AD_NAME,
@@ -238,7 +240,9 @@ lock.once('signin ready', function() {
});
})
);
-});
+}
+lock.on('signin ready', createReadyCallback('Log in with Azure AD'));
+lock.on('signup ready', createReadyCallback('Sign up with Azure AD'));
lock.show({
callbackURL: window.location.origin + '/signin-auth0'
});
| 7 |
diff --git a/src/views/preview/preview.scss b/src/views/preview/preview.scss @@ -364,7 +364,7 @@ $stage-width: 480px;
.guiPlayer {
display: inline-block;
position: relative;
- max-width: $player-width;
+ width: $player-width;
z-index: 1;
$alert-bg: rgba(255, 255, 255, .85);
| 13 |
diff --git a/ui/build/build.web-types.js b/ui/build/build.web-types.js @@ -36,14 +36,14 @@ module.exports.generate = function (data) {
contributions: {
html: {
'types-syntax': 'typescript',
- tags: data.components.map(({ api: { events, props, scopedSlots, slots }, name }) => {
+ tags: data.components.map(({ api: { events, props, scopedSlots, slots, meta }, name }) => {
let slotTypes = []
if (slots) {
Object.entries(slots).forEach(([name, slotApi]) => {
slotTypes.push({
name,
description: getDescription(slotApi),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
})
})
}
@@ -56,10 +56,10 @@ module.exports.generate = function (data) {
name,
type: resolveType(api),
description: getDescription(api),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
})),
description: getDescription(slotApi),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
})
})
}
@@ -78,7 +78,7 @@ module.exports.generate = function (data) {
type: resolveType(propApi)
},
description: getDescription(propApi),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
}
if (propApi.required) {
result.required = true
@@ -98,14 +98,14 @@ module.exports.generate = function (data) {
name: paramName,
type: resolveType(paramApi),
description: getDescription(paramApi),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
})),
description: getDescription(eventApi),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
})),
slots: slotTypes,
description: `${name} - Quasar component`,
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
}
if (props && props.value && ((events && events.input) || props.value.category === 'model')) {
result['vue-model'] = {
@@ -121,7 +121,7 @@ module.exports.generate = function (data) {
return result
}),
- attributes: data.directives.map(({ name, api: { modifiers, value } }) => {
+ attributes: data.directives.map(({ name, api: { modifiers, value, meta } }) => {
let valueType = value.type
let result = {
name: 'v-' + kebabCase(name),
@@ -131,13 +131,13 @@ module.exports.generate = function (data) {
},
required: false, // Directive is never required
description: `${name} - Quasar directive`,
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
}
if (modifiers) {
result['vue-modifiers'] = Object.entries(modifiers).map(([name, api]) => ({
name,
description: getDescription(api),
- 'doc-url': 'https://quasar.dev'
+ 'doc-url': meta.docsUrl || 'https://v1.quasar.dev'
}))
}
if (valueType !== 'Boolean') {
| 3 |
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -10,6 +10,8 @@ jobs:
if: github.actor != 'OSBotify'
runs-on: ubuntu-latest
steps:
+ - uses: actions/checkout@v2
+
- name: Check Provisioning Style
run: |
if grep -q 'ProvisioningStyle = Automatic;' ios/NewExpensify.xcodeproj/project.pbxproj; then
@@ -17,8 +19,6 @@ jobs:
exit 1
fi
- - uses: actions/checkout@v2
-
- name: Use Node.js
uses: actions/setup-node@v1
with:
| 5 |
diff --git a/core/variable_map.js b/core/variable_map.js @@ -152,7 +152,7 @@ VariableMap.prototype.renameVariableWithConflict_ = function(
// Finally delete the original variable, which is now unreferenced.
Events.fire(new (Events.get(Events.VAR_DELETE))(variable));
// And remove it from the list.
- utils.arrayRemove(this.getVariablesOfType(type), variable);
+ utils.arrayRemove(this.variableMap_[type], variable);
};
/* End functions for renaming variables. */
| 1 |
diff --git a/userscript.user.js b/userscript.user.js @@ -92492,9 +92492,25 @@ var $$IMU_EXPORT$$;
if (domain === "ik.imagekit.io") {
// https://ik.imagekit.io/sqhmihmlh/https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/NoBrand/Search/593076.jpg?ik-sdk-version=javascript-1.0.3&tr=c-limit%2Cw-500%2Ch-%2Cdefault+image-https%3A%2F%2Fik.imagekit.io%2Fsqhmihmlh%2Fmissing_image.jpg
// https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/NoBrand/Search/593076.jpg
+ // thanks to StarCrunchMuncher on reddit:
+ // https://curtsyapp.com/item/jordan-1/ABbHybG5e4
+ // https://ik.imagekit.io/pi9lsweb7gk/tr:f-jpg,pr-true,w-1230,h-902/0fbbf9c6b4df6b7c45927e87c7685a99_photo.jpeg
+ // https://ik.imagekit.io/pi9lsweb7gk/0fbbf9c6b4df6b7c45927e87c7685a99_photo.jpeg -- 2000x1468
+ // https://ik.imagekit.io/pi9lsweb7gk/tr:w-64,h-64/622f3bb04753f1b672c67b76bccc539e_avatar.png
+ // https://ik.imagekit.io/pi9lsweb7gk/622f3bb04753f1b672c67b76bccc539e_avatar.png -- 90x90
+ // https://ik.imagekit.io/pi9lsweb7gk/tr:w-160,h-160/fbfb36a5f17c5032f0dadd3d6cdf1f88_profilepic.png
+ // https://ik.imagekit.io/pi9lsweb7gk/fbfb36a5f17c5032f0dadd3d6cdf1f88_profilepic.png
+ // https://ik.imagekit.io/pi9lsweb7gk/tr:f-jpg,pr-true,w-296,h-340/48de16324b94f45c5975ffe8365b3581_image-0.jpeg
+ // https://ik.imagekit.io/pi9lsweb7gk/48de16324b94f45c5975ffe8365b3581_image-0.jpeg
+ // https://ik.imagekit.io/pi9lsweb7gk/tr:w-495,h-495,c-at_max/8e7c0c86c063904b93552041b1a9d160_photo.jpeg
+ // https://ik.imagekit.io/pi9lsweb7gk/8e7c0c86c063904b93552041b1a9d160_photo.jpeg -- 2000x1700
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+[^/]+\/+(https?:\/\/[^?#]+)(?:[?#].*)?$/, "$1");
if (newsrc !== src)
return newsrc;
+
+ newsrc = src.replace(/(:\/\/[^/]+\/+[^/]+\/+)tr:[^/]+\/+/, "$1");
+ if (newsrc !== src)
+ return newsrc;
}
if (domain_nowww === "twitch.tv") {
@@ -97708,7 +97724,7 @@ var $$IMU_EXPORT$$;
// https://img.kitapyurdu.com/v1/getImage/fn:11407623/wi:100/wh:true
// https://img.kitapyurdu.com/v1/getImage/fn:11407623/wh:true -- 633x987
// https://img.kitapyurdu.com/v1/getImage/fn:8092685/wh:true -- 1280x1188
- // wh:[signed? hex] seems to be the way that watermarks are removed
+ // wh:[signed? hex] seems to be the way that watermarks are removed. probably stands for "watermark hash"?
if (/\/v1\/+getImage\//.test(src)) {
return src.replace(/\/wi:[^/]+(\/.*)?$/g, "$1");
}
| 7 |
diff --git a/components/base-adresse-nationale/positions-types.js b/components/base-adresse-nationale/positions-types.js @@ -18,7 +18,7 @@ function PositionsTypes({positions}) {
<div className='positions'>
<div className='title'>Types de positions : </div>
{positions.map(p => (
- <span key={uniqueId('_position')} className='position' style={{backgroundColor: positionsColors[p.positionType].color}}>
+ <span key={uniqueId()} className='position' style={{backgroundColor: positionsColors[p.positionType].color}}>
{positionsColors[p.positionType].name}
</span>
))}
| 2 |
diff --git a/build/build.js b/build/build.js @@ -68,7 +68,7 @@ async function executeBuildEntry(buildConfig) {
* @param {boolean} testZip Should it check gzip size
*/
async function outputFile(dest, content, testZip) {
- await fs.promises.writeFile(dest, content)
+ await fs.writeFile(dest, content)
if (testZip) {
const zipResult = zlib.gzipSync(content)
console.log(
| 14 |
diff --git a/lib/modules/apostrophe-templates/views/outerLayoutBase.html b/lib/modules/apostrophe-templates/views/outerLayoutBase.html <!DOCTYPE html>
-<html lang="{% block locale %}{% endblock %}" xml:lang="{% block locale %}{% endblock %}">
+<html lang="{% block locale %}en{% endblock %}" xml:lang="{% block xmlLocale %}en{% endblock %}">
<head>
<title>{% block title %}{% endblock %}</title>
{{ apos.assets.stylesheets(data.when) }}
| 12 |
diff --git a/src/js/framework7/virtual-list.js b/src/js/framework7/virtual-list.js @@ -8,6 +8,7 @@ var VirtualList = function (listBlock, params) {
cache: true,
dynamicHeightBufferSize: 1,
showFilteredItemsOnly: false,
+ renderExternal: undefined,
template:
'<li>' +
'<div class="item-content">' +
@@ -170,7 +171,7 @@ var VirtualList = function (listBlock, params) {
toIndex = Math.min(fromIndex + rowsToRender * vl.params.cols, items.length);
}
- var topPosition;
+ var topPosition, renderExternalItems = [];
vl.reachEnd = false;
for (var i = fromIndex; i < toIndex; i++) {
var item, index;
@@ -187,8 +188,13 @@ var VirtualList = function (listBlock, params) {
}
// Find items
+ if (vl.params.renderExternal) {
+ renderExternalItems.push(items[i])
+ }
+ else {
if (vl.domCache[index]) {
item = vl.domCache[index];
+ item.f7VirtualListIndex = index;
}
else {
if (vl.template && !vl.params.renderItem) {
@@ -202,8 +208,9 @@ var VirtualList = function (listBlock, params) {
}
item = vl.tempDomElement.childNodes[0];
if (vl.params.cache) vl.domCache[index] = item;
- }
item.f7VirtualListIndex = index;
+ }
+ }
// Set item top position
if (i === fromIndex) {
@@ -214,6 +221,7 @@ var VirtualList = function (listBlock, params) {
topPosition = (i * vl.params.height / vl.params.cols);
}
}
+ if (!vl.params.renderExternal) {
item.style.top = topPosition + 'px';
// Before item insert
@@ -221,8 +229,7 @@ var VirtualList = function (listBlock, params) {
// Append item to fragment
vl.fragment.appendChild(item);
-
-
+ }
}
// Update list height with not updatable scroll
@@ -236,6 +243,12 @@ var VirtualList = function (listBlock, params) {
}
// Update list html
+ if (vl.params.renderExternal) {
+ if (items && items.length === 0) {
+ vl.reachEnd = true;
+ }
+ }
+ else {
if (vl.params.onBeforeClear) vl.params.onBeforeClear(vl, vl.fragment);
vl.ul[0].innerHTML = '';
@@ -249,10 +262,20 @@ var VirtualList = function (listBlock, params) {
}
if (vl.params.onItemsAfterInsert) vl.params.onItemsAfterInsert(vl, vl.fragment);
+ }
if (typeof forceScrollTop !== 'undefined' && force) {
vl.pageContent.scrollTop(forceScrollTop, 0);
}
+ if (vl.params.renderExternal) {
+ vl.params.renderExternal(vl, {
+ fromIndex: fromIndex,
+ toIndex: toIndex,
+ listHeight: listHeight,
+ topPosition: topPosition,
+ items: renderExternalItems
+ });
+ }
};
vl.scrollToItem = function (index) {
| 11 |
diff --git a/client/src/pages/guide/english/angular/command-line-interface/index.md b/client/src/pages/guide/english/angular/command-line-interface/index.md @@ -10,9 +10,9 @@ Angular is closely associated with its command-line interface (CLI). The CLI str
#### Installation
-The Angular CLI requires [Node.js and Node Packet Manager (NPM)](https://nodejs.org/en/). You can check for these programs with the terminal command: `node -v; npm -v`. Once installed, open a terminal and install the Angular CLI with this command: `npm install -g @angular/cli`. This can executed from anywhere on your system. The CLI is configured for global use with the `-g` flag.
+The Angular CLI requires [Node.js and Node Packet Manager (NPM)](https://nodejs.org/en/). You can check for these programs with the terminal command: `node -v; npm -v`. Once installed, open a terminal and install the Angular CLI with this command: `npm install -g @angular/cli` or `pm install -g @angular/cli@latest` to install the latest version of angular cli. This can executed from anywhere on your system. The CLI is configured for global use with the `-g` flag.
-Verify the CLI is there with the command: `ng -v`. This outputs several lines of information. One of these lines state the version of the installed CLI.
+Verify the CLI is there with the command: `ng -v`. This outputs several lines of information about the angular cli installed in your machine. One of these lines state the version of the installed CLI.
Recognize that `ng` is the basic building block of the CLI. All your commands will begin with `ng`. Time to take a look at four of the most common commands prefixed with `ng`.
@@ -32,9 +32,9 @@ The key terms for each of these are quite telling. Together, they comprise what
#### ng new
-`ng new` creates a *new* Angular file system. This is a surreal process. Please navigate to a file location desirable for *new* application generation. Type this command as follows, replacing `[name-of-app]` with whatever you want: `ng new [name-of-app]`.
+`ng new` creates a *new* Angular file system. This is a surreal process. Please navigate to a file location desirable for *new* application generation. Type this command as follows, replacing `[name-of-app]` with whatever you want: `ng new [name-of-app]`. For Example `ng new myapp` here `myapp` the name which I've given to my app. Which will generate your app with a default folder structure. There wil be a lot of generated files, Don't consider every file. You'll be mostly working with the src folder.
-A file system under the folder `[name-of-app]` should appear. Feel free to explore what lies within. Try to not make any changes yet. All of what you need to run your first Angular application comes packaged together in this generated file system.
+But Feel free to explore other files within. Try to not make any changes yet. All of what you need to run your first Angular application comes packaged together in this generated file system.
#### ng serve
@@ -44,6 +44,8 @@ The application runs on port 4200 by default. You can view the Angular applicati
Ok, the application runs. It hopefully functions, but you need to know what is going on under the hood. Refer back to the `[name-of-app]` file system. Navigate `[name-of-app] -> src -> app`. Therein lies the files responsible for what you saw on `localhost:4200`.
+Okay, What if you are running 2 Angular app which runs on PORT 4200 by default or let me say that the PORT 4200 has been busy? You can change your default PORT by using a cli commang `ng serve --port 4000` here 4000 is the PORT that I want to run. You can change it to a PORT that ypu wnat to run your app.
+
#### ng generate
The `.component` files define an Angular component including its logic (`.ts`), style (`.css`), layout (`.html`), and testing (`.spec.ts`). The `app.module.ts` particularly stands out. Together, these two groups of files work together as `component` and `module`. Both `component` and `module` are two separate examples of Angular schematics. Schematics classify the different purpose-driven blocks of code *generatable* with `ng generate`.
| 7 |
diff --git a/pages/index.js b/pages/index.js +import { withRouter } from "next/router";
import React from 'react';
import axios from 'axios';
import ShowList from '../components/ShowList';
@@ -8,10 +9,10 @@ import Header from '../components/Header';
import Footer from '../components/Footer';
import Page from '../components/Page';
-export default class IndexPage extends React.Component {
+export default withRouter(class IndexPage extends React.Component {
constructor(props) {
super();
- const currentShow = props.url.query.number || props.shows[0].displayNumber;
+ const currentShow = props.router.query.number || props.shows[0].displayNumber;
this.state = {
currentShow,
@@ -27,7 +28,7 @@ export default class IndexPage extends React.Component {
}
componentWillReceiveProps(nextProps) {
- const { pathname, query } = nextProps.url;
+ const { pathname, query } = nextProps.router;
if (query.number) {
this.setState({ currentShow: query.number });
}
@@ -63,4 +64,4 @@ export default class IndexPage extends React.Component {
</Page>
);
}
-}
+});
| 1 |
diff --git a/src/components/colorbar/draw.js b/src/components/colorbar/draw.js @@ -488,9 +488,9 @@ function drawColorBar(g, opts, gd) {
// TODO: why are we redrawing multiple times now with this?
// I guess autoMargin doesn't like being post-promise?
function positionCB() {
- var innerWidth = thickPx + outlinewidth / 2;
+ var innerThickness = thickPx + outlinewidth / 2;
if(ax.ticklabelposition.indexOf('inside') === -1) {
- innerWidth += Drawing.bBox(axLayer.node()).width;
+ innerThickness += Drawing.bBox(axLayer.node()).width;
}
titleEl = titleCont.select('text');
@@ -507,10 +507,10 @@ function drawColorBar(g, opts, gd) {
// transform gets removed by Drawing.bBox
titleWidth = Drawing.bBox(titleCont.node()).right - uPx - gs.l;
}
- innerWidth = Math.max(innerWidth, titleWidth);
+ innerThickness = Math.max(innerThickness, titleWidth);
}
- var outerThickness = 2 * xpad + innerWidth + borderwidth + outlinewidth / 2;
+ var outerThickness = 2 * xpad + innerThickness + borderwidth + outlinewidth / 2;
g.select('.' + cn.cbbg).attr({
x: uPx - xpad - (borderwidth + outlinewidth) / 2,
| 10 |
diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js @@ -115,7 +115,7 @@ function addPersonalBankAccount(account, password) {
key: ONYXKEYS.PERSONAL_BANK_ACCOUNT,
value: {
isLoading: true,
- error: '',
+ errors: null,
},
},
],
@@ -125,7 +125,7 @@ function addPersonalBankAccount(account, password) {
key: ONYXKEYS.PERSONAL_BANK_ACCOUNT,
value: {
isLoading: false,
- error: '',
+ errors: null,
shouldShowSuccess: true,
},
},
@@ -136,7 +136,9 @@ function addPersonalBankAccount(account, password) {
key: ONYXKEYS.PERSONAL_BANK_ACCOUNT,
value: {
isLoading: false,
- error: Localize.translateLocal('paymentsPage.addBankAccountFailure'),
+ errors: {
+ [DateUtils.getMicroseconds()]: Localize.translateLocal('paymentsPage.addBankAccountFailure'),
+ },
},
},
],
| 4 |
diff --git a/docs/specs/oauth-vendor-extension.yaml b/docs/specs/oauth-vendor-extension.yaml @@ -18,15 +18,13 @@ info:
x-client-secret: my-client-secret # <--- when provided it will be pre filled in RapiDoc UI
flows:
authorizationCode:
- authorizationUrl: http://localhost/authorize
- tokenUrl: http://localhost/access_token
+ authorizationUrl: /authorize
+ tokenUrl: /access_token
scopes:
dog-lover: "always required"
owner: "optional"
```
version: "1.0"
-servers:
- - url: 'https://exampleurl.org'
security:
- exampleOauth2Flow: []
paths:
@@ -58,13 +56,13 @@ components:
x-client-secret: my-client-secret
flows:
authorizationCode:
- authorizationUrl: http://localhost/authorize
- tokenUrl: http://localhost/access_token
+ authorizationUrl: /authorize
+ tokenUrl: /access_token
scopes:
dog-lover: "always required"
owner: "optional"
clientCredentials:
- tokenUrl: 'http://localhost:8080/token'
+ tokenUrl: '/token'
scopes:
dog-lover: "always required"
owner: "optional"
| 7 |
diff --git a/admin-base/materialize/custom/_explorer.scss b/admin-base/materialize/custom/_explorer.scss .vue-form-generator {
overflow: auto;
height: 100%;
- padding: 0 0.75rem 55px 0.75rem;
+ padding: 0 0.75rem;
}
.explorer-confirm-dialog {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
padding: 0.75rem;
min-height: 55px;
max-height: 55px;
| 4 |
diff --git a/typescript/pg-promise.d.ts b/typescript/pg-promise.d.ts @@ -361,7 +361,7 @@ declare namespace pgPromise {
multi<T = any>(query: QueryParam, values?: any): XPromise<Array<T[]>>
// API: http://vitaly-t.github.io/pg-promise/Database.html#stream
- stream(qs: object, init: (stream: NodeJS.ReadableStream) => void): XPromise<{ processed: number, duration: number }>
+ stream(qs: NodeJS.ReadableStream, init: (stream: NodeJS.ReadableStream) => void): XPromise<{ processed: number, duration: number }>
// API: http://vitaly-t.github.io/pg-promise/Database.html#func
func<T = any>(funcName: string, values?: any, qrm?: queryResult): XPromise<T>
| 7 |
diff --git a/README.md b/README.md @@ -36,6 +36,7 @@ You can use as many operations as you like in simple or complex ways. Some examp
- [Convert data from a hexdump, then decompress][5]
- [Display multiple timestamps as full dates][6]
- [Carry out different operations on data of different types][7]
+ - [Use parts of the input as arguments to operations][8]
## Features
@@ -56,7 +57,7 @@ You can use as many operations as you like in simple or complex ways. Some examp
- Search
- If you know the name of the operation you want or a word associated with it, start typing it into the search field and any matching operations will immediately be shown.
- Highlighting
- - When you highlight text in the input or output, the offset and length values will be displayed and, if possible, the corresponding data will be highlighted in the output or input respectively (example: [highlight the word 'question' in the input to see where it appears in the output][8]).
+ - When you highlight text in the input or output, the offset and length values will be displayed and, if possible, the corresponding data will be highlighted in the output or input respectively (example: [highlight the word 'question' in the input to see where it appears in the output][9]).
- Save to file and load from file
- You can save the output to a file at any time or load a file by dragging and dropping it into the input field (note that files larger than about 500kb may cause your browser to hang or even crash due to the way that browsers handle large amounts of textual data).
- CyberChef is entirely client-side
@@ -94,4 +95,5 @@ CyberChef is released under the [Apache 2.0 Licence](https://www.apache.org/lice
[5]: https://gchq.github.io/CyberChef/#recipe=From_Hexdump()Gunzip()&input=MDAwMDAwMDAgIDFmIDhiIDA4IDAwIDEyIGJjIGYzIDU3IDAwIGZmIDBkIGM3IGMxIDA5IDAwIDIwICB8Li4uLi6881cu/y7HwS4uIHwKMDAwMDAwMTAgIDA4IDA1IGQwIDU1IGZlIDA0IDJkIGQzIDA0IDFmIGNhIDhjIDQ0IDIxIDViIGZmICB8Li7QVf4uLdMuLsouRCFb/3wKMDAwMDAwMjAgIDYwIGM3IGQ3IDAzIDE2IGJlIDQwIDFmIDc4IDRhIDNmIDA5IDg5IDBiIDlhIDdkICB8YMfXLi6%2BQC54Sj8uLi4ufXwKMDAwMDAwMzAgIDRlIGM4IDRlIDZkIDA1IDFlIDAxIDhiIDRjIDI0IDAwIDAwIDAwICAgICAgICAgICB8TshObS4uLi5MJC4uLnw
[6]: https://gchq.github.io/CyberChef/#recipe=Fork('%5C%5Cn','%5C%5Cn',false)From_UNIX_Timestamp('Seconds%20(s)')&input=OTc4MzQ2ODAwCjEwMTI2NTEyMDAKMTA0NjY5NjQwMAoxMDgxMDg3MjAwCjExMTUzMDUyMDAKMTE0OTYwOTYwMA
[7]: https://gchq.github.io/CyberChef/#recipe=Fork('%5C%5Cn','%5C%5Cn',false)Conditional_Jump('1',2,10)To_Hex('Space')Return()To_Base64('A-Za-z0-9%2B/%3D')&input=U29tZSBkYXRhIHdpdGggYSAxIGluIGl0ClNvbWUgZGF0YSB3aXRoIGEgMiBpbiBpdA
- [8]: https://gchq.github.io/CyberChef/#recipe=XOR(%7B'option':'Hex','string':'3a'%7D,'',false)To_Hexdump(16,false,false)&input=VGhlIGFuc3dlciB0byB0aGUgdWx0aW1hdGUgcXVlc3Rpb24gb2YgbGlmZSwgdGhlIFVuaXZlcnNlLCBhbmQgZXZlcnl0aGluZyBpcyA0Mi4
+ [8]: https://gchq.github.io/CyberChef/#recipe=Register('key%3D(%5B%5C%5Cda-f%5D*)',true,false)Find_/_Replace(%7B'option':'Regex','string':'.*data%3D(.*)'%7D,'$1',true,false,true)RC4(%7B'option':'Hex','string':'$R0'%7D,'Hex','Latin1')&input=aHR0cDovL21hbHdhcmV6LmJpei9iZWFjb24ucGhwP2tleT0wZTkzMmE1YyZkYXRhPThkYjdkNWViZTM4NjYzYTU0ZWNiYjMzNGUzZGIxMQ
+ [9]: https://gchq.github.io/CyberChef/#recipe=XOR(%7B'option':'Hex','string':'3a'%7D,'',false)To_Hexdump(16,false,false)&input=VGhlIGFuc3dlciB0byB0aGUgdWx0aW1hdGUgcXVlc3Rpb24gb2YgbGlmZSwgdGhlIFVuaXZlcnNlLCBhbmQgZXZlcnl0aGluZyBpcyA0Mi4
| 0 |
diff --git a/modules/@apostrophecms/ui/ui/apos/components/AposTree.vue b/modules/@apostrophecms/ui/ui/apos/components/AposTree.vue @@ -72,7 +72,7 @@ export default {
data() {
return {
// Copy the `rows` property to mutate with VueDraggable.
- myRows: [],
+ myRows: this.rows,
nested: false,
colWidths: null,
treeId: this.generateId()
| 12 |
diff --git a/README.md b/README.md @@ -18,7 +18,7 @@ React UI components for Elasticsearch.
## TOC
-1. **[Reactive Search: Intro](#1-reactive-search-intro)**
+1. **[ReactiveSearch: Intro](#1-reactivesearch-intro)**
2. **[Features](#2-features)**
3. **[Component Playground](#3-component-playground)**
4. **[Live Examples](#4-live-demos)**
| 1 |
diff --git a/desktop/sources/scripts/events.js b/desktop/sources/scripts/events.js @@ -11,8 +11,9 @@ window.addEventListener('drop', function(e)
e.stopPropagation();
let file = e.dataTransfer.files[0];
+ let name = file.path ? file.path : file.name;
- if(!file.path || file.path.indexOf(".pico") < 0){ console.log("Pico","Not a pico file"); return; }
+ if(!name || name.indexOf(".pico") < 0){ console.log("Pico","Not a pico file"); return; }
let reader = new FileReader();
reader.onload = function(e){
| 7 |
diff --git a/viewer/js/config/viewer.js b/viewer/js/config/viewer.js @@ -27,7 +27,7 @@ define([
// Use your own Google Maps API Key.
// https://developers.google.com/maps/documentation/javascript/get-api-key
- GoogleMapsLoader.KEY = 'NOT-A-REAL-API-KEY';
+ GoogleMapsLoader.KEY = GoogleMapsLoader.KEY || 'NOT-A-REAL-API-KEY';
// helper function returning ImageParameters for dynamic layers
// example:
| 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.