shokupan 0.7.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -0
- package/dist/analyzer-BqIe1p0R.js +35 -0
- package/dist/analyzer-BqIe1p0R.js.map +1 -0
- package/dist/analyzer-CKLGLFtx.cjs +35 -0
- package/dist/analyzer-CKLGLFtx.cjs.map +1 -0
- package/dist/{analyzer-Ce_7JxZh.js → analyzer.impl-CV6W1Eq7.js} +238 -21
- package/dist/analyzer.impl-CV6W1Eq7.js.map +1 -0
- package/dist/{analyzer-Bei1sVWp.cjs → analyzer.impl-D9Yi1Hax.cjs} +237 -20
- package/dist/analyzer.impl-D9Yi1Hax.cjs.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/context.d.ts +69 -22
- package/dist/{http-server-DFhwlK8e.cjs → http-server-BEMPIs33.cjs} +4 -2
- package/dist/http-server-BEMPIs33.cjs.map +1 -0
- package/dist/{http-server-0xH174zz.js → http-server-CCeagTyU.js} +4 -2
- package/dist/http-server-CCeagTyU.js.map +1 -0
- package/dist/index.cjs +2411 -329
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2390 -308
- package/dist/index.js.map +1 -1
- package/dist/plugins/application/api-explorer/plugin.d.ts +9 -0
- package/dist/plugins/application/api-explorer/static/explorer-client.mjs +880 -0
- package/dist/plugins/application/api-explorer/static/style.css +767 -0
- package/dist/plugins/application/api-explorer/static/theme.css +128 -0
- package/dist/plugins/application/asyncapi/generator.d.ts +3 -0
- package/dist/plugins/application/asyncapi/plugin.d.ts +15 -0
- package/dist/plugins/application/asyncapi/static/asyncapi-client.mjs +748 -0
- package/dist/plugins/application/asyncapi/static/style.css +565 -0
- package/dist/plugins/application/asyncapi/static/theme.css +128 -0
- package/dist/plugins/application/auth.d.ts +3 -1
- package/dist/plugins/application/dashboard/metrics-collector.d.ts +14 -0
- package/dist/plugins/application/dashboard/plugin.d.ts +25 -9
- package/dist/plugins/application/dashboard/static/charts.js +328 -0
- package/dist/plugins/application/dashboard/static/failures.js +85 -0
- package/dist/plugins/application/dashboard/static/graph.mjs +523 -0
- package/dist/plugins/application/dashboard/static/poll.js +146 -0
- package/dist/plugins/application/dashboard/static/reactflow.css +18 -0
- package/dist/plugins/application/dashboard/static/registry.css +78 -0
- package/dist/plugins/application/dashboard/static/registry.js +269 -0
- package/dist/plugins/application/dashboard/static/requests.js +118 -0
- package/dist/plugins/application/dashboard/static/styles.css +184 -0
- package/dist/plugins/application/dashboard/static/tables.js +92 -0
- package/dist/plugins/application/dashboard/static/tabs.js +113 -0
- package/dist/plugins/application/dashboard/static/tabulator.css +118 -0
- package/dist/plugins/application/dashboard/static/theme.css +128 -0
- package/dist/plugins/application/graphql-apollo.d.ts +33 -0
- package/dist/plugins/application/graphql-yoga.d.ts +25 -0
- package/dist/plugins/application/openapi/analyzer.d.ts +12 -119
- package/dist/plugins/application/openapi/analyzer.impl.d.ts +167 -0
- package/dist/plugins/application/scalar.d.ts +9 -2
- package/dist/plugins/application/socket-io.d.ts +14 -0
- package/dist/router.d.ts +92 -51
- package/dist/shokupan.d.ts +34 -8
- package/dist/util/datastore.d.ts +71 -6
- package/dist/util/decorators.d.ts +7 -2
- package/dist/util/http-error.d.ts +38 -0
- package/dist/util/http-status.d.ts +30 -0
- package/dist/util/request.d.ts +1 -1
- package/dist/util/symbol.d.ts +19 -0
- package/dist/util/types.d.ts +126 -4
- package/package.json +38 -15
- package/dist/analyzer-Bei1sVWp.cjs.map +0 -1
- package/dist/analyzer-Ce_7JxZh.js.map +0 -1
- package/dist/http-server-0xH174zz.js.map +0 -1
- package/dist/http-server-DFhwlK8e.cjs.map +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Raw Palette - Dark (Now Default) */
|
|
3
|
+
--palette-dark-primary: #FFB380;
|
|
4
|
+
/* Warm Filament */
|
|
5
|
+
--palette-dark-secondary: #7B5E7B;
|
|
6
|
+
/* Yeast Purple */
|
|
7
|
+
--palette-dark-accent: #D6D3D1;
|
|
8
|
+
/* Flour Dust */
|
|
9
|
+
--palette-dark-bg: #1A1614;
|
|
10
|
+
/* Oven Depth */
|
|
11
|
+
--palette-dark-card: #2A2421;
|
|
12
|
+
|
|
13
|
+
--palette-dark-header: rgb(39, 27, 19);
|
|
14
|
+
/* Proofing Drawer */
|
|
15
|
+
|
|
16
|
+
/* Universal defaults (tokens) */
|
|
17
|
+
--shokupan-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
18
|
+
|
|
19
|
+
/* Theme Variables - Enforced Dark Mode */
|
|
20
|
+
--bg-primary: var(--palette-dark-bg);
|
|
21
|
+
--bg-secondary: var(--palette-dark-card);
|
|
22
|
+
--bg-card: var(--palette-dark-card);
|
|
23
|
+
--bg-header: var(--palette-dark-header);
|
|
24
|
+
|
|
25
|
+
--text-primary: #F0F0F0;
|
|
26
|
+
--text-secondary: var(--palette-dark-accent);
|
|
27
|
+
--text-muted: rgba(214, 211, 209, 0.5);
|
|
28
|
+
|
|
29
|
+
--primary: var(--palette-dark-primary);
|
|
30
|
+
--secondary: var(--palette-dark-secondary);
|
|
31
|
+
--accent: var(--palette-dark-accent);
|
|
32
|
+
|
|
33
|
+
--border-color: rgba(214, 211, 209, 0.2);
|
|
34
|
+
--card-border: rgba(214, 211, 209, 0.2);
|
|
35
|
+
|
|
36
|
+
--table-header-border-color: rgba(214, 211, 209, 0.2);
|
|
37
|
+
|
|
38
|
+
--link-color: var(--palette-dark-primary);
|
|
39
|
+
--link-hover: #FFCBA0;
|
|
40
|
+
|
|
41
|
+
--button-bg: var(--palette-dark-primary);
|
|
42
|
+
--button-text: #1A1614;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::-webkit-scrollbar {
|
|
46
|
+
width: 8px;
|
|
47
|
+
height: 8px;
|
|
48
|
+
background-color: var(--bg-primary);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::-webkit-scrollbar-thumb {
|
|
52
|
+
border-radius: 10px;
|
|
53
|
+
background-color: var(--primary);
|
|
54
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
::-webkit-scrollbar-track {
|
|
58
|
+
border-radius: 10px;
|
|
59
|
+
background-color: var(--bg-secondary);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::-webkit-scrollbar-corner {
|
|
63
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.badge-SEND {
|
|
67
|
+
background: rgba(59, 130, 246, 0.15);
|
|
68
|
+
color: #60a5fa;
|
|
69
|
+
border: 1px solid rgba(59, 130, 246, 0.3);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.badge-RECV {
|
|
73
|
+
background: rgba(16, 185, 129, 0.15);
|
|
74
|
+
color: #34d399;
|
|
75
|
+
border: 1px solid rgba(16, 185, 129, 0.3);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.badge-GET {
|
|
79
|
+
background: #0f172a;
|
|
80
|
+
color: #3b82f6;
|
|
81
|
+
border: 1px solid #3b82f6;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.badge-POST {
|
|
85
|
+
background: #0f172a;
|
|
86
|
+
color: #22c55e;
|
|
87
|
+
border: 1px solid #22c55e;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.badge-PUT {
|
|
91
|
+
background: #0f172a;
|
|
92
|
+
color: #eab308;
|
|
93
|
+
border: 1px solid #eab308;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.badge-PATCH {
|
|
97
|
+
background: #0f172a;
|
|
98
|
+
color: #08d3ea;
|
|
99
|
+
border: 1px solid #08eae6;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.badge-HEAD {
|
|
103
|
+
background: #0f172a;
|
|
104
|
+
color: #e3ea08;
|
|
105
|
+
border: 1px solid #e3ea08;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.badge-OPTIONS {
|
|
109
|
+
background: #0f172a;
|
|
110
|
+
color: #838383;
|
|
111
|
+
border: 1px solid #838383;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.badge-DELETE {
|
|
115
|
+
background: #0f172a;
|
|
116
|
+
color: #ef4444;
|
|
117
|
+
border: 1px solid #ef4444;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.badge-ROUTER {
|
|
121
|
+
background: #334155;
|
|
122
|
+
color: #f8fafc;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.badge-CONTROLLER {
|
|
126
|
+
background: #475569;
|
|
127
|
+
color: #f8fafc;
|
|
128
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ShokupanRouter } from '../../../router';
|
|
2
|
+
import { Shokupan } from '../../../shokupan';
|
|
3
|
+
import { DeepPartial, ShokupanPlugin, ShokupanPluginOptions } from '../../../util/types';
|
|
4
|
+
export interface AsyncApiPluginOptions {
|
|
5
|
+
path?: string;
|
|
6
|
+
spec?: DeepPartial<any>;
|
|
7
|
+
disableSourceView?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class AsyncApiPlugin extends ShokupanRouter<any> implements ShokupanPlugin {
|
|
10
|
+
private pluginOptions;
|
|
11
|
+
private static getBasePath;
|
|
12
|
+
constructor(pluginOptions?: AsyncApiPluginOptions);
|
|
13
|
+
onInit(app: Shokupan, options?: ShokupanPluginOptions): void;
|
|
14
|
+
private init;
|
|
15
|
+
}
|