Skip to content

Commit

Permalink
feat: add basic syncAdaptor plugin from TidGi-Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Sep 3, 2023
1 parent 57bdb3f commit c6bc8e5
Show file tree
Hide file tree
Showing 42 changed files with 2,958 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ assets/emptyWiki.html
# result of fetchHTML.mjs for debugging
tiddlerStore.json
skinny.html

# generated plugin from `npm run build:plugin`
assets/plugins/$__plugins_linonetwo_expo-file-system-syncadaptor-ui.json
assets/plugins/$__plugins_linonetwo_expo-file-system-syncadaptor.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"start": "expo start",
"android": "expo start --android",
"build:plugin": "zx scripts/buildPlugins.mjs",
"ios": "expo start --ios",
"web": "expo start --web",
"tw:emptyHTML": "zx scripts/generateEmptyWikiHTML.mjs"
Expand Down
13 changes: 13 additions & 0 deletions plugins/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resources/
settings-dev/
out/
logs/
dist/
wiki/
template/
.webpack/
node_modules/
localization/
build-resources/
.vscode/
.github/
11 changes: 11 additions & 0 deletions plugins/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const tsEslintConfig = require('./tsconfig.eslint.json');

module.exports = {
root: true,
ignorePatterns: tsEslintConfig.exclude,
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
extends: ['eslint-config-tidgi'],
};
143 changes: 143 additions & 0 deletions plugins/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
.DS_Store

# For IDE
.vscode/**/*
!.vscode/settings.json
!.vscode/extensions.json
.idea/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnp
.pnp.js
.history
*.report

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.seed
*.pid
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/
.pnpm-store/

.changeset/pre.json

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

.sonarlint

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env.local
.env.*.local

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist/
release/
output/
output_resource/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
public-dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

**/*/typings/auto-generated

# for TiddlyWiki
dist/
output/
wiki/tiddlers/$__language.tid
wiki/tiddlers/$__StoryList.tid
wiki/tiddlers/$__StoryList_*.tid
wiki/tiddlers/$__keepstate_*
wiki/tiddlers/$__Import.tid
wiki/tiddlers/$__UpgradeLibrary
wiki/tiddlers/$__UpgradeLibrary_List
wiki/tiddlers/$__temp_*
wiki/tiddlers/$__view.tid
wiki/tiddlers/$__config_Navigation_openLinkFromInsideRiver.tid
wiki/tiddlers/$__config_Navigation_openLinkFromOutsideRiver.tid
3 changes: 3 additions & 0 deletions plugins/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Tiddlywiki plugins

Plugins that only used in TidGi-Mobile, and will be dynamically injected into wiki, won't be saved to wiki file/folder.
24 changes: 24 additions & 0 deletions plugins/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"license": "MIT",
"version": "0.0.2",
"scripts": {
"dev": "tiddlywiki-plugin-dev dev",
"build": "npm run clean && tiddlywiki-plugin-dev build",
"reset": "rimraf ./**/node_modules",
"clean": "rimraf dist",
"new": "tiddlywiki-plugin-dev new",
"build:library": "npm run clean && tiddlywiki-plugin-dev build --library --output dist/library",
"publish:offline": "npm run clean && tiddlywiki-plugin-dev publish --offline"
},
"devDependencies": {
"@modern-js/tsconfig": "^2.33.1",
"@types/node": "^20.5.9",
"dprint": "^0.40.2",
"postcss": "^8.4.29",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1"
},
"dependencies": {
"tiddlywiki-plugin-dev": "^0.0.39"
}
}
Loading

0 comments on commit c6bc8e5

Please sign in to comment.