diff options
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/common/login/captcha.ts (renamed from src/scripts/login/index.ts) | 2 | ||||
| -rw-r--r-- | src/scripts/common/login/index.ts | 1 | ||||
| -rw-r--r-- | src/scripts/common/stop-blocking.ts (renamed from src/scripts/stop-blocking.ts) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/application-receipt/captcha.ts (renamed from src/scripts/captcha/application-receipt.ts) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/application-receipt/index.ts | 1 | ||||
| -rw-r--r-- | src/scripts/pages/know-your-property/captcha.ts (renamed from src/scripts/captcha/know-your-property.ts) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/know-your-property/index.ts | 1 | ||||
| -rw-r--r-- | src/scripts/pages/mutation-application/download-button.ts (renamed from src/scripts/functionality/mutation-application.ts) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/mutation-application/index.ts | 1 | ||||
| -rw-r--r-- | src/scripts/pages/sheet-map/download-map-pdf-page-content.html (renamed from src/scripts/functionality/sheet-map/download-map-pdf-page-content.html) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/sheet-map/index.ts (renamed from src/scripts/functionality/sheet-map/index.ts) | 8 | ||||
| -rw-r--r-- | src/scripts/pages/sheet-map/map-plot-number-label-text-element.html (renamed from src/scripts/functionality/sheet-map/map-plot-number-label-text-element.html) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/sheet-map/map-plot-polygon-path-element.html (renamed from src/scripts/functionality/sheet-map/map-plot-polygon-path-element.html) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/sheet-map/plot-information-element.html (renamed from src/scripts/functionality/sheet-map/plot-information-element.html) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/view-khatian/download-information-pdf-page-content.html (renamed from src/scripts/functionality/view-khatian/download-information-pdf-page-content.html) | 0 | ||||
| -rw-r--r-- | src/scripts/pages/view-khatian/index.ts (renamed from src/scripts/functionality/view-khatian/index.ts) | 2 |
16 files changed, 10 insertions, 6 deletions
diff --git a/src/scripts/login/index.ts b/src/scripts/common/login/captcha.ts index ebea7ec..73e8995 100644 --- a/src/scripts/login/index.ts +++ b/src/scripts/common/login/captcha.ts @@ -9,7 +9,7 @@ import { observeDOM } from "@/shared/observe-dom"; * @param width - Canvas width in pixels. * @param height - Canvas height in pixels. */ -function prepareCaptcha(ctx: CanvasRenderingContext2D, width: number, height: number) { +export function prepareCaptcha(ctx: CanvasRenderingContext2D, width: number, height: number) { const imgData = ctx.getImageData(0, 0, width, height); const data = imgData.data; const radius = 1; diff --git a/src/scripts/common/login/index.ts b/src/scripts/common/login/index.ts new file mode 100644 index 0000000..17e2117 --- /dev/null +++ b/src/scripts/common/login/index.ts @@ -0,0 +1 @@ +import "@/scripts/login/captcha"; diff --git a/src/scripts/stop-blocking.ts b/src/scripts/common/stop-blocking.ts index 3fa3de6..3fa3de6 100644 --- a/src/scripts/stop-blocking.ts +++ b/src/scripts/common/stop-blocking.ts diff --git a/src/scripts/captcha/application-receipt.ts b/src/scripts/pages/application-receipt/captcha.ts index c5bb657..c5bb657 100644 --- a/src/scripts/captcha/application-receipt.ts +++ b/src/scripts/pages/application-receipt/captcha.ts diff --git a/src/scripts/pages/application-receipt/index.ts b/src/scripts/pages/application-receipt/index.ts new file mode 100644 index 0000000..5a8d0a6 --- /dev/null +++ b/src/scripts/pages/application-receipt/index.ts @@ -0,0 +1 @@ +import "@/scripts/pages/application-receipt/captcha"; diff --git a/src/scripts/captcha/know-your-property.ts b/src/scripts/pages/know-your-property/captcha.ts index 3abdf08..3abdf08 100644 --- a/src/scripts/captcha/know-your-property.ts +++ b/src/scripts/pages/know-your-property/captcha.ts diff --git a/src/scripts/pages/know-your-property/index.ts b/src/scripts/pages/know-your-property/index.ts new file mode 100644 index 0000000..d4d7f63 --- /dev/null +++ b/src/scripts/pages/know-your-property/index.ts @@ -0,0 +1 @@ +import "@/scripts/pages/know-your-property/captcha"; diff --git a/src/scripts/functionality/mutation-application.ts b/src/scripts/pages/mutation-application/download-button.ts index 9503e00..9503e00 100644 --- a/src/scripts/functionality/mutation-application.ts +++ b/src/scripts/pages/mutation-application/download-button.ts diff --git a/src/scripts/pages/mutation-application/index.ts b/src/scripts/pages/mutation-application/index.ts new file mode 100644 index 0000000..93e07ad --- /dev/null +++ b/src/scripts/pages/mutation-application/index.ts @@ -0,0 +1 @@ +import "@/scripts/pages/mutation-application/download-button"; diff --git a/src/scripts/functionality/sheet-map/download-map-pdf-page-content.html b/src/scripts/pages/sheet-map/download-map-pdf-page-content.html index da765ec..da765ec 100644 --- a/src/scripts/functionality/sheet-map/download-map-pdf-page-content.html +++ b/src/scripts/pages/sheet-map/download-map-pdf-page-content.html diff --git a/src/scripts/functionality/sheet-map/index.ts b/src/scripts/pages/sheet-map/index.ts index a4d7544..a4e45b0 100644 --- a/src/scripts/functionality/sheet-map/index.ts +++ b/src/scripts/pages/sheet-map/index.ts @@ -1,8 +1,8 @@ import { generateWebPage } from "@/shared/generate-web-page"; -import getDownloadMapPDFPageContent from "@/scripts/functionality/sheet-map/download-map-pdf-page-content.html"; -import getMapPlotPolygonPathElement from "@/scripts/functionality/sheet-map/map-plot-polygon-path-element.html"; -import getMapPlotNumberLabelTextElement from "@/scripts/functionality/sheet-map/map-plot-number-label-text-element.html"; -import getPlotInformationElement from "@/scripts/functionality/sheet-map/plot-information-element.html"; +import getDownloadMapPDFPageContent from "@/scripts/pages/sheet-map/download-map-pdf-page-content.html"; +import getMapPlotPolygonPathElement from "@/scripts/pages/sheet-map/map-plot-polygon-path-element.html"; +import getMapPlotNumberLabelTextElement from "@/scripts/pages/sheet-map/map-plot-number-label-text-element.html"; +import getPlotInformationElement from "@/scripts/pages/sheet-map/plot-information-element.html"; interface PlotPolygon { plotArea: number; diff --git a/src/scripts/functionality/sheet-map/map-plot-number-label-text-element.html b/src/scripts/pages/sheet-map/map-plot-number-label-text-element.html index d220367..d220367 100644 --- a/src/scripts/functionality/sheet-map/map-plot-number-label-text-element.html +++ b/src/scripts/pages/sheet-map/map-plot-number-label-text-element.html diff --git a/src/scripts/functionality/sheet-map/map-plot-polygon-path-element.html b/src/scripts/pages/sheet-map/map-plot-polygon-path-element.html index d4d38a6..d4d38a6 100644 --- a/src/scripts/functionality/sheet-map/map-plot-polygon-path-element.html +++ b/src/scripts/pages/sheet-map/map-plot-polygon-path-element.html diff --git a/src/scripts/functionality/sheet-map/plot-information-element.html b/src/scripts/pages/sheet-map/plot-information-element.html index fd740a8..fd740a8 100644 --- a/src/scripts/functionality/sheet-map/plot-information-element.html +++ b/src/scripts/pages/sheet-map/plot-information-element.html diff --git a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html b/src/scripts/pages/view-khatian/download-information-pdf-page-content.html index 129608e..129608e 100644 --- a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html +++ b/src/scripts/pages/view-khatian/download-information-pdf-page-content.html diff --git a/src/scripts/functionality/view-khatian/index.ts b/src/scripts/pages/view-khatian/index.ts index ba721f6..0be0c52 100644 --- a/src/scripts/functionality/view-khatian/index.ts +++ b/src/scripts/pages/view-khatian/index.ts @@ -1,6 +1,6 @@ import { generateWebPage } from "@/shared/generate-web-page"; import { interceptPost } from "@/shared/intercept-jquery-ajax"; -import getDownloadInformationPDFPageContent from "@/scripts/functionality/view-khatian/download-information-pdf-page-content.html"; +import getDownloadInformationPDFPageContent from "@/scripts/pages/view-khatian/download-information-pdf-page-content.html"; const submitButtonElement = $("#khbutton"); const separatorElement = $("#bodycover > div > form > hr:nth-child(2)"); |
