angular-mojolicious.git
13 years agofirst cut as slightly modified registration form
Dobrica Pavlinusic [Sun, 7 Nov 2010 20:16:10 +0000 (21:16 +0100)]
first cut as slightly modified registration form

Idea is to first ask for user data, and then offer to submit work or be
part of conference

13 years agoadded ng:validate="email"
Dobrica Pavlinusic [Sun, 7 Nov 2010 17:37:38 +0000 (18:37 +0100)]
added ng:validate="email"

13 years agomake current work bold in list using ng:show
Dobrica Pavlinusic [Sun, 7 Nov 2010 17:22:30 +0000 (18:22 +0100)]
make current work bold in list using ng:show

13 years agodata is now in CouchDB
Dobrica Pavlinusic [Sun, 7 Nov 2010 17:07:49 +0000 (18:07 +0100)]
data is now in CouchDB

13 years agodon't use _id in server anymore, just $id
Dobrica Pavlinusic [Sun, 7 Nov 2010 16:11:02 +0000 (17:11 +0100)]
don't use _id in server anymore, just $id

13 years agocleanup $id usage and leave _id for CouchDB
Dobrica Pavlinusic [Sun, 7 Nov 2010 16:00:58 +0000 (17:00 +0100)]
cleanup $id usage and leave _id for CouchDB

This also makes this implementation more similar to hosting service

13 years agoupdate upstream angular
Dobrica Pavlinusic [Sun, 7 Nov 2010 15:21:37 +0000 (16:21 +0100)]
update upstream angular

13 years agoremove in-memory data store and use CouchDB only
Dobrica Pavlinusic [Sun, 7 Nov 2010 15:20:06 +0000 (16:20 +0100)]
remove in-memory data store and use CouchDB only

13 years agoimplement _couchdb_get to get stored entries back
Dobrica Pavlinusic [Sun, 7 Nov 2010 14:45:12 +0000 (15:45 +0100)]
implement _couchdb_get to get stored entries back

This change allows (for the first time) server restart without data
loss since all records are stored in CouchDB

13 years agostore entities in couchdb
Dobrica Pavlinusic [Sun, 7 Nov 2010 12:55:16 +0000 (13:55 +0100)]
store entities in couchdb

13 years agofix first save
Dobrica Pavlinusic [Sun, 7 Nov 2010 08:58:56 +0000 (09:58 +0100)]
fix first save

we need to copy data into last_saved_work after we modify symposium

13 years agofix spelling
Dobrica Pavlinusic [Sat, 6 Nov 2010 17:02:37 +0000 (18:02 +0100)]
fix spelling

13 years agodocument working examples and limitations
Dobrica Pavlinusic [Sat, 6 Nov 2010 17:00:17 +0000 (18:00 +0100)]
document working examples and limitations

13 years agouse last_saved_work object to detect dirty form
Dobrica Pavlinusic [Sat, 6 Nov 2010 16:43:36 +0000 (17:43 +0100)]
use last_saved_work object to detect dirty form

this approach is used in AdvancedForm cookbook example

13 years agocleanup code and remove unsused table layout
Dobrica Pavlinusic [Fri, 5 Nov 2010 22:56:26 +0000 (23:56 +0100)]
cleanup code and remove unsused table layout

13 years agofinish translation
Dobrica Pavlinusic [Fri, 5 Nov 2010 22:43:17 +0000 (23:43 +0100)]
finish translation

13 years agotranslate example app back into english
Dobrica Pavlinusic [Fri, 5 Nov 2010 22:40:23 +0000 (23:40 +0100)]
translate example app back into english

13 years agoMerge branch 'symposium-resource'
Dobrica Pavlinusic [Fri, 5 Nov 2010 16:55:46 +0000 (17:55 +0100)]
Merge branch 'symposium-resource'

This enables saving of symposium with all works as separate resource.

However, this introduce additional REST requirest on each save.
Alternative implementation might be server side or implemented as
quiery if overhad is prohibitive (single symposium many many works
will create huge request since all works data is duplicated in symposium)

13 years agofirst work doesn't have symposium._id, but we used same _id symposium-resource
Dobrica Pavlinusic [Fri, 5 Nov 2010 16:54:32 +0000 (17:54 +0100)]
first work doesn't have symposium._id, but we used same _id

