@things-factory/work-shift 10.0.18 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/pages/work-shift.d.ts +106 -1
- package/dist-client/pages/work-shift.js +798 -43
- package/dist-client/pages/work-shift.js.map +1 -1
- package/dist-client/shift-coverage.d.ts +76 -0
- package/dist-client/shift-coverage.js +146 -0
- package/dist-client/shift-coverage.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/work-shift-range.js +23 -36
- package/dist-server/controllers/work-shift-range.js.map +1 -1
- package/dist-server/service/index.d.ts +5 -2
- package/dist-server/service/index.js +9 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/work-shift/days-of-week.d.ts +30 -0
- package/dist-server/service/work-shift/days-of-week.js +74 -0
- package/dist-server/service/work-shift/days-of-week.js.map +1 -0
- package/dist-server/service/work-shift/index.d.ts +5 -2
- package/dist-server/service/work-shift/index.js +11 -2
- package/dist-server/service/work-shift/index.js.map +1 -1
- package/dist-server/service/work-shift/work-shift-mutation.d.ts +10 -0
- package/dist-server/service/work-shift/work-shift-mutation.js +51 -1
- package/dist-server/service/work-shift/work-shift-mutation.js.map +1 -1
- package/dist-server/service/work-shift/work-shift-revision-query.d.ts +20 -0
- package/dist-server/service/work-shift/work-shift-revision-query.js +74 -0
- package/dist-server/service/work-shift/work-shift-revision-query.js.map +1 -0
- package/dist-server/service/work-shift/work-shift-revision-service.d.ts +69 -0
- package/dist-server/service/work-shift/work-shift-revision-service.js +186 -0
- package/dist-server/service/work-shift/work-shift-revision-service.js.map +1 -0
- package/dist-server/service/work-shift/work-shift-revision.d.ts +67 -0
- package/dist-server/service/work-shift/work-shift-revision.js +116 -0
- package/dist-server/service/work-shift/work-shift-revision.js.map +1 -0
- package/dist-server/service/work-shift/work-shift-selection.d.ts +50 -0
- package/dist-server/service/work-shift/work-shift-selection.js +65 -0
- package/dist-server/service/work-shift/work-shift-selection.js.map +1 -0
- package/dist-server/service/work-shift/work-shift-type.d.ts +12 -0
- package/dist-server/service/work-shift/work-shift-type.js +20 -1
- package/dist-server/service/work-shift/work-shift-type.js.map +1 -1
- package/dist-server/service/work-shift/work-shift.d.ts +32 -0
- package/dist-server/service/work-shift/work-shift.js +5 -0
- package/dist-server/service/work-shift/work-shift.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/page/work-shift.ko.md +5 -0
- package/helps/page/work-shift.md +13 -0
- package/package.json +6 -5
- package/translations/en.json +31 -1
- package/translations/ja.json +1 -1
- package/translations/ko.json +31 -1
- package/translations/ms.json +1 -1
- package/translations/zh.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# work shifts
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
자리만 잡아 둔 문서다. **내용은 전담 에이전트가 쓴다** — 여기서는 배치만 했다.
|
|
5
|
+
|
|
6
|
+
이 문서를 가리키는 화면:
|
|
7
|
+
· work-shift/work-shift.ts
|
|
8
|
+
|
|
9
|
+
전에는 그 화면의 도움말 아이콘이 **없는 문서를 가리켜 404 로 갔다.** 아이콘이 있으니 답이
|
|
10
|
+
있는 줄 알고 누르는데 아무것도 없었다 — 없는 것보다 나쁘다.
|
|
11
|
+
|
|
12
|
+
쓸 때 답해야 하는 것은 **그 화면의 독자가 무엇을 묻는가**다. 화면을 열어 보고 정한다.
|
|
13
|
+
-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/work-shift",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
"clean:client": "npx rimraf dist-client",
|
|
25
25
|
"clean:server": "npx rimraf dist-server",
|
|
26
26
|
"clean": "npm run clean:server && npm run clean:client",
|
|
27
|
-
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
|
|
27
|
+
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration",
|
|
28
|
+
"test": "node --import ./test/resolve-ts-siblings.mjs --test --test-force-exit test/*.test.ts"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@things-factory/auth-base": "^10.0
|
|
31
|
+
"@things-factory/auth-base": "^10.1.0",
|
|
31
32
|
"@things-factory/env": "^10.0.8",
|
|
32
|
-
"@things-factory/shell": "^10.0
|
|
33
|
+
"@things-factory/shell": "^10.1.0",
|
|
33
34
|
"moment-timezone": "^0.5.40"
|
|
34
35
|
},
|
|
35
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "8407b1e9d1f47f6676af144d4a33c8ac01cb49c4"
|
|
36
37
|
}
|
package/translations/en.json
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"button.announce-shift": "announce",
|
|
3
|
+
"button.apply-now": "save",
|
|
4
|
+
"button.cancel-announcement": "cancel",
|
|
5
|
+
"field.changed-by": "by",
|
|
6
|
+
"field.shift": "shift",
|
|
7
|
+
"field.starts": "starts",
|
|
8
|
+
"text.announced-set-is-running": "a scheduled arrangement has been in force since {since}. the editor above is not the current arrangement — saving it applies the editor's arrangement from now on.",
|
|
9
|
+
"text.apply-from-when": "effective from",
|
|
10
|
+
"text.apply-later": "a set time",
|
|
11
|
+
"text.apply-now": "now",
|
|
12
|
+
"text.could-not-announce-work-shifts": "could not announce — nothing was changed",
|
|
13
|
+
"text.could-not-cancel-announcement": "could not cancel — nothing was changed",
|
|
14
|
+
"text.could-not-read-work-shifts": "could not read the shifts — what is shown may not be current",
|
|
15
|
+
"text.could-not-save-work-shifts": "could not save — nothing was changed",
|
|
16
|
+
"text.howto-crossing-midnight": "for a shift that crosses midnight, set its end date to the day after.",
|
|
17
|
+
"text.howto-previous-is-kept": "changing the arrangement keeps the current one as a previous arrangement.",
|
|
18
|
+
"text.howto-scheduled-applies-itself": "a scheduled arrangement takes effect on its own at that moment — nothing to do on the day.",
|
|
19
|
+
"text.next-day-time": "{time} next day",
|
|
20
|
+
"text.no-announcements": "nothing scheduled. saving above takes effect immediately.",
|
|
21
|
+
"text.no-shift-history": "no previous arrangement. the current one is the first — the next save records it here.",
|
|
22
|
+
"text.no-shifts-declared": "no shifts declared yet — until one is, everything is counted by the calendar day",
|
|
23
|
+
"text.shift-covers-less-than-a-day": "only {hours} h of the 24-hour cycle is assigned to a shift. work done in the remaining hours belongs to no shift.",
|
|
24
|
+
"text.shift-covers-the-whole-day": "no uncovered time and no overlap.",
|
|
25
|
+
"text.shift-gap": "no shift is assigned to {span} (between {before} and {after}). work done then belongs to no shift.",
|
|
26
|
+
"text.shift-not-a-span": "{name} does not describe a span — check its start and end times",
|
|
27
|
+
"text.shift-overlap": "{first} and {second} overlap over {span}. work done then is recorded against whichever is found first.",
|
|
28
|
+
"title.shift-announcements": "scheduled arrangements",
|
|
29
|
+
"title.shift-coverage": "current arrangement",
|
|
30
|
+
"title.shift-editing": "edit the arrangement",
|
|
31
|
+
"title.shift-history": "previous arrangements",
|
|
32
|
+
"title.work-shift": "work shifts"
|
|
3
33
|
}
|
package/translations/ja.json
CHANGED
package/translations/ko.json
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"button.announce-shift": "예고",
|
|
3
|
+
"button.apply-now": "저장",
|
|
4
|
+
"button.cancel-announcement": "예정 취소",
|
|
5
|
+
"field.changed-by": "누가",
|
|
6
|
+
"field.shift": "교대",
|
|
7
|
+
"field.starts": "시작",
|
|
8
|
+
"text.announced-set-is-running": "{since} 부터 예정된 편성이 적용 중입니다. 위 편집기의 내용은 현재 편성이 아닙니다. 저장하면 지금부터 편집기의 편성이 적용됩니다.",
|
|
9
|
+
"text.apply-from-when": "적용 시점",
|
|
10
|
+
"text.apply-later": "지정 시각부터",
|
|
11
|
+
"text.apply-now": "지금부터",
|
|
12
|
+
"text.could-not-announce-work-shifts": "예고하지 못했습니다. 아무것도 바뀌지 않았습니다",
|
|
13
|
+
"text.could-not-cancel-announcement": "취소하지 못했습니다. 아무것도 바뀌지 않았습니다",
|
|
14
|
+
"text.could-not-read-work-shifts": "교대를 읽지 못했습니다. 표시된 내용이 최신이 아닐 수 있습니다",
|
|
15
|
+
"text.could-not-save-work-shifts": "저장하지 못했습니다. 아무것도 바뀌지 않았습니다",
|
|
16
|
+
"text.howto-crossing-midnight": "야간처럼 자정을 넘는 교대는 종료 날짜를 「다음날」로 고릅니다.",
|
|
17
|
+
"text.howto-previous-is-kept": "편성을 바꾸면 지금 편성은 이전 편성으로 남습니다.",
|
|
18
|
+
"text.howto-scheduled-applies-itself": "지정 시각부터를 고르면 그 시각에 저절로 바뀝니다. 그날 따로 할 일은 없습니다.",
|
|
19
|
+
"text.next-day-time": "익일 {time}",
|
|
20
|
+
"text.no-announcements": "예정된 편성이 없습니다. 위에서 저장하면 즉시 적용됩니다.",
|
|
21
|
+
"text.no-shift-history": "이전 편성이 없습니다. 현재 편성이 처음입니다. 다음 저장부터 여기에 기록됩니다.",
|
|
22
|
+
"text.no-shifts-declared": "아직 교대를 정하지 않았습니다. 정하기 전까지는 모든 집계가 달력 하루 기준입니다",
|
|
23
|
+
"text.shift-covers-less-than-a-day": "24시간 중 {hours}시간만 편성되어 있습니다. 나머지 시간에 한 작업은 어느 교대에도 속하지 않습니다.",
|
|
24
|
+
"text.shift-covers-the-whole-day": "빈 시간도 겹치는 시간도 없습니다.",
|
|
25
|
+
"text.shift-gap": "{span} 에 편성된 교대가 없습니다({before} · {after} 사이). 이 시간에 한 작업은 어느 교대에도 속하지 않습니다.",
|
|
26
|
+
"text.shift-not-a-span": "{name} 은 구간이 되지 않습니다. 시작 시각과 종료 시각을 확인하십시오",
|
|
27
|
+
"text.shift-overlap": "{first} · {second} 가 {span} 에 겹칩니다. 이 시간에 한 작업은 먼저 조회된 교대로 기록됩니다.",
|
|
28
|
+
"title.shift-announcements": "예정된 편성",
|
|
29
|
+
"title.shift-coverage": "현재 편성",
|
|
30
|
+
"title.shift-editing": "편성 편집",
|
|
31
|
+
"title.shift-history": "이전 편성",
|
|
32
|
+
"title.work-shift": "근무 교대"
|
|
3
33
|
}
|
package/translations/ms.json
CHANGED
package/translations/zh.json
CHANGED