Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 12, 2022

QuillJs: Tích hợp Quill vào Angular - Part 2

Trong bài viết này, chúng ta sẽ tích hợp Quill vào trong ứng dụng Angular. Bài viết gồm 2 phần: Tích hợp Quill vào Angular Sử dụng Quill trong Template Form Cài đặt Chúng ta sẽ sử dụng library ngx-quill npm install ngx-quill Khai báo QuillModule trong file AppModule(app.module.ts) @NgModule({ imports: [ ..., QuillModule.forRoot() ], ... }) class AppModule { ... } Khai báo css và js trong file angular.json ... "styles": [ "src/styles.scss", "./node_modules/quill/dist/quill.core.css", "./node_modules/quill/dist/quill.bubble.css", "./node_modules/quill/dist/quill.snow.css", "./node_modules/quill-mention/dist/quill.mention.min.css", ], "scripts": [ "./node_modules/quill/dist/quill.min.js" ] ... Tạo folder configurations, thêm file const.ts export const QuillConfiguration = { toolbar: [ ['bold', 'italic', 'underline', 'strike'], ['blockqu

Luật De Morgan

De Morgan, hay còn gọi là định lý De Morgan, được phát biểu và chứng minh bởi nhà toán học và logic học người Anh lớn lên tại Ấn Độ tên là Augustus De Morgan (1806-1871). Nguyên thủy, định lý này được chứng minh trong lý thuyết tập hợp. The rules can be expressed in English as: The negation of a disjunction is the conjunction of the negations The negation of a conjunction is the disjunction of the negations or The complement of the union of two sets is the same as the intersection of their complements The complement of the intersection of two sets is the same as the union of their complements or not (A or B) = (not A) and (not B) not (A and B) = (not A) or (not B) where "A or B" is an "inclusive or" meaning  at least  one of A or B rather than an "exclusive or" that means  exactly  one of A or B. In set theory and Boolean algebra, these are written formally as {\displaystyle {\begin{aligned}{\overline {A\cup B}}&={\overline {A}}\cap {\overline {B}

Quill: Tích hợp Quill vào ASP.NET Core - Part 1

Nhắc đến trình soạn thảo WYSIWYG, hẳn nhiều người sẽ nghĩ tới 2 công cụ phổ biến là CKEditor và TinyMCE. Nhưng mình thấy QuillJs có nhiều tính năng hay và khả năng tùy biến cao. Quill sử dụng Deltas format, một định dạng đơn giản để mô tả những nội dung và thay đổi trong Quills. Cài đặt Trang chủ: https://quilljs.com/ Include 2 file css và js vào đầu và cuối trên trang web <!-- Include stylesheet --> <link href="https://cdn.quilljs.com/1.3.7/quill.snow.css" rel="stylesheet"> <!-- Create the editor container --> <div id="editor"> <p>Hello World!</p> <p>Some initial <strong>bold</strong> text</p> <p><br></p> </div> <!-- Include the Quill library --> <script src="https://cdn.quilljs.com/1.3.7/quill.js"></script> <!-- Initialize Quill editor --> <script> // First matching element will be used var quill = new Quill('#edi

UML: Class diagram

Class Diagram là một static diagram, đại diện cho chế độ static view của một ứng dụng. Class diagram không chỉ được sử dụng để trực quan hóa, mô tả và ghi lại các khía cạnh khác nhau của hệ thống mà còn để xây dựng mã thực thi của ứng dụng phần mềm. Class Diagram mô tả các attribute và operation của một class cũng như các contraint áp đặt lên hệ thống. Class Diagram được sử dụng rộng rãi trong việc mô hình hóa các hệ thống hướng đối tượng vì chúng là các sơ đồ UML, có thể được ánh xạ trực tiếp bằng các ngôn ngữ hướng đối tượng. Class Diagram hiển thị một tập hợp các class, interface, liên kết, association và ràng buộc. Class Diagram còn được gọi là sơ đồ cấu trúc. Mục đích của Class Diagram có thể được tóm tắt: Phân tích và thiết kế chế độ xem tĩnh của một ứng dụng.  Mô tả trách nhiệm của một hệ thống.  Cơ sở cho các sơ đồ thành phần và triển khai.  Forward và reverse engineering. Forward engineering là một phương pháp mà chúng ta có thể tạo một ứng dụng theo các yêu cầu nhất định. Rev