[frontendmasters.com] TypeScript and Vue 3 [2022, ENG]

Страницы:  1
Ответить
 

iamalaska

Top Seed 03* 160r

Стаж: 13 лет 8 месяцев

Сообщений: 633

iamalaska · 04-Фев-23 01:29 (1 год 4 месяца назад)

TypeScript and Vue 3
Год выпуска: 2022
Производитель: frontendmasters.com
Сайт производителя: https://frontendmasters.com/courses/vue-typescript/
Автор: Ben Hong
Продолжительность: 3 hours, 6 min
Тип раздаваемого материала: Видеоклипы
Язык: Английский
Описание: Adopting TypeScript in your Vue projects doesn't have to be all or nothing. Learn the essential skills you need to leverage what makes TypeScript great in your Vue apps. You'll learn to integrate TypeScript with Vue's options API and the Vue 3+ composition API.
Published: October 18, 2022
Resources and Downloads
GitHub Repo https://github.com/bencodezen/typescript-and-vue-workshop
Содержание
Table of Contents
Introduction
Introduction
00:00:00 - 00:02:46
Introduction
Ben Hong introduces the course by providing some personal and professional background. The format of the workshop is also discussed in this segment.
TypeScript
00:02:47 - 00:05:37
TypeScript
Ben discusses who this workshop is for, including people who are just curious about TypeScript with Vue and people who are ready to learn the fundamentals of TypeScript and Vue integration.
Repo & Vue CLI Setup
00:05:38 - 00:12:20
Repo & Vue CLI Setup
Ben walks through the prerequisites for the course repository, discusses changes to the Vue CLI, and suggests newer front-end tooling. A demonstration of setting up the course repository and a walk through of the application are also provided in this segment.
TS Fundamentals & Options API
Declaring Prop Types
00:12:21 - 00:22:08
Declaring Prop Types
Ben discusses which APIs will be used during this course, TheNavBar component, and demonstrates declaring more descriptive prop types.
Adding Prop Types Practice
00:22:09 - 00:26:05
Adding Prop Types Practice
Students are instructed to convert a component to TypeScript, import the defineComponents method, and define the TypeScript types in the 01-exercise branch. The solution to the exercise is also provided in this segment and on the 01-finish branch.
Using Types in Multiple Components
00:26:06 - 00:34:43
Using Types in Multiple Components
Ben briefly discusses the layout of the exercises in the course repo, how to define the shape of an array of data, and demonstrates how to utilize types in multiple components.
Computed Properties & Methods
00:34:44 - 00:45:21
Computed Properties & Methods
Ben demonstrates using computed properties to create a data cache that updates automatically based on other data. Students' questions regarding what information is provided in TypeScript errors and if types need to be added inside the filter function are also covered in this segment.
Converting to TypeScript Practice
00:45:22 - 00:52:07
Converting to TypeScript Practice
Students are instructed to take the DishesPage and convert it to TypeScript, type the data, and computed properties in the 02-exercise branch. The solution to the exercise is also provided in this segment and on the 02-finish branch.
Migrating to Composition API
Refactoring Options API Methods
00:52:08 - 01:09:55
Refactoring Options API Methods
Ben demonstrates migrating Options API to Composition API. The Composition API is a set of APIs that allows the ability to author Vue components using imported functions instead of declaring options.
Migrating to Composition API Practice
01:09:56 - 01:15:57
Migrating to Composition API Practice
Students are instructed to migrate the options into the Composition API on the 03-exercise branch. The solution to the exercise is also provided in this segment and on the 03-finish branch.
Composition API
Using the Script Setup Block
01:15:58 - 01:20:30
Using the Script Setup Block
Ben demonstrates using script setup, introduced in Vue 3.2 and above, to help trim down the more lengthy boilerplate. A script setup practice exercise on the 04-exercise branch and solution on the 04-finish branch are also provided in this segment.
Custom Types Exercise
01:20:31 - 01:24:10
Custom Types Exercise
Ben discusses defining custom types and instructs students to create a custom type from the values in dietList. This exercise is on the 05-exercise branch.
Custom Types Solution
01:24:11 - 01:27:09
Custom Types Solution
Ben walks through the solution to the Custom Types exercise. The final code can be found on the 05-finish branch.
Types and Constants Q&A
01:27:10 - 01:33:01
Types and Constants Q&A
Ben answers a student's question regarding what happens to constants, if the constants get incorporated or if they are put in their own file. A demonstration of generating types from defined constants is also covered in this segment.
Single Source of Truth Practice
01:33:02 - 01:34:53
Single Source of Truth Practice
Students are instructed to create a single source of truth for the restautantStatusList on the 06-exercise branch. The solution to the exercise on the 06-finish branch is also provided in this segment.
Compiler Macros: defineProps
01:34:54 - 01:44:09
Compiler Macros: defineProps
Ben demonstrates using the helper method defineProps to generate prop types. Vue provides this method for added functionality that does not affect the resulting bundle.
Compiler Macros: defineEmits
01:44:10 - 01:50:13
Compiler Macros: defineEmits
Ben discusses defining and emitting events using the defineEmits macro. The defineProps and defineEmits compiler macros are only usable inside <script setup>. They do not need to be imported and are compiled away when <script setup> is processed.
Compiler Macros Practice
01:50:14 - 01:53:10
Compiler Macros Practice
Students are instructed to strip down the DishCard and practice defining the props on the 07-exercise branch. The solution to the exercise on the 07-finish branch is also provided in this segment.
Handling Events & User Input
Event Handlers
01:53:11 - 01:59:18
Event Handlers
Ben live codes event handler functions for creating new restaurants, adding restaurants, and canceling a restaurant.
Autofocus Form Elements
01:59:19 - 02:03:20
Autofocus Form Elements
Ben demonstrates how to consistently add autofocus to forms by defining a reference to the HTML input element.
Autofocus Practice
02:03:21 - 02:04:50
Autofocus Practice
Students are instructed to autofocus a field on the DishForm on the 08-exercise branch. The solution to the auto focus exercise can be found on the 08-finish branch.
Custom Event Handlers
02:04:51 - 02:12:25
Custom Event Handlers
Ben demonstrates creating more advanced event handlers by breaking the v-model into two parts, the value and input event.
Custom Event Practice
02:12:26 - 02:18:48
Custom Event Practice
Students are instructed to hijack the update for the dishes search so that it only updates when the user hits "Enter" on the 09-exercise branch. The solution to the custom event exercise can be found on the 09-finish branch.
State Management
Global State Management with Pinia
02:18:49 - 02:31:51
Global State Management with Pinia
Ben demonstrates using the Pinia API for global state management. Pinia removes the need for boilerplate mutations, is type-safe, and React to store changes to extend Pinia with transactions, local storage synchronization, etc.
Creating a Store Practice
02:31:52 - 02:38:18
Creating a Store Practice
Students are instructed to practice creating a DishStore on the 10-exercise branch. The solution to the creating a store exercise can be located on the 10-finish branch.
Deployment
Deploying to Netlify
02:38:19 - 02:44:04
Deploying to Netlify
Ben demonstrates how to deploy a TypeScript and Vue application with Netlify.
Creating an Edit Page Exercise
02:44:05 - 02:45:58
Creating an Edit Page Exercise
Students are instructed to create an edit page using all of the knowledge gained throughout the course on the 11-exercise branch.
Creating an Edit Page Solution
02:45:59 - 03:01:22
Creating an Edit Page Solution
Ben walks through the solution to the creating an edit page exercise which can be located on the 11-finish branch.
Wrapping Up
Wrapping Up
03:01:23 - 03:07:02
Wrapping Up
Ben wraps up the course by providing recommendations for the next steps and key ideas from the course to keep in mind. Student questions regarding how to know when to migrate to TypeScript, if Options or Composition API is better for larger projects, and if it's possible to export to a test file are also covered in this segment.
Файлы примеров: присутствуют
Формат видео: MP4
Видео: 2560x1440, 16:9, 29.970 fps, avg 1010 kb/s
Аудио: AAC, 48kHz, 127, stereo
Скриншоты
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 

