today i learned.
mtmtkzm / til Goto Github PK
View Code? Open in Web Editor NEWtoday i learned.
today i learned.
SSR時、JavaScript をオフにしても SPA部分が普通に(?)ある程度動く
plugin 内で inject すると、Vueインスタンス、Store、コンテキストで共通利用できるようになる!(これが axios module?
UAでスタイルの分割今はこれで良さげだった
https://qiita.com/mtmtkzm/items/7e6dcd4dc54285b749b3
デメリット
メリット
オリジナル配列と、新配列の要素数、同じじゃないとダメなんだぜ!(return しないと null が入る)
クロージャ関数内では JS みたいに外の変数にはアクセスできない!
use することで使えるようになるんやで。
オペレーションジェスチャとコマンドジェスチャの違いを 理解 してインタラクションを設計する必要があるよね。
下記はオペレーションジェスチャになるところ、コマンドジェスチャを利用してしまっている良くない例。
これは左になぞったあと、そのなぞったということが認識されてワンテンポ置いたあとに、ひとつ前の写真が表示されるというものであった。また、コマンドが認識されたあと、今見ている写真が左にアニメーションして動いていくトランジション効果をかけたものもあった。電子書籍も、ページをめくっている感じを演出として出したいのか、画面をなぞると次のページに切り替わるというものがあった。特に電子ペーパーの場合はアニメーションには強くないので、なぞりのジェスチャの後に画面がクロスフェードして次のページが現れるというものがあった。
amp-img の background-cover 的挙動は、object-fit を利用する。
これからは、特に何かない限り .data
はhttpの副産物として、中で処理してしまうようにする。とおもった。
ok:
const result = await axios
.get(url, {})
.then(response => response.data)
const data = result;
ng:
const result = await axios
.get(url, {})
.then(response => response)
const data = result.data;
だとやり直す部分が多い。最悪の場合マークアップをやり直さなくてはならんくなる。
https://qiita.com/il-m-yamagishi/items/a823c1afbdf253e84a34
service worker によるサポートを受けるためには fetch API を利用する必要があったり
service worker との親和性が向上
これはどういうこと….?
iosでは、
環境はすぐ完成した。
plugin の context で、
nuxt.config にある共通 head を書き換えることができたので、動的な何かを差し込みたいけどアプリで共通なものは、処理をここに共通化できそう。
/client/plugins/insert-localized-fontfamily.js
// lang にあわせたフォント用CSSを読み込み
export default ({ app, store }) => {
const lang = store.state.i18n.locale;
app.head.link.push({
rel: "stylesheet",
href: "Noto Sans JP とか"
});
};
レイアウトにある TheHeader.vue とかのコンポーネントはどうやって asyncData すればいいんだ
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.