From d173fcdfa3ad6f6aee721c8553f25f4db38fa302 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:06:19 +0200 Subject: [chore] Convert some settings / admin panel JS to TypeScript (#2247) * initial conversion of STUFF to typescript * more stuff * update babel deps, include commonjs transform * update bundler & eslint configuration * eslint --fix * upgrade deps * update docs, build stuff, peripheral stuff --------- Co-authored-by: f0x --- web/source/settings/admin/federation/detail.js | 2 -- .../settings/admin/federation/import-export/export-format-table.jsx | 2 -- web/source/settings/admin/federation/import-export/form.jsx | 2 -- web/source/settings/admin/federation/import-export/index.jsx | 2 -- web/source/settings/admin/federation/import-export/process.jsx | 2 -- web/source/settings/admin/federation/index.js | 2 -- web/source/settings/admin/federation/overview.js | 2 -- 7 files changed, 14 deletions(-) (limited to 'web/source/settings/admin/federation') diff --git a/web/source/settings/admin/federation/detail.js b/web/source/settings/admin/federation/detail.js index a3bbfcac1..7bdee66cf 100644 --- a/web/source/settings/admin/federation/detail.js +++ b/web/source/settings/admin/federation/detail.js @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const { useRoute, Redirect, useLocation } = require("wouter"); diff --git a/web/source/settings/admin/federation/import-export/export-format-table.jsx b/web/source/settings/admin/federation/import-export/export-format-table.jsx index 062a169a4..7fcffa348 100644 --- a/web/source/settings/admin/federation/import-export/export-format-table.jsx +++ b/web/source/settings/admin/federation/import-export/export-format-table.jsx @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); module.exports = function ExportFormatTable() { diff --git a/web/source/settings/admin/federation/import-export/form.jsx b/web/source/settings/admin/federation/import-export/form.jsx index a6967b8f0..2086739e3 100644 --- a/web/source/settings/admin/federation/import-export/form.jsx +++ b/web/source/settings/admin/federation/import-export/form.jsx @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const query = require("../../../lib/query"); diff --git a/web/source/settings/admin/federation/import-export/index.jsx b/web/source/settings/admin/federation/import-export/index.jsx index 7126b4e89..bff14b939 100644 --- a/web/source/settings/admin/federation/import-export/index.jsx +++ b/web/source/settings/admin/federation/import-export/index.jsx @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const { Switch, Route, Redirect, useLocation } = require("wouter"); diff --git a/web/source/settings/admin/federation/import-export/process.jsx b/web/source/settings/admin/federation/import-export/process.jsx index b78dc8ed9..b39410605 100644 --- a/web/source/settings/admin/federation/import-export/process.jsx +++ b/web/source/settings/admin/federation/import-export/process.jsx @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const query = require("../../../lib/query"); diff --git a/web/source/settings/admin/federation/index.js b/web/source/settings/admin/federation/index.js index 081d34113..ec536c0be 100644 --- a/web/source/settings/admin/federation/index.js +++ b/web/source/settings/admin/federation/index.js @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const { Switch, Route } = require("wouter"); diff --git a/web/source/settings/admin/federation/overview.js b/web/source/settings/admin/federation/overview.js index 626794455..c09289284 100644 --- a/web/source/settings/admin/federation/overview.js +++ b/web/source/settings/admin/federation/overview.js @@ -17,8 +17,6 @@ along with this program. If not, see . */ -"use strict"; - const React = require("react"); const { Link, useLocation } = require("wouter"); const { matchSorter } = require("match-sorter"); -- cgit v1.2.3