gaf-mobile
Version:
GAF mobile Web site
94 lines (90 loc) • 1.8 kB
JavaScript
'use strict';
/* exported ProjectMock */
function ProjectMock () {
return {
currency: {
code: 'USD',
name: null,
country: null,
sign: '$',
exchange_rate: null,
id: 1
},
bidperiod: 5,
featured: false,
description: 'I would like someone to design: 1. An E-box 2.',
preview_description: 'I would like someone to design: 1. An E-box 2.',
id: 1898983,
title: 'E-box design cover for $20-$50 budget.',
submitdate: 1279181558,
owner_id: 1650586,
hourly_project_info: null,
status: 'closed',
deleted: false,
seo_url: 'Photoshop/box-design-cover-for-budget',
time_submitted: 1279181558,
jobs: [1, 2],
bid_stats: {
bid_count: 1
},
location: {
latitude: 1,
longitude: 2
}
};
}
/* exported FixedHiremeMock */
function FixedHiremeMock() {
return {
title: 'title',
description: 'description',
type: 'fixed',
hireme: true,
hireme_initial_bid: {
bidder_id: 123,
amount: 100,
period: 1
},
budget: {
minimum: 100
},
currency: {
code: 'USD',
sign: '$',
exchange_rate: 2,
id: 1
},
jobs: [1, 2, 3, 4, 5]
};
}
/* exported HourlyHiremeMock */
function HourlyHiremeMock() {
return {
title: 'title',
description: 'description',
type: 'hourly',
hireme: true,
hireme_initial_bid: {
bidder_id: 123,
amount: 100,
period: undefined
},
budget: {
minimum: 100
},
currency: {
code: 'USD',
sign: '$',
exchange_rate: 2,
id: 1
},
jobs: [1, 2, 3, 4, 5],
hourly_project_info: {
duration_enum: 'duration_enum',
commitment: {
hours: 20,
interval: 'week'
}
}
};
}