Skip to content

Commit 75b8fcd

Browse files
committed
feat: add path support
1 parent 9de79eb commit 75b8fcd

File tree

14 files changed

+1872
-1535
lines changed

14 files changed

+1872
-1535
lines changed

assets/css/main.css

Lines changed: 12 additions & 240 deletions
Original file line numberDiff line numberDiff line change
@@ -1,262 +1,34 @@
1-
/* @import '@unocss/reset/tailwind.css'; */
2-
31
:root {
4-
font-family: 'Inter var', sans-serif;
2+
font-family: "Inter var", sans-serif;
53
}
64
@supports (font-variation-settings: normal) {
75
:root {
8-
font-family: 'Inter var', sans-serif;
6+
font-family: "Inter var", sans-serif;
97
}
108
}
119
@font-face {
12-
font-family: 'CalSans';
13-
src:
14-
url(/fonts/CalSans-SemiBold.woff2) format('woff2'),
15-
url(/fonts/CalSans-SemiBold.woff) format('woff'),
16-
url(/fonts/CalSans-SemiBold.ttf) format('truetype');
10+
font-family: "CalSans";
11+
src: url(/fonts/CalSans-SemiBold.woff2) format("woff2"),
12+
url(/fonts/CalSans-SemiBold.woff) format("woff"),
13+
url(/fonts/CalSans-SemiBold.ttf) format("truetype");
1714
}
1815
@font-face {
19-
font-family: 'Inter var';
16+
font-family: "Inter var";
2017
font-style: normal;
2118
font-weight: 100 900;
2219
font-display: swap;
23-
src: url('/fonts/Inter-roman.var.woff2?v=3.19') format('woff2');
24-
font-named-instance: 'Regular';
20+
src: url("/fonts/Inter-roman.var.woff2?v=3.19") format("woff2");
21+
font-named-instance: "Regular";
2522
}
2623

2724
@font-face {
28-
font-family: 'Inter var';
25+
font-family: "Inter var";
2926
font-style: italic;
3027
font-weight: 100 900;
3128
font-display: swap;
32-
src: url('/fonts/Inter-italic.var.woff2?v=3.19') format('woff2');
33-
font-named-instance: 'Italic';
29+
src: url("/fonts/Inter-italic.var.woff2?v=3.19") format("woff2");
30+
font-named-instance: "Italic";
3431
}
3532
[data-radix-popper-content-wrapper] {
3633
z-index: 10000;
3734
}
38-
39-
/* CSS Reset Override */
40-
/* *,
41-
::before,
42-
::after {
43-
box-sizing: border-box;
44-
border-width: 0;
45-
border-style: solid;
46-
border-color: currentColor;
47-
}
48-
html {
49-
line-height: 1.5;
50-
-webkit-text-size-adjust: 100%;
51-
-moz-tab-size: 4;
52-
tab-size: 4;
53-
font-family:
54-
ui-sans-serif,
55-
system-ui,
56-
-apple-system,
57-
BlinkMacSystemFont,
58-
'Segoe UI',
59-
Roboto,
60-
'Helvetica Neue',
61-
Arial,
62-
'Noto Sans',
63-
sans-serif,
64-
'Apple Color Emoji',
65-
'Segoe UI Emoji',
66-
'Segoe UI Symbol',
67-
'Noto Color Emoji';
68-
scrollbar-gutter: stable;
69-
}
70-
body {
71-
margin: 0;
72-
line-height: inherit;
73-
}
74-
hr {
75-
height: 0;
76-
color: inherit;
77-
border-top-width: 1px;
78-
}
79-
abbr:where([title]) {
80-
text-decoration: underline dotted;
81-
}
82-
h1,
83-
h2,
84-
h3,
85-
h4,
86-
h5,
87-
h6 {
88-
font-size: inherit;
89-
font-weight: inherit;
90-
}
91-
a {
92-
color: inherit;
93-
text-decoration: inherit;
94-
}
95-
b,
96-
strong {
97-
font-weight: bolder;
98-
}
99-
code,
100-
kbd,
101-
samp,
102-
pre {
103-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
104-
'Liberation Mono', 'Courier New', monospace;
105-
font-size: 1em;
106-
}
107-
small {
108-
font-size: 80%;
109-
}
110-
sub,
111-
sup {
112-
font-size: 75%;
113-
line-height: 0;
114-
position: relative;
115-
vertical-align: baseline;
116-
}
117-
sub {
118-
bottom: -0.25em;
119-
}
120-
sup {
121-
top: -0.5em;
122-
}
123-
table {
124-
text-indent: 0;
125-
border-color: inherit;
126-
border-collapse: collapse;
127-
}
128-
button,
129-
input,
130-
optgroup,
131-
select,
132-
textarea {
133-
font-family: inherit;
134-
font-size: 100%;
135-
line-height: inherit;
136-
color: inherit;
137-
margin: 0;
138-
padding: 0;
139-
}
140-
button,
141-
select {
142-
text-transform: none;
143-
}
144-
button,
145-
[type='button'],
146-
[type='reset'],
147-
[type='submit'] {
148-
-webkit-appearance: button;
149-
background-color: transparent;
150-
background-image: none;
151-
}
152-
:-moz-focusring {
153-
outline: auto;
154-
}
155-
:-moz-ui-invalid {
156-
box-shadow: none;
157-
}
158-
progress {
159-
vertical-align: baseline;
160-
}
161-
::-webkit-inner-spin-button,
162-
::-webkit-outer-spin-button {
163-
height: auto;
164-
}
165-
[type='search'] {
166-
-webkit-appearance: textfield;
167-
outline-offset: -2px;
168-
}
169-
::-webkit-search-decoration {
170-
-webkit-appearance: none;
171-
}
172-
::-webkit-file-upload-button {
173-
-webkit-appearance: button;
174-
font: inherit;
175-
}
176-
summary {
177-
display: list-item;
178-
}
179-
blockquote,
180-
dl,
181-
dd,
182-
h1,
183-
h2,
184-
h3,
185-
h4,
186-
h5,
187-
h6,
188-
hr,
189-
figure,
190-
p,
191-
pre {
192-
margin: 0;
193-
}
194-
fieldset {
195-
margin: 0;
196-
padding: 0;
197-
}
198-
legend {
199-
padding: 0;
200-
}
201-
ol,
202-
ul,
203-
menu {
204-
list-style: none;
205-
margin: 0;
206-
padding: 0;
207-
}
208-
textarea {
209-
resize: vertical;
210-
}
211-
input::placeholder,
212-
textarea::placeholder {
213-
opacity: 1;
214-
color: #9ca3af;
215-
}
216-
button,
217-
[role='button'] {
218-
cursor: pointer;
219-
}
220-
:disabled {
221-
cursor: default;
222-
}
223-
img,
224-
svg,
225-
video,
226-
canvas,
227-
audio,
228-
iframe,
229-
embed,
230-
object {
231-
display: block;
232-
vertical-align: middle;
233-
}
234-
img,
235-
video {
236-
max-width: 100%;
237-
height: auto;
238-
}
239-
[hidden] {
240-
display: none;
241-
}
242-
/* Anthony's addition */
243-
/* .dark {
244-
color-scheme: dark;
245-
}
246-
.dark ::-moz-selection {
247-
background: #444;
248-
}
249-
.dark ::selection {
250-
background: #444;
251-
}
252-
div {
253-
display: flex;
254-
flex-direction: column;
255-
}
256-
div[row=''] {
257-
display: flex;
258-
flex-direction: row;
259-
}
260-
div[block=''] {
261-
display: block;
262-
} */

