Files
superport/web/index.html
JiWoong Sul 198aac6525
Some checks failed
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled
Flutter Test & Quality Check / Build APK (push) Has been cancelled
test: 통합 테스트 오류 및 경고 수정
- 모든 서비스 메서드 시그니처를 실제 구현에 맞게 수정
- TestDataGenerator 제거하고 직접 객체 생성으로 변경
- 모델 필드명 및 타입 불일치 수정
- 불필요한 Either 패턴 사용 제거
- null safety 관련 이슈 해결

수정된 파일:
- test/integration/screens/company_integration_test.dart
- test/integration/screens/equipment_integration_test.dart
- test/integration/screens/user_integration_test.dart
- test/integration/screens/login_integration_test.dart
2025-08-05 20:24:05 +09:00

97 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">
<!-- iOS meta tags & icons -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="superport">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<title>superport</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
<script>
// 브라우저 알림 권한 요청
async function requestNotificationPermission() {
if ('Notification' in window) {
const permission = await Notification.requestPermission();
console.log('Notification permission:', permission);
return permission;
}
return 'denied';
}
// Health Check 알림 표시
function showHealthCheckNotification(title, message, status) {
console.log('showHealthCheckNotification called:', { title, message, status });
if (!('Notification' in window)) {
console.log('This browser does not support notifications');
return;
}
if (Notification.permission === 'granted') {
const options = {
body: message,
icon: '/favicon.png',
badge: '/favicon.png',
tag: 'health-check',
renotify: true,
requireInteraction: true,
data: { status: status }
};
const notification = new Notification(title, options);
// 5초 후 자동으로 닫기
setTimeout(() => {
notification.close();
}, 5000);
notification.onclick = function() {
window.focus();
notification.close();
};
} else if (Notification.permission !== 'denied') {
// 권한이 없으면 요청
requestNotificationPermission().then(permission => {
if (permission === 'granted') {
showHealthCheckNotification(title, message, status);
}
});
}
}
// 페이지 로드 시 알림 권한 요청
window.addEventListener('load', () => {
requestNotificationPermission();
});
</script>
</body>
</html>