code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/Verify.js b/src/Verify.js @@ -101,7 +101,7 @@ class Verify { ); if (File.exists('yarn.lock')) { - installCommand = installCommand.replace('npm install', 'yarn add'); + installCommand = installCommand.replace('npm install', 'yarn add').replace('--save-dev', '--dev'); } exec(installCommand);
14
diff --git a/app.rb b/app.rb @@ -128,7 +128,7 @@ get '/launchpads' do content_type :json collection = client[:launchpad] hash = collection.find({}, projection: {_id: 0}) - JSON.pretty_generate(hash.to_a[0]) + JSON.pretty_generate(hash.to_a) end # Get info on a specific launch pad
11
diff --git a/app/shell-menus/donate.js b/app/shell-menus/donate.js @@ -26,12 +26,26 @@ class DonateMenu extends LitElement { await this.requestUpdate() } + resolvePaymentLink (paymentLink) { + if (paymentLink.indexOf('://') === -1) { + const shouldAddSlash = !this.url.endsWith('/') && !paymentLink.startsWith('/') + return `${this.url}${shouldAddSlash ? '/' : ''}${paymentLink}` + } + return paymentLink + } + // rendering // = + renderDonationLink (paymentLink) { + const url = this.resolvePaymentLink(paymentLink) + return html`<a href="#" class="link" @click=${e => this.onOpenPage(url)}>${url}</a>` + } + render () { var title = _get(this, 'datInfo.title', 'this site') - var paymentUrl = _get(this, 'datInfo.links.payment.0.href') + const paymentLink = String(_get(this, 'datInfo.links.payment.0.href')) + return html` <link rel="stylesheet" href="beaker://assets/font-awesome.css"> <div class="wrapper"> @@ -46,7 +60,7 @@ class DonateMenu extends LitElement { Visit their donation page to show your appreciation! </div> <div> - <a href="#" class="link" @click=${e => this.onOpenPage(paymentUrl)}>${paymentUrl}</a> + ${this.renderDonationLink(paymentLink)} </div> </div> </div>
9
diff --git a/src/modules/mesh/TextureModule.js b/src/modules/mesh/TextureModule.js @@ -11,8 +11,32 @@ const loader = new TextureLoader(); /** * @class TextureModule + * @description A TextureModule can be applied to any Mesh or Model. * @param {Array} [textures] - array of texture objects * @memberof module:modules/mesh + * @example <caption>Creating an instance. url takes a path, or a data object.</caption> + * var woodTexture = new TextureModule({ + * url: `${process.assetsPath}/textures/wood.jpg` + * }); + * @example <caption>More comprehensive example, wood texture applied to a Box.</caption> + * const box = new Box({ + * geometry: { + * width: 2, + * height: 2, + * depth: 2 + * }, + * modules: [ + * new TextureModule({ + * url: `${process.assetsPath}/textures/wood.jpg`, + * repeat: new THREE.Vector2(1, 1) // optional + * }) + * ], + * material: new THREE.MeshBasicMaterial({ + * color: 0xffffff + * }), + * position: [50, 60, 70] + * }); + * box.addTo(app); */ export class TextureModule { static load(url) {
7
diff --git a/README.md b/README.md @@ -100,7 +100,7 @@ The new bundle will be created in the `dist/` directory and named `plotly-<out>. npm run partial-bundle -- --out myBundleName ``` -Use `unminified` option to create an `unminified` bundle. +Use the `unminified` option to disable compression. ``` npm run partial-bundle -- --unminified ```
7
diff --git a/server.js b/server.js @@ -474,9 +474,9 @@ app.prepare().then(async () => { server.all("*", async (r, s) => handler(r, s, r.url)); const listenServer = server.listen(Environment.PORT, (e) => { + console.log("listen server function called"); if (e) throw e; - Websocket.create(); NodeLogging.log(`started on http://localhost:${Environment.PORT}`); }); });
2
diff --git a/bin/browsertimeWebPageReplay.js b/bin/browsertimeWebPageReplay.js @@ -126,7 +126,10 @@ async function runBrowsertime() { delay: 0, video: false, visualMetrics: false, - resultDir: '/tmp/browsertime' + resultDir: '/tmp/browsertime', + chrome: { + ignoreCertificateErrors: true + } }; const btOptions = merge({}, parsed.argv.browsertime, defaultConfig);
8
diff --git a/runtime/buildRoutes.js b/runtime/buildRoutes.js @@ -15,7 +15,10 @@ const decorateRoute = function (route) { route.paramKeys = pathToParams(route.path) route.regex = pathToRegex(route.path, route.isFallback) route.name = route.path.match(/[^\/]*\/[^\/]+$/)[0].replace(/[^\w\/]/g, '') //last dir and name, then replace all but \w and / - route.shortPath = route.path.replace(/\/(index|_fallback)$/, '') + if (route.isFallback || route.isIndex) + route.shortPath = route.path.replace(/\/[^/]+$/, '') + else route.shortPath = route.path + route.ranking = pathToRank(route) route.params = {}
11
diff --git a/site/management.md b/site/management.md @@ -378,7 +378,7 @@ such as: * <*resource_server_id*>`.tag:administrator` * <*resource_server_id*>`.read:*/*/*` -We use the setting `management.oauth_scopes` to configure the scopes. It is a space-separated field. +You use the setting `management.oauth_scopes` to configure the scopes. It is a space-separated field. ### Configure OpenID Connect Discovery endpoint
4
diff --git a/src/client/components/Navigation/Topnav.js b/src/client/components/Navigation/Topnav.js @@ -272,7 +272,7 @@ class Topnav extends React.Component { handleMobileSearchButtonClick = () => { const { searchBarActive } = this.state; this.setState({ searchBarActive: !searchBarActive }, () => { - this.searchInputRef.refs.input.focus(); + this.searchInputRef.input.focus(); }); };
3
diff --git a/src/components/CardList.js b/src/components/CardList.js @@ -74,8 +74,7 @@ const Image = styled(Img)` margin-top: 4px; ` -const CardList = ({ content, className, clickHandler }) => { - return ( +const CardList = ({ content, className, clickHandler }) => ( <Table className={className}> {content.map((listItem, idx) => { const { title, description, caption, link, image, alt, id } = listItem @@ -112,6 +111,5 @@ const CardList = ({ content, className, clickHandler }) => { })} </Table> ) -} export default CardList
7
diff --git a/server/src/schema/mutations/HostCompetition.js b/server/src/schema/mutations/HostCompetition.js @@ -26,8 +26,8 @@ const mutation = { host: authIdOnSession, displayName: args.displayName, description: args.description, - // startDatetime: args.startDatetime, - // finishDatetime: args.finishDatetime, + startDatetime: args.startDatetime, + finishDatetime: args.finishDatetime, formula: args.formula }) newCompetition.codeName = slugify(newCompetition.displayName) + '-' + newCompetition._id
12
diff --git a/userscript.user.js b/userscript.user.js @@ -54686,7 +54686,7 @@ var $$IMU_EXPORT$$; function addImage(src, el, options) { if (_nir_debug_) - console_log("_find_source (addImage)", el, check_visible(el)); + console_log("_find_source (addImage)", el, check_visible(el), options); if (settings.mouseover_apply_blacklist && !bigimage_filter(src)) { if (_nir_debug_) @@ -54914,7 +54914,7 @@ var $$IMU_EXPORT$$; var src = get_url_from_css(bgimg); if (src) addImage(src, el, { - isbg: true, + isbg: beforeafter || true, layer: layer }); } @@ -54967,6 +54967,20 @@ var $$IMU_EXPORT$$; console_log("_find_source (layers)", deepcopy(layers)); } + // remove sources that aren't used + var activesources = []; + for (var i = 0; i < layers.length; i++) { + for (var j = 0; j < layers[i].length; j++) { + if (activesources.indexOf(layers[i][j]) < 0) + activesources.push(layers[i][j]); + } + } + + for (var source in sources) { + if (activesources.indexOf(source) < 0) + delete sources[source]; + } + if ((source = getsource()) !== undefined) { if (_nir_debug_) console_log("_find_source (getsource())", source);
1
diff --git a/src/tom-select.ts b/src/tom-select.ts @@ -639,7 +639,7 @@ export default class TomSelect extends MicroPlugin(MicroEvent){ preventDefault(e); return; - // doc_src select active option + // return: select active option case constants.KEY_RETURN: if (self.isOpen && self.activeOption) { self.onOptionSelect(e,self.activeOption);
13
diff --git a/package.json b/package.json "read-yaml": "^1.0.0", "request": "^2.75.0", "serve-static": "^1.11.1", - "shelljs": "^0.7.6", + "shelljs": "^0.5.0", "solc": "^0.4.8", "toposort": "^1.0.0", "web3": "^0.18.2",
13
diff --git a/generators/server/templates/src/main/java/package/repository/UserRepository.java.ejs b/generators/server/templates/src/main/java/package/repository/UserRepository.java.ejs @@ -125,7 +125,11 @@ public interface UserRepository extends <% if (databaseType === 'sql') { %>JpaRe <%= optionalOrMono %><<%= asEntity('User') %>> findOneByActivationKey(String activationKey); <%_ } _%> + <%_ if (authenticationType !== 'oauth2') { _%> + <% if (reactive) { %>Flux<% } else { %>List<% } %><<%= asEntity('User') %>> findAllByActivatedIsFalseAndActivationKeyIsNotNullAndCreatedDateBefore(Instant dateTime); + <%_ } _%> + <%_ if (authenticationType !== 'oauth2') { _%> <%= optionalOrMono %><<%= asEntity('User') %>> findOneByResetKey(String resetKey);
2
diff --git a/src/backend/mode_gpu.js b/src/backend/mode_gpu.js if (!textureCache[programCacheKey]) { textureCache[programCacheKey] = []; } - var texturesForCleanup = []; var textureCount = 0; for (textureCount=0; textureCount<paramNames.length; textureCount++) { var paramDim, paramSize, texture; argBuffer = new Uint8Array((new Float32Array(paramArray)).buffer); gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, paramSize[0], paramSize[1], 0, gl.RGBA, gl.UNSIGNED_BYTE, argBuffer); } - //texturesForCleanup.push(texture); var paramLoc = getUniformLocation("user_" + paramNames[textureCount]); var paramSizeLoc = getUniformLocation("user_" + paramNames[textureCount] + "Size"); gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4); - for (var i=0; i<texturesForCleanup.length; i++) { - var texture = texturesForCleanup[i]; - gl.deleteTexture(texture); - } - if (opt.outputToTexture) { + // Don't retain a handle on the output texture, we might need to render on the same texture later + delete textureCache[programCacheKey][textureCount]; + delete framebufferCache[programCacheKey]; + return new GPUTexture(gpu, outputTexture, texSize, opt.dimensions); } else { var result;
1
diff --git a/app/actions/MarketsActions.js b/app/actions/MarketsActions.js @@ -31,7 +31,7 @@ function clearBatchTimeouts() { } const marketStatsQueue = []; // Queue array holding get_ticker promises -const marketStatsQueueLength = 10; // Number of get_ticker calls per batch +const marketStatsQueueLength = 500; // Number of get_ticker calls per batch const marketStatsQueueTimeout = 1.5; // Seconds before triggering a queue processing let marketStatsQueueActive = false;
12
diff --git a/src/components/CheckboxWithLabel.js b/src/components/CheckboxWithLabel.js @@ -40,7 +40,7 @@ const propTypes = { * @param {Object} props - props passed to the input * @returns {Object} - returns an Error object if isFormInput is supplied but inputID is falsey or not a string */ - inputID: props => FormUtils.getInputIDPropTypes(props), + inputID: props => FormUtils.validateInputIDProps(props), /** Saves a draft of the input value when used in a form */ shouldSaveDraft: PropTypes.bool,
10
diff --git a/token-metadata/0x11eeF04c884E24d9B7B4760e7476D06ddF797f36/metadata.json b/token-metadata/0x11eeF04c884E24d9B7B4760e7476D06ddF797f36/metadata.json "symbol": "MX", "address": "0x11eeF04c884E24d9B7B4760e7476D06ddF797f36", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/userscript.user.js b/userscript.user.js @@ -82657,14 +82657,24 @@ var $$IMU_EXPORT$$; } // Dokuwiki - if (domain_nowww === "wikitoes.com" || + if (src.match(/\/lib\/+exe\/+fetch\.php.*?[?&]media=[^&]*.*?$/)) { // http://www.substech.com/dokuwiki/lib/exe/fetch.php?w=&h=&cache=cache&media=electron_microscope.png // http://www.substech.com/dokuwiki/lib/exe/fetch.php?media=electron_microscope.png - src.match(/\/lib\/+exe\/+fetch\.php.*?[?&]media=[^&]*.*?$/)) { // http://www.wikitoes.com/lib/exe/fetch.php?w=120&h=120&tok=00c541&media=emma_watson:emma_watson_004.jpg // http://www.wikitoes.com/lib/exe/fetch.php?media=emma_watson:emma_watson_004.jpg - return src.replace(/\/lib\/+exe\/+fetch\.php.*?[?&](media=[^&]*).*?$/, - "/lib/exe/fetch.php?$1"); + // http://www.bundysoft.com/wiki/lib/exe/fetch.php?w=450&media=reviews:dokuwiki:admin1.png + // http://www.bundysoft.com/wiki/lib/exe/fetch.php?media=reviews:dokuwiki:admin1.png + // https://www.dokuwiki.org/lib/exe/fetch.php?tok=f05a08&media=http%3A%2F%2Fm3.notomorrow.de%2Fpublic%2Frepos%2Fdokuwiki%2Fplugins%2Fdokuwiki-plugin-templateconfhelper-example.png + // https://www.dokuwiki.org/lib/exe/fetch.php?media=http%3A%2F%2Fm3.notomorrow.de%2Fpublic%2Frepos%2Fdokuwiki%2Fplugins%2Fdokuwiki-plugin-templateconfhelper-example.png -- 412 + // http://m3.notomorrow.de/public/repos/dokuwiki/plugins/dokuwiki-plugin-templateconfhelper-example.png -- 404 + // http://wiki.metalforge.net/lib/exe/fetch.php/server:14_win10_maps-destination.png + newsrc = keep_queries(src, ["media"]); + if (newsrc !== src) + return newsrc; + + newsrc = src.replace(/.*\/fetch\.php\?(?:.*&)?media=([^&]+).*?$/, "$1"); + if (newsrc !== src) + return decodeuri_ifneeded(newsrc); } if (domain === "cdn.himalaya.com" ||
7
diff --git a/src/CrudPanel.php b/src/CrudPanel.php @@ -280,9 +280,9 @@ class CrudPanel */ public function getModelAttributeFromRelation($model, $relationString, $attribute) { - $lastModels = $this->getRelationModelInstance($model, $relationString); + $endModels = $this->getRelationModelInstances($model, $relationString); $attributes = []; - foreach ($lastModels as $model) { + foreach ($endModels as $model) { if ($model->{$attribute}) { $attributes[] = $model->{$attribute}; } @@ -298,7 +298,7 @@ class CrudPanel * @param string $relationString Relation string. A dot notation can be used to chain multiple relations. * @return array An array of the associated model instances defined by the relation string. */ - private function getRelationModelInstance($model, $relationString) + private function getRelationModelInstances($model, $relationString) { $relationArray = explode('.', $relationString); $firstRelationName = array_first($relationArray); @@ -317,7 +317,7 @@ class CrudPanel if (!empty($relationArray)) { foreach ($currentResults as $currentResult) { - $results = array_merge($results, $this->getRelationModelInstance($currentResult, implode('.', $relationArray))); + $results = array_merge($results, $this->getRelationModelInstances($currentResult, implode('.', $relationArray))); } } else { $results = $currentResults;
10
diff --git a/packages/frontend/src/redux/slices/ledger/index.js b/packages/frontend/src/redux/slices/ledger/index.js @@ -118,6 +118,10 @@ const ledgerSlice = createSlice({ const transportError = error?.name === 'TransportStatusError'; set(state, ['signInWithLedger', accountId, 'status'], transportError ? 'rejected' : 'error'); }); + builder.addCase(refreshAccountOwner.fulfilled, (state, { payload }) => { + set(state, ['hasLedger'], payload.ledger.hasLedger); + set(state, ['ledgerKey'], payload.ledger.ledgerKey); + }); }) });
9
diff --git a/app/components/user/TwoFactor/index.js b/app/components/user/TwoFactor/index.js @@ -10,9 +10,8 @@ import Dialog from 'app/components/shared/Dialog'; import TwoFactorConfigure from 'app/components/user/TwoFactor/TwoFactorConfigure'; import TwoFactorDelete from 'app/components/user/TwoFactor/TwoFactorDelete'; import { SettingsMenuFragment as SettingsMenu } from 'app/components/user/SettingsMenu'; -import RecoveryCodes from './RecoveryCodes'; // eslint-disable-line import RecoveryCodeList from 'app/components/RecoveryCodeList'; // eslint-disable-line -import RecoveryCodeDialog from './RecoveryCodes/RecoveryCodeDialog'; +import RecoveryCodes from './RecoveryCodes'; import type { TwoFactor_viewer } from './__generated__/TwoFactor_viewer.graphql'; function AuthenticatorUrl({ name, url }: {|name: string, url: string|}) { @@ -169,12 +168,6 @@ class TwoFactor extends React.PureComponent<Props, State> { View </Button> ) : null} - {this.props.viewer.totp && this.state.recoveryCodeDialogOpen ? ( - <RecoveryCodeDialog - onRequestClose={this.handleRecoveryCodeDialogClose} - totp={this.props.viewer.totp} - /> - ) : null} </div> </div> </div> @@ -200,6 +193,17 @@ class TwoFactor extends React.PureComponent<Props, State> { onDeactivationComplete={this.handleDeactivateDialogClose} /> </Dialog> + {this.props.viewer.totp ? ( + <Dialog + isOpen={this.state.recoveryCodeDialogOpen} + width={540} + onRequestClose={this.handleRecoveryCodeDialogClose} + > + <RecoveryCodes + totp={this.props.viewer.totp} + /> + </Dialog> + ) : null} </React.Fragment> ) : ( <p> @@ -253,7 +257,6 @@ export default createRefetchContainer( totp { ...RecoveryCodes_totp - ...RecoveryCodeDialog_totp id recoveryCodes {
5
diff --git a/articles/email/providers.md b/articles/email/providers.md @@ -152,7 +152,7 @@ To be able to use your own SMTP server: 5. Click **Save**. ::: note -Common ports include 25, 465, and 587. Please avoid using port 25 if you can, since many providers have limitations on this port. +Common ports include 25 and 587. Please avoid using port 25 if you can, since many providers have limitations on this port. ::: Now you can send a test email using the **SEND TEST EMAIL** button on the [Custom Email Provider](${manage_url}/#/emails/provider) page of the Auth0 dashboard. If you don't receive an email after a few minutes, please check your [dashboard logs](${manage_url}/#/logs) for any failures.
2
diff --git a/UserReviewBanHelper.user.js b/UserReviewBanHelper.user.js // @description Display users' prior review bans in review, Insert review ban button in user review ban history page, Load ban form for user if user ID passed via hash // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 3.14 +// @version 3.14.1 // // @include */review/close* // @include */review/reopen* @@ -858,6 +858,10 @@ a.reviewban-button { text-indent: -100vw; } +#banned-users-table td:first-child { + max-width: 140px; + overflow: hidden; +} table.sorter > tbody > tr:nth-child(odd) > td { background-color: #eee !important; }
12
diff --git a/server/index.js b/server/index.js @@ -86,10 +86,11 @@ app.prepare().then(() => { res.set('X-Robots-Tag', 'noindex') res.cookie('OpenSesame', BACKDOOR_URL, cookieOptions) } + const reqUa = String(req.get('User-Agent')) if ( hasCookie || ALLOWED_PATHS.some(path => req.url.startsWith(path)) || - ALLOWED_UAS.some(ua => req.get('User-Agent').includes(ua)) + ALLOWED_UAS.some(ua => reqUa.includes(ua)) ) { return next() }
9
diff --git a/packages/analytics-plugin-simple-analytics/src/browser.js b/packages/analytics-plugin-simple-analytics/src/browser.js @@ -72,13 +72,12 @@ export default function simpleAnalyticsPlugin(pluginConfig = {}) { throw new Error(`${src} failed to load.`) }) }, - /* https://docs.simpleanalytics.com/events + /* https://docs.simpleanalytics.com/events */ track: ({ payload }) => { var saEventFunction = window[config.saGlobal] || window.sa_event || window.sa if (!saEventFunction) return false saEventFunction(payload.event) }, - */ /* Verify script loaded */ loaded: () => { return !!isLoaded
11
diff --git a/spec/models/table_spec.rb b/spec/models/table_spec.rb @@ -1951,6 +1951,7 @@ describe Table do ::Table.any_instance.stubs(:set_table_id).returns(table_id) ::Table.any_instance.stubs(:set_the_geom_column!).returns(true) ::Table.any_instance.stubs(:after_create) + ::UserTable.any_instance.stubs(:after_create) ::Table.any_instance.stubs(:after_save) ::Table.any_instance.stubs(:cartodbfy) ::Table.any_instance.stubs(:schema) @@ -1958,7 +1959,9 @@ describe Table do table = Table.new # A user who can create private tables has by default private tables - table.default_privacy_value.should eq ::UserTable::PRIVACY_PRIVATE + user_table = ::UserTable.new + user_table.stubs(:user).returns(user_mock) + user_table.send(:default_privacy_value).should eq ::UserTable::PRIVACY_PRIVATE table.user_id = UUIDTools::UUID.timestamp_create.to_s table.privacy = UserTable::PRIVACY_PUBLIC @@ -1992,10 +1995,10 @@ describe Table do expected_errors_hash = { privacy: ['unauthorized to modify privacy status to pubic with link'] } table.errors.should eq expected_errors_hash - table = Table.new # A user who cannot create private tables has by default public - table.default_privacy_value.should eq ::UserTable::PRIVACY_PUBLIC - + user_table = ::UserTable.new + user_table.stubs(:user).returns(user_mock) + user_table.send(:default_privacy_value).should eq ::UserTable::PRIVACY_PUBLIC end end #validation_for_link_privacy
1
diff --git a/src/agent/index.js b/src/agent/index.js @@ -1057,8 +1057,7 @@ function listThreadsJson () { function regProfileAliasFor(arch) { switch (arch) { case 'arm64': -return ` -=PC pc +return `=PC pc =SP sp =BP x29 =A0 x0 @@ -1073,8 +1072,7 @@ return ` `; break; case 'arm': -return ` -=PC r15 +return `=PC r15 =LR r14 =SP sp =BP fp @@ -1090,8 +1088,7 @@ return ` `; break; case 'x64': -return ` -=PC rip +return `=PC rip =SP rsp =BP rbp =A0 rdi @@ -1104,8 +1101,7 @@ return ` `; break; case 'x86': -return ` -=PC eip +return `=PC eip =SP esp =BP ebp =A0 eax @@ -1124,7 +1120,8 @@ function dumpRegisterProfile (args) { const threads = Process.enumerateThreadsSync(); const thread = threads[0]; const {id, state, context} = thread; - const names = Object.keys(JSON.parse(JSON.stringify(context))); + const names = Object.keys(JSON.parse(JSON.stringify(context))) + .filter(_ => _ !== 'pc' && _ !== 'sp'); names.sort(compareRegisterNames); let off = 0; const inc = Process.pointerSize;
7
diff --git a/src/components/basicHeader/view/basicHeaderStyles.js b/src/components/basicHeader/view/basicHeaderStyles.js @@ -86,7 +86,9 @@ export default EStyleSheet.create({ }, beneficiaryModal: { flex: 1, - backgroundColor: '$modalBackground', + backgroundColor: '$primaryBackgroundColor', margin: 0, + paddingTop: 32, + paddingBottom: 16, }, });
7
diff --git a/lib/metering/meter/src/index.js b/lib/metering/meter/src/index.js @@ -70,7 +70,7 @@ const partitioner = partition.partitioner( true ); -const prefetchLimit = process.env.PREFETCH_LIMIT ? parseInt(process.env.PREFETCH_LIMIT) : 100; +const prefetchLimit = process.env.PREFETCH_LIMIT ? parseInt(process.env.PREFETCH_LIMIT) : 2; const rabbitUris = process.env.RABBIT_URI ? [process.env.RABBIT_URI]
12
diff --git a/Makefile b/Makefile @@ -16,7 +16,7 @@ VERSION ?= $(shell cat package.json | jq .version) .EXPORT_ALL_VARIABLES: # targets -.PHONY: ? deps purge dist clean deploy +.PHONY: ? deps purge all clean deploy # utils define iif @@ -39,7 +39,7 @@ test: deps ## Run tests like if we're in CI ;-) build: deps ## Build scripts for dist @npm run build -dist: deps ## Build artifact for production envs +all: deps ## Build artifact for production envs @(git worktree remove $(src) --force > /dev/null 2>&1) || true @git worktree add $(src) $(target) @cd $(src) && rm -rf * && git checkout -- vendor
10
diff --git a/types.d.ts b/types.d.ts @@ -6315,7 +6315,6 @@ declare interface LoaderRunnerLoaderContext<OptionsType> { /** * An array of all the loaders. It is writeable in the pitch phase. * loaders = [{request: string, path: string, query: string, module: function}] - * * In the example: * [ * { request: "/abc/loader1.js?xyz",
3
diff --git a/types.d.ts b/types.d.ts @@ -1239,6 +1239,11 @@ declare interface CodeGenerationContext { * code generation results of other modules (need to have a codeGenerationDependency to use that) */ codeGenerationResults: CodeGenerationResults; + + /** + * the compilation + */ + compilation?: Compilation; } declare interface CodeGenerationResult { /**
3
diff --git a/src/lib/index.js b/src/lib/index.js @@ -470,20 +470,6 @@ lib.mergeArray = function(traceAttr, cd, cdAttr, fn) { } }; -// cast numbers to numbers and if not return 0 -lib.mergeArrayCastIfNumber = function(traceAttr, cd, cdAttr) { - return lib.mergeArray(traceAttr, cd, cdAttr, function(v) { - return isNumeric(v) ? +v : v; - }); -}; - -// cast numbers to numbers, NaN to NaN, null to 0 -lib.mergeArrayCastNumber = function(traceAttr, cd, cdAttr) { - return lib.mergeArray(traceAttr, cd, cdAttr, function(v) { - return +v; - }); -}; - // cast numbers to positive numbers, returns 0 if not greater than 0 lib.mergeArrayCastPositive = function(traceAttr, cd, cdAttr) { return lib.mergeArray(traceAttr, cd, cdAttr, function(v) {
2
diff --git a/website/riot/dict-public-entry.riot b/website/riot/dict-public-entry.riot if (this.dictData.dictId && !this.dictData.isEntryLoading) { this.store.loadEntry() } + }, + onUpdated() { + $("a.xref").on("click", function (e) { + var text = $(e.delegateTarget).attr("data-text"); + window.parent.$("#searchBox").val(text); + let evt = new CustomEvent('keyup'); + evt.which = 13; + evt.keyCode = 13; + document.getElementById("searchBox").dispatchEvent(evt); + e.stopPropagation(); + e.preventDefault(); + window.setTimeout(function() { + window.location.hash = $('a.headword-link').attr('href'); + }, 500) + }); + } } </script>
9
diff --git a/package.json b/package.json "bugs": { "url": "https://github.com/byu-oit/openapi-enforcer/issues" }, - "homepage": "https://byu-oit.github.io/openapi-enforcer/", + "homepage": "https://openapi-enforcer.com", "devDependencies": { "chai": "^4.3.4", "coveralls": "^3.1.1",
12
diff --git a/src/reducers/sources/sources/suggestions.js b/src/reducers/sources/sources/suggestions.js -import { FETCH_SOURCE_SUGGESTIONS } from '../../../actions/sourceActions'; +import { FETCH_SOURCE_SUGGESTIONS, UPDATE_SOURCE_SUGGESTION } from '../../../actions/sourceActions'; import { createAsyncReducer } from '../../../lib/reduxHelpers'; import { sourceSuggestionDateToMoment } from '../../../lib/dateUtil'; +import * as fetchConstants from '../../../lib/fetchConstants'; // dates returned are like this: "2016-03-15 14:23:58.161284" @@ -18,6 +19,10 @@ const suggestions = createAsyncReducer({ dateSubmitted: sourceSuggestionDateToMoment(suggestion.date_submitted).toDate(), })), }), + [UPDATE_SOURCE_SUGGESTION]: () => ({ + fetchStatus: fetchConstants.FETCH_ONGOING, + list: [], + }), }); export default suggestions;
9
diff --git a/docs/reference.rst b/docs/reference.rst @@ -267,6 +267,7 @@ If the response is in JSON, ``api_json`` will automatically be created. echo `api_result` author = api_json[0].author.login +For an advanced example of using api step, setting POST/GET method, header and body, `see this example from aito.ai <https://aito.document360.io/docs/tagui>`_ - a web-based machine learning solution for no-coders and RPA developers. In the example, ``api`` step is used to make a machine-learning inference to generate the account code of an invoice item, based on its description and price. aito.ai's free tier comes with 2000 API calls/month and it works perfectly with TagUI. Excel ********************
7
diff --git a/app/scripts/TiledPlot.jsx b/app/scripts/TiledPlot.jsx @@ -54,8 +54,8 @@ export class TiledPlot extends React.Component { addTrackVisible: false, addTrackPosition: "top", mouseOverOverlayUid: null, - trackOptionsUid: 'hm1' - //trackOptionsUid: null + //trackOptionsUid: 'hm1' + trackOptionsUid: null } // these dimensions are computed in the render() function and depend @@ -135,7 +135,6 @@ export class TiledPlot extends React.Component { /** * The drawing options for a track have changed. */ - console.log('trackUid:', trackUid, newOptions); this.props.onTrackOptionsChanged(trackUid, newOptions); }
2
diff --git a/token-metadata/0xf0B0A13d908253D954BA031a425dFd54f94a2e3D/metadata.json b/token-metadata/0xf0B0A13d908253D954BA031a425dFd54f94a2e3D/metadata.json "symbol": "FSXA", "address": "0xf0B0A13d908253D954BA031a425dFd54f94a2e3D", "decimals": 8, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/edit.js b/edit.js @@ -5544,10 +5544,154 @@ function animate(timestamp, frame) { renderer.setAnimationLoop(animate); // renderer.xr.setSession(proxySession); -/* bindUploadFileButton(document.getElementById('import-scene-input'), async file => { - const uint8Array = await readFile(file); - await pe.importScene(uint8Array); -}); */ +bindUploadFileButton(document.getElementById('load-package-input'), async file => { + const {default: atlaspack} = await import('./atlaspack.js'); + // console.log('load file', file); + const u = URL.createObjectURL(file); + let o; + try { + o = await new Promise((accept, reject) => { + new GLTFLoader().load(u, accept, xhr => {}, reject); + // const uint8Array = await readFile(file); + // await pe.importScene(uint8Array); + }); + } finally { + URL.revokeObjectURL(u); + } + o = o.scene; + const geometries = []; + // const geometryMap = new Map(); + const textures = []; + // const textureMap = new Map(); + o.traverse(o => { + if (o.isMesh) { + // if (!geometryMap.has(o.geometry)) { + geometries.push(o.geometry); + // geometryMap.set(o.geometry, true); + // } + if (o.material.map) { + textures.push(o.material.map); + // textureMap.set(o.material.map, true); + } else { + textures.push(null); + } + } + }); + // geometries = Array.from(geometries.keys()); + // textures = Array.from(textures.keys()); + const rects = []; + + const size = 4096; + let atlasCanvas; + let atlas; + { + let scale = 1; + for (;;) { + atlasCanvas = document.createElement('canvas'); + atlasCanvas.width = size; + atlasCanvas.height = size; + atlas = atlaspack(atlasCanvas); + rects.length = 0; + + for (let i = 0; i < textures.length ; i++) { + const texture = textures[i]; + const {image} = texture; + + const w = image.width*scale; + const h = image.height*scale; + const resizeCanvas = document.createElement('canvas'); + resizeCanvas.width = w; + resizeCanvas.height = h; + const resizeCtx = resizeCanvas.getContext('2d'); + resizeCtx.drawImage(image, 0, 0, w, h); + + const rect = atlas.pack(resizeCanvas); + if (rect) { + rects.push(rect.rect); + } else { + scale /= 2; + continue; + } + } + break; + } + } + + const geometry = new THREE.BufferGeometry(); + { + let numPositions = 0; + let numIndices = 0; + for (const geometry of geometries) { + numPositions += geometry.attributes.position.array.length; + numIndices += geometry.index.array.length; + } + + const positions = new Float32Array(numPositions); + const uvs = new Float32Array(numPositions/3*2); + const colors = new Float32Array(numPositions); + const indices = new Uint32Array(numIndices); + let positionIndex = 0; + let uvIndex = 0; + let colorIndex = 0; + let indicesIndex = 0; + for (let i = 0; i < geometries.length; i++) { + const geometry = geometries[i]; + const rect = rects[i]; + + const indexOffset = positionIndex/3; + if (geometry.index) { + for (let i = 0; i < geometry.index.array.length; i++) { + indices[indicesIndex++] = geometry.index.array[i] + indexOffset; + } + } else { + for (let i = 0; i < geometry.attributes.position.array.length/3; i++) { + indices[indicesIndex++] = i + indexOffset; + } + } + + positions.set(geometry.attributes.position.array, positionIndex); + positionIndex += geometry.attributes.position.array.length; + if (geometry.attributes.uv) { + for (let i = 0; i < geometry.attributes.uv.array.length; i += 2) { + if (rect) { + uvs[uvIndex + i] = rect.x/size + geometry.attributes.uv.array[i]*rect.w/size; + uvs[uvIndex + i+1] = 1 - (rect.y/size + geometry.attributes.uv.array[i+1]*rect.h/size); + } else { + uvs[uvIndex + i] = geometry.attributes.uv.array[i]*rect.w; + uvs[uvIndex + i+1] = 1 - geometry.attributes.uv.array[i+1]*rect.h; + } + } + } else { + uvs.fill(0, uvIndex, geometry.attributes.position.array.length/3*2); + } + uvIndex += geometry.attributes.position.array.length/3*2; + if (geometry.attributes.color) { + colors.set(geometry.attributes.color.array, colorIndex); + } else { + colors.fill(1, colorIndex, geometry.attributes.position.array.length); + } + colorIndex += geometry.attributes.position.array.length; + } + geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3)); + geometry.setAttribute('uv', new THREE.BufferAttribute(uvs, 2)); + geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3)); + geometry.setIndex(new THREE.BufferAttribute(indices, 1)); + } + + const texture = new THREE.Texture(atlasCanvas); + texture.needsUpdate = true; + const material = new THREE.MeshBasicMaterial({ + map: texture, + }); + // document.body.appendChild(atlasCanvas); + const mesh = new THREE.Mesh(geometry, material); + mesh.position.copy(camera.position).add(new THREE.Vector3(0, 0, -1)); + mesh.quaternion.copy(camera.quaternion); + mesh.frustumCulled = false; + scene.add(mesh); + + console.log('got o', o, geometry, textures, atlas, rects); +}); let selectedTool = 'camera'; const _getFullAvatarHeight = () => rig ? rig.height : 1;
0
diff --git a/server/workers/gsheets/src/search_gsheets.py b/server/workers/gsheets/src/search_gsheets.py @@ -37,16 +37,14 @@ class GSheetsClient(object): # If modifying these scopes, delete the file token.pickle. self.SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly', 'https://www.googleapis.com/auth/drive.metadata.readonly'] - self.gsheets_service = build('sheets', 'v4', credentials=self.authenticate()) - self.drive_service = build('drive', 'v3', credentials=self.authenticate()) - self.sheet = self.gsheets_service.spreadsheets() - self.files = self.drive_service.files() + self.register_services() self.last_updated = {} self.logger = logging.getLogger(__name__) self.logger.setLevel(os.environ["GSHEETS_LOGLEVEL"]) handler = logging.StreamHandler(sys.stdout) handler.setLevel(os.environ["GSHEETS_LOGLEVEL"]) self.logger.addHandler(handler) + self.get_startPageToken() def authenticate(self): creds = None @@ -65,16 +63,30 @@ class GSheetsClient(object): pickle.dump(creds, token) return creds + def register_services(self): + self.gsheets_service = build('sheets', 'v4', credentials=self.authenticate()) + self.drive_service = build('drive', 'v3', credentials=self.authenticate()) + self.sheet = self.gsheets_service.spreadsheets() + self.files = self.drive_service.files() + + def get_startPageToken(self): + res = self.drive_service.changes().getStartPageToken().execute() + self.startPageToken = res.get('startPageToken') + # Call the Drive API def get_last_modified(self, sheet_id): res = self.files.get(fileId=sheet_id, fields="modifiedTime").execute() return res.get('modifiedTime') def update_required(self, last_modified, sheet_id): - if last_modified == self.last_updated.get(sheet_id, ""): - return False - else: + res = self.drive_service.changes().list(pageToken=self.startPageToken, + spaces='drive').execute() + if res is not None: + updated_files = [c.get('fileID') for c in res.get('changes')] + if sheet_id in updated_files: return True + else: + return False def next_item(self): queue, msg = redis_store.blpop("gsheets")
3
diff --git a/src/renderer.js b/src/renderer.js @@ -232,7 +232,12 @@ class gltfRenderer if (drawIndexed) { let indexAccessor = gltf.accessors[primitive.indices]; - gl.drawElements(primitive.mode, indexAccessor.count, gl.UNSIGNED_SHORT, 0); + gl.drawElements(primitive.mode, indexAccessor.count, indexAccessor.componentType, 0); + // let error = gl.getError(); + // if (error != gl.NO_ERROR) + // { + // console.log(error); + // } } else {
4
diff --git a/factory-ai-vision/EdgeSolution/modules/WebModule/ui_v2/src/pages/Home.tsx b/factory-ai-vision/EdgeSolution/modules/WebModule/ui_v2/src/pages/Home.tsx import React, { useMemo } from 'react'; +import { useLocation, useHistory } from 'react-router-dom'; import { Stack, CommandBar, getTheme, ICommandBarItemProps, Pivot, PivotItem } from '@fluentui/react'; import { GetStarted } from '../components/GetStarted'; const theme = getTheme(); export const Home: React.FC = () => { + const location = useLocation(); + const history = useHistory(); + const commandBarItems: ICommandBarItemProps[] = useMemo( () => [ { @@ -19,6 +23,10 @@ export const Home: React.FC = () => { [], ); + const onPivotChange = (item: PivotItem) => { + history.push(`/${item.props.itemKey}`); + }; + return ( <Stack styles={{ root: { height: '100%' } }}> <CommandBar @@ -26,11 +34,13 @@ export const Home: React.FC = () => { styles={{ root: { borderBottom: `solid 1px ${theme.palette.neutralLight}` } }} /> <Stack styles={{ root: { padding: '15px' } }} grow> - <Pivot> - <PivotItem headerText="Get started"> + <Pivot selectedKey={location.pathname.split('/')[1]} onLinkClick={onPivotChange}> + <PivotItem itemKey="getStarted" headerText="Get started"> <GetStarted /> </PivotItem> - <PivotItem headerText="Task">Task</PivotItem> + <PivotItem itemKey="task" headerText="Task"> + Task + </PivotItem> </Pivot> </Stack> </Stack>
9
diff --git a/src/inner-slider.js b/src/inner-slider.js @@ -8,8 +8,7 @@ import classnames from 'classnames'; import assign from 'object-assign'; import { getOnDemandLazySlides, extractObject, initializedState, getHeight, canGoNext, slideHandler, changeSlide, keyHandler, swipeStart, swipeMove, - swipeEnd -} from './utils/innerSliderUtils' + swipeEnd } from './utils/innerSliderUtils' import { getTrackLeft, getTrackCSS } from './mixins/trackHelper' import { Track } from './track'; @@ -115,7 +114,7 @@ export class InnerSlider extends React.Component { } onWindowResized = () => { let spec = assign({listRef: this.list, trackRef: this.track}, this.props, this.state) - this.updateState(spec, false, () => { + this.updateState(spec, true, () => { if (this.state.autoplaying === 'playing') this.autoPlay() else this.pause() })
1
diff --git a/next-packages/utils/src/index.js b/next-packages/utils/src/index.js @@ -41,15 +41,15 @@ export const insertStyles = ( if (shouldSerializeToReactTree) { context.inserted[insertable.name] = rules.join('') + if (context.compat === undefined) { + return context.inserted[insertable.name] + } } else { rules.forEach(rule => { context.sheet.insert(rule) }) context.inserted[insertable.name] = true } - if (context.compat === undefined) { - return context.inserted[insertable.name] - } } }
5
diff --git a/tests/e2e/config/bootstrap.js b/tests/e2e/config/bootstrap.js @@ -172,6 +172,27 @@ function observeConsoleLogging() { return; } + // Some error messages which don't impact test results can + // be safely ignored. + if ( + text.startsWith( 'Powered by AMP' ) || + text.startsWith( 'data_error unknown response key' ) || + text.startsWith( 'WP Error in data response' ) || + text.startsWith( 'Error caught during combinedGet' ) || + text.includes( 'No triggers were found in the config. No analytics data will be sent.' ) || + text.includes( 'Google Site Kit API Error' ) + ) { + return; + } + + // As of WordPress 5.3.2 in Chrome 79, navigating to the block editor + // (Posts > Add New) will display a console warning about + // non - unique IDs. + // See: https://core.trac.wordpress.org/ticket/23165 + if ( text.includes( 'elements with non-unique id #_wpnonce' ) ) { + return; + } + const logFunction = OBSERVED_CONSOLE_MESSAGE_TYPES[ type ]; // As of Puppeteer 1.6.1, `message.text()` wrongly returns an object of @@ -297,6 +318,9 @@ beforeAll( async () => { const req = res.request(); // eslint-disable-next-line no-console console.warn( res.status(), req.method(), req.url() ); + // As we're throwing up a console warning, + // Let's simultaneously expect it to occur. + expect( console ).toHaveWarned(); } } );
8
diff --git a/avatars/vrarmik/ShoulderTransforms.js b/avatars/vrarmik/ShoulderTransforms.js @@ -44,6 +44,8 @@ class ShoulderTransforms { this.leftArmIk = new VRArmIK(this.leftArm, this, this.shoulderPoser, this.shoulderPoser.vrTransforms.leftHand, true); this.rightArmIk = new VRArmIK(this.rightArm, this, this.shoulderPoser, this.shoulderPoser.vrTransforms.rightHand, false); + + this.enabled = true; } Start() { @@ -52,10 +54,12 @@ class ShoulderTransforms { } Update() { + if (this.enabled) { this.shoulderPoser.Update(); this.leftArmIk.Update(); this.rightArmIk.Update(); } } +} export default ShoulderTransforms; \ No newline at end of file
0
diff --git a/site/install-debian.md b/site/install-debian.md @@ -30,7 +30,7 @@ Team RabbitMQ produces our own Debian packages and distributes them [using Cloud Key sections of this guide are * [Ways of installing](#installation-methods) the latest RabbitMQ version on Debian and Ubuntu - * [Supported Ubuntu and Debian distributions](#supported-debian-distributions) + * [Supported Ubuntu and Debian distributions](#supported-distributions) * [Privilege requirements](#sudo-requirements) * Quick start installation snippet that [uses Cloudsmith](#apt-quick-start-cloudsmith) repositories * Quick start installation snippets that [uses PackageCloud](#apt-quick-start-packagecloud) and Launchpad repositories @@ -71,7 +71,7 @@ on Cloudsmith or Launchpad. Alternatively, the package can be downloaded manually and [installed ](#manual-installation) with `dpkg -i`. This option will require manual installation of all RabbitMQ package dependencies and is **highly discouraged**. -## <a id="supported-debian-distributions" class="anchor" href="#supported-debian-distributions">Supported Distributions</a> +## <a id="supported-distributions" class="anchor" href="#supported-distributions">Supported Distributions</a> RabbitMQ is supported on several major Debian-based distributions that are still supported by their primary vendor or developer group.
10
diff --git a/app/shared/components/Producers/Proxy/Form/Proxy.js b/app/shared/components/Producers/Proxy/Form/Proxy.js @@ -145,7 +145,7 @@ class ProducersFormProxy extends Component<Props> { label={`${t('producers_form_proxy_label')}:`} name="account" onChange={this.onChange} - value={proxyAccount} + value={proxyAccount || ''} /> <Message
9
diff --git a/src/components/users/UserParts.js b/src/components/users/UserParts.js @@ -204,10 +204,10 @@ export const UserLinksCell = ({ className, externalLinksList, isMobile }) => { const externalLinks = [] const externalLinksIcon = [] if (externalLinksList && externalLinksList.size) { - externalLinksList.forEach((link, i) => { + externalLinksList.forEach((link) => { if (link.get('icon')) { externalLinksIcon.push( - <span className="UserExternalLinksIcon" key={i}> + <span className="UserExternalLinksIcon" key={link.get('type')}> <a href={link.get('url')} rel="noopener noreferrer" target="_blank"> <img alt={link.get('type')} src={link.get('icon')} /> <Hint>{link.get('type')}</Hint> @@ -216,7 +216,7 @@ export const UserLinksCell = ({ className, externalLinksList, isMobile }) => { ) } else { externalLinks.push( - <span className="UserExternalLinksLabel" key={i}> + <span className="UserExternalLinksLabel" key={link.get('text')}> <a href={link.get('url')} rel="noopener noreferrer" target="_blank">{link.get('text')}</a> </span>, )
4
diff --git a/src/docs/performance.md b/src/docs/performance.md --- eleventyNavigation: key: Performance - parent: Getting Started + parent: Overview excerpt: The build and site performance of Eleventy projects - order: 8 + order: 3 --- # Eleventy Performance @@ -17,6 +17,10 @@ Eleventy is known for both its lightweight core in the form of speedy installs/b Eleventy allows you full control over the output. That also means that by-default we do not include any costly runtime JavaScript bundles that often hamper site performance! +{% callout "info", "md-block" %} +* Have a look at our new [Partial Hydration `<is-land>` component](/docs/plugins/partial-hydration/)! +{% endcallout %} + Sites listed on the [Eleventy Leaderboards](/speedlify/) are tested and ranked (approximately) monthly as a fun community way to maintain speedy site performance for Eleventy sites. * Want to [add your site to the Leaderboards](/docs/leaderboards-add/)?
5
diff --git a/src/components/AppDirector/index.js b/src/components/AppDirector/index.js @@ -97,7 +97,7 @@ export default class AppDirector extends PureComponent { style={{ width: '100%' }} > {members.map((d) => ( - <Option key={d.user_name}>{d.user_name}</Option> + <Option key={d.nick_name}>{d.user_name}</Option> ))} </Select> )}
1
diff --git a/token-metadata/0xB6eD7644C69416d67B522e20bC294A9a9B405B31/metadata.json b/token-metadata/0xB6eD7644C69416d67B522e20bC294A9a9B405B31/metadata.json "symbol": "0XBTC", "address": "0xB6eD7644C69416d67B522e20bC294A9a9B405B31", "decimals": 8, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/lib/classes/Service.test.js b/lib/classes/Service.test.js @@ -431,10 +431,10 @@ describe('Service', () => { YAML.dump(serverlessYml)); const serverless = new Serverless({ servicePath: tmpDirPath }); - serverless.service = new Service(serverless); serverless.variables.service = serverless.service; + serviceInstance = new Service(serverless); - return serverless.service.load().then(() => { + return serviceInstance.load().then(() => { // if we reach this, then no error was thrown // populate variables in service configuration serverless.variables.populateService(); @@ -442,7 +442,7 @@ describe('Service', () => { // validate the service configuration, now that variables are loaded serviceInstance.validate(); - expect(serviceInstance.functions.functionA.events).to.deep.equal({}); + expect(serviceInstance.functions).to.deep.equal({}); }).catch(() => { // make assertion fail intentionally to let us know something is wrong expect(1).to.equal(2);
1
diff --git a/test/test262.mjs b/test/test262.mjs @@ -17,12 +17,12 @@ import { util.inspect.defaultOptions.depth = 2; +/* eslint-disable no-console */ + const onlyFailures = process.argv.includes('--only-failures'); const testdir = path.resolve(path.dirname(new URL(import.meta.url).pathname), 'test262'); -const files = glob.sync(path.resolve(testdir, 'test', process.argv[2] || '**/*.js')); - const excludedFeatures = new Set([ 'Array.prototype.flat', 'Array.prototype.flatMap', @@ -37,6 +37,7 @@ const excludedFeatures = new Set([ 'export-star-as-namespace-from-module', 'RegExp', 'SharedArrayBuffer', + 'tail-call-optimization', 'caller', 'WeakSet', 'WeakMap', @@ -51,6 +52,11 @@ const excludedTests = new Set([ 'test/language/statements/for-of/let-block-with-newline.js', 'test/language/statements/for-of/let-identifier-with-newline.js', + // ESTree does not allow determining whether the LeftHandSideExpression is a + // CoverParenthesizedExpressionAndArrowParameterList right now. + // Refs: https://github.com/estree/estree/issues/194 + 'test/language/expressions/assignment/fn-name-lhs-cover.js', + // Uses regexes. 'test/built-ins/Array/prototype/find/predicate-is-not-callable-throws.js', 'test/built-ins/Array/prototype/findIndex/predicate-is-not-callable-throws.js', @@ -70,6 +76,23 @@ const excludedTests = new Set([ 'test/built-ins/Array/prototype/splice/create-species-non-ctor.js', ]); +const readyTests = [ + 'test/harness/**/*.js', + + 'test/built-ins/Array/**/*.js', + 'test/built-ins/TypedArray/**/*.js', + 'test/built-ins/TypedArrayConstructors/**/*.js', + + 'test/language/expressions/addition/**/*.js', + 'test/language/expressions/array/**/*.js', + 'test/language/expressions/arrow-function/**/*.js', + 'test/language/expressions/assignment/**/*.js', + 'test/language/expressions/bitwise-*/**/*.js', + 'test/language/expressions/logical-*/**/*.js', +]; + +const files = determineFiles(); + const PASS = Symbol('PASS'); const FAIL = Symbol('FAIL'); const SKIP = Symbol('SKIP'); @@ -105,7 +128,7 @@ function createRealm() { if ($262.handlePrint) { $262.handlePrint(...args); } else { - console.log(...args.map((a) => inspect(a))); // eslint-disable-line no-console + console.log(...args.map((a) => inspect(a))); } return Value.undefined; })); @@ -134,6 +157,19 @@ const agentOpt = { }; initializeAgent(agentOpt); +function determineFiles() { + let srcPaths = process.argv.slice(2); + if (srcPaths.length === 0) { + console.log('Using default test set'); + srcPaths = readyTests; + } + const out = []; + for (const srcPath of srcPaths) { + out.push(...glob.sync(path.resolve(testdir, srcPath))); + } + return out; +} + async function run({ specifier, source, @@ -223,8 +259,6 @@ let passed = 0; let failed = 0; let skipped = 0; -/* eslint-disable no-console */ - process.on('exit', () => { console.table({ total: files.length,
11
diff --git a/includes/Dashboard.php b/includes/Dashboard.php @@ -262,7 +262,7 @@ class Dashboard { 'api' => [ 'stories' => sprintf( '/web-stories/v1/%s', $rest_base ), 'media' => '/web-stories/v1/media', - 'me' => '/wp/v2/users/me', + 'currentUser' => '/wp/v2/users/me', 'users' => '/wp/v2/users', 'fonts' => '/web-stories/v1/fonts', 'templates' => '/web-stories/v1/web-story-template',
10
diff --git a/layouts/partials/helpers/fragments.html b/layouts/partials/helpers/fragments.html -{/* +{{/* The following code is used to fetch the fragments for each page and calling them. The code is complicated and written in Go Template so it's even more complicated. Hopefully the comments would help. The following code looks for each _global directory in upper sections, removes duplicates (with priority given to closest fragments to the actual page) and call the partials. - */} + */}} {{- $page := .page -}} {{- $real_page := .real_page -}} {{- $page_scratch := .page_scratch -}}
1
diff --git a/shared/js/ui/models/site.es6.js b/shared/js/ui/models/site.es6.js const Parent = window.DDG.base.Model const constants = require('../../../data/constants') +const trackerPrevalence = require('../../../data/tracker_lists/prevalence') const httpsMessages = constants.httpsMessages const browserUIWrapper = require('./../base/$BROWSER-ui-wrapper.es6.js') +// for now we consider tracker networks found on more than 7% of sites +// as "major" +const majorTrackingNetworks = Object.keys(trackerPrevalence) + .filter(t => trackerPrevalence[t] >= 7) + // lowercase them cause we only use them for comparing + .map(t => t.toLowerCase()) + function Site (attrs) { attrs = attrs || {} attrs.disabled = true // disabled by default @@ -218,11 +226,10 @@ Site.prototype = window.$.extend({}, // Show only blocked major trackers count, unless site is whitelisted const trackers = this.isWhitelisted ? this.tab.trackers : this.tab.trackersBlocked const count = Object.keys(trackers).reduce((total, name) => { - let tempTracker = name.toLowerCase() - const majorTrackingNetworks = Object.keys(constants.majorTrackingNetworks) - .filter((t) => t.toLowerCase() === tempTracker) - // in case a major tracking network is in the list more than once somehow - total += majorTrackingNetworks.length ? 1 : 0 + const tempTracker = name.toLowerCase() + const idx = majorTrackingNetworks.indexOf(tempTracker) + + total += idx > -1 ? 1 : 0 return total }, 0)
3
diff --git a/Source/Scene/Camera.js b/Source/Scene/Camera.js @@ -2985,9 +2985,9 @@ Camera.prototype.getPickRay = function (windowPosition, result) { result = new Ray(); } - const scene = this._scene; + const canvas = this._scene.canvas; const frustum = this.frustum; - if (defined(scene.canvas.style) && scene.canvas.style["display"] === "none") { + if (canvas.clientWidth <= 0 || canvas.clientHeight <= 0) { return undefined; } else if ( defined(frustum.aspectRatio) && @@ -2995,9 +2995,9 @@ Camera.prototype.getPickRay = function (windowPosition, result) { defined(frustum.near) ) { return getPickRayPerspective(this, windowPosition, result); - } - + } else { return getPickRayOrthographic(this, windowPosition, result); + } }; const scratchToCenter = new Cartesian3();
3
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -138,13 +138,6 @@ Three additional helpers exist that are refreshed every second: There is also a search bar in the top right of the dashboard. This fuzzy-searches image mocks based on their file name and trace type. -#### Alternative to test dashboard - -Use the [`plotly-mock-viewer`](https://github.com/rreusser/plotly-mock-viewer) -which has live-reloading and a bunch of other cool features. -An online version of `plotly-mock-viewer` is available at <https://rreusser.github.io/plotly-mock-viewer/> -which uses <https://cdn.plot.ly/plotly-latest.min.js> - #### Other npm scripts - `npm run preprocess`: pre-processes the css and svg source file in js. This
2
diff --git a/includes/Modules/Site_Verification.php b/includes/Modules/Site_Verification.php @@ -73,9 +73,9 @@ final class Site_Verification extends Module implements Module_With_Scopes { protected function get_datapoint_services() { return array( // GET. - 'verified-sites' => 'siteverification', 'verification' => 'siteverification', - 'siteverification-token' => 'siteverification', + 'verification-token' => 'siteverification', + 'verified-sites' => 'siteverification', // POST. 'siteverification' => '', @@ -105,7 +105,7 @@ final class Site_Verification extends Module implements Module_With_Scopes { } $service = $this->get_service( 'siteverification' ); return $service->webResource->listWebResource(); // phpcs:ignore WordPress.NamingConventions.ValidVariableName - case 'siteverification-token': + case 'verification-token': $existing_token = $this->authentication->verification_tag()->get(); if ( ! empty( $existing_token ) ) { return function() use ( $existing_token ) { @@ -143,7 +143,7 @@ final class Site_Verification extends Module implements Module_With_Scopes { } $sites = array(); if ( isset( $site['verified'] ) && ! $site['verified'] ) { - $token = $this->get_data( 'siteverification-token', $data ); + $token = $this->get_data( 'verification-token', $data ); if ( is_wp_error( $token ) ) { return $token; } @@ -249,7 +249,7 @@ final class Site_Verification extends Module implements Module_With_Scopes { 'type' => 'SITE', 'verified' => false, ); - case 'siteverification-token': + case 'verification-token': if ( is_array( $response ) ) { return $response; }
10
diff --git a/src/collections/resources/analyzing-service-mesh-performance/analyzing-service-mesh-performance.mdx b/src/collections/resources/analyzing-service-mesh-performance/analyzing-service-mesh-performance.mdx @@ -30,7 +30,7 @@ import { ResourcesWrapper } from "../Resources.style.js"; </div> <div className="right" > -<img src={cover} align="center" width="400" height="500" max-width="100%" alt="IEEE The Bridge 2021 Issue 3 cover" /> +<img src={cover} align="center" width="400" alt="IEEE The Bridge 2021 Issue 3 cover" /> </div> <p> @@ -126,7 +126,7 @@ overhead data under a permutation of different workloads (applications) and diff <div className="center" > <a href={EWtraffic}> -<img src={EWtraffic} align="center" width="500" height="300" max-width="100%" alt="EWtraffic" /> +<img src={EWtraffic} align="center" width="500" alt="EWtraffic" /> </a> </div> @@ -265,7 +265,7 @@ to be calculated for every performance test. <div className="center" > <a href={Code}> -<img src={Code} align="center" max-width="100%" alt="Code-snippet" /> +<img src={Code} align="center" alt="Code-snippet" /> </a> </div> @@ -301,7 +301,7 @@ performance could be analyzed either on a same node or in a multi-node cluster: <div className="center" > <a href={Workload}> -<img src={Workload} align="center" width="500" height="300" max-width="100%" alt="Workload" /> +<img src={Workload} align="center" width="500" alt="Workload" /> </a> </div> @@ -329,7 +329,7 @@ specification is implemented in Meshery. <div className="center" > <a href={Archictures}> -<img src={Archictures} align="center" width="500" height="300" max-width="100%" alt="Archictures-client" /> +<img src={Archictures} align="center" width="500" alt="Archictures-client" /> </a> </div> @@ -484,7 +484,7 @@ exists primarily in exchanging between service mesh speed and service mesh flexi <div className="center" > <a href={NetworkFunction}> -<img src={NetworkFunction} align="center" width="500" height="300" max-width="100%" alt="comparison of Network functions" /> +<img src={NetworkFunction} align="center" width="500" alt="comparison of Network functions" /> </a> </div>
1
diff --git a/appjs/logicjavascript.js b/appjs/logicjavascript.js @@ -17225,24 +17225,24 @@ function embedfind(){ // Projection angle variation // when the number of // sides are in multiple of 4 - if (N % 4 == 0) { - proAngleVar = pi * (180.0 / N) / 180; + if (n % 4 == 0) { + proAngleVar = pi * (180.0 / n) / 180; } else { - proAngleVar = pi * (180.0 / (2 * N)) / 180; + proAngleVar = pi * (180.0 / (2 * n)) / 180; } // Distance between the end polets let negX = 1.0e+99, posX = -1.0e+99, negY = 1.0e+99, posY = -1.0e+99; - for ( let j = 0; j < N; ++j) { + for ( let j = 0; j < n; ++j) { // Projection from all N polets // on X-axis - let px = Math.cos(2 * pi * j / N + proAngleVar); + let px = Math.cos(2 * pi * j / n + proAngleVar); // Projection from all N polets // on Y-axis - let py = Math.sin(2 * pi * j / N + proAngleVar); + let py = Math.sin(2 * pi * j / n + proAngleVar); negX = Math.min(negX, px); posX = Math.max(posX, px); @@ -17255,7 +17255,7 @@ function embedfind(){ // Return the portion of side // forming the square - let ans = opt2 / Math.sin(pi / N) / 2; + let ans = opt2 / Math.sin(pi / n) / 2; document.getElementById("embedans").innerHTML = ans }
1
diff --git a/runtime/scripts/part.js b/runtime/scripts/part.js @@ -181,6 +181,8 @@ Part.prototype = /** @lends Numbas.parts.Part.prototype */ { // extend the base marking algorithm if asked to do so var extend_base = markingScript.extend; this.setMarkingScript(markingScriptString,extend_base); + } else { + this.markingScript = this.baseMarkingScript(); } // custom JavaScript scripts var scriptNodes = this.xml.selectNodes('scripts/script');
12
diff --git a/package.json b/package.json "dev:server": "browser-sync start --server \"app\" --files \"app/index.html,app/bundle.css,app/bundle.js\" --no-open --no-notify --no-ui --no-ghost-mode", "dev:extension": "npm run extension:build && npm run extension:local:version", "extension": "npm run extension:js && npm run extension:css && npm run extension:copy && npm run extension:local:version", - "extension:local:version": "sed -i '' \"s/{{NPM_VERSION}}/$npm_package_version/\" ./extension/manifest.json", + "extension:local:version": "sed -i '' \"s/{{NPM_VERSION}}/0.0.0/\" ./extension/manifest.json && sed -i '' \"s/VisBug/DevBug/\" ./extension/manifest.json", "extension:ci:version": "sed -i \"s/{{NPM_VERSION}}/$npm_package_version/\" ./extension/manifest.json", "extension:build": "npm run extension:js && npm run extension:css && npm run extension:copy", "extension:release": "npm run test:ci && npm run bump && npm run extension:build && npm run extension:zip",
7
diff --git a/tools/subgraph/src/PricingHelper.ts b/tools/subgraph/src/PricingHelper.ts @@ -8,7 +8,6 @@ supportedOracles.set('0x6b175474e89094c44da98b954eedeac495271d0f', '0x777A68032a supportedOracles.set('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', '0x9211c6b3BF41A10F78539810Cf5c64e1BB78Ec60') // USDC supportedOracles.set('0xdac17f958d2ee523a2206206994597c13d831ec7', '0x2ca5A90D34cA333661083F89D831f757A9A50148') // USDT - function getPrice(tokenAddress: string): BigInt { if (!supportedOracles.isSet(tokenAddress)) { return BigInt.fromI32(0) @@ -32,9 +31,17 @@ function getTokenDecimals(tokenAddress: string): BigInt { } export function computeFeeAmountUsd(signerToken: string, signerAmount: BigInt, signerFee: BigInt, divisor: BigInt): BigInt { - //TODO: current math here is wrong because the decimals are inconsistent between feeAmount(token decimals) and usd(8 decimals) + let base64 = BigInt.fromI32(2).pow(64) //used to keep precision + let signerTokenPrice = getPrice(signerToken) // 8 decimals USD - let tokenDecimals = getTokenDecimals(signerToken) // 6/8/18 decimals - depends on the token + let signerTokenPriceNormalizedx64 = signerTokenPrice.times(base64).div(BigInt.fromI32(10).pow(8)) //should be a decimal whole, precision kept by base64 + let feeAmount = signerAmount.times(signerFee).div(divisor) // quantity of token - return signerTokenPrice.times(feeAmount) + let tokenDecimals = getTokenDecimals(signerToken) // 6,8,18 decimals - depends on the token + let feeAmountNormalizedx64 = feeAmount.times(base64).div(BigInt.fromI32(10).pow(tokenDecimals)) // should be a decimal whole, precision kept by base64 + + let priceUsdx64 = feeAmountNormalizedx64.times(signerTokenPriceNormalizedx64) + let priceUsd = priceUsdx64.div(base64) + + return priceUsd } \ No newline at end of file
3
diff --git a/tests/e2e/testRunner.js b/tests/e2e/testRunner.js @@ -250,8 +250,9 @@ const runTests = async () => { require('node:child_process').execSync(`cat ${config.LOG_FILE}`); try { require('node:child_process').execSync(`cat ~/.android/avd/${process.env.AVD_NAME || 'test'}.avd/config.ini > ${config.OUTPUT_DIR}/emulator-config.ini`); - } catch (__) { - // the file might not exist + } catch (ignoredError) { + // the error is ignored, as the file might not exist if the test + // run wasn't started with an emulator } process.exit(1); }
8
diff --git a/src/encoded/schemas/changelogs/file.md b/src/encoded/schemas/changelogs/file.md ### Schema version 10 -* *date_created* format is only date-time and not two as it used to be, but it is true for all objects!!! +## Fields restricted to DCC access only: +** status +** restricted +** content_md5sum +** mapped_read_length +** mapped_run_type -* *platform* value is now required for files with *file_format* that is one of ["fastq", "rcc", "csfasta", "csqual", "sra", "CEL", "idat"] +## Fields that are now required for certain cases: + +** *platform* value is now required for files with *file_format* that is one of ["fastq", "rcc", "csfasta", "csqual", "sra", "CEL", "idat"] +** *assembly* value is required for files with *file_format* that is one of ["bam", "sam", "gtf", "bigWig"] +** *file_size* value is now required for files with *status* that is one of ["in progress", "released", "archived", "revoked"] +** *paired_end* value (1, 2, or 1,2) is required for files with *run_type* = paired-ended and forbidden for run_type that is one of ["single-ended", "unknown"] +** *read_length* value is now required for files with *output_type* = reads and *file_format* that is one of ["fastq", "fasta", "csfasta", "csqual", "sra"] + +## Formats and enums are more restrictive for several fields: + +* *date_created* format is limited now to only *date-time* and not one of ["date", "date-time"] as it used to be +* *md5sum* value formatting is now enforced with regex, validating it as a 32-character hexadecimal number * *output_type* values ["tRNA reference", "miRNA reference", "snRNA reference"] added to the ist of values that could be submitted only by DCC personnel * *file_format* values ["sra", "btr"] could be submitted only by DCC personnel -* *status* value could be submitted only by DCC personnel, statuses *uploaded* and *format check failed* were removed -* *restricted* value could be submitted only by DCC personnel -* *content_md5sum* value could be submitted only by DCC personnel -* *assembly* values is required for files with *file_format* that is one of ["bam", "sam", "gtf", "bigWig"] -* *mapped_read_length* is available only for files with *file_format* = bam, the property could be submitted only by DCC personnel -* *mapped_run_type* is available only for files with *file_format* = bam, the property could be submitted only by DCC personnel -* *file_size* value is now required for files with *status* that is one of ["in progress", "released", "archived", "revoked"] -* *paired_end* enums list was expanded to include a "1,2" value that is acceptable only for *file_format* = sra files that have *run_type* = paired_ended -* *paired_end* value (1, 2, or 1,2) is required for files with *run_type* = paired-ended. -* *md5sum* value formatting is now enforced with regex, validating it as a 32-character hexadecimal number. -* *read_length* value is now required for files with *output_type* = reads and *file_format* is one of ["fastq", "fasta", "csfasta", "csqual", "sra"] + +## Restrictions for use were also put in place: + +** *mapped_read_length* is available only for files with file_format = bam +** *mapped_run_type* is available only for files with file_format = bam +** *statuses* "uploaded" and "format check failed" were removed +** *paired_end* enums list was expanded to include a "1,2" value that is acceptable only for *file_format* = sra files that have *run_type* = paired_ended ### Schema version 9 * *mapped_read_length* was added for alignments when the length of the mapped reads differs from the accessioned fastq. +### Schema version 7 + +## The following arrays were restricted to contain unique values + +* *derived_from* +* *controlled_by* +* *supersedes* +* *aliases* +* *file_format_specifications* + ### Schema version 6 * *output_type* was updated to have more accurate terms:
3
diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go @@ -166,7 +166,7 @@ func (c *Context) tmplEditMessage(filterSpecialMentions bool) func(channel inter msgEdit.Embed = typedMsg case *discordgo.MessageEdit: //If both Embed and string are explicitly set as null, give an error message. - if typedMsg.Content != nil && *typedMsg.Content == "" && typedMsg.Embed != nil && typedMsg.Embed.GetMarshalNil() { + if typedMsg.Content != nil && strings.TrimSpace(*typedMsg.Content) == "" && typedMsg.Embed != nil && typedMsg.Embed.GetMarshalNil() { return "", errors.New("both content and embed cannot be null") } msgEdit.Content = typedMsg.Content
9
diff --git a/lib/winston/transports/file.js b/lib/winston/transports/file.js @@ -43,8 +43,6 @@ var File = module.exports = function (options) { }); } - var self = this; - // // Setup the base stream that always gets piped to to handle buffering // @@ -149,7 +147,7 @@ File.prototype.log = function (info, callback) { // the safest way since we are supporting `maxFiles`. // Remark: We could call `open` here but that would incur an extra unnecessary stat call // - this._endStream(function () { self._nextFile(); }); + self._endStream(function () { self._nextFile(); }); } }; @@ -388,7 +386,6 @@ File.prototype._onDrain = function onDrain() { }; File.prototype._onError = function onError(err) { - console.log('emit error?'); this.emit('error', err); }; @@ -420,7 +417,7 @@ File.prototype._endStream = function endStream(callback) { this._stream.unpipe(this._dest); this._dest.end(function () { - this._cleanupStream(self._dest); + self._cleanupStream(self._dest); callback(); }); }; @@ -496,18 +493,17 @@ File.prototype._getFile = function () { // checked by this instance. // File.prototype._checkMaxFilesIncrementing = function (ext, basename, callback) { - var self = this, - oldest, + var oldest, target; // Check for maxFiles option and delete file - if (!self.maxFiles || self._created < self.maxFiles) { + if (!this.maxFiles || this._created < this.maxFiles) { return callback(); } - oldest = self._created - self.maxFiles; - target = path.join(self.dirname, basename + (oldest !== 0 ? oldest : '') + ext + - (self.zippedArchive ? '.gz' : '')); + oldest = this._created - this.maxFiles; + target = path.join(this.dirname, basename + (oldest !== 0 ? oldest : '') + ext + + (this.zippedArchive ? '.gz' : '')); fs.unlink(target, callback); };
1
diff --git a/shared/js/background/atb.es6.js b/shared/js/background/atb.es6.js @@ -4,8 +4,8 @@ const utils = require('./utils.es6') var ATB = (() => { // regex to match ddg urls to add atb params to. // Matching subdomains, searches, and newsletter page - var ddgRegex = new RegExp(/^https?:\/\/(\w+\.)?duckduckgo\.com\/(\?.*|about#newsletter)/) - var ddgAtbURL = 'https://duckduckgo.com/atb.js?' + const regExpAboutPage = /^https?:\/\/(\w+\.)?duckduckgo\.com\/(\?.*|about#newsletter)/ + const ddgAtbURL = 'https://duckduckgo.com/atb.js?' return { updateSetAtb: () => {
14
diff --git a/testHelpers/index.js b/testHelpers/index.js const fs = require('fs') const ip = require('ip') -const path = require('path') -const execa = require('execa') const crypto = require('crypto') const Cluster = require('../src/cluster') -const Broker = require('../src/broker') +const waitFor = require('../src/utils/waitFor') const connectionBuilder = require('../src/cluster/connectionBuilder') const Connection = require('../src/network/connection') const { createLogger, LEVELS: { NOTHING, INFO, DEBUG } } = require('../src/loggers') const LoggerConsole = require('../src/loggers/console') +const Kafka = require('../src/index') const isTravis = process.env.TRAVIS === 'true' const travisLevel = process.env.VERBOSE ? DEBUG : INFO @@ -97,26 +96,9 @@ const createModPartitioner = () => ({ partitionMetadata, message }) => { return ((key || 0) % 3) % numPartitions } -const waitFor = (fn, { delay = 50 } = {}) => { - let totalWait = 0 - return new Promise((resolve, reject) => { - const check = () => { - totalWait += delay - setTimeout(async () => { - try { - const result = await fn(totalWait) - result ? resolve(result) : check() - } catch (e) { - reject(e) - } - }, delay) - } - check(totalWait) - }) -} - const retryProtocol = (errorType, fn) => - waitFor(async () => { + waitFor( + async () => { try { return await fn() } catch (e) { @@ -125,23 +107,26 @@ const retryProtocol = (errorType, fn) => } return false } - }) + }, + { ignoreTimeout: true } + ) const waitForMessages = (buffer, { number = 1, delay = 50 } = {}) => - waitFor(() => (buffer.length >= number ? buffer : false), { delay }) + waitFor(() => (buffer.length >= number ? buffer : false), { delay, ignoreTimeout: true }) const createTopic = async ({ topic, partitions = 1 }) => { - const cmd = path.join(__dirname, '../scripts/createTopic.sh') - execa.shellSync(`TOPIC=${topic} PARTITIONS=${partitions} ${cmd}`) + const kafka = new Kafka({ clientId: 'testHelpers', brokers: [`${getHost()}:9092`] }) + const admin = kafka.admin() - const broker = new Broker({ - connection: createConnection(), - logger: newLogger(), + try { + await admin.connect() + await admin.createTopics({ + waitForLeaders: true, + topics: [{ topic, numPartitions: partitions }], }) - - await broker.connect() - await retryProtocol('LEADER_NOT_AVAILABLE', async () => await broker.metadata([topic])) - await broker.disconnect() + } finally { + admin && (await admin.disconnect()) + } } module.exports = {
14
diff --git a/CHANGELOG.md b/CHANGELOG.md # Develop -- TODO Change to 1.8.x. +* ... + +# 1.8.5 * IMPORTANT DROP OF SUPPORT: Drop support for IE. Browsers now need async/await. * IMPORTANT SECURITY: Rate limit Commits when env=production * SECURITY: Non completed uploads no longer crash Etherpad * MINOR: Improved CSS anomation through prefers-reduced-motion * PERFORMANCE: Use workers (where possible) to minify CSS/JS on first page request. This improves initial startup times. * PERFORMANCE: Cache EJS files improving page load speed when maxAge > 0. +* PERFORMANCE: Fix performance for large pads * TESTS: Additional test coverage for OL/LI/Import/Export * TESTS: Include Simulated Load Testing in CI. * TESTS: Include content collector tests to test contentcollector.js logic external to pad dependents.
12
diff --git a/.reuse/dep5 b/.reuse/dep5 @@ -30,17 +30,7 @@ Copyright: 2020 SAP SE or an SAP affiliate company and OpenUI5 contributors License: Apache-2.0 -Files: /packages/main/test/pages/diffable-html.js packages/playground/docs/pages/content/main/diffable-html.js -Copyright: Feross Aboukhadijeh <https://feross.org> -License: MIT - - -Files: /packages/playground/assets/js/vendor/lunr.min.js -Copyright: 2017 Oliver Nightingale -License: MIT - - -Files: packages/playground/assets/js/webcomponentsjs/* /packages/base/src/thirdparty/Array.from.js /packages/base/src/thirdparty/events-polyfills.js /packages/base/src/thirdparty/Object.assign.js /packages/base/src/thirdparty/template.js /packages/base/src/thirdparty/webcomponents-sd-ce-pf.js +Files: packages/playground/assets/js/webcomponentsjs/* packages/ie11/src/thirdparty/Array.from.js packages/ie11/src/thirdparty/events-polyfills.js packages/ie11/src/thirdparty/Object.assign.js packages/ie11/src/thirdparty/template.js packages/ie11/src/thirdparty/webcomponents-sd-ce-pf.js Copyright: 2018 The Polymer Project Authors License: BSD-3-Clause-Clear @@ -48,3 +38,11 @@ Files: packages/base/dist/sap/ui/thirdparty/caja-html-sanitizer.js Copyright: Google Inc. License: Apache-2.0 Comment: these files belong to: Google-Caja JS HTML Sanitizer + +Files: packages/main/test/pages/diffable-html.js +Copyright: Feross Aboukhadijeh <https://feross.org> +License: MIT + +Files: packages/playground/assets/js/vendor/lunr.min.js +Copyright: 2017 Oliver Nightingale +License: MIT
3
diff --git a/docs/whats-new.md b/docs/whats-new.md @@ -25,6 +25,10 @@ Release date: TBD, target April, 2018 <img height=150 src="https://raw.github.com/uber-common/deck.gl-data/master/images/whats-new/jsx-layers.png" /> <p><i>JSX Layers</i></p> </td> + <td> + <img height=150 src="https://raw.github.com/uber-common/deck.gl-data/master/images/whats-new/screenGrid-colorRangeDomain.gif" /> + <p><i>ScreenGrid Color Scale</i></p> + </td> </tr> </tbody> </table> @@ -65,7 +69,7 @@ Bundle sizes for a minimal deck.gl app with webpack 2. ### project64 and project32 modules -**Unified 32/64-bit projection** - A new common API for projection is implemented in both the `project64` shader module and a new `project32` shader module allowing the same vertex shader can be used for both 32-bit and 64-bit projection. This simplifies adding fp64 support to layers and reduces bundle size. See [docs](docs/shader-modules/project32.md) for more details. +**Unified 32/64-bit projection** - A new common API for projection is implemented in both the `project64` shader module and a new `project32` shader module allowing the same vertex shader can be used for both 32-bit and 64-bit projection. This simplifies adding fp64 support to layers and reduces bundle size. See [docs](/docs/shader-modules/project32.md) for more details.
0
diff --git a/src/components/DateTimePicker/DateTimePicker.test.jsx b/src/components/DateTimePicker/DateTimePicker.test.jsx @@ -211,4 +211,30 @@ describe('DateTimePicker tests', () => { expect(wrapper.find('.iot--time-picker__controls--btn')).toHaveLength(0); }); + + test('it should keep preset value when switching from presets to relative and back', () => { + const wrapper = mount(<DateTimePicker {...dateTimePickerProps} />); + wrapper + .find('.iot--date-time-picker__field') + .first() + .simulate('click'); + // if you are wondering about hostNodes https://github.com/enzymejs/enzyme/issues/836#issuecomment-401260477 + expect( + wrapper.find('.iot--date-time-picker__listitem--preset-selected').hostNodes() + ).toHaveLength(1); + + wrapper + .find('.iot--date-time-picker__listitem--custom') + .first() + .simulate('click'); + + wrapper + .find('.iot--date-time-picker__menu-btn-back') + .first() + .simulate('click'); + + expect( + wrapper.find('.iot--date-time-picker__listitem--preset-selected').hostNodes() + ).toHaveLength(1); + }); });
1
diff --git a/CHANGES.md b/CHANGES.md - Fixed an issue in `ScreenSpaceCameraController.tilt3DOnTerrain` that caused unexpected camera behavior when tilting terrain diagonally along the screen. [#9562](https://github.com/CesiumGS/cesium/pull/9562) - Fixed error handling in `GlobeSurfaceTile` to print terrain tile request errors to console. [#9570](https://github.com/CesiumGS/cesium/pull/9570) - Fixed broken image URL in the KML Sandcastle. [#9579](https://github.com/CesiumGS/cesium/pull/9579) +- Fixed an error where the `positionToEyeEC` and `tangentToEyeMatrix` properties for custom materials were not set in `GlobeFS`. [#9597](https://github.com/CesiumGS/cesium/pull/9597) ### 1.82.1 - 2021-06-01
3
diff --git a/app/scripts/TiledPlot.jsx b/app/scripts/TiledPlot.jsx @@ -182,7 +182,7 @@ export class TiledPlot extends React.Component { if (!track.options) track.options = {} - track.options.name = tilesetInfo.name; + //track.options.name = tilesetInfo.name; track.name = tilesetInfo.name; /*
2
diff --git a/generators/ci-cd/templates/.gitlab-ci.yml.ejs b/generators/ci-cd/templates/.gitlab-ci.yml.ejs @@ -30,7 +30,7 @@ cache: <%_ } _%> <%_ if (buildTool === 'maven') { _%> cache: - key: "$CI_BUILD_REF_NAME" + key: "$CI_COMMIT_REF_NAME" paths: - node_modules - .maven
3
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -740,6 +740,8 @@ inttest:registryAuth: psql -h localhost -p 5432 -U postgres -d auth -f magda-registry-api/src/test/resources/data/organizations.sql psql -h localhost -p 5432 -U postgres -d auth -f magda-registry-api/src/test/resources/data/users.sql # Test! + export POSTGRES_USER=postgres + export POSTGRES_PASSWORD=$PGPASSWORD sbt "registryApi/testOnly au.csiro.data61.magda.opa.*" (Full) Run As Preview: &runAsPreview
12
diff --git a/src/js/L.PM.Map.js b/src/js/L.PM.Map.js @@ -9,6 +9,8 @@ const Map = L.Class.extend({ this.map.fire('pm:remove', e); } }); + + this._globalRemovalMode = false; }, addControls(options) { this.Toolbar.addControls(options);
12
diff --git a/app/scripts/TrackRenderer.js b/app/scripts/TrackRenderer.js @@ -6,6 +6,7 @@ import * as PIXI from 'pixi.js'; import { zoom, zoomIdentity } from 'd3-zoom'; import { select, event } from 'd3-selection'; import { scaleLinear } from 'd3-scale'; +import slugid from 'slugid'; import HeatmapTiledPixiTrack from './HeatmapTiledPixiTrack'; import Id2DTiledPixiTrack from './Id2DTiledPixiTrack'; @@ -100,6 +101,8 @@ class TrackRenderer extends React.Component { this.zoomedBound = this.zoomed.bind(this); this.zoomEndedBound = this.zoomEnded.bind(this); + this.uid = slugid.nice(); + this.mounted = false; // create a zoom behavior that we'll just use to transform selections @@ -258,7 +261,6 @@ class TrackRenderer extends React.Component { if (this.prevPropsStr === nextPropsStr) return; this.setBackground(); - this.elementPos = this.element.getBoundingClientRect(); for (const uid in this.trackDefObjects) { const track = this.trackDefObjects[uid].trackObject; @@ -371,6 +373,7 @@ class TrackRenderer extends React.Component { * @param {Object} e Event to be dispatched. */ dispatchEvent(e) { + if (this.isWithin(e.clientX, e.clientY)) { if (e.type !== 'contextmenu') forwardEvent(e, this.element); } @@ -386,6 +389,7 @@ class TrackRenderer extends React.Component { isWithin(x, y) { if (!this.element) return false; + const withinX = ( x >= this.elementPos.left && x <= this.elementPos.width + this.elementPos.left @@ -676,6 +680,8 @@ class TrackRenderer extends React.Component { timedUpdatePositionAndDimensions() { if (this.closing || !this.element) return; + this.elementPos = this.element.getBoundingClientRect(); + if (this.dragging) { this.yPositionOffset = ( this.element.getBoundingClientRect().top -
5
diff --git a/api/exporter/views.py b/api/exporter/views.py @@ -31,52 +31,6 @@ class CategoryView(View): } return JsonResponse(data, status=200) -class ExporterListView(View): - def get(self, request): - try: - category = request.GET.get('category') - official_type = request.GET.get('type') - sort = request.GET.get('sort', 'popular') - sort_dict = { - 'popular' : '-stars', - 'recent' : 'date', - 'trending': '-view_count' - } - - q = Q() - if category: - q.add(Q(category__name__icontains=category), Q.AND) - - if official_type: - q.add(Q(official__name__istartswith=official_type), Q.AND) - - if sort == 'recent': - exporters = Exporter.objects.select_related('category', 'official').prefetch_related('release_set')\ - .filter(q).annotate(recent=Max('release__date')).order_by('-recent') - else: - exporters = Exporter.objects.select_related('category', 'official').filter(q).order_by(sort_dict[sort]) - - data = { - "exporters": [{ - "exporter_id" : exporter.id, - "name" : exporter.name, - "logo_url" : exporter.logo_url, - "category" : exporter.category.name, - "official" : exporter.official.name, - "stars" : exporter.stars, - "is_new" : (timezone.now() - exporter.created_at).days <= 7, - "repository_url" : exporter.repository_url, - "description" : exporter.description, - }for exporter in exporters] - } - return JsonResponse(data, status=200) - - except KeyError: - return JsonResponse({'message': 'KEY_ERROR'}, status=400) - - except Exception as e: - return JsonResponse({'message':f"{e}"}, status=400) - class ExporterView(View): def get_repo(self, github_token, repo_url): headers = {'Authorization' : 'token ' + github_token}
13
diff --git a/src/dev/fdm/Creality.CR-30 b/src/dev/fdm/Creality.CR-30 "origin_center": false, "extrude_abs": true, "bed_belt": true, - "bed_width": 200, + "bed_width": 210, "bed_depth": 300, "build_height": 170 },
3
diff --git a/src/client/js/components/PageComment/Comment.jsx b/src/client/js/components/PageComment/Comment.jsx import React from 'react'; import PropTypes from 'prop-types'; -import { format, formatDistanceStrict } from 'date-fns'; +import { format } from 'date-fns'; import { UncontrolledTooltip } from 'reactstrap'; @@ -9,6 +9,8 @@ import AppContainer from '../../services/AppContainer'; import PageContainer from '../../services/PageContainer'; import { createSubscribedElement } from '../UnstatedUtils'; + +import FormattedDistanceDate from '../FormattedDistanceDate'; import RevisionBody from '../Page/RevisionBody'; import UserPicture from '../User/UserPicture'; import Username from '../User/Username'; @@ -175,9 +177,6 @@ class Comment extends React.PureComponent { const revFirst8Letters = comment.revision.substr(-8); const revisionLavelClassName = this.getRevisionLabelClassName(); - const commentedDateId = `commentDate-${comment._id}`; - const commentedDate = <span id={commentedDateId}>{formatDistanceStrict(createdAt, new Date())}</span>; - const commentedDateFormatted = format(createdAt, 'yyyy/MM/dd HH:mm'); const editedDateId = `editedDate-${comment._id}`; const editedDateFormatted = isEdited ? format(updatedAt, 'yyyy/MM/dd HH:mm') @@ -206,8 +205,9 @@ class Comment extends React.PureComponent { </div> <div className="page-comment-body">{commentBody}</div> <div className="page-comment-meta"> - <span><a href={`#${commentId}`}>{commentedDate}</a></span> - <UncontrolledTooltip placement="bottom" fade={false} target={commentedDateId}>{commentedDateFormatted}</UncontrolledTooltip> + <a href={`#${commentId}`}> + <FormattedDistanceDate id={commentId} date={comment.createdAt} /> + </a> { isEdited && ( <> <span id={editedDateId}>&nbsp;(edited)</span>
4
diff --git a/app/controllers/ApplicationController.scala b/app/controllers/ApplicationController.scala @@ -134,9 +134,10 @@ class ApplicationController @Inject() (implicit val env: Environment[User, Sessi val otherURL: String = Play.configuration.getString("city-params.landing-page-url." + otherCity).get (otherName + ", " + otherState, otherURL) } - var auditedDistance = StreetEdgeTable.auditedStreetDistance(1) - // If I want to use metric measurement system, not IS. - if (Messages("measurement.system") == "metric") auditedDistance *= 1.60934.toFloat + // Get total audited distance. If using metric system, convert from miles to kilometers + val auditedDistance = + if (Messages("measurement.system") == "metric") StreetEdgeTable.auditedStreetDistance(1) * 1.60934.toFloat + else StreetEdgeTable.auditedStreetDistance(1) Future.successful(Ok(views.html.index("Project Sidewalk", Some(user), cityName, stateAbbreviation, cityShortName, mapathonLink, cityStr, otherCityUrls, auditedDistance))) } else{ WebpageActivityTable.save(WebpageActivity(0, user.userId.toString, ipAddress, activityLogText, timestamp))
3
diff --git a/data/menu.js b/data/menu.js @@ -436,7 +436,7 @@ let data = [ }, {type: 'separator'}, { - label: 'Z&oom Factor', + label: 'Z&oom', submenu: [ { label: 'Increase',
10
diff --git a/angular/projects/spark-angular/src/lib/components/sprk-masthead/sprk-masthead.component.spec.ts b/angular/projects/spark-angular/src/lib/components/sprk-masthead/sprk-masthead.component.spec.ts @@ -329,7 +329,7 @@ describe('SprkMastheadComponent', () => { hamburgerIcon.click(); fixture.detectChanges(); const selectorTrigger = fixture.nativeElement.querySelector( - '.sprk-c-Dropdown__trigger', + '.sprk-c-Masthead__selector', ); selectorTrigger.click(); fixture.detectChanges(); @@ -369,7 +369,7 @@ describe('SprkMastheadComponent', () => { hamburgerIcon.click(); fixture.detectChanges(); const selectorTrigger = fixture.nativeElement.querySelector( - '.sprk-c-Dropdown__trigger', + '.sprk-c-Masthead__selector', ); selectorTrigger.click(); fixture.detectChanges();
1
diff --git a/token-metadata/0xf293d23BF2CDc05411Ca0edDD588eb1977e8dcd4/metadata.json b/token-metadata/0xf293d23BF2CDc05411Ca0edDD588eb1977e8dcd4/metadata.json "symbol": "SYLO", "address": "0xf293d23BF2CDc05411Ca0edDD588eb1977e8dcd4", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/mocks/data/systems.js b/src/mocks/data/systems.js @@ -1988,6 +1988,7 @@ export default { picture: "/Sensor Contacts/Pictures/Default.png", quadrant: 1, moving: true, + clickToTarget: false, __typename: "TargetingClass", }, ], @@ -2005,6 +2006,7 @@ export default { targeted: false, destroyed: false, moving: true, + clickToTarget: false, __typename: "TargetingContact", }, { @@ -2020,6 +2022,7 @@ export default { targeted: false, destroyed: false, moving: true, + clickToTarget: false, __typename: "TargetingContact", }, ],
1
diff --git a/lib/carto/dbdirect/firewall_manager.rb b/lib/carto/dbdirect/firewall_manager.rb @@ -42,8 +42,7 @@ module Carto # but since there could be race conditions anyway we'll just rescue errors @service.delete_firewall(config['project_id'], name) - rescue Google::Apis::ClientError => error - raise unless error.message =~ /^notFound:/ + rescue Google::Apis::ClientError end def create_rule(project_id:, name:, network:, ips:, target_tag:, ports:)
8
diff --git a/app/components/vis-bug/vis-bug.css b/app/components/vis-bug/vis-bug.css @@ -33,3 +33,11 @@ body { [data-potential-dropzone=true]:not([data-selected]) { outline: 1px dashed hsl(267, 100%, 58%); } + +[draggable=true] { + cursor: grab; + + &:active { + cursor: grabbing; + } +}
12
diff --git a/articles/users/guides/configure-automatic-migration.md b/articles/users/guides/configure-automatic-migration.md @@ -17,7 +17,7 @@ useCase: After you create a database connection in the Dashboard, you enable user migration from that database and create custom scripts to determine how the migration happens. -These custom scripts are *Node.js* code that run in the tenant's sandbox. Auth0 provides templates for most common databases, such as: **ASP.NET Membership Provider**, **MongoDB**, **MySQL**, **PostgreSQL**, **SQLServer**, **Windows Azure SQL Database**, and for a web service accessed by **Basic Auth**. For more information on implementing these scripts, see [Authenticate Users using a Custom Database](/connections/database/mysql). +These custom scripts are Node.js code that run in the tenant's sandbox. Auth0 provides templates for most common databases, such as: **ASP.NET Membership Provider**, **MongoDB**, **MySQL**, **PostgreSQL**, **SQLServer**, **Windows Azure SQL Database**, and for a web service accessed by **Basic Auth**. For more information on implementing these scripts, see [Authenticate Users using a Custom Database](/connections/database/mysql). 1. Navigate to the [Connections > Database](${manage_url}/#/connections/database) page in the [Auth0 Dashboard](${manage_url}/), and click **Create DB Connection**.
2
diff --git a/server/game/cards/01 - Core/ShiroNishiyama.js b/server/game/cards/01 - Core/ShiroNishiyama.js @@ -4,7 +4,6 @@ class ShiroNishiyama extends StrongholdCard { setupCardAbilities(ability) { this.action({ title: 'Give defending characters +1/+1', - clickToActivate: true, cost: ability.costs.bowSelf(), condition: () => this.game.currentConflict && this.controller.anyCardsInPlay(card => this.game.currentConflict.isDefending(card)), handler: () => {
2
diff --git a/package.json b/package.json }, "homepage": "https://github.com/conductorlab/components#readme", "devDependencies": { + "@conductorlab/tonic": "^10.0.2", + "autoprefixer-stylus": "^0.14.0", "browserify": "^16.2.2", "highlight.js": "^9.12.0", "marked": "^0.7.0", "node-fetch": "^2.2.0", "send": "^0.16.2", "tape": "^4.9.1", - "tape-run": "^4.0.0" - }, - "dependencies": { - "@conductorlab/tonic": "^10.0.2", - "autoprefixer-stylus": "^0.14.0", + "tape-run": "^4.0.0", "minimist": "^1.2.0", "mkdirp": "^0.5.1", "qs": "github:hxoht/qs",
5
diff --git a/src/components/translator.js b/src/components/translator.js @@ -85,6 +85,7 @@ module.exports = class Translator { //NOTE: this "protection" is to incentivize users to modify the git-untracked `locale/custom.json` file. // since modifying any other file will result in the user not being able to update txAdmin just by typing `git pull`. + // Also, to generate this list run the handy dandy `src/scripts/hash-locale.js` let langHashes = { cs: 'ac4c39180ba8d93ef5729be638f8226683abfec2', //Czech da: 'f4ed0196724d77e2b3e02a7f5fc5064e174939ff', //Danish @@ -97,6 +98,7 @@ module.exports = class Translator { pl: '7b54962c37b3f8befc7dcfab10c5a5c93b9e505f', //Polish pt_BR: '39136e5996e6ff4b6090c4e0a5759f21dc3c56d2', //Portuguese (Brazil) ro: '7cb38638a83349485bb0c2389f35adc7ec168b24', //Romanian + th: '063e85d6d494200cd287dc78965420df2057e5e1', //Thai zh: 'dd93a6fe7bfbbcdf99c2d239fc9be25b409a5a83', //Chinese } let hash = null;
0
diff --git a/server/views/topics/entities.py b/server/views/topics/entities.py @@ -20,7 +20,10 @@ def process_tags_for_coverage(topics_id, tag_counts): coverage = topic_tag_coverage(topics_id, processed_by_cliff_tag_ids()) top_tag_counts = tag_counts[:DEFAULT_DISPLAY_AMOUNT] for t in tag_counts: # add in pct to ALL counts, not top, so CSV download can include them + try: t['pct'] = float(t['count']) / float(coverage['counts']['count']) + except ZeroDivisionError: + t['pct'] = 0 data = { 'entities': top_tag_counts, 'coverage': coverage['counts'],
9