added 260907 version of worker toolkit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<div class="flaredown-transparent-box">
|
||||
<a {{action "navigateBack"}} class="mobile-back-button">Back</a>
|
||||
</div>
|
||||
|
||||
<header class="centered">
|
||||
<h3>My topics</h3>
|
||||
</header>
|
||||
|
||||
<div class="flaredown-white-box">
|
||||
<p>
|
||||
Your discussion page will show you posts related to these topics.
|
||||
</p>
|
||||
|
||||
{{#power-select
|
||||
class="fs-private"
|
||||
search=(action "searchObjects")
|
||||
options=randomTrackables
|
||||
onchange=(action "addTopic")
|
||||
placeholder="Find topics..."
|
||||
renderInPlace=true
|
||||
as |object| }}
|
||||
{{object.name}}
|
||||
{{/power-select}}
|
||||
|
||||
{{#each model.topics as |topic|}}
|
||||
<div class="followed-topic">
|
||||
{{#link-to 'posts.topic' topic.modelType topic.id}}{{topic.name}} ›{{/link-to}}
|
||||
<span {{action "removeTopic" topic}} class="x-to-remove">{{closeSymbol}}</span>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
<div class="pull-down"></div>
|
||||
|
||||
{{ navigation-links title='Chat' optionObjects=foundTopics onSearch=(action "searchObjects") onGo=(action "goToTopic") isAuthenticatedUser=session.isAuthenticated }}
|
||||
|
||||
{{#if session.isAuthenticated}}
|
||||
<div class="flaredown-transparent-box vert-offset-bottom-1 discussion-links">
|
||||
<div class="pull-left">
|
||||
{{link-to "All" "posts" (query-params following=null) class="btn btn-filter nav-following"}}
|
||||
{{link-to "Following" "posts" (query-params following=true) class="btn btn-filter nav-following"}}
|
||||
</div>
|
||||
|
||||
{{link-to "+ New post" "posts.new" class="btn btn-link"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#each model.posts as |post|}}
|
||||
{{posts/topic-post post=post isAuthenticatedUser=session.isAuthenticated}}
|
||||
{{/each}}
|
||||
|
||||
{{ember-ic-you triggerDistance=40}}
|
||||
|
||||
{{#if loadingPosts}}
|
||||
{{partial "application/three-bounce-spinner"}}
|
||||
{{/if}}
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="flaredown-transparent-box">
|
||||
<a {{action "navigateBack" class="mobile-back-button"}}>Cancel</a>
|
||||
</div>
|
||||
|
||||
<header class="centered">
|
||||
<h3>New post</h3>
|
||||
</header>
|
||||
|
||||
<div class="flaredown-white-box">
|
||||
{{input type="text" value=model.title placeholder="Post title"}}
|
||||
</div>
|
||||
|
||||
<div class="flaredown-white-box">
|
||||
{{textarea value=model.body rows="6" placeholder="Write your awesome post here..."}}
|
||||
</div>
|
||||
|
||||
<div class="flaredown-transparent-box">
|
||||
<p class="colorable-clr-37">Add topics like conditions, symptoms, or treatments so people can find your post:</p>
|
||||
|
||||
{{#each model.topics as |topic|}}
|
||||
<span class="badge-primary colorable-clr-36 vert-offset-bottom-0_5" {{action "removeTopic" topic}}>
|
||||
{{topic.name}}
|
||||
</span>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div class="flaredown-white-box">
|
||||
{{#power-select
|
||||
class="fs-private"
|
||||
search=(action "searchObjects")
|
||||
options=randomTrackables
|
||||
onchange=(action "addTopic")
|
||||
placeholder="Choose topics..."
|
||||
renderInPlace=true
|
||||
as |object| }}
|
||||
{{object.name}}
|
||||
{{/power-select}}
|
||||
</div>
|
||||
|
||||
<button {{action "savePost"}} class="primary-btn" disabled={{disabled}}>Submit</button>
|
||||
@@ -0,0 +1,25 @@
|
||||
<div class="pull-down"></div>
|
||||
{{ navigation-links title='Profile' optionObjects=foundTopics onSearch=(action "searchObjects") onGo=(action "goToTopic") isAuthenticatedUser=session.isAuthenticated}}
|
||||
|
||||
<header class="centered flaredown-transparent-box profile-header">
|
||||
{{posts/profile-picture}}
|
||||
{{screenName}}
|
||||
</header>
|
||||
|
||||
{{#each notifications.unread as |notification|}}
|
||||
{{posts/activity-notification notification=notification}}
|
||||
{{/each}}
|
||||
|
||||
{{#each postables as |postable|}}
|
||||
{{#if (eq postable.type "post")}}
|
||||
{{posts/topic-post post=postable elipsis=null}}
|
||||
{{else}}
|
||||
{{posts/topic-comment comment=postable}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{ember-ic-you triggerDistance=40}}
|
||||
|
||||
{{#if loadingPostables}}
|
||||
{{partial "application/three-bounce-spinner"}}
|
||||
{{/if}}
|
||||
@@ -0,0 +1,39 @@
|
||||
<div class="pull-down"></div>
|
||||
{{ navigation-links title='Post' optionObjects=foundTopics onSearch=(action "searchObjects") onGo=(action "goToTopic") isAuthenticatedUser=session.isAuthenticated}}
|
||||
|
||||
<div class="flaredown-post-page vert-offset-top-1">
|
||||
<header class="flaredown-transparent-box centered">
|
||||
<h3>{{post.title}}</h3>
|
||||
</header>
|
||||
|
||||
{{#posts/topic-post post=post updateNotifications=true}}
|
||||
<p class="colorable-clr-38">{{post.userName}}</p>
|
||||
<p>{{post.bodyWithBr}}</p>
|
||||
|
||||
{{posts/post-topics post=post}}
|
||||
|
||||
{{emoji-reactions reactable=post isAuthenticatedUser=session.isAuthenticated}}
|
||||
|
||||
{{share-socials url=post.show title=post.title text=post.body}}
|
||||
|
||||
{{#scroll-to-anchor anchor=anchor}}
|
||||
{{#each post.comments as |comment|}}
|
||||
{{posts/post-comment comment=comment isAuthenticatedUser=session.isAuthenticated}}
|
||||
{{/each}}
|
||||
{{/scroll-to-anchor}}
|
||||
{{/posts/topic-post}}
|
||||
|
||||
{{#if session.isAuthenticated}}
|
||||
<div class="flaredown-white-box new-comment">
|
||||
|
||||
{{at-js-autocomplete value=newComment.body postId=post.id}}
|
||||
|
||||
<button {{action "submitComment" on="mouseDown"}} class="primary-btn" disabled={{disabled}}>Submit</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless session.isAuthenticated}}
|
||||
{{!-- {{additional-info}} --}}
|
||||
{{join-footer}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="pull-down"></div>
|
||||
{{ navigation-links title='Topic' optionObjects=foundTopics onSearch=(action "searchObjects") onGo=(action "goToTopic") isAuthenticatedUser=session.isAuthenticated }}
|
||||
|
||||
<header class="flaredown-transparent-box centered">
|
||||
<h3 class="topic-name">{{model.topic.name}}</h3>
|
||||
<div class="topic-type">
|
||||
{{capitalize model.type}}
|
||||
|
||||
{{#if session.isAuthenticated}}
|
||||
·
|
||||
{{pluralize model.topic.usersCount "user"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{#if session.isAuthenticated}}
|
||||
<header class="centered vert-offset-bottom-1">
|
||||
<a {{action "toggleTopicFollowing"}}>{{if isFollowed 'Unfollow' 'Follow'}} this topic</a>
|
||||
</header>
|
||||
{{/if}}
|
||||
|
||||
<div class="flaredown-white-box">
|
||||
{{input type="text" value=query placeholder="Search..."}}
|
||||
</div>
|
||||
|
||||
{{#each model.posts as |post|}}
|
||||
{{posts/topic-post post=post isAuthenticatedUser=session.isAuthenticated}}
|
||||
{{/each}}
|
||||
|
||||
{{ember-ic-you triggerDistance=40}}
|
||||
|
||||
{{#if loadingTopics}}
|
||||
{{partial "application/three-bounce-spinner"}}
|
||||
{{/if}}
|
||||
|
||||
{{#unless session.isAuthenticated}}
|
||||
{{!-- {{additional-info}}
|
||||
--}}
|
||||
{{join-footer}}
|
||||
{{/unless}}
|
||||
Reference in New Issue
Block a user