From fe34af29d3d26c049b670348533ececec3f1d045 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 15 Nov 2022 15:42:22 -0500 Subject: [PATCH] Rename files (10): service-worker + storage --- app/soapbox/actions/auth.ts | 2 +- app/soapbox/actions/instance.ts | 2 +- app/soapbox/actions/me.ts | 2 +- app/soapbox/actions/soapbox.ts | 2 +- app/soapbox/components/error-boundary.tsx | 2 +- app/soapbox/reducers/auth.js | Bin 10734 -> 10734 bytes app/soapbox/reducers/instance.ts | 2 +- app/soapbox/reducers/soapbox.js | Bin 2027 -> 2027 bytes app/soapbox/service-worker/entry.ts | 1 + .../web-push-locales.js} | Bin .../web-push-notifications.ts} | 2 +- app/soapbox/service_worker/entry.ts | 1 - .../storage/{kv_store.ts => kv-store.ts} | 0 13 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 app/soapbox/service-worker/entry.ts rename app/soapbox/{service_worker/web_push_locales.js => service-worker/web-push-locales.js} (100%) rename app/soapbox/{service_worker/web_push_notifications.ts => service-worker/web-push-notifications.ts} (99%) delete mode 100644 app/soapbox/service_worker/entry.ts rename app/soapbox/storage/{kv_store.ts => kv-store.ts} (100%) diff --git a/app/soapbox/actions/auth.ts b/app/soapbox/actions/auth.ts index 5a686d0457..25b3f21962 100644 --- a/app/soapbox/actions/auth.ts +++ b/app/soapbox/actions/auth.ts @@ -16,7 +16,7 @@ import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth'; import { startOnboarding } from 'soapbox/actions/onboarding'; import snackbar from 'soapbox/actions/snackbar'; import { custom } from 'soapbox/custom'; -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import { getLoggedInAccount, parseBaseURL } from 'soapbox/utils/auth'; import sourceCode from 'soapbox/utils/code'; import { getFeatures } from 'soapbox/utils/features'; diff --git a/app/soapbox/actions/instance.ts b/app/soapbox/actions/instance.ts index 151ad3672c..ca1fc3ef5e 100644 --- a/app/soapbox/actions/instance.ts +++ b/app/soapbox/actions/instance.ts @@ -1,7 +1,7 @@ import { createAsyncThunk } from '@reduxjs/toolkit'; import get from 'lodash/get'; -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import { RootState } from 'soapbox/store'; import { getAuthUserUrl } from 'soapbox/utils/auth'; import { parseVersion } from 'soapbox/utils/features'; diff --git a/app/soapbox/actions/me.ts b/app/soapbox/actions/me.ts index e76399d21c..17beae21d8 100644 --- a/app/soapbox/actions/me.ts +++ b/app/soapbox/actions/me.ts @@ -1,4 +1,4 @@ -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import { getAuthUserId, getAuthUserUrl } from 'soapbox/utils/auth'; import api from '../api'; diff --git a/app/soapbox/actions/soapbox.ts b/app/soapbox/actions/soapbox.ts index 89d3080d83..725ff1ae31 100644 --- a/app/soapbox/actions/soapbox.ts +++ b/app/soapbox/actions/soapbox.ts @@ -2,7 +2,7 @@ import { createSelector } from 'reselect'; import { getHost } from 'soapbox/actions/instance'; import { normalizeSoapboxConfig } from 'soapbox/normalizers'; -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import { removeVS16s } from 'soapbox/utils/emoji'; import { getFeatures } from 'soapbox/utils/features'; diff --git a/app/soapbox/components/error-boundary.tsx b/app/soapbox/components/error-boundary.tsx index 76adf97284..b4b6d8235e 100644 --- a/app/soapbox/components/error-boundary.tsx +++ b/app/soapbox/components/error-boundary.tsx @@ -6,7 +6,7 @@ import { getSoapboxConfig } from 'soapbox/actions/soapbox'; import * as BuildConfig from 'soapbox/build_config'; import { Text, Stack } from 'soapbox/components/ui'; import { captureException } from 'soapbox/monitoring'; -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import sourceCode from 'soapbox/utils/code'; import { unregisterSw } from 'soapbox/utils/sw'; diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 2f0c773cd55ccd74246e3c2f8a35b5455f260057..55b9fd3aeb00e18172ea63ae91beb55f39be3f68 100644 GIT binary patch delta 14 VcmaDC{4RKdFe9VxW)a3)8UQX>1wQ}) delta 14 VcmaDC{4RKdFe799W)a3)8UQbZ1#tiX diff --git a/app/soapbox/reducers/instance.ts b/app/soapbox/reducers/instance.ts index 4c1456dc4d..bf3c47463a 100644 --- a/app/soapbox/reducers/instance.ts +++ b/app/soapbox/reducers/instance.ts @@ -3,7 +3,7 @@ import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable'; import { ADMIN_CONFIG_UPDATE_REQUEST, ADMIN_CONFIG_UPDATE_SUCCESS } from 'soapbox/actions/admin'; import { PLEROMA_PRELOAD_IMPORT } from 'soapbox/actions/preload'; import { normalizeInstance } from 'soapbox/normalizers/instance'; -import KVStore from 'soapbox/storage/kv_store'; +import KVStore from 'soapbox/storage/kv-store'; import { ConfigDB } from 'soapbox/utils/config_db'; import { diff --git a/app/soapbox/reducers/soapbox.js b/app/soapbox/reducers/soapbox.js index 0affe2e3638956ed7c937dda31ee81fb367f1cd7..0cd8ed9b496e06d55a797ee2fd3a41411cf96cc9 100644 GIT binary patch delta 12 TcmaFO|C)coVn*GKOWfH3B#Q+3 delta 12 TcmaFO|C)coV#fH5OWfH3C4~hm diff --git a/app/soapbox/service-worker/entry.ts b/app/soapbox/service-worker/entry.ts new file mode 100644 index 0000000000..3dbfee2ced --- /dev/null +++ b/app/soapbox/service-worker/entry.ts @@ -0,0 +1 @@ +import './web-push-notifications'; diff --git a/app/soapbox/service_worker/web_push_locales.js b/app/soapbox/service-worker/web-push-locales.js similarity index 100% rename from app/soapbox/service_worker/web_push_locales.js rename to app/soapbox/service-worker/web-push-locales.js diff --git a/app/soapbox/service_worker/web_push_notifications.ts b/app/soapbox/service-worker/web-push-notifications.ts similarity index 99% rename from app/soapbox/service_worker/web_push_notifications.ts rename to app/soapbox/service-worker/web-push-notifications.ts index 787e609419..c1da2b67d0 100644 --- a/app/soapbox/service_worker/web_push_notifications.ts +++ b/app/soapbox/service-worker/web-push-notifications.ts @@ -2,7 +2,7 @@ import IntlMessageFormat from 'intl-messageformat'; import 'intl-pluralrules'; import unescape from 'lodash/unescape'; -import locales from './web_push_locales'; +import locales from './web-push-locales'; import type { Account as AccountEntity, diff --git a/app/soapbox/service_worker/entry.ts b/app/soapbox/service_worker/entry.ts deleted file mode 100644 index 364b670660..0000000000 --- a/app/soapbox/service_worker/entry.ts +++ /dev/null @@ -1 +0,0 @@ -import './web_push_notifications'; diff --git a/app/soapbox/storage/kv_store.ts b/app/soapbox/storage/kv-store.ts similarity index 100% rename from app/soapbox/storage/kv_store.ts rename to app/soapbox/storage/kv-store.ts