Here’s a detailed commit message based on the provided diff:
Commit Message: feat: Implement web calendar application with Flask, Docker, and calendar integration Description: 1. Server Refactor: • Moved application logic from main.py to a structured directory server/app/. • Added server/app/__init__.py for Flask app initialization. • Introduced server/app/views.py to handle routes (dashboard and dashboard_image). • Created server/app/models.py for event modeling, supporting CalDAV and iCalendar events. • Added server/app/weather.py to fetch weather data using OpenWeatherMap API. 2. New Features: • Added an image generation route (/image) to render calendar views as BMP images. • Integrated OpenWeatherMap API for weather data on the dashboard. 3. Environment and Configurations: • Added a Dockerfile to build and deploy the app using uwsgi-nginx-flask. • Introduced compose.yml for running the app with Docker Compose. • Moved uwsgi.ini configuration to server/uwsgi.ini for modular organization. 4. Dependencies: • Updated requirements.txt to include new dependencies: imgkit, pillow, and Werkzeug==2.2.2. 5. Static Assets: • Added placeholder images out.png and test.png. 6. Code Cleanup: • Removed old files (main.py and root-level uwsgi.ini). • Updated .gitignore to include .idea/ folder. Additional Notes: • Enhanced event parsing to handle all-day and time-specific events using server/app/models.py. • Utilized Flask’s render_template for dynamic HTML rendering and imgkit for HTML-to-image conversion. • Integrated multiple calendar sources (CalDAV and public iCal feeds). Let me know if you need further adjustments!
This commit is contained in:
@@ -1,95 +0,0 @@
|
||||
@import url('fonts/dinpro/dinpro.css');
|
||||
@import url('fonts/noto-emoji.css');
|
||||
@import url('fonts/openmoji.css');
|
||||
@import url('fonts/weather-icons/weather-icons.css');
|
||||
|
||||
@font-face {
|
||||
font-family: "Hellovetica";
|
||||
src: url("fonts/hellovetica.ttf") format("truetype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Helvetica";
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
font-family: "Helvetica", sans-serif;
|
||||
height: 699px;
|
||||
width: 600px;
|
||||
text-align: left;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
position: relative;
|
||||
height: 50%;
|
||||
verical-align: top;
|
||||
/* height: 250px; */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.panel.top {
|
||||
height: 35%;
|
||||
}
|
||||
|
||||
.panel.bottom {
|
||||
height: 65%;
|
||||
}
|
||||
|
||||
.subpanel {
|
||||
position: relative;
|
||||
height:100%;
|
||||
width:48%;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.weather-icon {
|
||||
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: scale-down;
|
||||
}
|
||||
|
||||
.week {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.day {
|
||||
border-style: solid;
|
||||
display: inline-block;
|
||||
min-height: 220px;
|
||||
max-height: 220px;
|
||||
width: 135px;
|
||||
vertical-align: top;
|
||||
margin: 1px;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.day-title{
|
||||
background-color: black;
|
||||
text-align: center;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
.event {
|
||||
margin: 3pt;
|
||||
background-color: white;
|
||||
border-style: solid;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
font-family: "Helvetica";
|
||||
}
|
||||
|
||||
.daterange {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.weather-icon {
|
||||
font-size: 200px;
|
||||
}
|
||||
Reference in New Issue
Block a user