Coder Social home page Coder Social logo

qpay-admin-panel's Introduction

paypay

Development

.env.development.local

VUE_APP_API_HOST=http://localhost:3000

Serve app

npm install
npm run serve

Docker service

Nginx 全導向 index.html

Build

# --build-arg MODE=development
docker build -t qpay .

Server

docker run -p 80:80 paypay

Customize configuration

See Configuration Reference.

Hack the Code

不管身份顯示所有 menu

src/layouts/AdminLayout/AdminLayout.vue

找到 computed -> menu function,改成 return menu.value

Coding Style

  • snake_case for variable, function
  • PascalCase for component name
  • kebab-case for directory name

Vuelidate

盡量用 validation() + options api 的寫法比較沒問題

Vuelidate 有支援 Vue3 composition api,先前遇到問題是

const v$ = useVuelidate({ name: required }, { name: "A" })
console.log(v$)
console.log(v$.$errors) // undefine

後來觀察因為 useVuelidate 會回傳 reactive 的 Object,正確的用法應該是

console.log(v$.value.$errors)

已知問題:

  • composition api 宣告 password, confirm_password 的 ref,用 sameAs 會有 $errors 未正確觸發問題

qpay-admin-panel's People

Contributors

qzcurious avatar mvanrooyen avatar ivanslin avatar

Watchers

 avatar

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.