(This is part 2 of a 3-part series. Part 1 introduces the internals and highlights some of the key patterns and concepts. Part 2 introduces each Javascript file. Part 3 focuses on the internals of the more important classes and files.)
Continuing the series, below is a list of all core Javascript files, organised into functional groups.
Initialisation
- main.js Runs the initialisation sequence.
- Paramifiers.js Handles URL params.
Generic (Non-Animation)
- BasicTypes.js Augments built-in Javascript Number and Array.
- Crypto.js Crypto functions. (Tiddlers can generate fingerprints.)
- Dates.js Augments built-in Javascript Date class.
- Dom.js Supports DOM manipulation.
- FileSystem.js
- Strings.js Augments built-in Javascript Number and Array.
- Http.js Supports XmlHttpRequest based remoting.
- RGB.js CSS colour manipulation.
Generic (Specifically Animation)
See also (2005) TiddlyWiki animation write-up.
- Animator.js Runs the dynamic flow of stepping through an animation, delegating to specific strategies.
- Morpher.js Morphing animation strategy. Cool - smoothly animates between two CSS styles.
- Scroller.js Scroller animation strategy. Scrolls window to show an element. (The way the page smoothly scrolls to show a tiddler when you click its link).
- Slider.js Slider animation strategy. Slides elements opening and closed (e.g. Closing tiddlers or the Options box on right sidebar.).
- Zoomer.js Zoomer animation strategy (the way a tiddler "jumps out" from its link).
Tiddlywiki-Specific Utilities
- FormatterHelpers.js Utilities specifically for Formatters.
- Refresh.js Mechanism for notifying and updating elements based on changes, e.g. if stylesheet shadow tiddler is updated.
- Utilities.js Miscellaneous TiddlyWiki-specific utility functions.
Data Structures
- Tiddler.js Data structure representing a tiddler, i.e. a block of text with a title.
- TiddlerFields.js Augments TiddlyWiki to manage tiddler fields.
- TiddlyWiki.js Data structure representing a collection of tiddlers.
Data Import/Export
- AdaptorBase.js Adaptors convert from various wiki formats (e.g. Mediawiki) to TiddlyWiki. This is the base class for Adaptors.
- FileAdaptor.js Subclass of AdaptorBase which reads the default/standard Tiddlywiki format.
- Import.js Macro to import tiddlers from another Tiddlywiki.
- LoaderSaver.js Converts between HTML and a list of tiddlers. (I think the main purpose is to get a clean HTML list of tiddlers.)
- Saving.js Saves the Tiddlywiki - main case is serialising everything to DOM elements and saving to local file system.
- SavingRSS.js Serves Tiddlywiki as RSS format (e.g. TiddlyWiki.com RSS feed) showing time-sorted list of recently updated tiddlers.
- Sync.js Syncs
- TW21Loader.js Standard implementation of LoaderBase (defined in LoaderSaver.js).
- TW21Saver.js Standard implementation of SaverBase (defined in LoaderSaver.js).
Strategies
This is a broad category of options and control-type functions. The control-type functions are here because they are designed using flexible mechanisms which make them easily overrideable by plugin developers.
- Config.js General Tiddlywiki config - controls capacities, names of shadow tiddlers, which options can be set, other stuff.
- Commands.js Handlers for menus and toolbar.
- Macros.js Defines built-in macros.
- Formatter.js Formatters are strategies for locating regexp patterns in the wiki text (wiki words, image URLs, etc.) and rendering them.
- Options.js Options are cookie-based preferences. The user can generally set them directly on the Tiddlywiki UI. This is in contrast to Config.js settings, which are fixed unless the uswer cares to dive into the source code.
- Wikifier.js
UI Elements
- Backstage.js The backstage space at the top of the page, with access to advanced features and acting as an escape route after over-enthusiastic bouts of customisation.
- ListView.js A table-like list, e.g. shows all options when you hit Backstage|Tweak.
- Manager.js Plugin manager (accessible from Backstage|Plugins)
- Messages.js Simple status notifications.
- NewTiddler.js Macro for a new tiddler, e.g. when user hits "New Tiddler" menu option, and also new journal.
- Popup.js Popup menu (e.g. when you click on the name of a tiddler in the list of shadow tiddlers).
- Search.js Search implementation - allows user to search for a term.
- Sparkline.js Generates CSS based sparklines graphic.
- Story.js Manages the container of all visible tiddler UI elements.
- Tabs.js A UI element for handling tabs.
- Toolbar.js The toolbar shown in the top of a tiddler (with "close", "close others" etc controls - or "done"-"cancel"-"delete" if open).
- Wizard.js Multi-step wizard UI framework.
Miscellaneous
- Deprecated.js Deprecated functions.
- Guide.js A short readme file.
- Lingo.js internationalisation-localisation support - contains string keys and their English values.
- Upgrade.js Support for upgrading Tiddlywiki vgersion.
- Version.js Short file with info about this version of Tiddlywiki.