-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef7c45c
commit 4803575
Showing
26 changed files
with
104 additions
and
511 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
app/javascript/controllers/index.js |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
web: bin/rails server -p 3000 | ||
vite: bin/vite dev | ||
web: unset PORT && bin/rails server | ||
js: yarn build --watch | ||
css: yarn build:css --watch | ||
search: meilisearch |
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 @@ | ||
@import "vlitejs/dist/vlite.css"; |
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,5 @@ | ||
// Entry point for the build script in your package.json | ||
import '@hotwired/turbo-rails' | ||
import './controllers' | ||
import './vendors/appsignal' | ||
import './vendors/turn' |
File renamed without changes.
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,22 +1,9 @@ | ||
import { Application } from '@hotwired/stimulus' | ||
import { appsignal } from '~/support/appsignal' | ||
|
||
const application = Application.start() | ||
|
||
// Configure Stimulus development experience | ||
application.debug = false | ||
window.Stimulus = application | ||
|
||
// Error handling | ||
const defaultErrorHandler = application.handleError.bind(application) | ||
|
||
// create a ne composed error handler with Appsignal | ||
const appsignalErrorHandler = (error, message, detail = {}) => { | ||
defaultErrorHandler(error, message, detail) | ||
appsignal.sendError(error, (span) => { span.setTags({ message }) }) | ||
} | ||
|
||
// overwrite the default handler with our new composed handler | ||
application.handleError = appsignalErrorHandler | ||
|
||
export { application } |
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,5 +1,17 @@ | ||
import { application } from './application' | ||
import { registerControllers } from 'stimulus-vite-helpers' | ||
// This file is auto-generated by ./bin/rails stimulus:manifest:update | ||
// Run that command whenever you add a new controller or create them with | ||
// ./bin/rails generate stimulus controllerName | ||
|
||
const controllers = import.meta.globEager('./**/*_controller.js') | ||
registerControllers(application, controllers) | ||
import { application } from "./application" | ||
|
||
import AutoSubmitController from "./auto_submit_controller" | ||
application.register("auto-submit", AutoSubmitController) | ||
|
||
import PageTransitionMissingController from "./page_transition_missing_controller" | ||
application.register("page-transition-missing", PageTransitionMissingController) | ||
|
||
import TransitionController from "./transition_controller" | ||
application.register("transition", TransitionController) | ||
|
||
import VideoPlayerController from "./video_player_controller" | ||
application.register("video-player", VideoPlayerController) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
import Appsignal from '@appsignal/javascript' | ||
import { application } from '../controllers/application' | ||
|
||
const key = process.env.NODE_ENV === 'production' ? '4425c854-a76a-4131-992e-171f7bf653ba' : '10b1f5e6-62a2-4bd8-9431-7698de53c68a' | ||
|
||
export const appsignal = new Appsignal({ key }) | ||
|
||
const defaultErrorHandler = application.handleError.bind(application) | ||
|
||
// create a ne composed error handler with Appsignal | ||
const appsignalErrorHandler = (error, message, detail = {}) => { | ||
defaultErrorHandler(error, message, detail) | ||
appsignal.sendError(error, (span) => { span.setTags({ message }) }) | ||
} | ||
|
||
// overwrite the default handler with our new composed handler | ||
application.handleError = appsignalErrorHandler |
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,13 @@ | ||
import Turn from '@domchristie/turn' | ||
|
||
Turn.start() | ||
|
||
document.addEventListener('turbo:before-frame-render', (event) => { | ||
if (document.startViewTransition) { | ||
event.preventDefault() | ||
|
||
document.startViewTransition(() => { | ||
event.detail.resume() | ||
}) | ||
} | ||
}) |
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.