From 69256d92b2b2c5b30e7c61aa1476dc77f108f616 Mon Sep 17 00:00:00 2001 From: crunk Date: Fri, 14 Jan 2022 18:12:29 +0100 Subject: [PATCH] Css Editor made with very minimal js. Distribusi Workflow currently very buggy --- verse/distribusiform.py | 8 -------- verse/loginform.py | 23 ----------------------- verse/registerform.py | 32 -------------------------------- verse/uploadform.py | 23 ----------------------- 4 files changed, 86 deletions(-) delete mode 100644 verse/distribusiform.py delete mode 100644 verse/loginform.py delete mode 100644 verse/registerform.py delete mode 100644 verse/uploadform.py diff --git a/verse/distribusiform.py b/verse/distribusiform.py deleted file mode 100644 index 6373162..0000000 --- a/verse/distribusiform.py +++ /dev/null @@ -1,8 +0,0 @@ -from flask_wtf import FlaskForm -from wtforms import SubmitField - - -class DistribusiForm(FlaskForm): - """Distribusi class to launch your distribusi website""" - - submit = SubmitField("Distribusi!") diff --git a/verse/loginform.py b/verse/loginform.py deleted file mode 100644 index 79da845..0000000 --- a/verse/loginform.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Login form to validate user.""" -from wtforms import ( - StringField, - SubmitField, - PasswordField, -) - -from wtforms import validators -from wtforms.validators import Length, Email -from flask_wtf import FlaskForm - - -class LoginForm(FlaskForm): - """Login distribusiverse form class.""" - - email = StringField( - "Email address:", - validators=[validators.InputRequired(), Email(), Length(6, 64)], - ) - password = PasswordField( - "Password:", validators=[validators.InputRequired(), Length(12, 72)] - ) - submit = SubmitField("Sign In") diff --git a/verse/registerform.py b/verse/registerform.py deleted file mode 100644 index d69b5f3..0000000 --- a/verse/registerform.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Register form to make a new user.""" -from wtforms import ( - StringField, - SubmitField, - PasswordField, -) - -from wtforms import validators -from wtforms.validators import Length, Email, EqualTo -from flask_wtf import FlaskForm - - -class RegisterForm(FlaskForm): - """Register for distribusi-verse form class""" - - email = StringField( - "Email address:", - validators=[validators.InputRequired(), Email(), Length(6, 64)], - ) - password = PasswordField( - "New password:", - validators=[validators.InputRequired(), Length(12, 72)], - ) - confirmpassword = PasswordField( - "Confirm your password:", - validators=[ - validators.InputRequired(), - Length(12, 72), - EqualTo("password", message="Passwords must match !"), - ], - ) - submit = SubmitField("Register to Distribusi-verse") diff --git a/verse/uploadform.py b/verse/uploadform.py deleted file mode 100644 index 433ca51..0000000 --- a/verse/uploadform.py +++ /dev/null @@ -1,23 +0,0 @@ -from flask_wtf import FlaskForm -from flask_wtf.file import FileField, FileAllowed -from wtforms import validators -from wtforms.validators import Length -from wtforms import ( - SubmitField, - StringField, -) - - -class UploadForm(FlaskForm): - """File upload class for a new site in distribusi-verse""" - - sitename = StringField( - "Name of your website:", - validators=[validators.InputRequired(), Length(6, 100)], - ) - zipfile = FileField( - "Upload your zip file with content here:", - validators=[FileAllowed(["zip"], "Zip archives only!")], - ) - - submit = SubmitField("Upload")