당직근무 0.15.8 (웹 2026-11-26.3): 연동 달력 이름은 날 종류마다 체크(기본 없음) · 주5일제 토요일은 빨간 날짜만
사용자 지시(2026-11-26): 달력 외부 연동에서 비번 자리·연차·휴무에 사람 이름이 뜨는 것을 옵션 체크로 하고 연동 달력의 기본은 이름 표기 없음. 토요일은 그냥 빨강(휴무 글자 넣지 않기). - 구독 항목 nameWork · nameOff · nameRest · nameAway(없으면 끔)를 더했다. 체크한 날 종류에만 근무 순서 이름을 붙이고 끈 날은 이름만 고른 줄도 근무 글자로 보낸다(calendar_export.name_kind). - 앱 기본 달력 자동 반영에도 같은 칸과 일반근무 아래 이름(nameRules)을 더했다(MirrorNames, 모두 기본 꺼짐). 반영 항목 창은 길어져 스크롤된다. - 주5일제 토요일에 당직 외 근무를 휴무(REST)로 바꾸던 규칙을 뺐다. 토요일은 날짜 색만 빨강이고 근무는 원래 순서다(서버·웹·앱 같음). 설정 문구도 토요일 빨간/파란 날짜로 바꿨다. - 기기 시험: CalendarBridgeCheck에 이름 기본 꺼짐 단계, StorageSyncCheck는 0.14.0부터 늘 실패하던 비교(빈 근무 계획)를 고쳤다. - 앱 0.15.8 / 설치 번호 32. APK 879930바이트, SHA-256 19ebd0e2bcf6622fbd0262bf546e8297641087c8e6180771cace8d8226750208
This commit is contained in:
1 parent
2ece130245
commit
c057fda86f
29 files changed
+193
-66
No files matched your search
@@ -1,11 +1,13 @@
|
||||
'use strict';
|
||||
// 구독 주소는 사용자가 만든 직후에만 표시한다. 저장된 비밀 주소를 다시 조회하는 기능은 두지 않는다.
|
||||
document.addEventListener('DOMContentLoaded',()=>{
|
||||
const chosen=()=>Object.fromEntries(['rotation','events','anniversaries','names','notes','skipRegular'].map(key=>[key,$('share-'+key).checked]));
|
||||
// 근무 순서 이름 칸(nameWork·nameOff·nameRest·nameAway)은 기본 꺼짐이다. 예전 구독에 값이 없으면 이름 없이 보낸다(2026-11-26 사용자 지시).
|
||||
const shareKeys=['rotation','events','anniversaries','names','notes','skipRegular','nameWork','nameOff','nameRest','nameAway'];
|
||||
const chosen=()=>Object.fromEntries(shareKeys.map(key=>[key,$('share-'+key).checked]));
|
||||
let enabled=false;
|
||||
async function openSharing(){
|
||||
$('share-error').textContent='';$('share-address-box').hidden=true;$('share-address').value='';$('calendar-sharing-dialog').showModal();
|
||||
try{const result=await api('calendar-sharing');enabled=result.enabled;for(const key of ['rotation','events','anniversaries','names','notes','skipRegular'])$('share-'+key).checked=result.options?result.options[key]===true:key==='rotation';$('share-state').textContent=enabled?'구독 주소 사용 중 · 항목만 바꾸면 주소는 그대로이고 다시 만들면 이전 주소는 종료됩니다.':'구독 주소를 아직 만들지 않았습니다.';$('share-disable').hidden=!enabled;$('share-update').hidden=!enabled;}
|
||||
try{const result=await api('calendar-sharing');enabled=result.enabled;for(const key of shareKeys)$('share-'+key).checked=result.options?result.options[key]===true:key==='rotation';$('share-state').textContent=enabled?'구독 주소 사용 중 · 항목만 바꾸면 주소는 그대로이고 다시 만들면 이전 주소는 종료됩니다.':'구독 주소를 아직 만들지 않았습니다.';$('share-disable').hidden=!enabled;$('share-update').hidden=!enabled;}
|
||||
catch(error){$('share-error').textContent=error.message;}
|
||||
}
|
||||
$('calendar-sharing-open').onclick=openSharing;
|
||||
|
||||
Reference in new issue
Block a user