Skip to content

Commit 489f817

Browse files
author
Mohd Irfan
committed
v1.0 released
1 parent 30df2d3 commit 489f817

84 files changed

Lines changed: 3111 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.autopep8"
4+
},
5+
"python.formatting.provider": "none"
6+
}

devstudy-v1.0/apiexample.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Cool Rooms</title>
7+
</head>
8+
<body>
9+
<h1>Cool Rooms</h1>
10+
11+
<div id="rooms-container"></div>
12+
</body>
13+
14+
<script>
15+
let roomsContainer = document.getElementById('rooms-container')
16+
17+
let getRooms = async () => {
18+
let response = await fetch('http://127.0.0.1:8000/api/rooms/')
19+
let rooms = await response.json()
20+
/*
21+
console.log('rooms:', rooms)
22+
for (let i=0; rooms.length > i; i++) {
23+
let room = rooms[i]
24+
let row = `<div>
25+
<h3>${room.name}</h3>
26+
</div>`
27+
roomsContainer.innerHTML += row
28+
}
29+
*/
30+
for (let room of rooms) {
31+
let roomDiv = document.createElement('div')
32+
roomDiv.innerHTML = `
33+
<h2>${room.name}</h2>
34+
<p>${room.description}</p>
35+
<p>${room.topic}</p>
36+
<p>${room.host}</p>
37+
<p>${room.participants}</p>
38+
`
39+
roomsContainer.appendChild(roomDiv)
40+
}
41+
42+
}
43+
44+
getRooms()
45+
</script>
46+
47+
</html>

devstudy-v1.0/base/__init__.py

Whitespace-only changes.
206 Bytes
Binary file not shown.
683 Bytes
Binary file not shown.
573 Bytes
Binary file not shown.
1.93 KB
Binary file not shown.
3.71 KB
Binary file not shown.
1.53 KB
Binary file not shown.
11.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)