Giter Site home page Giter Site logo

mya-ake / vue-tips-samples Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 6.0 966 KB

Vue.js の tips 本のサンプルコード

Home Page: https://vue-tips-support-page.mya-ake.org

License: MIT License

JavaScript 81.03% HTML 1.93% Vue 17.05%
vue vuejs2 vuex vue-i18n vue-router vue-test-utils

vue-tips-samples's Introduction

vue-tips-samples

現場で使える Vue.js tips 集のサンプルコード

このリポジトリについて

現場で使える Vue.js tips 集は「商業版」と「同人版」の 2 種類が存在します。 master ブランチは商業版に対応したコードとなっています。 同人版のコードを確認されたい方はdoujinshi ブランチをご覧ください。

サポートページ

本書のサポートページを用意しました。 サポートページでは書籍内で書ききれなかった内容やサンプルコードのデモを置いています。合わせてご参照ください。

https://vue-tips-support-page.mya-ake.org

デモサイト

https://vue-tips-support-page.mya-ake.org/demo/

章とフォルダー

1 章 computed と filter

2 章 お問い合わせフォームと戦う

3 章 フォームのライブラリー実装編

4 章 Vuex の tips

5 章 vue-test-utils でなにをテストするか

6 章 vue-i18n の Lazy loading と vue-router

注意

  • npmでなくyarnを使っています
    • npmでも動くとは思います
  • vue-cli v3を利用しています
    • ESLint はESLint + Prettierです
    • 追加で'singleQuote': true, 'trailingComma': 'all'を付けています
  • Chrome で作業していたので他のブラウザの動作までは確認できていません
    • モダンブラウザなら動くはずです
    • モダンブラウザで動作していなさそうなブラウザがあった場合は@mya_akeまでご連絡ください
    • またはissuesにて起票お願いします

更新予定

更新予定などはこのリポジトリのissuesをご覧ください

vue-tips-samples's People

Contributors

mya-ake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-tips-samples's Issues

サポートページの充実

  • JavaScript の class の解説
  • JavaScript の分割代入あたりの解説

とか
デモもここに載せてしまいたい気持ち

Form のリファクタリング

  • クラス名の再考
    • BaseFormItem じゃなく FormItemInterface の方がよいのではないか?
  • インターフェースを全体的に見直す

誤字のご連絡

P47 10行目

・フォームの要素のインスタンス生成と保持
・FormObserverに渡すための要素名の配列の生成
- ・フォームのの要素の 要素名:値 の組み合わせのobjectの生成
+ ・フォームの要素の 要素名:値 の組み合わせのobjectの生成

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.