From 53f881749804c2e4199d21898363f7a8f3639001 Mon Sep 17 00:00:00 2001 From: "YUKI \"Piro\" Hiroshi" Date: Fri, 18 Oct 2024 12:36:39 +0900 Subject: [PATCH] Use more meaningful file name for confirmation dialog --- src/web/app.js | 2 +- src/web/{dialog.css => confirm.css} | 0 src/web/{dialog.html => confirm.html} | 2 +- src/web/{dialog.js => confirm.js} | 0 webpack.config.js | 8 ++++---- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/web/{dialog.css => confirm.css} (100%) rename src/web/{dialog.html => confirm.html} (98%) rename src/web/{dialog.js => confirm.js} (100%) diff --git a/src/web/app.js b/src/web/app.js index 9d7af3a..a5cda18 100644 --- a/src/web/app.js +++ b/src/web/app.js @@ -225,7 +225,7 @@ async function tryConfirm(data, asyncContext) { } const { status, asyncContext: updatedAsyncContext } = await openDialog({ - url: window.location.origin + "/dialog.html", + url: window.location.origin + "/confirm.html", data, asyncContext, height: Math.min(60, charsToPercentage(50, screen.availHeight)), diff --git a/src/web/dialog.css b/src/web/confirm.css similarity index 100% rename from src/web/dialog.css rename to src/web/confirm.css diff --git a/src/web/dialog.html b/src/web/confirm.html similarity index 98% rename from src/web/dialog.html rename to src/web/confirm.html index 5c008e5..81808f3 100644 --- a/src/web/dialog.html +++ b/src/web/confirm.html @@ -6,7 +6,7 @@ - +
diff --git a/src/web/dialog.js b/src/web/confirm.js similarity index 100% rename from src/web/dialog.js rename to src/web/confirm.js diff --git a/webpack.config.js b/webpack.config.js index d1b662e..fbc1686 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,7 @@ module.exports = async (env, options) => { entry: { polyfill: ["core-js/stable", "regenerator-runtime/runtime"], app: ["./src/web/app.js"], - dialog: ["./src/web/dialog.js"], + confirm: ["./src/web/confirm.js"], "count-down": ["./src/web/count-down.js"], }, output: { @@ -83,9 +83,9 @@ module.exports = async (env, options) => { ], }), new HtmlWebpackPlugin({ - filename: "dialog.html", - template: "./src/web/dialog.html", - chunks: ["polyfill", "dialog"], + filename: "confirm.html", + template: "./src/web/confirm.html", + chunks: ["polyfill", "confirm"], }), new HtmlWebpackPlugin({ filename: "count-down.html",