mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
Added customizability
This commit is contained in:
parent
2568312ae7
commit
1b67a25800
8 changed files with 29 additions and 19 deletions
|
@ -60,12 +60,17 @@ target_sources(${PROJECT_NAME}
|
|||
# uncomment the following line for dynamically loading views
|
||||
# set_property(TARGET ${PROJECT_NAME} PROPERTY ENABLE_EXPORTS ON)
|
||||
|
||||
file(GLOB files "static/*")
|
||||
foreach(file ${files})
|
||||
get_filename_component(filename "${file}" NAME)
|
||||
message("${file}: ${filename}")
|
||||
configure_file("${file}" "./${filename}" COPYONLY)
|
||||
endforeach()
|
||||
function(staticinc dir)
|
||||
file(GLOB files "${dir}/*")
|
||||
foreach(file ${files})
|
||||
get_filename_component(filename "${file}" NAME)
|
||||
message("${file}: ${filename}")
|
||||
configure_file("${file}" "./${filename}" COPYONLY)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
staticinc(static)
|
||||
staticinc(customstatic)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(format REQUIRED IMPORTED_TARGET fmt)
|
||||
|
|
6
bots.sql
6
bots.sql
|
@ -21,7 +21,7 @@ SET default_tablespace = '';
|
|||
SET default_table_access_method = heap;
|
||||
|
||||
--
|
||||
-- Name: bots; Type: TABLE; Schema: public; Owner: nils
|
||||
-- Name: bots; Type: TABLE; Schema: public; Owner: zdqulpzc
|
||||
--
|
||||
|
||||
CREATE TABLE public.bots (
|
||||
|
@ -40,10 +40,10 @@ CREATE TABLE public.bots (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.bots OWNER TO nils;
|
||||
ALTER TABLE public.bots OWNER TO zdqulpzc;
|
||||
|
||||
--
|
||||
-- Data for Name: bots; Type: TABLE DATA; Schema: public; Owner: nils
|
||||
-- Data for Name: bots; Type: TABLE DATA; Schema: public; Owner: zdqulpzc
|
||||
--
|
||||
|
||||
COPY public.bots (name, short_description, long_description, avatar_url, owner, support_server, prefix, owner_id, app_id, votes, approved) FROM stdin;
|
||||
|
|
0
customstatic/.gitignore
vendored
Normal file
0
customstatic/.gitignore
vendored
Normal file
|
@ -1,9 +1,10 @@
|
|||
<%inc#include "controllers/views.h" %>
|
||||
<%inc#include "controllers/views.h"
|
||||
#include "config.h" %>
|
||||
<%c++ auto sessionData = @@.get<SessionDataPtr>("sessionData");%>
|
||||
<%layout global_layout%>
|
||||
|
||||
<meta http-equiv = "refresh" content = "2; url = /" />
|
||||
<title>Authentication success - DFB</title>
|
||||
<title>Authentication success - {%SHORT_NAME%}</title>
|
||||
|
||||
<div class="container">
|
||||
<p class="title text-center">Authenticated as: {%sessionData->discord_fullname()%}</p>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<%inc#include "controllers/views.h" %>
|
||||
<%inc#include "controllers/views.h"
|
||||
#include "config.h" %>
|
||||
<%c++ auto bot = @@.get<Bot>("bot");%>
|
||||
<%c++ auto canVote = @@.get<bool>("canVote");%>
|
||||
<%c++ auto owner = @@.get<bool>("owner");%>
|
||||
|
@ -6,7 +7,7 @@
|
|||
<%layout global_layout%>
|
||||
|
||||
<link rel="stylesheet" href="/botdetail.css">
|
||||
<title>{%bot.name%} - DFB</title>
|
||||
<title>{%bot.name%} - {%SHORT_NAME%}</title>
|
||||
|
||||
|
||||
<div class="container">
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<%inc#include "controllers/views.h" %>
|
||||
<%inc#include "controllers/views.h"
|
||||
#include "config.h" %>
|
||||
<%c++ auto bot = @@.get<Bot>("bot");%>
|
||||
<%layout global_layout%>
|
||||
|
||||
<title>Editing a bot - DFB</title>
|
||||
<title>Editing a bot - {%SHORT_NAME%}</title>
|
||||
|
||||
<div class="container">
|
||||
<form action="edit" method="POST">
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<%inc#include "controllers/views.h" %>
|
||||
<%inc#include "controllers/views.h"
|
||||
#include "config.h" %>
|
||||
<%c++ auto modView = @@.get<bool>("modView");%>
|
||||
<%c++ auto justMine = @@.get<bool>("justMine");%>
|
||||
<%layout global_layout%>
|
||||
|
||||
<title>DFB</title>
|
||||
<title>{%SHORT_NAME%}</title>
|
||||
|
||||
<div class="container text-center">
|
||||
<img style="width:15%;height:15%;" src="/logo.png">
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<%inc#include "controllers/views.h" %>
|
||||
<%inc#include "controllers/views.h"
|
||||
#include "config.h" %>
|
||||
<%c++ auto sessionData = @@.get<SessionDataPtr>("sessionData");%>
|
||||
<%c++ auto error = @@.get<std::string>("error");%>
|
||||
<%layout global_layout%>
|
||||
|
||||
<title>Registering a bot - DFB</title>
|
||||
<title>Registering a bot - {%SHORT_NAME%}</title>
|
||||
|
||||
<div class="container">
|
||||
<form action="register" method="POST">
|
||||
|
|
Loading…
Add table
Reference in a new issue