-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: full implementation of device info section
- Loading branch information
1 parent
132c716
commit 8810d56
Showing
6 changed files
with
322 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,98 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | ||
<meta property="og:title" content="FSK-EEM Console"/> | ||
<meta property="og:url" content="https://fsk-eem.luftaquila.io"/> | ||
<meta property="og:description" content="FSK-EEM Console"/> | ||
|
||
<title>FSK-EEM Console</title> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert2/11.12.4/sweetalert2.min.css" integrity="sha512-WxRv0maH8aN6vNOcgNFlimjOhKp+CUqqNougXbz0E+D24gP5i+7W/gcc5tenxVmr28rH85XHF5eXehpV2TQhRg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="btn.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<button id="connect">connect</button> | ||
<button id="load-list">load-list</button> | ||
<button id="load-all">load-all</button> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js" integrity="sha512-Qlv6VSKh1gDKGoJbnyA5RMXYcvnpIqhO++MhIM2fStMcGT9i2T//tSwYFlcyoRRDcDZ+TYHpH8azBBCyhpSeqw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert2/11.12.4/sweetalert2.all.min.js" integrity="sha512-aRyxRCMzAorfKGjEjnSeGTVKrI/2irvvR5DI38LV/JXOkL9VLnZ+rfFkD9i1UTWTB8e8W5vpf7SjDsfMOdNosg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
|
||
<script src="strings.js"></script> | ||
<script src="ui.js"></script> | ||
<script src="protocol.js"></script> | ||
<script src="script.js"></script> | ||
</body> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | ||
<meta property="og:title" content="FSK-EEM Console" /> | ||
<meta property="og:url" content="https://fsk-eem.luftaquila.io" /> | ||
<meta property="og:description" content="FSK-EEM Console" /> | ||
|
||
<title>FSK-EEM Console</title> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" | ||
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert2/11.12.4/sweetalert2.min.css" | ||
integrity="sha512-WxRv0maH8aN6vNOcgNFlimjOhKp+CUqqNougXbz0E+D24gP5i+7W/gcc5tenxVmr28rH85XHF5eXehpV2TQhRg==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" | ||
integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="btn.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<div id='container'> | ||
<article> | ||
<h1><i class="fa-fw fa-solid fa-cash-register"></i>에너지미터 관리</h1> | ||
<div class="content"> | ||
<div> | ||
<h2><i class="fa-fw fa-solid fa-circle-info"></i>장치 정보</h2> | ||
<div class="section"> | ||
<div> | ||
<span id="connect" class='btn blue'><i class="fa-fw fa-brands fa-usb"></i>장치 연결</span> | ||
<span id="set-id" class='btn orange'><i class="fa-fw fa-solid fa-car-side"></i>ID 설정</span> | ||
<span id="set-rtc" class='btn orange'><i class="fa-fw fa-regular fa-clock"></i>시계 동기화</span> | ||
</div> | ||
<div style="margin-top: 1rem;"> | ||
<span class="device-info"> | ||
<i id="connection" class="fa-fw fa-solid fa-circle" style="color: red;"></i> | ||
ID: <span id="device-id">N/A</span> | ||
</span> | ||
<span class="device-info"> | ||
<i class="fa-fw fa-solid fa-sd-card"></i> | ||
<span id="storage-free">- GB</span> / <span id="storage-total">- GB</span> | ||
 (<span id="storage-percent">-</span> %) | ||
</span> | ||
<span class="device-info"> | ||
<i class="fa-fw fa-solid fa-clock"></i> | ||
<span id="device-clock">N/A</span> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div style="margin-top: 1rem;"> | ||
</div> | ||
<div style="margin-top: 1rem;"> | ||
<h2><i class="fa-fw fa-solid fa-file-waveform"></i>로그 파일 관리</h2> | ||
<div class="section"> | ||
<div> | ||
<span id="load-list" class='btn green'><i class="fa-fw fa-solid fa-arrows-rotate"></i>새로고침</span> | ||
<span id="load-all" class='btn green'><i class="fa-fw fa-solid fa-file-arrow-down"></i>전체 다운로드</span> | ||
<span id="delete-all" class='btn red'><i class="fa-fw fa-regular fa-trash-can"></i>전체 삭제</span> | ||
</div> | ||
<div> | ||
<table id="file-list"> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</div> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" | ||
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js" | ||
integrity="sha512-Qlv6VSKh1gDKGoJbnyA5RMXYcvnpIqhO++MhIM2fStMcGT9i2T//tSwYFlcyoRRDcDZ+TYHpH8azBBCyhpSeqw==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert2/11.12.4/sweetalert2.all.min.js" | ||
integrity="sha512-aRyxRCMzAorfKGjEjnSeGTVKrI/2irvvR5DI38LV/JXOkL9VLnZ+rfFkD9i1UTWTB8e8W5vpf7SjDsfMOdNosg==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" | ||
integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
|
||
<script src="strings.js"></script> | ||
<script src="ui.js"></script> | ||
<script src="protocol.js"></script> | ||
<script src="script.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const html_strings = { | ||
no_webserial: 'WebSerial을 지원하지 않는 브라우저입니다.<br>크롬 등 다른 최신 브라우저를 사용하세요.', | ||
id_error: 'ID 값이 올바르지 않습니다.<br>ID는 0 ~ 65533 이내의 정수입니다.', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
@import url("https://statics.goorm.io/fonts/GoormSans/v1.0.0/GoormSans.min.css"); | ||
|
||
html { | ||
font-family: 'Goorm Sans', sans-serif; | ||
background-color: rgb(243, 244, 246); | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-khtml-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
body { | ||
overflow-y: auto; | ||
} | ||
|
||
i.fa-fw { | ||
margin-right: 0.5rem; | ||
} | ||
|
||
div#container, div#header { | ||
padding: 1rem; | ||
padding-top: 0rem; | ||
display: flex; | ||
max-width: none; | ||
flex-wrap: wrap; | ||
} | ||
|
||
div#container { | ||
justify-content: space-evenly; | ||
} | ||
|
||
article { | ||
margin-top: 1.5rem; | ||
padding: 1rem; | ||
background-color: white; | ||
border-radius: 10px; | ||
min-width: 320px; | ||
width: -webkit-fill-available; | ||
} | ||
|
||
article h1 { | ||
font-size: 1.5rem; | ||
margin: 0px; | ||
color: rgb(59,130,246); | ||
} | ||
|
||
article h2 { | ||
font-size: 1.3rem; | ||
margin: 0px; | ||
color: #333333; | ||
} | ||
|
||
article .content { | ||
padding-top: 1.5rem; | ||
padding-left: 1rem; | ||
line-height: 2rem; | ||
} | ||
|
||
article .content .section { | ||
margin-top: 0.5rem; | ||
margin-left: 1rem; | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.disabled { | ||
opacity: 30%; | ||
pointer-events: none; | ||
} | ||
|
||
input::-webkit-outer-spin-button, | ||
input::-webkit-inner-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
|
||
input[type=number] { | ||
appearance: textfield; | ||
-moz-appearance: textfield; | ||
} | ||
|
||
.btn { | ||
padding: 4px 12px 2px 12px; | ||
} | ||
|
||
.connected { | ||
color: green; | ||
} | ||
|
||
span.device-info { | ||
margin-left: 0.5rem; | ||
margin-right: 2rem; | ||
} |
Oops, something went wrong.