-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Accounts, still buggy need to cleanup code. Setting, trash, and issues tab Cleaned up pages
- Loading branch information
1 parent
8a11007
commit f118f76
Showing
55 changed files
with
4,973 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import ast | ||
import os | ||
import shutil | ||
|
||
def Create(user,password): | ||
try: | ||
account_folder = 'Accounts/'+user | ||
info_file = account_folder+'/info' | ||
info = {'password':password,'projects':['']} | ||
os.mkdir(account_folder) | ||
with open(info_file,'w') as f: | ||
f.write(str(info)) | ||
shutil.copy('profilepic.png',account_folder) | ||
return True | ||
except: | ||
return False | ||
|
||
def Login(user,password): | ||
account_folder = 'Accounts/'+user | ||
info_file = account_folder+'/info' | ||
with open(info_file,'r') as f: | ||
data = ast.literal_eval(f.read()) | ||
if(password == data['password']): | ||
return True | ||
return False | ||
|
||
def Info(account): | ||
try: | ||
account_folder = 'Accounts/'+user | ||
info_file = account_folder+'/info' | ||
with open(info_file,'r') as f: | ||
data = ast.literal_eval(f.read()) | ||
return data | ||
except: | ||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
body{ | ||
margin:0; | ||
padding:0; | ||
font-family: Sans-serif; | ||
height:100vh; | ||
} | ||
.top-bar{ | ||
padding-left:35px; | ||
padding-top:20px; | ||
padding-bottom:20px; | ||
background-color: #2e2e2e; | ||
} | ||
.search-bar{ | ||
color:grey; | ||
background-color: #2e2e2e; | ||
border:1px solid white; | ||
border-radius: 5px; | ||
padding:7px; | ||
width:200px; | ||
outline: none; | ||
transition-duration: .5s; | ||
} | ||
.search-bar:hover{ | ||
transition-duration: .5s; | ||
width:400px; | ||
} | ||
.search-bar:focus{ | ||
width:400px; | ||
} | ||
.project-top{ | ||
display: flex; | ||
background-color: #f1f1f1; | ||
height:60px; | ||
padding:15px; | ||
position: relative; | ||
} | ||
.title{ | ||
font-size: x-large; | ||
padding-top:15px; | ||
margin-left:10px; | ||
} | ||
.title-folder{ | ||
height:50px; | ||
width:50px; | ||
} | ||
.container{ | ||
width:75%; | ||
padding:50px; | ||
} | ||
.options-bar{ | ||
background-color: #f1f1f1; | ||
padding:5px; | ||
border-bottom: 1px solid grey; | ||
} | ||
.option{ | ||
color:black; | ||
padding:5px; | ||
margin-left:30px; | ||
} | ||
.option:hover{ | ||
cursor:pointer; | ||
border-bottom:2px solid grey; | ||
} | ||
.option-selected:hover{ | ||
cursor:pointer; | ||
} | ||
.option-selected{ | ||
border-bottom:2px solid #fe5e00; | ||
padding:5px; | ||
margin-left:30px; | ||
} | ||
.issue-title{ | ||
color:grey; | ||
padding:10px; | ||
border:1px solid grey; | ||
} | ||
.issue-desc{ | ||
color:grey; | ||
padding:10px; | ||
border:1px solid grey; | ||
} | ||
.issue-data{ | ||
line-height: 20px; | ||
color:grey; | ||
padding:10px; | ||
border:1px solid grey; | ||
} | ||
.code1{ | ||
padding:10px; | ||
width:50%; | ||
height:75%; | ||
border: 1px solid grey; | ||
} | ||
.code2{ | ||
padding:10px; | ||
width:50%; | ||
height:75%; | ||
border: 1px solid black; | ||
} | ||
.code-container{ | ||
width:100%; | ||
height:100vh; | ||
display: inline-flex; | ||
} | ||
.green{ | ||
background-color: #d3fdd3; | ||
} | ||
.dark-green{ | ||
background-color: #8efb8e; | ||
} | ||
.red{ | ||
background-color: #ffe4e1; | ||
} | ||
.dark-red{ | ||
background-color: #ffb6c1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
body{ | ||
margin:0; | ||
padding:0; | ||
font-family: Sans-serif; | ||
height:100vh; | ||
} | ||
.top-bar{ | ||
padding-left:35px; | ||
padding-top:20px; | ||
padding-bottom:20px; | ||
background-color: #2e2e2e; | ||
} | ||
.search-bar{ | ||
color:grey; | ||
background-color: #2e2e2e; | ||
border:1px solid white; | ||
border-radius: 5px; | ||
padding:7px; | ||
width:200px; | ||
outline: none; | ||
transition-duration: .5s; | ||
} | ||
.search-bar:hover{ | ||
transition-duration: .5s; | ||
width:400px; | ||
} | ||
.search-bar:focus{ | ||
width:400px; | ||
} | ||
.project-top{ | ||
display: flex; | ||
background-color: #f1f1f1; | ||
height:60px; | ||
padding:15px; | ||
position: relative; | ||
} | ||
.title{ | ||
font-size: x-large; | ||
padding-top:15px; | ||
margin-left:10px; | ||
} | ||
.title-folder{ | ||
height:50px; | ||
width:50px; | ||
} | ||
.container{ | ||
width:75%; | ||
padding:15px; | ||
} | ||
.options-bar{ | ||
background-color: #f1f1f1; | ||
padding:5px; | ||
border-bottom: 1px solid grey; | ||
} | ||
.option{ | ||
color:black; | ||
padding:5px; | ||
margin-left:30px; | ||
} | ||
.option:hover{ | ||
cursor:pointer; | ||
border-bottom:2px solid grey; | ||
} | ||
.option-selected:hover{ | ||
cursor:pointer; | ||
} | ||
.option-selected{ | ||
border-bottom:2px solid #fe5e00; | ||
padding:5px; | ||
margin-left:30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.