-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from pyconjp/develop
Final merge for 2016
- Loading branch information
Showing
230 changed files
with
3,801 additions
and
3,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,66 @@ | ||
##Xcode | ||
#BuildFile | ||
# Xcode | ||
## Build generated | ||
build/ | ||
DerivedData | ||
DerivedData/ | ||
|
||
#PrivateSetting | ||
## Various settings | ||
xcuserdata/ | ||
|
||
## Private setting | ||
*.pbxuser | ||
*mode1v3 | ||
*mode2v3 | ||
*perspectivev3 | ||
*moved-aside | ||
*xcuserstate | ||
*xccheckout | ||
|
||
#DefaultSetting | ||
## Default setting | ||
!default.pbxuser | ||
!default.mode1v3 | ||
!default.mode2v3 | ||
!default.perspectivev3 | ||
|
||
#CustomScheme | ||
PyConJP2016.xcodeproj/xcuserdata | ||
PyConJP2016.xcworkspace/xcuserdata | ||
## Other | ||
*.moved-aside | ||
*.xccheckout | ||
*.xcscmblueprint | ||
|
||
## CustomScheme | ||
*.xcodeproj/xcuserdata | ||
*.xcworkspace/xcuserdata | ||
|
||
#Bundler | ||
# Bundler | ||
.bundle | ||
Gemfile.lock | ||
vendor | ||
|
||
##cocoaPods | ||
# CocoaPods | ||
Pods/* | ||
Podfile.lock | ||
!default.xcworkspace | ||
*.xcworkspace | ||
|
||
#Carthage | ||
# Carthage | ||
Carthage/* | ||
Cartfile.resolved | ||
|
||
##AppCode | ||
.idea | ||
# fastlane | ||
fastlane/* | ||
!fastlane/Fastfile | ||
|
||
# AppCode | ||
## User-specific stuff: | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
|
||
##OSX | ||
## Sensitive or high-churn files: | ||
.idea/dataSources.ids | ||
.idea/dataSources.xml | ||
.idea/dataSources.local.xml | ||
.idea/sqlDataSources.xml | ||
.idea/dynamic.xml | ||
.idea/uiDesigner.xml | ||
|
||
# macOS | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# PyCon JP use Library | ||
github "Alamofire/Alamofire" ~> 3.5 | ||
github "Alamofire/AlamofireImage" ~> 2.5 | ||
github "realm/realm-cocoa" ~> 1.0 | ||
github "Alamofire/Alamofire" ~> 4.0 | ||
github "Alamofire/AlamofireImage" ~> 3.0 | ||
github "realm/realm-cocoa" ~> 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// PCJConfig.swift | ||
// PyConJP2016 | ||
// | ||
// Created by Yutaro Muta on 8/30/2016. | ||
// Copyright © 2016 PyCon JP. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
enum PCJConfig { | ||
|
||
static let mailAddress = "symposion@pycon.jp" | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
10 changes: 10 additions & 0 deletions
10
...xcassets/AppIcon.appiconset/Contents.json → ...xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// | ||
// StaffListDataSource.swift | ||
// PyConJP2016 | ||
// | ||
// Created by Yutaro Muta on 9/10/16. | ||
// Copyright © 2016 PyCon JP. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class StaffListDataSource: NSObject, UITableViewDataSource, StaffListAPIProtocol { | ||
|
||
let reuseIdentifier = "StaffTableViewCell" | ||
|
||
var teams: [Team] = [] | ||
|
||
let facebookAction: ((_ url: String) -> (() -> Void)) | ||
let twitterAction: ((_ url: String) -> (() -> Void)) | ||
|
||
init(facebookAction: @escaping ((_ url: String) -> (() -> Void)), twitterAction: @escaping ((_ url: String) -> (() -> Void))) { | ||
self.facebookAction = facebookAction | ||
self.twitterAction = twitterAction | ||
} | ||
|
||
func refreshData(completionHandler: @escaping ((Result<Void>) -> Void)) { | ||
getStaffs { [weak self](result) in | ||
guard let weakSelf = self else { return } | ||
switch result { | ||
case .success(let staffs): | ||
weakSelf.teams.removeAll() | ||
let teamNames = staffs.map({ $0.team }).unique() | ||
for tuple in teamNames.enumerated() { | ||
weakSelf.teams.append(Team(name: teamNames[tuple.offset], staffs: staffs.filter({ $0.team == teamNames[tuple.offset] }))) | ||
} | ||
completionHandler(.success()) | ||
case .failure(let error): | ||
completionHandler(.failure(error)) | ||
} | ||
} | ||
} | ||
|
||
// MARK: - Table View Controller Data Source | ||
|
||
func numberOfSections(in tableView: UITableView) -> Int { | ||
return teams.count | ||
} | ||
|
||
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { | ||
return teams[section].name | ||
} | ||
|
||
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
return teams[section].staffs.count | ||
} | ||
|
||
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
guard let cell = tableView.dequeueReusableCell(withIdentifier: reuseIdentifier, for: indexPath) as? StaffTableViewCell else { | ||
fatalError("Could not create StaffTableViewCell") | ||
} | ||
cell.fill(staff: teams[(indexPath as NSIndexPath).section].staffs[(indexPath as NSIndexPath).row], | ||
onFacebookButton: facebookAction(teams[(indexPath as NSIndexPath).section].staffs[(indexPath as NSIndexPath).row].facebook), | ||
onTwitterButton: twitterAction(teams[(indexPath as NSIndexPath).section].staffs[(indexPath as NSIndexPath).row].twitter)) | ||
return cell | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
PyConJP/DataSource/TalkDetail/SpeakersCollectionViewDataSource.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// SpeakersCollectionViewDataSource.swift | ||
// PyConJP2016 | ||
// | ||
// Created by Yutaro Muta on 9/8/16. | ||
// Copyright © 2016 PyCon JP. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class SpeakersCollectionViewDataSource: NSObject, UICollectionViewDataSource { | ||
|
||
let reuseIdentifier = "SpeakerCollectionViewCell" | ||
|
||
var speakers: [Speaker] = [] | ||
|
||
// MARK: - Collection View DataSource | ||
|
||
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { | ||
return speakers.count | ||
} | ||
|
||
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { | ||
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as! SpeakerCollectionViewCell | ||
cell.fill(speaker: speakers[(indexPath as NSIndexPath).row]) | ||
return cell | ||
} | ||
} |
Oops, something went wrong.