Commit graph

348 commits

Author SHA1 Message Date
b4c6ad38f8 Fixed and cleaned up admin section 2008-06-15 20:28:25 +00:00
3d8ad6984c * Renamed app.data.log to app.data.entries
* Renamed Root.commitLog() method to Root.commitEntries()
2008-06-15 17:42:49 +00:00
94a6a87c84 * Renamed app.data.referrers to app.data.log
* Renamed Root.commitReferrers() method to Root.commitLog()
2008-06-15 17:22:44 +00:00
065828abf5 Fixed implemenation of backup/restore feature for stories and comments 2008-06-12 15:33:11 +00:00
4c4e26e5e8 * Renamed Site.queueCallback() method to Site.callback()
* Added output of queued requests and referrers to Root.health_action()
 * Fixed POST arguments in Root.invokeCallbacks() method
2008-06-12 14:41:30 +00:00
b0b126a992 * Replaced all occurrences of "webHook" with "callback"
* Dropped obsolete Site.webHookCalled property
 * Renamed Site.hitchWebHook() method to Site.queueCallback()
 * Renamed default callback method Root.default_hook_action() to Api.callback_action()
 * Implemented callback queue in favor of immediate invocation
 * Added basic documentation about callbacks
2008-06-12 14:02:42 +00:00
9731dd4399 Granted permission to view API page for anyone 2008-06-12 09:40:39 +00:00
1138c189b4 Fixed escaped newlines 2008-05-15 15:20:32 +00:00
462b12f3a8 Replaced Root.referrers collection with call for persist() in Root.commitReferrers() 2008-05-15 15:15:08 +00:00
46b50db3d4 Added maxSize to Root.referrers property to prevent Helma from loading the whole collection every time it changes (pls. note the FIXME for an alternative solution) 2008-05-15 14:27:01 +00:00
b2cf3ece2d Fixed SQL statement in Root.purgeReferrers() 2008-05-15 13:59:53 +00:00
92c4089df7 * Fixed bug in Root.commitReferrers causing method to abort after first item without referrer
* Reverted to GET method in Site.referrers_macro() because otherwise the display of filtered spam won't work (Antville.Query cannot handle POST requests)
2008-05-15 13:47:58 +00:00
af8b05d1bd * Added HopObject.log() method currently caching referrers of story and site requests
* Modified LogEntry to fit into the new logging mechanics
 * Added commitRequests(), commitReferrers() and purgeReferrers() to Root prototype
 * Added referrers collection to Root
 * Re-added Site.spamfilter property for now
 * Refactored Site.referrers_macro() and Story.referrers_macro() (formerly backlinks_macro, but compatibility is granted)
 * Removed obsolete method Stories.flushRequests()
 * Reactivated referrers (thus, including backlinks) for privileged users for testing purposes
 * Added global nightly() method which is called from a new cronjob at 5 am
 * Added calls for referrer purge and commit methods in Root to scheduler
 * Added Story.count() method to increment the request counter; overwrites Helma's built-in HopObject method but it's anyway redundant with HopObject.size()
 * Added utility methods for database access in Sql.js
2008-05-15 12:58:26 +00:00
caefca42a6 Added title for status table 2008-05-14 14:02:28 +00:00
c4378138c7 * Added Root.skin
* Modified Skin.getPrototypeOptions() to only include root skins for the root site
 * Include Root#status skin from within $Root#health skin
2008-05-14 13:48:28 +00:00
3aa906b59a Added inclusion of custom Site#health skin from within $Root#health skin 2008-05-14 13:37:05 +00:00
e2d02fb5ab * Added further Number formatting to health display
* Added the site's locale to call of Number.format() in global formatNumber() method
2008-05-14 13:30:28 +00:00
eb66ac9ccf Added formatNumber() calls wherever useful 2008-05-14 13:16:12 +00:00
17a116d98f * Added fix to prevent exception on start in Root.health_action()
* Fixed NaN errors in Root.updateHealth()
2008-05-14 12:54:44 +00:00
7f5efd44fd Improved counting requests and errors of the last 5 min in Root.updateHealth() 2008-05-14 12:42:31 +00:00
096f7ef572 Added health viewer (aka status) to Root prototype 2008-05-14 12:25:15 +00:00
ae694946fa * Added status code and full path to Root.notfound_action()
* Added status code to Root.error_action()
 * Moved notfound.skin and error.skin as subskins into $Root.skin
 * Removed obsolete <script>-Element from Site#page skin
