1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00
joplin/packages/lib
2021-12-17 01:16:46 +01:00
..
commands
components
debug
hooks
images
lib
locales Update translations 2021-12-17 01:16:46 +01:00
migrations
models translations 2021-12-17 01:12:30 +01:00
renderers
rnInjectedJs
services
testing
themes
utils
vendor
.gitignore
array.ts
ArrayUtils.js
ArrayUtils.test.js
AsyncActionQueue.ts
BaseApplication.ts
BaseModel.ts
BaseSyncTarget.ts
Cache.js
callbackUrlUtils.test.ts
callbackUrlUtils.ts
ClipperServer.ts
CssUtils.ts
database-driver-better-sqlite.ts
database-driver-node.js
database.test.js
database.ts
DropboxApi.js
dummy.test.ts
envFromArgs.js
errorUtils.ts
EventDispatcher.js
eventManager.test.js
eventManager.ts
file-api-driver-amazon-s3.js
file-api-driver-dropbox.js
file-api-driver-joplinServer.ts
file-api-driver-local.js
file-api-driver-memory.ts
file-api-driver-onedrive.js
file-api-driver-webdav.js
file-api-driver.test.ts
file-api.ts
folders-screen-utils.js
fs-driver-base.ts
fs-driver-dummy.js
fs-driver-node.ts
fsDriver.test.ts
geolocation-node.js
HtmlToMd.ts
htmlUtils2.test.ts
htmlUtils.test.ts
htmlUtils.ts
import-enex-html-gen.js
import-enex-html-gen.test.js
import-enex-md-gen.test.ts
import-enex-md-gen.ts
import-enex.ts
InMemoryCache.test.ts
InMemoryCache.ts
jest.config.js
jest.setup.js
JoplinDatabase.ts
JoplinError.ts
JoplinServerApi.ts
locale.ts
Logger.ts
markdownUtils2.test.ts
markdownUtils.test.ts
markdownUtils.ts
markJsUtils.js
markupLanguageUtils.ts
mime-utils-types.js
mime-utils.js
mimeUtils.test.js
net-utils.ts
ntp.ts Server: Display NTP server domain and port when there is an error, and display message when NTP check is skipped 2021-12-16 10:53:28 +01:00
ObjectUtils.ts
onedrive-api-node-utils.js
onedrive-api.ts
package-lock.json
package.json
parameters.js
parseUri.js
path-utils.ts
pathUtils.test.js
PoorManIntervals.ts
promise-utils.js
randomClipperPort.js
react-logger.js
README.md
reducer.test.js
reducer.ts
registry.test.ts
registry.ts
reserved-ids.js
resourceUtils.js
shim-init-node.js
shim.ts
string-utils-common.js
string-utils.js
StringUtils.test.js
Synchronizer.ts
SyncTargetAmazonS3.js
SyncTargetDropbox.js
SyncTargetFilesystem.js
SyncTargetJoplinCloud.ts
SyncTargetJoplinServer.ts
SyncTargetMemory.js
SyncTargetNextcloud.js
SyncTargetNone.ts
SyncTargetOneDrive.ts
SyncTargetRegistry.ts
SyncTargetWebDAV.js
TaskQueue.test.js
TaskQueue.ts
theme.ts
time.ts
timeUtils.test.js
tsconfig.json
urlUtils.js
urlUtils.test.js
uuid.ts
versionInfo.ts
WebDavApi.js
welcomeAssets.js
WelcomeUtils.js

@joplin/lib

Library shared between all applications.

  • It should not have dependencies to any other @joplin package to avoid dependency cycles.
  • Binary packages should be passed via dependency injection from the parent packages, for example like it is done in shim-init-node. This is because each app might need to compile the binary package in a specific way, so doing it from /lib would cause issues.
  • It should not include the react or react-native packages because React in particular breaks when there's more than one instance of it in node_modules. React is passed via dependency injections so that some hooks can be shared.