This is a talk I gave at NDC Oslo in 2022.
結局PWAは来るの?来ないの?
TWA (Trusted Web Activities)
- https://developers.google.com/web/updates/2019/02/using-twa
- https://developers.google.com/web/updates/2019/08/twas-quickstart
- https://web.dev/oyo-lite-twa/
- https://github.com/GoogleChromeLabs/llama-pack
Project Fugu
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
Don't want to see package-lock.json
and yarn.lock
in your git diff
? Here are two nifty aliases that hide these files from your diff.
alias gd="git diff -- :!package-lock.json :!yarn.lock"
alias gds="git diff --staged -- :!package-lock.json :!yarn.lock"
This cookbook is similar to Vue cookbook but contains our custom recipes for some specific cases.
For form validation we use Vuelidate
export default Vue.extend({
...
validations: {
None of the string methods modify this
– they always return fresh strings.
-
charAt(pos: number): string
ES1Returns the character at index
pos
, as a string (JavaScript does not have a datatype for characters).str[i]
is equivalent tostr.charAt(i)
and more concise (caveat: may not work on old engines).
Service Workers are a new technology in modern web browsers. They augment the normal web deployment model and empower applications to deliver reliability and performance on par with natively installed code.
Service Workers have many different capabilities, but the most important is their function as a network proxy. They intercept all outgoing HTTP requests made by the application and can choose how to respond to them. For example, they can query a local cache and deliver a cached response if one is available. Proxying isn't limited to requests made through programmatic APIs (such as fetch
), but includes resources referenced in HTML and even the initial request to index.html
itself. Service Worker-based caching is thus completely programmable, and doesn't rely on server-specified caching headers.
Unlike the other scripts which make up an application (such as the Angular app bundle), the Service Worker is preserved after the user closes the tab. T
var authentication = "key=a...&token=9..."; | |
var idBoard = "592...."; | |
var inboxList = "592..."; | |
var updatedLabel = "592...."; | |
function getField(itemResponses, fieldName) { | |
var titles = []; | |
for (var i in itemResponses) { | |
if (itemResponses[i].getItem().getTitle() === fieldName && itemResponses[i].getResponse().length > 0) { |