Skip to content

Commit

Permalink
Merge pull request #8 from Samvel25/typescript
Browse files Browse the repository at this point in the history
added typescript
  • Loading branch information
tigransimonyan authored Mar 3, 2024
2 parents 646db9a + 265c1d2 commit c938154
Show file tree
Hide file tree
Showing 15 changed files with 187 additions and 21 deletions.
29 changes: 16 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Zoomment.com Widget</title>
</head>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zoomment.com Widget</title>
</head>

<body>
<div id="zoomment" data-emotions="❤️,😀,🪄,🥸,💡,🤔,💩,😢,😢,😢,😢,😢" data-api-url="http://localhost:9547/api"
data-theme="light" data-language="en"></div>
<script type="module" src="src/index.js"></script>
</body>

</html>
<body>
<div
id="zoomment"
data-emotions="❤️,😀,🪄,🥸,💡,🤔,💩,😢,😢,😢,😢,😢"
data-api-url="http://localhost:9547/api"
data-theme="light"
data-language="en"
></div>
<script type="module" src="src/index.tsx"></script>
</body>
</html>
141 changes: 137 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "zoomment-widget",
"version": "1.0.0",
"description": "",

"dependencies": {
"@ant-design/icons": "^4.2.2",
"@fingerprintjs/fingerprintjs": "^3.4.2",
Expand All @@ -20,15 +19,20 @@
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@types/lscache": "^1.3.4",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"@types/styled-components": "^5.1.34",
"babel-core": "^6.26.3",
"babel-plugin-module-resolver": "^4.1.0",
"buffer": "^6.0.3",
"parcel": "^2.12.0",
"process": "^0.11.10"
"process": "^0.11.10",
"typescript": "^5.3.3"
},
"scripts": {
"start": "parcel index.html",
"build": "parcel build --no-source-maps --no-content-hash --target modern --dist-dir docs src/index.js",
"start": "parcel index.html --no-cache",
"build": "parcel build --no-source-maps --no-content-hash --target modern --dist-dir docs src/index.tsx",
"help": "parcel build --help"
},
"modern": "docs/zoomment.min.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"baseUrl": ".",
"paths": {
"components/*": ["src/components/*"],
"providers/*": ["src/providers/*"],
"utils/*": ["src/utils/*"],
"locales/*": ["src/locales/*"]
}
},
"include": ["src"]
}

0 comments on commit c938154

Please sign in to comment.