@platformatic/composer 3.0.0-alpha.4 → 3.0.0-alpha.6

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.
Files changed (49) hide show
  1. package/LICENSE +1 -1
  2. package/eslint.config.js +1 -8
  3. package/index.d.ts +1 -58
  4. package/index.js +9 -30
  5. package/package.json +8 -54
  6. package/schema.json +1136 -907
  7. package/scripts/schema.js +12 -0
  8. package/config.d.ts +0 -997
  9. package/lib/application.js +0 -186
  10. package/lib/commands/index.js +0 -15
  11. package/lib/commands/openapi-fetch-schemas.js +0 -47
  12. package/lib/composer-hook.js +0 -60
  13. package/lib/errors.js +0 -18
  14. package/lib/generator.js +0 -127
  15. package/lib/graphql-fetch.js +0 -83
  16. package/lib/graphql-generator.js +0 -33
  17. package/lib/graphql.js +0 -24
  18. package/lib/metrics.js +0 -12
  19. package/lib/not-host-constraints.js +0 -31
  20. package/lib/openapi-composer.js +0 -101
  21. package/lib/openapi-config-schema.js +0 -89
  22. package/lib/openapi-generator.js +0 -213
  23. package/lib/openapi-load-config.js +0 -31
  24. package/lib/openapi-modifier.js +0 -128
  25. package/lib/openapi-scalar.js +0 -22
  26. package/lib/proxy.js +0 -265
  27. package/lib/root.js +0 -75
  28. package/lib/schema.js +0 -258
  29. package/lib/stackable.js +0 -88
  30. package/lib/upgrade.js +0 -20
  31. package/lib/utils.js +0 -16
  32. package/lib/versions/2.0.0.js +0 -9
  33. package/lib/versions/3.0.0.js +0 -14
  34. package/public/images/dark_mode.svg +0 -3
  35. package/public/images/ellipse.svg +0 -21
  36. package/public/images/external-link.svg +0 -5
  37. package/public/images/favicon.ico +0 -0
  38. package/public/images/graphiql.svg +0 -10
  39. package/public/images/graphql.svg +0 -10
  40. package/public/images/light_mode.svg +0 -11
  41. package/public/images/openapi.svg +0 -13
  42. package/public/images/platformatic-logo-dark.svg +0 -30
  43. package/public/images/platformatic-logo-light.svg +0 -30
  44. package/public/images/reverse-proxy.svg +0 -8
  45. package/public/images/triangle_dark.svg +0 -3
  46. package/public/images/triangle_light.svg +0 -3
  47. package/public/index.html +0 -253
  48. package/public/index.njk +0 -101
  49. package/public/main.css +0 -244
