Fix some UI things.
This commit is contained in:
		| @ -1 +1 @@ | |||||||
| <!DOCTYPE html><html><head><title>蓝眼云盘</title><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1"><meta name=msapplication-tap-highlight content=no><meta name=apple-mobile-web-app-capable content=yes><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/app.b826fb2302ad8dab1a0230fae18cd108.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.3337e080ebb68ca11bfe.js></script><script type=text/javascript src=/static/js/app.dff12aa6592db25802dc.js></script></body></html> | <!DOCTYPE html><html><head><title>蓝眼云盘</title><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1"><meta name=msapplication-tap-highlight content=no><meta name=apple-mobile-web-app-capable content=yes><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/app.efb0ee6beea397e0080c6a748d3409e9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.3337e080ebb68ca11bfe.js></script><script type=text/javascript src=/static/js/app.477f5c91d438fa1b9633.js></script></body></html> | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										10
									
								
								build/html/static/js/app.477f5c91d438fa1b9633.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								build/html/static/js/app.477f5c91d438fa1b9633.js
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								build/html/static/js/app.477f5c91d438fa1b9633.js.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								build/html/static/js/app.477f5c91d438fa1b9633.js.map
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -82,6 +82,9 @@ rmdir /s/q %distPath%\pack | |||||||
| echo "remove service" | echo "remove service" | ||||||
| rmdir /s/q %distPath%\service | rmdir /s/q %distPath%\service | ||||||
|  |  | ||||||
|  | echo "remove doc" | ||||||
|  | rmdir /s/q %distPath%\doc | ||||||
|  |  | ||||||
| cd %PRE_DIR% | cd %PRE_DIR% | ||||||
|  |  | ||||||
| echo check the dist file in %distPath% | echo check the dist file in %distPath% | ||||||
|  | |||||||
| @ -71,6 +71,9 @@ cp -r "$GOPATH/src/tank/build/." $distPath | |||||||
| echo "remove pack" | echo "remove pack" | ||||||
| rm -rf $distPath/pack | rm -rf $distPath/pack | ||||||
|  |  | ||||||
|  | echo "remove doc" | ||||||
|  | rm -rf $distPath/doc | ||||||
|  |  | ||||||
| echo "compress to tar.gz" | echo "compress to tar.gz" | ||||||
| echo "tar -zcvf $distFolder/$FINAL_NAME ./$VERSION_NAME" | echo "tar -zcvf $distFolder/$FINAL_NAME ./$VERSION_NAME" | ||||||
| cd $distPath | cd $distPath | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ EXE_PATH=$TANK_DIR/tank | |||||||
|  |  | ||||||
| if [ -f "$EXE_PATH" ]; then | if [ -f "$EXE_PATH" ]; then | ||||||
|  nohup $EXE_PATH >/dev/null 2>&1 & |  nohup $EXE_PATH >/dev/null 2>&1 & | ||||||
|  echo 'Start tank successfully!' |  echo 'Start tank successfully! http://127.0.0.1:6010' | ||||||
| else | else | ||||||
|  echo 'Cannot find $EXE_PATH.' |  echo 'Cannot find $EXE_PATH.' | ||||||
|  exit 1 |  exit 1 | ||||||
|  | |||||||
| @ -267,7 +267,9 @@ func (this *MatterController) Upload(writer http.ResponseWriter, request *http.R | |||||||
| 		privacy = true | 		privacy = true | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	request.ParseMultipartForm(32 << 20) | 	err := request.ParseMultipartForm(32 << 20) | ||||||
|  | 	this.PanicError(err) | ||||||
|  |  | ||||||
| 	file, handler, err := request.FormFile("file") | 	file, handler, err := request.FormFile("file") | ||||||
| 	this.PanicError(err) | 	this.PanicError(err) | ||||||
| 	defer file.Close() | 	defer file.Close() | ||||||
|  | |||||||
| @ -140,7 +140,7 @@ func (this *MatterService) Upload(file multipart.File, user *User, puuid string, | |||||||
| 	//判断用户自身上传大小的限制。 | 	//判断用户自身上传大小的限制。 | ||||||
| 	if user.SizeLimit >= 0 { | 	if user.SizeLimit >= 0 { | ||||||
| 		if written > user.SizeLimit { | 		if written > user.SizeLimit { | ||||||
| 			panic("您最大只能上传" + HumanFileSize(user.SizeLimit) + "的文件") | 			this.PanicBadRequest("文件大小超出限制 " + HumanFileSize(user.SizeLimit) + ">" + HumanFileSize(written)) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user