Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Members lib #10260

Merged
merged 12 commits into from
Dec 11, 2018
Merged

Members lib #10260

merged 12 commits into from
Dec 11, 2018

Conversation

allouis
Copy link
Contributor

@allouis allouis commented Dec 10, 2018

This is the core of the members lib


function getFreshState() {
const [hash, formType, query] = window.location.hash.match(/^#([^?]+)\??(.*)$/) || ['#signin?', 'signin', ''];
console.log({hash, formType, query})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs removing

@@ -351,12 +352,14 @@ var config = require('./core/server/config'),
},

prod: {
'core/client': 'shell:ember:prod'
'core/client': 'shell:ember:prod',
'core/server/lib/members/static/auth': 'shell:preact:prod'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs preact prod build to create dist folder with static bundle.

},

watch: {
projects: {
'core/client': ['shell:ember:watch', '--live-reload-base-url="' + urlService.utils.getSubdir() + '/ghost/"']
'core/client': ['shell:ember:watch', '--live-reload-base-url="' + urlService.utils.getSubdir() + '/ghost/"'],
'core/server/lib/members/static/auth': ['shell:preact:dev']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runs watch and live reload for developing member auth views, probably one side-effect during local dev is it clears console once on start, this can be fixed in next iteration.

@allouis allouis merged commit a5ea349 into TryGhost:master Dec 11, 2018
@allouis allouis deleted the members-lib branch December 11, 2018 06:47
daniellockyer pushed a commit that referenced this pull request Jul 20, 2022
* Added members library inc. gateway

refs #10213

* Added the auth pages and build steps for them

refs #10213

* Cleaned up logs

* Updated gruntfile to run yarn for member auth

* Design refinements on members popups

* UI refinements

* Updated backend call to trigger only if frontend validation passes

* Design refinements for error messages

* Added error message for email failure

* Updated request-password-reset to not attempt to send headers twice

* Updated preact publicPath to relative path

* Build auth pages on init
daniellockyer pushed a commit that referenced this pull request Jul 20, 2022
* Added members library inc. gateway

refs #10213

* Added the auth pages and build steps for them

refs #10213

* Cleaned up logs

* Updated gruntfile to run yarn for member auth

* Design refinements on members popups

* UI refinements

* Updated backend call to trigger only if frontend validation passes

* Design refinements for error messages

* Added error message for email failure

* Updated request-password-reset to not attempt to send headers twice

* Updated preact publicPath to relative path

* Build auth pages on init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants