Skip to content

Commit c55aa0d

Browse files
committed
feat: add dashboard controller and routes, implement EJS views and Tailwind CSS styling
- Created DashboardController to handle dashboard rendering. - Added web routes for serving the dashboard and static files. - Implemented main layout and sidebar using EJS templates. - Developed dashboard page with storage overview and quick access sections. - Introduced Tailwind CSS for styling and layout. - Added modules and labels for sidebar navigation. - Created API routes for file management and database interactions. - Configured Tailwind CSS with custom font settings. - Updated TypeScript configuration to specify root directory.
1 parent 1ab6a09 commit c55aa0d

File tree

17 files changed

+1176
-1825
lines changed

17 files changed

+1176
-1825
lines changed

package-lock.json

Lines changed: 319 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
"module": "./src/app.ts",
88
"scripts": {
99
"dev": "node --watch --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/app.ts",
10-
"build": "tsc",
10+
"dev:css": "npx @tailwindcss/cli -i ./src/client/styles/main.css -o ./dist/client/styles/output.css --watch",
11+
"build:css": "npx @tailwindcss/cli -i ./src/client/styles/main.css -o ./dist/client/styles/output.css --minify",
12+
"build": "npm run build:css && tsc",
1113
"start": "node ./dist/app.js"
1214
},
1315
"author": "",
1416
"license": "ISC",
1517
"dependencies": {
18+
"@types/ejs": "^3.1.5",
1619
"@types/express": "^5.0.6",
1720
"docx-preview": "^0.3.7",
21+
"ejs": "^4.0.1",
1822
"express": "^5.2.1",
1923
"fs-extra": "^11.3.2",
2024
"multer": "^2.0.2",
@@ -25,6 +29,9 @@
2529
},
2630
"devDependencies": {
2731
"@types/fs-extra": "^11.0.4",
28-
"@types/multer": "^2.0.0"
32+
"@types/multer": "^2.0.0",
33+
"autoprefixer": "^10.4.24",
34+
"postcss": "^8.5.6",
35+
"tailwindcss": "^4.1.18"
2936
}
3037
}

postcss.config.js

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

0 commit comments

Comments
 (0)