Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: Always
BreakBeforeBraces: Attach
PointerAlignment: Left
AllowShortIfStatementsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: Yes
SpacesInParentheses: false
SpaceBeforeParens: ControlStatements
SpaceAfterCStyleCast: true
KeepEmptyLinesAtTheStartOfBlocks: false
ColumnLimit: 100
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: true
IncludeBlocks: Regroup
ReflowComments: true
...
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
*DS_Store*
*.log
*.db
*.yaml
audio/
data/
sessions/
img/
fonts/
tmp/
cmake-*
*build*
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ set(PROJECT_SOURCE_FILES
src/av_io.cpp
src/wadinfo.cpp
src/dol.cpp
src/post_handlers.cpp
)

include_directories(include)
Expand Down Expand Up @@ -67,6 +68,11 @@ endif()

add_executable(${PROJECT_NAME} ${PROJECT_SOURCE_FILES})

target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Werror>
)

target_link_libraries(${PROJECT_NAME} PRIVATE
Boost::system
yaml-cpp::yaml-cpp
Expand Down
Binary file added audio/click.wav
Binary file not shown.
180 changes: 121 additions & 59 deletions css/ff.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,39 @@
src: url('../fonts/font.woff2') format('woff2');
}

.floating_window {
position: fixed;
min-width: 300px;
min-height: 100px;
max-width: 90vw;
max-height: 90vh;

top: 50%;
left: 50%;
transform: translate(-50%, -50%);

border-radius: 10px;
padding: 10px;
z-index: 9999;
text-align: center;

overflow-y: auto;
overflow-x: hidden;

box-sizing: border-box;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* buttons */
#login-button, #login-window {
#login-button, #login-window, #tos-window {
background-color: #a9def9;
color: #000;
}
#register-button, #register-window {
background-color: #ff99c8;
color: #000;
}
#logout-button {
#logout-button, #logout-window {
background-color: #f08080;
color: #000;
}
Expand All @@ -36,6 +59,14 @@
background-color: #000000;
color: #fff;
}
#forum-button {
background-color: #f0f0f0;
color: #000;
}
.forum_window {
background-color: #f0f0f0;
color: #000;
}
#sandbox-button, #sandbox-window, #file-window {
background-color: #c4c4c4;
color: #000;
Expand All @@ -52,6 +83,25 @@
background-color: #fcf6bd;
color: #000;
}
#browse-window, #sandbox-window {
min-width: 90%;
min-height: 90%;
}

#announcements-window, #announcement-window, #create-announcement-window {
min-width: 60%;
min-height: 60%;
}

#view-window, #file-window, .forum_window {
min-width: 70%;
min-height: 70%;
}

#profile-window, #edit-profile-window, #terms-window {
min-width: 50%;
min-height: 50%;
}
.announcement_div {
background-color: #fff;
color: #000;
Expand Down Expand Up @@ -106,16 +156,6 @@ body {
overflow: auto;
}

.link_box {
background-color: #f0f0f0; /* default, if you don't override through classes or IDs */
color: #000000; /* default, if you don't override through classes or IDs */
border-radius: 10px;
padding: 10px;
margin-top: 10px;
min-width: 300px;
text-align: center;
}

.link_box_container {
display: flex;
flex-direction: column;
Expand All @@ -132,14 +172,29 @@ body {
}

.link_box {
background-color: #f0f0f0; /* default, if you don't override through classes or IDs */
color: #000000; /* default, if you don't override through classes or IDs */
margin-top: 10px;
min-width: 300px;
text-align: center;
flex: 1 1 calc(50% - 1rem);

box-sizing: border-box;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s;
max-width: 100%;

box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

position: relative;

width: 250px;
height: 100px;

overflow: hidden;
}

@media (max-width: 768px) {
Expand All @@ -158,32 +213,6 @@ body {
font-size: 1rem;
}


.floating_window {
position: fixed;
min-width: 300px;
min-height: 100px;
max-width: 90vw;
max-height: 90vh;

top: 50%;
left: 50%;
transform: translate(-50%, -50%);

border-radius: 10px;
padding: 10px;
z-index: 9999;
text-align: center;

overflow-y: auto;
overflow-x: hidden;

background-color: #70d6ff;
color: #000000;

box-sizing: border-box;
}

.file_div {
background-color: #fafafa;
color: #000000;
Expand All @@ -193,26 +222,6 @@ body {
margin: 10px auto;
}

#browse-window, #sandbox-window {
min-width: 90%;
min-height: 90%;
}

#announcements-window, #announcement-window, #create-announcement-window {
min-width: 60%;
min-height: 60%;
}

#view-window, #file-window {
min-width: 70%;
min-height: 70%;
}

#profile-window, #edit-profile-window, #terms-window {
min-width: 50%;
min-height: 50%;
}

.view_floating_window_comment_meta {
display: flex;
align-items: center;
Expand All @@ -231,7 +240,6 @@ body {
}
}


.view_floating_window_comment_logo {
width: 24px;
height: 24px;
Expand Down Expand Up @@ -313,6 +321,60 @@ body {
color: #000;
}

.post-file {
background-color: #fafafa;
color: #000000;
border-radius: 10px;
padding: 10px;
width: 80%;
margin: 10px auto;
overflow: hidden;
}

.forum-topic {
background-color: #fafafa;
color: #000000;
border-radius: 10px;
width: 80%;
margin: 10px auto;
}

.forum-post {
background-color: aliceblue;
color: #000000;
border-radius: 10px;
width: 80%;
margin: 10px auto;
}

.post-comment {
background-color: aliceblue;
border-radius: 5px;
padding: 5px;
margin-bottom: 10px;
}

#comments_div {
max-height: 500px;
overflow-y: auto;
}

.post-comment-file {
background-color: #fafafa;
color: #7289da;
padding: 5px;
}

.forum-topic:hover, .forum-post:hover, .post-file:hover {
transform: scale(1.025);
transition: transform 0.3s ease;
}

button:hover {
transform: scale(1.025);
transition: transform 0.3s ease;
}

input, button, select, textarea {
background-color: #fafafa;
color: #000000;
Expand Down
Binary file added fonts/font.woff2
Binary file not shown.
11 changes: 11 additions & 0 deletions http/create_topic.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
POST /api/create_topic HTTP/1.1
Host: localhost:8080
Content-Type: application/json

{
"title": "New Topic",
"description": "This is a new topic created for testing purposes.",

"username": "jacob",
"key": "baR5ZE7v07z5MygYKlHuWUPJbB0pDDkfmLFNbMuna6lrrwxOH96zQXJojUrUtHq2"
}
2 changes: 1 addition & 1 deletion http/rate_forwarder.http
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Content-Type: application/json
"forwarder_id": "jRF5k1YB",
"rating": 5,
"username": "jacob",
"key": "DQFLbDpU8tmK0uWrVi3vxXeL0iVCOf5PhXH9YgAz9wpOBaYOmovXBBvE7aeLLHVO"
"key": "baR5ZE7v07z5MygYKlHuWUPJbB0pDDkfmLFNbMuna6lrrwxOH96zQXJojUrUtHq2"
}
4 changes: 4 additions & 0 deletions img/announcements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/background-logo-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/coin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions img/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading