这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
e73729a
reconciling old repo branch to current
anoffvu Dec 1, 2020
7fac80d
style: fix #771
xyhp915 Dec 2, 2020
864a32f
style: try to fix left sidebar
xyhp915 Dec 2, 2020
f579c85
style: fix #767
xyhp915 Dec 2, 2020
e4112b4
style: fix #771
xyhp915 Dec 2, 2020
8f67acc
[refactor] improve main content layout .
xyhp915 Dec 2, 2020
a1b6144
chore: update PostCSS & Tailwind major version .
xyhp915 Dec 2, 2020
b3eb78d
fix conflicts
xyhp915 Dec 3, 2020
1ed6795
refactor: adapt some styles for new layout container
xyhp915 Dec 3, 2020
d409aa6
Merge branch 'master' into feat/light-theme
anoffvu Dec 3, 2020
6dbfd5b
refactor: add default css variable for editor content area
xyhp915 Dec 3, 2020
7870c80
style: fix #771
xyhp915 Dec 2, 2020
8bf550d
[refactor] improve main content layout .
xyhp915 Dec 2, 2020
9e0367e
chore: update PostCSS & Tailwind major version .
xyhp915 Dec 2, 2020
e0b224c
refactor: adapt some styles for new layout container
xyhp915 Dec 3, 2020
1cc12f4
refactor: add default css variable for editor content area
xyhp915 Dec 3, 2020
06b2793
fix: devtool warning
xyhp915 Dec 5, 2020
0a979b7
fix: conflicts
xyhp915 Dec 5, 2020
e2949a5
Merge remote-tracking branch 'origin2/master' into fix/priority-style…
xyhp915 Dec 7, 2020
24ccc6a
Merge branch 'master' into feat/light-theme
anoffvu Dec 7, 2020
7795a51
Merge branch 'master' into feat/light-theme
anoffvu Dec 7, 2020
0217142
reactor: ui styles
xyhp915 Dec 7, 2020
7c7ce3d
refactor: add stylelint processor
xyhp915 Dec 7, 2020
849ad93
fix: journals list scroll listener
xyhp915 Dec 7, 2020
c954d5a
chore: update yarn.lock
xyhp915 Dec 7, 2020
ad3874a
fix: remove slide style
xyhp915 Dec 7, 2020
71b286f
fix: properties editing not working
tiensonqin Dec 7, 2020
1dfd795
fix: slide style
tiensonqin Dec 7, 2020
1b20c3e
fix: restore the editing cursor after saving a block
tiensonqin Dec 7, 2020
e622124
fix: don't show :token/cannot-set-token for local repos
tiensonqin Dec 7, 2020
728f04a
feat(light-theme): add nested embed colors
anoffvu Dec 8, 2020
08f66bc
feat(light-theme): code style
anoffvu Dec 8, 2020
3cf77ba
Merge branch 'master' into feat/light-theme
anoffvu Dec 8, 2020
61fe47a
fix: sidebar + nested color levels
anoffvu Dec 8, 2020
ea9f259
fix: sidebar nested embeds color level
anoffvu Dec 8, 2020
9005bc8
Merge branch 'feat/light-theme' of github.com:logseq/logseq into feat…
anoffvu Dec 8, 2020
3f2d610
fix: show custom view error
tiensonqin Dec 8, 2020
41cc273
chore: add source-map
tiensonqin Dec 8, 2020
f4b3b05
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 8, 2020
7bebe97
fix: :source-map should be in :compiler-options
tiensonqin Dec 8, 2020
08c64ec
fix: safe check dom id before rendering code blocks
tiensonqin Dec 8, 2020
15652c8
fix: indexeddb key can't be empty
tiensonqin Dec 8, 2020
32de8f2
refactor: add theme container & lift the dark/light class scope to ro…
xyhp915 Dec 8, 2020
5282fe5
refactor: update sidebar motion
xyhp915 Dec 8, 2020
e599aa9
Merge remote-tracking branch 'origin2/master' into fix/priority-style…
xyhp915 Dec 8, 2020
031b421
chore: fix common.css confilcts
xyhp915 Dec 8, 2020
9f68396
fix: sidebar vertical scrollbar
xyhp915 Dec 8, 2020
9210442
fix: config.edn not loading well
tiensonqin Dec 8, 2020
092126b
chore: bump minor version
tiensonqin Dec 8, 2020
c79148d
fix: input border & loading animation
xyhp915 Dec 8, 2020
9e421c2
fix: auto complete scrollbar
xyhp915 Dec 8, 2020
2287c8b
fix: native fs writing concurrency
tiensonqin Dec 8, 2020
250d41e
chore: remove unused code
tiensonqin Dec 8, 2020
9f106ba
chore: bump minor version
tiensonqin Dec 8, 2020
211918d
Merge branch 'master' into feat/light-theme
anoffvu Dec 9, 2020
5c19b4b
Add open collective
tiensonqin Dec 9, 2020
1b95891
fix: serialize file writes
tiensonqin Dec 9, 2020
40c369b
chore: remove unused code
tiensonqin Dec 9, 2020
a487fa8
fix: add nfs-saved-handler to new files too
tiensonqin Dec 9, 2020
4201e7c
chore: bump minor version
tiensonqin Dec 9, 2020
b8a7448
feat: add query api
tiensonqin Dec 9, 2020
90093e4
try to fix scroll position when switch editing mode (#867)
xyhp915 Dec 10, 2020
437b31b
feat(publishing): add publishing list and delete operation
defclass Dec 2, 2020
6e4561f
fix(publishing): fix css
defclass Dec 3, 2020
7cdb036
feat(publish): add notify
defclass Dec 3, 2020
4a7b558
feat(project): update project
defclass Dec 3, 2020
8f9e320
feat(project): add delete project
defclass Dec 3, 2020
3ae746f
fix(state): remove prn
defclass Dec 3, 2020
62258e2
fix(publishing): add css style
defclass Dec 4, 2020
c9d25bc
fix(project): hide the menu when there is not any project
defclass Dec 7, 2020
14f4397
fix(project): i18n
defclass Dec 7, 2020
460faf5
fix(project): remove debug info
defclass Dec 7, 2020
ddf55f9
fix(rebase): fix bugs caused by rebase
defclass Dec 7, 2020
4e4e74c
fix(css): update css
defclass Dec 7, 2020
770255a
fix(project): update add project data struct
defclass Dec 7, 2020
95ece00
refactor(publishing): move fn in their own place
defclass Dec 7, 2020
b3e15c9
style(publish): move fn into handler
defclass Dec 7, 2020
ba57929
fix(css): fix css problem with @charlie 's help
defclass Dec 8, 2020
c8b3dd5
fix(header): remove duplicated items
defclass Dec 8, 2020
ca29a2b
refactor(publish): fetch page list from logseq server
defclass Dec 9, 2020
f88e5aa
fix(publishing): replace span with a
defclass Dec 9, 2020
8e3887d
fix(publishing): add auto-focus on input
defclass Dec 9, 2020
5bbc43b
fix(publishing): fix delete project problem
defclass Dec 9, 2020
06d32ef
fix(publishing): fix get page 404 error
defclass Dec 9, 2020
8963e23
chore: remove redundant doall
gyk Dec 9, 2020
06de259
fix: git-add immediately after creating file
gyk Dec 10, 2020
c300ed7
chore: do not print error when resolving git ref failed
gyk Dec 10, 2020
4927802
chore: simplify save-excalidraw!
gyk Dec 10, 2020
d54d540
fix(editor): heading background can't be cleared
tiensonqin Dec 10, 2020
06c1307
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 10, 2020
4a95161
Merge remote-tracking branch 'origin/master' into fix/priority-style-…
xyhp915 Dec 10, 2020
43c76e6
fix: disable editor autosave temporarily
tiensonqin Dec 10, 2020
9140316
fix(editor): cursor jump to the start when idle
tiensonqin Dec 10, 2020
690a090
fix(native-fs): today journal not created automaticaly
tiensonqin Dec 10, 2020
aa93390
chore: bump minor version
tiensonqin Dec 10, 2020
06d6885
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 10, 2020
6828078
chore: disable fs alert temporarily
tiensonqin Dec 10, 2020
395cdd6
fix: fix concurrency bug in create-if-not-exists (#884)
gyk Dec 10, 2020
0b0598c
fix(native-fs): fast deletes resulting in conflicts
tiensonqin Dec 10, 2020
92e791e
fix: only proceed if permission verified
gyk Dec 11, 2020
fbc69d5
fix: p/catch should handle outer error
gyk Dec 11, 2020
be30006
chore: remove green theme
anoffvu Dec 11, 2020
6c2e053
chore: color level fix
anoffvu Dec 11, 2020
2bc6d75
chore: embed padding
anoffvu Dec 11, 2020
f947762
chore: slight lightening of bg
anoffvu Dec 11, 2020
69d6ce9
chore: fix guideline + sidebar button color
anoffvu Dec 11, 2020
97c4b13
Merge pull request #843 from logseq/feat/light-theme
tiensonqin Dec 11, 2020
a74e21a
chore: bump minor version
tiensonqin Dec 11, 2020
3d4bb18
chore: update yarn.lock
xyhp915 Dec 11, 2020
ee0576b
fix: css class .embed not working
tiensonqin Dec 11, 2020
0492b28
Merge remote-tracking branch 'origin/master' into fix/priority-style-…
xyhp915 Dec 11, 2020
6af12a4
feat: merge a new light theme
xyhp915 Dec 11, 2020
449c9d9
fix: roam import
tiensonqin Dec 11, 2020
0fa0823
fix: move p/catch & p/finally to outermost block
gyk Dec 11, 2020
04703b8
fix: prevent parent block duplicate
gyk Dec 11, 2020
e200564
Merge pull request #896 from logseq/fix/parent-block-duplicate
tiensonqin Dec 11, 2020
bf5e067
Merge pull request #895 from logseq/fix/reload-dir-error-handling
tiensonqin Dec 11, 2020
553b3fe
style: fix sync indicator container
xyhp915 Dec 12, 2020
6ec72bc
style: correct z-index
xyhp915 Dec 12, 2020
e8e3197
fix: don't create today's journal page if local directory is not loaded
tiensonqin Dec 13, 2020
2db70bd
style: fix notification text theme issue & ui details
xyhp915 Dec 13, 2020
9ce6b44
fix: scroll to element
xyhp915 Dec 13, 2020
ecf638c
fix: tests
xyhp915 Dec 13, 2020
24153f1
chore(deps): bump ini from 1.3.5 to 1.3.8
dependabot[bot] Dec 13, 2020
160f336
Merge pull request #910 from logseq/dependabot/npm_and_yarn/ini-1.3.8
tiensonqin Dec 13, 2020
883e3a2
Merge branch 'master' into fix/priority-style-issues
xyhp915 Dec 13, 2020
a10337f
Merge pull request #799 from logseq/fix/priority-style-issues
tiensonqin Dec 13, 2020
0bdf2c6
perf(search): use fuzzysort for both pages and blocks searching
tiensonqin Dec 13, 2020
9c18b2c
perf: idb batch writes for importing files from local directories
tiensonqin Dec 11, 2020
57b9e7f
Merge branch 'master' into perf/search
tiensonqin Dec 13, 2020
1acf7ff
chore: remove localforage
tiensonqin Dec 13, 2020
45e9390
fix: both ->clj and ->js are too expensive
tiensonqin Dec 13, 2020
4662281
chore: remove profile
tiensonqin Dec 13, 2020
10314b1
fix: both pages and blocks indices default to an empty array
tiensonqin Dec 13, 2020
c17d8f1
Add support for change start of week in calendar
shady2k Dec 13, 2020
744469e
Add requirements
shady2k Dec 13, 2020
4de782c
Fix: Page ref colors (#903)
SlyBouhafs Dec 14, 2020
f101cca
chore: add cross-env dep
tiensonqin Dec 14, 2020
c79c1ef
fix: keyboard shortcuts
tiensonqin Dec 14, 2020
4b5eb4e
fix: don't check file-in-writing for github users
tiensonqin Dec 14, 2020
2e30872
fix: #916
xyhp915 Dec 14, 2020
b8fe3bb
Merge pull request #912 from logseq/perf/search
tiensonqin Dec 14, 2020
f1add88
fix: handle links in find-position
gyk Dec 14, 2020
5f8915b
chore: get rid of dec & inc
gyk Dec 14, 2020
cfed153
fix(native fs): Directory handle not exists
tiensonqin Dec 14, 2020
1d5b7e0
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 14, 2020
f390d3b
fix: display `show journals`
tiensonqin Dec 14, 2020
92a205b
fix(parser): markdown link/file parsing
tiensonqin Dec 14, 2020
8a440e9
refactor: separated css modules from common style
xyhp915 Dec 14, 2020
fcb4a87
fix: code block highlights not working
tiensonqin Dec 14, 2020
d34a405
Merge pull request #921 from logseq/fix/find-position
tiensonqin Dec 15, 2020
9de1f01
fix: safe check repo before modifying any file
tiensonqin Dec 15, 2020
556f15e
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 15, 2020
97239cd
fix: cursor moved to the beginning of the editing block when indent
tiensonqin Dec 15, 2020
9e7c5c4
chore: update feature requests link to our forum
tiensonqin Dec 15, 2020
426202c
chore: update feature request to logseq forum
tiensonqin Dec 15, 2020
1b4db15
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 15, 2020
2188684
fix: loading animation
tiensonqin Dec 15, 2020
b84c0e5
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 15, 2020
9141712
chore: don't handle key down if ctrl/meta pressed
gyk Dec 15, 2020
a82f68f
Merge pull request #927 from logseq/chore/keydown-modifier-key
tiensonqin Dec 15, 2020
4376af7
fix: ctrl+c not working
tiensonqin Dec 15, 2020
4e1e3b3
refactor: improve development experience of styles
xyhp915 Dec 15, 2020
fe70356
refactor(db): separate frontend.db into multiple parts
tiensonqin Dec 15, 2020
9d083bc
chore: fix format
tiensonqin Dec 15, 2020
2d8fd70
fix: allow no blank line after front matter
gyk Dec 15, 2020
75e4968
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 16, 2020
45cb50a
Merge branch 'master' into tienson/refactor/db
tiensonqin Dec 16, 2020
22c9cd7
refactor(native-fs): remove file-in-writing? check
tiensonqin Dec 16, 2020
b7aaeec
chore: disable println
tiensonqin Dec 16, 2020
eeb6b40
fix: move reset-contents-and-blocks to handler.repo
tiensonqin Dec 16, 2020
c93dd77
Merge pull request #930 from logseq/tienson/refactor/db
tiensonqin Dec 16, 2020
774bba0
fix(requrie): fix requirement bugs
defclass Dec 16, 2020
fe4a1e6
Merge pull request #933 from logseq/refactor/db
tiensonqin Dec 16, 2020
d938946
refactor: move publish actions to modal
xyhp915 Dec 16, 2020
8c8b51c
fix: publishing page theme style
xyhp915 Dec 16, 2020
6d89a13
fix(editor): ESC doesn't work after auto-save
tiensonqin Dec 16, 2020
3133ff6
Merge pull request #935 from logseq/fix/esc-not-working
tiensonqin Dec 16, 2020
02bb5bc
Merge pull request #932 from logseq/refactor/nfs-file-writes
tiensonqin Dec 16, 2020
aced8ca
chore: bump minor version
tiensonqin Dec 16, 2020
1bf9f6d
feat: add more CodeMirror modes
tiensonqin Dec 16, 2020
3d4eea4
chore: remove debugging code
tiensonqin Dec 16, 2020
0a7c8ed
chore: show version when hovering the refresh button
tiensonqin Dec 17, 2020
15e1eeb
refacotr(db): remove with-latest-txs
defclass Dec 17, 2020
bf44d9e
refactor(db): with-dummy-block
defclass Dec 17, 2020
cc59296
Merge pull request #939 from logseq/refactor/db
tiensonqin Dec 17, 2020
8fa9b9e
fix(editor): re-use CodeMirror editor
tiensonqin Dec 17, 2020
8d1a1a5
fix(editor): don't autosave if there's page or block searching
tiensonqin Dec 17, 2020
f768744
fix: Slide content not visible (readable) when using the light color …
tiensonqin Dec 17, 2020
5c2b22d
fix: try to fix the case of auto complete panel overflow
xyhp915 Dec 17, 2020
d118c9d
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 17, 2020
4356c49
fix: slide theme
xyhp915 Dec 17, 2020
31a8498
fix: broken avatar
tiensonqin Dec 17, 2020
6f9a475
fix: gulp:build for production
xyhp915 Dec 17, 2020
6a59d58
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 17, 2020
6ad34f5
refactor(db): move some fn into react
defclass Dec 17, 2020
ba9eaf2
refactor(db): move fns from base to utils
defclass Dec 17, 2020
3e7f7e1
fix(db): fix string replace refactoring problem
defclass Dec 17, 2020
1d4d2ee
Refactor/db (#945)
defclass Dec 17, 2020
6c200cb
fix(editor): can't navigate inside the `time input box` using arrows
tiensonqin Dec 17, 2020
c3538b2
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 17, 2020
42967ea
fix(editor): allow up/down arrows for repeater time selection
tiensonqin Dec 17, 2020
dafbce3
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 17, 2020
b5c4546
fix(editor): clear highlighted selection when blocks are selected
tiensonqin Dec 17, 2020
d3ed2de
Merge remote-tracking branch 'origin/master' into refactor/common.css
xyhp915 Dec 17, 2020
41c9bf0
fix(editor): exit editing mode and clear highlights when blocks are s…
tiensonqin Dec 17, 2020
4036e31
style: alignment of highlight block
xyhp915 Dec 17, 2020
544f5f5
style: fix css override
xyhp915 Dec 17, 2020
efe4867
fix(editor): add to contents page
tiensonqin Dec 17, 2020
f3d26d2
fix: alignment of help table head
xyhp915 Dec 18, 2020
67e268e
fix: scroll overflow of absolute modal
xyhp915 Dec 18, 2020
9a34842
style: more flexible scrollbar
xyhp915 Dec 18, 2020
48d40c0
Merge pull request #934 from logseq/refactor/common.css
tiensonqin Dec 18, 2020
65b1943
chore: bump minor version
tiensonqin Dec 18, 2020
768261a
fix: git add today's journal even if it exists
gyk Dec 18, 2020
21fc2fc
chore: log error in commit-and-force-push!
gyk Dec 18, 2020
ba4134c
chore: fix npm commands
tiensonqin Dec 18, 2020
d2bb957
Merge pull request #955 from logseq/fix/git-add-today-journal
defclass Dec 18, 2020
6c1a170
fix: css styles
tiensonqin Dec 18, 2020
43d31d5
Merge branch 'master' of github.com:logseq/logseq into master
tiensonqin Dec 18, 2020
a7c7fa5
fix(editor): rename page will promotes file has been modified
tiensonqin Dec 18, 2020
8208b92
fix: move the theme button to settings
tiensonqin Dec 18, 2020
511f903
fix(css): remove break-all
tiensonqin Dec 20, 2020
4799bd6
fix(db): support recursive alias relationship
tiensonqin Dec 20, 2020
04b63ad
enhance(editor): make it easier to edit page's properties (tags, alias)
tiensonqin Dec 20, 2020
e57d862
enhance(editor): scroll to the top of right sidebar when shift+click
tiensonqin Dec 20, 2020
4b5a177
fix(editor): remove page refs with empty string
tiensonqin Dec 20, 2020
013e933
fix(editor): linked references
tiensonqin Dec 20, 2020
e925304
fix(editor): embeds
tiensonqin Dec 20, 2020
4cd2627
fix(editor): page alias should at least contains itself
tiensonqin Dec 20, 2020
c2b0576
enhance(search): only show new file when ext matched
tiensonqin Dec 20, 2020
f791ec9
style: external link use border bottom instead of underline
tiensonqin Dec 20, 2020
d4f27fc
chore: remove debugging prn
tiensonqin Dec 20, 2020
82a2f04
fix(editor): hide page properties if there's only a title attribute
tiensonqin Dec 21, 2020
bca7ca4
enhance(editor): add a warning to notice users to not remove page's t…
tiensonqin Dec 21, 2020
a0677d9
feat: Compatibility with default datetree format
linktohack Dec 20, 2020
b40b592
refactor: build styles
xyhp915 Dec 21, 2020
5b4ca74
add docker dev environment
mfehlhaber Dec 21, 2020
2a4451e
fix: aliases not working
tiensonqin Dec 21, 2020
0d96ce6
fix(ci): closure define NODETEST
tiensonqin Dec 21, 2020
b1d5d37
test(alias): add more tests
tiensonqin Dec 21, 2020
202a49b
chore: remove mldoc.min.js
tiensonqin Dec 21, 2020
bdfdf4d
chore: fix tests
tiensonqin Dec 21, 2020
2baa71b
fix(test): bump version of react and react-dom
tiensonqin Dec 21, 2020
84dd5eb
fix: draw links
tiensonqin Dec 21, 2020
a1ff34f
fix: git add unstaged files before committing
gyk Dec 20, 2020
e596463
chore: bump minor version
tiensonqin Dec 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: logseq
12 changes: 1 addition & 11 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,4 @@ assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Please go to [Logseq forum](https://discuss.logseq.com/c/feature-requests/7) to create a feature request so that people can vote there.
23 changes: 23 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"stylelint-config-standard"
],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"tailwind",
"apply",
"variants",
"responsive",
"screen"
]
}
],
"declaration-block-trailing-semicolon": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"block-no-empty": null
}
}
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM clojure:openjdk-11-tools-deps

