test shell script
This commit is contained in:
parent
168e2bd4e0
commit
6772198ea3
|
|
@ -89,7 +89,7 @@ const ManageValues = () => {
|
|||
<input placeholder="value" style={{margin:"0 5px", width:"50%"}} onChange={(e)=>{
|
||||
setAddValue({...addValue, value: e.target.value})
|
||||
}}></input>
|
||||
|
||||
|
||||
<button style={{cursor:"pointer", backgroundColor:"green", color:"white"}} onClick={async()=>{
|
||||
if(addValue.key !=="" && addValue.value!==""){
|
||||
const res = await axios.post(addKeyValue,{key: addValue.key, value: addValue.value})
|
||||
|
|
@ -102,6 +102,7 @@ const ManageValues = () => {
|
|||
alert("Value is empty!")
|
||||
}
|
||||
}}>Add</button>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<Link to={"/logs"}> <button style={{color:"white", backgroundColor:"blue", cursor:"pointer"}}>List of detected files</button></Link>
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ Route.post("/api/addValue", async ({ request, response }) => {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
Route.post("/api/gitea-webhook", ({ request, response }) => {
|
||||
console.log("New event ---> ", request.header("x-gitea-event"));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue