trydofor / professional-razor

Use front-end tech (Vue/Css/Ts) to build multi-platform from one codebase, suitable for small team and app to write logic once, run anywhere.
Apache License 2.0
0 stars 0 forks source link
cross-platform hybrid-app ionic primevue vue3

ο»Ώ# Razor - CrossPlatform Hybrid Starter

English πŸ‡ΊπŸ‡Έ | δΈ­ζ–‡ πŸ‡¨πŸ‡³

With a deadly lightning storm at his command, Razor charges into battle.

razor

Use front-end tech (Vue/Css/Ts) to build multi-platform from one codebase,

Suitable for teams and app scenarios such as,

The goal is write logic once, run anywhere

1.Tech Archi

2.Code Style

Based on the Vue Style Guide, with the principles of type safety, readability, and consistency, add the following conventions,

Rule1 - camel in js, kebab in html

First, html and http are case-insensitive, and mac and win OS are case-insensitive by default.

Rule2 - single in js, double in html

Since double quotes are usually used in html which may contain simple js code,

Rule3 - semicolon and comma, same as main language

semicolon, same as your main language, or otherwise as they are.

comma, as much as possible to easy to add, sub and reorder,

Rule4 - Component name must not be Index.*

Components named Index are hard to read, debug and develop.

Rule5 - Use singular for whole, plural for fragment

According to the official Vue naming rules, most things are plural,

Rule6 - ts coding convention

Rule7 - vue coding convention