huiibuh / blackboard Goto Github PK
View Code? Open in Web Editor NEWBlackboard server and web client
License: GNU Affero General Public License v3.0
Blackboard server and web client
License: GNU Affero General Public License v3.0
If we want to be able to change the name of a blackboard we have to assign every blackboard an id. Otherwise the routing of the blackboards would change which is not desirable.
if content is not None and Blackboard._MIN_CONTENT_LENGTH < len(content) < Blackboard._MAX_CONTENT_LENGTH:
raise ValueError(f"Content size should be: "
f"{Blackboard._MIN_CONTENT_LENGTH} < length < {Blackboard._MAX_CONTENT_LENGTH}")
This stops me from having test
as content
Display creation time on main page as well.
After renaming a blackboard once I cannot rename it again.
Error: {"status":406,"message":{"detail":"Blackboard with name 'Kkkk' already exists!"}}
Edit:
You cannot edit the content of a blackboard without renaming it
Uvicorn uses workers to run the ASGI application.
In this case you load all the existing dicts in one process and Uvicorn starts another process with fastapi in it and there the static _BLACKBOARDS is of course {} because processes don't share memory.
Add the loading of the blackboards in the __init__.py
.
@app.on_event("startup")
async def startup_event():
items["foo"] = {"name": "Fighters"}
items["bar"] = {"name": "Tenders"}
Use the same pydantic base model for the same format.
{
"token" : "something"
}
should not have two classes which describe the same
When selecting a blackboard on page 'HOME', i should be routed to the page, where you can see the content. When clicking on the pen, i will be routed to the edit page, where can change content and name.
Sometimes it jumps directly to the edit page. If i then try to change something, one of the following errors occure:
Die Blackboard Namen sowie die Nachrichten können in ihrer maximalenLänge beschränkt werden. Mindestanforderung:
Ich glaube wir haben maximal 32 Zeichen als Name
Die Anzahl an zu erstellende Blackboards kann begrenzt werden. Mindestens 32 Blackboards sollen unterstützt werden.
3.3 CLEAR_BLACKBOARD
Löscht den Inhalt eines Blackboards.
Pop-up for to confirm delete?
When entering a invalid name (to short or invalid characters), i get the inconcret error:
"Internal server errror"
The created timestamp is always the same 1590420290.5203087
in my case
curl https://api.github.com/markdown/raw -X "POST" -H "Content-Type: text/plain" -d "Hello world github-linguist/linguist#1 cool, and #1!"
Add datetime to the log entries.
Show the user how much time he has left
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.