Implement statistics components

This commit is contained in:
2018-07-22 19:33:58 -05:00
parent b24b8cc525
commit 833c10ea7f
15 changed files with 383 additions and 7 deletions
@@ -5,4 +5,10 @@ translations = user:
title: 'New ${models.user}'
edit_user:
title: 'Edit ${models.user} <strong>%{nickname}</strong>'
statistics1:
global:
title: 'Global'
project_specific:
label: 'Per project'
export default translations
+1
View File
@@ -5,6 +5,7 @@
br
img.ui.centered.image src="/panda/app/assets/favicons/android-chrome-192x192.png"
= user-main-statistics1 user=globals.current_user
.ui.header TODO
.ui.list
@@ -0,0 +1,25 @@
import { test, moduleForComponent } from 'ember-qunit'
import hbs from 'htmlbars-inline-precompile'
moduleForComponent 'organization-statistics1', 'Integration | Component | organization statistics1', {
integration: true
}
test 'it renders', (assert) ->
assert.expect 2
# Set any properties with @set 'myProperty', 'value'
# Handle any actions with @on 'myAction', (val) ->
@render hbs """{{organization-statistics1}}"""
assert.equal @$().text().trim(), ''
# Template block usage:
@render hbs """
{{#organization-statistics1}}
template block text
{{/organization-statistics1}}
"""
assert.equal @$().text().trim(), 'template block text'
@@ -0,0 +1,25 @@
import { test, moduleForComponent } from 'ember-qunit'
import hbs from 'htmlbars-inline-precompile'
moduleForComponent 'user-main-statistics1', 'Integration | Component | user main statistics1', {
integration: true
}
test 'it renders', (assert) ->
assert.expect 2
# Set any properties with @set 'myProperty', 'value'
# Handle any actions with @on 'myAction', (val) ->
@render hbs """{{user-main-statistics1}}"""
assert.equal @$().text().trim(), ''
# Template block usage:
@render hbs """
{{#user-main-statistics1}}
template block text
{{/user-main-statistics1}}
"""
assert.equal @$().text().trim(), 'template block text'