This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout <feature-branch> | |
git pull | |
git checkout <release-branch> | |
git pull | |
git merge --no-ff <feature-branch> | |
git push | |
git tag -a branch-<feature-branch> -m "Merge <feature-branch> into <release-branch>" | |
git push origin branch-<feature-branch> | |
git branch -d <feature-branch> | |
git push origin :<feature-branch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <unordered_map> | |
using namespace std; | |
// I've left the types explicit for clarity, but in real code | |
// I'd probably use `auto` | |
// The settings object is a hash table of keys and values. Everythings strings, | |
// no fighting the type system, no 3rd party libraries, everything is C++ 101. | |
const unordered_map<string, string> userSettings = parseSettings("path/to/settings.ini"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dependencies] | |
schannel = "0.0.2" | |
[dependencies.hyper] | |
version = "0.7" | |
default-features = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function useTraceUpdate(props) { | |
const prev = useRef(props); | |
useEffect(() => { | |
const changedProps = Object.entries(props).reduce((ps, [k, v]) => { | |
if (prev.current[k] !== v) { | |
ps[k] = [prev.current[k], v]; | |
} | |
return ps; | |
}, {}); | |
if (Object.keys(changedProps).length > 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/my-sites/checkout/checkout/secure-payment-form.jsx b/client/my-sites/checkout/checkout/secure-payment-form.jsx | |
index f30dafbf33..ff83ebadd1 100644 | |
--- a/client/my-sites/checkout/checkout/secure-payment-form.jsx | |
+++ b/client/my-sites/checkout/checkout/secure-payment-form.jsx | |
@@ -193,7 +193,7 @@ export class SecurePaymentForm extends Component { | |
} ); | |
}; | |
- submitTransaction( event ) { | |
+ async submitTransaction( event ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/my-sites/checkout/checkout/checkout-container.jsx b/client/my-sites/checkout/checkout/checkout-container.jsx | |
index 3f03dbf5ca..c5a68b0101 100644 | |
--- a/client/my-sites/checkout/checkout/checkout-container.jsx | |
+++ b/client/my-sites/checkout/checkout/checkout-container.jsx | |
@@ -35,13 +35,10 @@ function isSiteCreatedDateNew( createdAt, creationWindowInMinutes = 5 ) { | |
class CheckoutContainer extends React.Component { | |
state = { | |
headerText: '', | |
- shouldDisplaySiteCreatedNotice: | |
- this.props.isComingFromSignup && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/assets/stylesheets/shared/_typography.scss b/client/assets/stylesheets/shared/_typography.scss | |
index 4a59103c03..34e69045bb 100644 | |
--- a/client/assets/stylesheets/shared/_typography.scss | |
+++ b/client/assets/stylesheets/shared/_typography.scss | |
@@ -1,4 +1,4 @@ | |
-@import '~@automattic/components/src/styles/_typography.scss'; | |
+@import '~@automattic/components/sass/_typography.scss'; | |
// Typeface Variables | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Action Creators | |
class IncrementCounter { | |
readonly type = 'INCREMENT_COUNTER'; | |
} | |
class SetCounter { | |
readonly type = 'SET_COUNTER'; | |
constructor( public newValue: number ) {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress dependencies | |
*/ | |
import { Placeholder, withNotices } from '@wordpress/components'; | |
import { useEffect } from '@wordpress/element'; | |
import { __ } from '@wordpress/i18n'; | |
import { resizeCornerNE as icon } from '@wordpress/icons'; | |
const Edit = withNotices( ( { noticeOperations, noticeUI } ) => { | |
useEffect( () => { |
OlderNewer