KennY_TaiMa

Стаж: 14 лет 9 месяцев

Сообщений: 12

KennY_TaiMa · 11-Фев-23 05:18 (спустя 7 дней)

Всем привет, субтитры на английском языке.
Ссылка на субтитры - ССЫЛКА
[Профиль]  [ЛС] 

ninknln

Стаж: 4 года

Сообщений: 4


ninknln · 12-Фев-23 15:40 (спустя 1 день 10 часов)

Can you please add the new two next js courses?
Links:
https://frontendmasters.com/courses/next-js-v2/
https://frontendmasters.com/courses/fullstack-app-next-v2/
[Профиль]  [ЛС] 

nick772

Стаж: 6 лет 7 месяцев

Сообщений: 1


nick772 · 13-Май-24 11:48 (спустя 1 год 3 месяца)

Первая половина курса полезная. Во второй автор начинает писать код с бешеной скоростью, копировать код, прыгая из файла в файл. За долю секунды добавляя переменные и удаляя скобки. Так увлекается, что забывает комментировать, что делает. "Давайте переделаем это по-быстрому". "Ой, вот это не работает, но мы починим это позднее". "Ой, давайте я объясню это сейчас, пока не забыл". Что-то сломалось - проскролил, что-то закоментил, раскоментил не говоря ни слова, и тут же проскролил с экрана. Если пытаться повторять что-то руками, то увы тебе. Моргнул, и твой код уже не работает.
Раздающему спасибо
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error