From 2f4f350a9356fc3143477b542ac0b0b749118172 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 10 May 2020 10:27:43 +0200 Subject: [PATCH] WIP Octanify the templates --- app/components/add-contribution/template.hbs | 50 ++++++++--------- app/components/add-contributor/template.hbs | 48 ++++++++-------- .../chart-contributions-by-type/template.hbs | 9 ++- app/components/contribution-list/template.hbs | 33 ++++++----- app/components/contributor-list/template.hbs | 11 ++-- .../external-account-link/template.hbs | 6 +- .../topbar-account-panel/template.hbs | 14 ++--- app/templates/contributions/new.hbs | 4 +- app/templates/contributions/resubmit.hbs | 6 +- app/templates/contributors/edit.hbs | 2 +- app/templates/dashboard.hbs | 56 +++++++++++++------ .../dashboard/contributions/show.hbs | 38 ++++++------- app/templates/dashboard/contributors/show.hbs | 24 ++++---- app/templates/signup/eth-account.hbs | 9 +-- app/templates/signup/index.hbs | 2 +- 15 files changed, 168 insertions(+), 144 deletions(-) diff --git a/app/components/add-contribution/template.hbs b/app/components/add-contribution/template.hbs index 2174967..05fd22e 100644 --- a/app/components/add-contribution/template.hbs +++ b/app/components/add-contribution/template.hbs @@ -1,11 +1,11 @@ -
+ @@ -42,33 +42,33 @@

{{input type="text" placeholder="500" - value=amount - class=(if isValidAmount "valid" "")}} + value=this.amount + class=(if this.isValidAmount "valid" "")}}

- {{#if details}} + {{#if this.details}} @@ -76,8 +76,8 @@

{{input type="submit" - disabled=inProgress - value=(if inProgress "Processing" "Save")}} + disabled=this.inProgress + value=(if this.inProgress "Processing" "Save")}}

diff --git a/app/components/add-contributor/template.hbs b/app/components/add-contributor/template.hbs index 8eceeee..fc7c22e 100644 --- a/app/components/add-contributor/template.hbs +++ b/app/components/add-contributor/template.hbs @@ -1,55 +1,55 @@ -
+

- {{input name="account" id="c-account" - type="text" value=account - placeholder="0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4" - class=(if isValidAccount "valid" "")}} +

- + +

- {{input name="name" type="text" value=name placeholder="Zero Cool" - class=(if isValidName "valid" "") id="c-name"}} + {{input name="name" type="text" value=this.name placeholder="Zero Cool" + class=(if this.isValidName "valid" "") id="c-name"}}

- {{input name="url" type="text" value=url placeholder="http://zerocool.bit" - class=(if isValidURL "valid" "") id="c-url"}} + {{input name="url" type="text" value=this.url placeholder="http://zerocool.bit" + class=(if this.isValidURL "valid" "") id="c-url"}}

- {{input name="github_uid" type="text" value=github_uid placeholder="2342" - class=(if isValidGithubUID "valid" "") id="c-github-uid"}} + {{input name="github_uid" type="text" value=this.github_uid placeholder="2342" + class=(if this.isValidGithubUID "valid" "") id="c-github-uid"}}

- {{input name="github_username" type="text" value=github_username placeholder="zerocool" - class=(if isValidGithubUsername "valid" "") id="c-github-username"}} + {{input name="github_username" type="text" value=this.github_username placeholder="zerocool" + class=(if this.isValidGithubUsername "valid" "") id="c-github-username"}}

- {{input name="gitea_username" type="text" value=gitea_username placeholder="zerocool" - class=(if isValidGiteaUsername "valid" "") id="c-gitea-username"}} + {{input name="gitea_username" type="text" value=this.gitea_username placeholder="zerocool" + class=(if this.isValidGiteaUsername "valid" "") id="c-gitea-username"}}

- {{input name="wiki_username" type="text" value=wiki_username placeholder="ZeroCool" - class=(if isValidWikiUsername "valid" "") id="c-wiki-username"}} + {{input name="wiki_username" type="text" value=this.wiki_username placeholder="ZeroCool" + class=(if this.isValidWikiUsername "valid" "") id="c-wiki-username"}}

- {{input name="zoom_display_name" type="text" value=zoom_display_name placeholder="Zero Cool" - class=(if isValidZoomDisplayName "valid" "") id="c-zoom-display-name"}} + {{input name="zoom_display_name" type="text" value=this.zoom_display_name placeholder="Zero Cool" + class=(if this.isValidZoomDisplayName "valid" "") id="c-zoom-display-name"}}

- {{input type="submit" disabled=inProgress - value=(if inProgress "Processing" "Save")}} + {{input type="submit" disabled=this.inProgress + value=(if this.inProgress "Processing" "Save")}}

diff --git a/app/components/chart-contributions-by-type/template.hbs b/app/components/chart-contributions-by-type/template.hbs index 56f2b44..da4906f 100644 --- a/app/components/chart-contributions-by-type/template.hbs +++ b/app/components/chart-contributions-by-type/template.hbs @@ -1,7 +1,6 @@
- {{ember-chart type="doughnut" - data=chartData - options=chartOptions - width=200 - height=200}} +
\ No newline at end of file diff --git a/app/components/contribution-list/template.hbs b/app/components/contribution-list/template.hbs index 49419cb..f3f4dd8 100644 --- a/app/components/contribution-list/template.hbs +++ b/app/components/contribution-list/template.hbs @@ -1,28 +1,28 @@ -{{#if showQuickFilter}} +{{#if @showQuickFilter}}

@@ -30,12 +30,12 @@ {{/if}}