Skip to content

⚡ adds ability to run the dashboard from any mount point #217

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

Merged
merged 4 commits into from
Apr 2, 2016

Conversation

flovilmart
Copy link
Contributor

  • fixes allowInsecureHTTP

@@ -83,7 +83,28 @@ module.exports = function(config) {

// For every other request, go to index.html. Let client-side handle the rest.
app.get('/*', function(req, res) {
res.sendFile(__dirname + '/index.html');
let url = req.url;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

infer the mount path

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @drew-gross, @flovilmart and @gimdongwoo to be potential reviewers.

@mamaso
Copy link

mamaso commented Apr 1, 2016

Appreciate you looking into this!

Good stuff, definitely less intrusive. I like how you inferred the mount path.

A few issues that you might want to test:

  • does it load the phone images on the push tab?
  • are there any failing requests in the network tab of developer tools?

@flovilmart
Copy link
Contributor Author

You're free to test!

@drew-gross
Copy link
Contributor

Turns out the images in the push page don't work. Otherwise this looks sweet though.

@flovilmart
Copy link
Contributor Author

Yep, also the internal API, need to inject dashboardURL into the config.apps to minimize the footprint on the lib

@drew-gross
Copy link
Contributor

How would you feel about just injecting the config into the page directly? Then an extra fetch would not be necessary. Also, if you are moving the index.html into the source, can you also delete the actual index.html file?

@flovilmart
Copy link
Contributor Author

Yeah I was thinking about that too.
We can't really remove the endpoint as we use it for authentication purposes and that would expose the keys, but we could rename it to /config.json

also the scss loader is getting crazy with the relative image URL paths....

@drew-gross
Copy link
Contributor

Ah, that is unfortuanate :(

@drew-gross drew-gross closed this Apr 2, 2016
@drew-gross drew-gross reopened this Apr 2, 2016
@flovilmart
Copy link
Contributor Author

no I'm getting through it!

@drew-gross
Copy link
Contributor

Just noticed the favicon is missing too. Obviously that is lower-pri :p

@facebook-github-bot
Copy link

@flovilmart updated the pull request.

@flovilmart
Copy link
Contributor Author

Just remains the internal API calls in lib/ParseApp.js

@facebook-github-bot
Copy link

@flovilmart updated the pull request.

@flovilmart
Copy link
Contributor Author

@drew-gross that should be it!

@facebook-github-bot
Copy link

@flovilmart updated the pull request.

// abortable flag used to pass xhr reference so user can abort accordingly
export function request(method, url, body, abortable = false, withCredentials = true, useRequestedWith = true) {
if (!url.startsWith('http://')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

open to suggestions about that, that's the less invasive I've found

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this is fine. The only things that aren't going to go through the Parse sdk are the config loading, and potentially this app creation stuff that is being discussed.

@drew-gross drew-gross merged commit 2a03d69 into master Apr 2, 2016
@drew-gross drew-gross deleted the adds-base-head branch April 2, 2016 01:54
@fabiogomezdiaz
Copy link

@flovilmart great job with this PR! With this, will we now be allowed to deploy the dashboard to Heroku? If so, how could I go about that? Do I need to set any specific environment/config variables?

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 4.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jan 1, 2022
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 4.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants