code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/lib/modules/whisper/js/embarkjs.js b/lib/modules/whisper/js/embarkjs.js @@ -13,6 +13,7 @@ __embarkWhisperNewWeb3.setProvider = function (options) { } // TODO: take into account type self.web3 = new Web3(new Web3.providers.WebsocketProvider("ws://" + provider, options.providerOptions)); + self.web3.currentProvider.on('connect', () => { self.getWhisperVersion(function (err, version) { if (err) { console.log("whisper not available"); @@ -28,6 +29,10 @@ __embarkWhisperNewWeb3.setProvider = function (options) { } self.whisperVersion = self.web3.version.whisper; }); + }); + self.web3.currentProvider.on('error', () => { + console.log("whisper not available"); + }); }; __embarkWhisperNewWeb3.sendMessage = function (options) {
2
diff --git a/package.json b/package.json "dependencies": { "browser-sync": "^2.24.7", "chalk": "^2.4.1", + "chokidar": "^2.0.4", "debug": "^4.0.1", "dependency-tree": "^6.3.0", "ejs": "^2.6.1", "fast-glob": "^2.2.2", "fs-extra": "^7.0.0", - "glob-watcher": "^5.0.1", "gray-matter": "^4.0.1", "hamljs": "^0.6.2", "handlebars": "^4.0.12",
2
diff --git a/package.json b/package.json "main": "dist/bootstrap-vue.common.js", "web": "dist/bootstrap-vue.js", "module": "es/index.js", - "jsnext:main": "dist/bootstrap-vue.esm.js", + "jsnext:main": "es/index.js", "style": "dist/bootstrap-vue.css", "license": "MIT", "homepage": "https://bootstrap-vue.github.io",
3
diff --git a/src/components/Card.js b/src/components/Card.js @@ -19,8 +19,7 @@ const Description = styled.p` const TopContent = styled.div`` -const Card = ({ emoji, title, description, children, className }) => { - return ( +const Card = ({ emoji, title, description, children, className }) => ( <StyledCard className={className}> <TopContent> {emoji && <Emoji size={3} text={emoji} />} @@ -30,6 +29,5 @@ const Card = ({ emoji, title, description, children, className }) => { {children} </StyledCard> ) -} export default Card
7
diff --git a/samples/csharp_dotnetcore/16.proactive-messages/Controllers/NotifyController.cs b/samples/csharp_dotnetcore/16.proactive-messages/Controllers/NotifyController.cs @@ -26,15 +26,7 @@ public NotifyController(IBotFrameworkHttpAdapter adapter, IConfiguration configu { _adapter = adapter; _conversationReferences = conversationReferences; - _appId = configuration["MicrosoftAppId"]; - - // If the channel is the Emulator, and authentication is not in use, - // the AppId will be null. We generate a random AppId for this case only. - // This is not required for production, since the AppId will have a value. - if (string.IsNullOrEmpty(_appId)) - { - _appId = Guid.NewGuid().ToString(); //if no AppId, use a random Guid - } + _appId = configuration["MicrosoftAppId"] ?? string.Empty; } public async Task<IActionResult> Get()
3
diff --git a/src/utils/user_utils.js b/src/utils/user_utils.js @@ -108,8 +108,12 @@ export function getSuggestionsSplitBy(term: string, splitStr: string): Array<str } export function getSuggestionsSplitByMultiple(term: string, splitStrs: Array<string>): Array<string> { - // $FlowFixMe - Array.flatMap is not yet implemented in Flow - return [...new Set(splitStrs.flatMap((splitStr) => getSuggestionsSplitBy(term, splitStr)))]; + const suggestions = splitStrs.reduce((acc, val) => { + getSuggestionsSplitBy(term, val).forEach((suggestion) => acc.add(suggestion)); + return acc; + }, new Set()); + + return [...suggestions]; } export function filterProfilesMatchingTerm(users: Array<UserProfile>, term: string): Array<UserProfile> {
14
diff --git a/package.json b/package.json "gray-matter": "^4.0.1", "hamljs": "^0.6.2", "handlebars": "^4.0.11", - "liquidjs": "^4.0.0", + "liquidjs": "^5.1.0", "lodash.chunk": "^4.2.0", "lodash.clone": "^4.5.0", "lodash.get": "^4.4.2",
3
diff --git a/_data/associates.yml b/_data/associates.yml @@ -39,3 +39,11 @@ associates: avatar: https://avatars1.githubusercontent.com/u/12243734?s=400&v=4 quote: >- "I'm interested in helping make Bitcoin better, and an important step forward is getting the community to use Bitcoin more efficiently. I hope that Optech can help coordinate this effort, and others, to make it as great as possible." + - + name: Mike Schmidt + role: Product Manager, Optech + other_affiliation: Product Manager, Blockstream + github: bitschmidty + avatar: https://avatars0.githubusercontent.com/u/1615772?s=400&v=4 + quote: >- + "Bitcoin has a pipeline of innovations flowing from the open source community. I am excited to help with the blocking and tackling needed to help roll out these innovations with the wider community of businesses, wallets, exchanges, and users." \ No newline at end of file
0
diff --git a/src/all.js b/src/all.js @@ -9,46 +9,53 @@ import Header from './components/header/header' import Radios from './components/radios/radios' import Tabs from './components/tabs/tabs' -function initAll () { - // Find all buttons with [role=button] on the document to enhance. - new Button(document).init() +function initAll (options) { + // Set the options to an empty object by default if no options are passed. + options = typeof options !== 'undefined' ? options : {} + + // Allow the user to initialise GOV.UK Frontend in only certain sections of the page + // Defaults to the entire document if nothing is set. + var scope = typeof options.scope !== 'undefined' ? options.scope : document + + // Find all buttons with [role=button] on the scope to enhance. + new Button(scope).init() // Find all global accordion components to enhance. - var $accordions = document.querySelectorAll('[data-module="accordion"]') + var $accordions = scope.querySelectorAll('[data-module="accordion"]') nodeListForEach($accordions, function ($accordion) { new Accordion($accordion).init() }) // Find all global details elements to enhance. - var $details = document.querySelectorAll('details') + var $details = scope.querySelectorAll('details') nodeListForEach($details, function ($detail) { new Details($detail).init() }) - var $characterCount = document.querySelectorAll('[data-module="character-count"]') + var $characterCount = scope.querySelectorAll('[data-module="character-count"]') nodeListForEach($characterCount, function ($characterCount) { new CharacterCount($characterCount).init() }) - var $checkboxes = document.querySelectorAll('[data-module="checkboxes"]') + var $checkboxes = scope.querySelectorAll('[data-module="checkboxes"]') nodeListForEach($checkboxes, function ($checkbox) { new Checkboxes($checkbox).init() }) // Find first error summary module to enhance. - var $errorSummary = document.querySelector('[data-module="error-summary"]') + var $errorSummary = scope.querySelector('[data-module="error-summary"]') new ErrorSummary($errorSummary).init() // Find first header module to enhance. - var $toggleButton = document.querySelector('[data-module="header"]') + var $toggleButton = scope.querySelector('[data-module="header"]') new Header($toggleButton).init() - var $radios = document.querySelectorAll('[data-module="radios"]') + var $radios = scope.querySelectorAll('[data-module="radios"]') nodeListForEach($radios, function ($radio) { new Radios($radio).init() }) - var $tabs = document.querySelectorAll('[data-module="tabs"]') + var $tabs = scope.querySelectorAll('[data-module="tabs"]') nodeListForEach($tabs, function ($tabs) { new Tabs($tabs).init() })
11
diff --git a/src/plugins/plugin.colors.ts b/src/plugins/plugin.colors.ts +import {DoughnutController, PolarAreaController} from '../index.js'; import type {Chart, ChartConfiguration, ChartDataset} from '../types.js'; export interface ColorsPluginOptions { @@ -49,17 +50,17 @@ function colorizePolarAreaDataset(dataset: ChartDataset, i: number) { return i; } -function getColorizer(chartType: string) { +function getColorizer(chart: Chart) { let i = 0; - return (dataset: ChartDataset) => { - const type = dataset.type || chartType; + return (dataset: ChartDataset, datasetIndex: number) => { + const controller = chart.getDatasetMeta(datasetIndex).controller; - if (type === 'doughnut' || type === 'pie') { + if (controller instanceof DoughnutController) { i = colorizeDoughnutDataset(dataset, i); - } else if (type === 'polarArea') { + } else if (controller instanceof PolarAreaController) { i = colorizePolarAreaDataset(dataset, i); - } else if (type) { + } else if (controller) { i = colorizeDefaultDataset(dataset, i); } }; @@ -101,7 +102,7 @@ export default { return; } - const colorizer = getColorizer(type); + const colorizer = getColorizer(chart); datasets.forEach(colorizer); }
11
diff --git a/generators/server/templates/build.gradle.ejs b/generators/server/templates/build.gradle.ejs @@ -49,7 +49,7 @@ plugins { <%_ if (databaseType === 'sql') { _%> id "org.liquibase.gradle" version "2.0.1" <%_ } _%> - id "org.sonarqube" version "2.7" + id "org.sonarqube" version "2.7.1" //jhipster-needle-gradle-plugins - JHipster will add additional gradle plugins here }
3
diff --git a/schema/base.schema.json b/schema/base.schema.json "type": "object", "required": ["schemaVersion", "class"], "propertyNames": { - "pattern": "^[A-Za-z][0-9A-Za-z_]{0,47}$" + "oneOf": [ + { "pattern": "^[A-Za-z][0-9A-Za-z_]{0,47}$" }, + { "const": "$schema" } + ] }, "properties": { "schemaVersion": { "type": "string", "const": "Device" }, + "$schema": { + "description": "URL of schema against which to validate. Used by validation in your local environment only (via Visual Studio Code, for example)", + "type": "string", + "format": "uri" + }, "async": { "description": "Tells the API to return a 202 HTTP status before processing is complete. User must then poll for status.", "type": "boolean",
11
diff --git a/src/js/select2/selection/single.js b/src/js/select2/selection/single.js @@ -16,7 +16,7 @@ define([ $selection.addClass('select2-selection--single'); $selection.html( - '<span class="select2-selection__rendered" role="textbox" aria-readonly="true"></span>' + + '<span class="select2-selection__rendered"></span>' + '<span class="select2-selection__arrow" role="presentation">' + '<b role="presentation"></b>' + '</span>' @@ -32,7 +32,10 @@ define([ var id = container.id + '-container'; - this.$selection.find('.select2-selection__rendered').attr('id', id); + this.$selection.find('.select2-selection__rendered') + .attr('id', id) + .attr('role', 'textbox') + .attr('aria-readonly', 'true'); this.$selection.attr('aria-labelledby', id); this.$selection.on('mousedown', function (evt) {
5
diff --git a/bin/util.js b/bin/util.js @@ -160,8 +160,13 @@ exports.same = function same(v1, v2) { }; exports.smart = function(value) { - if (typeof value === 'string') return '"' + value.replace(/"/g, '\\"') + '"'; + const type = typeof value; + if (type === 'string') return '"' + value.replace(/"/g, '\\"') + '"'; if (value instanceof Date) return value.toISOString(); + if (value && type === 'object') { + const name = value.constructor.name; + return '[object' + (name ? ' ' + name : '') + ']'; + } return String(value); };
7
diff --git a/components/measurement/AccessPointStatus.js b/components/measurement/AccessPointStatus.js @@ -3,27 +3,41 @@ import PropTypes from 'prop-types' import { Box } from 'ooni-components' import { Text } from 'rebass' import { FormattedMessage } from 'react-intl' +import styled from 'styled-components' -const AccessPointStatus = ({ icon, label, ok }) => ( - <Box> +const StatusText = styled(Text)` + color: ${props => props.ok && props.theme.colors.yellow9} +` + +const AccessPointStatus = ({ icon, label, ok , content, ...props}) => { + if (content === undefined) { + if (ok) { + content = <FormattedMessage id='Measurement.Details.Endpoint.Status.Okay' /> + } else { + content = <FormattedMessage id='Measurement.Details.Endpoint.Status.Failed' /> + } + } + + return ( + <Box {...props}> {icon} <Text fontWeight='bold' fontSize={0}>{label}</Text> - <Text + <StatusText + ok={!ok} fontSize={3} fontWeight={200} > - {ok - ? <FormattedMessage id='Measurement.Details.Endpoint.Status.Okay' /> - : <FormattedMessage id='Measurement.Details.Endpoint.Status.Failed' /> - } - </Text> + {content} + </StatusText> </Box> ) +} AccessPointStatus.propTypes = { icon: PropTypes.element.isRequired, label: PropTypes.string.isRequired, - ok: PropTypes.bool.isRequired + ok: PropTypes.bool.isRequired, + content: PropTypes.element } export default AccessPointStatus
11
diff --git a/app/manifest.json b/app/manifest.json { "name": "Capture QR Code", "short_name": "Capture QR Code", + "description": "Capture QR Codes in real time", "icons": [{ "src": "images/touch/icon-128x128.png", "sizes": "128x128" "sizes": "192x192" }], "start_url": "/index.html?homescreen=1", - "display": "standalone" + "display": "standalone", + "theme_color": "#212121", + "background_color": "#212121" }
1
diff --git a/apps/imageclock/app.js b/apps/imageclock/app.js @@ -603,6 +603,9 @@ var zeroOffset={X:0,Y:0}; var requestedDraws = 0; var isDrawing = false; + +var start; + function initialDraw(resources, face){ //print("Free memory", process.memory(false).free); requestedDraws++; @@ -628,7 +631,8 @@ function initialDraw(resources, face){ draw(resources, face, [], zeroOffset); } endPerfLog("initialDraw"); - //print(new Date().toISOString(), "Drawing done", (Date.now() - start).toFixed(0)); + lastDrawTime = (Date.now() - start); + //print(new Date().toISOString(), "Drawing done", lastDrawTime.toFixed(0)); isDrawing = false; if (requestedDraws > 0){ //print(new Date().toISOString(), "Had deferred drawing left, drawing again"); @@ -676,18 +680,21 @@ function getMatchedWaitingTime(time){ -function setMatchedInterval(callable, time, intervalHandler){ +function setMatchedInterval(callable, time, intervalHandler, delay){ //print("Setting matched interval for", time); + var matchedTime = getMatchedWaitingTime(time + delay); setTimeout(()=>{ var interval = setInterval(callable, time); if (intervalHandler) intervalHandler(interval); callable(); - }, getMatchedWaitingTime(time)); + }, matchedTime); } var unlockedDrawInterval; var lockedDrawInterval; +var lastDrawTime = 0; + var lockedRedraw = getByPath(watchface, ["Properties","Redraw","Locked"]) || 60000; var unlockedRedraw = getByPath(watchface, ["Properties","Redraw","Unlocked"]) || 1000; var defaultRedraw = getByPath(watchface, ["Properties","Redraw","Default"]) || "Always"; @@ -701,28 +708,32 @@ var stepsgoal = 2000; function handleLock(isLocked, forceRedraw){ //print("isLocked", Bangle.isLocked()); - if (forceRedraw || !redrawEvents || redrawEvents.includes("lock")){ - //print("Redrawing on lock", isLocked); - initialDraw(watchfaceResources, watchface); - } if (lockedDrawInterval) clearInterval(lockedDrawInterval); if (unlockedDrawInterval) clearInterval(unlockedDrawInterval); if (!isLocked){ + if (forceRedraw || !redrawEvents || (redrawEvents.includes("unlock"))){ + //print("Redrawing on unlock", isLocked); + initialDraw(watchfaceResources, watchface); + } setMatchedInterval(()=>{ //print("Redrawing on unlocked interval"); initialDraw(watchfaceResources, watchface); },unlockedRedraw, (v)=>{ unlockedDrawInterval = v; - }); + }, lastDrawTime); Bangle.setHRMPower(1, "imageclock"); Bangle.setBarometerPower(1, 'imageclock'); } else { + if (forceRedraw || !redrawEvents || (redrawEvents.includes("lock"))){ + //print("Redrawing on lock", isLocked); + initialDraw(watchfaceResources, watchface); + } setMatchedInterval(()=>{ //print("Redrawing on locked interval"); initialDraw(watchfaceResources, watchface); },lockedRedraw, (v)=>{ lockedDrawInterval = v; - }); + }, lastDrawTime); Bangle.setHRMPower(0, "imageclock"); Bangle.setBarometerPower(0, 'imageclock'); } @@ -759,4 +770,4 @@ setTimeout(()=>{ clearWidgetsDraw(); }, 100); -handleLock(Bangle.isLocked(), true); +handleLock(Bangle.isLocked());
4
diff --git a/publish/releases.json b/publish/releases.json "major": 2, "minor": 46 }, - "sources": ["DebtCache", "Exchanger", "Synthetix"], - "sips": [138, 139, 140, 145, 150, 151] + "sources": ["Exchanger", "Synthetix"], + "sips": [138, 139, 140, 151] }, { "name": "Alnitak (Optimism)", "minor": 46 }, "ovm": true, - "sources": [ - "DebtCache", - "EtherWrapper", - "Exchanger", - "Synthetix", - "SystemSettings" - ], - "sips": [138, 139, 140, 145, 150] + "sources": ["EtherWrapper", "Exchanger", "Synthetix", "SystemSettings"], + "sips": [138, 139, 140] } ]
2
diff --git a/public_app/src/components/Registration/AddMember/index.js b/public_app/src/components/Registration/AddMember/index.js @@ -128,7 +128,7 @@ export const AddMembersFlow = () => { }; const SelectComorbidity = ({setValue, formData, navigation, programs}) => { - const MINIMUM_SUPPORT_YEAR = 1920; + const MINIMUM_SUPPORT_AGE = 120; const [errors, setErrors] = useState({}); const [conditions, setConditions] = useState([]) const years = []; @@ -136,7 +136,7 @@ const SelectComorbidity = ({setValue, formData, navigation, programs}) => { const [showCommorbidity, setShowCommorbidity] = useState("yes"); const [minAge, setMinAge] = useState(0); - const [maxAge, setMaxAge] = useState(curYear - MINIMUM_SUPPORT_YEAR); + const [maxAge, setMaxAge] = useState(MINIMUM_SUPPORT_AGE); useEffect(() => { const data = { @@ -157,14 +157,14 @@ const SelectComorbidity = ({setValue, formData, navigation, programs}) => { if(result["variantAttachment"]) { setConditions(result["variantAttachment"].commorbidities || []) setMinAge(result["variantAttachment"].minAge || 0) - setMaxAge(result["variantAttachment"].maxAge || curYear - MINIMUM_SUPPORT_YEAR) + setMaxAge(result["variantAttachment"].maxAge || MINIMUM_SUPPORT_AGE) } else { console.error("program eligibility criteria is not configure"); } }) }, []); - for (let i = MINIMUM_SUPPORT_YEAR; i < curYear; i++) { + for (let i = curYear - maxAge; i < curYear; i++) { years.push("" + i) } const {previous, next} = navigation;
12
diff --git a/unlock-app/src/components/content/DashboardContent.jsx b/unlock-app/src/components/content/DashboardContent.jsx @@ -96,18 +96,6 @@ export const DashboardContent = () => { </Warning> </Phone> - <Warning> - We are switching the current checkout with redesigned checkout on 25 - August, 2022. The current checkout will be available for the - forseable future at a separate legacy path.{' '} - <a - className="underline" - href="https://docs.unlock-protocol.com/tools/paywall/locking-page" - > - Read more - </a> - </Warning> - {network === 1 && ( <Warning> Gas prices are high on Ethereum&apos;s main network. Consider
13
diff --git a/libs/aws/cloudwatchlogs.js b/libs/aws/cloudwatchlogs.js @@ -13,7 +13,7 @@ export default (aws) => { return { sdk: cloudwatchlogs, - getLogsByStreamName(params, logs, callback) { + getLogs(params, logs, callback) { //Recursive function to snag all logs from a logstream let logStreamName = params.logStreamName; this.sdk.getLogEvents(params, (err, data)=> { @@ -28,7 +28,7 @@ export default (aws) => { if(params.startFromHead) { delete params.startFromHead; //only necessary on first call I think. } - this.getLogsByStreamName(params, logs, callback); + this.getLogs(params, logs, callback); } else { callback(); } @@ -50,7 +50,7 @@ export default (aws) => { logStreamName: logStreamName, startFromHead: true }; - this.getLogsByStreamName(params, logs, cb); + this.getLogs(params, logs, cb); }, (err) => { callback(err, logs); });
10
diff --git a/core/keyboard_nav/ast_node.js b/core/keyboard_nav/ast_node.js @@ -418,7 +418,7 @@ Blockly.ASTNode.prototype.findPrevForField_ = function() { */ Blockly.ASTNode.prototype.navigateBetweenStacks_ = function(forward) { var curLocation = this.getLocation(); - if (!(curLocation instanceof Blockly.Block)) { + if (curLocation.getSourceBlock) { curLocation = /** @type {!Blockly.IASTNodeLocationWithBlock} */ ( curLocation).getSourceBlock(); }
2
diff --git a/lib/app/private/bootstrap.js b/lib/app/private/bootstrap.js @@ -43,7 +43,7 @@ module.exports = function runBootstrap(done) { // If bootstrap takes too long, display warning message // (just in case user forgot to call THEIR bootstrap's `done` callback, if // they're using that approach) - var timeoutMs = sails.config.bootstrapTimeout || 5000; + var timeoutMs = sails.config.bootstrapTimeout || 30000; var timer = setTimeout(function bootstrapTookTooLong() { sails.log.warn( 'Bootstrap is taking a while to finish ('+timeoutMs+' milliseconds).\n'+
12
diff --git a/src/index.js b/src/index.js @@ -389,6 +389,8 @@ class Offline { authorizerOptions.identitySource = 'method.request.header.Authorization'; } else { + authorizerOptions.identitySource = endpoint.authorizer.identitySource || + 'method.request.header.Authorization'; // See #207 authorizerOptions = endpoint.authorizer; }
0
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md # Contributing -#### Setup for creating pull requests +## Setup for creating pull requests 1. You'll first need to go through a normal [react-native setup](https://facebook.github.io/react-native/docs/getting-started.html#content) -1. Create a new react-native project with `react-native init foobar` +1. Create a new react-native project with `react-native init <YOUR-PROJECT-NAME>` 1. `cd` into your project 1. You have 2 options for linking `react-native-mapbox-gl` - * Use `npm link` - * Clone `react-native-mapbox-gl` into the `node_modules` folder + * Use `react-native link` + * Clone `@react-native-mapbox/maps` into the `node_modules` folder 1. Go through a normal install process for your platform -Once installed, you can edit any file in `react-native-mapbox-gl`, commit the changes and push them to a fork for creating a pull request. +Once installed, you can edit any file in `@react-native-mapbox/maps`, +commit the changes and push them to a fork for creating a pull request. -#### Best practices for PR's +## Best practices for PR's -1. If you add feature, make sure you add it to the documentation -1. If you add an objective-c or java method, make sure you update `index.ios.js` and/or `index.android.js`. +1. If you add a feature, make sure you add it to the documentation +1. If you add an objective-c or java method, make sure you update the declaration file: `index.d.ts`.
3
diff --git a/diorama.js b/diorama.js @@ -1589,13 +1589,24 @@ const createPlayerDiorama = (player, { canvas = _makeCanvas(sideSize, sideSize); document.body.appendChild(canvas); } - const {width, height} = canvas; - const ctx = canvas.getContext('2d'); - const outlineRenderTarget = _makeOutlineRenderTarget(width * pixelRatio, height * pixelRatio); + const canvases = []; + let outlineRenderTarget = null let lastDisabledTime = 0; const diorama = { + width: 0, + height: 0, enabled: true, + addCanvas(canvas) { + const {width, height} = canvas; + this.width = Math.max(this.width, width); + this.height = Math.max(this.height, height); + + const ctx = canvas.getContext('2d'); + canvas.ctx = ctx; + + canvases.push(canvas); + }, toggleShader() { const oldValues = {lightningBackground, radialBackground, glyphBackground, grassBackground}; lightningBackground = false; @@ -1626,10 +1637,14 @@ const createPlayerDiorama = (player, { Math.pow(2, Math.floor(Math.log(size.x) / Math.log(2))), Math.pow(2, Math.floor(Math.log(size.y) / Math.log(2))), ); - if (sizePowerOfTwo.x < width || sizePowerOfTwo.y < height) { + if (sizePowerOfTwo.x < this.width || sizePowerOfTwo.y < this.height) { throw new Error('renderer is too small'); } + if (!outlineRenderTarget || (outlineRenderTarget.width !== this.width * pixelRatio) || (outlineRenderTarget.height !== this.height * pixelRatio)) { + outlineRenderTarget = _makeOutlineRenderTarget(this.width * pixelRatio, this.height * pixelRatio); + } + if (player.avatar) { // push old state const oldParent = player.avatar.model.parent; @@ -1734,22 +1749,25 @@ const createPlayerDiorama = (player, { // render side scene renderer.setRenderTarget(oldRenderTarget); - renderer.setViewport(0, 0, width, height); + renderer.setViewport(0, 0, this.width, this.height); renderer.clear(); renderer.render(sideScene, sideCamera); + for (const canvas of canvases) { + const {width, height, ctx} = canvas; ctx.clearRect(0, 0, width, height); ctx.drawImage( renderer.domElement, 0, - size.y * pixelRatio - height * pixelRatio, - width * pixelRatio, - height * pixelRatio, + size.y * pixelRatio - this.height * pixelRatio, + this.width * pixelRatio, + this.height * pixelRatio, 0, 0, width, height ); + } }; _render(); @@ -1769,10 +1787,13 @@ const createPlayerDiorama = (player, { } }, destroy() { + for (const canvas of canvases) { canvas.parentNode.removeChild(canvas); + } dioramas.splice(dioramas.indexOf(diorama), 1); }, }; + diorama.addCanvas(canvas); dioramas.push(diorama); return diorama; };
0
diff --git a/core/algorithm-operator/lib/templates/algorithm-queue.js b/core/algorithm-operator/lib/templates/algorithm-queue.js @@ -70,6 +70,15 @@ const algorithmQueueTemplate = { key: 'ALGORITHM_QUEUE_INTERVAL' } } + }, + { + name: 'PRODUCER_UPDATE_INTERVAL', + valueFrom: { + configMapKeyRef: { + name: 'algorithm-operator-configmap', + key: 'ALGORITHM_QUEUE_PRODUCER_UPDATE_INTERVAL' + } + } } ] }
0
diff --git a/closure/goog/labs/net/webchannel/webchannelbase.js b/closure/goog/labs/net/webchannel/webchannelbase.js @@ -2047,13 +2047,14 @@ WebChannelBase.prototype.clearDeadBackchannelTimer_ = function() { * failed request. * @param {?ChannelRequest.Error} error The error code for the * failed request. + * @param {number} statusCode The last HTTP status code. * @return {boolean} Whether or not the error is fatal. * @private */ -WebChannelBase.isFatalError_ = function(error) { +WebChannelBase.isFatalError_ = function(error, statusCode) { 'use strict'; return error == ChannelRequest.Error.UNKNOWN_SESSION_ID || - error == ChannelRequest.Error.STATUS; + (error == ChannelRequest.Error.STATUS && statusCode > 0); }; @@ -2101,7 +2102,7 @@ WebChannelBase.prototype.onRequestComplete = function(request) { // Else unsuccessful. Fall through. const lastError = request.getLastError(); - if (!WebChannelBase.isFatalError_(lastError)) { + if (!WebChannelBase.isFatalError_(lastError, this.lastStatusCode_)) { // Maybe retry. const self = this; this.channelDebug_.debug(function() {
1
diff --git a/app/models/carto/user_creation.rb b/app/models/carto/user_creation.rb @@ -204,7 +204,7 @@ class Carto::UserCreation < ActiveRecord::Base end def log_transition(prefix) - log.append("#{prefix}: State: #{self.state}") + log.append("#{prefix}: State: #{state}") end def initialize_user
1
diff --git a/dashboard/apps/configuration.fma/index.html b/dashboard/apps/configuration.fma/index.html <ul class="left" role="tablist" data-tab> <li class="tab-title active" role="presentational"><a href="#tabpanel1" role="tab" tabindex="0" aria-selected="true" controls="tabpanel1">General</a> </li> - <li class="tab-title" role="presentational"><a href="#tabpanel2" role="tab" tabindex="0" aria-selected="false" controls="tabpanel2">Axis</a> + <li class="tab-title" role="presentational"><a href="#tabpanel5" role="tab" tabindex="0" aria-selected="false" controls="tabpanel5">Machine</a> </li> - <li class="tab-title" role="presentational"><a href="#tabpanel3" role="tab" tabindex="0" aria-selected="false" controls="tabpanel3">Inputs</a> + <li class="tab-title" role="presentational"><a href="#tabpanel4" role="tab" tabindex="0" aria-selected="false" controls="tabpanel4">Drivers</a> </li> - <li class="tab-title" role="presentational"><a href="#tabpanel4" role="tab" tabindex="0" aria-selected="false" controls="tabpanel4">Channels</a> + <li class="tab-title" role="presentational"><a href="#tabpanel2" role="tab" tabindex="0" aria-selected="false" controls="tabpanel2">Axes</a> </li> - <li class="tab-title" role="presentational"><a href="#tabpanel5" role="tab" tabindex="0" aria-selected="false" controls="tabpanel5">Machine</a> + <li class="tab-title" role="presentational"><a href="#tabpanel3" role="tab" tabindex="0" aria-selected="false" controls="tabpanel3">Inputs</a> </li> <li class="tab-title" role="presentational"><a href="#tabpanel6" role="tab" tabindex="0" aria-selected="false" controls="tabpanel6">Apps</a> </li> - <li class="tab-title" role="presentational"><a href="#tabpanel7" role="tab" tabindex="0" aria-selected="false" controls="tabpanel7">User</a> + <li class="tab-title" role="presentational"><a href="#tabpanel7" role="tab" tabindex="0" aria-selected="false" controls="tabpanel7">Users</a> </li> </ul> <ul class="right"> </div> </fieldset> </div> - +<!-- <div class="row"> <fieldset> <legend>Rotation</legend> </div> </fieldset> </div> - - <!-- <div class="row"> <fieldset> <legend>Scale</legend> </div> </div> </fieldset> -</div> --> +</div> <div class="row"> <fieldset> </div> </div> </div> + </fieldset> <fieldset> - <!--<legend>Backup & Restore</legend>--> + <legend>Backup & Restore</legend> <legend>Backup</legend> <div class="large-3 columns"> <div class="row collapse"> <a id="btn-backup" class="button radius small">Backup the configuration</a> </div> </div> - <!-- <div class="large-7 columns"> <div class="row collapse"> <input type="file" id="restore_conf_file" class="hidden"> <a id="btn-restore" class="button radius small">Restore the configuration</a> </div> </div> - --> + </fieldset> </div> - +--> <!-- <div class="row"> <fieldset> <legend>Shear X</legend>
2
diff --git a/assets/sass/components/settings/_googlesitekit-settings-notice.scss b/assets/sass/components/settings/_googlesitekit-settings-notice.scss } + + .mdc-text-field:not(.mdc-text-field--disabled) { + + .mdc-text-field__input { + color: $c-text-notice-info-selected-text; + } + + .mdc-notched-outline__leading, + .mdc-notched-outline__notch, + .mdc-notched-outline__trailing { + border-color: $c-border-brand; + } + + } + + // TODO: decouple select styles from type-specific colors. .mdc-select:not(.mdc-select--disabled) {
12
diff --git a/index.d.ts b/index.d.ts @@ -93,19 +93,19 @@ declare namespace MapboxGL { * Components */ class MapView extends Component<MapViewProps> { - getPointInView(coordinate: GeoJSON.Position): Promise<void>; - getCoordinateFromView(point: GeoJSON.Position): Promise<void>; + getPointInView(coordinate: GeoJSON.Position): Promise<GeoJSON.Position>; + getCoordinateFromView(point: GeoJSON.Position): Promise<GeoJSON.Position>; getVisibleBounds(): Promise<void>; queryRenderedFeaturesAtPoint( coordinate: GeoJSON.Position, filter?: Array<string>, layerIds?: Array<string>, - ): Promise<void>; + ): Promise<GeoJSON.FeatureCollection?>; queryRenderedFeaturesInRect( coordinate: GeoJSON.Position, filter?: Array<string>, layerIds?: Array<string>, - ): Promise<void>; + ): Promise<GeoJSON.FeatureCollection?>; takeSnap(writeToDisk?: boolean): Promise<string>; getZoom(): Promise<number>; getCenter(): Promise<GeoJSON.Position>;
7
diff --git a/src/article/models/CustomAbstract.js b/src/article/models/CustomAbstract.js import Abstract from './Abstract' -import { STRING, TEXT } from 'substance' +import { ENUM, TEXT } from 'substance' import { RICH_TEXT_ANNOS } from './modelConstants' export default class CustomAbstract extends Abstract { @@ -19,6 +19,6 @@ export default class CustomAbstract extends Abstract { CustomAbstract.schema = { type: 'custom-abstract', - abstractType: STRING, + abstractType: ENUM(['executive-summary', 'web-summary'], { default: '' }), title: TEXT(RICH_TEXT_ANNOS) }
4
diff --git a/api/mutations/message/addMessage.js b/api/mutations/message/addMessage.js @@ -203,7 +203,7 @@ export default requireAuth(async (_: any, args: Input, ctx: GraphQLContext) => { // at this point we are only dealing with thread messages const thread = await loaders.thread.load(message.threadId); - if (thread.isDeleted) { + if (!thread || thread.deletedAt) { trackQueue.add({ userId: user.id, event: eventFailed,
1
diff --git a/lib/node_modules/@stdlib/utils/copy/test/test.js b/lib/node_modules/@stdlib/utils/copy/test/test.js var tape = require( 'tape' ); var assert = require( 'chai' ).assert; +var PI = require( '@stdlib/constants/math/float64-pi' ); var copy = require( './../lib' ); var fixtures = require( './fixtures' ); @@ -40,7 +41,7 @@ tape( 'if provided a nonnegative integer level, the function will throw an error values = [ '5', - Math.PI, + PI, -1, null, NaN,
4
diff --git a/lib/carto/connector.rb b/lib/carto/connector.rb @@ -51,6 +51,7 @@ module Carto # Availabillity check: checks general availability for user, # and specific provider availability if provider_name is not nil def self.check_availability!(user, provider_name=nil) + return false if user.nil? # check general availability unless user.has_feature_flag?('carto-connectors') raise ConnectorsDisabledError.new(user: user)
11
diff --git a/modules/xmpp/ChatRoom.js b/modules/xmpp/ChatRoom.js @@ -113,9 +113,9 @@ export default class ChatRoom extends Listenable { * @param {boolean} options.hiddenFromRecorderFeatureEnabled - when set to {@code true} we will check identity tag * for node presence. */ - constructor(connection, jid, password, XMPP, options) { + constructor(connection, jid, password, xmpp, options) { super(); - this.xmpp = XMPP; + this.xmpp = xmpp; this.connection = connection; this.roomjid = Strophe.getBareJidFromJid(jid); this.myroomjid = jid; @@ -132,7 +132,7 @@ export default class ChatRoom extends Listenable { this.focusMucJid = null; this.noBridgeAvailable = false; this.options = options || {}; - this.moderator = new Moderator(this.roomjid, this.xmpp, this.eventEmitter, options); + this.moderator = new Moderator(this.roomjid, this.xmpp, this.eventEmitter, xmpp.options); if (typeof this.options.enableLobby === 'undefined' || this.options.enableLobby) { this.lobby = new Lobby(this); }
4
diff --git a/backend/lib/endpoints/auth.js b/backend/lib/endpoints/auth.js @@ -142,15 +142,18 @@ async function routes(app) { // the first account with valid Database record will be the primary account let provider = null; let primaryAuthId = null; - const noAccount = otherAccounts.length === 0; + const noAccount = !otherAccounts.some((account) => + account.identities.some((id) => id.provider === "auth0"), + ); for (const account of otherAccounts) { - const { mongo_id } = account.app_metadata; + const { mongo_id } = account.app_metadata ? account.app_metadata : {}; if (mongo_id) { const dbUser = await User.findById(mongo_id); if (dbUser) { primaryAuthId = dbUser.authId; const providerCode = primaryAuthId.split("|")[0]; // "provider|user_id" - provider = providerCode === "google-oauth2" ? "Google" : providerCode; + provider = + providerCode === "google-oauth2" ? "Google" : providerCode; break; } } @@ -214,9 +217,10 @@ async function routes(app) { req.token, email, ); - if (noAccount) throw app.httpErrors.badRequest("noEmailAccount"); - else if (provider) - throw app.httpErrors.badRequest("registeredAccount"); + if (noAccount) + throw app.httpErrors.badRequest( + provider ? "registeredAccount" : "noEmailAccount", + ); else throw app.httpErrors.unauthorized("wrongCredentials"); } if (err.statusCode === 429) {
7
diff --git a/src/styles/modules/buttons.scss b/src/styles/modules/buttons.scss color: #fff !important; background-color: #2ED8B1 !important; } + + .Icon { + color: #2ED8B1; + } } .btn-success { &:hover, &:focus, &:active { color: #fff !important; } + + .Icon { + color: #ffffff; + } }
12
diff --git a/upload.js b/upload.js @@ -151,7 +151,7 @@ export class UploadInstance extends EventEmitter { this.sentChunks = 0; this.fileLength = 1; this.EOFsent = false; - this.fileId = Random.id(); + this.fileId = Match.Optional(String) || Random.id(); this.FSName = this.collection.namingFunction ? this.collection.namingFunction(this.fileData) : this.fileId; this.pipes = [];
11
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.208.2", + "version": "0.208.3", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/src/js/components/Chart/doc.js b/src/js/components/Chart/doc.js @@ -35,7 +35,9 @@ export default (Chart) => { ]).description( 'The size of the Chart.' ).defaultValue({ width: 'medium', height: 'small' }), - thickness: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']).description( + thickness: PropTypes.oneOf([ + 'xsmall', 'small', 'medium', 'large', 'xlarge', 'none', + ]).description( 'The width of the stroke.' ).defaultValue('medium'), type: PropTypes.oneOf(['bar', 'line', 'area']).description(
1
diff --git a/articles/support/index.md b/articles/support/index.md @@ -66,3 +66,5 @@ Auth0's public [question and answer community](https://ask.auth0.com) offers sup In addition to the Auth0 Community, paid subscribers can create a private ticket via [Support Center](${env.DOMAIN_URL_SUPPORT}). All account administrators will be able to view and add comments to Support Center tickets. Support Center can be accessed by clicking on the **Get Support** link on the [dashboard](${manage_url}). [Learn more about creating tickets with Support Center](/support/tickets) + +Critical Production issues should always be reported via the [Support Center](https://support.auth0.com/) for fastest response.
0
diff --git a/examples/launcher/src/components/Dom.jsx b/examples/launcher/src/components/Dom.jsx @@ -265,6 +265,59 @@ class DomItem extends React.Component { } } +class DomDetail extends React.Component { + /* constructor(props) { + super(props); + } */ + toggleOpen() { + const {el} = this.props; + + this.setState({ + open: !this.state.open, + }); + + el.stopPropagation(); + } + + cloneTab() { + const {el} = this.props; + let url; + + el.attrs.map(attr => (attr.name === "src") ? url = attr.value : null); + + window.postMessage({ + method: 'open', + url, + d: 3, + }); + + this.toggleOpen(); + } + + deleteTab() { + const {el} = this.props; + + window.postMessage({ + method: 'edit', + keypath: el.keypath, + edit: { + type: 'remove', + }, + }); + + this.toggleOpen(); + } + render() { + const {el} = this.props; + + return ( + <div className="dom-detail"> + <div className="dom-detail-button" onClick={() => this.cloneTab()}>Clone</div> + <div className="dom-detail-button" onClick={() => this.deleteTab()}>Delete</div> + </div> + ); + } +} class DomAttribute extends React.Component { constructor(props) {
13
diff --git a/website/js/sections/CustomizingTooltips.js b/website/js/sections/CustomizingTooltips.js @@ -3,8 +3,6 @@ import { h } from 'hyperapp' import HTML_BUTTON from '../../snippets/html-button.md' import OPTIONS_OBJECT from '../../snippets/options-object.md' import DATA_ATTRIBUTES from '../../snippets/data-attributes.md' -import MULTIPLE_CONTENT_HTML from '../../snippets/multiple-content-html.md' -import MULTIPLE_CONTENT_JS from '../../snippets/multiple-content-js.md' import SET_DEFAULTS from '../../snippets/set-defaults.md' import Section from '../components/Section' @@ -63,15 +61,6 @@ export default () => ( </Tippy> </ResultBox> - <p> - Using <code>data-tippy-content</code> therefore allows you to use the - function for common custom configuration while giving each tooltip - different content. - </p> - - <Code content={MULTIPLE_CONTENT_HTML} /> - <Code content={MULTIPLE_CONTENT_JS} /> - <Subheading>Default config</Subheading> <p> Use the <code>tippy.setDefaults()</code> method to change the default
7
diff --git a/src/lime/system/Clipboard.hx b/src/lime/system/Clipboard.hx @@ -52,16 +52,20 @@ class Clipboard // Get & Set Methods private static function get_text():String { - // Native clipboard calls __update when clipboard changes + // Native clipboard (except Xorg) calls __update when clipboard changes. #if (flash || js || html5) __update(); #elseif linux - // Hack: SDL won't start calling __update until set_text() - // is called once. + // Xorg won't call __update until we call set_text at least once. + // Details: SDL_x11clipboard.c calls X11_XSetSelectionOwner, + // registering this app to receive clipboard events. if (_text == null) { __update(); + + // Call set_text while changing as little as possible. (Rich text + // formatting will unavoidably be lost.) set_text(_text); } #end
7
diff --git a/appjs/working.js b/appjs/working.js @@ -448,6 +448,12 @@ $(document).ready(function () { clearall(); }); + $("#segcal").click(function () { + openit("#segcals"); + closenav(); + clearall(); + }); + $("#skew").click(function () { openit("#skews"); closenav();
1
diff --git a/lib/reducers/cosmosV0-reducers.js b/lib/reducers/cosmosV0-reducers.js @@ -563,7 +563,7 @@ function transactionReducerV2(transaction, reducers, stakingDenom) { ? transaction.logs[index].success || false : false, log: transaction.logs - ? transaction.logs[index].log + ? transaction.logs[index] && transaction.logs[index].log ? transaction.logs[index].log : transaction.logs[0] // failing txs show the first logs ? transaction.logs[0].log
1
diff --git a/src/traces/surface/index.js b/src/traces/surface/index.js @@ -21,7 +21,7 @@ module.exports = { moduleType: 'trace', name: 'surface', basePlotModule: require('../../plots/gl3d'), - categories: ['gl3d', '2dMap', 'noOpacity'], + categories: ['gl3d', '2dMap'], meta: { description: [ 'The data the describes the coordinates of the surface is set in `z`.',
2
diff --git a/demo/site-map.js b/demo/site-map.js @@ -55,7 +55,7 @@ export default new SiteMapHelper({ items: { 'rails-part-1:-hello-world': `${tutorialsPath}/carbon-rails/hello-world.md`, 'rails-part-2:-introducing-data': `${tutorialsPath}/carbon-rails/introducing-data.md`, - 'rails-part-2:-updating-data': `${tutorialsPath}/carbon-rails/updating-data.md` + 'rails-part-3:-updating-data': `${tutorialsPath}/carbon-rails/updating-data.md` } } });
10
diff --git a/.vscode/settings.json b/.vscode/settings.json { - "phpserver.relativePath": "public" + "phpserver.relativePath": "public", + "editor.formatOnType": true, + "editor.formatOnPaste": true, + "editor.formatOnSave": true, + "javascript.format.placeOpenBraceOnNewLineForControlBlocks": true, + "javascript.format.placeOpenBraceOnNewLineForFunctions": true, + "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "javascript.preferences.quoteStyle": "double" }
0
diff --git a/assets/js/googlesitekit/widgets/components/widget-area.js b/assets/js/googlesitekit/widgets/components/widget-area.js @@ -45,12 +45,7 @@ const WidgetArea = ( { area } ) => { 'mdc-layout-grid__cell--span-8-tablet', 'mdc-layout-grid__cell--span-4-phone', ) }> - { /* - Disabled legitimately, because these icons don't have appropriate - alt-text and should only be used decoratively. - */ } - { /* eslint-disable-next-line jsx-a11y/alt-text */ } - <img src={ widgetArea.icon } /> + <img alt="" src={ widgetArea.icon } /> { widgetArea.title && <h3 className={ classnames( 'googlesitekit-heading-3',
4
diff --git a/token-metadata/0xf7D1f35518950E78c18E5A442097cA07962f4D8A/metadata.json b/token-metadata/0xf7D1f35518950E78c18E5A442097cA07962f4D8A/metadata.json "symbol": "OSPVS", "address": "0xf7D1f35518950E78c18E5A442097cA07962f4D8A", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/cravat/cravat.py b/cravat/cravat.py @@ -197,7 +197,7 @@ class Cravat (object): rtime = time.time() - stime print('converter finished in', rtime) if self.args.ec: - exit() + return if self.args.sm == False and \ ( self.runlevel <= self.runlevels['mapper'] or @@ -210,7 +210,7 @@ class Cravat (object): rtime = time.time() - stime print('gene mapper finished in', rtime) if self.args.em: - exit() + return if self.args.sa == False and \ ( self.runlevel <= self.runlevels['annotator'] or @@ -222,7 +222,7 @@ class Cravat (object): rtime = time.time() - stime print('anntator(s) finished in', rtime) if self.args.ea: - exit() + return if self.args.sg == False and \ ( self.runlevel <= self.runlevels['aggregator'] or
14
diff --git a/articles/libraries/lock/v10/customization.md b/articles/libraries/lock/v10/customization.md @@ -58,6 +58,7 @@ var lock = new Auth0Lock('clientID', 'account.auth0.com', options); | [responseMode](#responsemode-string-) | Option to send response as POST | | [responseType](#responsetype-string-) | Response as a code or token | | [sso](#sso-boolean-) | Whether or not to enable Single Sign On behavior in Lock | +| [oidcConformant](#oidcconformant-boolean-) | Whether or not to use OIDC Conformant mode | ### Database Options @@ -550,6 +551,22 @@ var options = { }; ``` +#### oidcConformant {Boolean} + +It is strongly recommended that Lock be used in OIDC Conformant mode when embedding it directly in your application. When this mode is enabled, it will force Lock to use Auth0's current authentication pipeline and will prevent it from reaching legacy endpoints. This mode is **not** required when using Lock at Auth0's [hosted login page](/hosted-pages/login). + +To enable OIDC conformant mode, pass a flag in the options object. + +```js +var options = { + oidcConformant: true +} +``` + +Using OIDC Conformant mode in Lock necessitates a cross-origin authentication flow which makes use of third party cookies to process the authentication transaction securely. Ensure that **Cross-Origin Authentication** is enabled by switching it on in the [settings](${manage_url}/#/applications/${account.clientId}/settings) for your client in the Auth0 dashboard. + +For more information, please see the [OIDC adoption guide](/api-auth/tutorials/adoption) and the [cross-origin authentication documentation](/cross-origin-authentication). + ## Database Options ### additionalSignUpFields {Array}
0
diff --git a/src/map/Map.js b/src/map/Map.js @@ -35,14 +35,14 @@ import SpatialReference from './spatial-reference/SpatialReference'; * @property {Boolean} [options.enableInfoWindow=true] - whether to enable infowindow on this map. * @property {Boolean} [options.hitDetect=true] - whether to enable hit detecting of layers for cursor style on this map, disable it to improve performance. * @property {Boolean} [options.hitDetectLimit=5] - the maximum number of layers to perform hit detect. - * @property {Boolean} [options.fpsOnInteracting=40] - fps when map is interacting. + * @property {Boolean} [options.fpsOnInteracting=0] - fps when map is interacting. * @property {Boolean} [options.layerCanvasLimitOnInteracting=-1] - limit of layer canvas to draw on map when interacting, set it to improve perf. * @property {Number} [options.maxZoom=null] - the maximum zoom the map can be zooming to. * @property {Number} [options.minZoom=null] - the minimum zoom the map can be zooming to. * @property {Extent} [options.maxExtent=null] - when maxExtent is set, map will be restricted to the give max extent and bouncing back when user trying to pan ouside the extent. * * @property {Number} [options.maxPitch=80] - max pitch - * @property {Number} [options.maxVisualPitch=60] - the max pitch to be visual + * @property {Number} [options.maxVisualPitch=65] - the max pitch to be visual * * @property {Extent} [options.viewHistory=true] - whether to record view history * @property {Extent} [options.viewHistoryCount=10] - the count of view history record. @@ -67,7 +67,7 @@ import SpatialReference from './spatial-reference/SpatialReference'; * @instance */ const options = { - 'maxVisualPitch' : 60, + 'maxVisualPitch' : 65, 'maxPitch' : 80, 'centerCross': false, @@ -97,7 +97,7 @@ const options = { 'hitDetectLimit' : 5, - 'fpsOnInteracting' : 40, + 'fpsOnInteracting' : 0, 'layerCanvasLimitOnInteracting' : -1,
3
diff --git a/userscript.user.js b/userscript.user.js @@ -52556,6 +52556,12 @@ var $$IMU_EXPORT$$; .replace(/(\/images\/+gamegraphics\/+[0-9]+\/+)thumbnail([0-9]+\.[^/.]+)(?:[?#].*)?$/, "$1screenshot$2") } + if (domain_nowww === "kino-teatr.ua") { + // https://kino-teatr.ua/public/main/persons/x2_photo_586dedfd79e22.jpg + // https://kino-teatr.ua/public/main/persons/photo_586dedfd79e22.jpg + return src.replace(/(\/public\/+main\/+[^/]+\/+)x[0-9]*_(photo_)/, "$1$2"); + } + @@ -58184,7 +58190,7 @@ var $$IMU_EXPORT$$; return styles_array.join("; "); } - function apply_styles(el, str) { + function apply_styles(el, str, force_important) { var styles = get_processed_styles(str); if (!styles) return; @@ -58202,7 +58208,7 @@ var $$IMU_EXPORT$$; value = value.replace(/^["'](.*)["']$/, "$1"); } - if (obj.important) { + if (obj.important || force_important) { el.style.setProperty(property, value, "important"); } else { el.style.setProperty(property, value); @@ -58391,13 +58397,13 @@ var $$IMU_EXPORT$$; var div = document.createElement("div"); var popupshown = false; set_el_all_initial(div); - div.style.boxShadow = "0 0 15px " + shadowcolor; - div.style.border = "3px solid " + fgcolor; - div.style.position = "relative"; - div.style.top = "0px"; - div.style.left = "0px"; - div.style.display = "block"; - div.style.backgroundColor = "rgba(255,255,255,.5)"; + set_important_style(div, "box-shadow", "0 0 15px " + shadowcolor); + set_important_style(div, "border", "3px solid " + fgcolor); + set_important_style(div, "position", "relative"); + set_important_style(div, "top", "0px"); + set_important_style(div, "left", "0px"); + set_important_style(div, "display", "block"); + set_important_style(div, "background-color", "rgba(255,255,255,.5)"); /*var styles = settings.mouseover_styles.replace("\n", ";"); div.setAttribute("style", styles); @@ -58410,7 +58416,7 @@ var $$IMU_EXPORT$$; div.style.border = "3px solid white"; }*/ - apply_styles(div, settings.mouseover_styles); + apply_styles(div, settings.mouseover_styles, true); outerdiv.appendChild(div); //div.style.position = "fixed"; // instagram has top: -...px @@ -58785,7 +58791,7 @@ var $$IMU_EXPORT$$; //btn.style.whiteSpace = "nowrap"; set_important_style(btn, "font-size", "14px"); set_important_style(btn, "font-family", sans_serif_font); - apply_styles(btn, settings.mouseover_ui_styles); + apply_styles(btn, settings.mouseover_ui_styles, true); set_important_style(btn, "z-index", maxzindex - 1); if (!istop) {
12
diff --git a/src/components/dashboard/FeedModalList.js b/src/components/dashboard/FeedModalList.js @@ -4,7 +4,6 @@ import { FlatList, View } from 'react-native' import { Portal } from 'react-native-paper' import { withStyles } from '../../lib/styles' import { getScreenWidth } from '../../lib/utils/Orientation' -import { Indicator } from '../common/view/LoadingIndicator' import FeedModalItem from './FeedItems/FeedModalItem' const VIEWABILITY_CONFIG = { @@ -86,7 +85,6 @@ const FeedModalList = ({ const feeds = data && data instanceof Array && data.length ? data : undefined return ( <Portal> - <Indicator loading={loading} /> <View style={[styles.horizontalContainer, { opacity: loading ? 0 : 1 }]}> <FlatList onScroll={({ nativeEvent }) => {
2
diff --git a/rollup.config.js b/rollup.config.js @@ -5,7 +5,7 @@ export default [ { input: 'index.js', output: { - file: 'build/d3-graphviz.cjs', + file: 'build/d3-graphviz.js', format: 'umd', name: 'd3-graphviz', sourcemap: true,
13
diff --git a/README.md b/README.md @@ -17,7 +17,6 @@ Welcome to the Netlify CLI! The new 2.0 version was rebuilt from the ground up t * [init](#init) * [link](#link) * [login](#login) - * [logout](#logout) * [open](#open) * [sites](#sites) * [status](#status) @@ -62,10 +61,6 @@ Link a local repo or project folder to an existing site on Netlify Login to your Netlify account -### [logout](/docs/logout.md) - -Logout of your Netlify account - ### [open](/docs/open.md) Open settings for the site linked to the current folder
2
diff --git a/planet.js b/planet.js @@ -757,10 +757,10 @@ planet.update = () => { rigManager.update(); }; -planet.connect = async (rn, {online = true} = {}) => { +planet.connect = async (rn, url, {online = true} = {}) => { roomName = rn; if (online) { - await _connectRoom(roomName); + await _connectRoom(roomName, url); } else { await _loadStorage(roomName); await _loadLiveState(roomName); @@ -793,14 +793,15 @@ window.addEventListener('load', () => { channelConnection.close(); channelConnectionOpen = false; } else { - const response = fetch(`${worldsHost}/create`, { + const response = await fetch(`${worldsHost}/create`, { method: 'POST' }) if (response.ok) { const json = await response.json(); + console.log(json) worldMeta.url = json.url; worldMeta.id = json.id; - planet.connect('lol', worldMeta.url); + planet.connect('lol', json.url); button.innerHTML = ` <i class="fal fa-wifi-slash"></i> <div class=label>Disconnect</div>
0
diff --git a/modules/Collections/views/entry.php b/modules/Collections/views/entry.php if (this.languages.length) { this.lang = App.session.get('collections.entry.'+this.collection._id+'.lang', ''); + if (typeof window.URLSearchParams === 'function') { + var langParam = new URLSearchParams(document.location.search.substring(1)).get("lang"); + if (langParam) this.lang = langParam; + } } // fill with default values
12
diff --git a/src/components/general/map-gen/MapGen.jsx b/src/components/general/map-gen/MapGen.jsx @@ -343,6 +343,7 @@ export const MapGen = ({ const [camera, setCamera] = useState(() => new THREE.OrthographicCamera()); const [chunks, setChunks] = useState([]); const [hoveredObject, setHoveredObject] = useState(null); + const [selectedChunk, setSelectedChunk] = useState(null); const [selectedObject, setSelectedObject] = useState(null); const [lastSelectTime, setLastSelectTime] = useState(-Infinity); const [chunkCache, setChunkCache] = useState(new Map()); @@ -406,11 +407,17 @@ export const MapGen = ({ const timeDiff = now - lastSelectTime; const newSelectedObject = (selectedObject === hoveredObject && timeDiff > 200) ? null : hoveredObject; + let selectedChunk = null; for (const chunk of chunks) { - chunk.setSelected(chunk === newSelectedObject); + const selected = chunk === newSelectedObject; + chunk.setSelected(selected); + if (selected) { + selectedChunk = chunk; + } } setSelectedObject(newSelectedObject); + setSelectedChunk(selectedChunk); setLastSelectTime(now); }; @@ -655,6 +662,11 @@ export const MapGen = ({ <div className={classnames(styles.sidebar, selectedObject ? styles.open : null)}> <h1>{selectedObjectName}</h1> <hr /> + {selectedChunk ? ( + <div className={styles.description}> + Location: {selectedChunk.x}:{selectedChunk.y} + </div> + ) : null} <div className={styles.buttons}> <button className={styles.button} onClick={goClick}> Go
0
diff --git a/components/system/components/Loaders.js b/components/system/components/Loaders.js @@ -223,10 +223,6 @@ const STYLES_LOADER_SPINNER = css` border: 2px solid ${Constants.system.brand}; border-radius: 50%; border-top-color: ${Constants.system.foreground}; - border-top-color: ${Constants.system.foreground}; - border-right: 2px solid ${Constants.system.brand}; - border-bottom: 2px solid ${Constants.system.brand}; - border-left: 2px solid ${Constants.system.brand}; animation: slate-client-animation-spin 1s ease-in-out infinite; @keyframes slate-client-animation-spin {
2
diff --git a/index.css b/index.css @@ -447,6 +447,10 @@ img:not([src]) { font-size: inherit; } +.body { + background-color: var(--color2); +} + body:not(.loading) .loader, body.loading .grid, body.loading .pagination @@ -454,8 +458,12 @@ body.loading .pagination display: none; } -.body { - background-color: var(--color2); +body.iframed header, +body.iframed footer, +body.iframed .menu, +body.iframed .unmenu +{ + display: none; } .hero, .detail {
0
diff --git a/test/Output.test.js b/test/Output.test.js @@ -281,7 +281,7 @@ describe("Output Object", function() { if (JSON.stringify(message) == JSON.stringify([144, 64, 64])) { - expect(WebMidi.time - sent).to.be.within(0, 5); + expect(WebMidi.time - sent).to.be.within(0, 10); index++; if (index === timestamps.length) {
11
diff --git a/README.md b/README.md @@ -8,7 +8,7 @@ Contributing If you want to help improve an existing API script, just clone this repository, make your changes, and submit a pull request. If you would like to contribute a new script for the community to use, just clone this repository and create a new folder with the name of the script which matches the name in your script.json file. Optionally you can add a help.txt file with any instructions you want to include as well as any other files you feel will be helpful to the end user. Once everything is in the new folder send a pull request. If you have any questions or aren't familiar with Github or git in general, see [Beginner's Guide to GitHub](https://wiki.roll20.net/Beginner%27s_Guide_to_GitHub) on the wiki. If you still need help, feel free to drop us a line at [email protected] or post a question on the forums and we can help you get set up. -**Creating a script.json File** +### Creating a script.json File When you are ready to submit your script for **public use**, create a `script.json` file in your script's folder (see the "_Example Script" folder in the root folder for an example). The file has the following fields: @@ -26,8 +26,17 @@ When you are ready to submit your script for **public use**, create a `script.js * `modifies`: A list of the common Roll20 objects and properties the script reads and writes to. Custom objects and properties inside a namespace don't need to be included. (e.g. `bar1_value: write`) * `conflicts`: A list of other API scripts this script is known to conflict with (e.g. `Recipes`) -**PLEASE VERIFY YOUR SCRIPT.JSON IS VALID JSON at http://jsonlint.com before you submit it!** +### Validating script.json +As of January 29, 2021, pull requests must pass validation of the `script.json` file for any changed scripts, +which will be done using the included [`script.json.schema`](script.json.schema) file. This is a +[JSON Schema](https://json-schema.org/) file that describes what is and is not allowed in the `script.json` file. Any +JSON Schema validator that supports Draft-04 or higher should work to help you validate during development/before making +your pull request. +If you want a web-based JSON Schema validator, [this one](https://www.jsonschemavalidator.net/) works well. Paste +the schema on the left, your `script.json` on the right. + +### Post-validation After we have reviewed your script and approve it, we will merge in your changes which will make them available to everyone. If we reject your script, we will comment on your Github commit and let you know what changes need to be made before it can be accepted. Update the Wiki
3
diff --git a/imports/services/isEditedService.js b/imports/services/isEditedService.js @@ -7,7 +7,7 @@ import { MeetingSeriesSchema } from '../collections/meetingseries.schema'; import { MeetingSeries } from '../meetingseries'; import {Topic} from '../topic'; -function setIsEditedMS(msId) { +function setIsEditedMeetingSerie(msId) { let ms = new MeetingSeries(msId); ms.isEditedBy = Meteor.userId(); @@ -16,7 +16,7 @@ function setIsEditedMS(msId) { ms.save(); } -function removeIsEditedMS(msId, ignoreLock) { +function removeIsEditedMeetingSerie(msId, ignoreLock) { let unset = false; let ms = new MeetingSeries(msId); @@ -36,7 +36,7 @@ function removeIsEditedMS(msId, ignoreLock) { } } -function removeIsEditedMin(minuteId, ignoreLock) { +function removeIsEditedMinute(minuteId, ignoreLock) { let minute = new Minutes(minuteId); for (let topic of minute.topics) { if (ignoreLock === true) { @@ -78,7 +78,7 @@ function removeIsEditedMin(minuteId, ignoreLock) { minute.save(); } -function setIsEditedTop(minutesId, topicId) { +function setIsEditedTopic(minutesId, topicId) { let topic = new Topic(minutesId, topicId); topic._topicDoc.isEditedBy = Meteor.userId(); @@ -87,7 +87,7 @@ function setIsEditedTop(minutesId, topicId) { topic.save(); } -function removeIsEditedTop(minutesId, topicId, ignoreLock) { +function removeIsEditedTopic(minutesId, topicId, ignoreLock) { let unset = false; let topic = new Topic(minutesId, topicId); @@ -108,7 +108,7 @@ function removeIsEditedTop(minutesId, topicId, ignoreLock) { } -function setIsEditedII(minutesId, topicId, infoItemId) { +function setIsEditedInfoItem(minutesId, topicId, infoItemId) { let topic = new Topic(minutesId, topicId); let infoItem = topic.findInfoItem(infoItemId); @@ -118,7 +118,7 @@ function setIsEditedII(minutesId, topicId, infoItemId) { infoItem.save(); } -function removeIsEditedII(minutesId, topicId, infoItemId, ignoreLock) { +function removeIsEditedInfoItem(minutesId, topicId, infoItemId, ignoreLock) { let unset = false; let topic = new Topic(minutesId, topicId); let infoItem = topic.findInfoItem(infoItemId); @@ -141,7 +141,7 @@ function removeIsEditedII(minutesId, topicId, infoItemId, ignoreLock) { } -function setIsEditedDet(minutesId, topicId, infoItemId, detailIdx) { +function setIsEditedDetail(minutesId, topicId, infoItemId, detailIdx) { let topic = new Topic(minutesId, topicId); let infoItem = topic.findInfoItem(infoItemId); @@ -151,7 +151,7 @@ function setIsEditedDet(minutesId, topicId, infoItemId, detailIdx) { infoItem.save(); } -function removeIsEditedDet(minutesId, topicId, infoItemId, detailIdx, ignoreLock) { +function removeIsEditedDetail(minutesId, topicId, infoItemId, detailIdx, ignoreLock) { let unset = false; let topic = new Topic(minutesId, topicId); let infoItem = topic.findInfoItem(infoItemId); @@ -177,39 +177,39 @@ function removeIsEditedDet(minutesId, topicId, infoItemId, detailIdx, ignoreLock Meteor.methods({ 'workflow.setIsEditedMeetingSerie'(msId) { - setIsEditedMS(msId); + setIsEditedMeetingSerie(msId); }, 'workflow.removeIsEditedMeetingSerie'(msId, ignoreLock) { - removeIsEditedMS(msId, ignoreLock); + removeIsEditedMeetingSerie(msId, ignoreLock); }, 'workflow.removeIsEditedMinute'(minuteId, ignoreLock) { - removeIsEditedMin(minuteId, ignoreLock); + removeIsEditedMinute(minuteId, ignoreLock); }, 'workflow.setIsEditedTopic'(minutesId, topicId) { - setIsEditedTop(minutesId, topicId); + setIsEditedTopic(minutesId, topicId); }, 'workflow.removeIsEditedTopic'(minutesId, topicId, ignoreLock) { - removeIsEditedTop(minutesId, topicId, ignoreLock); + removeIsEditedTopic(minutesId, topicId, ignoreLock); }, 'workflow.setIsEditedInfoItem'(minutesId, topicId, infoItemId) { - setIsEditedII(minutesId, topicId, infoItemId); + setIsEditedInfoItem(minutesId, topicId, infoItemId); }, 'workflow.removeIsEditedInfoItem'(minutesId, topicId, infoItemId, ignoreLock) { - removeIsEditedII(minutesId, topicId, infoItemId, ignoreLock); + removeIsEditedInfoItem(minutesId, topicId, infoItemId, ignoreLock); }, 'workflow.setIsEditedDetail'(minutesId, topicId, infoItemId, detailIdx) { - setIsEditedDet(minutesId, topicId, infoItemId, detailIdx); + setIsEditedDetail(minutesId, topicId, infoItemId, detailIdx); }, 'workflow.removeIsEditedDetail'(minutesId, topicId, infoItemId, detailIdx, ignoreLock) { - removeIsEditedDet(minutesId, topicId, infoItemId, detailIdx, ignoreLock); + removeIsEditedDetail(minutesId, topicId, infoItemId, detailIdx, ignoreLock); } });
10
diff --git a/lib/components/map/connected-transit-vehicle-overlay.js b/lib/components/map/connected-transit-vehicle-overlay.js @@ -54,7 +54,7 @@ function VehicleTooltip (props) { </span> {/* TODO: localize MPH? */} {vehicle?.speed > 0 && <div>travelling at {vehicle.speed} Mph</div>} - {vehicle?.nextStop && <div>{stopStatusString} {vehicle.nextStop.name}</div>} + {vehicle?.nextStop && <div>{stopStatusString} {vehicle.nextStop}</div>} </Tooltip> ) }
13
diff --git a/webpack.config.js b/webpack.config.js @@ -36,7 +36,7 @@ module.exports = { disableHostCheck: true, historyApiFallback: true, headers: { - "Content-Security-Policy-Report-Only": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src *; img-src *" + "Content-Security-Policy-Report-Only": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src *; img-src *; frame-src 'self' https://www.youtube.com" }, proxy: { '/api/**': {
11
diff --git a/_data/conferences.yml b/_data/conferences.yml date: June 8-11, 2020 place: Dublin, Ireland sub: CV - note: '<b>NOTE</b>: Deadline to be confirmed.' - title: IJCAI-PRICAI year: 2020 year: 2020 id: eccv20 link: https://eccv2020.eu - deadline: '2020-03-15 07:00:00' + deadline: '2020-03-05 07:00:00' timezone: Europe/London date: August 23-28, 2020 place: Glasgow, Scotland, UK
3
diff --git a/local_modules/MainWindow/Views/index.browser.html b/local_modules/MainWindow/Views/index.browser.html <meta http-equiv="Content-Security-Policy" content="default-src * data: gap: blob: https://ssl.gstatic.com http://localhost 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; - script-src 'self' https://www.google-analytics.com/analytics.js https://widget.intercom.io/widget/hi3rzlw0 https://widget.intercom.io/widget/qa83i5n9 https://js.intercomcdn.com 'unsafe-inline' 'unsafe-eval'; + script-src 'self' https://www.google-analytics.com/analytics.js https://widget.intercom.io/widget/hi3rzlw0 https://widget.intercom.io/widget/qa83i5n9 https://js.intercomcdn.com 'unsafe-inline'; object-src 'none'; font-src 'self' https://js.intercomcdn.com/fonts/; img-src 'self' data: https://downloads.intercomcdn.com/i/o/ https://js.intercomcdn.com/images/ https://static.intercomassets.com/;
2
diff --git a/articles/tokens/refresh-token.md b/articles/tokens/refresh-token.md @@ -35,32 +35,45 @@ Another safeguard is that the API should allow offline access. This is configure To get a refresh token, you must include the `offline_access` [scope](/scopes) when you initiate an authentication request through the [authorize](/api/authentication/reference#authorize-client) endpoint. -For example: - -``` -GET https://${account.namespace}/authorize/? - response_type=token - &audience=YOUR_API_IDENTIFIER - &client_id=${account.clientId} - &redirect_uri=${account.callback} - &state=VALUE_THAT_SURVIVES_REDIRECTS - &scope=openid%20offline_access +For example, if you are using [Authorization Code Grant](/api-auth/grant/authorization-code), the authentication request would look like the following: + +```text +https://${account.namespace}/authorize? + audience={API_AUDIENCE}& + scope=offline_access& + response_type=code& + client_id=${account.clientId}& + redirect_uri=${account.callback}& + state={OPAQUE_VALUE} ``` -Once the user authenticates successfully, the client will be redirected to the `callback_URL`. -The complete URL will be as follows: +Once the user authenticates successfully, the client will be redirected to the `redirect_uri`, with a `code` as part of the URL: `${account.callback}?code=BPPLN3Z4qCTvSNOy`. You can exchange this code with an access token using the `/oauth/token` endpoint. +```har +{ + "method": "POST", + "url": "https://${account.namespace}/oauth/token", + "headers": [ + { "name": "Content-Type", "value": "application/json" } + ], + "postData": { + "mimeType": "application/json", + "text": "{\"grant_type\":\"authorization_code\",\"client_id\": \"${account.clientId}\",\"client_secret\": \"${account.clientSecret}\",\"code\": \"YOUR_AUTHORIZATION_CODE\",\"redirect_uri\": \"${account.callback}\"}" + } +} ``` -GET ${account.callback}# - access_token=2nF...WpA - &id_token=eyJhb... - &state=VALUE_THAT_SURVIVES_REDIRECTS - &refresh_token=Cqp...Mwe -``` -The refresh token (an opaque string) is part of the URL. You should store it securely and use it only when needed. +The response should contain an access token and a refresh token. + +```text +{ + "access_token": "eyJz93a...k4laUWw", + "refresh_token": "GEbRxBN...edjnXbL", + "token_type": "Bearer" +} +``` -**NOTE**: In this example, the token was returned to the client in the URL because the [implicit grant](/api-auth/grant/implicit) (`response_type=token`) was used. +For more information on how to implement this using Authorization Code Grant refer to [Execute an Authorization Code Grant Flow](/api-auth/tutorials/authorization-code-grant). For other grants refer to [API Authorization](/api-auth). ::: panel-info Troubleshooting If the response did not include a refresh token, check that you comply with the [Restrictions](#restrictions) listed in this document.
14
diff --git a/app/screens/onboarding/slide.tsx b/app/screens/onboarding/slide.tsx @@ -59,17 +59,17 @@ const SlideItem = ({theme, item, scrollX, index}: Props) => { const translateImage = scrollX.interpolate({ inputRange, - outputRange: [width * 0.7, 1, -width * 0.7], + outputRange: [width * 2, 0, -width * 2], }); const translateTitle = scrollX.interpolate({ inputRange, - outputRange: [width * 0.5, 1, -width * 0.5], + outputRange: [width * 0.6, 0, -width * 0.6], }); const translateDescription = scrollX.interpolate({ inputRange, - outputRange: [width * 0.3, 1, -width * 0.3], + outputRange: [width * 0.2, 0, -width * 0.2], }); return (
7
diff --git a/src/sdk/conference/conference.js b/src/sdk/conference/conference.js <ul> <li>resolution: An object has width and height. Both width and height are number.</li> <li>qualityLevel: A string which is one of these values "BestQuality", "BetterQuality", "Standard", "BetterSpeed", "BestSpeed". It does not change resolution, but better quality leads to higher bitrate.</li> - <li>bitrateMultipiler: A number for expected bitrate multiplier. You can find valid bitrate multipliers by calling <code>mediaInfo()</code>. If <code>bitrateMultipiler</code> is specified, <code>qualityLevel</code> will be ignored.</li> + <li>bitrateMultiplier: A number for expected bitrate multiplier. You can find valid bitrate multipliers by calling <code>mediaInfo()</code>. If <code>bitrateMultiplier</code> is specified, <code>qualityLevel</code> will be ignored.</li> <li>frameRate: A number for expected frame rate.</li> <li>keyFrameInterval: A number for expected interval of key frames. Unit: second.</li> * @param {function} onSuccess(stream) (optional) Success callback. videoOptions.parameters = videoOptions.parameters || {}; videoOptions.parameters.keyFrameInterval = options.video.keyFrameInterval; } - if (options.video.bitrateMultipiler) { + if (options.video.bitrateMultiplier) { videoOptions.parameters = videoOptions.parameters || {}; - videoOptions.parameters.bitrate = 'x' + options.video.bitrateMultipiler + videoOptions.parameters.bitrate = 'x' + options.video.bitrateMultiplier .toString(); } }
1
diff --git a/src/components/general/character-select/CharacterSelect.jsx b/src/components/general/character-select/CharacterSelect.jsx @@ -36,6 +36,9 @@ const characters = { class: 'Drop Hunter', bio: `Her nickname is Scilly or SLY. 13/F drop hunter. She is an adventurer, swordfighter and fan of potions. She is exceptionally skilled and can go Super Saiyan.`, themeSongUrl: `https://webaverse.github.io/music/themes/149274046-smooth-adventure-quest.mp3`, + // "Scilly is short for "Saga Cybernetic Lifeform Interface" or SLY. It's a complicated name, but it means I'm the best at what I do: Collecting data from living organisms and machines to help my development.)" + // "She's not like other girls. She doesn't spend her time talking about boys, or clothes, or anything else that isn't important. No, she spends her time adventuring, swordfighting and looking for new and interesting potions to try." + // "I'm not saying I don't like boys, but they're just not as interesting as swords." detached: true, }, {
0
diff --git a/closure/goog/testing/mockmatchers.js b/closure/goog/testing/mockmatchers.js @@ -267,7 +267,7 @@ goog.testing.mockmatchers.SaveArgument.prototype.arg; /** * An instance of the IgnoreArgument matcher. Returns true for all matches. - * @type {goog.testing.mockmatchers.IgnoreArgument} + * @type {!goog.testing.mockmatchers.IgnoreArgument} */ goog.testing.mockmatchers.ignoreArgument = new goog.testing.mockmatchers.IgnoreArgument(); @@ -275,7 +275,7 @@ goog.testing.mockmatchers.ignoreArgument = /** * A matcher that verifies that an argument is an array. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isArray = new goog.testing.mockmatchers.ArgumentMatcher(goog.isArray, 'isArray'); @@ -284,7 +284,7 @@ goog.testing.mockmatchers.isArray = /** * A matcher that verifies that an argument is a array-like. A NodeList is an * example of a collection that is very close to an array. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isArrayLike = new goog.testing.mockmatchers.ArgumentMatcher( @@ -293,7 +293,7 @@ goog.testing.mockmatchers.isArrayLike = /** * A matcher that verifies that an argument is a date-like. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isDateLike = new goog.testing.mockmatchers.ArgumentMatcher( @@ -302,7 +302,7 @@ goog.testing.mockmatchers.isDateLike = /** * A matcher that verifies that an argument is a string. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isString = new goog.testing.mockmatchers.ArgumentMatcher(goog.isString, 'isString'); @@ -310,7 +310,7 @@ goog.testing.mockmatchers.isString = /** * A matcher that verifies that an argument is a boolean. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isBoolean = new goog.testing.mockmatchers.ArgumentMatcher(goog.isBoolean, 'isBoolean'); @@ -318,7 +318,7 @@ goog.testing.mockmatchers.isBoolean = /** * A matcher that verifies that an argument is a number. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isNumber = new goog.testing.mockmatchers.ArgumentMatcher(goog.isNumber, 'isNumber'); @@ -326,7 +326,7 @@ goog.testing.mockmatchers.isNumber = /** * A matcher that verifies that an argument is a function. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isFunction = new goog.testing.mockmatchers.ArgumentMatcher( @@ -335,7 +335,7 @@ goog.testing.mockmatchers.isFunction = /** * A matcher that verifies that an argument is an object. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isObject = new goog.testing.mockmatchers.ArgumentMatcher(goog.isObject, 'isObject'); @@ -343,7 +343,7 @@ goog.testing.mockmatchers.isObject = /** * A matcher that verifies that an argument is like a DOM node. - * @type {goog.testing.mockmatchers.ArgumentMatcher} + * @type {!goog.testing.mockmatchers.ArgumentMatcher} */ goog.testing.mockmatchers.isNodeLike = new goog.testing.mockmatchers.ArgumentMatcher(
1
diff --git a/package.json b/package.json ], "scripts": { "lint": "eslint lib test", - "prettier": "prettier --write \"{lib,test}/**/*.js\"", + "format": "prettier --write \"{lib,test}/**/*.js\"", "test": "tape -r babel-register -r ./test/util/setup test/*.js", "coverage": "nyc --reporter=lcov npm test" },
10
diff --git a/generators/server/templates/_build.gradle b/generators/server/templates/_build.gradle @@ -150,7 +150,7 @@ task integrationTest(type: Test) { check.dependsOn integrationTest <%_ if (cucumberTests) { _%> task cucumberTest(type: Test) { - description = "Execute cucumber behaviour tests." + description = "Execute cucumber BDD tests." group = "verification" include '**/CucumberTest*'
4
diff --git a/editor.js b/editor.js @@ -229,7 +229,7 @@ const _flipGeomeryUvs = geometry => { geometry.attributes.uv.array[j] = 1 - geometry.attributes.uv.array[j]; } }; -const _makeUiMesh = () => { +const _makeMouseUiMesh = () => { const geometry = new THREE.PlaneBufferGeometry(1, 1) .applyMatrix4( localMatrix.compose( @@ -362,6 +362,111 @@ const _makeUiMesh = () => { }); return m; }; +const _makeObjectUiMesh = object => { + const geometry = new THREE.PlaneBufferGeometry(1, 1) + .applyMatrix4( + localMatrix.compose( + localVector.set(1/2, 1/2, 0), + localQuaternion.set(0, 0, 0, 1), + localVector2.set(1, 1, 1), + ) + ); + _flipGeomeryUvs(geometry); + const material = new THREE.MeshBasicMaterial({ + color: 0xFFFFFF, + map: new THREE.Texture(), + side: THREE.DoubleSide, + transparent: true, + alphaTest: 0.5, + }); + const model = new THREE.Mesh(geometry, material); + model.frustumCulled = false; + + const m = new THREE.Object3D(); + m.add(model); + m.target = new THREE.Object3D(); + m.render = async ({ + name, + tokenId, + type, + hash, + description, + minterUsername, + ownerUsername, + minterAvatarUrl, + ownerAvatarUrl, + }) => { + const result = await htmlRenderer.renderPopup({ + name, + tokenId, + type, + hash, + description, + minterUsername, + ownerUsername, + imgUrl: testImgUrl, + minterAvatarUrl, + ownerAvatarUrl, + }); + // console.log('got result', result); + /* const img = await new Promise((accept, reject) => { + const img = new Image(); + img.crossOrigin = 'Anonymous'; + img.onload = () => { + accept(img); + }; + img.onerror = reject; + img.src = `/assets/popup.svg`; + }); */ + material.map.image = result; + material.map.minFilter = THREE.THREE.LinearMipmapLinearFilter; + material.map.magFilter = THREE.LinearFilter; + material.map.encoding = THREE.sRGBEncoding; + material.map.anisotropy = 16; + material.map.needsUpdate = true; + + model.scale.set(1, result.height/result.width, 1); + }; + // let animationSpec = null; + // let lastHoverObject = null; + m.update = () => { + m.position.copy(object.position) + // .add(camera.position); + localEuler.setFromQuaternion(camera.quaternion, 'YXZ'); + localEuler.x = 0; + localEuler.z = 0; + m.quaternion.setFromEuler(localEuler); + }; + + const name = 'shiva'; + const tokenId = 42; + const type = 'vrm'; + let hash = 'Qmej4c9FDJLTeSFhopvjF1f3KBi43xAk2j6v8jrzPQ4iRG'; + hash = hash.slice(0, 6) + '...' + hash.slice(-2); + const description = 'This is an awesome Synoptic on his first day in Webaverse This is an awesome Synoptic on his first day in Webaverse'; + const minterUsername = 'robo'; + const ownerUsername = 'sacks'; + const minterAvatarUrl = testUserImgUrl; + const ownerAvatarUrl = testUserImgUrl; + m.render({ + name, + tokenId, + type, + hash, + description, + minterUsername, + ownerUsername, + minterAvatarUrl, + ownerAvatarUrl, + }) + .then(() => { + console.log('rendered'); + }) + .catch(err => { + console.warn(err); + }); + return m; +}; const contextMenuOptions = [ 'Select', 'Possess', @@ -2304,10 +2409,10 @@ Promise.all([ cameraMesh.frustumCulled = false; scene.add(cameraMesh); - const uiMesh = _makeUiMesh(); - scene.add(uiMesh); + const mouseUiMesh = _makeMouseUiMesh(); + scene.add(mouseUiMesh); app.addEventListener('frame', () => { - uiMesh.update(); + mouseUiMesh.update(); }); renderer.domElement.addEventListener('mousemove', e => { _updateRaycasterFromMouseEvent(localRaycaster, e); @@ -2316,9 +2421,9 @@ Promise.all([ if (!intersection) { throw new Error('could not intersect in front of the camera; the math went wrong'); } - uiMesh.target.position.copy(intersection) + mouseUiMesh.target.position.copy(intersection) .sub(camera.position); - uiMesh.target.quaternion.setFromRotationMatrix( + mouseUiMesh.target.quaternion.setFromRotationMatrix( localMatrix.lookAt( localVector.set(0, 0, 0), localVector2.set(0, 0, -1).applyQuaternion(camera.quaternion), @@ -2327,7 +2432,19 @@ Promise.all([ ); }); - const contextMenuMesh = _makeContextMenuMesh(uiMesh); + const objectUiMeshes = []; + world.addEventListener('objectsadd', e => { + // console.log('got object add', e); + const object = e.data; + const objectUiMesh = _makeObjectUiMesh(object); + scene.add(objectUiMesh); + app.addEventListener('frame', () => { + objectUiMesh.update(); + }); + objectUiMeshes.push(objectUiMesh); + }); + + const contextMenuMesh = _makeContextMenuMesh(mouseUiMesh); scene.add(contextMenuMesh); app.addEventListener('frame', () => { contextMenuMesh.update();
0
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -1662,6 +1662,8 @@ class Avatar { this.flyTime = NaN; this.useTime = NaN; this.useAnimation = null; + this.useAnimationCombo = []; + this.useAnimationEnvelope = []; this.sitState = false; this.sitAnimation = null; // this.activateState = false;
0
diff --git a/bin/check.sh b/bin/check.sh @@ -50,6 +50,12 @@ list_decoders | while read dec; do continue fi + # Still working on finalizing the `url` decoder + if [ "$dec" = 'url' ]; then + echo "Ignoring \`url\` decoder... but please do document me later!" + continue + fi + echo "Decoder \"$dec\" is not documented in README?" >&2 exit 3 fi
8
diff --git a/imports/ui/templates/components/decision/coin/coin.html b/imports/ui/templates/components/decision/coin/coin.html </div> {{#if showAdvanced}} <div class="toggles"> - <div class="toggle-setting"> - <div class="toggle-label"> - {{_ 'voting-editor-poll-voting'}} - {{> help tooltip='voting-editor-poll-tooltip'}} - </div> - <div class="w-clearfix value"> - {{> toggle sessionContract="cachedDraft" rules="pollVoting" value=pollVoting}} - </div> - </div> - <div class="toggle-setting"> - <div class="toggle-label"> - {{_ 'voting-editor-balance-toggle'}} - {{> help tooltip='voting-editor-balance-tooltip'}} - </div> - <div class="w-clearfix value"> - {{> toggle sessionContract="cachedDraft" rules="balanceVoting" value=balanceVoting}} - </div> - </div> - <div class="toggle-setting"> - <div class="toggle-label"> - {{_ 'voting-editor-quadratic-toggle'}} - {{> help tooltip='voting-editor-quadratic-tooltip'}} - </div> - <div class="w-clearfix value"> - {{> toggle sessionContract="cachedDraft" rules="quadraticVoting" value=quadraticVoting}} - </div> - </div> + {{> setting label='voting-editor-poll-voting' tooltip='voting-editor-poll-tooltip' toggle=true sessionContract="cachedDraft" rules="pollVoting" value=pollVoting}} + {{> setting label='voting-editor-balance-toggle' tooltip='voting-editor-balance-tooltip' toggle=true sessionContract="cachedDraft" rules="balanceVoting" value=balanceVoting}} + {{> setting label='voting-editor-quadratic-toggle' tooltip='voting-editor-quadratic-tooltip' toggle=true sessionContract="cachedDraft" rules="quadraticVoting" value=quadraticVoting}} </div> {{/if}} <div class="dropdown-buttons"> {{/if}} </template> +<template name="setting"> + {{#if toggle}} + <div class="toggle-setting"> + <div class="toggle-label"> + {{_ label}} + {{> help tooltip=tooltip}} + </div> + <div class="w-clearfix value"> + {{> toggle sessionContract=sessionContract rules=rules value=value}} + </div> + </div> + {{/if}} +</template> +
12
diff --git a/overview.md b/overview.md @@ -53,7 +53,8 @@ also hold other containers (folders / catalogs). The Collection specification shares some fields with the catalog spec but has a number of additional fields: license, extent (spatial and temporal), providers, keywords and summaries. Every Item in a Collection links -back to their Collection, so clients can easily find fields like the license. +back to their Collection, so clients can easily find fields like the license. Thus every Item implicitly +shares the fields described in their parent Collection. But what *should* go in a Collection, versus just in a Catalog? A Collection will generally consist of a set of assets that are defined with the same properties and share higher level metadata. In the
0
diff --git a/lib/assets/javascripts/new-dashboard/pages/Maps.vue b/lib/assets/javascripts/new-dashboard/pages/Maps.vue <template> <section class="section"> <div class="maps-list-container container grid"> - <div class="grid-cell--col12"> + <div class=""> <SectionTitle class="grid-cell" title='Your Maps' description="This is a description test"> <template slot="icon"> <img src="../assets/icons/section-title/map.svg"> </template> </SectionTitle> - <InitialState :title="$t(`mapCard.zeroCase.title`)" v-if="!isFetchingMaps && numResults <= 0"> + <div class="grid-cell"> + <InitialState :title="$t(`mapCard.zeroCase.title`)" > <template slot="icon"> <img src="../assets/icons/maps/initialState.svg"> </template> <CreateButton visualizationType="maps">{{ $t(`mapCard.zeroCase.createMap`) }}</CreateButton> </template> </InitialState> + </div> <ul class="grid" v-if="isFetchingMaps"> <li class="grid-cell grid-cell--col4 grid-cell--col6--tablet grid-cell--col12--mobile" v-for="n in 12" :key="n">
3
diff --git a/spark/components/modals/react/SprkModal.stories.js b/spark/components/modals/react/SprkModal.stories.js @@ -11,8 +11,8 @@ export const defaultStory = () => ( <SprkModal title="Default Modal" isVisible={true} - confirmText="Yes please" - cancelText="No thank you" + confirmText="Confirm Text" + cancelText="Cancel Text" confirmClick={() => { alert('confirm'); }} @@ -20,7 +20,7 @@ export const defaultStory = () => ( alert('cancel click'); }} > - Would you like to buy a mortgage? + Default Modal Content </SprkModal> ); @@ -40,7 +40,7 @@ export const infoStory = () => ( alert('cancel click'); }} > - Your mortgage has been downloaded. + Info Modal Content </SprkModal> ); @@ -58,7 +58,7 @@ export const waitStory = () => ( isVisible={true} variant="wait" > - This mortgage can only be closed with javascript + Wait Modal Content </SprkModal> );
3
diff --git a/token-metadata/0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83/metadata.json b/token-metadata/0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83/metadata.json "symbol": "YFII", "address": "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/main/createTray.js b/src/main/createTray.js -import { app, Menu, Tray as ElectronTray } from 'electron'; +import { app, Menu, Tray } from 'electron'; import path from 'path'; export default window => { @@ -17,7 +17,7 @@ export default window => { } } - const tray = new ElectronTray(iconPath); + const tray = new Tray(iconPath); tray.on('double-click', () => { window.show();
10
diff --git a/src/Renderer/shaders/tonemapping.glsl b/src/Renderer/shaders/tonemapping.glsl @@ -42,7 +42,6 @@ vec4 sRGBToLinear(vec4 srgbIn) // see: https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/ vec3 toneMapACESFast(vec3 color) { - // TODO debate this factor color *= 0.6; const float A = 2.51; const float B = 0.03; @@ -74,8 +73,6 @@ vec3 toneMapACES(vec3 color) color = clamp(color, 0.0, 1.0); return color; - // TODO debate this factor - //return color * 1.8; } vec3 toneMap(vec3 color)
2
diff --git a/app/src/components/MeetingDrawer/Chat/Message.js b/app/src/components/MeetingDrawer/Chat/Message.js @@ -6,6 +6,7 @@ import DOMPurify from 'dompurify'; import marked from 'marked'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; +import { useIntl } from 'react-intl'; const linkRenderer = new marked.Renderer(); @@ -55,6 +56,8 @@ const styles = (theme) => const Message = (props) => { + const intl = useIntl(); + const { self, picture, @@ -88,7 +91,16 @@ const Message = (props) => } ) }} /> - <Typography variant='caption'>{self ? 'Me' : name} - {time}</Typography> + <Typography variant='caption'> + { self ? + intl.formatMessage({ + id : 'room.me', + defaultMessage : 'Me' + }) + : + name + } - {time} + </Typography> </div> </Paper> );
14
diff --git a/articles/libraries/auth0-swift/touchid-authentication.md b/articles/libraries/auth0-swift/touchid-authentication.md @@ -24,11 +24,22 @@ import Auth0 ### Credentials Manager -Setup the Credentials Manager and enable Touch ID authentication, you can pass the title to show in the Touch ID prompt: +Before retrieving credentials, you can also engage the biometric authentication supported by your device, such as Face ID or Touch ID. + +First, setup the Credentials Manager, then enable biometrics. You can also pass in a title to show in the prompt. ```swift let credentialsManager = CredentialsManager(authentication: Auth0.authentication()) -credentialsManager.enableTouchAuth(withTitle: "Touch to Authenticate") +credentialsManager.enableBiometrics(withTitle: "Touch ID / Face ID Login") +``` + +It is also strongly recommended that you add the [NSFaceIDUsageDescription](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW75) setting to your project's `Info.plist` in order to display a reason for using Face ID. In some cases, if a description string is not provided and Face ID authentication is attempted, the effort may fail. + +```swift +... +<key>NSFaceIDUsageDescription</key> +<string>Reason Why We Use Face ID Here</string> +... ``` ### Login @@ -54,7 +65,7 @@ Auth0 ### Renew User Credentials -When you need to renew the user's credentials you can call the `credentials` method from the Credentials Manager to take care of this. The user will be promoted for Touch ID. +When you need to renew the user's credentials you can call the `credentials` method from the Credentials Manager to take care of this. ```swift credentialsManager.credentials { error, credentials in @@ -70,4 +81,4 @@ There is no need manually store the new credentials as this is handled by the Cr ## Next Steps -You can download a sample project and follow the tutorial in our [Touch ID Authentication](/quickstart/native/ios-swift/08-touch-id-authentication) quickstart. +You can download a sample project and follow the tutorial in our [Biometric Authentication in iOS](/quickstart/native/ios-swift/08-touch-id-authentication) quickstart.
3
diff --git a/src/content/developers/tutorials/how-to-use-manticore-to-find-smart-contract-bugs/index.md b/src/content/developers/tutorials/how-to-use-manticore-to-find-smart-contract-bugs/index.md @@ -80,7 +80,7 @@ As `f()` contains two paths, a DSE will construct two differents path predicates - Path 1: `a == 65` - Path 2: `Not (a == 65)` -Each path predicate is a mathematical formula that can be given to a so-called [SMT solver](https://github.com/trailofbits/building-secure-contracts/blob/master/program-analysis/determine-properties.md), which will try to solve the equation. For `Path 1`, the solver will say that the path can be explored with `a = 65`. For `Path 2`, the solver can give `a` any value other than 65, for example `a = 0`. +Each path predicate is a mathematical formula that can be given to a so-called [SMT solver](https://wikipedia.org/wiki/Satisfiability_modulo_theories), which will try to solve the equation. For `Path 1`, the solver will say that the path can be explored with `a = 65`. For `Path 2`, the solver can give `a` any value other than 65, for example `a = 0`. ### Verifying properties {#verifying-properties}
14
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -7,7 +7,9 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/node:7.10 + - image: circleci/node:8-browsers + environment: + CHROME_BIN: "/usr/bin/google-chrome" # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images
3
diff --git a/accessibility-checker-engine/help/IBMA_Focus_Tabbable.mdx b/accessibility-checker-engine/help/IBMA_Focus_Tabbable.mdx @@ -10,19 +10,21 @@ import { Tag } from "carbon-components-react"; ## Who does this affect? -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +* Blind people using screen readers +* People who physically cannot use a pointing device +* People with tremor or other movement disorders ## Why is this important? -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +Unlike native HTML form elements, browsers do not provide keyboard support for graphical user interface (GUI) components that are made accessible with ARIA - authors must incorporate the code for keyboard access. </Column> <Column colLg={11} colMd={5} colSm={4} className="toolMain"> <div id="locLevel" className="level-violation">Violation</div> -## Image does not have a short text alternative -Images that convey meaning must have a short text alternative. +## The component does not have a tabbable element +The component must have at least one tabbable element [IBM 1.1.1 Non-text content]() | [WCAG technique H37]() @@ -30,15 +32,7 @@ Images that convey meaning must have a short text alternative. ## What to do -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, +Use the HTML tabindex attribute to include the component in the tab sequence. (Refer to the [WAI-ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard) for more information on how to manage keyboard focus.) </Column>
3
diff --git a/modules/@apostrophecms/ui/ui/apos/components/AposContextMenu.vue b/modules/@apostrophecms/ui/ui/apos/components/AposContextMenu.vue <template> - <div class="apos-context-menu" ref="container"> + <div class="apos-context-menu"> <slot name="prebutton" /> <v-popover @hide="hide" popover-class="apos-popover" popover-wrapper-class="apos-popover__wrapper" popover-inner-class="apos-popover__inner" - :container="container" > <!-- TODO refactor buttons to take a single config obj --> <AposButton @@ -82,7 +81,6 @@ export default { return { isOpen: false, position: '', - container: null, event: null }; }, @@ -115,9 +113,6 @@ export default { } } }, - mounted() { - this.container = this.$refs.container; - }, methods: { show() { this.isOpen = true;
4
diff --git a/src/modules/utils/services/MediaStream.js b/src/modules/utils/services/MediaStream.js let facingBackCamera = devices.find((device) => device.label.includes('back')); if (!facingBackCamera) { - facingBackCamera = devices.find((device) => device.kind === 'videoinput'); + const videoInputDevices = devices.filter((device) => device.kind === 'videoinput'); + // Android devices facing back camera is usually placed later in array of devices. + facingBackCamera = videoInputDevices[videoInputDevices.length - 1]; } return facingBackCamera || null; } + function getConstraints(deviceList) { + if (navigator.mediaDevices.getSupportedConstraints().facingMode) { + return { + video: { + facingMode: 'environment' + } + }; + } + + const deviceInfo = getFacingBackCamera(deviceList); + + return { + video: { + deviceId: { exact: deviceInfo.deviceId } + } + }; + } + return { /** * @name app.utils.mediaStream#create }; navigator.mediaDevices.enumerateDevices().then((deviceList) => { - const deviceInfo = getFacingBackCamera(deviceList); - - const constraints = { - video: { - deviceId: { exact: deviceInfo.deviceId } - } - }; - - return navigator.mediaDevices.getUserMedia(constraints); + return ( + navigator + .mediaDevices + .getUserMedia( + getConstraints(deviceList) + ) + ); }).then(handler, reject); }); }
9
diff --git a/config/environments/production.rb b/config/environments/production.rb @@ -25,7 +25,7 @@ Rails.application.configure do # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=31536000" + 'Cache-Control' => 'public, max-age=31536000' } # Compress JavaScripts and CSS. @@ -58,7 +58,7 @@ Rails.application.configure do # Use the lowest log level to ensure availability of diagnostic information # when problems arise. - config.log_level = :debug + config.log_level = :info # Prepend all log lines with the following tags. # config.log_tags = [ :request_id ] @@ -91,7 +91,7 @@ Rails.application.configure do # require 'syslog/logger' # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - if ENV["RAILS_LOG_TO_STDOUT"].present? + if ENV['RAILS_LOG_TO_STDOUT'].present? logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger)
12
diff --git a/Source/Core/S2Cell.js b/Source/Core/S2Cell.js @@ -15,28 +15,33 @@ import RuntimeError from "./RuntimeError.js"; * * This implementation is based on the S2 C++ reference implementation: https://github.com/google/s2geometry * + * * Overview: * --------- - * The S2 library decomposes the unit sphere into a hierarchy of cell. A cell a quadrilateral bounded by 4 geodesics. + * The S2 library decomposes the unit sphere into a hierarchy of cells. A cell is a quadrilateral bounded by 4 geodesics. * The 6 root cells are obtained by projecting the six faces of a cube on a unit sphere. Each root cell follows a quadtree - * subdivision. The S2 cell hierarchy extends from level 0 (root cells) to level 30 (leaf cells). The root cells are rotated - * to enable a single Hilbert curve to map all 6 faces of the cube. + * subdivision scheme, i.e. each cell subdivides into 4 smaller cells that cover the same area as the parent cell. The S2 cell + * hierarchy extends from level 0 (root cells) to level 30 (leaf cells). The root cells are rotated to enable a continuous Hilbert + * curve to map all 6 faces of the cube. * * * Cell ID: * -------- - * Each cell in S2 can be uniquely identified using a 64-bit unsigned integer. The first 3 bits of the cell ID are the face bits, i.e. - * they indicate which of the 6 faces of the cube the cell lies on. After the first bits are the position bits, i.e. they indicate the position + * Each cell in S2 can be uniquely identified using a 64-bit unsigned integer, its cell ID. The first 3 bits of the cell ID are the face bits, i.e. + * they indicate which of the 6 faces of the cube a cell lies on. After the face bits are the position bits, i.e. they indicate the position * of the cell along the Hilbert curve. After the positions bits is the sentinel bit, which is always set to 1, and it indicates the level of the * cell. Again, the level can be between 0 and 30 in S2. * + * Note: In the illustration below, the face bits are marked with 'f', the position bits are marked with 'p', the zero bits are marked with '-'. + * * Cell ID (base 10): 3170534137668829184 * Cell ID (base 2) : 0010110000000000000000000000000000000000000000000000000000000000 * * 001 0110000000000000000000000000000000000000000000000000000000000 * fff pps---------------------------------------------------------- * - * For the cell above, we can see that it lies on face 1, with a Hilbert index of 2. + * For the cell above, we can see that it lies on face 1 (01), with a Hilbert index of 1 (1). + * * * Cell Subdivision: * ------------------ @@ -51,6 +56,8 @@ import RuntimeError from "./RuntimeError.js"; * * To get the 3rd child of the cell above, we insert the binary representation of 3 to the right of the parent's position bits: * + * Note: In the illustration below, the bits to be added are highlighted with '^'. + * * 001 0111100000000000000000000000000000000000000000000000000000000 * fff pppps-------------------------------------------------------- * ^^ @@ -65,19 +72,21 @@ import RuntimeError from "./RuntimeError.js"; * Cell ID (base 10): 3170534137668829184 * Cell ID (base 2) : 0010110000000000000000000000000000000000000000000000000000000000 * - * We remove all trailing zero bits, until we reach the nybble (4 bit mulitple) that contains the sentinel bit. + * We remove all trailing zero bits, until we reach the nybble (4 bit multiple) that contains the sentinel bit. + * + * Note: In the illustration below, the bits to be removed are highlighted with 'X'. * * 0010110000000000000000000000000000000000000000000000000000000000 * fffpps--XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX * * We convert the remaining bits to their hexadecimal representation. * - * 0010 1100 - * "2" "c" + * Base 2: 0010 1100 + * Base 16: "2" "c" * * Cell Token: "2c" * - * To compute the cell ID from the token, we simple add enough zeros to the right to make the ID span 64 bits. + * To compute the cell ID from the token, we simply add enough zeros to the right to make the ID span 64 bits. * * Coordinate Transforms: * ----------------------
7
diff --git a/token-metadata/0xB6eE603933E024d8d53dDE3faa0bf98fE2a3d6f1/metadata.json b/token-metadata/0xB6eE603933E024d8d53dDE3faa0bf98fE2a3d6f1/metadata.json "symbol": "DFT", "address": "0xB6eE603933E024d8d53dDE3faa0bf98fE2a3d6f1", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/index.ts b/src/index.ts @@ -29,6 +29,7 @@ export interface InstallOptions { namedExports?: {[filepath: string]: string[]}; remoteUrl?: string; remotePackages: [string, string][]; + noSourceMaps?: boolean; } const cwd = process.cwd(); @@ -45,6 +46,7 @@ function showHelp() { --clean Clear out the destination directory before install. --optimize Minify installed dependencies. --strict Only install pure ESM dependency trees. Fail if a CJS module is encountered. + --no-source-maps Skip emitting source map files (.js.map) into dest Advanced Options: --remote-package "name,version" pair(s) signal that a package should be left unbundled and referenced remotely. Example: With the value "foo,v4" will rewrite all imports of "foo" to "{remoteUrl}/foo/v4" (see --remote-url). @@ -143,7 +145,7 @@ function getWebDependencyName(dep: string): string { export async function install( arrayOfDeps: string[], - {isCleanInstall, destLoc, skipFailures, isStrict, isOptimized, namedExports, remoteUrl, remotePackages}: InstallOptions, + {isCleanInstall, destLoc, skipFailures, isStrict, isOptimized, noSourceMaps, namedExports, remoteUrl, remotePackages}: InstallOptions, ) { const knownNamedExports = {...namedExports}; @@ -256,7 +258,7 @@ export async function install( const outputOptions = { dir: destLoc, format: 'esm' as 'esm', - sourcemap: true, + sourcemap: !noSourceMaps, exports: 'named' as 'named', chunkFileNames: 'common/[name]-[hash].js', }; @@ -266,7 +268,7 @@ export async function install( } export async function cli(args: string[]) { - const {help, optimize = false, strict = false, clean = false, dest = 'web_modules', remoteUrl = 'https://cdn.pika.dev', remotePackage: remotePackages = []} = yargs(args); + const {help, noSourceMaps = false, optimize = false, strict = false, clean = false, dest = 'web_modules', remoteUrl = 'https://cdn.pika.dev', remotePackage: remotePackages = []} = yargs(args); const destLoc = path.join(cwd, dest); if (help) { @@ -287,6 +289,7 @@ export async function cli(args: string[]) { skipFailures: !doesWhitelistExist, isStrict: strict, isOptimized: optimize, + noSourceMaps, remoteUrl, remotePackages: remotePackages.map(p => p.split(',')), });
0