Skip to content

Commit f484c58

Browse files
committed
refactor: move all templates into one dir
1 parent 429128b commit f484c58

22 files changed

+223
-321
lines changed

β€Ž.gitignore

Lines changed: 0 additions & 106 deletions
This file was deleted.

β€Ždist/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "/Users/wibus/Developer/jwcjs/create-jwcjs/src/index";
2+
export { default } from "/Users/wibus/Developer/jwcjs/create-jwcjs/src/index";

β€Ždist/index.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import jiti from "file:///Users/wibus/Developer/jwcjs/create-jwcjs/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/index.js";
2+
3+
/** @type {import("/Users/wibus/Developer/jwcjs/create-jwcjs/src/index")} */
4+
const _module = jiti(null, { interopDefault: true, esmResolve: true })("/Users/wibus/Developer/jwcjs/create-jwcjs/src/index.ts");
5+
6+
export default _module;
File renamed without changes.
File renamed without changes.

β€Žmy-jwc-app/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "my-jwc-app",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"vite": "^4.0.1",
16+
"jwcjs": "*"
17+
}
18+
}
File renamed without changes.
File renamed without changes.

β€Žmy-jwc-app/src/App.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
:host {
2+
max-width: 1280px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
text-align: center;
6+
}
7+
8+
.logo {
9+
height: 6em;
10+
padding: 1.5em;
11+
will-change: filter;
12+
transition: filter 0.25s;
13+
}
14+
.logo:hover {
15+
filter: drop-shadow(0 0 2em #646cffaa);
16+
}
17+
.logo.jwc:hover {
18+
filter: drop-shadow(0 0 2em rgb(0, 0, 0));
19+
}
20+
21+
.card {
22+
padding: 2em;
23+
}
24+
25+
.read-the-docs {
26+
color: #888;
27+
}
28+
29+
@media (prefers-color-scheme: dark) {
30+
.logo.jwc:hover {
31+
filter: drop-shadow(0 0 2em rgb(255, 255, 255));
32+
}
33+
}
34+
35+
button {
36+
border-radius: 8px;
37+
border: 1px solid transparent;
38+
padding: 0.6em 1.2em;
39+
font-size: 1em;
40+
font-weight: 500;
41+
font-family: inherit;
42+
background-color: #1a1a1a;
43+
cursor: pointer;
44+
transition: border-color 0.25s;
45+
}
46+
button:hover {
47+
border-color: #646cff;
48+
}
49+
button:focus,
50+
button:focus-visible {
51+
outline: 4px auto -webkit-focus-ring-color;
52+
}
53+
54+
@media (prefers-color-scheme: light) {
55+
button {
56+
background-color: #f9f9f9;
57+
}
58+
}
File renamed without changes.

β€Žmy-jwc-app/src/index.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
:root {
2+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3+
font-size: 16px;
4+
line-height: 24px;
5+
font-weight: 400;
6+
7+
color-scheme: light dark;
8+
color: rgba(255, 255, 255, 0.87);
9+
background-color: #242424;
10+
11+
font-synthesis: none;
12+
text-rendering: optimizeLegibility;
13+
-webkit-font-smoothing: antialiased;
14+
-moz-osx-font-smoothing: grayscale;
15+
-webkit-text-size-adjust: 100%;
16+
}
17+
18+
a {
19+
font-weight: 500;
20+
color: #646cff;
21+
text-decoration: inherit;
22+
}
23+
a:hover {
24+
color: #535bf2;
25+
}
26+
27+
body {
28+
margin: 0;
29+
display: flex;
30+
place-items: center;
31+
min-width: 320px;
32+
min-height: 100vh;
33+
}
34+
35+
h1 {
36+
font-size: 3.2em;
37+
line-height: 1.1;
38+
}
39+
40+
@media (prefers-color-scheme: light) {
41+
:root {
42+
color: #213547;
43+
background-color: #ffffff;
44+
}
45+
a:hover {
46+
color: #747bff;
47+
}
48+
button {
49+
background-color: #f9f9f9;
50+
}
51+
}
52+
53+
#root {
54+
max-width: 1280px;
55+
margin: 0 auto;
56+
padding: 2rem;
57+
text-align: center;
58+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)