-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathCoreConstants.cs
More file actions
40 lines (35 loc) · 1.08 KB
/
CoreConstants.cs
File metadata and controls
40 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace Try.Core
{
public static class CoreConstants
{
public const string MainComponentFilePath = "__Main.razor";
public const string MainComponentDefaultFileContent = @"
<MudText Typo=""Typo.h6"">MudBlazor is @Text</MudText>
<MudButton Variant=""Variant.Filled"" Color=""Color.Primary"" OnClick=""ButtonOnClick"">@ButtonText</MudButton>
@code {
public string Text { get; set; } = ""????"";
public string ButtonText { get; set; } = ""Click Me"";
public int ButtonClicked { get; set; }
void ButtonOnClick()
{
ButtonClicked += 1;
Text = $""Awesome x {ButtonClicked}"";
ButtonText = ""Click Me Again"";
}
}";
public const string DefaultRazorFileContentFormat = "<h1>{0}</h1>";
public static readonly string DefaultCSharpFileContentFormat =
@$"namespace {CompilationService.DefaultRootNamespace}
{{{{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class {{0}}
{{{{
}}}}
}}}}
";
}
}