From 49275fbe90c852a1b35156d7a87218916462456b Mon Sep 17 00:00:00 2001 From: Maxence Lanone Date: Sun, 27 Nov 2022 15:10:20 +0100 Subject: [PATCH 1/4] =?UTF-8?q?mise=20en=20forme=20du=20fomulaire=20avec?= =?UTF-8?q?=20donn=C3=A9es=20bdd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-api/api.js | 38 +++++- src/App.js | 2 + src/components/Contact/AddContact.js | 109 +++++++++++++----- src/pages/Repertoire.js | 49 +++++++- src/styles/components/_repertoire.scss | 1 + .../components/contact/_addContact.scss | 8 ++ src/styles/index.scss | 3 +- 7 files changed, 174 insertions(+), 36 deletions(-) create mode 100644 src/styles/components/contact/_addContact.scss diff --git a/server-api/api.js b/server-api/api.js index c95ec21..8117453 100644 --- a/server-api/api.js +++ b/server-api/api.js @@ -213,4 +213,40 @@ app.get('/Contact/AllWithCustomerName', (req, res) => { console.log(result); res.send(result); }); -}); \ No newline at end of file +}); + +app.get('/Entreprise/All', (req, res) => { + let sql = 'SELECT * FROM customers ORDER BY name'; + db.query(sql, (err, result) => { + if (err) throw err; + console.log(result); + res.send(result); + }); +}); + +app.get('/Contact/Exist/:login', (req, res) => { + + const login = req.params.login; + let sql = 'SELECT idContact FROM contact WHERE login = ?'; + + db.query(sql, [login], (err, result) => { + if (err) throw err; + + console.log(result); + res.send(result); + }); +}); + +app.post('/Contact/Add', (req, res) => { + + let form = req.body; + + console.log(form); + + const sql = `INSERT INTO contact(name, firstname, mail, phone, idUser, idCustomer) VALUES ('${form.name}', '${form.firstname}', '${form.mail}', '${form.phone}' , '${form.idrole}', '${form.idUser}', '${form.idCustomer}' )`; + db.query(sql , (err, result) => { + if (err) throw err; + console.log(result); + res.send('Post added...' + result.insertId); + }); +}); diff --git a/src/App.js b/src/App.js index f2910b2..552dbb7 100644 --- a/src/App.js +++ b/src/App.js @@ -13,6 +13,7 @@ import Calendrier from './pages/Calendrier'; import Repertoire from './pages/Repertoire'; import Parametres from './pages/Parametres'; import Chargement from './pages/Chargement'; +import AddContact from './components/Contact/AddContact' import { Component } from 'fullcalendar'; import RestartPassword from './pages/RestartPassword'; @@ -38,6 +39,7 @@ const App = () => { } /> } /> } /> + } /> ); diff --git a/src/components/Contact/AddContact.js b/src/components/Contact/AddContact.js index c9c0c60..26a6e71 100644 --- a/src/components/Contact/AddContact.js +++ b/src/components/Contact/AddContact.js @@ -1,40 +1,93 @@ -import React, {useState} from 'react' -import {useNavigate} from 'react-router-dom'; +import React, { useState, useEffect } from 'react'; +import axios from 'axios' +import NavigationDashboard from '../NavigationDashboard.js'; +import CryptoJS from 'crypto-js'; +import Select, { SelectChangeEvent } from '@mui/material/Select'; +import MenuItem from '@mui/material/MenuItem'; +import { NavLink } from 'react-router-dom'; +import { useNavigate } from "react-router-dom"; +import { Button } from '@mui/material'; // HERE ABOVE useHistory IS REPLACED WITH useNavigate +const api = axios.create({ + baseURL: 'http://localhost:8080' + }) + function AddContact(props) { + + const [loginError, setLoginError] = useState(false); + const [entreprises, setEntreprises] = useState([]); + const [selectedIdEntreprise, setSelectedIdEntreprise] = useState(1); const navigate=useNavigate(); - const [User, setUser] = useState({name:"", email:""}); - let add = (e) => { - e.preventDefault(); - if(User.name === "" || User.email === ""){ - alert("All fields are mandatory!!!"); - return - } - // THIS IS USED TO SHOW THE LIST DATA ON THE APP.JS FILE - props.addContactHandler(User); - // THIS IS USED FOR WHEN THE ADD BUTTON IS PRESSED THE INPUT FILED AGAIN GETS EMPTY - setUser({name:"", email:""}); - //console.log(props); - navigate('/'); - } + useEffect(() =>{ + api.get('/Entreprise/All').then((response) => { + setEntreprises(response.data); + }); + }, []); + + function handleChangeEntreprise(event){ + setSelectedIdEntreprise(event.target.value); + }; + + function checkAdd(event){ + + event.preventDefault(); + + const formData = new FormData(event.currentTarget); + const values = Object.fromEntries(formData.entries()); + console.log(values.name); + api.get('/Contact/Exist/'+ values.login).then((response) => { + const login = response.data; + if (login.length > 0){ + setLoginError(true); + } + else { + setLoginError(false); + + api.post('/Contact/Add', values).then (function(response) { + console.log(response.data); + }); + + navigate("/Repertoire"); + } + }); + }; return ( -
-

Add Contact

-
-
- - setUser({...User, name: e.target.value})}/> -
-
- - setUser({...User, email: e.target.value})}/> +
+

Ajouter un nouveau contact

+
+ + + +
+

Nom :

+

Prénom :

+

Téléphone :

+

Email :

+

Entreprise :

+
+ + + + + + + + +
+

{loginError === true?"L'identifiant existe déja":''}

+
+ + Retour +
+
- -
) } diff --git a/src/pages/Repertoire.js b/src/pages/Repertoire.js index 2c75f50..e52d96d 100644 --- a/src/pages/Repertoire.js +++ b/src/pages/Repertoire.js @@ -4,7 +4,8 @@ import axios from 'axios'; import user from '../images/user.jpg'; import { TableContainer, Table, TableHead, TableBody, TableRow, TableCell } from '@mui/material'; import { Paper } from '@mui/material'; - +import { NavLink } from 'react-router-dom'; +import { useNavigate } from 'react-router-dom'; const api = axios.create({ baseURL: 'http://localhost:8080' @@ -12,7 +13,7 @@ const api = axios.create({ function Repertoire() { - const [theme, setTheme] = useState("light"); + const [theme, setTheme] = useState("light"); if (localStorage.getItem('theme') && localStorage.getItem("theme") !== '' && localStorage.getItem("theme") !== theme) { setTheme(localStorage.getItem("theme")) } @@ -21,7 +22,7 @@ function Repertoire() { const [SearchTerm, setSearchTerm] = useState(""); const [SearchResults, setSearchResults] = useState([]); const [customers, setCustomers] = useState([]); - + useEffect(() => { api.get('/Contact/AllWithCustomerName').then((response) => { @@ -62,7 +63,9 @@ function Repertoire() {
- + + + @@ -119,10 +122,44 @@ function Repertoire() { ); }; -function ajouter() { - console.log("ajouter"); +function AddContact(props) { + + const navigate = useNavigate(); + const [User, setUser] = useState({ name: "", email: "" }); + + let add = (e) => { + e.preventDefault(); + if (User.name === "" || User.email === "") { + alert("All fields are mandatory!!!"); + return + } + // THIS IS USED TO SHOW THE LIST DATA ON THE APP.JS FILE + props.addContactHandler(User); + // THIS IS USED FOR WHEN THE ADD BUTTON IS PRESSED THE INPUT FILED AGAIN GETS EMPTY + setUser({ name: "", email: "" }); + //console.log(props); + navigate('/'); + } + return ( +
+

Add Contact

+
+
+ + setUser({ ...User, name: e.target.value })} /> +
+
+ + setUser({ ...User, email: e.target.value })} /> +
+ + +
+ ); }; + + // function Repertoire() { // // NOW WITH THE USE OF HOOKS WE WILL GET THE CONTACTS diff --git a/src/styles/components/_repertoire.scss b/src/styles/components/_repertoire.scss index 7ed5f78..452f105 100644 --- a/src/styles/components/_repertoire.scss +++ b/src/styles/components/_repertoire.scss @@ -177,6 +177,7 @@ body { margin: 30px 30px; border-radius: 25px; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); + text-decoration-line: none; } .input_box { diff --git a/src/styles/components/contact/_addContact.scss b/src/styles/components/contact/_addContact.scss new file mode 100644 index 0000000..b79b38c --- /dev/null +++ b/src/styles/components/contact/_addContact.scss @@ -0,0 +1,8 @@ +.addContactPage{ + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; + + +} \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index ac6a812..eb40ba3 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -7,4 +7,5 @@ @import "./components/calendrier"; @import "./components/parametre"; @import "./components/repertoire"; -@import "./components/chargement" \ No newline at end of file +@import "./components/chargement"; +@import "./components/contact/addContact"; \ No newline at end of file From c9c964d4657bbfb1f1dca52afa0bfa577a0d3c46 Mon Sep 17 00:00:00 2001 From: Maxence Lanone Date: Fri, 9 Dec 2022 10:36:55 +0100 Subject: [PATCH 2/4] ajout contact presque ok --- .vscode/launch.json | 34 +++++++++++++++++++++ server-api/api.js | 2 +- src/components/Contact/AddContact.js | 45 ++++++++++++++-------------- src/pages/Admin_create.js | 1 + 4 files changed, 59 insertions(+), 23 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4b52bef --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. + // Pointez pour afficher la description des attributs existants. + // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch via NPM", + "request": "launch", + "runtimeArgs": [ + "run-script", + "debug" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node" + }, + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + }, + { + "type": "chrome", + "request": "launch", + "name": "Lancer Chrome en utilisant localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/server-api/api.js b/server-api/api.js index 8117453..0e318fa 100644 --- a/server-api/api.js +++ b/server-api/api.js @@ -216,7 +216,7 @@ app.get('/Contact/AllWithCustomerName', (req, res) => { }); app.get('/Entreprise/All', (req, res) => { - let sql = 'SELECT * FROM customers ORDER BY name'; + let sql = 'SELECT idcustomer,name FROM customers ORDER BY name'; db.query(sql, (err, result) => { if (err) throw err; console.log(result); diff --git a/src/components/Contact/AddContact.js b/src/components/Contact/AddContact.js index 26a6e71..b8eb6ae 100644 --- a/src/components/Contact/AddContact.js +++ b/src/components/Contact/AddContact.js @@ -13,7 +13,7 @@ const api = axios.create({ baseURL: 'http://localhost:8080' }) -function AddContact(props) { +function AddContact() { const [loginError, setLoginError] = useState(false); const [entreprises, setEntreprises] = useState([]); @@ -29,37 +29,38 @@ function AddContact(props) { function handleChangeEntreprise(event){ setSelectedIdEntreprise(event.target.value); + console.log("je suis dans handleChangeEntreprise"); }; - function checkAdd(event){ + // function checkAdd(event){ - event.preventDefault(); + // event.preventDefault(); - const formData = new FormData(event.currentTarget); - const values = Object.fromEntries(formData.entries()); - console.log(values.name); - api.get('/Contact/Exist/'+ values.login).then((response) => { - const login = response.data; - if (login.length > 0){ - setLoginError(true); - } - else { - setLoginError(false); + // const formData = new FormData(event.currentTarget); + // const values = Object.fromEntries(formData.entries()); + // console.log(values.name); + // api.get('/Contact/Exist/'+ values.login).then((response) => { + // const login = response.data; + // if (login.length > 0){ + // setLoginError(true); + // } + // else { + // setLoginError(false); - api.post('/Contact/Add', values).then (function(response) { - console.log(response.data); - }); + // api.post('/Contact/Add', values).then (function(response) { + // console.log(response.data); + // }); - navigate("/Repertoire"); - } - }); - }; + // navigate("/Repertoire"); + // } + // }); + // }; return (

Ajouter un nouveau contact

-
+
@@ -92,4 +93,4 @@ function AddContact(props) { ) } -export default AddContact +export default AddContact; diff --git a/src/pages/Admin_create.js b/src/pages/Admin_create.js index b9d2528..4d23907 100644 --- a/src/pages/Admin_create.js +++ b/src/pages/Admin_create.js @@ -28,6 +28,7 @@ function Admin_create() { function handleChangeRole(event){ setSelectedIdRole(event.target.value); + console.log(event.target.value); }; function checkAdd(event){ From e10cc6291f3aa7543d21b28a6c1b725ad84925ff Mon Sep 17 00:00:00 2001 From: Maxence Lanone Date: Fri, 9 Dec 2022 10:37:54 +0100 Subject: [PATCH 3/4] ajout contact presque ok (ajout mais crash de la base apres car manque authentification) --- package-lock.json | 33 +++++++++++++++----- package.json | 3 +- server-api/1 | 1 + server-api/api.js | 9 +++--- server-api/kill | 1 + src/components/Contact/AddContact.js | 45 ++++++++++++++-------------- 6 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 server-api/1 create mode 100644 server-api/kill diff --git a/package-lock.json b/package-lock.json index 6583b16..61260d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "addeventlistener": "^2.0.0", "axios": "^1.2.0", "chart": "^0.1.2", - "chart.js": "^3.9.1", + "chart.js": "^4.0.1", "crypto-js": "^4.1.1", "darkreader": "^4.9.58", "date-fns": "^2.29.3", @@ -30,6 +30,7 @@ "pg": "^8.8.0", "react": "^18.2.0", "react-big-calendar": "^1.5.0", + "react-chartjs-2": "^5.0.1", "react-datepicker": "^4.8.0", "react-dom": "^18.2.0", "react-loading": "^2.0.3", @@ -6127,9 +6128,12 @@ } }, "node_modules/chart.js": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.9.1.tgz", - "integrity": "sha512-Ro2JbLmvg83gXF5F4sniaQ+lTbSv18E+TIf2cOeiH1Iqd2PGFOtem+DUufMZsCJwFE7ywPOpfXFBwRTGq7dh6w==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.0.1.tgz", + "integrity": "sha512-5/8/9eBivwBZK81mKvmIwTb2Pmw4D/5h1RK9fBWZLLZ8mCJ+kfYNmV9rMrGoa5Hgy2/wVDBMLSUDudul2/9ihA==", + "engines": { + "pnpm": "^7.0.0" + } }, "node_modules/check-types": { "version": "11.1.2", @@ -14776,6 +14780,15 @@ "react-dom": "^16.14.0 || ^17 || ^18" } }, + "node_modules/react-chartjs-2": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-chartjs-2/-/react-chartjs-2-5.0.1.tgz", + "integrity": "sha512-u38C9OxynlNCBp+79grgXRs7DSJ9w8FuQ5/HO5FbYBbri8HSZW+9SWgjVshLkbXBfXnMGWakbHEtvN0nL2UG7Q==", + "peerDependencies": { + "chart.js": "^4.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-datepicker": { "version": "4.8.0", "resolved": "https://registry.npmjs.org/react-datepicker/-/react-datepicker-4.8.0.tgz", @@ -22197,9 +22210,9 @@ } }, "chart.js": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.9.1.tgz", - "integrity": "sha512-Ro2JbLmvg83gXF5F4sniaQ+lTbSv18E+TIf2cOeiH1Iqd2PGFOtem+DUufMZsCJwFE7ywPOpfXFBwRTGq7dh6w==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.0.1.tgz", + "integrity": "sha512-5/8/9eBivwBZK81mKvmIwTb2Pmw4D/5h1RK9fBWZLLZ8mCJ+kfYNmV9rMrGoa5Hgy2/wVDBMLSUDudul2/9ihA==" }, "check-types": { "version": "11.1.2", @@ -28276,6 +28289,12 @@ "uncontrollable": "^7.2.1" } }, + "react-chartjs-2": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-chartjs-2/-/react-chartjs-2-5.0.1.tgz", + "integrity": "sha512-u38C9OxynlNCBp+79grgXRs7DSJ9w8FuQ5/HO5FbYBbri8HSZW+9SWgjVshLkbXBfXnMGWakbHEtvN0nL2UG7Q==", + "requires": {} + }, "react-datepicker": { "version": "4.8.0", "resolved": "https://registry.npmjs.org/react-datepicker/-/react-datepicker-4.8.0.tgz", diff --git a/package.json b/package.json index 10f2b72..11d87d7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "addeventlistener": "^2.0.0", "axios": "^1.2.0", "chart": "^0.1.2", - "chart.js": "^3.9.1", + "chart.js": "^4.0.1", "crypto-js": "^4.1.1", "darkreader": "^4.9.58", "date-fns": "^2.29.3", @@ -25,6 +25,7 @@ "pg": "^8.8.0", "react": "^18.2.0", "react-big-calendar": "^1.5.0", + "react-chartjs-2": "^5.0.1", "react-datepicker": "^4.8.0", "react-dom": "^18.2.0", "react-loading": "^2.0.3", diff --git a/server-api/1 b/server-api/1 new file mode 100644 index 0000000..0a1c474 --- /dev/null +++ b/server-api/1 @@ -0,0 +1 @@ +703 diff --git a/server-api/api.js b/server-api/api.js index 0e318fa..751c6d4 100644 --- a/server-api/api.js +++ b/server-api/api.js @@ -224,12 +224,11 @@ app.get('/Entreprise/All', (req, res) => { }); }); -app.get('/Contact/Exist/:login', (req, res) => { - - const login = req.params.login; - let sql = 'SELECT idContact FROM contact WHERE login = ?'; +app.get('/Contact/Exist/:phone', (req, res) => { + const phone = req.params.phone + let sql = 'SELECT idcontact FROM contacts WHERE phone = ?'; - db.query(sql, [login], (err, result) => { + db.query(sql, [phone], (err, result) => { if (err) throw err; console.log(result); diff --git a/server-api/kill b/server-api/kill new file mode 100644 index 0000000..0a1c474 --- /dev/null +++ b/server-api/kill @@ -0,0 +1 @@ +703 diff --git a/src/components/Contact/AddContact.js b/src/components/Contact/AddContact.js index b8eb6ae..1a2d794 100644 --- a/src/components/Contact/AddContact.js +++ b/src/components/Contact/AddContact.js @@ -24,6 +24,7 @@ function AddContact() { useEffect(() =>{ api.get('/Entreprise/All').then((response) => { setEntreprises(response.data); + console.log(entreprises); }); }, []); @@ -32,35 +33,35 @@ function AddContact() { console.log("je suis dans handleChangeEntreprise"); }; - // function checkAdd(event){ + function checkAdd(event){ - // event.preventDefault(); + event.preventDefault(); - // const formData = new FormData(event.currentTarget); - // const values = Object.fromEntries(formData.entries()); - // console.log(values.name); - // api.get('/Contact/Exist/'+ values.login).then((response) => { - // const login = response.data; - // if (login.length > 0){ - // setLoginError(true); - // } - // else { - // setLoginError(false); + const formData = new FormData(event.currentTarget); + const values = Object.fromEntries(formData.entries()); + console.log(values.name); + api.get('/Contact/Exist/'+ values.idcontact).then((response) => { + const login = response.data; + if (login.length > 0){ + setLoginError(true); + } + else { + setLoginError(false); - // api.post('/Contact/Add', values).then (function(response) { - // console.log(response.data); - // }); - - // navigate("/Repertoire"); - // } - // }); - // }; + api.post('/Contact/Add', values).then (function(response) { + console.log(response.data); + }); + + navigate("/Repertoire"); + } + }); + }; return (

Ajouter un nouveau contact

- +
@@ -78,7 +79,7 @@ function AddContact() { placeholder="Téléphone..." pattern="[0-9]{10}" required/>
From a024b2da3800a8edc85636c9fcc60f8f47a6abea Mon Sep 17 00:00:00 2001 From: Maxence Lanone Date: Fri, 9 Dec 2022 11:02:09 +0100 Subject: [PATCH 4/4] ajout opt mac --- .vscode/c_cpp_properties.json | 18 ++++++++++ .vscode/launch.json | 65 +++++++++++++++++++---------------- .vscode/settings.json | 36 +++++++++++++++++++ 3 files changed, 89 insertions(+), 30 deletions(-) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..980fd57 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "macos-clang-arm64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "macos-clang-arm64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 4b52bef..1f47c3b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,34 +1,39 @@ { - // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. - // Pointez pour afficher la description des attributs existants. - // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ + "version": "0.2.0", + "configurations": [ { - "name": "Launch via NPM", - "request": "launch", - "runtimeArgs": [ - "run-script", - "debug" - ], - "runtimeExecutable": "npm", - "skipFiles": [ - "/**" - ], - "type": "node" + "name": "Launch via NPM", + "request": "launch", + "runtimeArgs": [ + "run-script", + "debug" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node" }, - { - "name": "Listen for Xdebug", - "type": "php", - "request": "launch", - "port": 9003 - }, - { - "type": "chrome", - "request": "launch", - "name": "Lancer Chrome en utilisant localhost", - "url": "http://localhost:8080", - "webRoot": "${workspaceFolder}" - } - ] + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + }, + { + "type": "chrome", + "request": "launch", + "name": "Lancer Chrome en utilisant localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + }, + { + "name": "C/C++ Runner: Debug Session", + "type": "lldb", + "request": "launch", + "args": [], + "cwd": "/Users/malanone/JTT_Production/JTT_CrM", + "program": "/Users/malanone/JTT_Production/JTT_CrM/build/Debug/outDebug" + } + ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..50d1b0f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,36 @@ +{ + "C_Cpp_Runner.cCompilerPath": "clang", + "C_Cpp_Runner.cppCompilerPath": "clang++", + "C_Cpp_Runner.debuggerPath": "lldb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wconversion", + "-Wnull-dereference", + "-Wsign-conversion" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ] +} \ No newline at end of file