Skip to content

Commit

Permalink
use typescript
Browse files Browse the repository at this point in the history
- note that scrollbar is hidden even though it works in another codebase...
  • Loading branch information
elibroftw committed Dec 14, 2024
1 parent a1cf16c commit f28d538
Show file tree
Hide file tree
Showing 37 changed files with 3,915 additions and 3,223 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*{.ts,tsx,js,jsx,json}]
indent_size = 2
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.10.0
v22.12.0
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
-->
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
174 changes: 90 additions & 84 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,90 @@
{
"name": "r2-t2",
"version": "0.2.5",
"type": "module",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.1",
"@fontsource/open-sans": "^5.0.5",
"@mantine/carousel": "^7.3.2",
"@mantine/code-highlight": "^7.3.2",
"@mantine/core": "^7.3.2",
"@mantine/dates": "^7.3.2",
"@mantine/dropzone": "^7.3.2",
"@mantine/form": "^7.3.2",
"@mantine/hooks": "^7.3.2",
"@mantine/modals": "^7.3.2",
"@mantine/notifications": "^7.3.2",
"@mantine/nprogress": "^7.3.2",
"@mantine/spotlight": "^7.3.2",
"@mantine/tiptap": "^7.3.2",
"@tabler/icons-react": "^2.44.0",
"@tauri-apps/api": "^1.4.0",
"@tiptap/core": "^2.0.3",
"@tiptap/extension-link": "^2.1.13",
"@tiptap/pm": "^2.0.3",
"@tiptap/react": "^2.1.13",
"@tiptap/starter-kit": "^2.1.13",
"dayjs": "^1.11.10",
"embla-carousel-react": "^8.0.0-rc17",
"i18next": "^23.1.0",
"i18next-browser-languagedetector": "^7.0.2",
"js-cookie": "^3.0.5",
"localforage": "^1.10.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.0.0",
"react-icons": "^4.9.0",
"react-router-dom": "^6.13.0",
"react-transition-group": "^4.4.5",
"simplebar-react": "^3.2.4",
"tauri-plugin-store-api": "https://github.com/tauri-apps/tauri-plugin-store"
},
"scripts": {
"dev": "tauri dev",
"nvmrc": "node -v > .nvmrc",
"postinstall": "pnpm nvmrc",
"predev": "pnpm nvmrc",
"tauri": "tauri",
"start": "vite",
"rls": "dotenv-load tauri build",
"build": "vite build",
"preview": "vite preview",
"serve": "vite preview",
"preinstall": "pnpm add -g add sloc @tauri-apps/cli",
"sloc": "sloc src src-tauri/src",
"update": "concurrently \"pnpm up\" \"cd src-tauri && cargo update && cargo clean\"",
"test": "mocha"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"devDependencies": {
"@tauri-apps/cli": "^1.4.0",
"@vitejs/plugin-react": "^4.0.0",
"chai": "^4.3.7",
"concurrently": "^8.2.0",
"dotenv-load": "^2.0.1",
"mocha": "^10.2.0",
"postcss": "^8.4.31",
"postcss-preset-mantine": "^1.8.0",
"postcss-simple-vars": "^7.0.1",
"rollup-plugin-visualizer": "^5.9.2",
"selenium-webdriver": "^4.10.0",
"terser": "^5.18.0",
"toml": "^3.0.0",
"vite": "^4.3.9",
"vite-plugin-remove-console": "^2.1.1",
"vite-plugin-top-level-await": "^1.3.1"
},
"resolutions": {}
}
{
"name": "r2-t2",
"version": "0.2.5",
"type": "module",
"private": true,
"dependencies": {
"@emotion/react": "^11.14.0",
"@fontsource/open-sans": "^5.1.0",
"@mantine/carousel": "^7.15.1",
"@mantine/code-highlight": "^7.15.1",
"@mantine/core": "^7.15.1",
"@mantine/dates": "^7.15.1",
"@mantine/dropzone": "^7.15.1",
"@mantine/form": "^7.15.1",
"@mantine/hooks": "^7.15.1",
"@mantine/modals": "^7.15.1",
"@mantine/notifications": "^7.15.1",
"@mantine/nprogress": "^7.15.1",
"@mantine/spotlight": "^7.15.1",
"@mantine/tiptap": "^7.15.1",
"@tabler/icons-react": "^2.47.0",
"@tauri-apps/api": "^1.6.0",
"@tiptap/core": "^2.10.3",
"@tiptap/extension-link": "^2.10.3",
"@tiptap/pm": "^2.10.3",
"@tiptap/react": "^2.10.3",
"@tiptap/starter-kit": "^2.10.3",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"dayjs": "^1.11.13",
"embla-carousel-react": "^8.5.1",
"i18next": "^23.16.8",
"i18next-browser-languagedetector": "^7.2.2",
"js-cookie": "^3.0.5",
"localforage": "^1.10.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^13.5.0",
"react-icons": "^4.12.0",
"react-router-dom": "^6.28.0",
"react-transition-group": "^4.4.5",
"simplebar-react": "^3.3.0",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
"typescript": "^5.7.2"
},
"scripts": {
"dev": "tauri dev",
"nvmrc": "node -v > .nvmrc",
"postinstall": "pnpm nvmrc",
"predev": "pnpm nvmrc",
"tauri": "tauri",
"start": "vite",
"rls": "dotenv-load tauri build",
"build": "vite build",
"preview": "vite preview",
"serve": "vite preview",
"preinstall": "pnpm add -g add sloc @tauri-apps/cli",
"sloc": "sloc src src-tauri/src",
"update": "concurrently \"pnpm up\" \"cd src-tauri && cargo update && cargo clean\"",
"test": "mocha"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"devDependencies": {
"@tauri-apps/cli": "^1.6.3",
"@types/js-cookie": "^3.0.6",
"@vitejs/plugin-react": "^4.3.4",
"chai": "^4.5.0",
"concurrently": "^8.2.2",
"dotenv-load": "^2.0.1",
"mocha": "^10.8.2",
"postcss": "^8.4.49",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"rollup-plugin-visualizer": "^5.12.0",
"selenium-webdriver": "^4.27.0",
"terser": "^5.37.0",
"toml": "^3.0.0",
"vite": "^4.5.5",
"vite-plugin-remove-console": "^2.2.0",
"vite-plugin-top-level-await": "^1.4.4"
},
"resolutions": {}
}
Loading

0 comments on commit f28d538

Please sign in to comment.