diff --git a/README.md b/README.md index d559b16..373e13a 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ Feel free to make a pull request. Copy on of the template already available, twe ## Contributing -This project is managed with [pnpm](https://pnpm.io). You should [install it](https://pnpm.io/installation) first to test out your template or contribute to an existing one. +This project is managed with [pnpm](https://pnpm.io). You should [install it](https://pnpm.io/installation) first to test out your template or contribute to an existing one. You can create your own template and prefix it with `ts-` or `js-` and giving it a name that describe the purpose. diff --git a/js/README.md b/js/README.md index 377400a..434f7bb 100644 --- a/js/README.md +++ b/js/README.md @@ -7,6 +7,7 @@ This is the reason you see a `pnpm-lock.yaml`. That being said, any package mana ```bash $ npm install # or pnpm install or yarn install ``` + ### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs) ## Available Scripts diff --git a/js/src/App.jsx b/js/src/App.jsx index f1997a9..ead3703 100644 --- a/js/src/App.jsx +++ b/js/src/App.jsx @@ -1,5 +1,5 @@ -import logo from "./logo.svg"; -import styles from "./App.module.css"; +import logo from './logo.svg'; +import styles from './App.module.css'; function App() { return ( diff --git a/js/src/index.css b/js/src/index.css index 4a1df4d..ec2585e 100644 --- a/js/src/index.css +++ b/js/src/index.css @@ -1,13 +1,13 @@ body { margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } diff --git a/js/src/index.jsx b/js/src/index.jsx index 220ed09..645dbaf 100644 --- a/js/src/index.jsx +++ b/js/src/index.jsx @@ -1,6 +1,6 @@ -import { render } from "solid-js/web"; +import { render } from 'solid-js/web'; -import "./index.css"; -import App from "./App"; +import './index.css'; +import App from './App'; -render(App, document.getElementById("root")); +render(App, document.getElementById('root')); diff --git a/js/vite.config.js b/js/vite.config.js index 31ca950..d52d794 100644 --- a/js/vite.config.js +++ b/js/vite.config.js @@ -1,10 +1,10 @@ -import { defineConfig } from "vite"; -import solidPlugin from "vite-plugin-solid"; +import { defineConfig } from 'vite'; +import solidPlugin from 'vite-plugin-solid'; export default defineConfig({ plugins: [solidPlugin()], build: { - target: "esnext", + target: 'esnext', polyfillDynamicImport: false, }, }); diff --git a/ts-bootstrap/README.md b/ts-bootstrap/README.md index 377400a..434f7bb 100644 --- a/ts-bootstrap/README.md +++ b/ts-bootstrap/README.md @@ -7,6 +7,7 @@ This is the reason you see a `pnpm-lock.yaml`. That being said, any package mana ```bash $ npm install # or pnpm install or yarn install ``` + ### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs) ## Available Scripts diff --git a/ts-bootstrap/src/App.tsx b/ts-bootstrap/src/App.tsx index c706fa1..9d2b356 100644 --- a/ts-bootstrap/src/App.tsx +++ b/ts-bootstrap/src/App.tsx @@ -1,6 +1,6 @@ -import { onCleanup, onMount } from "solid-js"; -import type { Component } from "solid-js"; -import * as bootstrap from "bootstrap"; +import { onCleanup, onMount } from 'solid-js'; +import type { Component } from 'solid-js'; +import * as bootstrap from 'bootstrap'; const App: Component = () => { /** @@ -10,18 +10,18 @@ const App: Component = () => { function setActiveItem() { let hash = window.location.hash; - if (hash === "") { + if (hash === '') { return; } let link = document.querySelector('.bd-aside a[href="' + hash + '"]'); - let active = document.querySelector(".bd-aside .active"); + let active = document.querySelector('.bd-aside .active'); // @ts-ignore let parent = link.parentNode.parentNode.previousElementSibling; - link.classList.add("active"); + link.classList.add('active'); - if (parent.classList.contains("collapsed")) { + if (parent.classList.contains('collapsed')) { parent.click(); } @@ -32,7 +32,7 @@ const App: Component = () => { // @ts-ignore let expanded = active.parentNode.parentNode.previousElementSibling; - active.classList.remove("active"); + active.classList.remove('active'); if (expanded && parent !== expanded) { expanded.click(); @@ -41,11 +41,11 @@ const App: Component = () => { onMount(() => { setActiveItem(); - window.addEventListener("hashchange", setActiveItem); + window.addEventListener('hashchange', setActiveItem); }); onCleanup(() => { - window.removeEventListener("hashchange", setActiveItem); + window.removeEventListener('hashchange', setActiveItem); }); return ( @@ -427,7 +427,7 @@ const App: Component = () => {
@@ -1303,14 +1303,14 @@ const App: Component = () => {A well-known quote, contained in a blockquote element.
.accordion-body, though the transition does
limit overflow.
.accordion-body, though the transition does
limit overflow.
.accordion-body, though the transition does
limit overflow.
- Example heading{" "} + Example heading{' '} New
- Example heading{" "} + Example heading{' '} New
- Example heading{" "} + Example heading{' '} New
diff --git a/ts-bootstrap/src/cheatsheet.scss b/ts-bootstrap/src/cheatsheet.scss
index 6783a6f..fe5be97 100644
--- a/ts-bootstrap/src/cheatsheet.scss
+++ b/ts-bootstrap/src/cheatsheet.scss
@@ -30,7 +30,7 @@
width: 1em;
height: 1em;
margin-right: 0.25rem;
- content: "";
+ content: '';
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%25230d6efd' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2h1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1H2a2 2 0 0 1 2-2z'/%3E%3Cpath d='M2 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H2z'/%3E%3Cpath fill-rule='evenodd' d='M8.646 5.646a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L10.293 8 8.646 6.354a.5.5 0 0 1 0-.708zm-1.292 0a.5.5 0 0 0-.708 0l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708L5.707 8l1.647-1.646a.5.5 0 0 0 0-.708z'/%3E%3C/svg%3E");
background-size: 1em;
}
@@ -89,7 +89,7 @@
transform-origin: 0.5em 50%;
}
-.bd-aside .btn[aria-expanded="true"]::before {
+.bd-aside .btn[aria-expanded='true']::before {
transform: rotate(90deg) /* rtl:ignore */;
}
@@ -101,15 +101,15 @@
overflow: auto;
}
-[id="modal"] .bd-example .btn,
-[id="buttons"] .bd-example .btn,
-[id="tooltips"] .bd-example .btn,
-[id="popovers"] .bd-example .btn,
-[id="dropdowns"] .bd-example .btn-group,
-[id="dropdowns"] .bd-example .dropdown,
-[id="dropdowns"] .bd-example .dropup,
-[id="dropdowns"] .bd-example .dropend,
-[id="dropdowns"] .bd-example .dropstart {
+[id='modal'] .bd-example .btn,
+[id='buttons'] .bd-example .btn,
+[id='tooltips'] .bd-example .btn,
+[id='popovers'] .bd-example .btn,
+[id='dropdowns'] .bd-example .btn-group,
+[id='dropdowns'] .bd-example .dropdown,
+[id='dropdowns'] .bd-example .dropup,
+[id='dropdowns'] .bd-example .dropend,
+[id='dropdowns'] .bd-example .dropstart {
margin: 0 1rem 1rem 0;
}
@@ -171,7 +171,7 @@
left: 0;
/* rtl:end:ignore */
z-index: -1;
- content: "";
+ content: '';
background-image: linear-gradient(
to bottom,
rgba(255, 255, 255, 1) calc(100% - 3rem),
diff --git a/ts-bootstrap/src/index.tsx b/ts-bootstrap/src/index.tsx
index 9c3d3c1..62c563a 100644
--- a/ts-bootstrap/src/index.tsx
+++ b/ts-bootstrap/src/index.tsx
@@ -1,13 +1,13 @@
-import "bootstrap/scss/bootstrap.scss";
+import 'bootstrap/scss/bootstrap.scss';
-import { render } from "solid-js/web";
+import { render } from 'solid-js/web';
/**
* This file was taken from the cheatsheet example of bootstrap.
* You will most likely remove it if using this template.
*/
-import "./cheatsheet.scss";
+import './cheatsheet.scss';
-import App from "./App";
+import App from './App';
-render(() =>
A page all about this website.
- +
{JSON.stringify(data, null, 2)}
diff --git a/ts-router/src/pages/home.tsx b/ts-router/src/pages/home.tsx
index 08871ba..da0c031 100644
--- a/ts-router/src/pages/home.tsx
+++ b/ts-router/src/pages/home.tsx
@@ -1,4 +1,4 @@
-import { createSignal } from "solid-js";
+import { createSignal } from 'solid-js';
export default function Home() {
const [count, setCount] = createSignal(0);
diff --git a/ts-router/src/routes.ts b/ts-router/src/routes.ts
index c4ae310..a9a494a 100644
--- a/ts-router/src/routes.ts
+++ b/ts-router/src/routes.ts
@@ -1,21 +1,21 @@
-import { lazy } from "solid-js";
-import type { RouteDefinition } from "solid-app-router";
+import { lazy } from 'solid-js';
+import type { RouteDefinition } from 'solid-app-router';
-import Home from "./pages/home";
-import AboutData from "./pages/about.data";
+import Home from './pages/home';
+import AboutData from './pages/about.data';
export const routes: RouteDefinition[] = [
{
- path: "/",
+ path: '/',
component: Home,
},
{
- path: "/about",
- component: lazy(() => import("./pages/about")),
+ path: '/about',
+ component: lazy(() => import('./pages/about')),
data: AboutData,
},
{
- path: "**",
- component: lazy(() => import("./errors/404")),
+ path: '**',
+ component: lazy(() => import('./errors/404')),
},
];
diff --git a/ts-router/tailwind.config.ts b/ts-router/tailwind.config.ts
index 20d5599..1b4b2cd 100644
--- a/ts-router/tailwind.config.ts
+++ b/ts-router/tailwind.config.ts
@@ -1,4 +1,4 @@
-import { defineConfig } from "vite-plugin-windicss";
+import { defineConfig } from 'vite-plugin-windicss';
export default defineConfig({
darkMode: false,
diff --git a/ts-router/vite.config.ts b/ts-router/vite.config.ts
index 340126a..ea9fb84 100644
--- a/ts-router/vite.config.ts
+++ b/ts-router/vite.config.ts
@@ -1,11 +1,11 @@
-import { defineConfig } from "vite";
-import solidPlugin from "vite-plugin-solid";
-import WindiCSS from "vite-plugin-windicss";
+import { defineConfig } from 'vite';
+import solidPlugin from 'vite-plugin-solid';
+import WindiCSS from 'vite-plugin-windicss';
export default defineConfig({
plugins: [solidPlugin(), WindiCSS()],
build: {
- target: "esnext",
+ target: 'esnext',
polyfillDynamicImport: false,
},
});
diff --git a/ts-tailwindcss/README.md b/ts-tailwindcss/README.md
index 377400a..434f7bb 100644
--- a/ts-tailwindcss/README.md
+++ b/ts-tailwindcss/README.md
@@ -7,6 +7,7 @@ This is the reason you see a `pnpm-lock.yaml`. That being said, any package mana
```bash
$ npm install # or pnpm install or yarn install
```
+
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
## Available Scripts
diff --git a/ts-tailwindcss/postcss.config.js b/ts-tailwindcss/postcss.config.js
index 87233a4..4be1640 100644
--- a/ts-tailwindcss/postcss.config.js
+++ b/ts-tailwindcss/postcss.config.js
@@ -1,5 +1,5 @@
module.exports = {
- purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
+ purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
plugins: {
tailwindcss: {},
autoprefixer: {},
diff --git a/ts-tailwindcss/src/App.tsx b/ts-tailwindcss/src/App.tsx
index 74d62bd..3dc0af3 100644
--- a/ts-tailwindcss/src/App.tsx
+++ b/ts-tailwindcss/src/App.tsx
@@ -1,4 +1,4 @@
-import type { Component } from "solid-js";
+import type { Component } from 'solid-js';
const App: Component = () => {
return (
diff --git a/ts-tailwindcss/src/index.tsx b/ts-tailwindcss/src/index.tsx
index df6d5bc..cae7b94 100644
--- a/ts-tailwindcss/src/index.tsx
+++ b/ts-tailwindcss/src/index.tsx
@@ -1,6 +1,6 @@
-import "./index.css";
-import { render } from "solid-js/web";
+import './index.css';
+import { render } from 'solid-js/web';
-import App from "./App";
+import App from './App';
-render(() => , document.getElementById("root") as HTMLElement);
+render(() => , document.getElementById('root') as HTMLElement);
diff --git a/ts-tailwindcss/vite.config.ts b/ts-tailwindcss/vite.config.ts
index 31ca950..d52d794 100644
--- a/ts-tailwindcss/vite.config.ts
+++ b/ts-tailwindcss/vite.config.ts
@@ -1,10 +1,10 @@
-import { defineConfig } from "vite";
-import solidPlugin from "vite-plugin-solid";
+import { defineConfig } from 'vite';
+import solidPlugin from 'vite-plugin-solid';
export default defineConfig({
plugins: [solidPlugin()],
build: {
- target: "esnext",
+ target: 'esnext',
polyfillDynamicImport: false,
},
});
diff --git a/ts-windicss/README.md b/ts-windicss/README.md
index 377400a..434f7bb 100644
--- a/ts-windicss/README.md
+++ b/ts-windicss/README.md
@@ -7,6 +7,7 @@ This is the reason you see a `pnpm-lock.yaml`. That being said, any package mana
```bash
$ npm install # or pnpm install or yarn install
```
+
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
## Available Scripts
diff --git a/ts-windicss/src/App.tsx b/ts-windicss/src/App.tsx
index 74d62bd..3dc0af3 100644
--- a/ts-windicss/src/App.tsx
+++ b/ts-windicss/src/App.tsx
@@ -1,4 +1,4 @@
-import type { Component } from "solid-js";
+import type { Component } from 'solid-js';
const App: Component = () => {
return (
diff --git a/ts-windicss/src/index.tsx b/ts-windicss/src/index.tsx
index cb938fc..1d8f408 100644
--- a/ts-windicss/src/index.tsx
+++ b/ts-windicss/src/index.tsx
@@ -1,6 +1,6 @@
-import "windi.css";
-import { render } from "solid-js/web";
+import 'windi.css';
+import { render } from 'solid-js/web';
-import App from "./App";
+import App from './App';
-render(() => , document.getElementById("root") as HTMLElement);
+render(() => , document.getElementById('root') as HTMLElement);
diff --git a/ts-windicss/vite.config.ts b/ts-windicss/vite.config.ts
index 8dcf786..e847609 100644
--- a/ts-windicss/vite.config.ts
+++ b/ts-windicss/vite.config.ts
@@ -1,18 +1,18 @@
-import { defineConfig } from "vite";
-import solidPlugin from "vite-plugin-solid";
-import WindiCSS from "vite-plugin-windicss";
+import { defineConfig } from 'vite';
+import solidPlugin from 'vite-plugin-solid';
+import WindiCSS from 'vite-plugin-windicss';
export default defineConfig({
plugins: [
solidPlugin(),
WindiCSS({
scan: {
- fileExtensions: ["html", "js", "ts", "jsx", "tsx"],
+ fileExtensions: ['html', 'js', 'ts', 'jsx', 'tsx'],
},
}),
],
build: {
- target: "esnext",
+ target: 'esnext',
polyfillDynamicImport: false,
},
});
diff --git a/ts/README.md b/ts/README.md
index 377400a..434f7bb 100644
--- a/ts/README.md
+++ b/ts/README.md
@@ -7,6 +7,7 @@ This is the reason you see a `pnpm-lock.yaml`. That being said, any package mana
```bash
$ npm install # or pnpm install or yarn install
```
+
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
## Available Scripts
diff --git a/ts/src/App.tsx b/ts/src/App.tsx
index 7cc90f7..a41d209 100644
--- a/ts/src/App.tsx
+++ b/ts/src/App.tsx
@@ -1,7 +1,7 @@
-import type { Component } from "solid-js";
+import type { Component } from 'solid-js';
-import logo from "./logo.svg";
-import styles from "./App.module.css";
+import logo from './logo.svg';
+import styles from './App.module.css';
const App: Component = () => {
return (
diff --git a/ts/src/index.css b/ts/src/index.css
index 4a1df4d..ec2585e 100644
--- a/ts/src/index.css
+++ b/ts/src/index.css
@@ -1,13 +1,13 @@
body {
margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
- "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
diff --git a/ts/src/index.tsx b/ts/src/index.tsx
index 07dd377..f636fb3 100644
--- a/ts/src/index.tsx
+++ b/ts/src/index.tsx
@@ -1,6 +1,6 @@
-import { render } from "solid-js/web";
+import { render } from 'solid-js/web';
-import "./index.css";
-import App from "./App";
+import './index.css';
+import App from './App';
-render(() => , document.getElementById("root") as HTMLElement);
+render(() => , document.getElementById('root') as HTMLElement);
diff --git a/ts/vite.config.ts b/ts/vite.config.ts
index 31ca950..d52d794 100644
--- a/ts/vite.config.ts
+++ b/ts/vite.config.ts
@@ -1,10 +1,10 @@
-import { defineConfig } from "vite";
-import solidPlugin from "vite-plugin-solid";
+import { defineConfig } from 'vite';
+import solidPlugin from 'vite-plugin-solid';
export default defineConfig({
plugins: [solidPlugin()],
build: {
- target: "esnext",
+ target: 'esnext',
polyfillDynamicImport: false,
},
});