Skip to content

Commit

Permalink
chore: reorder frameworks and add angular comparison in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
matschik committed Oct 27, 2024
1 parent 134358d commit 717631b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
48 changes: 24 additions & 24 deletions frameworks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ function sortAllFilenames(files, filenamesSorted) {

const frameworks = [
{
id: "svelte4",
title: "Svelte 4",
id: "svelte5",
title: "Svelte 5",
frameworkName: "Svelte",
isCurrentVersion: true,
isCurrentVersion: false,
img: "framework/svelte.svg",
eslint: {
files: ["**/svelte4/*.svelte"],
files: ["**/TODO-THIS-IS-DISABLED-svelte5/*.svelte"],
parser: "svelte-eslint-parser",
},
playgroundURL: "https://svelte.dev/repl",
documentationURL: "https://svelte.dev/",
playgroundURL: "https://svelte-5-preview.vercel.app/",
documentationURL: "https://svelte-5-preview.vercel.app/docs",
filesSorter(files) {
return sortAllFilenames(files, ["index.html", "app.js", "App.svelte"]);
},
Expand Down Expand Up @@ -80,14 +80,14 @@ const frameworks = [
mainPackageName: "vue",
},
{
id: "angular",
title: "Angular",
id: "angularRenaissance",
title: "Angular Renaissance",
frameworkName: "Angular",
isCurrentVersion: false,
img: "framework/angular.svg",
isCurrentVersion: true,
img: "framework/angular-renaissance.svg",
eslint: [
{
files: ["**/angular/**"],
files: ["**/angular-renaissance/**"],
parserOptions: {
project: ["tsconfig.app.json"],
createDefaultProgram: true,
Expand All @@ -113,7 +113,7 @@ const frameworks = [
},
},
{
files: ["**/angular/*.html"],
files: ["**/angular-renaissance/*.html"],
extends: ["plugin:@angular-eslint/template/recommended"],
rules: {
/**
Expand All @@ -137,14 +137,14 @@ const frameworks = [
mainPackageName: "@angular/core",
},
{
id: "angularRenaissance",
title: "Angular Renaissance",
id: "angular",
title: "Angular",
frameworkName: "Angular",
isCurrentVersion: true,
img: "framework/angular-renaissance.svg",
isCurrentVersion: false,
img: "framework/angular.svg",
eslint: [
{
files: ["**/angular-renaissance/**"],
files: ["**/angular/**"],
parserOptions: {
project: ["tsconfig.app.json"],
createDefaultProgram: true,
Expand All @@ -170,7 +170,7 @@ const frameworks = [
},
},
{
files: ["**/angular-renaissance/*.html"],
files: ["**/angular/*.html"],
extends: ["plugin:@angular-eslint/template/recommended"],
rules: {
/**
Expand Down Expand Up @@ -293,17 +293,17 @@ const frameworks = [
mainPackageName: "alpinejs",
},
{
id: "svelte5",
title: "Svelte 5",
id: "svelte4",
title: "Svelte 4",
frameworkName: "Svelte",
isCurrentVersion: false,
isCurrentVersion: true,
img: "framework/svelte.svg",
eslint: {
files: ["**/TODO-THIS-IS-DISABLED-svelte5/*.svelte"],
files: ["**/svelte4/*.svelte"],
parser: "svelte-eslint-parser",
},
playgroundURL: "https://svelte-5-preview.vercel.app/",
documentationURL: "https://svelte-5-preview.vercel.app/docs",
playgroundURL: "https://svelte.dev/repl",
documentationURL: "https://svelte.dev/",
filesSorter(files) {
return sortAllFilenames(files, ["index.html", "app.js", "App.svelte"]);
},
Expand Down
2 changes: 1 addition & 1 deletion src/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
);
});
const MAX_FRAMEWORK_NB_INITIAL_DISPLAYED = 10;
const MAX_FRAMEWORK_NB_INITIAL_DISPLAYED = 9;
const FRAMEWORKS_INITIAL_DISPLAYED = FRAMEWORKS.slice(
0,
Expand Down
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ const footerNavigation = [
{
title: "Comparing Current Version & Upcoming Version",
links: [
{
name: "Angular vs Angular Renaissance",
url: "/compare/angular-vs-angularRenaissance",
},
{ name: "Svelte 4 vs Svelte 5", url: "/compare/svelte4-vs-svelte5" },
{
name: "Ember Octane vs Ember Polaris",
Expand Down

0 comments on commit 717631b

Please sign in to comment.