Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b77d513a1 | ||
|
|
a733f87cba | ||
|
|
d0993d71ad | ||
|
|
b5f4ebfa16 | ||
|
|
f1dc2a1dff | ||
|
|
7d18f5089d | ||
|
|
900850f1a9 | ||
|
|
d30e918704 | ||
|
|
736882b1bd | ||
|
|
7a6b8207e1 | ||
|
|
1dab289a8f | ||
|
|
11324d6ece | ||
|
|
3818deacec | ||
|
|
2325a89629 | ||
|
|
d23b515003 | ||
|
|
5b43aa3c3d | ||
|
|
0b8aadc911 | ||
|
|
63bd330b81 | ||
|
|
af81a9a23a | ||
|
|
b6f405010e | ||
|
|
7ad56a3d3e | ||
|
|
f11c8b1174 | ||
|
|
860cc9af13 | ||
|
|
11b013134c | ||
|
|
269a277103 | ||
|
|
01522177f3 | ||
|
|
76fdecaccd | ||
|
|
5595bd70df | ||
|
|
7260d62662 | ||
|
|
a6473d2adf | ||
|
|
d631050d0d | ||
|
|
5d4ab56ed8 | ||
|
|
7b9f01b870 | ||
|
|
690c0db1bb | ||
|
|
019de0a0d6 | ||
|
|
3c11971227 | ||
|
|
af43d15d63 | ||
|
|
75e5d449b3 | ||
|
|
e58d9194a5 | ||
|
|
a84907925a | ||
|
|
12380d75ab | ||
|
|
43cd7f3908 | ||
|
|
7389a549cd | ||
|
|
17c9564fbd | ||
|
|
398c87020b | ||
|
|
35577f8fa6 | ||
|
|
4ef4081b52 | ||
|
|
3c08c08edc | ||
|
|
419899fd3b | ||
|
|
d3154ea5a0 | ||
|
|
782ad3d24a | ||
|
|
fdf38893ea | ||
|
|
bfd50cdf62 | ||
|
|
e277757410 | ||
|
|
268888ff95 | ||
|
|
17fbd99469 | ||
|
|
e09048a3b3 | ||
|
|
2d1759f560 | ||
|
|
ed470b98fe | ||
|
|
43ae482eb3 | ||
|
|
1ef26f4d79 | ||
|
|
7b5e324779 | ||
|
|
55db65df1d | ||
|
|
7216521a43 | ||
|
|
841b7e9bfc | ||
|
|
a78d30c778 | ||
|
|
31456658f2 | ||
|
|
81ff4593ae | ||
|
|
4fe2486539 | ||
|
|
278b115944 | ||
|
|
b86a904a0a | ||
|
|
1f8fd4b8d0 | ||
|
|
fbbe884b27 | ||
|
|
7fa42e6785 | ||
|
|
a128a47328 | ||
|
|
09d066216a | ||
|
|
4b6a2def2d | ||
|
|
47952f78e5 | ||
|
|
31b0f8a4bf | ||
|
|
4ebbf0d691 | ||
|
|
163a0e5e88 | ||
|
|
0be7d77a49 | ||
|
|
e6ad9d0991 | ||
|
|
c908342167 | ||
|
|
1f094bf922 | ||
|
|
bed1b70504 | ||
|
|
7bc8c17c0a | ||
|
|
99833a0b8c | ||
|
|
18e79b36fd | ||
|
|
f0529e8234 | ||
|
|
6712e5db0c | ||
|
|
2b3d10148e | ||
|
|
dda2d2e894 | ||
|
|
475476ebfc | ||
|
|
c5482abf97 | ||
|
|
fab864ea17 | ||
|
|
25e703aeda | ||
|
|
7b18c1d8be | ||
|
|
5d090d0e4e | ||
|
|
e77b982aa0 | ||
|
|
ab3919c04b | ||
|
|
45309a5b6c | ||
|
|
7930aa9914 | ||
|
|
6eb166e377 | ||
|
|
7c6d5a128d | ||
|
|
98c2c6ef6f | ||
|
|
6c5da2dee3 | ||
|
|
33874fd8cb | ||
|
|
1f36722f3c | ||
|
|
06b21c4d67 | ||
|
|
06d1c49694 | ||
|
|
bbe4f08d85 | ||
|
|
73deeeaca4 | ||
|
|
1007f934f9 | ||
|
|
a4138169aa | ||
|
|
677be34dbb | ||
|
|
e54c7fdca6 | ||
|
|
6ef450d90d | ||
|
|
edcb5f8302 | ||
|
|
99c819fa88 | ||
|
|
c54c90edcb | ||
|
|
00b27d9804 | ||
|
|
d7b92a5aaf | ||
|
|
890eb99381 | ||
|
|
c4cc79a107 | ||
|
|
dd3895b2a0 | ||
|
|
87ac93168b | ||
|
|
7827f0cda4 | ||
|
|
b45cab3719 | ||
|
|
56354be0f2 | ||
|
|
37f85b8b4f | ||
|
|
6483eeff03 | ||
|
|
f9d2b03579 | ||
|
|
0e724f6484 | ||
|
|
2b05b9e41d | ||
|
|
89d5735e06 | ||
|
|
912109b58c | ||
|
|
d47ea26fed | ||
|
|
0fd81dff0d | ||
|
|
f394a4c6d4 | ||
|
|
5ae1079708 | ||
|
|
5dca47fd0e | ||
|
|
9eac5812be | ||
|
|
dc91713e77 | ||
|
|
2955e44e05 | ||
|
|
8564441d2d | ||
|
|
b44b78c2d4 | ||
|
|
22b4e3e4a3 | ||
|
|
5188d17398 | ||
|
|
16742b4670 | ||
|
|
878b4638e7 | ||
|
|
96a7312a81 | ||
|
|
b05e5314e4 | ||
|
|
576ac323c5 | ||
|
|
d8e0209494 | ||
|
|
5b0482ce08 | ||
|
|
221e3090a4 | ||
|
|
0707f7f530 | ||
|
|
4b6fb732ce | ||
|
|
a2f5802933 | ||
|
|
fbf3e1ed72 | ||
|
|
e27ceb65c8 | ||
|
|
a92f9c8c6b | ||
|
|
7b6028b86c | ||
|
|
90a951c7aa | ||
|
|
7aedf02555 | ||
|
|
c3d3441f02 | ||
|
|
d049726f05 | ||
|
|
6a5d9e11a4 | ||
|
|
0af6d263d9 | ||
|
|
59de0d5b2e | ||
|
|
662a0b1063 | ||
|
|
291e287178 | ||
|
|
92130510d8 | ||
|
|
71700229a3 | ||
|
|
e4e42f4880 | ||
|
|
14a5383b34 | ||
|
|
31c38e8b93 | ||
|
|
5d2bbdadc6 | ||
|
|
49d94d7430 | ||
|
|
adf7431ad4 | ||
|
|
28562a0a36 | ||
|
|
9874794062 | ||
|
|
9ac1270bb5 | ||
|
|
664095e190 | ||
|
|
1d127c6503 | ||
|
|
f250bcb0c8 | ||
|
|
0e8b5e4725 | ||
|
|
cb3d4c9079 | ||
|
|
87059a67bf | ||
|
|
77016527bc | ||
|
|
803d5266f0 | ||
|
|
aaed0c2d14 | ||
|
|
081495a671 | ||
|
|
b0e3a807fa | ||
|
|
3302c98e32 | ||
|
|
989271d3e1 | ||
|
|
4200187a00 | ||
|
|
f7fc3ff223 | ||
|
|
804d86f09d | ||
|
|
2df0197470 | ||
|
|
0627f7dd37 | ||
|
|
06de5b2721 | ||
|
|
59ed4e766b | ||
|
|
8e12645767 | ||
|
|
1f67f8df52 | ||
|
|
579ebeb531 | ||
|
|
f060ec3988 | ||
|
|
bd4bbd4f73 | ||
|
|
69f83c616a | ||
|
|
d828c0817b | ||
|
|
f82cf222ed | ||
|
|
e9e93b609e | ||
|
|
e5d2a49b45 | ||
|
|
bde0598680 | ||
|
|
8d86507d82 | ||
|
|
56a269ff74 | ||
|
|
61c6bab406 | ||
|
|
8050af9df6 | ||
|
|
bd4b7b107e | ||
|
|
88a2f31385 | ||
|
|
016cb75c18 | ||
|
|
fafa785611 | ||
|
|
d9f960ee26 | ||
|
|
eef1c98a1a | ||
|
|
4cdb0394b7 | ||
|
|
9f8fc5bd48 | ||
|
|
ca8e50bb12 | ||
|
|
d2dd96cf32 | ||
|
|
79688b9f4c | ||
|
|
0e73811320 | ||
|
|
df0112dcf5 | ||
|
|
ab8a354038 | ||
|
|
a19f1ee6ff | ||
|
|
cbdec667c6 | ||
|
|
c58d4e602e | ||
|
|
1266c5378e | ||
|
|
a974412497 | ||
|
|
af112e4d25 | ||
|
|
2d78b1ac7c | ||
|
|
13bbb79cf0 | ||
|
|
63ba83aca6 | ||
|
|
5cf7366861 | ||
|
|
51a93a19d9 | ||
|
|
621b181f34 | ||
|
|
747472ecb2 | ||
|
|
f49e072148 | ||
|
|
36d6f99de9 | ||
|
|
28b5ab04ca | ||
|
|
d125ce4f2d | ||
|
|
0e1f20e298 | ||
|
|
53add1473d | ||
|
|
53bf4f2eb2 | ||
|
|
11bcaf4ee0 | ||
|
|
19d5411a24 | ||
|
|
843bd6fe66 | ||
|
|
b8efa68601 | ||
|
|
e1989a20aa | ||
|
|
0377b9181b | ||
|
|
00fabf1981 | ||
|
|
f992a9180b | ||
|
|
41df5d5dba | ||
|
|
7a1bf94ceb | ||
|
|
9ae46c627e | ||
|
|
f5390d85a5 | ||
|
|
a1260b624f | ||
|
|
50f3a8ed6d | ||
|
|
3599bad770 | ||
|
|
328b5aff3f | ||
|
|
46a175fa34 | ||
|
|
550e00de88 | ||
|
|
9dcecd6a50 | ||
|
|
f33b8a191d | ||
|
|
7e7f0329d4 | ||
|
|
f11cbc80fb | ||
|
|
f107b2a0df | ||
|
|
82ac24d32f | ||
|
|
573b632c41 | ||
|
|
6339dab94c | ||
|
|
85cd06159f | ||
|
|
305053dec5 | ||
|
|
ecde810b97 | ||
|
|
45d118b733 | ||
|
|
bbf4f16b02 | ||
|
|
bd2bb39f29 | ||
|
|
5eef3ea535 | ||
|
|
a587b06673 | ||
|
|
85905afe96 | ||
|
|
997a9163f1 | ||
|
|
fb5134114d | ||
|
|
6122de4296 | ||
|
|
ad7095ec7c | ||
|
|
685eb4e143 | ||
|
|
333ba2f875 | ||
|
|
decfee4212 | ||
|
|
2fbebbec05 | ||
|
|
7198ebc587 | ||
|
|
a2fd6b63c8 | ||
|
|
e13d77aaaf | ||
|
|
e228b1acc8 | ||
|
|
6f692b7e32 | ||
|
|
8a528a6e47 | ||
|
|
493ad25947 | ||
|
|
5de8e26024 | ||
|
|
8c2f07ae66 | ||
|
|
fc0729181e | ||
|
|
d0613da5c4 | ||
|
|
ac944513cd | ||
|
|
6cd29b096c | ||
|
|
b19f3c4c4c | ||
|
|
28e90d8747 | ||
|
|
53b70d16d5 | ||
|
|
9a243a8019 | ||
|
|
feab1a9350 | ||
|
|
b193a2e726 | ||
|
|
70bedd0473 | ||
|
|
7bf57c56d5 | ||
|
|
6c47e79b09 | ||
|
|
28759c07e3 | ||
|
|
9ea2e00696 | ||
|
|
910902d5cc | ||
|
|
779413138e | ||
|
|
009263e870 | ||
|
|
28ece54b9f | ||
|
|
a9f3646f8c | ||
|
|
6605d396dd | ||
|
|
90c36f55d5 | ||
|
|
d1a6db792a | ||
|
|
12fb43d300 | ||
|
|
dbe11dffbb | ||
|
|
61d7d0dbb0 | ||
|
|
fe43032ccc | ||
|
|
d3b5cb815b | ||
|
|
e2ff252eec | ||
|
|
ea24cd0e6f | ||
|
|
b83d2a35cd | ||
|
|
e7bf8829ec | ||
|
|
c83b05f1ac | ||
|
|
3077f00966 | ||
|
|
e8dfd3db3d | ||
|
|
1f5a2a6c6d | ||
|
|
4175783d93 | ||
|
|
d527f78a8d | ||
|
|
39a2c2e1b0 | ||
|
|
529e8aac90 | ||
|
|
f17fed4326 | ||
|
|
da62a1a546 | ||
|
|
d6801e3316 | ||
|
|
85813b4c1f | ||
|
|
c0dc855f77 | ||
|
|
871ea723bb | ||
|
|
529512c48d | ||
|
|
cf270ba04b | ||
|
|
e366faee1f | ||
|
|
bab3db1c26 | ||
|
|
11867cf71c | ||
|
|
3ac1f58405 | ||
|
|
8128a83c4c | ||
|
|
4ce7121044 | ||
|
|
842543c6cb | ||
|
|
0a25f04da5 | ||
|
|
f8c4513d2c | ||
|
|
838fbd3ea6 | ||
|
|
2797478457 | ||
|
|
a1ef965a0a | ||
|
|
83733697ab | ||
|
|
2a9cf6dc16 | ||
|
|
17a8c616a8 | ||
|
|
3cba691a49 | ||
|
|
108e4775b6 | ||
|
|
02b90adeb8 | ||
|
|
6c84ebe030 | ||
|
|
c8efea2e2f | ||
|
|
058afcf19b | ||
|
|
72c7ca0286 | ||
|
|
6758780183 | ||
|
|
d7eb388daf | ||
|
|
78bf4f81e0 | ||
|
|
ff68e1b8b3 | ||
|
|
f3e3f55cbe | ||
|
|
f9913eddb7 | ||
|
|
ba07c4d563 | ||
|
|
f99157cc3e | ||
|
|
c88f9eed06 | ||
|
|
fb80f5e0d4 | ||
|
|
b12a05f2f1 | ||
|
|
1cd6a4c1f7 | ||
|
|
5ffd6f861a | ||
|
|
59ee3d24b1 | ||
|
|
e5d94569d0 | ||
|
|
dbf802f809 | ||
|
|
a91426bd90 | ||
|
|
bf2b3ec0e3 | ||
|
|
400a8e516d | ||
|
|
108b3af91c | ||
|
|
e1d856c79a | ||
|
|
b07e8810ea | ||
|
|
4f13f01ccb | ||
|
|
0beb8868d9 | ||
|
|
934366bf76 | ||
|
|
8ea8894f07 | ||
|
|
888c57e216 | ||
|
|
446d7ba73e | ||
|
|
786aa6cca7 | ||
|
|
3dd7f1c67d | ||
|
|
9a73f8287f | ||
|
|
279341cbe5 | ||
|
|
64726e6c83 | ||
|
|
1af803c684 | ||
|
|
fbb84fd8ce | ||
|
|
e9f90216c1 | ||
|
|
e58742909f | ||
|
|
b91804a656 | ||
|
|
666cf6dec4 | ||
|
|
3232483494 | ||
|
|
560bfd14e3 | ||
|
|
8b82d6ccca | ||
|
|
6458781bfb | ||
|
|
3e37e8d9dc | ||
|
|
d7ee514132 | ||
|
|
c8a45734eb | ||
|
|
9fd589f704 | ||
|
|
1c3e45f824 | ||
|
|
366e9e0a3b | ||
|
|
bd42eff987 | ||
|
|
c7446fcdd3 | ||
|
|
f3aba36d00 | ||
|
|
fbbad35a1a | ||
|
|
1d2207b045 | ||
|
|
e5c7d4be1a | ||
|
|
94b3bd5f9d | ||
|
|
900553a78c | ||
|
|
dc67b1bfbe |
No files matched your search
@@ -2,4 +2,3 @@
|
||||
set -eu
|
||||
|
||||
scripts/check-secrets.py --staged
|
||||
scripts/check-file-size.py --staged
|
||||
@@ -28,7 +28,7 @@ runs:
|
||||
|
||||
- name: Restore the Ziran toolchain
|
||||
if: inputs.save-toolchain == 'true'
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
@@ -39,7 +39,7 @@ runs:
|
||||
|
||||
- name: Restore the Ziran toolchain without saving it
|
||||
if: inputs.save-toolchain != 'true'
|
||||
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
@@ -49,7 +49,7 @@ runs:
|
||||
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
|
||||
|
||||
- name: Restore the package sources
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/ziran/sources
|
||||
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('ziran.lock') }}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
platforms;android-36
|
||||
build-tools;35.0.0
|
||||
ndk;28.2.13676358
|
||||
cmake;3.22.1
|
||||
@@ -1 +0,0 @@
|
||||
python3-fonttools
|
||||
@@ -1,7 +1,5 @@
|
||||
build-essential
|
||||
ffmpeg
|
||||
ca-certificates
|
||||
desktop-file-utils
|
||||
libcurl4-openssl-dev
|
||||
ripgrep
|
||||
zlib1g-dev
|
||||
@@ -24,5 +22,6 @@ x11-utils
|
||||
xclip
|
||||
sqlite3
|
||||
imagemagick
|
||||
tesseract-ocr
|
||||
|
||||
python3-cryptography
|
||||
@@ -1,13 +0,0 @@
|
||||
# Files over 1 MB that may be committed (scripts/check-file-size.py runs in
|
||||
# the pre-commit hook and in CI). Only files the app ships or its build reads
|
||||
# belong here; drafts, renders and design explorations go in the ignored
|
||||
# backup/ folder, and large media can go in Git LFS (see .gitattributes).
|
||||
|
||||
# Sun Salutation practice videos
|
||||
assets/practices/sunsalutation/animations/*/sun-salutation-*.mp4
|
||||
# Lumi and the default profile picture
|
||||
assets/lumi/mascot.png
|
||||
assets/profile-pictures/flowers.png
|
||||
# Narration receipts the practice packages are built from
|
||||
design/tai-chi/narration-receipt.json
|
||||
design/tai-chi/narration-male-receipt.json
|
||||
@@ -1,47 +0,0 @@
|
||||
# The Test job's machine for `make release-ready`: the runner's Ubuntu, the
|
||||
# packages CI installs for native/browser tests, its pinned SDK, and Node 22.
|
||||
# Build context: .github (scripts/release-ready.sh builds and tags it).
|
||||
FROM docker.io/library/ubuntu:24.04
|
||||
|
||||
ARG NODE_VERSION=22.12.0
|
||||
ARG GO_VERSION=1.24.4
|
||||
|
||||
COPY apt/test-packages.txt /tmp/test-packages.txt
|
||||
COPY apt/web-packages.txt /tmp/web-packages.txt
|
||||
COPY emscripten-version /tmp/emscripten-version
|
||||
|
||||
# The hosted runner also ships git, Git LFS, curl, cmake, zip, jq, OpenSSL's
|
||||
# headers, libsodium, D-Bus, Java 21, Go and the Android SDK
|
||||
# (scripts/release-ready.sh mounts this machine's).
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
git git-lfs python3 curl xz-utils make cmake zip unzip jq file libssl-dev \
|
||||
libsodium23 dbus openjdk-21-jdk-headless \
|
||||
libgtk-3-0t64 libasound2t64 libdbus-glib-1-2 libxt6t64 libxtst6 libpci3 \
|
||||
$(grep -v '^#' /tmp/test-packages.txt /tmp/web-packages.txt | cut -d: -f2- | sort -u | tr '\n' ' ') \
|
||||
&& curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/chrome.deb \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends /tmp/chrome.deb \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/test-packages.txt /tmp/web-packages.txt /tmp/chrome.deb
|
||||
|
||||
RUN curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" \
|
||||
| tar -xJ -C /usr/local --strip-components=1 \
|
||||
&& node --version
|
||||
|
||||
RUN mkdir -p /opt/emsdk /opt/firefox \
|
||||
&& curl -fsSL https://github.com/emscripten-core/emsdk/archive/refs/heads/main.tar.gz \
|
||||
| tar -xz -C /opt/emsdk --strip-components=1
|
||||
RUN /opt/emsdk/emsdk install "$(cat /tmp/emscripten-version)" \
|
||||
&& /opt/emsdk/emsdk activate "$(cat /tmp/emscripten-version)" \
|
||||
&& /opt/emsdk/upstream/emscripten/embuilder build zlib \
|
||||
&& chmod -R a+rwX /opt/emsdk/upstream/emscripten/cache \
|
||||
&& rm /tmp/emscripten-version
|
||||
RUN curl -fsSL 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US' \
|
||||
| tar -xJ -C /opt/firefox --strip-components=1 \
|
||||
&& ln -s /opt/firefox/firefox /usr/local/bin/firefox
|
||||
|
||||
ENV PATH=/opt/emsdk/upstream/emscripten:/usr/local/go/bin:/usr/local/bin:/usr/bin:/bin
|
||||
ENV EM_CONFIG=/opt/emsdk/.emscripten
|
||||
|
||||
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar -xz -C /usr/local \
|
||||
&& ln -s /usr/local/go/bin/go /usr/local/bin/go \
|
||||
&& go version
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
# The same package and real-browser checks as CI's Build Browser Add-ons job.
|
||||
set -eu
|
||||
export YUE_DESKTOP_RECOVERY=0
|
||||
unset DISPLAY WAYLAND_DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
|
||||
make package-unpackaged-assets chrome-web-store firefox-addons firefox-addons-lint
|
||||
test -f build/dist/inbe-chrome-web-store.zip
|
||||
test -f build/dist/inbe-firefox-addons.zip
|
||||
make web-smoke-test
|
||||
LIBGL_ALWAYS_SOFTWARE=1 make web-smoke-test-firefox
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Reset only the server's private overlay, never its canonical checkout.
|
||||
set -eu
|
||||
server=/sync-server
|
||||
filesystem=$(stat -f -c %T "$server")
|
||||
if [ "$filesystem" != overlayfs ]; then
|
||||
echo "release-ready: sync server is not a private overlay" >&2
|
||||
exit 2
|
||||
fi
|
||||
commit=$(cat .github/sync-test-server-commit)
|
||||
python3 -c "$RELEASE_READY_SNAPSHOT" "$server" "$commit"
|
||||
expected=$(git -c safe.directory="$server" -C "$server" rev-parse HEAD:vendor/liboqs)
|
||||
actual=$(git -c safe.directory="$server/vendor/liboqs" -C "$server/vendor/liboqs" rev-parse HEAD)
|
||||
if [ "$expected" != "$actual" ]; then
|
||||
echo "release-ready: canonical Daochi's liboqs must match the CI pin" >&2
|
||||
exit 2
|
||||
fi
|
||||
if [ -n "$(git -c safe.directory="$server/vendor/liboqs" -C "$server/vendor/liboqs" status --porcelain --untracked-files=all)" ]; then
|
||||
echo "release-ready: canonical Daochi's liboqs must be pristine" >&2
|
||||
exit 2
|
||||
fi
|
||||
# Emscripten's PATH entry holds a cmake directory, which make's own command
|
||||
# lookup would try to run instead of the cmake program.
|
||||
make -C "$server" BUILD_DIR=/src/build/sync-test-server CMAKE="$(command -v cmake)" build
|
||||
DAOCHI_BIN="$server/daochi" make sync-server-test
|
||||
git -c safe.directory="$server" -C "$server" diff --exit-code "$commit" -- .
|
||||
@@ -1,132 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Install the pinned SDK components, retrying downloads in fresh staging areas."""
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import time
|
||||
import xml.etree.ElementTree as ET
|
||||
import zipfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def component_path(root, package):
|
||||
if not re.fullmatch(r"(?:platforms;android-[0-9]+|(?:build-tools|ndk|cmake);[0-9]+\.[0-9]+\.[0-9]+)", package):
|
||||
raise ValueError("invalid pinned SDK component: " + package)
|
||||
return root.joinpath(*package.split(";"))
|
||||
|
||||
|
||||
def valid(root, package):
|
||||
directory = component_path(root, package)
|
||||
try:
|
||||
document = ET.parse(directory / "package.xml")
|
||||
if not any(element.tag.rsplit("}", 1)[-1] == "localPackage" and
|
||||
element.get("path") == package for element in document.iter()):
|
||||
return False
|
||||
kind, version = package.split(";")
|
||||
if kind == "platforms":
|
||||
with zipfile.ZipFile(directory / "android.jar") as archive:
|
||||
return archive.testzip() is None
|
||||
properties = (directory / "source.properties").read_text()
|
||||
if not re.search(r"^Pkg\.Revision\s*=\s*" + re.escape(version) + r"\s*$", properties, re.M):
|
||||
return False
|
||||
if kind == "cmake":
|
||||
command = [directory / "bin/cmake", "--version"]
|
||||
elif kind == "build-tools":
|
||||
command = [directory / "aapt2", "version"]
|
||||
else:
|
||||
command = [next(directory.glob("toolchains/llvm/prebuilt/*/bin/clang")), "--version"]
|
||||
result = subprocess.run(command, capture_output=True, text=True, timeout=15)
|
||||
if result.returncode != 0:
|
||||
return False
|
||||
if kind == "cmake":
|
||||
expected = "cmake version " + re.escape(version) + r"(?:-[0-9A-Za-z.]+)?"
|
||||
return re.fullmatch(expected, result.stdout.splitlines()[0]) is not None
|
||||
return True
|
||||
except (OSError, UnicodeError, ET.ParseError, zipfile.BadZipFile, StopIteration, IndexError,
|
||||
subprocess.TimeoutExpired):
|
||||
return False
|
||||
|
||||
|
||||
def merge_licenses(source, destination):
|
||||
"""Keep runner-owned permissions and accepted licence hashes intact."""
|
||||
if not source.is_dir():
|
||||
return
|
||||
destination.mkdir(exist_ok=True)
|
||||
for license_file in source.iterdir():
|
||||
if not license_file.is_file():
|
||||
continue
|
||||
target = destination / license_file.name
|
||||
accepted = target.read_text().splitlines() if target.exists() else []
|
||||
additions = [line for line in license_file.read_text().splitlines()
|
||||
if line.strip() and line not in accepted]
|
||||
if not additions:
|
||||
continue
|
||||
# copytree/copy2 also chmod and set timestamps. Hosted SDK licences
|
||||
# can be writable but owned by root, so metadata copying fails.
|
||||
with target.open("a") as output:
|
||||
output.write("\n" + "\n".join(additions) + "\n")
|
||||
|
||||
|
||||
def install(root, packages, manager, sleep=time.sleep):
|
||||
root = Path(root).resolve()
|
||||
manager = Path(manager).resolve(strict=True)
|
||||
root.mkdir(parents=True, exist_ok=True)
|
||||
for package in packages:
|
||||
destination = component_path(root, package)
|
||||
if valid(root, package):
|
||||
print("Android SDK: verified cached " + package, flush=True)
|
||||
continue
|
||||
for attempt in range(1, 4):
|
||||
print(f"Android SDK: install {package}, attempt {attempt}/3", flush=True)
|
||||
# sdkmanager keeps partial archives beneath its SDK root. A new
|
||||
# stage guarantees that a corrupt ZIP cannot survive the retry.
|
||||
with tempfile.TemporaryDirectory(prefix=".inbe-sdk-", dir=root) as temporary:
|
||||
stage = Path(temporary)
|
||||
if (root / "licenses").is_dir():
|
||||
shutil.copytree(root / "licenses", stage / "licenses")
|
||||
environment = dict(os.environ, ANDROID_HOME=str(stage), ANDROID_SDK_ROOT=str(stage))
|
||||
try:
|
||||
result = subprocess.run([manager, "--sdk_root=" + str(stage), package],
|
||||
input=b"y\n" * 128, env=environment, timeout=600)
|
||||
except subprocess.TimeoutExpired:
|
||||
result = None
|
||||
if result is not None and result.returncode == 0 and valid(stage, package):
|
||||
source = component_path(stage, package)
|
||||
destination.parent.mkdir(parents=True, exist_ok=True)
|
||||
if destination.exists():
|
||||
destination.rename(stage / "incomplete-component")
|
||||
source.rename(destination)
|
||||
merge_licenses(stage / "licenses", root / "licenses")
|
||||
if not valid(root, package):
|
||||
raise RuntimeError("SDK component failed validation after installation: " + package)
|
||||
break
|
||||
print("Android SDK: rejected incomplete or invalid " + package, flush=True)
|
||||
if attempt == 3:
|
||||
raise RuntimeError("Android SDK download failed after three fresh attempts: " + package)
|
||||
sleep(attempt * 2)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--sdk-root", type=Path,
|
||||
default=os.environ.get("ANDROID_SDK_ROOT") or os.environ.get("ANDROID_HOME"))
|
||||
parser.add_argument("--sdkmanager", type=Path)
|
||||
parser.add_argument("--packages", type=Path, default=ROOT / ".github/android-sdk-packages.txt")
|
||||
args = parser.parse_args()
|
||||
if args.sdk_root is None:
|
||||
parser.error("ANDROID_SDK_ROOT or ANDROID_HOME must name the job's SDK")
|
||||
manager = args.sdkmanager or args.sdk_root / "cmdline-tools/latest/bin/sdkmanager"
|
||||
if args.sdkmanager is None and not manager.is_file():
|
||||
manager = Path(shutil.which("sdkmanager") or manager)
|
||||
packages = [line.strip() for line in args.packages.read_text().splitlines()
|
||||
if line.strip() and not line.lstrip().startswith("#")]
|
||||
install(args.sdk_root, packages, manager)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -1 +0,0 @@
|
||||
1ef10d91aba32b45a381cd6a5af4db029698c343
|
||||
@@ -47,11 +47,11 @@ jobs:
|
||||
if run['head_sha'] != commit or run['path'] != '.github/workflows/release.yml':
|
||||
raise SystemExit('The Release checks must belong to the requested source commit')
|
||||
jobs = api(f'repos/{repository}/actions/runs/{run_id}/jobs?per_page=100')['jobs']
|
||||
for name in ('Secret Scan', 'Test (0/3)', 'Test (1/3)', 'Test (2/3)'):
|
||||
for name in ('Secret Scan', 'Test'):
|
||||
checks = [job for job in jobs if job['name'] == name]
|
||||
if len(checks) != 1 or checks[0]['conclusion'] != 'success':
|
||||
raise SystemExit(f'{name} must have passed before signing')
|
||||
print('Verified passing Secret Scan and all three Test shards for ' + commit)
|
||||
print('Verified passing Secret Scan and full Test jobs for ' + commit)
|
||||
PY
|
||||
|
||||
- name: Checkout verified source
|
||||
@@ -82,16 +82,19 @@ jobs:
|
||||
with:
|
||||
path: |
|
||||
${{ env.ANDROID_HOME }}/platforms/android-36
|
||||
${{ env.ANDROID_HOME }}/build-tools/35.0.0
|
||||
${{ env.ANDROID_HOME }}/build-tools/34.0.0
|
||||
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
|
||||
${{ env.ANDROID_HOME }}/cmake/3.22.1
|
||||
key: android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/android-sdk-packages.txt') }}
|
||||
key: android-moto-sdk-${{ runner.os }}-api36-ndk28-cmake322
|
||||
restore-keys: |
|
||||
android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-
|
||||
android-sdk-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Verify and install Android SDK components
|
||||
timeout-minutes: 20
|
||||
run: python3 .github/scripts/install-android-sdk.py
|
||||
- name: Install Android SDK components
|
||||
run: |
|
||||
set -euo pipefail
|
||||
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
|
||||
yes | "$SDKMANAGER" --licenses >/dev/null || true
|
||||
"$SDKMANAGER" "platforms;android-36" "build-tools;34.0.0" "ndk;28.2.13676358" "cmake;3.22.1"
|
||||
|
||||
- name: Prepare Android signing key
|
||||
env:
|
||||
@@ -126,7 +129,7 @@ jobs:
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
mkdir -p build/release/moto
|
||||
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk "build/release/moto/inbe-$VERSION-moto.apk"
|
||||
"$ANDROID_HOME/build-tools/35.0.0/apksigner" verify --print-certs "build/release/moto/inbe-$VERSION-moto.apk"
|
||||
"$ANDROID_HOME/build-tools/34.0.0/apksigner" verify --print-certs "build/release/moto/inbe-$VERSION-moto.apk"
|
||||
printf '%s\n' "$SOURCE_COMMIT" > build/release/moto/source-commit.txt
|
||||
(
|
||||
cd build/release/moto
|
||||
|
||||
+34
-31
@@ -13,8 +13,8 @@ permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.sha }}
|
||||
cancel-in-progress: false
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
secret-scan:
|
||||
@@ -42,22 +42,6 @@ jobs:
|
||||
python3 scripts/check-secrets.py --working-tree
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
# The pre-commit hook runs the same check on staged files.
|
||||
- name: Refuse new files over 1 MB
|
||||
env:
|
||||
BEFORE: ${{ github.event.before }}
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
run: |
|
||||
set -eu
|
||||
if [ -n "$BASE_REF" ]; then
|
||||
base=$(git merge-base "origin/$BASE_REF" HEAD)
|
||||
elif [ -n "$BEFORE" ] && git cat-file -e "$BEFORE^{commit}" 2>/dev/null; then
|
||||
base=$BEFORE
|
||||
else
|
||||
base=HEAD~1
|
||||
fi
|
||||
python3 scripts/check-file-size.py --since "$base"
|
||||
|
||||
guard-package-urls:
|
||||
name: Package URLs are public HTTPS
|
||||
runs-on: ubuntu-latest
|
||||
@@ -112,12 +96,6 @@ jobs:
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
|
||||
- name: Cache Test apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -133,19 +111,44 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
|
||||
|
||||
- name: Read sync test server revision
|
||||
if: matrix.shard == 0
|
||||
id: sync-test-server
|
||||
run: echo "revision=$(cat .github/sync-test-server-commit)" >> "$GITHUB_OUTPUT"
|
||||
- name: Require Visual Tests
|
||||
if: matrix.shard == 1
|
||||
run: make visual-test
|
||||
|
||||
- name: Save Visual Test Evidence
|
||||
if: always() && matrix.shard == 1
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-visual-tests
|
||||
path: |
|
||||
build/visual-test/
|
||||
build/native-visual-test/
|
||||
build/native-zoom-test/*.png
|
||||
build/native-zoom-test/app.log
|
||||
build/launcher-ui-test/
|
||||
build/locale-render-ui-test/
|
||||
build/native-screenshot-test/
|
||||
build/native-text-pixels-test/*.png
|
||||
build/native-text-pixels-test/*.log
|
||||
build/settings-sidebar-test/
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
build/leaderboard-ui-test/
|
||||
build/practice-images-ui-test/
|
||||
retention-days: 7
|
||||
|
||||
- name: Check out sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kryonlabs/daochi
|
||||
# Includes signed photo copies (blobs) and the private Lumi
|
||||
# collection used for shared account activity.
|
||||
ref: ${{ steps.sync-test-server.outputs.revision }}
|
||||
# Includes the private Lumi collection used for shared account activity.
|
||||
ref: f850456a7e039e9ba39fcf03cb7cb802ff6a3329
|
||||
path: .test-server
|
||||
submodules: recursive
|
||||
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
name: F-Droid
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
schedule:
|
||||
- cron: '23 7 * * *'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
revision:
|
||||
description: Exact committed candidate (defaults to the triggering commit)
|
||||
required: false
|
||||
type: string
|
||||
workflow_call:
|
||||
inputs:
|
||||
revision:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: F-Droid security and clean build
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 90
|
||||
container:
|
||||
# Official F-Droid buildserver, pinned for repeatable verification.
|
||||
image: registry.gitlab.com/fdroid/fdroidserver@sha256:1ea8bef1820bff06c2974e31b4fc4c79c364cd24231b86e71fa4b926797e0dac
|
||||
steps:
|
||||
- name: Require an immutable candidate
|
||||
env:
|
||||
CANDIDATE: ${{ inputs.revision || github.sha }}
|
||||
shell: bash
|
||||
run: |
|
||||
if ! [[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]]; then
|
||||
echo "::error::revision must be a full commit ID, never a branch or tag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Checkout's LFS support requires git-lfs inside the job container.
|
||||
- name: Install recipe dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends build-essential jimsh libssl-dev python3-fonttools openjdk-21-jdk-headless fdroidserver git-lfs
|
||||
update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
|
||||
|
||||
- name: Checkout candidate
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
path: build/xyz.waozi.inbe
|
||||
lfs: true
|
||||
persist-credentials: false
|
||||
|
||||
- name: Verify and install Android SDK components
|
||||
timeout-minutes: 20
|
||||
run: |
|
||||
python3 build/xyz.waozi.inbe/.github/scripts/install-android-sdk.py \
|
||||
--sdk-root /opt/android-sdk --sdkmanager "$(command -v sdkmanager)"
|
||||
|
||||
- name: Build and scan with F-Droid without cached package sources
|
||||
run: python3 build/xyz.waozi.inbe/scripts/check-fdroid.py
|
||||
|
||||
- name: Preserve APK, exact metadata and scanner evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
name: fdroid-unsigned
|
||||
path: |
|
||||
tmp/*.apk
|
||||
logs/
|
||||
metadata/
|
||||
build/xyz.waozi.inbe/build/outputs/logs/
|
||||
build/xyz.waozi.inbe/droid/app/build/intermediates/native_debug_metadata/
|
||||
build/xyz.waozi.inbe/droid/app/build/intermediates/merged_native_libs/
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
@@ -11,11 +11,7 @@ on:
|
||||
- 'scripts/prepare-package-assets.py'
|
||||
- 'src/**'
|
||||
- 'scripts/build-cells.sh'
|
||||
- 'scripts/build-node-apps.sh'
|
||||
- 'scripts/package-release.py'
|
||||
- 'scripts/practice_content.py'
|
||||
- 'design/tai-chi/narration*.json'
|
||||
- 'design/tai-chi/text/**'
|
||||
- 'scripts/generate-package-versions.py'
|
||||
- 'scripts/update-package-version.py'
|
||||
- 'scripts/check-package-versions.py'
|
||||
@@ -25,9 +21,6 @@ on:
|
||||
- 'tests/package_upload_test.py'
|
||||
- 'tests/package_versions_test.py'
|
||||
- 'tests/package_workflow_test.py'
|
||||
- 'tests/package_release_test.py'
|
||||
- 'tests/package_manager_host.c'
|
||||
- 'tests/package_manager_behavior.zi'
|
||||
- 'ziran.lock'
|
||||
- '.github/workflows/packages.yml'
|
||||
workflow_dispatch:
|
||||
@@ -44,7 +37,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/ziran-packages
|
||||
- name: Install signing and test dependencies
|
||||
run: |
|
||||
@@ -56,12 +49,10 @@ jobs:
|
||||
make package-workflow-test
|
||||
make package-manifest-test
|
||||
make package-upload-test
|
||||
make cells node-apps build-laws
|
||||
make cells build-laws
|
||||
python3 tests/package_release_test.py
|
||||
- name: Run new packages in the last released app
|
||||
run: python3 tests/package_compat_test.py --skip-forward
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: Configure publisher
|
||||
id: publisher
|
||||
env:
|
||||
@@ -116,29 +107,13 @@ jobs:
|
||||
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
|
||||
--ssh-target "$TARGET" --remote-store "$STORE" \
|
||||
--verify-origin https://api.waozi.xyz
|
||||
# Each app the node offers publishes on its own when its ledger names a
|
||||
# newer release; the node keeps its newest three releases for rollback.
|
||||
- name: Publish new releases of the apps the node offers
|
||||
if: steps.publisher.outputs.configured == 'true'
|
||||
env:
|
||||
KEY_ID: ${{ vars.INBE_PACKAGE_KEY_ID }}
|
||||
TARGET: ${{ secrets.INBE_NODE_SSH_TARGET }}
|
||||
STORE: ${{ secrets.INBE_NODE_PACKAGE_STORE }}
|
||||
run: |
|
||||
export INBE_SSH_IDENTITY="$RUNNER_TEMP/inbe-publisher/node.key"
|
||||
export INBE_SSH_KNOWN_HOSTS="$RUNNER_TEMP/inbe-publisher/known_hosts"
|
||||
python3 scripts/package-release.py --node-apps --store build/package-releases \
|
||||
--key "$RUNNER_TEMP/inbe-publisher/publisher.pem" --key-id "$KEY_ID" \
|
||||
--ssh-target "$TARGET" --remote-store "$STORE" \
|
||||
--verify-origin https://api.waozi.xyz
|
||||
- name: Archive packages
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inbe-app-packages
|
||||
path: |
|
||||
build/inbe.zib
|
||||
build/cells/*.zib
|
||||
build/node-apps/*.zib
|
||||
build/package-releases/
|
||||
if-no-files-found: error
|
||||
- name: Remove signing material
|
||||
|
||||
+85
-286
@@ -11,12 +11,9 @@ on:
|
||||
- 'apps/publishers.json'
|
||||
- 'CHANGELOG.md'
|
||||
- 'Makefile'
|
||||
- 'mk/**'
|
||||
- 'tests/**'
|
||||
- 'ziran.lock'
|
||||
- 'scripts/**'
|
||||
- '!scripts/package-release.py'
|
||||
- '!scripts/practice_content.py'
|
||||
- '!scripts/update-package-version.py'
|
||||
- '!scripts/generate-package-versions.py'
|
||||
- '!scripts/prepare-package-assets.py'
|
||||
@@ -24,130 +21,25 @@ on:
|
||||
- '!scripts/package-manifests.py'
|
||||
- 'packaging/**'
|
||||
- '.github/workflows/release.yml'
|
||||
- '.github/android-sdk-packages.txt'
|
||||
- '.github/scripts/**'
|
||||
- '.github/apt/**'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
revision:
|
||||
description: Exact committed release candidate (defaults to the triggering commit)
|
||||
required: false
|
||||
type: string
|
||||
reuse_run:
|
||||
description: Verified Release run to reuse when only its phone-check receipt was added
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
actions: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ inputs.revision || github.sha }}
|
||||
cancel-in-progress: false
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
secret-scan:
|
||||
name: Secret Scan
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
reuse_artifacts: ${{ steps.reuse.outputs.reuse_artifacts }}
|
||||
steps:
|
||||
- name: Require an immutable candidate
|
||||
env:
|
||||
CANDIDATE: ${{ inputs.revision || github.sha }}
|
||||
run: |
|
||||
if ! [[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]]; then
|
||||
echo "::error::revision must be a full commit ID, never a branch or tag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Verify identical source and every gate before reusing artifacts
|
||||
id: reuse
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
VERIFIED_RUN: ${{ inputs.reuse_run }}
|
||||
CANDIDATE: ${{ inputs.revision || github.sha }}
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
run_id = os.environ.get('VERIFIED_RUN', '')
|
||||
output = Path(os.environ['GITHUB_OUTPUT'])
|
||||
if not run_id:
|
||||
with output.open('a') as stream:
|
||||
stream.write('reuse_artifacts=false\n')
|
||||
raise SystemExit(0)
|
||||
if not re.fullmatch(r'[1-9][0-9]*', run_id):
|
||||
raise SystemExit('A numeric verified Release run ID is required')
|
||||
repository = os.environ['GITHUB_REPOSITORY']
|
||||
|
||||
def api(path):
|
||||
return json.loads(subprocess.check_output(['gh', 'api', path], text=True))
|
||||
|
||||
run = api(f'repos/{repository}/actions/runs/{run_id}')
|
||||
if (run['path'] != '.github/workflows/release.yml' or
|
||||
run['event'] != 'push' or run['head_branch'] != 'master' or
|
||||
run['repository']['full_name'] != repository):
|
||||
raise SystemExit('Artifacts must come from this repository master Release workflow')
|
||||
source = run['head_sha']
|
||||
candidate = os.environ['CANDIDATE']
|
||||
if (not re.fullmatch(r'[0-9a-f]{40}', source) or
|
||||
not re.fullmatch(r'[0-9a-f]{40}', candidate)):
|
||||
raise SystemExit('The verified source must be an immutable commit')
|
||||
subprocess.run(['git', 'merge-base', '--is-ancestor', source, candidate], check=True)
|
||||
version = subprocess.check_output(
|
||||
['python3', 'scripts/check-version.py', '--print-version'], text=True).strip()
|
||||
receipt = f'releases/phone-checks/{version}.json'
|
||||
changed = subprocess.check_output(
|
||||
['git', 'diff', '--name-only', '--no-renames', source, candidate], text=True).splitlines()
|
||||
if changed != [receipt]:
|
||||
raise SystemExit('Reuse requires identical source with only the phone-check receipt added')
|
||||
if subprocess.run(['git', 'cat-file', '-e', source + ':' + receipt],
|
||||
capture_output=True).returncode == 0:
|
||||
raise SystemExit('The source run already had a phone receipt; do not race its publication')
|
||||
subprocess.run(['python3', 'scripts/check-phone-check.py', version,
|
||||
'--revision', candidate], check=True)
|
||||
required = {
|
||||
'Secret Scan', 'Test (0/3)', 'Test (1/3)', 'Test (2/3)',
|
||||
'F-Droid / F-Droid security and clean build', 'Verify F-Droid reproducibility',
|
||||
'Build Web', 'Build Chrome Extension', 'Build Firefox Add-on', 'Build Windows',
|
||||
'Build Android',
|
||||
'Build Linux AppImage (x86_64, ubuntu-22.04, x86_64)',
|
||||
'Build Linux AppImage (aarch64, ubuntu-22.04-arm, aarch64)',
|
||||
'Build Linux Deb (amd64, ubuntu-22.04)', 'Build Linux Deb (arm64, ubuntu-22.04-arm)',
|
||||
'Build Linux RPM (x86_64, ubuntu-22.04)', 'Build Linux RPM (aarch64, ubuntu-22.04-arm)',
|
||||
'Build Linux Snap (x86_64, ubuntu-22.04)', 'Build Linux Snap (aarch64, ubuntu-22.04-arm)',
|
||||
'Build Linux Flatpak (x86_64, ubuntu-22.04)', 'Build Linux Flatpak (aarch64, ubuntu-22.04-arm)',
|
||||
}
|
||||
jobs = api(f'repos/{repository}/actions/runs/{run_id}/jobs?per_page=100')['jobs']
|
||||
for name in required:
|
||||
matches = [job for job in jobs if job['name'] == name]
|
||||
if (len(matches) != 1 or matches[0]['status'] != 'completed' or
|
||||
matches[0]['conclusion'] != 'success'):
|
||||
raise SystemExit(name + ' must have passed for the identical source')
|
||||
ci_runs = api(f'repos/{repository}/actions/workflows/ci.yml/runs?head_sha={source}&event=push&per_page=100')['workflow_runs']
|
||||
matching = [item for item in ci_runs if item['head_sha'] == source and
|
||||
item['path'] == '.github/workflows/ci.yml' and item['event'] == 'push' and
|
||||
item['head_branch'] == 'master' and item['status'] == 'completed' and
|
||||
item['conclusion'] == 'success']
|
||||
if len(matching) != 1:
|
||||
raise SystemExit('The identical source must also pass CI, including browser add-on smoke tests')
|
||||
with output.open('a') as stream:
|
||||
stream.write('reuse_artifacts=true\n')
|
||||
print('All source, test, platform and F-Droid gates passed; reusing their immutable artifacts')
|
||||
PY
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
with:
|
||||
@@ -168,16 +60,10 @@ jobs:
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
test:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Test (${{ matrix.shard }}/3)
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: secret-scan
|
||||
# Run every unit shard and the package compatibility suite.
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [0, 1, 2]
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -185,7 +71,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
@@ -197,13 +82,6 @@ jobs:
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
# Robolectric's Android 16 (SDK 36) sandbox needs Java 21.
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
|
||||
- name: Cache Test apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -217,65 +95,46 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
|
||||
|
||||
- name: Run Tests
|
||||
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
|
||||
run: make test
|
||||
|
||||
- name: Require Visual Tests
|
||||
run: make visual-test
|
||||
|
||||
- name: Run Packages Across App Versions
|
||||
if: matrix.shard == 2
|
||||
run: make package-compat-test
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
|
||||
fdroid:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: F-Droid
|
||||
needs: secret-scan
|
||||
uses: ./.github/workflows/fdroid.yml
|
||||
with:
|
||||
revision: ${{ inputs.revision || github.sha }}
|
||||
|
||||
verify-fdroid:
|
||||
name: Verify F-Droid reproducibility
|
||||
runs-on: ubuntu-latest
|
||||
needs: [secret-scan, fdroid, build-android]
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Download independent F-Droid build
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
- name: Save Visual Test Evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: fdroid-unsigned
|
||||
path: fdroid
|
||||
|
||||
- name: Download signed Android release
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: release-android
|
||||
path: signed
|
||||
|
||||
- name: Require the rebuilt APK to accept the release signature
|
||||
run: |
|
||||
set -euo pipefail
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y apksigcopier apksigner
|
||||
mapfile -t rebuilt < <(find fdroid/tmp -name '*.apk')
|
||||
mapfile -t signed < <(find signed -name '*-fdroid.apk')
|
||||
test "${#rebuilt[@]}" -eq 1
|
||||
test "${#signed[@]}" -eq 1
|
||||
apksigner verify --print-certs "${signed[0]}" | tee signer.txt
|
||||
grep -Fx 'Signer #1 certificate SHA-256 digest: 47648dc7665db12a97c3077a4892ce29072c756bb31b5c331b8924493c888475' signer.txt
|
||||
apksigcopier compare --unsigned "${signed[0]}" "${rebuilt[0]}"
|
||||
name: release-visual-tests
|
||||
path: |
|
||||
build/visual-test/
|
||||
build/native-visual-test/
|
||||
build/native-zoom-test/*.png
|
||||
build/native-zoom-test/app.log
|
||||
build/launcher-ui-test/
|
||||
build/locale-render-ui-test/
|
||||
build/native-screenshot-test/
|
||||
build/native-text-pixels-test/*.png
|
||||
build/native-text-pixels-test/*.log
|
||||
build/settings-sidebar-test/
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
build/leaderboard-ui-test/
|
||||
build/practice-images-ui-test/
|
||||
retention-days: 7
|
||||
|
||||
build-web:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Web
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -283,7 +142,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
@@ -328,11 +186,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-chrome-extension:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Chrome Extension
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -340,7 +197,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
@@ -385,11 +241,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-firefox-addons:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Firefox Add-on
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -397,7 +252,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
@@ -443,11 +297,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux-appimage:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Linux AppImage
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -465,7 +318,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -562,11 +414,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux-deb:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Linux Deb
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -582,7 +433,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -624,11 +474,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux-rpm:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Linux RPM
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -644,7 +493,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -686,11 +534,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux-snap:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Linux Snap
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -706,7 +553,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -745,11 +591,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux-flatpak:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Linux Flatpak
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -765,7 +610,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -804,11 +648,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Windows
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -816,7 +659,6 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
@@ -841,7 +683,7 @@ jobs:
|
||||
path: |
|
||||
vendor-builds/windows
|
||||
vendor-builds/sqlite
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'mk/**', '!mk/tests-*.mk', 'ziran.lock') }}
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
@@ -870,55 +712,17 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
build-android:
|
||||
if: needs.secret-scan.outputs.reuse_artifacts != 'true'
|
||||
name: Build Android
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: secret-scan
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
|
||||
- name: Cache Android SDK packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ env.ANDROID_HOME }}/platforms/android-36
|
||||
${{ env.ANDROID_HOME }}/build-tools/35.0.0
|
||||
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
|
||||
${{ env.ANDROID_HOME }}/cmake/3.22.1
|
||||
key: android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/android-sdk-packages.txt') }}
|
||||
restore-keys: |
|
||||
android-sdk-v2-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Verify and install Android SDK components
|
||||
timeout-minutes: 20
|
||||
run: python3 .github/scripts/install-android-sdk.py
|
||||
|
||||
- name: Cache Android apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.APT_CACHE_DIR }}
|
||||
key: android-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/android-packages.txt') }}
|
||||
restore-keys: |
|
||||
android-apt-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Install translation check dependency
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/android-packages.txt
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
@@ -927,18 +731,47 @@ jobs:
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Install translation check dependency
|
||||
run: sudo apt-get update && sudo apt-get install -y python3-fonttools
|
||||
|
||||
- name: Cache Android SDK packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ env.ANDROID_HOME }}/platforms/android-36
|
||||
${{ env.ANDROID_HOME }}/build-tools/34.0.0
|
||||
${{ env.ANDROID_HOME }}/ndk/25.1.8937393
|
||||
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
|
||||
${{ env.ANDROID_HOME }}/cmake/3.22.1
|
||||
key: android-sdk-${{ runner.os }}-${{ runner.arch }}-api36-bt34-ndk25-ndk28-cmake322
|
||||
restore-keys: |
|
||||
android-sdk-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Cache Android native build
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
droid/app/.cxx
|
||||
droid/app/build/intermediates/cxx
|
||||
key: android-native-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'droid/build.gradle', 'src/**/*.zi', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
|
||||
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
android-native-v2-${{ runner.os }}-${{ runner.arch }}-
|
||||
android-native-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Install Android SDK Components
|
||||
run: |
|
||||
set -euo pipefail
|
||||
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
|
||||
yes | "$SDKMANAGER" --licenses >/dev/null || true
|
||||
"$SDKMANAGER" "platforms;android-36" "build-tools;34.0.0" "ndk;25.1.8937393" "cmake;3.22.1"
|
||||
|
||||
- name: Prepare Android signing key
|
||||
env:
|
||||
@@ -975,14 +808,6 @@ jobs:
|
||||
--stacktrace
|
||||
make android-copy-release-apks
|
||||
make android-copy-bundle
|
||||
# F-Droid rebuilds the universal APK with -PfDroidBuild and copies
|
||||
# this APK's signature onto it, so the two must match byte for byte.
|
||||
./droid/gradlew -p droid assembleRelease -PfDroidBuild=true \
|
||||
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
|
||||
-Pkeystore.alias="$KEY_ALIAS" \
|
||||
-Pkeystore.password="$KEYSTORE_PASSWORD" \
|
||||
--stacktrace
|
||||
make android-copy-fdroid-apk
|
||||
|
||||
- name: Preserve Android Native Crash Symbols
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -1001,8 +826,7 @@ jobs:
|
||||
echo "Could not read APP_VERSION_STRING"
|
||||
exit 1
|
||||
fi
|
||||
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk" \
|
||||
"build/android/inbe-$VERSION-fdroid.apk"; do
|
||||
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk"; do
|
||||
if [ ! -f "$apk" ]; then
|
||||
echo "Missing universal APK: $apk"
|
||||
exit 1
|
||||
@@ -1024,17 +848,10 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
release:
|
||||
if: >-
|
||||
always() && !cancelled() && needs.secret-scan.result == 'success' &&
|
||||
(needs.secret-scan.outputs.reuse_artifacts == 'true' ||
|
||||
(!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') &&
|
||||
!contains(needs.*.result, 'skipped')))
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs:
|
||||
- secret-scan
|
||||
- test
|
||||
- build-web
|
||||
- build-chrome-extension
|
||||
- build-firefox-addons
|
||||
@@ -1045,7 +862,6 @@ jobs:
|
||||
- build-linux-flatpak
|
||||
- build-windows
|
||||
- build-android
|
||||
- verify-fdroid
|
||||
outputs:
|
||||
tag_pushed: ${{ steps.tag_version.outputs.tag_pushed }}
|
||||
release_upload: ${{ steps.tag_version.outputs.release_upload }}
|
||||
@@ -1056,14 +872,11 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download Release Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
pattern: release-*
|
||||
path: build/release
|
||||
merge-multiple: true
|
||||
@@ -1086,7 +899,7 @@ jobs:
|
||||
done < <(scripts/list-expected-release-assets.sh "$VERSION")
|
||||
exit "$missing"
|
||||
|
||||
- name: Require Phone Check or Explicit Owner Waiver for a New Version
|
||||
- name: Require a Passing Phone Check for a New Version
|
||||
run: |
|
||||
set -euo pipefail
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
@@ -1170,12 +983,12 @@ jobs:
|
||||
channels+=("--channel" "rpm-$arch=$rpm")
|
||||
done
|
||||
# Directly installed APKs update themselves from these channels;
|
||||
# the Google Play and F-Droid builds update through their stores.
|
||||
# the Google Play build updates through the store.
|
||||
while IFS= read -r apk; do
|
||||
abi="$(basename "$apk" .apk)"
|
||||
abi="${abi#inbe-$VERSION}"
|
||||
case "$abi" in
|
||||
-gplay|-fdroid) continue ;;
|
||||
-gplay) continue ;;
|
||||
"") channels+=("--channel" "android=$apk") ;;
|
||||
*) channels+=("--channel" "android$abi=$apk") ;;
|
||||
esac
|
||||
@@ -1235,7 +1048,7 @@ jobs:
|
||||
needs:
|
||||
- build-web
|
||||
- release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.ITCH_API_KEY }}
|
||||
|
||||
@@ -1250,14 +1063,10 @@ jobs:
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
|
||||
- name: Download Release Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
pattern: release-*
|
||||
path: build/release
|
||||
merge-multiple: true
|
||||
@@ -1336,7 +1145,7 @@ jobs:
|
||||
needs:
|
||||
- build-android
|
||||
- release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
|
||||
steps:
|
||||
- name: Check Google Play Secret
|
||||
@@ -1352,8 +1161,6 @@ jobs:
|
||||
- name: Download Android Release Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: release-android
|
||||
path: build/release/android
|
||||
|
||||
@@ -1374,7 +1181,7 @@ jobs:
|
||||
needs:
|
||||
- build-android
|
||||
- release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
env:
|
||||
AMAZON_CLIENT_ID: ${{ secrets.AMAZON_CLIENT_ID }}
|
||||
AMAZON_CLIENT_SECRET: ${{ secrets.AMAZON_CLIENT_SECRET }}
|
||||
@@ -1383,8 +1190,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
|
||||
- name: Check Amazon Appstore Secrets
|
||||
id: amazon_secrets
|
||||
@@ -1403,8 +1208,6 @@ jobs:
|
||||
if: steps.amazon_secrets.outputs.configured == 'true'
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: release-android
|
||||
path: build/release/android
|
||||
|
||||
@@ -1432,7 +1235,7 @@ jobs:
|
||||
needs:
|
||||
- build-chrome-extension
|
||||
- release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
|
||||
steps:
|
||||
- name: Check Chrome Web Store Secrets
|
||||
@@ -1464,8 +1267,6 @@ jobs:
|
||||
if: steps.chrome_secrets.outputs.configured == 'true'
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: release-chrome-web-store
|
||||
path: build/release/chrome-web-store
|
||||
|
||||
@@ -1560,7 +1361,7 @@ jobs:
|
||||
needs:
|
||||
- build-firefox-addons
|
||||
- release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
|
||||
steps:
|
||||
- name: Check Firefox Add-ons Secrets
|
||||
@@ -1586,8 +1387,6 @@ jobs:
|
||||
if: steps.firefox_secrets.outputs.configured == 'true'
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ inputs.reuse_run || github.run_id }}
|
||||
name: release-firefox-addons
|
||||
path: build/release/firefox-addons
|
||||
|
||||
@@ -1623,7 +1422,7 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
continue-on-error: true
|
||||
needs: release
|
||||
if: always() && !cancelled() && needs.release.result == 'success' && needs.release.outputs.tag_pushed == 'true'
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
env:
|
||||
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
|
||||
|
||||
|
||||
+1
-6
@@ -16,7 +16,6 @@
|
||||
*.wasm
|
||||
build/
|
||||
/backup/
|
||||
/notes/
|
||||
/output/
|
||||
tmp/
|
||||
vendor-builds/
|
||||
@@ -29,6 +28,7 @@ node_modules
|
||||
.env
|
||||
.env.play
|
||||
.secrets/
|
||||
social-posts.local.json
|
||||
/inbe.log
|
||||
|
||||
|
||||
@@ -81,8 +81,3 @@ design/sun-salutation/*/reference-*.png
|
||||
design/sun-salutation/generated-video-cut/source.mp4
|
||||
design/sun-salutation/girl-parts/head-layers-check.png
|
||||
.wrangler/
|
||||
|
||||
# Video and promo working material stays local (owner 2026-10-23).
|
||||
/design/promo-film/
|
||||
/design/videos/
|
||||
/design/lumi-promo/
|
||||
@@ -13,16 +13,11 @@
|
||||
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
|
||||
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
|
||||
Only the GitHub Actions release workflow creates or pushes release tags.
|
||||
- A new version publishes only with a passing phone check of its exact app
|
||||
content (`app_tree` over `APP_PATHS` in `scripts/phone-check.py`). Release
|
||||
with `RELEASE_READY_REVISION=COMMIT make release-ready`, then
|
||||
`make release REVISION=COMMIT APK=PATH BUILD_RECEIPT=PATH` with the development
|
||||
Moto connected. The APK and its provenance come from the same fixed-source
|
||||
overlay. Master, locks and peer edits keep changing freely. The release
|
||||
commit retains the tested source; if master advanced, a merge preserves
|
||||
all newer source and history. The workflow can release that exact commit
|
||||
through its `revision` input. Never freeze the checkout for testing.
|
||||
See [docs/cells.md](docs/cells.md#verification).
|
||||
- A new version publishes only with a passing phone check of its exact
|
||||
sources: build the APK from the committed release, run
|
||||
`make phone-check APK=...` with the development Moto connected through the
|
||||
ThinkPad, and commit `releases/phone-checks/VERSION.json`. Changes to app
|
||||
sources after the check require a new one.
|
||||
- Packages declare the oldest host interface they run on (`host_api` per app
|
||||
in `apps/versions.json`); the host runs `oldest_host_api` to `host_api`.
|
||||
Raise `host_api` when the host interface changes and `oldest_host_api` only
|
||||
@@ -55,7 +50,7 @@
|
||||
explicit product intent and separate review from implementation changes.
|
||||
- Run `make proof-test sync-recovery-test version-test` for these contracts.
|
||||
Coverage, trust boundaries, and the next proof migrations are described in
|
||||
[docs/build-laws.md](docs/build-laws.md).
|
||||
[docs/build-laws-plan.md](docs/build-laws-plan.md).
|
||||
|
||||
## Public UI and sync boundaries
|
||||
|
||||
|
||||
-206
@@ -1,210 +1,4 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.43] - 2026-10-23
|
||||
|
||||
- Lists: tap an item to finish it, swipe right to edit it and swipe left to delete it.
|
||||
- The desktop practice window has its own sound, Breath and double-tap controls.
|
||||
- Sun Salutation follows the classic chart poses, and its guide shows the whole sequence.
|
||||
- Jumping jacks in the 7-Minute Workout follow a calmer pace.
|
||||
- Switching to and from Apps is quicker.
|
||||
|
||||
## [2.1.42] - 2026-10-22
|
||||
|
||||
- Keep practice animation smooth in the browser.
|
||||
- Keep navigation responsive while apps open or update, including during a running practice.
|
||||
- Restore clean F-Droid builds.
|
||||
- Show distinct Photos, Radio and Library icons in Apps, including before installation.
|
||||
- Open your shared Entity profile beside Settings, with your existing account and Dew balance.
|
||||
- Follow a gentler Sun Salutation pace, with seconds per breath, a duration estimate and clearer audio settings.
|
||||
- Keep knees and elbows aligned through Sun Salutation's Low Lunge and Knees, Chest and Chin transitions.
|
||||
- Keep Sun Salutation repetitions and tempo, and Tai Chi lesson details, in linked habit sessions and across account sync.
|
||||
- About lists only installed apps; published apps appear in More apps without a beta setting.
|
||||
- Start installed practices reliably from Lumi while their content opens.
|
||||
- See Dew and activity directly in Profile, with data management inside the Dew card.
|
||||
- Achievement alerts name the award at the top right and can be turned off.
|
||||
|
||||
## [2.1.41] - 2026-10-22
|
||||
|
||||
- Reduce practice-animation stutter on slower browsers.
|
||||
|
||||
## [2.1.40] - 2026-10-22
|
||||
|
||||
- Keep practice animations smooth in browsers on slower devices.
|
||||
|
||||
## [2.1.39] - 2026-10-22
|
||||
|
||||
- Fix account sync, Shop borrowing and history, Android key backups and Profile navigation.
|
||||
- Share photo storage between Diary and Photos and compress new uploads.
|
||||
- Keep practice guides visible, browser animations smooth and web saves recoverable.
|
||||
|
||||
## [2.1.38] - 2026-10-21
|
||||
|
||||
- Track habits you want to avoid with a daily target of 0.
|
||||
- Set custom coins per occurrence, including negative penalties and 0.
|
||||
- Simplify Apps editing, settings, navigation and app loading; make Photos available to everyone.
|
||||
- Diary and Photos share saved images and automatically compress new photo uploads.
|
||||
- Fix Profile headers, scrolling, dialogs, font freezes and Android key backups.
|
||||
- Fix large-account sync, false sync failures, sharing controls and activity and achievement views.
|
||||
|
||||
## [2.1.37] - 2026-10-20
|
||||
|
||||
- Leaderboard ranks each installed practice and each Arcade game you play, such as Shovey's levels solved.
|
||||
- Swipe left or right to move between Practice's tabs.
|
||||
- Astral Projection has its own cover, plus How to and Customize like the other meditations.
|
||||
- Apps can keep their own colours inside Inner Breeze, so games look like themselves.
|
||||
- Astral Projection has a gently floating animated figure and a shorter introduction.
|
||||
- Existing profiles receive the Exercise preset linked to Workout, while deleted presets stay deleted.
|
||||
- Narration can finish downloading during a practice and begin speaking the current guidance.
|
||||
- Download errors use a short message without repeating that progress is saved.
|
||||
- Profile brings activity, data, friends and achievements into consistent rows, with node settings under Account.
|
||||
- Every achievement has its app's badge; filter the collection by apps installed on this device.
|
||||
- Lists names who each list is shared with, and sharing is one icon.
|
||||
- Diary can reopen immediately after closing while a download helper is still running.
|
||||
|
||||
## [2.1.36] - 2026-10-19
|
||||
|
||||
- Inner Breeze starts several times faster: installed apps such as Arcade open when you go to them.
|
||||
- Opening Arcade takes a moment instead of several seconds on slower phones.
|
||||
- An app you tap while it is still downloading opens as soon as it is ready.
|
||||
- An app not yet on this device shows a download symbol, and its card shows the download's progress.
|
||||
- Lists, Habits, Apps, Lumi, Arcade and Pushy draw faster and scroll more smoothly.
|
||||
- Scrolling Habits no longer moves or opens a habit; hold a habit a little longer to move it.
|
||||
- Drag the border beside habit names to widen or narrow the names column.
|
||||
- Astral Projection: a 40-minute guided visualization with offline text and English narration.
|
||||
- Sun Salutation follows the classic sequence: lunges with a knee down, knees, chest and chin, and cobra, switching legs each round.
|
||||
- New 7-Minute Workout: twelve 30-second exercises shown by an animated guide, with rests, a countdown and tips.
|
||||
- Practice has tabs for Meditation, Yoga, Martial arts and Workout; install or unlock any practice from its card.
|
||||
- Breathing, meditation, Astral Projection and the workout come with the app, ready without a download.
|
||||
- Leaderboard lists every practice you have installed, including Tai Chi and
|
||||
Astral Projection, in your Practice order, and leaves out the others.
|
||||
- Lumi shares a few changelog highlights in chat after an update, once per version.
|
||||
- Manage your name, picture and sync nodes in the redesigned Self profile.
|
||||
- Install Radio to listen to three live ambient stations while using other
|
||||
apps and practices, with separate volume controls.
|
||||
- Open installed apps directly from Android, Windows and Linux launcher
|
||||
shortcuts, using each app's existing account and data.
|
||||
- Manage apps through a compact three-dot menu with Pin, Unpin and Install
|
||||
to launcher. Clear Apps search with the × shown while it contains text.
|
||||
- Rename any app and choose its icon in Properties, in the app's three-dot
|
||||
menu. An update not yet installed or seen shows as a dot on that menu,
|
||||
with Update at the top.
|
||||
- Choose guide and practice voices during setup, with download sizes for the
|
||||
selected language. Both start selected; you can turn them off or skip audio.
|
||||
- Go back from optional audio to correct the language, including during a
|
||||
download. Your choices survive restarting the app.
|
||||
- Use larger setup controls and continue directly when both voices are off.
|
||||
- Android accessibility services can read controls and activate, focus and
|
||||
scroll them. Password values stay hidden.
|
||||
- Habits' save, discard and delete confirmations can improve through Habits
|
||||
updates while keeping existing data and older installed packages working.
|
||||
- Apps from the node show their own icon on Apps and in the navigation as
|
||||
soon as they are installed, not a plain grid until they first run.
|
||||
- A day a habit is not scheduled on no longer takes a tap, so its empty
|
||||
space cannot add a check mark. An off day with something recorded on it
|
||||
still opens.
|
||||
- Developer replies to your feedback appear in Lumi as replies from the
|
||||
developer, quoting the feedback they answer, like a reply in a chat app.
|
||||
Replies you received earlier change to this look too, and each reply shows
|
||||
once even when several of your devices fetched it.
|
||||
- Settings › About lists the version of the Inbe harness, the package that
|
||||
carries the apps and updates them without a new app release, then each app
|
||||
you installed, including apps from the node.
|
||||
- Open a web link in a Lumi message by tapping it in the message's words,
|
||||
where it shows in the theme's link color. Right-click a message to copy it.
|
||||
- Apps from the node open only once they are on your device. An installed
|
||||
one starts when you open it; one still downloading stays closed instead of
|
||||
showing "Installing this app".
|
||||
- Chess moves into Arcade, a set of games that also has Pushy, so the
|
||||
standalone Chess app no longer shows in your apps or More apps. Install
|
||||
Arcade from More apps to keep playing your saved and friend Chess games.
|
||||
- Habits earn coins, more for hard ones, to spend on your own rewards in the shop.
|
||||
- The habit shop scrolls smoothly, even with its grid of symbols open.
|
||||
- Rewards can show 28 more symbols, such as weed, cigarettes, beer, wine, fast food, sweets, TV and games.
|
||||
|
||||
## [2.1.35] - 2026-10-17
|
||||
|
||||
### Added
|
||||
- Chess in More apps: play the computer or a friend.
|
||||
- More apps shows new node apps without updating.
|
||||
- Settings › About › Show beta apps lists apps in testing.
|
||||
- Photos (beta): your photos by day, encrypted, on all devices.
|
||||
- Diary is Markdown with inline photos, kept in Photos; each day has a gallery.
|
||||
|
||||
### Changed
|
||||
- Photos go to every node with photo upload on.
|
||||
- Answer a developer's reply through Lumi.
|
||||
|
||||
### Fixed
|
||||
- Sideways camera photos are upright in Diary on desktop.
|
||||
|
||||
## [2.1.34] - 2026-10-15
|
||||
|
||||
|
||||
### Added
|
||||
- Dew in Profile: top up with Monero in its own window, and pick Free, 1 GB or 5 GB storage priced in Dew. Every Dew amount, from your balance and plan prices to the Tai Chi price, also shows its value in XMR and US dollars, and top-ups show the dollar value of Monero. Monero is offered only outside Google Play.
|
||||
- Share a list after a friend accepts its invitation.
|
||||
- 24-form Tai Chi with progress, characters, music and spoken guidance, unlocked once with Dew and recognised on every device of your account, with its discount and download size shown before unlocking (not on Google Play).
|
||||
### Changed
|
||||
|
||||
- Reliable Dew balances, with minimum top-ups and confirmations.
|
||||
- Manage practice downloads in one window on the Practice screen.
|
||||
- Tai Chi narration in a female or male voice, chosen in Tai Chi's Customize; the monk speaks with the male voice.
|
||||
- Choose each practice's narration language in its Customize, from a list where an icon downloads or removes each language. Narration in the app's language downloads by itself, and Lumi's guide voice now downloads in the app's language instead of coming inside the app.
|
||||
- Compact Lists tabs and larger task controls.
|
||||
- Lists tabs look like tabs: the open list is underlined, with no box around the row.
|
||||
- Lists' Share and Invitations open in a compact dialog over the list.
|
||||
- Top up Dew centers the Monero address under its QR code.
|
||||
- Profile shows how much of your storage is used, with a bar, next to your plan and in Storage plans.
|
||||
- Free storage is 20 MB. Profile shows the free storage your sync node gives instead of a fixed size.
|
||||
- Diary photos sync as one encrypted copy each, about the photo's own size on your sync node instead of about four and a half times, and are no longer stored twice on your device. Photos added before upload the same way and free their old space on the node.
|
||||
- Every practice is optional: Practice shows only installed ones. Wim Hof comes installed and can be removed; Meditation and Breathing Patterns come with the app and are added without a download.
|
||||
- Manage practices lists every practice with its size and one button: Install, Buy for a paid practice, Cancel while it downloads, or Uninstall once it is on Practice. Uninstalling a downloaded practice asks once, then frees the space; one that comes with the app just leaves Practice. Drag a practice by its handle onto another to change the order Practice shows them in. Your progress stays either way.
|
||||
- Lumi asks to download or unlock a practice before starting one that isn't on your device.
|
||||
- A new install comes with Lumi, Habits and Practice, in that order; add Lists, Diary and Leaderboard from More apps. The apps you install or remove and the order of your pinned apps follow your account to your other devices, and a newly signed-in device takes your account's apps instead of replacing them.
|
||||
### Removed
|
||||
- Donations: the reminder, About's Donate button and Lumi's donation links. Dew is how you pay in Inner Breeze.
|
||||
### Fixed
|
||||
- Sync no longer gets stuck on Review sync changes: Android merges large changes again, and a closed review stays closed until your account has newer data.
|
||||
- Android: closing the floating practice window with its X ends the practice.
|
||||
- Practice downloads show their real size, and each practice's pictures come only with its download.
|
||||
- Diary adds every photo you pick, online or offline, even when your sync node is full. A full node only keeps new photos from syncing there.
|
||||
- Practice no longer gets stuck showing another device's practice after that device closed during it: a session that stops updating for a minute is gone, and a device that closed mid-practice ends its session when it opens again. Another device's practice always has Close, and one that stopped updating has End this session.
|
||||
- Habits no longer jump when you open a habit or Inactive habits: when the table will need to scroll, its scrollbar shows from the start, with the days that fit beside it.
|
||||
|
||||
## [2.1.33] - 2026-10-13
|
||||
### Added
|
||||
- Lumi guides you through each screen.
|
||||
- Lumi understands habit requests offline.
|
||||
- Lumi asks before going online.
|
||||
- Your own AI provider for Lumi.
|
||||
- Tap Lumi and she swirls.
|
||||
### Changed
|
||||
- Sun Salutation follows your breath.
|
||||
- Span habits: one Good when, length first in statistics.
|
||||
### Fixed
|
||||
- Synced habit settings and days never revert to older copies.
|
||||
- Android: opens about two seconds faster.
|
||||
- Desktop tray shows the current logo.
|
||||
- Progress bars fill visibly in every theme.
|
||||
|
||||
## [2.1.32] - 2026-10-13
|
||||
### Added
|
||||
- Drag habits to reorder or deactivate them.
|
||||
- Habits get icons, schedules, times and daily questions.
|
||||
- Questions can compare with your average.
|
||||
- Apps asks before downloading app updates.
|
||||
### Changed
|
||||
- Habits is a table of the last seven days.
|
||||
### Fixed
|
||||
- Android: the floating practice window opens from Recents and shows results.
|
||||
- The donation reminder shows on one device only.
|
||||
- Held keys repeat in text fields.
|
||||
- The breathing count is readable; older habit entries edit again.
|
||||
|
||||
## [2.1.31] - 2026-10-11
|
||||
### Fixed
|
||||
- Android: after the floating practice window, the app fits the screen again instead of running under the status bar and navigation and losing its sides.
|
||||
|
||||
## [2.1.30] - 2026-10-11
|
||||
### Fixed
|
||||
- Long menus, such as the colour theme, scroll by touch and open at your choice.
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# Contributing to Inner Breeze
|
||||
|
||||
Report a bug through Lumi's feedback card in the app or
|
||||
[GitHub Issues](https://github.com/waozixyz/inbe/issues). Include the app version,
|
||||
platform, steps to reproduce, what you expected, and what happened. Keep account
|
||||
keys, private conversations and personal practice data out of public reports.
|
||||
For a security issue, use [Security](SECURITY.md).
|
||||
|
||||
## Development
|
||||
|
||||
Build with `make native cells`. Dependencies and the Ziran toolchain are pinned
|
||||
in `ziran.lock`; see [build guide](docs/building.md) for other platforms. Read
|
||||
[AGENTS.md](AGENTS.md) for repository conventions and
|
||||
[app packages](docs/cells.md) for module ownership.
|
||||
|
||||
Keep a change focused. Put app UI in its owning package, reusable Kryon changes
|
||||
in Kryon, and compiler changes in Ziran. Preserve existing data and upgrade
|
||||
paths. Translate changed app strings in every supported locale.
|
||||
|
||||
Run the tests that exercise the changed behavior and `git diff --check`.
|
||||
For UI changes, run `make clean-text-api-check button-api-check` and the relevant
|
||||
private-display UI tests. `make test` and `make visual-test` are the CI gates.
|
||||
Android adapter tests need Java 21 and Android SDK platform 36; set
|
||||
`ANDROID_SDK_ROOT` to your SDK directory.
|
||||
Visual tests create disposable profiles and private displays; they must never
|
||||
use your desktop or personal profile. See [verification](docs/cells.md#verification)
|
||||
for the additional exact-source phone and release checks.
|
||||
|
||||
In a pull request, explain the user-visible change and list the checks you ran,
|
||||
including any platform you could not verify. A build or a commit does not
|
||||
publish a release.
|
||||
@@ -13,66 +13,202 @@
|
||||
|
||||
# Inner Breeze
|
||||
|
||||
Free, open-source apps for breathing, meditation, habits and everyday life.
|
||||
Use them offline, keep your data on your device, and optionally connect an
|
||||
account to sync across devices.
|
||||
Inner Breeze is a free, open-source practice app for breathing, meditation, and
|
||||
habit tracking. It works offline, stores data locally in SQLite, and can
|
||||
optionally sync user-owned data through a Daochi-compatible sync server.
|
||||
|
||||
[Download the latest release](https://github.com/waozixyz/inbe/releases/latest)
|
||||
· [What's new](CHANGELOG.md)
|
||||
[Account activity](docs/ACCOUNT_ACTIVITY.md) explains persistent Telegram linking,
|
||||
reopening an authorized installation, and seeing and controlling the running
|
||||
practice from another device connected to the same account.
|
||||
|
||||
## Make space for yourself
|
||||
## Features
|
||||
|
||||
- **Practice:** guided breathing, meditation, Astral Projection, Sun Salutation,
|
||||
a 7-Minute Workout, with animated guides and optional narration.
|
||||
- **Habits:** track daily goals, practices and habits you want to avoid; follow
|
||||
your history and choose your own rewards.
|
||||
- **Diary and Photos:** write, reflect and keep pictures together, with shared
|
||||
photo storage and automatic compression of new uploads.
|
||||
- **Lists:** organize tasks and share lists with friends, choosing who can
|
||||
read, edit or manage them.
|
||||
- **Lumi:** a firefly companion for starting practices, managing habits and
|
||||
changing your app. Offline commands work without an AI connection.
|
||||
- **Your apps:** arrange Apps as a list or grid, choose colours and icons,
|
||||
listen to ambient Radio, and explore Arcade games and achievements.
|
||||
- Lumi, a local firefly companion with private chat, habit completion, practice starts, and optional todo tools
|
||||
- Guided practice sessions with visual and audio cues
|
||||
- Mind, Yoga, and Fitness organization for different practice routines
|
||||
- Customizable breathing sessions, meditation timers, and habit counters
|
||||
- Habit tracking with session history and linked practice counts
|
||||
- Local import and export support
|
||||
- Theme customization with light and dark variants
|
||||
- Repeat the last completed practice using its current settings
|
||||
|
||||
## A look inside
|
||||
## Build
|
||||
|
||||
<p align="center">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/01-apps.png" alt="Apps you can arrange and personalize" width="30%">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/03-practice-home.png" alt="Guided breathing and movement practices" width="30%">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/04-sun-salutation.png" alt="Animated Sun Salutation practice" width="30%">
|
||||
</p>
|
||||
<p align="center"><em>Apps · Practices · Sun Salutation</em></p>
|
||||
The build checks Inbe's laws with the Ziran compiler (`ziran check`); no
|
||||
separate proof tool is needed. The build host needs Python 3 and the platform's
|
||||
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
|
||||
checked behavior.
|
||||
|
||||
<p align="center">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/05-habits.png" alt="Habit goals and daily history" width="30%">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/07-diary.png" alt="Diary for everyday reflection" width="30%">
|
||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/02-lumi-customize.png" alt="Lumi helping customize Inner Breeze" width="30%">
|
||||
</p>
|
||||
<p align="center"><em>Habits · Diary · Lumi</em></p>
|
||||
Build commands fetch the dependencies pinned in `ziran.lock`.
|
||||
|
||||
Tai Chi is an optional Dew unlock outside Google Play.
|
||||
Build and run the desktop app:
|
||||
|
||||
## Your data and choices
|
||||
|
||||
Your data is stored locally. Account sync is optional. Lumi starts offline;
|
||||
connecting an AI provider asks for your agreement to the data sharing shown
|
||||
in the app. Use Inner Breeze's service or configure your own provider.
|
||||
|
||||
[Privacy policy](https://inbe.waozi.xyz/privacy.html)
|
||||
· [Account recovery and sync](docs/SYNC_RECOVERY.md)
|
||||
· [Appearance](docs/appearance.md)
|
||||
|
||||
## Build and contribute
|
||||
|
||||
```sh
|
||||
```bash
|
||||
make native
|
||||
make run
|
||||
```
|
||||
|
||||
See the [build guide](docs/building.md) for Android, web, dependencies and tests,
|
||||
the [F-Droid checks](docs/fdroid.md), and
|
||||
[Contributing](CONTRIBUTING.md) to report bugs or make changes.
|
||||
[Report security issues privately](SECURITY.md).
|
||||
Run the terminal backend:
|
||||
|
||||
```bash
|
||||
make tui
|
||||
```
|
||||
|
||||
Build Android artifacts:
|
||||
|
||||
```bash
|
||||
make android-debug
|
||||
PASSWORD=your-keystore-password make android-release
|
||||
PASSWORD=your-keystore-password make android-bundle
|
||||
```
|
||||
|
||||
Build the web app:
|
||||
|
||||
```bash
|
||||
make web
|
||||
make site
|
||||
```
|
||||
|
||||
Run the test suite:
|
||||
|
||||
[Custom appearance](docs/appearance.md) describes live KSS editing, per-app
|
||||
customizations, reset, and Lumi's appearance tools.
|
||||
|
||||
```bash
|
||||
make test
|
||||
make visual-test
|
||||
```
|
||||
|
||||
CI and releases require the visual gate. It uses disposable profiles and
|
||||
private Xvfb displays to check glyph pixels, every zoom from 50% to 250%,
|
||||
selected navigation and app cards in all 13 palettes and both color modes,
|
||||
enlarged Appearance labels, shipped locales, and page interactions. It keeps
|
||||
screenshots and logs under `build/`; CI uploads them even when a check fails.
|
||||
Every visual suite runs even if an earlier suite fails. The complete result,
|
||||
including hashes of the tested binary and bundles, is in
|
||||
`build/visual-test/results.json`; changing an artifact during the gate fails it.
|
||||
Its system tools are listed in `.github/apt/test-packages.txt`.
|
||||
|
||||
Store captures cover Apps, Lumi, Practices, Habits, Lists, Diary, Appearance,
|
||||
and supporting pages in phone, 7-inch tablet, 10-inch tablet, and Chromebook
|
||||
layouts. Capture runs use disposable profiles on private Xvfb displays and
|
||||
check viewport sizes, nonblank rendering, and expected screen text. They do
|
||||
not copy images into the store listing until visual review is recorded:
|
||||
|
||||
```bash
|
||||
make native cells PACKAGE_FLAGS=--locked
|
||||
make screenshot
|
||||
# Inspect build/screenshots/review-*.jpg and the full-size PNGs.
|
||||
make screenshot-review REVIEWER="your name"
|
||||
make screenshot-export
|
||||
make play-preflight
|
||||
python3 scripts/upload-play-screenshots.py
|
||||
```
|
||||
|
||||
The scene list in `scripts/screenshot-scenes.json` selects eight store images
|
||||
per phone/tablet type while retaining all 64 captures for review. Changing
|
||||
source, scene definitions, Kryon, binaries, bundles, or screenshot bytes
|
||||
invalidates publishing preflight. A historical capture can still be visually
|
||||
reviewed and used for a review video; Play requires a fresh capture of the
|
||||
current locked build. Local Kryon preview builds cannot pass Play preflight.
|
||||
Preflight checks every dependency against its locked commit and runs a fresh
|
||||
source check, so reused incremental preview outputs cannot hide missing imports.
|
||||
Keep credentials in the ignored `.env.play` using `.env.play.example`.
|
||||
The uploader defaults to validating and discarding its remote edit. After
|
||||
review, `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py` validates
|
||||
and commits the listing; a failed edit is discarded. This updates listing
|
||||
assets only. App releases follow the numeric changelog, `update_version.sh`,
|
||||
and the existing release workflow, which builds and publishes the signed
|
||||
Google Play AAB and owns release tags. A local build or commit is not a Play
|
||||
deployment.
|
||||
|
||||
`make lumi-promo` renders a narrated portrait review MP4 from the exact
|
||||
reviewed phone captures and the generated artwork in `design/lumi-promo/`.
|
||||
Lumi uses eight generated wing-flapping frames, flies to each screen and settles
|
||||
facing the app while a narrator explains it. Lumi turns with the flight direction
|
||||
and flips inward after arriving on the right. Wings flap continuously using
|
||||
distinct poses; each app screen stays in a fixed position without sliding in.
|
||||
The audio contains speech only, without music or sound effects. Scene timings
|
||||
expand to fit the complete spoken lines.
|
||||
`make lumi-narration` generates the stored narrator clips through OpenRouter
|
||||
using a locally configured `OPENROUTER_API_KEY`; unchanged clips are reused.
|
||||
The voice, script and provider options are in `design/lumi-promo/narration.json`.
|
||||
The chat example runs real local theme actions; the surrounding forest and
|
||||
glow are marketing effects. Inspect `build/lumi-promo/storyboard.jpg` and
|
||||
`build/lumi-promo/inner-breeze-lumi-review.mp4` before using it publicly.
|
||||
Google Play's preview video field takes a YouTube URL, so the MP4 needs an
|
||||
approved public or unlisted YouTube upload with embedding enabled before it can
|
||||
be added to the listing. Pass `--video-url https://www.youtube.com/watch?v=VIDEO_ID`
|
||||
to the listing uploader, or configure `PLAY_VIDEO_URL`. To update only the
|
||||
video, use `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py --video-only --video-url URL`.
|
||||
The approved [Lumi preview](https://www.youtube.com/watch?v=XESpbMRaz4o) is
|
||||
available on YouTube and configured in the English Google Play listing.
|
||||
Screenshot publishing still requires the complete current
|
||||
capture, visual review, export and locked build preflight.
|
||||
|
||||
To test sync and recovery against an isolated local server:
|
||||
|
||||
```bash
|
||||
make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi
|
||||
```
|
||||
|
||||
This uses disposable client databases and a loopback server; see
|
||||
[web and sync test coverage](WEB_RENDERER_TESTS.md) for details.
|
||||
|
||||
The Apps picker, independent ZIB packages, update settings, account choices and
|
||||
publisher setup are described in [app packages](docs/cells.md).
|
||||
|
||||
Native binaries are written to `build/bin/<platform>/`. Release artifacts are
|
||||
written under `build/dist/`.
|
||||
|
||||
Dependencies, including Kryon and the Ziran toolchain, are pinned in
|
||||
`ziran.lock`. `make` fetches them into the Ziran package cache and links them
|
||||
under `build/packages/`; `sh scripts/packages.sh` does the same by hand.
|
||||
Builders that supply the sources themselves need no network: put Git checkouts
|
||||
containing the locked commits (including Kryon's `raylib` submodule) in
|
||||
`$ZIRAN_PACKAGE_SOURCES`, or declare them as F-Droid srclibs, which are found
|
||||
in `../srclib` automatically.
|
||||
|
||||
To debug Inbe against the root Kryon checkout, map it in an ignored
|
||||
`ziran.local.toml`:
|
||||
|
||||
```toml
|
||||
[overrides]
|
||||
kryon = "../../kryonlabs/kryon"
|
||||
```
|
||||
|
||||
Use this only for local debugging. Permanent Kryon fixes should be committed in
|
||||
the root Kryon repository and then brought into Inbe with `ziran update kryon`.
|
||||
|
||||
## Project Layout
|
||||
|
||||
- `src/` - app code
|
||||
- `assets/` - images, fonts, and sounds
|
||||
- `locales/` - translations
|
||||
- `droid/` - Android project
|
||||
- `site/` - website
|
||||
- `ziran.toml`, `ziran.lock` - pinned Ziran toolchain and dependencies
|
||||
|
||||
## Support
|
||||
|
||||
Monero:
|
||||
|
||||
```text
|
||||
48ms5LfFrPJ2LUvqP9Mm5BhDSnZnqu14jB8XpAukw3jDBKxRAxYvq3k4fEwXY7kCY3LrtycMUayJZR1YJuyvJHCDCcyw6pA
|
||||
```
|
||||
|
||||
Bitcoin:
|
||||
|
||||
```text
|
||||
bc1qxzcetg50f6epgddc09n82xqn3zswlmk44235y5
|
||||
```
|
||||
|
||||
Lightning:
|
||||
|
||||
```text
|
||||
[email protected]
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
BSD 3-Clause. See [LICENSE](LICENSE).
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
# Reporting a security issue
|
||||
|
||||
Email [[email protected]](mailto:[email protected]) privately with the affected
|
||||
Inner Breeze version, platform, reproduction steps and expected impact.
|
||||
Use a disposable account or sample data when possible. Do not include private
|
||||
keys, API keys or other people's data.
|
||||
|
||||
Use [GitHub Issues](https://github.com/waozixyz/inbe/issues) for ordinary bugs.
|
||||
Please keep unpatched security details out of public reports while the issue
|
||||
is investigated.
|
||||
@@ -1,17 +1,78 @@
|
||||
# Inner Breeze TODO
|
||||
|
||||
Remaining work checked against the current source on 22 October 2026. Remove
|
||||
an item when it is implemented and verified. Release status belongs in the
|
||||
release workflow and changelog.
|
||||
Marketing plan from 2026-10-02. Tick items off as they land and add a date or
|
||||
link where it helps. Inner Breeze's edge: free, no ads, no account, offline,
|
||||
open source, against breathing apps that charge $60–100 a year. It is also
|
||||
visual (painted practice art, the Sun Salutation characters), so put effort
|
||||
where those two things matter.
|
||||
|
||||
## App packages
|
||||
## Store listing
|
||||
|
||||
- Move the remaining host-drawn Habits screens into `apps/habits/`, followed
|
||||
by Practices, so those screens can update without a new APK. The hosted
|
||||
editor, table, statistics and typed data calls are still needed.
|
||||
- [x] Rewrite the Play/F-Droid short and full descriptions around what people
|
||||
search for (Wim Hof breathing, box and 4-7-8 breathing, Sun Salutation,
|
||||
meditation timer, habit tracker, no ads, no account) in en-US, de-DE,
|
||||
es-ES, fr-FR and pt-BR. (2026-10-02)
|
||||
- [x] Regenerate the store screenshots from the current app at real phone and
|
||||
tablet scale: painted practice cards, a Sun Salutation pose and showcase
|
||||
habits (`make screenshot`). (2026-10-02)
|
||||
- [ ] Publish the new text and screenshots on Google Play. F-Droid reads them
|
||||
from this repo at the next release. `scripts/upload-play-screenshots.py`
|
||||
uploads images only; the text goes in through Play Console.
|
||||
- [ ] Make a new 1024x500 feature graphic in the painted style. The current
|
||||
one is the old pixel art.
|
||||
- [ ] Add a one-line caption to each store screenshot ("Wim Hof-style
|
||||
rounds", "Follow the Sun Salutation").
|
||||
- [ ] Keep "Wim Hof" out of the app title and icon. Wim Hof Method is a
|
||||
registered trademark; a description that says "based on the Wim Hof
|
||||
Method" is fine.
|
||||
- [ ] Fix the Portuguese app string "Saudacao ao sol" to "Saudação ao sol".
|
||||
- [ ] Give each channel its own tagged Play link, for example
|
||||
`https://play.google.com/store/apps/details?id=xyz.waozi.inbe&referrer=utm_source%3Dreddit`,
|
||||
and check Play Console's acquisition report every month.
|
||||
|
||||
## Media sources
|
||||
## Short vertical video (best reach for new users)
|
||||
|
||||
- Practice packs download separately on devices, but their source media is
|
||||
still tracked here. Moving it out requires an owner-approved home for the
|
||||
pack sources first.
|
||||
- [ ] Record 30–60 second "breathe with me" sessions: a Wim Hof round, box
|
||||
breathing, a Sun Salutation sequence.
|
||||
- [ ] Post them on YouTube Shorts, TikTok and Instagram Reels. Reels can be
|
||||
posted by hand from the phone; the Meta API hold only blocks automation.
|
||||
- [ ] Finish Social's YouTube path: approval in Telegram and a background
|
||||
upload worker (yuebot `plugins/social`).
|
||||
- [ ] Optional: Pinterest pins for Sun Salutation and breathing technique
|
||||
guides, which keep bringing traffic for a long time.
|
||||
|
||||
## Reddit
|
||||
|
||||
Read each subreddit's self-promotion rules first. Post as the developer, show
|
||||
the app, and stay to answer comments.
|
||||
|
||||
- [ ] For users: r/WimHofMethod, r/breathwork, r/Meditation, r/yoga
|
||||
- [ ] For the free/open-source angle: r/androidapps, r/fossdroid,
|
||||
r/opensource, r/degoogle, r/linux
|
||||
|
||||
## Website (inbe.waozi.xyz)
|
||||
|
||||
- [ ] One page per technique with the `?mini` embed, so visitors practise on
|
||||
the page: box breathing timer, 4-7-8 breathing, Wim Hof-style breathing,
|
||||
Sun Salutation steps, meditation timer.
|
||||
- [ ] Put the Play and F-Droid links under each embed.
|
||||
|
||||
## Directories and launches (one-time)
|
||||
|
||||
- [ ] AlternativeTo: list Inner Breeze as an alternative to Calm, Headspace,
|
||||
Breathwrk and Prana Breath.
|
||||
- [ ] Flathub: check whether `packaging/flatpak/xyz.waozi.inbe.yml` is
|
||||
published, and submit it if not.
|
||||
- [ ] Open-source app lists (awesome lists, F-Droid collections).
|
||||
- [ ] Product Hunt launch.
|
||||
- [ ] One Show HN about how it is built: the whole app in Ziran and Kryon,
|
||||
running on Android, web, Linux and Windows. This brings developers and
|
||||
GitHub stars, not meditators, so do it once.
|
||||
|
||||
## Channels to keep small
|
||||
|
||||
- Facebook and Threads Pages: the Meta API is on hold (no business
|
||||
verification). Social is moving Facebook to the ThinkPad's signed-in
|
||||
Chromium instead.
|
||||
- X: the audience is mostly developers; keep it for Ziran and Kryon.
|
||||
- Telegram @lotusinbe: keeps current users engaged but does not find new ones.
|
||||
File renamed without changes.
@@ -1,60 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## [1.3.7] - 2026-10-23
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.43.
|
||||
|
||||
## [1.3.6] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.42.
|
||||
|
||||
## [1.3.5] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.41.
|
||||
|
||||
## [1.3.4] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.40.
|
||||
|
||||
## [1.3.3] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.39.
|
||||
|
||||
## [1.3.2] - 2026-10-21
|
||||
|
||||
- Give each achievement its own meaningful icon.
|
||||
- Maintenance release for Inner Breeze 2.1.38.
|
||||
|
||||
## [1.3.1] - 2026-10-20
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.37.
|
||||
|
||||
## [1.3.0] - 2026-10-18
|
||||
|
||||
- Run the same Diary package in Inner Breeze, Werkzeug, or its own desktop window.
|
||||
- Keep entry editing, undo and redo with Diary, while the host provides private documents and available photo and spelling services.
|
||||
- The previous and next day arrows sit right beside the date.
|
||||
|
||||
## [1.2.0] - 2026-10-17
|
||||
|
||||
### Changed
|
||||
- An entry is Markdown. Headings, **bold**, *italic*, links, lists and quotes show styled, and their marks appear on the line you are editing.
|
||||
- Photos sit inside the entry, where you add them, with text before or after them on their line. Each one is saved to your photo library, the one Photos shows, under the day it was taken, and the entry links to it there. Delete a photo's Markdown to take it out of the entry.
|
||||
- Show gallery under each day's entry opens that day's photos, which scroll sideways. Tap one to put it in the entry at the cursor.
|
||||
- Photos from older entries appear inside the entry, after its text.
|
||||
|
||||
## [1.1.12] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.35.
|
||||
|
||||
## [1.1.11] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.34.
|
||||
|
||||
## [1.1.10] - 2026-10-13
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.33.
|
||||
|
||||
## [1.1.9] - 2026-10-11
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Deník · 1 dnů",
|
||||
"achievement_diary_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_3_title": "Deník · 3 dnů",
|
||||
"achievement_diary_days_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_7_title": "Deník · 7 dnů",
|
||||
"achievement_diary_days_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_14_title": "Deník · 14 dnů",
|
||||
"achievement_diary_days_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_30_title": "Deník · 30 dnů",
|
||||
"achievement_diary_days_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_60_title": "Deník · 60 dnů",
|
||||
"achievement_diary_days_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_100_title": "Deník · 100 dnů",
|
||||
"achievement_diary_days_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_180_title": "Deník · 180 dnů",
|
||||
"achievement_diary_days_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_days_365_title": "Deník · 365 dnů",
|
||||
"achievement_diary_days_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_weeks_2_title": "Deník · 2 týdnů",
|
||||
"achievement_diary_weeks_2_description": "Vykonejte tuto aktivitu v 2 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_weeks_4_title": "Deník · 4 týdnů",
|
||||
"achievement_diary_weeks_4_description": "Vykonejte tuto aktivitu v 4 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_weeks_12_title": "Deník · 12 týdnů",
|
||||
"achievement_diary_weeks_12_description": "Vykonejte tuto aktivitu v 12 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_weeks_26_title": "Deník · 26 týdnů",
|
||||
"achievement_diary_weeks_26_description": "Vykonejte tuto aktivitu v 26 různých týdnech od pondělí do neděle: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_months_3_title": "Deník · 3 měsíců",
|
||||
"achievement_diary_months_3_description": "Vykonejte tuto aktivitu v 3 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_months_6_title": "Deník · 6 měsíců",
|
||||
"achievement_diary_months_6_description": "Vykonejte tuto aktivitu v 6 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_months_12_title": "Deník · 12 měsíců",
|
||||
"achievement_diary_months_12_description": "Vykonejte tuto aktivitu v 12 různých kalendářních měsících: neprázdný uložený zápis do deníku.",
|
||||
"achievement_diary_photo_days_1_title": "Deník · 1 dnů",
|
||||
"achievement_diary_photo_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: uložený zápis do deníku s platnou fotografií.",
|
||||
"achievement_diary_photo_days_5_title": "Deník · 5 dnů",
|
||||
"achievement_diary_photo_days_5_description": "Vykonejte tuto aktivitu v 5 různých dnech: uložený zápis do deníku s platnou fotografií.",
|
||||
"achievement_diary_photo_days_20_title": "Deník · 20 dnů",
|
||||
"achievement_diary_photo_days_20_description": "Vykonejte tuto aktivitu v 20 různých dnech: uložený zápis do deníku s platnou fotografií.",
|
||||
"achievement_diary_return_14_title": "Deník · 14 dnů přestávky",
|
||||
"achievement_diary_return_14_description": "Vraťte se po alespoň 14 celých dnech bez této aktivity: neprázdný uložený zápis do deníku."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Tagebuch · 1 Tage",
|
||||
"achievement_diary_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_3_title": "Tagebuch · 3 Tage",
|
||||
"achievement_diary_days_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_7_title": "Tagebuch · 7 Tage",
|
||||
"achievement_diary_days_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_14_title": "Tagebuch · 14 Tage",
|
||||
"achievement_diary_days_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_30_title": "Tagebuch · 30 Tage",
|
||||
"achievement_diary_days_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_60_title": "Tagebuch · 60 Tage",
|
||||
"achievement_diary_days_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_100_title": "Tagebuch · 100 Tage",
|
||||
"achievement_diary_days_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_180_title": "Tagebuch · 180 Tage",
|
||||
"achievement_diary_days_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_days_365_title": "Tagebuch · 365 Tage",
|
||||
"achievement_diary_days_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_weeks_2_title": "Tagebuch · 2 Wochen",
|
||||
"achievement_diary_weeks_2_description": "Führe dies in 2 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_weeks_4_title": "Tagebuch · 4 Wochen",
|
||||
"achievement_diary_weeks_4_description": "Führe dies in 4 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_weeks_12_title": "Tagebuch · 12 Wochen",
|
||||
"achievement_diary_weeks_12_description": "Führe dies in 12 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_weeks_26_title": "Tagebuch · 26 Wochen",
|
||||
"achievement_diary_weeks_26_description": "Führe dies in 26 unterschiedlichen Kalenderwochen von Montag bis Sonntag aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_months_3_title": "Tagebuch · 3 Monate",
|
||||
"achievement_diary_months_3_description": "Führe dies in 3 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_months_6_title": "Tagebuch · 6 Monate",
|
||||
"achievement_diary_months_6_description": "Führe dies in 6 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_months_12_title": "Tagebuch · 12 Monate",
|
||||
"achievement_diary_months_12_description": "Führe dies in 12 unterschiedlichen Kalendermonaten aus: ein gespeicherter Tagebucheintrag mit Inhalt.",
|
||||
"achievement_diary_photo_days_1_title": "Tagebuch · 1 Tage",
|
||||
"achievement_diary_photo_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
|
||||
"achievement_diary_photo_days_5_title": "Tagebuch · 5 Tage",
|
||||
"achievement_diary_photo_days_5_description": "Führe dies an 5 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
|
||||
"achievement_diary_photo_days_20_title": "Tagebuch · 20 Tage",
|
||||
"achievement_diary_photo_days_20_description": "Führe dies an 20 unterschiedlichen Tagen aus: ein gespeicherter Tagebucheintrag mit gültigem Foto.",
|
||||
"achievement_diary_return_14_title": "Tagebuch · 14 Tage Pause",
|
||||
"achievement_diary_return_14_description": "Kehre nach mindestens 14 ganzen Tagen ohne diese Aktivität zurück: ein gespeicherter Tagebucheintrag mit Inhalt."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "First page",
|
||||
"achievement_diary_days_1_description": "Do this on 1 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_3_title": "Three pages",
|
||||
"achievement_diary_days_3_description": "Do this on 3 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_7_title": "Seven pages",
|
||||
"achievement_diary_days_7_description": "Do this on 7 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_14_title": "Fourteen pages",
|
||||
"achievement_diary_days_14_description": "Do this on 14 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_30_title": "Thirty pages",
|
||||
"achievement_diary_days_30_description": "Do this on 30 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_60_title": "Sixty pages",
|
||||
"achievement_diary_days_60_description": "Do this on 60 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_100_title": "One hundred pages",
|
||||
"achievement_diary_days_100_description": "Do this on 100 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_180_title": "An unfolding story",
|
||||
"achievement_diary_days_180_description": "Do this on 180 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_days_365_title": "A year of pages",
|
||||
"achievement_diary_days_365_description": "Do this on 365 distinct dates: a nonempty saved diary entry.",
|
||||
"achievement_diary_weeks_2_title": "Two weeks remembered",
|
||||
"achievement_diary_weeks_2_description": "Do this in 2 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
|
||||
"achievement_diary_weeks_4_title": "Four weeks remembered",
|
||||
"achievement_diary_weeks_4_description": "Do this in 4 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
|
||||
"achievement_diary_weeks_12_title": "Twelve weeks remembered",
|
||||
"achievement_diary_weeks_12_description": "Do this in 12 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
|
||||
"achievement_diary_weeks_26_title": "Twenty-six weeks remembered",
|
||||
"achievement_diary_weeks_26_description": "Do this in 26 distinct Monday–Sunday calendar weeks: a nonempty saved diary entry.",
|
||||
"achievement_diary_months_3_title": "Three months remembered",
|
||||
"achievement_diary_months_3_description": "Do this in 3 distinct calendar months: a nonempty saved diary entry.",
|
||||
"achievement_diary_months_6_title": "Six months remembered",
|
||||
"achievement_diary_months_6_description": "Do this in 6 distinct calendar months: a nonempty saved diary entry.",
|
||||
"achievement_diary_months_12_title": "Twelve months remembered",
|
||||
"achievement_diary_months_12_description": "Do this in 12 distinct calendar months: a nonempty saved diary entry.",
|
||||
"achievement_diary_photo_days_1_title": "A picture in your story",
|
||||
"achievement_diary_photo_days_1_description": "Do this on 1 distinct dates: a saved diary entry containing a valid photo.",
|
||||
"achievement_diary_photo_days_5_title": "Five illustrated days",
|
||||
"achievement_diary_photo_days_5_description": "Do this on 5 distinct dates: a saved diary entry containing a valid photo.",
|
||||
"achievement_diary_photo_days_20_title": "Twenty illustrated days",
|
||||
"achievement_diary_photo_days_20_description": "Do this on 20 distinct dates: a saved diary entry containing a valid photo.",
|
||||
"achievement_diary_return_14_title": "A new page again",
|
||||
"achievement_diary_return_14_description": "Return after at least 14 full days without this activity: a nonempty saved diary entry."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Diario · 1 días",
|
||||
"achievement_diary_days_1_description": "Realiza esto en 1 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_3_title": "Diario · 3 días",
|
||||
"achievement_diary_days_3_description": "Realiza esto en 3 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_7_title": "Diario · 7 días",
|
||||
"achievement_diary_days_7_description": "Realiza esto en 7 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_14_title": "Diario · 14 días",
|
||||
"achievement_diary_days_14_description": "Realiza esto en 14 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_30_title": "Diario · 30 días",
|
||||
"achievement_diary_days_30_description": "Realiza esto en 30 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_60_title": "Diario · 60 días",
|
||||
"achievement_diary_days_60_description": "Realiza esto en 60 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_100_title": "Diario · 100 días",
|
||||
"achievement_diary_days_100_description": "Realiza esto en 100 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_180_title": "Diario · 180 días",
|
||||
"achievement_diary_days_180_description": "Realiza esto en 180 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_days_365_title": "Diario · 365 días",
|
||||
"achievement_diary_days_365_description": "Realiza esto en 365 fechas distintas: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_weeks_2_title": "Diario · 2 semanas",
|
||||
"achievement_diary_weeks_2_description": "Realiza esto en 2 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_weeks_4_title": "Diario · 4 semanas",
|
||||
"achievement_diary_weeks_4_description": "Realiza esto en 4 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_weeks_12_title": "Diario · 12 semanas",
|
||||
"achievement_diary_weeks_12_description": "Realiza esto en 12 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_weeks_26_title": "Diario · 26 semanas",
|
||||
"achievement_diary_weeks_26_description": "Realiza esto en 26 semanas naturales distintas, de lunes a domingo: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_months_3_title": "Diario · 3 meses",
|
||||
"achievement_diary_months_3_description": "Realiza esto en 3 meses naturales distintos: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_months_6_title": "Diario · 6 meses",
|
||||
"achievement_diary_months_6_description": "Realiza esto en 6 meses naturales distintos: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_months_12_title": "Diario · 12 meses",
|
||||
"achievement_diary_months_12_description": "Realiza esto en 12 meses naturales distintos: una entrada de diario guardada con contenido.",
|
||||
"achievement_diary_photo_days_1_title": "Diario · 1 días",
|
||||
"achievement_diary_photo_days_1_description": "Realiza esto en 1 fechas distintas: una entrada guardada del diario con una foto válida.",
|
||||
"achievement_diary_photo_days_5_title": "Diario · 5 días",
|
||||
"achievement_diary_photo_days_5_description": "Realiza esto en 5 fechas distintas: una entrada guardada del diario con una foto válida.",
|
||||
"achievement_diary_photo_days_20_title": "Diario · 20 días",
|
||||
"achievement_diary_photo_days_20_description": "Realiza esto en 20 fechas distintas: una entrada guardada del diario con una foto válida.",
|
||||
"achievement_diary_return_14_title": "Diario · 14 días de pausa",
|
||||
"achievement_diary_return_14_description": "Vuelve después de al menos 14 días completos sin esta actividad: una entrada de diario guardada con contenido."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Journal · 1 jours",
|
||||
"achievement_diary_days_1_description": "Faites ceci à 1 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_3_title": "Journal · 3 jours",
|
||||
"achievement_diary_days_3_description": "Faites ceci à 3 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_7_title": "Journal · 7 jours",
|
||||
"achievement_diary_days_7_description": "Faites ceci à 7 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_14_title": "Journal · 14 jours",
|
||||
"achievement_diary_days_14_description": "Faites ceci à 14 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_30_title": "Journal · 30 jours",
|
||||
"achievement_diary_days_30_description": "Faites ceci à 30 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_60_title": "Journal · 60 jours",
|
||||
"achievement_diary_days_60_description": "Faites ceci à 60 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_100_title": "Journal · 100 jours",
|
||||
"achievement_diary_days_100_description": "Faites ceci à 100 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_180_title": "Journal · 180 jours",
|
||||
"achievement_diary_days_180_description": "Faites ceci à 180 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_days_365_title": "Journal · 365 jours",
|
||||
"achievement_diary_days_365_description": "Faites ceci à 365 dates distinctes : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_weeks_2_title": "Journal · 2 semaines",
|
||||
"achievement_diary_weeks_2_description": "Faites ceci au cours de 2 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_weeks_4_title": "Journal · 4 semaines",
|
||||
"achievement_diary_weeks_4_description": "Faites ceci au cours de 4 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_weeks_12_title": "Journal · 12 semaines",
|
||||
"achievement_diary_weeks_12_description": "Faites ceci au cours de 12 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_weeks_26_title": "Journal · 26 semaines",
|
||||
"achievement_diary_weeks_26_description": "Faites ceci au cours de 26 semaines civiles distinctes, du lundi au dimanche : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_months_3_title": "Journal · 3 mois",
|
||||
"achievement_diary_months_3_description": "Faites ceci au cours de 3 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_months_6_title": "Journal · 6 mois",
|
||||
"achievement_diary_months_6_description": "Faites ceci au cours de 6 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_months_12_title": "Journal · 12 mois",
|
||||
"achievement_diary_months_12_description": "Faites ceci au cours de 12 mois civils distincts : une entrée de journal enregistrée avec du contenu.",
|
||||
"achievement_diary_photo_days_1_title": "Journal · 1 jours",
|
||||
"achievement_diary_photo_days_1_description": "Faites ceci à 1 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
|
||||
"achievement_diary_photo_days_5_title": "Journal · 5 jours",
|
||||
"achievement_diary_photo_days_5_description": "Faites ceci à 5 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
|
||||
"achievement_diary_photo_days_20_title": "Journal · 20 jours",
|
||||
"achievement_diary_photo_days_20_description": "Faites ceci à 20 dates distinctes : une entrée de journal enregistrée contenant une photo valide.",
|
||||
"achievement_diary_return_14_title": "Journal · 14 jours de pause",
|
||||
"achievement_diary_return_14_description": "Revenez après au moins 14 journées entières sans cette activité : une entrée de journal enregistrée avec du contenu."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Catatan harian · 1 hari",
|
||||
"achievement_diary_days_1_description": "Lakukan ini pada 1 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_3_title": "Catatan harian · 3 hari",
|
||||
"achievement_diary_days_3_description": "Lakukan ini pada 3 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_7_title": "Catatan harian · 7 hari",
|
||||
"achievement_diary_days_7_description": "Lakukan ini pada 7 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_14_title": "Catatan harian · 14 hari",
|
||||
"achievement_diary_days_14_description": "Lakukan ini pada 14 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_30_title": "Catatan harian · 30 hari",
|
||||
"achievement_diary_days_30_description": "Lakukan ini pada 30 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_60_title": "Catatan harian · 60 hari",
|
||||
"achievement_diary_days_60_description": "Lakukan ini pada 60 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_100_title": "Catatan harian · 100 hari",
|
||||
"achievement_diary_days_100_description": "Lakukan ini pada 100 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_180_title": "Catatan harian · 180 hari",
|
||||
"achievement_diary_days_180_description": "Lakukan ini pada 180 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_days_365_title": "Catatan harian · 365 hari",
|
||||
"achievement_diary_days_365_description": "Lakukan ini pada 365 tanggal berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_weeks_2_title": "Catatan harian · 2 pekan",
|
||||
"achievement_diary_weeks_2_description": "Lakukan ini dalam 2 pekan kalender berbeda dari Senin hingga Minggu: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_weeks_4_title": "Catatan harian · 4 pekan",
|
||||
"achievement_diary_weeks_4_description": "Lakukan ini dalam 4 pekan kalender berbeda dari Senin hingga Minggu: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_weeks_12_title": "Catatan harian · 12 pekan",
|
||||
"achievement_diary_weeks_12_description": "Lakukan ini dalam 12 pekan kalender berbeda dari Senin hingga Minggu: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_weeks_26_title": "Catatan harian · 26 pekan",
|
||||
"achievement_diary_weeks_26_description": "Lakukan ini dalam 26 pekan kalender berbeda dari Senin hingga Minggu: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_months_3_title": "Catatan harian · 3 bulan",
|
||||
"achievement_diary_months_3_description": "Lakukan ini dalam 3 bulan kalender berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_months_6_title": "Catatan harian · 6 bulan",
|
||||
"achievement_diary_months_6_description": "Lakukan ini dalam 6 bulan kalender berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_months_12_title": "Catatan harian · 12 bulan",
|
||||
"achievement_diary_months_12_description": "Lakukan ini dalam 12 bulan kalender berbeda: entri catatan harian tersimpan yang berisi konten.",
|
||||
"achievement_diary_photo_days_1_title": "Catatan harian · 1 hari",
|
||||
"achievement_diary_photo_days_1_description": "Lakukan ini pada 1 tanggal berbeda: entri catatan harian tersimpan dengan foto sah.",
|
||||
"achievement_diary_photo_days_5_title": "Catatan harian · 5 hari",
|
||||
"achievement_diary_photo_days_5_description": "Lakukan ini pada 5 tanggal berbeda: entri catatan harian tersimpan dengan foto sah.",
|
||||
"achievement_diary_photo_days_20_title": "Catatan harian · 20 hari",
|
||||
"achievement_diary_photo_days_20_description": "Lakukan ini pada 20 tanggal berbeda: entri catatan harian tersimpan dengan foto sah.",
|
||||
"achievement_diary_return_14_title": "Catatan harian · 14 hari jeda",
|
||||
"achievement_diary_return_14_description": "Kembali setelah setidaknya 14 hari penuh tanpa aktivitas ini: entri catatan harian tersimpan yang berisi konten."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Diario · 1 giorni",
|
||||
"achievement_diary_days_1_description": "Fallo in 1 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_3_title": "Diario · 3 giorni",
|
||||
"achievement_diary_days_3_description": "Fallo in 3 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_7_title": "Diario · 7 giorni",
|
||||
"achievement_diary_days_7_description": "Fallo in 7 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_14_title": "Diario · 14 giorni",
|
||||
"achievement_diary_days_14_description": "Fallo in 14 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_30_title": "Diario · 30 giorni",
|
||||
"achievement_diary_days_30_description": "Fallo in 30 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_60_title": "Diario · 60 giorni",
|
||||
"achievement_diary_days_60_description": "Fallo in 60 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_100_title": "Diario · 100 giorni",
|
||||
"achievement_diary_days_100_description": "Fallo in 100 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_180_title": "Diario · 180 giorni",
|
||||
"achievement_diary_days_180_description": "Fallo in 180 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_days_365_title": "Diario · 365 giorni",
|
||||
"achievement_diary_days_365_description": "Fallo in 365 date distinte: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_weeks_2_title": "Diario · 2 settimane",
|
||||
"achievement_diary_weeks_2_description": "Fallo in 2 settimane di calendario distinte, da lunedì a domenica: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_weeks_4_title": "Diario · 4 settimane",
|
||||
"achievement_diary_weeks_4_description": "Fallo in 4 settimane di calendario distinte, da lunedì a domenica: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_weeks_12_title": "Diario · 12 settimane",
|
||||
"achievement_diary_weeks_12_description": "Fallo in 12 settimane di calendario distinte, da lunedì a domenica: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_weeks_26_title": "Diario · 26 settimane",
|
||||
"achievement_diary_weeks_26_description": "Fallo in 26 settimane di calendario distinte, da lunedì a domenica: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_months_3_title": "Diario · 3 mesi",
|
||||
"achievement_diary_months_3_description": "Fallo in 3 mesi di calendario distinti: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_months_6_title": "Diario · 6 mesi",
|
||||
"achievement_diary_months_6_description": "Fallo in 6 mesi di calendario distinti: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_months_12_title": "Diario · 12 mesi",
|
||||
"achievement_diary_months_12_description": "Fallo in 12 mesi di calendario distinti: una voce del diario salvata con contenuto.",
|
||||
"achievement_diary_photo_days_1_title": "Diario · 1 giorni",
|
||||
"achievement_diary_photo_days_1_description": "Fallo in 1 date distinte: una voce salvata del diario contenente una foto valida.",
|
||||
"achievement_diary_photo_days_5_title": "Diario · 5 giorni",
|
||||
"achievement_diary_photo_days_5_description": "Fallo in 5 date distinte: una voce salvata del diario contenente una foto valida.",
|
||||
"achievement_diary_photo_days_20_title": "Diario · 20 giorni",
|
||||
"achievement_diary_photo_days_20_description": "Fallo in 20 date distinte: una voce salvata del diario contenente una foto valida.",
|
||||
"achievement_diary_return_14_title": "Diario · 14 giorni di pausa",
|
||||
"achievement_diary_return_14_description": "Ritorna dopo almeno 14 giorni interi senza questa attività: una voce del diario salvata con contenuto."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "日記 · 1 日",
|
||||
"achievement_diary_days_1_description": "異なる1日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_3_title": "日記 · 3 日",
|
||||
"achievement_diary_days_3_description": "異なる3日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_7_title": "日記 · 7 日",
|
||||
"achievement_diary_days_7_description": "異なる7日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_14_title": "日記 · 14 日",
|
||||
"achievement_diary_days_14_description": "異なる14日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_30_title": "日記 · 30 日",
|
||||
"achievement_diary_days_30_description": "異なる30日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_60_title": "日記 · 60 日",
|
||||
"achievement_diary_days_60_description": "異なる60日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_100_title": "日記 · 100 日",
|
||||
"achievement_diary_days_100_description": "異なる100日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_180_title": "日記 · 180 日",
|
||||
"achievement_diary_days_180_description": "異なる180日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_days_365_title": "日記 · 365 日",
|
||||
"achievement_diary_days_365_description": "異なる365日で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_weeks_2_title": "日記 · 2 週間",
|
||||
"achievement_diary_weeks_2_description": "月曜から日曜までの異なる2暦週で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_weeks_4_title": "日記 · 4 週間",
|
||||
"achievement_diary_weeks_4_description": "月曜から日曜までの異なる4暦週で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_weeks_12_title": "日記 · 12 週間",
|
||||
"achievement_diary_weeks_12_description": "月曜から日曜までの異なる12暦週で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_weeks_26_title": "日記 · 26 週間",
|
||||
"achievement_diary_weeks_26_description": "月曜から日曜までの異なる26暦週で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_months_3_title": "日記 · 3 か月",
|
||||
"achievement_diary_months_3_description": "異なる3暦月で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_months_6_title": "日記 · 6 か月",
|
||||
"achievement_diary_months_6_description": "異なる6暦月で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_months_12_title": "日記 · 12 か月",
|
||||
"achievement_diary_months_12_description": "異なる12暦月で行う:内容のある保存済みの日記。",
|
||||
"achievement_diary_photo_days_1_title": "日記 · 1 日",
|
||||
"achievement_diary_photo_days_1_description": "異なる1日で行う:有効な写真を含む保存済みの日記。",
|
||||
"achievement_diary_photo_days_5_title": "日記 · 5 日",
|
||||
"achievement_diary_photo_days_5_description": "異なる5日で行う:有効な写真を含む保存済みの日記。",
|
||||
"achievement_diary_photo_days_20_title": "日記 · 20 日",
|
||||
"achievement_diary_photo_days_20_description": "異なる20日で行う:有効な写真を含む保存済みの日記。",
|
||||
"achievement_diary_return_14_title": "日記 · 14 日間の休止",
|
||||
"achievement_diary_return_14_description": "この活動をしない日が丸14日以上続いた後に再開する:内容のある保存済みの日記。"
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "일기 · 1 일",
|
||||
"achievement_diary_days_1_description": "서로 다른 1일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_3_title": "일기 · 3 일",
|
||||
"achievement_diary_days_3_description": "서로 다른 3일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_7_title": "일기 · 7 일",
|
||||
"achievement_diary_days_7_description": "서로 다른 7일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_14_title": "일기 · 14 일",
|
||||
"achievement_diary_days_14_description": "서로 다른 14일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_30_title": "일기 · 30 일",
|
||||
"achievement_diary_days_30_description": "서로 다른 30일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_60_title": "일기 · 60 일",
|
||||
"achievement_diary_days_60_description": "서로 다른 60일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_100_title": "일기 · 100 일",
|
||||
"achievement_diary_days_100_description": "서로 다른 100일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_180_title": "일기 · 180 일",
|
||||
"achievement_diary_days_180_description": "서로 다른 180일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_days_365_title": "일기 · 365 일",
|
||||
"achievement_diary_days_365_description": "서로 다른 365일에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_weeks_2_title": "일기 · 2 주",
|
||||
"achievement_diary_weeks_2_description": "월요일부터 일요일까지의 서로 다른 2개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_weeks_4_title": "일기 · 4 주",
|
||||
"achievement_diary_weeks_4_description": "월요일부터 일요일까지의 서로 다른 4개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_weeks_12_title": "일기 · 12 주",
|
||||
"achievement_diary_weeks_12_description": "월요일부터 일요일까지의 서로 다른 12개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_weeks_26_title": "일기 · 26 주",
|
||||
"achievement_diary_weeks_26_description": "월요일부터 일요일까지의 서로 다른 26개 달력 주에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_months_3_title": "일기 · 3 개월",
|
||||
"achievement_diary_months_3_description": "서로 다른 3개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_months_6_title": "일기 · 6 개월",
|
||||
"achievement_diary_months_6_description": "서로 다른 6개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_months_12_title": "일기 · 12 개월",
|
||||
"achievement_diary_months_12_description": "서로 다른 12개 달력 월에 수행하세요: 내용이 있는 저장된 일기.",
|
||||
"achievement_diary_photo_days_1_title": "일기 · 1 일",
|
||||
"achievement_diary_photo_days_1_description": "서로 다른 1일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
|
||||
"achievement_diary_photo_days_5_title": "일기 · 5 일",
|
||||
"achievement_diary_photo_days_5_description": "서로 다른 5일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
|
||||
"achievement_diary_photo_days_20_title": "일기 · 20 일",
|
||||
"achievement_diary_photo_days_20_description": "서로 다른 20일에 수행하세요: 유효한 사진이 포함된 저장된 일기.",
|
||||
"achievement_diary_return_14_title": "일기 · 14 일의 휴식",
|
||||
"achievement_diary_return_14_description": "이 활동 없이 온전히 14일 이상 지난 뒤 돌아오세요: 내용이 있는 저장된 일기."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Diário · 1 dias",
|
||||
"achievement_diary_days_1_description": "Faça isto em 1 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_3_title": "Diário · 3 dias",
|
||||
"achievement_diary_days_3_description": "Faça isto em 3 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_7_title": "Diário · 7 dias",
|
||||
"achievement_diary_days_7_description": "Faça isto em 7 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_14_title": "Diário · 14 dias",
|
||||
"achievement_diary_days_14_description": "Faça isto em 14 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_30_title": "Diário · 30 dias",
|
||||
"achievement_diary_days_30_description": "Faça isto em 30 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_60_title": "Diário · 60 dias",
|
||||
"achievement_diary_days_60_description": "Faça isto em 60 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_100_title": "Diário · 100 dias",
|
||||
"achievement_diary_days_100_description": "Faça isto em 100 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_180_title": "Diário · 180 dias",
|
||||
"achievement_diary_days_180_description": "Faça isto em 180 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_days_365_title": "Diário · 365 dias",
|
||||
"achievement_diary_days_365_description": "Faça isto em 365 datas distintas: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_weeks_2_title": "Diário · 2 semanas",
|
||||
"achievement_diary_weeks_2_description": "Faça isto em 2 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_weeks_4_title": "Diário · 4 semanas",
|
||||
"achievement_diary_weeks_4_description": "Faça isto em 4 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_weeks_12_title": "Diário · 12 semanas",
|
||||
"achievement_diary_weeks_12_description": "Faça isto em 12 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_weeks_26_title": "Diário · 26 semanas",
|
||||
"achievement_diary_weeks_26_description": "Faça isto em 26 semanas de calendário distintas, de segunda a domingo: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_months_3_title": "Diário · 3 meses",
|
||||
"achievement_diary_months_3_description": "Faça isto em 3 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_months_6_title": "Diário · 6 meses",
|
||||
"achievement_diary_months_6_description": "Faça isto em 6 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_months_12_title": "Diário · 12 meses",
|
||||
"achievement_diary_months_12_description": "Faça isto em 12 meses de calendário distintos: uma entrada de diário guardada com conteúdo.",
|
||||
"achievement_diary_photo_days_1_title": "Diário · 1 dias",
|
||||
"achievement_diary_photo_days_1_description": "Faça isto em 1 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
|
||||
"achievement_diary_photo_days_5_title": "Diário · 5 dias",
|
||||
"achievement_diary_photo_days_5_description": "Faça isto em 5 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
|
||||
"achievement_diary_photo_days_20_title": "Diário · 20 dias",
|
||||
"achievement_diary_photo_days_20_description": "Faça isto em 20 datas distintas: uma entrada guardada do diário com uma fotografia válida.",
|
||||
"achievement_diary_return_14_title": "Diário · 14 dias de pausa",
|
||||
"achievement_diary_return_14_description": "Regresse após pelo menos 14 dias completos sem esta atividade: uma entrada de diário guardada com conteúdo."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "Дневник · 1 дней",
|
||||
"achievement_diary_days_1_description": "Сделайте это в 1 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_3_title": "Дневник · 3 дней",
|
||||
"achievement_diary_days_3_description": "Сделайте это в 3 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_7_title": "Дневник · 7 дней",
|
||||
"achievement_diary_days_7_description": "Сделайте это в 7 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_14_title": "Дневник · 14 дней",
|
||||
"achievement_diary_days_14_description": "Сделайте это в 14 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_30_title": "Дневник · 30 дней",
|
||||
"achievement_diary_days_30_description": "Сделайте это в 30 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_60_title": "Дневник · 60 дней",
|
||||
"achievement_diary_days_60_description": "Сделайте это в 60 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_100_title": "Дневник · 100 дней",
|
||||
"achievement_diary_days_100_description": "Сделайте это в 100 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_180_title": "Дневник · 180 дней",
|
||||
"achievement_diary_days_180_description": "Сделайте это в 180 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_days_365_title": "Дневник · 365 дней",
|
||||
"achievement_diary_days_365_description": "Сделайте это в 365 разных датах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_weeks_2_title": "Дневник · 2 недель",
|
||||
"achievement_diary_weeks_2_description": "Сделайте это в 2 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_weeks_4_title": "Дневник · 4 недель",
|
||||
"achievement_diary_weeks_4_description": "Сделайте это в 4 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_weeks_12_title": "Дневник · 12 недель",
|
||||
"achievement_diary_weeks_12_description": "Сделайте это в 12 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_weeks_26_title": "Дневник · 26 недель",
|
||||
"achievement_diary_weeks_26_description": "Сделайте это в 26 разных календарных неделях с понедельника по воскресенье: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_months_3_title": "Дневник · 3 месяцев",
|
||||
"achievement_diary_months_3_description": "Сделайте это в 3 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_months_6_title": "Дневник · 6 месяцев",
|
||||
"achievement_diary_months_6_description": "Сделайте это в 6 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_months_12_title": "Дневник · 12 месяцев",
|
||||
"achievement_diary_months_12_description": "Сделайте это в 12 разных календарных месяцах: сохранённая запись в дневнике с содержимым.",
|
||||
"achievement_diary_photo_days_1_title": "Дневник · 1 дней",
|
||||
"achievement_diary_photo_days_1_description": "Сделайте это в 1 разных датах: сохранённая дневниковая запись с корректной фотографией.",
|
||||
"achievement_diary_photo_days_5_title": "Дневник · 5 дней",
|
||||
"achievement_diary_photo_days_5_description": "Сделайте это в 5 разных датах: сохранённая дневниковая запись с корректной фотографией.",
|
||||
"achievement_diary_photo_days_20_title": "Дневник · 20 дней",
|
||||
"achievement_diary_photo_days_20_description": "Сделайте это в 20 разных датах: сохранённая дневниковая запись с корректной фотографией.",
|
||||
"achievement_diary_return_14_title": "Дневник · 14 дней перерыва",
|
||||
"achievement_diary_return_14_description": "Вернитесь после как минимум 14 полных дней без этой активности: сохранённая запись в дневнике с содержимым."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_diary_days_1_title": "日记 · 1 天",
|
||||
"achievement_diary_days_1_description": "在1个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_3_title": "日记 · 3 天",
|
||||
"achievement_diary_days_3_description": "在3个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_7_title": "日记 · 7 天",
|
||||
"achievement_diary_days_7_description": "在7个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_14_title": "日记 · 14 天",
|
||||
"achievement_diary_days_14_description": "在14个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_30_title": "日记 · 30 天",
|
||||
"achievement_diary_days_30_description": "在30个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_60_title": "日记 · 60 天",
|
||||
"achievement_diary_days_60_description": "在60个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_100_title": "日记 · 100 天",
|
||||
"achievement_diary_days_100_description": "在100个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_180_title": "日记 · 180 天",
|
||||
"achievement_diary_days_180_description": "在180个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_days_365_title": "日记 · 365 天",
|
||||
"achievement_diary_days_365_description": "在365个不同日期进行:已保存且有内容的日记。",
|
||||
"achievement_diary_weeks_2_title": "日记 · 2 周",
|
||||
"achievement_diary_weeks_2_description": "在2个不同的周一至周日自然周进行:已保存且有内容的日记。",
|
||||
"achievement_diary_weeks_4_title": "日记 · 4 周",
|
||||
"achievement_diary_weeks_4_description": "在4个不同的周一至周日自然周进行:已保存且有内容的日记。",
|
||||
"achievement_diary_weeks_12_title": "日记 · 12 周",
|
||||
"achievement_diary_weeks_12_description": "在12个不同的周一至周日自然周进行:已保存且有内容的日记。",
|
||||
"achievement_diary_weeks_26_title": "日记 · 26 周",
|
||||
"achievement_diary_weeks_26_description": "在26个不同的周一至周日自然周进行:已保存且有内容的日记。",
|
||||
"achievement_diary_months_3_title": "日记 · 3 个月",
|
||||
"achievement_diary_months_3_description": "在3个不同自然月进行:已保存且有内容的日记。",
|
||||
"achievement_diary_months_6_title": "日记 · 6 个月",
|
||||
"achievement_diary_months_6_description": "在6个不同自然月进行:已保存且有内容的日记。",
|
||||
"achievement_diary_months_12_title": "日记 · 12 个月",
|
||||
"achievement_diary_months_12_description": "在12个不同自然月进行:已保存且有内容的日记。",
|
||||
"achievement_diary_photo_days_1_title": "日记 · 1 天",
|
||||
"achievement_diary_photo_days_1_description": "在1个不同日期进行:包含有效照片且已保存的日记。",
|
||||
"achievement_diary_photo_days_5_title": "日记 · 5 天",
|
||||
"achievement_diary_photo_days_5_description": "在5个不同日期进行:包含有效照片且已保存的日记。",
|
||||
"achievement_diary_photo_days_20_title": "日记 · 20 天",
|
||||
"achievement_diary_photo_days_20_description": "在20个不同日期进行:包含有效照片且已保存的日记。",
|
||||
"achievement_diary_return_14_title": "日记 · 14 天间隔",
|
||||
"achievement_diary_return_14_description": "至少有连续14个完整日期未进行此活动后再次进行:已保存且有内容的日记。"
|
||||
}
|
||||
@@ -1,326 +0,0 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"app": "inbe.diary",
|
||||
"achievements": [
|
||||
{
|
||||
"id": "diary.days.1",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_1_title",
|
||||
"description_key": "achievement_diary_days_1_description",
|
||||
"title": "First page",
|
||||
"description": "Save 1 qualifying diary day.",
|
||||
"icon": "assets/diary/icons/diary.days.1.shape",
|
||||
"icon_source": "mingcute_regular_pencil"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.3",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 3,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_3_title",
|
||||
"description_key": "achievement_diary_days_3_description",
|
||||
"title": "Three pages",
|
||||
"description": "Save 3 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.3.shape",
|
||||
"icon_source": "mingcute_regular_notebook"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.7",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 7,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_7_title",
|
||||
"description_key": "achievement_diary_days_7_description",
|
||||
"title": "Seven pages",
|
||||
"description": "Save 7 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.7.shape",
|
||||
"icon_source": "mingcute_regular_quill_pen"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.14",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 14,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_14_title",
|
||||
"description_key": "achievement_diary_days_14_description",
|
||||
"title": "Fourteen pages",
|
||||
"description": "Save 14 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.14.shape",
|
||||
"icon_source": "mingcute_regular_book_2"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.30",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 30,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_30_title",
|
||||
"description_key": "achievement_diary_days_30_description",
|
||||
"title": "Thirty pages",
|
||||
"description": "Save 30 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.30.shape",
|
||||
"icon_source": "mingcute_regular_book"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.60",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 60,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_60_title",
|
||||
"description_key": "achievement_diary_days_60_description",
|
||||
"title": "Sixty pages",
|
||||
"description": "Save 60 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.60.shape",
|
||||
"icon_source": "mingcute_regular_book_3"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.100",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 100,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_100_title",
|
||||
"description_key": "achievement_diary_days_100_description",
|
||||
"title": "One hundred pages",
|
||||
"description": "Save 100 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.100.shape",
|
||||
"icon_source": "mingcute_regular_book_5"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.180",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 180,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_180_title",
|
||||
"description_key": "achievement_diary_days_180_description",
|
||||
"title": "An unfolding story",
|
||||
"description": "Save 180 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.180.shape",
|
||||
"icon_source": "mingcute_regular_book_6"
|
||||
},
|
||||
{
|
||||
"id": "diary.days.365",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 365,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_days_365_title",
|
||||
"description_key": "achievement_diary_days_365_description",
|
||||
"title": "A year of pages",
|
||||
"description": "Save 365 qualifying diary days.",
|
||||
"icon": "assets/diary/icons/diary.days.365.shape",
|
||||
"icon_source": "mingcute_regular_bookmarks"
|
||||
},
|
||||
{
|
||||
"id": "diary.weeks.2",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "weeks",
|
||||
"target": 2,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_weeks_2_title",
|
||||
"description_key": "achievement_diary_weeks_2_description",
|
||||
"title": "Two weeks remembered",
|
||||
"description": "Write in 2 distinct weeks.",
|
||||
"icon": "assets/diary/icons/diary.weeks.2.shape",
|
||||
"icon_source": "mingcute_regular_calendar_week"
|
||||
},
|
||||
{
|
||||
"id": "diary.weeks.4",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "weeks",
|
||||
"target": 4,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_weeks_4_title",
|
||||
"description_key": "achievement_diary_weeks_4_description",
|
||||
"title": "Four weeks remembered",
|
||||
"description": "Write in 4 distinct weeks.",
|
||||
"icon": "assets/diary/icons/diary.weeks.4.shape",
|
||||
"icon_source": "mingcute_regular_calendar_month"
|
||||
},
|
||||
{
|
||||
"id": "diary.weeks.12",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "weeks",
|
||||
"target": 12,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_weeks_12_title",
|
||||
"description_key": "achievement_diary_weeks_12_description",
|
||||
"title": "Twelve weeks remembered",
|
||||
"description": "Write in 12 distinct weeks.",
|
||||
"icon": "assets/diary/icons/diary.weeks.12.shape",
|
||||
"icon_source": "mingcute_regular_calendar_3"
|
||||
},
|
||||
{
|
||||
"id": "diary.weeks.26",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "weeks",
|
||||
"target": 26,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_weeks_26_title",
|
||||
"description_key": "achievement_diary_weeks_26_description",
|
||||
"title": "Twenty-six weeks remembered",
|
||||
"description": "Write in 26 distinct weeks.",
|
||||
"icon": "assets/diary/icons/diary.weeks.26.shape",
|
||||
"icon_source": "mingcute_regular_calendar"
|
||||
},
|
||||
{
|
||||
"id": "diary.months.3",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "months",
|
||||
"target": 3,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_months_3_title",
|
||||
"description_key": "achievement_diary_months_3_description",
|
||||
"title": "Three months remembered",
|
||||
"description": "Write in 3 distinct months.",
|
||||
"icon": "assets/diary/icons/diary.months.3.shape",
|
||||
"icon_source": "mingcute_regular_notebook_2"
|
||||
},
|
||||
{
|
||||
"id": "diary.months.6",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "months",
|
||||
"target": 6,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_months_6_title",
|
||||
"description_key": "achievement_diary_months_6_description",
|
||||
"title": "Six months remembered",
|
||||
"description": "Write in 6 distinct months.",
|
||||
"icon": "assets/diary/icons/diary.months.6.shape",
|
||||
"icon_source": "mingcute_regular_bookmark"
|
||||
},
|
||||
{
|
||||
"id": "diary.months.12",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "months",
|
||||
"target": 12,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_months_12_title",
|
||||
"description_key": "achievement_diary_months_12_description",
|
||||
"title": "Twelve months remembered",
|
||||
"description": "Write in 12 distinct months.",
|
||||
"icon": "assets/diary/icons/diary.months.12.shape",
|
||||
"icon_source": "mingcute_regular_bookmark_edit"
|
||||
},
|
||||
{
|
||||
"id": "diary.photo_days.1",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 1,
|
||||
"variant": "photo",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_photo_days_1_title",
|
||||
"description_key": "achievement_diary_photo_days_1_description",
|
||||
"title": "A picture in your story",
|
||||
"description": "Save a valid photo on 1 diary day.",
|
||||
"icon": "assets/diary/icons/diary.photo_days.1.shape",
|
||||
"icon_source": "mingcute_regular_photo_album"
|
||||
},
|
||||
{
|
||||
"id": "diary.photo_days.5",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 5,
|
||||
"variant": "photo",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_photo_days_5_title",
|
||||
"description_key": "achievement_diary_photo_days_5_description",
|
||||
"title": "Five illustrated days",
|
||||
"description": "Save valid photos on 5 distinct diary days.",
|
||||
"icon": "assets/diary/icons/diary.photo_days.5.shape",
|
||||
"icon_source": "mingcute_regular_photo_album_2"
|
||||
},
|
||||
{
|
||||
"id": "diary.photo_days.20",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "days",
|
||||
"target": 20,
|
||||
"variant": "photo",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_photo_days_20_title",
|
||||
"description_key": "achievement_diary_photo_days_20_description",
|
||||
"title": "Twenty illustrated days",
|
||||
"description": "Save valid photos on 20 distinct diary days.",
|
||||
"icon": "assets/diary/icons/diary.photo_days.20.shape",
|
||||
"icon_source": "mingcute_regular_camera_rotate"
|
||||
},
|
||||
{
|
||||
"id": "diary.return.14",
|
||||
"group": "diary",
|
||||
"metric": "diary",
|
||||
"rule": "return",
|
||||
"target": 14,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_diary_return_14_title",
|
||||
"description_key": "achievement_diary_return_14_description",
|
||||
"title": "A new page again",
|
||||
"description": "Save a diary day after a 14-day diary gap.",
|
||||
"icon": "assets/diary/icons/diary.return.14.shape",
|
||||
"icon_source": "mingcute_regular_pen_2"
|
||||
}
|
||||
]
|
||||
}
|
||||
+126
-282
@@ -1,53 +1,24 @@
|
||||
// Date arithmetic and per-day documents moved from Harmony's original Diary.
|
||||
// File effects belong to the host; this bundle has no OS or database access.
|
||||
//
|
||||
// A day's document keeps Harmony's version 1:
|
||||
// {"version":1,"date":"YYYY-MM-DD","text":"...","photos":[...]}. The text is
|
||||
// the entry, in Markdown, and the only source of truth: its photos are embed
|
||||
// lines (diary_markdown.zi). "photos" lists the Diary files the text embeds,
|
||||
// for older versions, which show those photos below the entry.
|
||||
#import "json_scan"
|
||||
#import, file "diary_view.zi";
|
||||
#import, file "diary_date.zi";
|
||||
#import, file "diary_markdown.zi";
|
||||
#import "text"
|
||||
#import "vec"
|
||||
#import "byte_text_linux"
|
||||
#import, file "diary_types.zi";
|
||||
#import "kryon/app_context"
|
||||
#import "kryon/app_protocol"
|
||||
#import "date_parse"
|
||||
#import, file "diary_history.zi";
|
||||
#import, file "diary_spelling_mask.zi";
|
||||
#import, file "diary_ui_types.zi";
|
||||
#import, file "diary_wire.zi";
|
||||
#import, file "../../src/cells/diary_types.zi";
|
||||
#import, file "../../src/cells/module_types.zi";
|
||||
#import, file "../../src/core/types.zi";
|
||||
|
||||
|
||||
ReadDiaryFile :: (name: string) -> DiaryFileResult {
|
||||
data := DocumentRead(name)
|
||||
status := DocumentStatus()
|
||||
return DiaryFileResult.{.data = data, .missing = status == DOCUMENT_MISSING,
|
||||
.succeeded = status != DOCUMENT_ERROR}
|
||||
}
|
||||
|
||||
DiaryClock :: () -> string {
|
||||
seconds := cast(s64)AppNow() + cast(s64)AppLocalOffset()
|
||||
date := CivilFromUnix(seconds)
|
||||
buffer: [19]u8
|
||||
unused WriteIsoDay(seconds, buffer[:10])
|
||||
buffer[10] = cast(u8)32
|
||||
unused DateWriteDigits(buffer[:], 11, date.hour, 2)
|
||||
buffer[13] = cast(u8)58
|
||||
unused DateWriteDigits(buffer[:], 14, date.minute, 2)
|
||||
buffer[16] = cast(u8)58
|
||||
unused DateWriteDigits(buffer[:], 17, date.second, 2)
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", TextFromBytes(buffer[:]))
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
host_api :: #system_library "host_api";
|
||||
ReadDiaryHost :: () -> DiaryMessage #foreign host_api;
|
||||
WriteDiaryHost :: (message: DiaryMessage) #foreign host_api;
|
||||
ReadDiaryFileHost :: (name: string) -> DiaryFileResult #foreign host_api;
|
||||
SaveDiaryFileHost :: (name: string, data: string) -> bool #foreign host_api;
|
||||
DiaryClockHost :: () -> string #foreign host_api;
|
||||
|
||||
Today :: () -> Date {
|
||||
clock := DiaryClock()
|
||||
clock := DiaryClockHost()
|
||||
if clock.count < 10 {
|
||||
return Date.{}
|
||||
}
|
||||
@@ -115,87 +86,94 @@ Document :: (message: DiaryMessage) -> string {
|
||||
BuilderPrint(*out, ",\"text\":")
|
||||
Json(*out, message.text)
|
||||
BuilderPrint(*out, ",\"photos\":")
|
||||
PhotoMirror(*out, message.text)
|
||||
photos := FieldAt(message.document, 0, "photos")
|
||||
if photos >= 0 && ArrayCount(message.document, photos) >= 0 {
|
||||
end := ValueEnd(message.document, photos, 0)
|
||||
BuilderPrint(*out, "%", message.document[photos:end])
|
||||
} else {
|
||||
BuilderPrint(*out, "[]")
|
||||
}
|
||||
BuilderPrint(*out, "}")
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The "photos" list older versions show: each Diary file the text embeds,
|
||||
// once, in the order the text first names it. Photos of the media library
|
||||
// are no Diary files; older versions show their embed lines as text.
|
||||
PhotoMirror :: (out: *Vec(u8), text: string) {
|
||||
BuilderPrint(out, "[")
|
||||
written: s32 = 0
|
||||
embed := DiaryEmbedNext(text, 0)
|
||||
while embed.valid {
|
||||
file := DiaryEmbedTarget(text, embed)
|
||||
first := !embed.library
|
||||
earlier := DiaryEmbedNext(text, 0)
|
||||
while first && earlier.valid && earlier.start < embed.start {
|
||||
if !earlier.library && DiaryEmbedTarget(text, earlier) == file {
|
||||
first = false
|
||||
}
|
||||
earlier = DiaryEmbedNext(text, earlier.end)
|
||||
}
|
||||
if first {
|
||||
if written > 0 {
|
||||
BuilderPrint(out, ",")
|
||||
}
|
||||
BuilderPrint(out, "{\"file\":")
|
||||
Json(out, file)
|
||||
BuilderPrint(out, ",\"name\":")
|
||||
Json(out, DiaryEmbedAlt(text, embed))
|
||||
BuilderPrint(out, "}")
|
||||
written += 1
|
||||
}
|
||||
embed = DiaryEmbedNext(text, embed.end)
|
||||
SafePhoto :: (file: string) -> bool {
|
||||
if file.count == 0 || file.count > 200 || file == "." || file == ".." {
|
||||
return false
|
||||
}
|
||||
BuilderPrint(out, "]")
|
||||
for byte: file {
|
||||
if !((byte >= cast(u8)48 && byte <= cast(u8)57) ||
|
||||
(byte >= cast(u8)97 && byte <= cast(u8)122) ||
|
||||
byte == cast(u8)45 || byte == cast(u8)46) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// Photos an older version attached as Diary files and the text does not
|
||||
// embed yet, as embed lines after the text, in the document's order. Only
|
||||
// the text in memory changes: viewing a day writes nothing, and its first
|
||||
// real edit saves the embeds.
|
||||
Migrated :: (text: string, document: string) -> string {
|
||||
rows := FieldAt(document, 0, "photos")
|
||||
result := text
|
||||
for index: cast(s32)0..ArrayCount(document, rows) - 1 {
|
||||
row := ElementAt(document, rows, index)
|
||||
file := Decode(document, FieldAt(document, row, "file"))
|
||||
if DiaryEmbedReferences(result, file) {
|
||||
continue
|
||||
}
|
||||
destination: Vec(u8)
|
||||
BuilderPrint(*destination, "diary:%", file)
|
||||
line := DiaryEmbedLine(BuilderFinish(destination),
|
||||
Decode(document, FieldAt(document, row, "name")))
|
||||
result = DiaryEmbedAppend(result, line)
|
||||
PhotoSelection :: (message: DiaryMessage) -> DiaryMessage {
|
||||
rows := FieldAt(message.document, 0, "photos")
|
||||
message.photo_count = ArrayCount(message.document, rows)
|
||||
if message.photo_count < 0 {
|
||||
message.photo_count = 0
|
||||
}
|
||||
return result
|
||||
message.photo_file = ""
|
||||
message.photo_name = ""
|
||||
if message.photo_count == 0 {
|
||||
message.photo_index = 0
|
||||
return message
|
||||
}
|
||||
if message.photo_index < 0 || message.photo_index >= message.photo_count {
|
||||
message.photo_index = 0
|
||||
}
|
||||
row := ElementAt(message.document, rows, message.photo_index)
|
||||
message.photo_file = Decode(message.document, FieldAt(message.document, row, "file"))
|
||||
message.photo_name = Decode(message.document, FieldAt(message.document, row, "name"))
|
||||
return message
|
||||
}
|
||||
|
||||
// Puts the photo the host named, a library photo it just added or a Diary
|
||||
// file, on its own line at the caret: one edit, saved at once. The caret
|
||||
// starts at the end of a day's entry, so without a click the photo follows
|
||||
// the text.
|
||||
AttachPhoto :: (message: DiaryMessage) -> DiaryMessage {
|
||||
line := DiaryEmbedLine(message.attachment_file, message.attachment_name)
|
||||
PhotoChange :: (message: DiaryMessage, remove: bool) -> DiaryMessage {
|
||||
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
|
||||
message.load_error || DiaryEmbedAt(line, 0).end != cast(s32)line.count {
|
||||
message.load_error || (!remove && !SafePhoto(message.attachment_file)) {
|
||||
message.succeeded = false
|
||||
return message
|
||||
}
|
||||
edit := DiaryEmbedInsertion(message.text, message.cursor, line)
|
||||
message.action = DIARY_EDIT
|
||||
message.edit_start = edit.start
|
||||
message.edit_end = edit.end
|
||||
message.replacement = edit.replacement
|
||||
message = Apply(message)
|
||||
message.replacement = ""
|
||||
// An entry that cannot save keeps the photo and saves with its next edit.
|
||||
rows := FieldAt(message.document, 0, "photos")
|
||||
count := ArrayCount(message.document, rows)
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "{\"photos\":[")
|
||||
written: s32 = 0
|
||||
for index: cast(s32)0..count - 1 {
|
||||
if remove && index == message.photo_index {
|
||||
continue
|
||||
}
|
||||
row := ElementAt(message.document, rows, index)
|
||||
end := ValueEnd(message.document, row, 0)
|
||||
if written > 0 { BuilderPrint(*out, ",") }
|
||||
BuilderPrint(*out, "%", message.document[row:end])
|
||||
written += 1
|
||||
}
|
||||
if !remove {
|
||||
if written > 0 { BuilderPrint(*out, ",") }
|
||||
BuilderPrint(*out, "{\"file\":")
|
||||
Json(*out, message.attachment_file)
|
||||
BuilderPrint(*out, ",\"name\":")
|
||||
Json(*out, message.attachment_name)
|
||||
BuilderPrint(*out, "}")
|
||||
message.photo_index = written
|
||||
}
|
||||
BuilderPrint(*out, "]}")
|
||||
previous := message
|
||||
message.document = BuilderFinish(out)
|
||||
message.saved = false
|
||||
message = Save(message)
|
||||
return message
|
||||
if !message.saved {
|
||||
previous.succeeded = false
|
||||
return previous
|
||||
}
|
||||
// Removing a reference keeps its private original bytes. A damaged entry
|
||||
// or another imported document can still refer to that same photo.
|
||||
return PhotoSelection(message)
|
||||
}
|
||||
|
||||
Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
|
||||
@@ -203,12 +181,16 @@ Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
|
||||
message.succeeded = false;
|
||||
return message
|
||||
}
|
||||
loaded := ReadDiaryFile(Filename(date))
|
||||
loaded := ReadDiaryFileHost(Filename(date))
|
||||
message.year = date.year
|
||||
message.month = date.month
|
||||
message.day = date.day
|
||||
message.text = ""
|
||||
message.document = loaded.data
|
||||
message.photo_index = 0
|
||||
message.photo_count = 0
|
||||
message.photo_file = ""
|
||||
message.photo_name = ""
|
||||
message.cursor = 0
|
||||
message.anchor = 0
|
||||
message.load_error = !loaded.succeeded
|
||||
@@ -232,15 +214,13 @@ Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
|
||||
row := ElementAt(loaded.data, rows, index)
|
||||
file := Decode(loaded.data, FieldAt(loaded.data, row, "file"))
|
||||
label := FieldAt(loaded.data, row, "name")
|
||||
if !DiaryFileNameValid(file) || label < 0 || loaded.data[label] != cast(u8)34 {
|
||||
if !SafePhoto(file) || label < 0 || loaded.data[label] != cast(u8)34 {
|
||||
message.load_error = true
|
||||
return message
|
||||
}
|
||||
}
|
||||
message.text = Migrated(Decode(loaded.data, text), loaded.data)
|
||||
message.cursor = cast(s32)message.text.count
|
||||
message.anchor = message.cursor
|
||||
return message
|
||||
message.text = Decode(loaded.data, text)
|
||||
return PhotoSelection(message)
|
||||
}
|
||||
|
||||
Save :: (message: DiaryMessage) -> DiaryMessage {
|
||||
@@ -252,7 +232,7 @@ Save :: (message: DiaryMessage) -> DiaryMessage {
|
||||
return message
|
||||
}
|
||||
message.document = Document(message)
|
||||
message.saved = DocumentWrite(Filename(Date.{message.year, message.month, message.day}),
|
||||
message.saved = SaveDiaryFileHost(Filename(Date.{message.year, message.month, message.day}),
|
||||
message.document)
|
||||
message.succeeded = message.saved
|
||||
return message
|
||||
@@ -261,7 +241,7 @@ Save :: (message: DiaryMessage) -> DiaryMessage {
|
||||
Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
message.succeeded = true
|
||||
if message.action == DIARY_ROUTE {
|
||||
message.succeeded = true
|
||||
message.succeeded = message.screen == ScreenDiary
|
||||
return message
|
||||
}
|
||||
if message.action == DIARY_LOAD {
|
||||
@@ -275,7 +255,7 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
return Save(message)
|
||||
}
|
||||
if message.action == DIARY_ATTACH {
|
||||
return AttachPhoto(message)
|
||||
return PhotoChange(message, false)
|
||||
}
|
||||
if message.action == DIARY_EDIT {
|
||||
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
|
||||
@@ -298,8 +278,21 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
message.succeeded = false;
|
||||
return message
|
||||
}
|
||||
if message.control == 29008 || message.control == 29009 {
|
||||
if message.photo_count > 0 {
|
||||
message.photo_index = (message.photo_index + message.photo_count +
|
||||
(ifx message.control == 29008 then -1 else 1)) % message.photo_count
|
||||
}
|
||||
return PhotoSelection(message)
|
||||
}
|
||||
if message.control == 29010 {
|
||||
if message.photo_count > 0 {
|
||||
return PhotoChange(message, true)
|
||||
}
|
||||
return message
|
||||
}
|
||||
if message.control == 29013 {
|
||||
clock := DiaryClock()
|
||||
clock := DiaryClockHost()
|
||||
if message.load_error || message.calendar || clock.count < 16 {
|
||||
message.succeeded = false
|
||||
return message
|
||||
@@ -375,7 +368,7 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
message.marks[day] = cast(u8)0
|
||||
}
|
||||
for day: cast(s32)1..Days(message.month_year, message.month_number) {
|
||||
file := ReadDiaryFile(Filename(Date.{message.month_year, message.month_number, day}))
|
||||
file := ReadDiaryFileHost(Filename(Date.{message.month_year, message.month_number, day}))
|
||||
text := FieldAt(file.data, 0, "text")
|
||||
has_text := text >= 0 && text + 1 < file.data.count && file.data[text + 1] != cast(u8)34
|
||||
message.marks[day] = ifx has_text ||
|
||||
@@ -385,177 +378,28 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
return message
|
||||
}
|
||||
|
||||
entry: DiaryMessage;
|
||||
editor: DiaryUiFrame;
|
||||
loaded: bool;
|
||||
history: DiaryHistory;
|
||||
photo_waiting: bool;
|
||||
photo_day: Date;
|
||||
spelling_sent: string;
|
||||
spelling_day: Date;
|
||||
spelling_notice_until: float64;
|
||||
|
||||
DiarySpellingNotice :: (key: string) {
|
||||
editor.spelling_notice = key
|
||||
spelling_notice_until = editor.now + 6.0
|
||||
}
|
||||
|
||||
DiarySpellingPollService :: () {
|
||||
if !editor.spelling_busy || !AppSupports("text.correct.poll") { return }
|
||||
result := AppService("text.correct.poll", "")
|
||||
if !DiaryWireBool(result, "finished") { return }
|
||||
editor.spelling_busy = false
|
||||
same_day := entry.year == spelling_day.year && entry.month == spelling_day.month &&
|
||||
entry.day == spelling_day.day
|
||||
if !same_day { return }
|
||||
notice := DiaryWireString(result, FieldAt(result, 0, "notice"))
|
||||
if notice != "" {
|
||||
DiarySpellingNotice(notice)
|
||||
return
|
||||
}
|
||||
if entry.text != spelling_sent {
|
||||
DiarySpellingNotice("diary_spelling_error")
|
||||
return
|
||||
}
|
||||
corrected := DiarySpellingRestored(entry.text, DiaryWireString(result, FieldAt(result, 0, "text")))
|
||||
if corrected == "" && entry.text != "" {
|
||||
DiarySpellingNotice("diary_spelling_error")
|
||||
return
|
||||
}
|
||||
if corrected == entry.text {
|
||||
DiarySpellingNotice("diary_spelling_none")
|
||||
return
|
||||
}
|
||||
edit := DiaryHistoryEdit(entry.text, corrected)
|
||||
entry.action = DIARY_EDIT
|
||||
entry.edit_start = edit.start
|
||||
entry.edit_end = edit.end
|
||||
entry.replacement = edit.replacement
|
||||
entry = Apply(entry)
|
||||
entry.replacement = ""
|
||||
editor.save_at = editor.now
|
||||
DiaryHistoryObserve(*history, entry.year, entry.month, entry.day, entry.text, editor.now, false)
|
||||
}
|
||||
|
||||
DiarySpellingRequest :: () {
|
||||
if !editor.spelling_requested || editor.spelling_busy || !AppSupports("text.correct.start") { return }
|
||||
result := AppService("text.correct.start", DiarySpellingMasked(entry.text))
|
||||
notice := DiaryWireString(result, FieldAt(result, 0, "notice"))
|
||||
if notice != "" {
|
||||
DiarySpellingNotice(notice)
|
||||
return
|
||||
}
|
||||
editor.spelling_busy = DiaryWireBool(result, "busy")
|
||||
if editor.spelling_busy {
|
||||
spelling_sent = entry.text
|
||||
spelling_day = Date.{entry.year, entry.month, entry.day}
|
||||
editor.spelling_notice = ""
|
||||
}
|
||||
}
|
||||
|
||||
DiaryEnsureLoaded :: () {
|
||||
if !loaded {
|
||||
entry = Apply(DiaryMessage.{.action = DIARY_LOAD})
|
||||
loaded = entry.succeeded
|
||||
}
|
||||
}
|
||||
|
||||
DiaryHistoryApply :: (redo: bool) {
|
||||
changed := ifx redo then DiaryHistoryRedo(*history) else DiaryHistoryUndo(*history)
|
||||
if !changed { return }
|
||||
edit := DiaryHistoryEdit(entry.text, history.current)
|
||||
entry.action = DIARY_EDIT
|
||||
entry.edit_start = edit.start
|
||||
entry.edit_end = edit.end
|
||||
entry.replacement = edit.replacement
|
||||
entry = Apply(entry)
|
||||
entry.replacement = ""
|
||||
editor.save_at = editor.now
|
||||
}
|
||||
|
||||
DiaryPicked :: (result: string) {
|
||||
status := DiaryWireString(result, FieldAt(result, 0, "status"))
|
||||
photo_waiting = status == "pending"
|
||||
if status != "done" {
|
||||
editor.photo_error = status == "failed"
|
||||
return
|
||||
}
|
||||
if entry.year != photo_day.year || entry.month != photo_day.month || entry.day != photo_day.day {
|
||||
return
|
||||
}
|
||||
entry.action = DIARY_ATTACH
|
||||
entry.attachment_file = DiaryWireString(result, FieldAt(result, 0, "destination"))
|
||||
entry.attachment_name = DiaryWireString(result, FieldAt(result, 0, "name"))
|
||||
entry = Apply(entry)
|
||||
editor.photo_error = !entry.succeeded
|
||||
}
|
||||
|
||||
#program_export "DiaryMain"
|
||||
Main :: () -> s32 {
|
||||
mode := AppMode()
|
||||
if mode == APP_IDENTIFY {
|
||||
AppIdentity("inbe.diary")
|
||||
AppDescribe("Diary", "S1.8rr:M5 3H19V21H5ZM8 7H16M8 11H16M8 15H13")
|
||||
return APP_PROTOCOL
|
||||
message := ReadDiaryHost()
|
||||
if message.abi != MODULE_ABI {
|
||||
return -1
|
||||
}
|
||||
if mode == APP_COMMAND {
|
||||
entry = Apply(DiaryMessageDecode(AppCommand()))
|
||||
loaded = entry.year > 0
|
||||
AppReply(DiaryMessageEncode(entry))
|
||||
return 0
|
||||
if message.action == MODULE_IDENTIFY {
|
||||
return MODULE_DIARY
|
||||
}
|
||||
if mode == APP_SAVE {
|
||||
if loaded { entry = Save(entry) }
|
||||
AppReply(DiaryMessageEncode(entry))
|
||||
return ifx !loaded || entry.saved || entry.load_error then 0 else 1
|
||||
}
|
||||
if mode != APP_FRAME { return 0 }
|
||||
DiaryEnsureLoaded()
|
||||
bounds := AppBounds()
|
||||
editor.session = AppSession()
|
||||
editor.width = cast(s32)bounds.width
|
||||
editor.height = cast(s32)(bounds.y + bounds.height)
|
||||
editor.origin_x = cast(s32)bounds.x
|
||||
editor.origin_y = cast(s32)bounds.y
|
||||
editor.scale = AppScale()
|
||||
editor.font = AppFont()
|
||||
editor.now = AppAreaInput().now_seconds
|
||||
editor.input = AppAreaInput()
|
||||
editor.link_color = ifx AppDark() then cast(u32)0x9bc5e8ff else cast(u32)0x286d9cff
|
||||
editor.muted_color = ifx AppDark() then cast(u32)0xaaaeb3ff else cast(u32)0x62686eff
|
||||
editor.can_undo = history.undo_count > 0
|
||||
editor.can_redo = history.redo_count > 0
|
||||
editor.photo_requested = false
|
||||
editor.undo_requested = false
|
||||
editor.redo_requested = false
|
||||
editor.spelling_requested = false
|
||||
if editor.now >= spelling_notice_until { editor.spelling_notice = "" }
|
||||
DiarySpellingPollService()
|
||||
editor.clipboard_write = false
|
||||
if photo_waiting && AppSupports("media.pick.status") {
|
||||
DiaryPicked(AppService("media.pick.status", ""))
|
||||
}
|
||||
entry.action = DIARY_FRAME
|
||||
entry = DiaryView(entry, editor, Today())
|
||||
editor = DiaryObservedFrame()
|
||||
if entry.action != DIARY_FRAME { entry = Apply(entry) }
|
||||
if editor.undo_requested { DiaryHistoryApply(false) }
|
||||
if editor.redo_requested { DiaryHistoryApply(true) }
|
||||
DiarySpellingRequest()
|
||||
if editor.photo_requested && AppSupports("media.pick") {
|
||||
entry = Save(entry)
|
||||
if entry.saved {
|
||||
photo_day = Date.{entry.year, entry.month, entry.day}
|
||||
DiaryPicked(AppService("media.pick", AppLocale("diary_attach_photo")))
|
||||
if message.action == DIARY_FRAME {
|
||||
message.succeeded = true
|
||||
message = DiaryView(message, DiaryObserve(), Today())
|
||||
if message.action != DIARY_FRAME {
|
||||
message = Apply(message)
|
||||
}
|
||||
// A quiet editor saves after its typing delay; file errors stay visible.
|
||||
if !message.saved && DiarySaveDue() {
|
||||
message = Save(message)
|
||||
}
|
||||
WriteDiaryHost(message)
|
||||
} else {
|
||||
WriteDiaryHost(Apply(message))
|
||||
}
|
||||
if editor.clipboard_write {
|
||||
unused ClipboardCopy(editor.clipboard_text, 0)
|
||||
}
|
||||
if !entry.saved && editor.now >= editor.save_at { entry = Save(entry) }
|
||||
if loaded && !entry.load_error {
|
||||
DiaryHistoryObserve(*history, entry.year, entry.month, entry.day, entry.text, editor.now, true)
|
||||
}
|
||||
AppKeyboard(editor.focused)
|
||||
return 0
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
// Diary decides whether a saved document contains a real entry or a valid
|
||||
// account photo. Achievement facts contain only its date and photo flag.
|
||||
#import "std/json_scan"
|
||||
#import "std/text_buffer"
|
||||
#import "std/byte_text_linux"
|
||||
#import "std/vec"
|
||||
#import, file "diary_markdown.zi";
|
||||
#import, file "../../src/storage/achievements.zi";
|
||||
#import, file "../../src/storage/achievement_records.zi";
|
||||
#import, file "../../src/storage/sqlite.zi";
|
||||
#import, file "../../src/storage/db.zi";
|
||||
#import, file "../../src/storage/state.zi";
|
||||
#import, file "../../src/storage/storage_core.zi";
|
||||
#import, file "../../src/storage/cell_records.zi";
|
||||
#import, file "../../src/cells/diary_records.zi";
|
||||
#import, file "../../src/cells/media_store.zi";
|
||||
#import, file "../../src/cells/package_files.zi";
|
||||
#import, file "../../src/app/text_buffers.zi";
|
||||
|
||||
AchievementDiaryPhoto :: (target: string, library: bool) -> bool {
|
||||
if library {
|
||||
hash := MediaPlaceHash(target)
|
||||
if hash == "" { return false }
|
||||
item := MediaRead(hash)
|
||||
return item.valid && !item.trashed
|
||||
}
|
||||
if !DiaryFileNameValid(target) { return false }
|
||||
key := DiaryRecordKey(target)
|
||||
record := CellRecordRead(key)
|
||||
defer { PackageFree(key); PackageFree(record) }
|
||||
return DiaryMediaParse(record).valid
|
||||
}
|
||||
|
||||
AchievementDiarySaved :: (name: string, document: string, live: bool = true) {
|
||||
if name.count != 15 || name[10:] != ".json" { return }
|
||||
day := AchievementParseDay(name[:10])
|
||||
if day == 0 || document.count > 16777216 { return }
|
||||
photo := false
|
||||
qualified := false
|
||||
defer {
|
||||
unused AchievementRecord("diary", name, day, 1, ifx photo then "photo" else "", "", true, live, !qualified)
|
||||
}
|
||||
end := ValueEnd(document, Space(document, 0), 0)
|
||||
if end < 0 || Space(document, end) != document.count { return }
|
||||
version := ReadNumber(document, FieldAt(document, 0, "version"))
|
||||
date: [11]u8
|
||||
if !version.valid || version.value != 1 ||
|
||||
ReadStringText(document, FieldAt(document, 0, "date"), date[:]) != 10 ||
|
||||
TextUntilNul(date[:]) != name[:10] { return }
|
||||
decoded := ReadStringValue(document, FieldAt(document, 0, "text"), 16777216)
|
||||
if !decoded.valid { return }
|
||||
text := BuilderFinish(decoded.value)
|
||||
defer { PackageFree(text) }
|
||||
authored := false
|
||||
offset: s32 = 0
|
||||
while offset < text.count {
|
||||
embed := DiaryEmbedAt(text, offset)
|
||||
if embed.valid {
|
||||
if AchievementDiaryPhoto(DiaryEmbedTarget(text, embed), embed.library) { photo = true }
|
||||
offset = embed.end
|
||||
continue
|
||||
}
|
||||
// A broken image by itself is not authored journal text.
|
||||
if text[offset] == #char "!" && offset + 1 < text.count && text[offset + 1] == #char "[" {
|
||||
while offset < text.count && text[offset] != cast(u8)10 { offset += 1 }
|
||||
continue
|
||||
}
|
||||
byte := text[offset]
|
||||
if byte > cast(u8)32 && byte != #char "*" && byte != #char "_" && byte != #char "#" &&
|
||||
byte != #char ">" && byte != #char "`" && byte != #char "~" && byte != #char "-" { authored = true }
|
||||
offset += 1
|
||||
}
|
||||
old_photos := FieldAt(document, 0, "photos")
|
||||
for index: cast(s32)0..ArrayCount(document, old_photos) - 1 {
|
||||
row := ElementAt(document, old_photos, index)
|
||||
file: [201]u8
|
||||
if ReadStringText(document, FieldAt(document, row, "file"), file[:]) > 0 &&
|
||||
AchievementDiaryPhoto(TextUntilNul(file[:]), false) { photo = true }
|
||||
}
|
||||
qualified = authored || photo
|
||||
}
|
||||
|
||||
AchievementDiaryBackfill :: (offset: s32) -> s32 {
|
||||
statement: *void
|
||||
if SqlitePrepareText(storage_db_handle(),
|
||||
"SELECT substr(key,17) FROM settings WHERE user_id=?1 AND key GLOB 'cell.diary.file.????-??-??.json' ORDER BY key LIMIT 128 OFFSET ?2",
|
||||
-1, *statement, null) != SQLITE_OK { return -1 }
|
||||
defer { SqliteFinalize(statement) }
|
||||
bind_text(statement, 1, AchievementOwner())
|
||||
SqliteBindInt(statement, 2, offset)
|
||||
rows: s32 = 0
|
||||
while SqliteStep(statement) == SQLITE_ROW {
|
||||
name := AppTextFromCString(SqliteColumnText(statement, 0), 96)
|
||||
document := DiaryRecordRead(name)
|
||||
AchievementDiarySaved(name, document, false)
|
||||
PackageFree(document)
|
||||
rows += 1
|
||||
}
|
||||
return rows
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,111 +0,0 @@
|
||||
// Images never go to the spelling service, wherever they stand in a line:
|
||||
// each `` is sent as one object replacement character, U+FFFC,
|
||||
// so photo names, places and hashes stay on this device. The correction
|
||||
// gets each image back at its mark, in order. A correction that lost or
|
||||
// added a mark cannot be matched to the images, so it is refused.
|
||||
#import "vec"
|
||||
#import "text"
|
||||
#import "byte_text_linux"
|
||||
|
||||
DIARY_SPELLING_MARK :: "\xEF\xBF\xBC"
|
||||
|
||||
DiarySpellingLineEnd :: (text: string, start: s64) -> s64 {
|
||||
end := start
|
||||
while end < text.count && text[end] != cast(u8)10 {
|
||||
end += 1
|
||||
}
|
||||
return end
|
||||
}
|
||||
|
||||
// Where an image that starts at `at` ends, after its closing parenthesis,
|
||||
// or -1. It is read generously, `` on the same line,
|
||||
// so that whatever a destination holds stays masked.
|
||||
DiarySpellingImageEnd :: (text: string, at: s64) -> s64 {
|
||||
if at + 1 >= text.count || text[at] != cast(u8)33 || text[at + 1] != cast(u8)91 {
|
||||
return -1
|
||||
}
|
||||
line_end := DiarySpellingLineEnd(text, at)
|
||||
cursor := at + 2
|
||||
while cursor + 1 < line_end && (text[cursor] != cast(u8)93 || text[cursor + 1] != cast(u8)40) {
|
||||
cursor += 1
|
||||
}
|
||||
if cursor + 1 >= line_end {
|
||||
return -1
|
||||
}
|
||||
cursor += 2
|
||||
while cursor < line_end && text[cursor] != cast(u8)41 {
|
||||
cursor += 1
|
||||
}
|
||||
if cursor >= line_end {
|
||||
return -1
|
||||
}
|
||||
return cursor + 1
|
||||
}
|
||||
|
||||
// Whether a mark the text already holds starts at `at`.
|
||||
DiarySpellingMarkAt :: (text: string, at: s64) -> bool {
|
||||
mark := DIARY_SPELLING_MARK
|
||||
return at + mark.count <= text.count && text[at:at + mark.count] == mark
|
||||
}
|
||||
|
||||
// The bytes the mark at `at` stands for, ending where the next byte to read
|
||||
// is, or -1 when no mark starts there. A mark the entry held itself stands
|
||||
// for itself.
|
||||
DiarySpellingMasks :: (text: string, at: s64) -> s64 {
|
||||
if DiarySpellingMarkAt(text, at) {
|
||||
return at + DIARY_SPELLING_MARK.count
|
||||
}
|
||||
return DiarySpellingImageEnd(text, at)
|
||||
}
|
||||
|
||||
// The entry as the spelling service sees it: each image one mark.
|
||||
DiarySpellingMasked :: (text: string) -> string {
|
||||
out: Vec(u8)
|
||||
at: s64 = 0
|
||||
while at < text.count {
|
||||
end := DiarySpellingMasks(text, at)
|
||||
if end > at {
|
||||
BuilderPrint(*out, "%", DIARY_SPELLING_MARK)
|
||||
at = end
|
||||
continue
|
||||
}
|
||||
unused VecPush(out, text[at])
|
||||
at += 1
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The correction with the original images back at their marks, or "" when
|
||||
// its marks no longer match the entry's.
|
||||
DiarySpellingRestored :: (original: string, corrected: string) -> string {
|
||||
out: Vec(u8)
|
||||
source: s64 = 0
|
||||
at: s64 = 0
|
||||
while at < corrected.count {
|
||||
if !DiarySpellingMarkAt(corrected, at) {
|
||||
unused VecPush(out, corrected[at])
|
||||
at += 1
|
||||
continue
|
||||
}
|
||||
// The next mark of the original and what it stands for.
|
||||
while source < original.count && DiarySpellingMasks(original, source) < 0 {
|
||||
source += 1
|
||||
}
|
||||
if source >= original.count {
|
||||
VecFree(out)
|
||||
return ""
|
||||
}
|
||||
end := DiarySpellingMasks(original, source)
|
||||
BuilderPrint(*out, "%", original[source:end])
|
||||
source = end
|
||||
at += DIARY_SPELLING_MARK.count
|
||||
}
|
||||
while source < original.count && DiarySpellingMasks(original, source) < 0 {
|
||||
source += 1
|
||||
}
|
||||
if source < original.count {
|
||||
VecFree(out)
|
||||
return ""
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
|
||||
DIARY_ROUTE :: 1
|
||||
DIARY_LOAD :: 2
|
||||
DIARY_SAVE :: 3
|
||||
DIARY_CONTROL :: 4
|
||||
DIARY_EDIT :: 5
|
||||
DIARY_ATTACH :: 6
|
||||
DIARY_FRAME :: 7
|
||||
|
||||
DiaryMessage :: struct {
|
||||
abi: s32
|
||||
action: s32
|
||||
control: s32
|
||||
year: s32
|
||||
month: s32
|
||||
day: s32
|
||||
month_year: s32
|
||||
month_number: s32
|
||||
month_days: s32
|
||||
month_weekday: s32
|
||||
screen: s32
|
||||
text: string
|
||||
document: string
|
||||
replacement: string
|
||||
edit_start: s32
|
||||
edit_end: s32
|
||||
cursor: s32
|
||||
anchor: s32
|
||||
// A photo for DIARY_ATTACH to embed at the caret: what the embed links
|
||||
// to, diary:FILE or a library photo's photos/YYYY/MM/DD/<sha256>.<type>,
|
||||
// and its name.
|
||||
attachment_file: string
|
||||
attachment_name: string
|
||||
calendar: bool
|
||||
saved: bool
|
||||
load_error: bool
|
||||
succeeded: bool
|
||||
marks: [32]u8
|
||||
}
|
||||
|
||||
DiaryFileResult :: struct {
|
||||
data: string
|
||||
missing: bool
|
||||
succeeded: bool
|
||||
}
|
||||
|
||||
DiaryMediaEntry :: struct {
|
||||
hash: string
|
||||
name: string
|
||||
day: string
|
||||
format: string
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
#import "session"
|
||||
#import "text_input_props"
|
||||
|
||||
// Device observations and retained editor values, never native pointers.
|
||||
DiaryUiFrame :: struct {
|
||||
session: Session
|
||||
origin_x: s32
|
||||
origin_y: s32
|
||||
width: s32
|
||||
height: s32
|
||||
bottom: s32
|
||||
scale: float32
|
||||
font: s32
|
||||
now: float64
|
||||
input: TextAreaInput
|
||||
focused: bool
|
||||
selecting: bool
|
||||
scroll: s32
|
||||
calendar_scroll: s32
|
||||
page_scroll: s32
|
||||
// How far the day's photos under the entry are scrolled sideways, and
|
||||
// the day whose gallery is open (year * 10000 + month * 100 + day), or 0.
|
||||
photos_scroll: s32
|
||||
photos_open_day: s32
|
||||
save_at: float64
|
||||
photo_error: bool
|
||||
photo_requested: bool
|
||||
// The theme's colors for links and for list and quote marks in the
|
||||
// entry's Markdown.
|
||||
link_color: u32
|
||||
muted_color: u32
|
||||
clipboard_write: bool
|
||||
clipboard_text: string
|
||||
// Undo, redo and spelling run in the host, which keeps the entry's
|
||||
// earlier versions and reaches the node.
|
||||
can_undo: bool
|
||||
can_redo: bool
|
||||
undo_requested: bool
|
||||
redo_requested: bool
|
||||
spelling_requested: bool
|
||||
spelling_busy: bool
|
||||
// A locale key while a spelling check has something to say.
|
||||
spelling_notice: string
|
||||
}
|
||||
+115
-308
@@ -5,7 +5,6 @@
|
||||
#import "layout"
|
||||
#import "text_props"
|
||||
#import "text_widget"
|
||||
#import "text_measure"
|
||||
#import "text_input_props"
|
||||
#import "text_area_widget"
|
||||
#import "button_props"
|
||||
@@ -20,48 +19,19 @@
|
||||
#import "byte_text_linux"
|
||||
#import "scroll_props"
|
||||
#import "scroll_widget"
|
||||
#import "press_props"
|
||||
#import "press_widget"
|
||||
#import "tree"
|
||||
#import, file "diary_markdown.zi";
|
||||
#import, file "diary_types.zi";
|
||||
#import, file "diary_ui_types.zi";
|
||||
#import "kryon/app_context"
|
||||
#import "json_scan"
|
||||
#import, file "diary_wire.zi";
|
||||
#import, file "../../src/cells/diary_types.zi";
|
||||
#import, file "../../src/cells/diary_ui_types.zi";
|
||||
|
||||
using ImageFit;
|
||||
using TextAlign;
|
||||
using TextWrap;
|
||||
using ButtonTone;
|
||||
using ButtonEmphasis;
|
||||
using IconPlacement;
|
||||
using ContentAlignment;
|
||||
library_json: string;
|
||||
|
||||
DiaryPhoto :: (destination: string) -> string {
|
||||
if !AppSupports("media.asset") { return "" }
|
||||
return AppService("media.asset", destination)
|
||||
}
|
||||
|
||||
DiaryMediaQuery :: (day: string, trashed: bool) -> s32 {
|
||||
library_json = "[]"
|
||||
if AppSupports("media.query") {
|
||||
library_json = AppService("media.query", day)
|
||||
}
|
||||
count := ArrayCount(library_json, 0)
|
||||
return ifx count >= 0 then count else 0
|
||||
}
|
||||
|
||||
DiaryMediaItem :: (index: s32) -> DiaryMediaEntry {
|
||||
item := ElementAt(library_json, 0, index)
|
||||
return DiaryMediaEntry.{
|
||||
.hash = DiaryWireString(library_json, FieldAt(library_json, item, "hash")),
|
||||
.name = DiaryWireString(library_json, FieldAt(library_json, item, "name")),
|
||||
.day = DiaryWireString(library_json, FieldAt(library_json, item, "day")),
|
||||
.format = DiaryWireString(library_json, FieldAt(library_json, item, "format"))}
|
||||
}
|
||||
|
||||
host_api :: #system_library "host_api";
|
||||
ReadDiaryUiHost :: () -> DiaryUiFrame #foreign host_api;
|
||||
WriteDiaryUiHost :: (frame: DiaryUiFrame) #foreign host_api;
|
||||
DiaryLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
state: DiaryMessage;
|
||||
frame: DiaryUiFrame;
|
||||
pending: bool;
|
||||
@@ -74,245 +44,60 @@ DIARY_PHOTO_ICON :: "S1.6rr:M3 5H21V19H3ZM3 16L8 11L13 16L16 13L21 18M17.5 8.5C1
|
||||
DIARY_UNDO_ICON :: "S1.8rr:M9 14L4 9L9 4M4 9H14C17.31 9 20 11.69 20 15C20 18.31 17.31 21 14 21H11"
|
||||
DIARY_REDO_ICON :: "S1.8rr:M15 14L20 9L15 4M20 9H10C6.69 9 4 11.69 4 15C4 18.31 6.69 21 10 21H13"
|
||||
DIARY_SPELLING_ICON :: "S2rr:M3 14L7.5 3L12 14M4.8 10H10.2M12 17L15.5 20.5L21.5 13"
|
||||
// The gallery row's chevron points down while the photos are hidden.
|
||||
DIARY_SHOW_ICON :: "S1.8rr:M6 9L12 15L18 9"
|
||||
DIARY_HIDE_ICON :: "S1.8rr:M6 15L12 9L18 15"
|
||||
|
||||
DiaryObservedFrame :: () -> DiaryUiFrame {
|
||||
return frame
|
||||
DiaryObserve :: () -> DiaryUiFrame {
|
||||
return ReadDiaryUiHost()
|
||||
}
|
||||
|
||||
DiarySaveDue :: () -> bool {
|
||||
return frame.now >= frame.save_at
|
||||
}
|
||||
|
||||
// The entry previews its Markdown (diary_markdown.zi): away from the lines
|
||||
// holding the caret or a selection, markers are hidden, emphasis is bold or
|
||||
// slanted, headings are larger, links and list and quote marks take their
|
||||
// colors, and a photo's embed line shows the photo in its place. On the
|
||||
// caret's line the Markdown shows as typed, with the photo under it.
|
||||
DIARY_HEADING_SCALES: [6]float32 = .[1.6, 1.4, 1.25, 1.1, 1.0, 1.0];
|
||||
editor_preview: DiaryPreview;
|
||||
editor_blocks: [DIARY_PREVIEW_PHOTOS]TextAreaBlock;
|
||||
editor_lines: [DIARY_PREVIEW_HEADINGS]TextAreaLine;
|
||||
editor_colors: [DIARY_PREVIEW_TONES]TextAreaColorSpan;
|
||||
// Markdown bold reads as bold text. Its ** markers stay in the entry but are
|
||||
// hidden, except on the lines holding the caret or a selection, where they
|
||||
// can be edited directly.
|
||||
DIARY_EMPHASIS_MAX :: 256
|
||||
emphasis_hidden: [DIARY_EMPHASIS_MAX * 2]TextRange;
|
||||
emphasis_strong: [DIARY_EMPHASIS_MAX]TextRange;
|
||||
emphasis_hidden_count: s32;
|
||||
emphasis_strong_count: s32;
|
||||
|
||||
// A copy the view owns of text a host call answered. The host answers in its
|
||||
// own buffers, which its next call may overwrite.
|
||||
DiaryKept :: (value: string) -> string {
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", value)
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// A photo's height in the entry: three quarters of its width, within limits
|
||||
// that keep a few lines of text in view on a phone.
|
||||
DiaryPhotoHeight :: (width: float32) -> s32 {
|
||||
height := cast(s32)(width * 0.75)
|
||||
if height > Scale(360) {
|
||||
height = Scale(360)
|
||||
}
|
||||
if height < Scale(120) {
|
||||
height = Scale(120)
|
||||
}
|
||||
return height
|
||||
}
|
||||
|
||||
DiaryEditorStyle :: (area: *TextAreaProps, text: string, editing: bool) {
|
||||
DiaryPreviewScan(*editor_preview, text, area.cursor, area.anchor, editing)
|
||||
area.hidden = editor_preview.hidden[:editor_preview.hidden_count]
|
||||
area.strong = editor_preview.strong[:editor_preview.strong_count]
|
||||
area.italic = editor_preview.italic[:editor_preview.italic_count]
|
||||
colors: s32 = 0
|
||||
for index: cast(s32)0..editor_preview.tone_count - 1 {
|
||||
tone := editor_preview.tones[index]
|
||||
color := ifx tone.tone == DIARY_TONE_LINK then frame.link_color else frame.muted_color
|
||||
if color == cast(u32)0 {
|
||||
continue
|
||||
DiaryEmphasis :: (value: string, cursor: s32, anchor: s32, editing: bool) {
|
||||
emphasis_hidden_count = 0
|
||||
emphasis_strong_count = 0
|
||||
first := ifx cursor < anchor then cursor else anchor
|
||||
last := ifx cursor < anchor then anchor else cursor
|
||||
line: s32 = 0
|
||||
while line <= cast(s32)value.count && emphasis_strong_count < DIARY_EMPHASIS_MAX {
|
||||
end := line
|
||||
while end < cast(s32)value.count && value[end] != cast(u8)10 { end += 1 }
|
||||
active := editing && last >= line && first <= end
|
||||
at := line
|
||||
while at + 1 < end && emphasis_strong_count < DIARY_EMPHASIS_MAX {
|
||||
if value[at] != cast(u8)42 || value[at + 1] != cast(u8)42 {
|
||||
at += 1
|
||||
continue
|
||||
}
|
||||
close := at + 2
|
||||
while close + 1 < end && (value[close] != cast(u8)42 || value[close + 1] != cast(u8)42) {
|
||||
close += 1
|
||||
}
|
||||
if close + 1 >= end {
|
||||
break
|
||||
}
|
||||
if close > at + 2 {
|
||||
emphasis_strong[emphasis_strong_count] = TextRange.{.start = at + 2, .end = close}
|
||||
emphasis_strong_count += 1
|
||||
if !active {
|
||||
emphasis_hidden[emphasis_hidden_count] = TextRange.{.start = at, .end = at + 2}
|
||||
emphasis_hidden[emphasis_hidden_count + 1] = TextRange.{.start = close, .end = close + 2}
|
||||
emphasis_hidden_count += 2
|
||||
}
|
||||
}
|
||||
at = close + 2
|
||||
}
|
||||
editor_colors[colors] = TextAreaColorSpan.{.start = tone.start, .end = tone.end, .color = color}
|
||||
colors += 1
|
||||
line = end + 1
|
||||
}
|
||||
area.colors = editor_colors[:colors]
|
||||
lines: s32 = 0
|
||||
for index: cast(s32)0..editor_preview.heading_count - 1 {
|
||||
heading := editor_preview.headings[index]
|
||||
scale := DIARY_HEADING_SCALES[heading.level - 1]
|
||||
if scale <= 1.0 {
|
||||
continue
|
||||
}
|
||||
editor_lines[lines] = TextAreaLine.{.start = heading.start, .scale = scale}
|
||||
lines += 1
|
||||
}
|
||||
area.lines = editor_lines[:lines]
|
||||
height := DiaryPhotoHeight(area.bounds.width)
|
||||
unavailable := AppLocale("diary_photo_unavailable")
|
||||
for index: cast(s32)0..editor_preview.photo_count - 1 {
|
||||
block := editor_preview.photos[index]
|
||||
embed := block.embed
|
||||
editor_blocks[index] = TextAreaBlock.{.start = embed.line_start, .height = height,
|
||||
.cover = block.cover, .image = DiaryKept(DiaryPhoto(DiaryEmbedDestination(text, embed))),
|
||||
.label = unavailable}
|
||||
}
|
||||
area.blocks = editor_blocks[:editor_preview.photo_count]
|
||||
}
|
||||
|
||||
// Under the entry, a Show gallery row opens every photo of the day in one
|
||||
// row that scrolls sideways: the media library's photos of that day, newest
|
||||
// first, then the entry's other photos in its order. A tap puts a photo's
|
||||
// embed at the caret. The gallery starts closed whenever a day opens.
|
||||
DIARY_DAY_PHOTOS :: 64
|
||||
DIARY_TILE :: 88
|
||||
DIARY_GALLERY_ROW :: 44
|
||||
// Room under the photos for the gallery's scrollbar, so it does not cover
|
||||
// them.
|
||||
DIARY_GALLERY_BAR :: 12
|
||||
|
||||
DiaryDayPhoto :: struct {
|
||||
// What an embed of the photo links to.
|
||||
destination: string
|
||||
name: string
|
||||
// Its preview, or "" while the photo is not on this device.
|
||||
asset: string
|
||||
}
|
||||
|
||||
day_photos: [DIARY_DAY_PHOTOS]DiaryDayPhoto;
|
||||
day_photo_count: s32;
|
||||
|
||||
// A photo is listed once: by what it links to, or by the picture it draws,
|
||||
// since a Diary file the library keeps too draws as the library's photo.
|
||||
DiaryDayPhotoKnown :: (destination: string, asset: string) -> bool {
|
||||
for index: cast(s32)0..day_photo_count - 1 {
|
||||
if day_photos[index].destination == destination {
|
||||
return true
|
||||
}
|
||||
if asset.count > 0 && day_photos[index].asset == asset {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
DiaryDayPhotoAdd :: (destination: string, name: string) {
|
||||
if destination.count == 0 || day_photo_count >= DIARY_DAY_PHOTOS {
|
||||
return
|
||||
}
|
||||
asset := DiaryPhoto(destination)
|
||||
if DiaryDayPhotoKnown(destination, asset) {
|
||||
return
|
||||
}
|
||||
day_photos[day_photo_count] = DiaryDayPhoto.{.destination = destination,
|
||||
.name = DiaryKept(name), .asset = DiaryKept(asset)}
|
||||
day_photo_count += 1
|
||||
}
|
||||
|
||||
DiaryDayPhotos :: (text: string) {
|
||||
day_photo_count = 0
|
||||
if state.load_error || state.year <= 0 {
|
||||
return
|
||||
}
|
||||
count := DiaryMediaQuery(ISO(Date.{state.year, state.month, state.day}), false)
|
||||
for index: cast(s32)0..count - 1 {
|
||||
if day_photo_count >= DIARY_DAY_PHOTOS {
|
||||
break
|
||||
}
|
||||
entry := DiaryMediaItem(index)
|
||||
DiaryDayPhotoAdd(DiaryLibraryPath(entry.day, entry.hash, entry.format), entry.name)
|
||||
}
|
||||
embed := DiaryEmbedNext(text, 0)
|
||||
while embed.valid && day_photo_count < DIARY_DAY_PHOTOS {
|
||||
DiaryDayPhotoAdd(DiaryEmbedDestination(text, embed), DiaryEmbedAlt(text, embed))
|
||||
embed = DiaryEmbedNext(text, embed.end)
|
||||
}
|
||||
}
|
||||
|
||||
// The open gallery remembers its day, so another day opens with it closed.
|
||||
DiaryDayKey :: () -> s32 {
|
||||
return state.year * 10000 + state.month * 100 + state.day
|
||||
}
|
||||
|
||||
DiaryGalleryOpen :: () -> bool {
|
||||
return frame.photos_open_day != 0 && frame.photos_open_day == DiaryDayKey()
|
||||
}
|
||||
|
||||
// The room the gallery takes under the entry, or 0 on a day without photos.
|
||||
DiaryDayPhotosHeight :: () -> s32 {
|
||||
if day_photo_count == 0 {
|
||||
return 0
|
||||
}
|
||||
height := Scale(12) + Scale(DIARY_GALLERY_ROW)
|
||||
if DiaryGalleryOpen() {
|
||||
height += Scale(8) + Scale(DIARY_TILE) + Scale(DIARY_GALLERY_BAR)
|
||||
}
|
||||
return height
|
||||
}
|
||||
|
||||
// Puts a photo's embed on its own line at the caret: one edit, saved at once.
|
||||
DiaryInsertPhoto :: (destination: string, name: string) {
|
||||
line := DiaryEmbedLine(destination, name)
|
||||
edit := DiaryEmbedInsertion(state.text, state.cursor, line)
|
||||
state.action = DIARY_EDIT
|
||||
state.edit_start = edit.start
|
||||
state.edit_end = edit.end
|
||||
state.replacement = edit.replacement
|
||||
pending = true
|
||||
frame.save_at = frame.now
|
||||
}
|
||||
|
||||
// The gallery row, a dropdown as Habits' inactive habits are, and under it
|
||||
// the open gallery.
|
||||
DiaryDayGallery :: (left: float32, top: float32, width: float32, editable: bool) {
|
||||
open := DiaryGalleryOpen()
|
||||
row := cast(float32)Scale(DIARY_GALLERY_ROW)
|
||||
label := AppLocale("diary_show_gallery")
|
||||
if open {
|
||||
label = AppLocale("diary_hide_gallery")
|
||||
}
|
||||
if Button(frame.session, ButtonProps.{.id = 29017, .bounds = Rectangle.{left, top, width, row},
|
||||
.label = label, .icon_shape = ifx open then DIARY_HIDE_ICON else DIARY_SHOW_ICON,
|
||||
.icon_placement = cast(IconPlacement)IconPlacementTrailing,
|
||||
.content_alignment = cast(ContentAlignment)ContentAlignmentStart,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
|
||||
frame.photos_open_day = ifx open then 0 else DiaryDayKey()
|
||||
frame.photos_scroll = 0
|
||||
}
|
||||
if open {
|
||||
DiaryDayPhotoStrip(left, top + row + cast(float32)Scale(8), width, editable)
|
||||
}
|
||||
}
|
||||
|
||||
DiaryDayPhotoStrip :: (left: float32, top: float32, width: float32, editable: bool) {
|
||||
tile := cast(float32)Scale(DIARY_TILE)
|
||||
gap := cast(float32)Scale(8)
|
||||
content := cast(s32)(cast(float32)day_photo_count * (tile + gap) - gap)
|
||||
bar := cast(float32)Scale(DIARY_GALLERY_BAR)
|
||||
strip := Scroll(frame.session, ScrollProps.{.key = cast(u64)290302, .horizontal = true,
|
||||
.bounds = Rectangle.{left, top, width, tile + bar}, .content_width = content,
|
||||
.content_height = cast(s32)tile, .scroll_offset = frame.photos_scroll})
|
||||
frame.photos_scroll = strip.scroll_offset
|
||||
if !strip.opened {
|
||||
return
|
||||
}
|
||||
for index: cast(s32)0..day_photo_count - 1 {
|
||||
photo := day_photos[index]
|
||||
bounds := Rectangle.{strip.content.x + cast(float32)index * (tile + gap),
|
||||
strip.content.y, tile, tile}
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)(292000 + index), .bounds = bounds,
|
||||
.fill = Color.{156, 156, 156, 36}, .radius = cast(float32)Scale(6)})
|
||||
if photo.asset.count > 0 {
|
||||
Image(frame.session, ImageProps.{.key = cast(u64)(292100 + index),
|
||||
.asset_path = photo.asset, .alt_text = photo.name, .bounds = bounds,
|
||||
.fit = cast(ImageFit)ImageFitCover, .smooth = true})
|
||||
}
|
||||
press := Press(frame.session, PressProps.{.key = cast(u64)(292200 + index),
|
||||
.id = 292200 + index, .bounds = bounds, .label = photo.name, .now = frame.now,
|
||||
.disabled = !editable})
|
||||
if press.clicked && !pending {
|
||||
DiaryInsertPhoto(photo.destination, photo.name)
|
||||
}
|
||||
}
|
||||
End(frame.session)
|
||||
}
|
||||
|
||||
DateTitle :: (year: s32, month: s32, day: s32) -> string {
|
||||
@@ -320,7 +105,7 @@ DateTitle :: (year: s32, month: s32, day: s32) -> string {
|
||||
keys: [12]string = .["habit_month_1", "habit_month_2", "habit_month_3",
|
||||
"habit_month_4", "habit_month_5", "habit_month_6", "habit_month_7",
|
||||
"habit_month_8", "habit_month_9", "habit_month_10", "habit_month_11", "habit_month_12"]
|
||||
month_text := AppLocale(keys[month - 1])
|
||||
month_text := DiaryLocaleHost(keys[month - 1])
|
||||
title: Vec(u8)
|
||||
eastern := month_text.count >= 2 && month_text[:2] == "%d"
|
||||
if day > 0 && !eastern { BuilderPrint(*title, "% ", day) }
|
||||
@@ -356,6 +141,7 @@ Scale :: (value: s32) -> s32 {
|
||||
}
|
||||
|
||||
FinishView :: () -> DiaryMessage {
|
||||
WriteDiaryUiHost(frame)
|
||||
return state
|
||||
}
|
||||
|
||||
@@ -390,8 +176,6 @@ DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true
|
||||
state.control = id
|
||||
pending = true
|
||||
frame.scroll = 0
|
||||
frame.photos_scroll = 0
|
||||
frame.photos_open_day = 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -399,34 +183,27 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
state = message
|
||||
frame = observed
|
||||
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
|
||||
left := cast(float32)(column.x + frame.origin_x)
|
||||
left := cast(float32)column.x
|
||||
width := cast(float32)column.width
|
||||
part := (width - cast(float32)Scale(12)) / 3.0
|
||||
compact := frame.height < Scale(480)
|
||||
top := cast(float32)(frame.origin_y + ifx compact then Scale(4) else Scale(12))
|
||||
top := cast(float32)(ifx compact then Scale(4) else Scale(12))
|
||||
control := cast(float32)Scale(44)
|
||||
gap := cast(float32)Scale(8)
|
||||
|
||||
// Title bar: the selected date with the previous and next day right
|
||||
// beside it, centered together.
|
||||
title := DateTitle(state.year, state.month, state.day)
|
||||
title_font := frame.font + Scale(4)
|
||||
title_width := cast(float32)TextWidth(frame.session, TextProps.{.text = title, .font = title_font})
|
||||
if title_width > width - 2.0 * (control + gap) {
|
||||
title_width = width - 2.0 * (control + gap)
|
||||
}
|
||||
title_left := left + (width - title_width) / 2.0
|
||||
DiaryAction(29001, "‹", Rectangle.{title_left - gap - control, top, control, control},
|
||||
true, DIARY_PREVIOUS_ICON)
|
||||
DiaryAction(29002, "›", Rectangle.{title_left + title_width + gap, top, control, control},
|
||||
// Title bar: the selected date, centered between the previous and next day.
|
||||
DiaryAction(29001, "‹", Rectangle.{left, top, control, control}, true, DIARY_PREVIOUS_ICON)
|
||||
DiaryAction(29002, "›", Rectangle.{left + width - control, top, control, control},
|
||||
OnOrBefore(Next(Date.{state.year, state.month, state.day}, 1), today) &&
|
||||
!OnOrBefore(today, Date.{state.year, state.month, state.day}),
|
||||
DIARY_NEXT_ICON)
|
||||
title := DateTitle(state.year, state.month, state.day)
|
||||
title_strong: [1]TextRange = .[TextRange.{.start = 0, .end = cast(s32)title.count}]
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{title_left, top, title_width, control},
|
||||
.text = title, .font = title_font, .strong = title_strong[:],
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left + control + gap, top,
|
||||
width - 2.0 * (control + gap), control}, .text = title,
|
||||
.font = frame.font + Scale(4), .strong = title_strong[:],
|
||||
.align = cast(TextAlign)TextAlignCenter, .vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
|
||||
// Tools: Today and the calendar move between days; undo, redo, spelling,
|
||||
// the time and photos change the entry. Today narrows on phones so every
|
||||
@@ -443,28 +220,28 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
if today_width > cast(float32)Scale(128) {
|
||||
today_width = cast(float32)Scale(128)
|
||||
}
|
||||
DiaryAction(29004, AppLocale("diary_today"), Rectangle.{left, tools, today_width, control})
|
||||
DiaryAction(29003, AppLocale("tab_diary_calendar"),
|
||||
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left, tools, today_width, control})
|
||||
DiaryAction(29003, DiaryLocaleHost("tab_diary_calendar"),
|
||||
Rectangle.{left + today_width + gap, tools, tool, control},
|
||||
true, DIARY_CALENDAR_ICON, state.calendar)
|
||||
editable := !state.load_error && state.year > 0
|
||||
if !state.calendar {
|
||||
idle := editable && !frame.spelling_busy
|
||||
DiaryAction(29014, AppLocale("diary_undo"),
|
||||
DiaryAction(29014, DiaryLocaleHost("diary_undo"),
|
||||
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, tools, tool, control},
|
||||
idle && frame.can_undo, DIARY_UNDO_ICON)
|
||||
DiaryAction(29015, AppLocale("diary_redo"),
|
||||
DiaryAction(29015, DiaryLocaleHost("diary_redo"),
|
||||
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, tools, tool, control},
|
||||
idle && frame.can_redo, DIARY_REDO_ICON)
|
||||
DiaryAction(29016, AppLocale("diary_check_spelling"),
|
||||
DiaryAction(29016, DiaryLocaleHost("diary_check_spelling"),
|
||||
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, tools, tool, control},
|
||||
idle && HasWords(state.text) && AppSupports("text.correct.start"), DIARY_SPELLING_ICON, false, frame.spelling_busy)
|
||||
DiaryAction(29013, AppLocale("diary_insert_time"),
|
||||
idle && HasWords(state.text), DIARY_SPELLING_ICON, false, frame.spelling_busy)
|
||||
DiaryAction(29013, DiaryLocaleHost("diary_insert_time"),
|
||||
Rectangle.{left + width - 2.0 * tool - tool_gap, tools, tool, control},
|
||||
!frame.spelling_busy, DIARY_TIME_ICON)
|
||||
DiaryAction(29005, AppLocale("diary_attach_photo"),
|
||||
DiaryAction(29005, DiaryLocaleHost("diary_attach_photo"),
|
||||
Rectangle.{left + width - tool, tools, tool, control},
|
||||
AppSupports("media.pick"), DIARY_PHOTO_ICON)
|
||||
true, DIARY_PHOTO_ICON)
|
||||
}
|
||||
content := tools + control + cast(float32)Scale(12)
|
||||
content_height := cast(float32)(frame.height - frame.bottom) - content - cast(float32)Scale(16)
|
||||
@@ -491,7 +268,7 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
for day: cast(s32)0..cast(s32)6 {
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left + cast(float32)day * width / 7.0,
|
||||
origin + cast(float32)Scale(52), width / 7.0, cast(float32)Scale(24)},
|
||||
.text = AppLocale(weekdays[day]), .font = frame.font})
|
||||
.text = DiaryLocaleHost(weekdays[day]), .font = frame.font})
|
||||
}
|
||||
for day: cast(s32)1..state.month_days {
|
||||
position := state.month_weekday + day - 1
|
||||
@@ -509,20 +286,18 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
End(frame.session)
|
||||
return FinishView()
|
||||
}
|
||||
// The editor reaches the bottom; a notice and the day's photos take room
|
||||
// below it only while they are shown.
|
||||
// The editor reaches the bottom; a notice takes room below it only while
|
||||
// it is shown.
|
||||
notice := frame.photo_error || state.load_error || frame.spelling_notice != ""
|
||||
notice_room := ifx notice then Scale(60) else 0
|
||||
DiaryDayPhotos(state.text)
|
||||
photos_room := DiaryDayPhotosHeight()
|
||||
editor_height := cast(s32)content_height - notice_room - photos_room
|
||||
editor_height := cast(s32)content_height - notice_room
|
||||
if editor_height < Scale(120) {
|
||||
editor_height = Scale(120)
|
||||
}
|
||||
page := Scroll(frame.session, ScrollProps.{.key = cast(u64)290301,
|
||||
.bounds = Rectangle.{left, content, width, content_height},
|
||||
.content_height = editor_height + notice_room + photos_room,
|
||||
.scroll_offset = frame.page_scroll})
|
||||
.content_height = editor_height + notice_room +
|
||||
(ifx state.photo_count > 0 then Scale(392) else 0), .scroll_offset = frame.page_scroll})
|
||||
frame.page_scroll = page.scroll_offset
|
||||
if !page.opened {
|
||||
return FinishView()
|
||||
@@ -532,7 +307,7 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
area.focus_id = 29020
|
||||
area.bounds = Rectangle.{left, page.content.y, width, cast(float32)editor_height}
|
||||
area.value = state.text
|
||||
area.label = AppLocale("tab_diary")
|
||||
area.label = DiaryLocaleHost("tab_diary")
|
||||
area.wrap = true
|
||||
area.cursor = state.cursor
|
||||
area.anchor = state.anchor
|
||||
@@ -545,7 +320,9 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
area.max_bytes = 2147483646
|
||||
area.max_codepoints = 2147483646
|
||||
area.input = frame.input
|
||||
DiaryEditorStyle(*area, state.text, frame.focused && !area.read_only)
|
||||
DiaryEmphasis(state.text, state.cursor, state.anchor, frame.focused && !area.read_only)
|
||||
area.hidden = emphasis_hidden[:emphasis_hidden_count]
|
||||
area.strong = emphasis_strong[:emphasis_strong_count]
|
||||
edited := TextArea(frame.session, area)
|
||||
state.cursor = edited.cursor
|
||||
state.anchor = edited.anchor
|
||||
@@ -575,11 +352,41 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
|
||||
}
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
|
||||
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
|
||||
.text = AppLocale(status), .font = frame.font})
|
||||
.text = DiaryLocaleHost(status), .font = frame.font})
|
||||
}
|
||||
if photos_room > 0 {
|
||||
DiaryDayGallery(left, area.bounds.y + area.bounds.height +
|
||||
cast(float32)(notice_room + Scale(12)), width, editable && !frame.spelling_busy)
|
||||
if state.photo_count > 0 {
|
||||
photo_top := area.bounds.y + area.bounds.height + cast(float32)(notice_room + Scale(12))
|
||||
photo_bounds := Rectangle.{left, photo_top, width, cast(float32)Scale(240)}
|
||||
if frame.photo_format.count > 0 {
|
||||
path: Vec(u8)
|
||||
BuilderPrint(*path, "diary/photos/%.%", state.photo_file, frame.photo_format)
|
||||
image := BuilderFinish(path)
|
||||
Image(frame.session, ImageProps.{.asset_path = image,
|
||||
.alt_text = state.photo_name,
|
||||
.bounds = photo_bounds,
|
||||
.fit = cast(ImageFit)ImageFitContain})
|
||||
} else {
|
||||
// The entry names a photo whose bytes are not on this device, for
|
||||
// example when a sync node keeps photos off. The entry still works.
|
||||
Box(frame.session, BoxProps.{.key = cast(u64)29011, .bounds = photo_bounds,
|
||||
.fill = Color.{156, 156, 156, 36}, .radius = cast(float32)Scale(12)})
|
||||
Text(frame.session, TextProps.{.key = cast(u64)29012,
|
||||
.text = DiaryLocaleHost("diary_photo_unavailable"),
|
||||
.bounds = Rectangle.{left + cast(float32)Scale(16), photo_top,
|
||||
width - cast(float32)Scale(32), cast(float32)Scale(240)},
|
||||
.font = frame.font, .align = cast(TextAlign)TextAlignCenter,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter})
|
||||
}
|
||||
Text(frame.session, TextProps.{.text = state.photo_name,
|
||||
.bounds = Rectangle.{left, photo_top + cast(float32)Scale(248), width,
|
||||
cast(float32)Scale(32)}, .font = frame.font})
|
||||
DiaryAction(29008, "‹", Rectangle.{left, photo_top + cast(float32)Scale(288),
|
||||
part, cast(float32)Scale(44)})
|
||||
DiaryAction(29010, DiaryLocaleHost("diary_remove_photo"),
|
||||
Rectangle.{left + part + cast(float32)Scale(6), photo_top + cast(float32)Scale(288),
|
||||
part, cast(float32)Scale(44)})
|
||||
DiaryAction(29009, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
|
||||
photo_top + cast(float32)Scale(288), part, cast(float32)Scale(44)})
|
||||
}
|
||||
End(frame.session)
|
||||
return FinishView()
|
||||
|
||||
@@ -1,151 +0,0 @@
|
||||
// App-owned commands shared with callers. Documents retain their existing schema.
|
||||
#import "json_scan"
|
||||
#import "text"
|
||||
#import "vec"
|
||||
#import "byte_text_linux"
|
||||
#import, file "diary_types.zi";
|
||||
|
||||
DiaryWireString :: (text: string, at: s32) -> string {
|
||||
if at < 0 { return "" }
|
||||
bytes: Vec(u8)
|
||||
for index: 0..text.count - 1 { unused VecPush(bytes, cast(u8)0) }
|
||||
count := ReadStringText(text, at, VecSlice(bytes, 0, bytes.count))
|
||||
if count < 0 {
|
||||
VecFree(bytes)
|
||||
return ""
|
||||
}
|
||||
result: Vec(u8)
|
||||
BuilderPrint(*result, "%", TextFromBytes(VecSlice(bytes, 0, count)))
|
||||
VecFree(bytes)
|
||||
return BuilderFinish(result)
|
||||
}
|
||||
|
||||
DiaryWireQuote :: (out: *Vec(u8), value: string) {
|
||||
BuilderPrint(out, "\"")
|
||||
for index: 0..value.count - 1 {
|
||||
byte := value[index]
|
||||
if byte == cast(u8)34 { BuilderPrint(out, "\\\"") }
|
||||
else if byte == cast(u8)92 { BuilderPrint(out, "\\\\") }
|
||||
else if byte == cast(u8)10 { BuilderPrint(out, "\\n") }
|
||||
else if byte == cast(u8)13 { BuilderPrint(out, "\\r") }
|
||||
else if byte == cast(u8)9 { BuilderPrint(out, "\\t") }
|
||||
else if byte < cast(u8)32 {
|
||||
hex := "0123456789abcdef"
|
||||
BuilderPrint(out, "\\u00")
|
||||
unused VecPush(out.*, hex[cast(s64)(byte / cast(u8)16)])
|
||||
unused VecPush(out.*, hex[cast(s64)(byte % cast(u8)16)])
|
||||
}
|
||||
else { BuilderPrint(out, "%", value[index:index + 1]) }
|
||||
}
|
||||
BuilderPrint(out, "\"")
|
||||
}
|
||||
|
||||
DiaryWireNumber :: (text: string, key: string) -> s32 {
|
||||
value := ReadNumber(text, FieldAt(text, 0, key))
|
||||
if !value.valid || value.value < -2147483648.0 || value.value > 2147483647.0 { return 0 }
|
||||
result := cast(s32)value.value
|
||||
return ifx cast(float64)result == value.value then result else 0
|
||||
}
|
||||
|
||||
DiaryWireBool :: (text: string, key: string) -> bool {
|
||||
at := FieldAt(text, 0, key)
|
||||
return at >= 0 && at + 4 <= text.count && text[at:at + 4] == "true"
|
||||
}
|
||||
|
||||
DiaryMessageDecode :: (text: string) -> DiaryMessage {
|
||||
message: DiaryMessage
|
||||
if text.count == 0 || text[0] != cast(u8)123 ||
|
||||
Space(text, ValueEnd(text, 0, 0)) != text.count { return message }
|
||||
message.abi = DiaryWireNumber(text, "abi")
|
||||
message.action = DiaryWireNumber(text, "action")
|
||||
message.control = DiaryWireNumber(text, "control")
|
||||
message.year = DiaryWireNumber(text, "year")
|
||||
message.month = DiaryWireNumber(text, "month")
|
||||
message.day = DiaryWireNumber(text, "day")
|
||||
message.month_year = DiaryWireNumber(text, "month_year")
|
||||
message.month_number = DiaryWireNumber(text, "month_number")
|
||||
message.month_days = DiaryWireNumber(text, "month_days")
|
||||
message.month_weekday = DiaryWireNumber(text, "month_weekday")
|
||||
message.screen = DiaryWireNumber(text, "screen")
|
||||
message.text = DiaryWireString(text, FieldAt(text, 0, "text"))
|
||||
message.document = DiaryWireString(text, FieldAt(text, 0, "document"))
|
||||
message.replacement = DiaryWireString(text, FieldAt(text, 0, "replacement"))
|
||||
message.edit_start = DiaryWireNumber(text, "edit_start")
|
||||
message.edit_end = DiaryWireNumber(text, "edit_end")
|
||||
message.cursor = DiaryWireNumber(text, "cursor")
|
||||
message.anchor = DiaryWireNumber(text, "anchor")
|
||||
message.attachment_file = DiaryWireString(text, FieldAt(text, 0, "attachment_file"))
|
||||
message.attachment_name = DiaryWireString(text, FieldAt(text, 0, "attachment_name"))
|
||||
message.calendar = DiaryWireBool(text, "calendar")
|
||||
message.saved = DiaryWireBool(text, "saved")
|
||||
message.load_error = DiaryWireBool(text, "load_error")
|
||||
message.succeeded = DiaryWireBool(text, "succeeded")
|
||||
marks := FieldAt(text, 0, "marks")
|
||||
if ArrayCount(text, marks) == 32 {
|
||||
for index: cast(s32)0..cast(s32)31 {
|
||||
value := ReadNumber(text, ElementAt(text, marks, index))
|
||||
message.marks[index] = ifx value.valid && value.value == 1.0 then cast(u8)1 else cast(u8)0
|
||||
}
|
||||
}
|
||||
return message
|
||||
}
|
||||
|
||||
DiaryMessageEncode :: (message: DiaryMessage) -> string {
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "{")
|
||||
BuilderPrint(*out, "\"abi\":")
|
||||
BuilderPrint(*out, "%", message.abi)
|
||||
BuilderPrint(*out, ",\"action\":")
|
||||
BuilderPrint(*out, "%", message.action)
|
||||
BuilderPrint(*out, ",\"control\":")
|
||||
BuilderPrint(*out, "%", message.control)
|
||||
BuilderPrint(*out, ",\"year\":")
|
||||
BuilderPrint(*out, "%", message.year)
|
||||
BuilderPrint(*out, ",\"month\":")
|
||||
BuilderPrint(*out, "%", message.month)
|
||||
BuilderPrint(*out, ",\"day\":")
|
||||
BuilderPrint(*out, "%", message.day)
|
||||
BuilderPrint(*out, ",\"month_year\":")
|
||||
BuilderPrint(*out, "%", message.month_year)
|
||||
BuilderPrint(*out, ",\"month_number\":")
|
||||
BuilderPrint(*out, "%", message.month_number)
|
||||
BuilderPrint(*out, ",\"month_days\":")
|
||||
BuilderPrint(*out, "%", message.month_days)
|
||||
BuilderPrint(*out, ",\"month_weekday\":")
|
||||
BuilderPrint(*out, "%", message.month_weekday)
|
||||
BuilderPrint(*out, ",\"screen\":")
|
||||
BuilderPrint(*out, "%", message.screen)
|
||||
BuilderPrint(*out, ",\"text\":")
|
||||
DiaryWireQuote(*out, message.text)
|
||||
BuilderPrint(*out, ",\"document\":")
|
||||
DiaryWireQuote(*out, message.document)
|
||||
BuilderPrint(*out, ",\"replacement\":")
|
||||
DiaryWireQuote(*out, message.replacement)
|
||||
BuilderPrint(*out, ",\"edit_start\":")
|
||||
BuilderPrint(*out, "%", message.edit_start)
|
||||
BuilderPrint(*out, ",\"edit_end\":")
|
||||
BuilderPrint(*out, "%", message.edit_end)
|
||||
BuilderPrint(*out, ",\"cursor\":")
|
||||
BuilderPrint(*out, "%", message.cursor)
|
||||
BuilderPrint(*out, ",\"anchor\":")
|
||||
BuilderPrint(*out, "%", message.anchor)
|
||||
BuilderPrint(*out, ",\"attachment_file\":")
|
||||
DiaryWireQuote(*out, message.attachment_file)
|
||||
BuilderPrint(*out, ",\"attachment_name\":")
|
||||
DiaryWireQuote(*out, message.attachment_name)
|
||||
BuilderPrint(*out, ",\"calendar\":")
|
||||
BuilderPrint(*out, "%", ifx message.calendar then "true" else "false")
|
||||
BuilderPrint(*out, ",\"saved\":")
|
||||
BuilderPrint(*out, "%", ifx message.saved then "true" else "false")
|
||||
BuilderPrint(*out, ",\"load_error\":")
|
||||
BuilderPrint(*out, "%", ifx message.load_error then "true" else "false")
|
||||
BuilderPrint(*out, ",\"succeeded\":")
|
||||
BuilderPrint(*out, "%", ifx message.succeeded then "true" else "false")
|
||||
BuilderPrint(*out, ",\"marks\":[")
|
||||
for index: cast(s32)0..cast(s32)31 {
|
||||
if index > 0 { BuilderPrint(*out, ",") }
|
||||
BuilderPrint(*out, "%", cast(s32)message.marks[index])
|
||||
}
|
||||
BuilderPrint(*out, "]}")
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
@@ -1,75 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## [1.2.8] - 2026-10-23
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.43.
|
||||
|
||||
## [1.2.7] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.42.
|
||||
|
||||
## [1.2.6] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.41.
|
||||
|
||||
## [1.2.5] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.40.
|
||||
|
||||
## [1.2.4] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.39.
|
||||
|
||||
## [1.2.3] - 2026-10-21
|
||||
|
||||
- Track zero-occurrence goals and choose custom coins, including 0 and negative coins per occurrence.
|
||||
- Give each achievement its own meaningful icon.
|
||||
- Maintenance release for Inner Breeze 2.1.38.
|
||||
|
||||
## [1.2.2] - 2026-10-21
|
||||
|
||||
- The shop scrolls to the final activity row at phone and desktop sizes.
|
||||
- Rewards can use a soda can symbol.
|
||||
|
||||
## [1.2.1] - 2026-10-20
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.37.
|
||||
|
||||
## [1.2.0] - 2026-10-19
|
||||
|
||||
- The shop now comes with Habits, so it can improve with a Habits update.
|
||||
- Requires Inner Breeze 2.1.36 or later.
|
||||
|
||||
## [1.1.2] - 2026-10-18
|
||||
|
||||
- Save, discard and delete confirmations use consistent controls and can
|
||||
improve with Habits updates while preserving existing habit data.
|
||||
- Requires Inner Breeze 2.1.36 or later.
|
||||
|
||||
## [1.1.1] - 2026-10-18
|
||||
|
||||
- Leaving a habit with unsaved changes asks whether to save, discard, or
|
||||
keep editing. Unchanged habits close without a prompt.
|
||||
|
||||
## [1.1.0] - 2026-10-17
|
||||
|
||||
- A counting habit's count dialog now comes with Habits, so it can improve with a Habits update, without a new Inner Breeze.
|
||||
- Requires Inner Breeze 2.1.35 or later.
|
||||
|
||||
## [1.0.7] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.35.
|
||||
|
||||
## [1.0.6] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.34.
|
||||
- Requires Inner Breeze 2.1.28 or later.
|
||||
|
||||
## [1.0.5] - 2026-10-13
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.33.
|
||||
- Requires Inner Breeze 2.1.28 or later.
|
||||
|
||||
## [1.0.4] - 2026-10-10
|
||||
|
||||
- Requires Inner Breeze 2.1.28 or later.
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Návyky · 1 výsledků",
|
||||
"achievement_habits_created_1_description": "Zaznamenejte 1 různých výsledků: platný uložený návyk.",
|
||||
"achievement_habits_days_1_title": "Návyky · 1 dnů",
|
||||
"achievement_habits_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_3_title": "Návyky · 3 dnů",
|
||||
"achievement_habits_days_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_7_title": "Návyky · 7 dnů",
|
||||
"achievement_habits_days_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_14_title": "Návyky · 14 dnů",
|
||||
"achievement_habits_days_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_30_title": "Návyky · 30 dnů",
|
||||
"achievement_habits_days_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_60_title": "Návyky · 60 dnů",
|
||||
"achievement_habits_days_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_100_title": "Návyky · 100 dnů",
|
||||
"achievement_habits_days_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_180_title": "Návyky · 180 dnů",
|
||||
"achievement_habits_days_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_days_365_title": "Návyky · 365 dnů",
|
||||
"achievement_habits_days_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: splněný den návyku.",
|
||||
"achievement_habits_completions_10_title": "Návyky · 10 výsledků",
|
||||
"achievement_habits_completions_10_description": "Zaznamenejte 10 různých výsledků: splněný den návyku.",
|
||||
"achievement_habits_completions_50_title": "Návyky · 50 výsledků",
|
||||
"achievement_habits_completions_50_description": "Zaznamenejte 50 různých výsledků: splněný den návyku.",
|
||||
"achievement_habits_completions_100_title": "Návyky · 100 výsledků",
|
||||
"achievement_habits_completions_100_description": "Zaznamenejte 100 různých výsledků: splněný den návyku.",
|
||||
"achievement_habits_completions_500_title": "Návyky · 500 výsledků",
|
||||
"achievement_habits_completions_500_description": "Zaznamenejte 500 různých výsledků: splněný den návyku.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Návyky · 7 plánovaných dat",
|
||||
"achievement_habits_single_scheduled_days_7_description": "U jednoho návyku splňte 7 plánovaných dat: splněný plánovaný den návyku.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Návyky · 30 plánovaných dat",
|
||||
"achievement_habits_single_scheduled_days_30_description": "U jednoho návyku splňte 30 plánovaných dat: splněný plánovaný den návyku.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Návyky · 100 plánovaných dat",
|
||||
"achievement_habits_single_scheduled_days_100_description": "U jednoho návyku splňte 100 plánovaných dat: splněný plánovaný den návyku.",
|
||||
"achievement_habits_counter_target_1_title": "Návyky · 1 výsledků",
|
||||
"achievement_habits_counter_target_1_description": "Zaznamenejte 1 různých výsledků: dosažený cíl počítaného návyku.",
|
||||
"achievement_habits_question_answer_1_title": "Návyky · 1 výsledků",
|
||||
"achievement_habits_question_answer_1_description": "Zaznamenejte 1 různých výsledků: skutečná uložená odpověď na otázku návyku.",
|
||||
"achievement_habits_ended_span_1_title": "Návyky · 1 výsledků",
|
||||
"achievement_habits_ended_span_1_description": "Zaznamenejte 1 různých výsledků: uložený časový úsek návyku s platným začátkem a koncem."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Gewohnheiten · 1 Ergebnisse",
|
||||
"achievement_habits_created_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine gültige gespeicherte Gewohnheit.",
|
||||
"achievement_habits_days_1_title": "Gewohnheiten · 1 Tage",
|
||||
"achievement_habits_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_3_title": "Gewohnheiten · 3 Tage",
|
||||
"achievement_habits_days_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_7_title": "Gewohnheiten · 7 Tage",
|
||||
"achievement_habits_days_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_14_title": "Gewohnheiten · 14 Tage",
|
||||
"achievement_habits_days_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_30_title": "Gewohnheiten · 30 Tage",
|
||||
"achievement_habits_days_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_60_title": "Gewohnheiten · 60 Tage",
|
||||
"achievement_habits_days_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_100_title": "Gewohnheiten · 100 Tage",
|
||||
"achievement_habits_days_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_180_title": "Gewohnheiten · 180 Tage",
|
||||
"achievement_habits_days_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_days_365_title": "Gewohnheiten · 365 Tage",
|
||||
"achievement_habits_days_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_completions_10_title": "Gewohnheiten · 10 Ergebnisse",
|
||||
"achievement_habits_completions_10_description": "Erfasse 10 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_completions_50_title": "Gewohnheiten · 50 Ergebnisse",
|
||||
"achievement_habits_completions_50_description": "Erfasse 50 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_completions_100_title": "Gewohnheiten · 100 Ergebnisse",
|
||||
"achievement_habits_completions_100_description": "Erfasse 100 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_completions_500_title": "Gewohnheiten · 500 Ergebnisse",
|
||||
"achievement_habits_completions_500_description": "Erfasse 500 unterschiedliche Ergebnisse: ein erfüllter Gewohnheitstag.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Gewohnheiten · 7 geplante Tage",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Erfülle für eine Gewohnheit 7 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Gewohnheiten · 30 geplante Tage",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Erfülle für eine Gewohnheit 30 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Gewohnheiten · 100 geplante Tage",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Erfülle für eine Gewohnheit 100 geplante Tage: ein erfüllter geplanter Gewohnheitstag.",
|
||||
"achievement_habits_counter_target_1_title": "Gewohnheiten · 1 Ergebnisse",
|
||||
"achievement_habits_counter_target_1_description": "Erfasse 1 unterschiedliche Ergebnisse: ein erreichtes Zählziel einer Gewohnheit.",
|
||||
"achievement_habits_question_answer_1_title": "Gewohnheiten · 1 Ergebnisse",
|
||||
"achievement_habits_question_answer_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine echte gespeicherte Antwort auf eine Gewohnheitsfrage.",
|
||||
"achievement_habits_ended_span_1_title": "Gewohnheiten · 1 Ergebnisse",
|
||||
"achievement_habits_ended_span_1_description": "Erfasse 1 unterschiedliche Ergebnisse: eine gespeicherte Gewohnheitszeitspanne mit gültigem Beginn und Ende."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "An intention takes shape",
|
||||
"achievement_habits_created_1_description": "Record 1 distinct results: a valid saved habit.",
|
||||
"achievement_habits_days_1_title": "First habit day",
|
||||
"achievement_habits_days_1_description": "Do this on 1 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_3_title": "Three habit days",
|
||||
"achievement_habits_days_3_description": "Do this on 3 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_7_title": "Seven habit days",
|
||||
"achievement_habits_days_7_description": "Do this on 7 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_14_title": "Fourteen habit days",
|
||||
"achievement_habits_days_14_description": "Do this on 14 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_30_title": "Thirty habit days",
|
||||
"achievement_habits_days_30_description": "Do this on 30 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_60_title": "Sixty habit days",
|
||||
"achievement_habits_days_60_description": "Do this on 60 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_100_title": "One hundred habit days",
|
||||
"achievement_habits_days_100_description": "Do this on 100 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_180_title": "A habit history",
|
||||
"achievement_habits_days_180_description": "Do this on 180 distinct dates: a completed habit day.",
|
||||
"achievement_habits_days_365_title": "A year of habit days",
|
||||
"achievement_habits_days_365_description": "Do this on 365 distinct dates: a completed habit day.",
|
||||
"achievement_habits_completions_10_title": "Ten completions",
|
||||
"achievement_habits_completions_10_description": "Record 10 distinct results: a completed habit day.",
|
||||
"achievement_habits_completions_50_title": "Fifty completions",
|
||||
"achievement_habits_completions_50_description": "Record 50 distinct results: a completed habit day.",
|
||||
"achievement_habits_completions_100_title": "One hundred completions",
|
||||
"achievement_habits_completions_100_description": "Record 100 distinct results: a completed habit day.",
|
||||
"achievement_habits_completions_500_title": "Five hundred completions",
|
||||
"achievement_habits_completions_500_description": "Record 500 distinct results: a completed habit day.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "One habit, seven times",
|
||||
"achievement_habits_single_scheduled_days_7_description": "For one habit, do this on 7 scheduled dates: a completed scheduled habit day.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "One habit, thirty times",
|
||||
"achievement_habits_single_scheduled_days_30_description": "For one habit, do this on 30 scheduled dates: a completed scheduled habit day.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "One habit, one hundred times",
|
||||
"achievement_habits_single_scheduled_days_100_description": "For one habit, do this on 100 scheduled dates: a completed scheduled habit day.",
|
||||
"achievement_habits_counter_target_1_title": "A target met",
|
||||
"achievement_habits_counter_target_1_description": "Record 1 distinct results: a counting habit’s target reached.",
|
||||
"achievement_habits_question_answer_1_title": "An answer recorded",
|
||||
"achievement_habits_question_answer_1_description": "Record 1 distinct results: a genuine saved answer to a habit question.",
|
||||
"achievement_habits_ended_span_1_title": "A span recorded",
|
||||
"achievement_habits_ended_span_1_description": "Record 1 distinct results: a saved habit span with a valid start and end."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_created_1_description": "Registra 1 resultados distintos: un hábito válido guardado.",
|
||||
"achievement_habits_days_1_title": "Hábitos · 1 días",
|
||||
"achievement_habits_days_1_description": "Realiza esto en 1 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_3_title": "Hábitos · 3 días",
|
||||
"achievement_habits_days_3_description": "Realiza esto en 3 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_7_title": "Hábitos · 7 días",
|
||||
"achievement_habits_days_7_description": "Realiza esto en 7 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_14_title": "Hábitos · 14 días",
|
||||
"achievement_habits_days_14_description": "Realiza esto en 14 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_30_title": "Hábitos · 30 días",
|
||||
"achievement_habits_days_30_description": "Realiza esto en 30 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_60_title": "Hábitos · 60 días",
|
||||
"achievement_habits_days_60_description": "Realiza esto en 60 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_100_title": "Hábitos · 100 días",
|
||||
"achievement_habits_days_100_description": "Realiza esto en 100 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_180_title": "Hábitos · 180 días",
|
||||
"achievement_habits_days_180_description": "Realiza esto en 180 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_days_365_title": "Hábitos · 365 días",
|
||||
"achievement_habits_days_365_description": "Realiza esto en 365 fechas distintas: un día de hábito completado.",
|
||||
"achievement_habits_completions_10_title": "Hábitos · 10 resultados",
|
||||
"achievement_habits_completions_10_description": "Registra 10 resultados distintos: un día de hábito completado.",
|
||||
"achievement_habits_completions_50_title": "Hábitos · 50 resultados",
|
||||
"achievement_habits_completions_50_description": "Registra 50 resultados distintos: un día de hábito completado.",
|
||||
"achievement_habits_completions_100_title": "Hábitos · 100 resultados",
|
||||
"achievement_habits_completions_100_description": "Registra 100 resultados distintos: un día de hábito completado.",
|
||||
"achievement_habits_completions_500_title": "Hábitos · 500 resultados",
|
||||
"achievement_habits_completions_500_description": "Registra 500 resultados distintos: un día de hábito completado.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Hábitos · 7 fechas programadas",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Para un mismo hábito, completa 7 fechas programadas: un día programado de hábito completado.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Hábitos · 30 fechas programadas",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Para un mismo hábito, completa 30 fechas programadas: un día programado de hábito completado.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Hábitos · 100 fechas programadas",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Para un mismo hábito, completa 100 fechas programadas: un día programado de hábito completado.",
|
||||
"achievement_habits_counter_target_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_counter_target_1_description": "Registra 1 resultados distintos: la meta de un hábito de conteo alcanzada.",
|
||||
"achievement_habits_question_answer_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_question_answer_1_description": "Registra 1 resultados distintos: una respuesta real guardada a una pregunta de un hábito.",
|
||||
"achievement_habits_ended_span_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_ended_span_1_description": "Registra 1 resultados distintos: un intervalo de hábito guardado con inicio y fin válidos."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Habitudes · 1 résultats",
|
||||
"achievement_habits_created_1_description": "Enregistrez 1 résultats distincts : une habitude valide enregistrée.",
|
||||
"achievement_habits_days_1_title": "Habitudes · 1 jours",
|
||||
"achievement_habits_days_1_description": "Faites ceci à 1 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_3_title": "Habitudes · 3 jours",
|
||||
"achievement_habits_days_3_description": "Faites ceci à 3 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_7_title": "Habitudes · 7 jours",
|
||||
"achievement_habits_days_7_description": "Faites ceci à 7 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_14_title": "Habitudes · 14 jours",
|
||||
"achievement_habits_days_14_description": "Faites ceci à 14 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_30_title": "Habitudes · 30 jours",
|
||||
"achievement_habits_days_30_description": "Faites ceci à 30 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_60_title": "Habitudes · 60 jours",
|
||||
"achievement_habits_days_60_description": "Faites ceci à 60 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_100_title": "Habitudes · 100 jours",
|
||||
"achievement_habits_days_100_description": "Faites ceci à 100 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_180_title": "Habitudes · 180 jours",
|
||||
"achievement_habits_days_180_description": "Faites ceci à 180 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_days_365_title": "Habitudes · 365 jours",
|
||||
"achievement_habits_days_365_description": "Faites ceci à 365 dates distinctes : une journée d’habitude accomplie.",
|
||||
"achievement_habits_completions_10_title": "Habitudes · 10 résultats",
|
||||
"achievement_habits_completions_10_description": "Enregistrez 10 résultats distincts : une journée d’habitude accomplie.",
|
||||
"achievement_habits_completions_50_title": "Habitudes · 50 résultats",
|
||||
"achievement_habits_completions_50_description": "Enregistrez 50 résultats distincts : une journée d’habitude accomplie.",
|
||||
"achievement_habits_completions_100_title": "Habitudes · 100 résultats",
|
||||
"achievement_habits_completions_100_description": "Enregistrez 100 résultats distincts : une journée d’habitude accomplie.",
|
||||
"achievement_habits_completions_500_title": "Habitudes · 500 résultats",
|
||||
"achievement_habits_completions_500_description": "Enregistrez 500 résultats distincts : une journée d’habitude accomplie.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Habitudes · 7 dates prévues",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Pour une même habitude, accomplissez 7 dates prévues : une journée prévue d’habitude accomplie.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Habitudes · 30 dates prévues",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Pour une même habitude, accomplissez 30 dates prévues : une journée prévue d’habitude accomplie.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Habitudes · 100 dates prévues",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Pour une même habitude, accomplissez 100 dates prévues : une journée prévue d’habitude accomplie.",
|
||||
"achievement_habits_counter_target_1_title": "Habitudes · 1 résultats",
|
||||
"achievement_habits_counter_target_1_description": "Enregistrez 1 résultats distincts : l’objectif atteint d’une habitude comptée.",
|
||||
"achievement_habits_question_answer_1_title": "Habitudes · 1 résultats",
|
||||
"achievement_habits_question_answer_1_description": "Enregistrez 1 résultats distincts : une vraie réponse enregistrée à une question d’habitude.",
|
||||
"achievement_habits_ended_span_1_title": "Habitudes · 1 résultats",
|
||||
"achievement_habits_ended_span_1_description": "Enregistrez 1 résultats distincts : une durée d’habitude enregistrée avec début et fin valides."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Kebiasaan · 1 hasil",
|
||||
"achievement_habits_created_1_description": "Catat 1 hasil berbeda: kebiasaan sah yang disimpan.",
|
||||
"achievement_habits_days_1_title": "Kebiasaan · 1 hari",
|
||||
"achievement_habits_days_1_description": "Lakukan ini pada 1 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_3_title": "Kebiasaan · 3 hari",
|
||||
"achievement_habits_days_3_description": "Lakukan ini pada 3 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_7_title": "Kebiasaan · 7 hari",
|
||||
"achievement_habits_days_7_description": "Lakukan ini pada 7 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_14_title": "Kebiasaan · 14 hari",
|
||||
"achievement_habits_days_14_description": "Lakukan ini pada 14 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_30_title": "Kebiasaan · 30 hari",
|
||||
"achievement_habits_days_30_description": "Lakukan ini pada 30 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_60_title": "Kebiasaan · 60 hari",
|
||||
"achievement_habits_days_60_description": "Lakukan ini pada 60 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_100_title": "Kebiasaan · 100 hari",
|
||||
"achievement_habits_days_100_description": "Lakukan ini pada 100 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_180_title": "Kebiasaan · 180 hari",
|
||||
"achievement_habits_days_180_description": "Lakukan ini pada 180 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_days_365_title": "Kebiasaan · 365 hari",
|
||||
"achievement_habits_days_365_description": "Lakukan ini pada 365 tanggal berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_completions_10_title": "Kebiasaan · 10 hasil",
|
||||
"achievement_habits_completions_10_description": "Catat 10 hasil berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_completions_50_title": "Kebiasaan · 50 hasil",
|
||||
"achievement_habits_completions_50_description": "Catat 50 hasil berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_completions_100_title": "Kebiasaan · 100 hasil",
|
||||
"achievement_habits_completions_100_description": "Catat 100 hasil berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_completions_500_title": "Kebiasaan · 500 hasil",
|
||||
"achievement_habits_completions_500_description": "Catat 500 hasil berbeda: hari kebiasaan yang diselesaikan.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Kebiasaan · 7 tanggal terjadwal",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Untuk satu kebiasaan, selesaikan 7 tanggal terjadwal: hari kebiasaan terjadwal yang diselesaikan.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Kebiasaan · 30 tanggal terjadwal",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Untuk satu kebiasaan, selesaikan 30 tanggal terjadwal: hari kebiasaan terjadwal yang diselesaikan.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Kebiasaan · 100 tanggal terjadwal",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Untuk satu kebiasaan, selesaikan 100 tanggal terjadwal: hari kebiasaan terjadwal yang diselesaikan.",
|
||||
"achievement_habits_counter_target_1_title": "Kebiasaan · 1 hasil",
|
||||
"achievement_habits_counter_target_1_description": "Catat 1 hasil berbeda: target kebiasaan hitungan yang tercapai.",
|
||||
"achievement_habits_question_answer_1_title": "Kebiasaan · 1 hasil",
|
||||
"achievement_habits_question_answer_1_description": "Catat 1 hasil berbeda: jawaban nyata untuk pertanyaan kebiasaan yang disimpan.",
|
||||
"achievement_habits_ended_span_1_title": "Kebiasaan · 1 hasil",
|
||||
"achievement_habits_ended_span_1_description": "Catat 1 hasil berbeda: rentang waktu kebiasaan tersimpan dengan awal dan akhir yang sah."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Abitudini · 1 risultati",
|
||||
"achievement_habits_created_1_description": "Registra 1 risultati distinti: un’abitudine valida salvata.",
|
||||
"achievement_habits_days_1_title": "Abitudini · 1 giorni",
|
||||
"achievement_habits_days_1_description": "Fallo in 1 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_3_title": "Abitudini · 3 giorni",
|
||||
"achievement_habits_days_3_description": "Fallo in 3 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_7_title": "Abitudini · 7 giorni",
|
||||
"achievement_habits_days_7_description": "Fallo in 7 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_14_title": "Abitudini · 14 giorni",
|
||||
"achievement_habits_days_14_description": "Fallo in 14 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_30_title": "Abitudini · 30 giorni",
|
||||
"achievement_habits_days_30_description": "Fallo in 30 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_60_title": "Abitudini · 60 giorni",
|
||||
"achievement_habits_days_60_description": "Fallo in 60 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_100_title": "Abitudini · 100 giorni",
|
||||
"achievement_habits_days_100_description": "Fallo in 100 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_180_title": "Abitudini · 180 giorni",
|
||||
"achievement_habits_days_180_description": "Fallo in 180 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_days_365_title": "Abitudini · 365 giorni",
|
||||
"achievement_habits_days_365_description": "Fallo in 365 date distinte: un giorno di abitudine completato.",
|
||||
"achievement_habits_completions_10_title": "Abitudini · 10 risultati",
|
||||
"achievement_habits_completions_10_description": "Registra 10 risultati distinti: un giorno di abitudine completato.",
|
||||
"achievement_habits_completions_50_title": "Abitudini · 50 risultati",
|
||||
"achievement_habits_completions_50_description": "Registra 50 risultati distinti: un giorno di abitudine completato.",
|
||||
"achievement_habits_completions_100_title": "Abitudini · 100 risultati",
|
||||
"achievement_habits_completions_100_description": "Registra 100 risultati distinti: un giorno di abitudine completato.",
|
||||
"achievement_habits_completions_500_title": "Abitudini · 500 risultati",
|
||||
"achievement_habits_completions_500_description": "Registra 500 risultati distinti: un giorno di abitudine completato.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Abitudini · 7 date programmate",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Per una stessa abitudine, completa 7 date programmate: un giorno programmato di abitudine completato.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Abitudini · 30 date programmate",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Per una stessa abitudine, completa 30 date programmate: un giorno programmato di abitudine completato.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Abitudini · 100 date programmate",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Per una stessa abitudine, completa 100 date programmate: un giorno programmato di abitudine completato.",
|
||||
"achievement_habits_counter_target_1_title": "Abitudini · 1 risultati",
|
||||
"achievement_habits_counter_target_1_description": "Registra 1 risultati distinti: l’obiettivo raggiunto di un’abitudine a conteggio.",
|
||||
"achievement_habits_question_answer_1_title": "Abitudini · 1 risultati",
|
||||
"achievement_habits_question_answer_1_description": "Registra 1 risultati distinti: una risposta autentica salvata a una domanda dell’abitudine.",
|
||||
"achievement_habits_ended_span_1_title": "Abitudini · 1 risultati",
|
||||
"achievement_habits_ended_span_1_description": "Registra 1 risultati distinti: un intervallo di abitudine salvato con inizio e fine validi."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "習慣 · 1 件の結果",
|
||||
"achievement_habits_created_1_description": "異なる結果を1件記録する:有効な保存済みの習慣。",
|
||||
"achievement_habits_days_1_title": "習慣 · 1 日",
|
||||
"achievement_habits_days_1_description": "異なる1日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_3_title": "習慣 · 3 日",
|
||||
"achievement_habits_days_3_description": "異なる3日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_7_title": "習慣 · 7 日",
|
||||
"achievement_habits_days_7_description": "異なる7日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_14_title": "習慣 · 14 日",
|
||||
"achievement_habits_days_14_description": "異なる14日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_30_title": "習慣 · 30 日",
|
||||
"achievement_habits_days_30_description": "異なる30日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_60_title": "習慣 · 60 日",
|
||||
"achievement_habits_days_60_description": "異なる60日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_100_title": "習慣 · 100 日",
|
||||
"achievement_habits_days_100_description": "異なる100日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_180_title": "習慣 · 180 日",
|
||||
"achievement_habits_days_180_description": "異なる180日で行う:習慣を達成した日。",
|
||||
"achievement_habits_days_365_title": "習慣 · 365 日",
|
||||
"achievement_habits_days_365_description": "異なる365日で行う:習慣を達成した日。",
|
||||
"achievement_habits_completions_10_title": "習慣 · 10 件の結果",
|
||||
"achievement_habits_completions_10_description": "異なる結果を10件記録する:習慣を達成した日。",
|
||||
"achievement_habits_completions_50_title": "習慣 · 50 件の結果",
|
||||
"achievement_habits_completions_50_description": "異なる結果を50件記録する:習慣を達成した日。",
|
||||
"achievement_habits_completions_100_title": "習慣 · 100 件の結果",
|
||||
"achievement_habits_completions_100_description": "異なる結果を100件記録する:習慣を達成した日。",
|
||||
"achievement_habits_completions_500_title": "習慣 · 500 件の結果",
|
||||
"achievement_habits_completions_500_description": "異なる結果を500件記録する:習慣を達成した日。",
|
||||
"achievement_habits_single_scheduled_days_7_title": "習慣 · 7 予定日",
|
||||
"achievement_habits_single_scheduled_days_7_description": "同じ習慣で予定された7日を達成する:予定された日に達成した習慣。",
|
||||
"achievement_habits_single_scheduled_days_30_title": "習慣 · 30 予定日",
|
||||
"achievement_habits_single_scheduled_days_30_description": "同じ習慣で予定された30日を達成する:予定された日に達成した習慣。",
|
||||
"achievement_habits_single_scheduled_days_100_title": "習慣 · 100 予定日",
|
||||
"achievement_habits_single_scheduled_days_100_description": "同じ習慣で予定された100日を達成する:予定された日に達成した習慣。",
|
||||
"achievement_habits_counter_target_1_title": "習慣 · 1 件の結果",
|
||||
"achievement_habits_counter_target_1_description": "異なる結果を1件記録する:回数を数える習慣で達成した自分の目標。",
|
||||
"achievement_habits_question_answer_1_title": "習慣 · 1 件の結果",
|
||||
"achievement_habits_question_answer_1_description": "異なる結果を1件記録する:習慣の質問に保存した実際の回答。",
|
||||
"achievement_habits_ended_span_1_title": "習慣 · 1 件の結果",
|
||||
"achievement_habits_ended_span_1_description": "異なる結果を1件記録する:開始と終了が有効な保存済みの習慣の時間記録。"
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "습관 · 1 개 결과",
|
||||
"achievement_habits_created_1_description": "서로 다른 결과를 1개 기록하세요: 유효하게 저장한 습관.",
|
||||
"achievement_habits_days_1_title": "습관 · 1 일",
|
||||
"achievement_habits_days_1_description": "서로 다른 1일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_3_title": "습관 · 3 일",
|
||||
"achievement_habits_days_3_description": "서로 다른 3일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_7_title": "습관 · 7 일",
|
||||
"achievement_habits_days_7_description": "서로 다른 7일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_14_title": "습관 · 14 일",
|
||||
"achievement_habits_days_14_description": "서로 다른 14일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_30_title": "습관 · 30 일",
|
||||
"achievement_habits_days_30_description": "서로 다른 30일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_60_title": "습관 · 60 일",
|
||||
"achievement_habits_days_60_description": "서로 다른 60일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_100_title": "습관 · 100 일",
|
||||
"achievement_habits_days_100_description": "서로 다른 100일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_180_title": "습관 · 180 일",
|
||||
"achievement_habits_days_180_description": "서로 다른 180일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_days_365_title": "습관 · 365 일",
|
||||
"achievement_habits_days_365_description": "서로 다른 365일에 수행하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_completions_10_title": "습관 · 10 개 결과",
|
||||
"achievement_habits_completions_10_description": "서로 다른 결과를 10개 기록하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_completions_50_title": "습관 · 50 개 결과",
|
||||
"achievement_habits_completions_50_description": "서로 다른 결과를 50개 기록하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_completions_100_title": "습관 · 100 개 결과",
|
||||
"achievement_habits_completions_100_description": "서로 다른 결과를 100개 기록하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_completions_500_title": "습관 · 500 개 결과",
|
||||
"achievement_habits_completions_500_description": "서로 다른 결과를 500개 기록하세요: 습관을 완료한 날.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "습관 · 7 예정일",
|
||||
"achievement_habits_single_scheduled_days_7_description": "같은 습관에서 예정된 7일을 완료하세요: 예정된 날짜에 완료한 습관.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "습관 · 30 예정일",
|
||||
"achievement_habits_single_scheduled_days_30_description": "같은 습관에서 예정된 30일을 완료하세요: 예정된 날짜에 완료한 습관.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "습관 · 100 예정일",
|
||||
"achievement_habits_single_scheduled_days_100_description": "같은 습관에서 예정된 100일을 완료하세요: 예정된 날짜에 완료한 습관.",
|
||||
"achievement_habits_counter_target_1_title": "습관 · 1 개 결과",
|
||||
"achievement_habits_counter_target_1_description": "서로 다른 결과를 1개 기록하세요: 횟수를 세는 습관에서 달성한 자신의 목표.",
|
||||
"achievement_habits_question_answer_1_title": "습관 · 1 개 결과",
|
||||
"achievement_habits_question_answer_1_description": "서로 다른 결과를 1개 기록하세요: 습관 질문에 저장한 실제 답변.",
|
||||
"achievement_habits_ended_span_1_title": "습관 · 1 개 결과",
|
||||
"achievement_habits_ended_span_1_description": "서로 다른 결과를 1개 기록하세요: 유효한 시작과 종료가 있는 저장된 습관 시간 기록."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_created_1_description": "Registe 1 resultados distintos: um hábito válido guardado.",
|
||||
"achievement_habits_days_1_title": "Hábitos · 1 dias",
|
||||
"achievement_habits_days_1_description": "Faça isto em 1 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_3_title": "Hábitos · 3 dias",
|
||||
"achievement_habits_days_3_description": "Faça isto em 3 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_7_title": "Hábitos · 7 dias",
|
||||
"achievement_habits_days_7_description": "Faça isto em 7 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_14_title": "Hábitos · 14 dias",
|
||||
"achievement_habits_days_14_description": "Faça isto em 14 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_30_title": "Hábitos · 30 dias",
|
||||
"achievement_habits_days_30_description": "Faça isto em 30 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_60_title": "Hábitos · 60 dias",
|
||||
"achievement_habits_days_60_description": "Faça isto em 60 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_100_title": "Hábitos · 100 dias",
|
||||
"achievement_habits_days_100_description": "Faça isto em 100 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_180_title": "Hábitos · 180 dias",
|
||||
"achievement_habits_days_180_description": "Faça isto em 180 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_days_365_title": "Hábitos · 365 dias",
|
||||
"achievement_habits_days_365_description": "Faça isto em 365 datas distintas: um dia de hábito concluído.",
|
||||
"achievement_habits_completions_10_title": "Hábitos · 10 resultados",
|
||||
"achievement_habits_completions_10_description": "Registe 10 resultados distintos: um dia de hábito concluído.",
|
||||
"achievement_habits_completions_50_title": "Hábitos · 50 resultados",
|
||||
"achievement_habits_completions_50_description": "Registe 50 resultados distintos: um dia de hábito concluído.",
|
||||
"achievement_habits_completions_100_title": "Hábitos · 100 resultados",
|
||||
"achievement_habits_completions_100_description": "Registe 100 resultados distintos: um dia de hábito concluído.",
|
||||
"achievement_habits_completions_500_title": "Hábitos · 500 resultados",
|
||||
"achievement_habits_completions_500_description": "Registe 500 resultados distintos: um dia de hábito concluído.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Hábitos · 7 datas programadas",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Para um mesmo hábito, conclua 7 datas programadas: um dia programado de hábito concluído.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Hábitos · 30 datas programadas",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Para um mesmo hábito, conclua 30 datas programadas: um dia programado de hábito concluído.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Hábitos · 100 datas programadas",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Para um mesmo hábito, conclua 100 datas programadas: um dia programado de hábito concluído.",
|
||||
"achievement_habits_counter_target_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_counter_target_1_description": "Registe 1 resultados distintos: a meta de um hábito de contagem atingida.",
|
||||
"achievement_habits_question_answer_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_question_answer_1_description": "Registe 1 resultados distintos: uma resposta real guardada a uma pergunta de hábito.",
|
||||
"achievement_habits_ended_span_1_title": "Hábitos · 1 resultados",
|
||||
"achievement_habits_ended_span_1_description": "Registe 1 resultados distintos: um intervalo de hábito guardado com início e fim válidos."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "Привычки · 1 результатов",
|
||||
"achievement_habits_created_1_description": "Запишите 1 разных результатов: сохранённая корректная привычка.",
|
||||
"achievement_habits_days_1_title": "Привычки · 1 дней",
|
||||
"achievement_habits_days_1_description": "Сделайте это в 1 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_3_title": "Привычки · 3 дней",
|
||||
"achievement_habits_days_3_description": "Сделайте это в 3 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_7_title": "Привычки · 7 дней",
|
||||
"achievement_habits_days_7_description": "Сделайте это в 7 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_14_title": "Привычки · 14 дней",
|
||||
"achievement_habits_days_14_description": "Сделайте это в 14 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_30_title": "Привычки · 30 дней",
|
||||
"achievement_habits_days_30_description": "Сделайте это в 30 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_60_title": "Привычки · 60 дней",
|
||||
"achievement_habits_days_60_description": "Сделайте это в 60 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_100_title": "Привычки · 100 дней",
|
||||
"achievement_habits_days_100_description": "Сделайте это в 100 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_180_title": "Привычки · 180 дней",
|
||||
"achievement_habits_days_180_description": "Сделайте это в 180 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_days_365_title": "Привычки · 365 дней",
|
||||
"achievement_habits_days_365_description": "Сделайте это в 365 разных датах: завершённый день привычки.",
|
||||
"achievement_habits_completions_10_title": "Привычки · 10 результатов",
|
||||
"achievement_habits_completions_10_description": "Запишите 10 разных результатов: завершённый день привычки.",
|
||||
"achievement_habits_completions_50_title": "Привычки · 50 результатов",
|
||||
"achievement_habits_completions_50_description": "Запишите 50 разных результатов: завершённый день привычки.",
|
||||
"achievement_habits_completions_100_title": "Привычки · 100 результатов",
|
||||
"achievement_habits_completions_100_description": "Запишите 100 разных результатов: завершённый день привычки.",
|
||||
"achievement_habits_completions_500_title": "Привычки · 500 результатов",
|
||||
"achievement_habits_completions_500_description": "Запишите 500 разных результатов: завершённый день привычки.",
|
||||
"achievement_habits_single_scheduled_days_7_title": "Привычки · 7 запланированных дат",
|
||||
"achievement_habits_single_scheduled_days_7_description": "Для одной привычки выполните 7 запланированных дат: завершённый запланированный день привычки.",
|
||||
"achievement_habits_single_scheduled_days_30_title": "Привычки · 30 запланированных дат",
|
||||
"achievement_habits_single_scheduled_days_30_description": "Для одной привычки выполните 30 запланированных дат: завершённый запланированный день привычки.",
|
||||
"achievement_habits_single_scheduled_days_100_title": "Привычки · 100 запланированных дат",
|
||||
"achievement_habits_single_scheduled_days_100_description": "Для одной привычки выполните 100 запланированных дат: завершённый запланированный день привычки.",
|
||||
"achievement_habits_counter_target_1_title": "Привычки · 1 результатов",
|
||||
"achievement_habits_counter_target_1_description": "Запишите 1 разных результатов: достигнутая собственная цель привычки со счётчиком.",
|
||||
"achievement_habits_question_answer_1_title": "Привычки · 1 результатов",
|
||||
"achievement_habits_question_answer_1_description": "Запишите 1 разных результатов: сохранённый настоящий ответ на вопрос привычки.",
|
||||
"achievement_habits_ended_span_1_title": "Привычки · 1 результатов",
|
||||
"achievement_habits_ended_span_1_description": "Запишите 1 разных результатов: сохранённый отрезок привычки с корректными началом и концом."
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"achievement_habits_created_1_title": "习惯 · 1 个结果",
|
||||
"achievement_habits_created_1_description": "记录1个不同的结果:有效且已保存的习惯。",
|
||||
"achievement_habits_days_1_title": "习惯 · 1 天",
|
||||
"achievement_habits_days_1_description": "在1个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_3_title": "习惯 · 3 天",
|
||||
"achievement_habits_days_3_description": "在3个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_7_title": "习惯 · 7 天",
|
||||
"achievement_habits_days_7_description": "在7个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_14_title": "习惯 · 14 天",
|
||||
"achievement_habits_days_14_description": "在14个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_30_title": "习惯 · 30 天",
|
||||
"achievement_habits_days_30_description": "在30个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_60_title": "习惯 · 60 天",
|
||||
"achievement_habits_days_60_description": "在60个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_100_title": "习惯 · 100 天",
|
||||
"achievement_habits_days_100_description": "在100个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_180_title": "习惯 · 180 天",
|
||||
"achievement_habits_days_180_description": "在180个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_days_365_title": "习惯 · 365 天",
|
||||
"achievement_habits_days_365_description": "在365个不同日期进行:已完成习惯的日期。",
|
||||
"achievement_habits_completions_10_title": "习惯 · 10 个结果",
|
||||
"achievement_habits_completions_10_description": "记录10个不同的结果:已完成习惯的日期。",
|
||||
"achievement_habits_completions_50_title": "习惯 · 50 个结果",
|
||||
"achievement_habits_completions_50_description": "记录50个不同的结果:已完成习惯的日期。",
|
||||
"achievement_habits_completions_100_title": "习惯 · 100 个结果",
|
||||
"achievement_habits_completions_100_description": "记录100个不同的结果:已完成习惯的日期。",
|
||||
"achievement_habits_completions_500_title": "习惯 · 500 个结果",
|
||||
"achievement_habits_completions_500_description": "记录500个不同的结果:已完成习惯的日期。",
|
||||
"achievement_habits_single_scheduled_days_7_title": "习惯 · 7 个计划日期",
|
||||
"achievement_habits_single_scheduled_days_7_description": "同一习惯在7个计划日期完成:在计划日期完成的习惯。",
|
||||
"achievement_habits_single_scheduled_days_30_title": "习惯 · 30 个计划日期",
|
||||
"achievement_habits_single_scheduled_days_30_description": "同一习惯在30个计划日期完成:在计划日期完成的习惯。",
|
||||
"achievement_habits_single_scheduled_days_100_title": "习惯 · 100 个计划日期",
|
||||
"achievement_habits_single_scheduled_days_100_description": "同一习惯在100个计划日期完成:在计划日期完成的习惯。",
|
||||
"achievement_habits_counter_target_1_title": "习惯 · 1 个结果",
|
||||
"achievement_habits_counter_target_1_description": "记录1个不同的结果:计数习惯中已达到的个人目标。",
|
||||
"achievement_habits_question_answer_1_title": "习惯 · 1 个结果",
|
||||
"achievement_habits_question_answer_1_description": "记录1个不同的结果:已保存的习惯问题真实回答。",
|
||||
"achievement_habits_ended_span_1_title": "习惯 · 1 个结果",
|
||||
"achievement_habits_ended_span_1_description": "记录1个不同的结果:开始与结束均有效的已保存习惯时间记录。"
|
||||
}
|
||||
@@ -1,326 +0,0 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"app": "inbe.habits",
|
||||
"achievements": [
|
||||
{
|
||||
"id": "habits.created.1",
|
||||
"group": "habits",
|
||||
"metric": "habit.created",
|
||||
"rule": "count",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_created_1_title",
|
||||
"description_key": "achievement_habits_created_1_description",
|
||||
"title": "An intention takes shape",
|
||||
"description": "Save 1 valid habit.",
|
||||
"icon": "assets/habits/icons/habits.created.1.shape",
|
||||
"icon_source": "mingcute_regular_aiming"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.1",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_1_title",
|
||||
"description_key": "achievement_habits_days_1_description",
|
||||
"title": "First habit day",
|
||||
"description": "Complete a habit on 1 distinct day.",
|
||||
"icon": "assets/habits/icons/habits.days.1.shape",
|
||||
"icon_source": "mingcute_regular_foot"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.3",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 3,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_3_title",
|
||||
"description_key": "achievement_habits_days_3_description",
|
||||
"title": "Three habit days",
|
||||
"description": "Complete habits on 3 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.3.shape",
|
||||
"icon_source": "mingcute_regular_flag_1"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.7",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 7,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_7_title",
|
||||
"description_key": "achievement_habits_days_7_description",
|
||||
"title": "Seven habit days",
|
||||
"description": "Complete habits on 7 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.7.shape",
|
||||
"icon_source": "mingcute_regular_flag_2"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.14",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 14,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_14_title",
|
||||
"description_key": "achievement_habits_days_14_description",
|
||||
"title": "Fourteen habit days",
|
||||
"description": "Complete habits on 14 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.14.shape",
|
||||
"icon_source": "mingcute_regular_flag_3"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.30",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 30,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_30_title",
|
||||
"description_key": "achievement_habits_days_30_description",
|
||||
"title": "Thirty habit days",
|
||||
"description": "Complete habits on 30 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.30.shape",
|
||||
"icon_source": "mingcute_regular_flag_4"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.60",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 60,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_60_title",
|
||||
"description_key": "achievement_habits_days_60_description",
|
||||
"title": "Sixty habit days",
|
||||
"description": "Complete habits on 60 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.60.shape",
|
||||
"icon_source": "mingcute_regular_tree_2"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.100",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 100,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_100_title",
|
||||
"description_key": "achievement_habits_days_100_description",
|
||||
"title": "One hundred habit days",
|
||||
"description": "Complete habits on 100 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.100.shape",
|
||||
"icon_source": "mingcute_regular_tree_3"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.180",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 180,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_180_title",
|
||||
"description_key": "achievement_habits_days_180_description",
|
||||
"title": "A habit history",
|
||||
"description": "Complete habits on 180 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.180.shape",
|
||||
"icon_source": "mingcute_regular_tree_4"
|
||||
},
|
||||
{
|
||||
"id": "habits.days.365",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "days",
|
||||
"target": 365,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_days_365_title",
|
||||
"description_key": "achievement_habits_days_365_description",
|
||||
"title": "A year of habit days",
|
||||
"description": "Complete habits on 365 distinct days.",
|
||||
"icon": "assets/habits/icons/habits.days.365.shape",
|
||||
"icon_source": "mingcute_regular_mountain_2"
|
||||
},
|
||||
{
|
||||
"id": "habits.completions.10",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "count",
|
||||
"target": 10,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_completions_10_title",
|
||||
"description_key": "achievement_habits_completions_10_description",
|
||||
"title": "Ten completions",
|
||||
"description": "Record 10 distinct habit/date completions.",
|
||||
"icon": "assets/habits/icons/habits.completions.10.shape",
|
||||
"icon_source": "mingcute_regular_check"
|
||||
},
|
||||
{
|
||||
"id": "habits.completions.50",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "count",
|
||||
"target": 50,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_completions_50_title",
|
||||
"description_key": "achievement_habits_completions_50_description",
|
||||
"title": "Fifty completions",
|
||||
"description": "Record 50 distinct habit/date completions.",
|
||||
"icon": "assets/habits/icons/habits.completions.50.shape",
|
||||
"icon_source": "mingcute_regular_check_2"
|
||||
},
|
||||
{
|
||||
"id": "habits.completions.100",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "count",
|
||||
"target": 100,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_completions_100_title",
|
||||
"description_key": "achievement_habits_completions_100_description",
|
||||
"title": "One hundred completions",
|
||||
"description": "Record 100 distinct habit/date completions.",
|
||||
"icon": "assets/habits/icons/habits.completions.100.shape",
|
||||
"icon_source": "mingcute_regular_checks"
|
||||
},
|
||||
{
|
||||
"id": "habits.completions.500",
|
||||
"group": "habits",
|
||||
"metric": "habit.completed",
|
||||
"rule": "count",
|
||||
"target": 500,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_completions_500_title",
|
||||
"description_key": "achievement_habits_completions_500_description",
|
||||
"title": "Five hundred completions",
|
||||
"description": "Record 500 distinct habit/date completions.",
|
||||
"icon": "assets/habits/icons/habits.completions.500.shape",
|
||||
"icon_source": "mingcute_regular_check_circle"
|
||||
},
|
||||
{
|
||||
"id": "habits.single_scheduled_days.7",
|
||||
"group": "habits",
|
||||
"metric": "habit.scheduled",
|
||||
"rule": "max_days",
|
||||
"target": 7,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_single_scheduled_days_7_title",
|
||||
"description_key": "achievement_habits_single_scheduled_days_7_description",
|
||||
"title": "One habit, seven times",
|
||||
"description": "Complete the same habit on 7 of its scheduled dates.",
|
||||
"icon": "assets/habits/icons/habits.single_scheduled_days.7.shape",
|
||||
"icon_source": "mingcute_regular_calendar_day"
|
||||
},
|
||||
{
|
||||
"id": "habits.single_scheduled_days.30",
|
||||
"group": "habits",
|
||||
"metric": "habit.scheduled",
|
||||
"rule": "max_days",
|
||||
"target": 30,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_single_scheduled_days_30_title",
|
||||
"description_key": "achievement_habits_single_scheduled_days_30_description",
|
||||
"title": "One habit, thirty times",
|
||||
"description": "Complete the same habit on 30 of its scheduled dates.",
|
||||
"icon": "assets/habits/icons/habits.single_scheduled_days.30.shape",
|
||||
"icon_source": "mingcute_regular_calendar_add"
|
||||
},
|
||||
{
|
||||
"id": "habits.single_scheduled_days.100",
|
||||
"group": "habits",
|
||||
"metric": "habit.scheduled",
|
||||
"rule": "max_days",
|
||||
"target": 100,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_single_scheduled_days_100_title",
|
||||
"description_key": "achievement_habits_single_scheduled_days_100_description",
|
||||
"title": "One habit, one hundred times",
|
||||
"description": "Complete the same habit on 100 of its scheduled dates.",
|
||||
"icon": "assets/habits/icons/habits.single_scheduled_days.100.shape",
|
||||
"icon_source": "mingcute_regular_history"
|
||||
},
|
||||
{
|
||||
"id": "habits.counter_target.1",
|
||||
"group": "habits",
|
||||
"metric": "habit.counter",
|
||||
"rule": "count",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_counter_target_1_title",
|
||||
"description_key": "achievement_habits_counter_target_1_description",
|
||||
"title": "A target met",
|
||||
"description": "Reach a counting habit's own target on 1 date.",
|
||||
"icon": "assets/habits/icons/habits.counter_target.1.shape",
|
||||
"icon_source": "mingcute_regular_aiming_2"
|
||||
},
|
||||
{
|
||||
"id": "habits.question_answer.1",
|
||||
"group": "habits",
|
||||
"metric": "habit.answer",
|
||||
"rule": "count",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_question_answer_1_title",
|
||||
"description_key": "achievement_habits_question_answer_1_description",
|
||||
"title": "An answer recorded",
|
||||
"description": "Save 1 genuine answer to a habit question.",
|
||||
"icon": "assets/habits/icons/habits.question_answer.1.shape",
|
||||
"icon_source": "mingcute_regular_question"
|
||||
},
|
||||
{
|
||||
"id": "habits.ended_span.1",
|
||||
"group": "habits",
|
||||
"metric": "habit.span",
|
||||
"rule": "count",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_habits_ended_span_1_title",
|
||||
"description_key": "achievement_habits_ended_span_1_description",
|
||||
"title": "A span recorded",
|
||||
"description": "Save 1 valid span with both start and end.",
|
||||
"icon": "assets/habits/icons/habits.ended_span.1.shape",
|
||||
"icon_source": "mingcute_regular_time"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
// Habit's editor confirmations belong to its package. The native host uses
|
||||
// the same composition for older installed packages that lack these views.
|
||||
#import "session"
|
||||
#import "modal_props"
|
||||
#import "modal_widget"
|
||||
#import "control_props"
|
||||
|
||||
using ButtonTone;
|
||||
using ButtonEmphasis;
|
||||
|
||||
HabitEditorDialogProps :: struct {
|
||||
session: Session
|
||||
deleting: bool
|
||||
title: string
|
||||
message: string
|
||||
keep_editing: string
|
||||
save: string
|
||||
discard: string
|
||||
cancel: string
|
||||
delete_label: string
|
||||
}
|
||||
|
||||
HabitEditorDialog :: (props: HabitEditorDialogProps) -> ActionModalResult {
|
||||
if props.deleting {
|
||||
actions: [2]ActionModalAction = .[
|
||||
ActionModalAction.{.label = props.cancel,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft},
|
||||
ActionModalAction.{.label = props.delete_label,
|
||||
.tone = cast(ButtonTone)ButtonToneDanger,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled}]
|
||||
return ActionModal(props.session, ActionModalProps.{
|
||||
.title = props.title, .message = props.message}, actions[:])
|
||||
}
|
||||
actions: [3]ActionModalAction = .[
|
||||
ActionModalAction.{.label = props.keep_editing,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft},
|
||||
ActionModalAction.{.label = props.save,
|
||||
.tone = cast(ButtonTone)ButtonToneAccent,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled},
|
||||
ActionModalAction.{.label = props.discard,
|
||||
.tone = cast(ButtonTone)ButtonToneDanger,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}]
|
||||
return ActionModal(props.session, ActionModalProps.{
|
||||
.title = props.title, .message = props.message}, actions[:])
|
||||
}
|
||||
+3
-24
@@ -1,12 +1,8 @@
|
||||
// Habits owns page transitions, linked-day actions, form validation, the
|
||||
// count dialog and the shop.
|
||||
// Habits owns page transitions, linked-day actions and form validation.
|
||||
#import, file "../../src/cells/habits_types.zi";
|
||||
#import, file "habits_view.zi";
|
||||
#import, file "shop_view.zi";
|
||||
#import, file "../../src/habits/habit_types.zi";
|
||||
#import, file "../../src/core/types.zi";
|
||||
#import, file "../../src/cells/module_types.zi";
|
||||
#import "apps/node_types"
|
||||
host_api :: #system_library "host_api";
|
||||
ReadHabitsHost :: () -> HabitsMessage #foreign host_api;
|
||||
WriteHabitsHost :: (message: HabitsMessage) #foreign host_api;
|
||||
@@ -29,37 +25,20 @@ using HabitSyncMode;
|
||||
|
||||
HabitsApply :: (message: HabitsMessage) -> HabitsMessage {
|
||||
message.succeeded = true
|
||||
if message.action == HABITS_COUNT_DIALOG {
|
||||
return HabitsCountView(message)
|
||||
}
|
||||
if message.action == HABITS_UNSAVED_DIALOG || message.action == HABITS_DELETE_DIALOG {
|
||||
return HabitsEditorView(message)
|
||||
}
|
||||
if message.action == HABITS_SHOP_VIEW || message.action == HABITS_SHOP_BUY_DIALOG {
|
||||
return HabitsShopView(message)
|
||||
}
|
||||
if message.action == HABITS_ROUTE {
|
||||
message.succeeded = message.screen == ScreenHabits ||
|
||||
message.screen == ScreenHabitEdit || message.screen == ScreenHabitSessionEdit
|
||||
return message
|
||||
}
|
||||
if message.action == HABITS_DAY_ACTION {
|
||||
// Days off the habit's schedule open and count like planned days.
|
||||
if message.modal_active || message.index < 0 || message.index >= message.count {
|
||||
if message.modal_active || message.index < 0 || message.index >= message.count ||
|
||||
(!message.scheduled && !message.completed) {
|
||||
return message
|
||||
}
|
||||
if message.counter_enabled != 0 {
|
||||
message.day_action = ifx message.decrement then HABITS_DAY_DECREMENT else HABITS_DAY_COUNT
|
||||
} else if message.linked_count > 0 {
|
||||
message.day_action = HABITS_DAY_LINKED
|
||||
} else if message.span {
|
||||
// A tap starts the habit's span, the next ends it; a day with
|
||||
// spans opens their data.
|
||||
message.day_action = HABITS_DAY_SPAN
|
||||
} else if message.question_count > 0 {
|
||||
// The day opens its questions, or the data of a done day,
|
||||
// instead of being marked or cleared.
|
||||
message.day_action = HABITS_DAY_QUESTIONS
|
||||
} else {
|
||||
message.day_action = HABITS_DAY_TOGGLE
|
||||
}
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
#import "std/c_string"
|
||||
#import "std/text_buffer"
|
||||
#import "std/vec"
|
||||
#import "std/text"
|
||||
#import, file "../../src/storage/achievements.zi";
|
||||
#import, file "../../src/storage/achievement_sources.zi";
|
||||
#import, file "../../src/storage/sqlite.zi";
|
||||
#import, file "../../src/storage/db.zi";
|
||||
#import, file "../../src/storage/state.zi";
|
||||
#import, file "../../src/storage/storage_core.zi";
|
||||
#import, file "../../src/app/text_buffers.zi";
|
||||
#import, file "../../src/habits/habit_types.zi";
|
||||
#import, file "../../src/habits/habit_calendar.zi";
|
||||
#import, file "../../src/habits/habit_schedule.zi";
|
||||
#import, file "../../src/cells/package_files.zi";
|
||||
|
||||
AchievementHabitCreatedBackfill :: (offset: s32) -> s32 {
|
||||
return AchievementSourceRows("habit.created", "SELECT id,0,1,'',id,0,deleted_at!=0 FROM habits WHERE user_id=?1 ORDER BY id LIMIT 128 OFFSET ?2", offset)
|
||||
}
|
||||
|
||||
AchievementHabitDaysBackfill :: (habits: *Habits, offset: s32) -> s32 {
|
||||
statement: *void
|
||||
if SqlitePrepareText(storage_db_handle(),
|
||||
"SELECT h.id,d.local_date,d.completed,d.count,h.counter_enabled,h.counter_target,h.deleted_at,h.span,COALESCE((SELECT c.old_value FROM habit_changes c WHERE c.user_id=h.user_id AND c.habit_id=h.id AND c.kind=8 AND c.deleted_at=0 AND c.changed_at>d.updated_at ORDER BY c.changed_at,c.rowid LIMIT 1),'') FROM habit_days d JOIN habits h ON h.id=d.habit_id WHERE h.user_id=?1 ORDER BY h.id,d.local_date LIMIT 128 OFFSET ?2",
|
||||
-1, *statement, null) != SQLITE_OK { return -1 }
|
||||
defer { SqliteFinalize(statement) }
|
||||
bind_text(statement, 1, AchievementOwner())
|
||||
SqliteBindInt(statement, 2, offset)
|
||||
rows: s32 = 0
|
||||
while SqliteStep(statement) == SQLITE_ROW {
|
||||
id := AppTextFromCString(SqliteColumnText(statement, 0), 96)
|
||||
day := SqliteColumnInt(statement, 1)
|
||||
value := HabitDay.{.day_index = day, .completed = SqliteColumnInt(statement, 2), .count = SqliteColumnInt(statement, 3)}
|
||||
counter := SqliteColumnInt(statement, 4) != 0
|
||||
target := SqliteColumnInt(statement, 5)
|
||||
historical := AppTextFromCString(SqliteColumnText(statement, 8), 256)
|
||||
known := true
|
||||
if historical == "check" || historical == "span" {
|
||||
counter = false
|
||||
target = 1
|
||||
} else if historical.count > 0 {
|
||||
known = historical.count > 6 && historical[:6] == "count:"
|
||||
target = 0
|
||||
if known {
|
||||
for byte: historical[6:] {
|
||||
if byte < #char "0" || byte > #char "9" || target > 1000000 {
|
||||
known = false
|
||||
break
|
||||
}
|
||||
target = target * 10 + cast(s32)(byte - #char "0")
|
||||
}
|
||||
counter = true
|
||||
known = known && target >= 0
|
||||
}
|
||||
}
|
||||
complete := known && HabitDayComplete(value, counter, target)
|
||||
deleted := SqliteColumnInt64(statement, 6) != 0
|
||||
source_bytes: Vec(u8)
|
||||
BuilderPrint(*source_bytes, "%.%", id, day)
|
||||
source := BuilderFinish(source_bytes)
|
||||
defer { PackageFree(source) }
|
||||
unused AchievementRecord("habit.completed", source, day, 1, "", id, true, false, deleted || !complete)
|
||||
unused AchievementRecord("habit.counter", source, day, 1, "", id, false, false, deleted || !complete || !counter)
|
||||
scheduled := false
|
||||
if habits != null {
|
||||
for index: cast(s32)0..habits.count - 1 {
|
||||
habit := *habits.items[index]
|
||||
if TextUntilNul(habit.id[:]) != id { continue }
|
||||
// Pausing a habit today does not erase its historical schedule.
|
||||
if habit.schedule_count > 0 {
|
||||
scheduled = HabitScheduleMatches(HabitScheduleFor(habit, day), day)
|
||||
} else {
|
||||
copy := habit.*
|
||||
copy.deactivated = 0
|
||||
scheduled = habit_scheduled_day(*copy, day) != 0
|
||||
}
|
||||
}
|
||||
}
|
||||
unused AchievementRecord("habit.scheduled", source, day, 1, "", id, false, false, deleted || !complete || !scheduled)
|
||||
rows += 1
|
||||
}
|
||||
return rows
|
||||
}
|
||||
|
||||
AchievementHabitAnswersBackfill :: (offset: s32) -> s32 {
|
||||
return AchievementSourceRows("habit.answer", "SELECT e.id,e.local_date,1,'',e.habit_id,0,(e.deleted_at!=0 OR h.deleted_at!=0 OR NOT EXISTS(SELECT 1 FROM json_each(CASE WHEN json_valid(e.answers) THEN e.answers ELSE '[]' END) a WHERE length(trim(CASE WHEN a.type='object' THEN COALESCE(json_extract(a.value,'$.value'),'') ELSE '' END,char(9)||char(10)||char(13)||' '))>0)) FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 ORDER BY e.id LIMIT 128 OFFSET ?2", offset)
|
||||
}
|
||||
|
||||
AchievementHabitSpansBackfill :: (offset: s32) -> s32 {
|
||||
return AchievementSourceRows("habit.span", "SELECT e.id,e.local_date,1,'',e.habit_id,0,(e.deleted_at!=0 OR h.deleted_at!=0 OR e.started_at<=0 OR e.ended_at<=e.started_at) FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 ORDER BY e.id LIMIT 128 OFFSET ?2", offset)
|
||||
}
|
||||
|
||||
AchievementHabitRetractRows :: (sql: string, kind: s32) -> bool {
|
||||
statement: *void
|
||||
if SqlitePrepareText(storage_db_handle(), sql, -1, *statement, null) != SQLITE_OK { return false }
|
||||
defer { SqliteFinalize(statement) }
|
||||
bind_text(statement, 1, AchievementOwner())
|
||||
while SqliteStep(statement) == SQLITE_ROW {
|
||||
id := AppTextFromCString(SqliteColumnText(statement, 0), 96)
|
||||
if kind == 0 {
|
||||
if !AchievementRetract("habit.created", id) { return false }
|
||||
} else if kind == 1 {
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%.%", id, SqliteColumnInt(statement, 1))
|
||||
source := BuilderFinish(out)
|
||||
defer { PackageFree(source) }
|
||||
if !AchievementRetract("habit.completed", source) || !AchievementRetract("habit.counter", source) ||
|
||||
!AchievementRetract("habit.scheduled", source) { return false }
|
||||
} else {
|
||||
if !AchievementRetract("habit.answer", id) || !AchievementRetract("habit.span", id) { return false }
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
AchievementHabitsDeleted :: () -> bool {
|
||||
return AchievementHabitRetractRows("SELECT id FROM habits WHERE user_id=?1 AND deleted_at>0", 0) &&
|
||||
AchievementHabitRetractRows("SELECT h.id,d.local_date FROM habit_days d JOIN habits h ON h.id=d.habit_id WHERE h.user_id=?1 AND (h.deleted_at>0 OR (d.completed=0 AND d.count=0 AND d.session_count=0))", 1) &&
|
||||
AchievementHabitRetractRows("SELECT e.id FROM habit_entries e JOIN habits h ON h.id=e.habit_id WHERE e.user_id=?1 AND (e.deleted_at>0 OR h.deleted_at>0)", 2)
|
||||
}
|
||||
@@ -1,257 +0,0 @@
|
||||
// Habits draws a counting habit's count dialog: the day's count with large
|
||||
// steps down and up. The host supplies the day's count and the theme, and
|
||||
// applies the step or opens the day the dialog asks for.
|
||||
#import "session"
|
||||
#import "geometry"
|
||||
#import "vec"
|
||||
#import "dpi"
|
||||
#import "layout"
|
||||
#import "drawing_props"
|
||||
#import "text_props"
|
||||
#import "text_align"
|
||||
#import "text_widget"
|
||||
#import "button_props"
|
||||
#import "button_widget"
|
||||
#import "control_props"
|
||||
#import "box_props"
|
||||
#import "box_widget"
|
||||
#import "modal_props"
|
||||
#import "modal_frame_widget"
|
||||
#import "tree"
|
||||
#import, file "../../src/cells/habits_ui_types.zi";
|
||||
#import, file "../../src/cells/habits_types.zi";
|
||||
#import, file "../../src/app/color.zi";
|
||||
#import, file "editor_dialogs.zi";
|
||||
|
||||
using ButtonTone;
|
||||
using ButtonEmphasis;
|
||||
using TextAlign;
|
||||
using TextWrap;
|
||||
host_api :: #system_library "host_api";
|
||||
ReadHabitsUiHost :: () -> HabitsUiFrame #foreign host_api;
|
||||
WriteHabitsUiHost :: (frame: HabitsUiFrame) #foreign host_api;
|
||||
HabitsLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
frame: HabitsUiFrame;
|
||||
|
||||
Scale :: (pixels: s32) -> s32 {
|
||||
return ScalePixels(pixels, frame.scale)
|
||||
}
|
||||
|
||||
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
|
||||
return Rectangle.{cast(float32)x, cast(float32)y,
|
||||
cast(float32)width, cast(float32)height}
|
||||
}
|
||||
|
||||
// The number with two digits or more, as in a YYYY-MM-DD date.
|
||||
PaddedNumber :: (out: *Vec(u8), value: s32, digits: s32) {
|
||||
width: s32 = 1
|
||||
limit: s32 = 10
|
||||
while value >= limit {
|
||||
width += 1
|
||||
limit *= 10
|
||||
}
|
||||
while width < digits {
|
||||
BuilderPrint(out, "0")
|
||||
width += 1
|
||||
}
|
||||
BuilderPrint(out, "%", value)
|
||||
}
|
||||
|
||||
DayText :: (day: s32) -> string {
|
||||
out: Vec(u8)
|
||||
PaddedNumber(*out, day / 10000, 4)
|
||||
BuilderPrint(*out, "-")
|
||||
PaddedNumber(*out, (day / 100) % 100, 2)
|
||||
BuilderPrint(*out, "-")
|
||||
PaddedNumber(*out, day % 100, 2)
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The template with its %d replaced by the count.
|
||||
CountText :: (template: string, count: s32) -> string {
|
||||
out: Vec(u8)
|
||||
at: s64 = 0
|
||||
while at < template.count {
|
||||
if at + 1 < template.count && template[at] == cast(u8)37 &&
|
||||
template[at + 1] == cast(u8)100 {
|
||||
BuilderPrint(*out, "%", count)
|
||||
at += 2
|
||||
} else {
|
||||
BuilderPrint(*out, "%", template[at:at + 1])
|
||||
at += 1
|
||||
}
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
CountLabel :: (bounds: Rectangle, text: string) {
|
||||
Text(frame.session, TextProps.{
|
||||
.bounds = bounds, .text = text, .font = frame.small_font,
|
||||
.align = cast(TextAlign)TextAlignCenter,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
}
|
||||
|
||||
// A step button draws its minus or plus as bars sized to the button, which
|
||||
// read clearly where a "-" or "+" glyph is thin and small.
|
||||
StepButton :: (id: s32, bounds: Rectangle, plus: bool, disabled: bool) -> bool {
|
||||
clicked := Button(frame.session, ButtonProps.{
|
||||
.id = id, .bounds = bounds,
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft,
|
||||
.disabled = disabled}) != 0
|
||||
side := bounds.height
|
||||
if bounds.width < side {
|
||||
side = bounds.width
|
||||
}
|
||||
length := side * 0.36
|
||||
thickness := cast(float32)Scale(3)
|
||||
center_x := bounds.x + bounds.width * 0.5
|
||||
center_y := bounds.y + bounds.height * 0.5
|
||||
color := frame.text_color
|
||||
if disabled {
|
||||
color = color_with_alpha(color, 0.35)
|
||||
}
|
||||
unused Box(frame.session, BoxProps.{
|
||||
.bounds = Rectangle.{center_x - length * 0.5, center_y - thickness * 0.5,
|
||||
length, thickness},
|
||||
.fill = color, .radius = thickness * 0.5})
|
||||
if plus {
|
||||
unused Box(frame.session, BoxProps.{
|
||||
.bounds = Rectangle.{center_x - thickness * 0.5, center_y - length * 0.5,
|
||||
thickness, length},
|
||||
.fill = color, .radius = thickness * 0.5})
|
||||
}
|
||||
return clicked
|
||||
}
|
||||
|
||||
// Draws the dialog and leaves in frame.action what the host does next.
|
||||
CountDialog :: () {
|
||||
frame.action = HABITS_COUNT_NONE
|
||||
gap := Scale(12)
|
||||
step_h := Scale(56)
|
||||
button_h := Scale(44)
|
||||
content_h := Scale(24) + Scale(64) + Scale(24) + gap + step_h + gap + button_h
|
||||
if frame.linked_count > 0 {
|
||||
content_h += button_h + gap
|
||||
}
|
||||
// A counting habit that asks questions keeps their answers as the
|
||||
// day's entries, opened from here.
|
||||
if frame.asks {
|
||||
content_h += button_h + gap
|
||||
}
|
||||
dialog := ModalFrame(frame.session, ModalFrameProps.{
|
||||
.key = KeyHash("habits/count-dialog"),
|
||||
.title = frame.name,
|
||||
.strong_title = true,
|
||||
.width = Scale(340), .height = content_h + Scale(74),
|
||||
.scale = frame.scale,
|
||||
.has_right_action = true,
|
||||
.right_label = HabitsLocaleHost("close_button")})
|
||||
if dialog.dismissed || dialog.right_clicked {
|
||||
frame.action = HABITS_COUNT_CLOSE
|
||||
return
|
||||
}
|
||||
if !dialog.opened {
|
||||
return
|
||||
}
|
||||
content := dialog.layout.content
|
||||
x := cast(s32)content.x
|
||||
y := cast(s32)content.y
|
||||
width := cast(s32)content.width
|
||||
|
||||
day_text := DayText(frame.day)
|
||||
if frame.today {
|
||||
day_text = HabitsLocaleHost("habits_today")
|
||||
}
|
||||
CountLabel(Bounds(x, y, width, Scale(24)), day_text)
|
||||
y += Scale(24)
|
||||
count_out: Vec(u8)
|
||||
BuilderPrint(*count_out, "%", frame.count)
|
||||
count_text := BuilderFinish(count_out)
|
||||
count_strong: [1]TextRange
|
||||
count_strong[0] = TextRange.{.start = 0, .end = cast(s32)count_text.count}
|
||||
Text(frame.session, TextProps.{
|
||||
.bounds = Bounds(x, y, width, Scale(64)),
|
||||
.text = count_text, .font = Scale(Text48),
|
||||
.strong = count_strong[:],
|
||||
.align = cast(TextAlign)TextAlignCenter,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
y += Scale(64)
|
||||
target_out: Vec(u8)
|
||||
BuilderPrint(*target_out, "% %", HabitsLocaleHost("habit_counter_target"), frame.target)
|
||||
CountLabel(Bounds(x, y, width, Scale(24)), BuilderFinish(target_out))
|
||||
y += Scale(24) + gap
|
||||
|
||||
step_w := (width - gap) / 2
|
||||
if StepButton(5720000, Bounds(x, y, step_w, step_h), false,
|
||||
frame.count <= frame.linked_count) {
|
||||
frame.action = HABITS_COUNT_DECREMENT
|
||||
}
|
||||
if StepButton(5720001, Bounds(x + width - step_w, y, step_w, step_h), true, false) {
|
||||
frame.action = HABITS_COUNT_INCREMENT
|
||||
}
|
||||
y += step_h + gap
|
||||
if frame.asks {
|
||||
if Button(frame.session, ButtonProps.{
|
||||
.id = 5720004, .bounds = Bounds(x, y, width, button_h),
|
||||
.label = HabitsLocaleHost("habit_day_entries"),
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline}) != 0 {
|
||||
unused End(frame.session)
|
||||
frame.action = HABITS_COUNT_OPEN_DAY
|
||||
return
|
||||
}
|
||||
y += button_h + gap
|
||||
}
|
||||
|
||||
if frame.linked_count > 0 {
|
||||
template := HabitsLocaleHost(ifx frame.linked_count == 1
|
||||
then "session_count_singular" else "session_count_plural")
|
||||
if Button(frame.session, ButtonProps.{
|
||||
.id = 5720002, .bounds = Bounds(x, y, width, button_h),
|
||||
.label = CountText(template, frame.linked_count),
|
||||
.tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline}) != 0 {
|
||||
unused End(frame.session)
|
||||
frame.action = HABITS_COUNT_OPEN_DAY
|
||||
return
|
||||
}
|
||||
y += button_h + gap
|
||||
}
|
||||
if Button(frame.session, ButtonProps.{
|
||||
.id = 5720003, .bounds = Bounds(x, y, width, button_h),
|
||||
.label = HabitsLocaleHost("done_button"),
|
||||
.tone = cast(ButtonTone)ButtonToneAccent,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled}) != 0 {
|
||||
frame.action = HABITS_COUNT_CLOSE
|
||||
}
|
||||
unused End(frame.session)
|
||||
}
|
||||
|
||||
HabitsCountView :: (message: HabitsMessage) -> HabitsMessage {
|
||||
frame = ReadHabitsUiHost()
|
||||
CountDialog()
|
||||
WriteHabitsUiHost(frame)
|
||||
message.succeeded = true
|
||||
return message
|
||||
}
|
||||
|
||||
HabitsEditorView :: (message: HabitsMessage) -> HabitsMessage {
|
||||
frame = ReadHabitsUiHost()
|
||||
deleting := message.action == HABITS_DELETE_DIALOG
|
||||
result := HabitEditorDialog(HabitEditorDialogProps.{
|
||||
.session = frame.session, .deleting = deleting,
|
||||
.title = HabitsLocaleHost(ifx deleting then "habit_delete_title" else "habit_unsaved_title"),
|
||||
.message = HabitsLocaleHost(ifx deleting then "habit_delete_message" else "habit_unsaved_message"),
|
||||
.keep_editing = HabitsLocaleHost("habit_keep_editing"),
|
||||
.save = HabitsLocaleHost("save_button"),
|
||||
.discard = HabitsLocaleHost("discard_button"),
|
||||
.cancel = HabitsLocaleHost("cancel_button"),
|
||||
.delete_label = HabitsLocaleHost("delete_button")})
|
||||
frame.action = result.action
|
||||
WriteHabitsUiHost(frame)
|
||||
message.succeeded = true
|
||||
return message
|
||||
}
|
||||
@@ -1,994 +0,0 @@
|
||||
// The habit shop: the coins the habits earned and the rewards the person
|
||||
// sets, each with its symbol and its price in coins, to spend them on. A
|
||||
// reward is added or changed in the form under the list; a tap on a
|
||||
// reward's name opens it there, and Buy asks before it spends the coins.
|
||||
// The host keeps the coins, the rewards and the form's state; the page
|
||||
// draws them and asks the host to save, delete or buy a reward.
|
||||
#import "session"
|
||||
#import "geometry"
|
||||
#import "vec"
|
||||
#import "dpi"
|
||||
#import "layout"
|
||||
#import "drawing_props"
|
||||
#import "semantic"
|
||||
#import "text_props"
|
||||
#import "text_align"
|
||||
#import "text_widget"
|
||||
#import "text_measure"
|
||||
#import "text_input_props"
|
||||
#import "text_field_widget"
|
||||
#import "button_props"
|
||||
#import "button_widget"
|
||||
#import "control_props"
|
||||
#import "box_props"
|
||||
#import "box_widget"
|
||||
#import "modal_props"
|
||||
#import "modal_frame_widget"
|
||||
#import "scroll_props"
|
||||
#import "scroll_widget"
|
||||
#import "svg_icon_props"
|
||||
#import "svg_icon_widget"
|
||||
#import "tree"
|
||||
#import, file "../../src/cells/habits_ui_types.zi";
|
||||
#import, file "../../src/cells/habits_types.zi";
|
||||
#import, file "../../src/habits/habit_types.zi";
|
||||
#import, file "../../src/habits/habit_icons.zi";
|
||||
#import, file "../../src/habits/habit_coins.zi";
|
||||
CoinIcon :: #import "mingcute/mingcute_filled_copper_coin";
|
||||
|
||||
using ButtonTone;
|
||||
using ButtonEmphasis;
|
||||
using SemanticKind;
|
||||
using TextAlign;
|
||||
using TextWrap;
|
||||
host_api :: #system_library "host_api";
|
||||
ReadHabitsShopHost :: () -> HabitsShopFrame #foreign host_api;
|
||||
WriteHabitsShopHost :: (frame: HabitsShopFrame) #foreign host_api;
|
||||
ReadHabitRewardHost :: (index: s32) -> HabitsShopReward #foreign host_api;
|
||||
SaveHabitRewardHost :: (reward: HabitsShopReward) -> bool #foreign host_api;
|
||||
DeleteHabitRewardHost :: (id: string) -> bool #foreign host_api;
|
||||
BuyHabitRewardHost :: (reward: HabitsShopReward) -> bool #foreign host_api;
|
||||
ReadHabitActivityHost :: (index: s32) -> HabitsShopActivity #foreign host_api;
|
||||
HabitsLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
shop: HabitsShopFrame;
|
||||
|
||||
SHOP_COLUMN_MAX :: 640
|
||||
SHOP_DEFAULT_PRICE :: 5
|
||||
SHOP_BALANCE_HEIGHT :: 92
|
||||
SHOP_ROW_HEIGHT :: 60
|
||||
SHOP_ROW_GAP :: 8
|
||||
SHOP_GAP :: 16
|
||||
// Room kept at the right edge of the scrolled page for its scroll bar.
|
||||
SHOP_SCROLLBAR_ROOM :: 14
|
||||
SHOP_CARD_PADDING :: 16
|
||||
// The form: its title, the name, then the price with Add or Save, and
|
||||
// Delete and Cancel while it changes a reward.
|
||||
SHOP_FORM_PADDING :: 14
|
||||
SHOP_FIELD_HEIGHT :: 44
|
||||
// The grid of symbols: round buttons as the habit editor's icons are.
|
||||
SHOP_ICON_SIZE :: 40
|
||||
SHOP_ICON_STEP_X :: 48
|
||||
SHOP_ICON_STEP_Y :: 44
|
||||
SHOP_BACK_SHAPE :: "S1.8rr:M15 5L8 12L15 19"
|
||||
// The most the shop lends once the balance is spent.
|
||||
SHOP_BORROW_LIMIT_MAX :: 9999
|
||||
// Activity: one short line per coin movement.
|
||||
SHOP_ACTIVITY_ROW :: 40
|
||||
SHOP_DONE_SHAPE :: "S2rr:M5 12L10 17L19 7"
|
||||
|
||||
Scale :: (pixels: s32) -> s32 {
|
||||
return ScalePixels(pixels, shop.scale)
|
||||
}
|
||||
|
||||
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
|
||||
return Rectangle.{cast(float32)x, cast(float32)y,
|
||||
cast(float32)width, cast(float32)height}
|
||||
}
|
||||
|
||||
Locale :: (key: string) -> string {
|
||||
return HabitsLocaleHost(key)
|
||||
}
|
||||
|
||||
// The width a line of text takes in the host's fonts.
|
||||
Width :: (text: string, font: s32) -> s32 {
|
||||
return TextWidth(shop.session, TextProps.{.text = text, .font = font})
|
||||
}
|
||||
|
||||
// The height Text takes for a paragraph wrapped in width.
|
||||
ParagraphHeight :: (text: string, width: s32, font: s32) -> s32 {
|
||||
return TextHeight(shop.session, TextProps.{.text = text, .font = font,
|
||||
.bounds = Bounds(0, 0, width, 0)})
|
||||
}
|
||||
|
||||
// A warm gold that reads on light and dark themes alike.
|
||||
CoinColor :: () -> Color {
|
||||
return Color.{.r = 226, .g = 168, .b = 48, .a = 255}
|
||||
}
|
||||
|
||||
Coin :: (bounds: Rectangle) {
|
||||
SvgIcon(shop.session, SvgIconProps.{.bounds = bounds, .shape = CoinIcon.Shape,
|
||||
.color = CoinColor()})
|
||||
}
|
||||
|
||||
Number :: (value: s64) -> string {
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", value)
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// Half coins as Habits shows them: 12, 12½ or ½.
|
||||
Coins :: (halves: s64) -> string {
|
||||
out: Vec(u8)
|
||||
whole := halves / 2
|
||||
odd := halves % 2 != 0
|
||||
if whole != 0 || !odd {
|
||||
BuilderPrint(*out, "%", whole)
|
||||
} else if halves < 0 {
|
||||
BuilderPrint(*out, "-")
|
||||
}
|
||||
if odd {
|
||||
BuilderPrint(*out, "½")
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The template with its %s replaced by value.
|
||||
Filled :: (template: string, value: string) -> string {
|
||||
out: Vec(u8)
|
||||
at: s64 = 0
|
||||
while at < template.count {
|
||||
if at + 1 < template.count && template[at] == cast(u8)37 &&
|
||||
template[at + 1] == cast(u8)115 {
|
||||
BuilderPrint(*out, "%", value)
|
||||
at += 2
|
||||
} else {
|
||||
BuilderPrint(*out, "%", template[at:at + 1])
|
||||
at += 1
|
||||
}
|
||||
}
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
// The value with start to end replaced, or the value unchanged when the
|
||||
// result would pass limit bytes.
|
||||
Replaced :: (value: string, start: s32, end: s32, replacement: string,
|
||||
limit: s64) -> string {
|
||||
if start < 0 || end < start || cast(s64)end > value.count ||
|
||||
value.count - cast(s64)(end - start) + replacement.count > limit {
|
||||
return value
|
||||
}
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", value[:start])
|
||||
BuilderPrint(*out, "%", replacement)
|
||||
BuilderPrint(*out, "%", value[end:])
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
Card :: (bounds: Rectangle, key: string) {
|
||||
unused Box(shop.session, BoxProps.{
|
||||
.key = ifx key.count > 0 then KeyHash(key) else cast(u64)0,
|
||||
.bounds = bounds, .fill = shop.card_fill, .border = shop.card_border,
|
||||
.radius = cast(float32)shop.card_radius})
|
||||
}
|
||||
|
||||
// The width a coin and its amount take at a font size.
|
||||
CoinAmountWidth :: (amount: string, font: s32) -> s32 {
|
||||
return font + Scale(6) + Width(amount, font)
|
||||
}
|
||||
|
||||
// A coin and its amount, centred on the bounds' height from their left.
|
||||
CoinAmount :: (amount: string, bounds: Rectangle, font: s32) {
|
||||
size := cast(float32)font
|
||||
Coin(Rectangle.{bounds.x, bounds.y + (bounds.height - size) * 0.5, size, size})
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)amount.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Rectangle.{bounds.x + size + cast(float32)Scale(6), bounds.y,
|
||||
bounds.width - size - cast(float32)Scale(6), bounds.height},
|
||||
.text = amount, .font = font, .strong = strong[:],
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
}
|
||||
|
||||
ShopButton :: (id: s32, label: string, bounds: Rectangle, tone: ButtonTone,
|
||||
emphasis: ButtonEmphasis, disabled: bool) -> bool {
|
||||
return Button(shop.session, ButtonProps.{
|
||||
.id = id, .bounds = bounds, .label = label, .tone = tone,
|
||||
.emphasis = emphasis, .fit_content = true,
|
||||
.disabled = disabled || shop.modal_active}) != 0
|
||||
}
|
||||
|
||||
// An empty form that adds a reward.
|
||||
FormReset :: () {
|
||||
shop.editing = ""
|
||||
shop.name = ""
|
||||
shop.name_cursor = 0
|
||||
shop.name_anchor = 0
|
||||
shop.name_scroll_x = 0
|
||||
shop.name_focused = false
|
||||
shop.price = SHOP_DEFAULT_PRICE
|
||||
shop.price_focused = false
|
||||
shop.price_scroll_x = 0
|
||||
shop.icon = HABIT_ICON_GIFT
|
||||
shop.icon_open = false
|
||||
PriceText()
|
||||
}
|
||||
|
||||
// The form opened on a reward, to change or delete it.
|
||||
FormEdit :: (reward: HabitsShopReward) {
|
||||
shop.editing = reward.id
|
||||
shop.name = reward.name
|
||||
shop.name_cursor = cast(s32)reward.name.count
|
||||
shop.name_anchor = shop.name_cursor
|
||||
shop.name_scroll_x = 0
|
||||
shop.name_focused = false
|
||||
shop.price = HabitRewardPriceClamp(reward.price)
|
||||
shop.price_focused = false
|
||||
shop.icon = HabitRewardIconClamp(reward.icon)
|
||||
shop.icon_open = false
|
||||
PriceText()
|
||||
}
|
||||
|
||||
PriceText :: () {
|
||||
shop.price_text = Number(cast(s64)shop.price)
|
||||
shop.price_cursor = cast(s32)shop.price_text.count
|
||||
shop.price_anchor = shop.price_cursor
|
||||
}
|
||||
|
||||
// The borrow limit as the field shows it while unfocused.
|
||||
BorrowText :: () {
|
||||
shop.borrow_text = Number(cast(s64)shop.borrow_limit)
|
||||
shop.borrow_cursor = cast(s32)shop.borrow_text.count
|
||||
shop.borrow_anchor = shop.borrow_cursor
|
||||
}
|
||||
|
||||
Editing :: () -> bool {
|
||||
return shop.editing.count > 0
|
||||
}
|
||||
|
||||
// The name typed in, without spaces around it.
|
||||
TypedName :: () -> string {
|
||||
value := shop.name
|
||||
start: s64 = 0
|
||||
end := value.count
|
||||
while start < end && (value[start] == cast(u8)32 || value[start] == cast(u8)9) {
|
||||
start += 1
|
||||
}
|
||||
while end > start && (value[end - 1] == cast(u8)32 || value[end - 1] == cast(u8)9) {
|
||||
end -= 1
|
||||
}
|
||||
return value[start:end]
|
||||
}
|
||||
|
||||
// Adds the reward the form holds, or saves the one it changes.
|
||||
FormSubmit :: () {
|
||||
name := TypedName()
|
||||
if name.count == 0 {
|
||||
return
|
||||
}
|
||||
if !SaveHabitRewardHost(HabitsShopReward.{.id = shop.editing, .name = name,
|
||||
.price = shop.price, .icon = shop.icon}) {
|
||||
return
|
||||
}
|
||||
FormReset()
|
||||
}
|
||||
|
||||
NameField :: (bounds: Rectangle) -> TextFieldResult {
|
||||
result := TextField(shop.session, TextFieldProps.{
|
||||
.key = KeyHash("inbe/habits/shop/name"), .bounds = bounds,
|
||||
.value = shop.name, .placeholder = Locale("habit_shop_name_placeholder"),
|
||||
.cursor = shop.name_cursor, .anchor = shop.name_anchor,
|
||||
.scroll_x = shop.name_scroll_x, .focused = shop.name_focused,
|
||||
.focus_id = 8411, .max_bytes = HABIT_REWARD_NAME_SIZE - 1,
|
||||
.max_codepoints = HABIT_REWARD_NAME_SIZE - 1, .disabled = shop.modal_active,
|
||||
.input = ifx shop.name_focused then shop.input else TextFieldInput.{}})
|
||||
if result.edit.changed {
|
||||
shop.name = Replaced(shop.name, result.edit.start, result.edit.end,
|
||||
result.edit.replacement, HABIT_REWARD_NAME_SIZE - 1)
|
||||
}
|
||||
shop.name_cursor = result.cursor
|
||||
shop.name_anchor = result.anchor
|
||||
shop.name_scroll_x = result.scroll_x
|
||||
shop.name_focused = result.focused
|
||||
if result.focused {
|
||||
shop.price_focused = false
|
||||
shop.borrow_focused = false
|
||||
}
|
||||
if result.clipboard_write {
|
||||
shop.clipboard_write = true
|
||||
shop.clipboard_text = result.clipboard_text
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// The price as typed; an empty or zero entry keeps the last price until
|
||||
// the field is left.
|
||||
PriceField :: (bounds: Rectangle) -> TextFieldResult {
|
||||
if !shop.price_focused {
|
||||
PriceText()
|
||||
}
|
||||
result := TextField(shop.session, TextFieldProps.{
|
||||
.key = KeyHash("inbe/habits/shop/price"), .bounds = bounds,
|
||||
.value = shop.price_text, .cursor = shop.price_cursor,
|
||||
.anchor = shop.price_anchor, .scroll_x = shop.price_scroll_x,
|
||||
.focused = shop.price_focused, .focus_id = 8412, .numeric = true,
|
||||
.max_bytes = 4, .max_codepoints = 4, .disabled = shop.modal_active,
|
||||
.input = ifx shop.price_focused then shop.input else TextFieldInput.{}})
|
||||
if result.edit.changed {
|
||||
shop.price_text = Replaced(shop.price_text, result.edit.start, result.edit.end,
|
||||
result.edit.replacement, 4)
|
||||
value: s32 = 0
|
||||
index: s64 = 0
|
||||
while index < shop.price_text.count {
|
||||
digit := cast(s32)shop.price_text[index] - 48
|
||||
if digit >= 0 && digit <= 9 {
|
||||
value = value * 10 + digit
|
||||
}
|
||||
index += 1
|
||||
}
|
||||
if value > 0 {
|
||||
shop.price = HabitRewardPriceClamp(value)
|
||||
}
|
||||
}
|
||||
shop.price_cursor = result.cursor
|
||||
shop.price_anchor = result.anchor
|
||||
shop.price_scroll_x = result.scroll_x
|
||||
shop.price_focused = result.focused
|
||||
if result.focused {
|
||||
shop.name_focused = false
|
||||
shop.borrow_focused = false
|
||||
}
|
||||
if result.clipboard_write {
|
||||
shop.clipboard_write = true
|
||||
shop.clipboard_text = result.clipboard_text
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// The limit as typed; an empty field means no borrowing.
|
||||
BorrowField :: (bounds: Rectangle) -> TextFieldResult {
|
||||
if !shop.borrow_focused {
|
||||
BorrowText()
|
||||
}
|
||||
result := TextField(shop.session, TextFieldProps.{
|
||||
.key = KeyHash("inbe/habits/shop/borrow"), .bounds = bounds,
|
||||
.value = shop.borrow_text, .cursor = shop.borrow_cursor,
|
||||
.anchor = shop.borrow_anchor, .scroll_x = shop.borrow_scroll_x,
|
||||
.focused = shop.borrow_focused, .focus_id = 8413, .numeric = true,
|
||||
.max_bytes = 4, .max_codepoints = 4, .disabled = shop.modal_active,
|
||||
.input = ifx shop.borrow_focused then shop.input else TextFieldInput.{}})
|
||||
if result.edit.changed {
|
||||
shop.borrow_text = Replaced(shop.borrow_text, result.edit.start,
|
||||
result.edit.end, result.edit.replacement, 4)
|
||||
value: s32 = 0
|
||||
index: s64 = 0
|
||||
while index < shop.borrow_text.count {
|
||||
digit := cast(s32)shop.borrow_text[index] - 48
|
||||
if digit >= 0 && digit <= 9 {
|
||||
value = value * 10 + digit
|
||||
}
|
||||
index += 1
|
||||
}
|
||||
if value > SHOP_BORROW_LIMIT_MAX {
|
||||
value = SHOP_BORROW_LIMIT_MAX
|
||||
}
|
||||
shop.borrow_limit = value
|
||||
}
|
||||
shop.borrow_cursor = result.cursor
|
||||
shop.borrow_anchor = result.anchor
|
||||
shop.borrow_scroll_x = result.scroll_x
|
||||
shop.borrow_focused = result.focused
|
||||
if result.focused {
|
||||
shop.name_focused = false
|
||||
shop.price_focused = false
|
||||
}
|
||||
if result.clipboard_write {
|
||||
shop.clipboard_write = true
|
||||
shop.clipboard_text = result.clipboard_text
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// Back, then the page's title, strong, with its subtitle muted below it.
|
||||
// Returns the y below it, or -1 when Back was pressed.
|
||||
PageHeader :: (x: s32, y: s32, width: s32, title_text: string, subtitle: string) -> s32 {
|
||||
back_label := Locale("back_button")
|
||||
back_w := Width(back_label, shop.font) + Scale(48)
|
||||
if back_w < Scale(88) {
|
||||
back_w = Scale(88)
|
||||
}
|
||||
if back_w > width / 3 {
|
||||
back_w = width / 3
|
||||
}
|
||||
if Button(shop.session, ButtonProps.{
|
||||
.id = 8400, .bounds = Bounds(x, y + Scale(2), back_w, Scale(42)),
|
||||
.label = back_label, .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline,
|
||||
.icon_shape = SHOP_BACK_SHAPE, .fit_content = true,
|
||||
.disabled = shop.modal_active}) != 0 {
|
||||
return -1
|
||||
}
|
||||
title_x := x + back_w + Scale(16)
|
||||
title_w := width - back_w - Scale(16)
|
||||
// The title as large as it fits, as on Habits' other pages.
|
||||
title_font := Scale(Text24)
|
||||
if Width(title_text, title_font) > title_w {
|
||||
title_font = Scale(Text16)
|
||||
if Width(title_text, title_font) > title_w {
|
||||
title_font = Scale(Text14)
|
||||
}
|
||||
}
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)title_text.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(title_x, y, title_w, Scale(34)), .text = title_text,
|
||||
.font = title_font, .strong = strong[:],
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(title_x, y + Scale(34), title_w, Scale(22)), .text = subtitle,
|
||||
.font = shop.small_font, .class_name = shop.muted_class,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
return y + Scale(68)
|
||||
}
|
||||
|
||||
// The coins to spend, large beside a gold coin, and how habits earn them.
|
||||
BalanceCard :: (x: s32, y: s32, width: s32) -> s32 {
|
||||
height := Scale(SHOP_BALANCE_HEIGHT)
|
||||
Card(Bounds(x, y, width, height), "inbe/habits/shop/balance")
|
||||
coin := Scale(48)
|
||||
pad := Scale(SHOP_CARD_PADDING)
|
||||
Coin(Bounds(x + pad, y + (height - coin) / 2, coin, coin))
|
||||
text_x := x + pad + coin + Scale(14)
|
||||
text_w := width - (text_x - x) - pad
|
||||
amount := Coins(shop.halves)
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)amount.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(text_x, y + Scale(14), text_w, Scale(40)), .text = amount,
|
||||
.font = shop.font + Scale(16), .strong = strong[:],
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(text_x, y + Scale(54), text_w, Scale(24)),
|
||||
.text = Locale("habit_shop_balance_label"), .font = shop.small_font,
|
||||
.class_name = shop.muted_class, .wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
return height
|
||||
}
|
||||
|
||||
BorrowRowHeight :: () -> s32 {
|
||||
return Scale(SHOP_FIELD_HEIGHT) + Scale(20)
|
||||
}
|
||||
|
||||
// How far the balance may go below zero, as whole coins the shop lends.
|
||||
BorrowRow :: (x: s32, y: s32, width: s32) -> s32 {
|
||||
pad := Scale(10)
|
||||
height := BorrowRowHeight()
|
||||
Card(Bounds(x, y, width, height), "inbe/habits/shop/borrow-card")
|
||||
field_h := Scale(SHOP_FIELD_HEIGHT)
|
||||
field_y := y + pad
|
||||
inner_x := x + pad
|
||||
coin := Scale(22)
|
||||
step := Scale(44)
|
||||
controls_w := step + Scale(6) + Scale(64) + Scale(6) + step + Scale(8) + coin
|
||||
label_w := width - pad * 2 - controls_w
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(inner_x, field_y, label_w, field_h),
|
||||
.text = Locale("habit_shop_borrow_label"),
|
||||
.class_name = shop.muted_class,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
control_x := inner_x + label_w
|
||||
if ShopButton(8440, "-", Bounds(control_x, field_y, step, field_h),
|
||||
cast(ButtonTone)ButtonToneNeutral, cast(ButtonEmphasis)ButtonEmphasisSoft,
|
||||
shop.borrow_limit <= 0) {
|
||||
shop.borrow_limit -= 1
|
||||
BorrowText()
|
||||
}
|
||||
unused BorrowField(Bounds(control_x + step + Scale(6), field_y, Scale(64), field_h))
|
||||
plus_x := control_x + step + Scale(70)
|
||||
if ShopButton(8441, "+", Bounds(plus_x, field_y, step, field_h),
|
||||
cast(ButtonTone)ButtonToneNeutral, cast(ButtonEmphasis)ButtonEmphasisSoft,
|
||||
shop.borrow_limit >= SHOP_BORROW_LIMIT_MAX) {
|
||||
shop.borrow_limit += 1
|
||||
BorrowText()
|
||||
}
|
||||
Coin(Bounds(plus_x + step + Scale(8), field_y + (field_h - coin) / 2, coin, coin))
|
||||
return height
|
||||
}
|
||||
|
||||
ActivityAmount :: (line: HabitsShopActivity) -> string {
|
||||
amount := Coins(ifx line.halves < 0 then -line.halves else line.halves)
|
||||
signed: Vec(u8)
|
||||
BuilderPrint(*signed, "%", ifx line.halves < 0 then "-" else "+")
|
||||
BuilderPrint(*signed, "%", amount)
|
||||
return BuilderFinish(signed)
|
||||
}
|
||||
|
||||
ActivityStacked :: (line: HabitsShopActivity, width: s32) -> bool {
|
||||
amount_w := CoinAmountWidth(ActivityAmount(line), shop.font)
|
||||
day_w := Width(line.day, shop.small_font) + Scale(12)
|
||||
return width - Scale(32) - amount_w - day_w - Scale(12) < Scale(100)
|
||||
}
|
||||
|
||||
ActivityRowHeight :: (index: s32, width: s32) -> s32 {
|
||||
line := ReadHabitActivityHost(index)
|
||||
if !ActivityStacked(line, width) {
|
||||
return Scale(SHOP_ACTIVITY_ROW)
|
||||
}
|
||||
name_w := width - Scale(44) - CoinAmountWidth(ActivityAmount(line), shop.font)
|
||||
if name_w < 1 {
|
||||
name_w = 1
|
||||
}
|
||||
height := ParagraphHeight(line.name, name_w, shop.font)
|
||||
if height < Scale(24) {
|
||||
height = Scale(24)
|
||||
}
|
||||
return height + Scale(32)
|
||||
}
|
||||
|
||||
// Narrow rows put the day below the name, leaving the amount on the right.
|
||||
ActivityRow :: (index: s32, x: s32, y: s32, width: s32) -> s32 {
|
||||
line := ReadHabitActivityHost(index)
|
||||
height := ActivityRowHeight(index, width)
|
||||
stacked := ActivityStacked(line, width)
|
||||
first_height := ifx stacked then height - Scale(32) else height
|
||||
symbol := Scale(20)
|
||||
icon_height := ifx stacked then Scale(24) else height
|
||||
shape := ifx line.icon > 0 then HabitIconShape(line.icon) else ""
|
||||
SvgIcon(shop.session, SvgIconProps.{
|
||||
.bounds = Bounds(x, y + (icon_height - symbol) / 2, symbol, symbol),
|
||||
.shape = ifx shape.count > 0 then shape else SHOP_DONE_SHAPE,
|
||||
.color = shop.text_color})
|
||||
amount := ActivityAmount(line)
|
||||
amount_w := CoinAmountWidth(amount, shop.font)
|
||||
day_w := Width(line.day, shop.small_font) + Scale(12)
|
||||
name_x := x + symbol + Scale(12)
|
||||
amount_x := x + width - amount_w
|
||||
day_x := ifx stacked then name_x else amount_x - Scale(12) - day_w
|
||||
name_w := ifx stacked then amount_x - Scale(12) - name_x else day_x - name_x
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(name_x, y, name_w, first_height), .text = line.name,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)(ifx stacked then TextWrapAuto else TextWrapEllipsis)})
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(day_x, ifx stacked then y + first_height else y,
|
||||
day_w, ifx stacked then Scale(24) else height), .text = line.day,
|
||||
.font = shop.small_font, .class_name = shop.muted_class,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
CoinAmount(amount, Bounds(amount_x, y, amount_w, ifx stacked then Scale(24) else height), shop.font)
|
||||
return height
|
||||
}
|
||||
|
||||
// A section's title above its cards: strong and a little larger than the
|
||||
// text, wrapping onto more lines when it must.
|
||||
SectionTitleHeight :: (title: string, width: s32) -> s32 {
|
||||
return ParagraphHeight(title, width, shop.font + Scale(2))
|
||||
}
|
||||
|
||||
SectionTitle :: (title: string, x: s32, y: s32, width: s32) -> s32 {
|
||||
height := SectionTitleHeight(title, width)
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)title.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(x, y, width, height), .text = title,
|
||||
.font = shop.font + Scale(2), .strong = strong[:],
|
||||
.semantic_kind = cast(SemanticKind)SemanticHeading, .heading_level = 2,
|
||||
.wrap = cast(TextWrap)TextWrapAuto})
|
||||
return height
|
||||
}
|
||||
|
||||
// One reward: its symbol and name, which open it in the form, and its price
|
||||
// beside Buy, which needs the coins.
|
||||
RewardBuyWidth :: () -> s32 {
|
||||
width := Width(Locale("habit_shop_buy_button"), shop.font) + Scale(36)
|
||||
return ifx width < Scale(84) then Scale(84) else width
|
||||
}
|
||||
|
||||
RewardStacked :: (reward: HabitsShopReward, width: s32) -> bool {
|
||||
price_w := CoinAmountWidth(Number(cast(s64)reward.price), shop.font)
|
||||
return width - Scale(94) - price_w - RewardBuyWidth() < Scale(100)
|
||||
}
|
||||
|
||||
RewardRowHeight :: (index: s32, width: s32) -> s32 {
|
||||
reward := ReadHabitRewardHost(index)
|
||||
if !RewardStacked(reward, width) {
|
||||
return Scale(SHOP_ROW_HEIGHT)
|
||||
}
|
||||
name_h := ParagraphHeight(reward.name, width - Scale(70), shop.font)
|
||||
if name_h < Scale(26) {
|
||||
name_h = Scale(26)
|
||||
}
|
||||
return name_h + Scale(SHOP_CARD_PADDING) * 2 + Scale(48)
|
||||
}
|
||||
|
||||
RewardRow :: (index: s32, x: s32, y: s32, width: s32) -> s32 {
|
||||
reward := ReadHabitRewardHost(index)
|
||||
height := RewardRowHeight(index, width)
|
||||
stacked := RewardStacked(reward, width)
|
||||
Card(Bounds(x, y, width, height), ifx index == 0 then "inbe/habits/shop/first-reward" else "")
|
||||
pad := Scale(SHOP_CARD_PADDING)
|
||||
buy_label := Locale("habit_shop_buy_button")
|
||||
buy_w := RewardBuyWidth()
|
||||
price := Number(cast(s64)reward.price)
|
||||
price_w := CoinAmountWidth(price, shop.font)
|
||||
buy_x := x + width - pad - buy_w
|
||||
price_x := ifx stacked then x + pad else buy_x - Scale(14) - price_w
|
||||
symbol := Scale(26)
|
||||
name_x := x + pad + symbol + Scale(12)
|
||||
name_w := ifx stacked then x + width - pad - name_x else price_x - name_x - Scale(10)
|
||||
name_y := ifx stacked then y + pad else y
|
||||
name_h := ifx stacked then height - pad * 2 - Scale(48) else height
|
||||
if Button(shop.session, ButtonProps.{
|
||||
.id = 8500 + index,
|
||||
.bounds = Bounds(x, name_y, ifx stacked then width else price_x - x, name_h),
|
||||
.invisible = true, .label = reward.name,
|
||||
.disabled = shop.modal_active}) != 0 {
|
||||
FormEdit(reward)
|
||||
}
|
||||
SvgIcon(shop.session, SvgIconProps.{
|
||||
.bounds = Bounds(x + pad, name_y + (name_h - symbol) / 2, symbol, symbol),
|
||||
.shape = HabitIconShape(HabitRewardIconClamp(reward.icon)),
|
||||
.color = shop.text_color})
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(name_x, name_y, name_w, name_h), .text = reward.name,
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)(ifx stacked then TextWrapAuto else TextWrapEllipsis)})
|
||||
controls_y := ifx stacked then y + height - pad - Scale(40) else y + (height - Scale(40)) / 2
|
||||
CoinAmount(price, Bounds(price_x, controls_y, price_w, Scale(40)), shop.font)
|
||||
affordable := shop.halves + cast(s64)shop.borrow_limit * 2 >=
|
||||
cast(s64)reward.price * 2
|
||||
if ShopButton(8600 + index, buy_label,
|
||||
Bounds(buy_x, controls_y, buy_w, Scale(40)),
|
||||
cast(ButtonTone)(ifx affordable then ButtonToneAccent else ButtonToneNeutral),
|
||||
cast(ButtonEmphasis)(ifx affordable then ButtonEmphasisFilled else ButtonEmphasisSoft),
|
||||
!affordable) {
|
||||
shop.buying = reward
|
||||
shop.name_focused = false
|
||||
shop.price_focused = false
|
||||
shop.action = HABITS_SHOP_BUY
|
||||
}
|
||||
return height
|
||||
}
|
||||
|
||||
IconColumns :: (width: s32) -> s32 {
|
||||
columns := width / Scale(SHOP_ICON_STEP_X)
|
||||
if columns < 1 {
|
||||
columns = 1
|
||||
}
|
||||
return columns
|
||||
}
|
||||
|
||||
// The height of the open grid of symbols, one for each habit icon.
|
||||
IconGridHeight :: (width: s32) -> s32 {
|
||||
columns := IconColumns(width)
|
||||
rows := (HABIT_ICON_COUNT + columns - 1) / columns
|
||||
return rows * Scale(SHOP_ICON_STEP_Y)
|
||||
}
|
||||
|
||||
// The reward's symbol before its name. A tap opens the grid of symbols
|
||||
// under the name, or closes it again.
|
||||
IconButton :: (bounds: Rectangle) {
|
||||
if Button(shop.session, ButtonProps.{
|
||||
.id = 8425, .bounds = bounds, .label = Locale("habit_icon_label"),
|
||||
.icon_shape = HabitIconShape(shop.icon), .icon_only = true,
|
||||
.selected = shop.icon_open, .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)(ifx shop.icon_open then
|
||||
ButtonEmphasisOutline else ButtonEmphasisSoft),
|
||||
.disabled = shop.modal_active}) != 0 {
|
||||
shop.icon_open = !shop.icon_open
|
||||
shop.name_focused = false
|
||||
shop.price_focused = false
|
||||
}
|
||||
}
|
||||
|
||||
// Every symbol a reward can have, as the habit editor offers its icons. A
|
||||
// tap chooses one and closes the grid.
|
||||
IconGrid :: (x: s32, y: s32, width: s32) {
|
||||
columns := IconColumns(width)
|
||||
icon: s32 = 1
|
||||
while icon <= HABIT_ICON_COUNT {
|
||||
index := icon - 1
|
||||
selected := shop.icon == icon
|
||||
if Button(shop.session, ButtonProps.{
|
||||
.id = 8700 + icon,
|
||||
.bounds = Bounds(x + (index % columns) * Scale(SHOP_ICON_STEP_X) + Scale(4),
|
||||
y + (index / columns) * Scale(SHOP_ICON_STEP_Y) + Scale(2),
|
||||
Scale(SHOP_ICON_SIZE), Scale(SHOP_ICON_SIZE)),
|
||||
.circle = true,
|
||||
.icon_shape = HabitIconShape(icon), .icon_only = true, .selected = selected,
|
||||
.tone = cast(ButtonTone)(ifx selected then ButtonToneAccent else ButtonToneNeutral),
|
||||
.emphasis = cast(ButtonEmphasis)(ifx selected then
|
||||
ButtonEmphasisFilled else ButtonEmphasisSoft),
|
||||
.disabled = shop.modal_active}) != 0 {
|
||||
shop.icon = icon
|
||||
shop.icon_open = false
|
||||
}
|
||||
icon += 1
|
||||
}
|
||||
}
|
||||
|
||||
ActionLabel :: () -> string {
|
||||
return Locale(ifx Editing() then "save_button" else "habit_shop_add_button")
|
||||
}
|
||||
|
||||
ActionWidth :: (label: string) -> s32 {
|
||||
width := Width(label, shop.font) + Scale(40)
|
||||
if width < Scale(96) {
|
||||
width = Scale(96)
|
||||
}
|
||||
return width
|
||||
}
|
||||
|
||||
// Whether the form's Add or Save goes on its own line at this width.
|
||||
FormWraps :: (width: s32) -> bool {
|
||||
inner_w := width - Scale(SHOP_FORM_PADDING) * 2
|
||||
label_w := Width(Locale("habit_shop_price_label"), shop.font) + Scale(10)
|
||||
controls := label_w + Scale(44) + Scale(76) + Scale(44) + Scale(22) + Scale(16)
|
||||
return controls + ActionWidth(ActionLabel()) > inner_w
|
||||
}
|
||||
|
||||
FormHeight :: (width: s32) -> s32 {
|
||||
pad := Scale(SHOP_FORM_PADDING)
|
||||
height := pad + Scale(30) + Scale(SHOP_FIELD_HEIGHT) + Scale(10) +
|
||||
Scale(SHOP_FIELD_HEIGHT) + pad
|
||||
if shop.icon_open {
|
||||
height += IconGridHeight(width - pad * 2) + Scale(10)
|
||||
}
|
||||
if FormWraps(width) {
|
||||
height += Scale(10) + Scale(SHOP_FIELD_HEIGHT)
|
||||
}
|
||||
if Editing() {
|
||||
height += Scale(10) + Scale(42)
|
||||
}
|
||||
return height
|
||||
}
|
||||
|
||||
// The form that adds a reward, or changes the one opened from the list.
|
||||
Form :: (x: s32, y: s32, width: s32) {
|
||||
editing := Editing()
|
||||
Card(Bounds(x, y, width, FormHeight(width)), "inbe/habits/shop/form")
|
||||
pad := Scale(SHOP_FORM_PADDING)
|
||||
inner_x := x + pad
|
||||
inner_w := width - pad * 2
|
||||
row_y := y + pad
|
||||
title_text := Locale(ifx editing then "habit_shop_edit_title" else "habit_shop_add_title")
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)title_text.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(inner_x, row_y, inner_w, Scale(26)), .text = title_text,
|
||||
.strong = strong[:], .vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
row_y += Scale(30)
|
||||
field_h := Scale(SHOP_FIELD_HEIGHT)
|
||||
// The symbol, then the name.
|
||||
IconButton(Bounds(inner_x, row_y, field_h, field_h))
|
||||
name_x := inner_x + field_h + Scale(10)
|
||||
named := NameField(Bounds(name_x, row_y, inner_x + inner_w - name_x, field_h))
|
||||
submit := named.committed
|
||||
row_y += field_h + Scale(10)
|
||||
if shop.icon_open {
|
||||
IconGrid(inner_x, row_y, inner_w)
|
||||
row_y += IconGridHeight(inner_w) + Scale(10)
|
||||
}
|
||||
// Price − [n] + with a coin, then Add or Save at the row's end.
|
||||
label := Locale("habit_shop_price_label")
|
||||
label_w := Width(label, shop.font) + Scale(10)
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(inner_x, row_y, label_w, field_h), .text = label,
|
||||
.class_name = shop.muted_class, .vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapNone})
|
||||
step := Scale(44)
|
||||
control_x := inner_x + label_w
|
||||
if ShopButton(8420, "-", Bounds(control_x, row_y, step, field_h),
|
||||
cast(ButtonTone)ButtonToneNeutral, cast(ButtonEmphasis)ButtonEmphasisSoft,
|
||||
shop.price <= 1) {
|
||||
shop.price = HabitRewardPriceClamp(shop.price - 1)
|
||||
PriceText()
|
||||
}
|
||||
priced := PriceField(Bounds(control_x + step + Scale(6), row_y, Scale(64), field_h))
|
||||
if priced.committed {
|
||||
submit = true
|
||||
}
|
||||
plus_x := control_x + step + Scale(76)
|
||||
if ShopButton(8421, "+", Bounds(plus_x, row_y, step, field_h),
|
||||
cast(ButtonTone)ButtonToneNeutral, cast(ButtonEmphasis)ButtonEmphasisSoft,
|
||||
shop.price >= HABIT_REWARD_PRICE_MAX) {
|
||||
shop.price = HabitRewardPriceClamp(shop.price + 1)
|
||||
PriceText()
|
||||
}
|
||||
coin := Scale(22)
|
||||
Coin(Bounds(plus_x + step + Scale(8), row_y + (field_h - coin) / 2, coin, coin))
|
||||
action_label := ActionLabel()
|
||||
action_w := ActionWidth(action_label)
|
||||
action_x := inner_x + inner_w - action_w
|
||||
if FormWraps(width) {
|
||||
// A narrow screen puts Add or Save on the next line.
|
||||
row_y += field_h + Scale(10)
|
||||
}
|
||||
if ShopButton(8422, action_label, Bounds(action_x, row_y, action_w, field_h),
|
||||
cast(ButtonTone)ButtonToneAccent, cast(ButtonEmphasis)ButtonEmphasisFilled,
|
||||
TypedName().count == 0) {
|
||||
submit = true
|
||||
}
|
||||
if submit && !shop.modal_active {
|
||||
FormSubmit()
|
||||
return
|
||||
}
|
||||
if !editing {
|
||||
return
|
||||
}
|
||||
row_y += field_h + Scale(10)
|
||||
half := (inner_w - Scale(10)) / 2
|
||||
if ShopButton(8423, Locale("delete_button"), Bounds(inner_x, row_y, half, Scale(42)),
|
||||
cast(ButtonTone)ButtonToneDanger, cast(ButtonEmphasis)ButtonEmphasisSoft, false) {
|
||||
unused DeleteHabitRewardHost(shop.editing)
|
||||
FormReset()
|
||||
return
|
||||
}
|
||||
if ShopButton(8424, Locale("cancel_button"),
|
||||
Bounds(inner_x + half + Scale(10), row_y, half, Scale(42)),
|
||||
cast(ButtonTone)ButtonToneNeutral, cast(ButtonEmphasis)ButtonEmphasisOutline, false) {
|
||||
FormReset()
|
||||
}
|
||||
}
|
||||
|
||||
// Draws the shop in the frame's bounds.
|
||||
ShopPage :: () {
|
||||
bounds := shop.bounds
|
||||
width := cast(s32)bounds.width
|
||||
x := cast(s32)bounds.x
|
||||
if width > Scale(SHOP_COLUMN_MAX) {
|
||||
x += (width - Scale(SHOP_COLUMN_MAX)) / 2
|
||||
width = Scale(SHOP_COLUMN_MAX)
|
||||
}
|
||||
top := PageHeader(x, cast(s32)bounds.y, width, Locale("habit_shop_title"),
|
||||
Locale("habit_shop_subtitle"))
|
||||
if top < 0 {
|
||||
shop.name_focused = false
|
||||
shop.price_focused = false
|
||||
shop.action = HABITS_SHOP_BACK
|
||||
return
|
||||
}
|
||||
gap := Scale(SHOP_GAP)
|
||||
row_gap := Scale(SHOP_ROW_GAP)
|
||||
// The scroll bar takes the right edge; the cards stop short of it.
|
||||
content_width := width - Scale(SHOP_SCROLLBAR_ROOM)
|
||||
rewards_title := Locale("habit_shop_rewards_title")
|
||||
title_h := SectionTitleHeight(rewards_title, content_width)
|
||||
empty_text := Locale("habit_shop_empty")
|
||||
list_h: s32 = 0
|
||||
for index: cast(s32)0..shop.reward_count - 1 {
|
||||
list_h += RewardRowHeight(index, content_width) + row_gap
|
||||
}
|
||||
if shop.reward_count == 0 {
|
||||
list_h = ParagraphHeight(empty_text, content_width, shop.font) + row_gap
|
||||
}
|
||||
form_h := FormHeight(content_width)
|
||||
activity_title := Locale("profile_progress_title")
|
||||
content_h := Scale(SHOP_BALANCE_HEIGHT) + Scale(10) + BorrowRowHeight() + gap +
|
||||
title_h + Scale(10) + list_h + gap + form_h + gap
|
||||
// The latest coins earned and spent, once there are any.
|
||||
if shop.activity_count > 0 {
|
||||
content_h += SectionTitleHeight(activity_title, content_width) + Scale(6) + gap
|
||||
for index: cast(s32)0..shop.activity_count - 1 {
|
||||
content_h += ActivityRowHeight(index, content_width)
|
||||
}
|
||||
}
|
||||
scrolled := Scroll(shop.session, ScrollProps.{
|
||||
.key = KeyHash("inbe/habits/shop"),
|
||||
.bounds = Rectangle.{cast(float32)x, cast(float32)top, cast(float32)width,
|
||||
bounds.y + bounds.height - cast(float32)top},
|
||||
.content_height = content_h, .scroll_offset = shop.scroll})
|
||||
shop.scroll = scrolled.scroll_offset
|
||||
if !scrolled.opened {
|
||||
return
|
||||
}
|
||||
y := cast(s32)scrolled.content.y
|
||||
y += BalanceCard(x, y, content_width) + Scale(10)
|
||||
y += BorrowRow(x, y, content_width) + gap
|
||||
y += SectionTitle(rewards_title, x, y, content_width) + Scale(10)
|
||||
if shop.reward_count == 0 {
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(x, y, content_width, list_h - row_gap), .text = empty_text,
|
||||
.class_name = shop.muted_class, .wrap = cast(TextWrap)TextWrapAuto})
|
||||
}
|
||||
reward_y := y
|
||||
index: s32 = 0
|
||||
while index < shop.reward_count {
|
||||
reward_y += RewardRow(index, x, reward_y, content_width) + row_gap
|
||||
index += 1
|
||||
}
|
||||
y += list_h + gap
|
||||
Form(x, y, content_width)
|
||||
y += form_h + gap
|
||||
// Activity sits below the form that adds a reward.
|
||||
if shop.activity_count > 0 {
|
||||
y += SectionTitle(activity_title, x, y, content_width) + Scale(6)
|
||||
for index: cast(s32)0..shop.activity_count - 1 {
|
||||
y += ActivityRow(index, x, y, content_width)
|
||||
}
|
||||
}
|
||||
unused End(shop.session)
|
||||
}
|
||||
|
||||
// Asks before a reward's price is spent: the reward, its price and the
|
||||
// coins left after it.
|
||||
BuyDialog :: () {
|
||||
reward := shop.buying
|
||||
width := shop.view_width - Scale(32)
|
||||
if width > Scale(380) {
|
||||
width = Scale(380)
|
||||
}
|
||||
frame := ModalFrame(shop.session, ModalFrameProps.{
|
||||
.key = KeyHash("inbe/habits/shop/buy"),
|
||||
.title = Locale("habit_shop_buy_title"),
|
||||
.width = width, .height = Scale(250), .scale = shop.scale})
|
||||
if frame.dismissed {
|
||||
shop.action = HABITS_SHOP_CLOSE
|
||||
return
|
||||
}
|
||||
if !frame.opened {
|
||||
return
|
||||
}
|
||||
content := frame.layout.content
|
||||
x := cast(s32)content.x
|
||||
y := cast(s32)content.y
|
||||
inner_w := cast(s32)content.width
|
||||
symbol := Scale(30)
|
||||
SvgIcon(shop.session, SvgIconProps.{.bounds = Bounds(x, y, symbol, symbol),
|
||||
.shape = HabitIconShape(HabitRewardIconClamp(reward.icon)),
|
||||
.color = shop.text_color})
|
||||
strong: [1]TextRange
|
||||
strong[0] = TextRange.{.start = 0, .end = cast(s32)reward.name.count}
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(x + symbol + Scale(10), y, inner_w - symbol - Scale(10), Scale(30)),
|
||||
.text = reward.name, .strong = strong[:],
|
||||
.vertical_align = cast(TextAlign)TextAlignCenter,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
y += Scale(34)
|
||||
CoinAmount(Number(cast(s64)reward.price), Bounds(x, y, inner_w, Scale(30)),
|
||||
shop.font + Scale(4))
|
||||
y += Scale(36)
|
||||
left := shop.halves - cast(s64)reward.price * 2
|
||||
Text(shop.session, TextProps.{
|
||||
.bounds = Bounds(x, y, inner_w, Scale(24)),
|
||||
.text = Filled(Locale("habit_shop_buy_left"), Coins(left)),
|
||||
.font = shop.small_font, .class_name = shop.muted_class,
|
||||
.wrap = cast(TextWrap)TextWrapEllipsis})
|
||||
button_y := cast(s32)(content.y + content.height) - Scale(44)
|
||||
half := (inner_w - Scale(10)) / 2
|
||||
cancelled := Button(shop.session, ButtonProps.{
|
||||
.id = 8430, .bounds = Bounds(x, button_y, half, Scale(42)),
|
||||
.label = Locale("cancel_button"), .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisOutline, .fit_content = true}) != 0
|
||||
bought := Button(shop.session, ButtonProps.{
|
||||
.id = 8431, .bounds = Bounds(x + half + Scale(10), button_y, half, Scale(42)),
|
||||
.label = Locale("habit_shop_buy_button"), .tone = cast(ButtonTone)ButtonToneAccent,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisFilled, .fit_content = true,
|
||||
.disabled = left < -cast(s64)shop.borrow_limit * 2}) != 0
|
||||
unused End(shop.session)
|
||||
if cancelled {
|
||||
shop.action = HABITS_SHOP_CLOSE
|
||||
return
|
||||
}
|
||||
if bought {
|
||||
unused BuyHabitRewardHost(reward)
|
||||
shop.action = HABITS_SHOP_CLOSE
|
||||
}
|
||||
}
|
||||
|
||||
HabitsShopView :: (message: HabitsMessage) -> HabitsMessage {
|
||||
shop = ReadHabitsShopHost()
|
||||
shop.action = HABITS_SHOP_NONE
|
||||
shop.clipboard_write = false
|
||||
if message.action == HABITS_SHOP_BUY_DIALOG {
|
||||
BuyDialog()
|
||||
} else {
|
||||
ShopPage()
|
||||
}
|
||||
WriteHabitsShopHost(shop)
|
||||
message.succeeded = true
|
||||
return message
|
||||
}
|
||||
@@ -1,67 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.43] - 2026-10-23
|
||||
|
||||
- Bring Lumi 1.5.9, Habits 1.2.8, Practices 1.3.8, Lists 1.1.10, Diary 1.3.7 and Leaderboard 1.0.12 for Inner Breeze 2.1.43.
|
||||
|
||||
## [2.1.42] - 2026-10-22
|
||||
|
||||
- Bring Lumi 1.5.8, Habits 1.2.7, Practices 1.3.6, Lists 1.1.9, Diary 1.3.6 and Leaderboard 1.0.11 for Inner Breeze 2.1.42.
|
||||
|
||||
## [2.1.41] - 2026-10-22
|
||||
|
||||
- Bring Lumi 1.5.7, Habits 1.2.6, Practices 1.3.5, Lists 1.1.8, Diary 1.3.5 and Leaderboard 1.0.10 for Inner Breeze 2.1.41.
|
||||
|
||||
## [2.1.40] - 2026-10-22
|
||||
|
||||
- Bring Lumi 1.5.6, Habits 1.2.5, Practices 1.3.4, Lists 1.1.7, Diary 1.3.4 and Leaderboard 1.0.9 for Inner Breeze 2.1.40.
|
||||
|
||||
## [2.1.39] - 2026-10-22
|
||||
|
||||
- Bring Lumi 1.5.5, Habits 1.2.4, Practices 1.3.3, Lists 1.1.6, Diary 1.3.3 and Leaderboard 1.0.8 for Inner Breeze 2.1.39.
|
||||
|
||||
## [2.1.38] - 2026-10-21
|
||||
|
||||
- Show activity once, with a single Profile interface and distinct achievement icons.
|
||||
- Bring Lumi 1.5.4, Habits 1.2.3, Practices 1.3.2, Lists 1.1.5, Diary 1.3.2 and Leaderboard 1.0.7 for Inner Breeze 2.1.38.
|
||||
|
||||
## [2.1.37] - 2026-10-20
|
||||
|
||||
- Bring Lumi 1.5.3, Habits 1.2.1, Practices 1.3.1, Lists 1.1.3, Diary 1.3.1 and Leaderboard 1.0.6 for Inner Breeze 2.1.37.
|
||||
|
||||
## [2.1.36] - 2026-10-18
|
||||
|
||||
- Bring Practices 1.3.0, with a separate Astral Projection download, for Inner Breeze 2.1.36.
|
||||
|
||||
## [2.1.35] - 2026-10-18
|
||||
|
||||
- Bring Lumi 1.5.2, Habits 1.1.2, Practices 1.2.2, Lists 1.1.2, Diary 1.3.0 and Leaderboard 1.0.5 for Inner Breeze 2.1.36.
|
||||
|
||||
## [2.1.34] - 2026-10-17
|
||||
|
||||
- Bring Diary 1.2.0, with Markdown entries and photos inside them, and Habits 1.1.0, with its count dialog, for Inner Breeze 2.1.35.
|
||||
- Requires Inner Breeze 2.1.35 or later.
|
||||
|
||||
## [2.1.33] - 2026-10-17
|
||||
|
||||
- Bring Lumi 1.5.1, Habits 1.0.7, Practices 1.2.1, Lists 1.1.1, Diary 1.1.12 and Leaderboard 1.0.4 for Inner Breeze 2.1.35.
|
||||
|
||||
## [2.1.32] - 2026-10-15
|
||||
|
||||
- Bring Practices 1.2.0 with separate practice and language downloads.
|
||||
- Requires Inner Breeze 2.1.34 or later.
|
||||
|
||||
## [2.1.31] - 2026-10-15
|
||||
|
||||
- Bring Lists 1.1.0 with friend invitations and shared task editing.
|
||||
- Requires Inner Breeze 2.1.34 or later.
|
||||
|
||||
|
||||
## [2.1.30] - 2026-10-13
|
||||
|
||||
- Bring Lumi 1.4.0, Habits 1.0.5, Practices 1.1.5, Lists 1.0.6, Diary 1.1.10 and Leaderboard 1.0.2.
|
||||
- Requires Inner Breeze 2.1.33 or later.
|
||||
|
||||
## [2.1.29] - 2026-10-11
|
||||
|
||||
- Bring Lumi 1.3.9, Diary 1.1.9, Lists 1.0.5 and Leaderboard 1.0.1.
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Osobní profil · 1 dnů",
|
||||
"achievement_self_active_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_3_title": "Osobní profil · 3 dnů",
|
||||
"achievement_self_active_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_7_title": "Osobní profil · 7 dnů",
|
||||
"achievement_self_active_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_14_title": "Osobní profil · 14 dnů",
|
||||
"achievement_self_active_14_description": "Vykonejte tuto aktivitu v 14 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_30_title": "Osobní profil · 30 dnů",
|
||||
"achievement_self_active_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_60_title": "Osobní profil · 60 dnů",
|
||||
"achievement_self_active_60_description": "Vykonejte tuto aktivitu v 60 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_100_title": "Osobní profil · 100 dnů",
|
||||
"achievement_self_active_100_description": "Vykonejte tuto aktivitu v 100 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_180_title": "Osobní profil · 180 dnů",
|
||||
"achievement_self_active_180_description": "Vykonejte tuto aktivitu v 180 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_active_365_title": "Osobní profil · 365 dnů",
|
||||
"achievement_self_active_365_description": "Vykonejte tuto aktivitu v 365 různých dnech: smysluplná uložená aktivita.",
|
||||
"achievement_self_return_14_title": "Osobní profil · 14 dnů přestávky",
|
||||
"achievement_self_return_14_description": "Vraťte se po alespoň 14 celých dnech bez této aktivity: smysluplná uložená aktivita."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Persönliches Profil · 1 Tage",
|
||||
"achievement_self_active_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_3_title": "Persönliches Profil · 3 Tage",
|
||||
"achievement_self_active_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_7_title": "Persönliches Profil · 7 Tage",
|
||||
"achievement_self_active_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_14_title": "Persönliches Profil · 14 Tage",
|
||||
"achievement_self_active_14_description": "Führe dies an 14 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_30_title": "Persönliches Profil · 30 Tage",
|
||||
"achievement_self_active_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_60_title": "Persönliches Profil · 60 Tage",
|
||||
"achievement_self_active_60_description": "Führe dies an 60 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_100_title": "Persönliches Profil · 100 Tage",
|
||||
"achievement_self_active_100_description": "Führe dies an 100 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_180_title": "Persönliches Profil · 180 Tage",
|
||||
"achievement_self_active_180_description": "Führe dies an 180 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_active_365_title": "Persönliches Profil · 365 Tage",
|
||||
"achievement_self_active_365_description": "Führe dies an 365 unterschiedlichen Tagen aus: eine sinnvolle gespeicherte Aktivität.",
|
||||
"achievement_self_return_14_title": "Persönliches Profil · 14 Tage Pause",
|
||||
"achievement_self_return_14_description": "Kehre nach mindestens 14 ganzen Tagen ohne diese Aktivität zurück: eine sinnvolle gespeicherte Aktivität."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "A beginning",
|
||||
"achievement_self_active_1_description": "Do this on 1 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_3_title": "Three days for yourself",
|
||||
"achievement_self_active_3_description": "Do this on 3 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_7_title": "A week of moments",
|
||||
"achievement_self_active_7_description": "Do this on 7 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_14_title": "Fourteen moments",
|
||||
"achievement_self_active_14_description": "Do this on 14 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_30_title": "Thirty days for yourself",
|
||||
"achievement_self_active_30_description": "Do this on 30 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_60_title": "Sixty days of care",
|
||||
"achievement_self_active_60_description": "Do this on 60 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_100_title": "One hundred days",
|
||||
"achievement_self_active_100_description": "Do this on 100 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_180_title": "A growing history",
|
||||
"achievement_self_active_180_description": "Do this on 180 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_active_365_title": "A year of moments",
|
||||
"achievement_self_active_365_description": "Do this on 365 distinct dates: a meaningful saved activity.",
|
||||
"achievement_self_return_14_title": "Welcome back",
|
||||
"achievement_self_return_14_description": "Return after at least 14 full days without this activity: a meaningful saved activity."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Perfil personal · 1 días",
|
||||
"achievement_self_active_1_description": "Realiza esto en 1 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_3_title": "Perfil personal · 3 días",
|
||||
"achievement_self_active_3_description": "Realiza esto en 3 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_7_title": "Perfil personal · 7 días",
|
||||
"achievement_self_active_7_description": "Realiza esto en 7 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_14_title": "Perfil personal · 14 días",
|
||||
"achievement_self_active_14_description": "Realiza esto en 14 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_30_title": "Perfil personal · 30 días",
|
||||
"achievement_self_active_30_description": "Realiza esto en 30 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_60_title": "Perfil personal · 60 días",
|
||||
"achievement_self_active_60_description": "Realiza esto en 60 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_100_title": "Perfil personal · 100 días",
|
||||
"achievement_self_active_100_description": "Realiza esto en 100 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_180_title": "Perfil personal · 180 días",
|
||||
"achievement_self_active_180_description": "Realiza esto en 180 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_active_365_title": "Perfil personal · 365 días",
|
||||
"achievement_self_active_365_description": "Realiza esto en 365 fechas distintas: una actividad significativa guardada.",
|
||||
"achievement_self_return_14_title": "Perfil personal · 14 días de pausa",
|
||||
"achievement_self_return_14_description": "Vuelve después de al menos 14 días completos sin esta actividad: una actividad significativa guardada."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Profil personnel · 1 jours",
|
||||
"achievement_self_active_1_description": "Faites ceci à 1 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_3_title": "Profil personnel · 3 jours",
|
||||
"achievement_self_active_3_description": "Faites ceci à 3 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_7_title": "Profil personnel · 7 jours",
|
||||
"achievement_self_active_7_description": "Faites ceci à 7 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_14_title": "Profil personnel · 14 jours",
|
||||
"achievement_self_active_14_description": "Faites ceci à 14 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_30_title": "Profil personnel · 30 jours",
|
||||
"achievement_self_active_30_description": "Faites ceci à 30 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_60_title": "Profil personnel · 60 jours",
|
||||
"achievement_self_active_60_description": "Faites ceci à 60 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_100_title": "Profil personnel · 100 jours",
|
||||
"achievement_self_active_100_description": "Faites ceci à 100 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_180_title": "Profil personnel · 180 jours",
|
||||
"achievement_self_active_180_description": "Faites ceci à 180 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_active_365_title": "Profil personnel · 365 jours",
|
||||
"achievement_self_active_365_description": "Faites ceci à 365 dates distinctes : une activité utile enregistrée.",
|
||||
"achievement_self_return_14_title": "Profil personnel · 14 jours de pause",
|
||||
"achievement_self_return_14_description": "Revenez après au moins 14 journées entières sans cette activité : une activité utile enregistrée."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Profil diri · 1 hari",
|
||||
"achievement_self_active_1_description": "Lakukan ini pada 1 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_3_title": "Profil diri · 3 hari",
|
||||
"achievement_self_active_3_description": "Lakukan ini pada 3 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_7_title": "Profil diri · 7 hari",
|
||||
"achievement_self_active_7_description": "Lakukan ini pada 7 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_14_title": "Profil diri · 14 hari",
|
||||
"achievement_self_active_14_description": "Lakukan ini pada 14 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_30_title": "Profil diri · 30 hari",
|
||||
"achievement_self_active_30_description": "Lakukan ini pada 30 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_60_title": "Profil diri · 60 hari",
|
||||
"achievement_self_active_60_description": "Lakukan ini pada 60 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_100_title": "Profil diri · 100 hari",
|
||||
"achievement_self_active_100_description": "Lakukan ini pada 100 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_180_title": "Profil diri · 180 hari",
|
||||
"achievement_self_active_180_description": "Lakukan ini pada 180 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_active_365_title": "Profil diri · 365 hari",
|
||||
"achievement_self_active_365_description": "Lakukan ini pada 365 tanggal berbeda: aktivitas bermakna yang disimpan.",
|
||||
"achievement_self_return_14_title": "Profil diri · 14 hari jeda",
|
||||
"achievement_self_return_14_description": "Kembali setelah setidaknya 14 hari penuh tanpa aktivitas ini: aktivitas bermakna yang disimpan."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Profilo personale · 1 giorni",
|
||||
"achievement_self_active_1_description": "Fallo in 1 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_3_title": "Profilo personale · 3 giorni",
|
||||
"achievement_self_active_3_description": "Fallo in 3 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_7_title": "Profilo personale · 7 giorni",
|
||||
"achievement_self_active_7_description": "Fallo in 7 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_14_title": "Profilo personale · 14 giorni",
|
||||
"achievement_self_active_14_description": "Fallo in 14 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_30_title": "Profilo personale · 30 giorni",
|
||||
"achievement_self_active_30_description": "Fallo in 30 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_60_title": "Profilo personale · 60 giorni",
|
||||
"achievement_self_active_60_description": "Fallo in 60 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_100_title": "Profilo personale · 100 giorni",
|
||||
"achievement_self_active_100_description": "Fallo in 100 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_180_title": "Profilo personale · 180 giorni",
|
||||
"achievement_self_active_180_description": "Fallo in 180 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_active_365_title": "Profilo personale · 365 giorni",
|
||||
"achievement_self_active_365_description": "Fallo in 365 date distinte: un’attività significativa salvata.",
|
||||
"achievement_self_return_14_title": "Profilo personale · 14 giorni di pausa",
|
||||
"achievement_self_return_14_description": "Ritorna dopo almeno 14 giorni interi senza questa attività: un’attività significativa salvata."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "自分のプロフィール · 1 日",
|
||||
"achievement_self_active_1_description": "異なる1日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_3_title": "自分のプロフィール · 3 日",
|
||||
"achievement_self_active_3_description": "異なる3日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_7_title": "自分のプロフィール · 7 日",
|
||||
"achievement_self_active_7_description": "異なる7日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_14_title": "自分のプロフィール · 14 日",
|
||||
"achievement_self_active_14_description": "異なる14日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_30_title": "自分のプロフィール · 30 日",
|
||||
"achievement_self_active_30_description": "異なる30日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_60_title": "自分のプロフィール · 60 日",
|
||||
"achievement_self_active_60_description": "異なる60日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_100_title": "自分のプロフィール · 100 日",
|
||||
"achievement_self_active_100_description": "異なる100日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_180_title": "自分のプロフィール · 180 日",
|
||||
"achievement_self_active_180_description": "異なる180日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_active_365_title": "自分のプロフィール · 365 日",
|
||||
"achievement_self_active_365_description": "異なる365日で行う:意味のある保存済みの活動。",
|
||||
"achievement_self_return_14_title": "自分のプロフィール · 14 日間の休止",
|
||||
"achievement_self_return_14_description": "この活動をしない日が丸14日以上続いた後に再開する:意味のある保存済みの活動。"
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "내 프로필 · 1 일",
|
||||
"achievement_self_active_1_description": "서로 다른 1일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_3_title": "내 프로필 · 3 일",
|
||||
"achievement_self_active_3_description": "서로 다른 3일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_7_title": "내 프로필 · 7 일",
|
||||
"achievement_self_active_7_description": "서로 다른 7일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_14_title": "내 프로필 · 14 일",
|
||||
"achievement_self_active_14_description": "서로 다른 14일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_30_title": "내 프로필 · 30 일",
|
||||
"achievement_self_active_30_description": "서로 다른 30일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_60_title": "내 프로필 · 60 일",
|
||||
"achievement_self_active_60_description": "서로 다른 60일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_100_title": "내 프로필 · 100 일",
|
||||
"achievement_self_active_100_description": "서로 다른 100일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_180_title": "내 프로필 · 180 일",
|
||||
"achievement_self_active_180_description": "서로 다른 180일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_active_365_title": "내 프로필 · 365 일",
|
||||
"achievement_self_active_365_description": "서로 다른 365일에 수행하세요: 의미 있는 저장된 활동.",
|
||||
"achievement_self_return_14_title": "내 프로필 · 14 일의 휴식",
|
||||
"achievement_self_return_14_description": "이 활동 없이 온전히 14일 이상 지난 뒤 돌아오세요: 의미 있는 저장된 활동."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Perfil pessoal · 1 dias",
|
||||
"achievement_self_active_1_description": "Faça isto em 1 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_3_title": "Perfil pessoal · 3 dias",
|
||||
"achievement_self_active_3_description": "Faça isto em 3 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_7_title": "Perfil pessoal · 7 dias",
|
||||
"achievement_self_active_7_description": "Faça isto em 7 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_14_title": "Perfil pessoal · 14 dias",
|
||||
"achievement_self_active_14_description": "Faça isto em 14 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_30_title": "Perfil pessoal · 30 dias",
|
||||
"achievement_self_active_30_description": "Faça isto em 30 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_60_title": "Perfil pessoal · 60 dias",
|
||||
"achievement_self_active_60_description": "Faça isto em 60 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_100_title": "Perfil pessoal · 100 dias",
|
||||
"achievement_self_active_100_description": "Faça isto em 100 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_180_title": "Perfil pessoal · 180 dias",
|
||||
"achievement_self_active_180_description": "Faça isto em 180 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_active_365_title": "Perfil pessoal · 365 dias",
|
||||
"achievement_self_active_365_description": "Faça isto em 365 datas distintas: uma atividade significativa guardada.",
|
||||
"achievement_self_return_14_title": "Perfil pessoal · 14 dias de pausa",
|
||||
"achievement_self_return_14_description": "Regresse após pelo menos 14 dias completos sem esta atividade: uma atividade significativa guardada."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "Личный профиль · 1 дней",
|
||||
"achievement_self_active_1_description": "Сделайте это в 1 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_3_title": "Личный профиль · 3 дней",
|
||||
"achievement_self_active_3_description": "Сделайте это в 3 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_7_title": "Личный профиль · 7 дней",
|
||||
"achievement_self_active_7_description": "Сделайте это в 7 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_14_title": "Личный профиль · 14 дней",
|
||||
"achievement_self_active_14_description": "Сделайте это в 14 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_30_title": "Личный профиль · 30 дней",
|
||||
"achievement_self_active_30_description": "Сделайте это в 30 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_60_title": "Личный профиль · 60 дней",
|
||||
"achievement_self_active_60_description": "Сделайте это в 60 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_100_title": "Личный профиль · 100 дней",
|
||||
"achievement_self_active_100_description": "Сделайте это в 100 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_180_title": "Личный профиль · 180 дней",
|
||||
"achievement_self_active_180_description": "Сделайте это в 180 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_active_365_title": "Личный профиль · 365 дней",
|
||||
"achievement_self_active_365_description": "Сделайте это в 365 разных датах: осмысленное сохранённое действие.",
|
||||
"achievement_self_return_14_title": "Личный профиль · 14 дней перерыва",
|
||||
"achievement_self_return_14_description": "Вернитесь после как минимум 14 полных дней без этой активности: осмысленное сохранённое действие."
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"achievement_self_active_1_title": "个人资料 · 1 天",
|
||||
"achievement_self_active_1_description": "在1个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_3_title": "个人资料 · 3 天",
|
||||
"achievement_self_active_3_description": "在3个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_7_title": "个人资料 · 7 天",
|
||||
"achievement_self_active_7_description": "在7个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_14_title": "个人资料 · 14 天",
|
||||
"achievement_self_active_14_description": "在14个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_30_title": "个人资料 · 30 天",
|
||||
"achievement_self_active_30_description": "在30个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_60_title": "个人资料 · 60 天",
|
||||
"achievement_self_active_60_description": "在60个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_100_title": "个人资料 · 100 天",
|
||||
"achievement_self_active_100_description": "在100个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_180_title": "个人资料 · 180 天",
|
||||
"achievement_self_active_180_description": "在180个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_active_365_title": "个人资料 · 365 天",
|
||||
"achievement_self_active_365_description": "在365个不同日期进行:有意义且已保存的活动。",
|
||||
"achievement_self_return_14_title": "个人资料 · 14 天间隔",
|
||||
"achievement_self_return_14_description": "至少有连续14个完整日期未进行此活动后再次进行:有意义且已保存的活动。"
|
||||
}
|
||||
@@ -1,166 +0,0 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"app": "inbe",
|
||||
"achievements": [
|
||||
{
|
||||
"id": "self.active.1",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_1_title",
|
||||
"description_key": "achievement_self_active_1_description",
|
||||
"title": "A beginning",
|
||||
"description": "Record 1 active day.",
|
||||
"icon": "assets/app/icons/self.active.1.shape",
|
||||
"icon_source": "mingcute_regular_maple_leaf"
|
||||
},
|
||||
{
|
||||
"id": "self.active.3",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 3,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_3_title",
|
||||
"description_key": "achievement_self_active_3_description",
|
||||
"title": "Three days for yourself",
|
||||
"description": "Record 3 active days.",
|
||||
"icon": "assets/app/icons/self.active.3.shape",
|
||||
"icon_source": "mingcute_regular_leaf"
|
||||
},
|
||||
{
|
||||
"id": "self.active.7",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 7,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_7_title",
|
||||
"description_key": "achievement_self_active_7_description",
|
||||
"title": "A week of moments",
|
||||
"description": "Record 7 active days.",
|
||||
"icon": "assets/app/icons/self.active.7.shape",
|
||||
"icon_source": "mingcute_regular_flowerpot"
|
||||
},
|
||||
{
|
||||
"id": "self.active.14",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 14,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_14_title",
|
||||
"description_key": "achievement_self_active_14_description",
|
||||
"title": "Fourteen moments",
|
||||
"description": "Record 14 active days.",
|
||||
"icon": "assets/app/icons/self.active.14.shape",
|
||||
"icon_source": "mingcute_regular_flower_2"
|
||||
},
|
||||
{
|
||||
"id": "self.active.30",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 30,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_30_title",
|
||||
"description_key": "achievement_self_active_30_description",
|
||||
"title": "Thirty days for yourself",
|
||||
"description": "Record 30 active days.",
|
||||
"icon": "assets/app/icons/self.active.30.shape",
|
||||
"icon_source": "mingcute_regular_flower_4"
|
||||
},
|
||||
{
|
||||
"id": "self.active.60",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 60,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_60_title",
|
||||
"description_key": "achievement_self_active_60_description",
|
||||
"title": "Sixty days of care",
|
||||
"description": "Record 60 active days.",
|
||||
"icon": "assets/app/icons/self.active.60.shape",
|
||||
"icon_source": "mingcute_regular_tree"
|
||||
},
|
||||
{
|
||||
"id": "self.active.100",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 100,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_100_title",
|
||||
"description_key": "achievement_self_active_100_description",
|
||||
"title": "One hundred days",
|
||||
"description": "Record 100 active days.",
|
||||
"icon": "assets/app/icons/self.active.100.shape",
|
||||
"icon_source": "mingcute_regular_mountain"
|
||||
},
|
||||
{
|
||||
"id": "self.active.180",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 180,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_180_title",
|
||||
"description_key": "achievement_self_active_180_description",
|
||||
"title": "A growing history",
|
||||
"description": "Record 180 active days.",
|
||||
"icon": "assets/app/icons/self.active.180.shape",
|
||||
"icon_source": "mingcute_regular_lighthouse"
|
||||
},
|
||||
{
|
||||
"id": "self.active.365",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "days",
|
||||
"target": 365,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_active_365_title",
|
||||
"description_key": "achievement_self_active_365_description",
|
||||
"title": "A year of moments",
|
||||
"description": "Record 365 active days.",
|
||||
"icon": "assets/app/icons/self.active.365.shape",
|
||||
"icon_source": "mingcute_regular_earth"
|
||||
},
|
||||
{
|
||||
"id": "self.return.14",
|
||||
"group": "self",
|
||||
"metric": "*",
|
||||
"rule": "return",
|
||||
"target": 14,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_self_return_14_title",
|
||||
"description_key": "achievement_self_return_14_description",
|
||||
"title": "Welcome back",
|
||||
"description": "Record an active day after a 14-day activity gap.",
|
||||
"icon": "assets/app/icons/self.return.14.shape",
|
||||
"icon_source": "mingcute_regular_open_door"
|
||||
}
|
||||
]
|
||||
}
|
||||
+2
-4
@@ -4,7 +4,6 @@
|
||||
#import, file "../../src/cells/inbe_types.zi";
|
||||
#import, file "inbe_view.zi";
|
||||
#import, file "../../src/cells/module_types.zi";
|
||||
#import "apps/node_types"
|
||||
#import, file "../../src/core/types.zi";
|
||||
host_api :: #system_library "host_api";
|
||||
ReadInbeHost :: () -> InbeMessage #foreign host_api;
|
||||
@@ -30,9 +29,8 @@ InbeAppForScreen :: (screen: s32) -> s32 {
|
||||
}
|
||||
if screen == ScreenStart || screen == ScreenSession ||
|
||||
screen == ScreenMeditation || screen == ScreenSunSalutation ||
|
||||
screen == ScreenPatterns || screen == ScreenTaiChi || screen == ScreenAstralProjection || screen == ScreenWorkout ||
|
||||
screen == ScreenResults || screen == ScreenPracticeConfig ||
|
||||
screen == ScreenManual {
|
||||
screen == ScreenPatterns || screen == ScreenResults ||
|
||||
screen == ScreenPracticeConfig || screen == ScreenManual {
|
||||
return APP_PRACTICE
|
||||
}
|
||||
return 0
|
||||
|
||||
@@ -1,53 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## [1.0.12] - 2026-10-23
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.43.
|
||||
|
||||
## [1.0.11] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.42.
|
||||
|
||||
## [1.0.10] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.41.
|
||||
|
||||
## [1.0.9] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.40.
|
||||
|
||||
## [1.0.8] - 2026-10-22
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.39.
|
||||
|
||||
## [1.0.7] - 2026-10-21
|
||||
|
||||
- Give each achievement its own meaningful icon.
|
||||
- Maintenance release for Inner Breeze 2.1.38.
|
||||
|
||||
## [1.0.6] - 2026-10-20
|
||||
|
||||
- Lists only installed apps with a ranking: Practice by each installed practice, and Arcade by each game.
|
||||
- Arcade games rank the levels you have solved, such as in Shovey Classic and Shovey Island.
|
||||
|
||||
## [1.0.5] - 2026-10-18
|
||||
|
||||
- Choose any practice you have installed, including Tai Chi and Astral
|
||||
Projection, in your Practice order. Practices you haven't installed are
|
||||
no longer listed. Inner Breeze 2.1.35 and earlier keep the original four.
|
||||
|
||||
## [1.0.4] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.35.
|
||||
|
||||
## [1.0.3] - 2026-10-17
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.34.
|
||||
|
||||
## [1.0.2] - 2026-10-13
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.33.
|
||||
|
||||
## [1.0.1] - 2026-10-11
|
||||
|
||||
- Scrollbars use your theme's colours and show how much of the list is in view.
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Žebříček · 1 dnů",
|
||||
"achievement_leaderboard_check_days_1_description": "Vykonejte tuto aktivitu v 1 různých dnech: zobrazení vlastního výsledku v žebříčku.",
|
||||
"achievement_leaderboard_check_days_3_title": "Žebříček · 3 dnů",
|
||||
"achievement_leaderboard_check_days_3_description": "Vykonejte tuto aktivitu v 3 různých dnech: zobrazení vlastního výsledku v žebříčku.",
|
||||
"achievement_leaderboard_check_days_7_title": "Žebříček · 7 dnů",
|
||||
"achievement_leaderboard_check_days_7_description": "Vykonejte tuto aktivitu v 7 různých dnech: zobrazení vlastního výsledku v žebříčku.",
|
||||
"achievement_leaderboard_check_days_30_title": "Žebříček · 30 dnů",
|
||||
"achievement_leaderboard_check_days_30_description": "Vykonejte tuto aktivitu v 30 různých dnech: zobrazení vlastního výsledku v žebříčku.",
|
||||
"achievement_leaderboard_practices_2_title": "Žebříček · 2 různých položek",
|
||||
"achievement_leaderboard_practices_2_description": "Dosáhněte 2 různých položek touto aktivitou: zobrazení vlastního výsledku v žebříčku."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Rangliste · 1 Tage",
|
||||
"achievement_leaderboard_check_days_1_description": "Führe dies an 1 unterschiedlichen Tagen aus: das Ansehen deines eigenen Ergebnisses in der Rangliste.",
|
||||
"achievement_leaderboard_check_days_3_title": "Rangliste · 3 Tage",
|
||||
"achievement_leaderboard_check_days_3_description": "Führe dies an 3 unterschiedlichen Tagen aus: das Ansehen deines eigenen Ergebnisses in der Rangliste.",
|
||||
"achievement_leaderboard_check_days_7_title": "Rangliste · 7 Tage",
|
||||
"achievement_leaderboard_check_days_7_description": "Führe dies an 7 unterschiedlichen Tagen aus: das Ansehen deines eigenen Ergebnisses in der Rangliste.",
|
||||
"achievement_leaderboard_check_days_30_title": "Rangliste · 30 Tage",
|
||||
"achievement_leaderboard_check_days_30_description": "Führe dies an 30 unterschiedlichen Tagen aus: das Ansehen deines eigenen Ergebnisses in der Rangliste.",
|
||||
"achievement_leaderboard_practices_2_title": "Rangliste · 2 verschiedene Elemente",
|
||||
"achievement_leaderboard_practices_2_description": "Erreiche 2 unterschiedliche Elemente mit dieser Aktion: das Ansehen deines eigenen Ergebnisses in der Rangliste."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "A look at your progress",
|
||||
"achievement_leaderboard_check_days_1_description": "Do this on 1 distinct dates: your own result viewed on Leaderboard.",
|
||||
"achievement_leaderboard_check_days_3_title": "Three progress check-ins",
|
||||
"achievement_leaderboard_check_days_3_description": "Do this on 3 distinct dates: your own result viewed on Leaderboard.",
|
||||
"achievement_leaderboard_check_days_7_title": "Seven progress check-ins",
|
||||
"achievement_leaderboard_check_days_7_description": "Do this on 7 distinct dates: your own result viewed on Leaderboard.",
|
||||
"achievement_leaderboard_check_days_30_title": "Thirty progress check-ins",
|
||||
"achievement_leaderboard_check_days_30_description": "Do this on 30 distinct dates: your own result viewed on Leaderboard.",
|
||||
"achievement_leaderboard_practices_2_title": "Two perspectives",
|
||||
"achievement_leaderboard_practices_2_description": "Reach 2 distinct items through this action: your own result viewed on Leaderboard."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Clasificación · 1 días",
|
||||
"achievement_leaderboard_check_days_1_description": "Realiza esto en 1 fechas distintas: tu propio resultado visto en la clasificación.",
|
||||
"achievement_leaderboard_check_days_3_title": "Clasificación · 3 días",
|
||||
"achievement_leaderboard_check_days_3_description": "Realiza esto en 3 fechas distintas: tu propio resultado visto en la clasificación.",
|
||||
"achievement_leaderboard_check_days_7_title": "Clasificación · 7 días",
|
||||
"achievement_leaderboard_check_days_7_description": "Realiza esto en 7 fechas distintas: tu propio resultado visto en la clasificación.",
|
||||
"achievement_leaderboard_check_days_30_title": "Clasificación · 30 días",
|
||||
"achievement_leaderboard_check_days_30_description": "Realiza esto en 30 fechas distintas: tu propio resultado visto en la clasificación.",
|
||||
"achievement_leaderboard_practices_2_title": "Clasificación · 2 elementos distintos",
|
||||
"achievement_leaderboard_practices_2_description": "Alcanza 2 elementos distintos mediante esta acción: tu propio resultado visto en la clasificación."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Classement · 1 jours",
|
||||
"achievement_leaderboard_check_days_1_description": "Faites ceci à 1 dates distinctes : la consultation de votre propre résultat au classement.",
|
||||
"achievement_leaderboard_check_days_3_title": "Classement · 3 jours",
|
||||
"achievement_leaderboard_check_days_3_description": "Faites ceci à 3 dates distinctes : la consultation de votre propre résultat au classement.",
|
||||
"achievement_leaderboard_check_days_7_title": "Classement · 7 jours",
|
||||
"achievement_leaderboard_check_days_7_description": "Faites ceci à 7 dates distinctes : la consultation de votre propre résultat au classement.",
|
||||
"achievement_leaderboard_check_days_30_title": "Classement · 30 jours",
|
||||
"achievement_leaderboard_check_days_30_description": "Faites ceci à 30 dates distinctes : la consultation de votre propre résultat au classement.",
|
||||
"achievement_leaderboard_practices_2_title": "Classement · 2 éléments distincts",
|
||||
"achievement_leaderboard_practices_2_description": "Atteignez 2 éléments distincts par cette action : la consultation de votre propre résultat au classement."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Papan peringkat · 1 hari",
|
||||
"achievement_leaderboard_check_days_1_description": "Lakukan ini pada 1 tanggal berbeda: hasil Anda sendiri dilihat di papan peringkat.",
|
||||
"achievement_leaderboard_check_days_3_title": "Papan peringkat · 3 hari",
|
||||
"achievement_leaderboard_check_days_3_description": "Lakukan ini pada 3 tanggal berbeda: hasil Anda sendiri dilihat di papan peringkat.",
|
||||
"achievement_leaderboard_check_days_7_title": "Papan peringkat · 7 hari",
|
||||
"achievement_leaderboard_check_days_7_description": "Lakukan ini pada 7 tanggal berbeda: hasil Anda sendiri dilihat di papan peringkat.",
|
||||
"achievement_leaderboard_check_days_30_title": "Papan peringkat · 30 hari",
|
||||
"achievement_leaderboard_check_days_30_description": "Lakukan ini pada 30 tanggal berbeda: hasil Anda sendiri dilihat di papan peringkat.",
|
||||
"achievement_leaderboard_practices_2_title": "Papan peringkat · 2 item berbeda",
|
||||
"achievement_leaderboard_practices_2_description": "Capai 2 item berbeda melalui tindakan ini: hasil Anda sendiri dilihat di papan peringkat."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Classifica · 1 giorni",
|
||||
"achievement_leaderboard_check_days_1_description": "Fallo in 1 date distinte: il tuo risultato consultato nella classifica.",
|
||||
"achievement_leaderboard_check_days_3_title": "Classifica · 3 giorni",
|
||||
"achievement_leaderboard_check_days_3_description": "Fallo in 3 date distinte: il tuo risultato consultato nella classifica.",
|
||||
"achievement_leaderboard_check_days_7_title": "Classifica · 7 giorni",
|
||||
"achievement_leaderboard_check_days_7_description": "Fallo in 7 date distinte: il tuo risultato consultato nella classifica.",
|
||||
"achievement_leaderboard_check_days_30_title": "Classifica · 30 giorni",
|
||||
"achievement_leaderboard_check_days_30_description": "Fallo in 30 date distinte: il tuo risultato consultato nella classifica.",
|
||||
"achievement_leaderboard_practices_2_title": "Classifica · 2 elementi distinti",
|
||||
"achievement_leaderboard_practices_2_description": "Raggiungi 2 elementi distinti tramite questa azione: il tuo risultato consultato nella classifica."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "ランキング · 1 日",
|
||||
"achievement_leaderboard_check_days_1_description": "異なる1日で行う:ランキングで閲覧した自分の結果。",
|
||||
"achievement_leaderboard_check_days_3_title": "ランキング · 3 日",
|
||||
"achievement_leaderboard_check_days_3_description": "異なる3日で行う:ランキングで閲覧した自分の結果。",
|
||||
"achievement_leaderboard_check_days_7_title": "ランキング · 7 日",
|
||||
"achievement_leaderboard_check_days_7_description": "異なる7日で行う:ランキングで閲覧した自分の結果。",
|
||||
"achievement_leaderboard_check_days_30_title": "ランキング · 30 日",
|
||||
"achievement_leaderboard_check_days_30_description": "異なる30日で行う:ランキングで閲覧した自分の結果。",
|
||||
"achievement_leaderboard_practices_2_title": "ランキング · 2 種類の項目",
|
||||
"achievement_leaderboard_practices_2_description": "この操作で異なる2項目に達する:ランキングで閲覧した自分の結果。"
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "순위표 · 1 일",
|
||||
"achievement_leaderboard_check_days_1_description": "서로 다른 1일에 수행하세요: 순위표에서 확인한 자신의 결과.",
|
||||
"achievement_leaderboard_check_days_3_title": "순위표 · 3 일",
|
||||
"achievement_leaderboard_check_days_3_description": "서로 다른 3일에 수행하세요: 순위표에서 확인한 자신의 결과.",
|
||||
"achievement_leaderboard_check_days_7_title": "순위표 · 7 일",
|
||||
"achievement_leaderboard_check_days_7_description": "서로 다른 7일에 수행하세요: 순위표에서 확인한 자신의 결과.",
|
||||
"achievement_leaderboard_check_days_30_title": "순위표 · 30 일",
|
||||
"achievement_leaderboard_check_days_30_description": "서로 다른 30일에 수행하세요: 순위표에서 확인한 자신의 결과.",
|
||||
"achievement_leaderboard_practices_2_title": "순위표 · 2 개 항목",
|
||||
"achievement_leaderboard_practices_2_description": "이 작업으로 서로 다른 2개 항목에 도달하세요: 순위표에서 확인한 자신의 결과."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Classificação · 1 dias",
|
||||
"achievement_leaderboard_check_days_1_description": "Faça isto em 1 datas distintas: o seu próprio resultado visto na classificação.",
|
||||
"achievement_leaderboard_check_days_3_title": "Classificação · 3 dias",
|
||||
"achievement_leaderboard_check_days_3_description": "Faça isto em 3 datas distintas: o seu próprio resultado visto na classificação.",
|
||||
"achievement_leaderboard_check_days_7_title": "Classificação · 7 dias",
|
||||
"achievement_leaderboard_check_days_7_description": "Faça isto em 7 datas distintas: o seu próprio resultado visto na classificação.",
|
||||
"achievement_leaderboard_check_days_30_title": "Classificação · 30 dias",
|
||||
"achievement_leaderboard_check_days_30_description": "Faça isto em 30 datas distintas: o seu próprio resultado visto na classificação.",
|
||||
"achievement_leaderboard_practices_2_title": "Classificação · 2 elementos distintos",
|
||||
"achievement_leaderboard_practices_2_description": "Alcance 2 elementos distintos através desta ação: o seu próprio resultado visto na classificação."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "Таблица лидеров · 1 дней",
|
||||
"achievement_leaderboard_check_days_1_description": "Сделайте это в 1 разных датах: просмотр собственного результата в таблице лидеров.",
|
||||
"achievement_leaderboard_check_days_3_title": "Таблица лидеров · 3 дней",
|
||||
"achievement_leaderboard_check_days_3_description": "Сделайте это в 3 разных датах: просмотр собственного результата в таблице лидеров.",
|
||||
"achievement_leaderboard_check_days_7_title": "Таблица лидеров · 7 дней",
|
||||
"achievement_leaderboard_check_days_7_description": "Сделайте это в 7 разных датах: просмотр собственного результата в таблице лидеров.",
|
||||
"achievement_leaderboard_check_days_30_title": "Таблица лидеров · 30 дней",
|
||||
"achievement_leaderboard_check_days_30_description": "Сделайте это в 30 разных датах: просмотр собственного результата в таблице лидеров.",
|
||||
"achievement_leaderboard_practices_2_title": "Таблица лидеров · 2 разных элементов",
|
||||
"achievement_leaderboard_practices_2_description": "Достигните 2 разных элементов этим действием: просмотр собственного результата в таблице лидеров."
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"achievement_leaderboard_check_days_1_title": "排行榜 · 1 天",
|
||||
"achievement_leaderboard_check_days_1_description": "在1个不同日期进行:在排行榜中查看自己的结果。",
|
||||
"achievement_leaderboard_check_days_3_title": "排行榜 · 3 天",
|
||||
"achievement_leaderboard_check_days_3_description": "在3个不同日期进行:在排行榜中查看自己的结果。",
|
||||
"achievement_leaderboard_check_days_7_title": "排行榜 · 7 天",
|
||||
"achievement_leaderboard_check_days_7_description": "在7个不同日期进行:在排行榜中查看自己的结果。",
|
||||
"achievement_leaderboard_check_days_30_title": "排行榜 · 30 天",
|
||||
"achievement_leaderboard_check_days_30_description": "在30个不同日期进行:在排行榜中查看自己的结果。",
|
||||
"achievement_leaderboard_practices_2_title": "排行榜 · 2 种项目",
|
||||
"achievement_leaderboard_practices_2_description": "通过此操作达到2个不同项目:在排行榜中查看自己的结果。"
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"app": "inbe.leaderboard",
|
||||
"achievements": [
|
||||
{
|
||||
"id": "leaderboard.check_days.1",
|
||||
"group": "leaderboard",
|
||||
"metric": "leaderboard",
|
||||
"rule": "days",
|
||||
"target": 1,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_leaderboard_check_days_1_title",
|
||||
"description_key": "achievement_leaderboard_check_days_1_description",
|
||||
"title": "A look at your progress",
|
||||
"description": "Complete 1 own-row check-in.",
|
||||
"icon": "assets/leaderboard/icons/leaderboard.check_days.1.shape",
|
||||
"icon_source": "mingcute_regular_chart_bar"
|
||||
},
|
||||
{
|
||||
"id": "leaderboard.check_days.3",
|
||||
"group": "leaderboard",
|
||||
"metric": "leaderboard",
|
||||
"rule": "days",
|
||||
"target": 3,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_leaderboard_check_days_3_title",
|
||||
"description_key": "achievement_leaderboard_check_days_3_description",
|
||||
"title": "Three progress check-ins",
|
||||
"description": "Check your own row on 3 distinct days.",
|
||||
"icon": "assets/leaderboard/icons/leaderboard.check_days.3.shape",
|
||||
"icon_source": "mingcute_regular_chart_line"
|
||||
},
|
||||
{
|
||||
"id": "leaderboard.check_days.7",
|
||||
"group": "leaderboard",
|
||||
"metric": "leaderboard",
|
||||
"rule": "days",
|
||||
"target": 7,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_leaderboard_check_days_7_title",
|
||||
"description_key": "achievement_leaderboard_check_days_7_description",
|
||||
"title": "Seven progress check-ins",
|
||||
"description": "Check your own row on 7 distinct days.",
|
||||
"icon": "assets/leaderboard/icons/leaderboard.check_days.7.shape",
|
||||
"icon_source": "mingcute_regular_chart_pie"
|
||||
},
|
||||
{
|
||||
"id": "leaderboard.check_days.30",
|
||||
"group": "leaderboard",
|
||||
"metric": "leaderboard",
|
||||
"rule": "days",
|
||||
"target": 30,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "",
|
||||
"title_key": "achievement_leaderboard_check_days_30_title",
|
||||
"description_key": "achievement_leaderboard_check_days_30_description",
|
||||
"title": "Thirty progress check-ins",
|
||||
"description": "Check your own row on 30 distinct days.",
|
||||
"icon": "assets/leaderboard/icons/leaderboard.check_days.30.shape",
|
||||
"icon_source": "mingcute_regular_chart_vertical"
|
||||
},
|
||||
{
|
||||
"id": "leaderboard.practices.2",
|
||||
"group": "leaderboard",
|
||||
"metric": "leaderboard",
|
||||
"rule": "subjects",
|
||||
"target": 2,
|
||||
"variant": "",
|
||||
"pack": "",
|
||||
"needs": "two_practices",
|
||||
"title_key": "achievement_leaderboard_practices_2_title",
|
||||
"description_key": "achievement_leaderboard_practices_2_description",
|
||||
"title": "Two perspectives",
|
||||
"description": "Check your own row for 2 distinct installed practices; requires at least 2 installed practice packs.",
|
||||
"icon": "assets/leaderboard/icons/leaderboard.practices.2.shape",
|
||||
"icon_source": "mingcute_regular_scale"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
// host fetches friend results, keeps them for offline use and ranks rows.
|
||||
#import, file "../../src/cells/leaderboard_types.zi";
|
||||
#import, file "../../src/cells/module_types.zi";
|
||||
#import "apps/node_types"
|
||||
#import, file "../../src/core/types.zi";
|
||||
#import, file "leaderboard_view.zi";
|
||||
host_api :: #system_library "host_api";
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
// Called when the native adapter actually serves the account's visible row.
|
||||
#import "std/text_buffer"
|
||||
#import "std/vec"
|
||||
#import, file "../../src/storage/achievements.zi";
|
||||
#import, file "../../src/cells/package_files.zi";
|
||||
|
||||
AchievementLeaderboardViewed :: (practice: string) {
|
||||
day := AchievementToday()
|
||||
if day == 0 { return }
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%.%", practice, day)
|
||||
source := BuilderFinish(out)
|
||||
defer { PackageFree(source) }
|
||||
unused AchievementRecord("leaderboard", source, day, subject = practice)
|
||||
}
|
||||
@@ -16,8 +16,6 @@
|
||||
#import "box_props"
|
||||
#import "box_widget"
|
||||
#import "tree"
|
||||
#import "dropdown_props"
|
||||
#import "dropdown_widget"
|
||||
#import, file "../../src/cells/leaderboard_ui_types.zi";
|
||||
#import, file "../../src/cells/leaderboard_types.zi";
|
||||
|
||||
@@ -29,47 +27,22 @@ host_api :: #system_library "host_api";
|
||||
ReadLeaderboardUiHost :: () -> LeaderboardUiFrame #foreign host_api;
|
||||
WriteLeaderboardUiHost :: (frame: LeaderboardUiFrame) #foreign host_api;
|
||||
ReadLeaderboardRowHost :: (index: s32) -> LeaderboardUiRow #foreign host_api;
|
||||
ReadLeaderboardAppHost :: (index: s32) -> LeaderboardUiApp #foreign host_api;
|
||||
ReadLeaderboardBoardHost :: (index: s32) -> LeaderboardUiApp #foreign host_api;
|
||||
LeaderboardLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
frame: LeaderboardUiFrame;
|
||||
state: LeaderboardMessage;
|
||||
|
||||
// Hosts that do not list the installed practices offer Wim Hof, breathing
|
||||
// patterns, meditation and Sun Salutation.
|
||||
FALLBACK_PRACTICE_COUNT :: 4
|
||||
FallbackPracticeAt :: (index: s32) -> s32 {
|
||||
ids: [FALLBACK_PRACTICE_COUNT]s32 = .[0, 3, 1, 2]
|
||||
// Wim Hof, breathing patterns, meditation and Sun Salutation, as in Practice.
|
||||
PRACTICE_COUNT :: 4
|
||||
PracticeAt :: (index: s32) -> s32 {
|
||||
ids: [PRACTICE_COUNT]s32 = .[0, 3, 1, 2]
|
||||
return ids[index]
|
||||
}
|
||||
|
||||
// A practice this board cannot name has an empty label and is left out.
|
||||
PracticeLabel :: (practice: s32) -> string {
|
||||
if practice == 0 { return LeaderboardLocaleHost("exercise_wim_hof") }
|
||||
if practice == 1 { return LeaderboardLocaleHost("exercise_meditation") }
|
||||
if practice == 2 { return LeaderboardLocaleHost("exercise_sun_salutation") }
|
||||
if practice == 3 { return LeaderboardLocaleHost("exercise_patterns") }
|
||||
if practice == 4 { return LeaderboardLocaleHost("exercise_tai_chi") }
|
||||
if practice == 5 { return LeaderboardLocaleHost("exercise_astral_projection") }
|
||||
if practice == 6 { return LeaderboardLocaleHost("exercise_workout") }
|
||||
return ""
|
||||
}
|
||||
|
||||
// The installed practices in Practice's order, as the host lists them.
|
||||
PracticeChoices :: (ids: []s32) -> s32 {
|
||||
listed: s32 = ifx state.practices_listed then state.practice_count else FALLBACK_PRACTICE_COUNT
|
||||
if listed > cast(s32)state.practices.count {
|
||||
listed = cast(s32)state.practices.count
|
||||
}
|
||||
count: s32 = 0
|
||||
for index: cast(s32)0..listed - 1 {
|
||||
practice := ifx state.practices_listed then state.practices[index] else FallbackPracticeAt(index)
|
||||
if PracticeLabel(practice).count > 0 && count < ids.count {
|
||||
ids[count] = practice
|
||||
count += 1
|
||||
}
|
||||
}
|
||||
return count
|
||||
return LeaderboardLocaleHost("exercise_wim_hof")
|
||||
}
|
||||
|
||||
Scale :: (pixels: s32) -> s32 {
|
||||
@@ -82,25 +55,6 @@ Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
|
||||
}
|
||||
|
||||
Finish :: () -> LeaderboardMessage {
|
||||
// Choosing an app only matters once more than one has a board.
|
||||
if frame.app_count > 1 && frame.app_count <= 16 {
|
||||
apps: [16]LeaderboardUiApp
|
||||
options: [16]DropdownOption
|
||||
for index: cast(s32)0..frame.app_count - 1 {
|
||||
apps[index] = ReadLeaderboardAppHost(index)
|
||||
options[index].label = apps[index].title
|
||||
}
|
||||
menu := Dropdown(frame.session, DropdownProps.{.id = 7150,
|
||||
.bounds = Bounds(Scale(16), Scale(12), frame.width - Scale(32), Scale(44)),
|
||||
.selected_index = frame.app_index, .scale = frame.scale}, options[0:frame.app_count])
|
||||
if menu.changed && menu.selected_index >= 0 && menu.selected_index < frame.app_count {
|
||||
state.app = apps[menu.selected_index].name
|
||||
state.metric = LEADERBOARD_STREAK
|
||||
state.refresh = true
|
||||
frame.scroll = 0
|
||||
}
|
||||
}
|
||||
|
||||
WriteLeaderboardUiHost(frame)
|
||||
state.succeeded = true
|
||||
return state
|
||||
@@ -119,65 +73,28 @@ LeaderboardView :: (message: LeaderboardMessage) -> LeaderboardMessage {
|
||||
width := frame.width - x * 2
|
||||
y := Scale(12)
|
||||
|
||||
if frame.app_count > 1 { y += Scale(56) }
|
||||
|
||||
// Every installed practice, or every game of the chosen app with a
|
||||
// board, stays visible in a grid that grows with them: two per row on
|
||||
// phones, more when wide, in rows of equal length.
|
||||
practices: [16]s32
|
||||
games: [16]LeaderboardUiApp
|
||||
practice_app := state.app == "" || state.app == "practices"
|
||||
practice_count := ifx practice_app then PracticeChoices(practices[:]) else 0
|
||||
if !practice_app {
|
||||
practice_count = ifx frame.board_count > 16 then 16 else frame.board_count
|
||||
for index: cast(s32)0..practice_count - 1 {
|
||||
games[index] = ReadLeaderboardBoardHost(index)
|
||||
}
|
||||
}
|
||||
// Every practice stays visible: two per row on phones, four when wide.
|
||||
per_row: s32 = ifx width >= Scale(600) then PRACTICE_COUNT else 2
|
||||
gap := Scale(8)
|
||||
widest: s32 = (width + gap) / (Scale(160) + gap)
|
||||
if widest < 2 {
|
||||
widest = 2
|
||||
}
|
||||
rows: s32 = (practice_count + widest - 1) / widest
|
||||
per_row: s32 = 1
|
||||
if rows > 0 {
|
||||
per_row = (practice_count + rows - 1) / rows
|
||||
}
|
||||
choice_width := (width - gap * (per_row - 1)) / per_row
|
||||
for index: cast(s32)0..practice_count - 1 {
|
||||
chosen := ifx practice_app then practices[index] == state.practice else index == frame.board_index
|
||||
for index: cast(s32)0..PRACTICE_COUNT - 1 {
|
||||
practice := PracticeAt(index)
|
||||
chosen := practice == state.practice
|
||||
choice_x := x + (index % per_row) * (choice_width + gap)
|
||||
choice_y := y + (index / per_row) * (Scale(40) + gap)
|
||||
if Button(frame.session, ButtonProps.{.id = 7140 + index,
|
||||
if Button(frame.session, ButtonProps.{.id = 7100 + index,
|
||||
.bounds = Bounds(choice_x, choice_y, choice_width, Scale(40)),
|
||||
.label = ifx practice_app then PracticeLabel(practices[index]) else games[index].title,
|
||||
.selected = chosen, .fit_content = true,
|
||||
.label = PracticeLabel(practice), .selected = chosen, .fit_content = true,
|
||||
.tone = cast(ButtonTone)(ifx chosen then ButtonToneAccent else ButtonToneNeutral),
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 && !chosen {
|
||||
if practice_app {
|
||||
state.practice = practices[index]
|
||||
} else {
|
||||
state.board = games[index].name
|
||||
}
|
||||
state.practice = practice
|
||||
state.metric = LEADERBOARD_STREAK
|
||||
state.refresh = true
|
||||
frame.scroll = 0
|
||||
return Finish()
|
||||
}
|
||||
}
|
||||
if rows > 0 {
|
||||
y += rows * (Scale(40) + gap) + Scale(8)
|
||||
}
|
||||
|
||||
// Nothing is ranked until a practice is installed or a game reports.
|
||||
if frame.app_count == 0 || practice_count == 0 {
|
||||
Text(frame.session, TextProps.{.key = cast(u64)7120,
|
||||
.bounds = Bounds(x, y, width, Scale(32)),
|
||||
.text = LeaderboardLocaleHost("profile_no_leaderboard_data"),
|
||||
.font = frame.font, .wrap = cast(TextWrap)TextWrapAuto})
|
||||
return Finish()
|
||||
}
|
||||
y += (PRACTICE_COUNT / per_row) * (Scale(40) + gap) + Scale(8)
|
||||
|
||||
// The name column is wider when only the streak is ranked.
|
||||
columns: s32 = ifx state.has_average then 3 else 2
|
||||
@@ -186,9 +103,6 @@ LeaderboardView :: (message: LeaderboardMessage) -> LeaderboardMessage {
|
||||
average_label := ifx state.practice == 1 then "profile_metric_avg_time" else "profile_metric_avg_hold"
|
||||
labels: [3]string = .[LeaderboardLocaleHost("profile_friends_title"),
|
||||
LeaderboardLocaleHost("profile_metric_streak"), LeaderboardLocaleHost(average_label)]
|
||||
if !practice_app {
|
||||
labels[1] = LeaderboardLocaleHost("leaderboard_levels")
|
||||
}
|
||||
header_x := x
|
||||
for column: cast(s32)0..columns - 1 {
|
||||
column_width := ifx column == 0 then name_width else ifx column == columns - 1 then x + width - header_x else value_width
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
# Library
|
||||
|
||||
## [1.0.2] - 2026-10-21
|
||||
|
||||
- Swipe left or right to turn chapters.
|
||||
- Reading uses a warm paper background and hides the surrounding navigation.
|
||||
|
||||
## [1.0.1] - 2026-10-20
|
||||
|
||||
- Previous and Next stay at the bottom while the chapter scrolls.
|
||||
- Back returns to where you opened the chapter.
|
||||
|
||||
## [1.0.0] - 2026-10-19
|
||||
|
||||
- Read the Tao Te Ching, all 81 chapters, in a new English rendering.
|
||||
- Pick up at the chapter you last read, or open any from the contents.
|
||||
@@ -1,37 +0,0 @@
|
||||
// The Library's books, each a list of chapters.
|
||||
#import, file "tao_te_ching.zi";
|
||||
|
||||
BOOK_COUNT :: 1
|
||||
|
||||
BookTitle :: (index: s32) -> string {
|
||||
unused index
|
||||
return TAO_TE_CHING_TITLE
|
||||
}
|
||||
|
||||
BookAuthor :: (index: s32) -> string {
|
||||
unused index
|
||||
return TAO_TE_CHING_AUTHOR
|
||||
}
|
||||
|
||||
// Where the book's words come from.
|
||||
BookNote :: (index: s32) -> string {
|
||||
unused index
|
||||
return TAO_TE_CHING_NOTE
|
||||
}
|
||||
|
||||
// The record that keeps the chapter a book is open at.
|
||||
BookRecord :: (index: s32) -> string {
|
||||
unused index
|
||||
return "tao-te-ching.chapter"
|
||||
}
|
||||
|
||||
BookChapters :: (index: s32) -> s32 {
|
||||
unused index
|
||||
return TAO_TE_CHING_CHAPTERS
|
||||
}
|
||||
|
||||
// Chapter number's words, from 1.
|
||||
BookChapter :: (index: s32, number: s32) -> string {
|
||||
unused index
|
||||
return TaoTeChing(number)
|
||||
}
|
||||
Loaded 100 of 18889 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user