Fossil

Timeline
Login

Timeline

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

105 check-ins related to "fileedit-ajaxify"

2020-05-28
09:40
Introducing the /fileedit page. ... (check-in: 1243bf39 user: stephan tags: trunk)
2020-05-27
07:56
s/checkin/check-in/ in the help tab, per forum feedback. ... (Closed-Leaf check-in: 91948d3a user: stephan tags: fileedit-ajaxify)
2020-05-26
07:42
Removed a no-longer-true line from the fileedit help tab. ... (check-in: 616333e5 user: stephan tags: fileedit-ajaxify)
06:43
Merged in trunk. ... (check-in: 559807ba user: stephan tags: fileedit-ajaxify)
2020-05-25
23:40
Update the changes log to include a date for 2.11 and to add a place-holder to begin recording 2.12 changes. ... (check-in: 87e3ad31 user: drh tags: trunk)
2020-05-21
06:32
Added a doc section about CSRF/HTTP Referrer. Other minor doc/message cleanups. ... (check-in: 6de7e480 user: stephan tags: fileedit-ajaxify)
2020-05-18
06:05
Internal commentary on the validity of the global UI enable/disable approach to XHR handling. ... (check-in: 7a95a0f1 user: stephan tags: fileedit-ajaxify)
05:19
Added optional fossil.fetch() beforesend/aftersend callbacks to allow us to... /efilepage now disables all input elements while AJAX requests are in-flight and updates the page with a 'wait' cursor. ... (check-in: 7e197260 user: stephan tags: fileedit-ajaxify)
03:41
Replaced style.css?page=xxx with style.css/page, like the [style-css-revamp] branch does. ... (check-in: bc407074 user: stephan tags: fileedit-ajaxify)
03:24
All /fileedit/ajax requests now do a CSRF check and fail with 403 if CSRF seems likely. ... (check-in: 88a69253 user: stephan tags: fileedit-ajaxify)
2020-05-17
18:56
Cherrypick [100c67fa] for bootstrap skin fix. ... (check-in: 06c7d57d user: stephan tags: style-css-revamp)
17:07
Merged in trunk. ... (check-in: b9b746e5 user: stephan tags: fileedit-ajaxify)
16:33
Update the built-in SQLite to the second 3.32.0 beta, for testing. ... (check-in: 5181332e user: drh tags: trunk)
06:40
Minor style improvements. Dry-run mode is now OFF by default. Reordered checkboxes on the commit tab. Eliminated a couple more uses of the term 'stash' (for local edits), to avoid potential confusion with fossil's stash feature. ... (check-in: 42f2cd77 user: stephan tags: fileedit-ajaxify)
06:09
More style tweaks. ... (check-in: 0209fa32 user: stephan tags: fileedit-ajaxify)
04:50
Updated bootstrap skin header to use $stylesheet_url instead of hard-coding the name and params. ... (check-in: 100c67fa user: stephan tags: fileedit-ajaxify)
04:45
Fixed input-with-label > label style for skins which set label display to block. ... (check-in: 0002b7d7 user: stephan tags: fileedit-ajaxify)
04:08
Replaced /fileedit?ajax=blah with /fileedit/blah. This simplifies the passing of URL arguments, eliminating it in several cases, and just looks nicer. ... (check-in: 2c4e7c37 user: stephan tags: fileedit-ajaxify)
03:35
Several layout tweaks. The 'Prefer delta?' option is now checked by default if the repo contains any deltas and the forbid-delta-manifests setting is not true (that setting trumps this checkbox, in any case). ... (check-in: 25f5f592 user: stephan tags: fileedit-ajaxify)
03:32
Moved fileedit-specific CSS to style.fileedit.css, as enabled by previous commit [d661c12cbade]. ... (check-in: 95f1753f user: stephan tags: fileedit-ajaxify)
03:19
Extended style.css to optionally be able to load page-specific CSS if the 'page' URL param is provided and a builtin file named style.{{page}}.css is found. The stylesheet_url TH1 var now adds URL param page=g.zPath if builtin file style.{{g.zPath}}.css is available. ... (check-in: d661c12c user: stephan tags: fileedit-ajaxify)
2020-05-16
17:05
Clear the preview/diff views after a non-dry-run commit. Added toggle to include (or not) manifest in the commit response. Added branch name to finfo objects from the server so that we have the branch names for stashed non-leaf edits. Extended fossil.connectPagePreviewers() to be able to optionally specify methods, instead of element IDs, for the 'from' source and 'to' target, in order to support custom editor/preview widgets. ... (check-in: b5944d4e user: stephan tags: fileedit-ajaxify)
06:34
Removed the hard-coded restriction against using /fileedit on the main fossil repo and tweaked an error message. ... (check-in: 3c795e87 user: stephan tags: fileedit-ajaxify)
05:42
Include the branch name, if known, in stashed fileinfo objects, and use a longer hash prefix for storing checkin-to-branch mappings (noting that the record does not notice if a checkin is later moved to another branch). (We only know the branch names of leaf checkins we've loaded, but now cache them in persistent storage if possible.) Renamed an internal cache key for consistency. ... (check-in: 8573443f user: stephan tags: fileedit-ajaxify)
05:03
Added widget to browse/select locally-edited files. Related cleanups and refactoring. ... (check-in: aefceac5 user: stephan tags: fileedit-ajaxify)
2020-05-15
22:13
Added fileedit-content-replaced event for notification when content is replaced. Clear preview/diff views on fileedit-content-replaced. Changed the interface for providing custom content getter/setter. Fixed the load file button in the file selection widget - it's no longer cleared. ... (check-in: 6f2649b9 user: stephan tags: fileedit-ajaxify)
19:25
Simplified the previous commit considerably. ... (check-in: 525bec99 user: stephan tags: fileedit-ajaxify)
19:11
Corrected fossil.storage's use of hasOwnProperty() for the case of the fallback transient storage object. ... (check-in: a863592e user: stephan tags: fileedit-ajaxify)
18:54
Completed a half-written sentence in the fileedit docs. ... (check-in: d701631e user: stephan tags: fileedit-ajaxify)
18:43
/fileedit now uses fileStorage or sessionStorage, if available, to store unsaved local edits to the 7 most recently edited checkin/file combinations. TODO: make that configurable and offer a widget to manage that stash and quickly switch between those files. It warns loudly if persistent storage is not available. ... (check-in: d130f356 user: stephan tags: fileedit-ajaxify)
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: dd465796 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: 39a5241b user: stephan tags: fileedit-ajaxify)
03:35
Cleaned up some JSON output using the new %!j format. ... (check-in: d9fffa4c 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: 2cccc12d 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: ef2166a0 user: stephan tags: fileedit-ajaxify)
02:27
Added submenu Edit entry, when appropriate, to /file, per forum feedback. ... (check-in: 4818e7fd user: stephan tags: fileedit-ajaxify)
01:35
Fix a potential null deref in sample JS code. ... (check-in: d361947c 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: 439f446d 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: 33146972 user: stephan tags: fileedit-ajaxify)
07:29
Added a warning about EOL normalization of files with mixed EOL styles. ... (check-in: b83ff3f4 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: 909a48e3 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: e988ed90 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: 8e293f95 user: stephan tags: fileedit-ajaxify)
04:14
Removed some dead code. ... (check-in: 4619c9a7 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: 57edd181 user: stephan tags: fileedit-ajaxify)
03:55
Minor help text, style, and layout tweaks. ... (check-in: 28b2261b 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: 371b162f 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 to skin-injected/user-supplied JS code, and fileedit now emits a fileedit-file-loaded event when it loads a new file. Replaced old uses of the term "save" with "commit", per forum feedback. ... (check-in: f1b2e509 user: stephan tags: fileedit-ajaxify)
2020-05-13
16:44
Minor doc fix. ... (check-in: ae594780 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: b46d11b8 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: 695dde00 user: stephan tags: fileedit-ajaxify)
15:10
Merged in trunk for various menu item fixes before deployment to my server. ... (check-in: 8cc7953b 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: 2bec2c75 user: stephan tags: fileedit-ajaxify)
13:19
Added the tab manager before-switch-from event. ... (check-in: 2863abf5 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: bbb738d0 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: c145140d 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: ff7ad712 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: 2318c419 user: stephan tags: fileedit-ajaxify)
00:21
Extra comment in the code for the m=checkin with t=release feature of /timeline. ... (check-in: 461d4f41 user: drh tags: trunk)
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: 9f26fd1e user: stephan tags: fileedit-ajaxify)
12:06
Removed a trailing 'ajax' WEBPAGE flag which should not have been checked in. ... (check-in: 50a6a75b user: stephan tags: fileedit-ajaxify)
12:02
CSS which should have been in the previous commit. ... (check-in: b49df0b9 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: e1849921 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: d0a83a38 user: stephan tags: fileedit-ajaxify)
19:42
Minor tooltip tweaks. ... (check-in: 0b1085d7 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: 7e43119a user: stephan tags: fileedit-ajaxify)
13:58
Add the fossil_exe_id() internal interface that returns a unique hash that changes whenever Fossil is recompiled (more precisely, whenever the MANIFEST_UUID changes or the etag.c source file is recompiled). ... (check-in: 54a8243b user: drh tags: trunk)
09:16
Minor efficiency hack in style_emit_script_builtin() and swapped a potentially problematic ordering of two JS includes. ... (check-in: c60ad868 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 works as before). ... (check-in: ee175636 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: 875b60bc 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: a4314603 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: 4d5004ef 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: 02240eec 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: 07d0bcc5 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: 3733293a 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: 53b31b08 user: stephan tags: fileedit-ajaxify)
11:12
doc typo ... (check-in: a62594e5 user: stephan tags: fileedit-ajaxify)
09:04
Removed a local temp foo.js which got picked up by makemake.tcl :/. ... (check-in: 8a98762b user: stephan tags: fileedit-ajaxify)
02:36
Merged in trunk. ... (check-in: 087c5d1f user: stephan tags: fileedit-ajaxify)
01:45
Removed a bit of comment which confused the help generator and broke building test-builtin-list... and yet somehow built once? ... (check-in: 6ba0e14d user: stephan tags: trunk)
01:19
Added hash_digits() info to fossil.config object and added fossil.hashDigits(). Factored out fileedit JS use of innerHTML where possible. Reworked the Version Info tab a bit. ... (check-in: 29567e6e user: stephan tags: fileedit-ajaxify)
2020-05-06
23:53
Added a 'tick' mode to fossil.confirmer to more easily allow the triggering element to be visibly updated to reflect the countdown state. The editor's discard/reload button now visibly counts down from 3 if clicked. ... (check-in: 3da4b94c user: stephan tags: fileedit-ajaxify)
22:57
Improved the tab control styling, and no longer use buttons so that their :focus style doesn't break the appearance. Fixed some CSS which no longer matched after removal of the outer wrapping FORM element. ... (check-in: a84f6458 user: stephan tags: fileedit-ajaxify)
17:52
Renamed the file=filename, r=checkin query params to filename=..., checkin=..., for consistency with the annotate/blame URLs and possibly others. ... (check-in: 6b7805e0 user: stephan tags: fileedit-ajaxify)
17:37
s/f-post-/f-preview-/. ... (check-in: 99bd288b user: stephan tags: fileedit-ajaxify)
17:33
First step in the automation of connecting an editor widget to a preview-mode widget, as demo'd in /forumpost/d44564bad4. ... (check-in: 7ede6122 user: stephan tags: fileedit-ajaxify)
05:21
cosmetic internal tweaks. ... (check-in: bb71f9ec user: stephan tags: fileedit-ajaxify)
04:52
Minor code style improvements, fixed a couple jquery-isms in the confirmer port, added the ability to select tabs by number and pre-select a specific tab, removed a superfluous C function. ... (check-in: 9085ec23 user: stephan tags: fileedit-ajaxify)
03:30
Removed a bogus, but harmless, JS dep and corrected some copy/pasted docs. ... (check-in: 2abc1ff4 user: stephan tags: fileedit-ajaxify)
03:19
Removed devious hard tabs which slipped in while porting. ... (check-in: 626c4560 user: stephan tags: fileedit-ajaxify)
03:02
Added fossil.confirmer JS API to offer a non-intrusive click confirmation mechanism. Re-activated the /filepage content reload button with a confirmation click required. ... (check-in: e70ab3a3 user: stephan tags: fileedit-ajaxify)
01:58
Removed the FORM element - it was superfluous and particularly stubborn in how it responded to every button. ... (check-in: 7635d934 user: stephan tags: fileedit-ajaxify)
01:51
Reworked how /fileedit loads its JS - it now fetches them rather than embedding them inline. Moved fossil.fetch() docs from style.c into the JS file. ... (check-in: b48212f6 user: stephan tags: fileedit-ajaxify)
2020-05-05
23:54
Re-added the editor font size selector. Added a button to discard/reload edits, but it's too easy to activate by accident, so it's disabled until we have a common confirmation mechanism in place. Added timestamp to fossil.message() and fossil.error() output. ... (check-in: 25dfd243 user: stephan tags: fileedit-ajaxify)
23:31
Added missing checks for negative result value from symbolic_name_to_rid() (indicating an ambiguous name). ... (check-in: d8c21f2f user: stephan tags: fileedit-ajaxify)
22:18
Added option to render HTML previews inline, as opposed to in an iframe. Layout improvements in the preview/diff/commit tabs. ... (check-in: bd81a5f6 user: stephan tags: fileedit-ajaxify)
21:49
Temporarily(?) removed the editor font size adjustment dropdown, as it currently has no proper home in the new layout. ... (check-in: 413a0ce8 user: stephan tags: fileedit-ajaxify)
21:41
Unified diff now produces empty output when the diff is empty, insead of an empty wrapper element. ... (check-in: 146e867e user: stephan tags: fileedit-ajaxify)
17:23
Doc updates and corrections. ... (check-in: e7659e72 user: stephan tags: fileedit-ajaxify)
16:51
Completely overhauled the /fileedit layout, using a homebrew tabbed interface. ... (check-in: 33ffe576 user: stephan tags: fileedit-ajaxify)
11:51
/fileedit_content now only uses application/octet-stream for files which explicitly have that type via mimetype_by_name() or which look like binary content, falling back to text/plain, per suggestion in the discussion thread. ... (check-in: 4270ecb3 user: stephan tags: fileedit-ajaxify)
08:41
Numerous minor cleanups. ... (check-in: f54ac217 user: stephan tags: fileedit-ajaxify)
06:48
Ajaxified commit. All that's left is cleanup and prettification. ... (check-in: 1a6c5090 user: stephan tags: fileedit-ajaxify)
04:06
Initial work on ajaxifying /fileedit. Fetching content, preview, and diffs are ajax'd, but save is not yet. ... (check-in: 8edf9dbf user: stephan tags: fileedit-ajaxify)
2020-05-04
23:26
Moved some generic fileedit code to style.c. Refactored /fileedit to not require JS to update version info, making this impl pure no-JS. Now to ajaxify it... ... (Closed-Leaf check-in: 8d4ce834 user: stephan tags: checkin-without-checkout)