This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
rangee: 7, | |
epaisseur: 0.003, | |
largeurC: 0.068, | |
largeurP: 0.100, | |
largeurP: 0.100, | |
nbCarreaux: new Array(49).fill(0).map((d, id) => ({id})), | |
nbPeignes: new Array(12).fill(0).map((d, id) => ({id})), | |
sequence: [ 3, 5, 2, 1, 2, 5, 3, 5, 0, 4, 3, 4, 0, 5, 2, 4, 1, 0, 1, 4, 2, 1, 3, 0, 6, 0, 3, 1, 2, 4, 1, 0, 1, 4, 2, 5, 0, 4, 3, 4, 0, 5, 3, 5, 2, 1, 2, 5, 3 ], | |
couleur: "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "views", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"auth0-js": "^9.13.2", | |
"blend4web": "^17.12.0", | |
"braintree-web-drop-in-react": "^1.1.1", | |
"eslint": "^5.16.0", | |
"eslint-config-react-app": "^5.2.1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {SketchPicker} from 'react-color'; | |
import Canvas3D from './Canvas3D'; | |
import contreplaque from './contreplaque.jpg'; | |
import okoume from './okoume.jpg'; | |
import '../styles/App.scss'; | |
const useObjectState = (initial) => { | |
const [state, setState] = React.useState(initial); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {SketchPicker} from 'react-color'; | |
import Canvas3D from './Canvas3D'; | |
import contreplaque from './contreplaque.jpg'; | |
import okoume from './okoume.jpg'; | |
import '../styles/App.scss'; | |
function useObjectState(initial) { | |
const [state, setState] = React.useState(initial); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {SketchPicker} from 'react-color'; | |
import Canvas3D from './Canvas3D'; | |
import contreplaque from './contreplaque.jpg'; | |
import okoume from './okoume.jpg'; | |
import '../styles/App.scss'; | |
const formeInit = { | |
rangee: 7, | |
epaisseur: 0.003, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const saveProduct = panier.listeProduits.map((p, i) => { | |
const data = { | |
pid: p.id, | |
cartid: panier.cartid, | |
nom: p.nom, | |
quantite: p.qte, | |
prix: p.prix, | |
reduction: panier.reduction, | |
sous_total: p.qte * p.prix, | |
fdp: panier.fdp, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cart: | |
{ id: 776, | |
pid: '10', | |
userid: 'FA19EE7sBK6QlJ9pjTBUB6Wu4QlLGvZ9', | |
quantite: '1', | |
reduction: '0', | |
sous_total: '85', | |
montanttotal: 832, | |
fdp: 45, | |
prix: 85, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const upsert = (table, sessid, data, returned) => { | |
return knex.select('*').groupBy(returned) | |
.from(table) | |
.where({ | |
userid: sessid | |
}) | |
.count() | |
.then((count) => { | |
if (count == 0) { | |
return knex(table) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import shopStore, {panier, panierOperations} from '../Store/shopStore'; | |
import {view} from 'react-easy-state'; | |
import client from '../Store/client'; | |
class Cart extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import shopStore, {panier, panierOperations} from '../Store/shopStore'; | |
import {view} from 'react-easy-state'; | |
import client from '../Store/client'; | |
class Cart extends Component { | |
render() { | |
return (<div className="cart box_light1 center fullsize"> |