Skip to content

Commit

Permalink
edit the folders b00tc4mp#140
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonzalo committed Jun 2, 2024
1 parent ec82307 commit 5523e59
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 7 deletions.
67 changes: 66 additions & 1 deletion staff/adrian-martin/socialcode/api/data/posts.json
Original file line number Diff line number Diff line change
@@ -1 +1,66 @@
[{"author":"jameshook","title":"smile1","image":"https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg","description":"hi 2","date":"2024-05-27T14:44:14.236Z","id":"8448820043690848-1716821054237"},{"author":"jameshook","title":"smile2","image":"https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg","description":"hi 2","date":"2024-05-27T14:44:21.737Z","id":"05670034285101688-1716821061738"},{"author":"jameshook","title":"smile3","image":"https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg","description":"hi 2","date":"2024-05-27T14:44:23.250Z","id":"549161270915079-1716821063251"},{"id":"7049627815708344-1716989932607","author":"AdrianGon","title":"smil3","image":"https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw","description":"hi 2","date":"2024-05-29T13:38:52.607Z"},{"id":"11703272214754645-1716989975016","author":"AdrianGon","title":"smil3","image":"https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw","description":"hi 2","date":"2024-05-29T13:39:35.015Z"},{"id":"7956804321626201-1716989998965","author":"AdrianGon","title":"smile4","image":"https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw","description":"hi 2","date":"2024-05-29T13:39:58.965Z"}]
[
{
"author": "jameshook",
"title": "smile1",
"image": "https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg",
"description": "hi 2",
"date": "2024-05-27T14:44:14.236Z",
"id": "8448820043690848-1716821054237"
},
{
"author": "jameshook",
"title": "smile2",
"image": "https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg",
"description": "hi 2",
"date": "2024-05-27T14:44:21.737Z",
"id": "05670034285101688-1716821061738"
},
{
"author": "jameshook",
"title": "smile3",
"image": "https://m.media-amazon.com/images/I/41xsPjrM-pL._AC_UF350,350_QL50_.jpg",
"description": "hi 2",
"date": "2024-05-27T14:44:23.250Z",
"id": "549161270915079-1716821063251"
},
{
"id": "7049627815708344-1716989932607",
"author": "AdrianGon",
"title": "smil3",
"image": "https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw",
"description": "hi 2",
"date": "2024-05-29T13:38:52.607Z"
},
{
"id": "11703272214754645-1716989975016",
"author": "AdrianGon",
"title": "smil3",
"image": "https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw",
"description": "hi 2",
"date": "2024-05-29T13:39:35.015Z"
},
{
"id": "7956804321626201-1716989998965",
"author": "AdrianGon",
"title": "smile4",
"image": "https://imgs.search.brave.com/rY4vd7ChrTffot87xezWVyJZcsjp10UPNHx2EQMRCfs/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9pLnBp/bmltZy5jb20vb3Jp/Z2luYWxzLzFiL2Qx/L2I2LzFiZDFiNjE1/ZTZkYTcwZGQ3MWRj/ODRmZDJmNDdjODBk/LmpwZw",
"description": "hi 2",
"date": "2024-05-29T13:39:58.965Z"
},
{
"author": "Brutalito",
"title": "JSON Momoa",
"image": "https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExYTgxa2Y4OWl6YnJ6c2I4dndwZDQ0dHJsaXZ1N3B6ZnhsY2Q2eW5wcCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/QOxoMjSfRFATCNLDDT/giphy.gif",
"description": "I Love JSON MOMOA",
"date": "2024-05-30T21:37:32.119Z",
"id": "3243047678592019-1717105052119"
},
{
"author": "Pollete",
"title": "SAD POLLETE",
"image": "https://media3.giphy.com/media/Zg7clvqHE3CdW/200.webp?cid=ecf05e47uppvz2sbk9azhbxn6vhvtj8s4a8g6y7h487bwy6m&ep=v1_gifs_search&rid=200.webp&ct=g",
"description": "Triste pajarillo sin alas, susurra en el eter",
"date": "2024-05-30T21:41:20.710Z",
"id": "6840503078560916-1717105280710"
}
]
7 changes: 7 additions & 0 deletions staff/adrian-martin/socialcode/api/data/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@
"email": "inaki@barrera.com",
"username": "Brutalito",
"password": "123123123"
},
{
"name": "Jesus",
"surname": "Bertolin",
"email": "jesus@bertolin.com",
"username": "Pollete",
"password": "123123123"
}
]
6 changes: 2 additions & 4 deletions staff/adrian-martin/socialcode/api/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import express from 'express'
import fs from 'fs'
// import fs from 'fs'
import logic from './logic/index.js'

// import { measureMemory } from 'vm'

const api = express()

api.use(express.static('public'))
Expand Down Expand Up @@ -125,7 +123,7 @@ api.delete('/posts/:postId', (req, res) => {
res.status(204).send()
})
} catch (error) {
console.error(error)
res.status(500).json({ error: error.constructor.name, message: error.message })
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class FormWithFeedback extends Form{
clear() {
super.clear()



this.feedbackPanel.setText('')
this.feedbackPanel.removeClass('success')

Expand Down

0 comments on commit 5523e59

Please sign in to comment.