Spaces:
Running
Running
File size: 22,543 Bytes
3418204 47e77e5 3418204 7f6afc2 c7da7e0 7f6afc2 c7da7e0 7f6afc2 c7da7e0 e7b6f84 7f6afc2 8f72634 7f6afc2 be17a46 47e77e5 be17a46 47e77e5 be17a46 f6d34ff 47e77e5 be17a46 47e77e5 be17a46 47e77e5 be17a46 47e77e5 be17a46 47e77e5 be17a46 47e77e5 be17a46 47e77e5 3418204 47e77e5 045d38f 47e77e5 be17a46 f6d34ff 47e77e5 7f6afc2 47e77e5 7f6afc2 47e77e5 615f326 47e77e5 f6d34ff 47e77e5 615f326 47e77e5 f6d34ff 47e77e5 615f326 47e77e5 f6d34ff 47e77e5 f6d34ff be17a46 f6d34ff 47e77e5 3418204 47e77e5 3418204 47e77e5 3418204 47e77e5 3418204 47e77e5 3418204 47e77e5 f6d34ff 3418204 615f326 e184579 72543d1 3418204 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 1201c4d 72543d1 1201c4d 72543d1 1201c4d 72543d1 1201c4d 72543d1 1201c4d 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 1201c4d 72543d1 be17a46 72543d1 1201c4d 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 be17a46 72543d1 3418204 bec15e2 3418204 bec15e2 3418204 58aaf9d a919523 3418204 58aaf9d 3418204 58aaf9d 3418204 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script src="firebase-app-compat.js"></script>
<script src="firebase-messaging-compat.js"></script>
<script src="firebase-config.js"></script>
<script src="firebase-messaging.js"></script>
<script>
(() => {
const storageKey = 'tts-theme';
let theme = 'light';
try {
const storedTheme = localStorage.getItem(storageKey);
theme = storedTheme === 'dark' || storedTheme === 'light' ? storedTheme : 'light';
localStorage.setItem(storageKey, theme);
} catch {
}
document.documentElement.classList.toggle('dark', theme === 'dark');
document.documentElement.dataset.theme = theme;
})();
</script>
<script>
(() => {
const storageKey = 'tts-language';
let language = 'en';
try {
language = localStorage.getItem(storageKey) === 'my' ? 'my' : 'en';
} catch {
}
document.documentElement.lang = language;
})();
</script>
<script>
window.languagePreference = {
normalize(code) {
return code === 'my' ? 'my' : 'en';
},
apply(storageKey, code) {
const normalized = this.normalize(code);
document.documentElement.lang = normalized;
try {
localStorage.setItem(storageKey, normalized);
} catch {
}
return normalized;
},
init(storageKey) {
let code = 'en';
try {
code = this.normalize(localStorage.getItem(storageKey));
} catch {
}
return this.apply(storageKey, code);
},
toggle(storageKey) {
const next = document.documentElement.lang === 'my' ? 'en' : 'my';
return this.apply(storageKey, next);
},
set(storageKey, code) {
return this.apply(storageKey, code);
}
};
</script>
<script>
const brandDark = "#12312D";
const brandDarkAlt = "#115E59";
const brandPrimary = "#0F766E";
const brandPrimaryHover = "#115E59";
const brandAccent = "#B45309";
const brandLight = "#E6F4F1";
const brandMuted = "#64706D";
const semanticRedBg = "#FCE4E1";
const semanticRedText = "#B42318";
const semanticGreenBg = "#DFF6EE";
const semanticGreenText = "#0F766E";
const semanticNeutralBg = "#F1F5F4";
const semanticNeutralText = "#4F5D59";
const neutralBg = "#F7F8F7";
const neutralBorder = "#DDE5E2";
const neutralMuted = "#64706D";
const neutralDark = "#17211F";
const customGray = {
50: neutralBg,
100: "#EFF3F1",
200: neutralBorder,
300: "#B9C8C3",
400: "#8B9894",
500: neutralMuted,
600: "#4F5D59",
700: "#34413D",
800: "#222C29",
900: neutralDark,
950: "#101614"
};
tailwind.config = {
darkMode: 'class',
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
white: '#ffffff',
black: '#000000',
slate: customGray,
gray: customGray,
zinc: customGray,
neutral: customGray,
stone: customGray,
red: {
50: semanticRedBg,
100: semanticRedBg,
200: "#FECDD3",
300: "#FDA4AF",
400: "#FB7185",
500: semanticRedText,
600: semanticRedText,
700: semanticRedText,
800: semanticRedText,
900: semanticRedText
},
rose: {
50: semanticRedBg,
100: semanticRedBg,
200: "#FECDD3",
300: "#FDA4AF",
400: "#FB7185",
500: semanticRedText,
600: semanticRedText,
700: semanticRedText,
800: semanticRedText,
900: semanticRedText
},
green: {
50: semanticGreenBg,
100: semanticGreenBg,
200: "#A7F3D0",
300: "#6EE7B7",
400: "#34D399",
500: semanticGreenText,
600: semanticGreenText,
700: semanticGreenText,
800: semanticGreenText,
900: semanticGreenText
},
emerald: {
50: semanticGreenBg,
100: semanticGreenBg,
200: "#A7F3D0",
300: "#6EE7B7",
400: "#34D399",
500: semanticGreenText,
600: semanticGreenText,
700: semanticGreenText,
800: semanticGreenText,
900: semanticGreenText
},
teal: {
50: "#F0FDFA",
100: "#CCFBF1",
200: "#99F6E4",
300: "#5EEAD4",
400: "#2DD4BF",
500: "#14B8A6",
600: "#0D9488",
700: "#0F766E",
800: "#115E59",
900: "#134E4A"
},
cyan: {
50: "#ECFEFF",
100: "#CFFAFE",
200: "#A5F3FC",
300: "#67E8F9",
400: "#22D3EE",
500: "#06B6D4",
600: "#0891B2",
700: "#0E7490",
800: "#155E75",
900: "#164E63"
},
sky: {
50: "#F0F9FF",
100: "#E0F2FE",
200: "#BAE6FD",
300: "#7DD3FC",
400: "#38BDF8",
500: "#0EA5E9",
600: "#0284C7",
700: "#0369A1",
800: "#075985",
900: "#0C4A6E"
},
blue: {
50: brandLight,
100: "#CFE8E3",
200: "#A7D8CF",
300: "#76C3B8",
400: "#3AA89A",
500: "#16877E",
600: brandPrimary,
700: brandPrimaryHover,
800: brandDarkAlt,
900: brandDark
},
amber: {
50: "#FEF3C7",
100: "#FDE68A",
200: "#FCD34D",
300: "#FBBF24",
400: "#F59E0B",
500: "#B45309",
600: "#92400E",
700: "#78350F",
800: "#78350F",
900: "#78350F"
},
yellow: {
50: "#FEFCE8",
100: "#FEF3C7",
200: "#FDE68A",
300: "#FCD34D",
400: "#F59E0B",
500: "#B45309",
600: "#92400E",
700: "#78350F",
800: "#78350F",
900: "#78350F"
},
violet: {
50: brandLight,
100: "#CFE8E3",
200: "#A7D8CF",
300: "#76C3B8",
400: "#3AA89A",
500: "#16877E",
600: brandPrimary,
700: brandPrimaryHover,
800: brandDark,
900: brandDark,
950: brandDark
},
purple: {
50: brandLight,
100: "#CFE8E3",
200: "#A7D8CF",
300: "#76C3B8",
400: "#3AA89A",
500: "#16877E",
600: brandPrimary,
700: brandPrimaryHover,
800: brandDark,
900: brandDark,
950: brandDark
},
indigo: {
50: brandLight,
100: "#CFE8E3",
200: "#A7D8CF",
300: "#76C3B8",
400: "#3AA89A",
500: "#16877E",
600: brandPrimary,
700: brandPrimaryHover,
800: brandDark,
900: brandDark,
950: brandDark
},
chart: {
purple: brandPrimary,
teal: "#14B8A6",
green: "#0F766E",
neutral: neutralBorder
},
background: neutralBg,
foreground: neutralDark,
card: "#FFFFFF",
"card-foreground": neutralDark,
popover: "#FFFFFF",
"popover-foreground": neutralDark,
primary: brandPrimary,
"primary-foreground": "#FFFFFF",
secondary: brandLight,
"secondary-foreground": neutralDark,
muted: "#F3F4F6",
"muted-foreground": neutralMuted,
accent: brandAccent,
"accent-foreground": "#FFFFFF",
border: neutralBorder,
},
borderRadius: {
none: "0",
sm: "0.375rem",
DEFAULT: "0.5rem",
md: "0.5rem",
lg: "0.5rem",
xl: "0.5rem",
"2xl": "0.5rem",
"3xl": "0.5rem",
full: "9999px"
}
}
}
</script>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="TaskTrackingSystem.WebApp.styles.css" />
<link rel="stylesheet" href="app.css" />
<script src="theme-toggle.js?v=20260720-3" defer></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/gantt/modules/gantt.js"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<HeadOutlet />
</head>
<body>
<Routes />
<script src="_framework/blazor.web.js"></script>
<script>
window.renderPieChart = function (containerId, data) {
const container = document.getElementById(containerId);
if (!container) return;
Highcharts.chart(containerId, {
chart: {
type: 'pie',
backgroundColor: 'transparent',
height: 260,
margin: [0, 0, 0, 0],
spacing: [0, 0, 0, 0]
},
title: {
text: null
},
tooltip: {
backgroundColor: 'rgba(255, 255, 255, 0.97)',
borderWidth: 1,
borderColor: '#dde5e2',
borderRadius: 8,
shadow: true,
style: {
fontFamily: 'Inter, sans-serif',
fontSize: '13px',
color: '#17211f'
},
pointFormat: '<b>{point.name}</b>: <b>{point.y}</b> tasks ({point.percentage:.1f}%)'
},
plotOptions: {
pie: {
borderWidth: 0,
borderColor: 'transparent',
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
distance: -30,
format: '{point.percentage:.0f}%',
style: {
color: 'white',
textOutline: 'none',
fontFamily: 'Inter, sans-serif',
fontSize: '12px',
fontWeight: 'bold'
},
filter: {
property: 'percentage',
operator: '>',
value: 5
}
},
showInLegend: false
}
},
series: [{
name: 'Tasks',
colorByPoint: true,
data: data
}],
credits: {
enabled: false
}
});
};
window.renderGanttChart = function (containerId, data, options) {
options = options || {};
const container = document.getElementById(containerId);
if (!container) return;
const minWidth = options.minWidth || 1200;
const chartHeight = Math.max(options.height || 420, 120 + (data.length * 44));
Highcharts.ganttChart(containerId, {
chart: {
backgroundColor: 'transparent',
height: chartHeight,
style: {
fontFamily: 'Inter, sans-serif'
},
scrollablePlotArea: {
minWidth: minWidth,
scrollPositionX: 0
}
},
title: {
text: null
},
credits: {
enabled: false
},
navigator: {
enabled: false
},
scrollbar: {
enabled: true
},
rangeSelector: {
enabled: false
},
legend: {
enabled: false
},
tooltip: {
backgroundColor: 'rgba(255, 255, 255, 0.97)',
borderWidth: 1,
borderColor: '#dde5e2',
borderRadius: 8,
shadow: true,
style: {
fontSize: '13px',
color: '#17211f'
},
pointFormatter: function() {
const start = Highcharts.dateFormat('%b %e, %Y', this.start);
const end = Highcharts.dateFormat('%b %e, %Y', this.end);
const progress = this.completed && this.completed.amount !== undefined
? Math.round(this.completed.amount * 100) + '%'
: '0%';
return `<b>${this.name}</b><br/>Start: ${start}<br/>End: ${end}<br/>Progress: ${progress}`;
}
},
xAxis: [{
type: 'datetime',
min: options.xAxisMin,
max: options.xAxisMax,
gridLineWidth: 1,
gridLineColor: '#eff3f1',
lineColor: '#dde5e2',
tickColor: '#dde5e2',
labels: {
format: '{value:%b %Y}',
style: {
color: '#64706d',
fontSize: '11px'
}
},
currentDateIndicator: {
color: '#0f766e',
dashStyle: 'ShortDash',
width: 2,
label: {
format: 'Today',
style: {
color: '#0f766e',
fontWeight: 'bold'
}
}
}
}],
yAxis: {
gridLineWidth: 1,
gridLineColor: '#eff3f1',
labels: {
style: {
color: '#34413d',
fontSize: '12px',
fontWeight: '600'
}
}
},
plotOptions: {
gantt: {
borderWidth: 0,
borderColor: 'transparent',
dataLabels: {
enabled: true,
formatter: function() {
if (this.point.completed && this.point.completed.amount !== undefined) {
return Math.round(this.point.completed.amount * 100) + '%';
}
return '0%';
},
style: {
cursor: 'default',
pointerEvents: 'none',
textOutline: 'none',
color: '#ffffff',
fontSize: '11px',
fontWeight: 'bold'
}
}
}
},
series: [{
name: 'Projects',
borderWidth: 0,
borderColor: 'transparent',
data: data.map(item => ({
id: item.id,
name: item.name,
start: item.start,
end: item.end,
completed: {
amount: item.completed,
fill: item.color
},
color: '#dde5e2'
}))
}]
});
};
function initIcons() {
if (window.lucide) {
window.lucide.createIcons();
}
if (typeof initFlatpickr === 'function') {
initFlatpickr();
}
}
function downloadFile(filename, contentType, content) {
const file = new Blob([content], {type: contentType});
const exportUrl = URL.createObjectURL(file);
const a = document.createElement("a");
a.href = exportUrl;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(exportUrl);
}
function downloadFileFromBase64(filename, contentType, base64Content) {
const byteCharacters = atob(base64Content);
const byteNumbers = new Array(byteCharacters.length);
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
const byteArray = new Uint8Array(byteNumbers);
const file = new Blob([byteArray], {type: contentType});
const exportUrl = URL.createObjectURL(file);
const a = document.createElement("a");
a.href = exportUrl;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(exportUrl);
}
function initFlatpickr() {
if (window.flatpickr) {
flatpickr("input[type='date']", {
altInput: true,
altFormat: "d-m-Y",
dateFormat: "Y-m-d",
allowInput: true
});
}
}
function refreshClientEnhancements() {
if (window.updateTaskifyThemeControls) {
window.updateTaskifyThemeControls();
}
initIcons();
initFlatpickr();
}
// Run once loaded
window.addEventListener('DOMContentLoaded', () => {
refreshClientEnhancements();
});
// Blazor enhanced page updates trigger
Blazor.addEventListener('enhancedload', () => {
refreshClientEnhancements();
});
</script>
</body>
</html>
|