Skip to content

Commit

Permalink
+ donations, contacts, hints
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Dec 12, 2023
1 parent 8421828 commit e2ae675
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 11 deletions.
13 changes: 13 additions & 0 deletions meetup/page/page.view.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@
font-family: sans-serif;
}

[piterjs_meetup_page_donate] {
margin: -.5rem -.75rem;
}

[piterjs_meetup_page_review_hint] {
color: var(--mol_theme_shade);
padding: var(--mol_gap_text);
}

[piterjs_meetup_page_review_field_label] {
justify-content: space-between;
}

[piterjs_meetup_page_reviews] {
padding: var(--mol_gap_block);
background: var(--mol_theme_card);
Expand Down
20 changes: 17 additions & 3 deletions meetup/page/page.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,23 @@ $piterjs_meetup_page $mol_page
\Да, мы упарываемся по твоей приватности 💟
<= Review_field $mol_form_field
name \Общие впечатления
Content <= Review $mol_textarea
hint \Что уже хорошо, а что улучшить?
value? <=> review?
Bid <= Donate $mol_link
target \_blank
hint \Задонатить
uri \#!wiki/=wu07hq_io8xyr
sub / <= Donate_icon $mol_icon_gift_outline
- Bid <= Review_score $mol_switch
options *
lie \🤬
hard \🤯
equal \😴
think \🤔
love \😍
Content <= Review_block $mol_list rows /
<= Review $mol_textarea
hint \Что хорошо, а что улучшить?
value? <=> review?
<= Review_hint $mol_view sub / \+ По каждому спикеру далее
<= Reviews $mol_text text <= reviews
Speech!index $piterjs_speech_snippet
speech <= speech!index $piterjs_speech
Expand Down
2 changes: 1 addition & 1 deletion meetup/page/page.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ namespace $.$$ {
content() {
return [
... ( this.editing() || this.description() ) ? [ this.Description() ] : [] ,
this.Links() ,
... this.review_allowed() ? [ this.Review_field() ] : [],
... ( this.editing() && this.reviews() ) ? [ this.Reviews() ] : [] ,
this.Links() ,
... this.join_allowed() ? [ this.Join() ] : [] ,
... this.join_allowed() && this.joined() ? [ this.Joined_bid() ] : [],
this.Speeches() ,
Expand Down
3 changes: 2 additions & 1 deletion speech/page/page.view.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace $.$$ {
flex: {
grow: 0,
shrink: 0,
basis: `35rem`,
basis: `50rem`,
},

Tools: {
Expand Down Expand Up @@ -46,6 +46,7 @@ namespace $.$$ {
'>': {
$mol_view: {
flex: {
basis: `10rem`,
grow: 1,
},
}
Expand Down
22 changes: 16 additions & 6 deletions speech/page/page.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ $piterjs_speech_page $mol_page
start? => start?
slides? => slides?
video? => video?
donate? => donate?
contact? => contact?
editable => editable
review? => review?
reviews => reviews
Expand Down Expand Up @@ -32,12 +34,6 @@ $piterjs_speech_page $mol_page
hint \О чём
value? <=> description?
enabled <= editing
<= Review_field $mol_form_field
name \Впечатления от доклада
Content <= Review $mol_textarea
hint \Что уже хорошо, а что улучшить?
value? <=> review?
<= Reviews $mol_text text <= reviews
<= Links $mol_view sub <= links /
<= Slides $mol_string_link
value? <=> slides?
Expand All @@ -47,6 +43,20 @@ $piterjs_speech_page $mol_page
value? <=> video?
enabled <= editing
title \Видео
<= Donate $mol_string_link
value? <=> donate?
enabled <= editing
title \Задонатить
<= Contact $mol_string_link
value? <=> contact?
enabled <= editing
title \Связаться
<= Review_field $mol_form_field
name \Впечатления
Content <= Review $mol_textarea
hint \Что хорошо, а что улучшить?
value? <=> review?
<= Reviews $mol_text text <= reviews
<= Speaker $piterjs_speaker_snippet
speaker <= speaker $piterjs_speaker
editing <= editing
Expand Down
2 changes: 2 additions & 0 deletions speech/page/page.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace $.$$ {
return [
... ( this.editing() || this.slides() ) ? [ this.Slides() ] : [] ,
... ( this.editing() || this.video() ) ? [ this.Video() ] : [] ,
... ( this.editing() || this.donate() ) ? [ this.Donate() ] : [] ,
... ( this.editing() || this.contact() ) ? [ this.Contact() ] : [] ,
]
}

Expand Down
10 changes: 10 additions & 0 deletions speech/speech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ namespace $ {
return this.sub( 'video', $hyoo_crowd_reg ).str( next )
}

@ $mol_mem
donate( next?: string ) {
return this.sub( 'donate', $hyoo_crowd_reg ).str( next )
}

@ $mol_mem
contact( next?: string ) {
return this.sub( 'contact', $hyoo_crowd_reg ).str( next )
}

@ $mol_mem
start( next?: $mol_time_moment ) {
return new $mol_time_moment( this.sub( 'start', $hyoo_crowd_reg ).str( next?.toString() ) )
Expand Down

0 comments on commit e2ae675

Please sign in to comment.