2008-05-14 11:11:56 +00:00
edf51f4519 Fixed site collection in Site.updates_xml_action() 2008-05-09 20:50:45 +00:00
567d681ae1 * Removed obsolete settings from app.properties (mostly XML-RPC related)
* Added Membership.toString() method for human-readable output
 * Assigned Membership.valueOf() method original toString() method
 * Fixed output of site list in userland
 * Added mountpoint for Api prototype in Root
 * Added trimming for Story text and title input
2008-05-05 00:27:43 +00:00
75ff272950 * Fixed and finalized Layout.reset_action() as well as Layout.remove() and Skin.remove() methods
* Completely render skin outline and drop down menu from application directory
 * Moved remaining skins into protected (ie. non-customizable) skin files
 * Removed obsolete skin files
 * Removed obsolete code
2008-04-27 14:35:35 +00:00
91def0b843 * For now only import layouts with exact the same version strings
* Fixed password reset feature: before any other action is taken a confirmation e-mail will be sent
2008-04-22 14:57:18 +00:00
239af7195b * Fixed list_macro (but still list rendering is really inconsistent throughout the whole application!)
* Fixed various b/w compatibility issues found in some sites
 * Fixed pager action in Images
 * Added confirmation dialog before resetting a layout
 * Added collection containing updated sites in reverse chronological order
 * Modified site listing (still work in progress)
 * Save site name as title if no title is entered
 * Removed some res.debug() calls
2008-04-21 20:46:29 +00:00
0d84e21291 Removed trailing semicolons after closing curly brackets for good (hopefully :) 2008-04-21 13:57:01 +00:00
124e6f4257 * Added protected skin files (currently prefixed with "$") that cannot be customized or overwritten by the user
* Removed obsolete skin files (ie. content moved to the protected skin file)
 * Moved contents of Messages.skins to their protected siblings
 * Prefixed notification skins (used in e-mails) with "notify_"
 * Fixed and simplified a whole bunch of issues in compatibility layer
2008-04-21 13:35:50 +00:00
a10cf6bcc9 * Relocated setting of a site's file to create() method in the Files prototype
* Refactored Poll and Polls prototypes (still not really happy)
 * Fixed sorting of sites in Root.updates_xml_action()
 * Allowed access to debug_action in Root
2008-04-15 21:16:21 +00:00
b1b97ce864 * Removed extra file name handling for images from compatibility layer (which is very nice!)
* Improved image data conversion in updater to only create thumbnail information if there actually is a thumbnail available
 * Fixed some minor issues introduced with the latest changes
2008-04-15 15:19:42 +00:00
fb299aacba * Fixed quotes in welcome text (Root.skin)
* Fixed RSS output and added extra ones for stories and comments
2008-04-14 16:46:39 +00:00
84492cc922 * Modified HopObject.link_macro() to automatically capitalize the default link text
* Added global i18n.js file containing markgettext() calls
 * Wrapped messages with gettext macros wherever found missing
 * Moved contents of remaining diff skin files to Skin.skin
 * Removed Layouts prototype
 * Removed obsolete files
2008-03-27 15:10:31 +00:00
12556fdc2d * Improved skin editor to finally go into the right direction
* Fixed layout import/export
 * Added Root.VERSION as version reference (currently used in layout import/export)
2008-03-26 12:33:54 +00:00
0ba8805d02 * Fixed skin names according to issue #16
* Fixed rendering of values stored in res.meta.values
 * Removed obsolete code (mostly disabled by comments already)
2008-01-19 17:36:33 +00:00
77255296dc * Replaced most remaining occurrences of getMessage() method calls with adequate gettext() method calls
* Removed obsolete Root.getSiteList() method
 * Moved searchview.skin as #result subskin into Story.skin
 * Fixed alignment of calendar month
