mirror of
https://github.com/Leado123/Leado123.github.io.git
synced 2026-10-01 00:32:59 +00:00
t
This commit is contained in:
+4
-1
@@ -8,7 +8,9 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
"predeploy": "bun run build",
|
||||||
|
"deploy": "gh-pages -d dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.12.6",
|
"@apollo/client": "^3.12.6",
|
||||||
@@ -16,6 +18,7 @@
|
|||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"flowbite": "^2.5.2",
|
"flowbite": "^2.5.2",
|
||||||
"flowbite-react": "^0.10.2",
|
"flowbite-react": "^0.10.2",
|
||||||
|
"gh-pages": "^6.3.0",
|
||||||
"graphql": "^16.10.0",
|
"graphql": "^16.10.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
|||||||
+2
-2
@@ -35,7 +35,7 @@ function App() {
|
|||||||
|
|
||||||
async function handleSearch() {
|
async function handleSearch() {
|
||||||
try {
|
try {
|
||||||
var response = await fetch(`http://192.168.1.202:4000/search/?q=${query}`);
|
var response = await fetch(`http://172.249.53.117:4000/search/?q=${query}`);
|
||||||
var data = await response.json();
|
var data = await response.json();
|
||||||
console.log(data);
|
console.log(data);
|
||||||
setSyllabi(data);
|
setSyllabi(data);
|
||||||
@@ -63,7 +63,7 @@ function App() {
|
|||||||
formdata.append("email", email);
|
formdata.append("email", email);
|
||||||
formdata.append("name", name);
|
formdata.append("name", name);
|
||||||
|
|
||||||
fetch(`http://192.168.1.202:4000/create`, {
|
fetch(`http://172.249.53.117:4000/create`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formdata,
|
body: formdata,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user