code
stringlengths
122
4.99k
label
int64
0
14
diff --git a/userscript.user.js b/userscript.user.js @@ -29479,8 +29479,10 @@ var $$IMU_EXPORT$$; cb: function(){} }; + opts = get_bigimage_extoptions_first(opts); opts = get_bigimage_extoptions(opts); - if (bigimage_recursive(url, opts) !== null) { + var result = bigimage_recursive(url, opts); + if (result !== null) { return url; } } @@ -55150,6 +55152,47 @@ var $$IMU_EXPORT$$; return base64_decode(newsrc); } + if (domain_nowww === "gfycat.com") { + // https://www.gfycat.com/ko/YellowTornCockatiel + match = src.match(/^[a-z]+:\/\/[^/]+\/+(?:[a-z]{2}\/+)?([a-zA-Z]+)(?:[?#].*)?$/, "$1"); + if (match && options.do_request && options.cb) { + var query_gfycat = function(id, cb) { + var cache_key = "gfycat:" + id; + + api_cache.fetch(cache_key, cb, function(done) { + options.do_request({ + url: "https://api.gfycat.com/v1/gfycats/" + id, + method: "GET", + headers: { + Referer: "" + }, + onload: function(resp) { + if (resp.status !== 200) { + console_error(cache_key, resp); + return done(null, false); + } + + try { + var json = JSON_parse(resp.responseText); + return done(json.gfyItem.posterUrl, 24*60*60); + } catch (e) { + console_error(e); + } + + return done(null, false); + } + }); + }); + }; + + query_gfycat(match[1], options.cb); + + return { + waiting: true + }; + } + } + if (domain === "thumbs.gfycat.com" || domain === "zippy.gfycat.com" || domain === "giant.gfycat.com") {
7
diff --git a/microblogPane/microblogPane.js b/microblogPane/microblogPane.js @@ -129,7 +129,7 @@ module.exports = { var theUser = UI.authn.currentUser() if (theUser) { - var theAccount = tabulator.preferences.get('acct') + var theAccount = UI.preferences.get('acct') if (theAccount) { theAccount = kb.sym(theAccount) @@ -235,7 +235,7 @@ module.exports = { Microblog.prototype.generateNewMB = function (id, name, avatar, loc) { var host = loc + '/' + id var rememberMicroblog = function () { - tabulator.preferences.set('acct', host + '#' + id) + UI.preferences.set('acct', host + '#' + id) } var cbgenUserMB = function (a, success, c, d) { if (success) {
14
diff --git a/services/governance-service/app/utils/dashboard.js b/services/governance-service/app/utils/dashboard.js @@ -246,6 +246,8 @@ async function checkFlows(token) { totalPages = flowReproResult.meta.totalPages; } + if (!flowReproResult || !('data' in flowReproResult)) return []; + let affectedFlows = getFlowsWithProblematicSettings(flowReproResult.data); let page = 2;
9
diff --git a/src/fonts/ploticon.js b/src/fonts/ploticon.js @@ -171,7 +171,7 @@ module.exports = { ' <style>', ' .cls-1{fill:#8c99cd;}', ' .cls-2{fill:url(#linear-gradient);}', - ' .cls-3{fill:#777;}', + ' .cls-3{fill:#777; stroke:#FFF; strokewidth:2;}', ' </style>', ' <linearGradient id=\'linear-gradient\' x1=\'20.32\' y1=\'42.71\' x2=\'115.98\' y2=\'42.71\' gradientTransform=\'translate(-1.21 -2.82)\' gradientUnits=\'userSpaceOnUse\'>', ' <stop offset=\'0\' stop-color=\'#ff2c6d\'/>',
0
diff --git a/generators/client/templates/angular/src/main/webapp/app/shared/tracker/_tracker.service.ts b/generators/client/templates/angular/src/main/webapp/app/shared/tracker/_tracker.service.ts @@ -46,7 +46,7 @@ export class <%=jhiPrefixCapitalized%>TrackerService { } // building absolute path so that websocket doesnt fail when deploying with a context path const loc = this.$window.location; - const url = '//' + loc.host + loc.pathname + 'websocket/tracker'; + let url = '//' + loc.host + loc.pathname + 'websocket/tracker'; <%_ if (authenticationType === 'oauth2') { _%> /*jshint camelcase: false */ const authToken = this.$json.stringify(this.$localStorage.retrieve('authenticationToken')).access_token;
2
diff --git a/client/zone/vacuum-map.js b/client/zone/vacuum-map.js @@ -240,30 +240,47 @@ function VacuumMap(canvasElement) { ctx.scale(initialScalingFactor, initialScalingFactor); ctx.translate(-boundingBox.minX, -boundingBox.minY); - function redraw() { - // Clear the entire canvas - const p1 = ctx.transformedPoint(0, 0); - const p2 = ctx.transformedPoint(canvas.width, canvas.height); - ctx.clearRect(p1.x, p1.y, p2.x - p1.x, p2.y - p1.y); - + function clearContext(ctx) { ctx.save(); ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.restore(); + } - ctx.drawImage(mapDrawer.canvas, 0, 0); - if (marker && marker2) { - ctx.strokeStyle = "red"; - ctx.strokeRect(marker.x, marker.y, marker2.x - marker.x, marker2.y - marker.y); - } else if (marker) { - ctx.fillStyle = "red"; - ctx.fillRect(marker.x - 2, marker.y - 2, 4, 4); + function usingOwnTransform(ctx, f) { + const transform = ctx.getTransform().translate(0, 0); + ctx.save(); + ctx.setTransform(1, 0, 0, 1, 0, 0); + f(ctx, transform); + ctx.restore(); } + function redraw() { + clearContext(ctx); + + ctx.drawImage(mapDrawer.canvas, 0, 0); + let pathScale = pathDrawer.getScaleFactor(); ctx.scale(1 / pathScale, 1 / pathScale); ctx.drawImage(pathDrawer.canvas, 0, 0); ctx.scale(pathScale, pathScale); + + if (marker && marker2) { + usingOwnTransform(ctx, (ctx, transform) => { + ctx.strokeStyle = "red"; + const p1 = new DOMPoint(marker.x, marker.y).matrixTransform(transform); + const p2 = new DOMPoint(marker2.x, marker2.y).matrixTransform(transform); + + ctx.strokeRect(p1.x, p1.y, p2.x - p1.x, p2.y - p1.y); + }); + } else if (marker) { + usingOwnTransform(ctx, (ctx, transform) => { + ctx.strokeStyle = "red"; + const p1 = new DOMPoint(marker.x, marker.y).matrixTransform(transform); + + ctx.fillRect(p1.x - 10, p1.y - 10, 20, 20); + }); + } } redraw(); redrawCanvas = redraw;
7
diff --git a/client/app/components/Users.js b/client/app/components/Users.js @@ -7,9 +7,8 @@ import User from './User'; /** * The list of users (avatars) and their estimations. */ -const Users = ({users, ownUserId}) => { +const Users = ({users}) => { const userArray = Object.values(users); - userArray.sort((uOne, uTwo) => (uOne.id === ownUserId ? -1 : uTwo.id === ownUserId ? 1 : 0)); return ( <div className="users"> @@ -21,11 +20,9 @@ const Users = ({users, ownUserId}) => { }; Users.propTypes = { - users: PropTypes.object, - ownUserId: PropTypes.string + users: PropTypes.object }; export default connect((state) => ({ - users: state.users, - ownUserId: state.userId + users: state.users }))(Users);
13
diff --git a/website/src/docs/aws-s3.md b/website/src/docs/aws-s3.md @@ -26,8 +26,6 @@ There are broadly two ways of uploading to S3 in a browser. A server can generat There is also a separate plugin for S3 Multipart uploads. Multipart in this sense refers to Amazon's proprietary chunked, resumable upload mechanism for large files. See the [`@uppy/aws-s3-multipart`](/docs/aws-s3-multipart) documentation. -> Currently, there is an [issue](https://github.com/transloadit/uppy/issues/1915#issuecomment-546895952) with the this plugin when uploading many files. It requires a refactor in core parts of Uppy to address, which is planned for Q1 2020. In the mean time, if you expect users to upload more than a few dozen files at a time, consider using the [`@uppy/aws-s3-multipart`](/docs/aws-s3-multipart) plugin instead, which does not have this issue. - ## Installation This plugin is published as the `@uppy/aws-s3` package.
2
diff --git a/README.md b/README.md -![TypeOfNaN JavaScript Quizzes](typeOfNaN-logo.jpg 'TypeOfNaN JavaScript Quizzes') -___ -Learn JavaScript fundamentals through fun and challenging quizzes! +<div align="center"> +<img src="https://raw.githubusercontent.com/nas5w/typeofnan-javascript-quizzes/master/typeOfNaN-logo.jpg" alt="TypeOfNaN JavaScript Quizzes" /> -View the app online here: [https://quiz.typeofnan.dev](https://quiz.typeofnan.dev) +Learn JavaScript fundamentals through fun and challenging quizzes! :smiley: + +View the app: :point_right: [https://quiz.typeofnan.dev](https://quiz.typeofnan.dev) +</div> + +<hr /> + +[![GitHub issues](https://img.shields.io/github/issues/nas5w/typeofnan-javascript-quizzes)](https://github.com/nas5w/typeofnan-javascript-quizzes/issues) [![GitHub forks](https://img.shields.io/github/forks/nas5w/typeofnan-javascript-quizzes)](https://github.com/nas5w/typeofnan-javascript-quizzes/network) [![GitHub stars](https://img.shields.io/github/stars/nas5w/typeofnan-javascript-quizzes)](https://github.com/nas5w/typeofnan-javascript-quizzes/stargazers) [![GitHub license](https://img.shields.io/github/license/nas5w/typeofnan-javascript-quizzes)](https://github.com/nas5w/typeofnan-javascript-quizzes/blob/master/LICENSE) # :rocket: How to run the app locally -In order to use this app locally, the package manager _yarn_ **needs to be installed** +In order to use this app locally, the package manager _yarn_ needs to be installed If you don't have it installed yet, head over to: -[https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) + +:point_right: [https://yarnpkg.com/en/docs/install](https://yarnpkg.com/en/docs/install) + and install the latest yarn version for your system. -___ + ### 1. Clone the repo -- Run this command to clone the repo +:horse_racing: Run this command to clone the repo: + `git clone https://github.com/nas5w/typeofnan-javascript-quizzes` ### 2. Install dependencies -- First, before you can use the app, you have to run this command to install all the dependencies +First, before you can use the app, you have to run this command to install all the dependencies: + `yarn install` -### 3. Start and view the app +### 3. Start and view the app :eyes: + +After you've installed all the dependencies, run this command to start the app: + +`yarn start` :horse_racing: + +Then, in your browser, open http://localhost:8000/ to view it! :tada: :tada: + - - After you've installed all the dependencies, run this command to start the app -`yarn start` -___ -Then open, in your browser, this link `http://localhost:8000/` to view it! # :construction: Contributing @@ -35,10 +48,11 @@ I invite you to contribute to this repository! You can do so by opening an issue To directly contribute a quiz question, do the following: -1. Fork the repository +1. Fork the repository :fork_and_knife: 2. Add a new folder under `content/questions/` 3. Follow the patterns used in other questions in `content/questions` + If you have any questions, let me know! # :clipboard: About the app
0
diff --git a/packages/idyll-document/src/runtime.js b/packages/idyll-document/src/runtime.js @@ -154,28 +154,28 @@ const createWrapper = ({ theme, layout }) => { handleFormatComponent(info) { const allProps = Object.keys(info.props); // TODO -- should we display children prop? Probly not - const valuesOfProps = allProps.map((prop) => { - const val = info.props[prop]; - if (val) { - let propertyValue = null; - if (val.constructor === Object) { - propertyValue = JSON.stringify(val); + const propValues = allProps.map((prop) => { + const propValue = info.props[prop]; + if (propValue == null) { + return null; + } else { + let propValueString = null; + if (propValue.constructor === Object) { + propValueString = JSON.stringify(propValue); } else { - propertyValue = val.toString ? val.toString() : val; + propValueString = propValue.toString ? propValue.toString() : propValue; } return ( <li key ={prop.toString()}> - {prop.toString() + ": " + propertyValue} + {prop.toString() + ": " + propValueString} </li> ) - } else { - return null; } }); return ( <p> This component's type is {info.type.name ? info.type.name : info.type} - <ul>{valuesOfProps}</ul> + <ul>{propValues}</ul> </p> ); }
11
diff --git a/src/core/Core.test.js b/src/core/Core.test.js @@ -617,6 +617,23 @@ describe('src/Core', () => { expect(err.message).toEqual('You can only upload: image/gif') } }) + + it('should not allow a file if onBeforeFileAdded returned false', () => { + const core = new Core({ + onBeforeFileAdded: (file, files) => { + if (file.source === 'jest') { + return false + } + } + }) + core.addFile({ + source: 'jest', + name: 'foo.jpg', + type: 'image/jpeg', + data: new File([sampleImage], { type: 'image/jpeg' }) + }) + expect(Object.keys(core.state.files).length).toEqual(0) + }) }) describe('uploading a file', () => { @@ -679,6 +696,40 @@ describe('src/Core', () => { return expect(core.upload()).resolves.toMatchSnapshot() }) + + it('should not upload if onBeforeUpload returned false', () => { + const core = new Core({ + autoProceed: false, + onBeforeUpload: (files) => { + for (var fileId in files) { + if (files[fileId].name === '123.foo') { + return false + } + } + } + }) + core.addFile({ + source: 'jest', + name: 'foo.jpg', + type: 'image/jpeg', + data: new File([sampleImage], { type: 'image/jpeg' }) + }) + core.addFile({ + source: 'jest', + name: 'bar.jpg', + type: 'image/jpeg', + data: new File([sampleImage], { type: 'image/jpeg' }) + }) + core.addFile({ + source: 'jest', + name: '123.foo', + type: 'image/jpeg', + data: new File([sampleImage], { type: 'image/jpeg' }) + }) + return core.upload().catch((err) => { + expect(err).toMatchObject(new Error('Not starting the upload because onBeforeUpload returned false')) + }) + }) }) describe('removing a file', () => {
0
diff --git a/components/Notifications/SubscribeMenu.js b/components/Notifications/SubscribeMenu.js @@ -20,9 +20,13 @@ const styles = { }) } +const checkIfSubscribed = ({ data, subscription }) => + (subscription && subscription.active) || + (data && getSelectedDiscussionPreference(data) !== 'NONE') + const SubscribeMenu = ({ data, router, discussionId, subscription, style }) => { const [isSubscribed, setSubscribed] = useState( - getSelectedDiscussionPreference(data) !== 'NONE' + checkIfSubscribed({ data, subscription }) ) const [animate, setAnimate] = useState(false) @@ -36,8 +40,8 @@ const SubscribeMenu = ({ data, router, discussionId, subscription, style }) => { }, [animate]) useEffect(() => { - setSubscribed(getSelectedDiscussionPreference(data) !== 'NONE') - }, [data]) + setSubscribed(checkIfSubscribed({ data, subscription })) + }, [data, subscription]) const icon = <SubscribeIcon animate={animate} isSubscribed={isSubscribed} />
1
diff --git a/bin/enforcers/SecurityRequirement.js b/bin/enforcers/SecurityRequirement.js @@ -66,7 +66,7 @@ module.exports = { } definition.forEach(scope => { - if (scopes.includes(scope)) { + if (!scopes.includes(scope)) { const name = major === 2 ? 'securityDefinitions' : 'securitySchemes'; exception.at(key).message('Oauth2 scope not defined in ' + name); }
1
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md <!--- Provide a general summary of the issue in the Title above --> -<!-- This repository is only for the Franz client. Please use this form ( https://adlk.typeform.com/to/Bj7vGq ) for service requests or check out the guide ( https://github.com/meetfranz/plugins ) to create your own service integration. --> +<!-- This repository is only for the Franz client. Please use this form ( https://goo.gl/forms/zbwlx3VFvAo2oink2q ) for service requests or check out the guide ( https://github.com/meetfranz/plugins ) to create your own service integration. --> <!--- If you want to propose a feature, use this template: https://raw.githubusercontent.com/meetfranz/franz/master/.github/FEATURE_PROPOSAL_TEMPLATE.md -->
14
diff --git a/packages/2018-disaster-resilience/src/state/tillamook-county-earthquake-casualty-estimates/api.js b/packages/2018-disaster-resilience/src/state/tillamook-county-earthquake-casualty-estimates/api.js @@ -3,7 +3,7 @@ import requestAdapter from "../request-adapter"; const apiConfig = { requestAdapter }; -const HOST = "https://service.civicpdx.org/disaster-resilience"; +const HOST = "http://service.civicpdx.org/disaster-resilience"; const apiDesc = { getEarthquakeCasualtiesData: {
2
diff --git a/includes/Modules/Analytics_4/Settings.php b/includes/Modules/Analytics_4/Settings.php @@ -94,9 +94,9 @@ class Settings extends Module_Settings implements Setting_With_Owned_Keys_Interf if ( isset( $option['useSnippet'] ) ) { $option['useSnippet'] = (bool) $option['useSnippet']; } - if ( isset( $option['googleTagID'] ) && ! empty( $option['googleTagID'] ) ) { + if ( isset( $option['googleTagID'] ) ) { if ( ! preg_match( '/^(G|GT|AW)-[a-zA-Z0-9]+$/', $option['googleTagID'] ) ) { - return false; + $option['googleTagID'] = ''; } } }
2
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/popover.js @@ -610,10 +610,13 @@ RED.popover = (function() { var target = options.target; var align = options.align || "right"; var offset = options.offset || [0,0]; + var xPos = options.x; + var yPos = options.y; + var isAbsolutePosition = (xPos !== undefined && yPos !== undefined) - var pos = target.offset(); - var targetWidth = target.width(); - var targetHeight = target.outerHeight(); + var pos = isAbsolutePosition?{left:xPos, top: yPos}:target.offset(); + var targetWidth = isAbsolutePosition?0:target.width(); + var targetHeight = isAbsolutePosition?0:target.outerHeight(); var panelHeight = panel.height(); var panelWidth = panel.width();
11
diff --git a/commands/plugin_bot.go b/commands/plugin_bot.go @@ -647,6 +647,7 @@ func HandleMessageCreate(evt *eventsystem.EventData) { return } + // ping pong split := strings.Split(m.Content, ";") if split[0] != ":PONG" || len(split) < 2 { return @@ -658,7 +659,12 @@ func HandleMessageCreate(evt *eventsystem.EventData) { } taken := time.Duration(time.Now().UnixNano() - parsed) - common.BotSession.ChannelMessageEdit(m.ChannelID, m.ID, "Received pong, took: "+taken.String()) + + started := time.Now() + common.BotSession.ChannelMessageEdit(m.ChannelID, m.ID, "Gatway (http send -> gateway receive time): "+taken.String()) + httpPing := time.Since(started) + + common.BotSession.ChannelMessageEdit(m.ChannelID, m.ID, "HTTP API (Edit Msg): "+httpPing.String()+"\nGatway: "+taken.String()) } type GuildsSortUsers []*discordgo.Guild
7
diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js @@ -182,6 +182,102 @@ class SimpleKeyboard { }) } + addButtonTheme = (buttons, className) => { + if(!className || !buttons) + return false; + + buttons.split(" ").forEach(button => { + className.split(" ").forEach(classNameItem => { + if(!this.options.buttonTheme) + this.options.buttonTheme = []; + + let classNameFound = false; + + /** + * If class is already defined, we add button to class definition + */ + this.options.buttonTheme.map(buttonTheme => { + + if(buttonTheme.class.split(" ").includes(classNameItem)){ + classNameFound = true; + + let buttonThemeArray = buttonTheme.buttons.split(" "); + if(!buttonThemeArray.includes(button)){ + classNameFound = true; + buttonThemeArray.push(button); + buttonTheme.buttons = buttonThemeArray.join(" "); + } + } + return buttonTheme; + }); + + /** + * If class is not defined, we create a new entry + */ + if(!classNameFound){ + this.options.buttonTheme.push({ + class: classNameItem, + buttons: buttons + }); + } + + }); + }); + + this.render(); + } + + removeButtonTheme = (buttons, className) => { + /** + * When called with empty parameters, remove all button themes + */ + if(!buttons && !className){ + this.options.buttonTheme = []; + this.render(); + return false; + } + + /** + * If buttons are passed and buttonTheme has items + */ + if(buttons && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length){ + let buttonArray = buttons.split(" "); + buttonArray.forEach((button, key) => { + this.options.buttonTheme.map((buttonTheme, index) => { + + /** + * If className is set, we affect the buttons only for that class + * Otherwise, we afect all classes + */ + if( + (className && className.includes(buttonTheme.class)) || + !className + ){ + let filteredButtonArray; + + if(buttonArray.includes(button)){ + filteredButtonArray = buttonTheme.buttons.split(" ").filter(item => item !== button); + } + + /** + * If buttons left, return them, otherwise, remove button Theme + */ + if(filteredButtonArray.length){ + buttonTheme.buttons = filteredButtonArray.join(" "); + } else { + this.options.buttonTheme.splice(index, 1); + buttonTheme = null; + } + + } + + return buttonTheme; + }); + }); + + this.render(); + } + } getButtonElement = (button) => { let output;
7
diff --git a/constants.js b/constants.js @@ -39,5 +39,6 @@ export function makePromise() { p.reject = reject; return p; } -const isLocal = false; -export const storageHost = !isLocal ? 'https//storage.exokit.org' : 'https://127.0.0.1:443/storage'; + +export const storageHost = 'https//storage.exokit.org'; +// export const storageHost = 'https://127.0.0.1:443/storage';
2
diff --git a/services/importer/spec/unit/unp_spec.rb b/services/importer/spec/unit/unp_spec.rb @@ -4,7 +4,7 @@ require_relative '../../lib/importer/unp' include CartoDB::Importer2 module FileUtils - class Entry_ + class Entry_ # rubocop:disable ClassAndModuleCamelCase def copy_file(dest) Open3.capture2('cp', path, dest)
8
diff --git a/src/sections/Home/Proud-maintainers/index.js b/src/sections/Home/Proud-maintainers/index.js import React from "react"; -import { Link } from "gatsby"; import { Container, Row, Col } from "../../../reusecore/Layout"; import SectionTitle from "../../../reusecore/SectionTitle"; -import Button from "../../../reusecore/Button"; import Envoy from "../../../assets/images/service-mesh-icons/envoy/horizontal/color/envoy-horizontal-color.svg"; import Linkerd from "../../../assets/images/service-mesh-icons/linkerd/horizontal/color/linkerd-horizontal-color.svg"; import Image3 from "../../../assets/images/service-mesh-icons/service-mesh.svg"; import Traefik from "../../../assets/images/service-mesh-icons/traefik.svg"; -import Kuma from "../../../assets/images/service-mesh-icons/kuma/horizontal/color/kuma-horizontal-color.svg"; import Istio from "../../../assets/images/service-mesh-icons/istio.svg"; import OSM from "../../../assets/images/service-mesh-icons/open-service-mesh/stacked/color/openservicemesh-stacked-color.svg"; import SMI from "../../../assets/images/service-mesh-icons/service-mesh-interface/horizontal-stackedtext/color/servicemeshinterface-horizontal-stackedtext-color.svg"; @@ -51,7 +48,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={CNCF} alt="" /> + <img src={CNCF} alt="CNCF" /> </Col> </Row> </div> @@ -60,7 +57,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={Envoy} alt="" /> + <img src={Envoy} alt="Envoy" /> </Col> </Row> </div> @@ -69,7 +66,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={Linkerd} alt="" /> + <img src={Linkerd} alt="Linkerd" /> </Col> </Row> </div> @@ -78,7 +75,7 @@ const ProudMaintainers = () => { <div className="project-div"> <Row> <Col sm={6} md={6} lg={6}> - <img src={Image3} alt="" width="100" height="100" /> + <img src={Image3} alt="Service-Mesh" width="100" height="100" /> </Col> <Col className="company-name" sm={6} md={6} lg={6}> <h4>Service Mesh</h4> @@ -90,7 +87,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={Meshery} alt="" /> + <img src={Meshery} alt="Meshery" /> </Col> </Row> </div> @@ -99,7 +96,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={OAM} alt="" /> + <img src={OAM} alt="OAM" /> </Col> </Row> </div> @@ -112,7 +109,7 @@ const ProudMaintainers = () => { <div className="project-div"> <Row> <Col sm={6} md={6} lg={6}> - <img src={Istio} alt="" width="100" height="100" /> + <img src={Istio} alt="Istio" width="100" height="100" /> </Col> <Col className="company-name" sm={6} md={6} lg={6}> <h4>Istio</h4> @@ -124,7 +121,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={OSM} alt="" /> + <img src={OSM} alt="OSM" /> </Col> </Row> </div> @@ -133,7 +130,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={SMP} alt="" /> + <img src={SMP} alt="SMP" /> </Col> </Row> </div> @@ -142,7 +139,7 @@ const ProudMaintainers = () => { <div className="project-div"> <Row> <Col sm={6} md={6} lg={6}> - <img src={ImageHub} alt="" width="100" height="100" /> + <img src={ImageHub} alt="ImageHub" width="100" height="100" /> </Col> <Col className="company-name" sm={6} md={6} lg={6}> <h4>Image Hub</h4> @@ -154,7 +151,7 @@ const ProudMaintainers = () => { <div className="project-div-up"> <Row> <Col sm={12} md={12} lg={12}> - <img src={SMI} alt="" /> + <img src={SMI} alt="SMI" /> </Col> </Row> </div> @@ -163,7 +160,7 @@ const ProudMaintainers = () => { <div className="project-div"> <Row> <Col sm={6} md={6} lg={6}> - <img src={Traefik} alt="" width="100" height="100" /> + <img src={Traefik} alt="Traefik" width="100" height="100" /> </Col> <Col className="company-name" sm={6} md={6} lg={6}> <h4>Traefik Mesh</h4>
7
diff --git a/angular/projects/spark-angular/ng-package.json b/angular/projects/spark-angular/ng-package.json "lib": { "umdModuleIds": { "lodash": "lodash", - "lodash/uniqueId": "lodash/uniqueId", + "lodash/uniqueId": "lodash", "tiny-date-picker": "tiny-date-picker", "focus-visible": "focus-visible" },
3
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -21,10 +21,11 @@ and fixes the following bugs: * Dockerfile was missing EXPOSE $PORT; * Bug when removing user from board that generate activity for all cards of the board. Add check before user is one owner - of the card before adding activity. + of the card before adding activity; +* Improve Wekan performance by adding indexes to MongoDB; * Typos. -Thanks to GitHub users fmonthel, jLouzado, pra85, vuxor, whittssg2 +Thanks to GitHub users fmonthel, jLouzado, maulal, pra85, vuxor, whittssg2 and xet7 for their contributions. # v0.11.1-rc1 2017-02-10 Wekan prerelease
7
diff --git a/smart-contracts/test/Lock/erc721/transferFrom.js b/smart-contracts/test/Lock/erc721/transferFrom.js @@ -76,7 +76,7 @@ contract('Lock ERC721', (accounts) => { it('should abort if the recipient is 0x', () => { return locks['FIRST'] - .transferFrom(from, 0, from, { + .transferFrom(from, Web3Utils.padLeft(0, 40), from, { from }) .then(() => {
4
diff --git a/token-metadata/0x6c972b70c533E2E045F333Ee28b9fFb8D717bE69/metadata.json b/token-metadata/0x6c972b70c533E2E045F333Ee28b9fFb8D717bE69/metadata.json "symbol": "FRY", "address": "0x6c972b70c533E2E045F333Ee28b9fFb8D717bE69", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/docs/content/examples/charts/bar/Combination.js b/docs/content/examples/charts/bar/Combination.js -import { HtmlElement, Grid, Repeater } from 'cx/widgets'; +import { HtmlElement, Grid, Repeater, Content, Tab } from 'cx/widgets'; import { Controller, PropertySelection } from 'cx/ui'; import { Svg, Rectangle, Text } from 'cx/svg'; import { Gridlines, NumericAxis, CategoryAxis, Chart, Bar } from 'cx/charts'; @@ -114,7 +114,13 @@ export const Combination = <cx> </div> </div> - <CodeSnippet putInto="code" fiddle="mQSxhSAU">{` + <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="chart" mod="code" default><code>Chart</code></Tab> + </div> + + <CodeSnippet fiddle="mQSxhSAU" visible-expr="{$page.code.tab}=='controller'">{` class PageController extends Controller { init() { super.init(); @@ -138,7 +144,8 @@ export const Combination = <cx> index: { bind: '$index' }, records: { bind: '$page.points' } }); - + `}</CodeSnippet> + <CodeSnippet fiddle="mQSxhSAU" visible-expr="{$page.code.tab}=='chart'">{` var legendStyle = "border-width:1px;border-style:solid;display:inline-block;width:20px;height:10px;"; <Svg style="width:600px; height:600px;"> <Chart offset="20 -20 -40 150" axes={{ y: { type: CategoryAxis, vertical: true, inverted: true }, x: { type: NumericAxis, snapToTicks: 1 } }}> @@ -207,6 +214,7 @@ export const Combination = <cx> ]} selection={{type: PropertySelection, keyField: 'id', bind: '$page.selection' }}/> `}</CodeSnippet> + </Content> </CodeSplit> </Md> </cx>;
0
diff --git a/token-metadata/0x0000000000085d4780B73119b644AE5ecd22b376/metadata.json b/token-metadata/0x0000000000085d4780B73119b644AE5ecd22b376/metadata.json "symbol": "TUSD", "address": "0x0000000000085d4780B73119b644AE5ecd22b376", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/player/index.html b/player/index.html //elem.style.display = 'none'; var animData = { container: elem, - renderer: 'svg', + renderer: 'canvas', loop: true, - autoplay: false, + autoplay: true, rendererSettings: { progressiveLoad:false, imagePreserveAspectRatio: 'xMidYMid meet' }, - path: 'https://storage.googleapis.com/skia-cdn/misc/dna.json' + path: 'exports/render/data.json' }; anim = lottie.loadAnimation(animData); // anim.setSubframe(false);
3
diff --git a/src/test/framework/flow.js b/src/test/framework/flow.js @@ -110,6 +110,7 @@ var steps = [ //Test Cloud Pools action: 'node', name: 'Cloud Pools Test', + ignore_failure: true, params: [{ arg: './src/test/system_tests/test_cloud_pools' }],
8
diff --git a/articles/tutorials/sending-events-to-splunk.md b/articles/tutorials/sending-events-to-splunk.md @@ -11,7 +11,7 @@ This example shows how you can very easily connect Auth0 to Splunk and stream `s ## Record a SignUp or Login Event in Splunk -This Auth0 rule uses the [Splunk REST API](http://dev.splunk.com/view/rest-api-overview/SP-CAAADP8) to record `signup` and `login` events from users to your apps. This is tracked with the `signedUp` property. If the property is present, then we assume this is a `login` event. Otherwise we assume that this event is a new `signup`. +This [Auth0 rule](/rules) uses the [Splunk REST API](http://dev.splunk.com/view/rest-api-overview/SP-CAAADP8) to record `signup` and `login` events from users to your apps. This is tracked with the `signedUp` property. If the property is present, then we assume this is a `login` event. Otherwise we assume that this event is a new `signup`. You can send any number of properties. This sample sends contextual information like the user IP address (can be used for location), the application, the username, etc. @@ -22,7 +22,7 @@ When enabled, this rule will start sending events that will show up on Splunk's ![](/media/articles/scenarios/splunk/splunk-dashbaord.png) ::: panel Securely Storing Credentials -This example has your Splunk credentials hard-coded into the Rule, but if you would prefer, you can store them instead in the `configuration` object (see the [Settings](${manage_url}/#/rules) under the list of your Rules). This allows you to use those credentials in multiple Rules if you require, and also prevents you from having to store them directly in the Rule code. +This example has your Splunk credentials hard-coded into the rule, but if you prefer, you can store them instead in the `configuration` object (see the [Settings](${manage_url}/#/rules) under the list of your rules). This allows you to use those credentials in multiple rules if you require, and also prevents you from having to store them directly in the code. ::: ```js
0
diff --git a/Courses/intelligence_learning/session7/7_1_color_classifier/sketch.js b/Courses/intelligence_learning/session7/7_1_color_classifier/sketch.js @@ -13,7 +13,11 @@ function setup() { let submit = createButton('submit'); submit.mousePressed(sendData); + + +} + function sendData() { // send this data to something? - } + // send the data to firebase! }
1
diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js b/packages/node_modules/@node-red/editor-client/src/js/ui/utils.js @@ -789,7 +789,11 @@ RED.utils = (function() { return RED.settings.apiRootUrl+"icons/"+iconPath.module+"/"+iconPath.file; } } else { - if (def.category === 'subflows') { + // This could be a non-core node trying to use a core icon. + iconPath.module = 'node-red'; + if (isIconExists(iconPath)) { + return RED.settings.apiRootUrl+"icons/"+iconPath.module+"/"+iconPath.file; + } else if (def.category === 'subflows') { return RED.settings.apiRootUrl+"icons/node-red/subflow.png"; } else { return RED.settings.apiRootUrl+"icons/node-red/arrow-in.png";
9
diff --git a/src/pages/using-spark/components/divider.mdx b/src/pages/using-spark/components/divider.mdx @@ -8,7 +8,7 @@ import ComponentPreview from '../../../components/ComponentPreview'; Divider is a visual break between content. <ComponentPreview - componentName="divider--as-a-span-element" + componentName="divider--default-story" hasReact hasAngular hasHTML
3
diff --git a/Source/Scene/Cesium3DTilePointFeature.js b/Source/Scene/Cesium3DTilePointFeature.js @@ -463,7 +463,7 @@ define([ return this._polyline.material.uniforms.color; }, set : function(value) { - this._polyline.material.uniforms.color = value; + this._polyline.material.uniforms.color = Color.clone(value, this._polyline.material.uniforms.color); } },
1
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb @@ -9,7 +9,7 @@ I18N_SUPPORTED_LOCALES = I18N_LOCALES.reject{|l| l == 'qqq' || l =~ /\-phonetic/ # set up fallbacks require "i18n/backend/fallbacks" I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) -Rails.application.config.i18n.fallbacks = [ :en ] +I18n.fallbacks.map( iw: :he ) # from and to locales for the translate gem (translation ui) Rails.application.config.from_locales = [:en, :es]
4
diff --git a/token-metadata/0x83e6f1E41cdd28eAcEB20Cb649155049Fac3D5Aa/metadata.json b/token-metadata/0x83e6f1E41cdd28eAcEB20Cb649155049Fac3D5Aa/metadata.json "symbol": "POLS", "address": "0x83e6f1E41cdd28eAcEB20Cb649155049Fac3D5Aa", "decimals": 18, - "dharmaVerificationStatus": "UNVERIFIED" + "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file
3
diff --git a/templates/lively-debugger.js b/templates/lively-debugger.js @@ -294,7 +294,7 @@ export default class Debugger extends Morph { scriptableDebuggerButtonClick(evt) { lively.openWorkspace("this.sendCommandToDebugger('Debugger.stepOver', {});",0).then((cmp) => { - cmp.parentElement.setAttribute("title", 'Debugger Fun'); + cmp.parentElement.setAttribute("title", 'Debugger Workspace'); cmp.setDoitContext(this); }) }
10
diff --git a/src/encoded/types/biosample.py b/src/encoded/types/biosample.py @@ -99,11 +99,6 @@ class Biosample(Item, CalculatedBiosampleSlims, CalculatedBiosampleSynonyms): 'rnais.documents.lab', 'organism', 'references', - 'talens', - 'talens.documents', - 'talens.documents.award', - 'talens.documents.lab', - 'talens.documents.submitted_by', 'genetic_modifications', 'genetic_modifications.award', 'genetic_modifications.lab',
2
diff --git a/packages/@uppy/core/src/_variables.scss b/packages/@uppy/core/src/_variables.scss // Fonts -$font-family-base: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, +$font-family-base: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !default; // Colors
2
diff --git a/defaultTheme.js b/defaultTheme.js @@ -169,9 +169,9 @@ module.exports = function() { tighter: '-.05em', tight: '-.025em', normal: '0', - wide: '0.025em', - wider: '0.05em', - widest: '0.1em', + wide: '.025em', + wider: '.05em', + widest: '.1em', }, textColor: theme => theme.colors, backgroundColor: theme => theme.colors,
2
diff --git a/lib/classes/PluginManager.test.js b/lib/classes/PluginManager.test.js @@ -391,6 +391,7 @@ describe('PluginManager', () => { ({ restoreEnv } = overrideEnv({ whitelist: ['APPDATA', 'PATH'] })); serverless = new Serverless(); serverless.cli = new CLI(); + serverless.processedInput = { commands: [], options: {} }; pluginManager = new PluginManager(serverless); pluginManager.serverless.config.servicePath = 'foo'; });
7
diff --git a/accessibility-checker-engine/src/v2/checker/accessibility/nls/index.ts b/accessibility-checker-engine/src/v2/checker/accessibility/nls/index.ts @@ -500,7 +500,7 @@ let a11yNls = { "WCAG20_Label_RefValid": { 0: "The 'for' attribute must reference a non-empty, unique 'id' attribute of an <input> element", "Pass_0": "Rule Passed", - "Fail_1": "The value \"{0}\" of the `<label>` `for` attribute is not the `id` of a valid `<input>` element" + "Fail_1": "The value "{0}" of the 'for' attribute is not the 'id' of a valid <input> element" }, // JCH - DONE "WCAG20_Elem_UniqueAccessKey": {
2
diff --git a/src/server/routes/apiv3/slack-integration-settings.js b/src/server/routes/apiv3/slack-integration-settings.js @@ -359,12 +359,12 @@ module.exports = (crowi) => { * /slack-integration-settings/slack-app-integrations: * put: * tags: [SlackIntegration] - * operationId: putAccessTokens + * operationId: putSlackAppIntegrations * summary: /slack-integration - * description: Generate accessTokens + * description: Generate SlackAppIntegrations * responses: * 200: - * description: Succeeded to update access tokens for slack + * description: Succeeded to create new slack app integration */ router.put('/slack-app-integrations', loginRequiredStrictly, adminRequired, csrf, async(req, res) => { let checkTokens;
7
diff --git a/package.json b/package.json "lint": "npm run lint:ts && npm run lint:js", "packages:purge": "rimraf node_modules", "packages:reinstall": "npm run packages:purge && npm install", - "postinstall": "lerna bootstrap && lerna exec --no-sort -- node ../../bin/link", + "postinstall": "lerna bootstrap && lerna exec --no-sort --concurrency 1 -- node ../../bin/link", "prepublish": "npm run build", "pretest:bench": "karma start test/karma/karma.bench.conf.js --log-level debug", "test:bench": "node test/karma/bench.js",
12
diff --git a/src/sassdoc.js b/src/sassdoc.js @@ -337,10 +337,7 @@ function srcEnv (documentize, stream) { function onEmpty (data, env) { let message = `SassDoc could not find anything to document.\n * Are you still using \`/**\` comments ? They're no more supported since 2.0. - See <http://sassdoc.com/upgrading/#c-style-comments>. - * Are you documenting actual Sass items (variables, functions, mixins, placeholders) ? - SassDoc doesn't support documenting CSS selectors. - See <http://sassdoc.com/frequently-asked-questions/#does-sassdoc-support-css-classes-and-ids->.\n` + See <http://sassdoc.com/upgrading/#c-style-comments>.\n` if (!data.length) { env.emit('warning', new errors.Warning(message))
2
diff --git a/lib/bal/api.js b/lib/bal/api.js @@ -118,6 +118,10 @@ export async function getStats() { return _fetch(`${BACKEND_URL}/datasets/stats`, 'GET') } +export async function getBALStats() { + return _fetch(`https://plateforme.adresse.data.gouv.fr/ban/stats`, 'GET') +} + export async function getReport(id) { const url = `${BACKEND_URL}/datasets/${id}/report` return _fetch(url, 'GET')
0
diff --git a/item-spec/examples/sample-full.json b/item-spec/examples/sample-full.json {"rel": "root", "href": "http://cool-sat.com/catalog/catalog.json"}, {"rel": "parent", "href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/catalog.json"}, {"rel": "collection", "href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/catalog.json"}, - {"rel": "acquisition", "href": "http://cool-sat.com/catalog/acquisitions/20160503_56"} + {"rel": "alternate", "type": "text/html", "href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/CS3-20160503_132130_04.html"} ], "assets": { "analytic": { "href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/extended-metadata.json", "title": "Extended Metadata", "type": "application/json", - "roles": [ "thumbnail" ] + "roles": [ "metadata" ] }, "ephemeris": { "href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/S3-20160503_132130_04.EPH",
0
diff --git a/src/screens/application/index.js b/src/screens/application/index.js @@ -10,7 +10,7 @@ import { PinCode } from '../pinCode'; import ErrorBoundary from './screen/errorBoundary'; const Application = () => { - const [showAnimation, setShowAnimation] = useState(true); //process.env.NODE_ENV !== 'development'); + const [showAnimation, setShowAnimation] = useState(process.env.NODE_ENV !== 'development'); useEffect(() => { SplashScreen.hide();
13
diff --git a/lib/node_modules/@stdlib/math/base/blas/dasum/src/Makefile b/lib/node_modules/@stdlib/math/base/blas/dasum/src/Makefile @@ -104,7 +104,11 @@ EMCC_SHARED_FLAGS := \ -s NO_FILESYSTEM=1 \ -s ERROR_ON_UNDEFINED_SYMBOLS=1 \ -s ERROR_ON_MISSING_LIBRARIES=1 \ - -s NODEJS_CATCH_EXIT=0 + -s NODEJS_CATCH_EXIT=0 \ + -s TOTAL_STACK=1024 \ + -s TOTAL_MEMORY=16777216 \ + -s ALLOW_MEMORY_GROWTH=1 \ + -s ABORTING_MALLOC=0 EMCC_ASM_FLAGS := $(EMCC_SHARED_FLAGS) \ -s MODULARIZE=0 \
12
diff --git a/src/post/PostSingleContent.scss b/src/post/PostSingleContent.scss .PostSingleContent__content { font-size: 20px; line-height: 1.6em; - font-family: Georgia, Cambria, "Times New Roman", Times, serif; + font-family: "DroidSerif", Georgia, Cambria, "Times New Roman", Times, serif; overflow: hidden; - p { - text-align: justify; - } - img { max-width: 100%; height: auto; ol { margin-bottom: 2em; + } - li { + ol li { list-style-type: decimal !important; } - } ul { margin-bottom: 2em; padding: 1em; } - h4 { - font-size: 1.4rem; + h4, h5, h6 { + font-size: 1em; font-weight: bold; line-height: 1.6em; margin-bottom: 1em;
7
diff --git a/src/components/molecules/BillboardAlt/index.js b/src/components/molecules/BillboardAlt/index.js @@ -8,7 +8,7 @@ const BillboardAlt = ({ image, heading, subtitle, cta, background, ctaUrl }) => <div className={styles.wrapper} style={{background:`${background}`}}> <Container> <Flex className={styles.container}> - <Flex className={styles.image} backgroundImage={image} /> + {image ? <Flex className={styles.image} backgroundImage={image} /> : null } <Flex className={styles.text} direction="column"
12
diff --git a/packages/build/src/plugins/ipc.js b/packages/build/src/plugins/ipc.js @@ -22,16 +22,7 @@ const getEventFromChild = async function(childProcess, expectedEvent) { throw new Error(`Could not receive event '${expectedEvent}' from child process because it already exited`) } - // If the child process exited, we abort listening to the event - const [argA, argB] = await pEvent(childProcess, ['message', 'exit'], { multiArgs: true }) - - // We distinguish exit event from message event with arity - if (argB !== undefined) { - throw new Error(`Plugin exited with exit code ${argA} and signal ${argB}. -Instead of calling process.exit(), plugin methods should either return (on success) or throw errors (on failure).`) - } - - const [eventName, payload] = argA + const [eventName, payload] = await getMessageFromChild(childProcess) if (eventName === 'error') { throw new Error(payload.stack) @@ -44,6 +35,25 @@ Instead of calling process.exit(), plugin methods should either return (on succe return { eventName, payload } } +// Wait for `message` event. However stops if child process exits. +// We need to make `p-event` listeners are properly cleaned up too. +const getMessageFromChild = async function(childProcess) { + const messagePromise = pEvent(childProcess, 'message') + const exitPromise = pEvent(childProcess, 'exit', { multiArgs: true }) + try { + return await Promise.race([messagePromise, getExit(exitPromise)]) + } finally { + messagePromise.cancel() + exitPromise.cancel() + } +} + +const getExit = async function(exitPromise) { + const [exitCode, signal] = await exitPromise + throw new Error(`Plugin exited with exit code ${exitCode} and signal ${signal}. +Instead of calling process.exit(), plugin methods should either return (on success) or throw errors (on failure).`) +} + // Respond to events from parent to child process. // This runs forever until `childProcess.kill()` is called. const getEventsFromParent = async function(callback) {
7
diff --git a/generators/php.js b/generators/php.js @@ -92,7 +92,6 @@ Blockly.PHP.ORDER_ASSIGNMENT = 20; // = += -= *= /= %= <<= >>= ... Blockly.PHP.ORDER_LOGICAL_AND_WEAK = 21; // and Blockly.PHP.ORDER_LOGICAL_XOR = 22; // xor Blockly.PHP.ORDER_LOGICAL_OR_WEAK = 23; // or -Blockly.PHP.ORDER_COMMA = 24; // , Blockly.PHP.ORDER_NONE = 99; // (...) /**
2
diff --git a/src/generators/posthtml.js b/src/generators/posthtml.js @@ -29,17 +29,7 @@ module.exports = async (html, config) => { ) return posthtml([ - layouts( - merge( - { - strict: false, - plugins: [ - expressions({...expressionsOptions, locals}) - ] - }, - layoutsOptions - ) - ), + layouts({strict: false, ...layoutsOptions}), fetchPlugin, modules({ parser: posthtmlOptions,
13
diff --git a/src/image.js b/src/image.js @@ -35,6 +35,7 @@ class gltfImage extends GltfObject { if (this.uri !== undefined) { + this.uri = this.uri.replace(/\.\//, ''); // Remove preceding './' from URI this.uri = basePath + this.uri; } }
2
diff --git a/articles/quickstart/native/ios-swift/07-linking-accounts.md b/articles/quickstart/native/ios-swift/07-linking-accounts.md @@ -55,23 +55,6 @@ Auth0 ## Retrieve the Linked Accounts -You can retrieve the linked accounts (user identities). To achieve this, fetch the user's profile as shown in the [User Sessions](/quickstart/native/ios-swift/03-user-sessions#validate-an-accesstoken) tutorial: - -```swift -// SessionManager.swift - -Auth0 - .authentication() - .userInfo(withAccessToken: accessToken) - .start { result in - switch(result) { - case .success(let profile): - // Store profile - case .failure(let error): - // Handle error - } -``` - Once you have the `sub` value from the profile, you can retrieve user identities. Call the management API: ```swift
2
diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js @@ -704,29 +704,6 @@ function updateReportWithNewAction( }); } -/** - * Toggles the pinned state of the report. - * - * @param {Object} report - */ -function togglePinnedState(report) { - const pinnedValue = !report.isPinned; - - // Optimistically pin/unpin the report before we send out the command - const optimisticData = [ - { - onyxMethod: 'merge', - key: `${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`, - value: pinnedValue, - }, - ]; - - API.write('TogglePinnedChat', { - reportID: report.reportID, - pinnedValue, - }, {optimisticData}); -} - /** * Get the private pusher channel name for a Report. * @@ -778,13 +755,6 @@ function subscribeToUserEvents() { pushJSON => updateReportActionMessage(pushJSON.reportID, pushJSON.sequenceNumber, pushJSON.message), true, ); - - // Live-update a report's pinned state when a 'report toggle pinned' event is received. - PusherUtils.subscribeToPrivateUserChannelEvent( - Pusher.TYPE.REPORT_TOGGLE_PINNED, - currentUserAccountID, - pushJSON => togglePinnedState(pushJSON.report), - ); } /** @@ -1279,6 +1249,29 @@ function updateLastReadActionID(reportID, sequenceNumber, manuallyMarked = false }); } +/** + * Toggles the pinned state of the report. + * + * @param {Object} report + */ +function togglePinnedState(report) { + const isPinned = !report.isPinned; + + // Optimistically pin/unpin the report before we send out the command + const optimisticData = [ + { + onyxMethod: 'merge', + key: `${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`, + value: {isPinned}, + }, + ]; + + API.write('TogglePinnedChat', { + reportID: report.reportID, + isPinned, + }, {optimisticData}); +} + /** * Saves the comment left by the user as they are typing. By saving this data the user can switch between chats, close * tab, refresh etc without worrying about loosing what they typed out.
10
diff --git a/examples/browser.html b/examples/browser.html @@ -36,9 +36,7 @@ function init() { directionalLight.position.set(1, 1, 1); scene.add(directionalLight); - const gl = renderer.getContext(); - const tex = gl.createTexture(); - brwsr = new Browser(gl, tex, window.innerWidth, window.innerHeight, 'https://google.com'); + brwsr = new Browser(renderer.getContext(), window.innerWidth, window.innerHeight, 'https://google.com'); planeMesh = (() => { const geometry = new THREE.PlaneBufferGeometry(0.9, 0.9) @@ -63,7 +61,7 @@ function init() { 16 ); const properties = renderer.properties.get(texture); - properties.__webglTexture = tex; + properties.__webglTexture = brwsr.texture; properties.__webglInit = true; const material = new THREE.MeshBasicMaterial({ map: texture,
4
diff --git a/src/pages/santa.js b/src/pages/santa.js @@ -77,7 +77,7 @@ export default () => ( </Lead> <IconButton is={LargeButton.withComponent(Link)} - to="https://santa.hackclub.com" + href="https://santa.hackclub.com" glyph="freeze" mt={3} >
1
diff --git a/src/service/data-util.service.ts b/src/service/data-util.service.ts @@ -68,7 +68,7 @@ export class JhiDataUtils { const fileURL = `data:${contentType};base64,${data}`; const win = window.open(); win.document.write( - '<iframe src="' + fileURL + '" frameborder="0" style="border:0; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;" allowfullscreen></iframe>'); + '<iframe src="' + fileURL + '" frameborder="0" style="border:0; top:0; left:0; bottom:0; right:0; width:100%; height:100%;" allowfullscreen></iframe>'); } }
2
diff --git a/deploy/helm/minikube-dev.yml b/deploy/helm/minikube-dev.yml @@ -16,14 +16,16 @@ global: openfaas: # turn off auth over openfass gateway for ease of debugging allowAdminOnly: false - urlProcessors: - # Remove the image section to make url processors pull your test docker images from your local docker registry + + # Remove the section to make url processors pull your test docker images from your local docker registry # Make sure you build & push the connector docker images to your local docker registry + urlProcessors: image: repository: docker.io/data61 tag: 0.0.57-0 pullPolicy: IfNotPresent imagePullSecret: false + connectors: includeInitialJobs: true includeCronJobs: false @@ -34,14 +36,16 @@ global: tag: 0.0.57-0 pullPolicy: IfNotPresent imagePullSecret: false - minions: {} - # Remove the image section to make minions pull your test docker images from local docker registry + + # Remove the section to make minions pull your test docker images from local docker registry # Make sure you build & push the connector docker images to your local docker registry - # image: - # repository: docker.io/data61 - # tag: 0.0.57-0 - # pullPolicy: IfNotPresent - # imagePullSecret: false + minions: + image: + repository: docker.io/data61 + tag: 0.0.57-0 + pullPolicy: IfNotPresent + imagePullSecret: false + magda: magda-core: gateway:
12
diff --git a/package.json b/package.json "name": "find-and-replace", "main": "./lib/find", "description": "Find and replace within buffers and across the project.", - "version": "0.215.9", + "version": "0.215.10", "license": "MIT", "activationCommands": { "atom-workspace": [
6
diff --git a/spec/requests/carto/api/api_keys_controller_spec.rb b/spec/requests/carto/api/api_keys_controller_spec.rb @@ -20,6 +20,7 @@ describe Carto::Api::ApiKeysController do @auth_api_feature_flag = FactoryGirl.create(:feature_flag, name: 'auth_api', restricted: false) @user = FactoryGirl.create(:valid_user) @carto_user = Carto::User.find(@user.id) + @other_user = FactoryGirl.create(:valid_user) @table1 = create_table(user_id: @carto_user.id) @table2 = create_table(user_id: @carto_user.id) end @@ -284,15 +285,13 @@ describe Carto::Api::ApiKeysController do end it 'returns 404 if the API key doesn\'t belong to that user' do - other_user = FactoryGirl.create(:valid_user) api_key = FactoryGirl.create(:api_key_apis, user_id: @user.id) - delete_json generate_api_key_url(user_req_params(other_user), name: api_key.name) do |response| + delete_json generate_api_key_url(user_req_params(@other_user), name: api_key.name) do |response| response.status.should eq 404 end Carto::ApiKey.find_by_id(api_key.id).should_not be_nil api_key.destroy - other_user.destroy end end @@ -332,7 +331,7 @@ describe Carto::Api::ApiKeysController do it 'returns 404 if the API key does not belong to the user' do api_key = FactoryGirl.create(:api_key_apis, user_id: @user.id) - get_json generate_api_key_url(user_req_params(@user2), name: api_key.name) do |response| + get_json generate_api_key_url(user_req_params(@other_user), name: api_key.name) do |response| response.status.should eq 404 end api_key.destroy
1
diff --git a/Source/Renderer/AutomaticUniforms.js b/Source/Renderer/AutomaticUniforms.js @@ -1480,6 +1480,7 @@ define([ /** * An automatic GLSL uniform representing the splitter position to use when rendering imagery layers with a splitter. + * This will be in the range 0.0 to 1.0 with 0.0 being the far left of the viewport and 1.0 being the far right of the viewport. * * @alias czm_imagerySplitPosition * @glslUniform
3
diff --git a/src/pages/home/report/ReportActionItemRow/index.js b/src/pages/home/report/ReportActionItemRow/index.js @@ -15,7 +15,7 @@ class ReportActionItemRow extends Component { super(props); this.state = { - isModalVisible: false, + isPopoverVisible: false, }; // The horizontal and vertical position (relative to the screen) where the popover will display. @@ -24,8 +24,8 @@ class ReportActionItemRow extends Component { vertical: 0, }; - this.showModal = this.showModal.bind(this); - this.hideModal = this.hideModal.bind(this); + this.showPopover = this.showPopover.bind(this); + this.hidePopover = this.hidePopover.bind(this); } shouldComponentUpdate(nextProps, nextState) { @@ -51,22 +51,22 @@ class ReportActionItemRow extends Component { * * @param {Object} [event] - A press event. */ - showModal(event) { + showPopover(event) { const nativeEvent = event.nativeEvent || {}; this.capturePressLocation(nativeEvent); - this.setState({isModalVisible: true}); + this.setState({isPopoverVisible: true}); } /** * Hide the ReportActionContextMenu modal popover. */ - hideModal() { - this.setState({isModalVisible: false}); + hidePopover() { + this.setState({isPopoverVisible: false}); } render() { return ( - <PressableWithSecondaryInteraction onSecondaryInteraction={this.showModal}> + <PressableWithSecondaryInteraction onSecondaryInteraction={this.showPopover}> <Hoverable> {hovered => ( <View> @@ -80,13 +80,13 @@ class ReportActionItemRow extends Component { <ReportActionContextMenu reportID={this.props.reportID} reportActionID={this.props.action.sequenceNumber} - isVisible={hovered && !this.state.isModalVisible} + isVisible={hovered && !this.state.isPopoverVisible} isMini /> </View> <PopoverWithMeasuredContent - isVisible={this.state.isModalVisible} - onClose={this.hideModal} + isVisible={this.state.isPopoverVisible} + onClose={this.hidePopover} popoverPosition={this.popoverAnchorPosition} animationIn="bounceIn" measureContent={() => ( @@ -98,7 +98,7 @@ class ReportActionItemRow extends Component { )} > <ReportActionContextMenu - isVisible={this.state.isModalVisible} + isVisible={this.state.isPopoverVisible} reportID={this.props.reportID} reportActionID={this.props.action.sequenceNumber} />
10
diff --git a/core/algorithm-builder/environments/nodejs/wrapper/package.json b/core/algorithm-builder/environments/nodejs/wrapper/package.json "author": "", "license": "ISC", "dependencies": { - "@hkube/nodejs-wrapper": "^2.0.15" + "@hkube/nodejs-wrapper": "^2.0.16" }, "devDependencies": {} } \ No newline at end of file
3
diff --git a/articles/product-lifecycle/migrations.md b/articles/product-lifecycle/migrations.md @@ -38,7 +38,7 @@ We are actively migrating customers to new behaviors for all **Deprecations** li <td><a href="/logs/migrate-logs-v2-v3">Tenant Logs Search v2</a></td> <td>21 May 2019</td> <td> - <strong>Free</strong>: 15 June 2019<br> + <strong>Free</strong>: 9 July 2019<br> <strong>Developer</strong>: 20 August 2019<br> <strong>Developer Pro</strong>: 20 August 2019<br> <strong>Enterprise</strong>: 4 November 2019
3
diff --git a/components/utilities/dialog/index.jsx b/components/utilities/dialog/index.jsx @@ -207,20 +207,23 @@ const Dialog = createReactClass({ } }, + componentWillUpdate() { + if (this.popper) { + this.popper.scheduleUpdate(); + } + }, + componentDidUpdate(prevProps, prevState) { if ( this.state.triggerPopperJS === true && + prevState.triggerPopperJS === false && (this.props.position === 'absolute' || this.props.position === 'overflowBoundaryElement') && this.dialogContent && - this.props.onRequestTargetElement() && - (prevState.triggerPopperJS === false || - this.prevDialogContentHeight !== this.dialogContent.clientHeight) + this.props.onRequestTargetElement() ) { this.createPopper(); } - this.prevDialogContentHeight = - this.dialogContent && this.dialogContent.clientHeight; }, componentWillUnmount() {
3
diff --git a/vis/test/snapshot/list-base.test.js b/vis/test/snapshot/list-base.test.js @@ -8,6 +8,7 @@ import data, { baseContext as context, } from "../data/base"; import { initializeStore, selectPaper } from "../../js/actions"; +import { getInitialState } from "../../js/reducers"; import List from "../../js/components/List"; @@ -21,7 +22,8 @@ const PAPER_OA_SAFE_ID = const setup = () => { data.forEach((d) => (d.authors_list = getAuthorsList(d.authors, true))); - const store = createStore(reducer); + const initialState = getInitialState(config); + const store = createStore(reducer, initialState); store.dispatch( initializeStore(config, context, data, [], null, 800, null, null, 800, { bubbleMinScale: config.bubble_min_scale,
1
diff --git a/src/components/Main/Results/DeterministicLinePlot.tsx b/src/components/Main/Results/DeterministicLinePlot.tsx @@ -369,7 +369,7 @@ export function DeterministicLinePlot({ /> ))} {zoomSelectedLeftState && zoomSelectedRightState ? ( - <ReferenceArea x1={zoomSelectedLeftState} x2={zoomSelectedRightState} fill="grey" fillOpacity={0.3} /> + <ReferenceArea x1={zoomSelectedLeftState} x2={zoomSelectedRightState} fill="grey" fillOpacity={0.1} /> ) : null} {linesToPlot.map((d) => (
4
diff --git a/src/lib/componentDeclarative/serverless.js b/src/lib/componentDeclarative/serverless.js @@ -66,7 +66,7 @@ class ComponentDeclarative extends Component { // If component instance was not found, the variable is for an invalid instance if (!value) { - throw new Error(`Invalid variable detected. Component instance "${instanceId}" does not exist in this configuration file.`) + throw new Error(`Invalid variable detected: 'comp:${instanceId}' Component instance '${instanceId}' does not exist in this configuration file.`) } let inputs = value.inputs // eslint-disable-line
7
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -7,23 +7,23 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-vanilla-v1-{{ checksum "package.json" }} + key: dependency-cache-vanilla-v1-{{ checksum "src/implementations/vanilla/package.json" }} - run: name: npm Install (Vanilla) command: npm install working_directory: src/implementations/vanilla - save_cache: - key: dependency-cache-vanilla-v1-{{ checksum "package.json" }} + key: dependency-cache-vanilla-v1-{{ checksum "src/implementations/vanilla/package.json" }} paths: - src/implementations/vanilla/node_modules - restore_cache: - key: dependency-cache-react-v1-{{ checksum "package.json" }} + key: dependency-cache-react-v1-{{ checksum "src/implementations/react/package.json" }} - run: name: npm Install (React) command: npm install working_directory: src/implementations/react - save_cache: - key: dependency-cache-react-v1-{{ checksum "package.json" }} + key: dependency-cache-react-v1-{{ checksum "src/implementations/react/package.json" }} paths: - src/implementations/react/node_modules - run: @@ -49,7 +49,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-vanilla-v1-{{ checksum "package.json" }} + key: dependency-cache-vanilla-v1-{{ checksum "src/implementations/vanilla/package.json" }} - restore_cache: key: lib-cache-vanilla-v1-{{ .Revision }} - run: @@ -62,7 +62,7 @@ jobs: command: npm run gemini-ci working_directory: src/implementations/vanilla - restore_cache: - key: dependency-cache-react-v1-{{ checksum "package.json" }} + key: dependency-cache-react-v1-{{ checksum "src/implementations/react/package.json" }} - restore_cache: key: lib-cache-react-v1-{{ .Revision }} - run: @@ -76,7 +76,7 @@ jobs: steps: - checkout - restore_cache: - key: dependency-cache-react-v1-{{ checksum "package.json" }} + key: dependency-cache-react-v1-{{ checksum "src/implementations/react/package.json" }} - run: name: Validate hig-react version command: npm run validate
4
diff --git a/karma.conf.js b/karma.conf.js @@ -133,12 +133,6 @@ module.exports = (config) => { browserName: "internet explorer", version: "latest" }, - "Internet Explorer (latest) on Windows 10": { - base: "SauceLabs", - platform: "Windows 10", - browserName: "internet explorer", - version: "latest" - }, "Safari (latest) on Mac OS X Sierra": { base: "SauceLabs", platform: "macOS 10.12", @@ -160,13 +154,13 @@ module.exports = (config) => { "Firefox (latest) on Mac OS X Sierra": { base: "SauceLabs", platform: "macOS 10.12", - browserName: "chrome", + browserName: "firefox", version: "latest" }, "Firefox 4 on Mac OS X Sierra": { base: "SauceLabs", platform: "macOS 10.12", - browserName: "chrome", + browserName: "firefox", version: "4" }, "Safari 9 on Mac OS X El Capitan": {
1
diff --git a/_data/conferences.yml b/_data/conferences.yml --- -- title: KDD - hindex: 30 - year: 2021 - id: kdd21 - link: https://www.kdd.org/kdd2021/ - deadline: '2021-02-08 23:59:59' - timezone: UTC-12 - date: August 14-18, 2021 - place: Singapore - sub: DM - - title: CVPR hindex: 299 year: 2021 sub: ML note: '<b>NOTE</b>: Mandatory abstract deadline on Jan 28, 2021. More info <a href=''https://icml.cc/Conferences/2021/''>here</a>.' +- title: KDD + hindex: 30 + year: 2021 + id: kdd21 + link: https://www.kdd.org/kdd2021/ + deadline: '2021-02-08 23:59:59' + timezone: UTC-12 + date: August 14-18, 2021 + place: Singapore + sub: DM + - title: SIGIR hindex: 57 year: 2021 place: Graz, Austria sub: ML -- title: KDD - hindex: 30 - year: 2020 - id: kdd20 - link: https://www.kdd.org/kdd2020/ - deadline: '2020-02-13 23:59:59' - timezone: UTC-11 - date: August 22-27, 2020 - place: San Diego, California, USA - sub: DM - - title: UAI hindex: 33 year: 2020
2
diff --git a/src/renderer/wallet/main/sidebar.jsx b/src/renderer/wallet/main/sidebar.jsx @@ -21,9 +21,10 @@ import { const styles = theme => ({ list: { - height: 'inherit', justifyContent: 'space-between', margin: 0, + minHeight: '100%', + overflow: 'scroll', width: 300 },
1
diff --git a/lib/views/login.html b/lib/views/login.html {% if passportGoogleLoginEnabled() %} <form role="form" action="/passport/google" method="get"> <button type="submit" class="fcbtn btn btn-1b btn-login-oauth" id="google"> - <span class="btn-label"><i class="icon-social-google"></i></span> + <span class="btn-label"><i class="fa fa-google"></i></span> {{ t('Sign in') }} </button> <div class="small text-right">by Google Account</div> <form role="form" action="/passport/github" method="get"> <input type="hidden" name="_csrf" value="{{ csrf() }}"> <button type="submit" class="fcbtn btn btn-1b btn-login-oauth" id="github"> - <span class="btn-label"><i class="icon-social-github"></i></span> + <span class="btn-label"><i class="fa fa-github"></i></span> {{ t('Sign in') }} </button> <div class="small text-right">by Github Account</div> <form role="form" action="/passport/facebook" method="get"> <input type="hidden" name="_csrf" value="{{ csrf() }}"> <button type="submit" class="fcbtn btn btn-1b btn-login-oauth" id="facebook"> - <span class="btn-label"><i class="icon-social-facebook"></i></span> + <span class="btn-label"><i class="fa fa-facebook"></i></span> {{ t('Sign in') }} </button> <div class="small text-right">by Facebook Account</div> <form role="form" action="/passport/twitter" method="get"> <input type="hidden" name="_csrf" value="{{ csrf() }}"> <button type="submit" class="fcbtn btn btn-1b btn-login-oauth" id="twitter"> - <span class="btn-label"><i class="icon-social-twitter"></i></span> + <span class="btn-label"><i class="fa fa-twitter"></i></span> {{ t('Sign in') }} </button> <div class="small text-right">by Twitter Account</div>
14
diff --git a/lib/util/dom.js b/lib/util/dom.js @@ -194,7 +194,12 @@ function findNodeInParents(node, targetTagName) { * @return {InputElement} */ function createHiddenInput (attributes = {}) { - let hidden = global.document.createElement(attributes.type === 'button' ? 'button' : 'input'); + let inputType = 'input'; + if (~['button', 'select'].indexOf(attributes.type)) { + inputType = attributes.type; + delete attributes.type; + } + let hidden = global.document.createElement(inputType); if (!('type' in attributes)) attributes.type = 'text'; if (!('style' in attributes)) attributes.style = 'position: absolute; top: 0px; left: -1000px; opacity: 0;';
11
diff --git a/app/core/tokenList.json b/app/core/tokenList.json "name": "Novem Gold Token", "hash": "50091057ff12863f1a43266b9786209e399c6ffc", "decimals": 8, - "totalSupply": 0 + "totalSupply": 1 } } },
3
diff --git a/.github/workflows/test-ui.yml b/.github/workflows/test-ui.yml @@ -40,7 +40,7 @@ jobs: # Install apt-transport-https # Use apt to install the Chrome dependencies sudo apt-get install -y apt-transport-https unzip xvfb libxi6 libgconf-2-4 && sudo apt-get install xvfb && sudo apt-get install -y libxcursor1 && sudo apt-get install -y libgtk-3-dev && sudo apt-get install -y libxss1 && sudo apt-get install -y libasound2 && sudo apt-get install -y libnspr4 && sudo apt-get install -y libnss3 && sudo apt-get install -y libx11-xcb1 && sudo apt-get install default-jdk - sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add + sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add sudo bash -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list" sudo apt -y update sudo apt -y install google-chrome-stable
2
diff --git a/token-metadata/0x165440036Ce972C5F8EBef667086707e48B2623e/metadata.json b/token-metadata/0x165440036Ce972C5F8EBef667086707e48B2623e/metadata.json "symbol": "GRAPH", "address": "0x165440036Ce972C5F8EBef667086707e48B2623e", "decimals": 18, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/documentation/Icons-story.js b/src/documentation/Icons-story.js @@ -19,6 +19,7 @@ const IconList = ({ icon }) => { const iconName = icon.name.replace('icon--', ''); return ( <Tooltip + interactive html={ <div style={{ @@ -52,7 +53,7 @@ const IconList = ({ icon }) => { icon="download--glyph" href={`https://github.com/wfp/carbon-icons/blob/master/src/svg/${iconName}.svg`} small> - Download + View on GitHub </Button> </div> }
1
diff --git a/defaultConfig.stub.js b/defaultConfig.stub.js @@ -673,7 +673,7 @@ module.exports = { /* |----------------------------------------------------------------------------- - | Padding https://tailwindcss.com/docs/padding + | Padding https://tailwindcss.com/docs/spacing |----------------------------------------------------------------------------- | | Here is where you define your padding utility sizes. These can be @@ -708,7 +708,7 @@ module.exports = { /* |----------------------------------------------------------------------------- - | Margin https://tailwindcss.com/docs/margin + | Margin https://tailwindcss.com/docs/spacing |----------------------------------------------------------------------------- | | Here is where you define your margin utility sizes. These can be
3
diff --git a/src/components/Modal/modal.styles.js b/src/components/Modal/modal.styles.js @@ -8,15 +8,20 @@ export const ModalContainer: ComponentType<*> = (() => { return styled.section` display: flex; + position: fixed; + z-index: 999999999; justify-content: center; align-items: center; - position: fixed; - z-index: 99999999; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7); + + &::not(:focus-within) { + background-color: rgb(255, 255, 254); + transition: background-color 0.01s ease; + } `; })();
7
diff --git a/assets/js/modules/analytics/datastore/accounts.js b/assets/js/modules/analytics/datastore/accounts.js @@ -103,8 +103,8 @@ export const actions = { invariant( timezone, 'timezone is required.' ); try { - const createAccountTicket = yield actions.fetchCreateAccount( { accountName, propertyName, profileName, timezone } ); - return actions.receiveCreateAccount( { createAccountTicket } ); + const accountTicket = yield actions.fetchCreateAccount( { accountName, propertyName, profileName, timezone } ); + return actions.receiveCreateAccount( { accountTicket } ); } catch ( error ) { // TODO: Implement an error handler store or some kind of centralized // place for error dispatch... @@ -132,13 +132,13 @@ export const actions = { * @private * * @param {Object} args Argument params. - * @param {Object} args.createAccountTicket Google Analytics create account ticket object. + * @param {Object} args.accountTicket Google Analytics create account ticket object. */ - receiveCreateAccount( { createAccountTicket } ) { - invariant( createAccountTicket, 'createAccountTicket is required.' ); + receiveCreateAccount( { accountTicket } ) { + invariant( accountTicket, 'accountTicket is required.' ); // Once we have an account ticket, redirect the user to accept the Terms of Service. - const { id } = createAccountTicket; + const { id } = accountTicket; if ( id ) { document.location = `https://analytics.google.com/analytics/web/?provisioningSignup=false#management/TermsOfService/?api.accountTicketId=${ id }`; }
10
diff --git a/plugins/cindygl/src/js/LinearAlgebra.js b/plugins/cindygl/src/js/LinearAlgebra.js @@ -56,7 +56,7 @@ function generatematmult(t, modifs, codebuilder) { } function generatesum(t, modifs, codebuilder) { - if (isnativeglsl(t)) return; + if (isnativeglsl(t) && depth(t) <= 1) return; let n = t.length; let name = `sum${webgltype(t)}`;
11
diff --git a/mailheader.js b/mailheader.js @@ -133,7 +133,7 @@ class Header { } this._add_header(key.toLowerCase(), value, "unshift"); this._add_header_decode(key.toLowerCase(), value, "unshift"); - this.header_list.unshift(key + ': ' + value + '\n'); + this.header_list.unshift(`${key}: ${value}\n`); } _add_header (key, value, method) { @@ -222,14 +222,14 @@ function _decode_rfc2231 (params, str) { _parse_rfc2231(params, str); for (const key in params.keys) { - str = str + ' ' + key + '="'; + str += ` ${key}="`; /* eslint no-constant-condition: 0 */ let merged = ''; for (let i=0; true; i++) { const _key = key + '*' + i; const _val = params.kv[_key]; if (_val === undefined) break; - merged = merged + _val; + merged += _val; } try { @@ -240,7 +240,7 @@ function _decode_rfc2231 (params, str) { } merged = params.cur_enc ? try_convert(merged, params.cur_enc) : merged; - str = str + merged + '";'; + str += `${merged}";`; } return str; @@ -303,6 +303,6 @@ function _parse_rfc2231 (params, str) { params.cur_key = key_actual; params.keys[key_actual] = ''; - params.kv[key_actual + '*' + key_id] = value; + params.kv[`${key_actual}*${key_id}`] = value; return _parse_rfc2231(params, str); // Get next one }
14
diff --git a/src/core/Utils.js b/src/core/Utils.js @@ -121,7 +121,10 @@ function getFileType (file) { 'markdown': 'text/markdown', 'mp4': 'video/mp4', 'mp3': 'audio/mp3', - 'svg': 'image/svg+xml' + 'svg': 'image/svg+xml', + 'jpg': 'image/jpeg', + 'png': 'image/png', + 'gif': 'image/gif' } const fileExtension = file.name ? getFileNameAndExtension(file.name).extension : null
0
diff --git a/src/resources/views/fields/upload.blade.php b/src/resources/views/fields/upload.blade.php @include('crud::inc.field_translatable_icon') {{-- Show the file name and a "Clear" button on EDIT form. --}} - @if (isset($field['value']) && $field['value']!=null) + @if (!empty($field['value'])) <div class="well well-sm"> @php $prefix = !empty($field['prefix']) ? $field['prefix'] : '';
14
diff --git a/server/game/drawcard.js b/server/game/drawcard.js @@ -68,9 +68,11 @@ class DrawCard extends BaseCard { getPrintedSkill(type) { if(type === 'military') { - return this.cardData.military === null ? NaN : isNaN(parseInt(this.cardData.military)) ? 0 : parseInt(this.cardData.military); + return this.cardData.military === null || this.cardData.military === undefined ? + NaN : isNaN(parseInt(this.cardData.military)) ? 0 : parseInt(this.cardData.military); } else if(type === 'political') { - return this.cardData.political === null ? NaN : isNaN(parseInt(this.cardData.political)) ? 0 : parseInt(this.cardData.political); + return this.cardData.political === null || this.cardData.political === undefined ? + NaN : isNaN(parseInt(this.cardData.political)) ? 0 : parseInt(this.cardData.political); } }
9
diff --git a/userscript.user.js b/userscript.user.js @@ -2155,8 +2155,18 @@ var $$IMU_EXPORT$$; var do_progress = !!options.onprogress; + var get_contentrange_length = function(headers) { + if (!("content-range" in headers)) { + return null; + } else { + // todo: improve + var range = headers["content-range"].split("/"); + return parseInt(range[1]); + } + }; + var download_chunk = function(start, end, cb, progresscb) { - //console_log("downloading", start, end); + //console_log("downloading", start, end, xhrobj.url); var ourobj = deepcopy(xhrobj); ourobj.method = "GET"; @@ -2171,7 +2181,10 @@ var $$IMU_EXPORT$$; if (progresscb) { ourobj.onprogress = function(resp) { if (resp.loaded && resp.total) { - return progresscb(id, resp.loaded, resp.total); + var headers = headers_list_to_dict(parse_headers(resp.responseHeaders)); + var contentlength = get_contentrange_length(headers); + + return progresscb(id, resp.loaded, resp.total, contentlength); } }; @@ -2205,7 +2218,9 @@ var $$IMU_EXPORT$$; elements_num: 1 }); - chunk_progress = function(id, progress, total) { + chunk_progress = function(id, progress, total, full_total) { + if (!ip.total_size && full_total) ip.total_size = full_total; + ip.update(id, progress, total); }; } @@ -2233,13 +2248,10 @@ var $$IMU_EXPORT$$; if (resp.status === 200) { content_length = resp.response.byteLength; } else if (resp.status === 206) { - if (!("content-range" in headers)) { - console_error("No Content-Range header"); + content_length = get_contentrange_length(headers); + if (content_length === null) { + console_error("Unable to find length through content-range"); return options.onload(null, resp); - } else { - // todo: improve - var range = headers["content-range"].split("/"); - content_length = parseInt(range[1]); } } else { console_error("Bad status", resp.status, resp); @@ -105463,7 +105475,7 @@ var $$IMU_EXPORT$$; var last_console_progress = 0; download_playlist_urls(popup_obj, urls, function(progobj) { var now = Date.now(); - if (now - last_console_progress > 10) { + if (now - last_console_progress > 30) { last_console_progress = now; var percent = format_number_decimal(progobj.percent * 100, 2);
7
diff --git a/pages/apis/latest/belt/list.mdx b/pages/apis/latest/belt/list.mdx @@ -14,7 +14,7 @@ Collection functions for manipulating the `list` data structures, a singly-linke ## t<'a> -```res sig +```res prelude type t<'a> = list<'a> ``` @@ -397,7 +397,7 @@ let mapReverse: (t<'a>, 'a => 'b) => t<'b> Equivalent to: -```res example +```res map(someList, f)->reverse; ``` @@ -729,7 +729,7 @@ Uncurried version of [some2](#some2). let cmpByLength: (t<'a>, t<'a>) => int ``` -```res example +```res cmpByLength(firstList, secondList) ```
1
diff --git a/js/base/Exchange.js b/js/base/Exchange.js @@ -11,6 +11,7 @@ const { , values , deepExtend , extend + , clone , flatten , unique , indexBy @@ -455,6 +456,19 @@ module.exports = class Exchange { } } + setSandboxMode (enabled) { + if (!!enabled) { + if ('test' in this.urls) { + this.urls['api_backup'] = clone (this.urls['api']) + this.urls['api'] = clone (this.urls['test']) + } else { + throw new NotSupported (this.id + ' does not have a sandbox URL') + } + } else if ('api_backup' in this.urls) { + this.urls['api'] = clone (this.urls['api_backup']) + } + } + defineRestApi (api, methodName, options = {}) { for (const type of Object.keys (api)) {
13
diff --git a/api/queries/thread/reactions.js b/api/queries/thread/reactions.js @@ -8,6 +8,14 @@ export default async ( _: any, { user, loaders }: GraphQLContext ) => ({ - count: reactionCount, + count: + typeof reactionCount === 'number' + ? reactionCount + : await loaders.threadReaction + .load(id) + .then( + res => + res && Array.isArray(res.reduction) ? res.reduction.length : 0 + ), hasReacted: user ? await hasReactedToThread(user.id, id) : false, });
9
diff --git a/token-metadata/0x199c3DdedB0e91dB3897039AF27c23286269F088/metadata.json b/token-metadata/0x199c3DdedB0e91dB3897039AF27c23286269F088/metadata.json "symbol": "DCX", "address": "0x199c3DdedB0e91dB3897039AF27c23286269F088", "decimals": 8, - "dharmaVerificationStatus": { "dharmaVerificationStatus": "VERIFIED" } \ No newline at end of file -} \ No newline at end of file
3
diff --git a/src/components/Client.js b/src/components/Client.js @@ -34,13 +34,17 @@ class ClientWrapper extends Component { `, variables: { id: oldClientId } }); - this.props.client.mutate({ + this.props.client + .mutate({ mutation: gql` mutation RegisterClient($client: ID!) { clientConnect(client: $client) } `, variables: { client: clientId } + }) + .then(() => { + window.location.reload; }); }; render() {
1
diff --git a/index.d.ts b/index.d.ts @@ -244,7 +244,7 @@ declare module 'mongoose' { /** Defines or retrieves a model. */ model<T extends Document>(name: string, schema?: Schema<T>, collection?: string): Model<T>; - model<T extends Document, U extends Model<T, TQueryHelpers>, TQueryHelpers = undefined>( + model<T extends Document, U extends Model<T, TQueryHelpers>, TQueryHelpers = {}>( name: string, schema?: Schema<T, U, TQueryHelpers>, collection?: string,
1
diff --git a/webaverse.js b/webaverse.js @@ -344,12 +344,12 @@ export default class Webaverse extends EventTarget { } renderer.setAnimationLoop(animate); - _startHacks(); + _startHacks(this); } } // import {MMDLoader} from 'three/examples/jsm/loaders/MMDLoader.js'; -const _startHacks = () => { +const _startHacks = webaverse => { const localPlayer = metaversefileApi.useLocalPlayer(); const vpdAnimations = Avatar.getAnimations().filter(animation => animation.name.endsWith('.vpd')); @@ -514,6 +514,7 @@ const _startHacks = () => { mikuModel.updateMatrixWorld(); } }; */ + webaverse.titleCardHack = false; window.addEventListener('keydown', e => { if (e.which === 46) { // . emoteIndex = -1; @@ -532,6 +533,13 @@ const _startHacks = () => { // _ensureMikuModel(); // _updateMikuModel(); + } else if (e.which === 106) { // * + webaverse.titleCardHack = !webaverse.titleCardHack; + webaverse.dispatchEvent(new MessageEvent('titlecardhackchange', { + data: { + titleCardHack: webaverse.titleCardHack, + } + })); } else { const match = e.code.match(/^Numpad([0-9])$/); if (match) {
0
diff --git a/functions/kubernetes/k8sCommand.js b/functions/kubernetes/k8sCommand.js @@ -27,16 +27,10 @@ async function k8sCommand(ins, outs, context, cb) { const kubeconfig = new k8s.KubeConfig(); kubeconfig.loadFromDefault(); // loadFromString(JSON.stringify(kconfig)) - var job = { - name: context.name, - executable: context.executor.executable, - args: context.executor.args, - stdout: context.executor.stdout, // optional file name to which stdout should be redirected - ins: ins, - outs: outs - } - - if (context.executor.image) { job.image = context.executor.image; } + var job = context.executor; // object containing 'executable', 'args' and others + job.name = context.name; + job.ins = ins; + job.outs = outs; // custom parameters to the job YAML template (will overwrite default values) var customParams = {};
7
diff --git a/sirepo/package_data/static/json/srw-schema.json b/sirepo/package_data/static/json/srw-schema.json }, "tabulatedUndulator": { "title": "Undulator (Idealized or Tabulated)", - "basic": [ + "basic": [], + "advanced": [ "undulatorSelector", "name", "undulatorType", "undulator.verticalSymmetry" ]] ] - ], - "advanced": [] + ] }, "toroidalMirror": { "title": "Toroid Mirror",
5