Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
66 check-ins using file src/finfo.c version b9d8b85704
|
2020-05-30
| ||
| 16:15 | Make two passes through list of local changes so all "one-line" entries are listed first. check-in: bc56945ea4 user: graham tags: ui-local-diff | |
|
2020-05-28
| ||
| 21:39 | Initial implementation to show "local (uncommitted) changes" in Fossil's UI. Not yet tested to destruction, but fails no more errors in the test-suite than trunk. Currently there are no links to the new page: manually navigate to "/local" (a variant of the "/ci" page). check-in: ccebe22576 user: graham tags: ui-local-diff | |
| 19:47 | Second-pass edit on www/hashes.md: more definite stances on things now that we have a ruling on the debate, and less flagellation all around. check-in: 3d808c4d0c user: wyoung tags: trunk | |
| 17:37 | Updates to the doc/hashes.md document. check-in: 364307951c user: drh tags: trunk | |
| 17:21 | The new blob_reserve() now triggers blob_panic() if asked to allocate more than blob_append_full() internally allows for (not quite 2GB), to avoid a corner case that blob_reserve() could be used to accidentally bypass that internal limit. check-in: e714b8427c user: stephan tags: trunk | |
| 15:46 | Updates the email-sender TCL script so that it appends a "-f" argument to sendmail which is the "From:" email address. check-in: a52499fdc4 user: drh tags: trunk | |
| 14:58 | Initial infrastructure for a command-line version of the security audit page. Leaf check-in: dba4c4f2c4 user: drh tags: audit-command | |
| 14:20 | Enhance codecheck1.c to check recently added varargs functions. check-in: b17aba9e20 user: drh tags: trunk | |
| 13:44 | Per forum discussion, moved the /fileedit ajax dispatching back down below the login check, but have it emit a JSON response if an ajax route was requested, else an HTML response. check-in: 62263b9cb0 user: stephan tags: trunk | |
| 13:27 | fossil.fetch() now uses onreadystatechange instead of onload because the latter does not handle connection errors and timeouts. Added timeout option to fossil.fetch() with a default of 15s. Corrected non-closing of a failed transaction when fileedit/commit fails. check-in: 6849d9a557 user: stephan tags: trunk | |
| 12:16 | Moved /fileedit permissions check below the ajax dispatching check, as ajax bootstrapping performs that check itself, along with a CSRF check for write-mode requests, and emits a JSON-format response (as opposed to HTML) if it fails. check-in: 13e26db403 user: stephan tags: trunk | |
| 12:05 | Add a notification that online file editing is enabled to the security audit. check-in: a80861de03 user: drh tags: trunk | |
| 12:02 | Removed fileedit-glob from the list of syncable config options. It must be explicitly set on each repo where it is desired. check-in: d6341b3a55 user: stephan tags: trunk | |
| 12:01 | Fix on Check-in pages to preserve the current "diffType" setting (side-by-side or unified) when toggling the show/ignore whitespace option. check-in: e6ab947e1e user: graham tags: ui-local-diff | |
| 11:49 | Disable all access to the /fileedit page and its associated AJAX entry points if the user lacks write privilege or if file editing is not enabled. check-in: f231239780 user: drh tags: trunk | |
| 11:42 | Cosmetic fix for "/file?name=xxxx" where ci defaults to "tip". Title used to be "xxxx at []"; now it is "xxxx at tip" which matches the behaviour of "/file?name=xxxx&ci=tip". check-in: 551676bc28 user: graham tags: ui-local-diff | |
| 09:47 | Added /fileedit to changes.wiki. check-in: 2c9aa1b939 user: stephan tags: trunk | |
| 09:40 | Introducing the /fileedit page. check-in: 1243bf3999 user: stephan tags: trunk | |
|
2020-05-27
| ||
| 07:56 | s/checkin/check-in/ in the help tab, per forum feedback. Closed-Leaf check-in: 91948d3afa user: stephan tags: fileedit-ajaxify | |
|
2020-05-26
| ||
| 07:42 | Removed a no-longer-true line from the fileedit help tab. check-in: 616333e5ba user: stephan tags: fileedit-ajaxify | |
| 06:43 | Merged in trunk. check-in: 559807ba86 user: stephan tags: fileedit-ajaxify | |
|
2020-05-21
| ||
| 06:32 | Added a doc section about CSRF/HTTP Referrer. Other minor doc/message cleanups. check-in: 6de7e48021 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: 7a95a0f178 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: 7e197260fd 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: bc40707425 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: 88a69253cd user: stephan tags: fileedit-ajaxify | |
|
2020-05-17
| ||
| 17:07 | Merged in trunk. check-in: b9b746e50f user: stephan tags: fileedit-ajaxify | |
| 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: 42f2cd77d5 user: stephan tags: fileedit-ajaxify | |
| 06:09 | More style tweaks. check-in: 0209fa3277 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: 100c67fa50 user: stephan tags: fileedit-ajaxify | |
| 04:45 | Fixed input-with-label > label style for skins which set label display to block. check-in: 0002b7d714 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: 2c4e7c3785 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: 25f5f592d1 user: stephan tags: fileedit-ajaxify | |
| 03:32 | Moved fileedit-specific CSS to style.fileedit.css, as enabled by previous commit [d661c12cbade]. check-in: 95f1753ffb 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: d661c12cba 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: b5944d4ede 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: 3c795e877c 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: 8573443f32 user: stephan tags: fileedit-ajaxify | |
| 05:03 | Added widget to browse/select locally-edited files. Related cleanups and refactoring. check-in: aefceac57c 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: 6f2649b9b0 user: stephan tags: fileedit-ajaxify | |
| 19:25 | Simplified the previous commit considerably. check-in: 525bec99a3 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: a863592e08 user: stephan tags: fileedit-ajaxify | |
| 18:54 | Completed a half-written sentence in the fileedit docs. check-in: d701631ec7 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: d130f35687 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: 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 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: 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 | |