fix code formatting

This commit is contained in:
Morgan McMillian 2016-11-11 09:52:45 -08:00
parent 40878e1059
commit eee1fe6eda

View file

@ -23,7 +23,7 @@ import org.labsquare 1.0
Page { Page {
property variant user property variant user
property variant theme : Application.themeSupport.theme.colorTheme.style property variant theme: Application.themeSupport.theme.colorTheme.style
property string lorem: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse non enim tellus. Donec vestibulum enim urna, eget faucibus diam commodo a. Donec eget hendrerit metus. Pellentesque vehicula nisi nec vehicula ullamcorper. Aliquam a elit eget mi fringilla porta fermentum eget eros. Phasellus vestibulum nulla sed elit congue adipiscing. Cras imperdiet urna ac ipsum volutpat lobortis. Maecenas vehicula tortor at viverra convallis. Curabitur nibh massa, tristique id felis ut, venenatis faucibus dui. Donec fringilla, mi nec tincidunt dignissim, neque nunc semper mi, quis rutrum diam turpis sit amet erat. Cras a sodales nisi. Nunc sit amet diam sed lectus molestie cursus convallis et erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vitae varius leo. Mauris eu leo a nunc bibendum rutrum euismod et ipsum. " property string lorem: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse non enim tellus. Donec vestibulum enim urna, eget faucibus diam commodo a. Donec eget hendrerit metus. Pellentesque vehicula nisi nec vehicula ullamcorper. Aliquam a elit eget mi fringilla porta fermentum eget eros. Phasellus vestibulum nulla sed elit congue adipiscing. Cras imperdiet urna ac ipsum volutpat lobortis. Maecenas vehicula tortor at viverra convallis. Curabitur nibh massa, tristique id felis ut, venenatis faucibus dui. Donec fringilla, mi nec tincidunt dignissim, neque nunc semper mi, quis rutrum diam turpis sit amet erat. Cras a sodales nisi. Nunc sit amet diam sed lectus molestie cursus convallis et erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vitae varius leo. Mauris eu leo a nunc bibendum rutrum euismod et ipsum. "
signal follow(string uid) signal follow(string uid)
@ -36,7 +36,8 @@ Page {
ScrollView { ScrollView {
Container { Container {
Container { Container {
layout: DockLayout {} layout: DockLayout {
}
horizontalAlignment: HorizontalAlignment.Fill horizontalAlignment: HorizontalAlignment.Fill
preferredHeight: cover.height preferredHeight: cover.height
Container { Container {
@ -100,7 +101,8 @@ Page {
topPadding: ui.sdu(3) topPadding: ui.sdu(3)
leftPadding: ui.sdu(3) leftPadding: ui.sdu(3)
rightPadding: ui.sdu(3) rightPadding: ui.sdu(3)
layout: DockLayout {} layout: DockLayout {
}
horizontalAlignment: HorizontalAlignment.Fill horizontalAlignment: HorizontalAlignment.Fill
Container { Container {
preferredWidth: ui.du(45) preferredWidth: ui.du(45)
@ -170,44 +172,46 @@ Page {
} }
} }
Divider {} Divider {
ListView {
id: threadView
dataModel: ArrayDataModel {
id: threadModel
} }
listItemComponents: [ ListView {
ListItemComponent { id: threadView
id: root dataModel: ArrayDataModel {
PostItem {} id: threadModel
} }
] listItemComponents: [
function sendReply(text, pid) { ListItemComponent {
pnut.sendReply(text, pid); id: root
} PostItem {
function getUserName() { }
return _app.setting("username") }
} ]
function viewProfile(userobj) { function sendReply(text, pid) {
var page = profilePage.createObject(); pnut.sendReply(text, pid);
page.user = userobj }
page.follow.connect(follow) function getUserName() {
page.unfollow.connect(unfollow) return _app.setting("username")
page.block.connect(block) }
page.unblock.connect(unblock) function viewProfile(userobj) {
page.mute.connect(mute) var page = profilePage.createObject();
page.unmute.connect(unmute) page.user = userobj
nav.push(page); page.follow.connect(follow)
} page.unfollow.connect(unfollow)
function ccOnReply() { page.block.connect(block)
if (_app.setting("cc") === "true") { page.unblock.connect(unblock)
return true page.mute.connect(mute)
} else { page.unmute.connect(unmute)
return false nav.push(page);
}
function ccOnReply() {
if (_app.setting("cc") === "true") {
return true
} else {
return false
}
} }
} }
} }
}
} }
function loadThread(data) { function loadThread(data) {