Permalink
Browse files

working out date formatting and documentation for wing.vue.js

  • Loading branch information...
rizen committed Mar 23, 2018
1 parent e58790e commit 724ce8e527f10c62458d5f1fe4622a777933707c
Showing with 892 additions and 41 deletions.
  1. +22 −0 angular2vue.txt
  2. +9 −8 lib/Wing/WingAngular.pod
  3. +745 −0 lib/Wing/WingVue.pod
  4. +29 −29 public/wing.angular.js
  5. +87 −1 public/wing.vue.js
  6. +0 −3 var/init/views/admin/users.tt
@@ -31,6 +31,28 @@ All of the new UI requirements have been loaded up into
wing_ui_css_requirements.tt and wing_ui_js_requirements.tt. Put these in your
headers and footers. You can find these in /data/Wing/var/init/views.
To use wing.vue.js you'll need to add a section to your nginx.conf that looks
like this:
location ~ /wing.vue.js {
root /data/Wing/public;
index wing.vue.js;
}
### DATE FILTERS ###
Vue doesn't have any built-in datetime filters. wing.vue.js has 2 new filters
that replace the old angular datetime filters from wing.angular.js. However,
you need to this library to use them:
* Moment - https://momentjs.com
* Add imezone support to Moment - https://momentjs.com/timezone/
The 'timeago' filter from wing.angular.js is now in wing.vue.js. The 'date'
filter from Angular, and the 'datetime' filter from wing.angular.js have been
replaced by the 'moment' filter in wing.vue.js.
### CONVERSION == REWRITE ###
@@ -2,6 +2,7 @@
A suite of AngularJS Wing utilities.
NOTE: This is deprecated. Use wing.vue.js instead. Documentation in L<WingVue>.
=head1 SYNOPSIS
@@ -116,7 +117,7 @@ The URI used to fetch an object from Wing.
A list of behavior changing options.
{
{
"_include_relationships" : 1
}
@@ -226,7 +227,7 @@ Updates the value of C<property> in the database with the value of C<property> i
=head3 partial_update(properties, options)
Updates this object and the database with C<properties>.
Updates this object and the database with C<properties>.
=over
@@ -310,7 +311,7 @@ A function to be called when this delete succeeds.
A function to be called if the delete fails.
=item skip_confirm
=item skip_confirm
If this is C<true> then the user will not be asked to confirm the delete.
@@ -355,7 +356,7 @@ Required if you want to retrieve a list of objects. The URI to fetch a list of o
An object containing the parameters used to filter the list of objects retrieved. This all comes from the Wing REST API (L<RestUsage>).
{
{
_sort_by : 'name',
query : 'blue'
_include_relationships : 1,
@@ -452,7 +453,7 @@ An object containing various search behavior modifications.
Put search params here that you don't want to be attached to all subsequent queries via the C<fetch_options>.
=item accumulate
=item accumulate
If set to true, the object list will not be reset before adding the newly fetched data.
@@ -481,7 +482,7 @@ A function to be executed when an a result set comes back on successful search.
=back
=head3 all(options)
=head3 all(options)
Similar to C<search()> except that it fetches the complete list of objects, not just one page of them.
@@ -505,7 +506,7 @@ A function to be executed once all objects have been fetched.
=item on_success
A function to be executed after each page of objects has been retrieved.
A function to be executed after each page of objects has been retrieved.
=back
@@ -569,7 +570,7 @@ This method will be executed if the options fetch is an error. Gets passed the r
=head3 create(properties, options)
Create a new object in the database and insert it into this list.
Create a new object in the database and insert it into this list.
=over
Oops, something went wrong.

0 comments on commit 724ce8e

Please sign in to comment.