db context hoes back to lib assembly...
This commit is contained in:
@ -27,7 +27,7 @@ namespace Yavsc
|
|||||||
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
||||||
UserFilesPath = "/files",
|
UserFilesPath = "/files",
|
||||||
AvatarsPath = "/avatars",
|
AvatarsPath = "/avatars",
|
||||||
GitPath = "/git",
|
GitPath = "/sources",
|
||||||
DefaultAvatar = "/images/Users/icon_user.png",
|
DefaultAvatar = "/images/Users/icon_user.png",
|
||||||
AnonAvatar = "/images/Users/icon_anon_user.png";
|
AnonAvatar = "/images/Users/icon_anon_user.png";
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ namespace Yavsc.Models
|
|||||||
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
|
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
|
||||||
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
|
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
|
||||||
}
|
}
|
||||||
builder.Entity<GitRepositoryReference>().HasKey(r => new { r.Path, r.Url, r.Branch });
|
builder.Entity<GitRepositoryReference>().HasKey(r => r.Path );
|
||||||
}
|
}
|
||||||
|
|
||||||
public DbSet<Client> Applications { get; set; }
|
public DbSet<Client> Applications { get; set; }
|
1818
Yavsc/Migrations/20180611003253_gitKey.Designer.cs
generated
Normal file
1818
Yavsc/Migrations/20180611003253_gitKey.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1679
Yavsc/Migrations/20180611003253_gitKey.cs
Normal file
1679
Yavsc/Migrations/20180611003253_gitKey.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -1341,13 +1341,13 @@ namespace Yavsc.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<string>("Path");
|
b.Property<string>("Path");
|
||||||
|
|
||||||
b.Property<string>("Url");
|
|
||||||
|
|
||||||
b.Property<string>("Branch");
|
b.Property<string>("Branch");
|
||||||
|
|
||||||
b.Property<string>("OwnerId");
|
b.Property<string>("OwnerId");
|
||||||
|
|
||||||
b.HasKey("Path", "Url", "Branch");
|
b.Property<string>("Url");
|
||||||
|
|
||||||
|
b.HasKey("Path");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
|
||||||
|
@ -36,7 +36,7 @@ namespace Yavsc
|
|||||||
public long Quota { get; set; }
|
public long Quota { get; set; }
|
||||||
public string Blog { get; set; }
|
public string Blog { get; set; }
|
||||||
public string Bills { get; set; }
|
public string Bills { get; set; }
|
||||||
public string GitRepository { get; set; }
|
public string GitRepository { get; set; } = "sources";
|
||||||
|
|
||||||
public string BusinessName { get; set; }
|
public string BusinessName { get; set; }
|
||||||
public string Street { get; set; }
|
public string Street { get; set; }
|
||||||
|
@ -53,7 +53,12 @@ namespace Yavsc
|
|||||||
RequestPath = new PathString(Constants.AvatarsPath),
|
RequestPath = new PathString(Constants.AvatarsPath),
|
||||||
EnableDirectoryBrowsing = env.IsDevelopment()
|
EnableDirectoryBrowsing = env.IsDevelopment()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var gitdirinfo = new DirectoryInfo(Startup.SiteSetup.GitRepository);
|
var gitdirinfo = new DirectoryInfo(Startup.SiteSetup.GitRepository);
|
||||||
|
GitDirName = gitdirinfo.FullName;
|
||||||
|
if (!gitdirinfo.Exists) gitdirinfo.Create();
|
||||||
|
|
||||||
GitOptions = new FileServerOptions()
|
GitOptions = new FileServerOptions()
|
||||||
{
|
{
|
||||||
FileProvider = new PhysicalFileProvider(GitDirName),
|
FileProvider = new PhysicalFileProvider(GitDirName),
|
||||||
@ -61,11 +66,11 @@ namespace Yavsc
|
|||||||
EnableDirectoryBrowsing = env.IsDevelopment()
|
EnableDirectoryBrowsing = env.IsDevelopment()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
app.UseFileServer(UserFilesOptions);
|
app.UseFileServer(UserFilesOptions);
|
||||||
|
|
||||||
app.UseFileServer(AvatarsOptions);
|
app.UseFileServer(AvatarsOptions);
|
||||||
|
|
||||||
|
app.UseFileServer(GitOptions);
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,12 +29,6 @@
|
|||||||
<input asp-for="Branch" class ="form-control"></input>
|
<input asp-for="Branch" class ="form-control"></input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label asp-for="OwnerId" class="col-md-2 control-label"></label>
|
|
||||||
<div class="col-md-10">
|
|
||||||
<select asp-for="OwnerId" class ="form-control"></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-offset-2 col-md-10">
|
<div class="col-md-offset-2 col-md-10">
|
||||||
<input type="submit" value="Create" class="btn btn-default" />
|
<input type="submit" value="Create" class="btn btn-default" />
|
||||||
|
@ -11,15 +11,19 @@
|
|||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th>Chemin</th>
|
||||||
|
<th/>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach (var item in Model) {
|
@foreach (var item in Model) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
@item.Path
|
||||||
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
</td>
|
||||||
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
<td>
|
||||||
|
@Html.ActionLink("Edit", "Edit", new { id=item.Path }) |
|
||||||
|
@Html.ActionLink("Details", "Details", new { id=item.Path }) |
|
||||||
|
@Html.ActionLink("Delete", "Delete", new { id=item.Path })
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
20-alpha4
|
20-alpha5
|
||||||
|
Reference in New Issue
Block a user