Skip to content

Commit

Permalink
chore(release): 0.9.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Bad3r committed Aug 4, 2023
2 parents 8d3d449 + 458ac81 commit c992725
Show file tree
Hide file tree
Showing 243 changed files with 3,006 additions and 102,226 deletions.
2 changes: 1 addition & 1 deletion .projectile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-/resources/static/js/katex.min.js
-/resources/static/js/mhchem.min.js
-/resources/static/js/mldoc.min.js
-/resources/static/js/reveal.min.js
-/resources/static/js/reveal.js
-/resources/static/js/sci.min.js
-/resources/static/js/excalidraw.min.js
-/resources/static/js/react-force-graph.min.js
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.logseq.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 64
versionName "0.9.11"
versionCode 66
versionName "0.9.13"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Expand Down
13 changes: 6 additions & 7 deletions deps/graph-parser/src/logseq/graph_parser/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@
:block/properties-text-values properties-text-values
:block/invalid-properties invalid-properties
:block/pre-block? true
:block/unordered true
:block/macros (extract-macros-from-ast body)
:block/body body}
{:keys [tags refs]}
Expand Down Expand Up @@ -561,12 +560,12 @@
:level (if unordered? (:level block) 1))
block)
block (cond->
(-> (assoc block
:uuid id
:refs ref-pages-in-properties
:format format
:meta pos-meta)
(dissoc :size))
(-> (assoc block
:uuid id
:refs ref-pages-in-properties
:format format
:meta pos-meta)
(dissoc :size :unordered))
(or (seq (:properties properties)) markdown-heading?)
(assoc :properties (with-heading-property (:properties properties) markdown-heading? (:size block))
:properties-text-values (:properties-text-values properties)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
;; only increase over time as the docs graph rarely has deletions
(testing "Counts"
(is (= 303 (count files)) "Correct file count")
(is (= 69499 (count (d/datoms db :eavt))) "Correct datoms count")
(is (= 63632 (count (d/datoms db :eavt))) "Correct datoms count")

(is (= 5866
(ffirst
Expand Down
7 changes: 2 additions & 5 deletions deps/graph-parser/src/logseq/graph_parser/whiteboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,11 @@
(let [shape? (shape-block? block)
shape (block->shape block)
default-page-ref {:block/name (gp-util/page-name-sanity-lc page-name)}]
(merge (if shape?
(merge (when shape?
(merge
{:block/uuid (uuid (:id shape))}
(with-whiteboard-block-refs shape page-name)
(with-whiteboard-content shape))

;; TODO: remove?
{:block/unordered true})
(with-whiteboard-content shape)))
(when (nil? (:block/parent block)) {:block/parent default-page-ref})
(when (nil? (:block/format block)) {:block/format :markdown}) ;; TODO: read from config
{:block/page default-page-ref})))
6 changes: 3 additions & 3 deletions deps/graph-parser/test/logseq/graph_parser/block_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
(not= (:uuid x) (:block/uuid result))
(= (select-keys result
[:block/properties :block/content :block/properties-text-values :block/properties-order]) (gp-block/block-keywordize y))))
{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :markdown, :meta {:start_pos 51, :end_pos 101}, :macros [], :unordered true, :content "bar\nid:: 63f199bc-c737-459f-983d-84acfcda14fe", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :markdown, :meta {:start_pos 51, :end_pos 101}, :macros [], :content "bar\nid:: 63f199bc-c737-459f-983d-84acfcda14fe", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {},
:content "bar",
:properties-text-values {},
:properties-order []}

{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :org, :meta {:start_pos 51, :end_pos 101}, :macros [], :unordered true, :content "bar\n:id: 63f199bc-c737-459f-983d-84acfcda14fe", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :org, :meta {:start_pos 51, :end_pos 101}, :macros [], :content "bar\n:id: 63f199bc-c737-459f-983d-84acfcda14fe", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {},
:content "bar",
:properties-text-values {},
:properties-order []}

{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :markdown, :meta {:start_pos 51, :end_pos 101}, :macros [], :unordered true, :content "bar\n \n id:: 63f199bc-c737-459f-983d-84acfcda14fe\nblock body", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :tags [], :format :markdown, :meta {:start_pos 51, :end_pos 101}, :macros [], :content "bar\n \n id:: 63f199bc-c737-459f-983d-84acfcda14fe\nblock body", :properties-text-values {:id "63f199bc-c737-459f-983d-84acfcda14fe"}, :level 1, :uuid #uuid "63f199bc-c737-459f-983d-84acfcda14fe", :properties-order [:id]}
{:properties {},
:content "bar\nblock body",
:properties-text-values {},
Expand Down
20 changes: 18 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,29 @@ const common = {
]).pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
() => gulp.src([
'node_modules/katex/dist/katex.min.js',
'node_modules/katex/dist/contrib/mhchem.min.js',
'node_modules/html2canvas/dist/html2canvas.min.js',
'node_modules/interactjs/dist/interact.min.js',
'node_modules/photoswipe/dist/umd/*.js'
'node_modules/photoswipe/dist/umd/*.js',
'node_modules/reveal.js/dist/reveal.js',
'node_modules/shepherd.js/dist/js/shepherd.min.js',
'node_modules/marked/marked.min.js',
'node_modules/@highlightjs/cdn-assets/highlight.min.js',
'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js',
'packages/amplify/dist/amplify.js'
]).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src([
'node_modules/pdfjs-dist/build/pdf.js',
'node_modules/pdfjs-dist/build/pdf.worker.js',
'node_modules/pdfjs-dist/web/pdf_viewer.js'
]).pipe(gulp.dest(path.join(outputPath, 'js', 'pdfjs'))),
() => gulp.src([
'node_modules/pdfjs-dist/cmaps/*.*',
]).pipe(gulp.dest(path.join(outputPath, 'js', 'pdfjs', 'cmaps'))),
() => gulp.src([
'node_modules/@tabler/icons/iconfont/tabler-icons.min.css',
'node_modules/inter-ui/inter.css'
'node_modules/inter-ui/inter.css',
'node_modules/reveal.js/dist/theme/fonts/source-sans-pro/**',
]).pipe(gulp.dest(path.join(outputPath, 'css'))),
() => gulp.src('node_modules/inter-ui/Inter (web)/*.*')
.pipe(gulp.dest(path.join(outputPath, 'css', 'Inter (web)'))),
Expand Down
8 changes: 4 additions & 4 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.9.11;
MARKETING_VERSION = 0.9.13;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -546,7 +546,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.9.11;
MARKETING_VERSION = 0.9.13;
PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
Expand All @@ -571,7 +571,7 @@
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 0.9.11;
MARKETING_VERSION = 0.9.13;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq.ShareViewController;
Expand All @@ -598,7 +598,7 @@
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 0.9.11;
MARKETING_VERSION = 0.9.13;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq.ShareViewController;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
1 change: 0 additions & 1 deletion libs/src/LSPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ export interface BlockEntity {
left: IEntityID
format: 'markdown' | 'org'
parent: IEntityID
unordered: boolean
content: string
page: IEntityID
properties?: Record<string, any>
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"ios:dev": "cross-env PLATFORM=ios gulp cap",
"android:dev": "cross-env PLATFORM=android gulp cap",
"tldraw:build": "yarn --cwd tldraw install",
"postinstall": "yarn tldraw:build"
"amplify:build": "yarn --cwd packages/amplify install",
"postinstall": "yarn tldraw:build && yarn amplify:build "
},
"dependencies": {
"@capacitor/android": "^4.0.0",
Expand All @@ -89,9 +90,11 @@
"@capacitor/status-bar": "^4.0.0",
"@capawesome/capacitor-background-task": "^2.0.0",
"@excalidraw/excalidraw": "0.12.0",
"@highlightjs/cdn-assets": "10.4.1",
"@hugotomazi/capacitor-navigation-bar": "^2.0.0",
"@isomorphic-git/lightning-fs": "^4.6.0",
"@logseq/capacitor-file-sync": "0.0.32",
"@logseq/diff-merge": "0.1.0",
"@logseq/diff-merge": "0.2.2",
"@logseq/react-tweet-embed": "1.3.1-1",
"@radix-ui/colors": "^0.1.8",
"@sentry/react": "^6.18.2",
Expand All @@ -114,16 +117,17 @@
"fuse.js": "6.4.6",
"grapheme-splitter": "1.0.4",
"graphology": "0.20.0",
"highlight.js": "10.4.1",
"html2canvas": "^1.4.1",
"ignore": "5.1.8",
"inter-ui": "^3.19.3",
"interactjs": "^1.10.17",
"jszip": "3.8.0",
"katex": "^0.16.7",
"marked": "^5.1.2",
"mldoc": "1.5.7",
"path": "0.12.7",
"path-complete-extname": "1.0.0",
"pdfjs-dist": "^3.9.179",
"photoswipe": "^5.3.7",
"pixi-graph-fork": "0.2.0",
"pixi.js": "6.2.0",
Expand All @@ -137,8 +141,10 @@
"react-tippy": "1.4.0",
"react-transition-group": "4.3.0",
"remove-accents": "0.4.2",
"reveal.js": "^4.5.0",
"sanitize-filename": "1.6.3",
"send-intent": "3.0.11",
"shepherd.js": "^9.1.0",
"tailwind-capitalize-first-letter": "^1.0.4",
"threads": "1.6.5",
"url": "^0.11.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev:amplify": "parcel watch ./src/amplify.ts --dist-dir ../src/main/frontend/ --no-hmr --no-source-maps",
"dev:examples": "parcel serve ./examples/index.html",
"build:amplify": "parcel build ./src/amplify.ts --dist-dir ../../resources/js --no-source-maps && mv ../../resources/js/amplify.css ../../resources/css/"
"build:amplify": "parcel build ./src/amplify.ts --no-source-maps",
"postinstall": "yarn build:amplify"
},
"devDependencies": {
"buffer": "^5.5.0",
Expand Down
1 change: 0 additions & 1 deletion resources/css/amplify.css

This file was deleted.

Loading

0 comments on commit c992725

Please sign in to comment.