rename qwaiter to mozo
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -197,7 +197,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="8.5248251"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
@@ -207,7 +207,7 @@
|
||||
x="12.23935"
|
||||
y="30.760637"
|
||||
style="font-size:5.810462px"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
x="12.23935"
|
||||
@@ -221,7 +221,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="26.997444"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
@@ -197,7 +197,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="8.5248251"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
@@ -207,7 +207,7 @@
|
||||
x="12.23935"
|
||||
y="30.760637"
|
||||
style="font-size:5.810462px"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
x="12.23935"
|
||||
@@ -221,7 +221,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="26.997444"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
|
Before Width: | Height: | Size: 492 KiB After Width: | Height: | Size: 492 KiB |
@@ -218,7 +218,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="8.5248251"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
@@ -235,7 +235,7 @@
|
||||
x="12.23935"
|
||||
y="30.760637"
|
||||
style="font-size:5.810462px"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
x="12.23935"
|
||||
@@ -256,7 +256,7 @@
|
||||
style="font-size:4.56339216px;fill:#634227;font-family:HelveticaRounded-Bold"
|
||||
x="26.997444"
|
||||
y="30.760637"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"><tspan
|
||||
style="font-family:Arial Rounded MT Bold;-inkscape-font-specification:Arial Rounded MT Bold"
|
||||
@@ -270,7 +270,7 @@
|
||||
|
||||
<g
|
||||
id="g3012"
|
||||
inkscape:export-filename="/Users/bterkuile/Qwaiter/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-filename="/Users/bterkuile/Mozo/Android app/Pictures/icon-high-res.png"
|
||||
inkscape:export-xdpi="766.79059"
|
||||
inkscape:export-ydpi="766.79059"
|
||||
transform="matrix(0.48420519,0,0,0.48420519,-3.826694,-4.5856657)"><path
|
||||
@@ -456,7 +456,7 @@
|
||||
<g
|
||||
id="g3013-3"
|
||||
transform="matrix(0.48200257,0,0,0.48200257,26.923785,-2.880595)"
|
||||
inkscape:export-filename="/Users/bterkuile/companytools/development/rails/screwed-qwaiter/app/assets/images/logo-big.png"
|
||||
inkscape:export-filename="/Users/bterkuile/companytools/development/rails/screwed-mozo/app/assets/images/logo-big.png"
|
||||
inkscape:export-xdpi="449.67291"
|
||||
inkscape:export-ydpi="449.67291"><text
|
||||
inkscape:export-ydpi="112.82128"
|
||||
@@ -485,7 +485,7 @@
|
||||
</g><g
|
||||
id="g3012-8"
|
||||
transform="matrix(0.53641805,0,0,0.53641805,25.074809,-5.264638)"
|
||||
inkscape:export-filename="/Users/bterkuile/companytools/development/rails/screwed-qwaiter/app/assets/images/logo-big.png"
|
||||
inkscape:export-filename="/Users/bterkuile/companytools/development/rails/screwed-mozo/app/assets/images/logo-big.png"
|
||||
inkscape:export-xdpi="449.67291"
|
||||
inkscape:export-ydpi="449.67291"><path
|
||||
inkscape:export-ydpi="112.82128"
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
@@ -30,7 +30,7 @@
|
||||
right: 10px
|
||||
top: 10px
|
||||
z-index: 20
|
||||
background-image: image-url("theme1/home_qwaiter_den_haag.png")
|
||||
background-image: image-url("theme1/home_mozo_den_haag.png")
|
||||
background-repeat: no-repeat
|
||||
background-position: center top
|
||||
#home-splash-footer
|
||||
|
||||
@@ -59,11 +59,11 @@ private
|
||||
#END CMTOOL
|
||||
|
||||
def broadcast_user(uid, event, data = {})
|
||||
Qwaiter.broadcast_user uid, event, data
|
||||
Mozo.broadcast_user uid, event, data
|
||||
end
|
||||
|
||||
def broadcast_supplier(sid, event, data = {})
|
||||
Qwaiter.broadcast_supplier sid, event, data
|
||||
Mozo.broadcast_supplier sid, event, data
|
||||
end
|
||||
|
||||
def set_locale
|
||||
|
||||
@@ -405,11 +405,11 @@ class List
|
||||
end
|
||||
|
||||
def supplier_orders_in_process_count
|
||||
Qwaiter::Counter.get(Supplier.orders_in_process_counter_key(supplier_id))
|
||||
Mozo::Counter.get(Supplier.orders_in_process_counter_key(supplier_id))
|
||||
end
|
||||
|
||||
def supplier_orders_placed_count
|
||||
Qwaiter::Counter.get(Supplier.orders_placed_counter_key(supplier_id))
|
||||
Mozo::Counter.get(Supplier.orders_placed_counter_key(supplier_id))
|
||||
end
|
||||
|
||||
def has_active_orders?
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Section
|
||||
include SimplyStored::Couch
|
||||
include Qwaiter::Distribution
|
||||
include Mozo::Distribution
|
||||
include ActiveModel::SerializerSupport
|
||||
|
||||
property :title
|
||||
|
||||
@@ -8,27 +8,27 @@ class Supplier
|
||||
end
|
||||
|
||||
def increment_orders_in_process_count!
|
||||
Qwaiter::Counter.incr orders_in_process_counter_key
|
||||
Mozo::Counter.incr orders_in_process_counter_key
|
||||
end
|
||||
|
||||
def increment_orders_placed_count!
|
||||
Qwaiter::Counter.incr orders_placed_counter_key
|
||||
Mozo::Counter.incr orders_placed_counter_key
|
||||
end
|
||||
|
||||
def decrement_orders_in_process_count!
|
||||
Qwaiter::Counter.decr orders_in_process_counter_key
|
||||
Mozo::Counter.decr orders_in_process_counter_key
|
||||
end
|
||||
|
||||
def decrement_orders_placed_count!
|
||||
Qwaiter::Counter.decr orders_placed_counter_key
|
||||
Mozo::Counter.decr orders_placed_counter_key
|
||||
end
|
||||
|
||||
def orders_in_process_count
|
||||
Qwaiter::Counter.get orders_in_process_counter_key
|
||||
Mozo::Counter.get orders_in_process_counter_key
|
||||
end
|
||||
|
||||
def orders_placed_count
|
||||
Qwaiter::Counter.get orders_placed_counter_key
|
||||
Mozo::Counter.get orders_placed_counter_key
|
||||
end
|
||||
|
||||
|
||||
@@ -56,9 +56,9 @@ class Supplier
|
||||
|
||||
def reset_counters!
|
||||
# Set all known counters to zero
|
||||
Qwaiter::Couchbase.flush_counters!
|
||||
Mozo::Couchbase.flush_counters!
|
||||
|
||||
Qwaiter::Counter.connection.flush if Qwaiter::Counter.connection.respond_to?(:flush)
|
||||
Mozo::Counter.connection.flush if Mozo::Counter.connection.respond_to?(:flush)
|
||||
|
||||
spec = Order.by_supplier_id_and_state(reduce: true, group_level: 2)
|
||||
reset_order_counters_with_spec spec
|
||||
@@ -81,8 +81,8 @@ class Supplier
|
||||
Array.wrap(results['rows']).each do |result|
|
||||
supplier_id, state = result['key']
|
||||
case state
|
||||
when 'placed' then Qwaiter::Counter.set orders_placed_counter_key(supplier_id), result['value']
|
||||
when 'active' then Qwaiter::Counter.set orders_in_process_counter_key(supplier_id), result['value']
|
||||
when 'placed' then Mozo::Counter.set orders_placed_counter_key(supplier_id), result['value']
|
||||
when 'active' then Mozo::Counter.set orders_in_process_counter_key(supplier_id), result['value']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Employees::EmployeeSerializer
|
||||
include Qwaiter::EmployeeBaseSerializer
|
||||
include Mozo::EmployeeBaseSerializer
|
||||
attributes :name, :email, :manager, :active, :color
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Employees::EmployeeShiftSerializer
|
||||
include Qwaiter::EmployeeBaseSerializer
|
||||
include Mozo::EmployeeBaseSerializer
|
||||
attributes :start_from, :end_on, :description, :full_day
|
||||
has_one :supplier, serializer: Employees::SupplierSerializer
|
||||
has_one :employee, serializer: Employees::EmployeeSerializer
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Employees::SupplierSerializer
|
||||
include Qwaiter::EmployeeBaseSerializer
|
||||
include Mozo::EmployeeBaseSerializer
|
||||
attributes :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::EmployeeSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :name, :email, :manager, :active, :color
|
||||
has_many :suppliers, serializer: Suppliers::SupplierSerializer
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::EmployeeShiftSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :start_from, :end_on, :description, :full_day
|
||||
has_one :supplier, serializer: Suppliers::SupplierSerializer
|
||||
has_one :employee, serializer: Suppliers::EmployeeSerializer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Suppliers::JoinRequestSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
|
||||
has_one :user, serializer: Suppliers::SupplierSerializer
|
||||
has_one :list, serializer: Suppliers::ListSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::ListSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price, :closed_at
|
||||
|
||||
has_many :orders, serializer: Suppliers::OrderSerializer
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::OrderSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :state #, :list_id, :section_id, :table_id #, :price
|
||||
|
||||
has_one :list, serializer: Suppliers::ListSerializer
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::PageSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :title, :body, :locale, :position
|
||||
attribute(:name) { object.name.to_s.sub /^suppliers-/, '' }
|
||||
def id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::ProductCategorySerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :name, :supplier_id, :active_on_sunday, :active_on_monday, :active_on_tuesday, :active_on_wednesday,
|
||||
:active_on_thursday, :active_on_friday, :active_on_saturday, :full_day, :start_from, :end_on,
|
||||
:position
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::ProductOrderSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :quantity, :price, :product_name, :product_variant
|
||||
has_one :order, serializer: Suppliers::OrderSerializer
|
||||
has_one :product, serializer: Suppliers::ProductSerializer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Suppliers::ProductSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
|
||||
attributes :name, :price, :description, :code, :position, :visible, :active
|
||||
attribute :image do
|
||||
if object.image.present?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::ProductVariantSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :name
|
||||
has_one :product, serializer: Suppliers::ProductSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::SectionAreaSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :title, :width, :height, :position_x, :position_y, :rounded, :color
|
||||
has_one :section, serializer: Suppliers::SectionSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::SectionElementSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :name, :box_width, :box_height, :dpm, :svg, :position_x, :position_y, :rotation
|
||||
has_one :section, serializer: Suppliers::SectionSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Suppliers::SectionSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
|
||||
attributes :title, :width, :height #, :path
|
||||
has_many :tables, serializer: Suppliers::TableSerializer
|
||||
has_many :section_areas, serializer: Suppliers::SectionAreaSerializer
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::SupplierSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :open, :name, :email, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count, :user_message
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Suppliers::SvgElementSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :name, :box_width, :box_height, :dpm, :svg
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Suppliers::TableSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :active#, :active_list_id
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Suppliers::UserSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
include Mozo::SupplierBaseSerializer
|
||||
attributes :email, :provider, :uid, :avatar, :number_of_lists_at_supplier
|
||||
attribute(:name) { object.supplier_name }
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::JoinRequestSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
has_one :user, serializer: Users::UserSerializer
|
||||
has_one :list, serializer: Users::ListSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::ListSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
# user ids for facebook pictures
|
||||
#self.root = :list
|
||||
attributes :state, :needs_help, :needs_payment, :user_requests_closing,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::OrderSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :state #, :list_id, :section_id, :table_id #, :price
|
||||
|
||||
has_many :product_orders, serializer: Users::ProductOrderSerializer
|
||||
|
||||
@@ -2,7 +2,8 @@ class Users::ProductCategorySerializer
|
||||
FEATURED_NAMES = %w[
|
||||
featured
|
||||
]
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :name, :supplier_id, :active_on_sunday, :active_on_monday, :active_on_tuesday, :active_on_wednesday,
|
||||
:active_on_thursday, :active_on_friday, :active_on_saturday, :full_day, :start_from, :end_on,
|
||||
:position
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::ProductOrderSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :quantity, :price, :product_name, :product_variant
|
||||
# belongs_to :product #DO NOT USE THIS, THIS IS NOT NEEDED, already included in /tables/:id/supplier
|
||||
has_one :order, serializer: Users::OrderSerializer
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
class Users::ProductSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
HOST = Rails.application.config.action_controller.asset_host.to_s
|
||||
|
||||
attributes :name, :price, :description, :code, :position, :visible, :active
|
||||
attribute :image do
|
||||
if object.image.present?
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::ProductVariantSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :name
|
||||
|
||||
has_one :product, serializer: Users::ProductSerializer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::SupplierSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :open, :name, :orders_placed_count, :orders_in_process_count, :user_message
|
||||
has_many :product_categories, serializer: Users::ProductCategorySerializer
|
||||
related_link_for :product_categories
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::TableSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :active #, :supplier_id #, :alist_id
|
||||
has_one :supplier, serializer: Users::SupplierSerializer
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Users::UserSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
include Mozo::UserBaseSerializer
|
||||
|
||||
attributes :email, :provider, :uid, :avatar
|
||||
attribute(:name){ object.friends_name }
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::ProductCategorySerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :name, :supplier_id, :active_on_sunday, :active_on_monday, :active_on_tuesday, :active_on_wednesday,
|
||||
:active_on_thursday, :active_on_friday, :active_on_saturday, :full_day, :start_from, :end_on,
|
||||
:position
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::ProductSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :name, :price, :description, :code, :position, :visible, :active
|
||||
attribute :image do
|
||||
if object.image.present?
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::ProductVariantSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :name
|
||||
has_one :product, serializer: Waiter::ProductSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::SectionSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :title, :width, :height
|
||||
has_many :tables, serializer: Waiter::TableSerializer
|
||||
has_one :supplier, serializer: Waiter::SupplierSerializer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::SupplierSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
||||
end
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Waiter::TableSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help, :active
|
||||
end
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
ul#cartoon
|
||||
- for i in 1..6
|
||||
li
|
||||
.cartoon-image= image_tag "cartoon/qwaiter-cartoon-#{i}.png"
|
||||
.cartoon-image= image_tag "cartoon/mozo-cartoon-#{i}.png"
|
||||
.cartoon-text= cartoon_text[I18n.locale][i]
|
||||
.clearing
|
||||
|
||||
@@ -12,18 +12,18 @@ html lang="en"
|
||||
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
|
||||
= stylesheet_link_tag "user/wood1/application", :media => "all"
|
||||
link href="/favicon.ico" rel="shortcut icon"
|
||||
- if ENV['QWAITER_MOBILE_EXPORT'] == 'yes'
|
||||
- if ENV['MOZO_MOBILE_EXPORT'] == 'yes'
|
||||
javascript:
|
||||
var QMobile, Qwaiter, Quser;
|
||||
var QMobile, Mozo, Quser;
|
||||
var data_host = 'http://data.mozo.bar';
|
||||
var event_host = '#{Qwaiter.event_host}';
|
||||
var event_host = '#{Mozo.event_host}';
|
||||
var $asset_paths = '##assets_path##';
|
||||
var Qstorage = localStorage;
|
||||
- else
|
||||
javascript:
|
||||
var QMobile, Qwaiter, Quser;
|
||||
var QMobile, Mozo, Quser;
|
||||
var data_host = 'http://data.mozo.bar';
|
||||
var event_host = '#{Qwaiter.event_host}';
|
||||
var event_host = '#{Mozo.event_host}';
|
||||
var $assets_path = '/assets/';
|
||||
var Qstorage = localStorage;
|
||||
#{user_dynamic_data_host}
|
||||
|
||||
@@ -9,9 +9,9 @@ html lang="en"
|
||||
= stylesheet_link_tag "user/foundation/application"
|
||||
- if Rails.env.user_app?
|
||||
javascript:
|
||||
var QMobile, Qwaiter, Quser;
|
||||
var QMobile, Mozo, Quser;
|
||||
var $data_host = 'http://data.mozo.bar';
|
||||
var $event_host = '#{Qwaiter.event_host}';
|
||||
var $event_host = '#{Mozo.event_host}';
|
||||
var $assets_path = './assets/';
|
||||
var $app_version = '#{app_version}';
|
||||
var $day_names = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
|
||||
@@ -23,9 +23,9 @@ html lang="en"
|
||||
var $log = function(params){$.post('http://log.mozo.bar/user_app', {log: params})};
|
||||
- elsif Rails.env.production?
|
||||
javascript:
|
||||
var QMobile, Qwaiter, Quser;
|
||||
var QMobile, Mozo, Quser;
|
||||
var $data_host = null;
|
||||
var $event_host = '#{Qwaiter.event_host}';
|
||||
var $event_host = '#{Mozo.event_host}';
|
||||
var $assets_path = '/assets/';
|
||||
var $app_version = '#{app_version}';
|
||||
var $day_names = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
|
||||
@@ -38,9 +38,9 @@ html lang="en"
|
||||
var $log = function(params){console.log('App log:'); console.log(params);console.log('=======================================')};
|
||||
- else
|
||||
javascript:
|
||||
var QMobile, Qwaiter, Quser;
|
||||
var QMobile, Mozo, Quser;
|
||||
var $data_host = null;
|
||||
var $event_host = '#{Qwaiter.event_host}';
|
||||
var $event_host = '#{Mozo.event_host}';
|
||||
var $assets_path = '/assets/';
|
||||
var $app_version = '#{app_version}';
|
||||
var $day_names = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
|
||||
|
||||
@@ -5,6 +5,6 @@ var supplier_object=<%= {id: current_supplier.id}.to_json.html_safe %>;
|
||||
var employee_object=<%=raw current_employee.object_attributes.to_json %>;
|
||||
var data_host = '';
|
||||
var $asset_path = '/assets/';
|
||||
var event_host = '<%= Qwaiter.event_host %>';
|
||||
var event_host = '<%= Mozo.event_host %>';
|
||||
//var datepicker_options = {dateFormat: 'yy-mm-dd', firstDay: <%= current_supplier.week_starts_on_monday? ? 1 : 0 %>};
|
||||
</script>
|
||||
|
||||