Skip to content

Commit be47469

Browse files
committed
Deprecate svelte-spa
1 parent 8fdb4e4 commit be47469

File tree

6 files changed

+6
-21
lines changed

6 files changed

+6
-21
lines changed

MyApp/_pages/create-your-first-webservice.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ Compare and contrast with other major SPA JavaScript Frameworks:
248248
- [Next.js with swrClient](https://github.com/NetCoreTemplates/nextjs/blob/main/ui/components/intro.tsx)
249249
- [React HelloApi.tsx](https://github.com/NetCoreTemplates/react-spa/blob/master/MyApp/src/components/Home/HelloApi.tsx)
250250
- [Angular HelloApi.ts](https://github.com/NetCoreTemplates/angular-spa/blob/master/MyApp/src/app/home/HelloApi.ts)
251-
- [Svelte Home.svelte](https://github.com/NetCoreTemplates/svelte-spa/blob/master/MyApp/src/components/Home.svelte)
252251

253252
### Web, Mobile and Desktop Apps
254253

MyApp/_pages/dotnet-new.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,6 @@ x new react-spa ProjectName
128128
x new react-spa-netfx ProjectName
129129
:::
130130

131-
### svelte-spa
132-
133-
Svelte SPA App with Bootstrap
134-
135-
[![](/img/pages/auth/signin/svelte-spa.png)](https://github.com/NetCoreTemplates/svelte-spa)
136-
137-
.NET 10+
138-
:::sh
139-
x new svelte-spa ProjectName
140-
:::
141-
142131
### angular-spa
143132

144133
Angular 12 CLI Bootstrap App

MyApp/_pages/templates/svelte.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ slug: templates-svelte
33
title: Svelte Project Templates
44
---
55

6+
::: warning DEPRECATED
7+
The Svelte .NET Core SPA template is no longer being actively maintained
8+
:::
9+
610
<div class="not-prose my-8 ml-20 flex justify-center"><svg style="max-width:200px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
711
viewBox="0 0 98.1 118" xml:space="preserve">
812
<path fill="#FF3E00" d="M91.8,15.6C80.9-0.1,59.2-4.7,43.6,5.2L16.1,22.8C8.6,27.5,3.4,35.2,1.9,43.9c-1.3,7.3-0.2,14.8,3.3,21.3
@@ -30,16 +34,12 @@ Instead of using techniques like virtual DOM diffing, Svelte writes code that su
3034

3135
![](https://raw.githubusercontent.com/ServiceStack/Assets/master/csharp-templates/svelte-spa.png)
3236

33-
> Browse [source code](https://github.com/NetCoreTemplates/svelte-spa) and install with [dotnet-new](/dotnet-new):
37+
> Browse [source code](https://github.com/LegacyTemplates/svelte-spa) and install with [dotnet-new](/dotnet-new):
3438
3539
```bash
3640
$ dotnet tool install -g x
3741
```
3842

39-
```bash
40-
$ x new svelte-spa ProjectName
41-
```
42-
4343
## Development workflow
4444

4545
[![](https://raw.githubusercontent.com/ServiceStack/Assets/master/img/screencasts/svelte-spa-youtube.png)](https://youtu.be/cKlFABFECnQ)

MyApp/wwwroot/pages/auth/authentication-and-authorization.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Templates, { Index } from "../templates/Templates.mjs"
22

33
const ServicestackAuthTemplates = {
44
components: { Templates },
5-
template:`<Templates :templates="[Index['vue-mjs'], Index['nextjs'], Index['vue-vite'], Index['vue-ssg'], Index['razor-pages'], Index['mvcauth'], Index['script'], Index['vue-spa'], Index['react-spa'], Index['angular-spa'], Index['svelte-spa']]" hide="demo" />`,
5+
template:`<Templates :templates="[Index['vue-mjs'], Index['nextjs'], Index['vue-vite'], Index['vue-ssg'], Index['razor-pages'], Index['mvcauth'], Index['script'], Index['vue-spa'], Index['react-spa'], Index['angular-spa']]" hide="demo" />`,
66
setup() {
77
return { Index }
88
}

MyApp/wwwroot/pages/components/Templates.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const Index = [
2525
template('react-static', 'React Static', 'React',['tailwind','autoquery']),
2626
template('react-spa', 'React SPA', 'React',['tailwind','autoquery']),
2727
template('angular-spa', 'Angular SPA', 'Angular',['tailwind']),
28-
template('svelte-spa', 'Svelte SPA', 'Angular',['bootstrap']),
2928
template('kmp-desktop', 'Compose Desktop', 'Compose',['kotlin','desktop']),
3029
].reduce((acc, template) => { acc[template.repo] = template; return acc}, {})
3130

MyApp/wwwroot/pages/templates/Templates.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export function template(repo, name, icon, tags, demo) {
88
export const Index = [
99
template('blazor', 'Blazor', 'Blazor', ['tailwind']),
1010
template('blazor-vue', 'Blazor Vue', 'Blazor',['tailwind']),
11-
template('blazor-wasm', 'Blazor WASM', 'Blazor',['tailwind']),
1211
template('mvc', 'MVC', 'Windows',['tailwind']),
1312
template('razor', 'Razor Pages', 'Razor',['tailwind']),
1413
template('mvc-bootstrap', 'MVC', 'Windows',['bootstrap']),
@@ -23,7 +22,6 @@ export const Index = [
2322
template('vue-spa', 'Vue SPA', 'Vue',['bootstrap']),
2423
template('react-spa', 'React SPA', 'React',['bootstrap']),
2524
template('angular-spa', 'Angular SPA', 'Angular',['bootstrap']),
26-
template('svelte-spa', 'Svelte SPA', 'Angular',['bootstrap']),
2725
template('kmp-desktop', 'Compose Desktop', 'Compose',['kotlin','desktop']),
2826
].reduce((acc, template) => { acc[template.repo] = template; return acc}, {})
2927

0 commit comments

Comments
 (0)