Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

add URLs preview #45

Closed

Conversation

otofune
Copy link
Contributor

@otofune otofune commented Aug 25, 2017

#44

@otofune
Copy link
Contributor Author

otofune commented Aug 25, 2017

現段階の表示はたたき台だとこう jsfiddle
image

@otofune
Copy link
Contributor Author

otofune commented Aug 25, 2017

デザインわからんくなってしまった

<frost-url-preview url={ url } />
</li>
</ul>
<frost-post-status if={ urls.length > 0 } urls={ urls }/>
Copy link
Member

@marihachi marihachi Aug 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これだとfrost-post-statusが二重に生成されるし、直す前の方が良いような

Copy link
Member

@marihachi marihachi Aug 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これfrost-url-previewの間違いっぽいな

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ア!(そうです)

@marihachi
Copy link
Member

frost-url-previewのretriverをclient/helpers/下の関数として移動して、frost-post-status内でそれを呼ぶことにしよう
そうすればfrost-url-preview-contentの内容をfrost-url-previewに移動できてすっきりするし

@marihachi
Copy link
Member

その場合、frost-post-statusへの変更を
https://github.com/armchair-philosophy/Frost-Web/blob/d3ec9fbb0747adee25c212232da3a01031174c07/src/client/tags/frost-post-status.tag#L9-L13
この実装に戻す必要がある

@marihachi
Copy link
Member

marihachi commented Aug 26, 2017

肝心の表示のされ方としては良い感じ
スタイルは後々で、今の時点では無しでも良い

@otofune
Copy link
Contributor Author

otofune commented Aug 26, 2017

では戻していきましょう、client/helpers/ にtag置いてあるんですか?

@otofune
Copy link
Contributor Author

otofune commented Aug 26, 2017

あーでも ul, li はもう使いたくないので直接eachとifで frost-url-preview を呼ぶ感じになるかなと。これのeachが非同期で行われてるかが不明で、外部リソースなので取得順に描写されちゃって欲しい!ていうのがあるんですよね。なのでこんな感じになってます。

@marihachi
Copy link
Member

marihachi commented Aug 26, 2017

普通のjsファイルとして、client/helpers/に置くのはどうかな?(後々、良い感じにmixinで呼べたらいいですね)

ul, liを使いたくないっていうのはなぜだろ
複数同じ種類の項目が並ぶときは積極的にリストにしていきたい人なんですが

eachが非同期で行われてるか(?)が不明ってことだから適当に書いてみた
完了順に追加されていってるし特に問題はなさそう
https://jsfiddle.net/3frrrmuy/3/

@otofune
Copy link
Contributor Author

otofune commented Dec 24, 2017

正直セマンティクスを考えるなら ul, li でやるべき感じはあるのでそうしますかね

@otofune otofune closed this Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants