diff --git a/build/template/footer.eta b/build/template/footer.eta
new file mode 100644
index 00000000..2d39928c
--- /dev/null
+++ b/build/template/footer.eta
@@ -0,0 +1,47 @@
+
\ No newline at end of file
diff --git a/frameworks.mjs b/frameworks.mjs
index 6c69b727..6dbd62a1 100644
--- a/frameworks.mjs
+++ b/frameworks.mjs
@@ -8,10 +8,12 @@ function sortAllFilenames(files, filenamesSorted) {
].filter(Boolean);
}
-export default [
+const frameworks = [
{
id: "svelte4",
title: "Svelte 4",
+ frameworkName: "Svelte",
+ isCurrentVersion: true,
img: "framework/svelte.svg",
eslint: {
files: ["**/svelte4/*.svelte"],
@@ -28,6 +30,8 @@ export default [
{
id: "react",
title: "React",
+ frameworkName: "React",
+ isCurrentVersion: true,
img: "framework/react.svg",
eslint: {
files: ["**/react/*.jsx", "**/react/*.tsx"],
@@ -53,6 +57,8 @@ export default [
{
id: "vue3",
title: "Vue 3",
+ frameworkName: "Vue",
+ isCurrentVersion: true,
img: "framework/vue.svg",
eslint: {
files: ["**/vue3/*.vue"],
@@ -76,6 +82,8 @@ export default [
{
id: "angular",
title: "Angular",
+ frameworkName: "Angular",
+ isCurrentVersion: true,
img: "framework/angular.svg",
eslint: [
{
@@ -131,6 +139,8 @@ export default [
{
id: "lit",
title: "Lit",
+ frameworkName: "Lit",
+ isCurrentVersion: true,
img: "framework/lit.svg",
eslint: {
files: ["**/lit/**"],
@@ -149,6 +159,8 @@ export default [
{
id: "vue2",
title: "Vue 2",
+ frameworkName: "Vue",
+ isCurrentVersion: false,
img: "framework/vue.svg",
eslint: {
files: ["**/vue2/*.vue"],
@@ -169,6 +181,8 @@ export default [
{
id: "ember",
title: "Ember",
+ frameworkName: "Ember",
+ isCurrentVersion: true,
img: "framework/ember.svg",
eslint: {
files: ["**/ember/**"],
@@ -186,7 +200,9 @@ export default [
},
{
id: "solid",
- title: "SolidJS",
+ title: "Solid.js",
+ frameworkName: "Solid",
+ isCurrentVersion: true,
img: "framework/solid.svg",
eslint: {
files: ["**/solid/*.jsx"],
@@ -204,6 +220,8 @@ export default [
{
id: "alpine",
title: "Alpine",
+ frameworkName: "Alpine",
+ isCurrentVersion: true,
img: "framework/alpine.svg",
eslint: {
files: ["**/alpine/**"],
@@ -220,6 +238,8 @@ export default [
{
id: "mithril",
title: "Mithril",
+ frameworkName: "Mithril",
+ isCurrentVersion: true,
img: "framework/mithril.svg",
eslint: {
env: {
@@ -241,6 +261,8 @@ export default [
{
id: "aurelia2",
title: "Aurelia 2",
+ frameworkName: "Aurelia",
+ isCurrentVersion: true,
img: "framework/aurelia.svg",
eslint: {
env: {
@@ -269,6 +291,8 @@ export default [
{
id: "qwik",
title: "Qwik",
+ frameworkName: "Qwik",
+ isCurrentVersion: true,
img: "framework/qwik.svg",
eslint: {
env: {
@@ -299,6 +323,8 @@ export default [
{
id: "marko",
title: "Marko",
+ frameworkName: "Marko",
+ isCurrentVersion: true,
img: "framework/marko.svg",
eslint: {
files: ["!**"], // Marko’s linter/prettyprinter doesn’t use eslint
@@ -314,6 +340,8 @@ export default [
{
id: "aurelia1",
title: "Aurelia 1",
+ frameworkName: "Aurelia",
+ isCurrentVersion: false,
img: "framework/aurelia.svg",
eslint: {
env: {
@@ -341,6 +369,8 @@ export default [
{
id: "svelte5",
title: "Svelte 5 (preview)",
+ frameworkName: "Svelte",
+ isCurrentVersion: false,
img: "framework/svelte.svg",
eslint: {
files: ["**/TODO-THIS-IS-DISABLED-svelte5/*.svelte"],
@@ -355,3 +385,12 @@ export default [
mainPackageName: "svelte",
},
];
+
+export function matchFrameworkId(id){
+ return frameworks.find((framework) =>
+ framework.id === id ||
+ (framework.isCurrentVersion &&
+ framework.frameworkName.toLowerCase() === id))
+}
+
+export default frameworks;
\ No newline at end of file
diff --git a/index.html b/index.html
index 6e50796d..bb5eb997 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
- Component Party
+ <%= it.title %>
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
diff --git a/src/Index.svelte b/src/Index.svelte
new file mode 100644
index 00000000..638ebf0f
--- /dev/null
+++ b/src/Index.svelte
@@ -0,0 +1,453 @@
+
+
+
+
+
+
+
+
+
+
+ {#each [...frameworksSelected, ...frameworksNotSelected] as framework (framework.id)}
+
+ {/each}
+ {#if showBonusFrameworks}
+ {#each frameworksMoreNotSelected as framework (framework.id)}
+
+ {/each}
+ {:else if frameworksMoreNotSelected.length > 0}
+
+ {/if}
+
+
+
+
+ {#if frameworkIdsSelected.size === 0}
+
+
+
+
+
+
+ Please select a framework to view framework's snippets
+
+
+
+
+
+ {:else}
+
+ {/if}
+
+
+
+
+
+
diff --git a/src/components/GithubStarButton.svelte b/src/components/GithubStarButton.svelte
index 1f82580a..e07bfec3 100644
--- a/src/components/GithubStarButton.svelte
+++ b/src/components/GithubStarButton.svelte
@@ -66,14 +66,12 @@
aria-label={`Star ${REPOSITORY_PATH} on GitHub`}
on:click={onButtonClick}
>
-
+
- Star
+ Star
{#if isFetchingStarCount || starCount !== 0}
-
+
{#if isFetchingStarCount && starCount === 0}