-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename journey -> journeys, update copy
- Loading branch information
1 parent
808d7db
commit 59a1778
Showing
43 changed files
with
461 additions
and
344 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vite-ssr: bin/vite ssr | ||
rails: sleep 1 && bin/rails db:prepare && bin/rails test:all || exit -1 |
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
4 changes: 2 additions & 2 deletions
4
...nstraints/journey_subdomain_constraint.rb → ...straints/journeys_subdomain_constraint.rb
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,13 +1,13 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
class JourneySubdomainConstraint | ||
class JourneysSubdomainConstraint | ||
extend T::Sig | ||
|
||
sig { params(request: ActionDispatch::Request).returns(T::Boolean) } | ||
def matches?(request) | ||
subdomain = T.let(request.subdomain.dup, String) | ||
subdomain.delete_suffix!(".127.0.0.1") if Rails.env.development? | ||
subdomain == "journey" | ||
subdomain == "journeys" | ||
end | ||
end |
5 changes: 4 additions & 1 deletion
5
...rollers/journey/application_controller.rb → ...ollers/journeys/application_controller.rb
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
6 changes: 3 additions & 3 deletions
6
app/controllers/journey/home_controller.rb → app/controllers/journeys/home_controller.rb
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,9 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
module Queries | ||
class JourneysBaseQuery < BaseQuery | ||
# == Authorization | ||
authorize :participant_id, through: :journeys_participant_id | ||
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
22 changes: 0 additions & 22 deletions
22
app/graphql/subscriptions/journey_session_participation.rb
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
app/graphql/subscriptions/journeys_session_participation.rb
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,22 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
module Subscriptions | ||
class JourneysSessionParticipation < BaseSubscription | ||
# == Configuration | ||
broadcastable false | ||
|
||
# == Type | ||
type Types::JourneysSessionParticipationType, null: true | ||
|
||
# == Arguments | ||
argument :session_id, ID, loads: Types::JourneysSessionType | ||
|
||
# == Callback Handlers | ||
sig do | ||
params(session: ::Journeys::Session) | ||
.returns(T.nilable(::Journeys::SessionParticipation)) | ||
end | ||
def subscribe(session:) = nil | ||
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
Oops, something went wrong.