- Short introduction to the master class
- Overview of demo project
- 📖 Presentation: "part #1 Architecture"
- 📖 Presentation SOLID principles for frontend projects
- Q&A session and Summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpException, HttpStatus, Injectable, NotFoundException } from '@nestjs/common'; | |
| import { InjectModel } from '@nestjs/mongoose'; | |
| import { Model, Types } from 'mongoose'; | |
| import { TaskDto } from './dto/task.dto'; | |
| import { Task } from './types/task.interface'; | |
| import { Track } from '../tracks/types/track.interface'; | |
| import { User } from '../users/types/user.interface'; | |
| import { TaskInProgress } from './types/task-in-progress.interface'; | |
| import { SaveTaskProgressDto } from './dto/save-task-progress.dto'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { FormBuilder } from '../../../../modules/form-builder'; | |
| import { Validators } from '../../../../modules/form-builder/validators'; | |
| class SomeForm { | |
| element; | |
| subElements = {}; | |
| constructor(data) { | |
| this.data = data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Card { | |
| total = 0; | |
| constructor ({ | |
| title = '', | |
| formatTotal = data => data | |
| } = {}) { | |
| this.title = title; | |
| this.formatTotal = formatTotal; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <meta charset="utf-8"> | |
| <head> | |
| <title>Админка для магазина</title> | |
| <link rel="apple-touch-icon-precomposed" href="./assets/favicon/apple-touch-icon-precomposed.png"> | |
| <link rel="icon" href="./assets/favicon/favicon.png"> | |
| <link rel="stylesheet" href="./styles/all.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*.{html,js,css,scss,json}] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="UTF-8"> | |
| <body></body> | |
| <div id="root"></div> | |
| <script> | |
| class Component { | |
| json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fetchJson from './utils/fetch-json.js'; | |
| const BACKEND_URL = 'https://course-js.javascript.ru/'; | |
| export default class SortableTable { | |
| constructor( | |
| header = [], | |
| { url = '' } | |
| ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ColumnChart from '../solution/index'; | |
| import ordersData from "./__mocks__/orders-data.js"; | |
| describe('async-code-fetch-api-part-1/column-chart', () => { | |
| let columnChart; | |
| beforeEach(() => { | |
| fetchMock | |
| .mockResponse(JSON.stringify(ordersData)); |
NewerOlder