Eric Schrijverdisclosed
— Allow dots in id’s by working around derby’s path notation
Before, passing a slug like: `foo.html` produced errors such as:
Error: Cannot subscribe to a path within a document: documents.foo.html
Thanks to Artur Zayats to help find a workaround:
https://groups.google.com/forum/#!topic/derbyjs/2eyBuDYCBw4
Tuesday, 19th August 2014 - 11:09
Eric Schrijvertalked
— Read in a folder from the file system and store its contents in ethertoff’s share.js/livedb/mongo-db storage
Usage: node init.js path_to_folder_to_use_as_wiki_content
Binary files are not actually stored:
{
"_id" : "geo.pyc",
"absPath" : "/Users/e/Documents/Titanium_Studio_Workspace/raduga-server/geo.pyc",
"path" : "geo.pyc",
"mime" : "application/octet-stream",
"binary" : true
}
Text-based files get the data stored in the mongo database directly:
{
"_id" : "alerts.py",
"absPath" : "/Users/e/Documents/Titanium_Studio_Workspace/raduga-server/alerts.py",
"path" : "alerts.py",
"mime" : "text/x-python",
"binary" : false,
"data" : "# -*- coding: utf-8 -*-\n\nimport json\nimport sys\nimport urllib2\n\nimport pymongo\n\nfrom utils import logger\nfrom settings import *\nfrom users import synch_users, delayed_synch_users\n\nclient = pymongo.MongoClient()\n(…)"
}
Tuesday, 19th August 2014 - 11:09
Eric Schrijvercomplained
— Allow for slashes in url: /w/bla/foo-three.txt
Tuesday, 19th August 2014 - 11:17
Eric Schrijverrendered
— The wiki has a conception of mime-type
Based on the extension of the wiki page, it can present its content in different ways.
For now, markdown documents (*.md) get processed through markdown,
other plain text formats are shown as-is within a <pre>block</pre>
Tuesday, 19th August 2014 - 11:17
Eric Schrijverconfessed
— Fix print button
(it always pointed to index.html)
Tuesday, 19th August 2014 - 13:01
Eric Schrijverpeached
— With /raw/ route, server can provide the raw resource in its most recent form
In the case of a text-based resource this is from the database, otherwise it is from disk.
Friday, 22nd August 2014 - 16:26
Eric Schrijvergave away
— Display preview or download link for binary files
For now there is just a preview for image files. In the future these previews could be handled
by tailored derby components, and a dedicated function that chooses the right component
based on mime type. In case no preview is found, a download link is presented.
BTW, in the derby.js template I couldn’t use a regex à la .match(/image\/(jpeg|gif|png)/i)
Friday, 22nd August 2014 - 16:51
Eric Schrijverspoke
— Try to find a document that can function as the home-page: index.something, readme.something
n.b. Derby doesn’t like regexes in the query, we should use the $regex operator
Monday, 25th August 2014 - 16:51
Eric Schrijverstated
— Normally < > characters are escaped, when embedding html we want them as they are!
Monday, 25th August 2014 - 17:00
Stéphanie Vilayphioupeached
— readme instruction
Friday, 28th November 2014 - 17:55
Eric Schrijverclaimed
— On the homepage, the slug wasn’t set, so you couldn’t reach the `write` or `raw` buttons
Sunday, 23rd November 2014 - 22:11
Eric Schrijveremited
— Line-wrapping in the editor
Monday, 24th November 2014 - 00:02
Eric Schrijverwhistled
— Update README.txt: Ethertoff’s ability to discern HTML from Markdown
Monday, 24th November 2014 - 00:07
Eric Schrijverpeached
— Initialise with example content by running `node init.js` without arguments
Monday, 24th November 2014 - 01:31
Eric Schrijverargued
— The CSS is editable by users
A favourite from the Django version
Monday, 24th November 2014 - 01:32
Eric Schrijverblabbed out
— Update README with instructions to load example content
Monday, 24th November 2014 - 01:34
Eric Schrijverdeclared
— Fix error when starting up with an empty DB
( accessing the slug of the 1st document when the document didn’t exist )
Tuesday, 25th November 2014 - 23:41
Eric Schrijverbabbled
— Be precise about dependencies
Tuesday, 25th November 2014 - 23:41
Eric Schrijveradmitted
— Trying out hosting through AppFog
Based on the CloudFoundry platform
Seems to work OK, although they are missing web sockets
Tuesday, 25th November 2014 - 23:41
Eric Schrijverbabbled out
— Error handling was broken (Ha!)
Wednesday, 26th November 2014 - 00:36
Eric Schrijverdeclared
— Latest Derby version
Wednesday, 26th November 2014 - 01:35
Eric Schrijverblabbed out
— Add more metadata (license, repository) to package.json
Wednesday, 26th November 2014 - 01:35
Eric Schrijververbalised
— Accomodate another cloud hosting service, Heroku
Part of this is to make sure the public/derby folder
gets created through GIT, because on Heroku derby.js seems to
have trouble creating it.
Wednesday, 26th November 2014 - 02:23
Stéphanie Vilayphiourevealed
— merge
Friday, 28th November 2014 - 17:57
Eric Schrijvercomplained
— Upload webfonts
Wednesday, 26th November 2014 - 02:36
Eric Schrijverwhispered
— Add web fonts to CSS by defaults—we have a welcoming home-page now
Friday, 5th December 2014 - 00:15
Eric Schrijveradmitted
— Renaming some variable names to be more transparent
Friday, 5th December 2014 - 00:31
Eric Schrijverpeached
— OOPS Forgot 2 rename these variables
Saturday, 6th December 2014 - 12:55
Eric Schrijveradmitted
— Start with putting useful info on the right side: path, mime-type
Sunday, 7th December 2014 - 00:25
Stéphanie Vilayphiousaid
— Merge branch 'master' of git://git.constantvzw.org/osp.tools.ethertoff.js
Monday, 8th December 2014 - 22:20
Stéphanie Vilayphiourevealed
— Changed the mimetype of the style.css file to stylesheet/less.
Added a link to the CDN less compiler.
I don't understand how to precompile the less into css directly with
node.js...
Monday, 8th December 2014 - 22:45
Stéphanie Vilayphioutalked
— Link to Meyer's reset.css. Couldn't manage to link to the one hosted on
the Git repo.
Monday, 8th December 2014 - 22:57
Stéphanie Vilayphioulet out
— List of pads: changed the <dl> into <ul> as the mimetype was not
displayed and was outputting only a series of <dd>.
Monday, 8th December 2014 - 23:12
Stéphanie Vilayphioublabbed out
— Oops, wrong place. Undo the change and correct the <dl>/<ul> in the nav.
Monday, 8th December 2014 - 23:15
Eric Schrijverdeclared
— Do not use file-paths as id values in the database
Derby likes to use dot notation for many things, and file paths have dots—
hence we need to switch to alphanumeric id without dots.
When loading files from disk, we use the same function (from the uuid module)
as is used by derby.js itself, to generate unique id’s.
In all places where the app needs to search by file path, we now rely on the
path attribute instead of the _id attribute
Tuesday, 9th December 2014 - 01:27
Eric Schrijvertold
— The latest commit needed an extra dependency: this package to generate unique ID’s
Saturday, 13th December 2014 - 16:02
Eric Schrijversaid
— Automatically switch CodeMirror modes depending on the Document’s mime type
Syntax highlighting for all the files it understands!
Uses an updated version of d-codemirror (pull request made)
Saturday, 13th December 2014 - 16:10
Eric Schrijverlet loose
— Make CSS reset work
Following up on @latsami in cac03ff77a25bcb4011d4dc28793663e506e77c6
Apparently one needs to give the style the same name as the view
Sunday, 14th December 2014 - 13:47
Eric Schrijvergave away
— Add 404 for Read pages that don’t exist
Sunday, 14th December 2014 - 17:42
Eric Schrijverlet on
— Trying to make it a bit more readable
Sunday, 14th December 2014 - 18:22
Eric Schrijvertweeted
— Title tags!
Saturday, 21st February 2015 - 14:11
Eric Schrijveruttered
— Use <base> tag to make relative file paths work both in read and in raw mode
like <img src="final.gif"/>
Monday, 23rd February 2015 - 00:27
Eric Schrijverrevealed
— Rename README.txt to README.md
Pain in the heart!
Friday, 6th February 2015 - 20:46
Eric Schrijvercried
— Merge branch 'master' of github.com:osp/osp.tools.ethertoff.js
Monday, 23rd February 2015 - 15:50
Eric Schrijververbalized
— The changes to d-codemirror were merged upstream
Tuesday, 24th February 2015 - 17:53