Skip to content

Commit

Permalink
Remove ;
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Nov 26, 2024
1 parent f931771 commit 5ecb278
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/pulse_wire.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/javascript/pulse_wire/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function cacheBustedUrl(urlString) {
}

export async function reloadHtmlDocument() {
let currentUrl = urlWithParams(window.location.href, { pulse_wire: "true" });
let currentUrl = urlWithParams(window.location.href, { pulse_wire: "true" })
const response = await fetch(currentUrl)
const fetchedHTML = await response.text()
const parser = new DOMParser()
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/pulse_wire/logger.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import "./stream_actions"
import { PulseWire } from "./index.js";
import { PulseWire } from "./index.js"

export function log(...args) {
if (PulseWire.config.loggingEnabled) {
console.log(`[pulse_wire]`, ...args);
console.log(`[pulse_wire]`, ...args)
}
}

2 changes: 1 addition & 1 deletion app/javascript/pulse_wire/reloaders/css_reloader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { log } from "../logger.js"
import { reloadHtmlDocument } from "../helpers.js";
import { reloadHtmlDocument } from "../helpers.js"

export class CssReloader {
static async reload(...params) {
Expand Down
6 changes: 3 additions & 3 deletions app/javascript/pulse_wire/reloaders/html_reloader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Idiomorph } from "idiomorph/dist/idiomorph.esm.js"
import { log } from "../logger.js";
import { reloadHtmlDocument } from "../helpers.js";
import { StimulusReloader } from "./stimulus_reloader.js";
import { log } from "../logger.js"
import { reloadHtmlDocument } from "../helpers.js"
import { StimulusReloader } from "./stimulus_reloader.js"

export class HtmlReloader {
static async reload() {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/pulse_wire/reloaders/stimulus_reloader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Application } from "@hotwired/stimulus"
import { log } from "../logger.js"
import { cacheBustedUrl } from "../helpers.js";
import { cacheBustedUrl } from "../helpers.js"

export class StimulusReloader {
static async reload(...params) {
Expand Down Expand Up @@ -54,7 +54,7 @@ export class StimulusReloader {
}

#pathForModuleName(moduleName) {
return this.#stimulusPathsByModule[moduleName];
return this.#stimulusPathsByModule[moduleName]
}

#extractControllerName(path) {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/pulse_wire/stream_actions/reload_css.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Turbo } from "@hotwired/turbo-rails"
import { CssReloader } from "../reloaders/css_reloader.js";
import { nameFromFilePath } from "../helpers.js";
import { CssReloader } from "../reloaders/css_reloader.js"
import { nameFromFilePath } from "../helpers.js"

Turbo.StreamActions.reload_css = function() {
const filePath = nameFromFilePath(this.getAttribute("file_path"))
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/pulse_wire/stream_actions/reload_html.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Turbo } from "@hotwired/turbo-rails"
import { HtmlReloader } from "../reloaders/html_reloader.js";
import { HtmlReloader } from "../reloaders/html_reloader.js"

Turbo.StreamActions.reload_html = function () {
HtmlReloader.reload()
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/pulse_wire/stream_actions/reload_stimulus.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Turbo } from "@hotwired/turbo-rails"
import { StimulusReloader } from "../reloaders/stimulus_reloader.js";
import { nameFromFilePath } from "../helpers.js";
import { StimulusReloader } from "../reloaders/stimulus_reloader.js"
import { nameFromFilePath } from "../helpers.js"

Turbo.StreamActions.reload_stimulus = function () {
const filePath = nameFromFilePath(this.getAttribute("file_path"))
Expand Down

0 comments on commit 5ecb278

Please sign in to comment.