Skip to content

Commit

Permalink
Migrate to pnpm (#389)
Browse files Browse the repository at this point in the history
* Update index.tsx

* Update index.tsx

* Update index.tsx

* add posthog

* posthog feature flag

* update demo

* chore(release): publish

* update demo

* update demo

* Simplified demo

* update 50%

* update

* update demo

* migrate to pnpm
  • Loading branch information
m-Ryan authored Apr 15, 2024
1 parent 8682614 commit e5166a5
Show file tree
Hide file tree
Showing 98 changed files with 37,106 additions and 17,890 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
".css.text?raw": "css"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"cSpell.words": ["Mjml"],
"eslint.workingDirectories": [
Expand Down
19 changes: 19 additions & 0 deletions api/upload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import cloudinary from 'cloudinary';

module.exports = async (request, response) => {
const timestamp = Math.round(new Date().getTime() / 1000);
const signature = cloudinary.v2.utils.api_sign_request(
{
timestamp: timestamp,
folder: `easy-email-demo`,
},
process.env.CLOUDINARY_API_SECRET,
);

response.status(200).send({
timestamp,
signature,
cloudName: process.env.CLOUDINARY_NAME,
apiKey: process.env.CLOUDINARY_API_KEY,
});
};
16 changes: 2 additions & 14 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,7 @@
name="description"
content="Easy email is developed based on the MJML and has very good compatibility. At the same time, it can generate code through drag-and-drop editing."
/>
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] =
c[a] ||
function () {
(c[a].q = c[a].q || []).push(arguments);
};
t = l.createElement(r);
t.async = 1;
t.src = 'https://www.clarity.ms/tag/' + i;
y = l.getElementsByTagName(r)[0];
y.parentNode.insertBefore(t, y);
})(window, document, 'clarity', 'script', '85gnvzh5py');
</script>

<%- buildTime %>
<title>easy email</title>
<!-- Google Tag Manager -->
Expand Down Expand Up @@ -69,6 +56,7 @@
src="/src/main.tsx"
></script>
<script
async
data-name="BMC-Widget"
data-cfasync="false"
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
Expand Down
6 changes: 4 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "m-Ryan",
"repository": {
"type": "git",
"url": "git@github.com:m-Ryan/easy-email.git"
"url": "git@github.com:zalify/easy-email.git"
},
"keywords": [
"easy email editor demo"
Expand Down Expand Up @@ -57,12 +57,14 @@
"@types/react-router-dom": "^5.1.9",
"axios": "^0.24.0",
"browser-image-compression": "^1.0.17",
"file-saver": "^2.0.5",
"final-form": "^4.20.4",
"fs-extra": "^10.0.1",
"html2canvas": "^1.3.2",
"liquidjs": "^9.40.0",
"mjml-browser": "^4.10.4",
"mustache": "^4.2.0",
"posthog-js": "^1.121.4",
"qs": "^6.10.1",
"react": "17.0.2",
"react-color": "^2.19.3",
Expand All @@ -76,4 +78,4 @@
"uuid": "^8.3.2",
"yup": "^0.32.11"
}
}
}
Loading

0 comments on commit e5166a5

Please sign in to comment.