Git Product home page Git Product logo

website-traluanvan's People

Contributors

achicken7301 avatar danhyyr avatar triet-do avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

website-traluanvan's Issues

Cách ghi tiêu đề commit hiệu quả

  1. Cụ thể commit có nghĩa gì
  • feat: thêm một chức năng mới cho ứng dụng cụ thể nào đó.
  • fix: sửa lỗi bug
  • style: thêm chức năng hoặc sửa các giao diện
  • refactor: sửa lại mã nguồn (đổi tên biến,... )
  • test: mọi thứ liên quan đến test
  • docs: mọi thứ liên quan đến documents
  • chore: Bảo trì code.[ Có thể thêm emoji hình 'bảo trì' tùy vào từng loại]
  1. Syntax
  • Không kết thúc câu chủ đề bằng dấu chấm "."
  • Đầu câu viết hoa
  • Không tự cho là code có thể tự giải thích (viết commend cho người ta dễ đọc)

Tên model luanvanAvailable viết sai

Đáng lẽ tên Model phải viết hoa chữ cái đầu thay vì luanvanAvailable.php thì phải là LuanvanAvailable.php mới đúng.
Nhưng không sửa hôm nay đâu.

Cách viết commit có body

Bình thường viết sẽ git add những file mình cần commit xong sau đó viết một tiêu đề.

git add static/admin/file1.php file2.php file3.html
git commit -m "Add file1 file2 file3"

Để thêm thông tin commit như thế này thì ta cần code như sau:
Đầu tiên ta cần chỉnh lại text-editor (nano, vim, emacs, notepad, vscode, sublime-text, atoms,...)

git config --global core.editor nano

Với nano là loại text-editor muốn sử dụng.

Sau đó git add các file cần thiết rồi nhập git commit thì nó hiện ra trông như thế này
image

Rồi nhập 50 kí tự đầu là tiêu đề, CÁCH 1 DÒNG, nhập body.
VD:

Đây là tiêu đề commit

Đây là body

Xong nhớ save lại thoát ra là xong.
Khi sử dụng nano thì Ctrl + X > Y > enter
Nguồn

Giao diện mới

image
image

Giờ giao diện mới sẽ như thế này nha @Triet-do
T tính cái logo nằm bên trái khung tìm kiếm. T bắt chước y hệt thằng google luôn.

Absolute Path

Absolute Path là gì? Và tại sao phải biết nó?

Absolute Path là một đường dẫn cố định. Mà khi nó là một đường dẫn cố định thì khi ta include hay link file thì lúc nào nó cũng nhận.

Ta gọi đường dẫn /css/slidepanel.css là một đường dẫn cố định vì nó bắt đầu từ

root : ~~~~~~~~^~~~~~~~~~ của một folder nên khi ta link vào bất cứ file nào nằm ở sub folder phức tạp kiểu

Web-app
|______ example/Đây/là/đường/dẫn/dài.php
|______ subfolder/viesub.css

Một đường dẫn siêu dài như thế này thì khi liên kết file vietsub.css ở file dài.php thì chẳng lẽ là ../../../../..//././././././......./////////////

Nói chung là không chuyên nghiệp với dài dòng nữa. Thay vào đó Absolute Path sẽ sửa hoàn toàn vấn đề này và chỉ cần /subfolder/vietsub.css là xong.

Lỗi thay thế %20 bằng "-" trên thanh url

Trong file luanvan-list.blade.php dòng số 20

Sử dụng Str::slug

'name' => Str::slug($luanvan->ten_lv, '-')

Output kì vọng: luanvan/show/day-la-ten-luan-van-id

Output thực tế: luanvan/show/la-ten-luan-van-idday

name: la-ten-luan-van
id: idday
Chữ cái đầu bị gắn vào đuôi id
Do id không đúng nên không truy suất được mysql.

Sử dụng str_replace('-', ' ', $luanvan->ten_lv) thì báo lỗi không nhận dạng được str_relace()

Hiện tình trạng của đơn luận văn.

Nếu luận văn chưa mượn hay chưa thất lạc thì là Available
Nếu luận văn đã mượn thì là On-Hold
Nếu luận văn đã mất hay thất lạc thì là Unavailable

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.