@xyd-js/apidocs-demo 0.0.0-build
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/.dockerignore +4 -0
- package/CHANGELOG.md +43 -0
- package/Dockerfile +22 -0
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/apis.txt +9 -0
- package/app/api/pluginOasOpenAPI.ts +538 -0
- package/app/api/try.ts +26 -0
- package/app/const.ts +2 -0
- package/app/context.tsx +52 -0
- package/app/index.css +58 -0
- package/app/root.tsx +106 -0
- package/app/routes/layout.tsx +722 -0
- package/app/routes/url.tsx +80 -0
- package/app/routes.ts +12 -0
- package/app/settings.ts +47 -0
- package/app/utils/toUniform.ts +123 -0
- package/package.json +50 -0
- package/public/favicon.svg +10 -0
- package/react-router.config.ts +7 -0
- package/tsconfig.json +27 -0
- package/vite.config.ts +39 -0
package/.dockerignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @xyd-js/apidocs-demo
|
|
2
|
+
|
|
3
|
+
## 0.0.0-build+6952c2c-20250813013245
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @xyd-js/atlas@0.0.0-build+6952c2c-20250813013245
|
|
9
|
+
- @xyd-js/components@0.0.0-build+6952c2c-20250813013245
|
|
10
|
+
- @xyd-js/core@0.0.0-build+6952c2c-20250813013245
|
|
11
|
+
- @xyd-js/framework@0.0.0-build+6952c2c-20250813013245
|
|
12
|
+
- @xyd-js/gql@0.0.0-build+6952c2c-20250813013245
|
|
13
|
+
- @xyd-js/openapi@0.0.0-build+6952c2c-20250813013245
|
|
14
|
+
- @xyd-js/theme-cosmo@0.0.0-build+6952c2c-20250813013245
|
|
15
|
+
- @xyd-js/theme-gusto@0.0.0-build+6952c2c-20250813013245
|
|
16
|
+
- @xyd-js/theme-opener@0.0.0-build+6952c2c-20250813013245
|
|
17
|
+
- @xyd-js/theme-picasso@0.0.0-build+6952c2c-20250813013245
|
|
18
|
+
- @xyd-js/theme-poetry@0.0.0-build+6952c2c-20250813013245
|
|
19
|
+
- @xyd-js/theme-solar@0.0.0-build+6952c2c-20250813013245
|
|
20
|
+
- @xyd-js/themes@0.0.0-build+6952c2c-20250813013245
|
|
21
|
+
- @xyd-js/ui@0.0.0-build+6952c2c-20250813013245
|
|
22
|
+
- @xyd-js/uniform@0.0.0-build+6952c2c-20250813013245
|
|
23
|
+
|
|
24
|
+
## 0.0.0-true-20250812233459
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @xyd-js/atlas@0.0.0-true-20250812233459
|
|
30
|
+
- @xyd-js/components@0.0.0-true-20250812233459
|
|
31
|
+
- @xyd-js/core@0.0.0-true-20250812233459
|
|
32
|
+
- @xyd-js/framework@0.0.0-true-20250812233459
|
|
33
|
+
- @xyd-js/gql@0.0.0-true-20250812233459
|
|
34
|
+
- @xyd-js/openapi@0.0.0-true-20250812233459
|
|
35
|
+
- @xyd-js/theme-cosmo@0.0.0-true-20250812233459
|
|
36
|
+
- @xyd-js/theme-gusto@0.0.0-true-20250812233459
|
|
37
|
+
- @xyd-js/theme-opener@0.0.0-true-20250812233459
|
|
38
|
+
- @xyd-js/theme-picasso@0.0.0-true-20250812233459
|
|
39
|
+
- @xyd-js/theme-poetry@0.0.0-true-20250812233459
|
|
40
|
+
- @xyd-js/theme-solar@0.0.0-true-20250812233459
|
|
41
|
+
- @xyd-js/themes@0.0.0-true-20250812233459
|
|
42
|
+
- @xyd-js/ui@0.0.0-true-20250812233459
|
|
43
|
+
- @xyd-js/uniform@0.0.0-true-20250812233459
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
FROM node:20-alpine AS development-dependencies-env
|
|
2
|
+
COPY . /app
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
RUN npm ci
|
|
5
|
+
|
|
6
|
+
FROM node:20-alpine AS production-dependencies-env
|
|
7
|
+
COPY ./package.json package-lock.json /app/
|
|
8
|
+
WORKDIR /app
|
|
9
|
+
RUN npm ci --omit=dev
|
|
10
|
+
|
|
11
|
+
FROM node:20-alpine AS build-env
|
|
12
|
+
COPY . /app/
|
|
13
|
+
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
|
|
14
|
+
WORKDIR /app
|
|
15
|
+
RUN npm run build
|
|
16
|
+
|
|
17
|
+
FROM node:20-alpine
|
|
18
|
+
COPY ./package.json package-lock.json /app/
|
|
19
|
+
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
|
|
20
|
+
COPY --from=build-env /app/build /app/build
|
|
21
|
+
WORKDIR /app
|
|
22
|
+
CMD ["npm", "run", "start"]
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 xyd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Welcome to React Router!
|
|
2
|
+
|
|
3
|
+
A modern, production-ready template for building full-stack React applications using React Router.
|
|
4
|
+
|
|
5
|
+
[](https://stackblitz.com/github/remix-run/react-router-templates/tree/main/default)
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- 🚀 Server-side rendering
|
|
10
|
+
- ⚡️ Hot Module Replacement (HMR)
|
|
11
|
+
- 📦 Asset bundling and optimization
|
|
12
|
+
- 🔄 Data loading and mutations
|
|
13
|
+
- 🔒 TypeScript by default
|
|
14
|
+
- 🎉 TailwindCSS for styling
|
|
15
|
+
- 📖 [React Router docs](https://reactrouter.com/)
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
### Installation
|
|
20
|
+
|
|
21
|
+
Install the dependencies:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Development
|
|
28
|
+
|
|
29
|
+
Start the development server with HMR:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm run dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Your application will be available at `http://localhost:5173`.
|
|
36
|
+
|
|
37
|
+
## Building for Production
|
|
38
|
+
|
|
39
|
+
Create a production build:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm run build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Deployment
|
|
46
|
+
|
|
47
|
+
### Docker Deployment
|
|
48
|
+
|
|
49
|
+
To build and run using Docker:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
docker build -t my-app .
|
|
53
|
+
|
|
54
|
+
# Run the container
|
|
55
|
+
docker run -p 3000:3000 my-app
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The containerized application can be deployed to any platform that supports Docker, including:
|
|
59
|
+
|
|
60
|
+
- AWS ECS
|
|
61
|
+
- Google Cloud Run
|
|
62
|
+
- Azure Container Apps
|
|
63
|
+
- Digital Ocean App Platform
|
|
64
|
+
- Fly.io
|
|
65
|
+
- Railway
|
|
66
|
+
|
|
67
|
+
### DIY Deployment
|
|
68
|
+
|
|
69
|
+
If you're familiar with deploying Node applications, the built-in app server is production-ready.
|
|
70
|
+
|
|
71
|
+
Make sure to deploy the output of `npm run build`
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
├── package.json
|
|
75
|
+
├── package-lock.json (or pnpm-lock.yaml, or bun.lockb)
|
|
76
|
+
├── build/
|
|
77
|
+
│ ├── client/ # Static assets
|
|
78
|
+
│ └── server/ # Server-side code
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Styling
|
|
82
|
+
|
|
83
|
+
This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever CSS framework you prefer.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
Built with ❤️ using React Router.
|
package/apis.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
openapi livesession https://raw.githubusercontent.com/livesession/livesession-openapi/master/openapi.yaml
|
|
2
|
+
openapi vercel https://openapi.vercel.sh
|
|
3
|
+
openapi intercom https://developers.intercom.com/_spec/docs/references/@2.11/rest-api/api.intercom.io.json
|
|
4
|
+
openapi box https://raw.githubusercontent.com/box/box-openapi/main/openapi.json
|
|
5
|
+
openapi github https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.0/ghes-3.0.json"
|
|
6
|
+
openapi digitalocean https://raw.githubusercontent.com/digitalocean/openapi/main/specification/DigitalOcean-public.v2.yaml
|
|
7
|
+
openapi nytimes https://api.apis.guru/v2/specs/nytimes.com/article_search/1.0.0/openapi.yaml
|
|
8
|
+
|
|
9
|
+
openapi train-travel-api https://raw.githubusercontent.com/bump-sh-examples/train-travel-api/main/openapi.yaml
|