Skip to content

Commit 4595755

Browse files
Merge pull request #5 from webexpress-framework/develop
0.0.9-alpha
2 parents cedd33d + 7e4fb6b commit 4595755

197 files changed

Lines changed: 9201 additions & 4530 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.

.github/workflows/generate-docs.yml

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,86 @@ jobs:
3636
- name: Add DocFX to PATH
3737
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
3838

39+
- name: Clone WebExpress.WebCore
40+
run: |
41+
git clone --branch develop https://github.com/webexpress-framework/WebExpress.WebCore.git
42+
mkdir -p packages
43+
44+
- name: Create wwwroot directory for WebCore
45+
run: mkdir -p WebExpress.WebCore/src/WebExpress.WebCore/wwwroot
46+
47+
- name: Build WebExpress.WebCore
48+
run: |
49+
dotnet build WebExpress.WebCore/src/WebExpress.WebCore/WebExpress.WebCore.csproj -c Release
50+
51+
- name: Pack WebExpress.WebCore
52+
run: |
53+
dotnet pack WebExpress.WebCore/src/WebExpress.WebCore/WebExpress.WebCore.csproj -c Release -o packages --no-build
54+
55+
- name: Create nuget.config
56+
run: |
57+
echo '<?xml version="1.0" encoding="utf-8"?>' > nuget.config
58+
echo '<configuration>' >> nuget.config
59+
echo ' <packageSources>' >> nuget.config
60+
echo ' <add key="LocalPackages" value="packages" />' >> nuget.config
61+
echo ' <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />' >> nuget.config
62+
echo ' </packageSources>' >> nuget.config
63+
echo '</configuration>' >> nuget.config
64+
65+
- name: Clone WebExpress.WebIndex
66+
run: |
67+
git clone --branch develop https://github.com/webexpress-framework/WebExpress.WebIndex.git
68+
69+
- name: Build WebExpress.WebIndex
70+
run: |
71+
dotnet build WebExpress.WebIndex/src/WebExpress.WebIndex/WebExpress.WebIndex.csproj -c Release
72+
73+
- name: Pack WebExpress.WebIndex
74+
run: |
75+
dotnet pack WebExpress.WebIndex/src/WebExpress.WebIndex/WebExpress.WebIndex.csproj -c Release -o packages --no-build
76+
77+
- name: Clone WebExpress.WebUI
78+
run: |
79+
git clone --branch develop https://github.com/webexpress-framework/WebExpress.WebUI.git
80+
81+
- name: Restore WebExpress.WebUI
82+
run: dotnet restore WebExpress.WebUI/src/WebExpress.WebUI/WebExpress.WebUI.csproj --configfile nuget.config
83+
84+
- name: Build WebExpress.WebUI
85+
run: |
86+
dotnet build WebExpress.WebUI/src/WebExpress.WebUI/WebExpress.WebUI.csproj -c Release
87+
88+
- name: Pack WebExpress.WebUI
89+
run: |
90+
dotnet pack WebExpress.WebUI/src/WebExpress.WebUI/WebExpress.WebUI.csproj -c Release -o packages --no-build
91+
92+
- name: Restore packages with local feed
93+
run: dotnet restore ./src/WebExpress.WebApp/WebExpress.WebApp.csproj --configfile nuget.config
94+
95+
- name: Build WebExpress.WebApp
96+
run: dotnet build ./src/WebExpress.WebApp/WebExpress.WebApp.csproj -c Release --no-restore
97+
3998
- name: Generate documentation
4099
run: |
41100
cd docs
42101
docfx metadata
43102
docfx build
44103
104+
- name: Generate API toc.yaml
105+
run: |
106+
echo "### YamlMime:TableOfContent" > docs/api/toc.yaml
107+
echo "[" >> docs/api/toc.yaml
108+
find docs/_site/api -maxdepth 1 -type f -name '*.html' | sort | while read file; do
109+
name=$(basename "$file" .html)
110+
echo " { \"name\": \"$name\", \"href\": \"$name.html\" }," >> docs/api/toc.yaml
111+
done
112+
sed -i '$ s/},/}/' docs/api/toc.yaml
113+
echo "]" >> docs/api/toc.yaml
114+
45115
- name: Upload artifact
46116
uses: actions/upload-pages-artifact@v3
47117
with:
48-
path: '_site'
118+
path: './docs/_site'
49119

