Timeline
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

46 check-ins using file src/main.mk version c00884f824

2020-05-15
04:40
Modernized sbsdiff.js a tiny bit, adapted it to optionally be callable multiple times via fossil.page.tweakSbsDiffs(), and activate that when fileedit's sbs diff is refreshed. check-in: dd46579617 user: stephan tags: fileedit-ajaxify
04:20
Internally rearranged how diff flags are passed around, in anticipation of having to refactor for wiki/forum diffs. Added annotate/blame links to /fileedit's first tab. check-in: 39a5241b6f user: stephan tags: fileedit-ajaxify
03:35
Cleaned up some JSON output using the new %!j format. check-in: d9fffa4c58 user: stephan tags: fileedit-ajaxify
03:34
Added %!j to %j, which means to include double quotes around the resulting JSON string, and added the corresponding flag to encode_json_string_literal(). check-in: 2cccc12d04 user: stephan tags: fileedit-ajaxify
02:39
Fixed multi-line commit comment (was not being submitted with commit) and change page title to reflect the file being edited, both per forum feedback. check-in: ef2166a0ac user: stephan tags: fileedit-ajaxify
02:27
Added submenu Edit entry, when appropriate, to /file, per forum feedback. check-in: 4818e7fdac user: stephan tags: fileedit-ajaxify
01:35
Fix a potential null deref in sample JS code. check-in: d361947c8d user: stephan tags: fileedit-ajaxify
2020-05-14
23:34
EOL conversion: had neglected to pass that option on in the ajax request. Fixed a bug which caused duplicate CRs to get injected into force-to-windows-EOL conversions. check-in: 439f446df6 user: stephan tags: fileedit-ajaxify
15:10
Restructured fileedit-page.md to give more space to/explanation of each caveat/warning bullet point (each of which is now in its own subsection). check-in: 33146972e6 user: stephan tags: fileedit-ajaxify
07:29
Added a warning about EOL normalization of files with mixed EOL styles. check-in: b83ff3f421 user: stephan tags: fileedit-ajaxify
07:14
Added www/fileedit-page.md, documenting how to integrate syntax highlighting and replace the editor widget. Added fossil.page.replaceEditorElement() to facility replacing the editor widget. check-in: 909a48e378 user: stephan tags: fileedit-ajaxify
04:46
Expanded the fileedit-preview-updated event data to include the mimetype and preview mode so that listeners can make a better-informed decision about how/whether to handle the content. check-in: e988ed904a user: stephan tags: fileedit-ajaxify
04:32
Added fileedit-preview-updated event, for use in hooking up 3rd-party syntax highlighting to the preview. (Tested locally with highlightjs.) check-in: 8e293f959a user: stephan tags: fileedit-ajaxify
04:14
Removed some dead code. check-in: 4619c9a772 user: stephan tags: fileedit-ajaxify
04:13
Added a parameter to encode_json_string_literal() to allow it to return its output string length, saving a strlen() call in vxprintf() %j. check-in: 57edd18144 user: stephan tags: fileedit-ajaxify
03:55
Minor help text, style, and layout tweaks. check-in: 28b2261b75 user: stephan tags: fileedit-ajaxify
03:39
The filename/version block on the first fileedit tab is now generated completely dynamically, rather than being filled out with '???' with broken links before a file is loaded. check-in: 371b162ff3 user: stephan tags: fileedit-ajaxify
03:00
fileedit: now gets the file perms via the response header and updates the Is Executable checkbox accordingly. Similary, mimetype is now harvested from the response headers and is used, in place of file extensions, for the "is this a wiki page?" determination. Added fossil-level event infrastructure to allow pages to communicate page-specific events... check-in: f1b2e509e7 user: stephan tags: fileedit-ajaxify
2020-05-13
16:44
Minor doc fix. check-in: ae594780d1 user: stephan tags: fileedit-ajaxify
16:41
The programmatically-generated input-with-label elements now use an inner LABEL, instead of SPAN, and auto-generated INPUT element IDs to go with the labels (which require an ID). check-in: b46d11b871 user: stephan tags: fileedit-ajaxify
2020-05-12
16:26
Fixed a potential corner-case bug which would have broken fossil.fetch() if a user had defined their own fossil.fetch.onerror() impl before calling fossil.fetch() the first time. check-in: 695dde004c user: stephan tags: fileedit-ajaxify
15:10
Merged in trunk for various menu item fixes before deployment to my server. check-in: 8cc7953b9a user: stephan tags: fileedit-ajaxify
13:25
/fileedit now accommodates relative links in wiki-rendered previews by dynamically adjusting/restoring the base.href when the preview tab is selected/deselected, and the backend can now report to the client, via response header, which rendering mode was selected, allowing the UI to adjust from 'Guess' to the current format. check-in: 2bec2c758f user: stephan tags: fileedit-ajaxify
13:19
Added the tab manager before-switch-from event. check-in: 2863abf5c5 user: stephan tags: fileedit-ajaxify
13:18
Added fossil.fetch() responseHeaders option to pass on one or more response headers to the onload() callback. check-in: bbb738d07d user: stephan tags: fileedit-ajaxify
10:24
/fileedit now squelches errors related to 'missing' URL args, as they are now optional. It also now displays an informative warning at the top of the page if fileedit-glob is not set or is empty. Added a hint about hyperlink in the preview page. Added a Help tab with useful(?) tips. check-in: c145140d3e user: stephan tags: fileedit-ajaxify
08:54
Double-clicking the status message bar now clears the message (useful when a long HTML-format error comes in via ajax). Removed the unsightly 'new and experimental' banner. check-in: ff7ad7125f user: stephan tags: fileedit-ajaxify
08:28
After committing, reload the leaves/files list. Added a reload button to the leaves/files widget. Several style improvements. check-in: 2318c419c9 user: stephan tags: fileedit-ajaxify
2020-05-11
13:03
Replaced the /fileedit_AJAX_ROUTE calls with /fileedit?ajax=ROUTE_NAME to eliminate the dispatch-time and help-system bloat. check-in: 9f26fd1eee user: stephan tags: fileedit-ajaxify
12:06
Removed a trailing 'ajax' WEBPAGE flag which should not have been checked in. check-in: 50a6a75ba1 user: stephan tags: fileedit-ajaxify
12:02
CSS which should have been in the previous commit. check-in: b49df0b991 user: stephan tags: fileedit-ajaxify
11:51
/fileedit no longer requires URL arguments: it has a leaf checkin/file selection list on the first tab. check-in: e184992161 user: stephan tags: fileedit-ajaxify
2020-05-10
19:51
Fixed a semantic collision in the fileedit 'column' CSS class, which means something different in the /dir page. This fixes mis-alignment of the commit button. check-in: d0a83a38f5 user: stephan tags: fileedit-ajaxify
19:42
Minor tooltip tweaks. check-in: 0b1085d724 user: stephan tags: fileedit-ajaxify
14:50
Merge in trunk for fossil_exe_id() and use it, instead of md5, as the builtin/*.js cache-buster value. check-in: 7e43119a91 user: stephan tags: fileedit-ajaxify
09:16
Minor efficiency hack in style_emit_script_builtin() and swapped a potentially problematic ordering of two JS includes. check-in: c60ad868b4 user: stephan tags: fileedit-ajaxify
08:47
Several small style tweaks. Changed style_labeled_checkbox() parameter order for better readability. TabManager class now supports events alerting before/after a tab is switched to. Added auto-refresh of preview when the preview tab is activated, with a checkbox to disable it for slow connections and/or large documents (the refresh button still wor... check-in: ee175636aa user: stephan tags: fileedit-ajaxify
2020-05-09
13:56
Disable rendering of the comment mime type selection list, as it's not honored/implemented where comments are rendered. check-in: 875b60bccd user: stephan tags: fileedit-ajaxify
12:54
Determine which comment editing mode to enable based on which of the editor fields is hidden by default, so that we stay in sync if the C side changes. check-in: a4314603f7 user: stephan tags: fileedit-ajaxify
12:36
Added style_select_list_str(), selection list for commit comment mime type, and a toggle to switch between single- and multi-line comment editing modes. check-in: 4d5004ef2d user: stephan tags: fileedit-ajaxify
2020-05-08
14:15
Swapped the style_emit_script_builtin() parameters for consistency with style_emit_script_tag(). check-in: 02240eec90 user: stephan tags: fileedit-ajaxify
14:00
Delay the initial filepage loadFile() until a windows.load event. This seems to eliminate what appears to have been a race between that call and the filepage init code. check-in: 07d0bcc598 user: stephan tags: fileedit-ajaxify
12:39
/fileedit now accepts 'fn' and 'ci' as undocumented aliases for 'filename' resp. 'checkin', for consistency with some other pages. style_emit_script_builtin() now includes a cache-buster on URLs (a prefix of the builtin content's MD5 hash). check-in: 3733293a01 user: stephan tags: fileedit-ajaxify
2020-05-07
12:52
Normalized the various input-with-label elements to use SPAN wrappers instead of DIV. check-in: 53b31b0814 user: stephan tags: fileedit-ajaxify
11:12
doc typo check-in: a62594e58d user: stephan tags: fileedit-ajaxify
09:04
Removed a local temp foo.js which got picked up by makemake.tcl :/. check-in: 8a98762b81 user: stephan tags: fileedit-ajaxify