code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/pages/TargetPage/TargetPage.js b/src/pages/TargetPage/TargetPage.js @@ -86,10 +86,7 @@ const TargetPage = ({ history, location, match }) => { scrollButtons="auto" > <Tab value="overview" label="Profile" /> - <Tab - value={`https://www.targetvalidation.org/target/${ensgId}`} - label="View this page in the classic view" - /> + <Tab value="classic-associations" label="Associations (classic)" /> <Tab value={`https://www.targetvalidation.org/target/${ensgId}/associations`} label="View associated diseases"
11
diff --git a/sirepo/package_data/static/js/sirepo-plotting.js b/sirepo/package_data/static/js/sirepo-plotting.js @@ -1086,7 +1086,9 @@ SIREPO.app.service('layoutService', function(plotting) { label = '+'; } } - formattedBase = label + formatInfo.baseFormat(applyUnit(formatInfo.base, unit)).replace(/0+$/, ''); + formattedBase = label + formatInfo.baseFormat(applyUnit(formatInfo.base, unit)); + formattedBase = formattedBase.replace(/0+$/, ''); + formattedBase = formattedBase.replace(/0+e/, 'e'); if (unit) { formattedBase += unit.symbol + self.units; }
7
diff --git a/metaverse-modules.js b/metaverse-modules.js @@ -20,6 +20,7 @@ const moduleUrls = { targetReticle: './metaverse_modules/target-reticle/', halo: './metaverse_modules/halo/', magic: './metaverse_modules/magic/', + limit: './metaverse_modules/limit/', meshLodItem: './metaverse_modules/mesh-lod-item/', }; const modules = {};
0
diff --git a/src/pages/settings/Payments/PaymentMethodList.js b/src/pages/settings/Payments/PaymentMethodList.js @@ -147,23 +147,6 @@ class PaymentMethodList extends Component { }); } - if (!this.props.shouldShowAddPaymentMethodButton) { - return combinedPaymentMethods; - } - - combinedPaymentMethods.push({ - type: BUTTON, - text: this.props.translate('paymentMethodList.addPaymentMethod'), - icon: Expensicons.CreditCard, - style: [styles.buttonCTA], - iconStyles: [styles.buttonCTAIcon], - onPress: e => this.props.onPress(e), - isDisabled: this.props.isLoadingPayments, - shouldShowRightIcon: true, - success: true, - key: 'addPaymentMethodButton', - }); - return combinedPaymentMethods; } @@ -260,8 +243,9 @@ class PaymentMethodList extends Component { icon={Expensicons.CreditCard} onPress={e => this.props.onPress(e)} isDisabled={this.props.isLoadingPayments || isOffline} - style={[styles.mh4, styles.mb4]} - iconStyles={[styles.mr4]} + style={[styles.buttonCTA]} + iconStyles={[styles.buttonCTAIcon]} + key="addPaymentMethodButton" success shouldShowRightIcon large
7
diff --git a/src/encoded/static/components/app.js b/src/encoded/static/components/app.js @@ -48,6 +48,7 @@ const portal = { { id: 'entex', title: 'ENTEx', url: '/matrix/?type=Experiment&status=released&internal_tags=ENTEx', tag: 'collection' }, { id: 'sescc', title: 'SE Stem Cell Consortium', url: '/matrix/?type=Experiment&status=released&internal_tags=SESCC', tag: 'collection' }, { id: 'reference-epigenomes', title: 'Reference epigenomes', url: '/search/?type=ReferenceEpigenome&status=released', tag: 'collection' }, + { id: 'mouse-dev-series', title: 'Mouse development series', url: '/search/?type=OrganismDevelopmentSeries&internal_tags=MouseDevSeries&status=released', tag: 'collection' }, { id: 'sep-mm-3' }, { id: 'region-search', title: 'Search by region', url: '/region-search/' }, { id: 'publications', title: 'Publications', url: '/publications/' },
0
diff --git a/src/scripts/slate/a11y.js b/src/scripts/slate/a11y.js @@ -63,8 +63,8 @@ slate.a11y = { * @param {string} options.namespace - Namespace used for new focus event handler */ trapFocus: function(options) { - var eventName = options.eventNamespace - ? 'focusin.' + options.eventNamespace + var eventName = options.namespace + ? 'focusin.' + options.namespace : 'focusin'; if (!options.$elementToFocus) {
14
diff --git a/map.html b/map.html container.style.left = `${newPosition.x}px`; container.style.top = `${newPosition.y}px`; } + + /* const containerMetrics = _getContainerMetrics(); + const clickPoint = new THREE.Vector2( + (-containerMetrics.x - (containerSize/2) + e.clientX)/width*(tileScale*zoom) + perspectiveOffset.x, + (-containerMetrics.y - (containerSize/2) + e.clientY)/height*(tileScale*zoom) + perspectiveOffset.z, + ); + console.log(clickPoint.toArray().join(', ')); */ }); window.addEventListener('resize', e => { _updateTiles();
0
diff --git a/assets/src/edit-story/components/canvas/multiSelectionMovable.js b/assets/src/edit-story/components/canvas/multiSelectionMovable.js @@ -30,7 +30,7 @@ function MultiSelectionMovable( { selectedElements, nodesById } ) { // Create targets list including nodes and also necessary attributes. const targetList = selectedElements.map( ( element ) => { return { - ref: nodesById[ element.id ], + node: nodesById[ element.id ], id: element.id, x: element.x, y: element.y, @@ -38,7 +38,7 @@ function MultiSelectionMovable( { selectedElements, nodesById } ) { }; } ); // Not all targets have been defined yet. - if ( targetList.some( ( { ref } ) => ref === undefined ) ) { + if ( targetList.some( ( { node } ) => node === undefined ) ) { return null; } @@ -61,11 +61,11 @@ function MultiSelectionMovable( { selectedElements, nodesById } ) { * Resets Movable once the action is done, sets the initial values. */ const resetMoveable = () => { - targetList.forEach( ( { ref }, i ) => { + targetList.forEach( ( { node }, i ) => { frames[ i ].translate = [ 0, 0 ]; - ref.style.transform = ''; - ref.style.width = ''; - ref.style.height = ''; + node.style.transform = ''; + node.style.width = ''; + node.style.height = ''; } ); if ( moveable.current ) { moveable.current.updateRect(); @@ -102,7 +102,7 @@ function MultiSelectionMovable( { selectedElements, nodesById } ) { <Movable ref={ moveable } zIndex={ 0 } - target={ targetList.map( ( { ref } ) => ref ) } + target={ targetList.map( ( { node } ) => node ) } // @todo: implement group resizing. draggable={ true }
14
diff --git a/_data/navigation.yaml b/_data/navigation.yaml -- name: Blog - link: /blog - new_window: false - highlight: false - name: Projects link: /projects new_window: false link: /landscape new_window: false - name: Service Mesh Performance Specification - link: https://github.com/layer5io/service-mesh-benchmark-spec - new_window: true + link: /performance + new_window: false - name: Community new_window: true highlight: false subitems: - - name: Slack - link: http://slack.layer5.io/ - new_window: true - - name: GitHub + - name: Open Source link: https://github.com/layer5io new_window: true - name: Partners link: /partners new_window: false + - name: Slack + link: http://slack.layer5.io/ + new_window: true + - name: Videos + link: https://www.youtube.com/channel/UCFL1af7_wdnhHXL1InzaMvA?sub_confirmation=1 + new_window: true # - name: Login # link: / # new_window: true - name: Workshops link: /workshops new_window: false +- name: Blog + link: /blog + new_window: false + highlight: false
3
diff --git a/package.json b/package.json "xmldom": "^0.5.0" }, "dependencies": { - "igv-ui": "https://github.com/igvteam/igv-ui#v1.1.4", - "igv-utils": "https://github.com/igvteam/igv-utils#v1.2.5" + "igv-ui": "github:igvteam/igv-ui#v1.1.4", + "igv-utils": "github:igvteam/igv-utils#v1.2.5" } }
13
diff --git a/package.json b/package.json "uuid": "^3.2.1", "viz.js": "^1.8.1", "web3": "1.0.0-beta.34", - "embark-web3-provider-engine": "14.0.6", + "embark-web3-provider-engine": "14.0.7", "webpack": "^3.10.0", "window-size": "^1.1.0" },
3
diff --git a/activity/views.py b/activity/views.py @@ -117,7 +117,7 @@ def index(request, program_id=0): organizations__id__in=[selected_program.organization.id]) get_stakeholders_count = Stakeholder.objects.filter( - organization=selected_program.organization).count() + program__id=selected_program.id).count() get_contacts_count = Contact.objects.filter( organization=selected_program.organization).count()
3
diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php @@ -64,7 +64,7 @@ App::post('/v1/storage/buckets') /** @var Appwrite\Event\Event $audits */ /** @var Appwrite\Stats\Stats $usage */ - $bucketId = $bucketId == 'unique()' ? $dbForInternal->getId() : $bucketId; + $bucketId = $bucketId === 'unique()' ? $dbForInternal->getId() : $bucketId; try { $dbForInternal->createCollection('bucket_' . $bucketId, [ new Document([ @@ -603,7 +603,7 @@ App::post('/v1/storage/buckets/:bucketId/files') $sizeActual = $device->getFileSize($path); $data = [ - '$id' => $fileId == 'unique()' ? $dbForInternal->getId() : $fileId, + '$id' => $fileId === 'unique()' ? $dbForInternal->getId() : $fileId, '$read' => (is_null($read) && !$user->isEmpty()) ? ['user:'.$user->getId()] : $read ?? [], // By default set read permissions for user '$write' => (is_null($write) && !$user->isEmpty()) ? ['user:'.$user->getId()] : $write ?? [], // By default set write permissions for user 'dateCreated' => \time(), @@ -800,7 +800,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview') throw new Exception('Bucket not found', 404); } - if ((\strpos($request->getAccept(), 'image/webp') === false) && ('webp' == $output)) { // Fallback webp to jpeg when no browser support + if ((\strpos($request->getAccept(), 'image/webp') === false) && ('webp' === $output)) { // Fallback webp to jpeg when no browser support $output = 'jpg'; } @@ -874,7 +874,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview') $image->crop((int) $width, (int) $height, $gravity); - if (!empty($opacity) || $opacity==0) { + if (!empty($opacity) || $opacity===0) { $image->setOpacity($opacity); } @@ -1210,7 +1210,7 @@ App::get('/v1/storage/usage') /** @var Utopia\Database\Database $dbForInternal */ $usage = []; - if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { + if (App::getEnv('_APP_USAGE_STATS', 'enabled') === 'enabled') { $period = [ '24h' => [ 'period' => '30m', @@ -1290,7 +1290,7 @@ App::get('/v1/storage/:bucketId/usage') } $usage = []; - if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { + if (App::getEnv('_APP_USAGE_STATS', 'enabled') === 'enabled') { $period = [ '24h' => [ 'period' => '30m',
4
diff --git a/StackExchangeDarkMode.user.js b/StackExchangeDarkMode.user.js // @description Dark theme for sites and chat on the Stack Exchange Network // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 2.11.5 +// @version 2.12 // // @include https://*stackexchange.com/* // @include https://*stackoverflow.com/* @@ -998,6 +998,13 @@ span.mod-flair { /* Chat */ +#chat-body #input-area, +#chat-body #container { + background-image: none; +} +#chat-body #sidebar { + background-color: transparent; +} .topbar, .top-bar, .top-bar .-container > ol,
2
diff --git a/.github/ISSUE_TEMPLATE/accessibility-issue.md b/.github/ISSUE_TEMPLATE/accessibility-issue.md +--- +name: Accessibility Issue +about: 'Report an accessibility or usability issue' +title: "[A11y]" +labels: A11y_Bug +assignees: '' + +--- + + Issue: Accessibility Issue <!-- Feel free to remove sections that aren't relevant.
3
diff --git a/src/styles/base.scss b/src/styles/base.scss font-family: Whitney; font-style: medium; font-weight: 600; - src: url(/fonts//WhitneyMedium.woff) format('woff') + src: url(/fonts/WhitneyMedium.woff) format('woff') } @font-face { font-family: WhitneyMedium; font-style: medium; font-weight: 600; - src: url(/fonts//WhitneyBold.woff) format('woff') + src: url(/fonts/WhitneyBold.woff) format('woff') }
2
diff --git a/src/content/en/fundamentals/push-notifications/how-push-works.md b/src/content/en/fundamentals/push-notifications/how-push-works.md @@ -2,7 +2,7 @@ project_path: /web/fundamentals/_project.yaml book_path: /web/fundamentals/_book.yaml {# wf_blink_components: Blink>PushAPI #} -{# wf_updated_on: 2018-09-20 #} +{# wf_updated_on: 2019-05-30 #} {# wf_published_on: 2016-06-30 #} # How Push Works {: .page-title }
1
diff --git a/docs/docs/new-in-bluebird-3.md b/docs/docs/new-in-bluebird-3.md @@ -61,4 +61,4 @@ Warnings have been added to report usages which are very likely to be programmer ##3.0.1 update -Note that the 3.0.1 update is strictly speaking backward-incompatible with 3.0.0. Version 3.0.0 changed the previous behavior of the `.each` method and made it work more same as the new `.mapSeries` - 3.0.1 unrolls this change by reverting to the `.tap`-like behavior found in 2.x However, this would only affect users who updated to 3.0.0 during the short time that it wasn't deprecated and started relying on the new `.each` behavior. This seems unlikely, and therefore the major version was not changed. +Note that the 3.0.1 update is strictly speaking backward-incompatible with 3.0.0. Version 3.0.0 changed the previous behavior of the `.each` method and made it work the same as the new `.mapSeries` - 3.0.1 unrolls this change by reverting to the `.tap`-like behavior found in 2.x However, this would only affect users who updated to 3.0.0 during the short time that it wasn't deprecated and started relying on the new `.each` behavior. This seems unlikely, and therefore the major version was not changed.
1
diff --git a/modules/core/src/lib/layer.js b/modules/core/src/lib/layer.js @@ -803,22 +803,7 @@ ${flags.viewportChanged ? 'viewport' : ''}\ // TODO - is attribute manager needed? - Model should be enough. const attributeManager = this.getAttributeManager(); const attributeManagerNeedsRedraw = attributeManager && attributeManager.getNeedsRedraw(opts); - const modelNeedsRedraw = this._modelNeedsRedraw(opts); - redraw = redraw || attributeManagerNeedsRedraw || modelNeedsRedraw; - - return redraw; - } - - _modelNeedsRedraw(opts) { - let redraw = false; - - for (const model of this.getModels()) { - let modelNeedsRedraw = model.getNeedsRedraw(opts); - if (modelNeedsRedraw && typeof modelNeedsRedraw !== 'string') { - modelNeedsRedraw = `model ${model.id}`; - } - redraw = redraw || modelNeedsRedraw; - } + redraw = redraw || attributeManagerNeedsRedraw; return redraw; }
2
diff --git a/source/views/controls/SearchTextView.js b/source/views/controls/SearchTextView.js @@ -11,6 +11,9 @@ const SearchTextView = Class({ icon: null, + // Helps password managers know this is not a username input! + name: 'search', + draw ( layer, Element, el ) { const children = SearchTextView.parent.draw.call( this, layer, Element, el );
0
diff --git a/articles/api-auth/user-consent.md b/articles/api-auth/user-consent.md @@ -70,6 +70,14 @@ Location: https://fabrikam.com/contoso_social# Only first-party clients can skip the consent dialog, assuming the resource server they are trying to access on behalf of the user has the "Allow Skipping User Consent" option enabled. +::: panel-warning Consent can't be skipped on localhost +Note that this option only allows _verifiable_ first-party clients to skip consent at the moment. As `localhost` is never a verifiable first-party (because any malicious application may run on `localhost` for a user), Auth0 will always display the consent dialog for clients running on `localhost` regardless of whether they are marked as first-party clients. During development, you can work around this by modifying your `/etc/hosts` file (which is supported on Windows as well as Unix-based OS's) to add an entry such as the following: + +``` +127.0.0.1 myapp.local +``` +::: + Since third-party clients are assumed to be untrusted, they are not able to skip consent dialogs. ## Password-based flows
0
diff --git a/packages/app/src/server/models/notification.ts b/packages/app/src/server/models/notification.ts @@ -195,9 +195,11 @@ export default (crowi: Crowi) => { }; notificationEvent.on('update', (user) => { - const io = crowi.getSocketIoService(); - if (io != null) { - io.sockets.emit('notification updated', { user }); + const { socketIoService } = crowi; + socketIoService.getDefaultSocket(); + + if (socketIoService.isInitialized) { + socketIoService.getDefaultSocket().emit('notification updated', { user }); } });
7
diff --git a/src/redux/studio-mutations.js b/src/redux/studio-mutations.js @@ -19,6 +19,8 @@ const Errors = keyMirror({ PERMISSION: null, THUMBNAIL_TOO_LARGE: null, THUMBNAIL_MISSING: null, + TEXT_TOO_LONG: null, + REQUIRED_FIELD: null, UNHANDLED: null }); @@ -104,10 +106,14 @@ const normalizeError = (err, body, res) => { if (res.statusCode !== 200) return Errors.SERVER; try { if (body.errors.length > 0) { - if (body.errors[0] === 'inappropriate-generic') return Errors.INAPPROPRIATE; - if (body.errors[0] === 'thumbnail-too-large') return Errors.THUMBNAIL_TOO_LARGE; - if (body.errors[0] === 'thumbnail-missing') return Errors.THUMBNAIL_MISSING; - return Errors.UNHANDLED; + switch (body.errors[0]) { + case 'inappropriate-generic': return Errors.INAPPROPRIATE; + case 'thumbnail-too-large': return Errors.THUMBNAIL_TOO_LARGE; + case 'thumbnail-missing': return Errors.THUMBNAIL_MISSING; + case 'editable-text-too-long': return Errors.TEXT_TOO_LONG; + case 'This field is required.': return Errors.REQUIRED_FIELD; + default: return Errors.UNHANDLED; + } } } catch (_) { /* No body.errors[], continue */ } return null;
9
diff --git a/src/js/controllers/tab-home.controller.js b/src/js/controllers/tab-home.controller.js @@ -165,6 +165,7 @@ angular if (isBuyBitcoinAllowed) { moonPayService.start(); } else { + var os = platformInfo.isAndroid ? 'android' : platformInfo.isIOS ? 'ios' : 'desktop'; externalLinkService.open('https://purchase.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os); } }
1
diff --git a/app/models/google_street_view_photo.rb b/app/models/google_street_view_photo.rb @@ -15,8 +15,17 @@ class GoogleStreetViewPhoto < Photo end def repair( options = {} ) - repair_photo = GoogleStreetViewPhoto.new( GoogleStreetViewPhoto.get_api_response( native_photo_id ) ) - update_attributes( repair_photo.attributes ) + repair_photo = GoogleStreetViewPhoto.new_from_api_response( GoogleStreetViewPhoto.get_api_response( native_photo_id ) ) + p.update_attributes( + thumb_url: repair_photo.thumb_url, + square_url: repair_photo.square_url, + small_url: repair_photo.small_url, + medium_url: repair_photo.medium_url, + large_url: repair_photo.large_url, + original_url: repair_photo.original_url, + native_realname: repair_photo.native_realname, + native_page_url: repair_photo.native_page_url + ) [self, {}] end
1
diff --git a/src/pages/settings/InitialSettingsPage.js b/src/pages/settings/InitialSettingsPage.js @@ -98,7 +98,7 @@ class InitialSettingsPage extends React.Component { this.getWalletBalance = this.getWalletBalance.bind(this); this.getDefaultMenuItems = this.getDefaultMenuItems.bind(this); this.getMenuItem = this.getMenuItem.bind(this); - this.signout = this.signout.bind(this); + this.signout = this.signOut.bind(this); this.state = { shouldShowSignoutConfirmModal: false, @@ -183,7 +183,7 @@ class InitialSettingsPage extends React.Component { ]); } - signout(shouldForceSignout = false) { + signOut(shouldForceSignout = false) { if (!this.props.network.isOffline || shouldForceSignout) { Session.signOutAndRedirectToSignIn(); return; @@ -276,10 +276,9 @@ class InitialSettingsPage extends React.Component { confirmText={this.props.translate('initialSettingsPage.signOut')} cancelText={this.props.translate('common.cancel')} isVisible={this.state.shouldShowSignoutConfirmModal} - onConfirm={this.signout} + onConfirm={() => this.signOut(true)} onCancel={() => this.toggleSignoutConfirmModal(false)} /> - </View> </ScrollView> </ScreenWrapper>
7
diff --git a/src/js/services/bitcoincomService.js b/src/js/services/bitcoincomService.js @@ -21,7 +21,7 @@ angular.module('copayApp.services').factory('bitcoincomService', function(gettex name: 'games', title: gettextCatalog.getString('Bitcoin Cash Games'), icon: 'icon-games', - href: 'https://cashgames.bitcoin.com' + href: 'https://games.bitcoin.com/?utm_source=WalletApp&utm_medium=' + os }; var newsItem = {
3
diff --git a/packages/inferno/src/index.ts b/packages/inferno/src/index.ts @@ -20,20 +20,21 @@ import { createClassComponentInstance, renderFunctionalComponent } from './DOM/u import { mount, mountClassComponentCallbacks, mountElement, mountFunctionalComponentCallbacks } from './DOM/mounting'; import { createRef, forwardRef, mountRef } from './core/refs'; -// Checks if Inferno is running in testing environment. -const testingEnv = process.env.JEST_WORKER_ID !== undefined; +if (process.env.NODE_ENV !== 'production') { + // Checks if Inferno is running in jest testing environment. + const testingEnv = (process && process.env && process.env.JEST_WORKER_ID !== undefined); // This message informs developers that they are using development mode (can happen // in production because of bundling mistakes) and, therefore, Inferno is slower // than in production mode. Skipping the notification for testing mode to keep testing // console clear. -if (process.env.NODE_ENV !== 'production' && !testingEnv) { + /* tslint:disable-next-line:no-empty */ const testFunc = function testFn() {}; /* tslint:disable-next-line*/ console.log('Inferno is in development mode.'); - if (((testFunc as Function).name || testFunc.toString()).indexOf('testFn') === -1) { + if (!testingEnv && ((testFunc as Function).name || testFunc.toString()).indexOf('testFn') === -1) { warning( "It looks like you're using a minified copy of the development build " + 'of Inferno. When deploying Inferno apps to production, make sure to use ' +
5
diff --git a/token-metadata/0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359/metadata.json b/token-metadata/0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359/metadata.json "symbol": "SAI", "address": "0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/packages/ember-simple-auth/addon/session-stores/adaptive.js b/packages/ember-simple-auth/addon/session-stores/adaptive.js @@ -139,10 +139,13 @@ export default Base.extend({ options._isFastBoot = false; store.setProperties(options); } else { - store = getOwner(this).lookup(`session-store:cookie`, { dupa: true }); + store = this.get('cookie'); const options = this.getProperties('sameSite', 'cookieDomain', 'cookieName', 'cookieExpirationTime', 'cookiePath'); + store._initialize(options); + this.set('cookieExpirationTime', store.get('cookieExpirationTime')); } + this.set('_store', store); this._setupStoreEvents(store); },
12
diff --git a/src/components/routes/account/RegistrationForm.vue b/src/components/routes/account/RegistrationForm.vue </el-form-item> <el-form-item :label="$t('account.contactPhone')" prop="phone"> - <el-input v-model="form.phone" type="tel"></el-input> + <el-input v-model="form.phone" type="tel" v-mask="phoneMask"></el-input> </el-form-item> <el-form-item :label="$t('account.cellphone')"> - <el-input v-model="form.cellphone" type="tel"></el-input> + <el-input v-model="form.cellphone" type="tel" v-mask="phoneMask"></el-input> </el-form-item> <el-form-item :label="$t('account.registrationType')"> <el-radio-group v-model="form.type"> <el-radio border label="p"> - {{ $t('account.physical') }} + {{ $t('account.personalRegistry') }} </el-radio> <el-radio border label="j"> - {{ $t('account.juridical') }} + {{ $t('account.businessRegistry') }} </el-radio> </el-radio-group> </el-form-item> - <el-form-item :label="$t('account.juridicalDoc')" prop="doc" v-if="form.type === 'j'"> - <el-input v-model="form.doc"></el-input> + <el-form-item :label="$t('account.businessDoc')" prop="doc" v-show="form.type === 'j'"> + <el-input + v-if="$lang === 'pt_br'" + v-model="form.doc" + v-mask="'99.999.999/9999-99'" + type="tel"> + </el-input> + <el-input v-else v-model="form.doc" type="tel"></el-input> </el-form-item> - <el-form-item :label="$t('account.physicalDoc')" prop="doc" v-else> - <el-input v-model="form.doc"></el-input> + <el-form-item :label="$t('account.personalDoc')" prop="doc" v-show="form.type !== 'j'"> + <el-input + v-if="$lang === 'pt_br'" + v-model="form.doc" + v-mask="'999.999.999-99'" + type="tel"> + </el-input> + <el-input v-else v-model="form.doc" type="tel"></el-input> </el-form-item> <el-form-item size="large"> @@ -80,7 +92,7 @@ export default { data () { // handle required form fields let rules = {} - let required = [ 'name', 'nickname', 'phone', 'birth' ] + let required = [ 'name', 'nickname', 'phone', 'birth', 'doc' ] for (let i = 0; i < required.length; i++) { let label = required[i] rules[label] = { required: true, message: this.$t('validate.required') } @@ -90,7 +102,13 @@ export default { // declare form empty // further preset with computed values }, - rules: rules + rules: rules, + phoneMask: [ + // array of phone number formats + '(99) 9999-9999', + '(99) 9 9999-9999', + '+99 9999999[9][9][9][9][9][9]' + ] } },
9
diff --git a/lib/contracts/deploy_manager.js b/lib/contracts/deploy_manager.js @@ -32,34 +32,36 @@ class DeployManager { async.waterfall([ function buildContracts(callback) { self.contractsManager.deployOnlyOnConfig = self.deployOnlyOnConfig; // temporary, should refactor - self.contractsManager.build(callback); + self.contractsManager.build(() => { + callback(); + }); }, - function checkCompileOnly(contractsManager, callback){ + function checkCompileOnly(callback){ if(self.onlyCompile){ - self.events.emit('contractsDeployed', contractsManager); + self.events.emit('contractsDeployed', self.contractsManager); return done(); } - return callback(null, contractsManager); + return callback(); }, // TODO: could be implemented as an event (beforeDeployAll) - function checkIsConnectedToBlockchain(contractsManager, callback) { + function checkIsConnectedToBlockchain(callback) { self.blockchain.assertNodeConnection((err) => { - callback(err, contractsManager); + callback(err); }); }, // TODO: this can be done on the fly or as part of the initialization - function determineDefaultAccount(contractsManager, callback) { + function determineDefaultAccount(callback) { self.blockchain.determineDefaultAccount((err) => { - callback(err, contractsManager); + callback(err); }); }, - function deployAllContracts(contractsManager, callback) { + function deployAllContracts(callback) { let deploy = new Deploy({ blockchain: self.blockchain, - contractsManager: contractsManager, + contractsManager: self.contractsManager, logger: self.logger, events: self.events, chainConfig: self.chainConfig, @@ -70,15 +72,15 @@ class DeployManager { deploy.deployAll(function (err) { if (!err) { - self.events.emit('contractsDeployed', contractsManager); + self.events.emit('contractsDeployed', self.contractsManager); } if (err && self.fatalErrors) { return callback(err); } - callback(null, contractsManager); + callback(); }); }, - function runAfterDeployCommands(contractsManager, callback) { + function runAfterDeployCommands(callback) { // TODO: should instead emit a afterDeploy event and/or run a afterDeploy plugin let afterDeployCmds = self.config.contractsConfig.afterDeploy || []; @@ -87,7 +89,7 @@ class DeployManager { let onDeployCode = afterDeployCmds.map((cmd) => { let realCmd = cmd.replace(regex, (match) => { let referedContractName = match.slice(1); - let referedContract = contractsManager.getContract(referedContractName); + let referedContract = self.contractsManager.getContract(referedContractName); if (!referedContract) { self.logger.error(referedContractName + ' does not exist'); self.logger.error(__("error running afterDeploy: ") + cmd); @@ -128,14 +130,10 @@ class DeployManager { } } - callback(null, contractsManager); - } - ], function (err, result) { - if (err) { - done(err, null); - } else { - done(null, result); + callback(); } + ], function (err, _result) { + done(err); }); }
2
diff --git a/website/storybook/1-components/View/examples/PropPointerEvents.js b/website/storybook/1-components/View/examples/PropPointerEvents.js -/** - * @flow - */ +/* eslint-disable react/prop-types */ +/* @flow */ import { logger } from '../helpers'; import React from 'react'; -import { Text, TouchableHighlight, View } from 'react-native'; +import { StyleSheet, Text, TouchableHighlight, View } from 'react-native'; -const ViewStyleExample = () => ( - <View pointerEvents="box-none"> - <View pointerEvents="box-none"> - <View pointerEvents="none"> - <Text onPress={logger}>none</Text> - </View> - <TouchableHighlight onPress={logger} pointerEvents="auto"> - <Text>auto</Text> - </TouchableHighlight> - <TouchableHighlight onPress={logger} pointerEvents="box-only"> - <Text>box-only</Text> +const Box = ({ pointerEvents }) => ( + <TouchableHighlight + onPress={logger} + pointerEvents={pointerEvents} + style={styles.box} + underlayColor="purple" + > + <TouchableHighlight onPress={logger} style={styles.content} underlayColor="orange"> + <Text>{pointerEvents}</Text> </TouchableHighlight> - <TouchableHighlight onPress={logger} pointerEvents="box-none"> - <Text>box-none</Text> </TouchableHighlight> +); + +const ViewStyleExample = () => ( + <View pointerEvents="box-none"> + <View pointerEvents="box-none" style={styles.container}> + <Box pointerEvents="none" /> + <Box pointerEvents="auto" /> + <Box pointerEvents="box-only" /> + <Box pointerEvents="box-none" /> </View> </View> ); +const styles = StyleSheet.create({ + box: { + backgroundColor: '#ececec', + padding: 30, + marginVertical: 5 + }, + content: { + backgroundColor: 'white', + padding: 10, + borderWidth: 1, + borderColor: 'black', + borderStyle: 'solid' + } +}); export default ViewStyleExample;
7
diff --git a/assets/js/googlesitekit/datastore/site/info.js b/assets/js/googlesitekit/datastore/site/info.js @@ -31,7 +31,7 @@ import { addQueryArgs, getQueryArg } from '@wordpress/url'; * Internal dependencies */ import Data from 'googlesitekit-data'; -import { STORE_NAME, AMP_MODE_PRIMARY, AMP_MODE_SECONDARY, CORE_SITE } from './constants'; +import { STORE_NAME, AMP_MODE_PRIMARY, AMP_MODE_SECONDARY } from './constants'; import { getLocale } from '../../../util'; const { createRegistrySelector } = Data; @@ -518,7 +518,7 @@ export const selectors = { * @return {boolean} TRUE if the URL matches reference site URL, otherwise FALSE. */ isSiteURLMatch: createRegistrySelector( ( select ) => ( state, url ) => { - const referenceURL = select( CORE_SITE ).getReferenceSiteURL(); + const referenceURL = select( STORE_NAME ).getReferenceSiteURL(); const normalizeURL = ( incomingURL ) => incomingURL .replace( /^https?:\/\/(www\.)?/i, '' ) // Remove protocol and optional "www." prefix from the URL. .replace( /\/$/, '' ); // Remove trailing slash.
14
diff --git a/articles/api-auth/tutorials/verify-access-token.md b/articles/api-auth/tutorials/verify-access-token.md @@ -35,7 +35,9 @@ For details on the JWT structure refer to [What is the JSON Web Token structure? In order to parse the JWT you can either manually implement all the checks as described in the specification [RFC 7519 > 7.2 Validating a JWT](https://tools.ietf.org/html/rfc7519#section-7.2), or use one of the libraries listed in the _Libraries for Token Signing/Verification_ section of [JWT.io](https://jwt.io/). -For example, if my API is implemented with Node.js and I want to use the [node-jsonwebtoken library](https://github.com/auth0/node-jsonwebtoken), then I would call the [jwt.verify()](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback) method. If the parsing fails then the library will return a [JsonWebTokenError error](https://github.com/auth0/node-jsonwebtoken#jsonwebtokenerror) with the message `jwt malformed`. +For example, if your API is implemented with Node.js and you want to use the [node-jsonwebtoken library](https://github.com/auth0/node-jsonwebtoken), then you would call the [jwt.verify()](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback) method. If the parsing fails then the library will return a [JsonWebTokenError error](https://github.com/auth0/node-jsonwebtoken#jsonwebtokenerror) with the message `jwt malformed`. + +We should note here that many web frameworks (such as [ASP.NET Core](/quickstart/backend/aspnet-core-webapi) for example) have JWT middleware that handle the token validation. Most of the times this will be a better route to take, rather that resorting to use a third-party library, as the middleware typically integrates well with the framework's overall authentication mechanisms. ### How can I visually inspect a token?
0
diff --git a/bench/folktale.js b/bench/folktale.js @@ -5,6 +5,10 @@ const {task} = require('folktale/concurrency/task'); const noop = () => {}; const plus1 = x => x + 1; +const repeat = (n, f) => x => Array.from({length: n}).reduce(f, x); + +const map1000 = repeat(1000, m => m.map(plus1)); +const chain1000 = repeat(1000, m => m.chain(plus1)); const createTask = x => task(resolver => resolver.resolve(x)); const createFuture = x => Future((rej, res) => res(x)); @@ -16,37 +20,43 @@ const config = {leftHeader: 'Folktale', rightHeader: 'Fluture'}; const left = { create: createTask, consume: consumeTask, - one: createTask(1) + one: createTask(1), + mapped: map1000(createTask(1)) }; const right = { create: createFuture, consume: consumeFuture, - one: createFuture(1) + one: createFuture(1), + mapped: map1000(createFuture(1)) }; module.exports = require('sanctuary-benchmark')(left, right, config, { 'create.construct': [ - {}, ({create}) => create(1) + {}, ({create}) => repeat(1000, x => create(x))(1) ], 'create.map': [ - {}, ({one}) => one.map(plus1) + {}, ({one}) => map1000(one) ], 'create.chain': [ - {}, ({one}) => one.chain(plus1) + {}, ({one}) => chain1000(one) ], 'consume.noop': [ {}, ({one, consume}) => consume(one) ], - 'consume.map': [ + 'consume.map.1': [ {}, ({one, consume}) => consume(one.map(plus1)) ], + 'consume.map.1000': [ + {}, ({mapped, consume}) => consume(mapped) + ], + 'consume.chain': [ {}, ({create, consume, one}) => consume(one.chain(x => create(x + 1))) ],
7
diff --git a/app/models/cluster.js b/app/models/cluster.js @@ -114,7 +114,7 @@ export default Resource.extend(Grafana, ResourceUsage, { if ( firstTemplate ) { return get(firstTemplate, 'driver'); } else { - return 'custom'; + return null; } } else { return 'custom';
13
diff --git a/StackExchangeDarkMode.user.js b/StackExchangeDarkMode.user.js // @description Dark theme for sites and chat on the Stack Exchange Network // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 2.9.5 +// @version 2.9.6 // // @include https://*stackexchange.com/* // @include https://*stackoverflow.com/* @@ -538,6 +538,10 @@ body td.deleted-answer { } .tagged-interesting *, #content .deleted-answer > a, +.deleted-answer .statscontainer, +.deleted-answer .statscontainer *, +.deleted-answer .summary, +.deleted-answer .summary *, .deleted-answer .post-layout, .deleted-answer .votecell, .deleted-answer .votecell svg,
7
diff --git a/packages/gatsby/src/utils/webpack-modify-validate.js b/packages/gatsby/src/utils/webpack-modify-validate.js @@ -12,6 +12,7 @@ import apiRunnerNode from "./api-runner-node" // https://github.com/js-dxtools/webpack-validator#customizing const validationWhitelist = Joi.object({ stylus: Joi.any(), + sassResources: [Joi.string(), Joi.array().items(Joi.string())], }) export default (async function ValidateWebpackConfig(config, stage) {
11
diff --git a/packages/frontend/src/components/accounts/create/verify_account/VerifyAccountWrapper.js b/packages/frontend/src/components/accounts/create/verify_account/VerifyAccountWrapper.js @@ -7,15 +7,21 @@ import { useDispatch, useSelector } from 'react-redux'; import { Mixpanel } from '../../../../mixpanel'; import { redirectTo, - sendIdentityVerificationMethodCode, - checkAndHideLedgerModal + sendIdentityVerificationMethodCode } from '../../../../redux/actions/account'; import { showCustomAlert } from '../../../../redux/actions/status'; +import { + actions as ledgerActions +} from '../../../../redux/slices/ledger'; import { isMoonpayAvailable } from '../../../../utils/moonpay'; import { wallet } from '../../../../utils/wallet'; import EnterVerificationCode from '../../EnterVerificationCode'; import VerifyAccount from './VerifyAccount'; +const { + checkAndHideLedgerModal +} = ledgerActions; + export function VerifyAccountWrapper() { const { executeRecaptcha } = useGoogleReCaptcha(); const dispatch = useDispatch();
4
diff --git a/tests/integration/components/ember-flatpickr-test.js b/tests/integration/components/ember-flatpickr-test.js @@ -191,7 +191,7 @@ test('onChange gets called with the correct parameters', function(assert) { assert.ok(selectedDates[0] instanceof Date, 'selectedDates contains DateObjects'); - assert.equal(selectedDates[0].toDateString(), new Date('2080-12-06').toDateString(), 'selectedDates contains the correct Date'); + assert.equal(selectedDates[0].toDateString(), 'Thu Dec 05 2080', 'selectedDates contains the correct Date'); assert.equal(dateStr, newFormattedDate, 'dateStr is formatted correctly');
12
diff --git a/src/core/lib/transition-manager.js b/src/core/lib/transition-manager.js @@ -195,7 +195,7 @@ export default class TransitionManager { this.state.viewport = extractViewportFrom(Object.assign({}, this.props, viewport)); if (this.props.onViewportChange) { - this.props.onViewportChange(this.state.viewport); + this.props.onViewportChange(this.state.viewport, {inTransition: true}); } if (shouldEnd) {
0
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -3,8 +3,6 @@ version: 2.1 orbs: airswap: airswap/assume-role@volatile aws-cli: airswap/aws-cli@volatile - slack: circleci/[email protected] - datadog: airswap/datadog@volatile references: working_directory: &working_directory ~/repo @@ -242,7 +240,6 @@ jobs: done # Now we need to iterate over folders and deploy the folders that are listed # but only if the version changed - - slack/status workflows: smart_contract:
2
diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js @@ -1465,15 +1465,15 @@ class Draw extends XFAObject { "borderMarginPadding" ); - const clazz = ["xfaDraw"]; + const classNames = ["xfaDraw"]; if (this.font) { - clazz.push("xfaFont"); + classNames.push("xfaFont"); } const attributes = { style, id: this[$uid], - class: clazz.join(" "), + class: classNames.join(" "), }; if (this.name) { @@ -2012,14 +2012,14 @@ class ExclGroup extends XFAObject { "borderMarginPadding", "hAlign" ); - const clazz = ["xfaExclgroup"]; + const classNames = ["xfaExclgroup"]; const cl = layoutClass(this); if (cl) { - clazz.push(cl); + classNames.push(cl); } attributes.style = style; - attributes.class = clazz.join(" "); + attributes.class = classNames.join(" "); if (this.name) { attributes.xfaName = this.name; @@ -2257,16 +2257,16 @@ class Field extends XFAObject { "hAlign" ); - const clazz = ["xfaField"]; + const classNames = ["xfaField"]; // If no font, font properties are inherited. if (this.font) { - clazz.push("xfaFont"); + classNames.push("xfaFont"); } const attributes = { style, id: this[$uid], - class: clazz.join(" "), + class: classNames.join(" "), }; if (this.name) { @@ -3988,14 +3988,14 @@ class Subform extends XFAObject { "borderMarginPadding", "hAlign" ); - const clazz = ["xfaSubform"]; + const classNames = ["xfaSubform"]; const cl = layoutClass(this); if (cl) { - clazz.push(cl); + classNames.push(cl); } attributes.style = style; - attributes.class = clazz.join(" "); + attributes.class = classNames.join(" "); if (this.name) { attributes.xfaName = this.name;
14
diff --git a/renderer/components/result/ResultContainer.js b/renderer/components/result/ResultContainer.js @@ -22,8 +22,7 @@ import { Text, Container, Flex, - Box, - Divider + Box } from 'ooni-components' import { FormattedMessage } from 'react-intl' @@ -117,13 +116,14 @@ const ResultOverview = ({ </Flex> <Container style={{padding: '20px 60px'}}> + <Box pb={4}> <StatsOverview name={groupName} testKeys={testKeys} anomalyCount={anomalyCount} totalCount={totalCount} /> - <Divider mt={4} mb={4} /> + </Box> <TwoColumnTable left={
2
diff --git a/src/encoded/static/scss/encoded/modules/_matrix.scss b/src/encoded/static/scss/encoded/modules/_matrix.scss @@ -109,9 +109,23 @@ table.matrix { display: inline-block; } -.group-more-button { +.group-more-cell { + border: 1px solid #fff; +} + +.group-more-cell__button { border: none; background-color: transparent; font-weight: normal; color: $std-href-color; } + +table.matrix th.group-all-groups-cell { + padding-bottom: 5px; + text-align: center; + border-left: 1px solid #fff; +} + +.group-all-groups-cell__button { + @extend .group-more-cell__button; +}
0
diff --git a/source/views/controls/SelectView.js b/source/views/controls/SelectView.js @@ -32,6 +32,14 @@ const SelectView = Class({ */ options: [], + /** + Property: O.SelectView#inputAttributes + Type: Object|null + + Extra attributes to add to the <select> element, if provided. + */ + inputAttributes: null, + // --- Render --- type: '', @@ -59,6 +67,10 @@ const SelectView = Class({ draw ( layer ) { const control = this._domControl = this._drawSelect( this.get( 'options' ) ); + const inputAttributes = this.get( 'inputAttributes' ); + if ( inputAttributes ) { + this.redrawInputAttributes(); + } return [ SelectView.parent.draw.call( this, layer ), control, @@ -104,7 +116,20 @@ const SelectView = Class({ */ selectNeedsRedraw: function ( self, property, oldValue ) { return this.propertyNeedsRedraw( self, property, oldValue ); - }.observes( 'options', 'value' ), + }.observes( 'options', 'value', 'inputAttributes' ), + + /** + Method: O.TextView#redrawInputAttributes + + Updates any other properties of the `<input>` element. + */ + redrawInputAttributes () { + const inputAttributes = this.get( 'inputAttributes' ); + const control = this._domControl; + for ( const property in inputAttributes ) { + control.set( property, inputAttributes[ property ] ); + } + }, /** Method: O.SelectView#redrawOptions
0
diff --git a/assets/js/modules/adsense/datastore/urlchannels.js b/assets/js/modules/adsense/datastore/urlchannels.js * External dependencies */ import invariant from 'invariant'; -import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -33,16 +32,6 @@ import { createFetchStore } from '../../../googlesitekit/data/create-fetch-store const fetchGetURLChannelsStore = createFetchStore( { baseName: 'getURLChannels', controlCallback: ( { accountID, clientID } ) => { - if ( undefined === accountID ) { - // Mirror the API response that would happen for an invalid client ID. - return new Promise( () => { - throw { - code: 'invalid_param', - message: __( 'The clientID parameter is not a valid AdSense client ID.', 'google-site-kit' ), - data: { status: 400 }, - }; - } ); - } return API.get( 'modules', 'adsense', 'urlchannels', { accountID, clientID }, { useCache: false, } );
2
diff --git a/source/transfer-handler-registry/test/TestTransferHandlerRegistry-unit.js b/source/transfer-handler-registry/test/TestTransferHandlerRegistry-unit.js const TransferHandlerRegistry = artifacts.require('TransferHandlerRegistry') const { takeSnapshot, revertToSnapshot } = require('@airswap/test-utils').time -const { reverted, equal, emitted } = require('@airswap/test-utils').assert +const { equal, emitted } = require('@airswap/test-utils').assert const { EMPTY_ADDRESS } = require('@airswap/order-utils').constants contract('TransferHandlerRegistry Unit Tests', async accounts => {
2
diff --git a/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java b/android/app/src/main/java/com/expensify/chat/CustomNotificationProvider.java @@ -184,7 +184,7 @@ public class CustomNotificationProvider extends ReactNotificationProvider { cache.remove(reportID); } catch (Exception e) { - Log.e(TAG, "Failed to delete conversation cache"); + Log.e(TAG, "Failed to delete conversation cache. SendID=" + message.getSendId(), e); } }
7
diff --git a/src/components/colorbar/attributes.js b/src/components/colorbar/attributes.js @@ -136,7 +136,13 @@ module.exports = overrideAll({ tickvals: axesAttrs.tickvals, ticktext: axesAttrs.ticktext, ticks: extendFlat({}, axesAttrs.ticks, {dflt: ''}), - ticklabeloverflow: extendFlat({}, axesAttrs.ticklabeloverflow, {dflt: 'allow'}), + ticklabeloverflow: extendFlat({}, axesAttrs.ticklabeloverflow, { + description: [ + 'Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.', + 'The default value for inside tick labels is *hide past domain*.', + 'In other cases the default is *hide past div*.' + ].join(' ') + }), ticklabelposition: { valType: 'enumerated', values: [
2
diff --git a/changelog/65_UNRELEASED_xxxx-xx-xx.md b/changelog/65_UNRELEASED_xxxx-xx-xx.md - Fixed that "Label per unit" stock entry labels (on purchase) weren't unique per unit ### API +- Endpoint `/stock/products/{productId}/add` API endpoint`: The (optional) request body parameter `print_stock_label` was renamed to `stock_label_type` - Fixed that backslashes were not allowed in API query filters
0
diff --git a/src/DOM.js b/src/DOM.js @@ -1847,13 +1847,12 @@ class HTMLIFrameElement extends HTMLSrcableElement { this.browser = browser; let done = false, err = null, loadedUrl = url; - const _makeLoadError = () => new Error('failed to load page'); this.browser.onloadend = () => { done = true; }; - this.browser.onloaderror = () => { + this.browser.onloaderror = (errorCode, errorString, failedUrl) => { done = true; - err = _makeLoadError(); + err = new Error(`failed to load page (${errorCode}) ${failedUrl}: ${errorString}`); }; this.browser.onconsole = (message, source, line) => { this.onconsole && this.onconsole(message, source, line); @@ -1868,7 +1867,7 @@ class HTMLIFrameElement extends HTMLSrcableElement { accept(); }; this.browser.onloaderror = () => { - reject(_makeLoadError()); + reject(new Error('failed to load page')); }; } else { if (!err) {
9
diff --git a/tools/deployer/truffle-config.js b/tools/deployer/truffle-config.js @@ -67,7 +67,7 @@ module.exports = { }, }, }, - plugins: ['truffle-verify', 'truffle-flatten', 'solidity-coverage'], + plugins: ['truffle-verify', 'truffle-flatten'], api_keys: { etherscan: process.env.ETHERSCAN_API_KEY, },
2
diff --git a/token-metadata/0x5bEaBAEBB3146685Dd74176f68a0721F91297D37/metadata.json b/token-metadata/0x5bEaBAEBB3146685Dd74176f68a0721F91297D37/metadata.json "symbol": "BOT", "address": "0x5bEaBAEBB3146685Dd74176f68a0721F91297D37", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/lib/assets/javascripts/builder/helpers/table-name-utils.js b/lib/assets/javascripts/builder/helpers/table-name-utils.js @@ -34,9 +34,9 @@ module.exports = { return name; }, - getQualifiedTableName: function (tableName, userName, inOrganization, force = false) { + getQualifiedTableName: function (tableName, userName, inOrganization, forceSchema = false) { var schemaPrefix = (inOrganization && userName) ? this._quoteIfNeeded(userName) + '.' : ''; - if (force && schemaPrefix === '') { + if (forceSchema && schemaPrefix === '') { schemaPrefix = 'public.'; } return schemaPrefix + this._quoteIfNeeded(this.getUnqualifiedName(tableName));
10
diff --git a/src/pages/home/report/ReportActionContextMenu.js b/src/pages/home/report/ReportActionContextMenu.js @@ -44,6 +44,23 @@ const defaultProps = { session: {}, }; +function copyToClipboard(reportAction) { + // If return value is true, we switch the `text` and `icon` on + // `ReportActionContextMenuItem` with `successText` and `successIcon` which will fallback to + // the `text` and `icon` + const message = _.last(lodashGet(reportAction, 'message', null)); + const html = lodashGet(message, 'html', ''); + const text = lodashGet(message, 'text', ''); + const isAttachment = _.has(reportAction, 'isAttachment') + ? reportAction.isAttachment + : isReportMessageAttachment(text); + if (!isAttachment) { + Clipboard.setString(text); + } else { + Clipboard.setString(html); + } +} + class ReportActionContextMenu extends React.Component { constructor(props) { super(props); @@ -52,33 +69,15 @@ class ReportActionContextMenu extends React.Component { * A list of all the context actions in this menu. */ this.contextActions = [ - // Copy to clipboard { text: 'Copy to Clipboard', icon: ClipboardIcon, successText: 'Copied!', successIcon: Checkmark, shouldShow: true, - - // If return value is true, we switch the `text` and `icon` on - // `ReportActionContextMenuItem` with `successText` and `successIcon` which will fallback to - // the `text` and `icon` - onPress: () => { - const message = _.last(lodashGet(this.props.reportAction, 'message', null)); - const html = lodashGet(message, 'html', ''); - const text = lodashGet(message, 'text', ''); - const isAttachment = _.has(this.props.reportAction, 'isAttachment') - ? this.props.reportAction.isAttachment - : isReportMessageAttachment(text); - if (!isAttachment) { - Clipboard.setString(text); - } else { - Clipboard.setString(html); - } - }, + onPress: () => copyToClipboard(props.reportAction), }, - // Copy chat link { text: 'Copy Link', icon: LinkCopy, @@ -86,7 +85,6 @@ class ReportActionContextMenu extends React.Component { onPress: () => {}, }, - // Mark as Unread { text: 'Mark as Unread', icon: Mail, @@ -94,7 +92,6 @@ class ReportActionContextMenu extends React.Component { onPress: () => {}, }, - // Edit Comment { text: 'Edit Comment', icon: Pencil, @@ -102,11 +99,10 @@ class ReportActionContextMenu extends React.Component { onPress: () => {}, }, - // Delete Comment { text: 'Delete Comment', icon: Trashcan, - shouldShow: this.props.reportAction.actorEmail === this.props.session.email, + shouldShow: props.reportAction.actorEmail === props.session.email, onPress: () => deleteReportComment(this.props.reportID, this.props.reportAction), }, ]; @@ -125,7 +121,7 @@ class ReportActionContextMenu extends React.Component { successText={contextAction.successText} isMini={this.props.isMini} key={contextAction.text} - onPress={() => contextAction.onPress()} + onPress={contextAction.onPress} /> ))} </View>
4
diff --git a/userscript.user.js b/userscript.user.js @@ -6339,7 +6339,7 @@ var $$IMU_EXPORT$$; // http://photos.demandstudios.com/getty/article/240/3/178773543.jpg // http://i0.wp.com/mmsns.qpic.cn/mmsns/7KE858KbWtJWJFCnub4OrBAHial0SicILILia7G2I1h6VwXG5cWSWpnPQ/0 -- redirect error, but works // https://i1.wp.com/images-na.ssl-images-amazon.com/images/G/01/aplusautomation/vendorimages/73da407a-f7e0-4d9a-8943-178d8838be48.jpg._CB329731638_.jpg?ssl=1 - newsrc = remove_queries(src, ["w", "h", "resize"]); + newsrc = remove_queries(src, ["w", "h", "resize", "zoom", "quality", "strip"]); if (newsrc !== src) return newsrc; @@ -9586,7 +9586,7 @@ var $$IMU_EXPORT$$; } if (domain_nosub === "tumblr.com" && /media\.tumblr\.com$/.test(domain) && options && options.element && - options.do_request && options.cb && options.rule_specific && options.rule_specific.tumblr_api_key) { + options.do_request && options.cb && options.rule_specific) { // thanks to dogancelik on github: https://github.com/qsniyg/maxurl/issues/88#issuecomment-569612947 // no trail: // https://samirafee.tumblr.com/post/189953679332/lake-neusiedl-neusiedlersee-fert%C3%B6-largest @@ -9595,7 +9595,7 @@ var $$IMU_EXPORT$$; // https://samirafee.tumblr.com/post/189567617202/kerovous-own-picture-337-my-friend-and var apikey = options.rule_specific.tumblr_api_key; - var get_post = function(blogname, postid, cb) { + var get_post_api = function(blogname, postid, cb) { var cache_key = "tumblr_api_blog:" + blogname + ":post:" + postid; api_cache.fetch(cache_key, cb, function(done) { options.do_request({ @@ -9686,12 +9686,35 @@ var $$IMU_EXPORT$$; return null; }; + var find_blogname_from_head = function() { + if (!options.document) + return null; + + var links = options.document.getElementsByTagName("link"); + for (var i = 0; i < links.length; i++) { + var href = links[i].href; + if (!href) + continue; + + var match = href.match(/^android-app:\/\/com\.tumblr\/tumblr\/x-callback-url\/blog\?blogName=(.*?)(?:[&%].*)?$/); + if (match) { + return match[1]; + } + } + + return null; + }; + var try_finding_info = function() { var info = find_blogname_id_from_url(options.host_url); if (info) return info; var blogname = find_blogname_from_url(options.host_url); + if (!blogname) { + blogname = find_blogname_from_head(); + } + if (blogname) { var obj = { blogname: blogname @@ -9707,7 +9730,7 @@ var $$IMU_EXPORT$$; } } } - } else { + } else if (host_domain_nowww === "tumblr.com") { // Tumblr homepage var currentel = options.element; while ((currentel = currentel.parentElement)) { @@ -9736,7 +9759,7 @@ var $$IMU_EXPORT$$; if (mediakey) { var info = try_finding_info(); if (info) { - get_post(info.blogname, info.postid, function(data) { + get_post_api(info.blogname, info.postid, function(data) { var media = find_media_from_post_mediakey(data, mediakey); if (!media) return options.cb(null);
7
diff --git a/docs/docs.css b/docs/docs.css -/* -@import "foundation-apps/scss/foundation.scss"; - -$slick-font-path: "/fonts/"; -$slick-arrow-color: $primary-color; */ - -/* -@import "slick-carousel/slick/slick.scss"; -@import "slick-carousel/slick/slick-theme.scss"; -@import "./style.scss"; */ h3 { background: #00558B;
2
diff --git a/src/api.js b/src/api.js import fetch from 'unfetch' import storage from 'storage' +import { each } from 'lodash' export const url = 'https://api.hackclub.com/' const methods = ['GET', 'PUT', 'POST', 'PATCH', 'DELETE'] @@ -11,7 +12,7 @@ const generateMethod = method => (path, options = {}, fetchOptions = {}) => { options.authToken = authToken } - for (let [key, value] of Object.entries(options)) { + each(options, (value, key) => { switch (key) { case 'authToken': filteredOptions.headers = filteredOptions.headers || {} @@ -30,7 +31,7 @@ const generateMethod = method => (path, options = {}, fetchOptions = {}) => { filteredOptions[key] = value break } - } + }) if (fetchOptions.noAuth) { if (filteredOptions.headers && filteredOptions.headers['Authorization']) {
14
diff --git a/examples/studio.html b/examples/studio.html @@ -710,7 +710,7 @@ const _closeTab = tab => { }; const _closeAllTabs = () => { // XXX trigger this when switching servers for (let i = 0; i < tabs.length; i++) { - const {iframe} = tab; + const {iframe} = tabs[i]; if (iframe.destroy) { iframe.destroy(); } @@ -933,6 +933,14 @@ const { break; } + case 'reload': { + const {url, d} = m.data; + _closeAllTabs(); + const {position, quaternion, scale} = _getFrontOfCamera(); + _openUrl(url, position, quaternion, scale, d); + + break; + } case 'add': { const {template} = m.data; const url = links.find(link => link.id === template).url;
9
diff --git a/test/base/utils_spec.js b/test/base/utils_spec.js @@ -165,8 +165,8 @@ describe('Utils', function() { describe('listContainsIgnoreCase', function() { it('finds when it contains an item', function() { - const aList = ["audio/aac", "video/mp4"] - const anItem = "audio/aac" + const aList = ['audio/aac', 'video/mp4'] + const anItem = 'audio/aac' const doesitcontains = utils.listContainsIgnoreCase(anItem, aList) @@ -174,8 +174,8 @@ describe('Utils', function() { }) it('finds when it contains a list of any letter case', function() { - const aList = ["AUDIO/aac", "VIDEO/mp4"] - const anItem = "audio/aac" + const aList = ['AUDIO/aac', 'VIDEO/mp4'] + const anItem = 'audio/aac' const doesItContains = utils.listContainsIgnoreCase(anItem, aList) @@ -183,8 +183,8 @@ describe('Utils', function() { }) it('finds when it contains an item of any letter case', function() { - const aList = ["audio/aac", "video/mp4"] - const anItem = "AUDIO/AAC" + const aList = ['audio/aac', 'video/mp4'] + const anItem = 'AUDIO/AAC' const doesItContains = utils.listContainsIgnoreCase(anItem, aList) @@ -192,8 +192,8 @@ describe('Utils', function() { }) it('does not find when an item is not contained', function() { - const aList = ["audio/aac", "video/mp4"] - const anItem = "application/x-mpegURL" + const aList = ['audio/aac', 'video/mp4'] + const anItem = 'application/x-mpegURL' const doesItContains = utils.listContainsIgnoreCase(anItem, aList) @@ -201,7 +201,7 @@ describe('Utils', function() { }) it('does not find when an item is undefined', function() { - const aList = ["audio/aac", "video/mp4"] + const aList = ['audio/aac', 'video/mp4'] const anItem = undefined const doesItContains = utils.listContainsIgnoreCase(anItem, aList) @@ -211,7 +211,7 @@ describe('Utils', function() { it('does not find when the list is undefined', function() { const aList = undefined - const anItem = "audio/aac" + const anItem = 'audio/aac' const doesItContains = utils.listContainsIgnoreCase(anItem, aList)
14
diff --git a/.all-contributorsrc b/.all-contributorsrc { "projectName": "Thorium", - "projectOwner": "Fyreworks", + "projectOwner": "thorium-sim", "files": [ "README.md" ],
1
diff --git a/N/types.d.ts b/N/types.d.ts @@ -204,7 +204,7 @@ export namespace EntryPoints { interface reduceContext { key: string; values: string[]; - write: (key: string, value: string[]) => void; + write: (key: string, value: any) => void; } type reduce = (scriptContext?: reduceContext) => void;
1
diff --git a/main.js b/main.js @@ -244,6 +244,7 @@ class Zigbee extends utils.Adapter { mapped: mappedModel, message: {[key]: preparedValue}, logger: this.log, + state: {}, }; if (preparedOptions.hasOwnProperty('state')) { meta.state = preparedOptions.state;
12
diff --git a/deepfence_backend/tasks/notification.py b/deepfence_backend/tasks/notification.py @@ -329,7 +329,7 @@ def send_http_endpoint_notification(self, http_endpoint_conf, payload, notificat if http_endpoint_conf['authorization_key']: headers['Authorization'] = http_endpoint_conf['authorization_key'] - response = requests.post(http_endpoint_conf["api_url"], json=payload, headers=headers) + response = requests.post(http_endpoint_conf["api_url"], json=payload, headers=headers, verify=False) if response.status_code in [200, 201]: save_integrations_status(notification_id, resource_type, "") else:
8
diff --git a/lambda/es-proxy-layer/lib/translate.js b/lambda/es-proxy-layer/lib/translate.js @@ -122,10 +122,12 @@ exports.translate_hit = async function(hit,usrLang,req){ hit_out.r.buttons[x].text = await get_translation(hit_out.r.buttons[x].text, usrLang,req) ; } if (_.get(hit,'autotranslate.r.buttons[x].value')) { + if (! hit_out.r.buttons[x].value.toLowerCase().startsWith("qid::")) { hit_out.r.buttons[x].value = await get_translation(hit_out.r.buttons[x].value, usrLang, req); } } } + } } catch (e) { qnabot.log("ERROR: response card fields format caused Translate exception. Check syntax: " + e ); throw (e);
8
diff --git a/packages/node_modules/node-red/settings.js b/packages/node_modules/node-red/settings.js @@ -96,10 +96,6 @@ module.exports = { // disabled. //httpNodeRoot: '/red-nodes', - // **DEPRECATED** The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot', - // to apply the same root to both parts. - //httpRoot: '/red', - // When httpAdminRoot is used to move the UI to a different root path, the // following property can be used to identify a directory of static content // that should be served at http://localhost:1880/.
2
diff --git a/app/util.js b/app/util.js @@ -55,7 +55,7 @@ function sanitizeContent(answerElement) { function setCursorAfter($img) { const range = document.createRange() const img = $img.get(0) - const nextSibling = img.nextSibling.tagName === 'DIV' ? img : img.nextSibling + const nextSibling = img.nextSibling && img.nextSibling.tagName === 'BR' ? img.nextSibling : img range.setStart(nextSibling, 0) range.setEnd(nextSibling, 0) const sel = window.getSelection()
1
diff --git a/articles/api-auth/tutorials/authorization-code-grant.md b/articles/api-auth/tutorials/authorization-code-grant.md @@ -50,7 +50,7 @@ Now that you have an Authorization Code, you must exchange it for an Access Toke ], "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}"}" + "text": "{\"grant_type\":\"authorization_code\",\"client_id\": \"${account.clientId}\",\"client_secret\": \"${account.clientSecret}\",\"code\": \"YOUR_AUTHORIZATION_CODE\",\"redirect_uri\": \"${account.callback}\"}" } } ```
0
diff --git a/physx.js b/physx.js @@ -313,40 +313,6 @@ const physxWorker = (() => { } } - class BufferManager { - constructor() { - this.buffers = [] - } - - readBuffer = (constructor, outputBuffer, index) => { - this.buffers.push(outputBuffer) - const offset = outputBuffer / constructor.BYTES_PER_ELEMENT - return Module.HEAP32[offset + index] - } - - readAttribute = (constructor, buffer, count) => { - this.buffers.push(buffer) - return Module.HEAPF32.slice( - buffer / constructor.BYTES_PER_ELEMENT, - buffer / constructor.BYTES_PER_ELEMENT + count - ) - } - - readIndices = (constructor, buffer, count) => { - this.buffers.push(buffer) - return Module.HEAPU32.slice( - buffer / constructor.BYTES_PER_ELEMENT, - buffer / constructor.BYTES_PER_ELEMENT + count - ) - } - - freeAllBuffers = () => { - for (let i = 0; i < this.buffers.length; i++) { - Module._doFree(this.buffers[i]) - } - } - } - // const modulePromise = makePromise(); /* const INITIAL_INITIAL_MEMORY = 52428800; const WASM_PAGE_SIZE = 65536;
2
diff --git a/shared/js/background/atb.es6.js b/shared/js/background/atb.es6.js @@ -26,7 +26,7 @@ const ATB = (() => { // client shouldn't have a falsy ATB value, // so mark them as having gone into an errored state - f (!atbSetting) { + if (!atbSetting) { url += '&e=1' }
9
diff --git a/config/app_config.yml.sample b/config/app_config.yml.sample @@ -205,8 +205,12 @@ defaults: &defaults url_ttl: 7200 async_long_uploads: false uploads_path: 'public/uploads' - pg_dump_bin_path: 'pg_dump' - pg_restore_bin_path: 'pg_restore' + pg_dump_bin_path: + 9.5: 'pg_dump' + 10: 'pg_dump' + pg_restore_bin_path: + 9.5: 'pg_restore' + 10: 'pg_restore' exporter: exporter_temporal_folder: '/tmp/exporter' s3:
3
diff --git a/src/content/en/updates/2018/06/payment-handler-api.md b/src/content/en/updates/2018/06/payment-handler-api.md @@ -2,7 +2,7 @@ project_path: /web/_project.yaml book_path: /web/updates/_book.yaml description: Chrome beta 68 ships with the Payment Handler API -- the new, open, and standard way for web-based payment applications to be offered as a payment option during checkout. It enables merchants to accept a wide variety of payment options within a native-browser experience. -{# wf_updated_on: 2018-06-08 #} +{# wf_updated_on: 2020-05-26 #} {# wf_published_on: 2018-06-07 #} {# wf_tags: javascript, payment, chrome68 #} {# wf_featured_image: /web/updates/images/generic/credit_card.png #} @@ -47,7 +47,7 @@ From a user's point of view, the user experience looks like this: 1. Payment is complete and the Payment Request sheet is closed. 1. The website can display an order confirmation at this point. -Try it yourself [here](https://madmath.github.io/samples/paymentrequest/bobpay/) +Try it yourself [here](https://rsolomakhin.github.io/pr/bob/) using Chrome 68 beta. Notice there are three parties involved: an end user, a merchant website, and a @@ -220,4 +220,3 @@ kind of payment method, supported methods can include: * [Example payment app - BobPay](https://bobpay.xyz/) {% include "web/_shared/rss-widget-updates.html" %} -
1
diff --git a/userscript.user.js b/userscript.user.js @@ -34883,7 +34883,7 @@ if (domain_nosub === "lystit.com" && domain.match(/cdn[a-z]?\.lystit\.com/)) { var img = document.createElement("img"); img.src = e.target.result; img.onload = function() { - cb(img, resp.finalUrl, obj[0]); + cb(img, resp.finalUrl, obj[0], resp); }; img.onerror = function() { err_cb(); @@ -35211,7 +35211,7 @@ if (domain_nosub === "lystit.com" && domain.match(/cdn[a-z]?\.lystit\.com/)) { dragged = false; dragstart = false; - function cb(img, url, newobj) { + function cb(img, url) { if (!controlPressed && false) { if (processing.running) stop_waiting(); @@ -35224,8 +35224,7 @@ if (domain_nosub === "lystit.com" && domain.match(/cdn[a-z]?\.lystit\.com/)) { return; } - if (newobj instanceof Array) - newobj = newobj[0]; + var newobj = data.data.obj; if (!newobj) newobj = {}; @@ -35649,7 +35648,43 @@ if (domain_nosub === "lystit.com" && domain.match(/cdn[a-z]?\.lystit\.com/)) { a.style.setProperty("display", "block", "important"); a.href = url; if (settings.mouseover_download) { - if (newobj.filename) { + a.href = img.src; + + if (typeof newobj.filename !== "string") + newobj.filename = ""; + + if (newobj.filename.length === 0) { + try { + var headers = data.data.respdata.responseHeaders.split("\n"); + for (var h_i = 0; h_i < headers.length; h_i++) { + var header = headers[h_i].split(":"); + if (header[0].toLowerCase().replace(/\s/g, "") === "content-disposition") { + var value = headers[1].replace(/^\s*|\s*$/g, "").split(";"); + for (var v_i = 0; v_i < value.length; v_i++) { + var v_k = value[v_i].replace(/^\s*|\s*$/g, "").split("="); + if (v_k[0] === "filename*") { + newobj.filename = v_k[1]; + } + + if (newobj.filename.length === 0 && v_k[0] === "filename") { + newobj.filename = v_k[1]; + } + } + } + + if (newobj.filename.length > 0) + break; + } + } catch (e) { + console_error(e); + } + + if (newobj.filename.length === 0) { + newobj.filename = url.replace(/.*\/([^?#]*?)(?:\.[^/.]*)?(?:[?#].*)?$/, "$1"); + } + } + + if (newobj.filename.length > 0) { a.setAttribute("download", newobj.filename); } else { var attr = document.createAttribute("download"); @@ -36684,12 +36719,12 @@ if (domain_nosub === "lystit.com" && domain.match(/cdn[a-z]?\.lystit\.com/)) { processing.head = true; } - check_image_get(newobj, function(img, newurl) { + check_image_get(newobj, function(img, newurl, obj, respdata) { if (!img) { return finalcb(null); } - var data = {img: img, newurl: newurl}; + var data = {img: img, newurl: newurl, obj: obj, respdata: respdata}; var newurl1 = newurl; if (openb === "newtab") {
7
diff --git a/install/install.sh b/install/install.sh @@ -134,8 +134,8 @@ RCTF_TOKEN_KEY=${RCTF_TOKEN_KEY:-"$(head -c 32 /dev/urandom | base64 -w 0)"} cp .env.example .env -sed -i.bak "s/RCTF_NAME=.*$/RCTF_NAME=$RCTF_NAME/g" .env -sed -i.bak "s/RCTF_TOKEN_KEY=.*$/RCTF_TOKEN_KEY=$RCTF_TOKEN_KEY/g" .env +sed -i.bak "s/RCTF_NAME=.*$/RCTF_NAME=$(echo "$RCTF_NAME" | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" .env +sed -i.bak "s/RCTF_TOKEN_KEY=.*$/RCTF_TOKEN_KEY=$(echo "$RCTF_TOKEN_KEY" | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" .env # start docker
1
diff --git a/io-manager.js b/io-manager.js @@ -458,7 +458,7 @@ ioManager.bindInput = () => { menuActions.setIsOpen(!menuState.isOpen); break; } - case 74: { + case 74: { // J weaponsManager.inventoryHack = !weaponsManager.inventoryHack; break; }
0
diff --git a/src/components/Auth.js b/src/components/Auth.js @@ -40,13 +40,15 @@ class Auth extends Component { } signOut = e => { - const { signOutCallback } = this.props + const { onSignOut } = this.props try { storage.remove('userEmail') storage.remove('authToken') + + if (onSignOut) onSignOut() + this.setState({ authed: false, authData: {} }) - if (signOutCallback) signOutCallback() } catch (err) { console.error(err) }
10
diff --git a/articles/appliance/private-cloud-requirements.md b/articles/appliance/private-cloud-requirements.md @@ -11,11 +11,16 @@ If you have decided to purchase an Appliance that is hosted in a dedicated area * **Preferred AWS region** such as AWS US-West-2, AWS US-East-1, AWS EU-Central-1, etc; * **Eight (8) DNS names**: * Four (4) will be used for the non-Production node, and four (4) will be used for the Production cluster; + * Domain names will have 4 parts and will end in auth0.com; * **Important**: Please finalize DNS names prior to Appliance deployment. * **SMTP Settings** (including the hostname, port number, username, and password). Auth0 will work with you to enter your settings. For additional details, please see the [SMTP section of the Appliance infrastructure manual](/appliance/infrastructure/security#smtp); * **Administrator(s) email address** for App tenant for non-production and Production environments. +* **Custom Domain (optional)**: If you want your customer-facing applications to use your custom domain (rather than a domain ending in auth0.com), you will need to manage the DNS and certificate for that specific domain. The certificate must be signed by a public Certificate Authority. In this case, you would own two pieces of configuration: + * Using the Auth0 Dashboard you will have to register the custom domain name(s) and upload the certificate(s) associated with that specific domain. You will also be in charge of updating this certificate(s). + * You will have to add DNS entries on your own DNS that alias (CNAME) our domain identity.\<yourname\>.com => identity.\<yourname\>.auth0.com ## Further Reading * [DNS](/appliance/infrastructure/dns) * [DNS Records](/appliance/infrastructure/network#dns-records) +* [Custom Domains on the Appliance](/appliance/custom-domains)
0
diff --git a/Build/Common.Build.props b/Build/Common.Build.props <!-- Always set the checksum --> <AdditionalOptions>%(AdditionalOptions) /release</AdditionalOptions> + <!-- Ignore Linker warning: This object file does not define any previously undefined public symbols --> + <AdditionalOptions>%(AdditionalOptions) /ignore:4221</AdditionalOptions> </Link> + <Lib> + <!-- Ignore Linker warning: This object file does not define any previously undefined public symbols --> + <AdditionalOptions>%(AdditionalOptions) /ignore:4221</AdditionalOptions> + </Lib> </ItemDefinitionGroup> <!-- chk build flags --> <ItemDefinitionGroup Condition="'$(OptimizedBuild)'!='true'">
8
diff --git a/src/og/renderer/RendererEvents.js b/src/og/renderer/RendererEvents.js @@ -56,6 +56,8 @@ class RendererEvents extends Events { this._active = true; + this.clickRadius = 15; + /** * Current mouse state. * @public @@ -111,9 +113,9 @@ class RendererEvents extends Events { /** Mouse has just stopped now. */ justStopped: false, /** Mose double click delay response time.*/ - doubleClickDelay: 300, + doubleClickDelay: 500, /** Mose click delay response time.*/ - clickDelay: 150, + clickDelay: 200, /** Mouse wheel. */ wheelDelta: 0, /** JavaScript mouse system event message. */ @@ -302,17 +304,31 @@ class RendererEvents extends Events { var ms = this.mouseState; ms.sys = event; - if (ms.x === event.clientX && ms.y === event.clientY) { - return; - } + let ex = event.clientX, + ey = event.clientY, + r = this.clickRadius; + if (Math.abs(this._lclickX - ex) >= r && + Math.abs(this._lclickY - ey) >= r) { this._ldblClkBegins = 0; - this._rdblClkBegins = 0; - this._mdblClkBegins = 0; - this._lClkBegins = 0; + } + + if (Math.abs(this._rclickX - ex) >= r && + Math.abs(this._rclickY - ey) >= r) { + this._rdblClkBegins = 0; this._rClkBegins = 0; + } + + if (Math.abs(this._mclickX - ex) >= r && + Math.abs(this._mclickY - ey) >= r) { + this._mdblClkBegins = 0; this._mClkBegins = 0; + } + + if (ms.x === event.clientX && ms.y === event.clientY) { + return; + } ms.x = event.clientX; ms.y = event.clientY; @@ -377,8 +393,8 @@ class RendererEvents extends Events { ms.leftButtonDown = false; ms.leftButtonUp = true; - if (this._lclickX === event.clientX && - this._lclickY === event.clientY && + if (Math.abs(this._lclickX - event.clientX) < this.clickRadius && + Math.abs(this._lclickY - event.clientY) < this.clickRadius && (t - this._lClkBegins <= ms.clickDelay)) { if (this._ldblClkBegins) { @@ -399,8 +415,8 @@ class RendererEvents extends Events { ms.rightButtonDown = false; ms.rightButtonUp = true; - if (this._rclickX === event.clientX && - this._rclickY === event.clientY && + if (Math.abs(this._rclickX - event.clientX) < this.clickRadius && + Math.abs(this._rclickY - event.clientY) < this.clickRadius && (t - this._rClkBegins <= ms.clickDelay)) { if (this._rdblClkBegins) { @@ -420,8 +436,8 @@ class RendererEvents extends Events { ms.middleButtonDown = false; ms.middleButtonUp = true; - if (this._mclickX === event.clientX && - this._mclickY === event.clientY && + if (Math.abs(this._mclickX - event.clientX) < this.clickRadius && + Math.abs(this._mclickY - event.clientY) < this.clickRadius && (t - this._mClkBegins <= ms.clickDelay)) { if (this._mdblClkBegins) {
7
diff --git a/source/touch/tap.js b/source/touch/tap.js @@ -183,13 +183,19 @@ const tap = new Gesture({ const id = touch.identifier; const trackedTouch = tracking[id]; if (trackedTouch) { - let target = document.elementFromPoint( - touch.clientX, - touch.clientY, - ); + const { clientX, clientY } = touch; + // Android Chrome gives bogus values sometimes, which I think + // are Infinity. Check it's finite before using. + let target = + 0 <= clientX && + clientX < Infinity && + 0 <= clientY && + clientY < Infinity + ? document.elementFromPoint(clientX, clientY) + : null; const initialTarget = trackedTouch.target; const duration = Date.now() - trackedTouch.timestamp; - if (target !== initialTarget) { + if (target && target !== initialTarget) { target = getCommonAncestor(target, initialTarget); } if (target) {
9
diff --git a/token-metadata/0x54C9EA2E9C9E8eD865Db4A4ce6711C2a0d5063Ba/metadata.json b/token-metadata/0x54C9EA2E9C9E8eD865Db4A4ce6711C2a0d5063Ba/metadata.json "symbol": "BART", "address": "0x54C9EA2E9C9E8eD865Db4A4ce6711C2a0d5063Ba", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/CHANGELOG.md b/CHANGELOG.md ### New Stuff +#### Tools + +- Created [ngf](https://github.com/ericmdantas/ngf) a simple alias for `ng-fullstack` to make your app development even faster + #### Client - Added Less and Sass support for the client side
0
diff --git a/modules/setting.js b/modules/setting.js @@ -23,7 +23,7 @@ try { let settings = {} -let themesDict = [] +let themesDict = null let defaults = { 'app.startup_check_updates': true, @@ -154,25 +154,30 @@ exports.load = function() { settings[overwriteKey] = [] } - // Load themes + return exports.save() +} +exports.loadThemes = function() { let packagePath = filename => path.join(exports.themesDirectory, filename, 'package.json') let friendlyName = name => name.split('-') .map(x => x === '' ? x : x[0].toUpperCase() + x.slice(1).toLowerCase()).join(' ') - themesDict = fs.readdirSync(exports.themesDirectory) - .filter(x => x.slice(-11) === '.theme.asar' && fs.existsSync(packagePath(x))) - .map(x => Object.assign({}, require(packagePath(x)), { - id: x.slice(0, -11), + themesDict = fs.readdirSync(exports.themesDirectory).map(x => { + try { + return Object.assign({}, require(packagePath(x)), { + id: x, path: path.join(packagePath(x), '..') - })) - .reduce((acc, x) => { + }) + } catch (err) { + return null + } + }).reduce((acc, x) => { + if (x == null) return acc + x.name = friendlyName(x.name) acc[x.id] = x return acc }, {}) - - return exports.save() } exports.save = function() { @@ -194,6 +199,7 @@ exports.set = function(key, value) { } exports.getThemes = function() { + if (themesDict == null) exports.loadThemes() return themesDict }
9
diff --git a/source/Overture/views/controls/RichTextView.js b/source/Overture/views/controls/RichTextView.js @@ -374,6 +374,7 @@ var RichTextView = NS.Class({ preventOverlap: showToolbar === TOOLBAR_AT_TOP }).registerViews({ bold: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-bold', isActive: bind( 'isBold', this ), @@ -390,6 +391,7 @@ var RichTextView = NS.Class({ } }), italic: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-italic', isActive: bind( 'isItalic', this ), @@ -406,6 +408,7 @@ var RichTextView = NS.Class({ } }), underline: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-underline', isActive: bind( 'isUnderlined', this ), @@ -422,6 +425,7 @@ var RichTextView = NS.Class({ } }), strikethrough: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-strikethrough', isActive: bind( 'isStriked', this ), @@ -438,6 +442,7 @@ var RichTextView = NS.Class({ } }), size: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-font-size', label: NS.loc( 'Font Size' ), @@ -446,6 +451,7 @@ var RichTextView = NS.Class({ method: 'showFontSizeMenu' }), font: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-font', label: NS.loc( 'Font Face' ), @@ -454,6 +460,7 @@ var RichTextView = NS.Class({ method: 'showFontFaceMenu' }), color: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-palette', label: NS.loc( 'Text Color' ), @@ -462,6 +469,7 @@ var RichTextView = NS.Class({ method: 'showTextColorMenu' }), bgcolor: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-highlight', label: NS.loc( 'Text Highlight' ), @@ -470,6 +478,7 @@ var RichTextView = NS.Class({ method: 'showTextHighlightColorMenu' }), link: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-link', isActive: bind( 'isLink', this ), @@ -486,6 +495,7 @@ var RichTextView = NS.Class({ } }), image: new NS.FileButtonView({ + tabIndex: -1, type: 'v-FileButton v-Button--iconOnly', icon: 'icon-image', label: NS.loc( 'Insert Image' ), @@ -496,6 +506,7 @@ var RichTextView = NS.Class({ method: 'insertImagesFromFiles' }), left: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-paragraph-left', isActive: bind( 'alignment', this, equalTo( 'left' ) ), @@ -507,6 +518,7 @@ var RichTextView = NS.Class({ } }), centre: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-paragraph-centre', isActive: bind( 'alignment', this, equalTo( 'center' ) ), @@ -518,6 +530,7 @@ var RichTextView = NS.Class({ } }), right: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-paragraph-right', isActive: bind( 'alignment', this, equalTo( 'right' ) ), @@ -529,6 +542,7 @@ var RichTextView = NS.Class({ } }), justify: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-paragraph-justify', isActive: bind( 'alignment', this, equalTo( 'justify' ) ), @@ -540,6 +554,7 @@ var RichTextView = NS.Class({ } }), ltr: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-lefttoright', isActive: bind( 'direction', this, equalTo( 'ltr' ) ), @@ -551,6 +566,7 @@ var RichTextView = NS.Class({ } }), rtl: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-righttoleft', isActive: bind( 'direction', this, equalTo( 'rtl' ) ), @@ -562,6 +578,7 @@ var RichTextView = NS.Class({ } }), quote: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-quotes-left', label: NS.loc( 'Quote' ), @@ -571,6 +588,7 @@ var RichTextView = NS.Class({ method: 'increaseQuoteLevel' }), unquote: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-quotes-right', label: NS.loc( 'Unquote' ), @@ -580,6 +598,7 @@ var RichTextView = NS.Class({ method: 'decreaseQuoteLevel' }), ul: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-list', isActive: bind( 'isUnorderedList', this ), @@ -596,6 +615,7 @@ var RichTextView = NS.Class({ } }), ol: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-numbered-list', isActive: bind( 'isOrderedList', this ), @@ -612,6 +632,7 @@ var RichTextView = NS.Class({ } }), unformat: new ButtonView({ + tabIndex: -1, type: 'v-Button--iconOnly', icon: 'icon-clear-formatting', label: NS.loc( 'Clear Formatting' ),
2
diff --git a/tools/make/lib/addons/Makefile b/tools/make/lib/addons/Makefile @@ -59,8 +59,9 @@ install-addons: $(NODE_GYP) CC=$(CC) \ C_COMPILER=$(C_COMPILER) \ CXX=$(CXX) \ - FORTRAN_COMPILER=$(FORTRAN_COMPILER) \ + CXX_COMPILER=$(CXX_COMPILER) \ FC=$(FC) \ + FORTRAN_COMPILER=$(FORTRAN_COMPILER) \ fPIC=$(fPIC) \ $(MAKE); \ echo 'Building add-on...'; \
12
diff --git a/packages/config/src/index.js b/packages/config/src/index.js @@ -25,7 +25,8 @@ const resolveConfig = async function(configFile, { cwd = getCwd() } = {}) { const configC = await handleFiles(configB, baseDir) return configC } catch (error) { - error.message = `When resolving config file ${configPath}:\n${error.message}` + const configMessage = configPath === undefined ? '' : ` file ${configPath}` + error.message = `When resolving config${configMessage}:\n${error.message}` throw error } }
7
diff --git a/app/classifier/world-wide-telescope.jsx b/app/classifier/world-wide-telescope.jsx @@ -258,24 +258,21 @@ StarCoord._epochConvert = (ra, dec) => { }; StarCoord._transform = (ra, dec) => { - const r0 = new Array ( - Math.cos(ra) * Math.cos(dec), - Math.sin(ra) * Math.cos(dec), - Math.sin(dec) ); + const r0 = [ Math.cos(ra) * Math.cos(dec), Math.sin(ra) * Math.cos(dec), Math.sin(dec) ]; - const matrix = new Array ( + const matrix = [ 0.9999256782, -0.0111820611, -0.0048579477, 0.0111820610, 0.9999374784, -0.0000271765, - 0.0048579479, -0.0000271474, 0.9999881997 ); + 0.0048579479, -0.0000271474, 0.9999881997 ]; - const s0 = new Array ( + const s0 = [ r0[0]*matrix[0] + r0[1]*matrix[1] + r0[2]*matrix[2], r0[0]*matrix[3] + r0[1]*matrix[4] + r0[2]*matrix[5], - r0[0]*matrix[6] + r0[1]*matrix[7] + r0[2]*matrix[8] ); + r0[0]*matrix[6] + r0[1]*matrix[7] + r0[2]*matrix[8] ]; const r = Math.sqrt( s0[0]*s0[0] + s0[1]*s0[1] + s0[2]*s0[2] ); - const result = new Array ( 0.0, 0.0 ); + const result = [ 0.0, 0.0 ]; result[1] = Math.asin( s0[2]/r ); const cosaa = ( (s0[0]/r) / Math.cos(result[1] ) ); const sinaa = ( (s0[1]/r) / Math.cos(result[1] ) );
4
diff --git a/src/lib/image.js b/src/lib/image.js @@ -45,7 +45,7 @@ export async function fit (buffer, width, height) { const transformer = sharp(buffer); if (width || height) { - transformer.resize(width, height).crop(); + transformer.resize(width, height, { fit: sharp.fit.cover }); } return transformer.toBuffer();
14
diff --git a/app/models/user.rb b/app/models/user.rb @@ -521,7 +521,7 @@ class User < ApplicationRecord return false unless user.id return true if user.id == id - friendships.where( friend_user_id: user, trust: true ).exists? + friendships.where( friend_id: user, trust: true ).exists? end def picasa_client
1
diff --git a/packages/@uppy/robodog/src/form.js b/packages/@uppy/robodog/src/form.js @@ -18,10 +18,15 @@ function form (target, opts) { name: 'transloadit' }) + let submitOnSuccess = true + if (opts.hasOwnProperty('submitOnSuccess')) { + submitOnSuccess = !!opts.submitOnSuccess + } + uppy.use(Form, { target, triggerUploadOnSubmit: true, - submitOnSuccess: true, + submitOnSuccess: submitOnSuccess, addResultToForm: false // using custom implementation instead })
0
diff --git a/data.js b/data.js @@ -4077,6 +4077,14 @@ module.exports = [ url: "https://github.com/relay/anim", source: "https://raw.githubusercontent.com/relay/anim/master/anim.js" }, + { + name: "Check.js", + github: "Morklympious/check.js", + tags: ["type checking", "verification", "utility", "library"], + description: "A tiny library for type and sanity checking", + url: "https://github.com/Morklympious/check.js", + source: "https://raw.githubusercontent.com/Morklympious/check.js/master/dist/check.min.js" + }, { name: "Relay", tags: ["dom", "library", "framework", "mvc", "traversing", "events", "pubsub", "base"],
0
diff --git a/Makefile b/Makefile @@ -162,7 +162,6 @@ WORKING_SPECS_5 = \ spec/requests/api/assets_spec.rb \ spec/requests/carto/api/assets_controller_spec.rb \ spec/requests/carto/api/layers_controller_spec.rb \ - spec/requests/api/json/records_controller_spec.rb \ spec/requests/carto/api/records_controller_spec.rb \ spec/requests/carto/api/columns_controller_spec.rb \ spec/requests/api/synchronizations_spec.rb \
2
diff --git a/apps/advcasio/README.md b/apps/advcasio/README.md An over-engineered clock inspired by Casio watches.<br/> It has a dedicated timer, a scratchpad and can display the weather condition 4 days ahead.<br/> -It uses a custom webapp to update its content.<br/> +It uses a <a target="_blank" href="https://dotgreg.github.io/advCasioBangleClock/">custom web app</a> to update its content.<br/> Forked from the awesome Cassio Watch.<br/> ## Todo @@ -30,15 +30,15 @@ Clock: <img src="https://user-images.githubusercontent.com/2981891/175355586-1dfc0d66-6555-4385-b124-1605fdb71a11.jpg" width="250" /> Web interface to update weather & scratchpad <br/> -<a href="https://adv-casio-bangle-updater.herokuapp.com/">https://adv-casio-bangle-updater.herokuapp.com/</a> +<a target="_blank" ref="https://dotgreg.github.io/advCasioBangleClock/">https://dotgreg.github.io/advCasioBangleClock</a> <img src="https://user-images.githubusercontent.com/2981891/175355578-444315e3-03d8-4d60-a1a9-e8ed7519d52b.jpg" width="250" /> ## Usage ### How to update the tasks list / weather -- you will need a <a href="https://openweathermap.org/price#weather">free openweathermap.org api key</a>. -- go to https://adv-casio-bangle-updater.herokuapp.com - - Alternatively you can install it on your own server/heroku/service/github pages, the web-app code is <a href="https://github.com/dotgreg/advCasioBangleClock/tree/master/web-app">here</a> +- you will need a <a target="_blank" href="https://openweathermap.org/price#weather">free openweathermap.org api key</a>. +- go to https://dotgreg.github.io/advCasioBangleClock/ + - Alternatively you can install it on your own server/heroku/service/github pages, the web-app code is <a target="_blank" href="https://github.com/dotgreg/advCasioBangleClock/tree/master/web-app">here</a> - fill the location and the api key (it will be saved on your browser, no need to do it each time) - edit the scratchpad with what you want - click on sync @@ -50,14 +50,12 @@ Web interface to update weather & scratchpad <br/> - swipe right : start timer - swipe left : stop timer -## Issues, suggestions and bugtracker -<a href="https://github.com/dotgreg/advCasioBangleClock/issues">https://github.com/dotgreg/advCasioBangleClock/issues</a> - -## Code repository (bangle app and web app) -<a href="https://github.com/dotgreg/advCasioBangleClock">https://github.com/dotgreg/advCasioBangleClock</a> - -## Creator -<a href="https://github.com/dotgreg">https://github.com/dotgreg</a> - +## Links +### Issues, suggestions and bugtracker +<a target="_blank" href="https://github.com/dotgreg/advCasioBangleClock/issues">https://github.com/dotgreg/advCasioBangleClock/issues</a> +### Code repository (bangle app and web app) +<a target="_blank" href="https://github.com/dotgreg/advCasioBangleClock">https://github.com/dotgreg/advCasioBangleClock</a> +### Creator +<a target="_blank" href="https://github.com/dotgreg">https://github.com/dotgreg</a>
3
diff --git a/screen/receive/details.js b/screen/receive/details.js @@ -95,6 +95,7 @@ export default class ReceiveDetails extends Component { logoSize={90} color={BlueApp.settings.foregroundColor} logoBackgroundColor={BlueApp.settings.brandingColor} + ecl={'H'} /> )} </View>
7
diff --git a/runtime.js b/runtime.js @@ -858,6 +858,12 @@ const _loadWebBundle = async (file, {instanceId = null, monetizationPointer = nu }; const _loadScene = async (file, {files = null}) => { let srcUrl = file.url || URL.createObjectURL(file); + if (files) { + srcUrl = files[srcUrl]; + } + if (/^\.+\//.test(srcUrl)) { + srcUrl = new URL(srcUrl, location.href).href; + } const res = await fetch(srcUrl); const j = await res.json();
0
diff --git a/checkfiles/checkfiles.py b/checkfiles/checkfiles.py @@ -820,12 +820,9 @@ def patch_file(session, url, job): } if data: item_url = urljoin(url, job['@id']) - for key in data: - job['item'][key] = data['key'] - job['item'].pop('content_error_detail') r = session.patch( item_url, - data=json.dumps(job['item']), + data=json.dumps(data), headers={ 'If-Match': job['etag'], 'Content-Type': 'application/json',
13
diff --git a/draftlogs/5771_fix.md b/draftlogs/5771_fix.md - - Clickable legend group titles [[#5771](https://github.com/plotly/plotly.js/pull/5771)] + - Allow clickable legend group titles when group has no pie-like traces [[#5771](https://github.com/plotly/plotly.js/pull/5771)] +
3
diff --git a/jobs/upcoming.js b/jobs/upcoming.js @@ -73,7 +73,7 @@ module.exports = async () => { // Compare each mission name against entire list of wiki payloads, and fuzzy match the // mission name against the wiki payload name. The partial match must be 100%, to avoid // conflicts like SSO-A and SSO-B, where a really close match would produce wrong results. - for await (const [launchesIndex, launch] of upcoming.entries()) { + for await (const [, launch] of upcoming.entries()) { // Allow users to pause auto updates from wiki, while still preserving // flight reordering feature if (!launch.auto_update) { @@ -144,7 +144,7 @@ module.exports = async () => { } // Add flight numbers to array to check for duplicates - flightNumbers.push(baseFlightNumber + launchesIndex); + flightNumbers.push(baseFlightNumber + wikiIndex); // Wiki launchpad matchers const slc40Pattern = /^SLC-40.*$/i; @@ -227,7 +227,7 @@ module.exports = async () => { const localTime = time.tz(timezone).format(); const rawUpdate = { - flight_number: (baseFlightNumber + launchesIndex), + flight_number: (baseFlightNumber + wikiIndex), date_unix: zone.unix(), date_utc: zone.toISOString(), date_local: localTime,
13