code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/assets/js/modules/adsense/setup/setup-main.js b/assets/js/modules/adsense/setup/setup-main.js @@ -129,7 +129,7 @@ export default function SetupMain() { // Update account status setting on-the-fly. useEffect( () => { - // Don't do anything if account status cannot be determined (because of parts . + // Don't do anything if account status cannot be determined (because of arguments not loaded yet). if ( 'undefined' === typeof accountStatus ) { return; } @@ -142,7 +142,7 @@ export default function SetupMain() { // Update site status setting on-the-fly. useEffect( () => { - // Don't do anything if site status cannot be determined (because of parts . + // Don't do anything if site status cannot be determined (because of arguments not loaded yet). if ( 'undefined' === typeof siteStatus ) { return; }
1
diff --git a/articles/email/templates.md b/articles/email/templates.md @@ -48,7 +48,6 @@ You can access the following common variables when using Liquid Syntax in the ** * `friendly_name` * `support_email` * `support_url` - * `home_url` Variables are referenced using the `{{ variable_name }}` syntax in Liquid. E.g.:
2
diff --git a/Source/DataSources/KmlTourWait.js b/Source/DataSources/KmlTourWait.js @@ -8,6 +8,7 @@ import defined from "../Core/defined.js"; * @param {Number} duration entry duration * * @see KmlTour + * @see KmlTourFlyTo */ function KmlTourWait(duration) { this.type = "KmlTourWait";
3
diff --git a/themes/vue/layout/partials/ecosystem_dropdown.ejs b/themes/vue/layout/partials/ecosystem_dropdown.ejs <li> <ul> <li><a href="https://github.com/vuejs/vue-devtools" class="nav-link" target="_blank">Devtools</a></li> - <li><a href="https://vuejs-templates.github.io/webpack" class="nav-link" target="_blank">Webpack Template</a></li> + <li><a href="https://cli.vuejs.org/" class="nav-link" target="_blank">Vue CLI</a></li> <li><a href="https://vue-loader.vuejs.org" class="nav-link" target="_blank">Vue Loader</a></li> </ul> </li>
14
diff --git a/lib/api-adresse.js b/lib/api-adresse.js @@ -24,7 +24,7 @@ async function _fetch(url) { export function search(args) { const {q, limit, lng, lat} = args - let url = `${API_ADRESSE}/search/?q=${encodeURIComponent(q)}&limit=10` + let url = `${API_ADRESSE}/search/?q=${encodeURIComponent(q)}` if (lng && lat) { url += `&lng=${lng}&lat=${lat}`
2
diff --git a/client/src/components/client/soundController.js b/client/src/components/client/soundController.js @@ -30,6 +30,10 @@ const CANCEL_ALL_SOUNDS = gql` `; class SoundController extends Component { + shouldComponentUpdate(prevProps) { + if (prevProps.clientId !== this.props.clientId) return true; + return false; + } render() { const { clientId } = this.props; return (
1
diff --git a/articles/api/management/v2/tokens-flows.md b/articles/api/management/v2/tokens-flows.md @@ -42,7 +42,7 @@ With the previous flow the tokens never expired. With the new flow all Managemen #### Why this changed -Having a token that never expires can be very risky, in case an attacher gets hold of it. If the token expires within a few hours the attacker has only a small window to access your protected resources. +Having a token that never expires can be very risky, in case an attacker gets hold of it. If the token expires within a few hours the attacker has only a small window to access your protected resources. ## Can I still get a non-expiring token?
1
diff --git a/platform/base/core/src/main/java/com/peregrine/render/impl/ReferenceListerService.java b/platform/base/core/src/main/java/com/peregrine/render/impl/ReferenceListerService.java @@ -37,6 +37,7 @@ import com.peregrine.reference.Reference; import com.peregrine.reference.ReferenceLister; import java.util.*; +import java.util.regex.Pattern; import org.apache.sling.api.resource.Resource; import org.apache.sling.api.resource.ResourceResolver; @@ -51,6 +52,8 @@ import org.osgi.service.metatype.annotations.ObjectClassDefinition; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import javax.jcr.query.Query; + /** * Lists References from and to a given Page * @@ -87,6 +90,9 @@ public class ReferenceListerService private List<String> referencePrefixList = new ArrayList<>(); private List<String> referencedByRootList = new ArrayList<>(); + private final Pattern JCR_CONTENT_SUFFIX = Pattern.compile("\\/" + JCR_CONTENT + ".+"); + private final String REFERENCED_BY_QUERY = "select * from [nt:base] where isdescendantnode('%s') and contains(*, '%s')"; + @Override public List<Resource> getReferenceList(boolean transitive, Resource resource, boolean deep) { return getReferenceList(transitive, resource, deep, null, null); @@ -105,15 +111,27 @@ public class ReferenceListerService if (isNull(resource)) { return Collections.emptyList(); } - - final List<Reference> answer = new ArrayList<>(); + final List<Reference> result = new ArrayList<>(); final ResourceResolver resourceResolver = resource.getResourceResolver(); - final String path = resource.getPath(); - referencedByRootList.stream() - .map(resourceResolver::getResource) - .filter(Objects::nonNull) - .forEach(r -> traverseTreeReverse(r, path, answer)); - return answer; + for (String referencedByRoot: referencedByRootList) { + Iterator<Resource> referencingResources = resourceResolver.findResources( + String.format(REFERENCED_BY_QUERY, referencedByRoot, resource.getPath()), + Query.JCR_SQL2); + + while (referencingResources.hasNext()) { + Resource referencingResource = referencingResources.next(); + String referencingPath = referencingResource.getPath(); + String parentPath = stripJcrContentSuffix(referencingPath); + Resource parentResource = resourceResolver.resolve(parentPath); + Reference ref = new Reference(parentResource, "", referencingResource); + result.add(ref); + } + } + return result; + } + + private String stripJcrContentSuffix(String path){ + return JCR_CONTENT_SUFFIX.matcher(path).replaceFirst(""); } /** @@ -236,6 +254,7 @@ public class ReferenceListerService } } + /** * Check the given resource's properties to look for a property value that contains the given reference path. * Call is ignored if resource or reference path is not defined
4
diff --git a/polyfills/Event/config.json b/polyfills/Event/config.json "default-3.4", "default-3.5", "default-3.6", - "default", - "EventTarget.prototype.addEventListener", - "EventTarget.prototype.removeEventListener", - "EventTarget.prototype.dispatchEvent" + "default" ], "browsers": { "firefox": "6 - 10",
2
diff --git a/generators/server/templates/src/main/java/package/config/DefaultProfileUtil.java.ejs b/generators/server/templates/src/main/java/package/config/DefaultProfileUtil.java.ejs @@ -52,18 +52,4 @@ public final class DefaultProfileUtil { defProperties.put(SPRING_PROFILE_DEFAULT, JHipsterConstants.SPRING_PROFILE_DEVELOPMENT); app.setDefaultProperties(defProperties); } - - /** - * Get the profiles that are applied else get default profiles. - * - * @param env spring environment. - * @return profiles. - */ - public static String[] getActiveProfiles(Environment env) { - String[] profiles = env.getActiveProfiles(); - if (profiles.length == 0) { - return env.getDefaultProfiles(); - } - return profiles; - } }
2
diff --git a/apps.json b/apps.json "name": "BangleRun", "shortName": "BangleRun", "icon": "banglerun.png", - "version": "0.05", + "version": "0.06", "interface": "interface.html", "description": "An app for running sessions. Displays info and logs your run for later viewing.", "tags": "run,running,fitness,outdoors",
3
diff --git a/components/lib/divider/Divider.spec.js b/components/lib/divider/Divider.spec.js @@ -3,12 +3,12 @@ import { render } from '@testing-library/react'; import { Divider } from './Divider'; describe('Divider', () => { - test('when tpe has not any property it returns with default class', () => { + test('when component has no properties it returns with default class', () => { // Arrange const { container } = render(<Divider />); // Act + Assert - expect(container.getElementsByClassName('p-divider p-component p-divider-horizontal').length).toBe(1); + expect(container).toHaveClass('p-divider p-component p-divider-horizontal'); }); test('when layout and align as property it returns with class', () => { // Arrange @@ -61,21 +61,21 @@ describe('Divider', () => { expect(container.getElementsByClassName('p-divider p-component p-divider-vertical p-divider-bottom').length).toBe(1); }); - test('when type has not any property it returns with default class', () => { + test('when type has no property it returns with the default class', () => { // Arrange const { container } = render(<Divider />); // Act + Assert expect(container.getElementsByClassName('p-divider p-component p-divider-solid').length).toBe(1); }); - test('when type as property it returns with class', () => { + test('when type is dashed it is styled as a dashed line', () => { // Arrange const { container } = render(<Divider type={'dashed'} />); // Act + Assert expect(container.getElementsByClassName('p-divider p-component p-divider-dashed').length).toBe(1); }); - test('when type as property it returns with class', () => { + test('when type is dotted is is styled as a dotted line', () => { // Arrange const { container } = render(<Divider type={'dotted'} />);
7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -14,7 +14,6 @@ jobs: - run: npm ci - run: npm run build - run: 'npm run release' - if: startsWith(github.ref, 'refs/tags/') env: CLIENT_ID: ${{ secrets.PUBLISHER_CHROME_CLIENT_ID }} CLIENT_SECRET: ${{ secrets.PUBLISHER_CHROME_CLIENT_SECRET }}
2
diff --git a/documentation/assertions/any/to-satisfy.md b/documentation/assertions/any/to-satisfy.md @@ -45,7 +45,7 @@ expected [ 0, 1, 2 ] to satisfy [ 0, 1 ] ``` In order to make statements about a subset of the available indices, an object -specification on the right hand side can mention specific indexes as keys which +specification on the right-hand side can mention specific indexes as keys which are themselves compared using `to satisfy` semantics: ```js
1
diff --git a/src/components/accounts/SetRecoveryInfoForm.js b/src/components/accounts/SetRecoveryInfoForm.js @@ -14,22 +14,17 @@ const RecoveryInfoForm = styled(Form)` height: 64px; border: 4px solid #f8f8f8; padding: 0 0 0 20px; - font-size: 18px; color: #4a4f54; font-weight: 400; background: 0; - position: relative; - :focus { border-color: #6ad1e3; } } - &&&&& .spinner { margin-right: 20px; - :before, :after { top: 28px; @@ -37,7 +32,6 @@ const RecoveryInfoForm = styled(Form)` height: 24px; } } - .problem > .input > input { background: url(${ProblemsImage}) right 22px center no-repeat; background-size: 24px 24px; @@ -46,7 +40,6 @@ const RecoveryInfoForm = styled(Form)` background: url(${ProblemsImage}) right 22px center no-repeat; background-size: 24px 24px; } - .success > .input > input { background: url(${CheckBlueImage}) right 22px center no-repeat; background-size: 24px 24px; @@ -55,20 +48,16 @@ const RecoveryInfoForm = styled(Form)` background: url(${CheckBlueImage}) right 22px center no-repeat; background-size: 24px 24px; } - &&& button { width: 288px; height: 60px; border-radius: 30px; border: 4px solid #0072ce; - background: #0072ce; - margin: 10px 0 0 0; - + margin: 10px 1em 0 0; font-size: 18px; color: #fff; letter-spacing: 2px; - :hover { background: #fff; color: #0072ce; @@ -84,30 +73,24 @@ const RecoveryInfoForm = styled(Form)` color: #0072ce; } } - .ui.button { height: 60px; - margin: 10px 0 0 1em; - + margin: 10px 0 0 0; background-color: #fff; border-radius: 30px; border: 4px solid #e6e6e6; color: #999999; - font-size: 18px; line-height: 24px; letter-spacing: 2px; - :hover { background-color: #e6e6e6; color: #fff; } } - & h3 { margin-bottom: 1rem; } - select.react-phone-number-input__country-select { height: 100%; } @@ -127,10 +110,18 @@ const SetRecoveryInfoForm = ({ <Form.Field> <h3>Phone Number</h3> <PhoneInput - className={`create ${requestStatus ? (requestStatus.success ? 'success' : 'problem') : ''} ${formLoader ? 'loading' : '' }`} + className={`create ${ + requestStatus + ? requestStatus.success + ? 'success' + : 'problem' + : '' + } ${formLoader ? 'loading' : ''}`} name='phoneNumber' value={phoneNumber} - onChange={ value => handleChange(null, { name: 'phoneNumber', value })} + onChange={value => + handleChange(null, { name: 'phoneNumber', value }) + } placeholder='example: +1 555 123 4567' /> </Form.Field> @@ -148,8 +139,12 @@ const SetRecoveryInfoForm = ({ )} <Form.Field> - <Button type='submit' disabled={!isLegit}>PROTECT ACCOUNT</Button> - <Link to="/dashboard" className="ui button">NOT NOW</Link> + <Button type='submit' disabled={!isLegit}> + PROTECT ACCOUNT + </Button> + <Link to='/dashboard' className='ui button'> + NOT NOW + </Link> </Form.Field> </RecoveryInfoForm> )
12
diff --git a/materials.js b/materials.js @@ -38,18 +38,31 @@ const appendMain = (shaderText, postfixLine) => { } `; */ -const formatVertexShader = vertexShader => `\ +// memoize a function which takes a string and returns a string +const _memoize = fn => { + const cache = new Map(); + return s => { + let result = cache.get(s); + if (result === undefined) { + result = fn(s); + cache.set(s, result); + } + return result; + }; +} + +const formatVertexShader = _memoize(vertexShader => `\ ${THREE.ShaderChunk.common} ${THREE.ShaderChunk.logdepthbuf_pars_vertex} ${appendMain(vertexShader, THREE.ShaderChunk.logdepthbuf_vertex)} -`; +`); -const formatFragmentShader = fragmentShader => `\ +const formatFragmentShader = _memoize(fragmentShader => `\ ${THREE.ShaderChunk.logdepthbuf_pars_fragment} ${appendMain(fragmentShader, THREE.ShaderChunk.logdepthbuf_fragment)} -`; +`); class WebaverseShaderMaterial extends THREE.ShaderMaterial { constructor(opts = {}) {
0
diff --git a/kitty-items-js/src/workers/base-event-handler.ts b/kitty-items-js/src/workers/base-event-handler.ts @@ -3,6 +3,7 @@ import { FlowService } from "../services/flow"; import * as fcl from "@onflow/fcl"; import { send } from "@onflow/sdk-send"; import { getEvents } from "@onflow/sdk-build-get-events"; +import { BlockCursor } from "../models/block-cursor"; interface EventDetails { blockHeight: number; @@ -38,27 +39,33 @@ abstract class BaseEventHandler { while (true) { await this.sleep(this.stepTimeMs); - // grab latest block + try { // calculate fromBlock, toBlock - latestBlockHeight = await this.flowService.getLatestBlockHeight(); - fromBlock = blockCursor.current_block_height; - toBlock = blockCursor.current_block_height + this.stepSize; - if (toBlock > latestBlockHeight.height) { - toBlock = latestBlockHeight.height; + ({ fromBlock, toBlock } = await this.getBlockRange(blockCursor)); + } catch (e) { + console.warn("error retrieving block range"); + continue; } if (fromBlock === toBlock) { return; } - console.log( - `fromBlock=${fromBlock} toBlock=${toBlock} latestBlock=${latestBlockHeight.height}` - ); - // do our processing - const getEventsResult = await send([ + let getEventsResult; + + try { + getEventsResult = await send([ getEvents(this.eventName, fromBlock, toBlock), ]); + } catch (e) { + console.error( + `error retrieving events for block range fromBlock=${fromBlock} toBlock=${toBlock}`, + e + ); + continue; + } + const eventList = await fcl.decode(getEventsResult); for (let i = 0; i < eventList.length; i++) { @@ -68,11 +75,18 @@ abstract class BaseEventHandler { "payload=", eventList[i].data ); - await this.onEvent( - { blockHeight: getEventsResult.events[i].blockHeight }, - eventList[i].data + const blockHeight = getEventsResult.events[i].blockHeight; + try { + await this.onEvent({ blockHeight }, eventList[i].data); + } catch (e) { + // If we get an error, we're just continuing the loop for now, but they in a production graded app they should + // be handled accordingly + console.error( + `error processing event block_height=${blockHeight}`, + e ); } + } // update cursor blockCursor = await this.blockCursorService.updateBlockCursorById( @@ -84,6 +98,19 @@ abstract class BaseEventHandler { abstract onEvent(details: EventDetails, payload: any): Promise<void>; + private async getBlockRange(currentBlockCursor: BlockCursor) { + const latestBlockHeight = await this.flowService.getLatestBlockHeight(); + const fromBlock = currentBlockCursor.current_block_height; + let toBlock = currentBlockCursor.current_block_height + this.stepSize; + if (toBlock > latestBlockHeight.height) { + toBlock = latestBlockHeight.height; + } + console.log( + `fromBlock=${fromBlock} toBlock=${toBlock} latestBlock=${latestBlockHeight.height}` + ); + return { fromBlock, toBlock }; + } + private sleep(ms = 5000) { return new Promise((resolve, reject) => setTimeout(resolve, ms)); }
0
diff --git a/userscript.user.js b/userscript.user.js @@ -25935,7 +25935,9 @@ var $$IMU_EXPORT$$; // http://a3.mzstatic.com/us/r30/Music5/v4/2e/0d/6d/2e0d6d8f-bd38-9240-b150-0e989f00374e/cover170x170.jpeg // http://a4.mzstatic.com/us/r30/Music62/v4/fe/61/54/fe6154f6-b064-d788-d114-4b544def3d30/cover1400x1400.jpeg // add -999 to always set the quality to the max value (https://github.com/qsniyg/maxurl/issues/164) - obj = {}; + obj = { + can_head: false // GET can return 502, but HEAD is ok + }; match = src.match(/\/([-0-9a-f]{20,}(?:_[^/]+)?)\/+source\/+[^/]+(?:[?#].*)?$/); if (!match) @@ -26010,15 +26012,19 @@ var $$IMU_EXPORT$$; return src.replace(/\/[^/.]*(\.[^/.]*)$/, "/full$1"); } - if (domain === "pics.vampirefreaks.com") { + if (false && domain === "pics.vampirefreaks.com") { + // ip not found, vampirefreaks.com uses shopify now // https://pics.vampirefreaks.com/S/Sn/Sno/SnowWhitePoisonApple/52205231_s.jpg // https://pics.vampirefreaks.com/S/Sn/Sno/SnowWhitePoisonApple/52205231.jpg return src.replace(/(\/[0-9]+)_s(\.[^/.]+)(?:[?#].*)?$/, "$1$2"); } - // https://geo-media.beatport.com/image_size/250x250/e6997bab-e115-41b2-acab-3cae7bcf3615.jpg if (domain === "geo-media.beatport.com") { - return src.replace(/\/image_size\/[0-9]*x[0-9]*\//, "/image_size/0x0/"); + // https://geo-media.beatport.com/image_size/250x250/e6997bab-e115-41b2-acab-3cae7bcf3615.jpg + return { + url: src.replace(/\/image_size\/+[0-9]*x[0-9]*\//, "/image_size/0x0/"), + can_head: false // 400 + } } if (domain_nosub === "tumblr.com" &&
1
diff --git a/test/red/api/editor/locales_spec.js b/test/red/api/editor/locales_spec.js @@ -71,49 +71,49 @@ describe("api/editor/locales", function() { }); }); - describe('get all node resource catalogs',function() { - var app; - before(function() { - // bit of a mess of internal workings - sinon.stub(i18n,'catalog',function(namespace, lang) { - return { - "node-red": "should not return", - "test-module-a-id": "test-module-a-catalog", - "test-module-b-id": "test-module-b-catalog", - "test-module-c-id": "test-module-c-catalog" - }[namespace] - }); - locales.init({ - nodes: { - getNodeList: function(opts) { - return Promise.resolve([ - {module:"node-red",id:"node-red-id"}, - {module:"test-module-a",id:"test-module-a-id"}, - {module:"test-module-b",id:"test-module-b-id"} - ]); - } - } - }); - app = express(); - app.get("/locales/nodes",locales.getAllNodes); - }); - after(function() { - i18n.catalog.restore(); - }) - it('returns with the node catalogs', function(done) { - request(app) - .get("/locales/nodes") - .expect(200) - .end(function(err,res) { - if (err) { - return done(err); - } - res.body.should.eql({ - 'test-module-a-id': 'test-module-a-catalog', - 'test-module-b-id': 'test-module-b-catalog' - }); - done(); - }); - }); - }); + // describe('get all node resource catalogs',function() { + // var app; + // before(function() { + // // bit of a mess of internal workings + // sinon.stub(i18n,'catalog',function(namespace, lang) { + // return { + // "node-red": "should not return", + // "test-module-a-id": "test-module-a-catalog", + // "test-module-b-id": "test-module-b-catalog", + // "test-module-c-id": "test-module-c-catalog" + // }[namespace] + // }); + // locales.init({ + // nodes: { + // getNodeList: function(opts) { + // return Promise.resolve([ + // {module:"node-red",id:"node-red-id"}, + // {module:"test-module-a",id:"test-module-a-id"}, + // {module:"test-module-b",id:"test-module-b-id"} + // ]); + // } + // } + // }); + // app = express(); + // app.get("/locales/nodes",locales.getAllNodes); + // }); + // after(function() { + // i18n.catalog.restore(); + // }) + // it('returns with the node catalogs', function(done) { + // request(app) + // .get("/locales/nodes") + // .expect(200) + // .end(function(err,res) { + // if (err) { + // return done(err); + // } + // res.body.should.eql({ + // 'test-module-a-id': 'test-module-a-catalog', + // 'test-module-b-id': 'test-module-b-catalog' + // }); + // done(); + // }); + // }); + // }); });
2
diff --git a/src/util.js b/src/util.js @@ -702,7 +702,7 @@ var _ = $.extend(Mavo, { str.trim().match(/(?:\\[,;]|[^,;])+/g)?.forEach(option => { if (option) { option = option.trim().replace(/\\([,;])/g, "$1"); - var pair = option.match(/^\s*((?:\\:|[^:])+?)\s*:\s*(.+)$/); + var pair = option.match(/^\s*((?:\\:|[^:])*?)\s*:\s*(.+)$/); let key, value; if (pair) {
11
diff --git a/tests/beaker_compat_test.py b/tests/beaker_compat_test.py @@ -16,7 +16,7 @@ def _test_cookie(filename, header, uid, cases): from sirepo import sr_unit def _before_request(fc): - target = sr_unit.server.cfg.db_dir.join( + target = sr_unit.server.app.sirepo_db_dir.join( 'beaker', 'container_file', filename[0:1], filename[0:2], filename) pkio.mkdir_parent_only(target) shutil.copy(str(pkunit.data_dir().join(filename)), str(target))
4
diff --git a/less/gameboard/right-pane.less b/less/gameboard/right-pane.less position: absolute; display: flex; justify-content: space-between; - align-items: end; + align-items: flex-end; height: 100%; flex-direction: column; min-width: 312px; justify-content: end; align-items: center; padding: 5px; + margin: 0; + top: 0; .btn { position: relative;
5
diff --git a/articles/connections/database/password-options.md b/articles/connections/database/password-options.md @@ -46,3 +46,41 @@ Enabling this option will force a user that is setting their password to not set * The first part of the user's email will also be checked - `firstpart`@example.com For example, if the user's name is "John", including "John" in the user's password `John1234` would not be allowed, if this option is enabled. + +## API Access + +Password options are associated with a Database connection so these values can be accessed with the [Connections endpoints of the Management API](/api/management/v2#!/Connections). The password related fields are stored in `options` of the connection. These fields are not required because these fields are not used for non-database connections and if they are not enabled for a connection they may not appear. + +For example here is what a MySQL database connection may look like after setting a password policy: + +`` +{ + "id": "con_9dKKcib71UMRiHHW", + "options": { + "password_history": { + "enable": true, + "size": 5 + }, + "password_dictionary": { + "enable": true, + "dictionary": [ // If using a custom dictionary, the entries will appear here + "entry1", + "entry2" + ] + }, + "password_no_personal_info": { + "enable": true + }, + "passwordPolicy": "fair" + }, + "strategy": "auth0", + "name": "MySQL", + "enabled_clients": [ + "smTzlgPEdqGV0i070t6kPhmG98787987", + "ztIyxRuiK7Pr2VTzEGvRqxfuh7DgePbF" + ] +} +`` + +If you are [creating a connection](/api/management/v2#!/Connections/post_connections) or [updating an existing connection](/api/management/v2#!/Connections/patch_connections_by_id) using the Management API you can update the password policy for the connection using these fields. +
0
diff --git a/site/jms-client.md b/site/jms-client.md @@ -204,7 +204,7 @@ The following table lists all of the attributes/properties that are available. | `channelsQos` | No | [QoS setting](https://www.rabbitmq.com/consumer-prefetch.html) for channels created by the connection factory. Default is -1 (no QoS). | | `terminationTimeout` | No | The time in milliseconds a `Connection#close()` should wait for threads/tasks/listeners to complete. Default is 15,000 ms. | | `declareReplyToDestination` | No | Whether `replyTo` destination for consumed messages should be declared. Default is true. | -| `autoJmsTypeHeaderForTextMessages` | No | When set to `true`, the AMQP `JMSType` header will be set automatically to `"TextMessage"` for `TextMessage`s published to AMQP-backed `Destination`s. Default is false. | +| `keepTextMessageType` | No | When set to `true`, the AMQP `JMSType` header will be set automatically to `"TextMessage"` for `TextMessage`s published to AMQP-backed `Destination`s. Default is false. | ## <a id="destination-interoperability" class="anchor" href="#destination-interoperability">JMS and AMQP 0-9-1 Destination Interoperability</a>
10
diff --git a/src/components/Control.jsx b/src/components/Control.jsx @@ -9,7 +9,7 @@ const ammoTypes = [...new Set(ammoData.data.map((ammoData) => { function Control(props) { const [connectionText, setConnectionText] = useState('Connect'); - const [connectID, setConnectID] = useState(); + const [connectID, setConnectID] = useState(props.sessionID); const inputRef = useRef(null); const typeRefs = {
12
diff --git a/src/graphql/__tests__/setViewed.js b/src/graphql/__tests__/setViewed.js -jest.mock("../lineClient"); +jest.mock('../lineClient'); -import Client from "src/database/mongoClient"; -import UserArticleLink from "src/database/models/userArticleLink"; -import MockDate from "mockdate"; -import { gql } from "../testUtils"; +import Client from 'src/database/mongoClient'; +import UserArticleLink from 'src/database/models/userArticleLink'; +import MockDate from 'mockdate'; +import { gql } from '../testUtils'; -it("context rejects anonymous users", async () => { +it('context rejects anonymous users', async () => { const result = await gql` mutation($articleId: String!) { setViewed(articleId: $articleId) { @@ -13,7 +13,7 @@ it("context rejects anonymous users", async () => { } } `({ - articleId: "foo" + articleId: 'foo', }); expect(result).toMatchInlineSnapshot(` Object { @@ -27,7 +27,7 @@ it("context rejects anonymous users", async () => { `); }); -describe("finds", () => { +describe('finds', () => { beforeAll(async () => { MockDate.set(612921600000); if (await UserArticleLink.collectionExists()) { @@ -40,7 +40,7 @@ describe("finds", () => { await (await Client.getInstance()).close(); }); - it("creates user article link with current date", () => + it('creates user article link with current date', () => expect( gql` mutation($articleId: String!) { @@ -49,7 +49,7 @@ describe("finds", () => { lastViewedAt } } - `({ articleId: "foo" }, { userId: "user1" }) + `({ articleId: 'foo' }, { userId: 'user1' }) ).resolves.toMatchInlineSnapshot(` Object { "data": Object {
1
diff --git a/src/Appwrite/Usage/Calculators/TimeSeries.php b/src/Appwrite/Usage/Calculators/TimeSeries.php @@ -491,7 +491,9 @@ class TimeSeries extends Calculator } $value = (!empty($point['value'])) ? $point['value'] : 0; - + if(empty($point['projectInternalId'] ?? null)) { + return; + } $this->createOrUpdateMetric( $point['projectInternalId'], $point['time'],
8
diff --git a/userscript.user.js b/userscript.user.js @@ -25630,8 +25630,6 @@ var $$IMU_EXPORT$$; (domain_nowww === "geeksofdoom.com" && string_indexof(src, "/img/") >= 0) || // http://newsimages.fashionmodeldirectory.com/content/2018/06/july-cover2-392x400.jpg domain === "newsimages.fashionmodeldirectory.com" || - // https://akm-img-a-in.tosshub.com/indiatoday/images/story/201804/fLIPKART_FB-88x50.jpeg?7aUorT.AyYkITen3_QwmsIcFMHwg032p - domain === "akm-img-a-in.tosshub.com" || // http://img.blogtamsu.vn/2015/12/tae-yeon-hanh-trinh-vit-hoa-thien-nga-blogtamsu291-600x900.jpg domain === "img.blogtamsu.vn" || // https://cdn03.starsdaily.net/starsdaily/uploads/2016/11/%E1%9F%A5%E1%9F%A5-683x1024.jpg @@ -89615,6 +89613,21 @@ var $$IMU_EXPORT$$; return src.replace(/(\/(?:galleries|photos)\/+(?:[0-9]\/+){2}(?:[0-9]+\/+){1,2})[0-9]+-[0-9]+_([0-9a-f]{20,}\.)/, "$1pic_$2"); } + if (domain === "akm-img-a-in.tosshub.com") { + // https://akm-img-a-in.tosshub.com/indiatoday/images/story/201804/fLIPKART_FB-88x50.jpeg?7aUorT.AyYkITen3_QwmsIcFMHwg032p + // https://akm-img-a-in.tosshub.com/indiatoday/images/story/201804/fLIPKART_FB.jpeg + // thanks to fedesk on discord: https://www.aajtak.in/ + // https://akm-img-a-in.tosshub.com/aajtak/images/story/202102/union_budget_2021_-sixteen_nine.jpg?size=100:58 + // https://akm-img-a-in.tosshub.com/aajtak/images/story/202102/union_budget_2021_-sixteen_nine.jpg + // https://akm-img-a-in.tosshub.com/aajtak/images/story/202102/union_budget_2021_.jpg + return { + url: src + .replace(/(\/images\/+story\/+[0-9]{6}\/+[^/]+)-(?:[0-9]+x[0-9]+|sixteen_nine)(\.[^/.?#]+)$/, "$1$2") + .replace(/(\/images\/+story\/[^?#]+)(?:[?#].*)?$/, "$1"), + can_head: false + }; + } +
7
diff --git a/README.md b/README.md Visit [gosparta.io](https://gosparta.io) for complete documentation. +## Version Info + +This is the breaking `v2` version of Sparta. The previous version is available at at the `/v1` branch. + ## Overview Sparta takes a set of _golang_ functions and automatically provisions them in @@ -107,6 +111,7 @@ test runs the Sparta tests testCover runs the test and opens up the resulting report travisBuild is the task to build in the context of a Travis CI pipeline ``` + Confirm tests are passing on `HEAD` by first running `mage -v test`. As you periodically make local changes, run `mage -v test` to confirm backward compatibility.
0
diff --git a/userscript.user.js b/userscript.user.js @@ -15692,10 +15692,22 @@ var $$IMU_EXPORT$$; // http://ilarge.lisimg.com/image/6915143/0full.jpg // http://iv1.lisimg.com/image/2916057/516full-rachel-riley.jpg // http://ilarge.lisimg.com/image/2916057/0full.jpg - return src + obj = { + url: src + }; + + id = src.match(/^[a-z]+:\/\/[^/]+\/+(?:image\/+)?([0-9]+)\/+[0-9]+/); + if (id) { + id = id[1]; + obj.extra = {page: "https://www.listal.com/viewimage/" + id}; + } + + obj.url = src .replace(/:\/\/[^\./]*\.lisimg\.com\//, "://ilarge.lisimg.com/") .replace(/\/([^/]*)\.jpg$/, "/99999999999full.jpg"); //.replace(/\/([^/]*)\.jpg$/, "/0full.jpg"); + + return obj; } if (domain_nosub === "lesinrocks.com") {
7
diff --git a/runtime.js b/runtime.js @@ -356,7 +356,8 @@ const _makeAppUrl = appId => { }; const _loadScript = async file => { const appId = ++appIds; - const mesh = makeIconMesh(); + const mesh = new THREE.Object3D(); // makeIconMesh(); + mesh.geometry = new THREE.BufferGeometry(); mesh.geometry.boundingBox = new THREE.Box3( new THREE.Vector3(-1, -1/2, -0.1), new THREE.Vector3(1, 1/2, 0.1),
2
diff --git a/scenes/shadows.scn b/scenes/shadows.scn "start_url": "https://webaverse.github.io/mirror/", "dynamic": true }, + { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ], + "components": [ + { + "key": "line", + "value": [ + [92.5, 0, -33], + [19.5, -4, 59.5] + ] + }, + { + "key": "bounds", + "value": [ + [19, -4.5, 57], + [20, 0, 58] + ] + } + ], + "start_url": "../metaverse_modules/quest/", + "dynamic": true + }, { "position": [ -13,
0
diff --git a/token-metadata/0x420Ab548B18911717Ed7C4CCBF46371EA758458C/metadata.json b/token-metadata/0x420Ab548B18911717Ed7C4CCBF46371EA758458C/metadata.json "symbol": "NOODLE", "address": "0x420Ab548B18911717Ed7C4CCBF46371EA758458C", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/spec/requests/api/imports_spec.rb b/spec/requests/api/imports_spec.rb @@ -146,10 +146,9 @@ describe "Imports API" do table.should have_required_indexes_and_triggers table.should have_no_invalid_the_geom table.geometry_types.should_not be_blank - end - DataImport.count.should == 1 - Map.count.should == 1 + table.map.should be + end end it 'raises an error if the user attempts to import tables when being over quota' do
2
diff --git a/test/useTranslation.ready.spec.js b/test/useTranslation.ready.spec.js @@ -93,6 +93,10 @@ describe('useTranslation', () => { it('should ignore suspense if set useSuspense to false', () => { const instance2 = { ...instance }; instance2.options.react = { useSuspense: false }; + instance2.services.backendConnector = { + backend: {}, + state: { 'en|notLoadedNS': 1, 'fr|notLoadedNS': 1 }, + }; const wrapper = mount(<TestComponentNotReady i18n={instance2} />, {}); // console.log(wrapper.debug()); expect(wrapper.contains(<div>keyOne</div>)).toBe(true);
1
diff --git a/sirepo/package_data/static/js/ml.js b/sirepo/package_data/static/js/ml.js @@ -1095,7 +1095,7 @@ SIREPO.app.directive('columnSelector', function(appState, mlService, panelState, const w = $('div[data-column-selector] .sr-input-warning').text('').hide(); const msg = 'Select at least 2 columns'; b.setCustomValidity(''); - if (! $scope.isAnalysis) { + if (! $scope.isAnalysis || ! $scope.model.selected) { return; } let nv = $scope.model.selected.filter(function (s, sIdx) {
8
diff --git a/src/lib/notifications/backgroundFetch.native.js b/src/lib/notifications/backgroundFetch.native.js @@ -5,6 +5,7 @@ import { useCallback, useEffect } from 'react' import logger from '../logger/js-logger' import { useUserStorage, useWallet } from '../wallet/GoodWalletProvider' import { fireEvent, NOTIFICATION_ERROR, NOTIFICATION_SENT } from '../analytics/analytics' +import { noopAsync } from '../utils/async' // eslint-disable-next-line import/named import { dailyClaimNotification, NotificationsCategories } from './backgroundActions' @@ -23,6 +24,8 @@ const options = { periodic: true, } +const DEFAULT_TASK = 'BackgroundFetch' +const defaultTaskProcessor = noopAsync const log = logger.child({ from: 'backgroundFetch' }) const onTimeout = taskId => { @@ -65,6 +68,8 @@ export const useBackgroundFetch = (auto = false) => { // eslint-disable-next-line require-await async taskId => { switch (taskId) { + case DEFAULT_TASK: + return defaultTaskProcessor() case NotificationsCategories.CLAIM_NOTIFICATION: return dailyClaimNotification(userStorage, goodWallet) default:
0
diff --git a/public/assets/images/logos/helm-v3.svg b/public/assets/images/logos/helm-v3.svg <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 39.90942 34.5338669" style="enable-background:new 0 0 39.90942 34.5338669;" xml:space="preserve"> <style type="text/css"> - .st0{fill:#FFFFFF;} + .st0{fill:transparent;} .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#00B1F1;} .st2{fill:#00B1F1;} .st3{fill:#3DD8D4;}
2
diff --git a/packages/node_modules/@node-red/nodes/core/logic/10-switch.html b/packages/node_modules/@node-red/nodes/core/logic/10-switch.html resizeRule(container); var type = selectField.val(); - try { + if (valueField){ valueField.typedInput('hide'); - } catch(e){} - try { + } + if (expValueField){ expValueField.typedInput('hide'); - } catch(e){} - try { + } + if (numValueField){ numValueField.typedInput('hide'); - } catch(e){} - try { + } + if (typeValueField){ typeValueField.typedInput('hide'); - } catch(e){} - try { + } + if (btwnValue2Field){ btwnValue2Field.typedInput('hide'); - } catch(e){} + } if ((type === "btwn") || (type === "index")) { if (!btwnValueField){
2
diff --git a/src/components/button/templates/config.js b/src/components/button/templates/config.js @@ -87,7 +87,7 @@ export const BUTTON_CONFIG : ButtonConfig = { maximumVerticalSize: BUTTON_SIZE.LARGE, minHorizontalButtons: 1, - minVerticalButtons: 2, + minVerticalButtons: 1, maxHorizontalButtons: 2, maxVerticalButtons: 4,
11
diff --git a/spec/requests/application_controller_spec.rb b/spec/requests/application_controller_spec.rb @@ -50,7 +50,7 @@ describe ApplicationController do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.email) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'does not load the dashboard for an unknown user email' do @@ -73,7 +73,7 @@ describe ApplicationController do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.username) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'does not load the dashboard for an unknown user username' do @@ -96,7 +96,7 @@ describe ApplicationController do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.id) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'does not load the dashboard for an unknown user id' do @@ -119,21 +119,21 @@ describe ApplicationController do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.id) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'loads the dashboard for a known user username' do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.username) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'loads the dashboard for a known user email' do stub_load_common_data get dashboard_url, {}, authentication_headers(@user.email) response.status.should == 200 - response.body.should_not include("Login to Carto") + response.body.should_not include("Log in") end it 'does not load the dashboard for an unknown user id' do
10
diff --git a/docs/docs/00.md b/docs/docs/00.md @@ -60,4 +60,8 @@ usersList: name: CircleHD img: https://www.circlehd.com/apple-touch-icon.png url: https://www.circlehd.com/ + - germantech-java: + name: GermanTech Java Jobs + img: https://static.germantechjobs.de/pictures/germantech-java-jobs.svg + url: https://germantechjobs.de/jobs/Java/All ---
0
diff --git a/SearchbarNavImprovements.user.js b/SearchbarNavImprovements.user.js // @description Searchbar & Nav Improvements. Advanced search helper when search box is focused. Bookmark any search for reuse (stored locally, per-site). // @homepage https://github.com/samliew/SO-mod-userscripts // @author @samliew -// @version 4.2 +// @version 4.2.1 // // @include https://*stackoverflow.com/* // @include https://*serverfault.com/* @@ -1083,9 +1083,6 @@ ${isQuestion ? 'Question' : 'Answer'} by ${postuserHtml}${postismod ? modflair : <div class="module sidebar-linked" id="qtoc"> <h4 id="h-linked">Answers</h4> <div class="linked">${answerlist}</div> - <div class="small-pagination"> - pagination - </div> </div>`); // Accepted answer first
2
diff --git a/token-metadata/0x44E2ca91ceA1147f1B503e669f06CD11FB0C5490/metadata.json b/token-metadata/0x44E2ca91ceA1147f1B503e669f06CD11FB0C5490/metadata.json "symbol": "XCM", "address": "0x44E2ca91ceA1147f1B503e669f06CD11FB0C5490", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/.travis.yml b/.travis.yml @@ -37,6 +37,7 @@ install: before_script: - export TSLINT_FLAGS='-c ./tslint_ci.json' - export LONG_RUNNING_ENABLED=1 +- export ETHEREUM_ENABLED=1 - ./packages/iov-ethereum/startGanache.sh # Make variables and function from Travis available in our script @@ -60,7 +61,7 @@ before_script: fi script: -- echo "use tendermint?" ${TENDERMINT_ENABLED} "use bov?" ${BOV_ENABLED} +- echo "use tendermint?" ${TENDERMINT_ENABLED} "use bov?" ${BOV_ENABLED} "use ethereum?" ${ETHEREUM_ENABLED} - ./scripts/travis.sh after_script:
12
diff --git a/core/connection.js b/core/connection.js @@ -479,59 +479,6 @@ Blockly.Connection.connectReciprocally_ = function(first, second) { second.targetConnection = first; }; -/** - * Adds color if this is a type varible connection - * Sorin - */ -Blockly.Connection.prototype.addColor = function() { - if (this.coloredPath_) { - goog.dom.removeNode(this.coloredPath_); - delete this.coloredPath_; - } - if (!(this.typeExpr)) { - return; - } - if (!(this.typeExpr.isTypeVar())) { - return; - } - var steps; - if (this.type == Blockly.INPUT_VALUE || this.type == Blockly.OUTPUT_VALUE) { - // Sorin - steps = 'm 0,0 ' + this.typeExpr.getDownPath() + ' v 5'; - //steps = 'm 0,0 l -8,10 8,10 v 5'; - // var tabWidth = Blockly.RTL ? -Blockly.BlockSvg.TAB_WIDTH : - // Blockly.BlockSvg.TAB_WIDTH; - // steps = 'm 0,0 v 5 c 0,10 ' + -tabWidth + ',-8 ' + -tabWidth + ',7.5 s ' + - // tabWidth + ',-2.5 ' + tabWidth + ',7.5 v 5'; - } else { - if (Blockly.RTL) { - steps = 'm 20,0 h -5 l -6,4 -3,0 -6,-4 h -5'; - } else { - steps = 'm -20,0 h 5 l 6,4 3,0 6,-4 h 5'; - } - } - var xy = this.sourceBlock_.getRelativeToSurfaceXY(); - var x = this.x_ - xy.x; - var y = this.y_ - xy.y; - - this.coloredPath_ = Blockly.utils.createSvgElement( - 'path', { - 'class': 'blocklyTypeVarPath', - stroke: this.typeExpr.color, - d: steps, - transform: 'translate(' + x + ', ' + y + ')' - }, - this.sourceBlock_.getSvgRoot()); - - // this.coloredPath_ = Blockly.utils.createSvgElement('path', - // {class: 'blocklyHighlightedConnectionPath' + - // this.typeExpr.color; - // stroke: this.typeExpr.color; - // d: steps, - // transform: 'translate(' + x + ', ' + y + ')'}, - // this.sourceBlock_.getSvgRoot()); -}; - /** * Does the given block have one and only one connection point that will accept * an orphaned block?
2
diff --git a/src/Table.js b/src/Table.js @@ -7,22 +7,6 @@ import Model from './Model.js' const IV_LENGTH = 16 -/* - Item schema to create uniqueness records. Implements unique fields. - */ -const UniqueSchema = { - pk: { value: '_unique:${pk}' }, - sk: { value: '_unique:' }, -} - -/* - Schema for the low level API - */ -const LowLevelSchema = { - pk: { }, - sk: { }, -} - /* Represent a single DynamoDB table */ @@ -75,13 +59,28 @@ export default class Table { // Context properties always applied to create/updates this.context = {} - // Model for uunique properties and for genric access - this.unique = new Model(this, '_Unique', {fields: UniqueSchema, timestamps: false}) - this.generic = new Model(this, '_Multi', {fields: LowLevelSchema, timestamps: false}) - if (schema) { this.prepSchema(schema) } + /* + Model for unique attributes and for genric low-level API access + */ + let primary = this.indexes.primary + this.unique = new Model(this, '_Unique', { + fields: { + [primary.hash]: { value: '_unique:${' + primary.hash + '}'}, + [primary.sort]: { value: '_unique:'}, + }, + timestamps: false + }) + this.generic = new Model(this, '_Generic', { + fields: { + [primary.hash]: {}, + [primary.sort]: {}, + }, + timestamps: false + }) + if (crypto) { this.initCrypto(crypto) this.crypto = Object.assign(crypto || {})
1
diff --git a/token-metadata/0x26B3038a7Fc10b36c426846a9086Ef87328dA702/metadata.json b/token-metadata/0x26B3038a7Fc10b36c426846a9086Ef87328dA702/metadata.json "symbol": "YFT", "address": "0x26B3038a7Fc10b36c426846a9086Ef87328dA702", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/page/home/report/ReportActionCompose.js b/src/page/home/report/ReportActionCompose.js @@ -32,10 +32,28 @@ class ReportActionCompose extends React.Component { constructor(props) { super(props); - this.updateComment = _.debounce(this.updateComment.bind(this), 1000, false); + this.updateComment = this.updateComment.bind(this); + this.debouncedSaveReportComment = _.debounce(this.debouncedSaveReportComment.bind(this), 1000, false); this.submitForm = this.submitForm.bind(this); this.triggerSubmitShortcut = this.triggerSubmitShortcut.bind(this); this.submitForm = this.submitForm.bind(this); + this.comment = ''; + } + + componentDidUpdate(prevProps) { + if (this.props.comment && prevProps.comment === '' && prevProps.comment !== this.props.comment) { + this.comment = this.props.comment; + } + } + + /** + * Save our report comment in Ion. We debounce this method in the constructor so that it's not called too often + * to update Ion and re-render this component. + * + * @param {string} comment + */ + debouncedSaveReportComment(comment) { + saveReportComment(this.props.reportID, comment || ''); } /** @@ -44,7 +62,8 @@ class ReportActionCompose extends React.Component { * @param {string} newComment */ updateComment(newComment) { - saveReportComment(this.props.reportID, newComment || ''); + this.comment = newComment; + this.debouncedSaveReportComment(newComment); } /** @@ -72,7 +91,7 @@ class ReportActionCompose extends React.Component { // Let's get the data directly from textInput because saving the data in Ion report comment is asynchronous // so if we refer this.props.comment here we won't get the most recent value if the user types fast. - const trimmedComment = this.textInput.value.trim(); + const trimmedComment = this.comment.trim(); // Don't submit empty comments // @TODO show an error in the UI
4
diff --git a/test/browser/components.js b/test/browser/components.js @@ -273,7 +273,7 @@ describe('Components', () => { sideEffect.resetHistory(); Comp.prototype.componentWillMount.resetHistory(); bad.setState({ alt: true }); - bad.forceUpdate(); + rerender(); expect(scratch.textContent, 'new component without key re-rendered').to.equal('D'); expect(Comp.prototype.componentWillMount).to.not.have.been.called; expect(sideEffect).to.not.have.been.called;
14
diff --git a/scripts/test.js b/scripts/test.js @@ -23,4 +23,8 @@ if (!process.env.CI && argv.indexOf('--coverage') < 0) { argv.push('--watch') } +// Optimize for CI +// https://github.com/facebook/jest/issues/3855#issuecomment-309521581 +argv.push('--maxWorkers=4') + jest.run(argv)
7
diff --git a/src/models/log.js b/src/models/log.js @@ -111,10 +111,11 @@ Log.getOldLogs = function(api, app_id, before, after, search) { if(search) { query.filter = search; } + const url = Log.getHttpLogUrl(app_id); var s_res = Bacon.fromNodeCallback(request, { - agent: new (require("https").Agent)({ keepAlive: true }), - url: Log.getHttpLogUrl(app_id), + agent: url.startsWith("https://") ? new (require("https").Agent)({ keepAlive: true }) : undefined, + url, qs: query, headers: { authorization: api.session.getAuthorization('GET', conf.API_HOST + '/logs/' + app_id, {}),
11
diff --git a/test/jasmine/tests/lib_increment_test.js b/test/jasmine/tests/lib_increment_test.js @@ -768,4 +768,12 @@ describe('increment', function() { examine({ start: 12345, step: 0.01, expected: [12345.01, 12345.02, 12345.03] }); examine({ start: 12345, step: 0.1, expected: [12345.1, 12345.2, 12345.3] }); }); + + it('should not round very big numbers in certain cases', function() { + examine({ start: 1e+21, step: 1e+6, expected: [ + 1.000000000000001e+21, + 1.0000000000000021e+21, + 1.0000000000000031e+21 + ]}); + }); });
0
diff --git a/docs/src/layouts/Layout.vue b/docs/src/layouts/Layout.vue @@ -245,6 +245,9 @@ export default { ) { evt.preventDefault() this.search = '' + if (!this.leftDrawerState) { + this.leftDrawerState = true + } setTimeout(() => { this.$refs.docAlgolia.focus() })
1
diff --git a/updates/2017-04-28.yml b/updates/2017-04-28.yml @@ -7,4 +7,4 @@ added: - api-auth - api description: | - A [new tutorial](/api-auth/tutorials/represent-multiple-apis) was added showing how to represent multiple APIs using a single Auth0 API. + A [new tutorial](https://auth0.com/docs/api-auth/tutorials/represent-multiple-apis) was added showing how to represent multiple APIs using a single Auth0 API.
0
diff --git a/app/components/PredictionMarkets/PredictionMarketsOverviewTable.jsx b/app/components/PredictionMarkets/PredictionMarketsOverviewTable.jsx @@ -41,7 +41,7 @@ class PredictionMarketsOverviewTable extends Component { this.props.currentAccount.get("id") === id; return [ { - title: "#", + title: counterpart.translate("account.asset"), dataIndex: "asset_id", align: "left", defaultSortOrder: "ascend",
10
diff --git a/common/lib/util/eventemitter.ts b/common/lib/util/eventemitter.ts @@ -133,7 +133,7 @@ class EventEmitter { const [firstArg, secondArg] = args; let listener: Function | null = null; let event: unknown = null; - if(args.length == 1) { + if(args.length === 1 || !secondArg) { if (typeof firstArg === 'function') { /* we take this to be the listener and treat the event as "any" .. */ listener = firstArg;
1
diff --git a/lib/connection/process/remote.js b/lib/connection/process/remote.js @@ -61,10 +61,12 @@ export function withRemoteConfig (f) { } function maybe_add_agent (conf) { - if (conf && !conf.agent && atom.config.get('julia-client.remoteOptions.agentAuth')) { + if (conf && atom.config.get('julia-client.remoteOptions.agentAuth')) { let sshsock = ssh_socket() - if (sshsock) { + if (!conf.agent && sshsock) { conf.agent = sshsock + } + if (!conf.agentForward) { conf.agentForward = atom.config.get('julia-client.remoteOptions.forwardAgent') } }
11
diff --git a/index.d.ts b/index.d.ts @@ -261,8 +261,8 @@ export class Axios { } export interface AxiosInstance extends Axios { - (config: AxiosRequestConfig): AxiosPromise; - (url: string, config?: AxiosRequestConfig): AxiosPromise; + <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): AxiosPromise<R>; + <T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): AxiosPromise<R>; defaults: Omit<AxiosDefaults, 'headers'> & { headers: HeadersDefaults & {
11
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -39,6 +39,7 @@ import {getHeight} from './avatars/util.mjs'; import performanceTracker from './performance-tracker.js'; import debug from './debug.js'; import * as sceneCruncher from './scene-cruncher.js'; +import * as scenePreviewer from './scene-previewer.js'; // const localVector = new THREE.Vector3(); // const localVector2 = new THREE.Vector3(); @@ -404,6 +405,9 @@ metaversefile.setApi({ useSceneCruncher() { return sceneCruncher; }, + useScenePreviewer() { + return scenePreviewer; + }, usePostProcessing() { return postProcessing; },
0
diff --git a/editor.js b/editor.js @@ -2888,6 +2888,12 @@ sacks3.vrm`, .setFromAxisAngle(new THREE.Vector3(0, 1, 0), -Math.PI/2), contentId: 'https://avaer.github.io/sakura/manifest.json', }, + { + position: new THREE.Vector3(1, 3, -12), + quaternion: new THREE.Quaternion() + /* .setFromAxisAngle(new THREE.Vector3(0, 1, 0), -Math.PI/2) */, + contentId: 'https://webaverse.com/rainbow-dash.gif', + }, /* { position: new THREE.Vector3(-3, 1.5, -1), quaternion: new THREE.Quaternion(),
0
diff --git a/src/plots/plots.js b/src/plots/plots.js @@ -16,6 +16,7 @@ var Plotly = require('../plotly'); var Registry = require('../registry'); var Lib = require('../lib'); var Color = require('../components/color'); +var BADNUM = require('../constants/numerical').BADNUM; var plots = module.exports = {}; @@ -2013,7 +2014,7 @@ plots.doCalcdata = function(gd, traces) { // This ensures there is a calcdata item for every trace, // even if cartesian logic doesn't handle it (for things like legends). if(!Array.isArray(cd) || !cd[0]) { - cd = [{x: false, y: false}]; + cd = [{x: BADNUM, y: BADNUM}]; } // add the trace-wide properties to the first point,
14
diff --git a/framer/TextLayer.coffee b/framer/TextLayer.coffee @@ -41,7 +41,7 @@ class exports.TextLayer extends Layer _.defaults options, options.textStyle, backgroundColor: "transparent" - html: "Hello World" + text: "Hello World" color: "#888" fontSize: 40 fontWeight: 400
12
diff --git a/src/auth.ts b/src/auth.ts @@ -96,8 +96,6 @@ export async function ownerMiddleware(req, res, next) { const x_transport_token = req.headers['x-transport-token'] || req.cookies['x-transport-token'] - console.log('Transport toke:', x_transport_token) - // default assign token to x-user-token let token = x_user_token @@ -123,7 +121,7 @@ export async function ownerMiddleware(req, res, next) { const splitTransportTokenTimestamp = splitTransportToken[1] // Check if the timestamp is within the timeframe we - // chose to clear out the db of saved recent requests + // choose (1 minute here) to clear out the db of saved recent requests if ( new Date(splitTransportTokenTimestamp) < new Date(Date.now() - 1 * 60000) ) { @@ -131,15 +129,13 @@ export async function ownerMiddleware(req, res, next) { 'Content-Type': 'text/plain', }) res.end('invalid credentials') - return console.error('Too old of a request') + return } // TODO: we need to add a way to save the request and also // to check the old requests to see if they use the same x_transport_token } - console.log('Transport token decrypted:', token) - if (process.env.HOSTING_PROVIDER === 'true') { if (token) { // add owner in anyway
2
diff --git a/spec/services/carto/user_metadata_export_service_spec.rb b/spec/services/carto/user_metadata_export_service_spec.rb @@ -261,7 +261,7 @@ describe Carto::UserMetadataExportService do end end - EXCLUDED_USER_META_DATE_FIELDS = ['created_at', 'updated_at'].freeze + EXCLUDED_USER_META_DATE_FIELDS = ['created_at', 'updated_at', 'period_end_date'].freeze EXCLUDED_USER_META_ID_FIELDS = ['map_id', 'permission_id', 'active_layer_id', 'tags', 'auth_token'].freeze def compare_excluding_dates_and_ids(v1, v2) @@ -274,6 +274,7 @@ describe Carto::UserMetadataExportService do filtered1 = u1.reject { |k, _| EXCLUDED_USER_META_DATE_FIELDS.include?(k) } filtered2 = u2.reject { |k, _| EXCLUDED_USER_META_DATE_FIELDS.include?(k) } expect(filtered1).to eq filtered2 + expect(u1['period_end_date'].try(:round)).to eq(u2['period_end_date'].try(:round)) # Ignore microseconds end def expect_export_matches_user(export, user)
8
diff --git a/app/eosTokens.js b/app/eosTokens.js // Provide a list of EOS tokens that are available // -const eosTokens = ['eosio.token', 'eosadddddddd', 'eosdactokens', 'gyztomjugage']; +const eosTokens = ['eosio.token', 'eosadddddddd', 'eosdactokens', 'gyztomjugage', 'eoxeoxeoxeox']; export default eosTokens;
0
diff --git a/src/lib/core.js b/src/lib/core.js @@ -4198,11 +4198,28 @@ export default function (context, pluginCallButtons, plugins, lang, options) { core.selectComponent(nextEl.querySelector('iframe'), 'video'); } } - break; } } + if (util.isListCell(formatEl) && util.isList(rangeEl) && (util.isListCell(rangeEl.parentNode) || formatEl.previousElementSibling) && (selectionNode === formatEl || (selectionNode.nodeType === 3 && !selectionNode.nextSibling && range.collapsed && range.endOffset === selectionNode.textContent.length))) { + const next = formatEl.nextElementSibling; + if (next && util.getArrayItem(next.children, util.isList, false)) { + e.preventDefault(); + + const con = next.firstChild; + const children = next.childNodes; + let child = children[0]; + while ((child = children[0])) { + formatEl.appendChild(child); + } + + util.removeItem(next); + core.setRange(con, 0, con, 0); + } + break; + } + break; case 9: /** tab key */ e.preventDefault(); @@ -4507,7 +4524,6 @@ export default function (context, pluginCallButtons, plugins, lang, options) { core._checkComponents(); - const textKey = !ctrl && !alt && !event._nonTextKeyCode.test(keyCode); if (textKey && selectionNode.nodeType === 3 && util.zeroWidthRegExp.test(selectionNode.textContent)) { let so = range.startOffset, eo = range.endOffset;
3
diff --git a/compare/output/index_bundle.js b/compare/output/index_bundle.js @@ -4830,6 +4830,13 @@ var showScrubberRefImage = exports.showScrubberRefImage = function showScrubberR }; }; +var showScrubberDiffImage = exports.showScrubberDiffImage = function showScrubberDiffImage(value) { + return { + type: 'SHOW_SCRUBBER_DIFF_IMAGE', + value: value + }; +}; + var showScrubber = exports.showScrubber = function showScrubber(value) { return { type: 'SHOW_SCRUBBER', @@ -27337,6 +27344,8 @@ function getPosFromImgId(imgId) { return 100; case 'testImage': return 0; + case 'diffImage': + return -1; default: return 50; } @@ -27375,6 +27384,11 @@ var scrubber = function scrubber() { position: getPosFromImgId('refImage') }); + case 'SHOW_SCRUBBER_DIFF_IMAGE': + return Object.assign({}, state, { + position: getPosFromImgId('diffImage') + }); + case 'SHOW_SCRUBBER': return Object.assign({}, state, { position: getPosFromImgId() @@ -32057,6 +32071,7 @@ var ScrubberModal = function (_React$Component) { closeModal = _props.closeModal, showScrubberTestImage = _props.showScrubberTestImage, showScrubberRefImage = _props.showScrubberRefImage, + showScrubberDiffImage = _props.showScrubberDiffImage, showScrubber = _props.showScrubber; @@ -32081,10 +32096,12 @@ var ScrubberModal = function (_React$Component) { _react2.default.createElement(_ImageScrubber2.default, { testImage: testImage, refImage: refImage, + diffImage: diffImage, position: position, showButtons: diffImage && diffImage.length > 0, showScrubberTestImage: showScrubberTestImage, showScrubberRefImage: showScrubberRefImage, + showScrubberDiffImage: showScrubberDiffImage, showScrubber: showScrubber }) ) @@ -32112,6 +32129,9 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch) { showScrubberRefImage: function showScrubberRefImage(val) { dispatch((0, _actions.showScrubberRefImage)(val)); }, + showScrubberDiffImage: function showScrubberDiffImage(val) { + dispatch((0, _actions.showScrubberDiffImage)(val)); + }, showScrubber: function showScrubber(val) { dispatch((0, _actions.showScrubber)(val)); } @@ -33229,9 +33249,11 @@ var ImageScrubber = function (_React$Component) { position = _props.position, refImage = _props.refImage, testImage = _props.testImage, + diffImage = _props.diffImage, showButtons = _props.showButtons, showScrubberTestImage = _props.showScrubberTestImage, showScrubberRefImage = _props.showScrubberRefImage, + showScrubberDiffImage = _props.showScrubberDiffImage, showScrubber = _props.showScrubber; @@ -33269,7 +33291,17 @@ var ImageScrubber = function (_React$Component) { _react2.default.createElement( ScrubberViewBtn, { - selected: position !== 100 && position !== 0, + selected: position === -1, + onClick: function onClick() { + showScrubberDiffImage(); + } + }, + 'DIFF' + ), + _react2.default.createElement( + ScrubberViewBtn, + { + selected: position !== 100 && position !== 0 && position !== -1, onClick: function onClick() { showScrubber(); } @@ -33286,6 +33318,14 @@ var ImageScrubber = function (_React$Component) { display: dontUseScrubberView ? 'block' : 'none' } }), + _react2.default.createElement('img', { + className: 'diffImage', + src: diffImage, + style: { + margin: 'auto', + display: dontUseScrubberView ? 'block' : 'none' + } + }), _react2.default.createElement( 'div', { @@ -33307,7 +33347,7 @@ var ImageScrubber = function (_React$Component) { src: refImage, onError: this.handleLoadingError }), - _react2.default.createElement('img', { className: 'testImage', src: testImage }), + _react2.default.createElement('img', { className: 'testImage', src: position === -1 ? diffImage : testImage }), _react2.default.createElement(SliderBar, { className: 'slider' }) ) )
3
diff --git a/models/users.js b/models/users.js @@ -260,7 +260,7 @@ Users.attachSchema( Users.allow({ update(userId) { const user = Users.findOne(userId); - return user && Meteor.user().isAdmin; + return user; // && Meteor.user().isAdmin; // GitHub issue #2590 }, remove(userId, doc) { const adminsNumber = Users.find({ isAdmin: true }).count();
1
diff --git a/CHANGELOG.md b/CHANGELOG.md -------------------------------------------------- <a name="0.14.7"></a> -# [0.14.7](https://github.com/moleculerjs/moleculer/compare/v0.14.6...v0.14.7) (2020-05-??) +# [0.14.7](https://github.com/moleculerjs/moleculer/compare/v0.14.6...v0.14.7) (2020-05-22) ## New Discoverer module The Discoverer is a new built-in module in Moleculer framework. It's responsible for that all Moleculer nodes can discover each other and check them with heartbeats. In previous versions, it was an integrated module inside `ServiceRegistry` & `Transit` modules. In this version, the discovery logic has been extracted to a separated built-in module. It means you can replace it to other built-in implementations or a custom one. The current discovery & heartbeat logic is moved to the `Local` Discoverer.
12
diff --git a/backend/mapservice/Models/Config/WMSConfig.cs b/backend/mapservice/Models/Config/WMSConfig.cs @@ -73,7 +73,7 @@ namespace MapService.Models.Config public string searchUrl { get; set; } - public double ratio { get; set; } + public double customRatio { get; set; } public bool hidpi { get; set; } = true;
10
diff --git a/lib/views/github-tab-view.js b/lib/views/github-tab-view.js @@ -81,7 +81,9 @@ export default class GitHubTabView extends React.Component { // TODO: display a view that lets you create a repository on GitHub return ( <div className="github-GitHub-noRemotes"> - This repository does not have any remotes hosted at GitHub.com. + <div className="initialize-repo-description"> + <span>This repository does not have any remotes hosted at GitHub.com.</span> + </div> </div> ); }
4
diff --git a/includes/Modules/Analytics_4.php b/includes/Modules/Analytics_4.php @@ -471,17 +471,17 @@ final class Analytics_4 extends Module array( 'status' => 400 ) ); } - if ( ! isset( $data['containerID'] ) ) { + if ( ! isset( $data['internalContainerID'] ) ) { return new WP_Error( 'missing_required_param', /* translators: %s: Missing parameter name */ - sprintf( __( 'Request parameter is empty: %s.', 'google-site-kit' ), 'containerID' ), + sprintf( __( 'Request parameter is empty: %s.', 'google-site-kit' ), 'internalContainerID' ), array( 'status' => 400 ) ); } return $this->get_tagmanager_service()->accounts_containers_destinations->listAccountsContainersDestinations( - "accounts/{$data['accountID']}/containers/{$data['containerID']}" + "accounts/{$data['accountID']}/containers/{$data['internalContainerID']}" ); }
10
diff --git a/src/print/VectorEncoder.js b/src/print/VectorEncoder.js @@ -307,45 +307,17 @@ VectorEncoder.prototype.encodeVectorStylePoint = function (symbolizers, imageSty } } else if (imageStyle instanceof olStyleRegularShape) { /** - * Mapfish Print does not support image defined with ol.style.RegularShape. - * As a workaround, I try to map the image on a well-known image name. + * The regular shapes cannot always be translated to mapfish print shapes; use an image instead. */ - const points = /** @type {import("ol/style/RegularShape.js").default} */ (imageStyle).getPoints(); - if (points !== null) { symbolizer = /** @type {import('ngeo/print/mapfish-print-v3.js').MapFishPrintSymbolizerPoint} */ ({ type: 'point', + externalGraphic: imageStyle.getImage().toDataURL(), }); - if (points === 4) { - symbolizer.graphicName = 'square'; - } else if (points === 3) { - symbolizer.graphicName = 'triangle'; - } else if (points === 5) { - symbolizer.graphicName = 'star'; - } else if (points === 8) { - symbolizer.graphicName = 'cross'; - } - const sizeShape = imageStyle.getSize(); - if (sizeShape !== null) { - symbolizer.graphicWidth = sizeShape[0]; - symbolizer.graphicHeight = sizeShape[1]; - } - const rotationShape = imageStyle.getRotation(); - if (!isNaN(rotationShape) && rotationShape !== 0) { - symbolizer.rotation = toDegrees(rotationShape); - } - const opacityShape = imageStyle.getOpacity(); - if (opacityShape !== null) { - symbolizer.graphicOpacity = opacityShape; - } - const strokeShape = imageStyle.getStroke(); - if (strokeShape !== null) { - this.encodeVectorStyleStroke(symbolizer, strokeShape); - } - const fillShape = imageStyle.getFill(); - if (fillShape !== null) { - this.encodeVectorStyleFill(symbolizer, fillShape); - } - } + + const [height, width] = imageStyle.getSize(); + const scale = imageStyle.getScale(); + symbolizer.graphicHeight = height * scale; + symbolizer.graphicWidth = width * scale; } if (symbolizer !== undefined) { symbolizers.push(symbolizer);
4
diff --git a/_data/conferences.yml b/_data/conferences.yml end: 2022-05-05 hindex: 286 sub: ML - note: Mandatory abstract deadline on September 11, 2022. More info <a href='https://iclr.cc/Conferences/2023/CallForPapers'>here</a>. + note: Mandatory abstract deadline on September 21, 2022. More info <a href='https://iclr.cc/Conferences/2023/CallForPapers'>here</a>. - title: ACML year: 2022
1
diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js @@ -3219,7 +3219,7 @@ axes.drawGrid = function(gd, ax, opts) { var hasMinor = ax.minor && ax.minor.showgrid; var minorVals = hasMinor ? opts.vals.filter(function(d) { return d.minor; }) : []; - var majorVals = ax.showgrid ? opts.vals.filter(function(d) { return !d.minor; }) : []; + var majorVals = ax.showgrid && ax.tickmode !== 'sync' ? opts.vals.filter(function(d) { return !d.minor; }) : []; var counterAx = opts.counterAxis; if(counterAx && axes.shouldShowZeroLine(gd, ax, counterAx)) {
2
diff --git a/articles/hooks/extensibility-points/pre-user-registration.md b/articles/hooks/extensibility-points/pre-user-registration.md @@ -9,7 +9,7 @@ beta: true For [Database Connections](/connections/database), the `pre-user-registration` extensibility point allows you to add custom `app_metadata` or `user_metadata` to a newly-created user. -This allows you to implement scenarios such as setting conditional `app_metadata` or `user_metadata` on users that do not yet. +This allows you to implement scenarios such as setting conditional [metadata](/metadata) on users that do not exist yet. ## How to Implement This
0
diff --git a/src/components/core/breakpoints/setBreakpoint.js b/src/components/core/breakpoints/setBreakpoint.js @@ -21,7 +21,7 @@ function getBreakpoint(breakpoints) { export default function () { const swiper = this; - const { activeIndex, loopedSlides, params } = swiper; + const { activeIndex, loopedSlides = 0, params } = swiper; const breakpoints = params.breakpoints; if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0)) return; // Set breakpoint for window width and update parameters
12
diff --git a/src/webroutes/setup/get.js b/src/webroutes/setup/get.js const modulename = 'WebServer:SetupGet'; const path = require('path'); const { dir, log, logOk, logWarn, logError } = require('../../extras/console')(modulename); - +const { engineVersion } = require('../../extras/deployer'); /** * Returns the output page containing the live console @@ -27,6 +27,7 @@ module.exports = async function SetupGet(ctx) { headerTitle: `Setup`, serverName: globalConfig.serverName || '', isReset: (globalConfig.serverName !== null), + deployerEngineVersion: engineVersion, serverProfile: globals.info.serverProfile, txDataPath: GlobalData.dataPath, }
3
diff --git a/src/components/Story/StoryPreview.js b/src/components/Story/StoryPreview.js @@ -37,10 +37,7 @@ const StoryPreview = ({ post }) => { embed: () => embeds && embeds[0] && <PostFeedEmbed key="embed" embed={embeds[0]} />, - image: () => ( - <Link key="image" to={post.url}> - <img alt="post" key={imagePath} src={imagePath} /> - </Link>), + image: () => <img alt="post" key={imagePath} src={imagePath} />, }; const htmlBody = getHtml(post.body, {}, 'text');
2
diff --git a/ui/build/build.web-types.js b/ui/build/build.web-types.js @@ -37,7 +37,34 @@ module.exports.generate = function (data) { html: { 'types-syntax': 'typescript', tags: data.components.map(({ api: { events, props, scopedSlots, slots }, name }) => { - let result = { + let slotTypes = [] + if (slots) { + Object.entries(slots).forEach(([name, slotApi]) => { + slotTypes.push({ + name, + description: getDescription(slotApi), + 'doc-url': 'https://quasar.dev' + }) + }) + } + + if (scopedSlots) { + Object.entries(scopedSlots).forEach(([name, slotApi]) => { + slotTypes.push({ + name, + 'vue-properties': slotApi.scope && Object.entries(slotApi.scope).map(([name, api]) => ({ + name, + type: resolveType(api), + description: getDescription(api), + 'doc-url': 'https://quasar.dev' + })), + description: getDescription(slotApi), + 'doc-url': 'https://quasar.dev' + }) + }) + } + + const result = { name, source: { module: 'quasar', @@ -76,22 +103,7 @@ module.exports.generate = function (data) { description: getDescription(eventApi), 'doc-url': 'https://quasar.dev' })), - slots: slots && Object.entries(slots).map(([name, slotApi]) => ({ - name, - description: getDescription(slotApi), - 'doc-url': 'https://quasar.dev' - })), - 'vue-scoped-slots': scopedSlots && Object.entries(scopedSlots).map(([name, slotApi]) => ({ - name, - properties: slotApi.scope && Object.entries(slotApi.scope).map(([name, api]) => ({ - name, - type: resolveType(api), - description: getDescription(api), - 'doc-url': 'https://quasar.dev' - })), - description: getDescription(slotApi), - 'doc-url': 'https://quasar.dev' - })), + slots: slotTypes, description: `${name} - Quasar component`, 'doc-url': 'https://quasar.dev' }
3
diff --git a/doc/api.md b/doc/api.md - [API](#api) - [Enums](#enums) - - [mineflayer.data](#mineflayerdata) - - [mineflayer.blocks](#mineflayerblocks) - - [mineflayer.items](#mineflayeritems) - - [mineflayer.materials](#mineflayermaterials) - - [mineflayer.recipes](#mineflayerrecipes) - - [mineflayer.instruments](#mineflayerinstruments) - - [mineflayer.biomes](#mineflayerbiomes) - - [mineflayer.entities](#mineflayerentities) + - [minecraft-data](#minecraft-data) + - [mcdata.blocks](#mcdatablocks) + - [mcdata.items](#mcdataitems) + - [mcdata.materials](#mcdatamaterials) + - [mcdata.recipes](#mcdatarecipes) + - [mcdata.instruments](#mcdatainstruments) + - [mcdata.biomes](#mcdatabiomes) + - [mcdata.entities](#mcdataentities) - [Classes](#classes) - - [mineflayer.vec3](#mineflayervec3) + - [vec3](#vec3) - [mineflayer.Location](#mineflayerlocation) - - [mineflayer.Entity](#mineflayerentity) - - [mineflayer.Block](#mineflayerblock) - - [mineflayer.Biome](#mineflayerbiome) - - [mineflayer.Item](#mineflayeritem) - - [mineflayer.windows.Window (base class)](#mineflayerwindowswindow-base-class) - - [mineflayer.Recipe](#mineflayerrecipe) + - [Entity](#entity) + - [Block](#block) + - [Biome](#biome) + - [Item](#item) + - [windows.Window (base class)](#windowswindow-base-class) + - [Recipe](#recipe) - [mineflayer.Chest](#mineflayerchest) - [chest.window](#chestwindow) - [chest "open"](#chest-open) These enums are stored in the language independent [minecraft-data](https://github.com/PrismarineJS/minecraft-data) project, and accessed through [node-minecraft-data](https://github.com/PrismarineJS/node-minecraft-data). -### mineflayer.data -Provide access to the full [node-minecraft-data](https://github.com/PrismarineJS/node-minecraft-data) module -(it is possible to use this module by requiring it, but mineflayer.data is the version used by mineflayer) +### minecraft-data +The data is available in [node-minecraft-data](https://github.com/PrismarineJS/node-minecraft-data) module -### mineflayer.blocks +`require('minecraft-data')(bot.version)` gives you access to it. + +### mcdata.blocks blocks indexed by id -### mineflayer.items +### mcdata.items items indexed by id -### mineflayer.materials +### mcdata.materials The key is the material. The value is an object with the key as the item id of the tool and the value as the efficiency multiplier. -### mineflayer.recipes +### mcdata.recipes recipes indexed by id -### mineflayer.instruments +### mcdata.instruments instruments indexed by id -### mineflayer.biomes +### mcdata.biomes biomes indexed by id -### mineflayer.entities +### mcdata.entities entities indexed by id ## Classes -### mineflayer.vec3 +### vec3 See [andrewrk/node-vec3](https://github.com/andrewrk/node-vec3) @@ -290,29 +291,29 @@ properties. ### mineflayer.Location -### mineflayer.Entity +### Entity Entities represent players, mobs, and objects. They are emitted in many events, and you can access your own entity with `bot.entity`. See [prismarine-entity](https://github.com/PrismarineJS/prismarine-entity) -### mineflayer.Block +### Block See [prismarine-block](https://github.com/PrismarineJS/prismarine-block) -### mineflayer.Biome +### Biome See [prismarine-biome](https://github.com/PrismarineJS/prismarine-biome) -### mineflayer.Item +### Item See [prismarine-item](https://github.com/PrismarineJS/prismarine-item) -### mineflayer.windows.Window (base class) +### windows.Window (base class) See [prismarine-windows](https://github.com/PrismarineJS/prismarine-windows) -### mineflayer.Recipe +### Recipe See [prismarine-recipe](https://github.com/PrismarineJS/prismarine-recipe)
3
diff --git a/src/template.js b/src/template.js */ -// Counter used by registerCustomElement. -let registeredClassCounter = 0; +// Used by registerCustomElement. +const mapBaseTagToCount = new Map(); /** @@ -142,9 +142,7 @@ export function html(strings, ...substitutions) { * generated/minified code), the tag base will be "custom-element". * * In either case, this function adds a uniquifying number to the end of the - * base to produce a complete tag. If that tag has already been registered as a - * custom element, this function increments the uniquifying number until it - * finds a tag that has not yet been registered. + * base to produce a complete tag. * * @private * @param {function} classFn @@ -162,18 +160,22 @@ function registerCustomElement(classFn) { } else { baseTag = 'custom-element'; } - // Add a unique-ifying number to the end of the tag until we find a tag + // Add a uniquifying number to the end of the tag until we find a tag // that hasn't been registered yet. + let count = mapBaseTagToCount.get(baseTag) || 0; let tag; - for (;;) { - tag = `${baseTag}-${registeredClassCounter++}`; - if (customElements.get(tag) === undefined) { + for (;; count++) { + tag = `${baseTag}-${count}`; + if (!customElements.get(tag)) { // Not in use. break; } } // Register with the generated tag. customElements.define(tag, classFn); + // Bump number and remember it. If we see the same base tag again later, we'll + // start counting at that number in our search for a uniquifying number. + mapBaseTagToCount.set(baseTag, count + 1); }
4
diff --git a/character-sfx.js b/character-sfx.js @@ -19,8 +19,8 @@ import { // loadAudioBuffer, } from './util.js'; -let localVector = new THREE.Vector3(); -const localVector2D = new THREE.Vector2() +const localVector = new THREE.Vector3(); + // HACK: this is used to dynamically control the step offset for a particular animation // it is useful during development to adjust sync between animations and sound @@ -195,7 +195,7 @@ class CharacterSfx { const _handleNarutoRun = () => { this.player.getWorldDirection(localVector) - localVector = localVector.normalize(); + //localVector = localVector.normalize(); this.currentDir.x = localVector.x; this.currentDir.y = localVector.y; this.currentDir.z = localVector.z;
2
diff --git a/ios/CoopCycle.xcodeproj/project.pbxproj b/ios/CoopCycle.xcodeproj/project.pbxproj "$(SRCROOT)/../node_modules/react-native-locale-detector/RNI18n", ); INFOPLIST_FILE = CoopCycleTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = ( "$(SRCROOT)/../node_modules/react-native-locale-detector/RNI18n", ); INFOPLIST_FILE = CoopCycleTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = ( "$(SRCROOT)/../node_modules/react-native-locale-detector/RNI18n", ); INFOPLIST_FILE = CoopCycle/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-locale-detector/RNI18n", ); INFOPLIST_FILE = CoopCycle/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; DEBUG_INFORMATION_FORMAT = dwarf; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = CoopCycleUITests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_C_LANGUAGE_STANDARD = gnu11; INFOPLIST_FILE = CoopCycleUITests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = org.coopcycle.CoopCycleUITests;
12
diff --git a/scss/typography/_heading.scss b/scss/typography/_heading.scss @@ -13,14 +13,14 @@ $siimple-heading-margin-bottom: 0.5em; $siimple-heading-font-weight: bold; $siimple-heading-sizes: ( "1": ("size": 40px, "line-height": 51px, "margin-bottom": 20px, "margin-top": 30px), - "2": ("size": 32px, "line-heignt": 40px, "margin-bottom": 16px, "margin-top": 30px), - "3": ("size": 28px, "line-heignt": 29px, "margin-bottom": 14px, "margin-top": 30px), - "4": ("size": 24px, "line-heignt": 25px, "margin-bottom": 12px, "margin-top": 30px), - "5": ("size": 20px, "line-heignt": 22px, "margin-bottom": 10px, "margin-top": 30px), - "6": ("size": 16px, "line-heignt": 20px, "margin-bottom": 8px, "margin-top": 30px) + "2": ("size": 32px, "line-height": 40px, "margin-bottom": 16px, "margin-top": 30px), + "3": ("size": 28px, "line-height": 29px, "margin-bottom": 14px, "margin-top": 30px), + "4": ("size": 24px, "line-height": 25px, "margin-bottom": 12px, "margin-top": 30px), + "5": ("size": 20px, "line-height": 22px, "margin-bottom": 10px, "margin-top": 30px), + "6": ("size": 16px, "line-height": 20px, "margin-bottom": 8px, "margin-top": 30px) ); -//HEading class +//Heading class .siimple-h { @each $heading_number,$heading_variables in $siimple-heading-sizes { //Add this heading size
1
diff --git a/README.md b/README.md # fullNodePlus + +## Add Wallet: + +POST `/wallet` + +BODY: +``` +{ + "name": "WalletName" +} +``` + +## Get Wallet: + +GET `/wallet/:walletId` + +## Import Addresses: + +POST `/wallet/:walletId` + +BODY: raw jsonl wallet file of the form +{"address": "bItCoInAddReSSHeRe"} +... + +## Get Wallet Transactions: + +GET `/wallet/:walletId/transactions` + +## Get Balance: + +GET `/wallet/:walletId/balance`
3
diff --git a/scenes/street.scn b/scenes/street.scn "quaternion": [0, 0.7071067811865475, 0, 0.7071067811865476], "start_url": "https://webaverse.github.io/helm/" }, + { + "position": [-30, 0, -30], + "quaternion": [0, 0, 0, 1], + "start_url": "https://webaverse.github.io/plants/" + }, { "position": [ -95,
0
diff --git a/formula/index.js b/formula/index.js @@ -1954,6 +1954,8 @@ exports.evaluate = function (opts, callback) { return setFatalError("current value is not decimal: " + value, cb, false); if (!Decimal.isDecimal(res)) return setFatalError("rhs is not decimal: " + res, cb, false); + if ((assignment_op === '+=' || assignment_op === '-=') && stateVars[address][var_name].old_value === undefined) + stateVars[address][var_name].old_value = new Decimal(0); if (assignment_op === '+=') value = value.plus(res); else if (assignment_op === '-=') @@ -1970,7 +1972,8 @@ exports.evaluate = function (opts, callback) { return setFatalError("not finite: " + value, cb, false); value = toDoubleRange(value); } - stateVars[address][var_name] = { value: value, updated: true }; + stateVars[address][var_name].value = value; + stateVars[address][var_name].updated = true; cb(true); }); });
12
diff --git a/src/commands/utility/ArticleCommand.js b/src/commands/utility/ArticleCommand.js @@ -98,19 +98,19 @@ class ArticleCommand extends Command { turndown.addRule('headings', { filter: ['h1','h2','h3','h4','h5','h6'], replacement: function (content) { - return '**' + content + '**\n'; + return '**' + content.replaceAll('**', '') + '**\n'; } }); - //remove img tags - turndown.addRule('images', { - filter: ['img'], - replacement: function () { - return ''; + //ignore pre tags + turndown.addRule('codeblocks', { + filter: ['pre'], + replacement: function (content) { + return content; } }); //convert string - let string = turndown.turndown(result.body); + let string = turndown.turndown(result.body.replace(/<img[^>]+>/g, '')); if (string.length > 800) { string = string.substr(0, 800); string = string.replace(/\.?\n+.*$/, '');
7
diff --git a/avatar-spriter.js b/avatar-spriter.js @@ -1616,7 +1616,7 @@ const _renderSpriteImages = skinnedVrm => { // pre-run the animation one cycle first, to stabilize the hair physics let now = 0; const startAngleIndex = angleIndex; - localRig.springBoneManager.reset(); + // localRig.springBoneManager.reset(); { const startNow = now; for (let j = 0; j < numFrames; j++) {
2
diff --git a/protocols/delegate-manager/contracts/DelegateManager.sol b/protocols/delegate-manager/contracts/DelegateManager.sol @@ -22,10 +22,9 @@ import "@airswap/swap/contracts/interfaces/ISwap.sol"; import "@airswap/delegate-factory/contracts/interfaces/IDelegateFactory.sol"; import "@airswap/delegate/contracts/interfaces/IDelegate.sol"; import "@airswap/types/contracts/Types.sol"; -import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; -contract DelegateManager is Ownable { +contract DelegateManager { event DelegateCreated(address owner, address delegate);
2
diff --git a/includes/Modules/Site_Verification.php b/includes/Modules/Site_Verification.php @@ -52,9 +52,9 @@ final class Site_Verification extends Module implements Module_With_Scopes { const VERIFICATION_TYPE_FILE = 'FILE'; /** - * Verification meta tag cache option. + * Verification meta tag cache key. */ - const OPTION_VERIFICATION_META_TAGS = 'googlesitekit_verification_meta_tags'; + const TRANSIENT_VERIFICATION_META_TAGS = 'googlesitekit_verification_meta_tags'; /** * Registers functionality through WordPress hooks. @@ -102,12 +102,14 @@ final class Site_Verification extends Module implements Module_With_Scopes { } ); - add_action( - 'googlesitekit_invalidate_verification_meta_cache', - function () { - $this->options->delete( self::OPTION_VERIFICATION_META_TAGS ); + $clear_verification_meta_cache = function ( $meta_id, $object_id, $meta_key ) { + if ( $this->user_options->get_meta_key( Verification_Meta::OPTION ) === $meta_key ) { + delete_transient( self::TRANSIENT_VERIFICATION_META_TAGS ); } - ); + }; + add_action( 'added_user_meta', $clear_verification_meta_cache, 10, 3 ); + add_action( 'updated_user_meta', $clear_verification_meta_cache, 10, 3 ); + add_action( 'deleted_user_meta', $clear_verification_meta_cache, 10, 3 ); } /** @@ -462,7 +464,7 @@ final class Site_Verification extends Module implements Module_With_Scopes { private function get_all_verification_tags() { global $wpdb; - $meta_tags = $this->options->get( self::OPTION_VERIFICATION_META_TAGS ); + $meta_tags = get_transient( self::TRANSIENT_VERIFICATION_META_TAGS ); if ( ! is_array( $meta_tags ) ) { $meta_key = $this->user_options->get_meta_key( Verification_Meta::OPTION ); @@ -470,7 +472,7 @@ final class Site_Verification extends Module implements Module_With_Scopes { $meta_tags = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT meta_value FROM {$wpdb->usermeta} WHERE meta_key = %s", $meta_key ) ); - $this->options->set( self::OPTION_VERIFICATION_META_TAGS, $meta_tags ); + set_transient( self::TRANSIENT_VERIFICATION_META_TAGS, $meta_tags ); } return array_filter( $meta_tags );
14
diff --git a/src/lib/analytics/analytics.js b/src/lib/analytics/analytics.js @@ -18,6 +18,7 @@ export const initAnalytics = async (goodWallet: GoodWallet, userStorage: UserSto environment: Config.env, person: { id: emailOrId, + identifier, }, }, })
0
diff --git a/token-metadata/0x01FA555c97D7958Fa6f771f3BbD5CCD508f81e22/metadata.json b/token-metadata/0x01FA555c97D7958Fa6f771f3BbD5CCD508f81e22/metadata.json "symbol": "CVL", "address": "0x01FA555c97D7958Fa6f771f3BbD5CCD508f81e22", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js @@ -852,6 +852,7 @@ window.html10n = (function(window, document, undefined) { , "alt": 1 , "textContent": 1 , "value": 1 + , "placeholder": 1 } if (index > 0 && str.id.substr(index + 1) in attrList) { // an attribute has been specified prop = str.id.substr(index + 1)
11
diff --git a/app/views/audit.scala.html b/app/views/audit.scala.html <p>@Html(Messages("audit.tutorial.welcome.1"))</p> <table style="width:100%;"> <tbody><tr> - <th style="text-align:center; width:25%">@Html(Messages("audit.tutorial.photo.1"))</th> - <th style="text-align:center; width:25%">@Html(Messages("audit.tutorial.photo.2"))</th> - <th style="text-align:center; width:25%">@Html(Messages("audit.tutorial.photo.3")) </th> - <th style="text-align:center; width:25%">@Html(Messages("audit.tutorial.photo.4"))</th> + <th style="text-align:center; width:25%">@Html(Messages("curb.ramps"))</th> + <th style="text-align:center; width:25%">@Html(Messages("missing.ramps"))</th> + <th style="text-align:center; width:25%">@Html(Messages("obstacles")) </th> + <th style="text-align:center; width:25%">@Html(Messages("surface.problems"))</th> </tr> </tbody></table>
3
diff --git a/src/store/factory/client.js b/src/store/factory/client.js @@ -100,7 +100,7 @@ function createEthereumClient ( if (walletType === 'rsk_ledger') { coinType = legacyCoinType - } else if (ethereumNetwork.name === 'rsk_mainnet' || ethereumNetwork.name === 'rsk_testnet') { + } else if (ethereumNetwork.name === 'rsk_mainnet') { coinType = rskLegacyDerivation ? legacyCoinType : ethereumNetwork.coinType }
13
diff --git a/appengine/accessible/js/blocks.js b/appengine/accessible/js/blocks.js @@ -45,37 +45,15 @@ Music.Blocks.NOTE_OPTIONS = [ ["B4", "59"] ]; -var MUSIC_DUMMY_TOOLTIP = 'Dummy tooltip'; -var MUSIC_DUMMY_HELPURL = 'Dummy help URL'; - -// Extensions to Blockly's language and JavaScript generator. - -Blockly.Blocks['music_play_random_note'] = { - /** - * Block for playing a random music note. - * @this Blockly.Block - */ - init: function() { - this.jsonInit({ - "message0": "play random note", - "previousStatement": null, - "nextStatement": null, - "colour": Music.Blocks.HUE, - "tooltip": MUSIC_DUMMY_TOOLTIP, - "helpUrl": MUSIC_DUMMY_HELPURL - }); - } +Music.Blocks.MESSAGES = { + Music_playNoteTooltip: 'Play a single music note.', + Music_playNoteBlankTooltip: 'Play a single music note.', + Music_playPhraseTooltip: 'Play a snippet of music.', + Music_playNoteWithDurationTooltip: + 'Play a single music note for a certain number of beats.' }; -Blockly.JavaScript['music_play_random_note'] = function(block) { - var LOWEST_PITCH = 36; - var HIGHEST_PITCH = 60; - - var randomPitch = - Math.floor(Math.random() * (HIGHEST_PITCH - LOWEST_PITCH) + - LOWEST_PITCH); - return 'addChord([' + randomPitch + '], 1);\n'; -}; +// Extensions to Blockly's language and JavaScript generator. Blockly.Blocks['music_play_note'] = { /** @@ -88,8 +66,7 @@ Blockly.Blocks['music_play_note'] = { this.setPreviousStatement(true, null); this.setNextStatement(true, null); this.setColour(Music.Blocks.HUE); - this.setTooltip(MUSIC_DUMMY_TOOLTIP); - this.setHelpUrl(MUSIC_DUMMY_HELPURL); + this.setTooltip(Music.Blocks.MESSAGES.Music_playNoteTooltip); }, onchange: function(changeEvent) { if (changeEvent.blockId == this.id && changeEvent.element == 'field' && @@ -120,8 +97,7 @@ Blockly.Blocks['music_play_note_blank'] = { this.setPreviousStatement(true, null); this.setNextStatement(true, null); this.setColour(Music.Blocks.HUE); - this.setTooltip(MUSIC_DUMMY_TOOLTIP); - this.setHelpUrl(MUSIC_DUMMY_HELPURL); + this.setTooltip(Music.Blocks.MESSAGES.Music_playNoteBlankTooltip); }, onchange: function(changeEvent) { if (changeEvent.blockId == this.id && changeEvent.element == 'field' && @@ -162,8 +138,7 @@ Blockly.Blocks['music_play_phrase'] = { this.setPreviousStatement(true, null); this.setNextStatement(true, null); this.setColour(Music.Blocks.HUE); - this.setTooltip(MUSIC_DUMMY_TOOLTIP); - this.setHelpUrl(MUSIC_DUMMY_HELPURL); + this.setTooltip(Music.Blocks.MESSAGES.Music_playPhraseTooltip); }, onchange: function(changeEvent) { if (changeEvent.blockId == this.id && changeEvent.element == 'field' && @@ -243,8 +218,7 @@ Blockly.Blocks['music_play_note_with_duration'] = { this.setPreviousStatement(true, null); this.setNextStatement(true, null); this.setColour(Music.Blocks.HUE); - this.setTooltip(MUSIC_DUMMY_TOOLTIP); - this.setHelpUrl(MUSIC_DUMMY_HELPURL); + this.setTooltip(Music.Blocks.MESSAGES.Music_playNoteWithDurationTooltip); }, onchange: function(changeEvent) { if (changeEvent.blockId == this.id && changeEvent.element == 'field' &&
2
diff --git a/src/js/extensions/sort.js b/src/js/extensions/sort.js sortlist:[], //holder current sort //initialize column header for sorting - initializeColumnHeader:function(column, content){ + initializeColumn:function(column, content){ var self = this; column.element.addClass("tabulator-sortable");
10