package/public/main.css DELETED
@@ -1,244 +0,0 @@
1
- body {
2
- width: 100%;
3
- height: 100vh;
4
- overflow-y: auto;
5
- overflow-x: hidden;
6
- --secondary-color: #FFFFFF;
7
- --primary-color: #00050B;
8
- --primary-color-rgb: 0, 5, 11;
9
- --secondary-color-rgb: 255, 255, 255;
10
- --theme-img: url('./images/light_mode.svg');
11
- --triangle-url: url('./images/triangle_light.svg');
12
- --ellipse-url: url('./images/ellipse.svg');
13
- }
14
-
15
- body.light-theme {
16
- --secondary-color: #001825;
17
- --primary-color: #FFFFFF;
18
- --secondary-color-rgb: 0, 5, 11;
19
- --primary-color-rgb: 255, 255, 255;
20
- --theme-img: url('./images/dark_mode.svg');
21
- --triangle-url: url('./images/triangle_dark.svg');
22
- --ellipse-url: url('./images/ellipse.svg');
23
- }
24
-
25
- body {
26
- background: var(--primary-color);
27
- }
28
-
29
- :root {
30
- font-family: Montserrat, Inter, Avenir, Helvetica, Arial, sans-serif;
31
- font-size: 16px;
32
- line-height: 24px;
33
- font-weight: 400;
34
-
35
- color-scheme: light dark;
36
- color: inherit;
37
-
38
- position: relative;
39
- font-synthesis: none;
40
- text-rendering: optimizeLegibility;
41
- -webkit-font-smoothing: antialiased;
42
- -moz-osx-font-smoothing: grayscale;
43
- -webkit-text-size-adjust: 100%;
44
- }
45
-
46
-
47
- a {
48
- font-weight: 600;
49
- color: var(--secondary-color);
50
- text-decoration: inherit;
51
- width: 100%;
52
- text-align: center;
53
- padding: 4px 0px;
54
- }
55
- .button-container a:hover {
56
- background-color: rgba(var(--secondary-color-rgb), 0.3);
57
- }
58
-
59
- .text-opacque {
60
- opacity: 0.7;
61
- }
62
- .text-center {
63
- text-align: center;
64
- }
65
-
66
- .button-container {
67
- display: flex;
68
- column-gap: 0.5rem;
69
- justify-content: center;
70
- align-items: start;
71
- margin: 1rem 0;
72
- }
73
-
74
- .buttons-list-container {
75
- display: flex;
76
- flex-direction: column;
77
- row-gap: 1rem;
78
- justify-content: center;
79
- align-items: start;
80
- }
81
-
82
- .button-link {
83
- width: 233px;
84
- border: 1px solid var(--secondary-color);
85
- border-radius: 4px;
86
- padding: 8px 16px;
87
- cursor: pointer;
88
- display: flex;
89
- align-items: center;
90
- flex-grow: 1;
91
- }
92
-
93
- .button-link > img {
94
- margin-right: 0.5rem;
95
- }
96
- button {
97
- border-radius: 8px;
98
- border: 1px solid transparent;
99
- padding: 0.6em 1.2em;
100
- font-size: 1em;
101
- font-weight: 500;
102
- font-family: inherit;
103
- background-color: #1a1a1a;
104
- cursor: pointer;
105
- transition: border-color 0.25s;
106
- }
107
- button:hover {
108
- border-color: #646cff;
109
- }
110
- button:focus,
111
- button:focus-visible {
112
- outline: 4px auto -webkit-focus-ring-color;
113
- }
114
-
115
- #root {
116
- width: 100%;
117
- min-height: inherit;
118
- height: 100%;
119
- display: flex;
120
- position: relative;
121
- z-index: 20;
122
- }
123
-
124
- #content {
125
- display: flex;
126
- flex-direction: column;
127
- align-items: center;
128
- justify-content: center;
129
- margin: auto;
130
- position: relative;
131
- z-index: 20;
132
- color: var(--secondary-color);
133
- }
134
-
135
- .plt-triangle-container {
136
- position: absolute;
137
- top: 0;
138
- right: 0;
139
- width: 25%;
140
- height: 50vH;
141
- z-index: -1;
142
- content: '';
143
- background: var(--triangle-url) repeat;
144
- opacity: 0.25;
145
- }
146
-
147
- .plt-triangle-content-opacque {
148
- position: absolute;
149
- height: 100%;
150
- width: 100%;
151
- top: 0;
152
- left: 0;
153
- content: '';
154
- background: linear-gradient(to top, rgba(var(--primary-color-rgb), 1), rgba(var(--primary-color-rgb), 0.2) 43%);
155
- }
156
-
157
- #button-theme-selector {
158
- border: none;
159
- position: absolute;
160
- top: 2rem;
161
- right: 3rem;
162
- width: 40px;
163
- height: 40px;
164
- background: var(--theme-img);
165
- outline: none;
166
- z-index: 1;
167
- }
168
-
169
- .text-desktop-display {
170
- font-family: Inter;
171
- font-size: 4rem;
172
- font-weight: 600;
173
- line-height: 5rem;
174
- text-align: center;
175
- margin: 0;
176
- }
177
-
178
- .text-desktop-body-large {
179
- font-family: Inter;
180
- font-size: 1.125rem;
181
- font-weight: 300;
182
- line-height: 1.688rem;
183
- text-align: center;
184
- }
185
-
186
- a.plt-doc-link {
187
- color: #2588E4;
188
- font-weight: 400;
189
- margin: 0 0 2rem;
190
- }
191
-
192
- .services-container {
193
- display: flex;
194
- background-color: #090E17;
195
- padding: 1rem;
196
- gap: 1rem;
197
-
198
- }
199
-
200
- .services-list {
201
- color: #FFFFFF;
202
- display: flex;
203
- flex-direction: column;
204
- gap: 1rem;
205
- }
206
-
207
- .services-list > div{
208
- height: 3rem;
209
- }
210
-
211
- .service-type {
212
- border-radius: 4px;
213
- }
214
- .service-type-name {
215
- color: #FFFFFF;
216
- margin-bottom: .5rem ;
217
- display: flex;
218
- font-weight: bold;
219
- }
220
-
221
- .service-type-name img {
222
- margin-right: .5rem;
223
- }
224
- .service-type-name .count {
225
- opacity: 0.7;
226
- font-weight: normal;
227
- margin-left: 1rem;
228
- }
229
- .service-details {
230
- display: flex;
231
- justify-content: space-between;
232
- align-items: flex-start;
233
- width: 300px;
234
- background-color: #040607;
235
- padding: .5rem;
236
- }
237
-
238
- .service-details a {
239
- display: block;
240
- width: 25px;
241
- }
242
- .service-path {
243
- opacity: 0.7;
244
- }