Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into whiteboards
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 24, 2022
2 parents a7def49 + 0cebfb7 commit fd94862
Show file tree
Hide file tree
Showing 124 changed files with 2,118 additions and 1,695 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ on:
env:
CLOJURE_VERSION: '1.10.1.763'
NODE_VERSION: '16'
JAVA_VERSION: '11'

jobs:
build-apk:
Expand Down Expand Up @@ -72,9 +73,10 @@ jobs:
${{ runner.os }}-yarn-
- name: Setup Java JDK
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}

- name: Cache clojure deps
uses: actions/cache@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ jobs:

- name: Lint datalog rules
run: bb lint:rules

- name: Lint for namespaces that aren't documented
run: bb lint:ns-docstrings
3 changes: 3 additions & 0 deletions .github/workflows/graph-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ jobs:

- name: Lint for vars that are too large
run: bb lint:large-vars

- name: Lint for namespaces that aren't documented
run: bb lint:ns-docstrings
2 changes: 1 addition & 1 deletion android/app/src/main/assets/capacitor.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
{
"pkg": "@logseq/capacitor-file-sync",
"classpath": "com.logseq.app.FileSyncPlugin"
"classpath": "com.logseq.app.filesync.FileSyncPlugin"
},
{
"pkg": "capacitor-voice-recorder",
Expand Down
5 changes: 4 additions & 1 deletion deps/db/bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{logseq/bb-tasks
#_{:local/root "../../../bb-tasks"}
{:git/url "https://github.com/logseq/bb-tasks"
:git/sha "abb32ccd26405d56fd28a29d56f3cb902b8c4334"}}
:git/sha "1815db538241082a01e95601e23e4290dd64d0c0"}}

:pods
{clj-kondo/clj-kondo {:version "2022.02.09"}}
Expand All @@ -19,6 +19,9 @@
lint:carve
logseq.bb-tasks.lint.carve/-main

lint:ns-docstrings
logseq.bb-tasks.lint.ns-docstrings/-main

lint:rules
{:requires ([logseq.bb-tasks.lint.datalog :as datalog]
[logseq.db.rules :as rules])
Expand Down
1 change: 1 addition & 0 deletions deps/db/src/logseq/db.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns logseq.db
"Main namespace for public db fns"
(:require [logseq.db.default :as default-db]
[logseq.db.schema :as db-schema]
[datascript.core :as d]))
Expand Down
1 change: 1 addition & 0 deletions deps/db/src/logseq/db/default.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns logseq.db.default
"Provides fns for seeding default data in a logseq db"
(:require [clojure.string :as string]))

(defonce built-in-pages-names
Expand Down
9 changes: 7 additions & 2 deletions deps/db/src/logseq/db/schema.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns logseq.db.schema)
(ns logseq.db.schema
"Main db schema for the Logseq app")

(defonce version 1)
(defonce ast-version 1)
Expand Down Expand Up @@ -51,10 +52,12 @@
;; "A", "B", "C"
:block/priority {}

;; block key value properties
;; map, key -> set of refs in property value or full text if none are found
:block/properties {}
;; vector
:block/properties-order {}
;; map, key -> original property value's content
:block/properties-text-values {}

;; first block that's not a heading or unordered list
:block/pre-block? {}
Expand Down Expand Up @@ -120,6 +123,7 @@
:block/type
:block/properties
:block/properties-order
:block/properties-text-values
:block/invalid-properties
:block/created-at
:block/updated-at
Expand All @@ -138,6 +142,7 @@
:block/content
:block/properties
:block/properties-order
:block/properties-text-values
:block/invalid-properties
:block/alias
:block/tags})
7 changes: 7 additions & 0 deletions deps/graph-parser/.carve/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ logseq.graph-parser.cli/parse-graph
;; For CLI
logseq.graph-parser.mldoc/ast-export-markdown
;; API
logseq.graph-parser.mldoc/link?
;; API
logseq.graph-parser.property/register-built-in-properties
;; API
logseq.graph-parser.util.block-ref/left-and-right-parens
Expand All @@ -20,6 +22,11 @@ logseq.graph-parser.util.page-ref/->page-ref
logseq.graph-parser.util.page-ref/get-page-name!
;; API
logseq.graph-parser.config/remove-asset-protocol
;; API
logseq.graph-parser.util/unquote-string
;; API
logseq.graph-parser.util.page-ref/page-ref-re
;; API
logseq.graph-parser.property/->block-content
;; API
logseq.graph-parser.property/property-value-from-content
12 changes: 9 additions & 3 deletions deps/graph-parser/bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{logseq/bb-tasks
#_{:local/root "../../../bb-tasks"}
{:git/url "https://github.com/logseq/bb-tasks"
:git/sha "abb32ccd26405d56fd28a29d56f3cb902b8c4334"}}

:git/sha "1815db538241082a01e95601e23e4290dd64d0c0"}}
:pods
{clj-kondo/clj-kondo {:version "2022.02.09"}}

Expand All @@ -16,7 +16,13 @@
logseq.bb-tasks.lint.large-vars/-main

lint:carve
logseq.bb-tasks.lint.carve/-main}
logseq.bb-tasks.lint.carve/-main

lint:ns-docstrings
logseq.bb-tasks.lint.ns-docstrings/-main

lint:minimize-public-vars
logseq.bb-tasks.lint.minimize-public-vars/-main}

:tasks/config
{:large-vars
Expand Down
3 changes: 1 addition & 2 deletions deps/graph-parser/deps.edn
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{:paths ["src"]
:deps
;; External deps should be kept in sync with https://github.com/logseq/nbb-logseq/blob/main/bb.edn
{frankiesardo/linked {:mvn/version "1.3.0"}
com.andrewmcveigh/cljs-time {:git/url "https://github.com/logseq/cljs-time" ;; fork
{com.andrewmcveigh/cljs-time {:git/url "https://github.com/logseq/cljs-time" ;; fork
:sha "5704fbf48d3478eedcf24d458c8964b3c2fd59a9"}
;; local dep
logseq/db {:local/root "../db"}
Expand Down
2 changes: 1 addition & 1 deletion deps/graph-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@logseq/nbb-logseq": "^0.7.133"
},
"dependencies": {
"mldoc": "^1.3.9"
"mldoc": "^1.4.9"
},
"scripts": {
"test": "nbb-logseq -cp src:test:../db/src -m logseq.graph-parser.nbb-test-runner/run-tests"
Expand Down
3 changes: 2 additions & 1 deletion deps/graph-parser/src/logseq/graph_parser.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns logseq.graph-parser
"Main ns used by logseq app to parse graph from source files"
"Main ns used by logseq app to parse graph from source files and then save to
the given database connection"
(:require [datascript.core :as d]
[logseq.graph-parser.extract :as extract]
[logseq.graph-parser.util :as gp-util]
Expand Down
Loading

0 comments on commit fd94862

Please sign in to comment.