prev Kozaneba Development Diary 2021-08-25
Ba list sorted by date and time
Talk about testing with an emulator and being easy. https://techlife.cookpad.com/entry/2018/11/05/143000
Change Firestore rules to allow read-only sharing
NG, syntax check is fine, but the tutorial test is mocked up by retrieving the past Ba list. firestore rules
service cloud.firestore {
match /databases/ba/documents {
function is_writer() {
return request.auth.uid in resource.data.writers;
}
match /{document=**} {
allow create: if true;
allow update, delete: if resource.data.anyone_writable || is_writer();
allow get: if true;
allow list: if is_writer();
}
}
}
My understanding of the path was wrong.
/databases/FOO/documents./databases/{database}/documents/FOO/{document}.match /databases/{database}/documents declaration specifies that the rule should match the Cloud Firestore database in the project. Currently, each project has only one database named (default).
database' is the default'.OK rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /ba/{document=*} {
function is_writer() {
return request.auth.uid in resource.data.writers;
}
allow create: if true;
allow update, delete: if resource.data.anyone_writable || is_writer();
allow get: if true;
allow list: if is_writer();
}
}
}
Modified firestore rules to allow read-only sharing.
Right now, the only control for a place is "change title," but when we start doing more things, there should be a dialog for the place.
Create New
Something's still not right.
kozaneba.constants.group_padding = 5; kozaneba.redraw();
before
after
When I try to organize a study session document that has already been written to some extent, the problem is that "images are not loaded into Kozaneba".
Look at the test code and identify what's missing from the test.
/kozaneba-forum-jp/release-note. 2021-08-26
/#new while logged inI was thinking about arrows, and I tend to think only of the relationship between two terms implicitly, but it could be between N terms separately.
background: blue; color: white;Should the "empty group" exist in the first place, or should it disappear [src https://scrapbox.io/nishio/2021-08-26Kozaneba%E9%96%8B%E7%99%BA%E6%97%A5%E8%A8%98#61275c3daff09e 00006ef90e]
Try reducing the margin (padding to be exact).
I think I'll make the release notes kozaneba tomorrow...
User Extension Demo
It looked easy enough to do, so I tried it and did it.
Ability to add custom styling
kozaneba.update_style("1629979178768", (s) => {s.background = "blue"; s.color = "white" });
Groups are not reduced below a certain size, even if empty.
When opening a read-only URL, should it say "This is read-only, editing will not save" or not?
For a moment, I thought, "I'll make it configurable via user script and see what users are doing," but that's a sample that's so biased that it shouldn't be used for the purpose of determining default settings for the layperson.
Assuming the arrow function is included.
I put the release notes into Kozaneba for testing.
is lumped in with "date and time", there is nothing more that can be done about it.
I can't sort out the ones that are far apart in timeline but close in meaning.
If you throw out the date and time and the chronological flow, you can organize it by meaning.
There's also a way to use arrows to represent the relationship between distant objects.
next Kozaneba Development Diary 2021-08-27
This page is auto-translated from /nishio/Kozaneba開発日記2021-08-26 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.