당직근무 0.15.5 (웹 2026-11-25.9): 다른 달력 연동에 일반근무 날 빼기, 기본은 앱과 같게
사용자 지시(2026-11-25): 구글 달력 연동 옵션에 일반근무 빼는 기능(일반근무 날 통째로 빼기), 기본은 어플과 같게, 내 계정에 적용. - 구독 주소 options.skipRegular: 켜면 일반근무 날은 이름까지 보내지 않는다. 없으면 끔. - 끄면 앱 달력과 같게: 근무 순서 이름 줄마다 표시를 따르고 일반근무 글자 숨기기(hideRegular)를 켜면 이름만 보내며 이름이 없으면 그날 근무 일정을 만들지 않는다(앱 ShiftNames.externalTitle, 서버 calendar_export.project). - 웹 달력 연동: 일반근무 날 빼기 칸과 항목만 바꾸기(주소 그대로, action update). - 앱 기본 달력 자동 반영: 일반근무 날 빼기 칸(기기 설정 calendar_mirror.skipRegular). - 기기 시험 CalendarBridgeCheck에 일반근무 빼기·앱과 같게 단계 추가. - 앱 0.15.5 / 설치 번호 29. APK 877370바이트, SHA-256 819342ea62e549fc8ceb2dff1c30082b45e031b49d2d232c98beda0a00032f29
This commit is contained in:
1 parent
f7aaa68fd0
commit
eccce7adb0
20 files changed
+139
-42
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ DATA = Path(os.environ.get("DUTY_DATA", ROOT / "data"))
|
||||
DATA.mkdir(parents=True, exist_ok=True, mode=0o700)
|
||||
ORIGIN = os.environ.get("DUTY_ORIGIN", "https://duty.itosm.co.kr").rstrip("/")
|
||||
PREFIX = "/calendar"
|
||||
SERVER_VERSION = "0.15.4"
|
||||
SERVER_VERSION = "0.15.5"
|
||||
COOKIE = "__Secure-duty_session"
|
||||
pepper_file = DATA / "pairing.key"
|
||||
if not pepper_file.exists():
|
||||
|
||||
@@ -27,7 +27,10 @@ def options(data):
|
||||
raise ValueError('내보낼 항목을 확인해 주세요.')
|
||||
if not any(data[key] for key in ('rotation','events','anniversaries')):
|
||||
raise ValueError('근무표와 일정 및 기념일 중 하나 이상 선택해 주세요.')
|
||||
return {key:data[key] for key in OPTIONS}
|
||||
# skipRegular(0.15.5): 다른 달력(구글 등)에 일반근무 날을 통째로 보내지 않는다. 없으면 끔이고 끄면 앱 달력과 같게 보낸다.
|
||||
if 'skipRegular' in data and type(data['skipRegular']) is not bool:
|
||||
raise ValueError('일반근무 빼기 선택을 확인해 주세요.')
|
||||
return {**{key:data[key] for key in OPTIONS},'skipRegular':data.get('skipRegular') is True}
|
||||
|
||||
def shift(data,day):
|
||||
return plan_shift(data,day)
|
||||
@@ -69,13 +72,18 @@ def project(state,chosen,today,holidays):
|
||||
labels=LABELS
|
||||
# 근무 순서에 넣은 이름은 이름 줄마다 고른 표시 방법(근무만 · 이름만 · 둘 다)을 따른다. 고른 적이 없으면 예전 공통 선택이다.
|
||||
mode=next((item['data'].get('nameDisplay') for item in items if item['kind']=='preferences'),None) or 'both'
|
||||
# 기본은 앱 달력과 같게 보낸다(2026-11-25 사용자 지시). 앱에서 일반근무 글자를 숨기면 다른 달력에도 근무 글자를 빼고 이름만 보낸다.
|
||||
hide_regular=next((item['data'].get('hideRegular') for item in items if item['kind']=='preferences'),None) is True
|
||||
skip_regular=chosen.get('skipRegular') is True
|
||||
def put(key,title,notes,start,end,all_day):
|
||||
output[key]={'key':key,'title':title,'notes':notes,'start':start,'end':end,'allDay':all_day}
|
||||
if len(output)>10000:raise ValueError('내보낼 일정이 10,000개를 넘습니다. 선택 항목을 줄여 주세요.')
|
||||
for offset in range((last-first).days+1):
|
||||
day=first+timedelta(days=offset)
|
||||
if chosen['rotation'] and rotation:
|
||||
own=shift(rotation,day);names=[]
|
||||
own=shift(rotation,day) if chosen['rotation'] and rotation else None
|
||||
# 일반근무 빼기를 켜면 일반근무 날은 이름까지 통째로 보내지 않는다.
|
||||
if own and not (skip_regular and own=='REGULAR'):
|
||||
names=[]
|
||||
if chosen['names']:
|
||||
holiday=bool(holidays.get(str(day.year),{}).get(day.isoformat()))
|
||||
for rule in rules:
|
||||
@@ -84,8 +92,10 @@ def project(state,chosen,today,holidays):
|
||||
name=person['name'] if rule['mode']=='PERSON' else rule['name']
|
||||
if name not in names:names.append(name)
|
||||
slot=name_on(rotation,day);slot_mode=name_mode_on(rotation,day,mode) if slot else mode
|
||||
title=labels[own] if not slot or slot_mode=='shift' else slot if slot_mode=='name' else labels[own]+'('+slot+')'
|
||||
put('rotation:'+day.isoformat(),title+(' · '+' · '.join(names) if names else ''),'',day,day+timedelta(days=1),True)
|
||||
if own=='REGULAR' and hide_regular:title=slot if slot and slot_mode!='shift' else ''
|
||||
else:title=labels[own] if not slot or slot_mode=='shift' else slot if slot_mode=='name' else labels[own]+'('+slot+')'
|
||||
text=' · '.join([title]+names if title else names)
|
||||
if text:put('rotation:'+day.isoformat(),text,'',day,day+timedelta(days=1),True)
|
||||
if chosen['anniversaries']:
|
||||
for item in items:
|
||||
d=item['data']
|
||||
|
||||
@@ -40,6 +40,14 @@ def install(app,db,identity,payload,snapshot,throttle,secret_hash,holidays,origi
|
||||
if body.get('action')=='disable':
|
||||
with db() as conn:conn.execute('DELETE FROM calendar_feeds WHERE calendar=?',(client['calendar'],))
|
||||
return {'enabled':False}
|
||||
if body.get('action')=='update':
|
||||
# 주소는 그대로 두고 내보낼 항목만 바꾼다. 다른 달력은 다음 갱신 때 바뀐 내용을 가져간다.
|
||||
try:chosen=calendar_export.options(body.get('options'))
|
||||
except ValueError as error:raise HTTPException(400,str(error))
|
||||
with db() as conn:
|
||||
if not conn.execute('UPDATE calendar_feeds SET options=? WHERE calendar=?',(json.dumps(chosen),client['calendar'])).rowcount:
|
||||
raise HTTPException(400,'먼저 구독 주소를 만들어 주세요.')
|
||||
return {'enabled':True,'options':chosen}
|
||||
if body.get('action')!='create':raise HTTPException(400,'공유 작업을 확인해 주세요.')
|
||||
try:chosen=calendar_export.options(body.get('options'))
|
||||
except ValueError as error:raise HTTPException(400,str(error))
|
||||
|
||||
+8
-8
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"appVersion": "0.15.4",
|
||||
"appVersionCode": 28,
|
||||
"webVersion": "2026-11-25.8",
|
||||
"apkFile": "duty-calendar-0.15.4.apk",
|
||||
"appVersion": "0.15.5",
|
||||
"appVersionCode": 29,
|
||||
"webVersion": "2026-11-25.9",
|
||||
"apkFile": "duty-calendar-0.15.5.apk",
|
||||
"notes": [
|
||||
"근무 순서 이름을 이름 줄마다 둘 다 · 이름만 · 근무만으로 따로 고릅니다. 예: +1 · 비번은 이름만, +2 · 일반근무는 둘 다.",
|
||||
"일반근무 전체를 이름 하나로 바꾸던 칸을 뺐습니다. 다른 사람 이름은 옵션 → 근무 순서 이름에서 +1(비번)부터 근무마다 넣습니다.",
|
||||
"다른 달력 연동(구글 등)에 일반근무 날 빼기를 더했습니다. 끄면 앱 달력과 같게 보냅니다.",
|
||||
"근무 순서 이름을 이름 줄마다 둘 다 · 이름만 · 근무만으로 따로 고릅니다.",
|
||||
"Play 프로텍트 차단 해제가 확인된 버전은 아닙니다."
|
||||
],
|
||||
"apkBytes": 876810,
|
||||
"apkSha256": "05d64c0b57c9817719d6b067fc7c6e7a3a6260c78b05ff02ecb78aa6b2e009c3"
|
||||
"apkBytes": 877370,
|
||||
"apkSha256": "819342ea62e549fc8ceb2dff1c30082b45e031b49d2d232c98beda0a00032f29"
|
||||
}
|
||||
@@ -235,6 +235,32 @@ class CalendarTests(unittest.TestCase):
|
||||
shared=next(p for p in self.state(other)['company']['members'] if not p['isSelf'])['rotation']
|
||||
self.assertNotIn('nameModes',shared)
|
||||
|
||||
def test_feed_skip_regular_and_same_as_app(self):
|
||||
# 2026-11-25 사용자 지시: 다른 달력 연동에 일반근무 날 빼기 옵션. 끄면(기본) 앱 달력과 같게 보낸다.
|
||||
rotation={'id':'rotation','kind':'rotation','changeId':str(uuid.uuid4()),'baseVersion':0,'deleted':False,
|
||||
'data':{'anchor':'2026-11-19','pattern':['DUTY','OFF','REGULAR','REGULAR'],'names':['','이정훈','강주석',''],'nameModes':['','name','both','both']}}
|
||||
self.assertEqual(self.write([rotation]).status_code,200)
|
||||
options=dict(rotation=True,events=False,anniversaries=False,names=False,notes=False)
|
||||
made=self.client.post('/calendar/api/calendar-sharing',json={'action':'create','options':options},headers=self.auth()).json()
|
||||
feed=made['url'];text=self.client.get(feed).text
|
||||
self.assertIn('SUMMARY:이정훈\r',text);self.assertIn('SUMMARY:일반근무(강주석)',text);self.assertIn('SUMMARY:일반근무\r',text)
|
||||
# 주소는 그대로 두고 항목만 바꾼다.
|
||||
changed=self.client.post('/calendar/api/calendar-sharing',json={'action':'update','options':{**options,'skipRegular':True}},headers=self.auth())
|
||||
self.assertEqual(changed.status_code,200);self.assertTrue(changed.json()['options']['skipRegular'])
|
||||
text=self.client.get(feed).text
|
||||
self.assertNotIn('일반근무',text);self.assertNotIn('강주석',text);self.assertIn('SUMMARY:이정훈\r',text);self.assertIn('SUMMARY:당직\r',text)
|
||||
self.assertTrue(self.client.get('/calendar/api/calendar-sharing',headers=self.auth()).json()['options']['skipRegular'])
|
||||
# 끄면 앱과 같게: 일반근무 글자 숨기기를 켜면 이름만 보내고 이름 없는 일반근무 날은 보내지 않는다.
|
||||
self.client.post('/calendar/api/calendar-sharing',json={'action':'update','options':options},headers=self.auth())
|
||||
self.write([self.personal_op('preferences',hideRegular=True)])
|
||||
text=self.client.get(feed).text
|
||||
self.assertIn('SUMMARY:강주석\r',text);self.assertNotIn('일반근무',text);self.assertIn('SUMMARY:이정훈\r',text)
|
||||
for bad in ({**options,'skipRegular':'yes'},):
|
||||
self.assertEqual(self.client.post('/calendar/api/calendar-sharing',json={'action':'update','options':bad},headers=self.auth()).status_code,400)
|
||||
# 주소가 없으면 항목만 바꾸기는 안 된다.
|
||||
self.client.post('/calendar/api/calendar-sharing',json={'action':'disable'},headers=self.auth())
|
||||
self.assertEqual(self.client.post('/calendar/api/calendar-sharing',json={'action':'update','options':options},headers=self.auth()).status_code,400)
|
||||
|
||||
def test_rotation_name_lookup_skips_overrides_and_other_regimes(self):
|
||||
import work_plan
|
||||
from datetime import date
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
// 구독 주소는 사용자가 만든 직후에만 표시한다. 저장된 비밀 주소를 다시 조회하는 기능은 두지 않는다.
|
||||
document.addEventListener('DOMContentLoaded',()=>{
|
||||
const chosen=()=>Object.fromEntries(['rotation','events','anniversaries','names','notes'].map(key=>[key,$('share-'+key).checked]));
|
||||
const chosen=()=>Object.fromEntries(['rotation','events','anniversaries','names','notes','skipRegular'].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'])$('share-'+key).checked=result.options?result.options[key]:key==='rotation';$('share-state').textContent=enabled?'구독 주소 사용 중 · 다시 만들면 이전 주소는 종료됩니다.':'구독 주소를 아직 만들지 않았습니다.';$('share-disable').hidden=!enabled;}
|
||||
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;}
|
||||
catch(error){$('share-error').textContent=error.message;}
|
||||
}
|
||||
$('calendar-sharing-open').onclick=openSharing;
|
||||
@@ -13,13 +13,19 @@ document.addEventListener('DOMContentLoaded',()=>{
|
||||
$('share-create').onclick=async()=>{
|
||||
if(!await confirmAction('이 주소를 아는 사람은 선택한 항목을 읽을 수 있습니다.'+(enabled?' 새 주소를 만들면 이전 주소는 종료됩니다.':''),'구독 주소 만들기'))return;
|
||||
$('share-create').disabled=true;
|
||||
try{await latest();const result=await api('calendar-sharing',{action:'create',options:chosen()});enabled=true;$('share-address').value=result.url;$('share-address-box').hidden=false;$('share-disable').hidden=false;$('share-state').textContent='구독 주소 사용 중 · 주소는 이 창에서 복사해 보관하세요.';$('share-error').textContent='';}
|
||||
try{await latest();const result=await api('calendar-sharing',{action:'create',options:chosen()});enabled=true;$('share-address').value=result.url;$('share-address-box').hidden=false;$('share-disable').hidden=false;$('share-update').hidden=false;$('share-state').textContent='구독 주소 사용 중 · 주소는 이 창에서 복사해 보관하세요.';$('share-error').textContent='';}
|
||||
catch(error){$('share-error').textContent=error.message;}finally{$('share-create').disabled=false;}
|
||||
};
|
||||
// 구독 주소는 그대로 두고 내보낼 항목만 바꾼다. 구글 등은 다음에 주소를 다시 읽을 때 바뀐 내용을 가져간다.
|
||||
$('share-update').onclick=async()=>{
|
||||
$('share-update').disabled=true;
|
||||
try{await latest();await api('calendar-sharing',{action:'update',options:chosen()});$('share-state').textContent='구독 항목을 바꿨습니다. 주소는 그대로이며 다른 달력은 다음 갱신 때 반영합니다.';$('share-error').textContent='';notify('구독 항목을 바꿨습니다.');}
|
||||
catch(error){$('share-error').textContent=error.message;}finally{$('share-update').disabled=false;}
|
||||
};
|
||||
$('share-copy').onclick=async()=>{try{await navigator.clipboard.writeText($('share-address').value);notify('구독 주소를 복사했습니다.');}catch{$('share-address').select();notify('주소를 선택했습니다. 복사해 주세요.');}};
|
||||
$('share-disable').onclick=async()=>{
|
||||
if(!await confirmAction('기존 구독 주소를 종료할까요? 다른 달력에 이미 내려받은 내용은 해당 달력에서 삭제해야 합니다.','구독 주소 종료'))return;
|
||||
try{await api('calendar-sharing',{action:'disable'});enabled=false;$('share-disable').hidden=true;$('share-address-box').hidden=true;$('share-address').value='';$('share-state').textContent='구독 주소를 종료했습니다.';}catch(error){$('share-error').textContent=error.message;}
|
||||
try{await api('calendar-sharing',{action:'disable'});enabled=false;$('share-disable').hidden=true;$('share-update').hidden=true;$('share-address-box').hidden=true;$('share-address').value='';$('share-state').textContent='구독 주소를 종료했습니다.';}catch(error){$('share-error').textContent=error.message;}
|
||||
};
|
||||
$('share-file').onclick=async()=>{
|
||||
$('share-file').disabled=true;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<main>
|
||||
<section id="welcome" class="welcome">
|
||||
<div class="welcome-hero">
|
||||
<div class="welcome-copy"><p class="eyebrow" data-site="heroEyebrow">당직 · 교대근무 · 개인 일정</p><h1 data-site="heroTitle">다음 당직,<br>달력에서 바로.</h1><p class="intro" data-site="heroIntro">내 근무 순서대로 채워지는 달력.<br>휴대폰을 켜면 홈 화면에서 바로 확인하세요.</p><div class="welcome-actions"><a class="download-button" data-site-href="downloadUrl" href="https://forum.itosm.co.kr/c/web-apps/duty-calendar/47"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5"/></svg><span data-site="downloadLabel">안드로이드 앱 받기</span></a><a class="install-link" href="#install-guide">설치 안내</a></div><p class="download-meta"><a data-site-href="downloadUrl" href="https://forum.itosm.co.kr/c/web-apps/duty-calendar/47">공식 배포 · 소스 · 제작 매뉴얼</a><br>Android 8.0 이상 · 미리보기 0.15.4</p><div class="welcome-caption"><strong data-site="captionTitle">내 달력은 로그인 없이.</strong><p data-site="captionText">함께 보는 근무표와 소속 공유는 <br>회원 로그인 후 이용할 수 있습니다.</p></div></div>
|
||||
<div class="welcome-copy"><p class="eyebrow" data-site="heroEyebrow">당직 · 교대근무 · 개인 일정</p><h1 data-site="heroTitle">다음 당직,<br>달력에서 바로.</h1><p class="intro" data-site="heroIntro">내 근무 순서대로 채워지는 달력.<br>휴대폰을 켜면 홈 화면에서 바로 확인하세요.</p><div class="welcome-actions"><a class="download-button" data-site-href="downloadUrl" href="https://forum.itosm.co.kr/c/web-apps/duty-calendar/47"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5"/></svg><span data-site="downloadLabel">안드로이드 앱 받기</span></a><a class="install-link" href="#install-guide">설치 안내</a></div><p class="download-meta"><a data-site-href="downloadUrl" href="https://forum.itosm.co.kr/c/web-apps/duty-calendar/47">공식 배포 · 소스 · 제작 매뉴얼</a><br>Android 8.0 이상 · 미리보기 0.15.5</p><div class="welcome-caption"><strong data-site="captionTitle">내 달력은 로그인 없이.</strong><p data-site="captionText">함께 보는 근무표와 소속 공유는 <br>회원 로그인 후 이용할 수 있습니다.</p></div></div>
|
||||
<figure class="calendar-preview" aria-label="3당직근무 화면 예시">
|
||||
<figcaption><span>홈 화면에 두는 나의 근무표</span><span>화면 예시</span></figcaption>
|
||||
<div class="calendar-paper"><div class="paper-heading"><div><span class="paper-year">2026</span><strong>11<span>월</span></strong></div><div class="paper-note"><b>당직근무</b><span>당직 · 비번 · 일반근무</span></div></div><div class="sample-week"><span>일</span><span>월</span><span>화</span><span>수</span><span>목</span><span>금</span><span>토</span></div><div class="sample-grid"><div class="sample-day sun"><span>1</span><em class="off">비번</em></div><div class="sample-day"><span>2</span><em class="regular">일반</em></div><div class="sample-day"><span>3</span><em class="duty">당직</em></div><div class="sample-day"><span>4</span><em class="off">비번</em></div><div class="sample-day"><span>5</span><em class="regular">일반</em></div><div class="sample-day"><span>6</span><em class="duty">당직</em></div><div class="sample-day sat"><span>7</span><em class="off">비번</em></div><div class="sample-day sun"><span>8</span><em class="regular">일반</em></div><div class="sample-day"><span>9</span><em class="duty">당직</em></div><div class="sample-day"><span>10</span><em class="off">비번</em></div><div class="sample-day"><span>11</span><em class="regular">일반</em></div><div class="sample-day"><span>12</span><em class="duty">당직</em></div><div class="sample-day"><span>13</span><em class="off">비번</em></div><div class="sample-day sat"><span>14</span><em class="regular">일반</em></div><div class="sample-day sun"><span>15</span><em class="duty">당직</em></div><div class="sample-day"><span>16</span><em class="off">비번</em></div><div class="sample-day"><span>17</span><em class="regular">일반</em></div><div class="sample-day"><span>18</span><em class="duty">당직</em></div><div class="sample-day"><span>19</span><em class="off">비번</em></div><div class="sample-day"><span>20</span><em class="regular">일반</em></div><div class="sample-day sat picked"><span>21</span><em class="duty">당직</em></div><div class="sample-day sun"><span>22</span><em class="off">비번</em></div><div class="sample-day"><span>23</span><em class="regular">일반</em></div><div class="sample-day"><span>24</span><em class="duty">당직</em></div><div class="sample-day"><span>25</span><em class="off">비번</em></div><div class="sample-day"><span>26</span><em class="regular">일반</em></div><div class="sample-day"><span>27</span><em class="duty">당직</em></div><div class="sample-day sat"><span>28</span><em class="off">비번</em></div><div class="sample-day sun"><span>29</span><em class="regular">일반</em></div><div class="sample-day"><span>30</span><em class="duty">당직</em></div><div class="sample-day empty-day" aria-hidden="true"></div><div class="sample-day empty-day" aria-hidden="true"></div><div class="sample-day empty-day" aria-hidden="true"></div><div class="sample-day empty-day" aria-hidden="true"></div><div class="sample-day empty-day" aria-hidden="true"></div></div><div class="paper-footer"><span><i></i>선택한 날 · 11월 21일 당직</span><span>3일 반복</span></div></div>
|
||||
@@ -34,10 +34,10 @@
|
||||
<dialog id="calendar-sharing-dialog"><div class="dialog-heading"><h2>달력 연동·공유</h2><button class="icon-button close" aria-label="닫기">×</button></div>
|
||||
<section class="settings-note"><h3>휴대폰 기본 달력</h3><p>안드로이드 앱 → 설정 → 달력 연동·공유 → 기본 달력에 자동 반영에서 대상 달력을 고르세요. 위젯 없이 기본 달력에 근무와 일정을 표시합니다.</p><p class="small">당직근무에서 수정한 내용을 기본 달력으로 보냅니다. 반대 방향의 자동 수정은 지원하지 않습니다. 휴대폰 달력에서 선택한 일정을 가져오는 기능은 별도로 사용할 수 있습니다.</p></section>
|
||||
<h3>다른 달력에서 구독하기</h3><p class="small">지난 30일부터 앞으로 1년까지 읽기 전용으로 제공합니다. 구독 주소를 아는 사람은 선택한 항목을 볼 수 있습니다. 주소를 전달하기 전에 공유 범위를 확인하세요.</p>
|
||||
<fieldset><legend>내보낼 항목</legend><label class="check-label"><input id="share-rotation" type="checkbox" checked>나의 근무표</label><label class="check-label"><input id="share-names" type="checkbox"><span class="regular-name">일반근무</span> 아래 이름 포함</label><label class="check-label"><input id="share-events" type="checkbox">개인 일정과 알바</label><label class="check-label"><input id="share-anniversaries" type="checkbox">생일·기념일</label><label class="check-label"><input id="share-notes" type="checkbox">일정과 기념일 메모 포함</label></fieldset>
|
||||
<fieldset><legend>내보낼 항목</legend><label class="check-label"><input id="share-rotation" type="checkbox" checked>나의 근무표</label><label class="check-label"><input id="share-skipRegular" type="checkbox">일반근무 날 빼기</label><p class="small">일반근무 날 빼기를 켜면 일반근무 날은 이름까지 통째로 보내지 않습니다. 끄면 앱 달력과 같게 보냅니다(근무 순서 이름 표시와 일반근무 글자 숨기기를 따름).</p><label class="check-label"><input id="share-names" type="checkbox"><span class="regular-name">일반근무</span> 아래 이름 포함</label><label class="check-label"><input id="share-events" type="checkbox">개인 일정과 알바</label><label class="check-label"><input id="share-anniversaries" type="checkbox">생일·기념일</label><label class="check-label"><input id="share-notes" type="checkbox">일정과 기념일 메모 포함</label></fieldset>
|
||||
<p id="share-state" class="small" role="status"></p><div id="share-address-box" hidden><label>구독 주소 · 이 창에서 복사해 보관<input id="share-address" readonly autocomplete="off"></label><button id="share-copy" class="secondary">주소 복사</button></div>
|
||||
<p class="small">외부 달력의 ‘URL로 추가’ 또는 ‘웹에서 구독’에 주소를 붙여 넣으세요. 구독 갱신 주기는 외부 달력 서비스가 정하므로 즉시 반영되지 않을 수 있습니다. 파일로 가져오기는 저장 시점의 사본이며 이후 변경을 자동으로 받지 않습니다. <a class="guide-link" href="guide" target="_blank" rel="noopener" data-guide-link>구글·삼성·아이폰·아웃룩별 자세한 방법 보기</a></p>
|
||||
<p id="share-error" class="form-error" role="alert"></p><div class="dialog-actions"><button id="share-disable" class="danger" hidden>주소 종료</button><button id="share-file" class="secondary">달력 파일 받기</button><button id="share-create">구독 주소 만들기</button></div><div class="dialog-actions"><button class="secondary close">닫기</button></div></dialog>
|
||||
<p id="share-error" class="form-error" role="alert"></p><div class="dialog-actions"><button id="share-disable" class="danger" hidden>주소 종료</button><button id="share-file" class="secondary">달력 파일 받기</button><button id="share-update" class="secondary" hidden>항목만 바꾸기(주소 그대로)</button><button id="share-create">구독 주소 만들기</button></div><div class="dialog-actions"><button class="secondary close">닫기</button></div></dialog>
|
||||
<dialog id="agenda-tools-dialog"><div class="dialog-heading"><h2>일정·알림</h2><button class="icon-button close" aria-label="닫기">×</button></div><div class="dialog-actions"><button data-agenda-action="add">일정 추가</button><button data-agenda-action="parttime-add" class="secondary">알바·시간근무</button><button data-agenda-action="anniversary-open" class="secondary">생일·기념일</button></div><p class="small">알림은 일정 편집에서 선택합니다. 휴대폰 알림은 안드로이드 앱의 알림 허용이 필요합니다.</p><h3>일정 찾기 · 다가오는 일정</h3><label>제목이나 메모 검색<input id="agenda-search" type="search" placeholder="근무지 · 약속 · 메모"></label><div class="field-row"><label>조회 시작일<input id="agenda-from" type="date" min="2000-01-01" max="2099-12-31"></label><label>조회 기간<select id="agenda-range"><option value="30">30일</option><option value="90">90일</option><option value="366">1년</option></select></label></div><p id="agenda-results-count" class="small" role="status"></p><div id="agenda-results"></div><div class="dialog-actions"><button class="secondary close">닫기</button></div></dialog>
|
||||
<dialog id="settings-dialog"><div class="dialog-heading"><h2>설정</h2><button class="icon-button close" aria-label="닫기">×</button></div><div class="settings-groups">
|
||||
<button data-setting="rotation"><strong>당직 기초 설정</strong><span>근무 유형 · 반복 순서 · 기준일 · 주5일·주6일제</span></button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
const WEB_BUILD = '2026-11-25.8';
|
||||
const WEB_BUILD = '2026-11-25.9';
|
||||
let offeredRelease=null, versionChecking=false;
|
||||
const versionDeferKey='duty-web-update-later';
|
||||
const versionSeenKey='duty-web-update-seen';
|
||||
|
||||
Reference in new issue
Block a user