forked from logseq/logseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42dd084
commit 928742e
Showing
37 changed files
with
1,883 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ :config-in-ns | ||
;; :used-underscored-binding is turned off for components because of false positive | ||
;; for rum/defcs and _state. | ||
{all-components {:linters {:used-underscored-binding {:level :off}}}} | ||
|
||
:linters | ||
{;; Disable until it doesn't trigger false positives on rum/defcontext | ||
:earmuffed-var-not-dynamic {:level :off}} | ||
:hooks {:analyze-call {rum.core/defc hooks.rum/defc | ||
rum.core/defcs hooks.rum/defcs | ||
clojure.string/join hooks.path-invalid-construct/string-join}} | ||
:lint-as {rum.core/defcc rum.core/defc | ||
rum.core/with-context clojure.core/let | ||
rum.core/defcontext clojure.core/def | ||
rum.core/defc clojure.core/defn | ||
rum.core/defcs clojure.core/defn | ||
frontend.react/defc clojure.core/defn}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Description | ||
|
||
This library provides a set of UI components for use within logseq. | ||
|
||
## API | ||
|
||
This library is under the parent namespace `logseq.shui`. This library provides | ||
several namespaces, all of which will be versioned, with the exception of `logseq.shui.context`. | ||
|
||
An example of a versioned namespace is the table namespace: | ||
|
||
`logseq.shui.table.v2` | ||
|
||
`root` components are exported from each versioned file to indicate the root component to be rendered: | ||
|
||
`logseq.shui.table.v2/root` | ||
|
||
Each root component should expect two arguments, `props` and `context`. | ||
|
||
## `props` | ||
|
||
Ultimately, components in shui will need to be used by JavaScript. While it is idiomatic in clojure to | ||
use a list of properties, it is idiomatic in react to use a single props map. Shui components should therefore | ||
stick to this convention when possible to ease the conversion between the two languages. | ||
|
||
## `context` | ||
|
||
Context is a set of functions that call back to the main application. These are abstracted out into a context | ||
object to make it clear what is used internally, and what is used externally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{:paths ["src"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- | ||
- |
Oops, something went wrong.