Initial commit
This commit is contained in:
15
Oqtane.Client/Modules/Counter/Index.razor
Normal file
15
Oqtane.Client/Modules/Counter/Index.razor
Normal file
@ -0,0 +1,15 @@
|
||||
@using Oqtane.Modules
|
||||
@inherits ModuleBase
|
||||
Current count: @currentCount
|
||||
<br />
|
||||
<button class="btn btn-primary" onclick="@IncrementCount">Click me</button>
|
||||
<br /><br />
|
||||
|
||||
@functions {
|
||||
int currentCount = 0;
|
||||
|
||||
void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
}
|
16
Oqtane.Client/Modules/Counter/Module.cs
Normal file
16
Oqtane.Client/Modules/Counter/Module.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Oqtane.Modules;
|
||||
|
||||
namespace Oqtane.Client.Modules.Counter
|
||||
{
|
||||
public class Module : IModule
|
||||
{
|
||||
public string Name { get { return "Counter"; } }
|
||||
public string Description { get { return "Increments a counter"; } }
|
||||
public string Version { get { return "1.0.0"; } }
|
||||
public string Owner { get { return ""; } }
|
||||
public string Url { get { return ""; } }
|
||||
public string Contact { get { return ""; } }
|
||||
public string License { get { return ""; } }
|
||||
public string Dependencies { get { return ""; } }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user