echo.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import http from "http";
2+
const server = http.createServer();
3+
4+
server
5+
.on("request", (request, response) => {
6+
let body: any[] = [];
7+
request
8+
.on("data", (chunk) => {
9+
body.push(chunk);
10+
})
11+
.on("end", () => {
12+
const wholeBody = Buffer.concat(body).toString();
13+
console.log(`[${new Date().toLocaleString()}]`);
14+
console.log(`==== ${request.method} ${request.url}`);
15+
console.log("> Headers");
16+
console.log(request.headers);
17+
console.log("> Body");
18+
console.log(wholeBody);
19+
response.end();
20+
});
21+
})
22+
.listen(3001)
23+
.once("listening", () => {
24+
console.log("Test server is listening on port 3001");
25+
});

nuxt.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ export default defineNuxtConfig({
2121
},
2222

2323
shiki: {
24-
theme: "tokyo-night",
25-
lang: "json",
26-
themes: ["tokyo-night"],
27-
langs: [],
24+
bundledThemes: ["tokyo-night"],
25+
defaultLang: "json",
26+
defaultTheme: "tokyo-night",
2827
},
2928

3029
css: ["@/assets/css/main.css"],

package.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
{
2-
"name": "UnWebhook",
2+
"name": "un-webhook",
33
"private": true,
44
"type": "module",
55
"scripts": {
66
"build": "nuxt build",
77
"dev": "nuxt dev",
8+
"echo": "tsx echo.ts",
89
"generate": "nuxt generate",
910
"preview": "nuxt preview",
1011
"postinstall": "nuxt prepare",
1112
"db:push": "drizzle-kit push:pg --config=./server/db/drizzle.config.ts",
1213
"db:studio": "drizzle-kit studio --config=./server/db/drizzle.config.ts"
1314
},
1415
"dependencies": {
15-
"@iconify-json/simple-icons": "^1.1.93",
16-
"@lucia-auth/adapter-drizzle": "^1.0.2",
17-
"@nuxt/ui": "^2.14.1",
16+
"@iconify-json/simple-icons": "^1.1.97",
17+
"@lucia-auth/adapter-drizzle": "^1.0.7",
18+
"@nuxt/ui": "^2.14.2",
1819
"@simplewebauthn/browser": "^9.0.1",
19-
"@trpc/client": "^10.45.1",
20-
"@trpc/server": "^10.45.1",
20+
"@trpc/client": "^10.45.2",
21+
"@trpc/server": "^10.45.2",
2122
"arctic": "^1.2.1",
22-
"drizzle-orm": "^0.29.4",
23-
"lucia": "^3.0.1",
24-
"nuxt": "^3.10.3",
23+
"drizzle-orm": "^0.30.4",
24+
"lucia": "^3.1.1",
25+
"nuxt": "^3.11.1",
2526
"oslo": "^1.1.3",
26-
"postgres": "^3.4.3",
27+
"postgres": "^3.4.4",
2728
"superjson": "^2.2.1",
28-
"trpc-nuxt": "^0.10.19",
29-
"vue": "^3.4.20",
29+
"trpc-nuxt": "^0.10.21",
30+
"vue": "^3.4.21",
3031
"vue-router": "^4.3.0",
3132
"zod": "^3.22.4"
3233
},
3334
"devDependencies": {
3435
"@iconify-json/ph": "^1.1.11",
35-
"@vueuse/core": "^10.8.0",
36-
"@vueuse/nuxt": "^10.8.0",
36+
"@vueuse/core": "^10.9.0",
37+
"@vueuse/nuxt": "^10.9.0",
3738
"dotenv": "^16.4.5",
3839
"drizzle-kit": "^0.20.14",
39-
"nuxt-security": "^1.2.0",
40-
"nuxt-shiki": "^0.1.2",
40+
"nuxt-security": "^1.2.2",
41+
"nuxt-shiki": "^0.2.1",
4142
"pg": "^8.11.3",
42-
"vue-tsc": "^1.8.27"
43+
"tsx": "^4.7.1",
44+
"vue-tsc": "^2.0.7"
4345
}
44-
}
46+
}

0 commit comments

Comments
 (0)