pekoe09 / eqma Goto Github PK
View Code? Open in Web Editor NEWEqma - equipment rental business management
Eqma - equipment rental business management
Sivuston käytettävyys
cursor: pointer;
Frontend
App.js on wrapattu connect funktioon, mutta sillä komponentilla ei ole lainkaan propseja käytössä
projektissa on reduxia käytetty hienosti
kurssilla opittuja asioita sovelletaan myös hienosti
momentjs:ää käytetty! Nice!
customers/customerCreate.js tiedostossa on tämmöinen rivi
const customer = {
lastName: this.state.lastName,
firstNames: this.state.firstNames,
company: this.state.company,
email: this.state.email,
phone: this.state.phone,
billingAddress: {
street1: this.state.street1,
street2: this.state.street2,
zip: this.state.zip,
city: this.state.city,
country: this.state.country
},
isInvoicable: this.state.isInvoicable
}
Tämän voisi refaktoroida muotoon
const {street1, street2, zip, city, country, ...values} = this.state
const customer = {
...values,
billingAddress: {
street1,
street2,
zip,
city,
country
}
}
equipment/equipmentCreate.js tiedostossa on tämmöisiä rivejä:
<Form.TextArea width={12} rows={5} label='Description' name='description'
value={this.state.description} onChange={this.handleChange} />
Nämä voisi muotoilla luettavampaan muotoon
<Form.TextArea
width={12}
rows={5}
label='Description'
name='description'
value={this.state.description}
onChange={this.handleChange}
/>
suosittelen .eslintrc.js
tiedostoon airbnb:n eslint konffin lisäämistä, sillä saa kivasti kiinni kaikenlaisia probleemia :)
Backend
Kaiken kaikkiaan tosi hyvin tehty projekti! Tästä on hyvä jatkaa :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.