RUN curl -sL https://deb.nodesource.com/setup_15.x | bash - && \
apt-get install -y nodejs

RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && \
apt-get install -y yarn

RUN useradd -ms /bin/bash logseq

USER logseq
WORKDIR /home/logseq

EXPOSE 3001
EXPOSE 9630
EXPOSE 8701
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ In the unlikely event that the website is down or cannot be maintained, your dat

![Image of logseq](https://cdn.logseq.com/%2F8b9a461d-437e-4ca5-a2da-18b51077b5142020_07_25_Screenshot%202020-07-25%2013-29-49%20%2B0800.png?Expires=4749255017&Signature=Qbx6jkgAytqm6nLxVXQQW1igfcf~umV1OcG6jXUt09TOVhgXyA2Z5jHJ3AGJASNcphs31pZf4CjFQ5mRCyVKw6N8wb8Nn-MxuTJl0iI8o-jLIAIs9q1v-2cusCvuFfXH7bq6ir8Lpf0KYAprzuZ00FENin3dn6RBW35ENQwUioEr5Ghl7YOCr8bKew3jPV~OyL67MttT3wJig1j3IC8lxDDT8Ov5IMG2GWcHERSy00F3mp3tJtzGE17-OUILdeuTFz6d-NDFAmzB8BebiurYz0Bxa4tkcdLUpD5ToFHU08jKzZExoEUY8tvaZ1-t7djmo3d~BAXDtlEhC2L1YC2aVQ__&Key-Pair-Id=APKAJE5CCD6X7MP6PTEA)

## Feature requests
Please go to https://discuss.logseq.com/c/feature-requests/7.

## How can I use it?

1. Make sure you have registered a [GitHub account](https://github.com/join) and already created a repository (could be an old one). _Currently we only support GitHub, but more sync options (e.g. Gitlab, Dropbox, Google Drive, WebDAV, etc.) will be added soon._
Expand Down Expand Up @@ -84,3 +87,32 @@ Open <http://localhost:3001>.
``` bash
yarn release
```

## Alternative: Docker based development environment

### 1. Fetch sources

``` bash
git clone https://github.com/logseq/logseq
```

### 2. Build Docker image

``` bash
cd logseq
docker build -t logseq-docker .
```

### 3. Run Docker container

``` bash
docker run -v $(pwd):/home/logseq/logseq -p 3001:3001 -p 9630:9630 -p 8701:8701 --rm -it logseq-docker /bin/bash
```

### 4. Inside the container compile as described above

``` bash
cd logseq
yarn
yarn watch
```
8 changes: 4 additions & 4 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
:sha "7c2822565d9a114c7d8604c335af89de4640e2e5"}
;; datascript {:mvn/version "1.0.1"}
datascript-transit/datascript-transit
{:mvn/version "0.3.0"
:exclusions [datascript]}
{:mvn/version "0.3.0"
:exclusions [datascript]}
funcool/promesa {:mvn/version "4.0.2"}
medley/medley {:mvn/version "1.2.0"}
metosin/reitit-frontend {:mvn/version "0.3.10"}
Expand All @@ -20,7 +20,7 @@
org.clojure/core.match {:mvn/version "1.0.0"}
com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"}
cljs-drag-n-drop/cljs-drag-n-drop
{:mvn/version "0.1.0"}
{:mvn/version "0.1.0"}
borkdude/sci {:mvn/version "0.1.1-alpha.6"}
hickory/hickory {:mvn/version "0.7.1"}
hiccups/hiccups {:mvn/version "0.3.0"}
Expand All @@ -30,7 +30,7 @@
expound/expound {:mvn/version "0.8.6"}
lambdaisland/glogi {:mvn/version "1.0.74"}}

