Skip to content

Commit

Permalink
优化UI界面
Browse files Browse the repository at this point in the history
  • Loading branch information
Redns committed Mar 6, 2022
1 parent 6cc2012 commit 7511d5b
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 5 deletions.
Binary file modified .vs/ImageBed/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified .vs/ImageBed/v17/.suo
Binary file not shown.
Binary file removed Assets/Images/1646536679212
Binary file not shown.
Binary file removed Assets/Images/1646536777732
Binary file not shown.
Binary file removed Assets/Images/1646536996880
Binary file not shown.
Binary file removed Assets/Images/1646537087305
Binary file not shown.
Binary file removed Assets/Images/1646537126829
Binary file not shown.
Binary file removed Assets/Images/1646537147967
Binary file not shown.
Binary file removed Assets/Images/1646537207082
Binary file not shown.
Binary file removed Assets/Images/1646537300696
Binary file not shown.
File renamed without changes.
Binary file added Assets/Images/1646586392534
Binary file not shown.
19 changes: 15 additions & 4 deletions Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@
ViewData["Title"] = "Home page";
}

<input id="image_input" type="file" name="file" hidden accept="image/*"/>
<style type="text/css">
.upload{
width: 550px;
margin:auto;
left:10px;
}
</style>

<div>
<input id="image_input" type="file" name="file" hidden accept="image/*"/>
</div>
<div class="upload">
<img id="upload" src="~/upload.png" alt="">
<img id="upload" src="~/upload.png" width=550 style="position:center">
</div>

<script>
Expand All @@ -29,9 +40,8 @@
if(this.files[0]){
var form = new FormData();
form.append("", this.files[0], "image");
var settings = {
"url": "http://localhost:12121/api/image",
"url": `http://${window.location.host}/api/image`,
"method": "POST",
"timeout": 0,
"processData": false,
Expand All @@ -43,6 +53,7 @@
$.ajax(settings).done(function (response){
var response = JSON.parse(response);
if(response.status_Code == 200){
alert(response.url);
copyToClip(response.url);
}
else{
Expand Down
2 changes: 1 addition & 1 deletion Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</nav>
</header>

<div class="container" style="width:100px">
<div class="container" style="position:relative;margin-top:100px;">
<main role="main" class="pb-3">
@RenderBody()
</main>
Expand Down
Binary file modified bin/Debug/net6.0/ImageBed.dll
Binary file not shown.
Binary file modified bin/Debug/net6.0/ImageBed.pdb
Binary file not shown.
Binary file modified obj/Debug/net6.0/ImageBed.dll
Binary file not shown.
Binary file modified obj/Debug/net6.0/ImageBed.pdb
Binary file not shown.
Binary file modified obj/Debug/net6.0/ref/ImageBed.dll
Binary file not shown.
Binary file modified obj/Debug/net6.0/refint/ImageBed.dll
Binary file not shown.
12 changes: 12 additions & 0 deletions obj/staticwebassets.pack.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
Binary file modified wwwroot/upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7511d5b

Please sign in to comment.