-
#image: jpg/jpeg/png/webp/gif
-
#action:
- a subject does an action on an object
- structure:
- name: short text
- code: short text
-
actions:
- post:
- create
- update
- delete
- thread:
- create
- update
- delete
- board:
- create
- update
- delete
- site
- op:
- create
- update
- delete
- board admin:
- create
- update
- delete
- site admin:
- create
- update
- delete
- post:
-
#role: a list of actions
-
default_roles(new roles can be created, but these are unchangeable):
- anon:
- action_list:
- 1.1
- 2.1
- action_list:
- op:
- +anon
- action_list:
- 1.2, 1.3
- 2.2, 2.3
- board admin:
- +op
- action_list:
- 5.1, 5.2, 5.3
- site admin:
- +board admin
- action_list:
- 6.1, 6.2, 6.3
- 3.1, 3.2, 3.3
- root:
- +site admin
- action_list:
- 7.1, 7.2, 7.3
- anon:
-
#user:
- username: short text
- email: email
- password: short text
- type: char
- status: char
- group: int
-
#post:
- info:
- creating a post generates an id stored in a cookie, as long as you have the cookie, you can delete your post
- metadata:
- thread: int
- status: char
- name: short text
- media:
- image:
- jpg
- jpeg
- png
- webp
- gif
- video:
- webm:
- 120s
- 2048x2048
- 3MB
- mp4
- webm:
- image:
- message:
- type: text
- plain text
- can contain ">"(quote), ">>"(link), ">>>/x/123121"(cross-link) are allowed
- can contain tags "[tag]content[/tag]"
- info:
-
#thread:
- a thread needs at least one post with an image
- page limit: 10
- post per page limit: 50
- posts: []#post
-
#board
- info:
- thread limit: 10
- name: short text
- code: short text
- descriptions: text
- threads: []#thread
- image: #image
- info:
- db: mysql
- backend: golang
- frontend: golang templates
go get github.com/githubnemo/CompileDaemon
CompileDaemon.exe -build="go build -o ..\main.exe .\main.go" -command="..\main.exe" -exclude-dir=".git" -exclude-dir="log" -exclude="(.*\.exe)$" -pattern="(.*)$" -verbose
- type:
- image:
- gif:
- thumb: extract frame and resize
- png:
- thumb: copy and resize
- jpeg:
- thumb: copy and resize
- jpg:
- thumb: copy and resize
- webp:
- thumb: copy and resize
- gif:
- video:
- webm:
- thumb: extract frame and resize
- mp4:
- thumb: extract frame and resize
- webm:
- image:
- size:
- min size
- max size
- min resolution
- max resolution
closed threads?
- board: # of threads in a daterange
- topic: # of threads in a daterange