mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 16:48:58 +00:00
Compare commits
4 commits
001dbadf9e
...
d9447fcec7
Author | SHA1 | Date | |
---|---|---|---|
d9447fcec7 | |||
7e9698eae5 | |||
cbe491f1af | |||
344e552729 |
33 changed files with 4 additions and 26 deletions
|
@ -1,6 +0,0 @@
|
||||||
__pycache__
|
|
||||||
config.json
|
|
||||||
planning.txt
|
|
||||||
README.md
|
|
||||||
.git
|
|
||||||
.vscode
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM python:3.7-slim-buster
|
|
||||||
WORKDIR /fedibooks
|
|
||||||
COPY . fedibooks
|
|
||||||
RUN pip install -r requirements.txt
|
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
|
@ -55,6 +55,7 @@ body {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
background: center/contain url("/img/bot_generic.png");
|
background: center/contain url("/img/bot_generic.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
.panel-icon.large {
|
.panel-icon.large {
|
||||||
width: 150px;
|
width: 150px;
|
|
@ -483,7 +483,7 @@ def bot_create():
|
||||||
secret = privated['auth']
|
secret = privated['auth']
|
||||||
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
||||||
|
|
||||||
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
|
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
|
||||||
mysql.connection.commit()
|
mysql.connection.commit()
|
||||||
c.close()
|
c.close()
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
version: '3'
|
|
||||||
services:
|
|
||||||
fedibooks:
|
|
||||||
build: .
|
|
||||||
links:
|
|
||||||
- db
|
|
||||||
ports:
|
|
||||||
5000:5000
|
|
||||||
db:
|
|
||||||
image: mariadb/server:10.4
|
|
||||||
environment:
|
|
||||||
MARIADB_ROOT_PASSWORD: root
|
|
||||||
MARIADB_DATABASE: fedibooks
|
|
||||||
MARIADB_USER: fedibooks
|
|
||||||
MARIADB_PASSWORD: fedibooks
|
|
2
run.sh
2
run.sh
|
@ -1 +1,3 @@
|
||||||
|
cd app
|
||||||
env FLASK_APP=webui.py flask run
|
env FLASK_APP=webui.py flask run
|
||||||
|
cd ..
|
||||||
|
|
Loading…
Reference in a new issue