🎉 initial commit

This commit is contained in:
Ritesh Kumar committed 2022-11-16 13:16:50 +05:30
1 parent 10a68aefbf
commit d0ed896535
153 files changed
+7696 -68112

No files matched your search

-327
View File
@@ -1,327 +0,0 @@
{
"projectName": "transform",
"projectOwner": "ritz078",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "ritz078",
"name": "Ritesh Kumar",
"avatar_url": "https://avatars3.githubusercontent.com/u/5389035?v=4",
"profile": "http://riteshkr.com",
"contributions": [
"doc",
"code",
"ideas",
"review"
]
},
{
"login": "skade",
"name": "Florian Gilcher",
"avatar_url": "https://avatars2.githubusercontent.com/u/47542?v=4",
"profile": "http://asquera.de",
"contributions": [
"code"
]
},
{
"login": "killercup",
"name": "Pascal Hertleif",
"avatar_url": "https://avatars1.githubusercontent.com/u/20063?v=4",
"profile": "http://pascalhertleif.de/",
"contributions": [
"code"
]
},
{
"login": "Landish",
"name": "Lado Lomidze",
"avatar_url": "https://avatars3.githubusercontent.com/u/534610?v=4",
"profile": "http://landish.github.io",
"contributions": [
"code"
]
},
{
"login": "mattiamanzati",
"name": "Mattia Manzati",
"avatar_url": "https://avatars1.githubusercontent.com/u/13787614?v=4",
"profile": "https://github.com/mattiamanzati",
"contributions": [
"code"
]
},
{
"login": "morajabi",
"name": "Mohammad Rajabifard",
"avatar_url": "https://avatars3.githubusercontent.com/u/12202757?v=4",
"profile": "https://tarino.ir",
"contributions": [
"ideas",
"code"
]
},
{
"login": "Raathigesh",
"name": "Raathigeshan Kugarajan",
"avatar_url": "https://avatars0.githubusercontent.com/u/3108160?v=4",
"profile": "http://raathigesh.com/",
"contributions": [
"code"
]
},
{
"login": "gyandeeps",
"name": "Gyandeep Singh",
"avatar_url": "https://avatars2.githubusercontent.com/u/5554486?v=4",
"profile": "https://gyandeeps.com",
"contributions": [
"code"
]
},
{
"login": "mholt",
"name": "Matt Holt",
"avatar_url": "https://avatars2.githubusercontent.com/u/1128849?v=4",
"profile": "https://matt.life",
"contributions": [
"code"
]
},
{
"login": "cg-cnu",
"name": "sreenivas alapati",
"avatar_url": "https://avatars0.githubusercontent.com/u/2767425?v=4",
"profile": "https://medium.com/@sreenivas",
"contributions": [
"code"
]
},
{
"login": "bcherny",
"name": "Boris Cherny",
"avatar_url": "https://avatars2.githubusercontent.com/u/1761758?v=4",
"profile": "https://performancejs.com",
"contributions": [
"code"
]
},
{
"login": "intabulas",
"name": "Mark Lussier",
"avatar_url": "https://avatars0.githubusercontent.com/u/448?v=4",
"profile": "http://www.twitter.com/intabulas",
"contributions": [
"code"
]
},
{
"login": "brikou",
"name": "Brice BERNARD",
"avatar_url": "https://avatars3.githubusercontent.com/u/383212?v=4",
"profile": "https://github.com/brikou",
"contributions": [
"code"
]
},
{
"login": "satya164",
"name": "Satyajit Sahoo",
"avatar_url": "https://avatars2.githubusercontent.com/u/1174278?v=4",
"profile": "https://twitter.com/@satya164",
"contributions": [
"code"
]
},
{
"login": "shakyShane",
"name": "Shane Osbourne",
"avatar_url": "https://avatars3.githubusercontent.com/u/1643522?v=4",
"profile": "https://medium.com/@shakyShane",
"contributions": [
"code"
]
},
{
"login": "pd4d10",
"name": "Rongjian Zhang",
"avatar_url": "https://avatars0.githubusercontent.com/u/9524411?v=4",
"profile": "https://github.com/pd4d10",
"contributions": [
"code"
]
},
{
"login": "KeshShan",
"name": "Keshan Nageswaran",
"avatar_url": "https://avatars3.githubusercontent.com/u/12506034?v=4",
"profile": "http://keshShan.github.io",
"contributions": [
"code"
]
},
{
"login": "code",
"name": "codegent",
"avatar_url": "https://avatars1.githubusercontent.com/u/7318?v=4",
"profile": "http://www.codegent.com",
"contributions": [
"code"
]
},
{
"login": "bastor",
"name": "Sebastian Maliszczak",
"avatar_url": "https://avatars3.githubusercontent.com/u/1881814?v=4",
"profile": "https://github.com/bastor",
"contributions": [
"code"
]
},
{
"login": "Haroenv",
"name": "Haroen Viaene",
"avatar_url": "https://avatars3.githubusercontent.com/u/6270048?v=4",
"profile": "https://haroen.me",
"contributions": [
"code"
]
},
{
"login": "timneutkens",
"name": "Tim Neutkens",
"avatar_url": "https://avatars2.githubusercontent.com/u/6324199?v=4",
"profile": "https://timn.tech",
"contributions": [
"plugin",
"code"
]
},
{
"login": "raminrez",
"name": "Ramin Rezaie",
"avatar_url": "https://avatars1.githubusercontent.com/u/7345325?v=4",
"profile": "https://github.com/raminrez",
"contributions": [
"code"
]
},
{
"login": "guilhermesteves",
"name": "Guilherme Esteves",
"avatar_url": "https://avatars3.githubusercontent.com/u/2166045?v=4",
"profile": "https://guilhermeesteves.com",
"contributions": [
"code"
]
},
{
"login": "p-racoon",
"name": "Prasham Ashesh",
"avatar_url": "https://avatars2.githubusercontent.com/u/13845070?v=4",
"profile": "https://github.com/p-racoon",
"contributions": [
"code"
]
},
{
"login": "jamesgeorge007",
"name": "James George",
"avatar_url": "https://avatars2.githubusercontent.com/u/25279263?v=4",
"profile": "https://ghuser.io/jamesgeorge007",
"contributions": [
"code"
]
},
{
"login": "ChaitanyaGadodia",
"name": "Chaitanya Gadodia",
"avatar_url": "https://avatars1.githubusercontent.com/u/10559670?v=4",
"profile": "https://chaitanyagadodia.github.io/",
"contributions": [
"code"
]
},
{
"login": "miklosme",
"name": "Miklos Megyes",
"avatar_url": "https://avatars3.githubusercontent.com/u/8769273?v=4",
"profile": "https://miklos.dev",
"contributions": [
"code"
]
},
{
"login": "Rishabh-Rathod",
"name": "Rishabh Rathod",
"avatar_url": "https://avatars0.githubusercontent.com/u/23132741?v=4",
"profile": "https://github.com/Rishabh-Rathod",
"contributions": [
"code"
]
},
{
"login": "agent515",
"name": "agent515",
"avatar_url": "https://avatars.githubusercontent.com/u/46898603?v=4",
"profile": "https://github.com/agent515",
"contributions": [
"code"
]
},
{
"login": "jfsiii",
"name": "John Schulz",
"avatar_url": "https://avatars.githubusercontent.com/u/57655?v=4",
"profile": "http://JFSIII.org",
"contributions": [
"code"
]
},
{
"login": "nasrul21",
"name": "Nasrul Faizin",
"avatar_url": "https://avatars.githubusercontent.com/u/15046792?v=4",
"profile": "https://github.com/nasrul21",
"contributions": [
"code"
]
},
{
"login": "jdjfisher",
"name": "Jordan Fisher",
"avatar_url": "https://avatars.githubusercontent.com/u/43887886?v=4",
"profile": "https://github.com/jdjfisher",
"contributions": [
"code"
]
},
{
"login": "csandman",
"name": "Chris Sandvik",
"avatar_url": "https://avatars.githubusercontent.com/u/9214195?v=4",
"profile": "https://github.com/csandman",
"contributions": [
"code"
]
},
{
"login": "LemonNekoGH",
"name": "LemonNeko",
"avatar_url": "https://avatars.githubusercontent.com/u/17664845?v=4",
"profile": "https://blog.lemonneko.moe",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
"skipCi": true
}
-3
View File
@@ -1,3 +0,0 @@
# These are supported funding model platforms
github: ritz078
+36 -9
View File
@@ -1,11 +1,38 @@
.idea
.next
node_modules
yarn-error.log
dist
.DS_Store
public/static/monaco/*.worker.js.map
.tool-versions
heroku
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
.idea
.vscode
+4 -1
View File
@@ -1 +1,4 @@
public/static/monaco
node_modules
.idea
.next
.vscode
-17
View File
@@ -1,17 +0,0 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 Ritesh Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+21 -65
View File
@@ -1,78 +1,34 @@
![Demo](public/cover.png)
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
---
## Getting Started
<a href="https://www.producthunt.com/posts/transform-2-0?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-transform-2-0" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=161868&theme=light" alt="Transform 2.0 - A polyglot web converter | Product Hunt Embed" style="width: 250px; height: 54px;" width="250px" height="54px" /></a>
First, run the development server:
<a href="https://vercel.com?utm_source=ritz078&utm_campaign=oss" target="_blank"><img src="https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg" alt="Vercel" style="height:40px;"/></a>
```bash
npm run dev
# or
yarn dev
```
## Credits
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
The logo has been designed by [mikicon](https://thenounproject.com/mikicon/).
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
## License
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
MIT @ Ritesh Kumar
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Contributors
## Learn More
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
To learn more about Next.js, take a look at the following resources:
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center"><a href="http://riteshkr.com"><img src="https://avatars3.githubusercontent.com/u/5389035?v=4?s=100" width="100px;" alt="Ritesh Kumar"/><br /><sub><b>Ritesh Kumar</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=ritz078" title="Documentation">📖</a> <a href="https://github.com/ritz078/transform/commits?author=ritz078" title="Code">💻</a> <a href="#ideas-ritz078" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ritz078/transform/pulls?q=is%3Apr+reviewed-by%3Aritz078" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="http://asquera.de"><img src="https://avatars2.githubusercontent.com/u/47542?v=4?s=100" width="100px;" alt="Florian Gilcher"/><br /><sub><b>Florian Gilcher</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=skade" title="Code">💻</a></td>
<td align="center"><a href="http://pascalhertleif.de/"><img src="https://avatars1.githubusercontent.com/u/20063?v=4?s=100" width="100px;" alt="Pascal Hertleif"/><br /><sub><b>Pascal Hertleif</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=killercup" title="Code">💻</a></td>
<td align="center"><a href="http://landish.github.io"><img src="https://avatars3.githubusercontent.com/u/534610?v=4?s=100" width="100px;" alt="Lado Lomidze"/><br /><sub><b>Lado Lomidze</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=Landish" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/mattiamanzati"><img src="https://avatars1.githubusercontent.com/u/13787614?v=4?s=100" width="100px;" alt="Mattia Manzati"/><br /><sub><b>Mattia Manzati</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=mattiamanzati" title="Code">💻</a></td>
<td align="center"><a href="https://tarino.ir"><img src="https://avatars3.githubusercontent.com/u/12202757?v=4?s=100" width="100px;" alt="Mohammad Rajabifard"/><br /><sub><b>Mohammad Rajabifard</b></sub></a><br /><a href="#ideas-morajabi" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ritz078/transform/commits?author=morajabi" title="Code">💻</a></td>
<td align="center"><a href="http://raathigesh.com/"><img src="https://avatars0.githubusercontent.com/u/3108160?v=4?s=100" width="100px;" alt="Raathigeshan Kugarajan"/><br /><sub><b>Raathigeshan Kugarajan</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=Raathigesh" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://gyandeeps.com"><img src="https://avatars2.githubusercontent.com/u/5554486?v=4?s=100" width="100px;" alt="Gyandeep Singh"/><br /><sub><b>Gyandeep Singh</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=gyandeeps" title="Code">💻</a></td>
<td align="center"><a href="https://matt.life"><img src="https://avatars2.githubusercontent.com/u/1128849?v=4?s=100" width="100px;" alt="Matt Holt"/><br /><sub><b>Matt Holt</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=mholt" title="Code">💻</a></td>
<td align="center"><a href="https://medium.com/@sreenivas"><img src="https://avatars0.githubusercontent.com/u/2767425?v=4?s=100" width="100px;" alt="sreenivas alapati"/><br /><sub><b>sreenivas alapati</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=cg-cnu" title="Code">💻</a></td>
<td align="center"><a href="https://performancejs.com"><img src="https://avatars2.githubusercontent.com/u/1761758?v=4?s=100" width="100px;" alt="Boris Cherny"/><br /><sub><b>Boris Cherny</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=bcherny" title="Code">💻</a></td>
<td align="center"><a href="http://www.twitter.com/intabulas"><img src="https://avatars0.githubusercontent.com/u/448?v=4?s=100" width="100px;" alt="Mark Lussier"/><br /><sub><b>Mark Lussier</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=intabulas" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/brikou"><img src="https://avatars3.githubusercontent.com/u/383212?v=4?s=100" width="100px;" alt="Brice BERNARD"/><br /><sub><b>Brice BERNARD</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=brikou" title="Code">💻</a></td>
<td align="center"><a href="https://twitter.com/@satya164"><img src="https://avatars2.githubusercontent.com/u/1174278?v=4?s=100" width="100px;" alt="Satyajit Sahoo"/><br /><sub><b>Satyajit Sahoo</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=satya164" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://medium.com/@shakyShane"><img src="https://avatars3.githubusercontent.com/u/1643522?v=4?s=100" width="100px;" alt="Shane Osbourne"/><br /><sub><b>Shane Osbourne</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=shakyShane" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/pd4d10"><img src="https://avatars0.githubusercontent.com/u/9524411?v=4?s=100" width="100px;" alt="Rongjian Zhang"/><br /><sub><b>Rongjian Zhang</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=pd4d10" title="Code">💻</a></td>
<td align="center"><a href="http://keshShan.github.io"><img src="https://avatars3.githubusercontent.com/u/12506034?v=4?s=100" width="100px;" alt="Keshan Nageswaran"/><br /><sub><b>Keshan Nageswaran</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=KeshShan" title="Code">💻</a></td>
<td align="center"><a href="http://www.codegent.com"><img src="https://avatars1.githubusercontent.com/u/7318?v=4?s=100" width="100px;" alt="codegent"/><br /><sub><b>codegent</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=code" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/bastor"><img src="https://avatars3.githubusercontent.com/u/1881814?v=4?s=100" width="100px;" alt="Sebastian Maliszczak"/><br /><sub><b>Sebastian Maliszczak</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=bastor" title="Code">💻</a></td>
<td align="center"><a href="https://haroen.me"><img src="https://avatars3.githubusercontent.com/u/6270048?v=4?s=100" width="100px;" alt="Haroen Viaene"/><br /><sub><b>Haroen Viaene</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=Haroenv" title="Code">💻</a></td>
<td align="center"><a href="https://timn.tech"><img src="https://avatars2.githubusercontent.com/u/6324199?v=4?s=100" width="100px;" alt="Tim Neutkens"/><br /><sub><b>Tim Neutkens</b></sub></a><br /><a href="#plugin-timneutkens" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/ritz078/transform/commits?author=timneutkens" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/raminrez"><img src="https://avatars1.githubusercontent.com/u/7345325?v=4?s=100" width="100px;" alt="Ramin Rezaie"/><br /><sub><b>Ramin Rezaie</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=raminrez" title="Code">💻</a></td>
<td align="center"><a href="https://guilhermeesteves.com"><img src="https://avatars3.githubusercontent.com/u/2166045?v=4?s=100" width="100px;" alt="Guilherme Esteves"/><br /><sub><b>Guilherme Esteves</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=guilhermesteves" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/p-racoon"><img src="https://avatars2.githubusercontent.com/u/13845070?v=4?s=100" width="100px;" alt="Prasham Ashesh"/><br /><sub><b>Prasham Ashesh</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=p-racoon" title="Code">💻</a></td>
<td align="center"><a href="https://ghuser.io/jamesgeorge007"><img src="https://avatars2.githubusercontent.com/u/25279263?v=4?s=100" width="100px;" alt="James George"/><br /><sub><b>James George</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=jamesgeorge007" title="Code">💻</a></td>
<td align="center"><a href="https://chaitanyagadodia.github.io/"><img src="https://avatars1.githubusercontent.com/u/10559670?v=4?s=100" width="100px;" alt="Chaitanya Gadodia"/><br /><sub><b>Chaitanya Gadodia</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=ChaitanyaGadodia" title="Code">💻</a></td>
<td align="center"><a href="https://miklos.dev"><img src="https://avatars3.githubusercontent.com/u/8769273?v=4?s=100" width="100px;" alt="Miklos Megyes"/><br /><sub><b>Miklos Megyes</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=miklosme" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/Rishabh-Rathod"><img src="https://avatars0.githubusercontent.com/u/23132741?v=4?s=100" width="100px;" alt="Rishabh Rathod"/><br /><sub><b>Rishabh Rathod</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=Rishabh-Rathod" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/agent515"><img src="https://avatars.githubusercontent.com/u/46898603?v=4?s=100" width="100px;" alt="agent515"/><br /><sub><b>agent515</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=agent515" title="Code">💻</a></td>
<td align="center"><a href="http://JFSIII.org"><img src="https://avatars.githubusercontent.com/u/57655?v=4?s=100" width="100px;" alt="John Schulz"/><br /><sub><b>John Schulz</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=jfsiii" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/nasrul21"><img src="https://avatars.githubusercontent.com/u/15046792?v=4?s=100" width="100px;" alt="Nasrul Faizin"/><br /><sub><b>Nasrul Faizin</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=nasrul21" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/jdjfisher"><img src="https://avatars.githubusercontent.com/u/43887886?v=4?s=100" width="100px;" alt="Jordan Fisher"/><br /><sub><b>Jordan Fisher</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=jdjfisher" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/csandman"><img src="https://avatars.githubusercontent.com/u/9214195?v=4?s=100" width="100px;" alt="Chris Sandvik"/><br /><sub><b>Chris Sandvik</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=csandman" title="Code">💻</a></td>
<td align="center"><a href="https://blog.lemonneko.moe"><img src="https://avatars.githubusercontent.com/u/17664845?v=4?s=100" width="100px;" alt="LemonNeko"/><br /><sub><b>LemonNeko</b></sub></a><br /><a href="https://github.com/ritz078/transform/commits?author=LemonNekoGH" title="Code">💻</a></td>
</tr>
</tbody>
</table>
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
<!-- ALL-CONTRIBUTORS-LIST:END -->
## Deploy on Vercel
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
+183
View File
@@ -0,0 +1,183 @@
"use client";
import "tailwindcss/tailwind.css";
import { Disclosure } from "@headlessui/react";
import classNames from "classnames";
import React from "react";
import CSSIcon from "../assets/icons/css.svg";
import HTMLIcon from "../assets/icons/html.svg";
import JSIcon from "../assets/icons/js.svg";
import TSIcon from "../assets/icons/typescript.svg";
import GraphQLIcon from "../assets/icons/graphql.svg";
import SVGIcon from "../assets/icons/svg.svg";
import JsonIcon from "../assets/icons/json.svg";
import JsonSchemaIcon from "../assets/icons/json-schema.svg";
import JsonLdIcon from "../assets/icons/json-ld.svg";
import FlowIcon from "../assets/icons/flow.svg";
import { usePathname } from "next/navigation";
const navigation = [
{ name: "CSS", icon: CSSIcon, href: "#" },
{
name: "HTML",
icon: HTMLIcon,
children: [
{ name: "JSX", href: "/html-to-jsx" },
{ name: "Pug", href: "/html-to-pug" },
],
},
{
name: "JavaScript",
icon: JSIcon,
children: [
{ name: "Overview", href: "#" },
{ name: "Members", href: "#" },
{ name: "Calendar", href: "#" },
{ name: "Settings", href: "#" },
],
},
{
name: "Flow",
icon: FlowIcon,
children: [],
},
{
name: "GraphQL",
icon: GraphQLIcon,
children: [
{ name: "Overview", href: "#" },
{ name: "Members", href: "#" },
{ name: "Calendar", href: "#" },
{ name: "Settings", href: "#" },
],
},
{
name: "TypeScript",
icon: TSIcon,
children: [
{ name: "Overview", href: "#" },
{ name: "Members", href: "#" },
{ name: "Calendar", href: "#" },
{ name: "Settings", href: "#" },
],
},
{
name: "SVG",
icon: SVGIcon,
children: [
{ name: "Overview", href: "#" },
{ name: "Members", href: "#" },
{ name: "Calendar", href: "#" },
{ name: "Settings", href: "#" },
],
},
{
name: "JSON",
icon: JsonIcon,
children: [
{ name: "Big Query Schema", href: "/json-to-big-query" },
{
name: "Flow",
href: "/json-to-flow",
},
],
},
{
name: "JSON Schema",
icon: JsonSchemaIcon,
children: [],
},
{
name: "JSON-LD",
icon: JsonLdIcon,
children: [],
},
];
export default function Layout({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
return (
<html lang="en">
<body>
<section>
<div className="flex flex-grow flex-col overflow-y-auto border-r border-gray-200 bg-white pt-5 pb-4">
<div className="flex flex-shrink-0 items-center px-4">
<img
className="h-8 w-auto"
src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600"
alt="Your Company"
/>
</div>
<div className="mt-5 flex flex-grow flex-col">
<nav
className="flex-1 space-y-1 bg-white px-2"
aria-label="Sidebar"
>
{navigation.map((item) => (
<Disclosure
as="div"
key={item.name}
defaultOpen={
!!item.children?.find(({ href }) => href === pathname)
}
className="space-y-1"
>
{({ open }) => (
<>
<Disclosure.Button
className={classNames(
open
? "bg-gray-100 text-gray-900"
: "bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-900",
"group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500"
)}
>
<item.icon
className="mr-3 h-6 w-6 flex-shrink-0 text-gray-400 group-hover:text-gray-500"
aria-hidden="true"
/>
<span className="flex-1">
{item.name}{" "}
<span className="text-gray-400">to</span>
</span>
<svg
className={classNames(
open
? "text-gray-400 rotate-90"
: "text-gray-300",
"ml-3 h-5 w-5 flex-shrink-0 transform transition-colors duration-150 ease-in-out group-hover:text-gray-400"
)}
viewBox="0 0 20 20"
aria-hidden="true"
>
<path d="M6 6L14 10L6 14V6Z" fill="currentColor" />
</svg>
</Disclosure.Button>
<Disclosure.Panel className="space-y-1">
{item.children?.map((subItem) => (
<Disclosure.Button
key={subItem.name}
as="a"
href={subItem.href}
className="group flex w-full items-center rounded-md py-2 pl-11 pr-2 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900"
>
{subItem.name}
</Disclosure.Button>
))}
</Disclosure.Panel>
</>
)}
</Disclosure>
))}
</nav>
</div>
</div>
{children}
</section>
</body>
</html>
);
}
+3
View File
@@ -0,0 +1,3 @@
export default function Page({ children }) {
return <div>{children}</div>;
}
+12
View File
@@ -0,0 +1,12 @@
<svg viewBox="0 0 128 128">
<path fill="#1572B6" d="M18.814 114.123L8.76 1.352h110.48l-10.064 112.754-45.243 12.543-45.119-12.526z"></path>
<path fill="#33A9DC" d="M64.001 117.062l36.559-10.136 8.601-96.354h-45.16v106.49z"></path>
<path fill="#fff"
d="M64.001 51.429h18.302l1.264-14.163H64.001V23.435h34.682l-.332 3.711-3.4 38.114h-30.95V51.429z"></path>
<path fill="#EBEBEB"
d="M64.083 87.349l-.061.018-15.403-4.159-.985-11.031H33.752l1.937 21.717 28.331 7.863.063-.018v-14.39z"></path>
<path fill="#fff"
d="M81.127 64.675l-1.666 18.522-15.426 4.164v14.39l28.354-7.858.208-2.337 2.406-26.881H81.127z"></path>
<path fill="#EBEBEB"
d="M64.048 23.435v13.831H30.64l-.277-3.108-.63-7.012-.331-3.711h34.646zm-.047 27.996v13.831H48.792l-.277-3.108-.631-7.012-.33-3.711h16.447z"></path>
</svg>

After

Width:  |  Height:  |  Size: 850 B

+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 256 267" version="1.1" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">
<title>Flow</title>
<g>
<polygon fill="#FFCA20" opacity="0.7" points="237.300227 115.091771 148.489503 26.2916065 237.300227 26.2916065"></polygon>
<polygon fill="#FFCA20" opacity="0.7" points="86.287152 0 136.631883 0 175.108435 38.465993 86.287152 38.465993"></polygon>
<path d="M89.1697257,88.8212827 L0.359001856,0 L107.140936,0 L107.140936,88.8107239 L89.1697257,88.8212827 Z M167.189276,177.621448 L256,266.432172 L167.189276,266.432172 L167.189276,177.621448 Z" fill="#FFCF39" opacity="0.9"></path>
<path d="M107.140936,177.632007 L18.3407713,88.8107239 L107.151495,88.8107239 L107.151495,177.621448 L107.140936,177.632007 Z M202.783254,132.682862 L131.985976,61.8433491 L202.814931,61.8433491 L202.783254,132.682862 Z M211.061415,258.16457 L130.518292,177.632007 L211.061415,177.632007 L211.061415,258.16457 Z" fill="#FFE490" opacity="0.7"></path>
<polygon fill="#FCBC7C" opacity="0.9" points="107.140936 70.7444834 36.3964529 0 107.140936 0"></polygon>
<polygon fill="#F9A040" opacity="0.8" points="130.877294 177.621448 219.688018 266.432172 130.877294 266.432172"></polygon>
<polygon fill="#F9A040" opacity="0.7" points="220.765024 213.07816 132.070448 124.383584 220.765024 124.383584"></polygon>
<polygon fill="#FFCF39" opacity="0.9" points="131.985976 61.8433491 219.719695 149.577067 131.985976 149.577067"></polygon>
<polygon fill="#FFC737" opacity="0.7" points="107.140936 266.083729 0 158.921675 107.140936 158.921675"></polygon>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+12
View File
@@ -0,0 +1,12 @@
<svg viewBox="0 0 128 128">
<g fill="#E434AA">
<path d="M18.39 96.852l-4.6-2.657L65.04 5.434l4.597 2.656zm0 0"></path>
<path d="M12.734 87.105H115.23v5.31H12.734zm0 0"></path>
<path d="M66.031 119.688L14.766 90.09l2.656-4.602 51.266 29.602zm0 0M110.566 42.543L59.301 12.941l2.656-4.597 51.266 29.597zm0 0"></path>
<path d="M17.434 42.523l-2.657-4.601 51.27-29.598 2.656 4.598zm0 0"></path>
<path d="M109.621 96.852L58.375 8.09l4.598-2.656 51.25 88.761zm0 0M16.8 34.398h5.313v59.204h-5.312zm0 0"></path>
<path d="M105.887 34.398h5.312v59.204h-5.312zm0 0"></path>
<path d="M65.129 117.441l-2.32-4.02 44.586-25.745 2.32 4.02zm0 0"></path>
<path d="M118.238 95.328c-3.07 5.344-9.918 7.168-15.261 4.098-5.344-3.074-7.168-9.922-4.098-15.266 3.074-5.344 9.922-7.168 15.266-4.097 5.375 3.105 7.199 9.921 4.093 15.265M29.09 43.84c-3.074 5.344-9.922 7.168-15.266 4.097-5.344-3.074-7.168-9.921-4.097-15.265 3.074-5.344 9.921-7.168 15.265-4.098 5.344 3.106 7.168 9.922 4.098 15.266M9.762 95.328c-3.075-5.344-1.25-12.16 4.093-15.266 5.344-3.07 12.16-1.246 15.266 4.098 3.07 5.344 1.246 12.16-4.098 15.266-5.375 3.07-12.191 1.246-15.261-4.098M98.91 43.84c-3.07-5.344-1.246-12.16 4.098-15.266 5.344-3.07 12.16-1.246 15.265 4.098 3.07 5.344 1.247 12.16-4.097 15.266-5.344 3.07-12.192 1.246-15.266-4.098M64 126.656a11.158 11.158 0 01-11.168-11.168A11.158 11.158 0 0164 104.32a11.158 11.158 0 0111.168 11.168c0 6.145-4.992 11.168-11.168 11.168M64 23.68a11.158 11.158 0 01-11.168-11.168A11.158 11.158 0 0164 1.344a11.158 11.158 0 0111.168 11.168A11.158 11.158 0 0164 23.68"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg viewBox="0 0 128 128">
<path fill="#E44D26" d="M19.037 113.876L9.032 1.661h109.936l-10.016 112.198-45.019 12.48z"></path>
<path fill="#F16529" d="M64 116.8l36.378-10.086 8.559-95.878H64z"></path>
<path fill="#EBEBEB"
d="M64 52.455H45.788L44.53 38.361H64V24.599H29.489l.33 3.692 3.382 37.927H64zm0 35.743l-.061.017-15.327-4.14-.979-10.975H33.816l1.928 21.609 28.193 7.826.063-.017z"></path>
<path fill="#fff"
d="M63.952 52.455v13.763h16.947l-1.597 17.849-15.35 4.143v14.319l28.215-7.82.207-2.325 3.234-36.233.335-3.696h-3.708zm0-27.856v13.762h33.244l.276-3.092.628-6.978.329-3.692z"></path>
</svg>

After

Width:  |  Height:  |  Size: 637 B

+5
View File
@@ -0,0 +1,5 @@
<svg viewBox="0 0 128 128">
<path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"></path>
<path fill="#323330"
d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg width="1034" height="1034" viewBox="-10 -5 1034 1034">
<path fill="black"
d="M278 256q-95 0-127.5 28T118 397v92q0 57-20 79t-74 22H0v55h24q53 0 73.5 22t20.5 80v92q0 84 32.5 112.5T278 980h25v-55h-27q-54 0-70-16.5T190 837v-95q0-59-17.5-86.5T113 618q42-10 59.5-37t17.5-87v-95q0-55 16-71.5t70-16.5h27v-55h-25zm419 0v55h27q53 0 69.5 16.5T810 399v95q0 60 17 87t60 37q-42 10-59.5 37T810 742v95q0 55-16.5 71.5T724 925h-27v55h24q95 0 127-28.5T880 839l1-92q-1-58 20-80t75-22h24v-55h-24q-54 0-75-22t-20-79v-92q-1-85-33-113t-127-28h-24zm-80 85q-27 0-51 14t-37 39q-16 31-11 64l-1-2v5q-1 6-5 13-5 10-16 21-13 13-35 26-38 24-68 24-14 0-21-5l2 3-6-3q-37-20-77-7.5T231 582t-7.5 77 49.5 60q27 14 57.5 11t53.5-22l-1 2 5-3q6-2 15-2 12 0 27 4 18 5 41 17 33 18 48 39 10 13 11 26-1 28 13.5 53.5T584 884q37 19 77 7t60-49 7.5-77.5T679 705q-5-3-10-5h2l-3-3q-5-4-8-11-6-11-9-25-4-19-4.5-44t2.5-44q3-15 8-26 3-7 8-12l3-3h-3q28-14 43-43 20-37 7.5-77T666 352q-23-12-49-11zm2 16q27 0 46 17-10-9-31-7t-41 15q6 6 6 14.5t-5.5 15T579 418q-3 0-6-1h-1q-9-3-15 6-10 19-11 37t8 29q-19-21-18-51t22-53q13-14 29-21t32-7zm-69 167q7 0 11 2l10 6q9 4 19 7 21 20 23 81 0 36-8 59-6 15-15 23-14 6-25 16-10 3-25 1-24-4-56-21-34-19-51-38-10-12-11-22 1-13-2-26l1 1v-5q1-5 5-12 6-9 17-19 13-13 34-26 42-26 70-27h3zm-227 24q27 0 46 17h-1q-10-9-30.5-7T297 573q5 6 5.5 14t-5.5 14.5-15 7.5q-2 0-5-1h-2q-8-3-15 6-9 18-10 36.5t8 28.5q-20-20-19-50t23-53q12-14 28-21t33-7zm314 161q27 0 46 17h-1q-10-9-30.5-6.5T611 735q5 5 5.5 13.5t-5.5 15-15 6.5h-5l-2-1q-8-2-15 6-10 19-10.5 37t8.5 29q-20-21-19-50.5t23-53.5q12-13 28-20.5t33-7.5z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="380.238" height="380.238" viewBox="0 0 70.423 70.423">
<path d="M122.994 114.19c-4.329-.94-7.58-3.479-8.712-6.801-.79-2.316-.677-6.072.333-11.15.485-2.439.882-5.349.882-6.467-.001-3.718-1.712-5.736-5.1-6.017l-1.955-.162v-4.785l1.852-.251c2.702-.366 3.744-1.029 4.576-2.91.611-1.38.689-2.068.505-4.472-.119-1.562-.535-4.349-.924-6.192-.99-4.683-.949-8.485.117-10.773 1.568-3.369 5.437-5.855 9.932-6.383l1.933-.227v5.036h-1.3c-1.771 0-4.25 1.262-4.883 2.488-.608 1.176-.654 2.864-.158 5.802.783 4.644 1.047 9.099.676 11.422-.425 2.658-1.975 5.796-3.68 7.448l-1.18 1.144 1.615 1.983c1.99 2.443 2.765 4.148 3.243 7.142.378 2.369.085 7.283-.67 11.214-1.054 5.485.162 7.652 4.661 8.306l1.676.244v2.448c0 2.792.171 2.697-3.439 1.913z"
style="fill:#000;stroke-width:.35277775" transform="translate(-104.228 -45.508)"/>
<path d="M152.23 112.25v-2.43l2.05-.424c2.263-.467 4.054-1.863 4.459-3.475.127-.507-.113-3.164-.534-5.903-1.372-8.93-.611-13.537 2.855-17.297l1.482-1.608-1.11-1.266c-3.98-4.53-4.67-8.552-3.154-18.37.763-4.945.764-4.993.087-6.173-.797-1.388-3.284-2.776-4.975-2.776h-1.16v-2.47c0-2.81-.058-2.773 3.246-2.072 3.965.841 6.805 2.853 8.278 5.865.846 1.728.973 2.4.95 5.01-.016 1.66-.358 4.683-.762 6.72-1.499 7.564-1.365 9.576.765 11.533.99.908 1.64 1.173 3.37 1.368l2.145.243v4.848h-1.676c-2.151.001-3.932.91-4.838 2.47-.952 1.637-.893 5.206.173 10.406.907 4.422 1.053 8.459.389 10.729-.701 2.394-3.82 5.296-6.748 6.277-1.261.423-2.968.871-3.792.996l-1.5.228z"
style="fill:#000;stroke-width:.35277778" transform="translate(-104.228 -45.508)"/>
<path d="M131.742 108.266c-1.021-1.299-.873-3.537.381-5.732.928-1.624 4.809-6.948 7.61-10.44l1.132-1.41-1.802-5.226c-2.022-5.86-2.01-5.974.656-6.372l1.468-.219 1.64 3.35c.903 1.843 1.77 3.351 1.928 3.351.158 0 1.775-1.755 3.594-3.9 3.16-3.727 3.357-3.892 4.426-3.694.645.12 1.218.047 1.354-.173.318-.515 1.23.247 1.23 1.027 0 .32-.453 1.134-1.009 1.81-2.267 2.755-7.104 9.27-7.104 9.57 0 .177.975 2.454 2.167 5.059l2.166 4.736-.658.985c-.362.541-.662 1.126-.667 1.299-.005.173-.278.483-.606.69-.832.525-1.447-.115-3.99-4.153-1.164-1.848-2.231-3.365-2.372-3.37-.313-.01-3.79 5.133-6.48 9.581-2.37 3.924-1.938 3.42-3.265 3.801-.956.274-1.194.199-1.799-.57zM131.986 83.677c-2.152-3.847-6.019-9.428-7.579-10.938-.792-.767-1.44-1.575-1.44-1.796 0-.601 1.616-1.22 3.19-1.22 1.698 0 3.496 1.479 5.1 4.193.582.985 1.156 1.794 1.276 1.798.12.004.809-1.651 1.53-3.678 1.547-4.34 5.624-12.778 7.225-14.951 1.373-1.863 3.43-2.865 5.903-2.876 3.234-.013 3.243.13.205 3.297-4.636 4.832-6.764 8.81-11.252 21.037-1.246 3.396-2.39 6.48-2.542 6.852-.23.566-.498.281-1.616-1.718z"
style="fill:#000;stroke-width:.35277775" transform="translate(-104.228 -45.508)"/>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

+16
View File
@@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" preserveAspectRatio="xMidYMid">
<defs>
<linearGradient id="a" x1="15.791%" x2="91.009%" y1="14.737%" y2="85.228%">
<stop offset="0%"/>
<stop offset="100%" stop-color="#FFF"/>
</linearGradient>
<linearGradient id="b" x1="82.136%" x2="-3.113%" y1="85.237%" y2="14.79%">
<stop offset="0%"/>
<stop offset="100%" stop-color="#FFF"/>
</linearGradient>
</defs>
<path fill="url(#a)"
d="M127.783 190.56c56.637 77.208 112.064-21.55 111.982-80.94C239.67 39.404 168.5.16 127.737.16 62.309.159 0 54.232 0 128.216 0 210.45 71.425 256 127.737 256c-12.743-1.835-55.21-10.934-55.78-108.747-.385-66.154 21.58-92.585 55.688-80.958.764.283 37.622 14.823 37.622 62.32 0 47.296-37.484 61.944-37.484 61.944Z"/>
<path fill="url(#b)"
d="M127.717 66.241c-37.424-12.899-83.269 17.946-83.269 79.726C44.448 246.844 119.201 256 128.263 256 193.691 256 256 201.926 256 127.943 256 45.709 184.575.159 128.263.159c15.597-2.16 84.065 16.88 84.065 110.458 0 61.026-51.124 94.248-84.376 80.054-.764-.283-37.623-14.823-37.623-62.32 0-47.297 37.388-62.11 37.388-62.11Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+44
View File
@@ -0,0 +1,44 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128">
<defs>
<clipPath id="b">
<path d="M0 0h128v128H0z"/>
</clipPath>
<filter id="a" width="100%" height="100%" x="0%" y="0%" filterUnits="objectBoundingBox">
<feColorMatrix in="SourceGraphic" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
</filter>
<mask id="d">
<g filter="url(#a)">
<path d="M0 0h128v128H0z" style="fill:#000;fill-opacity:.85098;stroke:none"/>
</g>
</mask>
<g id="c" clip-path="url(#b)">
<path d="M3.625 64h120.75v42.668c0 10.023-7.684 17.707-17.707 17.707H21.332c-10.023 0-17.707-7.684-17.707-17.707Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#000;fill-opacity:1"/>
</g>
</defs>
<path d="M3.625 64h120.75v42.668c0 10.023-7.684 17.707-17.707 17.707H21.332c-10.023 0-17.707-7.684-17.707-17.707Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#000;fill-opacity:1"/>
<path d="M-84.146-15.848c-8.753-8.761-22.952-8.761-31.705 0-8.752 8.753-8.752 22.943 0 31.696 8.753 8.761 22.952 8.761 31.705 0H84.146c8.753 8.761 22.952 8.761 31.705 0 8.752-8.753 8.752-22.943 0-31.696-8.753-8.761-22.952-8.761-31.705 0Zm0 0"
style="fill-rule:nonzero;fill:#ffb13b;fill-opacity:1;stroke-width:38.0086;stroke-linecap:butt;stroke-linejoin:miter;stroke:#000;stroke-opacity:1;stroke-miterlimit:4"
transform="matrix(.42667 0 0 .42667 64 64)"/>
<path d="M-84.146-15.848c-8.759-8.759-22.95-8.759-31.702-.006-8.759 8.759-8.759 22.95 0 31.708 8.753 8.753 22.943 8.753 31.702-.006H84.146c8.759 8.759 22.95 8.759 31.702.006 8.759-8.759 8.759-22.95 0-31.708-8.753-8.753-22.943-8.753-31.702.006Zm0 0"
style="fill-rule:nonzero;fill:#ffb13b;fill-opacity:1;stroke-width:38.0086;stroke-linecap:butt;stroke-linejoin:miter;stroke:#000;stroke-opacity:1;stroke-miterlimit:4"
transform="matrix(.3017 .3017 -.3017 .3017 64 64)"/>
<path d="M-84.146-15.848c-8.753-8.761-22.952-8.761-31.705 0-8.752 8.753-8.752 22.943 0 31.696 8.753 8.761 22.952 8.761 31.705 0H84.146c8.753 8.761 22.952 8.761 31.705 0 8.752-8.753 8.752-22.943 0-31.696-8.753-8.761-22.952-8.761-31.705 0Zm0 0"
style="fill-rule:nonzero;fill:#ffb13b;fill-opacity:1;stroke-width:38.0086;stroke-linecap:butt;stroke-linejoin:miter;stroke:#000;stroke-opacity:1;stroke-miterlimit:4"
transform="matrix(0 .42667 -.42667 0 64 64)"/>
<path d="M-84.146-15.848c-8.759-8.759-22.95-8.759-31.702-.006-8.759 8.759-8.759 22.95 0 31.708 8.753 8.753 22.943 8.753 31.702-.006H84.146c8.759 8.759 22.95 8.759 31.702.006 8.759-8.759 8.759-22.95 0-31.708-8.753-8.753-22.943-8.753-31.702.006Zm0 0"
style="fill-rule:nonzero;fill:#ffb13b;fill-opacity:1;stroke-width:38.0086;stroke-linecap:butt;stroke-linejoin:miter;stroke:#000;stroke-opacity:1;stroke-miterlimit:4"
transform="matrix(-.3017 .3017 -.3017 -.3017 64 64)"/>
<path d="M28.098 57.238a9.56 9.56 0 0 0-13.528 0 9.563 9.563 0 0 0 0 13.524 9.56 9.56 0 0 0 13.528 0h71.804a9.56 9.56 0 0 0 13.528 0 9.563 9.563 0 0 0 0-13.524 9.56 9.56 0 0 0-13.528 0Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#ffb13b;fill-opacity:1"/>
<path d="M43.395 33.832c0-5.285-4.282-9.566-9.563-9.566a9.564 9.564 0 0 0-9.566 9.566c0 5.281 4.28 9.563 9.566 9.563l50.773 50.773c0 5.285 4.282 9.566 9.563 9.566a9.564 9.564 0 0 0 9.566-9.566c0-5.281-4.28-9.563-9.566-9.563Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#ffb13b;fill-opacity:1"/>
<path d="M70.762 28.098a9.56 9.56 0 0 0 0-13.528 9.563 9.563 0 0 0-13.524 0 9.56 9.56 0 0 0 0 13.528v71.804a9.56 9.56 0 0 0 0 13.528 9.563 9.563 0 0 0 13.524 0 9.56 9.56 0 0 0 0-13.528Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#ffb13b;fill-opacity:1"/>
<path d="M94.168 43.395c5.285 0 9.566-4.282 9.566-9.563a9.564 9.564 0 0 0-9.566-9.566c-5.281 0-9.563 4.28-9.563 9.566L33.832 84.605c-5.285 0-9.566 4.282-9.566 9.563a9.564 9.564 0 0 0 9.566 9.566c5.281 0 9.563-4.28 9.563-9.566Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#ffb13b;fill-opacity:1"/>
<use xlink:href="#c" mask="url(#d)"/>
<path d="M21.746 94.14a15.597 15.597 0 0 1-4.586-11.062c0-8.64 7.008-15.644 15.645-15.644 8.64 0 15.648 7.004 15.648 15.644H39.29a6.485 6.485 0 0 0-6.484-6.48 6.482 6.482 0 0 0-4.586 11.058h.004c1.175 1.176 2.152 1.516 4.582 1.903 4.324.449 8.234 1.754 11.062 4.586a15.578 15.578 0 0 1 4.586 11.058c0 8.64-7.008 15.649-15.648 15.649-8.637 0-15.645-7.008-15.645-15.649h9.164a6.485 6.485 0 0 0 6.48 6.484 6.488 6.488 0 0 0 6.485-6.484 6.464 6.464 0 0 0-1.894-4.574h-.004c-1.176-1.176-2.86-1.578-4.586-1.902v-.004c-4.192-.641-8.23-1.75-11.059-4.582ZM79.746 67.434 68.68 120.852h-9.168L48.453 67.434h9.164l6.488 31.285 6.477-31.285ZM95.395 89.559h15.644v15.644h.008c0 8.645-7.012 15.652-15.652 15.652-8.641 0-15.645-7.007-15.645-15.652V83.078h-.004c0-8.64 7.008-15.644 15.649-15.644 8.636 0 15.644 7.004 15.644 15.644h-9.164a6.487 6.487 0 0 0-6.48-6.48 6.484 6.484 0 0 0-6.48 6.48v22.125a6.48 6.48 0 0 0 6.48 6.48 6.483 6.483 0 0 0 6.48-6.476V98.73h-6.48Zm0 0"
style="stroke:none;fill-rule:nonzero;fill:#fff;fill-opacity:1"/>
</svg>

After

Width:  |  Height:  |  Size: 5.2 KiB

+5
View File
@@ -0,0 +1,5 @@
<svg viewBox="0 0 128 128">
<path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"></path>
<path data-name="original" fill="#007acc"
d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"></path>
</svg>

After

Width:  |  Height:  |  Size: 941 B

-295
View File
@@ -1,295 +0,0 @@
import React from "react";
export default function Error404() {
return (
<svg
data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg"
width="1074.392"
height="200"
viewBox="0 0 1074.392 584.231"
>
<ellipse
cx="540.64346"
cy="549.3094"
rx="527.5"
ry="34.9216"
fill="#f2f2f2"
/>
<path
d="M583.47969,324.89424c-85.94407,0-147.651,55.13938-147.651,183.79791,0,145.813,61.70691,184.41057,147.651,184.41057s151.327-42.27352,151.327-184.41057C734.80664,356.75255,669.42376,324.89424,583.47969,324.89424Zm.56495,319.80837c-59.52686,0-90.62592-34.92288-90.62592-135.9163,0-89.11185,32.37209-136.10461,91.899-136.10461s91.899,30.86774,91.899,136.10461C677.21663,607.23367,643.5715,644.70261,584.04464,644.70261Z"
transform="translate(-63.054 -157.8845)"
fill="#2f2e41"
/>
<path
d="M384.36531,591.40121H348.831V486.76183A20.95585,20.95585,0,0,0,327.87517,465.806h-8.32638a20.95585,20.95585,0,0,0-20.95586,20.95585V591.40121H198.36285a11.96327,11.96327,0,0,1-10.57763-17.552l106.0824-200.78034A20.95585,20.95585,0,0,0,284.28724,344.33l-6.26231-2.9572a20.95585,20.95585,0,0,0-27.4293,9.07005L121.21416,592.4754a28.41578,28.41578,0,0,0-3.35584,13.39612v0a28.41583,28.41583,0,0,0,28.41584,28.41583H298.59293v66.16727a25.119,25.119,0,0,0,25.119,25.119h.00005a25.119,25.119,0,0,0,25.119-25.119V634.28739h35.53428a21.44307,21.44307,0,0,0,21.44307-21.44307v0A21.44307,21.44307,0,0,0,384.36531,591.40121Z"
transform="translate(-63.054 -157.8845)"
fill="#0e7ccf"
/>
<path
d="M1042.36183,591.40121h-35.53428V486.76183A20.95585,20.95585,0,0,0,985.87169,465.806h-8.32638a20.95585,20.95585,0,0,0-20.95586,20.95585V591.40121H856.35937a11.96326,11.96326,0,0,1-10.57763-17.552L951.86413,373.06891A20.95586,20.95586,0,0,0,942.28376,344.33l-6.26231-2.9572a20.95586,20.95586,0,0,0-27.42931,9.07005L779.21068,592.4754a28.41578,28.41578,0,0,0-3.35584,13.39612v0a28.41583,28.41583,0,0,0,28.41583,28.41583H956.58945v66.16727a25.119,25.119,0,0,0,25.119,25.119h0a25.119,25.119,0,0,0,25.119-25.119V634.28739h35.53428a21.44307,21.44307,0,0,0,21.44307-21.44307v0A21.44307,21.44307,0,0,0,1042.36183,591.40121Z"
transform="translate(-63.054 -157.8845)"
fill="#0e7ccf"
/>
<path
d="M394.16787,579.148H358.63358V474.50864a20.95585,20.95585,0,0,0-20.95585-20.95586h-8.32638a20.95586,20.95586,0,0,0-20.95586,20.95586V579.148H208.16541a11.96327,11.96327,0,0,1-10.57763-17.552L303.67017,360.81572a20.95586,20.95586,0,0,0-9.58037-28.73893l-6.26231-2.9572a20.95586,20.95586,0,0,0-27.42931,9.07L131.01672,580.2222a28.41582,28.41582,0,0,0-3.35584,13.39613v0a28.41583,28.41583,0,0,0,28.41583,28.41583H308.39549v66.16727a25.119,25.119,0,0,0,25.119,25.119h.00005a25.119,25.119,0,0,0,25.119-25.119V622.0342h35.53429a21.44307,21.44307,0,0,0,21.44307-21.44307v0A21.44307,21.44307,0,0,0,394.16787,579.148Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M1060.74162,579.148h-35.53428V474.50864a20.95586,20.95586,0,0,0-20.95586-20.95586H995.9251a20.95586,20.95586,0,0,0-20.95586,20.95586V579.148H874.73916a11.96327,11.96327,0,0,1-10.57763-17.552L970.24392,360.81572a20.95586,20.95586,0,0,0-9.58037-28.73893l-6.26231-2.9572a20.95586,20.95586,0,0,0-27.42931,9.07L797.59047,580.2222a28.41582,28.41582,0,0,0-3.35584,13.39613v0a28.41583,28.41583,0,0,0,28.41583,28.41583H974.96924v66.16727a25.119,25.119,0,0,0,25.119,25.119h0a25.119,25.119,0,0,0,25.119-25.119V622.0342h35.53428a21.44307,21.44307,0,0,0,21.44307-21.44307v0A21.44307,21.44307,0,0,0,1060.74162,579.148Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M603.0848,313.86637c-85.94407,0-147.651,55.13937-147.651,183.79791,0,145.813,61.70691,184.41057,147.651,184.41057s151.327-42.27352,151.327-184.41057C754.41175,345.72467,689.02887,313.86637,603.0848,313.86637Zm.565,319.80836c-59.52686,0-90.62592-34.92287-90.62592-135.91629,0-89.11185,32.37209-136.10461,91.899-136.10461s91.899,30.86774,91.899,136.10461C696.82174,596.20579,663.17661,633.67473,603.64975,633.67473Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<circle cx="471.14108" cy="18.25044" r="12.90118" fill="#2f2e41" />
<ellipse
cx="502.60736"
cy="46.88476"
rx="36.18622"
ry="46.88476"
fill="#2f2e41"
/>
<path
d="M565.66136,237.49419c-18.1276,0-33.1413-17.27052-35.77576-39.80484a60.9759,60.9759,0,0,0-.41046,7.07991c0,25.89373,16.20114,46.88476,36.18622,46.88476s36.18623-20.991,36.18623-46.88476a60.9759,60.9759,0,0,0-.41046-7.07991C598.80267,220.22367,583.789,237.49419,565.66136,237.49419Z"
transform="translate(-63.054 -157.8845)"
opacity="0.1"
/>
<path
d="M639.29619,342.07326c-.77711,3.19345-4.12792,5.751-7.83881,7.53791-7.80188,3.75682-17.4253,4.87788-26.7597,5.25418a45.17622,45.17622,0,0,1-7.1445-.132,20.5371,20.5371,0,0,1-12.25052-5.63141,1.68086,1.68086,0,0,1,.04371-2.84388c4.9694-5.45888,13.2622-8.80605,21.61613-11.21609,6.3344-1.82743,17.3813-6.56089,24.29013-5.9221C637.94444,329.73864,640.2774,338.04112,639.29619,342.07326Z"
transform="translate(-63.054 -157.8845)"
fill="#3f3d56"
/>
<path
d="M639.29619,342.07326c-.77711,3.19345-4.12792,5.751-7.83881,7.53791-7.80188,3.75682-17.4253,4.87788-26.7597,5.25418a45.17622,45.17622,0,0,1-7.1445-.132,20.5371,20.5371,0,0,1-12.25052-5.63141,1.68086,1.68086,0,0,1,.04371-2.84388c4.9694-5.45888,13.2622-8.80605,21.61613-11.21609,6.3344-1.82743,17.3813-6.56089,24.29013-5.9221C637.94444,329.73864,640.2774,338.04112,639.29619,342.07326Z"
transform="translate(-63.054 -157.8845)"
opacity="0.1"
/>
<path
d="M540.09786,318.2059a19.76967,19.76967,0,0,0-1.1987,15.07476,26.33914,26.33914,0,0,0,8.82921,12.49683c10.09467,8.09163,23.98784,9.20512,36.92477,9.09278a284.6495,284.6495,0,0,0,33.90525-2.32384,40.53788,40.53788,0,0,0,11.00143-2.55442c4.22242-1.82679,7.93282-5.17756,9.436-9.5257s.43625-9.67246-3.13383-12.57428c-3.13686-2.54969-7.46265-2.9004-11.49775-3.14289l-23.08764-1.38745c2.281-2.30839,5.31816-3.614,8.09586-5.29216,3.68523-2.22642,6.13358-5.96455,8.81312-9.33471a129.00143,129.00143,0,0,1,13.4386-13.817c.75138,4.31038,3.4782,7.8499,6.68733,10.824s6.90841,5.36845,10.2439,8.20013c8.0786,6.85838,13.89583,16.1669,22.39215,22.50043a43.82885,43.82885,0,0,0,16.04862-8.0122l-3.30209-5.98141a3.94,3.94,0,0,0-1.24459-1.55282c-.93465-.575-2.13975-.27872-3.225-.44144-2.90082-.435-4.16771-3.784-5.306-6.48737-3.12491-7.42173-9.108-13.17993-14.21783-19.40381a98.00854,98.00854,0,0,1-9.99577-14.72284c-1.71652-3.10162-3.288-6.33107-5.61746-9.00321s-5.59358-4.773-9.1385-4.78051c-3.13222-.00662-6.02122,1.58355-8.71422,3.18308a230.47679,230.47679,0,0,0-23.63018,16.09894c-3.94376,3.0617-7.86306,6.29645-12.48933,8.17393-1.94748.79035-4.00044,1.33052-5.86924,2.29223-3.27313,1.6844-5.75721,4.53435-8.43128,7.06415C566.27712,311.89225,553.219,317.73841,540.09786,318.2059Z"
transform="translate(-63.054 -157.8845)"
fill="#3f3d56"
/>
<path
d="M588.3737,253.98251a23.77444,23.77444,0,0,1-1.73379,8.03335,10.04492,10.04492,0,0,1-5.76772,5.57269,12.37513,12.37513,0,0,1-5.62306.18249,10.88232,10.88232,0,0,1-4.58151-1.56071c-2.16484-1.48837-3.24415-4.14413-3.63748-6.74325-.39333-2.596-.21714-5.24857-.46885-7.86342a42.94439,42.94439,0,0,0-1.202-6.25549c-.16993-.68282-.343-1.36248-.51294-2.04216-.16674-.67967-.33037-1.35935-.48141-2.039-.13847-.63878-.26745-1.28068-.37761-1.92574-.09123-.54436-.173-1.09189-.23285-1.64255a18.42329,18.42329,0,0,0-.80867-4.81118,14.60727,14.60727,0,0,0-1.68659-2.854c-.28635-.40906-.56326-.81811-.81815-1.24292a5.88984,5.88984,0,0,1-.97226-3.74763,3.286,3.286,0,0,1,.14788-.601c.02516-.07552.05347-.151.085-.2234A1.80187,1.80187,0,0,0,560.932,223.07a3.43341,3.43341,0,0,0-.14788-1.77783,11.31808,11.31808,0,0,0-.95974-2.28761c-.2643-.47829-1.16108-1.34046-1.16738-1.888-.0126-1.10132,2.13972-1.98867,3.01134-2.42291a16.79623,16.79623,0,0,1,8.59657-1.74323c1.90369.129,3.9679.71428,5.0189,2.30962.944,1.438.81807,3.30081,1.22085,4.97169a1.47068,1.47068,0,0,0,.29892.66393,1.34135,1.34135,0,0,0,.73948.33982,4.54948,4.54948,0,0,0,1.416.05666h.00315a2.93138,2.93138,0,0,0,.37128-.05351,4.957,4.957,0,0,0,2.03271-.8779q.58531-.15576,1.18-.25488a.25112.25112,0,0,0,.04725-.00945c1.57646,4.97482,1.781,10.30836,3.07111,15.37444.63874,2.52044,1.55442,5.00943,1.6834,7.60225.00945.11327.0126.2297.01575.34612.0189.83386-.04717,1.674-.0126,2.50472a6.981,6.981,0,0,0,.12591,1.1139,15.61121,15.61121,0,0,0,.52546,1.74325l.00945.02831c.05977.18251.11643.36817.16363.55381.03457.1353.06607.26747.09127.40277l.00311.00943A14.93754,14.93754,0,0,1,588.3737,253.98251Z"
transform="translate(-63.054 -157.8845)"
fill="#fbbebe"
/>
<circle cx="503.23669" cy="44.99678" r="18.56511" fill="#fbbebe" />
<path
d="M684.15711,304.03278a30.445,30.445,0,0,0-5.236-14.10317q.72216,4.29513,1.44748,8.58714a3.214,3.214,0,0,1-3.36688-1.03523,10.33663,10.33663,0,0,1-1.76529-3.27565,67.46571,67.46571,0,0,0-8.2095-14.73567c-11.81876-.98489-23.50223-5.88418-33.89555-11.59532-10.39643-5.708-20.12582-12.5519-30.38382-18.50217a43.57346,43.57346,0,0,0-5.54436-2.832c-3.20954-1.287-6.81242-1.95406-9.85526-3.46759-.2045-.1007-.409-.20767-.61043-.31781a12.57834,12.57834,0,0,1-1.94459-1.30584,10.34363,10.34363,0,0,1-.93139-.8559,20.35115,20.35115,0,0,1-3.55886-5.95341c-1.63308-3.61232-2.21524-7.97041-3.84517-11.58274a11.20292,11.20292,0,0,1,2.50156-1.76525h.00315c.13213-.06924.2643-.13532.39962-.19824a11.9404,11.9404,0,0,1,2.00437-.73317q.58531-.15576,1.18-.25488a.25112.25112,0,0,0,.04725-.00945,11.56564,11.56564,0,0,1,5.49085.43424c2.58652.87477,4.76711,2.62115,6.94148,4.27313a114.02006,114.02006,0,0,1,10.14787,8.04908c1.79357,1.718,3.4298,3.606,5.35868,5.16676a42.14393,42.14393,0,0,0,5.05662,3.35116q15.65613,9.32658,31.31525,18.65005c3.53365,2.1051,7.07046,4.21019,10.52553,6.438,5.24855,3.38578,10.30828,7.05474,15.36493,10.72057q4.46978,3.23787,8.93647,6.47889a9.72771,9.72771,0,0,1,2.533,2.3411,8.4724,8.4724,0,0,1,1.12337,3.433A31.3874,31.3874,0,0,1,684.15711,304.03278Z"
transform="translate(-63.054 -157.8845)"
fill="#fbbebe"
/>
<path
d="M592.97726,267.9441c-1.25235,5.61674-6.92888,9.012-9.89617,13.94586-3.68784,6.12335-2.18378,13.241-.79922,20.25484q-3.79485,3.27095-7.59285,6.54186c-1.39708,1.19886-2.79417,2.404-4.29827,3.46444a57.35064,57.35064,0,0,1-6.85966,3.93956q-3.3606,1.72752-6.72119,3.45814a32.1282,32.1282,0,0,1-6.57961,2.78793c-4.41473,1.13278-9.10318.33982-13.4707-.97232a6.08761,6.08761,0,0,1-1.47264-.601,2.39351,2.39351,0,0,1-.69854-.63248,3.91067,3.91067,0,0,1-.44365-2.53933c.44365-7.35052,2.24036-14.54686,4.03081-21.68971a85.2598,85.2598,0,0,1,3.84832-12.57708,85.0766,85.0766,0,0,1,5.41538-10.151,68.36751,68.36751,0,0,1,7.92948-11.51353,18.47881,18.47881,0,0,0,3.67525-4.73882c1.11706-2.54876.686-5.472.91252-8.24732a17.14844,17.14844,0,0,1,1.63312-6.0069v-.00315a17.09326,17.09326,0,0,1,1.74321-2.88232q.45788,1.06671.91568,2.13027.30209.69855.59783,1.394.38706.89679.7678,1.78728,1.09973,2.55823,2.19637,5.11327a21.58968,21.58968,0,0,0,3.33538,5.944,6.49923,6.49923,0,0,0,11.12337-.85275,21.26125,21.26125,0,0,0,2.27185-6.0132,19.21547,19.21547,0,0,0,.25175-7.83509c-.75835-5.00945-2.88862-10.12585-4.43678-14.77972a14.94511,14.94511,0,0,1-1.07927-4.871,3.35144,3.35144,0,0,1,.05662-.56011c.00945-.04719.0189-.09754.02834-.14473a11.9404,11.9404,0,0,1,2.00437-.73317q.58531-.15576,1.18-.25488,2.04378,11.06355,4.09377,22.12709c.0315.17307.0661.34613.09756.52234.19509,1.05726.39333,2.11454.61358,3.16865.19828.95657.41223,1.91.65137,2.85715l.00945.02831c.08182.321.16678.63877.2549.95658l.00311.00943c.2423.86848.5129,1.73065.81811,2.58024C590.93825,257.47528,594.16355,262.62946,592.97726,267.9441Z"
transform="translate(-63.054 -157.8845)"
fill="#0e7ccf"
/>
<path
d="M668.32144,346.87707a6.58269,6.58269,0,0,0,.61,3.14328c1.16192,2.12353,3.94981,2.60625,6.36228,2.80484a188.37688,188.37688,0,0,0,42.2657-1.28774,4.88565,4.88565,0,0,0,2.15136-.66766c1.98985-1.39509.76329-4.7951-1.40951-5.88355s-4.75126-.82614-7.1353-1.29748a22.47912,22.47912,0,0,1-6.67794-2.89617q-7.25234-4.16669-14.293-8.68808c-2.79453-1.79464-6.09272-3.70993-9.23987-2.64587C672.43,332.34264,668.26533,337.68065,668.32144,346.87707Z"
transform="translate(-63.054 -157.8845)"
fill="#3f3d56"
/>
<path
d="M564.43732,240.87367v.00315c-.022.13215-.04406.26116-.07237.39018-.0346.214-.07551.43108-.11642.645-.39018,1.99812-.86847,3.98678-1.41913,5.96287-1.5104,5.45939-3.53366,10.83069-5.54121,16.12332q-8.08055,21.28692-16.16423,42.577c-1.35936,3.57457-2.71554,7.15228-4.26054,10.65448-.516,1.16741-1.04782,2.34424-1.57647,3.53368-1.89427,4.25737-3.713,8.65322-4.31716,13.18436a27.44976,27.44976,0,0,0-.19194,9.04027c.60416,2.97042,2.40718,5.8716,5.22969,6.96977,1.37823.53808,3.35113,1.25865,2.97355,2.69037-.2045.78665-1.09817,1.17055-1.90057,1.3027a7.31234,7.31234,0,0,1-5.966-1.718c-1.50725-1.33732-2.66518-3.41725-4.66959-3.64065-1.38767-.151-2.66518.67966-3.93643,1.26178-5.18564,2.36942-11.22719.71114-16.674-.9723.42794-2.20579,2.64318-3.65953,4.84267-4.10006,2.19949-.44367,4.47449-.129,6.718-.18879a3.50958,3.50958,0,0,0,2.04216-.52549,3.70545,3.70545,0,0,0,1.10132-1.88169,78.96356,78.96356,0,0,0,3.21273-13.14661c.7237-4.66645,1.02581-9.40527,2.05787-14.01507.80241-3.59661,2.0422-7.07991,3.10572-10.61044a224.68238,224.68238,0,0,0,5.0598-22.07674,78.02019,78.02019,0,0,0,1.42543-9.36751c.17935-2.6117.09438-5.236.34609-7.83826a60.8877,60.8877,0,0,1,2.11141-9.99683q1.44427-5.34769,2.88547-10.68911c1.42544-5.2706,2.95465-10.74572,6.567-14.84264a13.96159,13.96159,0,0,1,10.02834-4.78915,9.8819,9.8819,0,0,1,2.13027.22969c.11639.02831.23285.05664.34923.0881a8.63447,8.63447,0,0,1,2.17437.89995c1.11388-.708,1.68025-.45942,2.41974.63246a6.97319,6.97319,0,0,1,.88107,3.79485A52.42378,52.42378,0,0,1,564.43732,240.87367Z"
transform="translate(-63.054 -157.8845)"
fill="#fbbebe"
/>
<path
d="M565.66136,245.0461l-.0472.04719-.25486.25488-2.5299,2.52675-1.23976-5.20767-4.25109-17.854a9.8819,9.8819,0,0,1,2.13027.22969,3.286,3.286,0,0,1,.14788-.601l.20135.68911,1.44118,4.90245,2.72811,9.30773.45,1.53241v.00315Z"
transform="translate(-63.054 -157.8845)"
fill="#0e7ccf"
/>
<path
d="M581.71523,188.0873a12.58165,12.58165,0,0,1-3.70049,8.89583,12.31392,12.31392,0,0,1-1.36008,1.17634,12.52812,12.52812,0,0,1-7.53567,2.52415H554.023a12.5902,12.5902,0,0,1,0-25.18037h15.096A12.62919,12.62919,0,0,1,581.71523,188.0873Z"
transform="translate(-63.054 -157.8845)"
fill="#2f2e41"
/>
<circle cx="532.81499" cy="18.25044" r="12.90118" fill="#2f2e41" />
<path
d="M595.55433,163.23377c-.15825,0-.31505.00628-.472.01193a12.89776,12.89776,0,0,1,0,25.77849c.15694.00565.31374.01193.472.01193a12.90117,12.90117,0,1,0,0-25.80235Z"
transform="translate(-63.054 -157.8845)"
opacity="0.1"
/>
<path
d="M534.19508,163.23377c.15825,0,.31505.00628.472.01193a12.89776,12.89776,0,0,0,0,25.77849c-.157.00565-.31375.01193-.472.01193a12.90118,12.90118,0,0,1,0-25.80235Z"
transform="translate(-63.054 -157.8845)"
opacity="0.1"
/>
<path
d="M576.65466,198.15947a12.52812,12.52812,0,0,1-7.53567,2.52415H554.023a12.52833,12.52833,0,0,1-7.53574-2.52415Z"
transform="translate(-63.054 -157.8845)"
opacity="0.1"
/>
<path
d="M674.13958,291.64042s3.25228,9.37161,6.229,6.87633L677.996,286.26693Z"
transform="translate(-63.054 -157.8845)"
fill="#fbbebe"
/>
<path
d="M1069.91781,577.43414a20.81252,20.81252,0,1,0,2.7716-39.91524l.52093,10.7122-5.06814-9.18045a20.734,20.734,0,0,0-10.68367,11.72261,20.40847,20.40847,0,0,0-1.19713,5.62986A20.80856,20.80856,0,0,0,1069.91781,577.43414Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M1094.99516,701.67756c-1.78906-9.11027,5.9633-17.1868,13.62086-22.43651s16.605-10.40779,19.21775-19.31684c3.755-12.80387-7.43-24.52981-16.13564-34.64176a125.30044,125.30044,0,0,1-16.52359-24.55738c-1.81107-3.5325-3.47558-7.22528-3.95221-11.16626-.68641-5.67546,1.13693-11.32309,2.9739-16.73673q9.17925-27.05169,19.62843-53.65005"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M1070.77493,574.6762a20.81252,20.81252,0,1,0,2.7716-39.91524l.52093,10.7122-5.06815-9.18045a20.734,20.734,0,0,0-10.68366,11.72261,20.40847,20.40847,0,0,0-1.19713,5.62986A20.80855,20.80855,0,0,0,1070.77493,574.6762Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M1092.45136,515.47266a20.78819,20.78819,0,0,1,14.97993-13.19764l1.71361,10.18378,3.177-10.69566a20.81,20.81,0,1,1-19.87057,13.70952Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M1093.59418,511.7954a20.7882,20.7882,0,0,1,14.97993-13.19763l1.71361,10.18378,3.177-10.69567a20.81,20.81,0,1,1-19.87057,13.70952Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M1108.04474,625.48885a20.81,20.81,0,0,0,18.419-37.02267l-2.44121,8.21926-1.73105-10.30382a.36183.36183,0,0,0-.053-.0201,20.81113,20.81113,0,1,0-14.1938,39.12733Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M1109.035,621.76417a20.81,20.81,0,0,0,18.419-37.02267l-2.44121,8.21926-1.73105-10.30382a.3621.3621,0,0,0-.053-.0201,20.81113,20.81113,0,1,0-14.1938,39.12733Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M1086.37782,660.05148a20.80131,20.80131,0,1,0,4.01058-16.29737l9.27267,13.95654-12.66994-7.40768A20.61638,20.61638,0,0,0,1086.37782,660.05148Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M1087.23494,657.29354a20.80131,20.80131,0,1,0,4.01058-16.29737l9.27267,13.95655-12.66994-7.40769A20.61626,20.61626,0,0,0,1087.23494,657.29354Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M72.06146,628.13325a13.67421,13.67421,0,1,0,1.821-26.225l.34227,7.03811-3.32987-6.03172a13.62263,13.62263,0,0,0-7.01936,7.702,13.40883,13.40883,0,0,0-.78654,3.69893A13.6716,13.6716,0,0,0,72.06146,628.13325Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M88.53774,709.76344c-1.17545-5.98561,3.918-11.292,8.94915-14.7412s10.90978-6.8381,12.62642-12.69151c2.46711-8.41238-4.88167-16.11653-10.60142-22.76027A82.32442,82.32442,0,0,1,88.6556,643.43581a22.20962,22.20962,0,0,1-2.59668-7.33643c-.451-3.72888.747-7.43947,1.95391-10.99634q6.03093-17.77346,12.89623-35.24906"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M72.62461,626.32123a13.6742,13.6742,0,1,0,1.821-26.225l.34227,7.03812L71.458,601.10258a13.62262,13.62262,0,0,0-7.01936,7.702,13.40912,13.40912,0,0,0-.78654,3.69892A13.67158,13.67158,0,0,0,72.62461,626.32123Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M86.86641,587.42343a13.65822,13.65822,0,0,1,9.84209-8.67109l1.12587,6.69093,2.08737-7.02725a13.67252,13.67252,0,1,1-13.05533,9.00741Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M87.61727,585.0074a13.65822,13.65822,0,0,1,9.84209-8.67108l1.12587,6.69093L100.6726,576a13.67252,13.67252,0,1,1-13.05533,9.0074Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M97.11155,659.70607a13.67255,13.67255,0,0,0,12.10164-24.32457l-1.60392,5.4002-1.13733-6.76979a.238.238,0,0,0-.0348-.0132,13.67329,13.67329,0,1,0-9.32559,25.70736Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M97.76214,657.25889a13.67255,13.67255,0,0,0,12.10164-24.32457l-1.60392,5.4002-1.13733-6.7698a.238.238,0,0,0-.0348-.0132,13.67329,13.67329,0,1,0-9.32559,25.70737Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M82.876,682.41435a13.66684,13.66684,0,1,0,2.635-10.70767l6.09231,9.16971-8.32438-4.867A13.54535,13.54535,0,0,0,82.876,682.41435Z"
transform="translate(-63.054 -157.8845)"
fill="#57b894"
/>
<path
d="M83.43913,680.60233a13.66684,13.66684,0,1,0,2.635-10.70767l6.09231,9.16971-8.32439-4.867A13.54535,13.54535,0,0,0,83.43913,680.60233Z"
transform="translate(-63.054 -157.8845)"
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<ellipse cx="480.946" cy="319.1155" rx={17} ry={22} fill="#2f2e41" />
<ellipse cx="573.446" cy="319.6155" rx={17} ry={22} fill="#2f2e41" />
<path
d="M623.5,542.5c0,9.94-13.88,18-31,18s-31-8.06-31-18c0-8.61,10.41-15.81,24.32-17.57a50.10353,50.10353,0,0,1,6.68-.43,50.69869,50.69869,0,0,1,11.13,1.2C615.25,528.29,623.5,534.84,623.5,542.5Z"
transform="translate(-63.054 -157.8845)"
fill="#2f2e41"
/>
<ellipse
cx="484.946"
cy="314.1155"
rx={17}
ry={22}
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<ellipse
cx="577.446"
cy="314.6155"
rx={17}
ry={22}
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<ellipse
cx="533.446"
cy="379.6155"
rx={31}
ry={18}
fill="none"
stroke="#3f3d56"
strokeMiterlimit={10}
/>
<path
d="M604,527.2a4.93658,4.93658,0,0,1-1.32,3.392A4.33873,4.33873,0,0,1,599.5,532h-10a4.66433,4.66433,0,0,1-4.5-4.8,4.90458,4.90458,0,0,1,.82-2.74134A47.02,47.02,0,0,1,592.5,524a47.66454,47.66454,0,0,1,11.13,1.28A5.06656,5.06656,0,0,1,604,527.2Z"
transform="translate(-63.054 -157.8845)"
fill="#fff"
/>
<circle cx="484.946" cy="308.1155" r={5} fill="#fff" />
<circle cx="577.946" cy="308.1155" r={5} fill="#fff" />
<circle cx="582.946" cy="355.1155" r={5} fill="#0e7ccf" opacity="0.3" />
<circle cx="460.946" cy="355.1155" r={5} fill="#0e7ccf" opacity="0.3" />
</svg>
);
}
-618
View File
@@ -1,618 +0,0 @@
import React from "react";
export default function Error500() {
return (
<svg
data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
width="1022.7"
height="400"
viewBox="0 0 1022.7 785.81"
>
<defs>
<linearGradient
id="af83dc26-9572-4816-b7a1-1af4f72ff554"
x1="678.2"
y1="821.79"
x2="678.2"
y2="493.4"
gradientTransform="translate(-20.24 29.65) rotate(-2.31)"
gradientUnits="userSpaceOnUse"
>
<stop offset={0} stopColor="gray" stopOpacity="0.25" />
<stop offset="0.54" stopColor="gray" stopOpacity="0.12" />
<stop offset={1} stopColor="gray" stopOpacity="0.1" />
</linearGradient>
</defs>
<title>bug fixing</title>
<ellipse
cx="468.63"
cy="660.88"
rx={425}
ry={33}
fill="#0e7ccf"
opacity="0.1"
/>
<g opacity="0.1">
<path
d="M933.7,529.93c-2.54-7.71-12.84-11.26-23-7.92a24.76,24.76,0,0,0-4.23,1.83c-.65-.18-1.32-.34-2-.46a22.42,22.42,0,0,0,.63-6.79A24.6,24.6,0,0,0,916,495.12a24.63,24.63,0,0,0,10.86-21.47,23.76,23.76,0,0,0,8.23-9.32c4.9-9.7,2.87-20.6-4.54-24.35s-17.4,1.08-22.3,10.78a23.69,23.69,0,0,0-2.63,12.15,24.63,24.63,0,0,0-10.86,21.47,24.63,24.63,0,0,0-10.86,21.47A24.64,24.64,0,0,0,873,527.33a23.76,23.76,0,0,0-8.23,9.32,25.46,25.46,0,0,0-2.08,5.74,21.18,21.18,0,0,0-4.44-4.73,25.38,25.38,0,0,0-1-4.5c-3.34-10.17-12.3-16.37-20-13.83s-11.26,12.83-7.92,23a23.07,23.07,0,0,0,7.56,11.08,25.38,25.38,0,0,0,1,4.5c1.94,5.9,5.77,10.46,10.15,12.75a23.23,23.23,0,0,0-.83,3.9,25.29,25.29,0,0,0-7.54,14.91,25.27,25.27,0,0,0-7.54,14.92,24.63,24.63,0,0,0-5,6.81c-4.91,9.7-2.88,20.61,4.53,24.35s17.4-1.07,22.31-10.78a24.62,24.62,0,0,0,2.5-8.09,25.29,25.29,0,0,0,7.54-14.91,25.27,25.27,0,0,0,7.54-14.92A25.21,25.21,0,0,0,879,571.94,25.21,25.21,0,0,0,886.56,557a24.11,24.11,0,0,0,3.39-4,23.46,23.46,0,0,0,12.27-.77,24.76,24.76,0,0,0,4.23-1.83,23.2,23.2,0,0,0,13.42-.48C930,546.61,936.23,537.65,933.7,529.93Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<g opacity="0.1">
<path
d="M915.77,499.53a21.5,21.5,0,0,1-3.44,2.75,23,23,0,0,1-1.11,8.43,26.18,26.18,0,0,0,2.1-3.43A24.64,24.64,0,0,0,915.77,499.53Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M926.63,478.06a21.5,21.5,0,0,1-3.44,2.75,23,23,0,0,1-1.11,8.43,25.65,25.65,0,0,0,2.1-3.44A24.85,24.85,0,0,0,926.63,478.06Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M902,470.07a21.91,21.91,0,0,1,.17-4.41,24.93,24.93,0,0,0-4.78,6.57,25.63,25.63,0,0,0-1.52,3.73A22.75,22.75,0,0,1,902,470.07Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M833.07,600a23.59,23.59,0,0,1,2.95-3.38,22.92,22.92,0,0,1,.87-4,25.09,25.09,0,0,0-2.29,3.71A25.59,25.59,0,0,0,833.07,600Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M840.61,585.1a23.59,23.59,0,0,1,2.95-3.38,23,23,0,0,1,.83-3.9l0,0a25.68,25.68,0,0,0-2.2,3.59A26.76,26.76,0,0,0,840.61,585.1Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M904.9,521a20.82,20.82,0,0,1-3.43,2.74,22.45,22.45,0,0,1-.63,6.79,18.75,18.75,0,0,1,2,.46,24.76,24.76,0,0,1,4.23-1.83c10.18-3.34,20.47.21,23,7.92a11.68,11.68,0,0,1,.32,6c3.35-3.94,4.74-8.74,3.3-13.14-2.54-7.71-12.84-11.26-23-7.92a24.76,24.76,0,0,0-4.23,1.83c-.65-.18-1.32-.34-2-.46C904.65,522.59,904.79,521.8,904.9,521Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M829.35,607.49a25.09,25.09,0,0,0-2.29,3.71,26.56,26.56,0,0,0-1.54,3.74,24.48,24.48,0,0,1,3-3.4A22.92,22.92,0,0,1,829.35,607.49Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M891.09,491.54a22,22,0,0,1,.17-4.41,24.93,24.93,0,0,0-4.78,6.57,25.63,25.63,0,0,0-1.52,3.73A22.75,22.75,0,0,1,891.09,491.54Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M875.4,579.1a24.29,24.29,0,0,1-1,4.38,26.67,26.67,0,0,0,2.09-3.44,25.49,25.49,0,0,0,1.63-4A24.23,24.23,0,0,1,875.4,579.1Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M860.32,608.92a24.15,24.15,0,0,1-1,4.38,25.65,25.65,0,0,0,2.1-3.44,26.47,26.47,0,0,0,1.63-4A23.57,23.57,0,0,1,860.32,608.92Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M867.86,594a24.11,24.11,0,0,1-1,4.38A26.67,26.67,0,0,0,869,595a25.49,25.49,0,0,0,1.63-4A24.23,24.23,0,0,1,867.86,594Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M882.94,564.19a24,24,0,0,1-1,4.37,25.89,25.89,0,0,0,2.09-3.43,25.48,25.48,0,0,0,1.64-4.07A23.22,23.22,0,0,1,882.94,564.19Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M833.57,526.48c7.72-2.53,16.68,3.66,20,13.83a25.68,25.68,0,0,1,1,4.51,21.18,21.18,0,0,1,4.44,4.73,25.53,25.53,0,0,1,2.08-5.75c.35-.68.73-1.33,1.12-2a21.07,21.07,0,0,0-4-4.18,25.38,25.38,0,0,0-1-4.5c-3.34-10.17-12.3-16.37-20-13.83-4.4,1.44-7.44,5.41-8.62,10.43A11.69,11.69,0,0,1,833.57,526.48Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M869.37,534.48a21.85,21.85,0,0,1,.18-4.4,24.73,24.73,0,0,0-4.79,6.57,25.07,25.07,0,0,0-1.52,3.72A23,23,0,0,1,869.37,534.48Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M880.23,513a21.85,21.85,0,0,1,.18-4.4,24.52,24.52,0,0,0-4.79,6.56,25.63,25.63,0,0,0-1.52,3.73A22.75,22.75,0,0,1,880.23,513Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M852.78,623.83a24.25,24.25,0,0,1-1,4.39,25.73,25.73,0,0,0,3.73-7.49A23.57,23.57,0,0,1,852.78,623.83Z"
transform="translate(-88.65 -57.09)"
/>
</g>
<path
d="M948.52,430.71a23.68,23.68,0,0,0,8.23-9.32c4.91-9.7,2.88-20.61-4.53-24.36s-17.4,1.08-22.31,10.79A23.68,23.68,0,0,0,927.29,420a24.63,24.63,0,0,0-10.86,21.47,23.61,23.61,0,0,0-8.23,9.32,24.69,24.69,0,0,0-1.51,3.69,20.85,20.85,0,0,1,10.77-8A12.24,12.24,0,0,0,933,454.32a20.85,20.85,0,0,1,0,13.41,25.48,25.48,0,0,0,2.08-3.4,23.68,23.68,0,0,0,2.62-12.15,24.57,24.57,0,0,0,10.86-21.47Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<path
d="M1067.88,293.07a72,72,0,0,0,8.72-4.83l-32.33-23.62,38,19.57a72.13,72.13,0,0,0,27-50.31l-64.58.66,64.72-10.82A72,72,0,1,0,966.83,242a72.09,72.09,0,0,0-13.26,8l33.75,46.93L946.8,255.85a72.08,72.08,0,0,0-20.17,65.61,72,72,0,1,0,101.05,51.1,72,72,0,0,0,40.2-79.49Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M933,274.75a71.77,71.77,0,0,0-6.35,46.71,72,72,0,1,0,101.05,51.1C1041.83,366,936.62,267.54,933,274.75Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<circle cx="925.49" cy="102.72" r="10.69" fill="#0e7ccf" />
<circle cx="987.93" cy="109.58" r="10.69" fill="#0e7ccf" />
<circle cx="1012.01" cy="205.64" r="10.69" fill="#0e7ccf" />
<circle cx="979.51" cy="253.61" r="10.69" fill="#0e7ccf" />
<circle cx="935.11" cy="353.24" r="10.69" fill="#0e7ccf" />
<circle cx="935.11" cy="353.24" r="10.69" opacity="0.1" />
<circle cx="836.39" cy="240.4" r="10.69" fill="#0e7ccf" />
<circle cx="836.39" cy="240.4" r="10.69" opacity="0.1" />
<path
d="M913.64,473.32c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.63,1.18-4.91,9.7-2.88,20.6,4.53,24.35s17.4-1.08,22.3-10.78c.21-.4.39-.81.57-1.21C930.21,472.63,920.74,476.92,913.64,473.32Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M903.08,494.2c-7.1-3.59-9.26-13.76-5.1-23.15-.22.39-.44.78-.64,1.18-4.91,9.7-2.88,20.61,4.53,24.35s17.4-1.07,22.31-10.78c.2-.4.39-.8.57-1.21C919.65,493.5,910.19,497.79,903.08,494.2Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M892.52,515.07c-7.1-3.59-9.26-13.76-5.1-23.14-.22.38-.44.77-.64,1.18-4.91,9.7-2.87,20.6,4.54,24.35s17.39-1.08,22.3-10.78c.2-.4.39-.81.57-1.21C909.1,514.38,899.63,518.67,892.52,515.07Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M882,536c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.64,1.17-4.9,9.7-2.87,20.61,4.54,24.36s17.4-1.08,22.3-10.79c.21-.4.39-.8.57-1.21C898.54,535.25,889.07,539.54,882,536Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M871.41,556.82c-7.11-3.59-9.26-13.76-5.11-23.14-.22.38-.43.77-.63,1.18-4.91,9.7-2.88,20.6,4.53,24.35s17.4-1.08,22.31-10.78c.2-.4.39-.81.57-1.21C888,556.13,878.51,560.42,871.41,556.82Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M860.85,577.7c-7.1-3.59-9.26-13.76-5.1-23.14-.22.38-.44.77-.64,1.17-4.91,9.7-2.88,20.61,4.54,24.36S877,579,882,569.3c.2-.4.39-.8.57-1.21C877.42,577,868,581.29,860.85,577.7Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M850.29,598.57c-7.1-3.59-9.26-13.76-5.1-23.14-.22.39-.43.77-.64,1.18-4.9,9.7-2.87,20.6,4.54,24.35s17.4-1.08,22.3-10.78c.21-.4.39-.81.57-1.21C866.87,597.88,857.4,602.17,850.29,598.57Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M839.74,619.45c-7.11-3.59-9.26-13.76-5.11-23.14q-.33.57-.63,1.17c-4.91,9.7-2.88,20.61,4.53,24.36s17.4-1.08,22.31-10.79c.2-.4.38-.8.56-1.21C856.31,618.75,846.84,623,839.74,619.45Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M832.8,633.17c-7.1-3.6-9.26-13.76-5.1-23.15-.22.39-.44.78-.64,1.18-4.91,9.7-2.88,20.61,4.53,24.35s17.4-1.07,22.31-10.78c.2-.4.39-.8.57-1.21C849.37,632.47,839.9,636.76,832.8,633.17Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M1023.59,540.26a37.4,37.4,0,0,0,2-9.79,5.34,5.34,0,1,0-.81-10.62,37.31,37.31,0,0,0-19.64-25.31,5.34,5.34,0,1,0-9.54-4.82,5,5,0,0,0-.48,1.43A37.49,37.49,0,0,0,962.25,501a37.64,37.64,0,0,0-9.82-.29l-4.33,19.71-.26-19a37.42,37.42,0,1,0,20,72,5.28,5.28,0,0,0,2.25,2.16,5.34,5.34,0,0,0,7.32-6.88,37.35,37.35,0,0,0,4.8-3.92,37.45,37.45,0,0,0,39.31-19.83l-20.15-3.39Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<g opacity="0.1">
<path
d="M992.46,549.83c-7.44-9.82-12-21.45-17.25-32.61a136.38,136.38,0,0,0-7.07-13.36l-3.94-4.59c-.66.56-1.32,1.14-2,1.75a37.64,37.64,0,0,0-9.82-.29l-4.33,19.71-.26-19a37.42,37.42,0,1,0,20,72,5.28,5.28,0,0,0,2.25,2.16,5.34,5.34,0,0,0,7.32-6.88,37.35,37.35,0,0,0,4.8-3.92,37.49,37.49,0,0,0,22.44-3.32A52.71,52.71,0,0,1,992.46,549.83Z"
transform="translate(-88.65 -57.09)"
/>
</g>
<path
d="M860.71,507.63a5.34,5.34,0,0,0-4.78-7.75,37.37,37.37,0,0,0-11.7-20.83,37.52,37.52,0,0,0,1.1-11.7L825.68,464l19.08-1.2a38,38,0,0,0-1.41-5.28,5.46,5.46,0,0,0,1.76-2,5.35,5.35,0,0,0-6.59-7.44A37.42,37.42,0,0,0,771.73,479a5.25,5.25,0,0,0-2.66,2.5,5.34,5.34,0,0,0,6.75,7.37,37.53,37.53,0,0,0,7.09,8.65,37.4,37.4,0,0,0,1.74,23.76L811,514.44,787.5,526.8a37.42,37.42,0,0,0,68.91-16.26A5.33,5.33,0,0,0,860.71,507.63Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M860.71,507.63a5.34,5.34,0,0,0-4.78-7.75,37.37,37.37,0,0,0-11.7-20.83c.16-.63.3-1.25.42-1.88a13.18,13.18,0,0,0-1.93,1.71c-3.55,3.89-5.37,9.12-8.88,13.05-4.14,4.64-10.34,7.06-16.53,7.71s-12.42-.3-18.53-1.49c-5.06-1-10.19-2.16-15.32-1.67-.5,0-1,.11-1.46.19.3.29.6.58.91.86a37.4,37.4,0,0,0,1.74,23.76L811,514.44,787.5,526.8a37.42,37.42,0,0,0,68.91-16.26A5.33,5.33,0,0,0,860.71,507.63Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
</g>
<g opacity="0.1">
<path
d="M178.14,568.33c1.28-3.89,6.47-5.68,11.59-4a12.78,12.78,0,0,1,2.13.92c.33-.09.67-.17,1-.23a11.26,11.26,0,0,1-.32-3.42,12.46,12.46,0,0,1-5.47-10.82,11.92,11.92,0,0,1-4.14-4.69,12,12,0,0,1-1.33-6.12,12,12,0,0,1-4.14-4.7C175,530.39,176,524.9,179.75,523s8.77.55,11.24,5.43a12,12,0,0,1,1.32,6.13,12.37,12.37,0,0,1,5.47,10.81,12.4,12.4,0,0,1,5.47,10.82A12.37,12.37,0,0,1,208.72,567a12,12,0,0,1,4.15,4.7,12.66,12.66,0,0,1,1,2.9,10.66,10.66,0,0,1,2.23-2.39,12.58,12.58,0,0,1,.52-2.27c1.69-5.12,6.2-8.24,10.09-7s5.67,6.47,4,11.59a11.67,11.67,0,0,1-3.81,5.59,12.67,12.67,0,0,1-.52,2.26,11.1,11.1,0,0,1-5.11,6.42,12.84,12.84,0,0,1,.42,2,12.57,12.57,0,0,1,2.53,3.43,12.32,12.32,0,0,1,1.26,4.08,12.55,12.55,0,0,1,2.54,3.43,12.39,12.39,0,0,1,1.26,4.08,12.45,12.45,0,0,1,2.54,3.44c2.47,4.88,1.45,10.38-2.28,12.26s-8.77-.54-11.24-5.43a12.48,12.48,0,0,1-1.26-4.08,12.7,12.7,0,0,1-3.8-7.51,12.7,12.7,0,0,1-3.8-7.51,12.6,12.6,0,0,1-2.54-3.43,12.73,12.73,0,0,1-1.26-4.08,12.57,12.57,0,0,1-2.53-3.43,12.32,12.32,0,0,1-1.26-4.08,11.63,11.63,0,0,1-1.71-2,11.9,11.9,0,0,1-6.18-.38,13.29,13.29,0,0,1-2.14-.93,11.61,11.61,0,0,1-6.75-.24C180,576.73,176.87,572.22,178.14,568.33Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<g opacity="0.1">
<path
d="M187.17,553a10.72,10.72,0,0,0,1.74,1.39,11.31,11.31,0,0,0,.56,4.24,11.93,11.93,0,0,1-1.06-1.73A12.46,12.46,0,0,1,187.17,553Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M181.7,542.2a11.21,11.21,0,0,0,1.74,1.38,11.39,11.39,0,0,0,.56,4.25,12.7,12.7,0,0,1-2.3-5.63Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M194.13,538.17a11.11,11.11,0,0,0-.08-2.22,12.66,12.66,0,0,1,2.41,3.31,13,13,0,0,1,.76,1.88A11.42,11.42,0,0,0,194.13,538.17Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M228.83,603.63a11.65,11.65,0,0,0-1.48-1.7,12.4,12.4,0,0,0-.44-2,13.23,13.23,0,0,1,1.15,1.86A13,13,0,0,1,228.83,603.63Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M225,596.12a11.65,11.65,0,0,0-1.48-1.7,11.75,11.75,0,0,0-.42-2h0a12.67,12.67,0,0,1,1.88,3.68Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M192.65,563.84a10.11,10.11,0,0,0,1.73,1.37,10.9,10.9,0,0,0,.32,3.42,10,10,0,0,0-1,.23,13.26,13.26,0,0,0-2.14-.92c-5.12-1.68-10.31.11-11.58,4a5.82,5.82,0,0,0-.17,3,6.93,6.93,0,0,1-1.66-6.61c1.28-3.89,6.47-5.68,11.59-4a12.78,12.78,0,0,1,2.13.92c.33-.09.67-.17,1-.23A10.32,10.32,0,0,1,192.65,563.84Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M230.71,607.4a12.79,12.79,0,0,1,1.15,1.87,13,13,0,0,1,.77,1.88,11.74,11.74,0,0,0-1.48-1.71A12.4,12.4,0,0,0,230.71,607.4Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M199.6,549a11.08,11.08,0,0,0-.08-2.22,12.49,12.49,0,0,1,2.41,3.31,12.87,12.87,0,0,1,.76,1.87A11.38,11.38,0,0,0,199.6,549Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M207.51,593.1a11.94,11.94,0,0,0,.49,2.2,12.63,12.63,0,0,1-1.88-3.77A11.72,11.72,0,0,0,207.51,593.1Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M215.1,608.12a12.66,12.66,0,0,0,.5,2.2,11.93,11.93,0,0,1-1.06-1.73,12.88,12.88,0,0,1-.82-2A13,13,0,0,0,215.1,608.12Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M211.31,600.61a11.94,11.94,0,0,0,.49,2.2,12.88,12.88,0,0,1-1.06-1.73,12.6,12.6,0,0,1-.82-2A11.72,11.72,0,0,0,211.31,600.61Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M203.71,585.58a11.86,11.86,0,0,0,.49,2.21,12.44,12.44,0,0,1-1-1.73,12.23,12.23,0,0,1-.83-2A11.13,11.13,0,0,0,203.71,585.58Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M228.58,566.59c-3.89-1.28-8.4,1.84-10.08,7a12.58,12.58,0,0,0-.52,2.27,10.63,10.63,0,0,0-2.24,2.38,12.83,12.83,0,0,0-1.05-2.9c-.17-.34-.36-.67-.56-1a10.63,10.63,0,0,1,2-2.1,12.58,12.58,0,0,1,.52-2.27c1.69-5.12,6.2-8.24,10.09-7a6.93,6.93,0,0,1,4.34,5.26A5.93,5.93,0,0,0,228.58,566.59Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M210.54,570.62a11.11,11.11,0,0,0-.08-2.22,12.49,12.49,0,0,1,2.41,3.31,13,13,0,0,1,.76,1.88A11.28,11.28,0,0,0,210.54,570.62Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M205.07,559.8a11.13,11.13,0,0,0-.08-2.22,12.83,12.83,0,0,1,2.41,3.31,13,13,0,0,1,.76,1.88A11.42,11.42,0,0,0,205.07,559.8Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M218.9,615.63a11.9,11.9,0,0,0,.5,2.21,12.61,12.61,0,0,1-1.06-1.74,12.88,12.88,0,0,1-.82-2A13,13,0,0,0,218.9,615.63Z"
transform="translate(-88.65 -57.09)"
/>
</g>
<path
d="M170.67,518.34a11.92,11.92,0,0,1-4.14-4.69c-2.47-4.89-1.45-10.38,2.28-12.27s8.77.54,11.24,5.43a11.93,11.93,0,0,1,1.32,6.12,12.4,12.4,0,0,1,5.47,10.82,12,12,0,0,1,4.15,4.69,13.23,13.23,0,0,1,.76,1.86,10.57,10.57,0,0,0-5.43-4,6.16,6.16,0,0,1-7.83,4,10.52,10.52,0,0,0,0,6.75,13.19,13.19,0,0,1-1-1.71,12,12,0,0,1-1.33-6.12,12.43,12.43,0,0,1-5.47-10.82Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<path
d="M110.55,449a36.81,36.81,0,0,1-4.39-2.43l16.28-11.9-19.14,9.85a36.34,36.34,0,0,1-13.59-25.34l32.54.34-32.61-5.46a36.29,36.29,0,1,1,71.81,9.2,36.73,36.73,0,0,1,6.68,4l-17,23.64,20.41-20.68a36.32,36.32,0,0,1,10.16,33.05,36.29,36.29,0,1,1-50.9,25.74,36.28,36.28,0,0,1-20.25-40Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M178.5,439.78a36.12,36.12,0,0,1,3.2,23.53,36.29,36.29,0,1,1-50.9,25.74C123.67,485.74,176.67,436.15,178.5,439.78Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<circle cx="48.97" cy="324.78" r="5.39" fill="#0e7ccf" />
<circle cx="17.51" cy="328.24" r="5.39" fill="#0e7ccf" />
<circle cx="5.39" cy="376.63" r="5.39" fill="#0e7ccf" />
<circle cx="21.76" cy="400.8" r="5.39" fill="#0e7ccf" />
<circle cx="44.12" cy="450.99" r="5.39" fill="#0e7ccf" />
<circle cx="44.12" cy="450.99" r="5.39" opacity="0.1" />
<circle cx="93.85" cy="394.14" r="5.39" fill="#0e7ccf" />
<circle cx="93.85" cy="394.14" r="5.39" opacity="0.1" />
<path
d="M188.25,539.81c3.58-1.81,4.66-6.93,2.57-11.66.11.2.22.39.32.59,2.47,4.89,1.45,10.38-2.29,12.27s-8.76-.54-11.23-5.43c-.1-.2-.2-.4-.29-.61C179.9,539.46,184.67,541.62,188.25,539.81Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M193.56,550.33c3.58-1.81,4.67-6.94,2.58-11.66.11.19.22.39.32.59,2.47,4.89,1.45,10.38-2.29,12.27s-8.76-.54-11.23-5.43c-.11-.2-.2-.41-.29-.61C185.22,550,190,552.14,193.56,550.33Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M198.88,560.84c3.58-1.81,4.67-6.93,2.57-11.66.12.2.22.39.33.6,2.47,4.88,1.44,10.38-2.29,12.26s-8.76-.54-11.23-5.43c-.11-.2-.2-.4-.29-.61C190.53,560.49,195.3,562.65,198.88,560.84Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M204.2,571.36c3.58-1.81,4.67-6.93,2.57-11.66.11.19.22.39.32.59,2.48,4.89,1.45,10.38-2.28,12.27s-8.77-.54-11.24-5.43c-.1-.2-.19-.41-.28-.61C195.85,571,200.62,573.17,204.2,571.36Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M209.52,581.87c3.58-1.81,4.66-6.93,2.57-11.65.11.19.22.39.32.59,2.47,4.89,1.45,10.38-2.28,12.27s-8.77-.55-11.24-5.43c-.1-.21-.19-.41-.29-.61C201.17,581.52,205.94,583.68,209.52,581.87Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M214.84,592.39c3.58-1.81,4.66-6.93,2.57-11.66.11.2.22.39.32.59,2.47,4.89,1.45,10.38-2.28,12.27s-8.77-.54-11.24-5.43c-.1-.2-.2-.4-.29-.61C206.49,592,211.26,594.2,214.84,592.39Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M220.16,602.91c3.57-1.81,4.66-6.94,2.57-11.66.11.19.22.39.32.59,2.47,4.89,1.45,10.38-2.29,12.27s-8.76-.55-11.23-5.43c-.1-.21-.2-.41-.29-.61C211.81,602.55,216.58,604.72,220.16,602.91Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M225.47,613.42c3.58-1.81,4.67-6.93,2.57-11.66.12.2.22.39.33.6,2.47,4.88,1.44,10.38-2.29,12.26s-8.76-.54-11.23-5.43c-.11-.2-.2-.4-.29-.61C217.13,613.07,221.89,615.23,225.47,613.42Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M229,620.33c3.58-1.81,4.66-6.93,2.57-11.66.11.2.22.39.32.6,2.47,4.88,1.45,10.38-2.28,12.26s-8.77-.54-11.24-5.43c-.1-.2-.2-.4-.29-.61C220.62,620,225.39,622.14,229,620.33Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M132.86,573.53a18.57,18.57,0,0,1-1-4.93,2.69,2.69,0,1,1,.41-5.35,18.82,18.82,0,0,1,9.89-12.75,2.69,2.69,0,1,1,4.81-2.43,2.44,2.44,0,0,1,.24.72,18.92,18.92,0,0,1,16.56,5,18.68,18.68,0,0,1,5-.14l2.18,9.92L171,554a18.85,18.85,0,1,1-10.08,36.29,2.76,2.76,0,0,1-1.13,1.09,2.7,2.7,0,0,1-3.7-3.47,18.84,18.84,0,0,1-2.41-2,18.87,18.87,0,0,1-19.8-10l10.15-1.71Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<g opacity="0.1">
<path
d="M148.54,578.35c3.75-5,6.05-10.8,8.69-16.42a66.7,66.7,0,0,1,3.56-6.74l2-2.31c.34.29.67.58,1,.88a18.68,18.68,0,0,1,5-.14l2.18,9.92L171,554a18.85,18.85,0,1,1-10.08,36.29,2.76,2.76,0,0,1-1.13,1.09,2.7,2.7,0,0,1-3.7-3.47,18.84,18.84,0,0,1-2.41-2,19,19,0,0,1-11.31-1.67A26.59,26.59,0,0,0,148.54,578.35Z"
transform="translate(-88.65 -57.09)"
/>
</g>
<path
d="M214.91,557.09a2.68,2.68,0,0,1,1.19-3.61,2.64,2.64,0,0,1,1.22-.29,18.85,18.85,0,0,1,5.89-10.5,18.71,18.71,0,0,1-.55-5.89l9.89-1.66-9.61-.61a18.65,18.65,0,0,1,.72-2.66,2.64,2.64,0,0,1-.89-1,2.7,2.7,0,0,1,3.32-3.75,18.63,18.63,0,0,1,6.87-5.93,18.84,18.84,0,0,1,26.77,21.5,2.69,2.69,0,0,1,.16,4.87,2.7,2.7,0,0,1-2.22.1A18.74,18.74,0,0,1,254.1,552a18.9,18.9,0,0,1-.87,12L240,560.52l11.83,6.23A18.86,18.86,0,0,1,219,565.21a19.11,19.11,0,0,1-1.94-6.65A2.67,2.67,0,0,1,214.91,557.09Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M214.91,557.09a2.68,2.68,0,0,1,1.19-3.61,2.64,2.64,0,0,1,1.22-.29,18.85,18.85,0,0,1,5.89-10.5c-.08-.31-.15-.63-.21-.94a7.27,7.27,0,0,1,1,.86c1.79,2,2.71,4.59,4.47,6.57a12.91,12.91,0,0,0,8.33,3.89,31.54,31.54,0,0,0,9.33-.75,27.35,27.35,0,0,1,7.72-.85l.74.1-.46.43a18.9,18.9,0,0,1-.87,12L240,560.52l11.83,6.23A18.86,18.86,0,0,1,219,565.21a19.11,19.11,0,0,1-1.94-6.65A2.67,2.67,0,0,1,214.91,557.09Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
</g>
<path
d="M435,109a20.23,20.23,0,0,0-11.74,1.28,17.32,17.32,0,0,1-14.1,0,19.76,19.76,0,0,0-16.58.33,10.28,10.28,0,0,1-4.77,1.19c-6.72,0-12.31-6.77-13.47-15.7a13.07,13.07,0,0,0,3.36-3.62c3.94-6.35,10-10.43,16.89-10.43s12.89,4,16.83,10.31a13,13,0,0,0,11.16,6.14h.18C428.06,98.47,432.69,102.76,435,109Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<path
d="M455.42,81l-10.86,6.89,6.59-12a10.74,10.74,0,0,0-6.57-2.34h-.17a12.89,12.89,0,0,1-2.25-.17l-3.69,2.34,1.58-2.87A13.19,13.19,0,0,1,433.61,68L427,72.13l4.16-7.57c-3.85-4.63-9.05-7.47-14.76-7.47-6.85,0-13,4.08-16.9,10.43a12.62,12.62,0,0,1-11.17,6H388c-7.56,0-13.7,8.57-13.7,19.16s6.14,19.15,13.7,19.15a10.28,10.28,0,0,0,4.77-1.19,19.72,19.72,0,0,1,16.58-.32,17.37,17.37,0,0,0,14.1,0,19.75,19.75,0,0,1,16.43.32,10.35,10.35,0,0,0,4.72,1.16c7.57,0,13.7-8.57,13.7-19.15A24.36,24.36,0,0,0,455.42,81Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<path
d="M209,247.54a29,29,0,0,0-16.77,1.82,24.71,24.71,0,0,1-20.14-.05,28.22,28.22,0,0,0-23.68.47,14.75,14.75,0,0,1-6.82,1.7c-9.6,0-17.59-9.67-19.25-22.43a18.41,18.41,0,0,0,4.8-5.17c5.63-9.07,14.35-14.9,24.14-14.9s18.4,5.76,24,14.73a18.52,18.52,0,0,0,16,8.77h.25C199.11,232.47,205.73,238.6,209,247.54Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<path
d="M238.2,207.49l-15.52,9.84,9.42-17.13a15.34,15.34,0,0,0-9.39-3.35h-.25a18.16,18.16,0,0,1-3.22-.24L214,200l2.26-4.1a18.7,18.7,0,0,1-9.2-7l-9.42,6L203.57,184c-5.51-6.61-12.93-10.66-21.09-10.66-9.79,0-18.51,5.82-24.14,14.89a18.05,18.05,0,0,1-16,8.61h-.53c-10.81,0-19.57,12.25-19.57,27.37s8.76,27.37,19.57,27.37a14.61,14.61,0,0,0,6.82-1.71,28.22,28.22,0,0,1,23.68-.46,24.71,24.71,0,0,0,20.14.05,28.25,28.25,0,0,1,23.48.45,14.65,14.65,0,0,0,6.74,1.67c10.81,0,19.57-12.26,19.57-27.37A34.76,34.76,0,0,0,238.2,207.49Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<path
d="M836.62,148a20.24,20.24,0,0,1,11.74,1.28,17.29,17.29,0,0,0,14.09,0,19.76,19.76,0,0,1,16.58.33,10.31,10.31,0,0,0,4.77,1.19c6.72,0,12.32-6.77,13.48-15.7a12.93,12.93,0,0,1-3.36-3.62C890,125.11,883.87,121,877,121s-12.88,4-16.82,10.31A13,13,0,0,1,849,137.48h-.17C843.51,137.47,838.87,141.76,836.62,148Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<path
d="M816.14,120,827,126.87l-6.6-12a10.76,10.76,0,0,1,6.57-2.34h.18a13,13,0,0,0,2.25-.17l3.68,2.34-1.58-2.87A13.21,13.21,0,0,0,838,107l6.59,4.18-4.17-7.57c3.86-4.63,9-7.47,14.77-7.47,6.85,0,13,4.08,16.9,10.43a12.61,12.61,0,0,0,11.17,6h.36c7.57,0,13.7,8.57,13.7,19.16s-6.13,19.15-13.7,19.15a10.34,10.34,0,0,1-4.77-1.19,19.72,19.72,0,0,0-16.58-.32,17.35,17.35,0,0,1-14.09,0,19.77,19.77,0,0,0-16.44.32,10.32,10.32,0,0,1-4.72,1.16c-7.56,0-13.7-8.57-13.7-19.15A24.36,24.36,0,0,1,816.14,120Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
opacity="0.1"
/>
<ellipse
cx="615.63"
cy="756.88"
rx={115}
ry={20}
fill="#0e7ccf"
opacity="0.1"
/>
<polygon
points="555.44 661.88 377.25 659.59 377.78 655.02 386.39 579.63 542.88 579.63 554.39 655.02 555.27 660.74 555.44 661.88"
fill="#d0d2d5"
/>
<polygon
points="555.27 660.74 466.35 660.74 377.25 659.59 377.78 655.02 554.39 655.02 555.27 660.74"
opacity="0.1"
/>
<rect x="347.55" y="656.17" width="236.45" height="5.71" fill="#d0d2d5" />
<path
d="M898.24,183.92A14.87,14.87,0,0,0,883.44,169H223.12a14.87,14.87,0,0,0-14.8,14.94V584.19H898.24Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<path
d="M208.32,580.19v46.88a14.8,14.8,0,0,0,14.8,14.8H883.44a14.8,14.8,0,0,0,14.8-14.8V580.19Z"
transform="translate(-88.65 -57.09)"
fill="#d0d2d5"
/>
<rect x="148.23" y="137.01" width="636.23" height="359.81" fill="#fff" />
<path
d="M556.71,624.08a15.4,15.4,0,0,0,12.13-5.89h0a16.06,16.06,0,0,0,1.2-1.76L561.57,615l9.15.06a15.42,15.42,0,0,0,.29-12.21l-12.27,6.36,11.32-8.32a15.42,15.42,0,1,0-25.47,17.26h0A15.4,15.4,0,0,0,556.71,624.08Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<polygon
points="483.48 584.77 554.57 656.17 543.66 584.77 483.48 584.77"
opacity="0.1"
/>
<rect
x="147.73"
y="137.05"
width="636.92"
height="21.02"
fill="#444053"
opacity="0.1"
/>
<rect
x="368.87"
y="140.71"
width="191.9"
height="12.79"
rx="0.58"
fill="#0e7ccf"
opacity="0.3"
/>
<path
d="M643.72,205.52h-.47l-.17-.15a3.89,3.89,0,0,0,.9-2.49,3.78,3.78,0,1,0-3.77,3.81,3.9,3.9,0,0,0,2.49-.91l.17.15v.47l2.93,2.93.87-.88Zm-3.51,0a2.64,2.64,0,1,1,2.63-2.64A2.62,2.62,0,0,1,640.21,205.52Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<circle cx="159.18" cy="147.56" r="3.85" fill="#fa5959" opacity="0.8" />
<circle cx="169.77" cy="147.56" r="3.85" fill="#fed253" opacity="0.8" />
<circle cx="180.37" cy="147.56" r="3.85" fill="#8ccf4d" opacity="0.8" />
<path
d="M588.7,348.49c-8.73-11.6-21.38-18.92-35.46-18.92s-26.73,7.32-35.46,18.92a38.39,38.39,0,0,0,8.4,12.65,38.28,38.28,0,0,0,62.52-12.65Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M513.17,355.28a9.17,9.17,0,0,1-1.76-1,7.06,7.06,0,0,1-1.94-2.51,7.18,7.18,0,1,0-11.72,1.74,8,8,0,0,0,1.7,1.37,4.94,4.94,0,0,1,1.91,2,14.44,14.44,0,0,0,3.32,4.36,29,29,0,0,0,4.55,3.2A66.31,66.31,0,0,0,505.49,384a27.05,27.05,0,0,0-7.62,1.23,12.29,12.29,0,0,0-3.53,1.76,8.48,8.48,0,0,0-.87-.06,7.19,7.19,0,1,0,6.73,9.72,4.59,4.59,0,0,1,3.71-3,16.75,16.75,0,0,1,1.85-.12,64.4,64.4,0,0,0,8.55,26.67c-4.24,3.29-6.85,6.88-7.95,10.86a3,3,0,0,0-.57.41,6.81,6.81,0,0,0-.84.78A7.18,7.18,0,1,0,517,434.6a4.71,4.71,0,0,1,1.17-5.08c.48-.45,1-.93,1.7-1.46,8.11,9.47,17.76,15.54,29.81,16.26V380.07C533.75,379.2,519.87,368.83,513.17,355.28ZM613,387a7.93,7.93,0,0,0-.87.06,13.56,13.56,0,0,0-3.53-1.76,26.86,26.86,0,0,0-7.62-1.23,67.76,67.76,0,0,0-3.74-19.55,29,29,0,0,0,4.55-3.2,15.58,15.58,0,0,0,3.44-4.57A4.22,4.22,0,0,1,607,355a0,0,0,0,0,0,0,7.18,7.18,0,1,0-10-3.17,6.82,6.82,0,0,1-1.94,2.51,18.85,18.85,0,0,1-1.76,1.29c-6.7,13.54-20.57,23.62-36.48,24.49v64.31c12-.72,21.71-6.82,29.81-16.26.63.5,1.16.95,1.61,1.37a4.86,4.86,0,0,1,1.26,5.23,7.18,7.18,0,1,0,12.08-2.33,6.81,6.81,0,0,0-.84-.78c-.33-.26-.57-.41-.57-.41-1.1-4-3.7-7.57-8-10.86a64.4,64.4,0,0,0,8.55-26.67,15.9,15.9,0,0,1,1.77.12,4.8,4.8,0,0,1,3.85,3,7.18,7.18,0,0,0,13.85-2.18A7.29,7.29,0,0,0,613,387Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M769.65,802.31a9.56,9.56,0,0,0-2.17-2.41c-4.37-4.13-6.4-10.19-7.48-16.13s-1.39-12-3.12-17.81a58.74,58.74,0,0,0-3.52-8.67c-1-2.14-2.26-6.33-4.09-7.83a2.7,2.7,0,0,0-1.26-.61,14.85,14.85,0,0,0-3.62-4.82c-2.86-2.59-6.35-4.65-8.26-8a18,18,0,0,0-1.93-3.29c-1.29-1.42-3.33-2-4.52-3.5-1.55-1.94-1.2-4.72-1-7.19s0-5.43-2.14-6.73c-1.28-.79-2.93-.71-4.26-1.41-2-1-2.79-3.52-2.75-5.77s.74-4.44.92-6.69c.56-7.16-4.16-14.28-2.34-21.22.69-2.63,2.27-4.91,3.44-7.36a15.37,15.37,0,0,0,1-2.54,35.73,35.73,0,0,0,9.74,2.35c-5.51-12.36-4.11-26.72-6.68-40l.33-.45a20.84,20.84,0,0,0,4.22-11.86c0-4.94-2.31-9.56-3.35-14.4-.89-4.11-.85-8.41-2-12.45a37.65,37.65,0,0,0-3.16-7.22q-1.87-3.47-3.93-6.83-1.92-6.36-3.85-12.72c-1.8-5.95-3.65-12-7.15-17.14-1.28-1.88-1.67-5.7-3.64-6.84a8.81,8.81,0,0,0-5.2-.91c-2.78-1.56-5.22-3.81-5.57-6.89a6.68,6.68,0,0,1,.2-2l.34,0c4.4-.4,6.63-4.28,8.92-7.68,3.7-5.5,2.29-12.94,0-19.2a13,13,0,0,0-3-5.29c-3.21-3-8.29-2.34-12.43-3.79-1.39-.48-2.69-1.21-4.11-1.55-2.75-.64-5.63.26-8.15,1.53s-4.87,2.91-7.51,3.91-5.9,1.79-6.55,4.5a5,5,0,0,0,.22,2.73,10.18,10.18,0,0,0,3.09,4.46,17.81,17.81,0,0,0,10.87,24.82c.76,1.22,1.47,2.46,2.12,3.73,1.16,2.24,2.14,4.88,1.74,7.28a22.45,22.45,0,0,0-2,2.45c-2.87,4-4.5,8.69-6,13.37a141.65,141.65,0,0,0-4.83,18.27c-2.44,5.19-5.42,10.15-7.19,15.6a35.21,35.21,0,0,1-9.38-1.26l-8.44-1.91c-2.94-.67-6-1.39-8.3-3.33-1.22-1-2.17-2.33-3.41-3.32s-3.73-2.15-5.09-1.33a4,4,0,0,0-.69.53c-1.24-2.51-2.42-5-3.86-7.43-2.07-3.4-5.15-6.51-9.05-7.16a9.21,9.21,0,0,0-6.79,1.58c-2.28,1.62-3.71,5-2,7.28a13.29,13.29,0,0,0,1.39,1.42,29.2,29.2,0,0,1,3.09,4.29A21.91,21.91,0,0,0,619,596.23l-.35,1c-.71,2.08-2.22,4.59-1.84,6.75l37.54,12.85a23.13,23.13,0,0,0,7.56,1.67,12.21,12.21,0,0,0,3-.4l0,1.92v.08c.1,13.19-2,26.29-2.39,39.47-.07,2.41,0,5,1.52,6.88,1.7,2.06,4.72,2.47,7.35,2q.95-.16,1.86-.42a69.33,69.33,0,0,1,1.92,10.11L677.65,696a27.14,27.14,0,0,1,.39,5.54c-.29,4.19-2.5,7.94-4.1,11.81s-2.55,8.5-.45,12.12c.66,1.12,1.57,2.07,2.16,3.23a13.14,13.14,0,0,1,1,5.68q.23,8.08.44,16.18a1.83,1.83,0,0,0-1.26.25c-2.08,1.62-1.85,9.33-2,11.72-.16,4,0,8.08-.22,12.12A72.22,72.22,0,0,1,671,790.74a10.29,10.29,0,0,1-2.29,4.61,9.74,9.74,0,0,1-4.07,2.11,46.49,46.49,0,0,1-15.41,2.1c-2.11-.07-4.31-.27-6.27.53s-3.54,3-2.83,5c.61,1.68,2.46,2.48,4.13,3.11a65.53,65.53,0,0,1,11,5.06,29.74,29.74,0,0,0,4.25,2.41,21.91,21.91,0,0,0,4.38,1.08l17.73,3.06c3.63.62,8,1,10.31-2,1.25-1.62,1.43-3.82,1.37-5.88-.1-4-.9-8.07-.38-12.07a37.14,37.14,0,0,1,1.86-6.93q2.65-7.87,5.32-15.73c1.78-5.26,3.58-10.57,4.27-16.09.25-2,.23-4.28-1.3-5.53a3.54,3.54,0,0,0-1.32-.68c-.06-4.82-.69-9.65-.42-14.47.07-1.2.19-2.4.29-3.61a17.61,17.61,0,0,1,2.47,2.92c1.71,2.68,2.34,6.22,4.95,8,2.22,1.52,5.51,1.44,7.07,3.64a10.26,10.26,0,0,1,1.12,2.71,19.32,19.32,0,0,0,4,6.35,32,32,0,0,0,2.47,6.34q2.21,4.67,4.4,9.31a108.59,108.59,0,0,0,5,9.77,27.55,27.55,0,0,1,3.35,6.46c1.41,4.94-.89,10.36-4.53,14s-8.44,5.73-13.17,7.68a3.71,3.71,0,0,0-1.34.8,2.59,2.59,0,0,0-.61,1.74c0,2.31,1.9,4.29,4.08,5a15.26,15.26,0,0,0,6.83.25c12.78-1.55,25.52-4.67,36.82-10.88a13,13,0,0,0,4.39-3.39A5.13,5.13,0,0,0,769.65,802.31Z"
transform="translate(-88.65 -57.09)"
fill="url(#af83dc26-9572-4816-b7a1-1af4f72ff554)"
/>
<path
d="M715.64,578.06q3.2,4.91,6,10.06a37,37,0,0,1,3.17,7.17c1.16,4,1.13,8.27,2,12.35,1,4.8,3.34,9.38,3.34,14.3a20.56,20.56,0,0,1-4.22,11.76,55.82,55.82,0,0,1-8.82,9.1,187.62,187.62,0,0,1-12.48-61.21c-.1-2.9-.12-5.89.94-8.6.65-1.7,3.77-6.36,5.78-4.53.73.67.92,3.69,1.37,4.7A36.13,36.13,0,0,0,715.64,578.06Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<path
d="M715.64,578.06q3.2,4.91,6,10.06a37,37,0,0,1,3.17,7.17c1.16,4,1.13,8.27,2,12.35,1,4.8,3.34,9.38,3.34,14.3a20.56,20.56,0,0,1-4.22,11.76,55.82,55.82,0,0,1-8.82,9.1,187.62,187.62,0,0,1-12.48-61.21c-.1-2.9-.12-5.89.94-8.6.65-1.7,3.77-6.36,5.78-4.53.73.67.92,3.69,1.37,4.7A36.13,36.13,0,0,0,715.64,578.06Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M452,441.63c-7.91,7.9-8.86,11.38-13.61,12.95S416.55,465,421.92,474.81l14.44,9.54.42.28,2.21,6.64-21.84,38.88s-36-16.46-39.53,7.89-1.29,31-2.24,44,.31,16.76-2.86,16.76-4.42-8.54-4.42-8.54-.2-.39-.55-1.12c-4.71-9.79-36.68-81.66,14.53-131.06,0,0,23.72-1.56,29.43-28.76,3.94-18.8,17.72-17.18,26.88-13.35a30.38,30.38,0,0,1,8.22,4.83,40.48,40.48,0,0,1,5.89,7C455.11,431.92,456.53,437.09,452,441.63Z"
transform="translate(-88.65 -57.09)"
fill="#d0d2d5"
/>
<path
d="M436.78,484.63l2.21,6.64-21.84,38.88s-36-16.46-39.53,7.89-1.29,31-2.24,44,.31,16.76-2.86,16.76-4.42-8.54-4.42-8.54-.2-.39-.55-1.12c-1.59-12.16-9.65-83.29,19.57-79.51,0,0,23.71,11.08,27.5,6.66,3-3.5,16.32-23.63,21.74-31.89Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M452.5,427.74l-14.44,16.41s-16.77,22.44-20.25,21.49a16.23,16.23,0,0,0-3.17-.37,6.16,6.16,0,0,1-4-10.38c5.72-6,16.26-17.39,16.95-19.92s7.4-13.62,10.76-19.05a30.38,30.38,0,0,1,8.22,4.83A40.48,40.48,0,0,1,452.5,427.74Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M861.06,663.83c-2.45,4.9-15,23.28-20.49,31.31L838,698.92s-1,6.64-17.39-1.59S419.13,526.61,419.13,526.61l-2.61-7.84,19-28.45L857.59,653.39S864.23,657.5,861.06,663.83Z"
transform="translate(-88.65 -57.09)"
fill="#454b69"
/>
<path
d="M840.57,695.14,838,698.92s-1,6.64-17.39-1.59S419.13,526.61,419.13,526.61l-2.61-7.84Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M608.29,589c-3.91-.64-8.25-.33-11.29,2.21a9.29,9.29,0,0,0-3.24,6.16c-.26,2.77,1.35,6.06,4.13,6.27a13.17,13.17,0,0,0,2-.13,29.89,29.89,0,0,1,5.24.44,21.39,21.39,0,0,0,18.23-7.36c2.39-3-.76-4.3-3.58-4.9C615.92,590.87,612.15,589.62,608.29,589Z"
transform="translate(-88.65 -57.09)"
fill="#fbbebe"
/>
<path
d="M675.17,679.31l2.48,17.62a26.84,26.84,0,0,1,.38,5.51c-.29,4.15-2.5,7.87-4.09,11.71s-2.56,8.44-.45,12c.65,1.11,1.56,2.06,2.15,3.21a12.92,12.92,0,0,1,1,5.63l.68,25a157.33,157.33,0,0,0,23.18-.13,1.29,1.29,0,0,0,.84-.26,1.36,1.36,0,0,0,.29-.91c.34-5.85-.68-11.71-.35-17.56.12-2.14.42-4.27.46-6.42.12-8.71-4.18-17.24-2.88-25.85a57,57,0,0,1,1.6-6.43c4.11-15,3.24-30.76,2.33-46.25a1.09,1.09,0,0,0-.2-.7,1.06,1.06,0,0,0-.54-.29,28.45,28.45,0,0,0-25.78,4.9c-1.09.88-3.84,1.73-4.56,2.78-1,1.46.31,2.92.89,4.47A56.89,56.89,0,0,1,675.17,679.31Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<path
d="M675.17,679.31l2.48,17.62a26.84,26.84,0,0,1,.38,5.51c-.29,4.15-2.5,7.87-4.09,11.71s-2.56,8.44-.45,12c.65,1.11,1.56,2.06,2.15,3.21a12.92,12.92,0,0,1,1,5.63l.68,25a157.33,157.33,0,0,0,23.18-.13,1.29,1.29,0,0,0,.84-.26,1.36,1.36,0,0,0,.29-.91c.34-5.85-.68-11.71-.35-17.56.12-2.14.42-4.27.46-6.42.12-8.71-4.18-17.24-2.88-25.85a57,57,0,0,1,1.6-6.43c4.11-15,3.24-30.76,2.33-46.25a1.09,1.09,0,0,0-.2-.7,1.06,1.06,0,0,0-.54-.29,28.45,28.45,0,0,0-25.78,4.9c-1.09.88-3.84,1.73-4.56,2.78-1,1.46.31,2.92.89,4.47A56.89,56.89,0,0,1,675.17,679.31Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M721.54,674c-1.17,2.43-2.74,4.69-3.44,7.3-1.82,6.89,2.89,14,2.33,21.06-.18,2.23-.87,4.4-.92,6.63s.77,4.71,2.75,5.74c1.33.68,3,.61,4.25,1.39,2.11,1.29,2.35,4.22,2.14,6.68s-.56,5.21,1,7.13c1.19,1.49,3.23,2.07,4.51,3.48a17.17,17.17,0,0,1,1.93,3.26c1.91,3.34,5.4,5.38,8.26,8s5.28,6.46,4,10.09c-.94,2.66-3.58,4.3-6.12,5.55a64.93,64.93,0,0,1-14.57,5.15,3.52,3.52,0,0,1-1.67.09,3.57,3.57,0,0,1-1.46-1c-2.95-2.89-6-5.92-7.36-9.81a10.07,10.07,0,0,0-1.12-2.68c-1.56-2.19-4.85-2.11-7.07-3.62-2.6-1.77-3.23-5.28-4.93-7.93s-4.19-4.23-6-6.56c-3.06-3.88-3.81-9.06-6-13.49-.93-1.88-2.12-3.64-2.86-5.6a30.58,30.58,0,0,1-1.37-7.24c-1.41-11.68-5-23.44-2.74-35,.5-2.54,1.27-5,1.59-7.62.55-4.53-.32-9.17.35-13.69a3.77,3.77,0,0,1,1.51-2.91,4,4,0,0,1,1.72-.35,117.28,117.28,0,0,1,17.78.4c3,.29,6.36.9,8.16,3.35,1.53,2.1,1.45,4.91,1.94,7.46.61,3.14,2.2,4.85,3.87,7.31S722.77,671.46,721.54,674Z"
transform="translate(-88.65 -57.09)"
fill="#3f3d56"
/>
<path
d="M698.47,755.26c1.58,0,3.33-.1,4.55.9,1.52,1.25,1.54,3.54,1.3,5.49-.7,5.48-2.49,10.75-4.28,16l-5.32,15.61a36.65,36.65,0,0,0-1.86,6.88c-.52,4,.28,8,.38,12,0,2-.13,4.22-1.38,5.83-2.26,2.91-6.67,2.57-10.3,2l-17.71-3a21.07,21.07,0,0,1-4.38-1.07,30.61,30.61,0,0,1-4.25-2.39,65.42,65.42,0,0,0-11-5c-1.66-.62-3.52-1.41-4.12-3.08-.71-2,.87-4.2,2.83-5s4.15-.6,6.27-.54a47,47,0,0,0,15.4-2.08,9.74,9.74,0,0,0,4.06-2.1A10,10,0,0,0,671,791a70.17,70.17,0,0,0,2.68-16c.21-4,.07-8,.23-12,.1-2.37-.13-10,1.95-11.63,1.59-1.22,8.13,2.15,10.28,2.64A50,50,0,0,0,698.47,755.26Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<path
d="M756.81,766.38c1.73,5.73,2,11.79,3.12,17.68s3.1,11.9,7.47,16a9.87,9.87,0,0,1,2.17,2.4,5.06,5.06,0,0,1-.75,5.23,13.13,13.13,0,0,1-4.39,3.37c-11.29,6.16-24,9.27-36.81,10.81a15.51,15.51,0,0,1-6.82-.25c-2.18-.74-4.11-2.7-4.07-5a2.55,2.55,0,0,1,.6-1.73,3.73,3.73,0,0,1,1.35-.79c4.72-1.94,9.51-4.05,13.16-7.63s5.94-9,4.53-13.86A27.42,27.42,0,0,0,733,786.2a108.35,108.35,0,0,1-5-9.69l-4.4-9.23c-1.29-2.7-2.59-5.48-2.81-8.46a40.6,40.6,0,0,0,16.22-2.6,25.51,25.51,0,0,0,6.67-4c1.7-1.42,3.25-4.07,5.54-2.22,1.84,1.48,3,5.65,4.08,7.76A57,57,0,0,1,756.81,766.38Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<path
d="M692.33,537.19c.44,3.84,4.16,6.37,7.71,7.89l-22.47,7.17c1.45-2.78.28-6.18-1.16-9a50.93,50.93,0,0,0-4-6.41c-.22-.31-.47-.7-.31-1.06a1.12,1.12,0,0,1,.63-.49c4.62-2.06,9.38-4.19,14.43-4.94,1.46-.21,4.22-.79,5.31.69S692.12,535.42,692.33,537.19Z"
transform="translate(-88.65 -57.09)"
fill="#fbbebe"
/>
<path
d="M692.33,537.19c.44,3.84,4.16,6.37,7.71,7.89l-22.47,7.17c1.45-2.78.28-6.18-1.16-9a50.93,50.93,0,0,0-4-6.41c-.22-.31-.47-.7-.31-1.06a1.12,1.12,0,0,1,.63-.49c4.62-2.06,9.38-4.19,14.43-4.94,1.46-.21,4.22-.79,5.31.69S692.12,535.42,692.33,537.19Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<circle cx="590.62" cy="465.59" r="17.62" fill="#fbbebe" />
<path
d="M664,667.68c1.71,2.05,4.72,2.45,7.35,2,6.15-1,11.18-5.53,17.2-7.16,7.38-2,15.19.57,22.16,3.72s13.9,7,21.52,7.54c-6.89-15.36-2.95-33.84-9.54-49.33-1.61-3.79-3.86-7.44-4.22-11.54-.45-5.09,2.09-10,2.48-15.06.36-4.51-1-9-2.3-13.3q-2.41-7.92-4.82-15.84c-1.8-5.91-3.65-11.92-7.14-17-1.29-1.87-1.68-5.66-3.64-6.79-4.28-2.47-10.77.64-15.41.81s-8.87,3.47-11.58,7.2c-2.87,3.94-4.5,8.63-6,13.27a126.15,126.15,0,0,0-5.33,21.23c-.15,1.08-.28,2.16-.38,3.25-1,10.27.46,20.6.54,30.92v.07c.1,13.09-2,26.1-2.39,39.18C662.46,663.24,662.52,665.85,664,667.68Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<path
d="M664.92,621.61c3.45-.87,6.57-3.1,9.25-5.54a38.67,38.67,0,0,0,6.14-7A49.86,49.86,0,0,0,685.6,598a129.36,129.36,0,0,0,7-32.27c.26-3,.34-6.22-1.45-8.6a7.24,7.24,0,0,0-8.75-2.12c-2.36,1.15-3.89,3.48-5.31,5.71-2.81,4.42-5.64,8.9-7.45,13.82-.8,2.18-1.39,4.42-2.17,6.61a61,61,0,0,1-2.74,6.33c-.15,1.08-.28,2.16-.38,3.25C663.42,601,664.84,611.29,664.92,621.61Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<path
d="M691.1,555.2c1.79,2.38,1.71,5.63,1.46,8.59a129.18,129.18,0,0,1-7,32.27,49.43,49.43,0,0,1-5.29,11.16,39.07,39.07,0,0,1-6.14,7c-3.4,3.1-7.54,5.87-12.15,5.91a23.16,23.16,0,0,1-7.56-1.65L616.87,605.7c-.38-2.14,1.13-4.64,1.84-6.7l2-5.93c.57-1.64,1.23-3.41,2.72-4.3s3.85.33,5.09,1.32,2.18,2.29,3.4,3.3c2.31,1.92,5.36,2.64,8.3,3.3l8.43,1.89a35.2,35.2,0,0,0,9.38,1.25c2.35-7.18,6.82-13.5,9.35-20.62.78-2.18,1.37-4.43,2.18-6.61,1.8-4.92,4.64-9.39,7.45-13.82,1.41-2.22,2.94-4.55,5.31-5.71A7.23,7.23,0,0,1,691.1,555.2Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<path
d="M684.89,526.66a8.89,8.89,0,0,0-1.06-3.3,2.77,2.77,0,0,0-3-1.32c-1.76.55-2.35,3.27-4.19,3.36-1.24.06-2.13-1.2-2.52-2.38s-.6-2.53-1.53-3.36a5.7,5.7,0,0,0-2.18-1c-4.27-1.35-8.68-3.84-10.1-8.09a4.84,4.84,0,0,1-.23-2.71c.65-2.69,4-3.5,6.55-4.47s5-2.63,7.5-3.89,5.4-2.15,8.15-1.51a42.47,42.47,0,0,1,4.11,1.53c4.14,1.44,9.21.77,12.42,3.76a12.83,12.83,0,0,1,3,5.24c2.24,6.22,3.66,13.6-.05,19.06-2.29,3.37-4.51,7.22-8.91,7.63C687.73,535.64,685.7,531,684.89,526.66Z"
transform="translate(-88.65 -57.09)"
fill="#2f2e41"
/>
<g opacity="0.1">
<path
d="M677.07,520.9c-.39-1.18-.6-2.53-1.52-3.36a5.7,5.7,0,0,0-2.18-1c-4.28-1.35-8.68-3.84-10.11-8.09a4.93,4.93,0,0,1-.22-2.71,3.39,3.39,0,0,1,.53-1.19c-1.63.71-3.05,1.65-3.45,3.31a4.84,4.84,0,0,0,.23,2.71c1.42,4.25,5.83,6.74,10.1,8.09a5.7,5.7,0,0,1,2.18,1c.93.83,1.13,2.17,1.53,3.36s1.28,2.44,2.52,2.38,1.84-1.19,2.63-2.14C678.22,523.12,677.43,522,677.07,520.9Z"
transform="translate(-88.65 -57.09)"
/>
<path
d="M695.79,533.06c-5.14.47-7.17-4.21-8-8.52a8.7,8.7,0,0,0-1-3.3,2.78,2.78,0,0,0-3-1.32,5.32,5.32,0,0,0-2.21,2,3,3,0,0,1,2.26,1.4,8.89,8.89,0,0,1,1.06,3.3c.81,4.31,2.84,9,8,8.52a8.25,8.25,0,0,0,5.28-2.74A7.46,7.46,0,0,1,695.79,533.06Z"
transform="translate(-88.65 -57.09)"
/>
</g>
<ellipse cx="813.11" cy="655.78" rx="32.29" ry="6.21" fill="#0e7ccf" />
<ellipse cx="812.57" cy="653.14" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="647.12" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="641.11" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="635.09" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="629.07" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="623.06" rx="3.76" ry="4.92" fill="#3f3d56" />
<ellipse cx="812.57" cy="617.04" rx="3.76" ry="4.92" fill="#3f3d56" />
<path
d="M915.29,633a18.19,18.19,0,0,0,1.4-2.06l-9.88-1.62,10.69.07a18.11,18.11,0,0,0,.34-14.27l-14.34,7.44,13.22-9.72A18,18,0,1,0,887,633a17.92,17.92,0,0,0-2.06,3.28l12.83,6.67-13.68-4.59A18,18,0,0,0,887,655.24a18,18,0,1,0,28.31,0,18,18,0,0,0,0-22.27Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M883.12,644.1A17.91,17.91,0,0,0,887,655.24a18,18,0,1,0,28.31,0C917.7,652.17,883.12,642.08,883.12,644.1Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
<ellipse cx="148.42" cy="776.87" rx="46.49" ry="8.94" fill="#0e7ccf" />
<ellipse cx="147.64" cy="773.07" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="764.41" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="755.75" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="747.09" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="738.43" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="729.76" rx="5.41" ry="7.09" fill="#3f3d56" />
<ellipse cx="147.64" cy="721.1" rx="5.41" ry="7.09" fill="#3f3d56" />
<path
d="M256.55,718.93a27.23,27.23,0,0,0,2-3l-14.22-2.34,15.38.12a26,26,0,0,0,.49-20.55L239.58,703.9l19-14a25.93,25.93,0,1,0-42.83,29,25.83,25.83,0,0,0-3,4.72l18.47,9.6-19.69-6.61A25.93,25.93,0,0,0,215.79,751a25.93,25.93,0,1,0,40.76,0,25.92,25.92,0,0,0,0-32.06Z"
transform="translate(-88.65 -57.09)"
fill="#0e7ccf"
/>
<path
d="M210.24,735a25.85,25.85,0,0,0,5.55,16,25.93,25.93,0,1,0,40.76,0C260,746.58,210.24,732.05,210.24,735Z"
transform="translate(-88.65 -57.09)"
opacity="0.1"
/>
</svg>
);
}
-25
View File
@@ -1,25 +0,0 @@
import React from "react";
export default function Npm() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
id="npm"
x="0px"
y="0px"
enableBackground="new 0 0 780 250"
viewBox="0 0 780 250"
xmlSpace="preserve"
height={20}
style={{
marginRight: 10
}}
>
<style dangerouslySetInnerHTML={{ __html: ".st0{fill:#C12127;}" }} />
<path
d="M240 250h100v-50h100V0H240v250zM340 50h50v100h-50V50zM480 0v200h100V50h50v150h50V50h50v150h50V0H480zM0 200h100V50h50v150h50V0H0v200z"
className="st0"
/>
</svg>
);
}
-93
View File
@@ -1,93 +0,0 @@
import uniqBy from "lodash/uniqBy";
import isEmpty from "lodash/isEmpty";
/**
* This is a babel plugin that converts an object to PropTypes
* @param t
* @returns {{visitor: {ArrayExpression: (function(*)), NullLiteral: (function(*)), StringLiteral: (function(*)), NumericLiteral: (function(*)), ArrowFunctionExpression: (function(*)), FunctionExpression: (function(*)), BooleanLiteral: (function(*)), Program: (function(*, *)), ObjectExpression: (function(*))}}}
*/
export default function BabelPluginJsToMobxStateTree({ types: t }) {
return {
visitor: {
ArrayExpression(path) {
// if (t.isCallExpression(path.parent)) return;
let uniqueElements = uniqBy(path.node.elements, "type");
if (t.isObjectExpression(uniqueElements[0])) {
uniqueElements = [
t.callExpression(
t.memberExpression(t.identifier("t"), t.identifier("model")),
uniqueElements
)
];
}
if (
(!isEmpty(uniqueElements) && uniqueElements.length === 1) ||
t.isCallExpression(uniqueElements)
) {
path.replaceWith(
t.callExpression(
t.memberExpression(t.identifier("t"), t.identifier("array")),
uniqueElements
)
);
} else {
path.replaceWith(t.identifier("t.array"));
}
},
NullLiteral(path) {
path.replaceWith(t.identifier("t.null"));
},
StringLiteral(path) {
if (path.parentKey === "key") return;
path.replaceWith(t.identifier(`t.string`));
},
NumericLiteral(path) {
path.replaceWith(t.identifier("t.number"));
},
ArrowFunctionExpression(path) {
path.replaceWith(t.identifier("t.frozen"));
},
FunctionExpression(path) {
path.replaceWith(t.identifier("t.frozen"));
},
BooleanLiteral(path) {
path.replaceWith(t.identifier("t.boolean"));
},
Program(path) {
path.traverse({
enter(path) {
t.removeComments(path.node);
}
});
},
ObjectProperty(path) {
if (t.isStringLiteral(path.node.key)) {
path.node.key = t.identifier(path.node.key.value);
}
},
ObjectExpression(path) {
if (t.isCallExpression(path.parent)) return;
const elements = [path.node];
path.replaceWith(
t.callExpression(
t.memberExpression(t.identifier("t"), t.identifier("model")),
elements
)
);
}
}
};
}
-49062
View File
File diff suppressed because it is too large. Load diff
-200
View File
@@ -1,200 +0,0 @@
function checkIfNeededToAddUndefinedType(obj, objectKey) {
const temporaryObject = {};
let maxLenghtOfObject = 0;
Object.keys(obj).forEach(currentKey => {
// check if it's our Object,
// like awards.editions in awards.editions.outcome
if (currentKey.includes(objectKey) && currentKey !== objectKey) {
temporaryObject[currentKey] = obj[currentKey];
}
});
// We need to check the local maximum
Object.keys(temporaryObject).forEach(key => {
const currentKeyLength = temporaryObject[key].length;
if (currentKeyLength > maxLenghtOfObject)
maxLenghtOfObject = currentKeyLength;
});
// If the maximum is bigger than the current value,
// but only one child in, we can also have an undefined.
Object.keys(temporaryObject).forEach(key => {
if (key.split(".").length < 2) {
if (maxLenghtOfObject > temporaryObject[key].length) {
this[key].push("undefined");
}
}
});
}
function keepUniqueTypes(obj, jsonObjects) {
const temporaryObject = obj;
const remainingObject = {};
const numberOfJSONDefinitions = jsonObjects.length;
Object.keys(obj).forEach(objectKey => {
if (!objectKey.includes(".")) {
if (obj[objectKey].length < numberOfJSONDefinitions) {
temporaryObject[objectKey].push("undefined");
}
}
obj[objectKey].forEach(anyValue => {
if (anyValue === "object" || anyValue === "object[]") {
checkIfNeededToAddUndefinedType.bind(temporaryObject, obj, objectKey)();
}
});
});
Object.keys(temporaryObject).forEach(key => {
remainingObject[key] = getUnique(temporaryObject[key]);
});
return remainingObject;
}
/**
* @param {Array} array - The array that needs to be ded-duplicated
* @returns {Array}
*/
function getUnique(array) {
const u = {};
const a = [];
for (let i = 0, l = array.length; i < l; ++i) {
if (u.hasOwnProperty(array[i])) continue;
a.push(array[i]);
u[array[i]] = 1;
}
return a;
}
/**
* @param {*} value
* @returns {string} currentType - lowerCased type of value
*/
function getTypeOfValue(value) {
let currentType = Object.prototype.toString
.call(value)
.split(" ")[1]
.slice(0, -1)
.toLowerCase();
if (!currentType) currentType = "*";
return currentType;
}
/**
* @param {Array} array - The array that we want to parse
* @param {string} objectName - Usually the Prefix - Root do no have ObjectName
*/
function parseArray(array, objectName) {
const currentArrayTypes = [];
const prefix = objectName ? `${objectName}` : "";
array.forEach(currentValue => {
currentArrayTypes.push(`${getTypeOfValue(currentValue)}[]`);
});
if (!(objectName in this)) this[objectName] = [];
this[objectName].push(getUnique(currentArrayTypes).join("|"));
array.forEach(currentValue => {
const currentValueType = getTypeOfValue(currentValue);
if (currentValueType === "array") {
parseArray.bind(this, currentValue, prefix)();
} else if (currentValueType === "object") {
parseObject.bind(this, currentValue, prefix, true)();
}
});
}
/**
* @param {object} obj - The object that we want to parse
* @param {string} objectName - Usually the Prefix - Root do no have ObjectName
* @param {boolean} doNotReinsert - If we want to reinsert the type, usually when we parse
* an array of objects, we do not want to reinsert.
*/
function parseObject(obj, objectName, doNotReinsert = false) {
const prefix = objectName ? `${objectName}.` : "";
Object.keys(obj).forEach(propertyName => {
const currentValue = obj[propertyName];
const propertyType = getTypeOfValue(currentValue);
const currentPrefix = `${prefix}${propertyName}`;
let result = null;
// Root Object don't have a objectName
if (!doNotReinsert && objectName) {
if (!(objectName in this)) this[objectName] = [];
this[objectName].push("object");
}
// If it's Array, we need the values inside.
if (propertyType === "array")
parseArray.bind(this, currentValue, currentPrefix)();
else if (propertyType === "object")
parseObject.bind(this, currentValue, currentPrefix)();
else {
result = propertyType;
if (!(currentPrefix in this)) this[currentPrefix] = [];
this[currentPrefix].push(result);
}
});
}
function ParseRootDefinition(obj) {
// 1. What is the default type for our Definition?
const jsonType = typeof obj;
if (jsonType === "array") parseArray.bind(this, obj)();
else if (jsonType === "object") parseObject.bind(this, obj)();
}
/**
* @param {Object} obj
* @param {Object[]} jsonObjects
*/
function printTheTypeDef(obj, jsonObjects) {
let output = "";
// 0. A default name for our Definition
const jsonDef = "json";
const jsonTypes = [];
Object.keys(jsonObjects).forEach(key => {
jsonTypes.push(getTypeOfValue(jsonObjects[key]));
});
output = `/** @typedef {${getUnique(jsonTypes)}} ${jsonDef} \n`;
Object.keys(obj).forEach(key => {
output += `* @property {${obj[key].join("|")}} ${key} \n`;
});
output += "*/";
return output;
}
/**
* @param {Array} jsonObjects
*/
function goThroughAndParse(jsonObjects) {
const theObjectDefinition = {};
jsonObjects.forEach(obj =>
ParseRootDefinition.bind(theObjectDefinition, obj)()
);
return printTheTypeDef(
keepUniqueTypes(theObjectDefinition, jsonObjects),
jsonObjects
);
}
export function convert(json) {
const jsonObjects = [];
jsonObjects.push(JSON.parse(json));
return goThroughAndParse(jsonObjects);
}
-220
View File
@@ -1,220 +0,0 @@
import { Pane, Alert, Spinner } from "evergreen-ui";
import EditorPanel, { EditorPanelProps } from "@components/EditorPanel";
import * as React from "react";
import { useEffect, useState } from "react";
import { Language, useData } from "@hooks/useData";
import { useRouter } from "next/router";
import { activeRouteData } from "@utils/routes";
import PrettierWorker from "@workers/prettier.worker";
import { getWorker } from "@utils/workerWrapper";
let prettierWorker;
function getEditorLanguage(lang: Language) {
const mapping = {
flow: "typescript"
};
return mapping[lang] || lang;
}
export type Transformer = (args: {
value: string;
splitEditorValue?: string;
}) => Promise<string>;
export interface ConversionPanelProps {
splitTitle?: string;
splitLanguage?: Language;
editorTitle: string;
editorLanguage: Language;
editorDefaultValue?: string;
resultTitle: React.ReactNode;
resultLanguage: Language;
splitEditorProps?: Partial<EditorPanelProps>;
splitEditorDefaultValue?: string;
editorProps?: Partial<EditorPanelProps>;
resultEditorProps?: Partial<EditorPanelProps>;
transformer: Transformer;
defaultSplitValue?: string;
editorSettingsElement?: EditorPanelProps["settingElement"];
resultSettingsElement?: EditorPanelProps["settingElement"];
settings?: any;
}
const ConversionPanel: React.FunctionComponent<ConversionPanelProps> = function({
splitEditorProps,
editorProps,
resultEditorProps,
transformer,
splitLanguage,
splitTitle,
editorLanguage,
editorTitle,
resultLanguage,
resultTitle,
editorSettingsElement,
settings,
editorDefaultValue,
splitEditorDefaultValue,
resultSettingsElement
}) {
const [value, setValue] = useData(editorDefaultValue || editorLanguage);
const [splitValue, setSplitValue] = useData(
splitEditorDefaultValue || splitLanguage
);
const [result, setResult] = useState("");
const [message, setMessage] = useState("");
const [showUpdateSpinner, toggleUpdateSpinner] = useState(false);
const router = useRouter();
const route = activeRouteData(router.pathname);
let packageDetails;
if (route) {
const { packageUrl, packageName } = route;
packageDetails =
packageName && packageUrl
? {
name: packageName,
url: packageUrl
}
: undefined;
}
useEffect(() => {
async function transform() {
try {
toggleUpdateSpinner(true);
prettierWorker = prettierWorker || getWorker(PrettierWorker);
const result = await transformer({
value,
splitEditorValue: splitTitle ? splitValue : undefined
});
let prettyResult = await prettierWorker.send({
value: result,
language: resultLanguage
});
// Fix for #319
if (prettyResult.startsWith(";<")) {
prettyResult = prettyResult.slice(1);
}
setResult(prettyResult);
setMessage("");
} catch (e) {
console.error(e);
setMessage(e.message);
}
toggleUpdateSpinner(false);
}
transform();
}, [splitValue, value, splitTitle, settings]);
return (
<>
<Pane
display="flex"
flexDirection="row"
overflow="hidden"
flex={1}
height={"calc(100vh - 40px)"}
>
<Pane
display="flex"
flex={1}
borderRight
flexDirection="column"
overflow="hidden"
>
<EditorPanel
language={getEditorLanguage(editorLanguage)}
onChange={setValue}
hasLoad
defaultValue={value}
id={1}
hasCopy={false}
title={editorTitle}
settingElement={editorSettingsElement}
hasClear
{...editorProps}
/>
{splitTitle && (
<Pane display="flex" flex={1} borderTop>
<EditorPanel
title={splitTitle}
defaultValue={splitValue}
language={getEditorLanguage(splitLanguage)}
id={2}
hasCopy={false}
onChange={setSplitValue}
hasLoad
hasClear
{...splitEditorProps}
/>
</Pane>
)}
</Pane>
<Pane display="flex" flex={1} position="relative">
{showUpdateSpinner && (
<Pane
display="inline-flex"
position="absolute"
backgroundColor="#fff"
zIndex={9}
borderRadius={"50%"}
paddingX={8}
paddingY={8}
elevation={1}
top={50}
right={30}
>
<Spinner
css={{
"& circle": {
stroke: "#0e7ccf"
}
}}
size={32}
/>
</Pane>
)}
<EditorPanel
title={resultTitle}
defaultValue={result}
language={getEditorLanguage(resultLanguage)}
id={3}
editable={false}
hasPrettier={false}
settingElement={resultSettingsElement}
packageDetails={packageDetails}
{...resultEditorProps}
/>
</Pane>
</Pane>
{message && (
<Alert
paddingY={15}
paddingX={20}
left={240}
right={0}
position="absolute"
intent="danger"
bottom={0}
title={message}
backgroundColor="#FAE2E2"
zIndex={3}
/>
)}
</>
);
};
export default React.memo(ConversionPanel);
-296
View File
@@ -1,296 +0,0 @@
import {
Button,
FilePicker,
Heading,
HTMLInputEvent,
IconButton,
Pane,
Popover,
TextInput,
toaster,
Tooltip
} from "evergreen-ui";
import React, { useCallback, useEffect, useRef, useState } from "react";
import dynamic from "next/dynamic";
import copy from "clipboard-copy";
import Npm from "@assets/svgs/Npm";
import { useDropzone } from "react-dropzone";
export interface EditorPanelProps {
editable?: boolean;
language?: string;
defaultValue: string;
title: React.ReactNode;
hasCopy?: boolean;
hasPrettier?: boolean;
id: string | number;
onChange?: (value: string) => void;
hasLoad?: boolean;
hasClear?: boolean;
settingElement?: (args: { toggle: () => void; open: boolean }) => JSX.Element;
alertMessage?: React.ReactNode;
topNotifications?: (args: {
toggleSettings: () => void;
isSettingsOpen: boolean;
}) => React.ReactNode;
previewElement?: (value: string) => React.ReactNode;
acceptFiles?: string | string[];
packageDetails?: {
name: string;
url: string;
};
}
const Monaco = dynamic(() => import("../components/Monaco"), {
ssr: false
});
export default function EditorPanel({
editable = true,
title,
settingElement,
hasLoad,
acceptFiles,
hasClear,
hasCopy = true,
topNotifications,
language,
defaultValue,
onChange,
id,
packageDetails
}: EditorPanelProps) {
const [showSettingsDialogue, setSettingsDialog] = useState(false);
const [value, setValue] = useState(defaultValue);
const [fetchingUrl, setFetchingUrl] = useState("");
const options = {
fontSize: 14,
readOnly: !editable,
codeLens: false,
fontFamily: "Menlo, Consolas, monospace, sans-serif",
minimap: {
enabled: false
},
quickSuggestions: false,
lineNumbers: "on",
renderValidationDecorations: "off"
};
const _toggleSettingsDialog = useCallback(
() => setSettingsDialog(!showSettingsDialogue),
[showSettingsDialogue]
);
useEffect(() => {
// @ts-ignore
window.__webpack_public_path__ = "/_next/static/";
}, []);
const getSettings = useCallback(
() => (
<>
<Button
marginRight={10}
iconBefore="cog"
onClick={_toggleSettingsDialog}
height={28}
>
Settings
</Button>
{settingElement({
toggle: _toggleSettingsDialog,
open: showSettingsDialogue
})}
</>
),
[showSettingsDialogue]
);
const onFilePicked = useCallback((files, close = () => {}) => {
if (!(files && files.length)) return;
const file = files[0];
const reader = new FileReader();
reader.readAsText(file, "utf-8");
reader.onload = () => {
setValue(reader.result as string);
onChange(reader.result as string);
close();
};
}, []);
const { getRootProps } = useDropzone({
onDrop: files => onFilePicked(files),
disabled: !editable,
accept: acceptFiles,
onDropRejected: () =>
toaster.danger("This file type is not supported.", {
id
})
});
const copyValue = useCallback(() => {
copy(value);
toaster.success("Copied to clipboard.", {
id
});
}, [value]);
const fetchFile = useCallback(
close => {
(async () => {
if (!fetchingUrl) return;
const res = await fetch(fetchingUrl);
const value = await res.text();
setValue(value);
setFetchingUrl("");
close();
onChange(value);
})();
},
[fetchingUrl, onChange]
);
// whenever defaultValue changes, change the value of the editor.
useEffect(() => {
setValue(defaultValue);
}, [defaultValue]);
return (
<Pane display="flex" flex={1} flexDirection="column" overflow="hidden">
<Pane
display="flex"
height={40}
paddingX={10}
alignItems={"center"}
borderBottom
zIndex={2}
flexShrink={0}
>
<Pane flex={1}>
<Heading size={500} marginTop={0}>
{title}
</Heading>
</Pane>
{settingElement && getSettings()}
{hasLoad && (
<Popover
content={({ close }) => (
<Pane
paddingY={20}
paddingX={20}
display="flex"
flex={1}
alignItems="center"
justifyContent="center"
flexDirection="column"
>
<FilePicker
width={"100%"}
name="filepicker"
onChange={files => onFilePicked(files, close)}
accept={acceptFiles}
/>
<Heading paddingY={10} size={200}>
OR
</Heading>
<Pane display="flex" flexDirection="row">
<TextInput
borderBottomRightRadius={0}
borderTopRightRadius={0}
placeholder="Enter URL"
onChange={(e: HTMLInputEvent) =>
setFetchingUrl(e.target.value)
}
/>
<Button
borderLeftWidth={0}
borderBottomLeftRadius={0}
borderTopLeftRadius={0}
onClick={() => fetchFile(close)}
>
Fetch URL
</Button>
</Pane>
</Pane>
)}
shouldCloseOnExternalClick
>
<Tooltip content="Load File">
<IconButton height={28} marginRight={10} icon="upload" />
</Tooltip>
</Popover>
)}
{hasClear && (
<Tooltip content="Clear">
<IconButton
height={28}
icon="trash"
intent="danger"
marginRight={10}
onClick={() => setValue("")}
/>
</Tooltip>
)}
{packageDetails && (
<a
href={packageDetails.url}
style={{
display: "inline-flex"
}}
target="_blank"
>
<Tooltip content={packageDetails.name}>
<Npm />
</Tooltip>
</a>
)}
{hasCopy && (
<Button
appearance="primary"
marginRight={10}
iconBefore="duplicate"
onClick={copyValue}
height={28}
>
Copy
</Button>
)}
</Pane>
<div
style={{
display: "flex",
flexDirection: "column",
flex: 1,
overflow: "hidden"
}}
{...getRootProps()}
>
{topNotifications &&
topNotifications({
isSettingsOpen: showSettingsDialogue,
toggleSettings: _toggleSettingsDialog
})}
<Monaco
language={language}
value={value}
options={options}
onChange={value => {
setValue(value);
onChange(value);
}}
/>
</div>
</Pane>
);
}
-130
View File
@@ -1,130 +0,0 @@
import React from "react";
import { Formik, FormikProps } from "formik";
import { Dialog, Heading, Pane, Switch, TextInput, Select } from "evergreen-ui";
export enum InputType {
SWITCH = 1,
TEXT_INPUT,
SELECT
}
interface FormProps<T> {
initialValues: T;
onSubmit: (values: T) => void;
title: string;
formsFields: {
key: string;
type: InputType;
label: string;
isDisabled?: (values: T) => boolean;
props?: any;
options?: { label: string; value: string | number }[];
}[];
open: boolean;
toggle: () => void;
}
const Form = <T extends object>({
initialValues,
onSubmit,
title,
formsFields,
open,
toggle
}: FormProps<T> & { children?: React.ReactNode }) => {
return (
<Formik
initialValues={initialValues}
render={(props: FormikProps<T>) => {
return (
<Dialog
title={title}
isShown={open}
onCloseComplete={toggle}
onConfirm={close => {
props.submitForm();
close();
}}
onCancel={close => {
props.resetForm();
close();
}}
>
<>
{formsFields.map(
(
{ type, key, label, isDisabled, props: _props, options },
i
) => {
let FormField, select;
if (type === InputType.TEXT_INPUT) FormField = TextInput;
else if (type === InputType.SWITCH) FormField = Switch;
else if (type === InputType.SELECT)
select = (
<Select
value={props.values[key]}
onChange={props.handleChange}
name={key}
defaultValue={options[0].value}
>
{options.map(({ label, value }) => (
<option
key={value}
value={value}
selected={props.values[key] === value}
>
{label}
</option>
))}
</Select>
);
const _isDisabled = isDisabled
? isDisabled(props.values)
: undefined;
return (
<Pane
display={"flex"}
alignItems="center"
flexDirection={"row"}
paddingY={10}
key={i}
justifyContent={"space-between"}
{..._props}
>
<Heading
flex={1}
size={400}
opacity={_isDisabled ? 0.4 : 1}
textTransform={"capitalize"}
>
{label}
</Heading>
{FormField && (
<FormField
value={props.values[key]}
checked={props.values[key]}
onChange={props.handleChange}
name={key}
disabled={_isDisabled}
/>
)}
{select}
</Pane>
);
}
)}
</>
</Dialog>
);
}}
onSubmit={values => {
onSubmit(values);
}}
/>
);
};
export default Form;
-26
View File
@@ -1,26 +0,0 @@
import Head from "next/head";
import React from "react";
export const Meta = ({ title, description, url }) => {
return (
<Head>
<title>{title}</title>
<link rel="icon" href="/static/favicon.png" type="image/png" />
<meta content={description} name="description" />
<meta name="og:url" content={url} />
<meta name="og:title" content={title} />
<meta name="og:description" content={description} />
<meta name="og:image" content={"https://transform.tools/cover.png"} />
<meta name="og:type" content="website" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta
name="twitter:image"
content={"https://transform.tools/cover.png"}
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="ritz078" />
<link rel="manifest" href="/static/site.webmanifest" />
</Head>
);
};
-53
View File
@@ -1,53 +0,0 @@
import React from "react";
import Editor from "@monaco-editor/react";
import { Pane, Spinner } from "evergreen-ui";
export function processSize(size) {
return !/^\d+$/.test(size) ? size : `${size}px`;
}
interface MonacoProps {
theme?: string;
language?: string;
value?: string;
width?: number | string;
height?: number | string;
options?: any;
defaultValue?: string;
onChange: (value: string) => void;
}
export const Monaco: React.FC<MonacoProps> = ({
language,
value,
defaultValue,
height,
width,
options,
onChange
}) => {
return (
<Editor
defaultLanguage={language}
defaultValue={defaultValue}
value={value}
height={height}
width={width}
options={options}
onChange={onChange}
loading={
<Pane
display="flex"
alignItems="center"
justifyContent="center"
height={400}
flex={1}
>
<Spinner />
</Pane>
}
/>
);
};
export default Monaco;
-101
View File
@@ -1,101 +0,0 @@
import React, { Fragment } from "react";
import { Heading, Pane, Text } from "evergreen-ui";
import { categorizedRoutes, Route } from "@utils/routes";
import Link from "next/link";
import { useRouter } from "next/router";
import SearchBox from "@components/Searchbox";
export default function Navigator() {
const router = useRouter();
return (
<Pane
width={240}
height={"calc(100vh - 40px)"}
borderRight
display="flex"
flexDirection="column"
paddingTop={20}
>
<Pane paddingX={15}>
<SearchBox />
</Pane>
<Pane
display="flex"
flex={1}
overflowY="scroll"
flexDirection="column"
paddingBottom={10}
>
{categorizedRoutes.map(route => {
return (
<Fragment key={route.category}>
<Pane paddingX={10} marginTop={15} marginBottom={2}>
<Heading marginLeft={5} size={400}>
{route.category}
</Heading>
</Pane>
{(route.content as Route[])
.sort((a, b) => a.label.localeCompare(b.label))
.map((a: Route) => {
const isActive = router.pathname === a.path;
return (
<Link key={a.label} href={a.path} prefetch={false}>
<a
style={{
textDecoration: "none"
}}
>
<Pane
paddingLeft={16}
paddingY={3}
backgroundColor={isActive ? "#f3f3f3" : undefined}
borderLeft={
isActive
? "3px solid #009688"
: "3px solid transparent"
}
css={{
"&:hover": {
backgroundColor: "#f5f5f5"
}
}}
>
<Text fontSize={13}>{a.label}</Text>
</Pane>
</a>
</Link>
);
})}
</Fragment>
);
})}
</Pane>
<Pane borderTop>
<a
href="https://vercel.com?utm_source=ritz078&utm_campaign=oss"
target="_blank"
>
<img
src="https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg"
alt="Vercel"
style={{
height: 40,
display: "block",
margin: "10px auto 0"
}}
/>
</a>
<Heading size={400} paddingY={15} textAlign="center">
Created by{" "}
<a href="https://twitter.com/ritz078" target="_blank">
@ritz078
</a>
</Heading>
</Pane>
</Pane>
);
}
-8
View File
@@ -1,8 +0,0 @@
import dynamic from "next/dynamic";
import React from "react";
const NoSSR = props => <React.Fragment>{props.children}</React.Fragment>;
export default dynamic(() => Promise.resolve(NoSSR), {
ssr: false
});
-37
View File
@@ -1,37 +0,0 @@
import { routes } from "@utils/routes";
import { Autocomplete, SearchInput } from "evergreen-ui";
import React, { useCallback } from "react";
import { useRouter } from "next/router";
const SearchBox: React.FunctionComponent<{}> = () => {
const router = useRouter();
const onSearchSelect = useCallback(changedItem => {
const route = routes.find(route => changedItem === route.searchTerm);
router.push(route.path);
}, []);
return (
<Autocomplete
onChange={onSearchSelect}
items={routes.map(a => a.searchTerm)}
width="100%"
>
{props => {
const { getInputProps, getRef, inputValue } = props;
return (
<SearchInput
width="100%"
marginBottom={10}
placeholder="Search"
value={inputValue}
innerRef={getRef}
{...getInputProps()}
/>
);
}}
</Autocomplete>
);
};
export default SearchBox;
-127
View File
@@ -1,127 +0,0 @@
import { Settings } from "@constants/svgoConfig";
import { default as React, useCallback } from "react";
import { EditorPanelProps } from "@components/EditorPanel";
import Form from "@components/Form";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { Alert, Badge, Heading, Pane } from "evergreen-ui";
import svgToDataUrl from "svg-to-dataurl";
interface SvgConverterProps {
name: string;
babelWorker?: any;
transformer: Transformer;
formFields: any;
resultTitle: string;
optimizedValue: string;
settings: any;
setSettings: (settings: any) => void;
}
export const SvgConverter: React.FunctionComponent<SvgConverterProps> = ({
transformer,
resultTitle,
formFields,
optimizedValue,
settings,
setSettings
}) => {
const getSettingsPanel = useCallback<EditorPanelProps["settingElement"]>(
({ open, toggle }) => {
return (
<Form<Partial<Settings>>
initialValues={settings}
open={open}
toggle={toggle}
title={"SVGO Settings"}
onSubmit={setSettings}
formsFields={formFields}
/>
);
},
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="SVG"
resultLanguage="javascript"
resultTitle={resultTitle}
editorLanguage="html"
editorDefaultValue="svg"
settings={settings}
editorProps={{
settingElement: getSettingsPanel,
topNotifications: ({ toggleSettings }) =>
settings.optimizeSvg && (
<Alert
intent="warning"
backgroundColor="#FEF8E7"
title={
<>
SVGO optimization is turned on. You can turn it off or
configure it in{" "}
<Heading
size={400}
is="a"
color={"blue"}
onClick={toggleSettings}
>
settings
</Heading>
</>
}
/>
),
previewElement: value => (
<Pane display="flex" flexDirection="row" flex={1}>
<Pane display={"flex"} flex={1} position="relative">
<img
style={{
flex: 1,
width: "100%",
borderRight: "1px solid #eee"
}}
src={svgToDataUrl(value)}
alt="original"
/>
<Badge
position="absolute"
bottom={10}
right={10}
color="green"
isSolid
>
Original
</Badge>
</Pane>
<Pane display={"flex"} flex={1} position="relative">
{optimizedValue && (
<img
style={{
flex: 1,
width: "100%"
}}
src={svgToDataUrl(optimizedValue)}
alt="optimized"
/>
)}
<Badge
position="absolute"
bottom={10}
right={10}
color="green"
isSolid
>
Result
</Badge>
</Pane>
</Pane>
),
acceptFiles: "image/svg+xml"
}}
/>
);
};
-5
View File
@@ -1,5 +0,0 @@
export enum BabelTransforms {
JSON_TO_PROPTYPES = 1,
OBJECT_STYLES_TO_TEMPLATE,
JSON_TO_MOBX_TREE
}
-492
View File
@@ -1,492 +0,0 @@
export const json = JSON.stringify(
{
userId: 1,
id: 1,
title: "delectus aut autem",
completed: false
},
null,
2
);
export const html = `<!-- Hello world -->
<div class="awesome" style="border: 1px solid red">
<label for="name">Enter your name: </label>
<input type="text" id="name" />
</div>
<p>Enter your HTML here</p>`;
export const svg = `<svg style="flex:1;" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100"
style="stroke:#ff0000; fill: #0000ff"/>
</svg>`;
export const css = `.main-wrapper {
flex-direction: row;
display: flex;
flex: 1;
}
#content {
flex: 1;
}
ul {
padding: 20px 0;
flex: 1;
}
li {
font-family:'Lato';
color: whitesmoke;
line-height: 44px;
}
`;
export const css2 = `.alert {
position: relative;
padding: 1.6rem 4.6rem;
margin-bottom: 1.6rem;
border: 1px solid #c53030;
color: #fff;
border-radius: 0.2rem;
width: 100%;
}
.logo {
margin-bottom: 1.6rem;
background: url('logo.svg') no-repeat;
display: flex;
justify-content: center;
}
.button {
background: #81e6d9;
padding: 1.6rem 4.6rem;
letter-spacing: 0.03rem;
border-radius: 0.2rem;
}
.button:hover {
background: #2c7a7b;
}
@media (min-width: 640px) {
.button {
padding: 0.5rem 1rem;
width: 100%;
}
}
@media (min-width: 1280px) {
.button {
padding: 3rem 7rem;
margin-bottom: 2.4rem;
}
}
.username {
color: #718096;
border-color: #bee3f8;
}
.username:focus {
border-color: #3182ce;
}
.username::placeholder {
color: #cbd5e0;
}
@media (min-width: 1280px) {
.username {
width: 50%;
}
}
.footer {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row-reverse;
padding: 2.4rem 3rem;
border-top: 1px solid #fff5f5;
}
`;
export const javascript = `const container = css({
flex: 1,
padding: 10,
backgroundColor: 'orange',
color: colors.white,
'&:hover': {
backgroundColor: 'tomato',
},
});`;
export const yaml = `---
foo: "bar"
baz:
- "qux"
- "quxx"
corge: null
grault: 1
garply: true
waldo: "false"
fred: "undefined"
emptyarr: []
emptyobj: {}
`;
export const xml = `<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
`;
export const markdown = `Heading
=======
## Sub-heading
Paragraphs are separated
by a blank line.
Two spaces at the end of a line
produces a line break.
Text attributes _italic_,
**bold**, \`monospace\`.
Horizontal rule:
---
Bullet list:
* apples
* oranges
* pears
Numbered list:
1. wash
2. rinse
3. repeat
A [link](http://example.com).
![Image](https://via.placeholder.com/150)
> Markdown uses email-style > characters for blockquoting.
`;
export const flow = `export type AlertType = 'success'
export type AlertProps = {
type: AlertType,
text: string,
testId: string,
}
export type AlertTypeIconMap = {
success: 'tick' | 'started',
}
const Alert = ({ type, text, testId }: AlertProps) => {
const alertTypeIconMap: AlertTypeIconMap = {
success: 'tick',
}
const styles = getStyles({ type })
return (
<View style={styles.iconContainer}>
<Icon type={alertTypeIconMap[type]} />
</View>
)
}
export default Alert`;
export const graphql = `type Query {
user: User!
}
type User {
id: ID!
profile: Profile!
email: String!
username: String!
}
type Profile {
name: String!
age: Int!
}`;
export const graphql1 = `scalar Date
schema {
query: Query
}
type Query {
me: User!
user(id: ID!): User
allUsers: [User]
search(term: String!): [SearchResult!]!
myChats: [Chat!]!
}
enum Role {
USER,
ADMIN,
}
interface Node {
id: ID!
}
union SearchResult = User | Chat | ChatMessage
type User implements Node {
id: ID!
username: String!
email: String!
role: Role!
}
type Chat implements Node {
id: ID!
users: [User!]!
messages: [ChatMessage!]!
}
type ChatMessage implements Node {
id: ID!
content: String!
time: Date!
user: User!
}
`;
export const graphqlDocument = `query findUser($userId: ID!) {
user(id: $userId) {
...UserFields
}
}
fragment UserFields on User {
id
username
role
}`;
export const graphqlMongodb = `type User @entity {
id: ID! @id
username: String! @column
email: String! @column @map(
path: "login.email"
)
profile: Profile! @column
chats: [Chat!]! @link
}
type Profile @entity(embedded: true,
additionalFields: [
{ path: "dateOfBirth", type: "string" }
]) {
name: String! @column
age: Int
}
type Chat @entity {
id: ID! @id
users: [User!]! @link
messages: [ChatMessage!]!
}
type ChatMessage @entity {
id: ID! @id
chat: Chat! @link
content: String! @column
author: User! @link
}`;
export const jsObject = `{
title: {
type: 'String',
trim: true,
index: true,
required: true
},
year: {
type: 'Number',
max: 2012,
validate: 'validateBookYear'
},
author: {
type: 'ObjectId',
ref: 'Author',
index: true,
required: true
}
}`;
export const jsonSchema = `{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Example Schema",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"description": "Age in years",
"type": "integer",
"minimum": 0
},
"height": {
"type": ["number", "null"]
},
"favoriteFoods": {
"type": "array",
"minItems": 0,
"maxItems": 2,
"items": {
"type": "string"
}
},
"likesDogs": {
"type": "boolean"
}
},
"required": ["firstName", "lastName"]
}`;
export const jsonLd = `{
"@context": "https://schema.org/",
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "Professor",
"telephone": "(425) 123-4567",
"url": "http://www.janedoe.com"
}
`;
export const jsonLdContext = `{
"@context": "https://schema.org/"
}`;
export const typescript = `
import React from 'react';
export interface Props {
/** The user's name */
name: string;
/** Should the name be rendered in bold */
priority?: boolean
}
export interface FauxactClassComponent<Props extends {}, State = {}> {
props: Props
state: State
setState: (prevState: State, props: Props) => Props
callback?: () => void
render(): FauxactClassComponent<any> | null
}
export const PrintName: React.FC<Props> = (props) => {
return (
<div>
<p style={{ fontWeight: props.priority ? "bold" : "normal" }}>{props.name}</p>
</div>
)
}
export const ShowUser: React.FC<Props> = (props) => {
return <PrintName name="Ned" />
}
let username = "Cersei"
export const ShowStoredUser: React.FC<Props> = (props) => {
return <PrintName name={username} priority />
}
import { useState, useEffect } from 'react';
export const CounterExample: React.FC<{}> = () => {
const [count, setCount] = useState(0);
const handleClick = () => setCount(count + 1)
return (
<div>
<p>You clicked {count} times</p>
<button onClick={handleClick}>
Click me
</button>
</div>
);
}`;
export const typeScriptInterface = `export interface Root {
userId: number;
id: number;
title: string;
completed: boolean;
}
export interface Props {
/** The user's name */
name: string;
/** Should the name be rendered in bold */
priority?: boolean
}`;
export const toml = `userId = 1
id = 1
title = "delectus aut autem"
completed = false
[company]
id = 12
name = "Transform Inc"`;
export const cadence = `pub struct StructContainsManyType {
pub var intValue: Int
pub var int8Value: Int8
pub var int16Value: Int16
pub var int32Value: Int32
pub var int64Value: Int64
pub var int128Value: Int128
pub var int256Value: Int256
pub var uintValue: UInt
pub var uint8Value: UInt8
pub var uint16Value: UInt16
pub var uint32Value: UInt32
pub var uint64Value: UInt64
pub var uint128Value: UInt128
pub var uint256Value: UInt256
pub var stringValue: String
pub var addressValue: Address
pub var boolValue: Bool
pub var characterValue: Character
pub var pathValue: Path
init() {
self.intValue = 127
self.int8Value = 127
self.int16Value = 127
self.int32Value = 127
self.int64Value = 127
self.int128Value = 127
self.int256Value = 127
self.uintValue = 127
self.uint8Value = 127
self.uint16Value = 127
self.uint32Value = 127
self.uint64Value = 127
self.uint128Value = 127
self.uint256Value = 127
self.stringValue = "LemonNeko"
self.addressValue = 0x0
self.boolValue = true
self.characterValue = "a"
self.pathValue = /storage/CollectionStorage
}
}
pub fun main(): StructContainsManyType {
return StructContainsManyType()
}
`
-16
View File
@@ -1,16 +0,0 @@
export enum GraphqlTransforms {
TO_TYPESCRIPT = 1,
TO_FLOW,
TO_INTROSPECTION_JSON,
TO_FRAGMENT_MATCHER,
TO_SCHEMA_AST,
TO_JAVA,
TO_REACT_APOLLO,
TO_APOLLO_ANGULAR,
TO_STENCIL_APOLLO,
TO_JAVA_RESOLVERS_SIGNATURE,
TO_TYPESCRIPT_RESOLVERS_SIGNATURE,
TO_FLOW_RESOLVERS_SIGNATURE,
TO_URQL,
TO_TYPESCRIPT_MONGODB
}
-95
View File
@@ -1,95 +0,0 @@
import { InputType } from "@components/Form";
import { lowerCase, omit } from "lodash";
export interface Settings {
removeTitle: boolean;
removeDesc: boolean;
removeUselessDefs: boolean;
removeEditorsNSData: boolean;
removeEmptyAttrs: boolean;
removeHiddenElems: boolean;
removeEmptyText: boolean;
removeEmptyContainers: boolean;
removeViewBox: boolean;
cleanupEnableBackground: boolean;
convertColors: boolean;
convertPathData: boolean;
convertTransform: boolean;
removeUnknownsAndDefaults: boolean;
removeNonInheritableGroupAttrs: boolean;
removeUselessStrokeAndFill: boolean;
removeUnusedNS: boolean;
cleanupIDs: boolean;
cleanupNumericValues: boolean;
moveElemsAttrsToGroup: boolean;
moveGroupAttrsToElems: boolean;
collapseGroups: boolean;
removeRasterImages: boolean;
mergePaths: boolean;
convertShapeToPath: boolean;
sortAttrs: boolean;
optimizeSvg: boolean;
}
export const nativeRequiredSettings = {
cleanupAttrs: true,
inlineStyles: true,
minifyStyles: true,
convertStyleToAttrs: true,
removeDoctype: true,
removeXMLProcInst: false,
removeComments: true,
removeMetadata: true,
removeDimensions: false
};
export const defaultSettings = {
optimizeSvg: true,
...nativeRequiredSettings,
removeComments: true,
removeMetadata: true,
removeTitle: true,
removeDesc: true,
removeUselessDefs: true,
removeEditorsNSData: true,
removeEmptyAttrs: true,
removeHiddenElems: true,
removeEmptyText: true,
removeEmptyContainers: true,
removeViewBox: false,
cleanupEnableBackground: true,
convertColors: true,
convertPathData: true,
convertTransform: true,
removeUnknownsAndDefaults: true,
removeNonInheritableGroupAttrs: true,
removeUselessStrokeAndFill: true,
removeUnusedNS: true,
cleanupIDs: true,
cleanupNumericValues: false,
moveElemsAttrsToGroup: true,
moveGroupAttrsToElems: true,
collapseGroups: true,
removeRasterImages: true,
mergePaths: true,
convertShapeToPath: true,
sortAttrs: true
};
export const defaultNativeSettings = omit(
defaultSettings,
Object.keys(nativeRequiredSettings)
);
export const formFields = settings =>
Object.keys(settings).map((property: keyof Settings) => ({
label: lowerCase(property),
type: InputType.SWITCH,
key: property,
...(property !== "optimizeSvg"
? {
isDisabled: values => !values.optimizeSvg,
props: { paddingLeft: 20, borderLeft: "2px solid #FDF8F3" }
}
: {})
}));
-8
View File
@@ -1,8 +0,0 @@
import * as data from "@constants/data";
import { useSessionStorage } from "@hooks/useSessionStorage";
export type Language = string;
export function useData(type: Language) {
return type ? useSessionStorage(`data:${type}`, data[type]) : [,];
}
-43
View File
@@ -1,43 +0,0 @@
import { useState } from "react";
import { version } from "../package.json";
const prefix = `transform:${version}:`;
export function useLocalStorage(key, initialValue) {
// State to store our value
// Pass initial state function to useState so logic is only executed once
const [storedValue, setStoredValue] = useState(() => {
try {
// Get from local storage by key
const item = IN_BROWSER
? window.localStorage.getItem(prefix + key) || initialValue
: initialValue;
// Parse stored json or if none return initialValue
return JSON.parse(item);
} catch (error) {
// If error also return initialValue
return initialValue;
}
});
// Return a wrapped version of useState's setter function that ...
// ... persists the new value to sessionStorage.
const setValue = value => {
try {
// Allow value to be a function so we have same API as useState
const valueToStore =
value instanceof Function ? value(storedValue) : value;
// Save state
setStoredValue(valueToStore);
// Save to local storage
if (IN_BROWSER)
window.localStorage.setItem(prefix + key, JSON.stringify(valueToStore));
} catch (error) {
// A more advanced implementation would handle the error case
console.log(error);
}
};
return [storedValue, setValue];
}
-47
View File
@@ -1,47 +0,0 @@
import { useState } from "react";
import pkg from "../package.json";
const prefix = `transform:${pkg.version}:`;
export function useSessionStorage(key, initialValue) {
// State to store our value
// Pass initial state function to useState so logic is only executed once
const [storedValue, setStoredValue] = useState(() => {
try {
// Get from local storage by key
const item =
typeof window !== "undefined"
? window.sessionStorage.getItem(prefix + key) || initialValue
: initialValue;
// Parse stored json or if none return initialValue
return key.startsWith("data:") ? item : JSON.parse(item);
} catch (error) {
// If error also return initialValue
return initialValue;
}
});
// Return a wrapped version of useState's setter function that ...
// ... persists the new value to sessionStorage.
const setValue = value => {
try {
// Allow value to be a function so we have same API as useState
const valueToStore =
value instanceof Function ? value(storedValue) : value;
// Save state
setStoredValue(valueToStore);
// Save to local storage
if (typeof window !== "undefined")
window.sessionStorage.setItem(
prefix + key,
key.startsWith("data:") ? valueToStore : JSON.stringify(valueToStore)
);
} catch (error) {
// A more advanced implementation would handle the error case
console.log(error);
}
};
return [storedValue, setValue];
}
-5
View File
@@ -1,5 +0,0 @@
import { useLocalStorage } from "@hooks/useLocalStorage";
export function useSettings(name: string, initialValue: object) {
return useLocalStorage(`settings:${name}`, initialValue);
}
-2
View File
@@ -1,2 +0,0 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
+21 -41
View File
@@ -1,46 +1,26 @@
const webpack = require("webpack");
const config = {
webpack(config, options) {
config.node = {
fs: "empty",
module: "empty",
net: "mock",
tls: "mock"
};
config.plugins.push(
new webpack.DefinePlugin({
"process.env.DEV": JSON.stringify(options.dev),
IN_BROWSER: !options.isServer,
IS_DEV: options.dev
})
);
config.module.rules.unshift({
test: /\.worker\.ts/,
use: {
loader: "worker-loader",
options: {
name: "static/[hash].worker.js",
publicPath: "/_next/"
}
}
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: true,
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [
{
loader: "@svgr/webpack",
options: {
throwIfNamespace: false,
},
},
],
});
config.output.globalObject = 'typeof self !== "object" ? self : this';
// Temporary fix for https://github.com/zeit/next.js/issues/8071
config.plugins.forEach(plugin => {
if (plugin.definitions && plugin.definitions["typeof window"]) {
delete plugin.definitions["typeof window"];
}
});
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
return config;
}
},
};
module.exports = config;
module.exports = nextConfig;
-21
View File
@@ -1,21 +0,0 @@
{
"version": 2,
"redirects": [
{
"source": "/svg-to-jsx",
"destination": "/"
},
{
"source": "/json-to-flow-types",
"destination": "/json-to-flow"
},
{
"source": "/json-to-ts-interface",
"destination": "/json-to-typescript"
},
{
"source": "/json-schema-to-ts",
"destination": "/json-schema-to-typescript"
}
]
}
+7218
View File
File diff suppressed because it is too large. Load diff
+22 -119
View File
@@ -1,130 +1,33 @@
{
"name": "transform",
"version": "2.0.2",
"repository": "https://github.com/ritz078/transform",
"author": "ritz078 <rkritesh078@gmail.com>",
"license": "MIT",
"version": "0.1.0",
"private": true,
"scripts": {
"dev:inspect": "NODE_OPTIONS=\"--inspect\" next dev",
"dev": "next dev",
"start": "next start",
"format": "prettier --write '**/*.ts' '**/*.tsx'",
"build": "next build",
"now-build": "next build",
"postinstall": "patch-package",
"build:analyze": "ANALYZE=true yarn build"
},
"engines": {
"node": "16.x"
"start": "next start",
"lint": "next lint",
"format": "prettier . --write"
},
"dependencies": {
"@babel/plugin-transform-flow-strip-types": "^7.16.0",
"@babel/plugin-transform-typescript": "^7.16.1",
"@babel/standalone": "^7.14.7",
"@graphql-codegen/core": "^1.17.10",
"@graphql-codegen/flow": "^1.19.3",
"@graphql-codegen/flow-operations": "^1.18.11",
"@graphql-codegen/flow-resolvers": "^1.17.16",
"@graphql-codegen/fragment-matcher": "^2.0.1",
"@graphql-codegen/introspection": "^1.18.2",
"@graphql-codegen/java": "^2.0.2",
"@graphql-codegen/java-resolvers": "^1.18.3",
"@graphql-codegen/schema-ast": "^1.18.3",
"@graphql-codegen/typescript": "^1.22.3",
"@graphql-codegen/typescript-apollo-angular": "^2.3.6",
"@graphql-codegen/typescript-mongodb": "^1.19.3",
"@graphql-codegen/typescript-operations": "^1.18.2",
"@graphql-codegen/typescript-react-apollo": "^2.2.7",
"@graphql-codegen/typescript-resolvers": "^1.19.4",
"@graphql-codegen/typescript-stencil-apollo": "^1.18.7",
"@graphql-codegen/typescript-urql": "^2.0.9",
"@iarna/toml": "^3.0.0",
"@khanacademy/flow-to-ts": "^0.5.2",
"@monaco-editor/react": "^4.2.1",
"@openapi-contrib/json-schema-to-openapi-schema": "^2.0.0",
"@svgr/core": "^5.5.0",
"@svgr/plugin-jsx": "^5.5.0",
"@types/jsonld": "^1.5.5",
"@walmartlabs/json-to-simple-graphql-schema": "^2.0.4",
"autoprefixer": "^10.2.6",
"autoprefixer9": "npm:autoprefixer@9.x.x",
"axios": "^0.21.1",
"babel-plugin-json-to-proptypes": "^0.1.0",
"babel-plugin-object-styles-to-template": "^0.2.2",
"babel-standalone": "^6.26.0",
"clipboard-copy": "^4.0.1",
"css-to-tailwind": "^1.0.3",
"evergreen-ui": "^4.28.0",
"flowgen": "^1.14.1",
"formik": "^2.2.9",
"generate-schema": "^2.6.0",
"gofmt.js": "^0.0.2",
"graphql": "^15.5.1",
"html2pug": "^4.0.0",
"htmltojsx": "^0.3.0",
"is-capitalized": "^1.0.0",
"is-svg": "^4.3.1",
"json-schema-to-typescript": "^10.1.4",
"json-schema-to-zod": "^0.1.2",
"json-to-go": "gist:0d0b8324131c80eeb7e1df20001be32f",
"json-to-zod": "^1.1.2",
"json-ts": "^1.6.4",
"json_typegen_wasm": "^0.7.0",
"jsonld": "^5.2.0",
"jsonschema-protobuf": "^1.0.2",
"lodash": "^4.17.21",
"markdown": "^0.5.0",
"next": "10.2.3",
"nprogress": "^0.2.0",
"postcss": "^8.3.5",
"postcss-js": "^3.0.3",
"postcss7": "npm:postcss@7.x.x",
"prettier": "^1.18.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-dropzone": "^11.0.1",
"recast": "^0.20.5",
"rust-keywords": "^1.1.0",
"sha1": "^1.1.1",
"stringify-object": "^3.3.0",
"svg-to-dataurl": "^1.0.0",
"svgo": "^1.3.2",
"tailwindcss": "^2.2.4",
"tailwindcss1": "npm:tailwindcss@1.9.6",
"tempy": "^1.0.1",
"text-encoding-utf-8": "^1.0.2",
"transform-json-types": "^0.7.0",
"ts-json-schema-generator": "^0.93.0",
"ts-to-zod": "^1.11.0",
"typescript": "4.3.4",
"xml-js": "^1.6.11",
"yaml": "^1.10.2"
"@headlessui/react": "^1.7.4",
"@heroicons/react": "^2.0.13",
"@monaco-editor/react": "^4.4.6",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"classnames": "^2.3.2",
"next": "^13.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.8.4"
},
"devDependencies": {
"@lemonneko/flow__cadence-parser": "^0.24.1",
"@types/lodash": "^4.14.170",
"@types/node": "^15.12.5",
"@types/prettier": "^2.3.0",
"@types/react": "^17.0.11",
"@types/svgo": "^1.3.3",
"husky": "^4.2.5",
"imagemin-lint-staged": "^0.4.0",
"lint-staged": "^11.0.0",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.0.0",
"pretty-quick": "^3.1.1",
"ui-box": "2.1.0",
"webpack": "^4.44.1",
"worker-loader": "^2.0.0"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && lint-staged"
}
},
"lint-staged": {
"./assets/*/*.svg": [
"imagemin-lint-staged"
]
"@svgr/webpack": "^6.5.1",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"rome": "^10.0.0",
"tailwindcss": "^3.2.2"
}
}
-128
View File
@@ -1,128 +0,0 @@
import React, { useEffect } from "react";
import { Button, Pane } from "evergreen-ui";
import Navigator from "@components/Navigator";
import "@styles/main.css";
import NProgress from "nprogress";
import Router, { useRouter } from "next/router";
import { activeRouteData } from "@utils/routes";
import Head from "next/head";
import { Meta } from "@components/Meta";
const logo = (
<svg
xmlns="http://www.w3.org/2000/svg"
width="90px"
height="19px"
viewBox="0 0 306 62"
style={{
marginTop: -4
}}
>
<path
fill="#fff"
fillRule="nonzero"
stroke="none"
strokeWidth={1}
d="M172.339 71.14V98h-7.91V71.14h-3.376v-7.382h3.375V51.207h7.91v12.55h6.153v7.384h-6.152zm11.989-7.382h7.91v3.058c1.453-1.523 2.742-2.566 3.867-3.129 1.149-.585 2.508-.878 4.078-.878 2.086 0 4.266.68 6.54 2.039L203.1 72.09c-1.5-1.078-2.964-1.617-4.394-1.617-4.313 0-6.469 3.257-6.469 9.773V98h-7.91V63.758zm52.138 0h7.945V98h-7.945v-3.586c-3.258 3.047-6.762 4.57-10.512 4.57-4.734 0-8.648-1.71-11.742-5.132-3.07-3.493-4.606-7.852-4.606-13.079 0-5.132 1.536-9.41 4.606-12.832 3.07-3.421 6.914-5.132 11.531-5.132 3.985 0 7.559 1.64 10.723 4.921v-3.972zm-18.774 17.015c0 3.282.88 5.954 2.637 8.016 1.805 2.086 4.078 3.129 6.82 3.129 2.93 0 5.297-1.008 7.102-3.023 1.805-2.086 2.707-4.735 2.707-7.946 0-3.21-.902-5.86-2.707-7.945-1.805-2.04-4.148-3.059-7.031-3.059-2.719 0-4.992 1.032-6.82 3.094-1.805 2.086-2.708 4.664-2.708 7.734zm37.162-17.015h7.945v3.164c2.766-2.742 5.883-4.113 9.352-4.113 3.984 0 7.09 1.253 9.316 3.761 1.922 2.133 2.883 5.614 2.883 10.442V98h-7.945V78.875c0-3.375-.47-5.707-1.407-6.996-.914-1.313-2.578-1.969-4.992-1.969-2.625 0-4.488.867-5.59 2.602-1.078 1.71-1.617 4.699-1.617 8.965V98h-7.945V63.758zm59.837 5.836l-6.54 3.48c-1.03-2.11-2.308-3.164-3.831-3.164-.727 0-1.348.24-1.864.72-.515.481-.773 1.097-.773 1.847 0 1.312 1.523 2.613 4.57 3.902 4.196 1.805 7.02 3.469 8.473 4.992 1.453 1.524 2.18 3.574 2.18 6.152 0 3.305-1.22 6.07-3.657 8.297-2.367 2.11-5.226 3.164-8.578 3.164-5.742 0-9.808-2.8-12.199-8.402l6.75-3.129c.938 1.64 1.652 2.684 2.145 3.129.96.89 2.109 1.336 3.445 1.336 2.672 0 4.008-1.219 4.008-3.656 0-1.407-1.032-2.719-3.094-3.938-.797-.398-1.594-.785-2.39-1.16-.798-.375-1.606-.762-2.426-1.16-2.297-1.125-3.914-2.25-4.852-3.375-1.195-1.43-1.793-3.27-1.793-5.52 0-2.976 1.02-5.437 3.059-7.382 2.086-1.946 4.617-2.918 7.593-2.918 4.383 0 7.641 2.261 9.774 6.785zm17.966 1.547V98h-7.945V71.14h-2.813v-7.382h2.813V50.539c0-4.312.75-7.36 2.25-9.14 2.062-2.485 5.062-3.727 9-3.727 1.406 0 3.175.41 5.308 1.23v8.086l-.808-.422c-1.711-.867-3.118-1.3-4.22-1.3-1.405 0-2.355.504-2.847 1.511-.492.985-.738 2.883-.738 5.696v11.285h8.613v7.383h-8.613zm12.903 9.492c0-4.946 1.77-9.153 5.309-12.621 3.539-3.469 7.851-5.203 12.937-5.203 5.11 0 9.446 1.746 13.008 5.238 3.516 3.492 5.274 7.781 5.274 12.867 0 5.133-1.77 9.434-5.309 12.902-3.562 3.446-7.933 5.168-13.113 5.168-5.133 0-9.434-1.757-12.903-5.273-3.468-3.469-5.203-7.828-5.203-13.078zm8.086.14c0 3.422.914 6.13 2.742 8.122 1.875 2.015 4.348 3.023 7.418 3.023 3.094 0 5.567-.996 7.418-2.988 1.852-1.993 2.778-4.653 2.778-7.98 0-3.329-.926-5.99-2.778-7.981-1.875-2.016-4.347-3.024-7.418-3.024-3.023 0-5.472 1.008-7.347 3.024-1.875 2.015-2.813 4.617-2.813 7.804zm37.267-17.015h7.91v3.058c1.453-1.523 2.742-2.566 3.867-3.129 1.149-.585 2.508-.878 4.079-.878 2.085 0 4.265.68 6.539 2.039l-3.622 7.242c-1.5-1.078-2.964-1.617-4.394-1.617-4.313 0-6.469 3.257-6.469 9.773V98h-7.91V63.758zm28.478 0h7.91v3.164c1.523-1.594 2.824-2.672 3.902-3.234 1.149-.586 2.59-.88 4.324-.88 3.868 0 6.926 1.688 9.176 5.063 2.485-3.375 5.848-5.062 10.09-5.062 7.711 0 11.566 4.675 11.566 14.027V98h-7.945V78.98c0-3.28-.398-5.601-1.195-6.96-.82-1.383-2.168-2.075-4.043-2.075-2.18 0-3.768.82-4.764 2.461-.996 1.64-1.494 4.278-1.494 7.91V98h-7.945V79.086c0-6.094-1.758-9.14-5.274-9.14-2.226 0-3.85.831-4.869 2.495-1.02 1.664-1.53 4.29-1.53 7.875V98h-7.91V63.758z"
transform="translate(-161 -37)"
/>
</svg>
);
export default function App(props) {
const router = useRouter();
useEffect(() => {
let timer;
const stopProgress = () => {
clearTimeout(timer);
NProgress.done();
};
const startProgress = () => NProgress.start();
const showProgressBar = () => {
timer = setTimeout(startProgress, 300);
router.events.on("routeChangeComplete", stopProgress);
router.events.on("routeChangeError", stopProgress);
};
router.events.on("routeChangeStart", showProgressBar);
return () => {
router.events.off("routeChangeComplete", stopProgress);
router.events.off("routeChangeError", stopProgress);
router.events.off("routeChangeStart", showProgressBar);
timer && clearTimeout(timer);
};
}, []);
const { Component, pageProps } = props;
const activeRoute = activeRouteData(router.pathname);
return (
<>
{router.pathname === "/" || !router.pathname ? (
<Meta
title={"Transform"}
url={`https://transform.tools${router.pathname}`}
description={
"A polyglot web converter that's going to save you a lot of time."
}
/>
) : (
<Meta
title={activeRoute?.searchTerm}
url={`https://transform.tools${router.pathname}`}
description={activeRoute?.desc}
/>
)}
<Pane
display="flex"
alignItems="center"
flexDirection="row"
is="header"
height={40}
backgroundColor="#0e7ccf"
paddingRight={20}
>
<Pane flex={1} display="flex" paddingX={20} className="logo-transform">
{logo}
</Pane>
<Pane display="flex" alignItems={"center"}>
<a
style={{
display: "inline-block",
height: 20
}}
href="https://github.com/ritz078/transform"
>
<img
src="https://img.shields.io/github/stars/ritz078/transform?style=social"
alt=""
/>
</a>
<a href="https://github.com/ritz078/transform" target="_blank">
<Button
appearance="minimal"
height={40}
css={{
color: "#fff !important"
}}
>
GitHub
</Button>
</a>
</Pane>
</Pane>
<Pane display="flex" flexDirection="row">
<Navigator />
<Component {...pageProps} />
</Pane>
</>
);
}
-44
View File
@@ -1,44 +0,0 @@
import React from "react";
import Document, { Head, Main, NextScript, Html } from "next/document";
import { extractStyles } from "evergreen-ui";
interface DocumentProps {
css: string;
hydrationScript: React.ReactChild;
}
export default class MyDocument extends Document<DocumentProps> {
static getInitialProps({ renderPage }) {
const page = renderPage();
const { css, hydrationScript } = extractStyles();
return {
...page,
css,
hydrationScript
};
}
render() {
const { css, hydrationScript } = this.props;
return (
<Html>
<Head>
<meta charSet="utf-8" />
<meta
name="google-site-verification"
content="bjJSOEahdert-7mwVScrwTTUVR3nSe0bEj5YjevUNn0"
/>
<style dangerouslySetInnerHTML={{ __html: css }} />
</Head>
<body>
<Main />
{hydrationScript}
<NextScript />
</body>
</Html>
);
}
}
-38
View File
@@ -1,38 +0,0 @@
import { Heading, Pane } from "evergreen-ui";
import React from "react";
import SearchBox from "@components/Searchbox";
import Error404 from "@assets/svgs/Error404";
import Error500 from "@assets/svgs/Error500";
export default function Error({ statusCode }) {
return (
<Pane display="flex" flex={1} alignItems="center">
<Pane display="flex" flexDirection="column" alignItems="center" flex={1}>
{statusCode === 404 ? (
<>
<Error404 />
<Heading marginTop={50} size={600}>
You seem to have landed on the wrong place. Search what you are
looking for below.
</Heading>
<Pane marginTop={30} width="70%">
<SearchBox />
</Pane>
</>
) : (
<>
<Error500 />
<Heading marginTop={50} size={600}>
Something Broke. Check back again in some time.
</Heading>
</>
)}
</Pane>
</Pane>
);
}
Error.getInitialProps = ({ res, err }) => {
const statusCode = res ? res.statusCode : err ? err.statusCode : null;
return { statusCode };
};
-12
View File
@@ -1,12 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import tailwindCss from "@utils/tailwindcss";
export default async (req: NextApiRequest, res: NextApiResponse) => {
try {
const { tailwindConfig, postCssInput } = req.body;
const css = await tailwindCss(tailwindConfig, postCssInput);
res.status(200).send(css);
} catch (e) {
res.status(500).send(e.message);
}
};
-32
View File
@@ -1,32 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { parse, print } from "recast";
import { transformFromAstSync, parseSync } from "@babel/core";
import transformFlow from "@babel/plugin-transform-flow-strip-types";
export default (req: NextApiRequest, res: NextApiResponse) => {
try {
const ast = parse(req.body, {
parser: require("recast/parsers/flow")
});
const options = {
cloneInputAst: false, // recast stores metadata in AST nodes, so disable cloning will preserve the original code style
code: false,
ast: true,
plugins: [transformFlow],
configFile: false
};
const { ast: transformedAST } = transformFromAstSync(
ast,
req.body,
options
);
const result = print(transformedAST).code;
res.status(200).send(result);
} catch (e) {
console.log(e);
res.status(500).send(e.message);
}
};
-49
View File
@@ -1,49 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { convert } from "@khanacademy/flow-to-ts";
import * as ts from "typescript";
export default (req: NextApiRequest, res: NextApiResponse) => {
try {
const { value, declarationOnly, isTS } = req.body;
const tsCode = isTS ? value : convert(value);
if (!declarationOnly) {
res.status(200).send(tsCode);
return;
}
let output = "";
const options = {
allowJs: true,
declaration: true,
emitDeclarationOnly: true,
jsx: ts.JsxEmit.React,
skipDefaultLibCheck: true,
skipLibCheck: true
};
const host = ts.createCompilerHost(options);
host.getSourceFile = filename => {
if (filename === "file.ts") {
return ts.createSourceFile(filename, tsCode, undefined);
}
return ts.createSourceFile(filename, "", undefined);
};
host.writeFile = (_name, text) => {
output = text;
};
const program = ts.createProgram(["file.ts"], options, host);
program.emit();
res.status(200).send(output);
} catch (e) {
console.log(e);
res.status(500).send(e.message);
}
};
+13
View File
@@ -0,0 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
name: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: "John Doe" });
}
-13
View File
@@ -1,13 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import html2pug from "html2pug";
export default (req: NextApiRequest, res: NextApiResponse) => {
try {
const { value, settings } = req.body;
const result = html2pug(value, settings);
res.status(200).send(result);
} catch (e) {
res.status(500).send(e.message);
}
};
@@ -1,16 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import toOpenApi from "@openapi-contrib/json-schema-to-openapi-schema";
export default async (req: NextApiRequest, res: NextApiResponse) => {
try {
const jsonSchema = req.body;
const openApiSchema = await toOpenApi(jsonSchema, {
cloneSchema: true
});
res.status(200).send(JSON.stringify(openApiSchema, null, 2));
} catch (e) {
res.status(500).send(e.message);
}
};
-14
View File
@@ -1,14 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
// @ts-ignore
import { compiler, beautify } from "flowgen";
export default (req: NextApiRequest, res: NextApiResponse) => {
try {
const result = compiler.compileDefinitionString(req.body);
res.status(200).send(beautify(result));
} catch (e) {
console.log(e);
res.status(500).send(e.message);
}
};
-40
View File
@@ -1,40 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { parse, print } from "recast";
import { transformFromAstSync, parseSync } from "@babel/core";
import transformTypescript from "@babel/plugin-transform-typescript";
import getBabelOptions from "recast/parsers/_babel_options";
import { parser } from "recast/parsers/babel";
export default (req: NextApiRequest, res: NextApiResponse) => {
try {
const ast = parse(req.body, {
parser: {
parse: (source, options) => {
const babelOptions = getBabelOptions(options);
babelOptions.plugins.push("typescript", "jsx");
return parser.parse(source, babelOptions);
}
}
});
const options = {
cloneInputAst: false, // recast stores metadata in AST nodes, so disable cloning will preserve the original code style
code: false,
ast: true,
plugins: [transformTypescript],
configFile: false
};
const { ast: transformedAST } = transformFromAstSync(
ast,
req.body,
options
);
const result = print(transformedAST).code;
res.status(200).send(result);
} catch (e) {
console.log(e);
res.status(500).send(e.message);
}
};
-31
View File
@@ -1,31 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { Config } from "ts-json-schema-generator/dist/src/Config";
import * as tsj from "ts-json-schema-generator";
import os from "os";
import crypto from "crypto";
import path from "path";
import fs from "fs";
const tmpDir = os.tmpdir?.();
export default (req: NextApiRequest, res: NextApiResponse) => {
const filePath =
path.join(tmpDir, crypto.randomBytes(16).toString("hex")) + ".ts";
try {
fs.writeFileSync(filePath, req.body, {
encoding: "utf-8"
});
const config: Config = {
path: filePath,
expose: "all",
jsDoc: "extended",
type: "*"
};
const schema = tsj.createGenerator(config).createSchema(config.type);
res.status(200).send(JSON.stringify(schema, null, 2));
} catch (e) {
res.status(500).send(e.message);
}
fs.unlinkSync(filePath);
};
-36
View File
@@ -1,36 +0,0 @@
import { NextApiRequest, NextApiResponse } from "next";
import { generate } from "ts-to-zod";
import os from "os";
import crypto from "crypto";
import path from "path";
const tmpDir = os.tmpdir?.();
export default (req: NextApiRequest, res: NextApiResponse) => {
const { query, body } = req;
const { skipParseJSDoc, keepComments } = query;
const filePath =
path.join(tmpDir, crypto.randomBytes(16).toString("hex")) + ".ts";
try {
const schemaGenerator = generate({
sourceText: body,
keepComments: keepComments === "true",
skipParseJSDoc: skipParseJSDoc === "true"
});
const schema = schemaGenerator.getZodSchemasFile(filePath);
const formattedSchema = schema
.split(/\r?\n/)
.slice(1)
.join("\n");
res
.status(200)
.json({ schema: formattedSchema, error: schemaGenerator.errors[0] });
} catch (e) {
res.status(200).json({ error: e.message });
}
};
-78
View File
@@ -1,78 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import { Alert } from "evergreen-ui";
import gofmt from "gofmt.js";
import { CadenceParser } from "@lemonneko/flow__cadence-parser";
const typeMap = {
UInt: '*big.Int',
UInt8: 'uint8',
UInt16: 'uint16',
UInt32: 'uint32',
UInt64: 'uint64',
UInt128: '*big.Int',
UInt256: '*big.Int',
Int: '*big.Int',
Int8: 'int8',
Int16: 'int16',
Int32: 'int32',
Int64: 'int64',
Int128: '*big.Int',
Int256: '*big.Int',
UFix64: 'uint64',
Fix64: 'int64',
String: 'string',
Character: 'string',
Bool: 'bool',
Path: 'string',
Address: '[8]uint8'
}
function firstLetterUppercase(id: string): string {
return id.charAt(0).toUpperCase() + id.slice(1)
}
async function cadenceToGo(value: string): Promise<string> {
const parser = await CadenceParser.create("https://cdn.jsdelivr.net/npm/@lemonneko/flow__cadence-parser@0.24.1/dist/cadence-parser.wasm")
const ast = parser.parse(value);
const program = ast.program
const declarations = program.Declarations
let ret = ''
for (const dec of declarations) {
let decRet = ''
// only struct can be converted
if (dec.CompositeKind === "CompositeKindStructure") {
decRet += `type ${dec.Identifier.Identifier} struct {\n`
for (const member of dec.Members.Declarations) {
if (member.Type === 'FieldDeclaration') {
decRet += `${firstLetterUppercase(member.Identifier.Identifier)} ${typeMap[member.TypeAnnotation.AnnotatedType.Identifier.Identifier]} \`godence:"${member.Identifier.Identifier}"\`\n`
}
}
decRet += '\n}'
}
ret += decRet
}
return ret
}
// return a promise
const transform = async(value: string) => {
const ret = await cadenceToGo(value)
return gofmt(ret)
}
export default function CadenceToGo() {
const transformer = useCallback(({ value }) => transform(value),[]);
return (
<ConversionPanel
transformer={transformer}
editorTitle="Cadence"
editorLanguage="text"
editorDefaultValue="cadence"
resultTitle="Go struct"
resultLanguage={"go"}
/>
);
}
-36
View File
@@ -1,36 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import React, { useCallback } from "react";
import { getWorker } from "@utils/workerWrapper";
import PostCssWorker from "@workers/postcss.worker";
import { useSettings } from "@hooks/useSettings";
let postCssWorker;
export default function CssToJs() {
const name = "CSS to JS";
// TODO
const [settings, setSettings] = useSettings(name, {
reactNativeCompatible: false,
cleanPropertyNames: false
});
const transformer = useCallback<Transformer>(async ({ value }) => {
postCssWorker = postCssWorker || getWorker(PostCssWorker);
const _value = await postCssWorker.send(value);
return `const converted = ${_value}`;
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="JavaScript Object"
editorTitle="CSS"
editorLanguage="css"
resultLanguage="javascript"
editorProps={{
acceptFiles: "text/css"
}}
/>
);
}
-321
View File
@@ -1,321 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import NoSSR from "@components/NoSSR";
import * as React from "react";
import { useState, useCallback } from "react";
import request from "@utils/request";
import tailwindCss from "@utils/tailwindcss";
import { promises as fs } from "fs";
import path from "path";
import cssToTailwind from "css-to-tailwind/browser";
import isEqual from "lodash/isEqual";
import { useSettings } from "@hooks/useSettings";
import {
Dialog,
Pane,
Tablist,
Tab,
Alert,
Button,
Icon,
Tooltip,
toaster
} from "evergreen-ui";
import tailwindResolve from "tailwindcss1/resolveConfig";
import dynamic from "next/dynamic";
const Monaco = dynamic(() => import("../components/Monaco"), {
ssr: false
});
const options = {
fontSize: 14,
readOnly: false,
codeLens: false,
fontFamily: "Menlo, Consolas, monospace, sans-serif",
minimap: {
enabled: false
},
quickSuggestions: false,
lineNumbers: "on",
renderValidationDecorations: "off"
};
const tabs = [
{ label: "TailwindCSS Config", language: "javascript" },
{ label: "PostCSS Input", language: "css" }
];
function CssToTailwindSettings({ open, toggle, onConfirm, settings }) {
const [selectedIndex, setSelectedIndex] = useState(0);
const [isConfirmLoading, setConfirmLoading] = useState(false);
const [tailwindConfigValue, setTailwindConfigValue] = useState(
settings.tailwindConfig
);
const [postCssInputValue, setPostCssInputValue] = useState(
settings.postCssInput
);
return (
<Dialog
title={
<>
TailwindCSS Settings
<a
href="https://tailwindcss.com/docs/configuration"
target="_blank"
style={{ verticalAlign: "middle" }}
>
<Tooltip content="Open the TailwindCSS docs...">
<Icon icon="help" color="info" marginLeft={16} />
</Tooltip>
</a>
</>
}
isShown={open}
isConfirmLoading={isConfirmLoading}
confirmLabel={isConfirmLoading ? "Running PostCSS..." : "Confirm"}
onCloseComplete={toggle}
onConfirm={async close => {
setConfirmLoading(true);
const isSuccess = await onConfirm({
tailwindConfigValue,
postCssInputValue
});
setConfirmLoading(false);
if (isSuccess) {
close();
}
}}
onCancel={close => {
setTailwindConfigValue(settings.tailwindConfig);
setPostCssInputValue(settings.postCssInput);
close();
}}
>
<>
<Tablist marginBottom={16} flexBasis={240} marginRight={24}>
{tabs.map(({ label }, index) => (
<Tab
key={label}
onSelect={() => setSelectedIndex(index)}
isSelected={index === selectedIndex}
>
{label}
</Tab>
))}
</Tablist>
<Pane padding={16} flex="1">
<Pane height={300}>
<Monaco
language={tabs[selectedIndex].language}
value={
selectedIndex === 0 ? tailwindConfigValue : postCssInputValue
}
onChange={
selectedIndex === 0
? setTailwindConfigValue
: setPostCssInputValue
}
options={options}
height={300}
/>
</Pane>
</Pane>
</>
</Dialog>
);
}
function SettingsInfo({ isDefaultConfig, resetSettings }) {
if (isDefaultConfig) {
return null;
}
// opting out from SSR, because something goes wrong with the Alert component otherwise
return (
<NoSSR>
<div style={{ minHeight: 20 }}>
<Alert
intent="warning"
backgroundColor="#FEF8E7"
title={
<>
Custom config is applied to TailwindCSS
<Pane
display="inline-block"
position="absolute"
right="10px"
marginTop="-2px"
>
<Button
appearance="minimal"
intent="warning"
height={24}
onClick={resetSettings}
>
Reset
</Button>
</Pane>
</>
}
/>
</div>
</NoSSR>
);
}
function formatOutput(results) {
const content = results
.map(result => {
const { selector, tailwind, missing } = result;
let output = `/* ℹ️ Base selector: ${selector} */`;
if (tailwind.length) {
output += `\n/* ✨ TailwindCSS: "${tailwind}" */`;
const { base, ...missingVariants } = missing;
if (base && base.length) {
output += `\n/* ⚠️ Some properties could not be matched with Tailwind classes. Use @apply to extend a CSS rule: */
${selector} {
@apply ${tailwind};
${base.map(([prop, value]) => `${prop}: ${value};`).join("\n ")}
}`;
}
if (Object.keys(missingVariants).length) {
output += `\n/* ⚠️ Some properties are requiring specific variants, but the variant does not support those. Consider extending your Tailwind config.\n`;
Object.entries(missingVariants).forEach(([variant, values]) => {
const properties = (values as [string, string])
.map(([prop, value]) => `\t${prop}: ${value};`)
.join("\n ");
output += `${variant}:\n${properties}\n`;
});
output += "*/";
}
} else {
output += `\n/* ❌ Could not match any TailwindCSS classes. */`;
}
return output;
})
.join("\n\n");
const success = results.filter(result => result.tailwind.length);
(window as any).cssToTailwindResults = results;
return `/* ${success.length}/${results.length} base rules are converted successfully. */\n/* Gather results from the console with \`copy(window.cssToTailwindResults)\` */\n\n${content}`;
}
export default function CssToTailwind({ defaultSettings }) {
const [settings, setSettings] = useSettings(
"css-to-tailwind",
defaultSettings
);
const onSettingsSubmit = useCallback(
async ({ tailwindConfigValue, postCssInputValue }) => {
try {
const resolvedTailwindConfig = tailwindResolve(
eval(`const module = {}; ${tailwindConfigValue}; module.exports;`)
);
try {
const newTailwindCss = await request("/api/build-tailwind-css", {
tailwindConfig: resolvedTailwindConfig,
postCssInput: postCssInputValue
});
toaster.success("Custom TailwindCSS config is successfully applied");
setSettings({
tailwindConfig: tailwindConfigValue,
postCssInput: postCssInputValue,
tailwindCss: newTailwindCss
});
// indicate submit was successful
return true;
} catch (e) {
toaster.danger(
"Something went wrong trying to build TailwindCSS with custom config",
{
description: "Now the default config is used instead"
}
);
}
} catch (e) {
toaster.danger(
"Something went wrong trying to resolve TailwindCSS config",
{
description: e.message
}
);
}
},
[]
);
const transformer = useCallback<Transformer>(async ({ value }) => {
const results = await cssToTailwind(value, settings.tailwindCss);
return formatOutput(results);
}, []);
const resetSettings = useCallback(() => {
setSettings(defaultSettings);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="CSS"
editorLanguage="css"
editorDefaultValue="css2"
resultTitle="TailwindCSS 1"
resultLanguage={"css"}
editorProps={{
settingElement: ({ open, toggle }) => {
return (
<CssToTailwindSettings
key={`${settings.tailwindConfig}${settings.postCssInput}`}
open={open}
toggle={toggle}
onConfirm={onSettingsSubmit}
settings={settings}
/>
);
},
topNotifications: () => {
return (
<SettingsInfo
isDefaultConfig={isEqual(settings, defaultSettings)}
resetSettings={resetSettings}
/>
);
}
}}
/>
);
}
export async function getStaticProps() {
const tailwindConfig = await fs.readFile(
path.resolve("./node_modules/tailwindcss/stubs/simpleConfig.stub.js"),
"utf-8"
);
const postCssInput = await fs.readFile(
path.resolve("./node_modules/tailwindcss/tailwind.css"),
"utf-8"
);
const config = eval(`const module = {}; ${tailwindConfig}; module.exports;`);
const css = await tailwindCss(config, postCssInput);
return {
props: {
defaultSettings: {
tailwindConfig,
postCssInput,
tailwindCss: css
}
}
};
}
-31
View File
@@ -1,31 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import request from "@utils/request";
import { Alert } from "evergreen-ui";
export default function FlowToJavascript() {
const transformer = useCallback(
({ value }) => request("/api/flow-to-javascript", value, "plain/text"),
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="Flow"
editorLanguage="plaintext"
editorDefaultValue="flow"
resultTitle="JavaScript"
resultLanguage={"javascript"}
resultEditorProps={{
topNotifications: () => (
<Alert
backgroundColor="#e7f7ff"
title="This code is converted on the server."
/>
)
}}
/>
);
}
-35
View File
@@ -1,35 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import request from "@utils/request";
import { Alert } from "evergreen-ui";
export default function FlowToTypescriptDeclaration() {
const transformer = useCallback(
({ value }) =>
request("/api/flow-to-typescript", {
value,
declarationOnly: true
}),
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="Flow"
editorLanguage="plaintext"
editorDefaultValue="flow"
resultTitle="TypeScript Declarations"
resultLanguage={"typescript"}
resultEditorProps={{
topNotifications: () => (
<Alert
backgroundColor="#e7f7ff"
title="This code is converted on the server."
/>
)
}}
/>
);
}
-35
View File
@@ -1,35 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import request from "@utils/request";
import { Alert } from "evergreen-ui";
export default function FlowToTypescript() {
const transformer = useCallback(
({ value }) =>
request("/api/flow-to-typescript", {
value,
declarationOnly: false
}),
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="Flow"
editorLanguage="plaintext"
editorDefaultValue="flow"
resultTitle="TypeScript"
resultLanguage={"typescript"}
resultEditorProps={{
topNotifications: () => (
<Alert
backgroundColor="#e7f7ff"
title="This code is converted on the server."
/>
)
}}
/>
);
}
-62
View File
@@ -1,62 +0,0 @@
import * as React from "react";
import { useCallback, useState } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
import { Select } from "evergreen-ui";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToComponents() {
const [output, setOutput] = useState(
GraphqlTransforms.TO_REACT_APOLLO.toString(10)
);
const transformer = useCallback<Transformer>(
async ({ value, splitEditorValue }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: parseInt(output, 10),
value,
document: splitEditorValue
});
},
[output]
);
return (
<ConversionPanel
settings={output}
transformer={transformer}
resultTitle={
<Select value={output} onChange={e => setOutput(e.target.value)}>
<option value={GraphqlTransforms.TO_REACT_APOLLO}>
TypeScript React Apollo
</option>
<option value={GraphqlTransforms.TO_APOLLO_ANGULAR}>
TypeScript Apollo Angular
</option>
<option value={GraphqlTransforms.TO_STENCIL_APOLLO}>
TypeScript Stencil Apollo
</option>
<option value={GraphqlTransforms.TO_URQL}>TypeScript urql</option>
</Select>
}
editorTitle="GraphQL Schema"
editorLanguage="graphql"
editorDefaultValue="graphql1"
resultLanguage="typescript"
editorProps={props}
splitEditorProps={props}
splitTitle="Document"
splitLanguage="graphql"
splitEditorDefaultValue={"graphqlDocument"}
/>
);
}
-43
View File
@@ -1,43 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToFlow() {
const transformer = useCallback<Transformer>(
async ({ value, splitEditorValue }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_FLOW,
value,
document: splitEditorValue
});
},
[]
);
return (
<ConversionPanel
transformer={transformer}
resultTitle="Flow"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
editorDefaultValue="graphql1"
resultLanguage="flow"
editorProps={props}
splitEditorProps={props}
splitTitle="Document"
splitLanguage="graphql"
splitEditorDefaultValue={"graphqlDocument"}
/>
);
}
-34
View File
@@ -1,34 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToFragmentMatcher() {
const transformer = useCallback<Transformer>(async ({ value }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_FRAGMENT_MATCHER,
value
});
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="Fragment Matcher"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
resultLanguage="typescript"
editorProps={props}
/>
);
}
-35
View File
@@ -1,35 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker, prettierWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToIntrospectionJson() {
const transformer = useCallback<Transformer>(async ({ value }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_INTROSPECTION_JSON,
value,
extension: "json"
});
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="Introspection JSON"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
resultLanguage="json"
editorProps={props}
/>
);
}
-34
View File
@@ -1,34 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToJava() {
const transformer = useCallback<Transformer>(async ({ value }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_JAVA,
value
});
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="Java (Enum and Input)"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
resultLanguage="java"
editorProps={props}
/>
);
}
-71
View File
@@ -1,71 +0,0 @@
import * as React from "react";
import { useCallback, useState } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
import { Select } from "evergreen-ui";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
const langMap = {
[GraphqlTransforms.TO_FLOW_RESOLVERS_SIGNATURE]: "flow",
[GraphqlTransforms.TO_TYPESCRIPT_RESOLVERS_SIGNATURE]: "typescript",
[GraphqlTransforms.TO_JAVA_RESOLVERS_SIGNATURE]: "java"
};
export default function GraphqlToResolversSignature() {
const [output, setOutput] = useState(
GraphqlTransforms.TO_TYPESCRIPT_RESOLVERS_SIGNATURE.toString(10)
);
const transformer = useCallback<Transformer>(
async ({ value, splitEditorValue }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: parseInt(output, 10),
value,
document:
output ===
GraphqlTransforms.TO_TYPESCRIPT_RESOLVERS_SIGNATURE.toString(10)
? splitEditorValue
: undefined
});
},
[output]
);
return (
<ConversionPanel
settings={output}
transformer={transformer}
resultTitle={
<Select value={output} onChange={e => setOutput(e.target.value)}>
<option value={GraphqlTransforms.TO_TYPESCRIPT_RESOLVERS_SIGNATURE}>
TypeScript Resolvers Signature
</option>
<option value={GraphqlTransforms.TO_FLOW_RESOLVERS_SIGNATURE}>
Flow Resolvers Signature
</option>
<option value={GraphqlTransforms.TO_JAVA_RESOLVERS_SIGNATURE}>
JAVA Resolvers Signature
</option>
</Select>
}
editorTitle="GraphQL Schema"
editorLanguage="graphql"
editorDefaultValue="graphql1"
resultLanguage={langMap[output]}
editorProps={props}
splitEditorProps={props}
splitTitle="Documents"
splitLanguage="graphql"
splitEditorDefaultValue={"graphqlDocument"}
/>
);
}
-35
View File
@@ -1,35 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToSchemaAst() {
const transformer = useCallback<Transformer>(async ({ value }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_SCHEMA_AST,
value,
extension: "graphql"
});
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="Schema AST"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
resultLanguage="graphql"
editorProps={props}
/>
);
}
-36
View File
@@ -1,36 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToTypescriptMongodb() {
const transformer = useCallback<Transformer>(async ({ value }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_TYPESCRIPT_MONGODB,
value,
extension: "ts"
});
}, []);
return (
<ConversionPanel
transformer={transformer}
resultTitle="TypeScript MongoDB"
editorTitle="GraphQL Schema"
editorDefaultValue="graphqlMongodb"
editorLanguage="graphql"
resultLanguage="typescript"
editorProps={props}
/>
);
}
-43
View File
@@ -1,43 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import GrapqlWorker from "@workers/graphql.worker";
import { GraphqlTransforms } from "@constants/graphqlTransforms";
let graphqlWorker;
const props = {
acceptFiles: ".graphql, .gql"
};
export default function GraphqlToTypescript() {
const transformer = useCallback<Transformer>(
async ({ value, splitEditorValue }) => {
graphqlWorker = graphqlWorker || getWorker(GrapqlWorker);
return graphqlWorker.send({
type: GraphqlTransforms.TO_TYPESCRIPT,
value,
document: splitEditorValue
});
},
[]
);
return (
<ConversionPanel
transformer={transformer}
resultTitle="TypeScript"
editorTitle="GraphQL Schema"
editorLanguage="graphql"
editorDefaultValue="graphql1"
resultLanguage="typescript"
editorProps={props}
splitEditorProps={props}
splitTitle="Document"
splitLanguage="graphql"
splitEditorDefaultValue="graphqlDocument"
/>
);
}
-102
View File
@@ -1,102 +0,0 @@
import * as React from "react";
import { useCallback, useState } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import HtmlToJsx from "htmltojsx";
import { EditorPanelProps } from "@components/EditorPanel";
import Form, { InputType } from "@components/Form";
import { useSettings } from "@hooks/useSettings";
import isSvg from "is-svg";
import { Alert, Heading } from "evergreen-ui";
import Router from "next/router";
interface Settings {
createFunction: boolean;
outputFunctionName: string;
}
const formFields = [
{
type: InputType.SWITCH,
key: "createFunction",
label: "Create function component"
}
];
export default function HtmlToJsxComponent() {
const name = "HTML to JSX";
const [settings, setSettings] = useSettings(name, {
createFunction: false
});
const [_isSvg, setSvg] = useState(false);
const transformer = useCallback<Transformer>(
async ({ value }) => {
setSvg(isSvg(value));
const converter = new HtmlToJsx({
createClass: false
});
let result = converter.convert(value);
if (settings.createFunction) {
result = `export const Foo = () => (${result})`;
}
return result;
},
[settings]
);
const getSettingsElement = useCallback<EditorPanelProps["settingElement"]>(
({ open, toggle }) => {
return (
<Form<Settings>
title="HTML to JSX"
onSubmit={setSettings}
open={open}
toggle={toggle}
formsFields={formFields}
initialValues={settings}
/>
);
},
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="HTML"
resultLanguage={"javascript"}
resultTitle="JSX"
editorLanguage="html"
editorSettingsElement={getSettingsElement}
settings={settings}
editorProps={{
topNotifications: () =>
_isSvg ? (
<Alert
backgroundColor="#e7f7ff"
title={
<>
SVG detected. For preview and optimization, go to{" "}
<Heading
size={400}
is="a"
color={"blue"}
onClick={() => Router.push("/svg-to-jsx")}
>
SVG to JSX converter.
</Heading>
</>
}
/>
) : (
undefined
)
}}
/>
);
}
-76
View File
@@ -1,76 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import { useSettings } from "@hooks/useSettings";
import Form, { InputType } from "@components/Form";
import request from "@utils/request";
const formFields = [
{
key: "tabs",
type: InputType.SWITCH,
label: "Use Tabs"
},
{
key: "commas",
type: InputType.SWITCH,
label: "Commas"
},
{
key: "doubleQuotes",
type: InputType.SWITCH,
label: "Use double quotes"
},
{
key: "fragment",
type: InputType.SWITCH,
label: "Use Fragment"
}
];
const defaultSettings = {
tabs: true,
commas: true,
doubleQuotes: false,
fragment: false
};
export default function HtmlToPug() {
const name = "HTML to Pug";
const [settings, setSettings] = useSettings(name, defaultSettings);
const getSettingsElement = useCallback(({ open, toggle }) => {
return (
<Form<typeof defaultSettings>
title={name}
onSubmit={setSettings}
open={open}
toggle={toggle}
formsFields={formFields}
initialValues={settings}
/>
);
}, []);
const transformer = useCallback(
({ value }) =>
request("/api/html-to-pug", {
value,
settings
}),
[settings]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="HTML"
editorLanguage="html"
resultTitle="Pug"
resultLanguage={"pug"}
resultSettingsElement={getSettingsElement}
settings={settings}
/>
);
}
-56
View File
@@ -1,56 +0,0 @@
import * as React from "react";
import { SvgConverter } from "@components/SvgConverter";
import { useState } from "react";
import { defaultSettings, formFields } from "@constants/svgoConfig";
import { useCallback } from "react";
import { Transformer } from "@components/ConversionPanel";
import isSvg from "is-svg";
import { getWorker } from "@utils/workerWrapper";
import SvgrWorker from "@workers/svgr.worker";
import SvgoWorker from "@workers/svgo.worker";
let prettier, svgo, svgr;
export default function Index() {
const name = "SVG to JSX";
const [settings, setSettings] = useState(defaultSettings);
const [optimizedValue, setOptimizedValue] = useState("");
const transformer = useCallback<Transformer>(
async ({ value }) => {
if (!isSvg(value)) throw new Error("This is not a valid svg code.");
svgr = svgr || getWorker(SvgrWorker);
svgo = svgo || getWorker(SvgoWorker);
let _value = value;
if (settings.optimizeSvg) {
_value = await svgo.send({
value,
settings
});
}
setOptimizedValue(_value);
_value = await svgr.send({
value: _value
});
return _value;
},
[settings]
);
return (
<SvgConverter
transformer={transformer}
formFields={formFields(defaultSettings)}
setSettings={setSettings}
optimizedValue={optimizedValue}
settings={settings}
name={name}
resultTitle={"JSX"}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
export default function JsObjectToJson() {
const transformer = useCallback(async ({ value }) => {
return JSON.stringify(eval("(" + value + ")"), null, 2);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JS Object"
editorLanguage="javascript"
editorDefaultValue="jsObject"
resultTitle="JSON"
resultLanguage={"json"}
/>
);
}
-34
View File
@@ -1,34 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import request from "@utils/request";
import { Alert } from "evergreen-ui";
export default function JsonSchemaToOpenapiSchema() {
const transformer = useCallback(async ({ value }) => {
const json = await request(
"/api/json-schema-to-openapi-schema",
JSON.parse(value)
);
return JSON.stringify(json, null, 2);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON Schema"
editorLanguage="json"
editorDefaultValue="jsonSchema"
resultTitle="Open API Schema"
resultLanguage={"json"}
resultEditorProps={{
topNotifications: () => (
<Alert
backgroundColor="#e7f7ff"
title="This code is converted on the server."
/>
)
}}
/>
);
}
-22
View File
@@ -1,22 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import convert from "jsonschema-protobuf";
export default function JsonSchemaToProtobuf() {
const transformer = useCallback<Transformer>(
async ({ value }) => convert(value),
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON Schema"
editorLanguage="json"
editorDefaultValue="jsonSchema"
resultTitle="Protobuf"
resultLanguage={"text"}
/>
);
}
-23
View File
@@ -1,23 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import { compile } from "json-schema-to-typescript";
export default function JsonSchemaToTypescript() {
const transformer = useCallback(async ({ value }) => {
return compile(JSON.parse(value), "MySchema", {
bannerComment: ""
});
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON Schema"
editorLanguage="json"
editorDefaultValue="jsonSchema"
resultTitle="TypeScript"
resultLanguage={"typescript"}
/>
);
}
-63
View File
@@ -1,63 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { EditorPanelProps } from "@components/EditorPanel";
import Form, { InputType } from "@components/Form";
import { useSettings } from "@hooks/useSettings";
import * as React from "react";
import { useCallback } from "react";
interface Settings {
rootName: string;
}
const formFields = [
{
type: InputType.TEXT_INPUT,
key: "rootName",
label: "Root Schema Name"
}
];
export default function JsonSchemaToZod() {
const name = "JSON Schema to Zod Schema";
const [settings, setSettings] = useSettings(name, {
rootName: "schema"
});
const transformer = useCallback(
async ({ value }) => {
const { jsonSchemaToZod } = await import("json-schema-to-zod");
return jsonSchemaToZod(JSON.parse(value), settings.rootName, true);
},
[settings]
);
const getSettingsElement = useCallback<EditorPanelProps["settingElement"]>(
({ open, toggle }) => {
return (
<Form<Settings>
title={name}
onSubmit={setSettings}
open={open}
toggle={toggle}
formsFields={formFields}
initialValues={settings}
/>
);
},
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON Schema"
editorLanguage="json"
editorDefaultValue="jsonSchema"
resultTitle="Zod Schema"
resultLanguage={"typescript"}
editorSettingsElement={getSettingsElement}
settings={settings}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import gs from "generate-schema";
export default function JsonToBigQuery() {
const transformer = useCallback(async ({ value }) => {
return JSON.stringify(gs.bigquery(JSON.parse(value)), null, 2);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Big Query Schema"
resultLanguage={"json"}
/>
);
}
-73
View File
@@ -1,73 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import { json2ts } from "json-ts";
import { useSettings } from "@hooks/useSettings";
import Form, { InputType } from "@components/Form";
import { EditorPanelProps } from "@components/EditorPanel";
import { Settings } from "@constants/svgoConfig";
const formFields = [
{
type: InputType.TEXT_INPUT,
key: "namespace",
label: "Namespace"
},
{
type: InputType.TEXT_INPUT,
key: "prefix",
label: "prefix"
},
{
type: InputType.TEXT_INPUT,
key: "rootName",
label: "Root Name"
}
];
const defaultSettings = {
namespace: "",
prefix: "I",
rootName: "RootObject"
};
export default function JsonToFlow() {
const name = "json-to-flow";
const [settings, setSettings] = useSettings(name, defaultSettings);
const getSettingsElement = useCallback<EditorPanelProps["settingElement"]>(
({ open, toggle }) => {
return (
<Form<Settings>
title="JSON to Flow"
onSubmit={setSettings}
open={open}
toggle={toggle}
formsFields={formFields}
initialValues={settings}
/>
);
},
[]
);
const transformer = useCallback(
async ({ value }) => {
return json2ts(value, { flow: true, ...settings });
},
[settings]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Flow"
resultLanguage={"typescript"}
resultSettingsElement={getSettingsElement}
settings={settings}
/>
);
}
-24
View File
@@ -1,24 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToGoBson() {
const transformer = useCallback<Transformer>(async ({ value }) => {
return JSON.stringify(JSON.parse(value || "{}"), null, 2)
.replace(/\{/gm, "bson.M{")
.replace(/\[/gm, "bson.A{")
.replace(/\]/gm, "}")
.replace(/(\d|\w|")$/gm, "$1,")
.replace(/(\}$)(\n)/gm, "$1,$2");
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Go Bson"
resultLanguage={"go"}
/>
);
}
-21
View File
@@ -1,21 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import jsonToGo from "json-to-go";
import gofmt from "gofmt.js";
export default function JsonToGo() {
const transformer = useCallback(({ value }) => {
return gofmt(jsonToGo(value).go);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Go"
resultLanguage={"go"}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import { jsonToSchema } from "@walmartlabs/json-to-simple-graphql-schema/lib";
export default function JsonToGraphql() {
const transformer = useCallback(({ value }) => {
return jsonToSchema({ jsonInput: value }).value;
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="GraphQL"
resultLanguage={"graphql"}
/>
);
}
-24
View File
@@ -1,24 +0,0 @@
import transform from "transform-json-types";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToIoTs() {
const transformer = useCallback<Transformer>(async ({ value }) => {
const code = transform(value, {
lang: "io-ts"
});
return `import * as t from "io-ts";\n\n${code}`;
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="IO TS"
resultLanguage={"rust"}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import { convert } from "@assets/vendor/json-to-jsdoc";
export default function JsonToJsdoc() {
const transformer = useCallback<Transformer>(async ({ value }) => {
return convert(value);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="JSDoc"
resultLanguage={"javascript"}
/>
);
}
-26
View File
@@ -1,26 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToJsonSchema() {
const transformer = useCallback(async ({ value }) => {
const { run } = await import("json_typegen_wasm");
return run(
"Root",
value,
JSON.stringify({
output_mode: "json_schema"
})
);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="JSON Schema"
resultLanguage={"json"}
/>
);
}
-26
View File
@@ -1,26 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToKotlin() {
const transformer = useCallback(async ({ value }) => {
const { run } = await import("json_typegen_wasm");
return run(
"Root",
value,
JSON.stringify({
output_mode: "kotlin"
})
);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Kotlin"
resultLanguage={"kotlin"}
/>
);
}
-28
View File
@@ -1,28 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import BabelWorker from "@workers/babel.worker";
import { getWorker } from "@utils/workerWrapper";
import { BabelTransforms } from "@constants/babelTransforms";
let babelWorker;
export default function JsonToMobxStateTree() {
const transformer = useCallback(async ({ value }) => {
babelWorker = babelWorker || getWorker(BabelWorker);
return babelWorker.send({
type: BabelTransforms.JSON_TO_MOBX_TREE,
value
});
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="MobX-State-Tree Model"
resultLanguage={"javascript"}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import gs from "generate-schema";
export default function JsonToMongoose() {
const transformer = useCallback(async ({ value }) => {
return JSON.stringify(gs.mongoose(JSON.parse(value)), null, 2);
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Mongoose Schema"
resultLanguage={"json"}
/>
);
}
-20
View File
@@ -1,20 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import gs from "generate-schema";
export default function JsonToMysql() {
const transformer = useCallback(({ value }) => {
return gs.mysql(JSON.parse(value));
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="MySQL Schema"
resultLanguage={"sql"}
/>
);
}
-25
View File
@@ -1,25 +0,0 @@
import * as React from "react";
import { useCallback } from "react";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { getWorker } from "@utils/workerWrapper";
import { BabelTransforms } from "@constants/babelTransforms";
export default function JsonToProptypes() {
const transformer = useCallback<Transformer>(async ({ value }) => {
const Worker = require("@workers/babel.worker");
return getWorker(Worker).send({
value,
type: BabelTransforms.JSON_TO_PROPTYPES
});
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
resultLanguage="javascript"
resultTitle="PropTypes"
editorLanguage="json"
/>
);
}
-80
View File
@@ -1,80 +0,0 @@
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
import Form, { InputType } from "@components/Form";
import { useSettings } from "@hooks/useSettings";
import { EditorPanelProps } from "@components/EditorPanel";
import { Settings } from "@constants/svgoConfig";
const formFields = [
{
type: InputType.SELECT,
key: "property_name_format",
label: "Property Name Format",
options: [
"PascalCase",
"camelCase",
"snake_case",
"SCREAMING_SNAKE_CASE",
"kebab-case",
"SCREAMING-KEBAB-CASE",
"UPPERCASE"
].map(value => ({
label: value,
value
}))
}
];
const defaultSettings = {
property_name_format: "camelCase"
};
export default function JsonToRustSerde() {
const name = "json-to-rust-serde";
const [settings, setSettings] = useSettings(name, defaultSettings);
const transformer = useCallback<Transformer>(
async ({ value }) => {
const { run } = await import("json_typegen_wasm");
return run(
"Root",
value,
JSON.stringify({
output_mode: "rust",
property_name_format: settings.property_name_format
})
);
},
[settings]
);
const getSettingsElement = useCallback<EditorPanelProps["settingElement"]>(
({ open, toggle }) => {
return (
<Form<Settings>
title="JSON to Rust Serde"
onSubmit={setSettings}
open={open}
toggle={toggle}
formsFields={formFields}
initialValues={settings}
/>
);
},
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Rust Serde"
resultLanguage={"rust"}
resultSettingsElement={getSettingsElement}
settings={settings}
/>
);
}
-24
View File
@@ -1,24 +0,0 @@
import transform from "transform-json-types";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToSarcastic() {
const transformer = useCallback<Transformer>(async ({ value }) => {
const code = transform(value, {
lang: "sarcastic"
});
return `import is from "sarcastic";\n\n${code}`;
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Sarcastic"
resultLanguage={"javascript"}
/>
);
}
-22
View File
@@ -1,22 +0,0 @@
import transform from "transform-json-types";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import * as React from "react";
import { useCallback } from "react";
export default function JsonToScalaCaseClass() {
const transformer = useCallback<Transformer>(async ({ value }) => {
return transform(value, {
lang: "scala"
});
}, []);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="Scala Case Class"
resultLanguage={"scala"}
/>
);
}
-21
View File
@@ -1,21 +0,0 @@
import ConversionPanel from "@components/ConversionPanel";
import { useCallback } from "react";
import * as React from "react";
import { stringify } from "@iarna/toml";
export default function JsonToToml() {
const transformer = useCallback(
({ value }) => Promise.resolve(stringify(JSON.parse(value))),
[]
);
return (
<ConversionPanel
transformer={transformer}
editorTitle="JSON"
editorLanguage="json"
resultTitle="TOML"
resultLanguage={"toml"}
/>
);
}
Loaded 100 of 153 files, more files were not shown because too many files have changed in this diff. Show more