-
Notifications
You must be signed in to change notification settings - Fork 91
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
SS4 improvements #138
Merged
silbinarywolf
merged 13 commits into
symbiote:master
from
JorisDebonnet:ss4-improvements
Apr 30, 2018
Merged
SS4 improvements #138
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6fd6cd3
Rename src/Controllers to src/Pages and move all Page-stuff there
JorisDebonnet a46fb93
Move page templates into namespaced directories
JorisDebonnet c320246
Refactor page templates
JorisDebonnet 5c274d7
Make CMS page icon accessible
JorisDebonnet 966c6a3
Fix Password field
JorisDebonnet 9680060
Fix MemberProfileValidator
JorisDebonnet 3ef3522
Set default Unique and Required fields for Email and Password
JorisDebonnet 8431276
Allow working without any Group, just showing all Members in the List
JorisDebonnet 2b73c99
Fix auto-login after register and email validate
JorisDebonnet a5f90ec
fix Email::getAdminEmail() (no longer supported)
JorisDebonnet 83e47db
Update composer.json to install into /vendor/ folder
JorisDebonnet 74f98b7
Update README for SS4
JorisDebonnet 8317612
Fix Requirements after installing into vendor folder
JorisDebonnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
File renamed without changes
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* extracted from silverstripe/framework */ | ||
|
||
(function ($) { | ||
$(document).on('click', '.confirmedpassword .showOnClick a', function () { | ||
var $container = $('.showOnClickContainer', $(this).parent()); | ||
|
||
$container.toggle('fast', function() { | ||
$container.find('input[type="hidden"]').val($container.is(":visible") ? 1 : 0); | ||
}); | ||
|
||
return false; | ||
}) | ||
.find(".confirmedpassword .showOnClickContainer").hide(); | ||
})(jQuery); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,39 @@ | ||
{ | ||
"name": "symbiote/silverstripe-memberprofiles", | ||
"description": "Member registration and profile management", | ||
"type": "silverstripe-module", | ||
"keywords": ["silverstripe", "member", "profile", "registration"], | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Andrew Short", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"silverstripe/framework": "~4.0", | ||
"silverstripe/cms": "~4.0" | ||
}, | ||
"suggest": { | ||
"ajshort/silverstripe-gridfieldextensions": "Allows drag-and-drop reordering of fields" | ||
}, | ||
"extra": { | ||
"expose": [ | ||
"client" | ||
"name": "symbiote/silverstripe-memberprofiles", | ||
"description": "Member registration and profile management", | ||
"type": "silverstripe-vendormodule", | ||
"keywords": ["silverstripe", "member", "profile", "registration"], | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Andrew Short", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"silverstripe/framework": "~4.0", | ||
"silverstripe/cms": "~4.0" | ||
}, | ||
"suggest": { | ||
"ajshort/silverstripe-gridfieldextensions": "Allows drag-and-drop reordering of fields" | ||
}, | ||
"extra": { | ||
"expose": [ | ||
"client" | ||
], | ||
"installer-name": "memberprofiles", | ||
"branch-alias": { | ||
"dev-master": "3.0.x-dev" | ||
}, | ||
"screenshots": [ | ||
"http://ajshort.github.com/silverstripe-memberprofiles/screenshots/edit-profile.png", | ||
"http://ajshort.github.com/silverstripe-memberprofiles/screenshots/cms-profile-fields.png", | ||
"http://ajshort.github.com/silverstripe-memberprofiles/screenshots/member-list.png" | ||
] | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Symbiote\\MemberProfiles\\": "src/", | ||
"Symbiote\\MemberProfiles\\Tests\\": "tests/" | ||
} | ||
"branch-alias": { | ||
"dev-master": "3.0.x-dev" | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Symbiote\\MemberProfiles\\": "src/", | ||
"Symbiote\\MemberProfiles\\Tests\\": "tests/" | ||
} | ||
}, | ||
"replace": { | ||
"silverstripe/memberprofiles": "self.version", | ||
"ajshort/silverstripe-memberprofiles": "self.version", | ||
"silverstripe-australia/memberprofiles": "self.version" | ||
} | ||
"replace": { | ||
"silverstripe/memberprofiles": "self.version", | ||
"ajshort/silverstripe-memberprofiles": "self.version", | ||
"silverstripe-australia/memberprofiles": "self.version" | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
src/Controllers/MemberApprovalController.php → src/Pages/MemberApprovalController.php
This file contains 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
This file contains 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not something that we can reference from silverstripe/framework, rather than copy and pasting it across here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main thing that jumps out to me from the PR. In regards to your PSR-2 comments, I'm planning to run PSR-2 formatting across all of our modules in the near future (hooking them up to Travis to enforce this).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the issue, but this code does not appear in a separate .js file anymore. SS4 now bundles nearly all cms js in a single .js file. I tried searching for
showOnClickContainer
in thevendor/silverstripe
folder, but it's only to be found inadmin/client/dist/js/bundle.js
. I remember reading about this in the upgrade guide:https://docs.silverstripe.org/en/4/changelogs/4.0.0#js-in-framework
It suggests transpiling source es6 files in our own build process, but I can't find those source files. Perhaps they're not shipped to the packagist release or something? So in that case, since it's only a small piece of .js, I thought I'd just integrate it directly...
("extracted from silverstripe/framework" actually means I got it from the SS3 code; nowadays, it is actually found in silverstripe/admin, so perhaps I should change that comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah okay, that makes sense. It feels like the confirm password field was never intended for the front end. In which case, happy for this to stay until we come up with a better solution. Thanks for all your work on this PR. I'll probably have a quick play with it before merging :)