Compare commits

..

No commits in common. "feature/move-to-svelte" and "main" have entirely different histories.

400 changed files with 50527 additions and 3929 deletions

1
.gitattributes vendored
View File

@ -1 +0,0 @@
*.pdf filter=lfs diff=lfs merge=lfs -text

6
.gitignore vendored
View File

@ -8,8 +8,4 @@ pkg
!.idea/codeStyles/
!.idea/runConfigurations/
!.idea/inspectionProfiles/
*.iml
.cache/
compile_commands.json
*.db
*.iml

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "modules/cpp-libraries"]
path = modules/cpp-libraries
url = ssh://git@192.168.1.101:2222/lukas/cpp-libraries.git

2
.vscode/launch.json vendored
View File

@ -3,7 +3,7 @@
"configurations": [
{
"name": "Debug Server Admin Panel",
"type": "lldb",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/lf-server-admin-panel",
"args": [],

View File

@ -99,6 +99,5 @@
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp"
},
"C_Cpp.errorSquiggles": "disabled"
}
}

8
.vscode/tasks.json vendored
View File

@ -9,14 +9,6 @@
"problemMatcher": [
"$gcc"
]
},
{
"label": "build Frontend",
"type": "shell",
"command": "npm run build",
"options": {
"cwd": "frontend"
}
}
]
}

View File

@ -33,19 +33,13 @@ foreach(file IN LISTS TEMPLATE_FILES)
configure_file("${file}" "${CMAKE_BINARY_DIR}/${rel_path}" COPYONLY)
endforeach()
include_directories(
modules/cpp-libraries/include/
src
src/htmx
src/shadowrun
src/database
src/login
)
add_compile_options(-Wno-deprecated-declarations)
add_compile_options(-Wno-deprecated-literal-operator)
# Use Crow from system include (installed via yay -S crow + asio)
include_directories(/usr/include src src/htmx src/shadowrun src/database src/login)
add_executable(${TARGET_NAME}
# sqlite3
modules/cpp-libraries/src/sqlite3.c
src/main.cpp
src/utils.hpp
src/utils.cpp
@ -53,6 +47,7 @@ add_executable(${TARGET_NAME}
src/htmx/HtmxTable.h
src/systemd.cpp
src/systemd.h
src/json.hpp
src/htmx/HtmxTableRow.cpp
src/htmx/HtmxTableRow.h
src/htmx/HtmxObject.cpp
@ -61,9 +56,11 @@ add_executable(${TARGET_NAME}
src/htmx_helper.h
src/json_settings.cpp
src/json_settings.h
src/json.hpp
src/database/database.cpp
src/database/database.hpp
src/database/sqlite_orm.h
# Shadowrun
src/shadowrun/HtmxShItemList.cpp
@ -85,17 +82,9 @@ add_executable(${TARGET_NAME}
)
# warnings to ignore
target_compile_options(${TARGET_NAME} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:
-Wno-deprecated-literal-operator
-Wno-deprecated-declarations
>
)
target_compile_definitions(${TARGET_NAME} PRIVATE APPLICATION_NAME="${TARGET_NAME}")
target_link_libraries(${TARGET_NAME} pthread sodium)
target_link_libraries(${TARGET_NAME} pthread sqlite3 sodium)
# Optional: Print build type at configuration time
message(STATUS "Configuring build type: ${CMAKE_BUILD_TYPE}")

View File

@ -15,19 +15,6 @@ run : F5 or Run → Start Debugging
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
```
## Svelte
Inside the fronend directory
### Install
```
npm install -D @sveltejs/adapter-static
```
### Build
```
npm run build
```
## Make Package
1. tar the source files to make it cleaner
@ -39,11 +26,4 @@ tar czf pkg/lf-server-admin-panel-0.1.1.tar.gz src/ static/ templates/ lf-server
```
makepkg -f
```
## Database
### Attributes
| Character Id | Attribute | Value |
###
```

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More