Eric Schrijvershouted
— 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 Schrijverbabbled
— Allow for slashes in url: /w/bla/foo-three.txt
Tuesday, 19th August 2014 - 11:17
Eric Schrijvercomitted
— 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 Schrijverdisclosed
— Fix print button
(it always pointed to index.html)
Tuesday, 19th August 2014 - 13:01
Eric Schrijvercried
— 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 Schrijverdiscovered
— 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 Schrijvergave away
— 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 Schrijvercried
— Normally < > characters are escaped, when embedding html we want them as they are!
Monday, 25th August 2014 - 17:00
Stéphanie Vilayphiouspoke
— readme instruction
Friday, 28th November 2014 - 17:55
Eric Schrijverrendered
— 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 Schrijveradmitted
— Line-wrapping in the editor
Monday, 24th November 2014 - 00:02
Eric Schrijversaid
— Update README.txt: Ethertoff’s ability to discern HTML from Markdown
Monday, 24th November 2014 - 00:07
Eric Schrijverbrought out
— Initialise with example content by running `node init.js` without arguments
Monday, 24th November 2014 - 01:31
Eric Schrijverdisclosed
— The CSS is editable by users
A favourite from the Django version
Monday, 24th November 2014 - 01:32
Eric Schrijverunwrapped
— Update README with instructions to load example content
Monday, 24th November 2014 - 01:34
Eric Schrijvertattled
— 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 Schrijverargued
— Be precise about dependencies
Tuesday, 25th November 2014 - 23:41
Eric Schrijverlet loose
— 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 Schrijverwhistled
— Error handling was broken (Ha!)
Wednesday, 26th November 2014 - 00:36
Eric Schrijverlet on
— Latest Derby version
Wednesday, 26th November 2014 - 01:35
Eric Schrijverwhistled
— Add more metadata (license, repository) to package.json
Wednesday, 26th November 2014 - 01:35
Eric Schrijvershouted
— 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 Vilayphioucomitted
— merge
Friday, 28th November 2014 - 17:57
Eric Schrijverconfessed
— Upload webfonts
Wednesday, 26th November 2014 - 02:36
Eric Schrijvertalked
— Add web fonts to CSS by defaults—we have a welcoming home-page now
Friday, 5th December 2014 - 00:15
Eric Schrijverdisclosed
— Renaming some variable names to be more transparent
Friday, 5th December 2014 - 00:31
Eric Schrijverblabbed out
— OOPS Forgot 2 rename these variables
Saturday, 6th December 2014 - 12:55
Eric Schrijvercomitted
— Start with putting useful info on the right side: path, mime-type
Sunday, 7th December 2014 - 00:25
Stéphanie Vilayphioucomitted
— Merge branch 'master' of git://git.constantvzw.org/osp.tools.ethertoff.js
Monday, 8th December 2014 - 22:20
Stéphanie Vilayphioubabbled out
— 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 loose
— 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 Vilayphioulet out
— Oops, wrong place. Undo the change and correct the <dl>/<ul> in the nav.
Monday, 8th December 2014 - 23:15
Eric Schrijverlet the cat out of the bag
— 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 Schrijverwhispered
— The latest commit needed an extra dependency: this package to generate unique ID’s
Saturday, 13th December 2014 - 16:02
Eric Schrijverinterpreted
— 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 Schrijverinterpreted
— 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 Schrijverdisclosed
— Add 404 for Read pages that don’t exist
Sunday, 14th December 2014 - 17:42
Eric Schrijverpublished
— Trying to make it a bit more readable
Sunday, 14th December 2014 - 18:22
Eric Schrijverrevealed
— Title tags!
Saturday, 21st February 2015 - 14:11
Eric Schrijversaid
— 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 Schrijverunwrapped
— Rename README.txt to README.md
Pain in the heart!
Friday, 6th February 2015 - 20:46
Eric Schrijverunwrapped
— Merge branch 'master' of github.com:osp/osp.tools.ethertoff.js
Monday, 23rd February 2015 - 15:50
Eric Schrijveremited
— The changes to d-codemirror were merged upstream
Tuesday, 24th February 2015 - 17:53