8000 version 17.06.01 by yarl · Pull Request #12 · hatnote/montage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

version 17.06.01 #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ config*yaml
*.log

# Compiled front-end
montage/static/index.html
montage/static/assets
montage/static/dist

montage/static/

# emacs
*~
Expand Down
3 changes: 2 additions & 1 deletion client/app/components/campaign/campaign-admin.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<md-icon>cancel</md-icon>
</md-button>
<small class="md-headline muted">
{{$ctrl.campaign.open_date | date: 'd MMM yyyy'}} – {{$ctrl.campaign.close_date | date: 'd MMM yyyy'}}
{{$ctrl.campaign.open_date | date: 'd MMM yyyy'}} <small>{{$ctrl.campaign.open_date | date: 'HH:mm'}} UTC</small> –
{{$ctrl.campaign.close_date | date: 'd MMM yyyy'}} <small>{{$ctrl.campaign.close_date | date: 'HH:mm'}} UTC</small>
</small>
<span flex></span>
<md-button class="md-icon-button" aria-label="Edit"
Expand Down
10 changes: 7 additions & 3 deletions client/app/components/campaign/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ const CampaignComponent = {

let campaign_ = angular.extend(angular.copy(campaign), {
coordinators: campaign.coordinators.map((element) => element.name),
open_date: $filter('date')(campaign.open_date, 'yyyy-MM-ddTHH:mm:ss', 'UTC'),
close_date: $filter('date')(campaign.close_date, 'yyyy-MM-ddTHH:mm:ss', 'UTC')
open_date: $filter('date')(campaign.open_date, 'yyyy-MM-ddTHH:mm:ss'),
close_date: $filter('date')(campaign.close_date, 'yyyy-MM-ddTHH:mm:ss')
});

userService.admin.editCampaign(campaign_.id, campaign_).then((response) => {
Expand All @@ -370,8 +370,12 @@ const CampaignComponent = {
loading.window = true;
round.new_jurors = round.jurors.map((user) => user.name);

const round_ = angular.extend({}, round, {
deadline_date: $filter('date')(round.deadline_date, 'yyyy-MM-ddTHH:mm:ss')
})

$q.all({
round: userService.admin.editRound(round.id, round)
round: userService.admin.editRound(round_.id, round_)
}).then((response) => {
if (response.round.error) {
loading.window = false;
Expand Down
4 changes: 2 additions & 2 deletions client/app/components/campaign/edit-campaign.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2 class="md-title no-margin">Edit campaign</h2>
ng-model="campaign.open_date">
</md-input-container>
</div>
<p>Open Date and Time</p>
<p>Open Date and Time (UTC)</p>
</div>
</md-list-item>
<md-list-item class="md-2-line">
Expand All @@ -39,7 +39,7 @@ <h2 class="md-title no-margin">Edit campaign</h2>
ng-model="campaign.close_date">
</md-input-container>
</div>
<p>Close Date and Time</p>
<p>Close Date and Time (UTC)</p>
</div>
</md-list-item>
</md-list>
Expand Down
13 changes: 9 additions & 4 deletions client/app/components/campaign/edit-round.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ <h3>{{voteMethods[round.vote_method].label}}</h3>
<md-list-item class="md-2-line">
<md-icon>date_range</md-icon>
<div class="md-list-item-text">
<md-datepicker ng-model="round.deadline_date"
md-min-date="today"
md-hide-icons="calendar"></md-datepicker>
<p>Deadline Date</p>
<div layout="row" layout-align="space-between start">
<md-datepicker ng-model="round.deadline_date"
md-hide-icons="calendar"></md-datepicker>
<md-input-container class="dialog__input--flat" flex>
<input name="hour" type="time"
ng-model="round.deadline_date">
</md-input-container>
</div>
8000 <p>Close Date and Time (UTC)</p>
</div>
</md-list-item>
</md-list>
Expand Down
8 changes: 4 additions & 4 deletions client/app/components/dashboard/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ const DashboardComponent = {
campaign: {
name: '',
coordinators: [],
open_date: new Date(Date.UTC(2016, 8, 1)),
close_date: new Date(Date.UTC(2016, 8, 30))
open_date: new Date(Date.UTC(2017, 8, 1)),
close_date: new Date(Date.UTC(2017, 8, 30))
},
today: new Date(),
create: (campaign_, loading) => {
let campaign = angular.copy(campaign_);
campaign = angular.extend(campaign, {
coordinators: campaign.coordinators.map((element) => element.name),
open_date: $filter('date')(campaign.open_date, 'yyyy-MM-ddTHH:mm:ss', 'UTC'),
close_date: $filter('date')(campaign.close_date, 'yyyy-MM-ddTHH:mm:ss', 'UTC')
open_date: $filter('date')(campaign.open_date, 'yyyy-MM-ddTHH:mm:ss'),
close_date: $filter('date')(campaign.close_date, 'yyyy-MM-ddTHH:mm:ss')
});

loading.window = true;
Expand Down
39 changes: 11 additions & 28 deletions client/app/components/dashboard/new-campaign.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,8 @@ <h2 class="md-title no-margin">Add new campaign</h2>
ng-model="campaign.open_date">
</md-input-container>
</div>
<p>Open Date and Time</p>
<p>Open Date and Time (UTC)</p>
</div>
<md-icon class="margin__left link">
info
<md-tooltip>
Once the images are imported to round 1,<br />
changing the campaign's date and time won't<br />
make a difference in the images your jury<br />
will be able to view. However, changing<br />
these values before the import to round 1<br />
will make sure that only photos that<br />
are uploaded (for the first time) after<br />
the start date and time specified here<br />
are viewed by your jury.
</md-tooltip>
</md-icon>
</md-list-item>
<md-list-item class="md-2-line">
<md-icon>date_range</md-icon>
Expand All @@ -53,20 +39,17 @@ <h2 class="md-title no-margin">Add new campaign</h2>
ng-model="campaign.close_date">
</md-input-container>
</div>
<p>Close Date and Time</p>
<p>Close Date and Time (UTC)</p>
</div>
</md-list-item>
<md-list-item class="md-2-line">
<md-icon>info</md-icon>
<div class="md-list-item-text">
<p class="muted">Once the images are imported to round 1, changing date and time won't make a difference in the images your jury
will be able to view. However, changing these values before the import to round 1 will make
sure that only photos that are uploaded (for the first time) before the end date and time
are viewed by your jury.</p>
</div>
<md-icon class="margin__left link">
info
<md-tooltip>
Once the images are imported to round 1,<br />
changing date and time won't make a difference<br />
in the images your jury will be able to view.<br />
However, changing these values before the import<br />
to round 1 will make sure that only photos that<br />
are uploaded (for the first time) before the end<br />
date and time are viewed by your jury.
</md-tooltip>
</md-icon>
</md-list-item>
</md-list>
<strong class="md-subhead">Campaign coordinators</strong>
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/main/main.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2 class="link" ng-click="$ctrl.goToDashboard()">
<div class="container" layout="column" layout-align="space-between stretch" flex>
<ui-view></ui-view>
<footer layout="row" layout-align="space-between center">
<span>&copy; 2016
<span>&copy; 2017
<a href="https://github.com/hatnote">Hatnote</a> &bull;
<a href="https://github.com/hatnote/montage/blob/master/README.md">About</a>
</span>
Expand Down
5 changes: 3 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "montage",
"version": "16.11.03",
"version": "17.06.01",
"description": "Photo evaluation tool for and by Wiki Loves competitions",
"main": "app/index.js",
"repository": "https://github.com/hatnote/montage",
Expand All @@ -9,7 +9,8 @@
"start": "webpack --watch --content-base app --progress --colors",
"build": "webpack --content-base app --progress",
"build-zip": "webpack --content-base app --progress && cd ../montage/static && zip -r app.zip .",
"build-all-win": "set NODE_ENV=dev&&webpack --content-base app --progress&&set NODE_ENV=beta&&webpack --content-base app --progress"
"build-dev": "set NODE_ENV=dev&&webpack --content-base app --progress",
"build-beta": "set NODE_ENV=beta&&webpack --content-base app --progress"
},
"license": "BSD-3-Clause",
"devDependencies": {
Expand Down
0