Skip to content

Commit 712ac23

Browse files
committed
Replace vue-vite with vue-static
1 parent 9faec0c commit 712ac23

28 files changed

+144
-143
lines changed

MyApp/Pages/Vue/Index.cshtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,20 +395,20 @@
395395
<a class="text-sm text-center mr-4" href="https://razor-ssg.web-templates.io">razor-ssg.web-templates.io</a>
396396
</div>
397397
<div>
398-
<a class="hover:no-underline" :href="zipUrl('NetCoreTemplates/vue-vite')">
398+
<a class="hover:no-underline" :href="zipUrl('NetCoreTemplates/vue-static')">
399399
<div class="bg-white dark:bg-gray-800 px-4 py-4 mr-4 mb-4 rounded-lg shadow-lg text-center items-center justify-center hover:shadow-2xl dark:border-2 dark:border-pink-600 dark:hover:border-blue-600" style="min-width:150px">
400400
<div class="text-center font-extrabold flex items-center justify-center mb-2">
401401
<div class="text-4xl text-blue-400 my-3">
402402
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="w-14 h-14 iconify iconify--vscode-icons" width="1em" height="1em" viewBox="0 0 32 32"><g fill="none"><path fill="url(#iconifyVue0)" d="m29.884 6.146l-13.142 23.5a.714.714 0 0 1-1.244.005L2.096 6.148a.714.714 0 0 1 .746-1.057l13.156 2.352a.714.714 0 0 0 .253 0l12.881-2.348a.714.714 0 0 1 .752 1.05z"></path><path fill="url(#iconifyVue1)" d="M22.264 2.007L12.54 3.912a.357.357 0 0 0-.288.33l-.598 10.104a.357.357 0 0 0 .437.369l2.707-.625a.357.357 0 0 1 .43.42l-.804 3.939a.357.357 0 0 0 .454.413l1.672-.508a.357.357 0 0 1 .454.414l-1.279 6.187c-.08.387.435.598.65.267l.143-.222l7.925-15.815a.357.357 0 0 0-.387-.51l-2.787.537a.357.357 0 0 1-.41-.45l1.818-6.306a.357.357 0 0 0-.412-.45z"></path><defs><linearGradient id="iconifyVue0" x1="6" x2="235" y1="33" y2="344" gradientTransform="translate(1.34 1.894) scale(.07142)" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"></stop><stop offset="1" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="iconifyVue1" x1="194.651" x2="236.076" y1="8.818" y2="292.989" gradientTransform="translate(1.34 1.894) scale(.07142)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"></stop><stop offset=".083" stop-color="#FFDD35"></stop><stop offset="1" stop-color="#FFA800"></stop></linearGradient></defs></g></svg>
403403
</div>
404404
</div>
405-
<div class="text-xl font-medium text-gray-700">Vue Vite</div>
405+
<div class="text-xl font-medium text-gray-700">Vue Static</div>
406406
<div class="flex justify-center h-8"></div>
407407
<span class="archive-name px-4 pb-2 text-blue-600 dark:text-indigo-400">{{ projectZip }}</span>
408408
<div class="count mt-1 text-gray-400 text-sm"></div>
409409
</div>
410410
</a>
411-
<a class="text-sm text-center mr-4" href="https://vue-vite.jamstacks.net">vue-vite.jamstacks.net</a>
411+
<a class="text-sm text-center mr-4" href="https://vue-static.web-templates.io">vue-static.web-templates.io</a>
412412
</div>
413413
<div>
414414
<a class="hover:no-underline" :href="zipUrl('NetCoreTemplates/razor-press')">
@@ -482,9 +482,9 @@
482482
<img class="p-2" src="https://raw.githubusercontent.com/ServiceStack/Assets/master/csharp-templates/razor-ssg.png">
483483
<div class="bg-gray-50 text-gray-600 font-semibold group-hover:bg-indigo-700 group-hover:text-white text-center py-2">razor-ssg.web-templates.io</div>
484484
</a>
485-
<a class="block group border hover:border-indigo-700" href="https://vue-vite.jamstacks.net">
485+
<a class="block group border hover:border-indigo-700" href="https://vue-static.web-templates.io">
486486
<img class="p-2 max-h-[301px]" src="https://raw.githubusercontent.com/ServiceStack/Assets/master/csharp-templates/vue-vite.png">
487-
<div class="bg-gray-50 text-gray-600 font-semibold group-hover:bg-indigo-700 group-hover:text-white text-center py-2">vue-vite.jamstacks.net</div>
487+
<div class="bg-gray-50 text-gray-600 font-semibold group-hover:bg-indigo-700 group-hover:text-white text-center py-2">vue-static.web-templates.io</div>
488488
</a>
489489
</div>
490490