2008-01-13 16:44:09 +00:00
9b7af5620a * Finally moved page.skin, stylesheet.skin and javascript.skin as subskins into Site.skin
* Disabled file tags for now
 * Renamed global renderPageNavigation() method to renderPager()
 * Added support for rendering the list of updated sites in global list_macro()
 * Fixed return point when cancelling a file edit action
 * Fixed nasty bug in deletion routine
 * Implemented sorting of values in Layout.values_macro()
 * Disabled layout title, description, origin and sharing for now
 * Renamed list_action() to sites_action() in Root prototype
 * Enabled filter of root site in default collection
 * Moved Root's list.skin as subskin in Root.skin
 * Added experimental Root.search_xml_action()
 * Renamed "unpublish" link to "close" in Story list
 * Reduced display of backlinks to last 24 hours
 * Removed obsolete skin files
2008-01-13 01:39:01 +00:00
da25a7bfdc * Re-enabled setting of tags in Story and Image prototype
* Added custom Layout.href() method to prevent the URL from being corrupted with the layout ID (which strangely happens from time to time)
 * Uncommented $tags collection in Root.properties to prevent conflict with collection in Site having the same name
 * Fixed output of tags list in Story.getFormValue() method
2008-01-09 21:34:21 +00:00
5bec96cd9f * Fixed a few issues in global list_macro() method
* Renamed tags collection to $tags in Root
 * Fixed a few links in page.skin and Site.skin of Site
 * Added CSS class for selected calendar day
 * Fixed skin name for rendering tag items
 * Fixed default skin name for rendering tag items
 * Removed obsolete Tag.properties file
2008-01-05 00:44:34 +00:00
3efbd63046 * Moved value_macro from Layout to Global.meta_macro (still thinking)
* Removed some lines of obsolete code
 * Reduced layout functionality to 1 (one!) layout per site as a first step to eliminate future obstacles of backwards compatibility
 * Fixed Images.main_action for layout images
 * Aggregated functionality of layout export in one method (Layout.export_action)
 * Extended functionality of layout import to every layout (ie. any comptabile layout can be imported to any site)
 * Fixed some minor bugs
2007-11-23 17:57:59 +00:00
8b41993ced * Fixed debug code to be present in HTML output only
* Removed obsolete debug code
 * Added content type to JavaScript / CSS output
 * Moved client-side JavaScript code from Root/javascript.skin to static directory
 * Removed hack in Site.main_action() to provide jQuery
 * Added debugging CSS classes for skins
 * Fixed b/w compatible logo_macro()
 * Removed option to set a layout value in compatibility module
 * Call global link_macro() when argument in HopObject.link_macro() contains a colon (probably not sufficient)
2007-11-02 18:13:01 +00:00
aa11e5db88 * Replaced occurrences of User.visisted with User.modified
* Set application's charset to UTF8
 * Added Layout.getFile() method returning the layout's directory as helma.File
 * Simplified Layout.getSkinPath() method (still work in progress)
 * Replaced occurrences of Site.language with Site.locale
 * Modified some wording
 * Added slight b/w compatibility fix in Story.macro_filter() method
 * Added timex factor in Story.getDelta() method to prevent counting  edits as site updates in-beteen 10 minutes
 * Moved site-related aspect hooks to Site prototype of compatibility module
 * Removed obsolete conversion code in compatibility module (has moved to updater app)
 * Re-included spacer_macro() method in compat. module
 * Temporarily overwrote HopObject.renderSkin() method to debug skin rendering process
 * Replaced individual legacy macros of Layout prototype by appropriate code in onUnhandledMacro() method (compat.)
 * Reflect legacy macros of Layout prototype in value() method of compat. module
 * Added and improved compatibility methods
 * Implemented support for renamed prototypes in updater app (still needs to be applied for database, too)
2007-10-21 16:49:16 +00:00
1c3c51a0e1 * Added User.popLocation() and User.popLocation() methods for temporarily storing a user's location, ie. to get back where the user came from when it was necessary to login
* Removed Root.searchSites() method (will be back later)
 * Added checks for empty searches in Site.search_action()
