cristianbote / hnpwa-vanilla Goto Github PK
View Code? Open in Web Editor NEWHacker News PWA implemented using no framework just javascript
Home Page: https://hnpwa-vanilla.firebaseapp.com/
License: MIT License
Hacker News PWA implemented using no framework just javascript
Home Page: https://hnpwa-vanilla.firebaseapp.com/
License: MIT License
Hi @cristianbote, it has been long time I don't check this project. I would like to test in locally by run npm run serve
but Firebase give response error HTTP Error 401 like below:
Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Is that I'm missing something? I have tried to set up a Firebase project with the name hnpwa-vanilla
and firebase give the project id name: hnpwa-vanilla-a2008
. I run command explicitly firebase serve -p 8080 --project hnpwa-vanilla-a2008
and it still gives response HTTP error 401.
hnpwa-vanilla/src/core/dom-api.js
Lines 18 to 25 in aca303b
innerHTML
might be an issue if the title of the post is something like:
PWA suffers <em onmouseover="alert('hi')"> html injection attack!
Nice work ๐ฏ
To qualify does this need to support IE 11? ๐ญ
Could use https://github.com/developit/unfetch
Is there a global cli tool that is implied in the README.md
? I can't npm run serve
or npm run-prod
because neither is present in package.json
.
โ hnpwa-vanilla git:(master) โ npm run serve
npm ERR! missing script: serve
โ hnpwa-vanilla git:(master) โ cat package.json | jq .scripts
{
"build-sw": "node sw-build.js",
"html-minify": "node html-minify.js",
"copy-assets": "node copy-assets.js",
"bundle": "microbundle --output public --target browser --format cjs",
"build-prod": "rm -rf public; npm run bundle; npm run copy-assets; npm run build-sw; npm run html-minify",
"deploy": "npm run build-prod; firebase deploy"
}
Hi Cristian, thanks for your awesome hnpwa-vanilla repo. I just want to learn the code and how it works, but when I do npm run dev
as per documentation it doesn't work. I check in package.json and it doesn't contain "scripts": { "dev": "bla bla bla" }
. I go to your commit history and it shows that you replace several dependecies with microbundle and you remove the scripts { "dev": "bla bla bla" }
. I go to microbundle repository and do as per documentation:
npm i -D microbundle
"scripts": { "build": "microbundle", "dev": "microbundle watch" }
npm run dev
but it just bundling and didn't show the URL that I must hit in browser.Could you please give the solution about this with update README.md. Thanks a lot.
Sometimes, the story url is basically comments. Just don't open it, in a new window.
It wasn't a thing back then, it is now.
Pff, this should've been caught in testing.
not sure what this means: sh: 1: firebase: not found
Routing does not work when you click on the back or forward button.
Meaning, update the item view with the content title.
Long comments threads take too long to render. Should have a better experience.
A few options could include:
Figure it out!
Hi @cristianbote, I try hnpwa-vanilla live site doesn't update the value of param page
each time I move to the next page. Here is the demo video related to the value of page param doesn't change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.