diff --git "a/valid_vdo.csv" "b/valid_vdo.csv" new file mode 100644--- /dev/null +++ "b/valid_vdo.csv" @@ -0,0 +1,75979 @@ +code,label +"diff --git a/token-metadata/0xc3761EB917CD790B30dAD99f6Cc5b4Ff93C4F9eA/metadata.json b/token-metadata/0xc3761EB917CD790B30dAD99f6Cc5b4Ff93C4F9eA/metadata.json ""symbol"": ""ERC20"", +""address"": ""0xc3761EB917CD790B30dAD99f6Cc5b4Ff93C4F9eA"", +""decimals"": 18, +- ""dharmaVerificationStatus"": { +""dharmaVerificationStatus"": ""VERIFIED"" +} +\ No newline at end of file +-} +\ No newline at end of file +",3 +"diff --git a/packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx b/packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx @@ -167,7 +167,7 @@ const GrowiContextualSubNavigation = (props) => { +const { data: isAbleToShowPageAuthors } = useIsAbleToShowPageAuthors(); +const { mutate: mutateSWRTagsInfo, data: tagsInfoData } = useSWRxTagsInfo(pageId); +- const { data: tagsOnEditMode, sync: syncPageTagsForEditors } = usePageTagsForEditors(); ++ const { data: tagsForEditors, sync: syncPageTagsForEditors } = usePageTagsForEditors(); +const { open: openDuplicateModal } = usePageDuplicateModal(); +const { open: openRenameModal } = usePageRenameModal(); +@@ -330,7 +330,7 @@ const GrowiContextualSubNavigation = (props) => { +isGuestUser={isGuestUser} +isDrawerMode={isDrawerMode} +isCompactMode={isCompactMode} +- tags={isViewMode ? tagsInfoData?.tags : tagsOnEditMode} ++ tags={isViewMode ? tagsInfoData?.tags : tagsForEditors} +tagsUpdatedHandler={isViewMode ? tagsUpdatedHandlerForViewMode : tagsUpdatedHandlerForEditMode} +controls={ControlComponents} +additionalClasses={['container-fluid']} +",10 +"diff --git a/src/client/js/util/reveal/plugins/growi-renderer.js b/src/client/js/util/reveal/plugins/growi-renderer.js let sections = document.querySelectorAll( '[data-markdown]'), section; +for (let i = 0, len = sections.length; i < len; i++ ) { +section = sections[i]; +- section.innerHTML = '
Import with seed phrase
Import with seed phrase
{ footer }
} ++ footer={ footer } +dismiss={ __( 'Cancel', 'google-site-kit' ) } +dismissExpires={ getBannerDismissalExpiryTime( +referenceDateString +",2 +"diff --git a/components/post.js b/components/post.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types' +import Link from 'next/link' +import Image from 'next/image' +import {ArrowLeftCircle} from 'react-feather' ++import colors from '@/styles/colors' +import Section from '@/components/section' +@@ -142,6 +143,19 @@ function Post({title, published_at, feature_image, html, backLink}) { +left: 0; +border-radius: 0 2px 2px 0; +} ++ ++ .kg-button-card a { ++ color: white; ++ background-color: ${colors.blue}; ++ border-radius: 5px; ++ font-weight: 1em; ++ padding: .5em 1.2em; ++ height: 2.4em; ++ line-height: 1em; ++ margin: auto; ++ text-decoration: none; ++ transition: all .2s ease; ++ } +`} + +) +",0 +"diff --git a/packages/mjml-core/src/helpers/traverseMJML.js b/packages/mjml-core/src/helpers/traverseMJML.js @@ -3,13 +3,9 @@ import head from 'lodash/head' +import map from 'lodash/map' +import noop from 'lodash/noop' +-export default function traverseMJML(mjml, predicate = noop, ignoreTagContent = null) { ++export default function traverseMJML(mjml, predicate = noop) { +const traverse = mjml => +map(mjml.children, child => { +- if (ignoreTagContent && child.tagName === ignoreTagContent) { +- return [] +- } +- +if (predicate(child)) { +return child +} +",13 +"diff --git a/src/plots/plots.js b/src/plots/plots.js @@ -257,7 +257,7 @@ plots.previousPromises = function(gd) { +* Add source links to your graph inside the 'showSources' config argument. +*/ +plots.addLinks = function(gd) { +- if(gd._context.showLink === false) return; ++ if(!gd._context.showLink || !gd._context.showSources) return; +var fullLayout = gd._fullLayout; +",9 +"diff --git a/react/src/components/card/SprkCard.js b/react/src/components/card/SprkCard.js @@ -67,10 +67,10 @@ SprkCard.propTypes = { +* Card Content. +*/ +additionalContentClasses: PropTypes.string, +- /** Takes content for a base card */ ++ /** Content to render inside of SprkCard. */ +children: PropTypes.node, +/** +- * The value supplied will be assigned ++ * Value assigned +* to the `data-id` attribute on the +* component. This is intended to be +* used as a selector for automated +@@ -79,63 +79,125 @@ SprkCard.propTypes = { +*/ +idString: PropTypes.string, +/** +- * If `true`, the Standout Card styles +- * will be applied. ++ * Determines if card style has a deeper shadow. +*/ +isStandout: PropTypes.bool, +- /** The type of Card variant to render. */ ++ // TODO: Turn this prop into a oneOf type and include the possible possibilities. It could also need a default/base variant style. Issue #2496 ++ /** ++ * Determines the type of card. ++ * If none provided, it defaults to ++ * the base card style. ++ * ++ * Expects either `highlightedHeader` ++ * or `teaser`. ++ */ +variant: PropTypes.string, +- /** Configures highlighted header */ ++ /** ++ * Configurations that ++ * populate the content of SprkCard ++ * with a highlighted Header. ++ */ +highlightedHeaderConfig: PropTypes.shape({ +- /** Text inside of highlighted card */ ++ /** ++ * The Highlighted Header Card's main body text. ++ */ +bodyText: PropTypes.string, +- /** Sub-headline of card */ ++ /** ++ * The Highlighted Header Card's description. ++ */ +description: PropTypes.string, +- /** Headline of card */ ++ /** ++ * The Card's title. ++ */ +title: PropTypes.string, +}), +- /** Configures teaser */ ++ /** ++ * Configuration that populate the content of SprkCard teaser. ++ */ +teaserConfig: PropTypes.shape({ +- /** Text in the main body */ ++ /** ++ * Teaser Card's body text. ++ */ +bodyText: PropTypes.string, ++ /** ++ * Configures the call-to-action of a teaser card. ++ */ +cta: PropTypes.shape({ +- /** Extra classes on the Call to Action of Teaser */ ++ /** Extra classes on the call-to-action of Teaser Card. */ +additionalCtaIconClasses: PropTypes.string, +- /** CTA Analytics */ ++ /** ++ * Value assigned to the ++ * `data-analytics` attribute on the Call to Action. ++ * Intended for an outside ++ * library to capture data. ++ */ +ctaAnalytics: PropTypes.string, +- /** Icon next to CTA */ ++ /** ++ * Determines what icon `SprkIcon` renders next to the Call to Action. ++ */ +ctaIcon: PropTypes.string, +- /** Anchor tag, or router link at user discretion */ +- mediaLinkElement: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), +- /** Link or Button */ ++ /** ++ * Determinds if the CTA is a link or a button. ++ * Will default to `link` if none provided. ++ */ +ctaVariant: PropTypes.oneOf(['link', 'button']), +- /** Where the cta navigates to */ ++ /** ++ * Determines the href of the media. ++ */ +href: PropTypes.string, +- /** Text of the CTA */ ++ /** Text of the CTA. */ +text: PropTypes.string, +}), +- /** Configs for the main media of the teaser card */ ++ /** ++ * Configures the main media of the Teaser Card. ++ */ +media: PropTypes.shape({ +- /** Additional classes if it's an icon */ ++ /** ++ * Expects a space separated string ++ * of classes to be added to the ++ * media icon. ++ */ +additionalMediaIconClasses: PropTypes.string, +- /** Where media navigates to */ ++ /** ++ * Determines the href of the media. ++ */ +href: PropTypes.string, +- /** Anchor tag, or router link at user discretion */ ++ /** ++ * Determines if link renders as an Anchor tag, or router link. ++ * If an href is provided and an element is not, ++ * an anchor tag will be rendered. ++ */ +mediaLinkElement: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), +- /** Reference name of SprkIcon */ ++ /** ++ * Determines what icon `SprkIcon` renders ++ * as the main media of the Teaser Card. ++ */ +iconName: PropTypes.string, +- /** Alternative text for image */ ++ /** Alternative text for the media. */ +imgAlt: PropTypes.string, +- /** src for image */ ++ /** The source link for the media. */ +imgSrc: PropTypes.string, +- /** Analytics id tag for image */ ++ /** ++ * The value supplied will be assigned to the ++ * `data-analytics` attribute on the media of the card. ++ * Intended for an outside ++ * library to capture data. ++ */ +mediaAnalyticsString: PropTypes.string, +- /** Chooses if main media is img or SprkIcon */ ++ /** ++ * Determines which type of media renders. Defaults to `img` if none provided. ++ */ +mediaVariant: PropTypes.oneOf(['img', 'icon']), +}), +- /** title of teaser card */ ++ /** ++ * Text that will show as as ++ * the main headline of the Teaser Card. ++ */ +title: PropTypes.string, +- /** Decides if title goes first */ ++ /** ++ * Determines if the Teaser Card's ++ * title is at the top or below the main media. ++ */ +titleFirst: PropTypes.bool, +}), +}; +",7 +"diff --git a/lib/modules/swarm/process.js b/lib/modules/swarm/process.js @@ -24,7 +24,7 @@ class SwarmProcess extends ProcessWrapper { +`--password=${fs.dappPath(this.storageConfig.account.password)}`, +`--corsdomain=${self.cors.join(',')}` +]; +- console.error('Starting swarm process with arguments: ' + args.join(' ')); ++ console.trace('Starting swarm process with arguments: ' + args.join(' ')); +this.child = child_process.spawn(this.command, args); +this.child.on('error', (err) => { +",13 +"diff --git a/core/rendered_connection.js b/core/rendered_connection.js @@ -475,19 +475,12 @@ Blockly.RenderedConnection.prototype.renderTypeVarHighlights = function() { +delete this.typeVarPaths_[i]; +} +} +- var typeExpr = this.typeExpr; +- if (opt_isOutput === true) { +- var block = this.sourceBlock_; +- if (goog.isFunction(block.outputTypeExprToRender)) { +- typeExpr = block.outputTypeExprToRender(); +- } +- } +this.typeVarPaths_ = []; +var xy = this.sourceBlock_.getRelativeToSurfaceXY(); +var pos = new goog.math.Coordinate(this.x_ - xy.x, this.y_ - xy.y); +this.typeVarPaths_ = Blockly.RenderedTypeExpr.createHighlightedSvg( +- typeExpr, pos, 1, this.sourceBlock_.getSvgRoot()); ++ this.typeExpr, pos, 1, this.sourceBlock_.getSvgRoot()); +}; +/** +",2 +"diff --git a/README.md b/README.md @@ -26,12 +26,9 @@ Community chat. [Join us!][discord-url] +##### New releases +-> `whs` is currently at v2 major version. We don't have clear plans for v3 yet. So v2 will probably remain the main stable version until at least 2018. +- +-> We try to publish **patch releases every 20 days** or even more often. +- +-> We try to publish **minor update releases every 60 days** or even more often depending on the amount of features that sometimes get added in a very small period of time. We want the community to profit from new modules, components and feature enhancements as soon as they are implemented. ++> `whs` is currently at v2 major version. We had plans for v3 yet but development isn't active. So v2 will probably remain the main stable version until further notice. ++> We try to publish **minor update releases** for bug fixes, we will review PRs. +#### NPM +",3 +"diff --git a/javascript/components/UserLocation.js b/javascript/components/UserLocation.js @@ -130,6 +130,7 @@ class UserLocation extends React.Component { +async componentDidMount() { +this._isMounted = true; ++ +locationManager.addListener(this._onLocationUpdate); +await this.setLocationManager({ +running: this.needsLocationManagerRunning(), +@@ -212,7 +213,13 @@ class UserLocation extends React.Component { +render() { +const {heading, coordinates} = this.state; +- const {children, visible, showsUserHeadingIndicator} = this.props; ++ const { ++ children, ++ visible, ++ showsUserHeadingIndicator, ++ onPress, ++ animated, ++ } = this.props; +if (!visible || !coordinates) { +return null; +@@ -220,10 +227,10 @@ class UserLocation extends React.Component { +return ( ++- This component's type is {runtimeValues.type.name ? runtimeValues.type.name : runtimeValues.type} +- { /* TODO use metaValues.name if possible */} ++ {componentName} component ++ Docs +