Skip to content

Commit

Permalink
Merge pull request #64 from RaSan147/develop
Browse files Browse the repository at this point in the history
Updated to v0.5

# Change log:
## Improvements:
1. Improved Zip speed
2. Improved Folder property checking my using xhr on folder size
3. Improver server side request handling (using query string)
4. Using string template with better support for dev mode
5. natort and send2trash optional, means will work without internet (*send to trash will be disabled if not installed*)
6. Added server update feature in `Admin page` at bottom (*if available on this repo*)

## Fixes:
1. Stopped Flashing of no-script version of folder list
2. Fixed no-script mode upload
3. Fixed Selected File list style and functionality. (*if 2 files with same name is selected, remove previous one and replace with new one, because, when uploading last file will remain in host server, so we need to replace it with new one*)

## Changes:
1. Reload server is moved to admin page
2. Made r_u_sure popup and toaster
  • Loading branch information
RaSan147 committed Jan 17, 2023
2 parents ab24b5a + 41ee6c4 commit 2857752
Show file tree
Hide file tree
Showing 16 changed files with 5,931 additions and 3,630 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/.private
**/log.txt
*.pyc
*.bak
*.bak
**/test.*
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"files.eol": "\n"
}
6 changes: 5 additions & 1 deletion DATA SAFETY.MD
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@

1. Using password protected upload system and immediate reject on wrong password to prevent malicious data transfer.
2. Using temp file on upload to prevent unwanted data corruption or loss on cancelation of upload.
3. Deleting file has both Delete permanently and Move to recycle bin option and confirmation on Delete permanently.
4. Using temp directory to create zip file and clearing to each re-run.
5. (still improving) prevent access to unauthorized directory (parent directory or other directory).
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Server side requirement
* Basic knowledge about Python
* `send2trash`, `natsort` pip package (if missing, will be auto installed when the code runs)

[^1]: [3.4 compat](https://github.com/RaSan147/py_httpserver_Ult/blob/main/src/local_server%20(py%7E3.4).py) version to support till 3.4, but will not maintain that often. Also not recommended since it got EOL)
[^1]: [3.4 compat](/src/local_server%20(py%7E3.4).py) version to support till 3.4, but will not maintain that often. Also not recommended since it got EOL)


# Installation
Expand Down Expand Up @@ -157,3 +157,5 @@ Context menu:
3. https://github.com/SethMMorton/natsort (sorting titles)
4. https://github.com/sandes/zipfly (*modified* lets you see the zip progress)
5. https://github.com/sampotts/plyr (*improved* video player)

***Disclaimer***: **the owner or the programmers or any content of this repository hold no responsibility for any kind of data loss or modification on your system and do not warrenty for such actions. I tried my best to prevent all sorts of ways (that I am currently aware of) to prevent data loss or unwanted data modification. See [Data Safety Measures](/DATA%20SAFETY.MD) taken on this projects to prevent unwanted data loss.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4
0.5
2 changes: 1 addition & 1 deletion clone_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def clone(url, path = "./", overwrite = False, check_exist = "date", delete_extr
def get_json(url):

try:
u = url+"%3Fjson"
u = url+"?json"
#print(u)
json = session.get(u).json()
return json
Expand Down
Loading

0 comments on commit 2857752

Please sign in to comment.