diff --git a/Services/Admin/Pages/Assets/Index.cshtml b/Services/Admin/Pages/Assets/Index.cshtml index 5c51bfc..30fdfe4 100644 --- a/Services/Admin/Pages/Assets/Index.cshtml +++ b/Services/Admin/Pages/Assets/Index.cshtml @@ -1,16 +1,208 @@ @page "/admin/assets" @model Assets.IndexModel +@using Server.Data.Entities @{ ViewData["Title"] = "CDN Assets"; }
Browse assets (@Model.AssetCount total)
+ +Browse and manage client assets
+Asset browser coming soon...
+ +@Model.TotalCount
+Total Assets
+@Model.TextureCount
+Textures
+@Model.SceneCount
+Scenes
+@Model.ScriptCount
+Scripts
+@asset.AssetType
++ @System.IO.Path.GetFileName(asset.FilePath) +
++ @asset.FilePath +
+No assets found.
++ Showing @((Model.CurrentPage - 1) * Model.PageSize + 1)-@Math.Min(Model.CurrentPage * Model.PageSize, Model.TotalCount) of @Model.TotalCount +
+ +@(Model.IsNew ? "Add a new crafting recipe" : $"ID: {Model.Recipe.Id}")
+| Slot | +Icon | +Item | +Quantity | +Actions | +
|---|---|---|---|---|
| @ing.SlotOrder | +
+ @if (ing.ItemDefinition != null && !string.IsNullOrEmpty(ing.ItemDefinition.SpritePath))
+ {
+ |
+ + @ing.ItemDefinition?.Name + (ID: @ing.ItemDefinitionId) + | +@ing.Quantity | ++ + | +
| + No ingredients yet. Add items to create the recipe. + | +||||
Manage crafting recipes (@Model.RecipeCount total)
+Manage crafting recipes
Recipe editor coming soon...
+ +| ID | +Recipe | +Output | +Skill | +Lvl | +Ingredients | +Base | +Enabled | +Actions | +
|---|---|---|---|---|---|---|---|---|
| @recipe.Id | +
+ @recipe.Name
+ @if (!string.IsNullOrEmpty(recipe.Description))
+ {
+ @recipe.Description + } + |
+
+ @if (recipe.OutputItem != null)
+ {
+
+ @if (!string.IsNullOrEmpty(recipe.OutputItem.SpritePath))
+ {
+
+ }
+ else
+ {
+ Missing Item #@recipe.OutputItemDefinitionId
+ }
+
+ @recipe.OutputItem.Name
+ @if (recipe.OutputQuantity > 1)
+ {
+ x@recipe.OutputQuantity
+ }
+
+ |
+ + @recipe.SkillType + | +@recipe.RequiredLevel | ++ @recipe.Ingredients.Count + | ++ @if (recipe.IsBaseRecipe) + { + ✓ + } + else + { + - + } + | ++ @if (recipe.IsEnabled) + { + + } + else + { + + } + | +
+
+
+
+
+
+
+ |
+
| + No recipes found. Create one? + | +||||||||
+ Showing @((Model.CurrentPage - 1) * Model.PageSize + 1)-@Math.Min(Model.CurrentPage * Model.PageSize, Model.TotalCount) of @Model.TotalCount +
+ +