Skip to content

Commit 74fe88e

Browse files
committed
initialize the project
0 parents  commit 74fe88e

14 files changed

+148
-0
lines changed

Diff for: .gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
pnpm-lock.yaml
10+
package-lock.json
11+
yarn.lock
12+
13+
node_modules
14+
dist
15+
dist-ssr
16+
*.local
17+
18+
# Editor directories and files
19+
.vscode/*
20+
!.vscode/extensions.json
21+
.idea
22+
.DS_Store
23+
*.suo
24+
*.ntvs*
25+
*.njsproj
26+
*.sln
27+
*.sw?

Diff for: index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/img/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Material Tailwind Dashboard React | By Creative Tim</title>
8+
<link
9+
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap"
10+
rel="stylesheet"
11+
/>
12+
</head>
13+
<body>
14+
<div id="root"></div>
15+
<script type="module" src="/src/main.jsx"></script>
16+
</body>
17+
</html>

Diff for: jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@/*": ["src/*"],
6+
},
7+
},
8+
}

Diff for: package.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "material-tailwind-dashboard-react",
3+
"private": true,
4+
"version": "2.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@heroicons/react": "^2.0.12",
13+
"@material-tailwind/react": "^1.2.4",
14+
"@react-google-maps/api": "^2.13.1",
15+
"apexcharts": "^3.35.5",
16+
"prop-types": "^15.8.1",
17+
"react": "^18.2.0",
18+
"react-apexcharts": "^1.4.0",
19+
"react-dom": "^18.2.0",
20+
"react-router-dom": "^6.4.2"
21+
},
22+
"devDependencies": {
23+
"@types/react": "^18.0.17",
24+
"@types/react-dom": "^18.0.6",
25+
"@vitejs/plugin-react": "^2.1.0",
26+
"autoprefixer": "^10.4.12",
27+
"postcss": "^8.4.17",
28+
"prettier": "^2.7.1",
29+
"prettier-plugin-tailwindcss": "^0.1.13",
30+
"tailwindcss": "^3.1.8",
31+
"vite": "^3.1.0"
32+
}
33+
}

Diff for: postcss.config.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

Diff for: prettier.config.cjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
tailwindConfig: "./tailwind.config.cjs",
3+
plugins: [require("prettier-plugin-tailwindcss")],
4+
};

Diff for: public/css/tailwind.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

Diff for: public/img/favicon.png

809 Bytes
Loading

Diff for: public/img/logo-ct-dark.png

2.42 KB
Loading

Diff for: public/img/logo-ct.png

1.94 KB
Loading

Diff for: src/App.jsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Routes, Route } from "react-router-dom";
2+
import { Dashboard } from "@/layouts";
3+
4+
function App() {
5+
return (
6+
<Routes>
7+
<Route path="/dashboard/*" element={<Dashboard />} />
8+
</Routes>
9+
);
10+
}
11+
12+
export default App;

Diff for: src/main.jsx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from "react";
2+
import ReactDOM from "react-dom/client";
3+
import App from "./App";
4+
import { BrowserRouter } from "react-router-dom";
5+
import { ThemeProvider } from "@material-tailwind/react";
6+
import { MaterialTailwindControllerProvider } from "./context";
7+
import "/public/css/tailwind.css";
8+
9+
ReactDOM.createRoot(document.getElementById("root")).render(
10+
<React.StrictMode>
11+
<BrowserRouter>
12+
<ThemeProvider>
13+
<MaterialTailwindControllerProvider>
14+
<App />
15+
</MaterialTailwindControllerProvider>
16+
</ThemeProvider>
17+
</BrowserRouter>
18+
</React.StrictMode>
19+
);

Diff for: tailwind.config.cjs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('tailwindcss').Config} */
2+
const withMT = require("@material-tailwind/react/utils/withMT");
3+
4+
module.exports = withMT({
5+
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
6+
theme: {
7+
extend: {},
8+
},
9+
plugins: [],
10+
});

Diff for: vite.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from "vite";
2+
import react from "@vitejs/plugin-react";
3+
4+
export default defineConfig({
5+
plugins: [react()],
6+
resolve: {
7+
alias: [{ find: "@", replacement: "/src" }],
8+
},
9+
});

0 commit comments

Comments
 (0)