50120
- name: Deploy to GitHub Pages
51121
id: deployment

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ bld/
3131
[Oo]bj/
3232
[Ll]og/
3333
[Ll]ogs/
34+
![Ww][Ww][Ww]/**/[Ll]og/*
35+
3436

3537
# Visual Studio 2015/2017 cache/options directory
3638
.vs/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 René Schwarzer
3+
Copyright (c) 2025 René Schwarzer
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress/main/assets/banner.png)
1+
![WebExpress-Framework](https://raw.githubusercontent.com/webexpress-framework/.github/main/docs/assets/img/banner.png)
22

33
# WebExpress
4-
`WebExpress` is a lightweight web server optimized for use in low-performance environments (e.g. Rasperry PI). By providing
5-
a powerful plugin system and a comprehensive API, web applications can be easily and quickly integrated into a .net
6-
language (e.g. C#). Some advantages of `WebExpress` are:
4+
`WebExpress` is a lightweight web server optimized for use in low-performance environments (e.g. Rasperry PI). By providing a powerful plugin system and a comprehensive API, web applications can be easily and quickly integrated into a .net language (e.g. C#). Some advantages of `WebExpress` are:
75

86
- It is easy to use.
97
- It offers a variety of features and tools that can help you build and manage your website.
@@ -12,11 +10,11 @@ language (e.g. C#). Some advantages of `WebExpress` are:
1210

1311
The `WebExpress` family includes the following projects:
1412

15-
- [WebExpress](https://github.com/ReneSchwarzer/WebExpress#readme) - The web server for `WebExpress` applications and the documentation.
16-
- [WebExpress.WebCore](https://github.com/ReneSchwarzer/WebExpress.WebCore#readme) - The core for `WebExpress` applications.
17-
- [WebExpress.WebUI](https://github.com/ReneSchwarzer/WebExpress.WebUI#readme) - Common templates and controls for `WebExpress` applications.
18-
- [WebExpress.WebIndex](https://github.com/ReneSchwarzer/WebExpress.WebIndex#readme) - Reverse index for `WebExpress` applications.
19-
- [WebExpress.WebApp](https://github.com/ReneSchwarzer/WebExpress.WebApp#readme) - Business application template for `WebExpress` applications.
13+
- [WebExpress](https://github.com/webexpress-framework/WebExpress#readme) - The web server for `WebExpress` applications and the documentation.
14+
- [WebExpress.WebCore](https://github.com/webexpress-framework/WebExpress.WebCore#readme) - The core for `WebExpress` applications.
15+
- [WebExpress.WebUI](https://github.com/webexpress-framework/WebExpress.WebUI#readme) - Common templates and controls for `WebExpress` applications.
16+
- [WebExpress.WebIndex](https://github.com/webexpress-framework/WebExpress.WebIndex#readme) - Reverse index for `WebExpress` applications.
17+
- [WebExpress.WebApp](https://github.com/webexpress-framework/WebExpress.WebApp#readme) - Business application template for `WebExpress` applications.
2018

2119
# WebExpress.WebApp
2220
`WebExpress.WebApp` is part of the WebExpress family. Provides a business application template for `WebExpress` applications.
@@ -27,19 +25,20 @@ The current binaries are available for download [here](https://github.com/ReneSc
2725
# Start
2826
If you're looking to get started with `WebExpress`, we would recommend using the following documentation. It can help you understand the platform.
2927

30-
- [Installation Guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/installation_guide.md)
31-
- [Development Guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/development_guide.md)
32-
- [WebExpress.WebCore API Documentation](https://reneschwarzer.github.io/WebExpress.WebCore/)
33-
- [WebExpress.WebUI API Documentation](https://reneschwarzer.github.io/WebExpress.WebUI/)
34-
- [WebExpress.WebApp API Documentation](https://reneschwarzer.github.io/WebExpress.WebApp/)
35-
- [WebExpress.WebIndex API Documentation](https://reneschwarzer.github.io/WebExpress.WebIndex/)
28+
- [Installation Guide](https://github.com/webexpress-framework/WebExpress/blob/main/doc/installation_guide.md)
29+
- [Development Guide](https://github.com/webexpress-framework/WebExpress/blob/main/doc/development_guide.md)
30+
- [WebExpress.WebCore API Documentation](https://webexpress-framework.github.io/WebExpress.WebCore/)
31+
- [WebExpress.WebUI API Documentation](https://webexpress-framework.github.io/WebExpress.WebUI/)
32+
- [WebExpress.WebApp API Documentation](https://webexpress-framework.github.io/WebExpress.WebApp/)
33+
- [WebExpress.WebIndex API Documentation](https://webexpress-framework.github.io/WebExpress.WebIndex/)
3634

3735
# Learning
3836
The following tutorials illustrate the essential techniques of `WebExpress`. These tutorials are designed to assist you, as a developer, in understanding the various aspects of `WebExpress`. Each tutorial provides a detailed, step-by-step guide that you can work through using an example. If you’re interested in beginning the development of `WebExpress` components, we would recommend you to complete some of these tutorials.
3937

40-
- [HelloWorld](https://github.com/ReneSchwarzer/WebExpress.Tutorial.HelloWorld#readme)
41-
- [WebApp](https://github.com/ReneSchwarzer/WebExpress.Tutorial.WebApp#readme)
42-
- [WebIndex](https://github.com/ReneSchwarzer/WebExpress.Tutorial.WebIndex#readme)
38+
- [HelloWorld](https://github.com/webexpress-framework/WebExpress.Tutorial.HelloWorld#readme)
39+
- [WebUI](https://github.com/webexpress-framework/WebExpress.Tutorial.WebUI#readme)
40+
- [WebApp](https://github.com/webexpress-framework/WebExpress.Tutorial.WebApp#readme)
41+
- [WebIndex](https://github.com/webexpress-framework/WebExpress.Tutorial.WebIndex#readme)
4342

4443
# Tags
4544
#WebApp #WebExpress #BusinessApplication #DotNet #NETCore

docs/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"xref": [
5252
"../.xrefmap.json"
5353
],
54-
"output": "../_site",
54+
"output": "_site",
5555
"template": [
5656
"default",
5757
"modern",

docs/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress/main/assets/banner.png)
1+
![WebExpress-Framework](https://raw.githubusercontent.com/webexpress-framework/.github/main/docs/assets/img/banner.png)
22

33
# WebExpress
44
WebExpress is a lightweight web server optimized for use in low-performance environments (e.g. Raspberry PI). By providing
@@ -12,17 +12,17 @@ language (e.g. C#). Some advantages of WebExpress are:
1212

1313
The `WebExpress` family includes the following projects:
1414

15-
- [WebExpress](https://github.com/ReneSchwarzer/WebExpress#readme) - The web server for `WebExpress` applications and the documentation.
16-
- [WebExpress.WebCore](https://github.com/ReneSchwarzer/WebExpress.WebCore#readme) - The core for `WebExpress` applications.
17-
- [WebExpress.WebUI](https://github.com/ReneSchwarzer/WebExpress.WebUI#readme) - Common templates and controls for `WebExpress` applications.
18-
- [WebExpress.WebIndex](https://github.com/ReneSchwarzer/WebExpress.WebIndex#readme) - Reverse index for `WebExpress` applications.
19-
- [WebExpress.WebApp](https://github.com/ReneSchwarzer/WebExpress.WebApp#readme) - Business application template for `WebExpress` applications.
15+
- [WebExpress](https://github.com/webexpress-framework/WebExpress#readme) - The web server for `WebExpress` applications and the documentation.
16+
- [WebExpress.WebCore](https://github.com/webexpress-framework/WebExpress.WebCore#readme) - The core for `WebExpress` applications.
17+
- [WebExpress.WebUI](https://github.com/webexpress-framework/WebExpress.WebUI#readme) - Common templates and controls for `WebExpress` applications.
18+
- [WebExpress.WebIndex](https://github.com/webexpress-framework/WebExpress.WebIndex#readme) - Reverse index for `WebExpress` applications.
19+
- [WebExpress.WebApp](https://github.com/webexpress-framework/WebExpress.WebApp#readme) - Business application template for `WebExpress` applications.
2020

2121
# WebExpress.WebApp
2222
`WebExpress.WebApp` is part of the WebExpress family. Provides a business application template for `WebExpress` applications.
2323

2424
# Download
25-
The current binaries are available for download [here](https://github.com/ReneSchwarzer/WebExpress/releases).
25+
The current binaries are available for download [here](https://github.com/webexpress-framework/WebExpress/releases).
2626

2727
# Tags
2828
#WebApp #WebExpress #BusinessApplication #DotNet #NETCore

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: Home
22
href: index.md
33
- name: API Documentation
4-
href: api/WebExpress.WebApp.html
4+
href: api/
55
- name: User Guide
66
href: user-guide.md
77
- name: Tutorials

docs/tutorials.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress/main/assets/banner.png)
1+
![WebExpress-Framework](https://raw.githubusercontent.com/webexpress-framework/.github/main/docs/assets/img/banner.png)
22

33
# Tutorials
44
Welcome to the `WebExpress` Tutorials! Here, you'll find step-by-step guides and helpful resources to get the most out
@@ -7,9 +7,10 @@ our tutorials offer something for everyone.
77

88
# Getting Started
99
Begin with our basic tutorial:
10-
- [HelloWorld](https://github.com/ReneSchwarzer/WebExpress.Tutorial.HelloWorld#readme)
11-
- [WebApp](https://github.com/ReneSchwarzer/WebExpress.Tutorial.WebApp#readme)
12-
- [WebIndex](https://github.com/ReneSchwarzer/WebExpress.Tutorial.WebIndex#readme)
10+
- [HelloWorld](https://github.com/webexpress-framework/WebExpress.Tutorial.HelloWorld#readme)
11+
- [WebUI](https://github.com/webexpress-framework/WebExpress.Tutorial.WebUI#readme)
12+
- [WebApp](https://github.com/webexpress-framework/WebExpress.Tutorial.WebApp#readme)
13+
- [WebIndex](https://github.com/webexpress-framework/WebExpress.Tutorial.WebIndex#readme)
1314

1415
This tutorial will guide you through the initial steps of creating and running your first `WebExpress` application.
1516

docs/user-guide.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress/main/assets/banner.png)
1+
![WebExpress-Framework](https://raw.githubusercontent.com/webexpress-framework/.github/main/docs/assets/img/banner.png)
22

33
# User guide
44
Welcome to the `WebExpress.WebApp` User Guide. This guide will help you get started with `WebExpress.WebApp` and make the most out of its
@@ -7,11 +7,11 @@ features. Follow the links below to begin your journey.
77
# Getting started
88
To get started with `WebExpress.WebApp`, use the following guides:
99

10-
- [Installation Guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/installation_guide.md)
11-
- [Development Guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/development_guide.md)
12-
- [WebExpress.WebCore API Documentation](https://reneschwarzer.github.io/WebExpress.WebCore/)
13-
- [WebExpress.WebUI API Documentation](https://reneschwarzer.github.io/WebExpress.WebUI/)
14-
- [WebExpress.WebApp API Documentation](https://reneschwarzer.github.io/WebExpress.WebApp/)
15-
- [WebExpress.WebIndex API Documentation](https://reneschwarzer.github.io/WebExpress.WebIndex/)
10+
- [Installation Guide](https://github.com/webexpress-framework/WebExpress/blob/main/doc/installation_guide.md)
11+
- [Development Guide](https://github.com/webexpress-framework/WebExpress/blob/main/doc/development_guide.md)
12+
- [WebExpress.WebCore API Documentation](https://webexpress-framework.github.io/WebExpress.WebCore/)
13+
- [WebExpress.WebUI API Documentation](https://webexpress-framework.github.io/WebExpress.WebUI/)
14+
- [WebExpress.WebApp API Documentation](https://webexpress-framework.github.io/WebExpress.WebApp/)
15+
- [WebExpress.WebIndex API Documentation](https://webexpress-framework.github.io/WebExpress.WebIndex/)
1616

1717
We hope you enjoy using `WebExpress.WebApp` and find it valuable for your projects. Happy coding!

src/WebExpress.WebApp.Test/Fixture/UnitTestControlFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ public static IHttpServerContext CreateHttpServerContextMock()
3939
{
4040
return new HttpServerContext
4141
(
42-
new RouteEndpoint("localhost"),
42+
new RouteEndpoint("server"),
4343
[],
4444
"",
4545
Environment.CurrentDirectory,
4646
Environment.CurrentDirectory,
4747
Environment.CurrentDirectory,
48-
new RouteEndpoint("/server"),
4948
CultureInfo.GetCultureInfo("en"),
5049
new Log() { LogMode = LogMode.Off },
5150
null
@@ -99,6 +98,7 @@ public static ComponentHub CreateAndRegisterComponentHubMock()
9998
/// <param name="uri">The URI of the request.</param>
10099
/// <returns>A fake request for testing.</returns>
101100
public static Request CreateRequestMock(string content = "", string uri = "")
101+
{
102102
var context = CreateHttpContextMock(content);
103103

104104
var request = context.Request;
@@ -203,6 +203,7 @@ public static IRenderControlContext CreateRenderContextMock(IApplicationContext
203203
/// <param name="scopes">The scopes of the page.</param></param>
204204
/// <returns>A fake context for testing.</returns>
205205
public static PageContext CreatePageContextMock(IApplicationContext applicationContext = null, IEnumerable<Type> scopes = null)
206+
{
206207
var ctorPageContext = typeof(PageContext).GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, [], null);
207208

208209
var pageContext = (PageContext)ctorPageContext.Invoke([]);

0 commit comments

Comments
 (0)