-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design getting urls #12
Conversation
@sosuke-k @taisho6339 ちょっと長いけど仕様レビューお願いします 🙇 |
@sosuke-k @taisho6339 分からないところは適宜飛ばすなり訊くなりしてください 🐾 |
paginatedは? |
例えば になって 最後の rankだけじゃなくてページ番号も取った方がいいかな? |
とりあえずlgtm |
う〜ん、ページ番号を使う場面すぐ思いつかない。 あれか、ページ番号ってマウスの位置とかスクロール量とかと同じ感じか。 |
@taisho6339 typo恥ずかしい…! 直しました 💃 |
まさにそれ! GUI情報というかなんというかそんな感じ |
実装開始します 🚋 |
undefined keys が入ってきたときにエラー吐くから revert した 23ba9cd |
ひとまずページ情報取れるようにした |
|
||
add_binding_to_page() | ||
|
||
// for ajax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
検索結果ページの検索窓で再検索したときにページ遷移が起こらず(ajax)
content_script.js
が走らないので、 そのajax用の処理を追加
cf.
javascript - Chrome Extension: How to reload/re-execute content script on Ajax request - Stack Overflow
http://stackoverflow.com/questions/7325701/chrome-extension-how-to-reload-re-execute-content-script-on-ajax-request
@sosuke-k @taisho6339 長くなりそうなので一旦レビューお願いします 👓 👓 👓 |
} else { | ||
var query = parsed_url.hash.slice(1) | ||
} | ||
var page_data = query + '&url=' + clicked_url + '&rank=' + i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rank が 3 で start が 10 の場合、本当の rank は 10 + 3 = 13 になるから、
rank のカラム名は変えた方がいいかも。 index とか…?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
サーバーにpostするのは本当のrankの方かと思ってたけど?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
サーバーにpostするのは本当のrankの方かと思ってたけど?
了解す。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autoPagialize 的なのは普通に取得できた
https://github.com/re-born/queristory/blob/get-urls/extention/src/content_script.js#L6
で全部のページのリンク取得できてるっぽい
} else { | ||
var query = parsed_url.hash.slice(1) | ||
} | ||
chrome.extension.sendRequest({greeting: 'get_session_id'}, function(response) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background.js に session_id を尋ねる
pagination 追加 e10ca4f |
うぃ |
Kaminari の部分のコードが汚かったので |
wrong number of arguments (2 for 1) in site.sass · Issue #155 · Compass/compass-rails |
検索オプションの表示 (['tbm', 'as_qdr', 'lr', 'tbs', 'source']の5つ) 0ba6238 |
|
This reverts commit 283eca6f45726429b4b6c46cb458f4910a7013fc.
viewの修正 8cc4689 beforeafter |
概要
検索結果ページにてどのページに遷移したかを取得する
実装案 (概略図)
model (rails)
Query (has many Pages)
Pages (belongs to Query)
chrome_extension
background.js
content_script.js
TODO (実装順)
content_script.js
からbackground.js
に session_id を訊いて、レスポンスを貰う実装後
リファクタリング
テスト