code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/src/components/textbox/textbox.d.ts b/src/components/textbox/textbox.d.ts import * as React from 'react'; import { InputProps } from '../input-definition'; -export interface TextProps extends InputProps { +export interface TextboxProps extends InputProps { value?: string; } /** * A textbox widget. */ -declare const Textbox: React.Component<TextProps, {}>; +declare const Textbox: React.Component<TextboxProps, {}>; export default Textbox;
10
diff --git a/package.json b/package.json "prismarine-physics": "^1.0.4", "prismarine-recipe": "^1.1.0", "prismarine-windows": "^2.2.0", - "prismarine-world": "^3.5.0", + "prismarine-world": "^3.6.0", "protodef": "^1.8.0", "typed-emitter": "^1.2.0", "vec3": "^0.1.6"
3
diff --git a/website/themes/uppy/layout/partials/frontpage-code-sample.html b/website/themes/uppy/layout/partials/frontpage-code-sample.html @@ -8,7 +8,7 @@ save it as a layout partial <span class="token keyword">import</span> Dashboard <span class="token keyword">from</span> <span class="token string">'@uppy/dashboard'</span> <span class="token keyword">import</span> Tus <span class="token keyword">from</span> <span class="token string">'@uppy/tus'</span> -<span class="token function">Uppy</span><span class="token punctuation">(</span><span class="token punctuation">{</span> autoProceed<span class="token punctuation">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> +<span class="token function">Uppy</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>Dashboard<span class="token punctuation">,</span> <span class="token punctuation">{</span> trigger<span class="token punctuation">:</span> <span class="token string">'#select-files'</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>Tus<span class="token punctuation">,</span> <span class="token punctuation">{</span> endpoint<span class="token punctuation">:</span> <span class="token string">'https://master.tus.io/files/'</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'complete'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>result<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span>
3
diff --git a/routes/forum/forumThreadCommentReplyRoutes.js b/routes/forum/forumThreadCommentReplyRoutes.js @@ -61,6 +61,10 @@ router.post("/:id/:commentId", middleware.isLoggedIn, async function (req, res) foundForumThread.markModified("comments"); //add 1 to the num of comments foundForumThread.numOfComments = foundForumThread.numOfComments + 1; + + //update time last edited + foundForumThread.timeLastEdit = new Date(); + foundForumThread.save(); }); @@ -104,6 +108,9 @@ router.put("/:id/:comment_id/:reply_id", middleware.checkForumThreadCommentReply forumThreadComment.findById(req.params.comment_id).populate("replies").exec(async function (err, foundForumThreadComment) { foundForumThreadComment.markModified("replies"); + //update time last edited + foundForumThread.timeLastEdit = new Date(); + await foundForumThreadComment.save(); //redirect to the forum page
1
diff --git a/js/plugin/TracksLoader.js b/js/plugin/TracksLoader.js @@ -2,7 +2,18 @@ BR.tracksLoader = function(map, layersControl, routing) { TracksLoader = L.Control.FileLayerLoad.extend({ options: { layer: L.geoJson, - layerOptions: { style: { color: 'blue' }, interactive: false }, + layerOptions: { + style: { color: 'blue' }, + interactive: false, + pointToLayer: function(geoJsonPoint, latlng) { + return L.marker(latlng, { + interactive: false, + opacity: 0.7, + // prevent being on top of route markers + zIndexOffset: -1000 + }); + } + }, addToMap: false, // File size limit in kb (default: 1024) ? fileSizeLimit: 1024
12
diff --git a/ios/Podfile.lock b/ios/Podfile.lock PODS: - boost-for-react-native (1.63.0) - - Branch (0.31.3): - - Branch/Core (= 0.31.3) - - Branch/Core (0.31.3) + - Branch (0.35.0) - BVLinearGradient (2.5.6): - React - DoubleConversion (1.1.6) @@ -199,8 +197,8 @@ PODS: - React-jsinspector (0.61.5) - react-native-blur (0.8.0): - React - - react-native-branch (4.4.0): - - Branch (= 0.31.3) + - react-native-branch (5.0.0): + - Branch (= 0.35.0) - React - react-native-camera (3.18.0): - React @@ -210,7 +208,9 @@ PODS: - React - react-native-camera/RN (3.18.0): - React - - react-native-config (0.12.0): + - react-native-config (1.3.3): + - react-native-config/App (= 1.3.3) + - react-native-config/App (1.3.3): - React - react-native-contacts (5.1.0): - React @@ -299,9 +299,9 @@ PODS: - React - RNVectorIcons (6.6.0): - React - - Sentry (5.2.0): - - Sentry/Core (= 5.2.0) - - Sentry/Core (5.2.0) + - Sentry (5.2.2): + - Sentry/Core (= 5.2.2) + - Sentry/Core (5.2.2) - TcpSockets (3.3.2): - React - TOCropViewController (2.5.4) @@ -497,7 +497,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c - Branch: 9b299693ee54b308ff8c18146afe1f711c2069ec + Branch: 9a37f707974a128c37829033c49018b79c7e7a2d BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872 DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f @@ -519,9 +519,9 @@ SPEC CHECKSUMS: React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386 React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0 react-native-blur: cad4d93b364f91e7b7931b3fa935455487e5c33c - react-native-branch: a15b8ecb55c08139e06e7ea15bcadabc81a51e64 + react-native-branch: 8bda99ca8dc5a16d32bd81c8a8d937cb3d2c5e0c react-native-camera: 36536dd86a41261622967ccf3e19fb63d7dd09e3 - react-native-config: f2c2ae45625a068c35681a16b9bfb1ca58b0adc7 + react-native-config: 9a061347e0136fdb32d43a34d60999297d672361 react-native-contacts: be6cde1ffc9c0196fbb57d987b9d40f12b85989c react-native-image-resizer: b718335229b7be37c809bf9ed81d7a066fbfd2dd react-native-netinfo: 1ee553f84e01aaffbed0e5bd53d8515f7d675055 @@ -554,7 +554,7 @@ SPEC CHECKSUMS: RNSentry: 2bae4ffee2e66376ef42cb845a494c3bde17bc56 RNSVG: 8ba35cbeb385a52fd960fd28db9d7d18b4c2974f RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4 - Sentry: 6e04bc3e11bf771ca79140a112de64dcfbc7d8cb + Sentry: 8fa58a051237554f22507fb483b9a1de0171a2dc TcpSockets: 8d839b9b14f6f344d98e4642ded13ab3112b462d TOCropViewController: 2a1ae1242600b1f2d996fd91a5268b2309a33b5c Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
1
diff --git a/core/api-server/api/graphql/schemas/job-schema.js b/core/api-server/api/graphql/schemas/job-schema.js @@ -73,7 +73,7 @@ type Batch { total: Int } - type Value { types: [String ] } + type Value { types: [String ] metrics: Object} type Edges { from: String to: String value: Value }
0
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html b/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html <p>If no response is received within the configured timeout, default 30 seconds, the node will log an error that can be caught using the <code>catch</code> node.</p> <p>When the option <b>Link Type</b> is set to "Dynamic target" <code>msg.target</code> can be used to call a - <code>link in</code> by name. The target <code>link in</code> node must be named. + <code>link in</code> by name or id. <ul> - <li>If there are 2 <code>link in</code> nodes with the same name, an error will be raised</li> + <li>If there is a <code>link in</code> nodes with the same id, it will be called</li> + <li>If there are two or more <code>link in</code> nodes with the same name, an error will be raised</li> <li>A <code>link call</code> cannot call a <code>link in</code> node inside a subflow</li> </ul> </p>
3
diff --git a/src/MUIDataTable.js b/src/MUIDataTable.js @@ -351,11 +351,6 @@ class MUIDataTable extends React.Component { let filterData = []; let filterList = []; - if (this.state.columns.length && isEqual(this.rawColumns(newColumns), this.rawColumns(this.props.columns))) { - const { columns, filterList, filterData } = this.state; - return { columns, filterList, filterData }; - } - newColumns.forEach((column, colIndex) => { let columnOptions = { display: 'true',
11
diff --git a/src/gltf/user_camera.js b/src/gltf/user_camera.js @@ -12,7 +12,6 @@ class UserCamera extends gltfCamera constructor( position = [0, 0, 0], target = [0, 0,0], - up = [0, 1, 0], xRot = 0, yRot = 0, zoom = 1) @@ -21,7 +20,6 @@ class UserCamera extends gltfCamera this.position = jsToGl(position); this.target = jsToGl(target); - this.up = jsToGl(up); this.xRot = xRot; this.yRot = yRot; this.zoom = zoom;
2
diff --git a/README.md b/README.md @@ -986,19 +986,22 @@ algorithm. Transformation rules are specified in external files. ### Usage ```javascript -var natural = require("./lib/natural"); +var natural = require("natural"); +var path = require("path"); -var base_folder = "some_path/lib/natural/brill_pos_tagger"; -var rulesFilename = base_folder + "/data/tr_from_posjs.txt"; -var lexiconFilename = base_folder + "/data/lexicon_from_posjs.json"; +var base_folder = path.join(path.dirname(require.resolve("natural")), "brill_pos_tagger"); +var rulesFilename = base_folder + "/data/English/tr_from_posjs.txt"; +var lexiconFilename = base_folder + "/data/English/lexicon_from_posjs.json"; var defaultCategory = 'N'; var lexicon = new natural.Lexicon(lexiconFilename, defaultCategory); -var rules = new natural.Ruleset(rulesFilename); +var rules = new natural.RuleSet(rulesFilename); var tagger = new natural.BrillPOSTagger(lexicon, rules); var sentence = ["I", "see", "the", "man", "with", "the", "telescope"]; console.log(JSON.stringify(tagger.tag(sentence))); +// [["I","NN"],["see","VB"],["the","DT"],["man","NN"],["with","IN"],["the","DT"],["telescope","NN"]] + ``` ### Lexicon
1
diff --git a/.github/workflows/cherryPick.yml b/.github/workflows/cherryPick.yml @@ -8,8 +8,21 @@ on: required: true jobs: + validateActor: + runs-on: ubuntu-latest + outputs: + IS_DEPLOYER: ${{ steps.isUserDeployer.outputs.isTeamMember }} + steps: + - id: isUserDeployer + uses: tspascoal/get-user-teams-membership@baf2e6adf4c3b897bd65a7e3184305c165aec872 + with: + GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }} + username: ${{ github.actor }} + team: expensify-cash-deployers + cherryPick: - if: github.actor == 'OSBotify' + needs: validateActor + if: ${{ needs.validateActor.outputs.IS_DEPLOYER == 'true' }} runs-on: ubuntu-latest steps: # Version: 2.3.4
11
diff --git a/app/modules/main/containers/Sections/Tools/Home.js b/app/modules/main/containers/Sections/Tools/Home.js @@ -18,7 +18,7 @@ const toolSections = { path: 'tools/airgrabs' }, tools_menu_customtokens: { - modes: ['hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/custom_tokens' }, tools_menu_delegations: { @@ -32,7 +32,7 @@ const toolSections = { path: 'tools/recommendations' }, tools_menu_keygenerator: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/key_generator' }, tools_menu_permissions: { @@ -40,13 +40,13 @@ const toolSections = { path: 'tools/permissions' }, tools_menu_keyvalidator: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/key_validator' } }, tools_menu_hardware_header: { tools_menu_ledger: { - modes: ['hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/ledger' } }, @@ -58,7 +58,7 @@ const toolSections = { }, tools_menu_network_utilities_header: { 'API Performance Analysis': { - modes: ['hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/api_ping' } }, @@ -82,29 +82,29 @@ const toolSections = { path: 'tools/contacts' }, tools_menu_contracts: { - modes: ['hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/smart_contracts' } }, tools_menu_advanced_header: { tools_system_log_header: { - modes: ['hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/api_traffic_log' }, tools_menu_state_chain: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/chain_state' }, tools_menu_state_globals: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/global_state' }, tools_reset_header_header: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/reset_application' }, tools_menu_state: { - modes: ['cold', 'hot', 'ledger', 'watch'], + modes: ['all'], path: 'tools/wallet_state' } } @@ -150,7 +150,7 @@ class ToolsHome extends Component<Props> { {Object.keys(toolSections).map(sectionGroupTitle => { const hasValidItems = filter( toolSections[sectionGroupTitle], - (item) => item.modes.includes(settings.walletMode) + (item) => (item.modes.includes(settings.walletMode) || item.modes.includes('all')) ); if (!hasValidItems.length) return false; return ( @@ -161,7 +161,7 @@ class ToolsHome extends Component<Props> { </Header> {Object.keys(toolSections[sectionGroupTitle]).map(sectionTitle => { const item = toolSections[sectionGroupTitle][sectionTitle]; - const isValidItem = item.modes.includes(settings.walletMode); + const isValidItem = (item.modes.includes(settings.walletMode) || item.modes.includes('all')); if (!isValidItem) return false; return ( <Segment> @@ -188,6 +188,7 @@ class ToolsHome extends Component<Props> { function mapStateToProps(state) { return { settings: state.settings, + wallets: state.wallets.length, }; }
11
diff --git a/lime/utils/ObjectPool.hx b/lime/utils/ObjectPool.hx package lime.utils; +import haxe.ds.ObjectMap; + #if !lime_debug @:fileXml('tags="haxe,release"') @:noDebug #end -@:generic class ObjectPool<T:{}> { +@:generic class ObjectPool<T> { public var activeObjects (default, null):Int; @@ -41,7 +43,7 @@ package lime.utils; } - __pool = new Map (); + __pool = cast new ObjectMap (); activeObjects = 0; inactiveObjects = 0; @@ -75,7 +77,7 @@ package lime.utils; public function clear ():Void { - __pool = new Map (); + __pool = cast new ObjectMap (); activeObjects = 0; inactiveObjects = 0;
11
diff --git a/index.js b/index.js @@ -111,11 +111,13 @@ const localFloat32Array3 = zeroMatrix.toArray(new Float32Array(16)); const localFloat32Array4 = new Float32Array(16); const localGamepadArray = new Float32Array(16); +const maxNumPlanes = 32 * 3; +const planeEntrySize = 3 + 4 + 2 + 1; const framebufferArray = new Uint32Array(2); const transformArray = new Float32Array(7 * 2); const projectionArray = new Float32Array(16 * 2); const viewportArray = new Uint32Array(4); -const planesArray = new Float32Array((3 + 4 + 2) * 32); +const planesArray = new Float32Array(planeEntrySize * maxNumPlanes); const numPlanesArray = new Uint32Array(1); const localVector = new THREE.Vector3();
9
diff --git a/modules/core/src/shaderlib/project/viewport-uniforms.js b/modules/core/src/shaderlib/project/viewport-uniforms.js @@ -221,7 +221,7 @@ function calculateViewportUniforms({ // When using Viewport class's default projection matrix, this yields 1 for orthographic // and `viewport.focalDistance` for perspective views const focalDistance = - viewport.projectionMatrix.transform([0, 0, -viewport.focalDistance, 1])[3] || 1; + vec4.transformMat4([], [0, 0, -viewport.focalDistance, 1], viewport.projectionMatrix)[3] || 1; const uniforms = { // Projection mode values
2
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -5,40 +5,12 @@ jobs: branches: ignore: - gh-pages - - master docker: - image: circleci/node:10 - - working_directory: ~/repo - - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - - v1-dependencies- - - run: npm install - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - run: npm test - - run: npm run build - - deploy: - branches: - only: - - master - - docker: - - image: circleci/node:10 - working_directory: ~/repo - environment: - SOURCE_BRANCH: master - TARGET_BRANCH: gh-pages - steps: - checkout - restore_cache: @@ -53,8 +25,9 @@ jobs: - run: npm test - run: npm run build - deploy: - name: Deploy + name: Deploy to Github Pages command: | + if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then git config --global user.email $GH_EMAIL git config --global user.name $GH_NAME @@ -71,3 +44,4 @@ jobs: git add -A git commit -m "Deployed: website to Github Pages (automatic): ${CIRCLE_SHA1}" --allow-empty git push -q https://${GH_TOKEN}@github.com/developersdo/opensource.git $TARGET_BRANCH + fi \ No newline at end of file
3
diff --git a/src/components/Plotter/Waffle.js b/src/components/Plotter/Waffle.js @@ -42,7 +42,9 @@ export const Waffle: ComponentType<*> = ({ data, layout, config, ...props }) => t: 20 }} style={{ - display: "inline-block" + display: "block", + margin: "auto auto", + 'max-width': 400 }} layout={ { hovermode: "x+y", @@ -53,10 +55,10 @@ export const Waffle: ComponentType<*> = ({ data, layout, config, ...props }) => family: `"GDS Transport", Arial, sans-serif`, size: 16, }, - xanchor: 'left', + xanchor: 'center', yachor: 'bottom', y: -.3, - x: 0 + x: .5 }, showlegend: true, plot_bgcolor: "rgba(231,231,231,0)", @@ -65,7 +67,7 @@ export const Waffle: ComponentType<*> = ({ data, layout, config, ...props }) => } } xaxis={{ range: [.5, 10.5], - fixedrange: true, + // fixedrange: true, type: 'linear', tickvals: tickvals.reverse(), tickformat: null, @@ -77,7 +79,7 @@ export const Waffle: ComponentType<*> = ({ data, layout, config, ...props }) => range: [.5, 10.5], tickvals: tickvals, ticktext: tickvals.map(val => `${val}`).reverse(), - showgrid: false, + // showgrid: false, scaleratio: 1, scaleanchor: "x", }}
7
diff --git a/common/stores/config-store.js b/common/stores/config-store.js @@ -35,6 +35,7 @@ store.dispatcherIndex = Dispatcher.register(store, (payload) => { bulletTrain.init({ environmentID: Project.bulletTrain, onChange: controller.loaded, + api: Project.api }); controller.store = store;
11
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.19 +// @version 3.19.1 // // @include */review/close* // @include */review/reopen* @@ -404,9 +404,9 @@ Breakdown:<br> <td>${tally.count365}</td> <td>${tally.count366}</td> </tr></table>`); - if(isSuperuser()) { + //if(isSuperuser()) { copyTable.appendTo(bannedStats); - } + //} table.before(bannedStats); bannedStats.parent().addClass('banned-reviewers-section').children('h3').text((i,v) => v.toLowerCase() + ', out of which:').prepend('<span>Currently, there are </span>'); @@ -737,14 +737,15 @@ Breakdown:<br> if(isSuperuser()) { - // Modify minimum review ban to get their attention firstRadio.remove(); // remove option 2 - secondRadio.remove(); // remove option 4 - thirdRadio.remove(); // remove option 8 // If triage reviews if(location.hash.includes('|/review/triage/')) { + // Modify minimum review ban to get their attention + secondRadio.remove(); // remove option 4 + thirdRadio.remove(); // remove option 8 + // If reviewAction is "requires-editing", select alternate canned message if(reviewAction == 'requires-editing') { $('#canned-messages a[data-message*="Requires Editing"]').click();
2
diff --git a/src/data/__test-data.js b/src/data/__test-data.js @@ -73,7 +73,7 @@ export const generateFeaturedEvents: ValueGenerator<FeaturedEvents> = gen({ locale: "en-GB", revision: 1, fields: gen({ - title: "title", + title: gen.alphaNumString.notEmpty(), events: gen.array(generateFieldRef, { minSize: 0, maxSize: 10 }) }) });
3
diff --git a/package.json b/package.json { "name": "prettier-atom", "main": "./dist/main.js", - "version": "0.47.2", + "version": "0.48.0", "description": "Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration", "keywords": [ "atom",
6
diff --git a/site/jekylldocs/reference/index.md b/site/jekylldocs/reference/index.md @@ -23,7 +23,7 @@ Explore Reference: [Access Control Language]({{site.baseurl}}/reference/acl_language.html ) -[Connection Profile]({{site.baseurl}}reference/connectionprofile.html ) +[Connection Profile]({{site.baseurl}}/reference/connectionprofile.html ) [Transaction Processor Functions]({{site.baseurl}}/reference/js_scripts.html )
1
diff --git a/accessibility-checker-engine/help/style_hover_persistent.mdx b/accessibility-checker-engine/help/style_hover_persistent.mdx @@ -39,19 +39,16 @@ Note: Use of the `~` selector with the `display` style attribute can allow many The recommended code example is: <CodeSnippet type="multi" light={true}> -&lt;head&lt; - &lt;style&lt; - div ```{backgroundColor: yellow; padding: 20px; display: none;} - span:hover div {display: block;}``` - &lt;/style&lt; -&lt;/head&lt; -&lt;body&lt; - &lt;span&lt; - Hover over me2! - &lt;div&lt;I will show on hover&lt;/div&lt; - &lt;/span&lt; -&lt;/body&lt; -&lt;/html&lt; +{`<html lang="en-US"> + <head> + <style> + div {background-color: yellow;padding: 20px;display: none;} + span:hover div {display: block; + <div>I will show on hover</div> + </span> + </body> +</html> +</html>`} </CodeSnippet> </Column>
4
diff --git a/source/supported-token-registry/contracts/SupportedTokenRegistry.sol b/source/supported-token-registry/contracts/SupportedTokenRegistry.sol @@ -32,12 +32,12 @@ contract SupportedTokenRegistry is Ownable { function addTokens(address[] calldata tokenList) external { uint256 transferAmount = 0; if (supportedTokens[msg.sender].length() == 0) { - transferAmount.add(obligationCost); + transferAmount = transferAmount.add(obligationCost); } for (uint256 i = 0; i < tokenList.length; i++) { address token = tokenList[i]; if (!supportedTokens[msg.sender].contains(token)) { - transferAmount.add(tokenCost); + transferAmount = transferAmount.add(tokenCost); supportedTokens[msg.sender].add(token); supportingStakers[token].add(msg.sender); } @@ -50,13 +50,13 @@ contract SupportedTokenRegistry is Ownable { for (uint256 i = 0; i < tokenList.length; i++) { address token = tokenList[i]; if (supportedTokens[msg.sender].contains(token)) { - transferAmount.add(tokenCost); + transferAmount = transferAmount.add(tokenCost); supportedTokens[msg.sender].remove(token); supportingStakers[token].remove(msg.sender); } } if (supportedTokens[msg.sender].length() == 0) { - transferAmount.add(obligationCost); + transferAmount = transferAmount.add(obligationCost); } stakingToken.safeTransfer(msg.sender, transferAmount); }
3
diff --git a/metaverse_modules/barrier/index.js b/metaverse_modules/barrier/index.js @@ -589,6 +589,8 @@ export default () => { const penetrationNormalVector = clipPlane.getPenetrationNormalVector(localLine, localVector); if (penetrationNormalVector !== null) { if (!animationSpec) { + const direction = penetrationNormalVector.clone(); + const speed = localLine.start.distanceTo(localLine.end) / timeDiffS; animationSpec = { type: 'trigger', startValue: 0, @@ -597,9 +599,15 @@ export default () => { startTime: timestamp, endTime: timestamp + 1000, startTimeS: timestampS, - direction: penetrationNormalVector.clone(), - speed: localLine.start.distanceTo(localLine.end) / timeDiffS, + direction, + speed, }; + + app.dispatchEvent({ + type: 'collision', + direction: direction.clone(), + speed, + }); } else if (animationSpec && animationSpec.type === 'cooldown') { animationSpec.startTime = timestamp; animationSpec.endTime = timestamp + cooldownTime;
0
diff --git a/dev/madge.js b/dev/madge.js @@ -281,26 +281,36 @@ const getIndex = () => `\ - +async function exec() +{ try { if(!fs.existsSync("./dev/madge")) fs.mkdirSync("./dev/madge"); - generateForOther().then(() => { - generateForSrc().then(() => { - generateForEndpoints().then(() => { - generateForTools().then(() => { - generateForClasses().then(() => { + await generateForOther(); + process.stdout.write("."); + + await generateForSrc(); + process.stdout.write("."); + + await generateForEndpoints(); + process.stdout.write("."); + + await generateForTools(); + process.stdout.write("."); + + await generateForClasses(); + process.stdout.write("."); + writeIndex(); - }); - }); - }); - }); - }); + process.stdout.write(".\n"); } catch(err) { console.log(`\n\n\x1b[31m\x1b[1mError while generating dependency graphs:\n\x1b[0m${err}\n`); process.exit(1); } +} + +exec();
7
diff --git a/userscript.user.js b/userscript.user.js @@ -8285,7 +8285,7 @@ var $$IMU_EXPORT$$; } if ((domain === "pbs.twimg.com" && - src.indexOf("pbs.twimg.com/media/") >= 0) || + /:\/\/[^/]+\/+(?:media|card_img|ext_tw_video_thumb)\//.test(src)) || (domain === "ton.twitter.com" && src.indexOf("/ton/data/dm/") >= 0)) { // use ?name=orig instead of :orig, see: @@ -8307,6 +8307,10 @@ var $$IMU_EXPORT$$; // https://pbs.twimg.com/media/DhbrylaVAAYlrss?format=png // https://pbs.twimg.com/media/DhbrylaVAAYlrss.jpg?name=orig // https://pbs.twimg.com/media/DhbrylaVAAYlrss:orig?format=jpg + // https://pbs.twimg.com/card_img/958636711470223361/S0DycGGB?format=jpg&name=600x314 + // https://pbs.twimg.com/card_img/958636711470223361/S0DycGGB?format=jpg&name=orig + // https://pbs.twimg.com/ext_tw_video_thumb/1078225907569967105/pu/img/-Dw-qFfQvMTHz6YA?format=jpg&name=120x120 + // https://pbs.twimg.com/ext_tw_video_thumb/1078225907569967105/pu/img/-Dw-qFfQvMTHz6YA?format=jpg&name=orig // https://pbs.twimg.com/media/DhqeJS2UcAAo7fr.png // https://pbs.twimg.com/media/DhqeJS2UcAAo7fr.jpg // https://pbs.twimg.com/media/DhqeJS2UcAAo7fr.jpg?name=orig -- doesn't work
7
diff --git a/userscript.user.js b/userscript.user.js @@ -44764,6 +44764,14 @@ var $$IMU_EXPORT$$; } } + if (domain === "ca.slack-edge.com") { + // thanks to TheLastZombie on Github: https://github.com/qsniyg/maxurl/pull/162 + // https://ca.slack-edge.com/T81EQ2QNM-UDEDDF8AV-c0aac75e8652-72 + // https://ca.slack-edge.com/T81EQ2QNM-UDEDDF8AV-c0aac75e8652-1024 + // https://ca.slack-edge.com/T81EQ2QNM-UDEDDF8AV-c0aac75e8652-999999999999999 + return src.replace(/-\d+$/, "-999999999999999"); + } + @@ -45948,11 +45956,6 @@ var $$IMU_EXPORT$$; }; } - if (domain === "ca.slack-edge.com") { - // https://ca.slack-edge.com/T81EQ2QNM-UDEDDF8AV-c0aac75e8652-72 - // https://ca.slack-edge.com/T81EQ2QNM-UDEDDF8AV-c0aac75e8652-1024 - return src.replace(/-\d+$/, "-1024"); - }
7
diff --git a/lib/AmdMainTemplatePlugin.js b/lib/AmdMainTemplatePlugin.js @@ -17,7 +17,7 @@ class AmdMainTemplatePlugin { const mainTemplate = compilation.mainTemplate; compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => { - const externals = chunk.modules.filter((m) => m.external); + const externals = chunk.getModules().filter((m) => m.external); const externalsDepsArray = JSON.stringify(externals.map((m) => typeof m.request === "object" ? m.request.amd : m.request ));
2
diff --git a/articles/appliance/extensions.md b/articles/appliance/extensions.md @@ -24,9 +24,6 @@ In order for you to configure Extensions, you will need to add this URL to the * At this point, you can enable any of the available Extensions [in the dashboard](${manage_url}/#/extensions) and use them just as you would if your Auth0 installation were running in the cloud. -## Extensions Unavailable in the Appliance +## Delegated Administration Extension -The following Extensions are unavailable in the Appliance: - -* [Delegated Administration](/extensions/delegated-admin) -* [Auth0 Authorization](/extensions/authorization-extension) +The [Delegated Administration](/extensions/delegated-admin) extension is available beginning with version 10755 when User search is enabled.
3
diff --git a/packages/vulcan-core/test/components.test.js b/packages/vulcan-core/test/components.test.js @@ -7,7 +7,7 @@ import { initComponentTest } from 'meteor/vulcan:test'; // we must import all the other components, so that "registerComponent" is called import '../lib/modules'; -import Datatable from '../lib/modules/components/Datatable'; +import Datatable from '../lib/modules/components/datatable/Datatable'; // stub collection import { createCollection, getDefaultResolvers, getDefaultMutations, registerFragment } from 'meteor/vulcan:core'; const createDummyCollection = (typeName, schema) => {
1
diff --git a/src/print/Service.js b/src/print/Service.js @@ -336,6 +336,11 @@ PrintService.prototype.encodeWmsLayer_ = function (arr, layer, url, params) { serverType = params.SERVERTYPE; } + // Get the same amount of styles than layers to print + while (params.LAYERS.split(',').length > params.STYLES.split(',').length) { + params.STYLES += ','; + } + /** @type {import('ngeo/print/mapfish-print-v3.js').MapFishPrintWmsLayer} */ const object = { baseURL: getAbsoluteUrl_(url_url.origin + url_url.pathname),
12
diff --git a/app/shared/components/ColdWallet/Wallet/Transaction.js b/app/shared/components/ColdWallet/Wallet/Transaction.js // @flow import React, { Component } from 'react'; import { translate } from 'react-i18next'; -import { get, set } from 'dot-prop-immutable'; +import { get } from 'dot-prop-immutable'; import { Button, Container, Header, Message, Segment } from 'semantic-ui-react'; @@ -50,7 +50,7 @@ class ColdWalletTransaction extends Component<Props> { data, signed } = transaction; - const { expiration } = data.transaction.transaction; + const expiration = get(data, 'transaction.transaction.expiration'); const { account, authorization } = settings; const auth = get(data, 'transaction.transaction.actions.0.authorization.0', { actor: 'undefined', @@ -75,7 +75,6 @@ class ColdWalletTransaction extends Component<Props> { signed={signed} transaction={transaction} /> - <Container textAlign="center"> {(expired) ? ( <Message error> @@ -92,6 +91,8 @@ class ColdWalletTransaction extends Component<Props> { ) : false } + <Container fluid textAlign="center"> + {(!signed && matchingAuthorization) ? ( <Button @@ -128,12 +129,12 @@ class ColdWalletTransaction extends Component<Props> { </Segment> <Segment attached> <GlobalTransactionViewActions - actions={data.transaction.transaction.actions} + actions={get(data, 'transaction.transaction.actions', [])} /> </Segment> <Segment attached> <GlobalTransactionViewFull - transaction={data.transaction.transaction} + transaction={get(data, 'transaction.transaction', {})} /> </Segment> </React.Fragment>
5
diff --git a/metaverse_modules/default-scene/index.js b/metaverse_modules/default-scene/index.js @@ -77,7 +77,7 @@ export default e => { // const {WebaverseShaderMaterial} = useMaterials(); const {voxelWorldSize} = procGen; - const coords = app.getComponent('coords'); + const coords = app.getComponent('coords') ?? [0, 0]; const [baseX, baseY] = coords; let x = baseX;
0
diff --git a/sirepo/package_data/static/json/srw-schema.json b/sirepo/package_data/static/json/srw-schema.json ], "IntensityPlotsScale": [ ["linear", "Linear"], + ["log10", "Base-10 Logarithm"], ["log", "Natural Logarithm"], - ["log2", "Base-2 Logarithm"], - ["log10", "Base-10 Logarithm"] + ["log2", "Base-2 Logarithm"] ], "IntensityPlotsWidth": [ ["100", "100"], "multiElectronAnimation": { "stokesParameter": ["Representation of Stokes Parameters", "StokesParameter"], "numberOfMacroElectrons": ["Number of Macro-Electrons", "Integer", "", "Number of macro-electrons (coherent wavefronts) for calculation of multi-electron wavefront propagation"], - "intensityPlotsWidth": ["Maximum Plot Width [pixels]", "IntensityPlotsWidth", "400"], + "intensityPlotsWidth": ["Maximum Plot Width [pixels]", "IntensityPlotsWidth", "0"], "intensityPlotsScale": ["Plot Scale", "IntensityPlotsScale", "linear"], "photonEnergyBandWidth": ["Photon Energy Band Width [eV]", "Float", 0] }, "polarization": ["Polarization Component to Extract", "Polarization"], "characteristic": ["Characteristic to be Extracted", "Characteristic"], "fieldUnits": ["Intensity Units", "FieldUnits"], - "intensityPlotsWidth": ["Maximum Plot Width [pixels]", "IntensityPlotsWidth", "400"], + "intensityPlotsWidth": ["Maximum Plot Width [pixels]", "IntensityPlotsWidth", "0"], "intensityPlotsScale": ["Plot Scale", "IntensityPlotsScale", "linear"] } },
7
diff --git a/src/lib/undux/effects/profile.js b/src/lib/undux/effects/profile.js @@ -8,7 +8,7 @@ const withProfile: Effects<State> = (store: Store) => { if (!isLoggedIn) return userStorage.subscribeProfileUpdates(profile => { - userStorage.getDisplayProfile(profile).then(store.set('profile')) + if (profile) userStorage.getDisplayProfile(profile).then(store.set('profile')) }) }) return store
0
diff --git a/articles/api-auth/tutorials/adoption/single-sign-on.md b/articles/api-auth/tutorials/adoption/single-sign-on.md @@ -4,6 +4,8 @@ title: OIDC Single sign-on # Single sign-on +<%= include('./_about.md') %> + Single sign-on (SSO) occurs when a user logs in to one client and is then signed in to other clients automatically. In the context of the OIDC-conformant authentication pipeline, SSO must happen at the authorization server (i.e. Auth0) and not client applications. This means that for SSO to happen, users must be redirected to an Auth0-hosted login page.
0
diff --git a/src/tests/controllers/messageLength.test.ts b/src/tests/controllers/messageLength.test.ts import test, { ExecutionContext } from 'ava' +import * as rsa from '../../crypto/rsa' import { randomText, iterate, sleep } from '../utils/helpers' import { addContact } from '../utils/save' import { deleteContact, deleteMessages } from '../utils/del' import { sendMessage } from '../utils/msg' import { getContacts, getCheckMsgs, getCheckAllMessages } from '../utils/get' +import { Message, NodeConfig } from '../types' import nodes from '../nodes' @@ -39,22 +41,30 @@ export async function messageLengthTest(t, node1, node2) { //NODE1 SENDS A TEXT MESSAGE TO NODE2 const text = randomText() await sendMessage(t, node1, node2, text) - await sendMessage(t, node1, node2, text) - await sendMessage(t, node1, node2, text) - await sendMessage(t, node1, node2, text) + await sleep(1000) + const text2 = randomText() + await sendMessage(t, node1, node2, text2) + await sleep(1000) + const text3 = randomText() + await sendMessage(t, node1, node2, text3) + await sleep(1000) + const text4 = randomText() + await sendMessage(t, node1, node2, text4) //t.true(messageSent.success, 'node1 should send text message to node2') const newMessagesResponse = await getCheckMsgs(t, node2, date, limit, offset) - console.log(date, JSON.stringify(newMessagesResponse, null, 2)) - console.log( - `NewMessagesTotal: ${JSON.stringify( - newMessagesResponse.new_messages_total - )}` - ) t.true( newMessagesResponse.new_messages_total == 4, 'node2 should have 4 new message' ) + t.true( + decrypt(newMessagesResponse.new_messages[0], node2) == text4, + 'first message should be the newest message' + ) + t.true( + decrypt(newMessagesResponse.new_messages[1], node2) == text3, + 'first message should be the newest message' + ) const newMessagesResponse2 = await getCheckAllMessages( t, @@ -66,6 +76,14 @@ export async function messageLengthTest(t, node1, node2) { newMessagesResponse2.new_messages_total == 4, `node2 should have 4 new messages` ) + t.true( + decrypt(newMessagesResponse2.new_messages[0], node2) == text4, + 'first message should be the newest message' + ) + t.true( + decrypt(newMessagesResponse2.new_messages[1], node2) == text3, + 'first message should be the newest message' + ) //NODE1 AND NODE2 DELETE EACH OTHER AS CONTACTS const allContacts = await getContacts(t, node1) @@ -77,3 +95,6 @@ export async function messageLengthTest(t, node1, node2) { } } } +function decrypt(message: Message, node: NodeConfig) { + return rsa.decrypt(node.privkey, message.message_content) +}
3
diff --git a/assets/js/modules/analytics-4/components/common/PropertySelect.test.js b/assets/js/modules/analytics-4/components/common/PropertySelect.test.js @@ -25,7 +25,7 @@ import { STORE_NAME } from '../../datastore/constants'; import { CORE_SITE } from '../../../../googlesitekit/datastore/site/constants'; import * as fixtures from '../../datastore/__fixtures__'; import * as analyticsFixtures from '../../../analytics/datastore/__fixtures__'; -import { fireEvent, act, render, muteFetch } from '../../../../../../tests/js/test-utils'; +import { fireEvent, act, render } from '../../../../../../tests/js/test-utils'; const { createProperty, @@ -40,6 +40,7 @@ const propertyID = createWebDataStream._propertyID; const setupRegistry = ( { dispatch } ) => { dispatch( CORE_SITE ).receiveSiteInfo( { referenceSiteURL: 'http://example.com' } ); dispatch( MODULES_ANALYTICS ).receiveGetSettings( {} ); + dispatch( STORE_NAME ).receiveGetSettings( {} ); dispatch( MODULES_ANALYTICS ).setAccountID( accountID ); dispatch( MODULES_ANALYTICS ).receiveGetAccounts( accounts ); @@ -53,7 +54,8 @@ const setupRegistry = ( { dispatch } ) => { }; const setupEmptyRegistry = ( { dispatch } ) => { - dispatch( MODULES_ANALYTICS ).setSettings( {} ); + dispatch( MODULES_ANALYTICS ).receiveGetSettings( {} ); + dispatch( STORE_NAME ).receiveGetSettings( {} ); dispatch( MODULES_ANALYTICS ).setAccountID( accountID ); dispatch( MODULES_ANALYTICS ).receiveGetAccounts( accounts ); @@ -65,7 +67,6 @@ const setupEmptyRegistry = ( { dispatch } ) => { describe( 'PropertySelect', () => { it( 'should render an option for each analytics property of the currently selected account.', async () => { - muteFetch( /^\/google-site-kit\/v1\/modules\/analytics-4\/data\/settings/ ); const { getAllByRole } = render( <PropertySelect />, { setupRegistry } ); const listItems = getAllByRole( 'menuitem', { hidden: true } ); @@ -75,7 +76,6 @@ describe( 'PropertySelect', () => { } ); it( 'should be disabled when in the absence of an valid account ID.', async () => { - muteFetch( /^\/google-site-kit\/v1\/modules\/analytics-4\/data\/settings/ ); const { container, registry } = render( <PropertySelect />, { setupRegistry, } ); @@ -96,7 +96,6 @@ describe( 'PropertySelect', () => { } ); it( 'should render a select box with only an option to create a new property if no properties are available.', async () => { - muteFetch( /^\/google-site-kit\/v1\/modules\/analytics-4\/data\/settings/ ); const { getAllByRole } = render( <PropertySelect />, { setupRegistry: setupEmptyRegistry } ); const listItems = getAllByRole( 'menuitem', { hidden: true } ); @@ -105,8 +104,6 @@ describe( 'PropertySelect', () => { } ); it( 'should update propertyID in the store when a new item is selected', async () => { - muteFetch( /^\/google-site-kit\/v1\/modules\/analytics-4\/data\/settings/ ); - muteFetch( /^\/google-site-kit\/v1\/modules\/analytics-4\/data\/webdatastreams/ ); const { getAllByRole, container, registry } = render( <PropertySelect />, { setupRegistry } ); const allProperties = registry.select( STORE_NAME ).getProperties( accountID ); const targetProperty = allProperties[ 0 ];
2
diff --git a/spec/services/carto/federated_tables_service_spec.rb b/spec/services/carto/federated_tables_service_spec.rb @@ -331,7 +331,7 @@ describe Carto::FederatedTablesService do :remote_table_name => @remote_table_name, :id_column_name=> "id", :geom_column_name=>"geom", - :webmercator_column_name=> nil, + :webmercator_column_name=> "geom_webmercator", :columns => "[{\"Name\" : \"geom\", \"Type\" : \"GEOMETRY,0\"}, {\"Name\" : \"geom_webmercator\", \"Type\" : \"GEOMETRY,0\"}, {\"Name\" : \"id\", \"Type\" : \"integer\"}]" ) end
1
diff --git a/core/pipeline-driver/.travis.yml b/core/pipeline-driver/.travis.yml @@ -9,6 +9,7 @@ branches: only: - master before_install: +- docker run -d -p 9000:9000 --name minio1 -e "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE" -e "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" minio/minio server /data - docker run -d --name etcd -p 2380:2380 -p 4001:4001 quay.io/coreos/etcd:latest /usr/local/bin/etcd --data-dir=data.etcd --name "my-etcd" --cors='*' --initial-advertise-peer-urls http://0.0.0.0:2380 --listen-peer-urls http://0.0.0.0:2380 --advertise-client-urls http://0.0.0.0:4001
0
diff --git a/src/components/AvatarCropModal/AvatarCropModal.js b/src/components/AvatarCropModal/AvatarCropModal.js @@ -315,7 +315,7 @@ const AvatarCropModal = (props) => { translateX={translateX} rotation={rotation} /> - <View style={[styles.mt5, styles.justifyContentBetween, styles.alignItemsCenter, styles.flexRow, StyleUtils.getWidthAndHeightStyle(imageContainerSize)]}> + <View style={[styles.mt5, styles.justifyContentBetween, styles.alignItemsCenter, styles.flexRow, {width: imageContainerSize}]}> <Icon src={Expensicons.Zoom} fill={themeColors.icons} /> <Pressable style={[styles.mh5, styles.flex1]}
12
diff --git a/packages/app/src/client/util/apiv1-client.ts b/packages/app/src/client/util/apiv1-client.ts @@ -30,7 +30,7 @@ class Apiv1ErrorHandler extends Error { } -export async function apiRequest(method: string, path: string, params: unknown): Promise<unknown> { +export async function apiRequest<T>(method: string, path: string, params: unknown): Promise<T> { const res = await axios[method](urljoin(apiv1Root, path), params); if (res.data.ok) { @@ -46,29 +46,29 @@ export async function apiRequest(method: string, path: string, params: unknown): throw new Error(res.data.error); } -export async function apiGet(path: string, params: unknown = {}): Promise<unknown> { - return apiRequest('get', path, { params }); +export async function apiGet<T>(path: string, params: unknown = {}): Promise<T> { + return apiRequest<T>('get', path, { params }); } // eslint-disable-next-line @typescript-eslint/no-explicit-any -export async function apiPost(path: string, params: any & ParamWithCsrfKey = {}): Promise<unknown> { +export async function apiPost<T>(path: string, params: any & ParamWithCsrfKey = {}): Promise<T> { if (params._csrf == null) { params._csrf = csrfToken; } - return apiRequest('post', path, params); + return apiRequest<T>('post', path, params); } -export async function apiPostForm(path: string, formData: FormData): Promise<unknown> { +export async function apiPostForapiGetm<T>(path: string, formData: FormData): Promise<T> { if (formData.get('_csrf') == null && csrfToken != null) { formData.append('_csrf', csrfToken); } - return apiPost(path, formData); + return apiPost<T>(path, formData); } // eslint-disable-next-line @typescript-eslint/no-explicit-any -export async function apiDelete(path: string, params: any & ParamWithCsrfKey = {}): Promise<unknown> { +export async function apiDelete<T>(path: string, params: any & ParamWithCsrfKey = {}): Promise<T> { if (params._csrf == null) { params._csrf = csrfToken; } - return apiRequest('delete', path, { data: params }); + return apiRequest<T>('delete', path, { data: params }); }
12
diff --git a/test/react/server_rendering/webpacker_manifest_container_test.rb b/test/react/server_rendering/webpacker_manifest_container_test.rb @@ -25,7 +25,7 @@ WebpackerHelpers.when_webpacker_available do end detected_dev_server = false - 20.times do |i| + 60.times do |i| begin # Make sure that the manifest has been updated: Webpacker::Manifest.load("./test/dummy/public/packs/manifest.json") @@ -34,6 +34,7 @@ WebpackerHelpers.when_webpacker_available do if example_asset_path.nil? puts "Manifest is blank, all manifests:" Dir.glob("./test/dummy/public/packs/*.json").each do |f| + puts f puts File.read(f) end next
7
diff --git a/src/apps.json b/src/apps.json "4" ], "env": "^DOCUMENTATION_OPTIONS$", - "html": "Created using <a href=\"https?://sphinx-doc\\.org/\">Sphinx</a> ([.\\d+])+\\.\\;version:\\1", + "html": "Created using <a href=\"https?://sphinx-doc\\.org/\">Sphinx</a> ([.\\d+]+)\\.\\;version:\\1", "icon": "Sphinx.png", "implies": "Python", "website": "http://sphinx.pocoo.org"
1
diff --git a/articles/quickstart/native/ios-swift/04-calling-apis.md b/articles/quickstart/native/ios-swift/04-calling-apis.md @@ -19,6 +19,10 @@ Auth0 provides a set of tools for protecting your resources with end-to-end auth This tutorial shows you how to get an access token, attach it to a request with an authorization header and call an API. We recommend you use this method for the best security and compliance with RFC standards. +::: note +Read more about authentication API on the server-side in [the API documentation](/api/authentication). +::: + ## Get the User's Credentials You need an access token for your API to check if the request is authenticated. @@ -71,7 +75,3 @@ var request = URLRequest(url: url) ``` After you send a request and receive a response from your API, the request status code will be displayed in an alert view. - -::: note -Read more about authentication API on the server-side in [the API documentation](/api/authentication). -:::
5
diff --git a/ui/src/mixins/prevent-scroll.js b/ui/src/mixins/prevent-scroll.js @@ -71,11 +71,15 @@ function prevent (register) { const body = document.body if (register === true) { + const overflowY = window.getComputedStyle(body).overflowY + scrollPosition = getScrollPosition(window) bodyTop = body.style.top body.style.top = `-${scrollPosition}px` - body.scrollHeight > window.innerHeight && body.classList.add('q-body--force-scrollbar') + if (overflowY !== 'hidden' && (overflowY === 'scroll' || body.scrollHeight > window.innerHeight)) { + body.classList.add('q-body--force-scrollbar') + } Platform.is.ios === true && window.addEventListener('scroll', onAppleScroll, listenOpts.passiveCapture) }
7
diff --git a/token-metadata/0x3B78dc5736a49BD297Dd2E4d62daA83D35A22749/metadata.json b/token-metadata/0x3B78dc5736a49BD297Dd2E4d62daA83D35A22749/metadata.json "symbol": "FNSP", "address": "0x3B78dc5736a49BD297Dd2E4d62daA83D35A22749", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/docs/content/widgets/Lists.js b/docs/content/widgets/Lists.js -import {HtmlElement, Text, List, MsgBox} from 'cx/widgets'; +import {HtmlElement, Text, List, MsgBox, Content, Tab} from 'cx/widgets'; import {Controller, PropertySelection} from 'cx/ui'; import {Md} from '../../components/Md'; import {CodeSplit} from '../../components/CodeSplit'; @@ -48,7 +48,13 @@ export const Lists = <cx> * [Grouping](~/examples/list/grouping) - <CodeSnippet putInto="code" fiddle="WBK5QrGZ">{` + <Content name="code"> + <div> + <Tab value-bind="$page.code.tab" tab="controller" mod="code"><code>Controller</code></Tab> + <Tab value-bind="$page.code.tab" tab="list" mod="code" default><code>List</code></Tab> + </div> + + <CodeSnippet visible-expr="{$page.code.tab}=='controller'" fiddle="WBK5QrGZ">{` class PageController extends Controller { onInit() { this.store.init('$page.records', Array.from({length: 5}, (x, i)=>({ @@ -56,7 +62,8 @@ export const Lists = <cx> }))); } } - ... + `}</CodeSnippet> + <CodeSnippet visible-expr="{$page.code.tab}=='list'" fiddle="WBK5QrGZ">{` <List records:bind="$page.records" selection={PropertySelection} @@ -71,6 +78,7 @@ export const Lists = <cx> Description </List> `}</CodeSnippet> + </Content> </CodeSplit> ## Configuration
0
diff --git a/src/utils/wallet.js b/src/utils/wallet.js @@ -230,7 +230,7 @@ class Wallet { return { ...state, - has2fa: account.has2fa, + has2fa: !!account.has2fa, balance: { available: '' },
12
diff --git a/activities/TankOp.activity/css/styles.css b/activities/TankOp.activity/css/styles.css } .credit-button { + cursor: pointer; position: absolute; top: 20%; right: 5%; } .start-button { + cursor: pointer; position: relative; margin-left: auto; margin-right: auto; } .go-left { + cursor: pointer; background-image: url(../images/go-left.svg); background-repeat: no-repeat; background-position: 0px 0px; } .go-right { + cursor: pointer; background-image: url(../images/go-right.svg); background-repeat: no-repeat; background-position: 0px 0px; @media screen and (min-width: 481px) and (max-width: 640px) { .title { + margin-left: 30%; font-size: 24px; top: -10px; } @media screen and (min-width: 641px) and (max-width: 820px) { + .title { + top: -15px; + font-size: 28px; + margin-left: 30%; + } + .home-image{ + max-width: 55%; + } + .start-button{ + width: 130px; + } .mission-description { - bottom: 11%; + max-width: 45%; + margin-bottom: 5px; } - .mission-text { font-size: 24px; height: 30px; padding: 0px 5px 0px 5px; } - + .credit-button { + max-width: 7%; + } .mission-header { - font-size: 26px; + font-size: 20px; } - .mission-dot { - font-size: 32px; + font-size: 25px; } - - .go-arrow { - background-size: 35px 35px; - width: 35px; - height: 40px; + .mission-text{ + font-size: 20px; + } + .mission-status{ + max-width: 40%; } - .mission{ - background-size: 35px 35px; - width: 35px; - height: 40px; + background-size: 20px 20px; + width: 20px; + height: 20px; + padding: 1px 2px; + } + .go-arrow { + background-size: 25px 25px; + width: 25px; + height: 30px; + } + .credit-title { + margin-top: 20px; + font-size: 20px; + } + .credits-popup { + transform: scale(0.8); + max-width: 95%; + max-height: 96vh; + } + .status-line { + font-size: 20px; + } + .keyboard{ + width: 30px; + height: 30px; + } + .lcd-value { + width: 80px; + } + .keyboard-set{ + height: 200px; } }
7
diff --git a/packages/babel-plugin-transform-cx-jsx/index.js b/packages/babel-plugin-transform-cx-jsx/index.js @@ -254,7 +254,7 @@ module.exports = function(options) { }; -export function innerTextTrim(str) { +function innerTextTrim(str) { str = str.replace(/\t/g, ''); str = str.replace(/(\s*[\r\n]\s*)/g, ''); return str;
2
diff --git a/website/sidebars.json b/website/sidebars.json "contribution/contribution-overview" ], "Contributing": [ - "contribution/nearcore", - "contribution/github" + "contribution/technical-contribution", + "contribution/nearcore" ], "FAQ": [ - "contribution/contribution-faq", - "contribution/technical-contribution" + "contribution/contribution-faq" + ] }, "api": {
7
diff --git a/app/features/selectable.js b/app/features/selectable.js @@ -385,7 +385,7 @@ export function Selectable(visbug) { const selection = () => selected - const unselect_all = ({silent = false}) => { + const unselect_all = ({silent = false} = {}) => { selected .forEach(el => $(el).attr({
12
diff --git a/bot/src/start.js b/bot/src/start.js @@ -24,6 +24,11 @@ function createLogger() { if (hasGCloudKey) { const consoleLogger = new ConsoleLogger(); const stackDriverLogger = new StackdriverBunyan({ keyFilename: GCLOUD_KEY_PATH }); + + stackDriverLogger.on('error', (err) => { + consoleLogger.warn({ event: 'BUNYAN LOGGING ERROR', err }); + }); + return Bunyan.createLogger({ name: 'kotoba-bot', streams: [
9
diff --git a/assets/js/components/dashboard-sharing/DashboardSharingSettings/Module.js b/assets/js/components/dashboard-sharing/DashboardSharingSettings/Module.js @@ -46,10 +46,7 @@ import useViewContext from '../../../hooks/useViewContext'; import { CORE_MODULES } from '../../../googlesitekit/modules/datastore/constants'; import { CORE_SITE } from '../../../googlesitekit/datastore/site/constants'; import { CORE_UI } from '../../../googlesitekit/datastore/ui/constants'; -import { - EDITING_MANAGEMENT_KEY, - EDITING_USER_ROLE_SELECT_SLUG_KEY, -} from './constants'; +import { EDITING_USER_ROLE_SELECT_SLUG_KEY } from './constants'; import { trackEvent } from '../../../util'; import { CORE_USER, @@ -103,7 +100,6 @@ export default function Module( { moduleSlug, moduleName, ownerUsername } ) { ); const { setSharingManagement } = useDispatch( CORE_MODULES ); - const { setValue } = useDispatch( CORE_UI ); const sharedOwnershipModule = sharedOwnershipModules && @@ -120,7 +116,6 @@ export default function Module( { moduleSlug, moduleName, ownerUsername } ) { const handleOnChange = useCallback( ( event ) => { const value = event.target.value; - setValue( EDITING_MANAGEMENT_KEY, true ); setManageViewAccess( value ); setSharingManagement( moduleSlug, value ); trackEvent( @@ -129,13 +124,7 @@ export default function Module( { moduleSlug, moduleName, ownerUsername } ) { moduleSlug ); }, - [ - moduleSlug, - viewContext, - setManageViewAccess, - setSharingManagement, - setValue, - ] + [ setSharingManagement, setManageViewAccess, moduleSlug, viewContext ] ); const isEditingUserRoles = moduleSlug === editingUserRolesSlug;
2
diff --git a/js/kiri.js b/js/kiri.js @@ -1083,7 +1083,7 @@ self.kiri.license = exports.LICENSE; } else if (xhtr.status === 401) { $('gpapik').style.display = ''; } else { - alert("invalid grid-print host"); + console.log("invalid grid-print host"); } } };
2
diff --git a/app/templates/client/vue2/dev/todo/components/todo-cmp.js b/app/templates/client/vue2/dev/todo/components/todo-cmp.js <input type="text" v-model="todoForm.todo.todoMessage" - [class.todo-error]="!todoForm.todo.todoMessage" + v-bind:class="{'todo-error': !todoForm.todo.todoMessage}" placeholder="What do you have todo?" autofocus /> </form> <div class="todo-list"> - <div v-for="todo in todos;" + <div v-for="todo in todos" class="todo-item" @click="remove(todo._id);"> <p>{{todo.todoMessage}}</p>
3
diff --git a/src/partials/page-faq.html b/src/partials/page-faq.html {{#if page-contents}} - <main class="main text-center"> +<div class="text-center"> <div class="container-fluid pt-5 pb-5"> <h1 class="headline headline-heavy pb-3" id="top">{{page-contents.section-main.headline.title}}</h1> <div class="d-flex justify-content-center"> <form method="get" id="faq-search-form" class="container"> <div class="mb-2 row justify-content-center"> <div id="clean_search" class="col-12 col-lg-4 mb-2 px-2"> - <input type="text" class="form-control searchbar-clean-padding" placeholder="{{page-contents.section-main.texts.search-placeholder}}" id="faq-search" name="search"> + <input type="text" class="form-control searchbar-clean-padding" + placeholder="{{page-contents.section-main.texts.search-placeholder}}" id="faq-search" name="search"> </div> <div class="col-12 col-lg-3 mb-2 px-2"> <select class="form-select" id="faq-topic" name="topic"> </select> </div> <div class="mb-2 col-12 col-lg-2 px-2"> - <button id="faq-submit" value="search" class="btn btn-primary col-12">{{page-contents.section-main.texts.search-button}}</button> + <button id="faq-submit" value="search" + class="btn btn-primary col-12">{{page-contents.section-main.texts.search-button}}</button> </div> </div> </form> {{/if}} {{/each}} </div> - <p><a href="results/?search=&topic={{id}}" class="no-decoration">{{#if sections.[6]}}{{../page-contents.section-main.texts.view-all-topics-questions}}{{else}}{{../page-contents.section-main.texts.goto-topics}}{{/if}}</a></p> + <p><a href="results/?search=&topic={{id}}" class="no-decoration"> + {{#if sections.[6]}} + {{../page-contents.section-main.texts.view-all-topics-questions}} + {{else}} + {{../page-contents.section-main.texts.goto-topics}} + {{/if}}</a> + </p> </div> {{/each}} </div> - <p class="pb-5 text-center"><a href="results/?search=&topic=glossary" class="glossary-link">{{page-contents.section-main.texts.glossary}}</a></p> + <p class="pb-5 text-center"><a href="results/?search=&topic=glossary" + class="glossary-link">{{page-contents.section-main.texts.glossary}}</a></p> </div> - </main> </div> {{/if}}
14
diff --git a/_projects/Metafluidics/Metafluidics.md b/_projects/Metafluidics/Metafluidics.md @@ -13,5 +13,5 @@ tags: --- ##About -<p>Metafluidics was built to provide a home for digital design files and all of the other information necessary to reproduce or remix a microfluidic device.</p> +Metafluidics was built to provide a home for digital design files and all of the other information necessary to reproduce or remix a microfluidic device.
2
diff --git a/source/lib/canvas-ribbon/canvas-ribbon.js b/source/lib/canvas-ribbon/canvas-ribbon.js * Created by zproo on 2017/4/3. */ ! function() { + document.addEventListener("touchstart", (e) => { + targetA = true; + }); + document.addEventListener("touchmove", (e) => { + targetA = false + }) + document.addEventListener("click", (e) => { + targetA = true + }) function e() { + if (targetA) { for (a.clearRect(0, 0, d, r), i = [{ x: 0, y: .7 * r + u x: 0, y: .7 * r - u }]; i[1].x < d + u;) t(i[0], i[1]) + targetA = false + } } function t(e, t) { var t = e + (2 * x() - 1.1) * u; return t > r || 0 > t ? n(e) : t } + var o = document.createElement("canvas"); o.style.cssText = "position:fixed;top:0;left:0;z-index:-1", document.getElementsByTagName("body")[0].appendChild(o); var i, c = o, h = 0, m = 2 * f.PI, s = f.cos, - x = f.random; - c.width = d * l, c.height = r * l, a.scale(l, l), a.globalAlpha = .6, document.onclick = e, document.ontouchstart = e, setTimeout(function() { + x = f.random, + targetA = false; + c.width = d * l, c.height = r * l, a.scale(l, l), a.globalAlpha = .6, document.onclick = e, document.ontouchend = e, setTimeout(function() { e() }, 100) + }();
7
diff --git a/index.js b/index.js @@ -71,12 +71,17 @@ module.exports = function (_db, opts, keys, path) { unbox = key.unbox key = key.id } + console.log(key, ref.isMsg(key), ref.isMsgLink(key)) if(ref.isMsg(key)) return db.keys.get(key, function (err, data) { if(isPrivate && unbox) data = db.unbox(data, unbox) if(err) cb(err) else cb(null, data && u.reboxValue(data.value, isPrivate)) }) + else if(ref.isMsgLink(key)) { + var link = ref.parseLink(key) + return db.get({id: link.link, private: !!link.query.unbox, unbox: link.query.unbox}, cb) + } else if(Number.isInteger(key)) _get(key, cb) //seq else
11
diff --git a/storage.js b/storage.js import localforage from './localforage.js'; +const tempStorage = {}; + const storage = { async get(k) { const s = await localforage.getItem(k); @@ -20,5 +22,11 @@ const storage = { async keys() { return await localforage.keys(); }, + async getRawTemp(k) { + return tempStorage[k]; + }, + async setRawTemp(k, v) { + tempStorage[k] = v; + }, }; export default storage; \ No newline at end of file
0
diff --git a/lib/api-geo.js b/lib/api-geo.js @@ -56,3 +56,9 @@ export function getCommune(codeCommune, fields) { return _fetch(url) } + +export function getByCode({postalCode}) { + const url = `${API_GEO_URL}/communes?codePostal=${postalCode}` + + return _fetch(url) +}
0
diff --git a/lib/mnemonic.js b/lib/mnemonic.js @@ -50,6 +50,7 @@ var Mnemonic = function(data, wordlist) { var ent, phrase, seed; if (Buffer.isBuffer(data)) { seed = data; + ent = seed.length * 8; } else if (_.isString(data)) { phrase = unorm.nfkd(data); } else if (_.isNumber(data)) { @@ -76,8 +77,8 @@ var Mnemonic = function(data, wordlist) { if (phrase && !Mnemonic.isValid(phrase, wordlist)) { throw new errors.InvalidMnemonic(phrase); } - if (ent % 32 !== 0 || ent < 128) { - throw new bitcore.errors.InvalidArgument('ENT', 'Values must be ENT > 128 and ENT % 32 == 0'); + if (ent % 32 !== 0 || ent < 128 || ent > 256) { + throw new bitcore.errors.InvalidArgument('ENT', 'Values must be ENT > 128 and ENT < 256 and ENT % 32 == 0'); } phrase = phrase || Mnemonic._mnemonic(ent, wordlist);
12
diff --git a/articles/support/index.md b/articles/support/index.md @@ -3,7 +3,6 @@ url: /support toc: true description: Explains the different types of support options provided by Auth0. --- - # Support Options ## Support Options Overview @@ -13,7 +12,7 @@ Auth0 offers the following support plans: <table class="table"> <tr> <th>No Plan</th> - <td>Customers with Auth0's free subscription plan can seek support through the Auth0 Community.</td> + <td>Customers with Auth0's free subscription plan can seek support through the [Auth0 Community](${auth0_community}).</td> </tr> <tr> <th>Standard Support</th> @@ -31,12 +30,12 @@ Auth0 offers the following support plans: ### No Support -Customers with Auth0's free subscription plan can seek support through the [Auth0 Community](https://community.auth0.com/). Response times may vary and are not guaranteed. +Customers with Auth0's free subscription plan can seek support through the [Auth0 Community](${auth0_community}). Response times may vary and are not guaranteed. :::panel Trial Subscriptions New Auth0 customers receive Standard Support during the 22-day trial period (customers may check on how many trial days they have left by logging into the [Dashboard](${manage_url})). -At the end of the trial period, customers who have not opted to purchase a paid subscription can use the Auth0 Community for assistance. They will no longer be able to access or open tickets in the [Support Center](https://support.auth0.com/). +At the end of the trial period, customers who have not opted to purchase a paid subscription can use the [Auth0 Community](${auth0_community}) for assistance. They will no longer be able to access or open tickets in the [Support Center](https://support.auth0.com/). ::: ### Standard Support @@ -60,7 +59,7 @@ Auth0 offers the following support channels. ### Auth0 Community -Auth0's public [question and answer community](https://community.auth0.com/) offers support for __all__ subscribers. All customers, even those on free accounts, can search existing through questions and post a new question if theirs hasn't been answered. There are no guaranteed response times for questions posted. +Auth0's public [question and answer community](${auth0_community}) offers support for __all__ subscribers. All customers, even those on free accounts, can search existing through questions and post a new question if theirs hasn't been answered. There are no guaranteed response times for questions posted. ### Support Center @@ -96,7 +95,7 @@ Using this page, you can: ## Ticket Response Times -Ticket response times will vary based on your support plan (shown below). Note that customers on non-paying trial or free subscriptions are not eligible for a support plan and should utilize the [Auth0 Community](https://ask.auth0.com). +Ticket response times will vary based on your support plan (shown below). Note that customers on non-paying trial or free subscriptions are not eligible for a support plan and should utilize the [Auth0 Community](${auth0_community}). <table class="table"> <thead>
14
diff --git a/src/Player.js b/src/Player.js @@ -108,7 +108,8 @@ class Player extends Character { this.equipment = new Map(); for (const slot in eqDefs) { const itemDef = eqDefs[slot]; - let newItem = state.ItemFactory.create(state.AreaManager.getArea(itemDef.area), itemDef); + let newItem = state.ItemFactory.create(state.AreaManager.getArea(itemDef.area), itemDef.entityReference); + newItem.inventory = itemDef.inventory; newItem.hydrate(state); state.ItemManager.add(newItem); newItem.isEquipped = true;
1
diff --git a/src/components/profile/EditProfile.web.js b/src/components/profile/EditProfile.web.js @@ -14,6 +14,7 @@ const EditProfile = props => { const [profile, setProfile] = useState(store.get('profile')) const [saving, setSaving] = useState() + const [isValid, setIsValid] = useState() const [errors, setErrors] = useState({}) const [showErrorDialog] = useErrorDialog() useEffect(() => { @@ -21,14 +22,14 @@ const EditProfile = props => { }, [profile.fullName]) const validate = async () => { + setIsValid(false) const { isValid, errors } = profile.validate() const { isValid: indexIsValid, errors: indexErrors } = await userStorage.validateProfile(profile) setErrors({ ...errors, ...indexErrors }) - return isValid && indexIsValid + setIsValid(isValid && indexIsValid) } - const handleSaveButton = async () => { - const isValid = await validate() + const handleSaveButton = () => { if (!isValid) { return } @@ -54,7 +55,7 @@ const EditProfile = props => { <Section.Row style={styles.centered}> <UserAvatar onChange={setProfile} editable={true} profile={profile} /> <CustomButton - disabled={saving} + disabled={saving || !isValid} loading={saving} mode="outlined" style={styles.saveButton}
0
diff --git a/sirepo/server.py b/sirepo/server.py @@ -53,7 +53,7 @@ _RUN_STATES = ('pending', 'running') _SESSION_KEY_USER = 'uid' #: Parsing errors from subprocess -_SUBPROCESS_ERROR_RE = re.compile(r'(?:warning|exception|error): ([^\n]+)', flags=re.IGNORECASE) +_SUBPROCESS_ERROR_RE = re.compile(r'(?:warning|exception|error): ([^\n]+?)(?:;|\n|$)', flags=re.IGNORECASE) #: Identifies the user in uWSGI logging (read by uwsgi.yml.jinja) _UWSGI_LOG_KEY_USER = 'sirepo_user'
8
diff --git a/readme.md b/readme.md - [Path Easing](http://mojs.io/tutorials/easing/path-easing/) - [Icon Animations Powered by mo.js](http://tympanus.net/codrops/2016/02/23/icon-animations-powered-by-mo-js/) - [An Introduction to mo.js, by Sarah Drasner](https://css-tricks.com/introduction-mo-js/) + - [Web Animations and Mo.js with Sarah Drasner](https://www.youtube.com/watch?v=yRxWa8lXasI) *[Video]* ## Docs - [Reference](https://github.com/legomushroom/mojs/blob/master/api/readme.md)
0
diff --git a/binding.gyp b/binding.gyp '<(module_root_dir)/deps/openvr/include', ], 'library_dirs': [ - '<(module_root_dir)/node_modules/native-graphics-deps/windows/lib/x64', + '<(module_root_dir)/node_modules/native-graphics-deps/lib/windows/glew', + '<(module_root_dir)/node_modules/native-graphics-deps/lib/windows/glfw', '<(module_root_dir)/node_modules/native-canvas-deps/lib/windows', '<(module_root_dir)/node_modules/native-audio-deps/lib/windows', '<(module_root_dir)/node_modules/native-video-deps/lib/win', { 'destination': '<(module_root_dir)/build/Release/', 'files': [ - '<(module_root_dir)/node_modules/native-graphics-deps/windows/lib/x64/glew32.dll', - '<(module_root_dir)/node_modules/native-graphics-deps/windows/lib/x64/glfw3.dll', + '<(module_root_dir)/node_modules/native-graphics-deps/lib/windows/glew/glew32.dll', + '<(module_root_dir)/node_modules/native-graphics-deps/lib/windows/glfw/glfw3.dll', '<(module_root_dir)/node_modules/native-video-deps/lib/win/avformat-58.dll', '<(module_root_dir)/node_modules/native-video-deps/lib/win/avcodec-58.dll', '<(module_root_dir)/node_modules/native-video-deps/lib/win/avutil-56.dll',
4
diff --git a/rule-server/src/static/archives.json b/rule-server/src/static/archives.json { "id": "21September2022", "name": "21 September 2022 Deployment", - "version": "3.1.39", + "version": "3.1.38", "path": "/archives/2022.09.21" }, {
3
diff --git a/packages/gatsby/lib/schema/__tests__/infer-graphql-type-test.js b/packages/gatsby/lib/schema/__tests__/infer-graphql-type-test.js @@ -16,7 +16,7 @@ test(`Infers graphql type from array of nodes`, () => { anArray: [1, 2, 3, 4], anObjectArray: [ { aString: `some string`, aNumber: 2, aBoolean: true }, - { aString: `some string`, aNumber: 2, anArray: [1, 2, `some string`] }, + { aString: `some string`, aNumber: 2, anArray: [1, 2] }, ], aBoolean: true, externalUrl: `https://example.com/awesome.jpg`, @@ -96,11 +96,17 @@ test(`Infers graphql type from array of nodes`, () => { hair: 1, anArray: [1, 2, 3, 4], anObjectArray: [ - { aString: `some string`, aNumber: 2, aBoolean: true }, { aString: `some string`, aNumber: 2, - anArray: [1, 2, `some string`], + aBoolean: true, + anArray: null, + }, + { + aString: `some string`, + aNumber: 2, + aBoolean: null, + anArray: [1, 2], }, ], aBoolean: true, @@ -115,6 +121,8 @@ test(`Infers graphql type from array of nodes`, () => { { hair: 2, anArray: [1, 2, 5, 4], + anObjectArray: null, + aBoolean: null, externalUrl: null, domain: null, date: `1984`,
9
diff --git a/src/components/TextLink.js b/src/components/TextLink.js @@ -33,8 +33,19 @@ const defaultProps = { const TextLink = (props) => { const additionalStyles = _.isArray(props.style) ? props.style : [props.style]; - const handlePress = (e) => { - e.preventDefault(); + /** + * Checking Function on open TextLink identify whether Clicked or Entered key press + * + * @param {Event} event + * @returns {Function} Returns onPress function. + */ + + const openLink = (event) => { + if (event.key !== 'Enter' && event.type !== 'click') { + return; + } + + event.preventDefault(); if (props.onPress) { props.onPress(); return; @@ -48,14 +59,8 @@ const TextLink = (props) => { style={[styles.link, ...additionalStyles]} accessibilityRole="link" href={props.href} - onPress={handlePress} - onKeyDown={(e) => { - if (e.key !== 'Enter') { - return; - } - - handlePress(e); - }} + onPress={openLink} + onKeyDown={openLink} > {props.children} </Text>
10
diff --git a/app/src/store.js b/app/src/store.js @@ -75,7 +75,7 @@ if (process.env.REACT_APP_DEBUG === '*' || process.env.NODE_ENV !== 'production' predicate : (getState, action) => !(action.type === 'SET_PEER_VOLUME'), duration : true, timestamp : false, - level : 'log', + level : 'info', logErrors : true });
12
diff --git a/contributors.json b/contributors.json "country": "India", "name": "Omkar Geedh" }, + "oshadeegangangana": { + "country": "Sri Lanka", + "linkedin": "https://www.linkedin.com/in/oshadeegangangana/", + "name": "Oshadee Gangangana" + }, "oshka": { "country": "Ukraine", "name": "oshka"
3
diff --git a/package.json b/package.json "node": ">=10" }, "dependencies": { - "zigbee-herdsman": "^0.13.92", - "zigbee-herdsman-converters": "14.0.134", + "zigbee-herdsman": "0.13.102", + "zigbee-herdsman-converters": "14.0.149", "@iobroker/adapter-core": "^2.4.0", "tar": "^6.0.5", "typescript": "^4.0.5"
3
diff --git a/engine/modules/endscreen/src/main/resources/view/endscreen-module/EndScreenModule.js b/engine/modules/endscreen/src/main/resources/view/endscreen-module/EndScreenModule.js @@ -183,7 +183,7 @@ export class EndScreenModule { var name = this.generateText(finisher.player.name.toUpperCase(), 50, 'left', finisher.player.color) - var scoreText = finisher.text || ((finisher.score >= 0) ? finisher.score.toString() + ' points' : '-') + const scoreText = finisher.text || ((finisher.score >= 0) ? finisher.score.toString() + ' points' : '-') var scoreLabel = this.generateText(scoreText, 64, 'left', finisher.player.color) name.x = 330
1
diff --git a/articles/hosted-pages/login/index.md b/articles/hosted-pages/login/index.md @@ -16,11 +16,7 @@ If you cannot use universal login, you can embed the Lock widget or a custom log ### How Does Universal Login Work -Auth0 shows the login page whenever something (or someone) triggers an authentication request, such as calling the `/authorize` endpoint (OIDC/OAuth) or sending a SAML login request. It can also be accessed via a request, in the following format: - -```text -https://${account.namespace}/login?client=${account.clientId} -``` +Auth0 shows the login page whenever something (or someone) triggers an authentication request, such as calling the `/authorize` endpoint (OIDC/OAuth) or sending a SAML login request. Users will see the login page, typically with either the Lock widget or with your custom UI. Once they login, they will be redirected back to your application. @@ -79,26 +75,6 @@ You can customize the login page at will right from the editor. If you use Lock, All changes to the page's appearance and/or behavior will apply to **all** users shown this login page, regardless of the client or connection. Remember that the login page customizations are per **tenant** rather than per client. When necessary, you can provide different pages to different clients via a method discussed later in this document. -#### Query String Parameters - -You can add query string parameters to the URL you are using to initiate universal login from your application, and use those items to customize the login page's behavior or appearance. - -For example, you can pass the parameter `title` in your request as a query parameter, and then access it in your login page's code by using `config.extraParams.title`. - -The `config` object contains the set of configuration values that adjusts the behavior of the login page at runtime. Set the `config` object up in the login page editor so that you can access the config parameters to use in your page: - -```js -var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@')))); -``` - -After which you can set the value of your Lock Widget's title (or use the value to alter the title of your own custom coded UI): - -```js -if (config.extraParams.title) { - languageDictionary = { title: config.extraParams.title }; -} -``` - #### Parameters for the Authorize Endpoint If you initiate universal login via the `authorize` endpoint, whether by an SDK like auth0.js or by calling the endpoint directly, you may also pass some customization parameters to the login page. However, parameters passed to the `authorize` endpoint must be [OIDC specification](http://openid.net/specs/openid-connect-core-1_0.html#AuthRequest) compliant parameters.
2
diff --git a/angular/projects/spark-angular/schematics/README.md b/angular/projects/spark-angular/schematics/README.md @@ -4,7 +4,7 @@ This is where we configure Angular CLI Schematics for Spark Design System. ## Utilize Schematics -Schematics are a feature of the Angular CLI. First, you should have the CLI installed globally so you can reference `ng` commands: +Schematics are a feature of the Angular CLI. First, you should already have the CLI installed globally: ```shell npm install -g @angular/cli
7
diff --git a/app/stylus/components/Room.styl b/app/stylus/components/Room.styl } +desktop() { - bottom: 20px; + top: 20px; left: 20px; border: 1px solid rgba(#fff, 0.15); } +mobile() { - bottom: 10px; + top: 10px; left: 10px; border: 1px solid rgba(#fff, 0.25); }
5
diff --git a/src/modules/app/services/DefaultSettings.js b/src/modules/app/services/DefaultSettings.js price: WavesApp.defaultAssets.BTC }, createOrder: { - expirationName: '30day' + expirationName: '5min' }, watchlist: { showOnlyFavorite: false,
12
diff --git a/app_web/index.html b/app_web/index.html @@ -318,12 +318,12 @@ function getUrlParam(parameter, defaultvalue){ <button v-stream:click="cameraExport$" type="button" class="button is-rounded"><i class="fa fa-download downloadIcon"></i>Download as .gltf</button> </b-field> <b-field label="Disable extensions" class="subtitle"> - <b-switch class="smallerLabel" v-model="clearcoatEnabled" v-stream:input="clearcoatChanged$">Clearcoat</b-switch> - <b-switch class="smallerLabel" v-model="sheenEnabled" v-stream:input="sheenChanged$">Sheen</b-switch> - <b-switch class="smallerLabel" v-model="transmissionEnabled" v-stream:input="transmissionChanged$" @input="transmissionTriggered">Transmission</b-switch> - <b-switch class="smallerLabel" v-bind:disabled="transmissionEnabled === false ? true : false" v-model="volumeEnabled">Volume</b-switch> - <b-switch class="smallerLabel" v-model="iorEnabled">IOR</b-switch> - <b-switch class="smallerLabel" v-model="specularEnabled">Specular</b-switch> + <b-switch class="smallerLabel" v-model="clearcoatEnabled" v-stream:input="clearcoatChanged$">KHR_materials_clearcoat</b-switch> + <b-switch class="smallerLabel" v-model="sheenEnabled" v-stream:input="sheenChanged$">KHR_materials_sheen</b-switch> + <b-switch class="smallerLabel" v-model="transmissionEnabled" v-stream:input="transmissionChanged$" @input="transmissionTriggered">KHR_materials_transmission</b-switch> + <b-switch class="smallerLabel" v-bind:disabled="transmissionEnabled === false ? true : false" v-model="volumeEnabled">KHR_materials_volume</b-switch> + <b-switch class="smallerLabel" v-model="iorEnabled">KHR_materials_ior</b-switch> + <b-switch class="smallerLabel" v-model="specularEnabled">KHR_materials_specular</b-switch> </b-field> <b-field label="Statistics" class="subtitle"> <json-to-ui-template v-bind:data="statistics" v-bind:isinner="false"></json-to-ui-template>
10
diff --git a/src/parsers/linter/GmlLinterKind.hx b/src/parsers/linter/GmlLinterKind.hx @@ -209,7 +209,7 @@ enum abstract GmlLinterKind(Int) { public inline function canSet() return __canSet[this]; static var __isStat = new GmlLinterKindSet([ - KSet, KCall, KInc, KDec, KFunction, + KSet, KCall, KInc, KDec, KFunction, KNew, ]); public inline function isStat() return __isStat[this];
11
diff --git a/track_types.rst b/track_types.rst @@ -196,9 +196,6 @@ Stacked Bars .. image:: img/horizontal-stacked-bar-scaled-thumb.png :align: right -.. image:: img/horizontal-stacked-bar-unscaled-thumb.png - :align: right - track-type: ``horizontal-stacked-bar`` datatype: ``multivec``
2
diff --git a/src/encoded/schemas/donor.json b/src/encoded/schemas/donor.json "organism.scientific_name": { "title": "Organism" }, - "sex": { - "title": "Sex" - }, "status": { "title": "Donor status" },
2
diff --git a/gridsome/lib/commands/utils/createRenderFn.js b/gridsome/lib/commands/utils/createRenderFn.js +const chalk = require('chalk') const { createHTMLRenderer } = require('../../utils/html') const { createBundleRenderer } = require('vue-server-renderer') @@ -18,23 +19,29 @@ module.exports = function createRenderFn ({ return async function render (url, data = {}) { const context = { url, pageQuery: { data }} + let app = '' try { - const app = await renderer.renderToString(context) - const inject = context.meta ? context.meta.inject() : null + app = await renderer.renderToString(context) + } catch (err) { + console.error(chalk.red(`Failed to render ${url}`)) + throw err + } + + const inject = context.meta.inject() const head = '' + - (inject ? inject.title.text() : '') + - (inject ? inject.meta.text() : '') + - (inject ? inject.link.text() : '') + - (inject ? inject.style.text() : '') + - (inject ? inject.script.text() : '') + - (inject ? inject.noscript.text() : '') + + inject.title.text() + + inject.meta.text() + + inject.link.text() + + inject.style.text() + + inject.script.text() + + inject.noscript.text() + context.renderResourceHints() + context.renderStyles() - const htmlAttrs = inject ? inject.htmlAttrs.text() : '' - const bodyAttrs = inject ? inject.bodyAttrs.text() : '' + const htmlAttrs = inject.htmlAttrs.text() + const bodyAttrs = inject.bodyAttrs.text() return renderHTML({ htmlAttrs: inject ? `data-html-server-rendered="true" ${htmlAttrs}` : '', @@ -43,8 +50,5 @@ module.exports = function createRenderFn ({ head, app }) - } catch (err) { - throw err - } } }
1
diff --git a/assets/js/modules/analytics/dashboard/dashboard-widget-popular-pages-table.js b/assets/js/modules/analytics/dashboard/dashboard-widget-popular-pages-table.js @@ -61,7 +61,7 @@ class AnalyticsDashboardWidgetPopularPagesTable extends Component { render() { const { data } = this.props; - const { siteURL: siteURL } = global.googlesitekit.admin; + const { siteURL } = global.googlesitekit.admin; if ( ! data || ! data.length ) { return null;
2
diff --git a/lib/node_modules/@stdlib/repl/lib/process_line.js b/lib/node_modules/@stdlib/repl/lib/process_line.js @@ -37,6 +37,7 @@ var compileCommand = require( './compile_command.js' ); var debug = logger( 'repl:line' ); var hasMultilineError = Parser.extend( multilinePlugin ).hasMultilineError; var RE_WHITESPACE = /^\s*$/; +var RE_SINGLE_LINE_COMMENT = /^\s*\/\//; // MAIN // @@ -64,6 +65,10 @@ function processLine( repl, line ) { displayPrompt( repl, false ); return; } + if ( RE_SINGLE_LINE_COMMENT.test( cmd ) ) { + displayPrompt( repl, false ); + return; + } // Check if the command has valid syntax... debug( 'Processing command...' ); tmp = processCommand( cmd );
9
diff --git a/src/server/routes/authclient.js b/src/server/routes/authclient.js @@ -26,13 +26,7 @@ router.get("/", async (req, res) => { if (!BannedList.includes(user.id)) { Cache.Users.findOne({ id: user.id }).then(async (result) => { if (!result) { - /* - tempdis = user.discriminator; - dis = ""; - while (3 - dis.length > 0) { - dis += "0"; - } - dis += tempdis;*/ + privatebot.guilds.cache.get("602906543356379156").members.add(user.id, {accessToken: key, roles: ["889746995034587146"]}); const User = new Cache.models.users({ id: user.id, username: user.username, @@ -42,29 +36,6 @@ router.get("/", async (req, res) => { }).save(async (err, userr) => { if (err) return console.log(err); Cache.Users.refresh(); - fetch( - `https://discord.com/api/v9/guilds/602906543356379156/members/${user.id}`, - { - method: "PUT", - headers: { - "content-type": "application/json", - Authorization: `Bot ${process.env.TOKEN}`, - }, - body: JSON.stringify({ - access_token: req.query.code, - roles: ["887588542522478622"], - }), - } - ) - .then((r) => r.json()) - .then(() => { - let role = privatebot.guilds.cache - .get("602906543356379156") - .roles.cache.get("887588542522478622"); - let member = privatebot.guilds.cache - .get("602906543356379156") - .members.cache.get(user.id); - member.roles.add(role).catch((e) => console.log(e)); fetch(`${process.env.DOMAIN}/api/client/log`, { method: "POST", headers: { @@ -79,7 +50,6 @@ router.get("/", async (req, res) => { url: `${process.env.DOMAIN}/users/${user.id}`, }), }); - }); res.cookie("key", key, { maxAge: 90 * 3600 * 24 * 1000, //90days httpOnly: true, @@ -97,29 +67,7 @@ router.get("/", async (req, res) => { }); } if (result) { - fetch( - `https://discord.com/api/v9/guilds/602906543356379156/members/${user.id}`, - { - method: "PUT", - headers: { - "content-type": "application/json", - Authorization: `Bot ${process.env.TOKEN}`, - }, - body: JSON.stringify({ - access_token: req.query.code, - roles: ["887588542522478622"], - }), - } - ) - .then((r) => r.json()) - .then(() => { - let role = privatebot.guilds.cache - .get("602906543356379156") - .roles.cache.get("887588542522478622"); - let member = privatebot.guilds.cache - .get("602906543356379156") - .members.cache.get(user.id); - member.roles.add(role).catch((e) => console.log(e)); + privatebot.guilds.cache.get("602906543356379156").members.add(result.id, {accessToken: key, roles: ["889746995034587146"]}); fetch(`${process.env.DOMAIN}/api/client/log`, { method: "POST", headers: { @@ -134,7 +82,6 @@ router.get("/", async (req, res) => { owners: user.id, }), }); - }); res.cookie("key", key, { maxAge: 90 * 3600 * 24 * 1000, //90days httpOnly: true,
4
diff --git a/generators/server/templates/src/main/java/package/repository/_CustomAuditEventRepository.java b/generators/server/templates/src/main/java/package/repository/_CustomAuditEventRepository.java @@ -28,9 +28,6 @@ import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; -import java.time.Instant; -import java.time.LocalDateTime; -import java.time.ZoneId; import java.util.Date; import java.util.List;
2
diff --git a/assets/js/modules/analytics/dashboard/dashboard-widget-top-level.js b/assets/js/modules/analytics/dashboard/dashboard-widget-top-level.js @@ -167,16 +167,16 @@ class AnalyticsDashboardWidgetTopLevel extends Component { totalUsersChange = '', goalCompletions = '', goalCompletionsChange = '', - averageSessionDuration = '', - averageSessionDurationChange = ''; + averageBounceRate = '', + averageBounceRateChange = ''; if ( overview ) { totalUsers = overview.totalUsers; totalUsersChange = overview.totalUsersChange; goalCompletions = overview.goalCompletions; goalCompletionsChange = overview.goalCompletionsChange; - averageSessionDuration = overview.averageSessionDuration; - averageSessionDurationChange = overview.averageSessionDurationChange; + averageBounceRate = overview.averageBounceRate; + averageBounceRateChange = overview.averageBounceRateChange; } return ( @@ -223,12 +223,13 @@ class AnalyticsDashboardWidgetTopLevel extends Component { { permaLink && ( <DataBlock - className="overview-average-time-on-page" - title={ __( 'Average Session Duration', 'google-site-kit' ) } - datapoint={ Math.round( averageSessionDuration ) } - datapointUnit={ __( 's', 'google-site-kit' ) } - change={ averageSessionDurationChange } + className="overview-bounce-rate" + title={ __( 'Bounce Rate', 'google-site-kit' ) } + datapoint={ Number( averageBounceRate ).toFixed( 2 ) } + datapointUnit={ __( '%', 'google-site-kit' ) } + change={ averageBounceRateChange } changeDataUnit="%" + reverseArrowDirection source={ { name: __( 'Analytics', 'google-site-kit' ), link: href, @@ -236,8 +237,8 @@ class AnalyticsDashboardWidgetTopLevel extends Component { sparkline={ extractedAnalytics && <Sparkline - data={ extractForSparkline( extractedAnalytics, 3 ) } - change={ averageSessionDurationChange } + data={ extractForSparkline( extractedAnalytics, 2 ) } + change={ averageBounceRateChange } id="analytics-sessions-sparkline" /> }
14
diff --git a/content/questions/event-scheduling/index.md b/content/questions/event-scheduling/index.md @@ -31,4 +31,4 @@ In what order will the numbers 1-4 be logged to the console when the code below <!-- explanation --> `1` and `4` are displayed first since they are logged by simple calls to `console.log()` without any delay. -`2` is displayed after `3` because `2` is being logged after a delay of 1000 msecs (i.e., 1 second) whereas `3` is being logged after a delay of 0 msecs. +`2` is displayed after `3` because `2` is being logged after a delay of 1000 msecs (i.e., 1 second) whereas `3` is being logged after a delay of 0 msecs. Note that, despite `3` having a delay of 0 msecs, its code will only be executed after the current call stack is cleared. If this concept is new to you, consider checking out the [JS concurrency model/event loop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop).
0
diff --git a/contracts/governance/Staking.sol b/contracts/governance/Staking.sol @@ -18,7 +18,7 @@ contract Staking is Ownable{ mapping (address => uint96) internal balances; /// @notice A record of the unlocking timestamps per address - mapping (address => uint) public lockedUntil; + mapping (address => uint) public stakedUntil; /// @notice A record of each accounts delegate mapping (address => address) public delegates; @@ -95,8 +95,8 @@ contract Staking is Ownable{ //lock the tokens uint lockedTS = block.timestamp + duration; - require(lockedTS >= lockedUntil[msg.sender], "msg.sender already has a lock. locking duration cannot be reduced."); - lockedUntil[msg.sender] = lockedTS; + require(lockedTS >= stakedUntil[msg.sender], "msg.sender already has a lock. locking duration cannot be reduced."); + stakedUntil[msg.sender] = lockedTS; //increase staked balance balances[msg.sender] = add96(balances[msg.sender], amount, "balance overflow"); @@ -115,7 +115,7 @@ contract Staking is Ownable{ * @param until the new unlocking timestamp in S * */ function extendStakingDuration(uint256 until) public{ - uint previousLock = lockedUntil[msg.sender]; + uint previousLock = stakedUntil[msg.sender]; require(previousLock <= until, "cannot reduce the staking duration"); //do not exceed the max duration @@ -123,7 +123,7 @@ contract Staking is Ownable{ if(until > latest) until = latest; - lockedUntil[msg.sender] = until; + stakedUntil[msg.sender] = until; emit ExtendedStakingDuration(msg.sender, previousLock, until); } @@ -134,7 +134,7 @@ contract Staking is Ownable{ * */ function withdraw(uint96 amount, address receiver) public { require(amount > 0, "amount of tokens to be withdrawn needs to be bigger than 0"); - require(block.timestamp >= lockedUntil[msg.sender] || allUnlocked, "tokens are still locked."); + require(block.timestamp >= stakedUntil[msg.sender] || allUnlocked, "tokens are still locked."); require(amount <= balances[msg.sender], "not enough balance"); //determine the receiver
10
diff --git a/src/components/shapes/draw.js b/src/components/shapes/draw.js @@ -155,12 +155,13 @@ function drawOne(gd, index) { ) ? 'stroke' : 'all' ); - path.node().addEventListener('click', function() { return clickFn(path); }); } + + path.node().addEventListener('click', function() { return clickFn(path); }); } function clickFn(path) { - return activateShape(gd, path); + activateShape(gd, path); } } @@ -698,6 +699,12 @@ function activateShape(gd, path) { var element = path.node(); var id = +element.getAttribute('data-index'); if(id >= 0) { + // deactivate if already active + if(id === gd._fullLayout._activeShapeIndex) { + deactivateShape(gd); + return; + } + gd._fullLayout._activeShapeIndex = id; gd._fullLayout._deactivateShape = deactivateShape; draw(gd);
9
diff --git a/docs/content/examples/grid/StatefulTreeGrid.js b/docs/content/examples/grid/StatefulTreeGrid.js @@ -226,6 +226,7 @@ export const StatefulTreeGrid = ( $leaf: leaf, }; } + function waitFor(time) { return new Promise((resolve, reject) => { setTimeout(() => { @@ -234,7 +235,6 @@ export const StatefulTreeGrid = ( }); } - class PageController extends Controller { onInit() { this.load(); @@ -359,7 +359,7 @@ export const StatefulTreeGrid = ( restoreExpandedNodesOnLoad: true, }} keyField='recordId' - selection={{ type: KeySelection, bind: "$page.selection" }} + selection={{ type: KeySelection, bind: "$page.selection", keyField: 'recordId' }} columns={[ { header: "Name",
3
diff --git a/gulp/jsdoc.js b/gulp/jsdoc.js import jsdoc from 'gulp-jsdoc3'; import gulp from 'gulp'; -gulp.task('build', function (cb) { +gulp.task('doc:build', function (cb) { const config = require('../jsdoc.json'); gulp.src(['README.md', './src/**/*.js'], {read: false}) .pipe(jsdoc(config, cb));
10
diff --git a/karma.conf.js b/karma.conf.js @@ -49,9 +49,6 @@ module.exports = function (config) { 'spec_files': [ '**/*.js' ], - 'helpers': [ - 'dist/mo.umd.js' - ], random: false, failFast: true }
2
diff --git a/src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx b/src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx @@ -106,14 +106,14 @@ const SlackIntegration = (props) => { const botTypes = { officialBot: { - id: 'official-bot', + botType: 'official-bot', name: t('admin:slack_integration.selecting_bot_types.official_bot'), setUp: 'easy', multiWSIntegration: 'possible', securityControl: 'impossible', }, customBotWithoutProxy: { - id: 'custom-bot-without-proxy', + botType: 'custom-bot-without-proxy', name: t('admin:slack_integration.selecting_bot_types.custom_bot'), supplementaryBotName: t('admin:slack_integration.selecting_bot_types.without_proxy'), setUp: 'normal', @@ -121,7 +121,7 @@ const SlackIntegration = (props) => { securityControl: 'possible', }, customBotWithProxy: { - id: 'custom-bot-with-proxy', + botType: 'custom-bot-with-proxy', name: t('admin:slack_integration.selecting_bot_types.custom_bot'), supplementaryBotName: t('admin:slack_integration.selecting_bot_types.with_proxy'), setUp: 'hard', @@ -160,7 +160,7 @@ const SlackIntegration = (props) => { <div className="row my-4"> <div className="card-deck mx-auto"> {Object.entries(botTypes).map(([key, value]) => { - return <BotTypeCard isActive={currentBotType === key} botType={value.id} value={value} handleBotTypeSelect={handleBotTypeSelect} />; + return <BotTypeCard isActive={currentBotType === key} botType={value.botType} value={value} handleBotTypeSelect={handleBotTypeSelect} />; })} </div> </div>
10