Commit Graph

241 Commits (cb22dca5e0da2888223c7b1ca2ec972b066508b4)

Author SHA1 Message Date
Gabriel Horner fc9b0d7b2c Add example update script
Split out persist-graph as it is useful outside of just creating graphs.
Also updated docstring with more known limitations
2023-08-21 14:55:33 -04:00
Gabriel Horner 6212714812 Fix db graph script not creating refs for properties
Also add a readme and fix a bug with generating today pages
2023-08-21 14:55:33 -04:00
Gabriel Horner 9fff912f1e Improve on create graph script
- Split out reusable fns to their own ns
- Created graph now initializes all the same data as in the app
- Had to make a copy of block-with-timestamps for nbb compatibility
  and started using it in a couple places that are easy to QA
2023-08-20 02:38:53 -04:00
Gabriel Horner 31aa5a7e47 Working script to generate db graphs from CLI
Using this script to QA the variety of property type configurations.
Currently supports generating pages, blocks and properties.
Split out fns from outliner.pipeline to be able to use them in nbb
2023-08-18 16:48:30 -04:00
Gabriel Horner e41adc6399 Disable more property editing for publishing app
Also fix some minor lints
2023-08-17 09:42:08 -04:00
Gabriel Horner 172ee0ae24 Provide sqlite.cli for reusable sqlite fns
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00
Gabriel Horner bcc37eb298 Update publishing to optionally work with db graphs
Also updated commandline script
2023-08-15 16:35:03 -04:00
Tienson Qin cb93cc3e9a Merge branch 'master' into feat/db 2023-08-15 13:42:37 +08:00
Jonathan Courchesne 458ac81cb4
enhance: Translation to French (#9981)
* Update fr.edn

* Update fr.edn

Added new translations
Fixed some mistakes

* Update fr.edn

* Update fr.edn

* Update fr.edn

* Update fr.edn

* Update lang.clj for fr.edn
2023-08-04 10:08:58 -04:00
Gabriel Horner 5f91e6cf0f Merge branch 'master' into feat/db 2023-07-24 12:21:19 -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 41e2722143 Finish Spanish translations. 2023-07-21 09:12:12 -04:00
dependabot[bot] 298d46710b chore(deps): bump semver from 5.7.1 to 5.7.2 in /scripts
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 11:33:41 -04:00
Philippe Letourneau fe87fe20cf Added a configuration to specify a build version different than the release version 2023-07-02 23:41:03 +08:00
Gabriel Horner 271b074673 Merge branch 'master' into feat/db 2023-06-28 16:16:29 -04:00
Gabriel Horner 9ebc3c58ac Fix lang --copy workflow
Closes #9727
2023-06-28 13:47:29 -04:00
Tienson Qin fd6b587235 Merge branch 'master' into feat/db 2023-06-21 14:09:16 +08:00
queeup 083f5f69fc i18n: update Turkish translation 2023-06-19 13:27:50 -04:00
Taylor Hoffmann 87c4667d95
chore: updated pt-BR translations (#9655)
* chore: language pt-br

* fix: removed lang duplications

* fix: added duplicated entries for "pt-br" and "en"
2023-06-15 14:40:09 -04:00
hasecilu d34073c3b1 Fix translations 2023-06-15 11:45:27 -04:00
ingepettersen bbc30fde81
Enhance(i18n): Updated Norwegian translation (#9618)
* Updated Norwegian translations.

* Fixed bad paste

* Updated Norwegian translation

* nb-NO: Fix a few translations + lang.clj script

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-06-12 10:13:33 -04:00
Gabriel Horner 1765ecfb02 Fix duplicates that were caught by linter
Also undo removals in this PR of translations that were being used.
Also changed :misc/copy translation since it didn't have a meaningful
description
2023-06-05 14:00:11 -04:00
Gabriel Horner 2d60d95bc5 Update lang validation to detect duplicates
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
2023-06-05 11:09:35 -04:00
Gabriel Horner f8780a910c Update valid dicts lint and delete an unused key 2023-06-02 17:06:12 -04:00
rcmerci 20618afaa7 add bb task: validate sqlite data 2023-05-30 00:39:22 +08:00
Gabriel Horner ad3eda7c25 Tutorial fix and refactor. Update docs
* Some langs like es didn't have tutorials translated and were
  pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
2023-05-24 16:57:48 -04:00
Gabriel Horner 28ff6b1894 Move dictionaries to EDN
Also introduce src/resources/ for classpath resources as templates/ is a
misleading name for generic resources and resources/ is being used for
non-resource things. Confirmed translations are the same with bb
lang:list
2023-05-24 16:07:54 -04:00
Gabriel Horner 514b5faf6e Refactor and simplify dicts
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
2023-05-18 18:13:50 -04:00
Avelino 1d14f6a98f centralize translation dictionary
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino 184ace5ad6 update documentation to new translation structure (standalone package)
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Gabriel Horner f645daf724 Add a --copy to support suggested translation workflow
Follow up to #9115
2023-04-17 10:53:43 -04:00
Gabriel Horner 7dc9c41899 Fix nbb.edn paths with latest nbb-logseq
Also upgrade nbb-logseq in other deps
2023-04-12 11:02:43 +08:00
Gabriel Horner ba840399ff Export should error with exit 1 when an error occurs
Also provide skip env var for when not wanting latest publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner fef07fe812 Add docs and workflow for dep
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Gabriel Horner 5186070248 Finish migration of publishing to deps
* Frontend and cmdline version use the same fns!
* Add docstrings and db tests
* Fix bug with intermittently failing asset copies
* Move publish cli to scripts since publish-spa shouldn't have graph-parser dependency
* Fix parse-graph bug noticed while testing publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner 76c4e49f34 Working POC! 2023-04-09 23:13:33 +08:00
Gabriel Horner a748b4f6b3 PoC on porting electron.core to cmd
Also added dev:build-publishing
2023-04-09 23:13:33 +08:00
Tienson Qin db6fc6b7ee
feat: simple query builder (#8774)
Simple query builder

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2023-03-21 14:27:00 +08:00
rcmerci c3f7417682
enhance: add mldoc ast schema (#8829)
* enhance: add mldoc ast schema

* Add bb task to validate mldoc

Also move mldoc schema to make room for other schemas

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-20 13:41:13 +08:00
Konstantinos 2cace8894c
Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Zhizhen He 25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Gabriel Horner c804e051cc Add validation for repo config.edn
- Add test, task and schema for repo config.edn
- Also removed no longer needed temp fix
2023-01-18 10:07:52 -05:00
rcmerci 21e8a2eab9 dev: add malli-schema & generate kondo config 2023-01-08 20:33:27 +08:00
Gabriel Horner 72acd0f1d4 Change name of task to indicate it can be used on either config.edn 2022-12-07 23:04:55 +08:00
Gabriel Horner 8f5f4fc5b1 First pass at schema for global config 2022-12-07 23:04:55 +08:00
Andelf 934ed3991c build(nightly): use prerelease semver 2022-12-03 03:35:44 +08:00
Andelf 09bb2542db ci(ios): testflight build workflow
- use patched xcode project file, avoid conflict with local dev env
- use fastlane match to manage codesigning
2022-11-25 10:17:05 +08:00
Tienson Qin 3bb17b46fd chore: bump to 0.8.12 2022-11-23 21:09:29 +08:00
Gabriel Horner 2685cd1325 Fix bug with certain plugins and misc cleanup
- Plugins that used effects weren't loading correctly e.g.
  logseq-power-plugin
- Cleaned up translation, docs and some fn naming
2022-10-17 10:31:07 -04:00
Gabriel Horner c8cda90373 Fix plugin install bugs and add plugin-config tests
- Add validation for plugins.edn with malli
- Add bb task using malli schema
- Add first async test that interacts with frontend.fs
- Add test helpers to make future async testing easier
2022-10-17 10:13:27 -04:00
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Charlie 01d879c18e
feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Gabriel Horner 54c886597c
Split desktop and mobile dev to separate ns's (#5864)
Also replace shell script which required external deps with a bb fn
2022-06-29 09:22:59 -04:00
llcc 459262cd24
add bb tasks for mobile app development (#5765)
* add bb tasks for mobile development
* update mobile app development readme

Co-authored-by: Andelf <andelf@gmail.com>
2022-06-24 11:22:49 +08:00
Gabriel Horner ee9f390761 Localize bb-tasks for deps
Deps need to be independent to not introduce testing bugs.
These bb tasks are good candidates to move into bb-tasks gitlib
2022-06-10 15:39:11 +08:00
Gabriel Horner 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Gabriel Horner 6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Tienson Qin e36bca4660 fix: disable cache for clj-kondo 2022-06-05 12:54:03 +08:00
Tienson Qin f49a28fa7b
Merge pull request #5420 from logseq/enhance/graph-parser-part-four
Enhance: Finish up graph-parser
2022-06-02 10:00:30 +08:00
Andelf 78e3bc0237 feat(scripts): also bump iOS version 2022-05-31 18:02:10 +08:00
Gabriel Horner 7e5ba8d705 Upgrade to latest clj-kondo dep and pods
- Remove cljs 1.11 workarounds since latest includes those symbols
- Unique duplicate ns which intermittently show up in script-vars
  despite using :lang :cljs
- Able to use :format :progress since failing bug no longer shows up
- Remove unnecessary ignore and unused garden config
2022-05-27 10:07:22 -04:00
Gabriel Horner b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
rcmerci b66b8d6cfc
dev: add bb lint cmd (#5354)
* dev: add bb lint cmd

* chore: better docstring for bb dev:lint
2022-05-18 11:50:56 -04:00
Gabriel Horner 0f5711afa8 More high level graph parsing tests 2022-05-04 12:02:36 -04:00
Gabriel Horner c0e1e16372 Finish up CI job for requiring nbb-compatible namespaces 2022-05-04 12:02:36 -04:00
Gabriel Horner d6082156c5 Find namespaces for nbb-compatible CI step 2022-05-04 12:02:36 -04:00
Gabriel Horner 8252160c0a More test improvements
- Easier auth setup
- subdirectory is configurable
- list graphs api also exercised
2022-04-13 19:12:24 +08:00
Gabriel Horner 798bac18a5 First pass at file tests for file-sync
Each action usually passes by 5th try
2022-04-13 19:12:24 +08:00
Gabriel Horner 0ccbe4d046
Enhance: validate local storage (#4784)
* Validate localStorage with spec

This will help get at the source of errors like #4706 quicker

* Fix settings bugs

Close #4679 as shortcut tooltip setting is now visible.
No need to js/alert when a setting is changed. Probably leftover bugging

* Add docs and example of reusing specs in bb task

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-01 15:46:52 +08:00
Gabriel Horner f4839da1e1 Make dictionary namespaces bb compatible
Now that translations are just data no excuse for them not being bb
compatible. Also gets rid of needless sexp parsing
2022-03-28 12:33:28 -04:00
Gabriel Horner 79bbf21f7d Allow advanced queries to pull in dsl rules as needed
- Remove unused query' and when checks from custom-query
- Update bb command to use correct watch
- Provide $EXAMPLE mode in query dsl test to document rule usage
2022-03-10 15:43:07 +08:00
Gabriel Horner 6200ec70d3 Add rules linter for unbound vars and invalid queries
Linter caught one unbound var which wasn't an error but nonetheless good
to cleanup
2022-03-09 14:10:38 +08:00
Gabriel Horner e81678fc69 Mark most vars as cleanup-todo
Fixed a few that I knew how to QA and were low risk
2022-02-04 16:57:49 -05:00
Gabriel Horner 40eb74a47c Add first pass at large vars linter
Had to tweak rewrite-clj to read vars with metadata.
Added fail fast behavior to fns to prevent silent failure
which was impacting tasks. Started looking at a few vars. More to look
at
2022-02-04 14:06:50 -05:00
Gabriel Horner 0fcdb498d8 Update lang tasks to also read shortcuts
- Updated docs with more accurate picture of translation state
- invalid task found keys that were no longer used from 2 commands
- Cleaned up rewrite-clj
2022-02-02 11:26:20 -05:00
Gabriel Horner 04241dfe96 Merge branch 'master' into feature/lang-tasks-and-ci 2022-01-29 10:06:44 -05:00
Gabriel Horner 76f6ecc937 Add a translating guide and tweak tasks 2022-01-28 17:19:25 -05:00
Gabriel Horner 9a644cfe90 Add duplicate detection and fix a few from langs I know 2022-01-28 16:04:55 -05:00
Gabriel Horner 45fd55701f Can parallelize within bb.edn per borkdude 2022-01-28 14:49:55 -05:00
Gabriel Horner 02c0489a26 Add CI job for invalid dicts
And tweak fn so that it actually fails
2022-01-27 17:43:10 -05:00
Gabriel Horner 8998e9435b Start electron dev env with one cmd
Thanks @borkdude for the gist :)
2022-01-27 17:33:46 -05:00
Gabriel Horner 115b0266f5 First pass 2022-01-27 16:38:30 -05:00
Gabriel Horner 4ce3db2497 Carve up to frontend.components.sidebar 2022-01-27 14:11:59 -05:00
Gabriel Horner 8b428796bc Setup carve and ignore all unused vars by default
Also split out lint jobs to their own step
2022-01-27 14:11:59 -05:00
Andelf 37055a45bc fix(script): should bump versionCode 2022-01-21 09:41:06 +08:00
Andelf 250dd4e9c3 feat(scripts): add bump-version script 2021-12-25 22:42:21 +08:00
Andelf 8f211e21c5 fix(ci): missing variables in release build, disable nightly 2021-12-01 13:19:26 +08:00
Andelf 935a317c6e ci: use version.cljs instead 2021-11-30 11:06:35 +08:00
Andelf fa003e6f57 ci: refactor desktop app release ci, add nightly build 2021-11-30 11:06:35 +08:00
Tienson Qin fe663cc858 chore: add publishing.sh 2021-03-01 21:08:01 +08:00