1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

Compare commits

...

4 commits

3 changed files with 12 additions and 12 deletions

View file

@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS `credentials` (
`secret` VARCHAR(128) NOT NULL `secret` VARCHAR(128) NOT NULL
); );
CREATE TABLE IF NOT EXISTS `fedi_account` ( CREATE TABLE IF NOT EXISTS `fedi_account` (
`outbox` VARCHAR(256) PRIMARY KEY, `handle` VARCHAR(128) NOT NULL PRIMARY KEY,
`instance` VARCHAR(256) NOT NULL, `outbox` VARCHAR(256),
FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE
); );
CREATE TABLE IF NOT EXISTS `posts` ( CREATE TABLE IF NOT EXISTS `posts` (

View file

@ -42,24 +42,24 @@ body {
width: 100%; width: 100%;
} }
.bot-icon { .panel-icon {
width: 100px; width: 100px;
height: 100px; height: 100px;
background: center/contain url("https://cloud.lynnesbian.space/s/JZCPTs3DzMLAspC/preview"); background: center/contain url("https://cloud.lynnesbian.space/s/JZCPTs3DzMLAspC/preview");
} }
.bot-icon, .bot-text, .bot-actions { .panel-icon, .panel-text, .panel-actions {
display: inline-block; display: inline-block;
align-self: center; align-self: center;
} }
.bot-text { .panel-text {
flex-grow: 1; flex-grow: 1;
margin: 0 0 10px 10px; margin: 0 0 10px 10px;
} }
.bot-name { .panel-name {
font-size: 1.8em; font-size: 1.8em;
margin: 10px 0; margin: 10px 0;
} }
.bot-actions { .panel-actions {
margin-right: 10px; margin-right: 10px;
} }

View file

@ -18,12 +18,12 @@
<div class="container" style="min-height: 300px;"> <div class="container" style="min-height: 300px;">
<div class="row light"> <div class="row light">
<div class="bot-icon"></div> <div class="panel-icon"></div>
<div class="bot-text"> <div class="panel-text">
<div class="bot-name">My bot!!</div> <div class="panel-name">My bot!!</div>
<div class="bot-status">Online, learning from 3 accounts, 12345 posts in database</div> <div class="panel-status">Online, learning from 3 accounts, 12345 posts in database</div>
</div> </div>
<div class="bot-actions"> <div class="panel-actions">
<a class="button btn-secondary" href="/bot/toggle/insert id here" title="Turn on/off"><i class="fas fa-power-off"></i></a><a class="button btn-secondary" href="/bot/edit/insert id here" title="Configure"><i class="fas fa-cog"></i></a><a class="button btn-secondary" href="/bot/accounts/insert id here" title="Accounts learned from"><i class="fas fa-users"></i></a><a class="button btn-secondary" href="/bot/blacklist/insert id here" title="Banned words"><i class="fas fa-strikethrough"></i></a><a class="button btn-secondary" href="/bot/chat/insert id here" title="Chat"><i class="fas fa-comment"></i></a><a class="button btn-dangerous" href="/bot/delete/insert id here" title="Delete"><i class="fas fa-trash"></i></a> <a class="button btn-secondary" href="/bot/toggle/insert id here" title="Turn on/off"><i class="fas fa-power-off"></i></a><a class="button btn-secondary" href="/bot/edit/insert id here" title="Configure"><i class="fas fa-cog"></i></a><a class="button btn-secondary" href="/bot/accounts/insert id here" title="Accounts learned from"><i class="fas fa-users"></i></a><a class="button btn-secondary" href="/bot/blacklist/insert id here" title="Banned words"><i class="fas fa-strikethrough"></i></a><a class="button btn-secondary" href="/bot/chat/insert id here" title="Chat"><i class="fas fa-comment"></i></a><a class="button btn-dangerous" href="/bot/delete/insert id here" title="Delete"><i class="fas fa-trash"></i></a>
</div> </div>
</div> </div>