spomky-labs / phpwa-doc Goto Github PK
View Code? Open in Web Editor NEWThis is the repository for the GitBook documentation available at the website below
Home Page: https://pwa.spomky-labs.com/
This is the repository for the GitBook documentation available at the website below
Home Page: https://pwa.spomky-labs.com/
At first, I thought the regex documentation was wrong, and started to fix it:
| regex | Matches the regex |
Although slash is a common character to use to enclose a regular expression, the examples above show using other characters to avoid needing to escape the slashes in the path. So //articles/./ is the same regex as {/articles/.}. See Regular Expressions for more information. Internally, regeg: maps to new RegExp()
But then when I dug into the code, I see that the new RegExp() format doesn't need the regex to be surrounded. I think this needs to be clearer, especially since when I see something like this:
startsWith: /dashboard
regex: /articles/
regex: |/articles/(\d)+| # is this valid?
I assume the regex will match any article (without the slashes, since to PHP programmers it will be natural to assume the slashes are necessary for the regex.
workbox.routing.registerRoute(
new RegExp('{^/products|categories/}')
At the end of my journey down regex lane, here's my trip report:
Regardless, the docs should be updated. I'll move my suggestion to an issue in the bundle repo.
The indentation is wrong here: https://pwa.spomky-labs.com/the-service-worker/workbox/warm-caching#page-caching
- 'app_articles'
- 'app_top_articles'
params:
display: 5
Can you add a link from the documentation back to the github page, e.g. "See an error? Fix it here..."
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.