Commit Graph

12197 Commits

Author SHA1 Message Date
Gabriel Horner
01ff0e9a16 Save multi value properties as sets
Sets are easier to query
2023-07-24 16:56:53 -04:00
Gabriel Horner
0ca7d1a4de Fix multi-valued properties and enable first property graph test
Run db prop test with: DB_GRAPH=1 node static/tests.js -i focus
2023-07-24 16:42:36 -04:00
Gabriel Horner
4920b3a98e Fix lints and fix graph-parser cljs tests
not running due to missing db dep
2023-07-24 14:06:57 -04:00
Gabriel Horner
40237b912f Remove nonexistent :block/unordered from test 2023-07-24 12:32:08 -04:00
Gabriel Horner
5f91e6cf0f Merge branch 'master' into feat/db 2023-07-24 12:21:19 -04:00
Gabriel Horner
8836ba7db8 Merge pull request #9907 from logseq/enhance/resource-handling
Enhance (dev): 3rd party resource handling
2023-07-24 11:13:26 -04:00
Andelf
219b118c7b fix(mobile): refer policy of img tag
Fix #9860
2023-07-24 22:33:57 +08:00
Gabriel Horner
ba53bf297c Remove last use of :block/unordered
This was coming directly from the block's ast so it was harder to trace
2023-07-24 10:26:02 -04:00
Gabriel Horner
2b90b0462a Remove explicit :block/unordered that should already be deleted 2023-07-24 10:26:02 -04:00
ROCKTAKEY
ece07dee90 enhance: Add Japanese translation 2023-07-24 09:59:51 -04:00
Konstantinos Kaloutas
3bce831027 remove height rule 2023-07-24 13:35:57 +03:00
Konstantinos Kaloutas
8a668ef04b Revert "fix blocks' dnd and tests"
This reverts commit 36335106b4.
2023-07-24 13:11:54 +03:00
Konstantinos Kaloutas
bc58b95040 Revert "fix typo"
This reverts commit 110cd4a109.
2023-07-24 13:11:38 +03:00
Konstantinos Kaloutas
da6ee479a2 Revert "fix typo"
This reverts commit 8df2bec8e0.
2023-07-24 13:11:25 +03:00
Konstantinos Kaloutas
a5d2137748 overflow fix 2023-07-24 13:02:46 +03:00
Gabriel Horner
b46959f670 Fix: basic property queries not working
{{query (property :foo "bar")}} and {{query (property :foo)}} should now
work
2023-07-21 17:27:03 -04:00
Konstantinos Kaloutas
8df2bec8e0 fix typo 2023-07-21 19:48:46 +03:00
Konstantinos Kaloutas
110cd4a109 fix typo 2023-07-21 19:44:01 +03:00
Konstantinos Kaloutas
36335106b4 fix blocks' dnd and tests 2023-07-21 19:25:29 +03:00
Konstantinos Kaloutas
8e4cb9c7b1 fix mhchem 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas
7d6aae0c08 handle mhchem 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas
86d3cad507 handle shepherd.js 2023-07-21 10:07:06 -04:00
Konstantinos Kaloutas
9fd3deb39e handle reveal.js 2023-07-21 10:07:06 -04:00
ingepettersen
183e153ead Updated Norwegian translations (#9905)
* Update Norwegian translation

* Update two strings

* Update Norwegian translation
2023-07-21 09:15:27 -04:00
hasecilu
0aa76fbb26 Translate latest strings 2023-07-21 09:12:12 -04:00
hasecilu
2a0c59f05f Fix translations based on feedback 2023-07-21 09:12:12 -04:00
hasecilu
41e2722143 Finish Spanish translations. 2023-07-21 09:12:12 -04:00
hasecilu
ded02048b9 Sort and format file with Spanish translations.
[why]
Sorting the keys gives the advantage of having strings with same context
together making it easier to have consistency on translations.

[how]
1. Having a .edn file execute:
	grep ":" src/resources/dicts/es.edn | grep -v "/" | sort > single_keys
	grep ":" src/resources/dicts/es.edn | grep "/" | sort > hierarchical_keys
2. Both files are sorted, now manually merge them into sorted_file. I
   decided to left turial keys on top, then single_keys and finally
   hierarchical_keys at the end. Check the braces.
3. Execute this script:
	#!/bin/bash

	while IFS= read -r line; do
	if [[ "$line" == *\"* ]]; then
		first_quote_index=$(expr index "$line" \")
		content_after_quote="${line:$first_quote_index}"
		content_before_quote="${line:0:$first_quote_index-1}"
		spaces=$(printf '%*s' $((52 - ${#content_before_quote})))
		echo "$content_before_quote$spaces\"$content_after_quote"
	else
		echo "$line"
	fi
	done <sorted_file >formatted_file
4. Replace the .edn file with the resultant formated_file. Now all
   strings start at column 53.
2023-07-21 09:12:12 -04:00
hasecilu
2700b5583e Add some Spanish translations. 2023-07-21 09:12:12 -04:00
hasecilu
cd9e3fb973 Fix some Spanish translations. 2023-07-21 09:12:12 -04:00
Gabriel Horner
48009adaf9 chore: reuse common helper for stringifying datoms 2023-07-20 18:37:22 -04:00
Gabriel Horner
d7eeea28dd Add a test that ensures file and db graphs have expected datoms 2023-07-20 18:27:07 -04:00
Tienson Qin
bf848f8664 Set db-graph-enabled? to true for internal testing 2023-07-19 23:29:58 +08:00
Tienson Qin
261b5a6b28 No need to set block ids for db based graphs 2023-07-19 21:46:00 +08:00
Andelf
5cab22187c chore(release): bump version 0.9.11 0.9.11 2023-07-19 18:44:23 +08:00
Charlie
15a3eec4ad fix(server): sometimes the API server autostart not work (#9878) 2023-07-19 18:29:26 +08:00
Johan Penttinen
7a63c9a89c feature(android): add android 13 API themed icons (#9862) 2023-07-19 18:24:32 +08:00
Tienson Qin
f919dac54b fix: disable plain-text properties and :: to trigger property editing 2023-07-19 17:53:14 +08:00
Tienson Qin
b32d2caa2d fix: built in pages don't have client side timestamps 2023-07-19 17:34:04 +08:00
Tienson Qin
7bf5c233ef fix: typing a block with a new tag name doesn't save the tag 2023-07-19 17:22:52 +08:00
Tienson Qin
c5c253b510 enhance: select auto-complete support dropdown 2023-07-19 15:24:09 +08:00
Tienson Qin
eb35d45d73 Remove :block/properties-text-values for db based graphs 2023-07-19 12:25:11 +08:00
Bad3r
fb2e1e82eb chore(deps): Fix CVE-2023-2931 in Electron 24 [minor change] (#9854) 2023-07-19 10:47:25 +08:00
Andelf
43680fae94 fix(ui): close context menu when page navs
fix: dev warnings from react about missing keys

Fix #9872
2023-07-19 10:45:54 +08:00
Gabriel Horner
88371b8ad4 chore: Unlinked graphs name should be a var 2023-07-18 16:59:38 -04:00
Gabriel Horner
8a1efa88bc Fix datoms with false value not saving
To repro go to any non-journal page, view its page data and observe
that ':block/journal? false' was missing
2023-07-18 15:12:35 -04:00
Gabriel Horner
dc2707e398 Remove unused :page_uuid datoms 2023-07-18 13:38:30 -04:00
Gabriel Horner
25b9ca9781 Add feature flag for db graphs 2023-07-18 12:00:31 -04:00
jihuayu
318c3b8603 fix theme mode change error in cn lang 2023-07-18 11:41:10 -04:00
Andelf
b482a8b9b9 fix(sync): avoid alter file twice; clean up logs (#9840) 2023-07-18 22:06:21 +08:00