Skip to content

Commit

Permalink
Merge pull request #4 from Aram47/main
Browse files Browse the repository at this point in the history
add queryes
  • Loading branch information
arammkhitaryan authored Jan 16, 2025
2 parents e9aef11 + 52937c8 commit 40eb0d5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions picsart-miro-plugin/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const App = () => {
</p>

<p style={{ fontSize: textSize.referenceParagraphSize, marginTop: "-10px", display: "inline"}} className="description text-alt">
1. To use the plugin, go to <span onClick={() => window.open('https://picsart.com/', '_blank')} style={{ color: "#C209C1", cursor: "pointer", }}>Picsart.com</span> and create a free account. <div></div>
1. To use the plugin, go to <span onClick={() => window.open('https://console.picsart.io/?utm_source=miro&utm_medium=app&utm_campaign=plugins', '_blank')} style={{ color: "#C209C1", cursor: "pointer", }}>picsart.io</span> and create a free account. <div></div>
</p>
<p style={{ fontSize: textSize.referenceParagraphSize, marginTop: "-10px", display: "inline" }} className="description text-alt">
2. Go to the <span onClick={() => window.open('https://console.picsart.io', '_blank')} style={{ color: "#C209C1", cursor: "pointer", }}>API dashboard</span>, copy and past your API key here.
2. Go to the <span onClick={() => window.open('https://console.picsart.io/?utm_source=miro&utm_medium=app&utm_campaign=plugins', '_blank')} style={{ color: "#C209C1", cursor: "pointer", }}>Console</span>, copy and past your API key here.
</p>
</div>
<input
Expand Down
1 change: 0 additions & 1 deletion picsart-miro-plugin/src/components/balance/balance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const Balance = ({credits, setCredits}) => {
headers: {
accept: 'application/json',
'X-Picsart-API-Key': apiKey,
'X-Picsart-Plugin': 'Miro'
}
};
const response = await axios.request(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './buyCredits.css'
const BuyCredits = () => {
return (
<div>
<button className='buy-credits' onClick={() => window.open('https://console.picsart.io/dashboard/usage/api/?type=subscription', '_blank')}>
<button className='buy-credits' onClick={() => window.open('https://console.picsart.io/dashboard/usage/api/?type=subscription&utm_source=miro&utm_medium=app&utm_campaign=plugins', '_blank')}>
Buy more credits
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion picsart-miro-plugin/src/components/changeKey/changeKey.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ChangeKey = ({ handleModalClose }) => {
textDecoration: "underline",
color: "#158380"
}}
onClick={() => window.open("https://console.picsart.io/dashboard/apps/")}
onClick={() => window.open("https://console.picsart.io/dashboard/apps/?utm_source=miro&utm_medium=app&utm_campaign=plugins")}
>
Get your Picsart API Key
</div>
Expand Down
2 changes: 1 addition & 1 deletion picsart-miro-plugin/src/components/footer/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Footer = () => {
className="picsart-logo"
/>
</a>
<div style={{ marginTop: "5px" }}>© 2024 PicsArt, Inc.</div>
<div style={{ marginTop: "5px" }}>© 2025 PicsArt, Inc.</div>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ const ProcessingButton = (props) => {

const options = {
method: 'POST',
url: 'https://api.picsart.io/tools/1.0/upscale',
url: 'https://api.picsart.io/tools/1.0/miro/upscale',
headers: {
accept: 'application/json',
'content-type': 'multipart/form-data',
'X-Picsart-API-Key': apiKey,
'X-Picsart-Plugin': 'Miro'
},
data: form,
};
Expand Down Expand Up @@ -82,11 +81,10 @@ const ProcessingButton = (props) => {

const options = {
method: 'POST',
url: 'https://api.picsart.io/tools/1.0/removebg',
url: 'https://api.picsart.io/tools/1.0/miro/removebg',
headers: {
accept: 'application/json',
'X-Picsart-API-Key': apiKey,
'X-Picsart-Plugin': 'Miro'
},
data: form,
};
Expand Down

0 comments on commit 40eb0d5

Please sign in to comment.