2007-10-17 16:25:01 +00:00
3d0fae4302 * Fixed bug in Admin.renderItem accidentally introduced in one of the last commits
* Slightly elaborated on what happens when a site or a user is blocked
 * Fixed some permission issues
 * Removed some more obsolete skin files
 * Re-introduced Root.search_action() method with minimal output
 * Switched search method from GET to POST
 * Added User.logout() method
 * Fixed User.require() method (check for TRUSTED constant was missing)
2007-10-16 21:36:41 +00:00
75644bde63 * Re-implemented autosave feature (ie. automatic backup / restore) for stories and comments
* Removed obsolete rescue methods
 * Moved contents of many individual skin files as subskins in the corresponding prototype skin file
 * Moved commentform_macro of Story prototype into compatibility module
2007-10-16 16:48:14 +00:00
ec700a655f * Removed obsolete getStaticDir() methods
* Implemented support for web hooks
 * Added default_hook_action() method to Root
 * Renamed webHookEnabled to webHookMode in Root prototype
 * Moved currently obsolete module code, macros and skins to compatibility module
 * Disabled notification of updates (probably forever)
2007-10-16 13:33:10 +00:00
504260650e * Reactivated mail queue as app.data.mails
* Reactivated request log as app.data.stories
 * Removed many obsolete methods
 * Fixed and added HTML tags for RSS feeds to page.skin
 * Added Stories.flushRequests() method
 * Renamed Story.incrementReadCounter() method to Story.logRequest()
 * Moved many methods to compatibility module
2007-10-12 19:05:33 +00:00
d639d6901c * Moved contents of Admin.skin files distributed among variout prototypes into Admin.skin of Admin prototype (the code has become uglier and must be ironed out but at least skins are where they belong)
* Removed obsolete navigation skins
 * Moved page navigation skins into Global.skin
 * Removed remaining obsolete RSS skin
 * Moved admin navigation into subskin and added it via overwritten skin_macro in Admin prototype
 * Removed obsolete sysmgrnavigation.skin from Root
 * Renamed style.skin to stylesheet.skin (this could be hazardous regarding b/w compatibility...?)
 * Modified order of featured collection in Stories prototype
 * Re-added DB column and property for last visit date of a user (now simply called "visited")
2007-10-12 16:39:26 +00:00
3412d805c7 * Removed obsolete skin files
Switched to Rome for RSS generation:
 * Added necessary JAR files (new subdirectory "lib")
 * Removed obsolete skin files
 * Added basic skins for XSL transformation
 * rss.xml of Root prototype is now equal to the one of Site; site updates have been moved to updates.xml
2007-10-12 10:20:46 +00:00
df9017ab77 * Fixed reference to parent site in Archive
* Fixed _children.filter in Archive
 * Added missing permission checks
 * Modified global defineConstants() method to return the getter function instead of automatically defining it with given argument
 * Added HopObject.macro_macro() method to display userland macro code
 * Removed colorpicker (will be replaced by third-party library)
 * Removed obsolete global constants and functions
 * Overhauled and tested global userland macros like story_macro(), image_macro() etc.
 * Implemented global list_macro() to replace any special listFoobar_macro() methods
 * Moved global autoLogin() method into User prototype
 * Overhauled global randomize_macro()
 * Renamed global evalURL() method to validateUrl() as well as evalEmail() to validateEmail()
 * Re-added accidentally removed subskins to Members.skin
 * Fixed some skin names which were changed recently
 * Remove delete_action() from Membership
 * Fixed foreign key of images collection in Membership
 * Removed global username_macro() and replaced it with appropriate membership macros
 * Moved contents of systemscripts.skin into javascript.skin in Root prototype
 * Removed main_css_action(), main_js_action() and sitecounter_macro() methods from Root
 * Added accessname to sites collection in Root
 * Upgraded jQuery to version 1.2.1
 * Replaced call for global history_macro() with corresponding list_macro() call
 * Renamed "public" collection of Stories prototype to "featured"
 * Moved a lot of styles from Root's style.skin to the one in Site
 * Added comments collection to Site
 * Moved embed.skin as subskin #embed into Site.skin
 * Fixed some minor issues in Story.js (removed check for creator before setting the story's mode)
 * Defined cookie names as constants of User which can be overriden via app.properties userCookie and hashCookie
 * Moved a lot of code into compatibility module
2007-10-11 23:03:17 +00:00