Skip to content

Commit 6fd697a

Browse files
committed
pushed missing files in smm #2201
1 parent e1d0ed4 commit 6fd697a

File tree

15 files changed

+430
-30
lines changed

15 files changed

+430
-30
lines changed

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI.Svelte/BExIS.Modules.SMM.UI.csproj

Lines changed: 276 additions & 0 deletions
Large diffs are not rendered by default.

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI.Svelte/src/routes/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
);
1313
</script>
1414

15-
<Page title="System Administration">
15+
<Page title="Species Mapping">
1616
<div class="grid grid-flow-col gap-10">
17-
<a class="btn variant-filled-secondary" href="./users">users</a>
18-
<a class="btn variant-filled-secondary" href="./groups">groups</a>
17+
<a class="btn variant-filled-secondary" href="./species">species</a>
1918

2019
</div>
2120
</Page>

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI.Svelte/src/routes/groups/+page.svelte

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<script lang="ts">
2+
import { ErrorMessage, Page, pageContentLayoutType, positionType, Spinner } from "@bexis2/bexis2-core-ui";
3+
import { load } from "./services";
4+
import type { SpeciesModel } from "./types";
5+
6+
7+
let data:SpeciesModel;
8+
9+
async function loadData(){
10+
11+
data = await load();
12+
}
13+
14+
</script>
15+
<Page
16+
title="Species"
17+
note=""
18+
contentLayoutType={pageContentLayoutType.center}
19+
>
20+
{#await loadData()}
21+
<div class="text-surface-800">
22+
<Spinner position={positionType.center} label="loading species" />
23+
</div>
24+
{:then result}
25+
<b>{data.count}</b>
26+
<b>{data.name}</b>
27+
28+
{:catch error}
29+
<ErrorMessage {error} />
30+
{/await}
31+
32+
33+
</Page>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Implementations for all the calls for the pokemon endpoints.
2+
//import Api from "./Api";
3+
import { Api } from '@bexis2/bexis2-core-ui';
4+
5+
/****************/
6+
/* Create*/
7+
/****************/
8+
export const load = async () => {
9+
try {
10+
const response = await Api.get('/smm/species/load');
11+
return response.data;
12+
} catch (error) {
13+
console.error(error);
14+
}
15+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface SpeciesModel {
2+
count: number;
3+
name: string;
4+
}

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI.Svelte/src/routes/users/+page.svelte

Lines changed: 0 additions & 9 deletions
This file was deleted.

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI/BExIS.Modules.SMM.UI.csproj

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,16 @@
105105
</Reference>
106106
</ItemGroup>
107107
<ItemGroup>
108+
<<<<<<< Updated upstream
108109
<Compile Include="Controllers\HomeController.cs" />
110+
=======
111+
<Compile Include="Controllers\SpeciesController.cs" />
112+
>>>>>>> Stashed changes
109113
<Compile Include="Helpers\SMMSeedDataGenerator.cs" />
110114
<Compile Include="Helpers\SettingsHelper.cs" />
115+
<Compile Include="Models\SpeciesModel.cs" />
111116
<Compile Include="Properties\AssemblyInfo.cs" />
112-
<Compile Include="SMMModule.cs" />
117+
<Compile Include="SmmModule.cs" />
113118
</ItemGroup>
114119
<ItemGroup>
115120
<Content Include="Content\bootstrap-theme.css" />
@@ -138,13 +143,18 @@
138143
<Content Include="Scripts\respond.matchmedia.addListener.js" />
139144
<Content Include="Scripts\respond.matchmedia.addListener.min.js" />
140145
<Content Include="Scripts\respond.min.js" />
141-
<Content Include="SMM.Manifest.xml" />
142-
<Content Include="SMM.Settings.xml" />
146+
<Content Include="Smm.Manifest.xml" />
147+
<Content Include="Smm.Settings.xml" />
143148
<Content Include="Views\Web.config" />
144149
<Content Include="Views\_ViewStart.cshtml" />
145150
<Content Include="Web.config" />
151+
<<<<<<< Updated upstream
146152
<Content Include="SMM.Settings.json" />
147153
<Content Include="Views\Home\Index.cshtml" />
154+
=======
155+
<Content Include="Smm.Settings.json" />
156+
<Content Include="Views\Species\Index.cshtml" />
157+
>>>>>>> Stashed changes
148158
<None Include="Web.Debug.config">
149159
<DependentUpon>Web.config</DependentUpon>
150160
</None>
@@ -158,7 +168,7 @@
158168
<ItemGroup>
159169
<Folder Include="Content\Images\help\" />
160170
<Folder Include="Models\" />
161-
<Folder Include="Views\Shared\" />
171+
<Folder Include="Views\Species\" />
162172
</ItemGroup>
163173
<ItemGroup>
164174
<ProjectReference Include="..\..\..\..\..\Components\AAA\BExIS.Security.Entities\BExIS.Security.Entities.csproj">
@@ -169,6 +179,10 @@
169179
<Project>{681c8bc4-55f0-4f43-a685-90e246a88cb1}</Project>
170180
<Name>BExIS.Security.Services</Name>
171181
</ProjectReference>
182+
<ProjectReference Include="..\..\..\..\..\Components\App\BExIS.App.Bootstrap\BExIS.App.Bootstrap.csproj">
183+
<Project>{7D7FBF8E-37D7-4A4C-B40E-3F267E9B9760}</Project>
184+
<Name>BExIS.App.Bootstrap</Name>
185+
</ProjectReference>
172186
<ProjectReference Include="..\..\..\..\..\Components\DLM\BExIS.Dlm.Entities\BExIS.Dlm.Entities.csproj">
173187
<Project>{b4e7b1bf-01b4-40af-8d19-b8f362167261}</Project>
174188
<Name>BExIS.Dlm.Entities</Name>
@@ -181,6 +195,10 @@
181195
<Project>{c8a05313-b960-406e-92ec-c1e5b3f47fcd}</Project>
182196
<Name>BExIS.IO.Transform.Validation</Name>
183197
</ProjectReference>
198+
<ProjectReference Include="..\..\..\..\..\Components\UI\BExIS.UI\BExIS.UI.csproj">
199+
<Project>{DE0AD99C-C559-422F-8132-CC4D7C46FF83}</Project>
200+
<Name>BExIS.UI</Name>
201+
</ProjectReference>
184202
<ProjectReference Include="..\..\..\..\..\Components\Vaiona\Vaiona.Entities\Vaiona.Entities.csproj">
185203
<Project>{0815d220-3625-4e23-bbbc-8152345637fe}</Project>
186204
<Name>Vaiona.Entities</Name>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using BExIS.App.Bootstrap.Attributes;
2+
using BExIS.Modules.Smm.UI.Models;
3+
using BExIS.UI.Helpers;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Linq;
7+
using System.Web;
8+
using System.Web.Mvc;
9+
10+
namespace BExIS.Modules.Smm.UI.Controllers
11+
{
12+
public class SpeciesController : Controller
13+
{
14+
// GET: Species
15+
16+
public ActionResult Index()
17+
{
18+
string module = "SMM";
19+
20+
ViewData["app"] = SvelteHelper.GetApp(module);
21+
ViewData["start"] = SvelteHelper.GetStart(module);
22+
23+
return View();
24+
}
25+
26+
[JsonNetFilter]
27+
public JsonResult Load()
28+
{
29+
SpeciesModel model = new SpeciesModel();
30+
model.Count = 2021;
31+
model.Name = "David";
32+
33+
34+
return Json(model, JsonRequestBehavior.AllowGet);
35+
}
36+
37+
38+
39+
}
40+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
6+
namespace BExIS.Modules.Smm.UI.Models
7+
{
8+
public class SpeciesModel
9+
{
10+
public int Count { get; set; }
11+
public string Name { get; set; }
12+
}
13+
}

0 commit comments

Comments
 (0)