2022-01-05 19:39:22 +01:00
|
|
|
# these are some notes
|
2022-01-05 18:14:45 +01:00
|
|
|
|
2022-01-05 19:39:22 +01:00
|
|
|
from distribusi.cli import build_argparser
|
|
|
|
from distribusi.distribusi import distribusify
|
|
|
|
this way we should be able to run distribusi from code on a folder, or multiple folders.
|
2022-01-05 18:14:45 +01:00
|
|
|
|
|
|
|
# Shit! We need entire CRUD functionality.
|
|
|
|
|
2022-01-05 19:39:22 +01:00
|
|
|
## Create:
|
2022-02-18 09:58:24 +01:00
|
|
|
There is a listing of the users distribusis. Purp
|
|
|
|
There is a yellow button, giving you the new option.
|
2022-01-05 18:14:45 +01:00
|
|
|
|
|
|
|
### Uploading
|
2022-02-18 09:58:24 +01:00
|
|
|
User can select the distribusi and upload/update.
|
|
|
|
|
2022-01-05 18:14:45 +01:00
|
|
|
User can upload based on $distribusiname field in db.
|
|
|
|
the zip file is changed to $distribusiname.
|
|
|
|
and a folder is made in the stash called $distribusiname
|
|
|
|
|
|
|
|
### CSS editing.
|
|
|
|
a user can edit CSS of a file in the folder called $distribusiname
|
|
|
|
|
|
|
|
### Theme selection
|
|
|
|
a user can select a CSS file from a dropdown menu.
|
|
|
|
|
|
|
|
### Distribusi
|
|
|
|
A flag in de DB is set to true and distribusi is run on the folder of the users
|
|
|
|
called $distribusiname
|
|
|
|
|
|
|
|
## Read:
|
|
|
|
Based on flags set in the user DB the distribusi folders are set to visible.
|
|
|
|
on the main index page there is a listing of distribusi sites.
|
|
|
|
|
|
|
|
## Update:
|
|
|
|
Same as create, uploading just redoes the entire process.
|
|
|
|
$distribusiname is overwritten.
|
|
|
|
|
|
|
|
CSS editing, and Theme selection is editing a single file in the folder.
|
|
|
|
$distribusiname stays the same
|
|
|
|
|
|
|
|
Distribusi button can only be reset when a new file is uploaded.
|
|
|
|
|
2022-01-05 19:39:22 +01:00
|
|
|
## Delete:
|
2022-01-05 18:14:45 +01:00
|
|
|
$distribusiname is deleted, files are removed, visible flag is set to false.
|