Skip to content

Commit 5b99c09

Browse files
1008834: Update the import and export annotation samples
1 parent e368504 commit 5b99c09

181 files changed

Lines changed: 5678 additions & 2808 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9-
<ItemGroup>
10-
<PackageReference Include="Syncfusion.Blazor.SfPdfViewer" Version="*" />
11-
<PackageReference Include="Syncfusion.Blazor.Themes" Version="*" />
12-
</ItemGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.Blazor.SfPdfViewer" Version="*" />
11+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="*" />
12+
</ItemGroup>
1313

1414
</Project>

Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object/Annotations_as_JSON_object.csproj.user

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

Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object.sln renamed to Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object/Annotations_as_JSON_object.sln

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.6.33723.286
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations_as_JSON_object", "Annotations_as_JSON_object\Annotations_as_JSON_object.csproj", "{2C42416F-9098-4755-914A-F8B3A3FB5856}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{2C42416F-9098-4755-914A-F8B3A3FB5856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{2C42416F-9098-4755-914A-F8B3A3FB5856}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{2C42416F-9098-4755-914A-F8B3A3FB5856}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{2C42416F-9098-4755-914A-F8B3A3FB5856}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {3BE58FDB-CF14-4B25-9CE4-27BDEA6181F2}
24-
EndGlobalSection
25-
EndGlobal
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations_as_JSON_object", "Annotations_as_JSON_object.csproj", "{66682389-A3BD-331E-B18F-474FC9B54AC7}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{66682389-A3BD-331E-B18F-474FC9B54AC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{66682389-A3BD-331E-B18F-474FC9B54AC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{66682389-A3BD-331E-B18F-474FC9B54AC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{66682389-A3BD-331E-B18F-474FC9B54AC7}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {9D4184A1-AF56-48F9-9941-96BDDECBF8A6}
23+
EndGlobalSection
24+
EndGlobal

Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object/App.razor

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<base href="/" />
8+
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
9+
<link rel="stylesheet" href="app.css" />
10+
<link rel="stylesheet" href="Annotations_as_JSON_object.styles.css" />
11+
<link rel="icon" type="image/png" href="favicon.png" />
12+
<HeadOutlet @rendermode="InteractiveServer" />
13+
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
14+
</head>
15+
<body>
16+
<Routes @rendermode="InteractiveServer" />
17+
<script src="_framework/blazor.web.js"></script>
18+
<script src="_content/Syncfusion.Blazor.SfPdfViewer/scripts/syncfusion-blazor-sfpdfviewer.min.js" type="text/javascript"></script>
19+
</body>
20+
21+
</html>

Annotations/Import-Export/Annotations as JSON stream and file/Annotations_as_JSON_stream/Shared/MainLayout.razor renamed to Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object/Components/Layout/MainLayout.razor

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
@inherits LayoutComponentBase
2-
3-
<PageTitle>Annotations_as_JSON_stream</PageTitle>
4-
5-
<div class="page">
6-
<div class="sidebar">
7-
<NavMenu />
8-
</div>
9-
10-
<main>
11-
<div class="top-row px-4">
12-
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
13-
</div>
14-
15-
<article class="content px-4">
16-
@Body
17-
</article>
18-
</main>
19-
</div>
1+
@inherits LayoutComponentBase
2+
3+
<div class="page">
4+
<div class="sidebar">
5+
<NavMenu />
6+
</div>
7+
8+
<main>
9+
<div class="top-row px-4">
10+
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
11+
</div>
12+
13+
<article class="content px-4">
14+
@Body
15+
</article>
16+
</main>
17+
</div>
18+
19+
<div id="blazor-error-ui">
20+
An unhandled error has occurred.
21+
<a href="" class="reload">Reload</a>
22+
<a class="dismiss">🗙</a>
23+
</div>

Annotations/Import-Export/Annotations as JSON stream and file/Annotations_as_JSON_stream/Shared/MainLayout.razor.css renamed to Annotations/Import-Export/Annotations as JSON object/Annotations_as_JSON_object/Components/Layout/MainLayout.razor.css

Lines changed: 96 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,96 @@
1-
.page {
2-
position: relative;
3-
display: flex;
4-
flex-direction: column;
5-
}
6-
7-
main {
8-
flex: 1;
9-
}
10-
11-
.sidebar {
12-
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13-
}
14-
15-
.top-row {
16-
background-color: #f7f7f7;
17-
border-bottom: 1px solid #d6d5d5;
18-
justify-content: flex-end;
19-
height: 3.5rem;
20-
display: flex;
21-
align-items: center;
22-
}
23-
24-
.top-row ::deep a, .top-row .btn-link {
25-
white-space: nowrap;
26-
margin-left: 1.5rem;
27-
}
28-
29-
.top-row a:first-child {
30-
overflow: hidden;
31-
text-overflow: ellipsis;
32-
}
33-
34-
@media (max-width: 640.98px) {
35-
.top-row:not(.auth) {
36-
display: none;
37-
}
38-
39-
.top-row.auth {
40-
justify-content: space-between;
41-
}
42-
43-
.top-row a, .top-row .btn-link {
44-
margin-left: 0;
45-
}
46-
}
47-
48-
@media (min-width: 641px) {
49-
.page {
50-
flex-direction: row;
51-
}
52-
53-
.sidebar {
54-
width: 250px;
55-
height: 100vh;
56-
position: sticky;
57-
top: 0;
58-
}
59-
60-
.top-row {
61-
position: sticky;
62-
top: 0;
63-
z-index: 1;
64-
}
65-
66-
.top-row, article {
67-
padding-left: 2rem !important;
68-
padding-right: 1.5rem !important;
69-
}
70-
}
1+
.page {
2+
position: relative;
3+
display: flex;
4+
flex-direction: column;
5+
}
6+
7+
main {
8+
flex: 1;
9+
}
10+
11+
.sidebar {
12+
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13+
}
14+
15+
.top-row {
16+
background-color: #f7f7f7;
17+
border-bottom: 1px solid #d6d5d5;
18+
justify-content: flex-end;
19+
height: 3.5rem;
20+
display: flex;
21+
align-items: center;
22+
}
23+
24+
.top-row ::deep a, .top-row ::deep .btn-link {
25+
white-space: nowrap;
26+
margin-left: 1.5rem;
27+
text-decoration: none;
28+
}
29+
30+
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
31+
text-decoration: underline;
32+
}
33+
34+
.top-row ::deep a:first-child {
35+
overflow: hidden;
36+
text-overflow: ellipsis;
37+
}
38+
39+
@media (max-width: 640.98px) {
40+
.top-row {
41+
justify-content: space-between;
42+
}
43+
44+
.top-row ::deep a, .top-row ::deep .btn-link {
45+
margin-left: 0;
46+
}
47+
}
48+
49+
@media (min-width: 641px) {
50+
.page {
51+
flex-direction: row;
52+
}
53+
54+
.sidebar {
55+
width: 250px;
56+
height: 100vh;
57+
position: sticky;
58+
top: 0;
59+
}
60+
61+
.top-row {
62+
position: sticky;
63+
top: 0;
64+
z-index: 1;
65+
}
66+
67+
.top-row.auth ::deep a:first-child {
68+
flex: 1;
69+
text-align: right;
70+
width: 0;
71+
}
72+
73+
.top-row, article {
74+
padding-left: 2rem !important;
75+
padding-right: 1.5rem !important;
76+
}
77+
}
78+
79+
#blazor-error-ui {
80+
background: lightyellow;
81+
bottom: 0;
82+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
83+
display: none;
84+
left: 0;
85+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
86+
position: fixed;
87+
width: 100%;
88+
z-index: 1000;
89+
}
90+
91+
#blazor-error-ui .dismiss {
92+
cursor: pointer;
93+
position: absolute;
94+
right: 0.75rem;
95+
top: 0.5rem;
96+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="top-row ps-3 navbar navbar-dark">
2+
<div class="container-fluid">
3+
<a class="navbar-brand" href="">Annotations_as_JSON_object</a>
4+
</div>
5+
</div>
6+
7+
<input type="checkbox" title="Navigation menu" class="navbar-toggler" />
8+
9+
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
10+
<nav class="flex-column">
11+
<div class="nav-item px-3">
12+
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
13+
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
14+
</NavLink>
15+
</div>
16+
17+
<div class="nav-item px-3">
18+
<NavLink class="nav-link" href="counter">
19+
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Counter
20+
</NavLink>
21+
</div>
22+
23+
<div class="nav-item px-3">
24+
<NavLink class="nav-link" href="weather">
25+
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
26+
</NavLink>
27+
</div>
28+
</nav>
29+
</div>
30+

0 commit comments

Comments
 (0)