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

4
.gitignore vendored
View File

@ -9,7 +9,3 @@ pkg
!.idea/runConfigurations/ !.idea/runConfigurations/
!.idea/inspectionProfiles/ !.idea/inspectionProfiles/
*.iml *.iml
.cache/
compile_commands.json
*.db

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": [ "configurations": [
{ {
"name": "Debug Server Admin Panel", "name": "Debug Server Admin Panel",
"type": "lldb", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/build/lf-server-admin-panel", "program": "${workspaceFolder}/build/lf-server-admin-panel",
"args": [], "args": [],

View File

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

8
.vscode/tasks.json vendored
View File

@ -9,14 +9,6 @@
"problemMatcher": [ "problemMatcher": [
"$gcc" "$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) configure_file("${file}" "${CMAKE_BINARY_DIR}/${rel_path}" COPYONLY)
endforeach() endforeach()
include_directories( add_compile_options(-Wno-deprecated-declarations)
modules/cpp-libraries/include/ add_compile_options(-Wno-deprecated-literal-operator)
src
src/htmx # Use Crow from system include (installed via yay -S crow + asio)
src/shadowrun include_directories(/usr/include src src/htmx src/shadowrun src/database src/login)
src/database
src/login
)
add_executable(${TARGET_NAME} add_executable(${TARGET_NAME}
# sqlite3
modules/cpp-libraries/src/sqlite3.c
src/main.cpp src/main.cpp
src/utils.hpp src/utils.hpp
src/utils.cpp src/utils.cpp
@ -53,6 +47,7 @@ add_executable(${TARGET_NAME}
src/htmx/HtmxTable.h src/htmx/HtmxTable.h
src/systemd.cpp src/systemd.cpp
src/systemd.h src/systemd.h
src/json.hpp
src/htmx/HtmxTableRow.cpp src/htmx/HtmxTableRow.cpp
src/htmx/HtmxTableRow.h src/htmx/HtmxTableRow.h
src/htmx/HtmxObject.cpp src/htmx/HtmxObject.cpp
@ -61,9 +56,11 @@ add_executable(${TARGET_NAME}
src/htmx_helper.h src/htmx_helper.h
src/json_settings.cpp src/json_settings.cpp
src/json_settings.h src/json_settings.h
src/json.hpp
src/database/database.cpp src/database/database.cpp
src/database/database.hpp src/database/database.hpp
src/database/sqlite_orm.h
# Shadowrun # Shadowrun
src/shadowrun/HtmxShItemList.cpp 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_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 # Optional: Print build type at configuration time
message(STATUS "Configuring build type: ${CMAKE_BUILD_TYPE}") 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 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 ## Make Package
1. tar the source files to make it cleaner 1. tar the source files to make it cleaner
@ -40,10 +27,3 @@ tar czf pkg/lf-server-admin-panel-0.1.1.tar.gz src/ static/ templates/ lf-server
``` ```
makepkg -f 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