13 years agoreload symposium using _id stored in work
Dobrica Pavlinusic [Fri, 5 Nov 2010 16:16:40 +0000 (17:16 +0100)]
reload symposium using _id stored in work

13 years agofix record reload from hashPath
Dobrica Pavlinusic [Fri, 5 Nov 2010 16:14:37 +0000 (17:14 +0100)]
fix record reload from hashPath

It seems it's still a bit tricky on my brain :-) I don't need to reset
it manually because reset is called on every page load, and removes
work._id

13 years agoexperiment to serialize whole symposium as resource
Dobrica Pavlinusic [Fri, 5 Nov 2010 00:14:38 +0000 (01:14 +0100)]
experiment to serialize whole symposium as resource

This work well, but doesn't update until save (which is nice indicator
that you didn't press save button), but currently doesn't have code
(or data in work) to correctly load full symposium data

13 years agostore changes inside work
Dobrica Pavlinusic [Thu, 4 Nov 2010 17:31:18 +0000 (18:31 +0100)]
store changes inside work

so it persists on server

13 years agocount changes in for using ng:eval
Dobrica Pavlinusic [Thu, 4 Nov 2010 17:22:15 +0000 (18:22 +0100)]
count changes in for using ng:eval

and use that to show/hide save button and provide useful title

13 years agocount number of works within symposium
Dobrica Pavlinusic [Thu, 4 Nov 2010 15:40:45 +0000 (16:40 +0100)]
count number of works within symposium

13 years agoupdate subprojects
Dobrica Pavlinusic [Thu, 4 Nov 2010 15:22:59 +0000 (16:22 +0100)]
update subprojects

13 years agoprefill all fields with invalid empty values
Dobrica Pavlinusic [Wed, 3 Nov 2010 22:26:59 +0000 (23:26 +0100)]
prefill all fields with invalid empty values

this will reset form correctly

13 years agohide also reset button
Dobrica Pavlinusic [Wed, 3 Nov 2010 22:22:19 +0000 (23:22 +0100)]
hide also reset button

13 years agomock console.debug
Dobrica Pavlinusic [Wed, 3 Nov 2010 22:19:15 +0000 (23:19 +0100)]
mock console.debug

13 years agoshow number of required fields instead of save button
Dobrica Pavlinusic [Wed, 3 Nov 2010 22:15:25 +0000 (23:15 +0100)]
show number of required fields instead of save button

13 years agoshow reset button only for saved work
Dobrica Pavlinusic [Tue, 2 Nov 2010 22:48:47 +0000 (23:48 +0100)]
show reset button only for saved work

13 years agometa charset utf-8
Dobrica Pavlinusic [Tue, 2 Nov 2010 22:24:33 +0000 (23:24 +0100)]
meta charset utf-8

13 years agochanged design back into single controller page
Dobrica Pavlinusic [Tue, 2 Nov 2010 22:06:59 +0000 (23:06 +0100)]
changed design back into single controller page

13 years agoadd Symposium
Dobrica Pavlinusic [Tue, 2 Nov 2010 18:43:47 +0000 (19:43 +0100)]
add Symposium

13 years agoadded Symposium selection to Work submit page
Dobrica Pavlinusic [Tue, 2 Nov 2010 18:41:18 +0000 (19:41 +0100)]
added Symposium selection to Work submit page

13 years agomove controllers and add Symposium entity
Dobrica Pavlinusic [Tue, 2 Nov 2010 17:58:20 +0000 (18:58 +0100)]
move controllers and add Symposium entity

13 years agoextract Work controller
Dobrica Pavlinusic [Tue, 2 Nov 2010 17:35:57 +0000 (18:35 +0100)]
extract Work controller

13 years agoinclude Mojolicious as submodule
Dobrica Pavlinusic [Tue, 2 Nov 2010 16:47:29 +0000 (17:47 +0100)]
include Mojolicious as submodule

13 years agohashPath now tracks work._id
Dobrica Pavlinusic [Tue, 2 Nov 2010 16:11:24 +0000 (17:11 +0100)]
hashPath now tracks work._id

13 years agogenereate integer uuid
Dobrica Pavlinusic [Tue, 2 Nov 2010 15:43:41 +0000 (16:43 +0100)]
genereate integer uuid

13 years agocode cleanup, added reset
Dobrica Pavlinusic [Mon, 1 Nov 2010 16:42:01 +0000 (17:42 +0100)]
code cleanup, added reset

13 years agorestore original table template
Dobrica Pavlinusic [Mon, 1 Nov 2010 15:35:24 +0000 (16:35 +0100)]
restore original table template

13 years agofix various bugs
Dobrica Pavlinusic [Mon, 1 Nov 2010 15:15:20 +0000 (16:15 +0100)]
fix various bugs

This makes conference submission Work page functional.

13 years agocorrect and cleanup in-memory schema
Dobrica Pavlinusic [Mon, 1 Nov 2010 13:24:53 +0000 (14:24 +0100)]
correct and cleanup in-memory schema

13 years agoimplement POST which $resource uses
Dobrica Pavlinusic [Mon, 1 Nov 2010 13:14:06 +0000 (14:14 +0100)]
implement POST which $resource uses

13 years agoAddresBook example modified to use $resource
Dobrica Pavlinusic [Mon, 1 Nov 2010 13:13:37 +0000 (14:13 +0100)]
AddresBook example modified to use $resource

13 years agoanother angular.service $inject $creation fix
Dobrica Pavlinusic [Mon, 1 Nov 2010 10:05:49 +0000 (11:05 +0100)]
another angular.service $inject $creation fix

13 years agodata for AddressBook
Dobrica Pavlinusic [Mon, 1 Nov 2010 10:03:58 +0000 (11:03 +0100)]
data for AddressBook

13 years agofix angular.service $inject with $creation
Dobrica Pavlinusic [Mon, 1 Nov 2010 10:00:57 +0000 (11:00 +0100)]
fix angular.service $inject with $creation

based on help from mailing list:
https://groups.google.com/group/angular/browse_thread/thread/360af0c6158db733

13 years agoexample for $resource using 0.9.1 API
Dobrica Pavlinusic [Sun, 31 Oct 2010 19:56:46 +0000 (20:56 +0100)]
example for $resource using 0.9.1 API

13 years agooptionally build angular and use it if available
Dobrica Pavlinusic [Sun, 31 Oct 2010 15:00:04 +0000 (16:00 +0100)]
optionally build angular and use it if available

13 years agoimprove blurb
Dobrica Pavlinusic [Sun, 31 Oct 2010 14:44:53 +0000 (15:44 +0100)]
improve blurb

13 years agostash ANGULAR_JS
Dobrica Pavlinusic [Sun, 31 Oct 2010 14:44:06 +0000 (15:44 +0100)]
stash ANGULAR_JS

13 years agoinclude angular submodule
Dobrica Pavlinusic [Sun, 31 Oct 2010 14:38:24 +0000 (15:38 +0100)]
include angular submodule

13 years agoadded links to upstream projects
Dobrica Pavlinusic [Sun, 31 Oct 2010 14:30:19 +0000 (15:30 +0100)]
added links to upstream projects

13 years agoJSONP request to server example
Dobrica Pavlinusic [Sun, 31 Oct 2010 13:36:31 +0000 (14:36 +0100)]
JSONP request to server example

13 years agosupport JSONP callback
Dobrica Pavlinusic [Sun, 31 Oct 2010 13:27:52 +0000 (14:27 +0100)]
support JSONP callback

13 years agotry to implement post and put
Dobrica Pavlinusic [Sun, 31 Oct 2010 13:11:52 +0000 (14:11 +0100)]
try to implement post and put

13 years agoinclude sample data for cookbook
Dobrica Pavlinusic [Sun, 31 Oct 2010 13:08:03 +0000 (14:08 +0100)]
include sample data for cookbook

13 years agohttp://angularjs.org/Cookbook:Resources
Dobrica Pavlinusic [Sun, 31 Oct 2010 12:16:48 +0000 (13:16 +0100)]
http://angularjs.org/Cookbook:Resources

13 years agohttp://angularjs.org/Cookbook:DeepLinking
Dobrica Pavlinusic [Sun, 31 Oct 2010 12:03:14 +0000 (13:03 +0100)]
http://angularjs.org/Cookbook:DeepLinking