@@ -513,7 +513,7 @@
513513
<b>razor-ssg</b> - Want to create a static generated App with Razor to host on CDNs for free
514514
</li>
515515
<li>
516-
<b>vue-vite</b> - Want to use TypeScript in a simpler JAMStack Vite SPA App
516+
<b>vue-static</b> - Want to use TypeScript in a simpler JAMStack Vite SPA App
517517
</li>
518518
</ul>
519519
</div>

MyApp/_includes/web-new-netcore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
| [blazor-admin](https://github.com/NetCoreTemplates/blazor-admin) | .NET 10 Blazor Admin Vue App with Tailwind |
1111
| [blazor](https://github.com/NetCoreTemplates/blazor) | .NET 10 Blazor App with Tailwind |
1212
| [blazor-vue](https://github.com/NetCoreTemplates/blazor-vue) | .NET 10 Blazor Vue App with Tailwind |
13-
| [vue-vite](https://github.com/NetCoreTemplates/vue-vite) | .NET 10 Jamstack Vue Vite App with Tailwind |
13+
| [vue-static](https://github.com/NetCoreTemplates/vue-static) | .NET 10 Jamstack Vue Vite App with Tailwind |
1414
| [vue-spa](https://github.com/NetCoreTemplates/vue-spa) | .NET 10 Vue Vite TypeScript SPA with Tailwind |
1515
| [vue-mjs](https://github.com/LegacyTemplates/vue-mjs) | .NET 10 Simple, Modern Vue ServiceStack Auth App with Tailwind |
1616
| [razor-ssg](https://github.com/NetCoreTemplates/razor-ssg) | .NET 10 Razor SSG App with Tailwind |

MyApp/_pages/api-explorer-v1.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This video provides a quick overview of API Explorer's v1 featureset:
1111
<lite-youtube class="w-full mx-4 my-4" width="560" height="315" videoid="lUDlTMq9DHU" style="background-image: url('https://img.youtube.com/vi/lUDlTMq9DHU/maxresdefault.jpg')"></lite-youtube>
1212

1313
::: info DEMO
14-
A Live demo is available at **/ui** in all ServiceStack **v6+** Apps, e.g: [vue-vite-api.jamstacks.net/ui](https://vue-vite-api.jamstacks.net/ui)
14+
A Live demo is available at **/ui** in all ServiceStack **v6+** Apps, e.g: [blazor-vue.web-templates.io/ui](https://blazor-vue.web-templates.io/ui)
1515
:::
1616

1717
The entire API Explorer UI is driven by the **rich metadata** around your APIs typed Service Contracts and AppHost's **registered plugins**.
@@ -25,7 +25,7 @@ The entire API Explorer UI is driven by the **rich metadata** around your APIs t
2525

2626
If your AppHost has the ServiceStack [AuthFeature](/auth/authentication-and-authorization) plugin registered, the home page will display a **Sign In** dialog based on the its **configured Auth Providers**.
2727

28-
This is what you'll see in a new [Vue Vite](https://vue-vite-api.jamstacks.net/ui) project which has **Credentials** Auth, **JWT** as well as **Facebook**, **Google** and **Microsoft** OAuth providers registered in [Configure.Auth.cs](https://github.com/LegacyTemplates/blazor-wasm/blob/main/MyApp/Configure.Auth.cs)
28+
This is what you'll see in a new [Vue Vite](https://blazor-vue.web-templates.io/ui) project which has **Credentials** Auth, **JWT** as well as **Facebook**, **Google** and **Microsoft** OAuth providers registered in [Configure.Auth.cs](https://github.com/LegacyTemplates/blazor-wasm/blob/main/MyApp/Configure.Auth.cs)
2929

3030
```csharp
3131
Plugins.Add(new AuthFeature(() => new CustomUserSession(),
@@ -47,7 +47,7 @@ Plugins.Add(new AuthFeature(() => new CustomUserSession(),
4747

4848
Where it will dynamically render the **Sign Up** form with the App's enabled Auth capabilities.
4949

50-
<a href="https://vue-vite-api.jamstacks.net/ui" class="block my-8 p-4 rounded shadow hover:shadow-lg">
50+
<a href="https://blazor-vue.web-templates.io/ui" class="block my-8 p-4 rounded shadow hover:shadow-lg">
5151
<img src="/img/pages/apiexplorer/signin.png">
5252
</a>
5353

@@ -78,8 +78,7 @@ public class CustomCredentialsAuthProvider : CredentialsAuthProvider
7878

7979
Where the `Input` utility can be used to configure most HTML Form Input control properties that automatically configures to use the desired Input control for each property Type.
8080

81-
You can Sign In with any of the users in the [Vue Vite Sign In](https://vue-vite.jamstacks.net/signin) page configured in
82-
[Configure.AuthRepository.cs](https://github.com/NetCoreTemplates/vue-vite/blob/main/api/MyApp/Configure.AuthRepository.cs), i.e:
81+
You can Sign In with any of the users in the [Vue Vite Sign In](https://blazor-vue.web-templates.io/signin) page configured in `Configure.AuthRepository.cs`, i.e:
8382

8483
| Username | Password | Role |
8584
| ------------------ | -------- | -------- |
@@ -95,7 +94,7 @@ Plugins.Add(new AdminUsersFeature());
9594

9695
It also displays **Admin UI** links that only **Admin** Users have access to.
9796

98-
<a href="https://vue-vite-api.jamstacks.net/ui" class="block my-8 p-4 rounded shadow hover:shadow-lg">
97+
<a href="https://blazor-vue.web-templates.io/ui" class="block my-8 p-4 rounded shadow hover:shadow-lg">
9998
<img src="/img/pages/apiexplorer/admin-user.png">
10099
</a>
101100

@@ -135,7 +134,7 @@ The `Raw` response forces a `CamelCase` response since the API Explorer interfac
135134
Those using `SnakeCase` or `PascalCase` will see a different response outside of API Explorer.
136135
:::
137136

138-
<a href="https://vue-vite-api.jamstacks.net/ui/QueryBookings?body=preview" class="block my-8 p-4 rounded shadow hover:shadow-lg">
137+
<a href="https://blazor-vue.web-templates.io/ui/QueryBookings?body=preview" class="block my-8 p-4 rounded shadow hover:shadow-lg">
139138
<img src="/img/pages/apiexplorer/api-form-QueryBookings.png">
140139
</a>
141140

@@ -150,7 +149,7 @@ Control types are based on the property types in your DTOs.
150149
| `<input type=checkbox>` | Boolean |
151150
| `<input type=text>` | default |
152151

153-
Where the `CreateBooking` Request DTO defined in [Bookings.cs](https://github.com/LegacyTemplates/blazor-wasm/blob/main/MyApp.ServiceModel/Bookings.cs):
152+
Where the `CreateBooking` Request DTO defined in [Bookings.cs](https://github.com/NetCoreTemplates/blazor-vue/blob/main/MyApp.ServiceModel/Bookings.cs):
154153

155154
```csharp
156155
[Tag("bookings"), Description("Create a new Booking")]
@@ -176,7 +175,7 @@ public class CreateBooking : ICreateDb<Booking>, IReturn<IdResponse>
176175
Generates the following UI:
177176

178177
<div class="flex justify-center py-8">
179-
<a href="https://vue-vite-api.jamstacks.net/ui/CreateBooking">
178+
<a href="https://blazor-vue.web-templates.io/ui/CreateBooking">
180179
<img src="/img/pages/apiexplorer/api-form-CreateBooking.png" style="max-width:850px;">
181180
</a>
182181
</div>
@@ -188,7 +187,7 @@ to further customize the Input UI control for each property as a **declarative a
188187
API Form also supports auto binding [Argument Exceptions](/error-handling) or [Fluent](/validation) & [Declarative](/declarative-validation) Validation rules where any validation errors will be contextually displayed next to the invalid property. Here's both the resulting invalid UI & the Error Response DTO that generated it:
189188

190189
<div class="flex justify-center py-8">
191-
<a href="https://vue-vite-api.jamstacks.net/ui/CreateBooking">
190+
<a href="https://blazor-vue.web-templates.io/ui/CreateBooking">
192191
<img src="/img/pages/apiexplorer/api-form-CreateBooking-invalid.png" style="max-width:850px;">
193192
</a>
194193
</div>
@@ -202,7 +201,7 @@ Another useful API form feature is being able to call APIs with a **JSON request
202201
Real-time JSON validation is also displayed for added assistance, warning you whenever the JSON is malformed.
203202

204203
<div class="flex justify-center py-8">
205-
<a href="https://vue-vite-api.jamstacks.net/ui/CreateBooking">
204+
<a href="https://blazor-vue.web-templates.io/ui/CreateBooking">
206205
<img src="/img/pages/apiexplorer/api-form-CreateBooking-json.png" style="max-width:850px;">
207206
</a>
208207
</div>
@@ -220,7 +219,7 @@ This is where API consumers would go to learn about each API where it displays a
220219
- It's an [AutoQuery CRUD](/autoquery/crud) API implementing `ICreateDb<Booking>` indicating it creates entries in the **Booking** RDBMS Table
221220
- It returns an `IdResponse` which we can intuitively infer returns the new Booking **Id** for successfully created Bookings
222221

223-
<a href="https://vue-vite-api.jamstacks.net/ui/CreateBooking?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
222+
<a href="https://blazor-vue.web-templates.io/ui/CreateBooking?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
224223
<img src="/img/pages/apiexplorer/api-details-CreateBooking.png">
225224
</a>
226225

@@ -276,7 +275,7 @@ It includes the necessary steps to call your APIs from client Apps, following th
276275

277276
At which point without any code-gen or build tools, they'll end up with an Typed API configured to your APIs endpoint. E.g. this is what it looks like to **Python** developers:
278277

279-
<a href="https://vue-vite-api.jamstacks.net/ui/QueryBookings?tab=code&lang=python" class="block my-8 p-4 rounded shadow hover:shadow-lg">
278+
<a href="https://blazor-vue.web-templates.io/ui/QueryBookings?tab=code&lang=python" class="block my-8 p-4 rounded shadow hover:shadow-lg">
280279
<img src="/img/pages/apiexplorer/api-code-QueryBookings-python.png">
281280
</a>
282281

@@ -300,7 +299,7 @@ To become the preferred solution to document APIs, API Explorer was designed fro
300299
### API Annotations
301300

302301
Whilst the capability of adding rich API Docs is essential when needed, we expect plain C# attributes will often be used to document APIs where `[Description]` can be used to provide a short summary on a **Type** and its **Properties** whilst richer HTML markup can be added to any Type using `[Notes]`
303-
as done in [Bookings.cs](https://github.com/LegacyTemplates/blazor-wasm/blob/main/MyApp.ServiceModel/Bookings.cs):
302+
as done in [Bookings.cs](https://github.com/NetCoreTemplates/blazor-vue/blob/main/MyApp.ServiceModel/Bookings.cs):
304303

305304
```csharp
306305
[Tag("bookings"), Description("Find Bookings")]
@@ -325,7 +324,7 @@ public class Booking : AuditBase
325324

326325
Where it generates clean API docs displayed in a human-friendly table layout containing properties of its **Request DTO** Type and inherited **base class** properties, starting with the APIs Request DTO followed by all its referenced dependent types - resulting in the details page containing a complete snapshot of all types used in the API:
327326

328-
<a href="https://vue-vite-api.jamstacks.net/ui/QueryBookings?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
327+
<a href="https://blazor-vue.web-templates.io/ui/QueryBookings?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
329328
<img src="/img/pages/apiexplorer/api-details-QueryBookings.png">
330329
</a>
331330

@@ -403,7 +402,7 @@ The `*.html` file names aren't important, to create an API doc component it just
403402

404403
### Dynamic Components
405404

406-
[QueryTodos](https://vue-vite-api.jamstacks.net/ui/QueryTodos?tab=details) is a more advanced example that generates a dynamic UI shared by all TODO APIs:
405+
[QueryTodos](https://blazor-vue.web-templates.io/ui/QueryTodos?tab=details) is a more advanced example that generates a dynamic UI shared by all TODO APIs:
407406

408407
```html
409408
<script>
@@ -450,7 +449,7 @@ The `*.html` file names aren't important, to create an API doc component it just
450449

451450
To generate its reactive **Mini Navigation UI** users can use to cycle through **all TODO API docs** with a `v-href="{ op }"` custom directive:
452451

453-
<a href="https://vue-vite-api.jamstacks.net/ui/QueryTodos?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
452+
<a href="https://blazor-vue.web-templates.io/ui/QueryTodos?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
454453
<img src="/img/pages/apiexplorer/api-details-docs-Todos.png">
455454
</a>
456455

@@ -496,13 +495,13 @@ ServiceStack's own built-in APIs uses custom API Doc components itself to docume
496495

497496
Generates docs for the built-in **Register** API that includes **C#** Syntax highlighting:
498497

499-
<a href="https://vue-vite-api.jamstacks.net/ui/Register?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
498+
<a href="https://blazor-vue.web-templates.io/ui/Register?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
500499
<img src="/img/pages/apiexplorer/api-details-docs-Register.png">
501500
</a>
502501

503502
Whilst [/ui/docs/AuthenticateDocs.html](https://github.com/ServiceStack/ServiceStack/blob/v6.6/ServiceStack/src/ServiceStack/modules/ui/docs/AuthenticateDocs.html) demonstrates a more advanced example in generating a responsive dynamic tab layout containing multiple relevant ServiceStack Auth YouTube videos:
504503

505-
<a href="https://vue-vite-api.jamstacks.net/ui/Authenticate?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
504+
<a href="https://blazor-vue.web-templates.io/ui/Authenticate?tab=details" class="block my-8 p-4 rounded shadow hover:shadow-lg">
506505
<img src="/img/pages/apiexplorer/api-details-docs-Authenticate.png">
507506
</a>
508507

@@ -524,7 +523,7 @@ You're also able to completely replace **any of API Explorers built-in component
524523
[/modules/shared/Brand.html](https://github.com/LegacyTemplates/blazor-wasm/blob/main/MyApp/wwwroot/modules/shared/Brand.html) which overrides the top-right branding navigation for all API Explorer and Admin UIs:
525524

526525
<div class="flex justify-center py-8">
527-
<a href="https://vue-vite-api.jamstacks.net/ui/">
526+
<a href="https://blazor-vue.web-templates.io/ui/">
528527
<img src="/img/pages/apiexplorer/brand-blazor-wasm.png" style="max-width:850px;border:1px solid rgb(229 231 235);">
529528
</a>
530529
</div>
@@ -539,7 +538,7 @@ ConfigurePlugin<UiFeature>(feature => {
539538
```
540539

541540
<div class="flex justify-center py-8">
542-
<a href="https://vue-vite-api.jamstacks.net/ui/Register">
541+
<a href="https://blazor-vue.web-templates.io/ui/Register">
543542
<img src="/img/pages/apiexplorer/brand-vue-ssg.png" style="max-width:850px;border:1px solid rgb(229 231 235);">
544543
</a>
545544
</div>
@@ -659,7 +658,7 @@ appHost.ConfigureOperation<Register>(op => op.FormLayout = new()
659658
Which overrides the default Auto UI Form to use this custom layout:
660659

661660
<div class="flex justify-center py-8">
662-
<a href="https://vue-vite-api.jamstacks.net/ui/Register">
661+
<a href="https://blazor-vue.web-templates.io/ui/Register">
663662
<img src="/img/pages/apiexplorer/api-form-Register.png" style="max-width:850px;">
664663
</a>
665664
</div>

0 commit comments

Comments
 (0)