mirror of
https://github.com/aculix/vector-drawable-nextjs.git
synced 2025-12-06 06:08:24 +00:00
fix: update deps
This commit is contained in:
parent
c6ac497af2
commit
b7ddbb1765
5
.idea/.gitignore
generated
vendored
5
.idea/.gitignore
generated
vendored
@ -1,5 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
6
.idea/misc.xml
generated
6
.idea/misc.xml
generated
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="JSX" />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/vector-drawable-nextjs.iml" filepath="$PROJECT_DIR$/.idea/vector-drawable-nextjs.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
12
.idea/vector-drawable-nextjs.iml
generated
12
.idea/vector-drawable-nextjs.iml
generated
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
34
README.md
34
README.md
@ -1,34 +0,0 @@
|
||||
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
|
||||
|
||||
First, run the development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
|
||||
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
|
||||
|
||||
[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.js`.
|
||||
|
||||
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.
|
||||
|
||||
## Learn More
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
- [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.
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?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.
|
||||
6041
package-lock.json
generated
6041
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -8,13 +8,12 @@
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"next": "10.0.5",
|
||||
"react": "17.0.1",
|
||||
"react-dom": "17.0.1",
|
||||
"react-inlinesvg": "^2.2.2",
|
||||
"react-sage": "^0.1.5",
|
||||
"react-svg": "^11.2.1",
|
||||
"next": "13.1.6",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-inlinesvg": "^3.0.2",
|
||||
"react-sage": "^0.3.16",
|
||||
"react-svg": "^16.1.6",
|
||||
"vector-drawable-svg": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,39 +1,39 @@
|
||||
import Document, {Html, Head, Main, NextScript} from 'next/document'
|
||||
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
||||
|
||||
export default class MyDocument extends Document {
|
||||
render() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/>
|
||||
<link rel="manifest" href="/site.webmanifest"/>
|
||||
<meta name="msapplication-TileColor" content="#1F1F1F"/>
|
||||
<meta name="theme-color" content="#1F1F1F"/>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<meta name="msapplication-TileColor" content="#1F1F1F" />
|
||||
<meta name="theme-color" content="#1F1F1F" />
|
||||
|
||||
<meta property="og:url" content="https://vector-drawable.vercel.app/"/>
|
||||
<meta property="og:title" content="Android VectorDrawable to SVG"/>
|
||||
<meta property="og:description" content="Quickly create an SVG out of Android VectorDrawable."/>
|
||||
<meta property="og:image" content="https://vector-drawable.vercel.app/thumbnail-cover@2x.png"/>
|
||||
<meta property="og:url" content="https://vector-drawable.vercel.app/" />
|
||||
<meta property="og:title" content="Android VectorDrawable to SVG" />
|
||||
<meta property="og:description" content="Quickly create an SVG out of Android VectorDrawable." />
|
||||
<meta property="og:image" content="https://vector-drawable.vercel.app/thumbnail-cover@2x.png" />
|
||||
|
||||
<meta name="twitter:card" content="Android VectorDrawable to SVG"/>
|
||||
<meta name="twitter:card" content="Android VectorDrawable to SVG" />
|
||||
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com"/>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
rel="stylesheet" />
|
||||
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com"/>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
rel="stylesheet" />
|
||||
|
||||
</Head>
|
||||
<body>
|
||||
<div className="container">
|
||||
<Main/>
|
||||
</div>
|
||||
<NextScript/>
|
||||
<div className="container">
|
||||
<Main />
|
||||
</div>
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
)
|
||||
|
||||
@ -1,14 +0,0 @@
|
||||
const axios = require('axios')
|
||||
|
||||
module.exports = async (req, res) => {
|
||||
const { method, body, url } = req.body;
|
||||
if (method == 'GET') {
|
||||
const { data } = await axios.get(url);
|
||||
return res.send(data);
|
||||
}
|
||||
|
||||
if (method == 'POST') {
|
||||
const { data } = await axios.post(url, body);
|
||||
return res.send(data);
|
||||
}
|
||||
};
|
||||
@ -1,6 +1,6 @@
|
||||
import {ReactSVG} from "react-svg";
|
||||
import {useState, useEffect} from "react";
|
||||
import {transform} from 'vector-drawable-svg';
|
||||
import { ReactSVG } from "react-svg";
|
||||
import { useState, useEffect } from "react";
|
||||
import { transform } from 'vector-drawable-svg';
|
||||
import SVG from 'react-inlinesvg';
|
||||
import { useFilePicker } from 'react-sage';
|
||||
import Head from "next/head";
|
||||
@ -162,14 +162,14 @@ export default function Home() {
|
||||
|
||||
className={"vd-dropzone " + dropzoneClassOfState(dragState)}>
|
||||
<div className="vd-placeholder">
|
||||
<ReactSVG src="plus.svg"/>
|
||||
<ReactSVG src="plus.svg" />
|
||||
</div>
|
||||
<div className="vd-image-container">
|
||||
<div onClick={clearUpload} className="text-button-icon">
|
||||
<ReactSVG src="close.svg"/>
|
||||
<ReactSVG src="close.svg" />
|
||||
</div>
|
||||
<div className="vd-image">
|
||||
<SVG src={transformedSvg} width={300} height={300} title="SVG"/>
|
||||
<SVG src={transformedSvg} width={300} height={300} title="SVG" />
|
||||
</div>
|
||||
|
||||
<div className="vd-filename">
|
||||
@ -179,14 +179,14 @@ export default function Home() {
|
||||
</div>
|
||||
|
||||
<button onClick={downloadCurrentSvg} disabled={!vectorDrawableFile} className="vd-download">
|
||||
<ReactSVG src="/download-circular-button.svg"/>
|
||||
<ReactSVG src="/download-circular-button.svg" />
|
||||
Download
|
||||
</button>
|
||||
|
||||
<footer className="vd-footer">
|
||||
<div className="vd-github">
|
||||
<a href="https://github.com/seanghay/vector-drawable-nextjs" target="_blank">
|
||||
<ReactSVG src="/github.svg"/>
|
||||
<ReactSVG src="/github.svg" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -201,5 +201,5 @@ export default function Home() {
|
||||
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user