diff --git a/README.md b/README.md index f2a0952..ade6ad1 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,14 @@ ## Upload ![](https://github.com/maifeeulasad/Local-File-Server/blob/develop/ss/Screenshot%20(341).png) + + +## Create a config file +just create a file named `muaconfig.json` like this : + + +`` +{ + "server" : "http://your_ip_address:port_number" +} +`` \ No newline at end of file diff --git a/local_file_server/.idea/workspace.xml b/local_file_server/.idea/workspace.xml index d5a929d..8bf9211 100644 --- a/local_file_server/.idea/workspace.xml +++ b/local_file_server/.idea/workspace.xml @@ -1,13 +1,7 @@ - - - - - - - + @@ -22,8 +16,8 @@ - - + + @@ -31,20 +25,36 @@ - + - - + + + + + - + + + + + + + + + + + + + + - - + + @@ -53,19 +63,19 @@ - + - - + + - + - - + + @@ -84,6 +94,12 @@ Home constants + notif + noti + localhost + data + 8080 + table Profile @@ -100,12 +116,13 @@ @@ -123,7 +140,6 @@ - @@ -146,6 +162,7 @@ - + ); - } - else if(status==='uploading'){ - return( + } else if (status === 'uploading') { + return (
@@ -101,29 +102,16 @@ class Upload extends React.Component{
); - } - else if(status==='done'){ - return( -
- -
-
- - - -
-
-
- ); - } - else if(status==='copied'){ - return( + } else if (status === 'done') { + return (
- - + +
diff --git a/local_file_server/src/muaconfig.json b/local_file_server/src/muaconfig.json new file mode 100644 index 0000000..8f502b2 --- /dev/null +++ b/local_file_server/src/muaconfig.json @@ -0,0 +1,3 @@ +{ + "server" : "http://192.168.0.106:8080" +} diff --git a/local_file_server/src/server.json b/local_file_server/src/server.json deleted file mode 100644 index 0f9f33a..0000000 --- a/local_file_server/src/server.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "server" : "http://localhost:8080" -}