Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Heartbeat Cocoa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ind.ie Projects
Heartbeat Cocoa
Commits
c4f1c522
Unverified
Commit
c4f1c522
authored
Aug 22, 2015
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All local timelines now being served by the private web server.
parent
d8e01493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
Heartbeat/TimelineViewController.swift
Heartbeat/TimelineViewController.swift
+18
-10
No files found.
Heartbeat/TimelineViewController.swift
View file @
c4f1c522
...
...
@@ -514,17 +514,10 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
func
loadIndexPage
()
{
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Refactoring in progress: moving to timelines served via the private web server.
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Pre-refactor timeline URL.
var
timelineToLoad
=
"http://127.0.0.1:42003/index.html"
//
// Special case: everyone timeline is loaded from Waystone.
//
var
timelineToLoad
:
String
?
=
nil
if
let
currentTimelineID
=
CurrentTimeline
.
id
{
if
currentTimelineID
==
"everyone"
...
...
@@ -535,14 +528,29 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
{
timelineToLoad
=
"http://127.0.0.1:42003/all-friends-timeline"
}
if
currentTimelineID
==
"private"
{
timelineToLoad
=
"http://127.0.0.1:42003/private-timeline"
}
if
currentTimelineID
==
"public"
{
timelineToLoad
=
"http://127.0.0.1:42003/public-timeline"
}
if
currentTimelineID
!=
"allfriends"
&&
currentTimelineID
!=
"conversations"
&&
currentTimelineID
!=
"private"
&&
currentTimelineID
!=
"everyone"
&&
currentTimelineID
!=
"public"
{
timelineToLoad
=
"http://127.0.0.1:42003/conversation-with/
\(
currentTimelineID
)
"
}
}
var
urlRequest
=
NSURLRequest
(
URL
:
NSURL
(
string
:
timelineToLoad
)
!
)
webkit
.
loadRequest
(
urlRequest
)
if
let
timelineToLoad
=
timelineToLoad
{
var
urlRequest
=
NSURLRequest
(
URL
:
NSURL
(
string
:
timelineToLoad
)
!
)
webkit
.
loadRequest
(
urlRequest
)
}
else
{
println
(
"❌ Error: Could not find the timeline to load:
\(
CurrentTimeline
.
id
)
"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment