Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Web login - simple html + js version #519

Merged
merged 5 commits into from
Feb 4, 2019
Merged

Web login - simple html + js version #519

merged 5 commits into from
Feb 4, 2019

Conversation

webdevelopland
Copy link
Contributor

No description provided.

@@ -0,0 +1,20 @@
.google {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do it reasonably without the login-with-google.png and favicon.ico?

Log Out
</button>
</div>
<div class="chrome" id="chrome">For best support please open chrome</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

:-)

Log Out
</button>
</div>
<div class="chrome" id="chrome">For best support please open chrome</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

s/chrome/Chrome


### Development
```
npm start
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is just plain HTML+js, why do we need npm? Please document.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a small development expressjs server, which launched the HTML+js code locally.
expressjs requires npm.
But we can run localserver from outside, it doesn't have to be part of the project. So I removed it.

@@ -0,0 +1,27 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool! Maybe we can further simplify by putting all the js inside the html file?
That way you can actually open the file in the browser and it will work, you don't need a server.
Or is that frowned upon? :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like we can't work with firebase, when all the code is launched from a single file.
Error:

This operation is not supported in the environment…chrome-extension and web storage must be enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But the file works, if it's launched from a server.
So I can put everything in one file, but there's no much sense in it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let's still keep it in one file. I think it will be easier to host it that way.

@webdevelopland webdevelopland merged commit 64e2c0e into master Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants