-
Notifications
You must be signed in to change notification settings - Fork 128
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
v2 development plan #1
Comments
SGTM! |
I think I have all the static content transferred over minus a few things like proper error pages and versioned assets. To keep things simple, I am planning on using the |
I'm blending a lot of what I like in jedireza/aqua and npm/newww. I plan on documenting how I'm thinking about repositories and services, possibly turning into Hapi plugins if it makes sense. I'm hoping page revisions and comments will be easier now that the big initial page save is done 📦 |
Is anything big still missing? |
the biggest thing left is retrieving test pages by slug. I created a milestone and issues for most of the features I identified from the old |
A material design would be a nice gimmick as well, but of course there are far more important things right now. |
I am a front end developer looking to contribute to jsperf, as it has helped me learn JavaScript and working with the dom in efficient ways. I can cook up a front end in CSS/html using the new material lite framework as well as any html rendering engine that you are working with. I am not a senior developer but my skills are good enough to contribute to an open source project. Material design lite: http://www.getmdl.io Company I work for: https://www.policygenius.com |
@abacaj thanks for offering to help. We're currently focused on only changing the server for v2. Updating the client code and/or styles would most likely be a v3 milestone. |
Ah I see, well I will be around if needed 👍 |
Any update on this? Need any help in any areas? |
@shaunwarman These issues are blocking the v2 release: https://github.com/jsperf/jsperf.com/milestones/v2 Help welcome! |
How about force the use to login with github and use their gists to store the tests? |
I'm sorry if I've misread the code, but it seems like index.php would be vulnerable to sql injection through, for example, $_GET['id']. I had this problem when I was creating a game, so, instead of placing the values from get directly in the string, I had to bind the parameters like this: Also, $_SERVER['HTTP_HOST'] references a value provided by the user's browser so it can be spoofed. |
Can you point to an example where
AFAIK it’s only being used here: https://github.com/mathiasbynens/jsperf.com/blob/002825bc3b111714ec0b7b2e02bed72258fdf492/index.php#L21-L23 …which seems harmless. Spoofing this value would only cause a redirect. |
I did read it wrong. I missed your cast to int. And I meant that the php could be accepting data generated by different page, with the browser incorrectly reporting that it was coming from the correct page. |
I don’t understand. Could you clarify, please? |
What @Danielcre is referring to is that
That means whatever is sent in the request is what you are using, and the request is up whatever client is sending it. Browsers are not the only things capable of using HTTP to access your back-end. You cannot make any assumptions about what that may contain or that it even exists. Disclaimer: I am not sure where the usage in question even is; I am just helping clarify. |
@mathiasbynens The |
@mrosata I agree. The new version (i.e. the code in this very repository) is doing it right. |
Here's my plan for creating a new backend:
It's going to be messy at times and later refactoring will be necessary. Please submit PRs 😺
If anyone knows of unused parts of the old backend, please submit a PR to my fork with what can be skipped.
If you think there's a better approach to creating a new backend, open to suggestions 🙏
The text was updated successfully, but these errors were encountered: