-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2990 from fjordllc/main
Release 2021-07-26 07:03:46
- Loading branch information
Showing
90 changed files
with
691 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.6 | ||
2.6.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.a-bookmark-button | ||
border: none | ||
&:hover | ||
border: none | ||
&.is-inactive | ||
color: $semi-muted-text | ||
&:hover | ||
color: $default-text | ||
background-color: $background-shade |
22 changes: 18 additions & 4 deletions
22
app/assets/stylesheets/blocks/thread/_thread-header-actions.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
.thread-header-actions | ||
padding-top: .25rem | ||
display: flex | ||
justify-content: space-between | ||
padding-top: .25rem | ||
|
||
.thread-header-actions__start, | ||
.thread-header-actions__end | ||
display: flex | ||
flex: 1 | ||
+media-breakpoint-up(md) | ||
+margin(horizontal, -.25rem) | ||
+media-breakpoint-down(sm) | ||
+margin(horizontal, -.125rem) | ||
|
||
.thread-header-actions__start | ||
justify-content: flex-start | ||
|
||
.thread-header-actions__end | ||
justify-content: flex-end | ||
|
||
.thread-header-actions__action | ||
+media-breakpoint-up(md) | ||
+padding(horizontal, .25rem) | ||
min-width: 6rem | ||
+media-breakpoint-down(sm) | ||
+padding(horizontal, .125rem) | ||
width: 50% | ||
.a-button | ||
min-width: 5.25rem | ||
+padding(horizontal, 0) | ||
&:not(:last-child) | ||
margin-right: .5rem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class API::UserIconUrlsController < API::BaseController | ||
def index | ||
@users = User.with_attached_avatar | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- title "#{@user.login_name}の提出物" | ||
header.page-header | ||
.container | ||
.page-header__inner | ||
h2.page-header__title | ||
= title | ||
.page-header-actions | ||
ul.page-header-actions__items | ||
li.page-header-actions__item | ||
= link_to users_path, class: 'a-button is-md is-secondary is-block is-back' do | ||
| ユーザー一覧 | ||
|
||
.page-tools | ||
= render 'home/page_tabs', user: @current_user | ||
|
||
.page-body | ||
.container | ||
- if @products.present? | ||
.thread-list.a-card | ||
= render partial: 'products/product', collection: @products, as: :product | ||
- else | ||
.o-empty-message | ||
.o-empty-message__icon | ||
i.far.fa-sad-tear | ||
p.o-empty-message__text | ||
| 提出物はまだありません。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
class CurrentUser::ProductsController < ApplicationController | ||
before_action :require_login | ||
before_action :set_user | ||
before_action :set_products | ||
|
||
def index; end | ||
|
||
private | ||
|
||
def set_user | ||
@user = current_user | ||
end | ||
|
||
def set_products | ||
@products = user.products.list | ||
end | ||
|
||
def user | ||
@user ||= current_user | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
class CurrentUser::WatchesController < ApplicationController | ||
before_action :require_login | ||
before_action :set_user | ||
before_action :set_watches | ||
|
||
def index; end | ||
|
||
private | ||
|
||
def set_user | ||
@user = current_user | ||
end | ||
|
||
def set_watches | ||
@watches = user.watches | ||
end | ||
|
||
def user | ||
@user ||= current_user | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.