:aliases {:cljs {:extra-paths ["src/dev-cljs/"]
:aliases {:cljs {:extra-paths ["src/dev-cljs/" "src/test/"]
:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.520"}
thheller/shadow-cljs {:mvn/version "2.8.81"}
binaryage/devtools {:mvn/version "0.9.10"}
Expand Down
3 changes: 3 additions & 0 deletions externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ dummy.createWritable = function() {};
dummy.write = function() {};
dummy.close = function() {};
dummy.values = function() {};
// Do we really need those?
dummy.filter = function() {};
dummy.concat = function() {};
49 changes: 35 additions & 14 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,79 @@
const fs = require('fs')
const path = require('path')
const gulp = require('gulp')
const postcss = require('gulp-postcss')
const concat = require('gulp-concat')
const cached = require('gulp-cached')
const remember = require('gulp-remember')
const cleanCSS = require('gulp-clean-css')
const del = require('del')

const outputPath = path.join(__dirname, 'static')
const resourcesPath = path.join(__dirname, 'resources')
const sourcePath = path.join(__dirname, 'src')
const sourcePath = path.join(__dirname, 'src/main/frontend')
const resourceFilePath = path.join(resourcesPath, '**')

const tailwindCoreEntry = path.join(__dirname, 'tailwind.css')
const tailwindBuildEntry = path.join(sourcePath, '**/*.css')
const tailwind = {
paths: [path.join(__dirname, 'tailwind.css'), path.join(sourcePath, '**/*.css')],
paths: [tailwindCoreEntry, tailwindBuildEntry],
outputDir: path.join(outputPath, 'css'),
outputName: 'tailwind.build.css',
}

const css = {
watchCSS() {
return gulp.watch(tailwind.paths, { ignoreInitial: false }, css._buildTailwind)
async watchCSS () {
// remove tailwind core css
await new Promise((resolve) => {
css._buildTailwind(
tailwind.paths.shift(),
'tailwind.core.css'
)
.on('end', resolve)
})

return gulp.watch(
tailwind.paths, { ignoreInitial: false },
css._buildTailwind.bind(null, void 0, void 0))
},

buildCSS(...params) {
return gulp.series(css._buildTailwind, css._optimizeCSSForRelease)(...params)
buildCSS (...params) {
return gulp.series(
css._buildTailwind.bind(null, tailwindCoreEntry, 'tailwind.core.css'),
css._buildTailwind.bind(null, tailwindBuildEntry, 'tailwind.build.css'),
css._optimizeCSSForRelease)(...params)
},

_buildTailwind() {
return gulp.src(tailwind.paths)
_buildTailwind (entry, output) {
return gulp.src(entry || tailwind.paths)
.pipe(cached('postcss-' + entry))
.pipe(postcss())
.pipe(concat(tailwind.outputName))
.pipe(remember('postcss-' + entry))
.pipe(concat(output || tailwind.outputName))
.pipe(gulp.dest(tailwind.outputDir))
},

_optimizeCSSForRelease() {
_optimizeCSSForRelease () {
return gulp.src(path.join(outputPath, 'css', 'style.css'))
.pipe(cleanCSS())
.pipe(gulp.dest(path.join(outputPath, 'css')))
},
}

const common = {
clean() {
clean () {
return del(outputPath)
},

syncResourceFile() {
syncResourceFile () {
return gulp.src(resourceFilePath).pipe(gulp.dest(outputPath))
},

keepSyncResourceFile() {
keepSyncResourceFile () {
return gulp.watch(resourceFilePath, { ignoreInitial: false }, common.syncResourceFile)
}
}

exports.clean = common.clean
exports.watch = gulp.parallel(common.keepSyncResourceFile, css.watchCSS)
exports.build = gulp.series(common.syncResourceFile, css.buildCSS)
exports.build = gulp.series(common.clean, common.syncResourceFile, css.buildCSS)
39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,37 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"@tailwindcss/ui": "^0.1.3",
"@tailwindcss/ui": "0.7.2",
"@types/gulp": "^4.0.7",
"cross-env": "^7.0.3",
"cssnano": "^4.1.10",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1",
"gulp-postcss": "^9.0.0",
"gulp-remember": "^1.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^7.0.21",
"postcss-cli": "^6.1.3",
"purgecss": "^2.1.0",
"postcss": "8.2.1",
"postcss-cli": "8.3.0",
"postcss-nested": "^5.0.1",
"purgecss": "3.0.0",
"shadow-cljs": "2.8.81",
"tailwindcss": "^1.3.4"
"stylelint": "^13.8.0",
"stylelint-config-standard": "^20.0.0",
"tailwindcss": "2.0.1"
},
"scripts": {
"watch": "run-p cljs:watch gulp:build gulp:watch",
"release": "run-s cljs:release gulp:build",
"watch-app": "run-p cljs:watch-app gulp:watch",
"release-app": "run-s cljs:release-app gulp:build",
"release-publishing": "run-s cljs:release-publishing gulp:build",
"dev-release-app": "run-s cljs:dev-release-app gulp:build",
"watch": "run-p gulp:build gulp:watch cljs:watch",
"release": "run-s gulp:build cljs:release",
"watch-app": "run-p gulp:watch cljs:watch-app",
"release-app": "run-s gulp:build cljs:release-app",
"release-publishing": "run-s gulp:build cljs:release-publishing",
"dev-release-app": "run-s gulp:build cljs:dev-release-app",
"clean": "gulp clean",
"test": "run-s cljs:test cljs:run-test",
"report": "run-s cljs:report",
"style:lint": "stylelint \"src/**/*.css\" ",
"gulp:watch": "gulp watch",
"gulp:build": "cross-env NODE_ENV=production gulp build",
"cljs:watch": "clojure -M:cljs watch app publishing",
Expand All @@ -44,17 +50,16 @@
"dependencies": {
"codemirror": "^5.58.1",
"diff": "^4.0.2",
"dropbox": "^5.2.0",
"fuzzysort": "^1.1.4",
"gulp-cached": "^1.1.1",
"ignore": "^5.1.8",
"jszip": "^3.5.0",
"localforage": "^1.7.3",
"mldoc": "^0.3.0",
"mousetrap": "^1.6.5",
"parinfer-codemirror": "^1.4.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-textarea-autosize": "^8.0.1",
"react-transition-group": "^4.3.0",
"webdav": "^3.3.0",
"yargs-parser": "^20.2.4"
}
}
7 changes: 3 additions & 4 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = (ctx) => ({
plugins: [
require("autoprefixer"),
require("tailwindcss")("tailwind.config.js"),
ctx.env === "production" ? require("cssnano")({ preset: "default" }) : null,
require('postcss-nested'),
require('tailwindcss')('tailwind.config.js'),
],
});
})
Loading