From 1492e909e036c13ac332e6c1b18c08c4665b6da0 Mon Sep 17 00:00:00 2001 From: NaitLee Date: Tue, 14 Jun 2022 18:33:44 +0800 Subject: [PATCH] fix docs, fold something --- README.md | 14 +++++++++++++- tradit-handler.ts | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 393f58a..2cc0905 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,11 @@ But currently *none* of existing templates will work perfectly. ## FaQ -**Why "Trait-TPL"?** +
+ +Expand FaQ + +**Why "Tradit-TPL"?** I casually took it from word "traditional". But that word is not the case -- we have new way. And pronounce that "tra" as in "trap". @@ -38,16 +42,24 @@ Since it's non-production, it yet can't be determined. But it's certainly true that so-called "injection" **won't** work! *Leave away from those tech imps.* Test your case with good tools like [OWASP ZAP](https://www.zaproxy.org/), *not a mouth*. +
+ ## Dev - Prepare: `cd` to repo, `npm install` - Transpile: `npx tsc` +
+ +Tips for Linux/*nix + Symlinking `dist` to plugin folder as `Tradit-TPL` helps. Under X11 (yes, neither Windows/Wine nor Wayland), HFS can't reload correctly with `npx tsc --watch`, after 2 times. Assign a keybinding to your DE (like KDE Plasma) to run `touch //Tradit-TPL/dist/plugin.js`. My choice is `Ctrl+Alt+Shift+S`. +
+ Far more things are going to be changed, and many macros are not implemented yet. Don't pay too much attention as for now... diff --git a/tradit-handler.ts b/tradit-handler.ts index 2358d15..be25145 100644 --- a/tradit-handler.ts +++ b/tradit-handler.ts @@ -48,7 +48,7 @@ export class Handler { API.setConfig(CFG_KEY_PATH, path); return; // let subscriber work } else { - API.log('Please select a template in plugin configuration'); + API.log('Please manually select a template in plugin configuration'); return; } }