code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/test/jasmine/tests/cone_test.js b/test/jasmine/tests/cone_test.js @@ -82,7 +82,6 @@ describe('@gl Test cone autorange:', function() { it('should add pad around cone position to make sure they fit on the scene', function(done) { var fig = Lib.extendDeep({}, require('@mocks/gl3d_cone-autorange.json')); - // the resulting image should be independent of what I multiply by here function makeScaleFn(s) { return function(v) { return v * s; }; } @@ -92,6 +91,7 @@ describe('@gl Test cone autorange:', function() { [-0.66, 4.66], [-0.66, 4.66], [-0.66, 4.66] ); + // the resulting image should be independent of what I multiply by here var trace = fig.data[0]; var m = makeScaleFn(10); var u = trace.u.map(m); @@ -105,6 +105,7 @@ describe('@gl Test cone autorange:', function() { [-0.66, 4.66], [-0.66, 4.66], [-0.66, 4.66] ); + // the resulting image should be independent of what I multiply by here var trace = fig.data[0]; var m = makeScaleFn(0.2); var u = trace.u.map(m); @@ -166,6 +167,21 @@ describe('@gl Test cone autorange:', function() { _assertAxisRanges('with sizemode absolute', [0.63, 5.37], [0.63, 5.37], [0.63, 5.37] ); + + var trace = fig.data[0]; + var m = makeScaleFn(2); + var x = trace.x.map(m); + var y = trace.y.map(m); + var z = trace.z.map(m); + + return Plotly.restyle(gd, { + x: [x], y: [y], z: [z] + }); + }) + .then(function() { + _assertAxisRanges('after spacing out the x/y/z coordinates', + [1.25, 10.75], [1.25, 10.75], [1.25, 10.75] + ); }) .catch(failTest) .then(done);
0
diff --git a/scenes/treehouse.scn b/scenes/treehouse.scn 0.7071067811865475 ], "start_url": "https://webaverse.github.io/fox/" + }, + { + "position": [ + -6, + 1, + 15 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ], + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "start_url": "../potion/" } ] }
0
diff --git a/desktop/core/library/u.js b/desktop/core/library/u.js @@ -10,7 +10,6 @@ function OperatorU (orca, x, y, passive) { this.ports.haste.key = { x: -2, y: 0 } this.ports.haste.len = { x: -1, y: 0, clamp: { min: 1 } } - this.ports.input.target = { x: 0, y: 1 } this.ports.output = { x: 0, y: 1 } this.haste = function () { @@ -26,6 +25,9 @@ function OperatorU (orca, x, y, passive) { const index = orca.indexAt(this.x + 1, this.y) const seg = orca.s.substr(index, len) const res = seg.indexOf(key) + if (res >= 0) { + this.ports.input.target = { x: res + 1, y: 0 } + } return res < 0 ? '.' : orca.keyOf(res) } }
5
diff --git a/assets/js/googlesitekit/modules/datastore/sharing-settings.test.js b/assets/js/googlesitekit/modules/datastore/sharing-settings.test.js @@ -137,10 +137,6 @@ describe( 'core/modules sharing-settings', () => { ...state, ...sharingSettingsWithManagement, } ); - expect( store.getState().savedSharingSettings ).toMatchObject( { - ...state, - ...sharingSettingsWithManagement, - } ); } ); } ); @@ -206,10 +202,6 @@ describe( 'core/modules sharing-settings', () => { ...state, ...sharingSettingsWithSharedRoles, } ); - expect( store.getState().savedSharingSettings ).toMatchObject( { - ...state, - ...sharingSettingsWithSharedRoles, - } ); } ); } );
1
diff --git a/stories/module-analytics-settings.stories.js b/stories/module-analytics-settings.stories.js @@ -407,7 +407,6 @@ storiesOf( 'Analytics Module/Settings', module ) propertyID: webPropertyId, // eslint-disable-line sitekit/acronym-case internalWebPropertyID: internalWebPropertyId, // eslint-disable-line sitekit/acronym-case profileID, - ownerID: 2, } ); dispatch( MODULES_ANALYTICS_4 ).receiveGetSettings( {
2
diff --git a/js/binance.js b/js/binance.js @@ -1378,7 +1378,7 @@ module.exports = class binance extends Exchange { if (type === 'delivery') { return true; } - if (type === 'swap' && subType === 'linear') { + if (type === 'swap' && subType === 'inverse') { return true; } return false; @@ -1388,7 +1388,7 @@ module.exports = class binance extends Exchange { if (type === 'future') { return true; } - if (type === 'swap' && subType === 'inverse') { + if (type === 'swap' && subType === 'linear') { return true; } return false; @@ -1397,12 +1397,19 @@ module.exports = class binance extends Exchange { market (symbol) { if (symbol !== undefined) { const defaultType = this.safeString (this.options, 'defaultType'); - const isUnified = symbol.indexOf (':') > -1; - if (defaultType !== 'spot' && !isUnified) { - // convert BTC/USDT into BTC/USDT:USDT + const subType = this.safeString (this.options, 'defaultSubType'); + const isLegacySymbol = (symbol.indexOf ('/') > -1) && (symbol.indexOf (':') === -1); + if (isLegacySymbol) { const symbolParts = symbol.split ('/'); + if (this.isLinearSwap (defaultType, subType)) { + // convert BTC/USDT into BTC/USDT:USDT symbol = symbol + ':' + this.safeString (symbolParts, 1); this.options['legacySymbols'] = true; + } else if (this.isInverseSwap (defaultType, subType)) { + // convert BTC/USD into BTC/USD:BTC + symbol = symbol + ':' + this.safeString (symbolParts, 0); + this.options['legacySymbols'] = true; + } } else { this.options['legacySymbols'] = false; } @@ -1412,9 +1419,11 @@ module.exports = class binance extends Exchange { safeMarket (marketId = undefined, market = undefined, delimiter = undefined, marketType = 'spot') { const defaultType = this.safeValue (this.options, 'defaultType'); + const subType = this.safeString (this.options, 'defaultSubType'); const parsedMarket = super.safeMarket (marketId, market, delimiter, defaultType); const legacySymbols = this.safeValue (this.options, 'legacySymbols', false); - if (defaultType !== 'spot' && legacySymbols) { + if (legacySymbols) { + if (this.isLinearSwap (defaultType, subType) || this.isInverseSwap (defaultType, subType)) { // avoid changing it by reference const newMarket = this.extend (parsedMarket, {}); // legacy symbol @@ -1422,6 +1431,7 @@ module.exports = class binance extends Exchange { newMarket['symbol'] = legacySymbol; return newMarket; } + } return parsedMarket; }
7
diff --git a/src/game.js b/src/game.js @@ -41,9 +41,8 @@ module.exports = class Game extends Room { this.modernOnly = modernOnly this.totalChaos = totalChaos - if (fourPack) { sets = sets.slice(0,4) } - if (sets) { + if (fourPack) { sets = sets.slice(0,4) } if (type != 'chaos') { Object.assign(this, { sets,
5
diff --git a/packages/core/src/router.ts b/packages/core/src/router.ts @@ -129,7 +129,9 @@ export class Router { }) this.saveScrollPositions() if (window.location.hash) { - document.getElementById(window.location.hash.slice(1))?.scrollIntoView() + // We're using a setTimeout() here as a workaround for a bug in the React adapter where the + // rendering isn't completing fast enough, causing the anchor link to not be scrolled to. + setTimeout(() => document.getElementById(window.location.hash.slice(1))?.scrollIntoView()) } }
1
diff --git a/src/apps.json b/src/apps.json "cats": [ 12 ], - "html": "<[^>]+x-data[^<]+", + "html": "<[^>]+[^\\w-]x-data[^\\w-][^<]+\\;confidence:75", + "js": { + "Alpine.version": "^(.+)$\\;version:\\1" + }, "icon": "Alpine.js.png", + "script": [ + "/alpine(?:\\.min)?\\.js" + ], "website": "https://github.com/alpinejs/alpine" }, "AOLserver": {
7
diff --git a/references/displayed_attributes.md b/references/displayed_attributes.md @@ -10,7 +10,7 @@ Displayed attributes can also be updated directly through the [global settings r Updating the settings means overwriting the default settings of MeiliSearch. You can reset to default values using the `DELETE` routes. ::: -## Get searchable attributes +## Get displayed attributes <RouteHighlighter method="GET" route="/indexes/:index_uid/settings/displayed-attributes" />
1
diff --git a/components/Account/enhancers.js b/components/Account/enhancers.js import { graphql } from 'react-apollo' import gql from 'graphql-tag' -import { BOOKMARKS_COLLECTION_NAME } from '../Bookmarks/fragments' export const userDetailsFragment = ` - fragment Details on User { + fragment PhoneAndAddressOnUser on User { + id phoneNumber address { name @@ -32,8 +32,13 @@ const mutation = gql` address: $address ) { id + birthday + firstName + lastName + ...PhoneAndAddressOnUser } } + ${userDetailsFragment} ` export const query = gql` query myAddress { @@ -44,21 +49,12 @@ export const query = gql` lastName email birthday - ...Details + ...PhoneAndAddressOnUser } } ${userDetailsFragment} ` -export const onDocumentFragment = ` -fragment BookmarkOnDocument on Document { - userBookmark: userCollectionItem(collectionName: "${BOOKMARKS_COLLECTION_NAME}") { - id - createdAt - } -} -` - export const withMyDetails = graphql(query, { name: 'detailsData' }) @@ -67,12 +63,7 @@ export const withMyDetailsMutation = graphql(mutation, { props: ({ mutate }) => ({ updateDetails: variables => mutate({ - variables, - refetchQueries: [ - { - query - } - ] + variables }) }) })
7
diff --git a/gridsome/lib/utils/cache.js b/gridsome/lib/utils/cache.js const LRU = require('lru-cache') +const crypto = require('crypto') const cache = new LRU({ max: 1000 }) @@ -13,9 +14,10 @@ exports.cache = (cacheKey, fallback) => { } exports.nodeCache = (node, key, fallback) => { - const id = node.$loki - const timestamp = node.internal.timestamp - const cacheKey = `${id}-${timestamp}-${key}` + const { $loki, fields, internal } = node + const string = JSON.stringify({ $loki, fields, internal }) + const hash = crypto.createHash('md5').update(string).digest('hex') + const cacheKey = `${$loki}-${hash}-${key}` let result = cache.get(cacheKey)
7
diff --git a/src/js/modules/sort.js b/src/js/modules/sort.js @@ -291,11 +291,11 @@ Sort.prototype.sorters = { number:function(a, b, aRow, bRow, column, dir, params){ var alignEmptyValues = params.alignEmptyValues; var decimal = params.decimalSeparator || "."; - var separator = params.thousandsSeparator || ","; + var thousand = params.thousandSeparator || ","; var emptyAlign = 0; - a = parseFloat(String(a).split(separator).join("").split(decimal).join(".")); - b = parseFloat(String(b).split(separator).join("").split(decimal).join(".")); + a = parseFloat(String(a).split(thousand).join("").split(decimal).join(".")); + b = parseFloat(String(b).split(thousand).join("").split(decimal).join(".")); //handle non numeric values if(isNaN(a)){
3
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade @@ -85,7 +85,7 @@ template(name="boardHeaderBar") if Filter.isActive a.board-header-btn-close.js-filter-reset(title="{{_ 'filter-clear'}}") i.fa.fa-times-thin - if currentUser.isAdmin + if currentUser.isBoardAdmin a.board-header-btn.js-open-rules-view(title="{{_ 'rules'}}") i.fa.fa-magic span {{_ 'rules'}}
11
diff --git a/source/views/menu/MenuView.js b/source/views/menu/MenuView.js @@ -4,6 +4,7 @@ import { Obj } from '../../foundation/Object.js'; import { bind } from '../../foundation/Binding.js'; import { ObservableArray } from '../../foundation/ObservableArray.js'; import { queueFn, invokeInNextFrame } from '../../foundation/RunLoop.js'; +import { toBoolean } from '../../foundation/Transform.js'; import { lookupKey } from '../../dom/DOMEvent.js'; import { OptionsController } from '../../selection/OptionsController.js'; import { View } from '../View.js'; @@ -48,7 +49,9 @@ const MenuController = Class({ init: function (view, content, isFiltering) { this.options = new ObservableArray(); this.view = view; - this.content = content.map((button) => new MenuOption(button, this)); + this.content = content + .filter(toBoolean) + .map((button) => new MenuOption(button, this)); MenuController.parent.constructor.call(this, { isFiltering, });
11
diff --git a/README.md b/README.md @@ -55,6 +55,7 @@ _Thanks to all Sparta contributors (alphabetical)_ - [Kyle Anderson](Kyle Anderson) - [James Brook](https://github.com/jbrook) + - [Ryan Brown](https://github.com/ryansb) - [sdbeard](https://github.com/sdbeard) - [Paul Seiffert](https://github.com/seiffert) - [Thom Shutt](https://github.com/thomshutt)
0
diff --git a/server/workers/tests/test_clustering.py b/server/workers/tests/test_clustering.py @@ -38,7 +38,16 @@ def test_max_n_cluster(testcase): @pytest.mark.parametrize("testcase", CASENAMES) def test_n_cluster_lower_bound(testcase): - testcase = RESULTS[testcase] - n_items = len(testcase) + testcase = CASE_DATA[testcase] + metadata = pd.DataFrame.from_records(json.loads(testcase["input_data"]["metadata"])) + text = pd.DataFrame.from_records(json.loads(testcase["input_data"]["text"])) + rand_n = np.random.randint(2, 30) + n = min(len(metadata), rand_n) + metadata_sample = metadata.sample(n=n, random_state=42) + text_sample = text.sample(n=n, random_state=42) + testcase["input_data"]["metadata"] = metadata_sample.to_json(orient='records') + testcase["input_data"]["text"] = text_sample.to_json(orient='records') + test_result = get_dataprocessing_result(testcase) + n_items = len(test_result) if n_items <= 30: - assert testcase.area.nunique() == round(np.sqrt(n_items)) + 1 + assert test_result.area.nunique() == round(np.sqrt(n_items)) + 1
7
diff --git a/website/src/docs/uppy.md b/website/src/docs/uppy.md @@ -31,7 +31,7 @@ const Core = Uppy.Core ```js const uppy = Uppy({ id: 'uppy', - autoProceed: true, + autoProceed: false, debug: false, restrictions: { maxFileSize: null, @@ -61,9 +61,9 @@ const avatarUploader = Uppy({ id: 'avatar' }) const photoUploader = Uppy({ id: 'post' }) ``` -### `autoProceed: true` +### `autoProceed: false` -Uppy will start uploading automatically after the first file is selected. +By default Uppy will wait for an upload button to be pressed in the UI, or an `.upload()` method to be called, before starting an upload. Setting this to `autoProceed: true` will start uploading automatically after the first file is selected. ### `restrictions: {}`
3
diff --git a/assets/js/components/organizations/NoOrganization.jsx b/assets/js/components/organizations/NoOrganization.jsx import React, { useState, useEffect } from "react"; import { useDispatch } from "react-redux"; -import { createOrganization } from "../../actions/organization"; +import { createOrganization, importOrganization } from "../../actions/organization"; import { getInvitations, resendInvitations } from "../../actions/invitation"; import { logOut } from "../../actions/auth"; import AuthLayout from "../common/AuthLayout"; +import DragAndDrop, { style as dropStyle } from "../common/DragAndDrop"; import Logo from "../../../img/symbol.svg"; -import { primaryBlue } from "../../util/colors"; +import { primaryBlue, blueForDeviceStatsLarge } from "../../util/colors"; import { Card, Input, Button, Typography, Row, Col, Form, Spin } from "antd"; +import LoadingOutlined from '@ant-design/icons/LoadingOutlined'; const { Text, Title } = Typography; export default ({ user }) => { @@ -15,6 +17,9 @@ export default ({ user }) => { const [invitationsLoading, setInvitationsLoading] = useState(true); const [invitations, setInvitations] = useState([]); const [invitationResent, setInvitationResent] = useState(false); + const [showImportOrg, setShowImportOrg] = useState(false); + const [importing, setImporting] = useState(false); + const [importFailed, setImportFailed] = useState(false); const fetchInvitations = async () => { getInvitations(user.email) @@ -65,7 +70,7 @@ export default ({ user }) => { marginBottom: 20, }} /> - {invitations.length > 0 ? ( + {!showImportOrg && invitations.length > 0 && ( <> <div style={{ textAlign: "center", marginBottom: 40 }}> <Title>Helium Console</Title> @@ -114,7 +119,8 @@ export default ({ user }) => { </Col> </Row> </> - ) : ( + )} + {!showImportOrg && invitations.length == 0 && ( <> <div style={{ textAlign: "center", marginBottom: 40 }}> <Title>Helium Console</Title> @@ -173,6 +179,87 @@ export default ({ user }) => { </Form> </> )} + + { + showImportOrg && ( + <div style={{ textAlign: "center", marginBottom: 10 }}> + <Title>Helium Console</Title> + <Text + style={{ + color: primaryBlue, + fontSize: 18, + fontWeight: 300, + }} + > + Import Your Organization + </Text> + </div> + ) + } + { + showImportOrg && importFailed && ( + <div style={dropStyle}> + <Text + style={{ + textAlign: "center", + margin: "30px 40px", + fontSize: 14, + color: blueForDeviceStatsLarge, + }} + > + <span style={{ display: 'block', marginBottom: 10 }}>Failed to import organization with provided file</span> + <Button size="small" onClick={() => setImportFailed(false)}> + Try Again + </Button> + </Text> + </div> + ) + } + { + showImportOrg && !importFailed && ( + <DragAndDrop + fileSelected={(file) => { + let fileReader = new FileReader(); + fileReader.onloadend = () => { + setImporting(true) + + importOrganization(fileReader.result) + .then(resp => { + window.location.reload(true) + }) + .catch(err => { + setImportFailed(true) + setImporting(false) + }) + }; + fileReader.readAsText(file); + }} + > + { + importing ? ( + <LoadingOutlined style={{ fontSize: 50, color: "#38A2FF", margin: 20 }} spin /> + ) : ( + <Text + style={{ + textAlign: "center", + margin: "30px 40px", + fontSize: 14, + color: blueForDeviceStatsLarge, + }} + > + Drag exported organization .json file here or click to choose file + </Text> + ) + } + </DragAndDrop> + ) + } + <Button + onClick={() => setShowImportOrg(!showImportOrg)} + style={{ width: "100%", marginTop: 8 }} + > + {showImportOrg ? "Take me back" : "I want to import an organization" } + </Button> </Card> )} </AuthLayout>
11
diff --git a/Source/Shape.js b/Source/Shape.js @@ -22,7 +22,7 @@ export class Shape extends Layer { * @param {MSShapeGroup} shape The underlying model object from Sketch. * @param {Document} document The document that the shape belongs to. */ - constructor(shape, document) { + constructor(shape = {}, document) { if (document) { log( 'using a constructor to box a native object is deprecated. Use `fromNative` instead'
12
diff --git a/src/content/en/fundamentals/performance/optimizing-content-efficiency/loading-third-party-javascript/index.md b/src/content/en/fundamentals/performance/optimizing-content-efficiency/loading-third-party-javascript/index.md @@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml book_path: /web/fundamentals/_book.yaml description: Third-party scripts provide a wide range of useful functionality, making the web more dynamic. Learn how to optimize the loading of third-party scripts to reduce their impact on performance. -{# wf_updated_on: 2018-07-02 #} +{# wf_updated_on: 2018-10-31 #} {# wf_published_on: 2018-02-28 #} {# wf_blink_components: Blink>JavaScript #} @@ -318,7 +318,7 @@ can make it useful for testing network resilience of third-party content to determine how well your pages hold up when services are under heavy load or temporarily unavailable. -<img src="images/image_12.png" alt="WebPageTest advanced settings > SPOF > hosts +<img src="images/image_12.png" alt="WebPageTest advanced settings &gt; SPOF &gt; hosts to fail"/> ### Detecting expensive iframes using Long Tasks
14
diff --git a/src/plugins/Plugin.js b/src/plugins/Plugin.js @@ -17,7 +17,6 @@ module.exports = class Plugin { constructor (core, opts) { this.core = core this.opts = opts || {} - this.type = 'none' // clear everything inside the target selector this.opts.replaceTargetContent === this.opts.replaceTargetContent || true
2
diff --git a/LightboxImages.user.js b/LightboxImages.user.js // @description Opens image links in a lightbox instead of new window/tab in main & chat. Lightbox images that are displayed smaller than it's original size. // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 1.3.4 +// @version 1.4 // // @include https://*stackoverflow.com/* // @include https://*serverfault.com/* 'use strict'; - const lbSelector = '.gravatar-wrapper-164 a, .ob-image a, a[href$=".jpg"], a[href$=".png"], a[href$=".gif"]'; + const lbSelector = '.ob-image a, a[href$=".jpg"], a[href$=".png"], a[href$=".gif"]'; jQuery.getCachedScript = function(url, callback) { // If unlinked images' width is greater than displayed width of at least 100px, also lightbox the image $('img').filter(function() { - return typeof this.parentNode.href === 'undefined'; + return typeof this.parentNode.href === 'undefined' && !this.parentNode.className.includes('gravatar'); }).wrap(function() { return `<a class="unlinked-image" data-src="${this.src}"></a>`; });
8
diff --git a/_data/conferences.yml b/_data/conferences.yml place: Philadelphia (PA), USA sub: RO - - title: ICLR hindex: 150 year: 2021 sub: DM note: '<b>NOTE</b>: Mandatory abstract deadline on October 12, 2020' -- title: ICRA - hindex: 94 - year: 2020 - id: icra21 - link: https://www.ieee-ras.org/component/rseventspro/event/1908-icra-2021-call-for-papers-deadline - deadline: '2020-10-31 23:59:59' - timezone: America/Los_Angeles - date: May 30-June 5, 2021 - place: Online - sub: RO - - title: CVPR hindex: 299 year: 2021
2
diff --git a/tests/e2e/specs/user-input-questions.test.js b/tests/e2e/specs/user-input-questions.test.js @@ -34,6 +34,7 @@ import { pageWait, step, setSearchConsoleProperty, + setupAnalytics, } from '../utils'; describe( 'User Input Settings', () => { @@ -121,6 +122,7 @@ describe( 'User Input Settings', () => { 'e2e-tests-user-input-settings-api-mock' ); await setSearchConsoleProperty(); + await page.setRequestInterception( true ); } ); afterEach( async () => { @@ -146,18 +148,26 @@ describe( 'User Input Settings', () => { it( 'should offer to enter input settings for existing users', async () => { await setupSiteKit(); + await page.setRequestInterception( false ); + await setupAnalytics(); + await page.setRequestInterception( true ); + await setSearchConsoleProperty(); await step( 'visit admin dashboard', visitAdminPage( 'admin.php', 'page=googlesitekit-dashboard' ) ); + await page.waitForSelector( '.googlesitekit-user-input__notification' ); + await step( 'click on CTA button and wait for navigation', async () => { await page.waitForSelector( '.googlesitekit-user-input__notification' ); await Promise.all( [ - expect( page ).toClick( '.googlesitekit-notification__cta' ), + expect( page ).toClick( + '.googlesitekit-user-input__notification .googlesitekit-cta-link' + ), page.waitForNavigation(), ] ); } ); @@ -167,6 +177,10 @@ describe( 'User Input Settings', () => { it( 'should let existing users enter input settings from the settings page', async () => { await setupSiteKit(); + await page.setRequestInterception( false ); + await setupAnalytics(); + await page.setRequestInterception( true ); + await setSearchConsoleProperty(); await step( 'visit admin settings', async () => { await visitAdminPage( 'admin.php', 'page=googlesitekit-settings' ); @@ -182,7 +196,9 @@ describe( 'User Input Settings', () => { '.googlesitekit-user-input__notification' ); await Promise.all( [ - expect( page ).toClick( '.googlesitekit-notification__cta' ), + expect( page ).toClick( + '.googlesitekit-user-input__notification .googlesitekit-cta-link' + ), page.waitForNavigation(), ] ); } );
1
diff --git a/src/js/background/index.js b/src/js/background/index.js @@ -3,11 +3,13 @@ import { handleRSS } from './utils'; chrome.tabs.onActivated.addListener(function (tab) { chrome.tabs.sendMessage(tab.tabId, { text: 'getPageRSS', - }, handleRSS); + }, (feeds) => { + handleRSS(feeds, tab.tabId); + }); }); chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) { if (msg.text === 'setPageRSS' && sender.tab.active) { - handleRSS(msg.feeds); + handleRSS(msg.feeds, sender.tab.id); } });
1
diff --git a/lib/marklogic.js b/lib/marklogic.js @@ -676,11 +676,11 @@ module.exports = { valuesBuilder: valuesBuilder.builder, /** - * Configures the slice clause of the query builder and values builder - * to conform to Array.prototype.slice(begin, end) where begin is zero-based - * or legacy slice(pageStart, pageLength) where pageStart is one-based. The - * default is "legacy" at present but will become "array" in the next major - * release. + * Configures the slice mode of the query builder and values builder + * to conform to Array.prototype.slice(begin, end) where begin is + * zero-based or legacy slice(pageStart, pageLength) where pageStart + * is one-based. The default is array slice mode. Legacy slice mode + * is deprecated and will be removed in the next major release. * @function * @param {string} mode - "array" or "legacy" */
3
diff --git a/token-metadata/0xcca0c9c383076649604eE31b20248BC04FdF61cA/metadata.json b/token-metadata/0xcca0c9c383076649604eE31b20248BC04FdF61cA/metadata.json "symbol": "BTMX", "address": "0xcca0c9c383076649604eE31b20248BC04FdF61cA", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/cravat/admin_util.py b/cravat/admin_util.py @@ -224,6 +224,7 @@ class ModuleInfoCache(object): self._remote_fetched = True def get_remote_readme(self, module_name, version=None): + if mic.remote == {}: self.update_remote() # Resolve name and version if module_name not in self.remote: @@ -246,6 +247,7 @@ class ModuleInfoCache(object): return readme def get_remote_config(self, module_name, version=None): + if mic.remote == {}: self.update_remote() if version == None: version = self.remote[module_name]['latest_version'] @@ -670,7 +672,6 @@ def set_modules_dir (path, overwrite=False): if not(os.path.isdir(path)): os.makedirs(path) old_conf_path = get_main_conf_path() - path = 'test' update_system_conf_file({constants.modules_dir_key:path}) if not(os.path.exists(get_main_conf_path())): if os.path.exists(old_conf_path): @@ -723,12 +724,12 @@ def get_system_conf(): """ Get the system config. Fill in the default modules dir if not set. """ - if os.path.exists(constants.system_conf_path) == False: - shutil.copyfile(constants.system_conf_template_path, constants.system_conf_path) + if os.path.exists(constants.system_conf_path): conf = load_yml_conf(constants.system_conf_path) + else: + conf = load_yml_conf(constants.system_conf_template_path) if constants.modules_dir_key not in conf: conf[constants.modules_dir_key] = constants.default_modules_dir - write_system_conf_file(conf) return conf def get_modules_dir(): @@ -934,7 +935,7 @@ def report_issue (): webbrowser.open('http://github.com/KarchinLab/open-cravat/issues') def get_system_conf_info (): - #set_jobs_dir(get_jobs_dir()) + set_jobs_dir(get_jobs_dir()) confpath = constants.system_conf_path if os.path.exists(confpath): conf = load_yml_conf(confpath) @@ -948,7 +949,7 @@ def get_system_conf_info (): return system_conf_info def get_system_conf_info_json (): - #set_jobs_dir(get_jobs_dir()) + set_jobs_dir(get_jobs_dir()) confpath = constants.system_conf_path if os.path.exists(confpath): conf = load_yml_conf(confpath)
13
diff --git a/src/components/Breadcrumbs.js b/src/components/Breadcrumbs.js @@ -3,6 +3,7 @@ import { Flex, Link as A, Text } from '@hackclub/design-system' import Link from 'gatsby-link' export const BreadcrumbList = Flex.withComponent('ol').extend` + line-height: 1.25; list-style: none; padding-left: 0; ` @@ -23,7 +24,7 @@ export const Breadcrumb = ({ type = 'Thing', position, name, ...props }) => ( itemScope itemType={`http://schema.org/${type}`} itemProp="item" - color="white" + color="inherit" f={3} bold caps
7
diff --git a/accessibility-checker-extension/src/ts/options/OptionsApp.tsx b/accessibility-checker-extension/src/ts/options/OptionsApp.tsx @@ -160,7 +160,7 @@ class OptionsApp extends React.Component<{}, OptionsAppState> { <br /> Accessibility Checker </h2> </div> - <aside aria-labelledby=""> + <aside aria-label = "About Accessibility Checker Options"> <div className="op_version" style={{ marginTop: "8px" }}> Version {manifest.version} </div>
1
diff --git a/src/cn.js b/src/cn.js .on('tcp connection', (_, acc) => { clt = acc(); initInterpreterConn(); - new D.IDE().setConnInfo('', 0, sel ? sel.name : ''); + new D.IDE().setConnInfo(o.host, 'SSH', sel ? sel.name : ''); }) .on('keyboard-interactive', (_, _1, _2, _3, fin) => { fin([x.pass]); }) .on('error', err)
12
diff --git a/data.js b/data.js @@ -496,6 +496,14 @@ module.exports = [ url: "https://github.com/daniellmb/perfnow.js", source: "https://raw.githubusercontent.com/daniellmb/perfnow.js/master/perfnow.js" }, + { + name: "GraphicsJS", + github: "anychart/graphicsjs", + tags: ["svg", "vml", "graphics", "drawing", "animation", "visualization", "charts", "data visualization", "api"], + description: "A powerful lightweight JavaScript drawing library for graphics and animation, based on SVG/VML, with intuitive API", + url: "http://www.graphicsjs.org", + source: "https://github.com/AnyChart/GraphicsJS/blob/master/dist/graphics.js" + }, { name: "SaVaGe.js", tags: ["svg"],
0
diff --git a/tools/make/lib/bundle/browser.mk b/tools/make/lib/bundle/browser.mk @@ -45,7 +45,7 @@ dist-bundles: $(NODE_MODULES) echo ""; \ echo "Building: $$pkg"; \ cd $$pkg; \ - $(MAKE) NODE_PATH="$(NODE_PATH)" || exit 1; \ + $(MAKE) NODE="$(NODE)" NODE_PATH="$(NODE_PATH)" || exit 1; \ done $(QUIET) echo 'Compressing bundles...' $(QUIET) for file in $(DIST_DIR)/*/build/*.min.js; do \ @@ -110,7 +110,7 @@ clean-dist: echo ""; \ echo "Removing build artifacts for package: $$pkg"; \ cd $$pkg; \ - $(MAKE) clean; \ + $(MAKE) NODE="$(NODE)" NODE_PATH="$(NODE_PATH)" clean; \ done $(QUIET) echo 'Finished removing build artifacts.'
12
diff --git a/src/components/Form.js b/src/components/Form.js @@ -62,23 +62,12 @@ class Form extends React.Component { this.inputRefs = {}; this.touchedInputs = {}; - // We keep a local isSubmitting variable to avoid any Onyx race conditions - // that could result in the form being submitted multiple times - this.isSubmitting = props.formState.isSubmitting; this.getValues = this.getValues.bind(this); this.setTouchedInput = this.setTouchedInput.bind(this); this.validate = this.validate.bind(this); this.submit = this.submit.bind(this); } - componentDidUpdate(prevProps) { - // We make the local isSubmitting variable shadow changes in Onyx - if (prevProps.formState.isSubmitting === this.props.formState.isSubmitting || this.isSubmitting === this.props.formState.isSubmitting) { - return; - } - this.isSubmitting = this.props.formState.isSubmitting; - } - /** * @param {String} inputID - The inputID of the input being touched */ @@ -99,7 +88,7 @@ class Form extends React.Component { submit() { // Return early if the form is already submitting to avoid duplicate submission - if (this.isSubmitting) { + if (this.props.formState.isSubmitting) { return; } @@ -115,7 +104,6 @@ class Form extends React.Component { } // Set loading state and call submit handler - this.isSubmitting = true; FormActions.setIsSubmitting(this.props.formID, true); this.props.onSubmit(values); } @@ -200,7 +188,10 @@ class Form extends React.Component { isAlertVisible={_.size(this.state.errors) > 0 || Boolean(this.props.formState.serverErrorMessage)} isLoading={this.props.formState.isSubmitting} message={this.props.formState.serverErrorMessage} - onSubmit={this.submit} + onSubmit={() => { + this.submit(); + this.submit(); + }} onFixTheErrorsLinkPressed={() => { this.inputRefs[_.first(_.keys(this.state.errors))].focus(); }}
13
diff --git a/CHANGES.md b/CHANGES.md ##### Fixes :wrench: -- Fixed an issue where Cesium failed to load GeoJSON with null `stroke` or `fill` properties but with a valid opacity value. +- Fixed an error when loading GeoJSON with null `stroke` or `fill` properties but valid opacity values. ### 1.84 - 2021-08-02
7
diff --git a/examples/linkedcat/css/main.css b/examples/linkedcat/css/main.css @@ -910,3 +910,11 @@ label.q-error, #input-container label.q-error, .timefield .error { } } + +@media screen and (max-width: 360px) { + + .info-btn { + display: none; + } + +} \ No newline at end of file
2
diff --git a/server/app.js b/server/app.js @@ -17,7 +17,6 @@ const logger = require('morgan'); const bodyParser = require('body-parser'); const http = require('http'); const https = require('https'); -const cors = require('cors'); const debug = require('debug')('busy:serverApp'); const steem = require('steem'); @@ -55,7 +54,6 @@ app.use((req, res, next) => { app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); -app.use(cors()); if (process.env.NODE_ENV === 'production') { app.use(express.static(path.join(rootDir, 'public'), { maxAge: OneWeek }));
2
diff --git a/js/kkex.js b/js/kkex.js @@ -121,8 +121,8 @@ module.exports = class kkex extends Exchange { if (p['mark_asset'] + p['base_asset'] === market) { quoteId = p['base_asset']; baseId = p['mark_asset']; - let str = p['price_scale'].toString (); - let scale = str.length - 1; + let price_scale_str = p['price_scale'].toString (); + let scale = price_scale_str.length - 1; precision = { 'price': scale, 'amount': scale,
10
diff --git a/components/core/CarouselSidebar.js b/components/core/CarouselSidebar.js @@ -518,51 +518,6 @@ class CarouselSidebar extends React.Component { this.props.onNext(); }; - _handleToggleVisibility = async (e) => { - if (this.props.external || !this.props.isOwner || !this.props.viewer) return; - const isPublic = this.props.file.isPublic; - const slateIsPublic = this.props.data?.isPublic; - let selected = cloneDeep(this.state.selected); - - const slateIds = Object.entries(this.state.selected) - .filter((entry) => entry[1]) - .map((entry) => entry[0]); - const publicSlateIds = []; - const publicSlateNames = []; - for (let slate of this.props.viewer.slates) { - if (slate.isPublic && slateIds.includes(slate.id)) { - publicSlateNames.push(slate.data.name); - publicSlateIds.push(slate.id); - selected[slate.id] = false; - } - } - if (publicSlateNames.length) { - const slateNames = publicSlateNames.join(", "); - const message = `Making this file link-viewing only will remove it from the following public collections: ${slateNames}. Do you wish to continue?`; - if (!window.confirm(message)) { - return; - } - } - - if (this.props.carouselType === "SLATE" && slateIsPublic) { - const slateId = this.props.data.id; - let slates = cloneDeep(this.props.viewer.slates); - for (let slate of slates) { - if (slate.id === slateId) { - slate.objects = slate.objects.filter((obj) => obj.id !== this.props.file.id); - break; - } - } - this.props.onAction({ type: "UPDATE_VIEWER", viewer: { slates } }); - } - - let response = await Actions.toggleFilePrivacy({ ...this.props.file, isPublic: !isPublic }); - Events.hasError(response); - if (isPublic) { - this.setState({ selected }); - } - }; - render() { const isPublic = this.props.file.isPublic; const file = this.props.file; @@ -822,74 +777,6 @@ class CarouselSidebar extends React.Component { ); } - let privacy; - if (editingAllowed) { - privacy = ( - <div> - <System.P1 css={STYLES_SECTION_HEADER} style={{ marginBottom: 12 }}> - Visibility - </System.P1> - <System.P1 - css={STYLES_TEXT} - style={{ - marginTop: 12, - }} - > - {isPublic - ? `This ${ - isLink ? "link" : "file" - } is currently visible to everyone and searchable within Slate. It may appear in activity feeds and explore.` - : isLink - ? "This link is only visible to you" - : "This file is only visible to those with the link."} - </System.P1> - <RadioGroup - name="isPublic" - options={[ - { - value: true, - label: ( - <div style={{ display: "flex", alignItems: "center" }}> - <SVG.Globe height="16px" style={{ marginRight: 8 }} /> - Public - </div> - ), - }, - { - value: false, - label: ( - <div style={{ display: "flex", alignItems: "center" }}> - <SVG.SecurityLock height="16px" style={{ marginRight: 8 }} /> - Link-viewing only - </div> - ), - }, - ]} - dark={true} - style={{ marginTop: 12 }} - labelStyle={{ fontFamily: Constants.font.medium }} - selected={isPublic} - onChange={this._handleToggleVisibility} - /> - {!isPublic && !isLink && ( - <Input - full - value={isLink ? file.data.link.url : Strings.getURLfromCID(file.cid)} - name="copyLink" - readOnly - copyable - style={{ - fontSize: Constants.typescale.lvl1, - ...STYLES_INPUT, - marginTop: 12, - }} - textStyle={{ color: Constants.system.white }} - /> - )} - </div> - ); - } - return ( <> {this.state.modalShow && ( @@ -913,7 +800,6 @@ class CarouselSidebar extends React.Component { </div> {elements} <div css={STYLES_ACTIONS}>{actions}</div> - {privacy} {uploadCoverImage} {!this.props.external && this.props.viewer && ( <> @@ -967,20 +853,3 @@ class CarouselSidebar extends React.Component { } export default withTheme(CarouselSidebar); - -{ - /* <> - <div css={STYLES_SECTION_HEADER} style={{ margin: "48px 0px 8px 0px" }}> - Visibility - </div> - <div css={STYLES_OPTIONS_SECTION}> - <div css={STYLES_TEXT}>{isVisible ? "Everyone" : "Link only"}</div> - <Toggle dark active={isVisible} onChange={this._handleToggleVisibility} /> - </div> - <div style={{ color: Constants.system.grayLight2, marginTop: 8 }}> - {isVisible - ? "This file is currently visible to everyone and searchable within Slate. It may appear in activity feeds and explore." - : "This file is currently not visible to others unless they have the link."} - </div> - </> */ -}
2
diff --git a/lib/api-search.js b/lib/api-search.js import qs from 'querystring' -import getConfig from 'next/config' -const {publicRuntimeConfig} = getConfig() -const API_ADRESSE = publicRuntimeConfig.API_ADRESSE || 'https://api-adresse.data.gouv.fr' +const API_ADRESSE = process.env.NEXT_PUBLIC_API_ADRESSE || 'https://api-adresse.data.gouv.fr' export function search(args) { const url = `${API_ADRESSE}/search/?${qs.stringify(args)}`
0
diff --git a/src/js/components/Notification/Notification.js b/src/js/components/Notification/Notification.js @@ -23,7 +23,7 @@ const Notification = ({ message, onClose, status, title, toast }) => { const timer = setTimeout(close, theme.notification.time); return () => clearTimeout(timer); - }, [close]); + }, [close, theme.notification.time]); const { icon: CloseIcon } = theme.notification.close; const { icon: StatusIcon, color } = theme.notification[status];
1
diff --git a/compiletools/bis_create_wasm_module.js b/compiletools/bis_create_wasm_module.js const program=require('commander'); const genericio=require('../js/core/bis_genericio.js'); const fs=require('fs'); -const bisdate=require('../build/wasm/bisdate.js'); - var help = function() { @@ -51,6 +49,38 @@ if (program.output===null || program.input===null) { process.exit(); } +var getTime=function(nobracket=0) { + // http://stackoverflow.com/questions/7357734/how-do-i-get-the-time-of-day-in-javascript-node-js + + var date = new Date(); + + var hour = date.getHours(); + hour = (hour < 10 ? "0" : "") + hour; + + var min = date.getMinutes(); + min = (min < 10 ? "0" : "") + min; + + var sec = date.getSeconds(); + sec = (sec < 10 ? "0" : "") + sec; + + if (nobracket===0) + return "[" + hour + ":" + min + ":" + sec +"]"; + return hour + ":" + min + ":" + sec; +}; + +var getDate=function(sep="_") { + // http://stackoverflow.com/questions/7357734/how-do-i-get-the-time-of-day-in-javascript-node-js + + var date = new Date(); + var year = date.getFullYear(); + var month = date.getMonth() + 1; + month = (month < 10 ? "0" : "") + month; + var day = date.getDate(); + day = (day < 10 ? "0" : "") + day; + return year+sep+month+sep+day; +}; + + console.log('++++ Raw Binary WASM Filename=',program.input); let d=null; try { @@ -66,12 +96,15 @@ let str=genericio.tozbase64(arr); // console.log('++++ BisWASM loaded as zbase-64 string, length=',biswebpack.length); +let a=getDate("/"); +let b=getTime(1); + let output_text=` (function () { - const biswebpack= { binary: "${str}", date : "${bisdate.date}, ${bisdate.time}" }; + const biswebpack= { binary: "${str}", date : "${a}, ${b}" }; if (typeof module !== "undefined" && module.exports) { module.exports = biswebpack;
2
diff --git a/apps/circlesclock/app.js b/apps/circlesclock/app.js @@ -41,7 +41,7 @@ const colorRed = '#ff0000'; const colorGreen = '#008000'; const colorBlue = '#0000ff'; const colorYellow = '#ffff00'; -const widgetOffset = showWidgets ? 12 : 0; +const widgetOffset = showWidgets ? 14 : 0; const h = g.getHeight() - widgetOffset; const w = g.getWidth(); const hOffset = 30 - widgetOffset; @@ -55,9 +55,9 @@ const radiusOuter = 22; const radiusInner = 16; function draw() { - g.reset(); + g.clear(true); g.setColor(colorBg); - g.fillRect(0, 0, w, h); + g.fillRect(0, widgetOffset, w, h); // time g.setFont("Vector:50"); @@ -265,7 +265,7 @@ function shortValue(v) { } function getSteps() { - if (WIDGETS.wpedom !== undefined) { + if (WIDGETS && WIDGETS.wpedom !== undefined) { return WIDGETS.wpedom.getSteps(); } return 0; @@ -307,8 +307,6 @@ if (isCircleEnabled("battery")) { }); } -g.clear(); - Bangle.setUI("clock"); Bangle.loadWidgets(); if (!showWidgets) {
7
diff --git a/data/brands/amenity/bicycle_rental.json b/data/brands/amenity/bicycle_rental.json { "displayName": "BikeMi", "id": "bikemi-3d5df6", - "locationSet": {"include": ["it"]}, + "locationSet": {"include": [[9.2,45.45]]}, + "note": "location: Milan (ISO_3166-2:IT - it-mi), Italy", "tags": { "amenity": "bicycle_rental", "brand": "BikeMi",
12
diff --git a/tests/generators/run_generators_in_browser.js b/tests/generators/run_generators_in_browser.js @@ -32,8 +32,8 @@ async function runLangGeneratorInBrowser(browser, filename, codegenFn) { } /** - * Runs the generator tests in Firefox. It uses webdriverio to - * launch Firefox and load index.html. Outputs a summary of the test results + * Runs the generator tests in Chrome. It uses webdriverio to + * launch Chrome and load index.html. Outputs a summary of the test results * to the console and outputs files for later validation. * @return the Thenable managing the processing of the browser tests. */
3
diff --git a/docs/api.md b/docs/api.md @@ -91,30 +91,33 @@ Chainable method that clears all data recorded for `fetch()`'s calls. *It will n ## Inspecting how `fetch()` has been called -**For the methods below `filter`, if given, should be either** -- the name of a route (see advanced usage below) -- equal to `matcher.toString()` for any unnamed route. You _can_ pass in the original regex or function used as a matcher, but they will be converted to strings and used to look up values in fetch-mock's internal maps of calls, rather than used as regexes or functions +### Filtering +Most of the methods below accept two parameters, `(filter, method)` +- `filter` Enables filtering fetch calls for the most commonly use cases. It can be: + - the name of a route + - The value of `matcher` or `matcher.toString()` for any unnamed route. You _can_ pass in the original regex or function as a matcher, but they will be converted to strings and used to look up values in fetch-mock's internal maps of calls, _not_ used as regexes or functions executed on teh url - An exact url - `true` for matched calls only - `false` for unmatched calls only -If `filter` is undefined all calls to `fetch` are included + - `undefined` for all calls to fetch +- `method` A http method to filter by -#### `called(filter)` +#### `called(filter, method)` Returns a Boolean indicating whether fetch was called and a route was matched. If `filter` is specified it only returns `true` if that particular route was matched. #### `done(filter)` -Returns a Boolean indicating whether fetch was called the expected number of times (or at least once if the route defines no expectation is set for the route). If no `filter` is passed it returns `true` if every route has been called the number of expected times. +Returns a Boolean indicating whether fetch was called the expected number of times (or at least once if the route defines no expectation is set for the route). _Unlike the other methods for inspecting calls, unmatched calls are irrelevant_. Therefore, if no `filter` is passed, `done()` returns `true` if every route has been called the number of expected times. -#### `calls(filter)` +#### `calls(filter, method)` Returns an object `{matched: [], unmatched: []}` containing arrays of all calls to fetch, grouped by whether fetch-mock matched them or not. If `filter` is specified then only calls to fetch matching that route are returned. -#### `lastCall(filter)` +#### `lastCall(filter, method)` Returns the arguments for the last matched call to fetch -#### `lastUrl(filter)` +#### `lastUrl(filter, method)` Returns the url for the last matched call to fetch. When `fetch` was last called using a `Request` instance, the url will be extracted from this -#### `lastOptions(filter)` +#### `lastOptions(filter, method)` Returns the options for the last matched call to fetch. When `fetch` was last called using a `Request` instance, the entire `Request` instance will be returned #### `flush()`
7
diff --git a/contribs/gmf/less/datepicker.less b/contribs/gmf/less/datepicker.less @datepicker-font-size : 1.1rem; #ui-datepicker-div { + font-family: @font-family-base; font-size: @datepicker-font-size; border-radius: inherit; box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
4
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -7,6 +7,45 @@ pull request for the newsletter is opened the Saturday before publishing. Any review of the newsletter PRs is appreciated. However, feedback received after Tuesday UTC may not be incorporated due to time constraints. +### Translations + +The Bitcoin Optech website supports multiple languages for both newsletters and +blog posts. If you are interested in contributing translations for the +newsletter (thank you!), we have some best practices to help keep things +standardized: + +- View the list of existing open pull requests to see which newletters/blogs + are already being translated +- Ensure your language is listed under the `languages` field in the + `_config.yml` file + - We are using the [2 character ISO 639-1 language codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) +- Create a file with the same name as the `en` language variant: + - For newsletters, place the file in `_posts/<language code>/newsletters/` + - For blog posts, place the file in `_posts/<language code>/` +- Set the `lang` field to `<language code>` +- Append `-<language code>` to both the `slug` and `name` fields +- To help with reviewing, squash commits where it makes sense +- Using a commit message similar to `news70: add Japanese translation` helps + keep translations easily visible in the commit log +- Testing your translation + - Follow the instuctions in the [README.md](https://github.com/bitcoinops/bitcoinops.github.io/blob/master/README.md) + - `make preview` to view the local website and review + - `make production` to run additional checks (link checking, linting, etc) + - For the page you have translated, ensure that the language code link shows + up on the `en` language variant + - Check that the page renders properly +- Create a pull request to the + [https://github.com/bitcoinops/bitcoinops.github.io]() repository + - One newsletter per PR allows for easier review + - Allowing edits from maintainers permits maintainers to make additional + commits to your PR branch +- Pat yourself on the back for your contribution! + +Due to the timeliness of the newsletters, we ask that, where possible, +translation PRs are opened within a week of the original newsletter being +published for new newsletters. That said, we also encourage translation of +older newsletters and blog posts as well. + ## Compatibility Matrix Data The compatibility matrix section of the website is built from
0
diff --git a/assets/js/googlesitekit/datastore/user/date-range.js b/assets/js/googlesitekit/datastore/user/date-range.js @@ -27,7 +27,6 @@ import invariant from 'invariant'; import { getPreviousDate, getDateString, - getPreviousWeekDate, isValidDateRange, isValidDateString, INVALID_DATE_RANGE_ERROR, @@ -147,14 +146,12 @@ export const selectors = { * @param {boolean} [options.compare] Set to true if date ranges to compare should be included. Default is: false. * @param {number} [options.offsetDays] Number of days to offset. Default is: 0. * @param {string} [options.referenceDate] Used for testing to set a static date. Default is the datastore's reference date. - * @param {boolean} [options.weekDayAlign] Set to true if the compared date range should be aligned for the weekdays. Default is: false. * @return {DateRangeReturnObj} Object containing dates for date ranges. */ getDateRangeDates( state, { compare = false, offsetDays = 0, referenceDate = state.referenceDate, - weekDayAlign = false, } = {} ) { const dateRange = selectors.getDateRange( state ); const endDate = getPreviousDate( referenceDate, offsetDays ); @@ -164,9 +161,7 @@ export const selectors = { const dates = { startDate, endDate }; if ( compare ) { - const compareEndDate = weekDayAlign - ? getPreviousWeekDate( endDate, numberOfDays ) - : getPreviousDate( startDate, 1 ); + const compareEndDate = getPreviousDate( startDate, 1 ); const compareStartDate = getPreviousDate( compareEndDate, numberOfDays - 1 ); dates.compareStartDate = compareStartDate; dates.compareEndDate = compareEndDate;
2
diff --git a/app/components/Account/AccountSelector.jsx b/app/components/Account/AccountSelector.jsx @@ -231,7 +231,9 @@ class AccountSelector extends React.Component { account.get("name") ); account.accountType = this.getInputType(account.get("name")); - account.accountStatus = ChainStore.getAccountMemberStatus(account); + account.accountStatus = + ChainStore.getAccountMemberStatus(account) || + "unknown"; account.statusText = !account.isKnownScammer ? counterpart.translate( "account.member." + account.accountStatus @@ -272,9 +274,9 @@ class AccountSelector extends React.Component { if (this.props.excludeAccounts.indexOf(accountName) !== -1) return null; let account = ChainStore.getAccount(accountName); - let account_status = ChainStore.getAccountMemberStatus( - account - ); + let account_status = + ChainStore.getAccountMemberStatus(account) || + "unknown"; let account_status_text = !accountUtils.isKnownScammer( accountName )
12
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -7,6 +7,7 @@ metaversfile can load many file types, including javascript. import * as THREE from 'three'; import {GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader.js'; import {DRACOLoader} from 'three/examples/jsm/loaders/DRACOLoader.js'; +import {Text} from 'troika-three-text'; import React from 'react'; import * as ReactThreeFiber from '@react-three/fiber'; import * as Y from 'yjs'; @@ -830,6 +831,9 @@ export default () => { useAvatarInternal() { return Avatar; }, + useTextInternal() { + return Text; + }, useGradientMapsInternal() { return gradientMaps; },
0
diff --git a/src/main/resources/public/js/src/launches/logLevel/LogItemNextError/LogItemNextErrorView.js b/src/main/resources/public/js/src/launches/logLevel/LogItemNextError/LogItemNextErrorView.js @@ -61,8 +61,11 @@ define(function (require, exports, module) { this.currentLastPage = this.pagingModel.get('number'); this.render(); this.listenTo(this.filterModel, 'change:newSelectionParameters change:newEntities', this.onChangeFilter); - this.listenTo(this.pagingModel, 'change', this.onChangePaging); - this.onChangeFilter(); + var self = this; + this.onChangeFilter() + .done(function() { + self.listenTo(self.pagingModel, 'change', self.onChangePaging); + }); }, render: function () { this.$el.html(Util.templates(this.template, {})); @@ -128,7 +131,7 @@ define(function (require, exports, module) { }, onChangePaging: function(model) { var self = this; - if(model.changed.size) { + if(model.changed.size && this.collection.length) { self.model.set({load: true}); this.checkLastLog() .done(function() { @@ -140,13 +143,14 @@ define(function (require, exports, module) { } }, checkPage: function() { - if(this.pagingModel.get('number') >= this.currentLastPage) { + if(this.pagingModel.get('number') >= this.currentLastPage || !this.currentLastPage) { this.model.set({disable: true}); }else { this.model.set({disable: false}); } }, onChangeFilter: function() { + var async = $.Deferred(); var errorFilter = false; _.each(this.filterModel.getEntitiesObj(), function(field) { if(field.filtering_field == 'level' && (~field.value.search(/ERROR/) || field.value == '')) { @@ -167,10 +171,13 @@ define(function (require, exports, module) { self.model.set({load: false}); self.checkPage(); }); - }); + }) + .always(function(){ async.resolve(); }) } else { this.model.set({disable: true, load: false}); + async.resolve(); } + return async; }, checkLastLog: function() { var self = this
1
diff --git a/.vscode/settings.json b/.vscode/settings.json "returnFormat": "", "neverAskTemplate": true }, + "files.watcherExclude": { + "**/project/lib/**": true + } "files.trimTrailingWhitespace": true, "C_Cpp.autoAddFileAssociations": false, } \ No newline at end of file
8
diff --git a/config/application.rb b/config/application.rb @@ -125,25 +125,15 @@ module CartoDB user_feed_deps.js user_feed.js - user_feed_vendor.js user_feed_new.css - user_feed_new_vendor.css api_keys_new.js - api_keys_new_vendor.js public_dashboard.js - public_dashboard_vendor.js public_table_new.js - public_table_new_vendor.js data_library_new.js - data_library_new_vendor.js mobile_apps.js - mobile_apps_vendor.js sessions.js - sessions_vendor.js confirmation.js - confirmation_vendor.js organization.js - organization_vendor.js common_dashboard.js tipsy.js @@ -151,22 +141,18 @@ module CartoDB statsc.js builder.js - builder_vendor.js builder_embed.js - builder_embed_vendor.js dataset.js - dataset_vendor.js common.js + common_vendor.js deep_insights.css deep_insights_new.css - deep_insights_new_vendor.css cdb.css cdb/themes/css/cartodb.css cdb/themes/css/cartodb.ie.css common.css common_new.css - common_new_vendor.css old_common.css dashboard.css cartodb.css @@ -175,7 +161,6 @@ module CartoDB common_editor3.css editor3.css - editor3_vendor.css builder_embed.css table.css @@ -187,7 +172,6 @@ module CartoDB password_protected.css public_dashboard.css public_dashboard_new.css - public_dashboard_new_vendor.css public_map.css public_map_new.css embed_map.css
2
diff --git a/articles/tutorials/manage-dashboard-admins.md b/articles/tutorials/manage-dashboard-admins.md description: How to add and remove admin users in the Auth0 dashboard. --- +::: note +Please see [Reset Your Auth0 Account Password](/tutorials/reset-account-password) if you're having issues logging in. +::: + # Manage Admins in the Dashboard Admin users can be added and removed from the dashboard, by going to **Account Settings** and choosing the [Dashboard Admins](${manage_url}/#/account/admins) tab.
0
diff --git a/lib/plugins/aws/invokeLocal/index.test.js b/lib/plugins/aws/invokeLocal/index.test.js @@ -570,7 +570,7 @@ describe('AwsInvokeLocal', () => { .then(() => { expect(serverless.cli.consoleLog.lastCall.args[0]).to.contain('"Succeed"'); const calls = serverless.cli.consoleLog.getCalls().reduce((acc, call) => ( - _.includes(call.args[0], 'Succeed') ? [call, ...acc] : acc + _.includes(call.args[0], 'Succeed') ? [call].concat(acc) : acc ), []); expect(calls.length).to.equal(1); }); @@ -601,7 +601,7 @@ describe('AwsInvokeLocal', () => { .then(() => { expect(serverless.cli.consoleLog.lastCall.args[0]).to.contain('"Succeed"'); const calls = serverless.cli.consoleLog.getCalls().reduce((acc, call) => ( - _.includes(call.args[0], 'Succeed') ? [call, ...acc] : acc + _.includes(call.args[0], 'Succeed') ? [call].concat(acc) : acc ), []); expect(calls.length).to.equal(1); });
1
diff --git a/articles/api-auth/token-renewal-in-safari.md b/articles/api-auth/token-renewal-in-safari.md @@ -26,8 +26,7 @@ By default, ITP is active. You can determine if the Safari version you are using Enabling ITP causes the browser to behave as if you had disabled third-party cookies in the browser: **checkSession()** is unable to access the current user's session, which makes it impossible to obtain a new token without displaying anything to the user. -This is akin to the way OpenID Connect uses iframes for handling [sessions] -(/sessions) in single-page applications (SPAs). Auth0 is working with [OpenID Connect AB/Connect Working Group](http://openid.net/wg/connect/) to determine if this issue can be addressed at the standards level. +This is akin to the way OpenID Connect uses iframes for handling [sessions](/sessions) in single-page applications (SPAs). ## Solution
2
diff --git a/token-metadata/0xaF1250fa68D7DECD34fD75dE8742Bc03B29BD58e/metadata.json b/token-metadata/0xaF1250fa68D7DECD34fD75dE8742Bc03B29BD58e/metadata.json "symbol": "IHF", "address": "0xaF1250fa68D7DECD34fD75dE8742Bc03B29BD58e", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/packages/component-library/stories/Sandbox.story.js b/packages/component-library/stories/Sandbox.story.js @@ -218,7 +218,6 @@ class SandboxStory extends React.Component { // console.log(this.state); return this.state.hasFetched ? ( <Sandbox - mapboxStyle={'mapbox://styles/hackoregon/cjiazbo185eib2srytwzleplg'} layerData={this.formatData( this.state.defaultFoundation, this.state.defaultSlides
2
diff --git a/CHANGELOG.md b/CHANGELOG.md ## 7.8.1 (unreleased) -### Breaking - -### Feature - ### Bugfix -### Internal +- Remove supposed fix to form.jsx again, as it apparently did not really fix anything but only broke stuff @jackahl ## 7.8.0 (2020-08-18) - Add cms-only theme that allows to completely remove semantic-ui from public facing views @pnicolli @nzambello -### Bugfix - -- Remove supposed fix to form.jsx again, as it apparently did not really fix anything but only broke stuff @jackahl - ### Internal ## 7.7.2 (2020-08-18)
6
diff --git a/markdown/dev/howtos/dev/freesewing-org/en.md b/markdown/dev/howtos/dev/freesewing-org/en.md @@ -18,7 +18,7 @@ Update the command above with the path of your own fork on Github Enter the newly installed repository: ```bash -cd freesewing.dev +cd freesewing.org ``` Copy the `.env.example` file to `.env`
14
diff --git a/lib/recurly/risk/three-d-secure/strategy/adyen.js b/lib/recurly/risk/three-d-secure/strategy/adyen.js @@ -134,7 +134,13 @@ export default class AdyenStrategy extends ThreeDSecureStrategy { redirect_url: adyenRedirectParams.url, ...adyenRedirectParams.data }; - this.frame = recurly.Frame({ type: Frame.TYPES.IFRAME, path: '/three_d_secure/start', payload, container }) + this.frame = recurly.Frame({ + type: Frame.TYPES.IFRAME, + path: '/three_d_secure/start', + payload, + container, + defaultEventName: 'adyen-3ds-challenge' + }) .on('error', cause => threeDSecure.error('3ds-auth-error', { cause })) .on('done', results => this.emit('done', results)); }
3
diff --git a/src/DevChatter.Bot.Core/Games/RockPaperScissors/RockPaperScissorsGame.cs b/src/DevChatter.Bot.Core/Games/RockPaperScissors/RockPaperScissorsGame.cs @@ -128,8 +128,7 @@ public void AttemptToStartNewGame(IChatClient chatClient, string username) private void StartNewGame(IChatClient chatClient, string username) { _logger.LogInformation($"{nameof(StartNewGame)}({chatClient.GetType().Name}, {username}) - Starting Game"); - chatClient.SendMessage( - $"{username} wants to play Rock-Paper-Scissors! You have {SECONDS_TO_JOIN_GAME} seconds to join! To join, simply type \"!rps rock\", \"!rps paper\", or \"!rps scissors\" in chat."); + chatClient.SendMessage(Messages.GetGameStartMessage(username,SECONDS_TO_JOIN_GAME)); var triggerEngGame = new OneTimeCallBackAction(SECONDS_TO_JOIN_GAME, () => PlayMatch(chatClient)); _automatedActionSystem.AddAction(triggerEngGame); @@ -143,5 +142,7 @@ class Messages { public const string LAST_CHANCE_TO_JOIN = "Only 30 seconds left to join! Type \"!rps rock\", \"!rps paper\", or \"!rps scissors\""; + + public static string GetGameStartMessage(string username, int secondsToJoin) => $"{username} wants to play Rock-Paper-Scissors! You have {secondsToJoin} seconds to join! To join, simply type \"!rps rock\", \"!rps paper\", or \"!rps scissors\" in chat."; } }
5
diff --git a/src/utils/wallet.js b/src/utils/wallet.js @@ -591,7 +591,7 @@ class Wallet { const balance = await account.getAccountBalance() // TODO: Should lockup contract balance be retrieved separately only when needed? - const re = new RegExp(`.${ACCOUNT_ID_SUFFIX}$`); + const re = new RegExp(`\.${ACCOUNT_ID_SUFFIX}$`); const lockupAccountId = accountId.replace(re, '.' + LOCKUP_ACCOUNT_ID_SUFFIX) try { // TODO: Makes sense for a lockup contract to return whole state as JSON instead of method per property
13
diff --git a/src/lime/_internal/backend/html5/HTML5Application.hx b/src/lime/_internal/backend/html5/HTML5Application.hx @@ -253,7 +253,7 @@ class HTML5Application { } else { - nextUpdate = currentUpdate + framePeriod; + nextUpdate = currentUpdate - (currentUpdate % framePeriod) + framePeriod; //while (nextUpdate <= currentUpdate) { //
7
diff --git a/services/datasources/lib/datasources/url/bigquery.rb b/services/datasources/lib/datasources/url/bigquery.rb @@ -237,7 +237,7 @@ module CartoDB end def list_tables(project_id, dataset_id) - tables = @bigquery_api.list_tables(project_id, dataset_id, max_results: MAX_DATASETS).tables + tables = @bigquery_api.list_tables(project_id, dataset_id, max_results: MAX_TABLES).tables if tables tables.map { |t| qualified_name = t.id.gsub(':', '.') # "#{project_id}.#{dataset_id}.#{t.table_reference.table_id}"
4
diff --git a/token-metadata/0x256845e721C0c46d54E6afBD4FA3B52CB72353EA/metadata.json b/token-metadata/0x256845e721C0c46d54E6afBD4FA3B52CB72353EA/metadata.json "symbol": "UNIUSD", "address": "0x256845e721C0c46d54E6afBD4FA3B52CB72353EA", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/generate/templates/templates/nodegit.js b/generate/templates/templates/nodegit.js @@ -8,10 +8,6 @@ try { var rawApi; -if (worker && (!worker.isMainThread || typeof importScripts === "function")) { - throw new Error("NodeGit is currently not safe to run in a worker thread or web worker"); // jshint ignore:line -} - // Attempt to load the production release first, if it fails fall back to the // debug release. try {
11
diff --git a/tasks/task_runners.py b/tasks/task_runners.py @@ -254,7 +254,7 @@ def run_task(run_uid,run,stage_dir,download_dir): tabular_outputs = [] if 'geojson' in export_formats: - geojson = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=f"{valid_name}_{run_uid}") + geojson = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=valid_name) start_task('geojson') if 'geopackage' in export_formats: @@ -263,7 +263,7 @@ def run_task(run_uid,run,stage_dir,download_dir): start_task('geopackage') if 'shp' in export_formats: - shp = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=f"{valid_name}_{run_uid}") + shp = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=valid_name) start_task('shp') if 'kml' in export_formats: @@ -385,7 +385,7 @@ def run_task(run_uid,run,stage_dir,download_dir): tabular_outputs = [] if 'geojson' in export_formats: - geojson = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=f"{valid_name}_{run_uid}") + geojson = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=valid_name) start_task('geojson') if 'geopackage' in export_formats: @@ -394,7 +394,7 @@ def run_task(run_uid,run,stage_dir,download_dir): start_task('geopackage') if 'shp' in export_formats: - shp = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=f"{valid_name}_{run_uid}") + shp = Galaxy(settings.GALAXY_API_URL,geom,mapping=mapping,file_name=valid_name) start_task('shp') if 'kml' in export_formats:
13
diff --git a/LICENSE b/LICENSE The MIT License (MIT) -Copyright (c) 2015-2016 Oli Folkerd +Copyright (c) 2015-2017 Oli Folkerd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
3
diff --git a/src/test-run/index.js b/src/test-run/index.js @@ -396,7 +396,6 @@ export default class TestRun extends AsyncEventEmitter { _rejectCurrentDriverTask (err) { err.callsite = err.callsite || this.currentDriverTask.callsite; - err.isRejectedDriverTask = true; this.currentDriverTask.reject(err); this._removeAllNonServiceTasks(); @@ -690,6 +689,7 @@ export default class TestRun extends AsyncEventEmitter { _disconnect (err) { this.disconnected = true; + if (this.currentDriverTask) this._rejectCurrentDriverTask(err); this.emit('disconnected', err);
0
diff --git a/lib/core/session.js b/lib/core/session.js @@ -14,10 +14,10 @@ class Session extends EventEmitter { constructor(nightwatchInstance) { super(); - this.sessionId = 0; - this.capabilities = null; this.settings = nightwatchInstance.settings; - this.transport = nightwatchInstance.transport; + this.sessionId = 0; + + this.__protocol = nightwatchInstance.transport; this.setDesiredCapabilities(); this.createCommandQueue(); @@ -27,6 +27,10 @@ class Session extends EventEmitter { return this.__commandQueue; } + get transport() { + return this.__protocol; + } + get startSessionEnabled() { return this.settings.start_session; } @@ -35,10 +39,6 @@ class Session extends EventEmitter { return this.settings.end_session_on_fail; } - get browserName() { - return this.capabilities && this.capabilities.browserName; - } - getSessionId() { return this.__sessionId; }
13
diff --git a/js/gateio.js b/js/gateio.js @@ -3258,7 +3258,7 @@ module.exports = class gateio extends Exchange { * @param {dict} params exchange specific params * @param {bool} params.stop true for fetching stop orders * @param {str} params.type spot, swap or future, if not provided this.options['defaultType'] is used - * @param {str} params.marginType 'cross' or 'isolated' - marginType for margin trading if not provided this.options['defaultMarginType'] is used + * @param {str} params.marginMode 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used * @returns An array of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure} */ return await this.fetchOrdersByStatus ('finished', symbol, since, limit, params);
14
diff --git a/src/components/timeslider/timeslider.js b/src/components/timeslider/timeslider.js @@ -529,7 +529,7 @@ const TimeSlider = Component.extend({ return function() { if (_this.model.time.playing) - _this.model.time.pause(); + _this.model.time.set("playing", false, null, false); _this._optionClasses(); _this.element.classed(class_dragging, true);
14
diff --git a/js/columnWidgets.js b/js/columnWidgets.js @@ -5,8 +5,12 @@ var parsePos = require('./parsePos'); var fieldTypeSelector = x => x.fieldType; var columnFieldTypeSelector = x => x.column.fieldType; + +// XXX check for null field[0] is an odd artifact of denseMatrix transform which +// overwrites fields with probes, if the server returns probes. If a gene is not +// recognized, the probe list is empty. Needs a better semantics. var annotationSelector = ({fields, refGene}) => - parsePos(fields[0]) ? 'chrom' : (refGene ? 'gene' : null); + parsePos(fields[0] || '') ? 'chrom' : (refGene ? 'gene' : null); var widget = { cmp: multi(fieldTypeSelector),
9
diff --git a/README.md b/README.md @@ -25,10 +25,12 @@ This extension uses [Locust](https://github.com/buttercup/locust) to perform log <img src="https://raw.githubusercontent.com/buttercup/buttercup-browser-extension/master/chrome-extension-2.jpg" /> ### Supported browsers -[Chrome](https://chrome.google.com/webstore/detail/buttercup/heflipieckodmcppbnembejjmabajjjj?hl=en-GB), [Firefox](https://addons.mozilla.org/en-US/firefox/addon/buttercup-pw/) and [Opera](https://addons.opera.com/en/extensions/details/buttercup/) are supported. +[Chrome](https://chrome.google.com/webstore/detail/buttercup/heflipieckodmcppbnembejjmabajjjj?hl=en-GB) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/buttercup-pw/) are supported. Other browsers will be supported in order of request/popularity. Issues created for unsupported browsers, or for browsers not on the roadmap, may be closed without warning. +**Opera** is not supported due to their incredibly slow and unreliable release process. We will not be adding support for Opera. + #### Supported platforms The browsers listed above, running on Windows, Mac or Linux on a desktop platform. This extension is not supported on any mobile or tablet devices.
2
diff --git a/src/js/tippy.js b/src/js/tippy.js @@ -45,7 +45,10 @@ export default function tippy(targets, options, one) { : references ).reduce((acc, reference) => { const tip = reference && createTippy(reference, props) - return tip ? acc.concat(tip) : acc + if (tip) { + acc.push(tip) + } + return acc }, []) return {
7
diff --git a/docs/package.json b/docs/package.json "version": "2.7.0", "scripts": { "docs:build": "cat docs/* > index.md && npx @11ty/eleventy --config .eleventy.js", - "docs:watch": "npx @11ty/eleventy --config .eleventy.js --serve" + "docs:watch": "cat docs/* > index.md && npx @11ty/eleventy --config .eleventy.js --serve" }, "devDependencies": { "@11ty/eleventy": "^0.11.0",
13
diff --git a/helpers/routeHelpers.js b/helpers/routeHelpers.js @@ -4,8 +4,10 @@ module.exports = { handleRequestError: function(error, res) { if ((error === "NO_CLAIMS") || (error === "NO_FREE_PUBLIC_CLAIMS")){ res.status(307).sendFile(path.join(__dirname, '../public', 'noClaims.html')); - } else if (error.response.status === 500) { - res.status(400).send(error.response.data.error.message); + } else if (error.response){ + res.status(error.response.status).send(error.response.data.error.message); + } else if (error.code === "ECONNREFUSED") { + res.status(400).send("Connection refused. The daemon may not be running."); } else { res.status(400).send(error.toString()); };
9
diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx @@ -40,23 +40,6 @@ const TabContainer = styled.div` text-align: center; `; -const BugLink = styled.a` - font-size: ${constants.fontSizeMedium}; - font-weight: ${constants.fontWeightLight}; - color: ${constants.colorMutedLight} !important; - display: flex; - align-items: center; - margin-top: 2px; - margin-right: 15px; - & svg { - margin-right: 5px; - /* Override material-ui */ - color: currentColor !important; - width: 18px !important; - height: 18px !important; - } -`; - const AppLogoWrapper = styled.div` @media screen and (max-width: 800px) { display: none; @@ -71,6 +54,8 @@ const DropdownMenu = styled(Menu)` const DropdownMenuItem = styled(MenuItem)` color: ${constants.primaryTextColor} !important; + padding-bottom: 12px !important; + padding-top: 12px !important; `; const ToolbarHeader = styled(Toolbar)` @@ -193,15 +178,10 @@ ReportBug.propTypes = { }; const LogOut = ({ strings }) => ( - <BugLink - href={`${process.env.REACT_APP_API_HOST}/logout`} - rel="noopener noreferrer" - > - <LogOutButton /> - <span> + <DropdownMenuItem component="a" href={`${process.env.REACT_APP_API_HOST}/logout`} rel="noopener noreferrer"> + <LogOutButton style={{ marginRight: 32, width: 24, height: 24 }} /> {strings.app_logout} - </span> - </BugLink> + </DropdownMenuItem> ); LogOut.propTypes = {
1
diff --git a/token-metadata/0xFbEEa1C75E4c4465CB2FCCc9c6d6afe984558E20/metadata.json b/token-metadata/0xFbEEa1C75E4c4465CB2FCCc9c6d6afe984558E20/metadata.json "symbol": "DDIM", "address": "0xFbEEa1C75E4c4465CB2FCCc9c6d6afe984558E20", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/lib/tasks/db_maintenance.rake b/lib/tasks/db_maintenance.rake @@ -386,7 +386,7 @@ namespace :cartodb do org = Carto::Organization.find_by(name: args[:org_name]) owner = org.owner if owner - owner.db_service.setup_organization_role_permissions + owner.sequel_user.db_service.setup_organization_role_permissions else puts 'Organization without owner' end @@ -397,7 +397,7 @@ namespace :cartodb do Carto::Organization.find_each do |org| owner = org.owner if owner - owner.db_service.setup_organization_role_permissions + owner.sequel_user.db_service.setup_organization_role_permissions else puts "Organization without owner: #{org.name}" end @@ -1121,7 +1121,7 @@ namespace :cartodb do if owner puts "#{o.name}\t#{o.id}\tOwner: #{owner.username}\t#{owner.id}" begin - owner.db_service.setup_organization_role_permissions + owner.sequel_user.db_service.setup_organization_role_permissions rescue StandardError => e puts "Error: #{e.message}" CartoDB.notify_exception(e) @@ -1167,7 +1167,7 @@ namespace :cartodb do organizations = args[:organization_name].present? ? Carto::Organization.where(name: args[:organization_name]) : Carto::Organization.all run_for_organizations_owner(organizations) do |owner| begin - owner.db_service.grant_admin_permissions + owner.sequel_user.db_service.grant_admin_permissions rescue StandardError => e puts "ERROR for #{owner.organization.name}: #{e.message}" end @@ -1179,7 +1179,7 @@ namespace :cartodb do organizations = args[:organization_name].present? ? Carto::Organization.where(name: args[:organization_name]) : Carto::Organization.all run_for_organizations_owner(organizations) do |owner| begin - owner.db_service.configure_extension_org_metadata_api_endpoint + owner.sequel_user.db_service.configure_extension_org_metadata_api_endpoint rescue StandardError => e puts "ERROR for #{owner.organization.name}: #{e.message}" end @@ -1199,7 +1199,7 @@ namespace :cartodb do raise "ERROR: Organization #{args[:organization_name]} don't exists" if organizations.blank? and not args[:all_organizations] run_for_organizations_owner(organizations) do |owner| begin - result = owner.db_service.install_and_configure_geocoder_api_extension + result = owner.sequel_user.db_service.install_and_configure_geocoder_api_extension puts "Owner #{owner.username}: #{result ? 'OK' : 'ERROR'}" # TODO Improved using the execute_on_users_with_index when orgs have a lot more users owner.organization.users.each do |u|
14
diff --git a/generators/server/templates/_build.gradle b/generators/server/templates/_build.gradle @@ -16,7 +16,7 @@ buildscript { classpath "org.springframework.boot:spring-boot-gradle-plugin:${spring_boot_version}" classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7" <%_ if (!skipClient) { _%> - classpath "com.moowork.gradle:gradle-node-plugin:1.0.1" + classpath "com.moowork.gradle:gradle-node-plugin:1.1.1" <%_ } _%> classpath "io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE" //jhipster-needle-gradle-buildscript-dependency - JHipster will add additional gradle build script plugins here
3
diff --git a/assets/js/util/cache-data.js b/assets/js/util/cache-data.js * See the License for the specific language governing permissions and * limitations under the License. */ -/* global require, process */ const puppeteer = require( 'puppeteer' ); const fs = require( 'fs' );
2
diff --git a/src/components/dashboard/Dashboard.js b/src/components/dashboard/Dashboard.js @@ -4,20 +4,20 @@ import { StyleSheet, Text, View } from 'react-native' import { normalize } from 'react-native-elements' import { AccountConsumer } from '../appNavigation/AccountProvider' -import TabsView from '../appNavigation/TabsView' import { createStackNavigator, PushButton } from '../appNavigation/stackNavigation' +import TabsView from '../appNavigation/TabsView' +import { Avatar, BigNumber, Section, Wrapper } from '../common' +import Amount from './Amount' import Claim from './Claim' import FaceRecognition from './FaceRecognition' +import Reason from './Reason' import Receive from './Receive' -import Amount from './Amount' import ReceiveAmount from './ReceiveAmount' +import ScanQR from './ScanQR' import Send from './Send' import SendConfirmation from './SendConfirmation' -import Reason from './Reason' import SendLinkSummary from './SendLinkSummary' -import { Wrapper, Section, Avatar, BigNumber } from '../common' - export type DashboardProps = { screenProps: any, navigation: any @@ -109,5 +109,6 @@ export default createStackNavigator({ Send, SendLinkSummary, SendConfirmation, - FaceRecognition + FaceRecognition, + ScanQR })
0
diff --git a/src/encoded/tests/data/inserts/user.json b/src/encoded/tests/data/inserts/user.json "ENCORE" ], "uuid": "43f2f757-5cbf-490a-9787-a1ee85a4cdcd" + }, + { + "email": "[email protected]", + "first_name": "Jennifer", + "groups": [ + "admin" + ], + "job_title": "Data Wrangler", + "lab": "/labs/j-michael-cherry/", + "last_name": "Zamanian", + "schema_version": "8", + "status": "current", + "submits_for": [ + "/labs/j-michael-cherry/" + ], + "viewing_groups": [ + "community", + "ENCODE3", + "ENCODE4", + "GGR", + "REMC", + "ENCORE" + ], + "uuid": "454435fe-702d-4657-a955-641e5631982c" } ]
0
diff --git a/lib/ferryman/lib/executor.js b/lib/ferryman/lib/executor.js @@ -21,7 +21,7 @@ class TaskExec extends EventEmitter { assert(this._services.amqp, 'TaskExec should be created with ampq'); } - process(triggerOrAction, payload, cfg, snapshot) { // eslint-disable-line consistent-return + async process(triggerOrAction, payload, cfg, snapshot) { // eslint-disable-line consistent-return const passedCfg = Object.assign({}, cfg); const onError = async (err) => { @@ -34,21 +34,33 @@ class TaskExec extends EventEmitter { return onError(new Error('Process function is not found')); } - new Promise((resolve) => { - const result = triggerOrAction.process.bind(this)(payload, cfg, snapshot); - if (result) { - resolve(result); - } - }) - .then(async (data) => { + try { + const data = await triggerOrAction.process.bind(this)(payload, cfg, snapshot); if (data) { this.logger.debug('Process function is a Promise/generator/etc'); data.passedCfg = passedCfg; await this.emit('data', data); } await this.emit('end'); - }) - .catch(onError); + } catch (e) { + console.log(e); + onError(e); + } + // new Promise((resolve) => { + // const result = triggerOrAction.process.bind(this)(payload, cfg, snapshot); + // if (result) { + // resolve(result); + // } + // }) + // .then(async (data) => { + // if (data) { + // this.logger.debug('Process function is a Promise/generator/etc'); + // data.passedCfg = passedCfg; + // await this.emit('data', data); + // } + // await this.emit('end'); + // }) + // .catch(onError); } // getApiClient() {
14
diff --git a/src/js/components/FileInput/stories/CustomThemed/Custom.js b/src/js/components/FileInput/stories/CustomThemed/Custom.js @@ -24,7 +24,7 @@ const customTheme = { }, background: '#f2f2f2', border: { size: 'medium' }, - pad: { horizontal: 'large', vertical: 'medium' }, + pad: { horizontal: 'medium', vertical: 'small' }, round: 'small', label: { size: 'large', @@ -48,8 +48,10 @@ export const Custom = () => ( <Box width="medium"> <FileInput renderFile={(file) => ( - <Box direction="row" gap="small"> - <Text weight="bold">{file.name}</Text> + <Box> + <Text weight="bold" truncate> + {file.name} + </Text> <Text color="text-weak">{file.size} bytes</Text> </Box> )}
7
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -31,10 +31,12 @@ Most bug fixes are handled internally, but we will except pull requests for bug ### Pre-Requisites - [Node.js](https://nodejs.org) installation -- [Grunt](https://www.npmjs.com/package/grunt) +- [grunt-cli](https://gruntjs.com/getting-started) +- grunt-cli can be installed by running `npm install -g grunt-cli` - Tests use [Selenium Webdriver](http://seleniumhq.github.io/selenium/docs/api/javascript/index.html). ### Building the extension +- `npm install` has to be run before building the extension for the first time - Firefox 1. Run `npm run dev-firefox` 2. Load the extension in Firefox from the `build/firefox/dev` directory
3
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.206.1", + "version": "0.206.2", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/js/core/bis_bidsutils.js b/js/core/bis_bidsutils.js @@ -13,7 +13,6 @@ let labelsMap = {}; const dicomParametersFilename = 'dicom_job_info.json'; const sourceDirectoryName = 'sourcedata'; -//TODO: find 'task-name_run_bold.undefined' issue // DICOM2BIDS /** * Performs NII 2 Bids conversion on data generated by dcm2nii.
2
diff --git a/packages/app/src/server/routes/apiv3/in-app-notification.ts b/packages/app/src/server/routes/apiv3/in-app-notification.ts @@ -42,7 +42,7 @@ module.exports = (crowi) => { id: string, } - interface InewPaginationResult { + interface IseriarizedPaginationResult { docs: Array<IdocType | null>, totalDocs: number, offset: number, @@ -56,7 +56,7 @@ module.exports = (crowi) => { nextPage: number | null, } - const newPaginationResult: InewPaginationResult = { + const seriarizedPaginationResult: IseriarizedPaginationResult = { docs: [], totalDocs: paginationResult.totalDocs, offset: paginationResult.offset, @@ -83,7 +83,7 @@ module.exports = (crowi) => { console.log('serializedActionUsers', serializedActionUsers); - newPaginationResult.docs.push({ + seriarizedPaginationResult.docs.push({ status: doc.status, _id: doc._id, action: doc.action, @@ -94,14 +94,9 @@ module.exports = (crowi) => { actionUsers: serializedActionUsers, id: doc.status, }); - - - console.log('serializedActionUsers', serializedActionUsers); - - // console.log('newPaginationResult', newPaginationResult); }); - return res.apiv3(newPaginationResult); + return res.apiv3(seriarizedPaginationResult); });
10
diff --git a/README.md b/README.md # Example Storefront -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Freactioncommerce%2Fexample-storefront.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Freactioncommerce%2Fexample-storefront?ref=badge_shield) [Reaction Commerce](https://reactioncommerce.com/) is building a headless event-driven e-commerce ecosystem that empowers businesses to create a variety of dynamic shopping experiences. This Example Storefront is to serve as a reference on how to implement a web based storefront using the Reaction Commerce GraphQL API. You can fork this project as a jumping off point or create your own custom experience using your prefered client-side technology. While we feel our example storefront is full featured enough to use in production, it may be missing features your shop requires at this time.
2
diff --git a/js/components/cohortbuilder/components/EndStrategyEditor.js b/js/components/cohortbuilder/components/EndStrategyEditor.js @@ -3,6 +3,10 @@ define(['knockout', 'text!./EndStrategyEditorTemplate.html', '../EndStrategies', ko.components.register('date-offset-strategy', dateOffsetStrategyComponent); ko.components.register('custom-era-strategy', customEraStrategyComponent); + + function EndStrategyEditorViewModel(params) { + var self = this; + function getTypeFromStrategy(strategy) { if (strategy == null) return "default"; @@ -13,20 +17,7 @@ define(['knockout', 'text!./EndStrategyEditorTemplate.html', '../EndStrategies', throw new Error("Strategy instance does not resolve to a StrategyType."); } - function EndStrategyEditorViewModel(params) { - var self = this; - - self.strategyOptions = [ - { name: "default", text: "end of continuous observation"}, - { name: "dateOffset", text: "fixed duration relative to initial event"}, - { name: "customEra", text: "end of a continuous drug exposure"} - ] - - self.strategy = params.strategy; - self.conceptSets = params.conceptSets; - self.strategyType = ko.observable(getTypeFromStrategy(self.strategy())); - - self.setStrategy = function(strategyType) { + function setStrategy (strategyType) { switch(strategyType) { case 'dateOffset': self.strategy({ @@ -46,6 +37,19 @@ define(['knockout', 'text!./EndStrategyEditorTemplate.html', '../EndStrategies', } } + self.strategyOptions = [ + { name: "default", text: "end of continuous observation"}, + { name: "dateOffset", text: "fixed duration relative to initial event"}, + { name: "customEra", text: "end of a continuous drug exposure"} + ] + + self.strategy = params.strategy; + self.conceptSets = params.conceptSets; + self.strategyType = ko.pureComputed({ + read: () => getTypeFromStrategy(self.strategy()), + write: setStrategy + }); + self.clearStrategy = function() { self.strategy(null); @@ -65,10 +69,6 @@ define(['knockout', 'text!./EndStrategyEditorTemplate.html', '../EndStrategies', // subscriptions - self.subscriptions.push(self.strategyType.subscribe(newVal => { - self.clearStrategy(); - self.setStrategy(newVal); - })); // cleanup self.dispose = function () {
9
diff --git a/src/botPage/view/View.js b/src/botPage/view/View.js @@ -535,6 +535,7 @@ export default class View { } addEventHandlers() { globalObserver.register('Error', error => { + $('#runButton').prop('disabled', false); if (error.error && error.error.error.code === 'InvalidToken') { removeAllTokens(); updateTokenList();
9
diff --git a/server/game/player.js b/server/game/player.js @@ -5,7 +5,7 @@ const DrawCard = require('./drawcard.js'); const Deck = require('./deck.js'); const AttachmentPrompt = require('./gamesteps/attachmentprompt.js'); const BestowPrompt = require('./gamesteps/bestowprompt.js'); -const ChallengeTracker = require('./challengetracker.js'); +const ConflictTracker = require('./conflicttracker.js'); const PlayableLocation = require('./playablelocation.js'); const PlayActionPrompt = require('./gamesteps/playactionprompt.js'); const PlayerPromptState = require('./playerpromptstate.js');
14
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -1866,11 +1866,15 @@ class Avatar { if (this.getTopEnabled()) { if (k === 'Left_wrist') { + if (this.getHandEnabled(1)) { modelBone.quaternion.multiply(leftRotation); // center + } } else if (k === 'Right_wrist') { + if (this.getHandEnabled(0)) { modelBone.quaternion.multiply(rightRotation); // center } } + } if (this.getBottomEnabled()) { if (k === 'Left_ankle' || k === 'Right_ankle') { modelBone.quaternion.multiply(upRotation); @@ -1916,9 +1920,9 @@ class Avatar { if (this.debugMeshes) { if (this.getTopEnabled()) { - this.outputs.leftHand.quaternion.multiply(rightRotation); // center + this.getHandEnabled(0) && this.outputs.leftHand.quaternion.multiply(rightRotation); // center this.outputs.leftHand.updateMatrixWorld(); - this.outputs.rightHand.quaternion.multiply(leftRotation); // center + this.getHandEnabled(1) && this.outputs.rightHand.quaternion.multiply(leftRotation); // center this.outputs.rightHand.updateMatrixWorld(); }
0
diff --git a/packages/story-editor/src/components/library/test/text/textPane.js b/packages/story-editor/src/components/library/test/text/textPane.js @@ -69,7 +69,7 @@ describe('TextPane', () => { })); }); - it('should insert text with preset text style on pressing a preset', async () => { + it('should insert text with preset text style when clicking Enter', async () => { const availableCuratedFonts = fontsListResponse.filter( (font) => curatedFontNames.indexOf(font.name) > 0 ); @@ -121,7 +121,12 @@ describe('TextPane', () => { ); act(() => { - fireEvent.click(screen.getByRole('button', { name: 'Title 1' })); + // Note: onClick handler is in Moveable so we can't test that directly in this component + // and have to test using key handlers instead. + fireEvent.keyDown(screen.getByRole('button', { name: 'Title 1' }), { + key: 'Enter', + which: 13, + }); }); await waitFor(() => expect(insertPreset).toHaveBeenCalledTimes(1));
1
diff --git a/core/field_angle.js b/core/field_angle.js @@ -115,11 +115,8 @@ Blockly.FieldAngle.prototype.dispose_ = function() { if (thisField.clickWrapper_) { Blockly.unbindEvent_(thisField.clickWrapper_); } - if (thisField.moveWrapper1_) { - Blockly.unbindEvent_(thisField.moveWrapper1_); - } - if (thisField.moveWrapper2_) { - Blockly.unbindEvent_(thisField.moveWrapper2_); + if (thisField.moveWrapper_) { + Blockly.unbindEvent_(thisField.moveWrapper_); } }; }; @@ -184,12 +181,10 @@ Blockly.FieldAngle.prototype.showEditor_ = function() { Blockly.bindEvent_(svg, 'click', this, function() { Blockly.WidgetDiv.hide(); Blockly.DropDownDiv.hide(); + Blockly.unbindEvent_(this.moveWrapper_); }); - this.moveWrapper1_ = - Blockly.bindEvent_(circle, 'mousemove', this, this.onMouseMove); - this.moveWrapper2_ = - Blockly.bindEvent_(this.gauge_, 'mousemove', this, - this.onMouseMove); + this.moveWrapper_ = + Blockly.bindEvent_(svg, 'mousemove', this, this.onMouseMove); this.updateGraph_(); };
4