This example works from it's subdirectory when server is started with:

ANGULAR_JS=http://angularjs.org/ng/js/angular-debug.js ./angular-server.pl daemon --reload

to use upstream angular, but not with current version from git (but it
works from root of server)

13 years agooverride ANGULAR_JS with enviroment variable
Dobrica Pavlinusic [Sun, 31 Oct 2010 12:02:40 +0000 (13:02 +0100)]
override ANGULAR_JS with enviroment variable

13 years agohttp://angularjs.org/Cookbook:MVC
Dobrica Pavlinusic [Sun, 31 Oct 2010 11:06:56 +0000 (12:06 +0100)]
http://angularjs.org/Cookbook:MVC

13 years agohttp://angularjs.org/Cookbook:AdvancedForm
Dobrica Pavlinusic [Sun, 31 Oct 2010 11:04:52 +0000 (12:04 +0100)]
http://angularjs.org/Cookbook:AdvancedForm

13 years agomove angular html page to layout
Dobrica Pavlinusic [Sun, 31 Oct 2010 11:03:08 +0000 (12:03 +0100)]
move angular html page to layout

13 years agomove Cookbook to templates
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:52:51 +0000 (11:52 +0100)]
move Cookbook to templates

13 years agomake Cookbook index page dynamic
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:51:39 +0000 (11:51 +0100)]
make Cookbook index page dynamic

13 years agoconvert cookbook index page to template
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:38:34 +0000 (11:38 +0100)]
convert cookbook index page to template

13 years agohttp://angularjs.org/Cookbook:BasicForm
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:31:39 +0000 (11:31 +0100)]
http://angularjs.org/Cookbook:BasicForm

13 years agoadded index page for Cookbook examples
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:29:29 +0000 (11:29 +0100)]
added index page for Cookbook examples

13 years agorename file to wiki page name
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:21:44 +0000 (11:21 +0100)]
rename file to wiki page name

13 years agorename directory to be same case as wiki
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:20:57 +0000 (11:20 +0100)]
rename directory to be same case as wiki

13 years agohttp://angularjs.org/Cookbook:HelloWorld
Dobrica Pavlinusic [Sun, 31 Oct 2010 10:20:16 +0000 (11:20 +0100)]
http://angularjs.org/Cookbook:HelloWorld

13 years agofix slash between database and entity
Dobrica Pavlinusic [Sat, 30 Oct 2010 23:00:17 +0000 (01:00 +0200)]
fix slash between database and entity

13 years agoinvalidate $id2nr on replication
Dobrica Pavlinusic [Sat, 30 Oct 2010 15:01:41 +0000 (17:01 +0200)]
invalidate $id2nr on replication

13 years ago/data/:database/:entity/:id
Dobrica Pavlinusic [Sat, 30 Oct 2010 14:17:57 +0000 (16:17 +0200)]
/data/:database/:entity/:id

13 years ago/data/:database/:entity
Dobrica Pavlinusic [Sat, 30 Oct 2010 14:03:55 +0000 (16:03 +0200)]
/data/:database/:entity

13 years agodump entries during replication on STDERR
Dobrica Pavlinusic [Sat, 30 Oct 2010 14:02:21 +0000 (16:02 +0200)]
dump entries during replication on STDERR

13 years ago/_data dumps all in-memory data for debugging
Dobrica Pavlinusic [Sat, 30 Oct 2010 14:01:31 +0000 (16:01 +0200)]
/_data dumps all in-memory data for debugging

13 years ago/_repicate cleanup url for entries
Dobrica Pavlinusic [Sat, 30 Oct 2010 14:00:59 +0000 (16:00 +0200)]
/_repicate cleanup url for entries

13 years agofixed list_databases
Dobrica Pavlinusic [Sat, 30 Oct 2010 13:37:35 +0000 (15:37 +0200)]
fixed list_databases

13 years agofirst draft of <angular/> REST server
Dobrica Pavlinusic [Sat, 30 Oct 2010 13:29:12 +0000 (15:29 +0200)]
first draft of <angular/> REST server

It has somewhat working read replication and stores data in memory