Giter Club home page Giter Club logo

icon-previewer's Introduction

Icon Previewer

GitHub Pages Status Netlify Status License Made with TypeScript Made with Sass Made with Pug Bundled with Parcel Managed with Yarn Berry

Preview PWA, iOS, iPadOS, Android, Windows, MacOS or Linux application icons on your real devices without any setup.

icon-previewer's People

Contributors

plbstl avatar sp321 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sp321

icon-previewer's Issues

Missing assets: GitHub Pages not displaying properly

This repo is deployed simultaneously to GitHub Pages and Netlify.

It displays correctly on Netlify. See https://6489cd17207ee90009819190--aip1.netlify.app/.

But deployments to GitHub Pages using actions (currently in beta) doesn't display correctly.

I have viewed the action logs and skimmed through the source code for actions/upload-pages-artifact, upload-artifact, and @actions/artifact. All seems well. I'm yet to look into actions/deploy-pages and the outputted URLs in the action logs.

Screenshots

  Elements tab in dev tools
Elements tab in Edge dev tools
  Network tab in dev tools
Network tab in Edge dev tools

Response headers

The response headers differ from other deployed pages projects. Here, I am comparing my main CSS file with base.css from "square.github.io". Note that this can be a CSS file from any proper working deployed project.

- plbstl.github.io/icon-previewer square.github.io
access-control-allow-origin *
age 872 (higher than others) 4 (sometimes as low as zero)
cache-control max-age=600
content-security-policy default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'
content-type text/html; charset=utf-8 (requested a CSS file!) text/css; charset=utf-8
expires approximately 10 mins after Date header
last-modified Datetime

Conclusion

The assets are obviously not there, that's why GitHub sends a generic 404 HTML. Maybe they're in another location, who knows. I am not done debugging but that's taking some time. I'll switch to classic GitHub Pages on the main branch with a /docs folder. This is very okay for my current setup.


Edit: I really needed that sleep 🤦‍♂️

The problem is the link tag href attribute. It starts with an absolute path of / instead of /icon-previewer/.

As per http://username.github.io/repository.

See: https://pages.github.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.