diff --git a/web/app/components/document/sidebar.ts b/web/app/components/document/sidebar.ts index 05a6d1fa3..5da3db2fc 100644 --- a/web/app/components/document/sidebar.ts +++ b/web/app/components/document/sidebar.ts @@ -14,7 +14,7 @@ import cleanString from "hermes/utils/clean-string"; import { debounce } from "@ember/runloop"; import FetchService from "hermes/services/fetch"; import RouterService from "@ember/routing/router-service"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import FlashMessageService from "ember-cli-flash/services/flash-messages"; import { AuthenticatedUser } from "hermes/services/authenticated-user"; import { HermesDocument, HermesUser } from "hermes/types/document"; diff --git a/web/app/components/header/nav.ts b/web/app/components/header/nav.ts index a40f1e6e5..f2b477151 100644 --- a/web/app/components/header/nav.ts +++ b/web/app/components/header/nav.ts @@ -2,7 +2,7 @@ import Component from "@glimmer/component"; import { inject as service } from "@ember/service"; import { action } from "@ember/object"; import ConfigService from "hermes/services/config"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import RouterService from "@ember/routing/router-service"; import AuthenticatedUserService, { AuthenticatedUser, diff --git a/web/app/controllers/authenticate.ts b/web/app/controllers/authenticate.ts index 13dcd2b47..ad97aae77 100644 --- a/web/app/controllers/authenticate.ts +++ b/web/app/controllers/authenticate.ts @@ -1,6 +1,6 @@ import Controller from "@ember/controller"; import { inject as service } from "@ember/service"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import { dropTask } from "ember-concurrency"; export default class AuthenticateController extends Controller { diff --git a/web/app/helpers/dasherize.ts b/web/app/helpers/_dasherize.ts similarity index 100% rename from web/app/helpers/dasherize.ts rename to web/app/helpers/_dasherize.ts diff --git a/web/app/helpers/lowercase.ts b/web/app/helpers/_lowercase.ts similarity index 100% rename from web/app/helpers/lowercase.ts rename to web/app/helpers/_lowercase.ts diff --git a/web/app/helpers/dasherize.js b/web/app/helpers/dasherize.js new file mode 100644 index 000000000..4e425dfd7 --- /dev/null +++ b/web/app/helpers/dasherize.js @@ -0,0 +1,2 @@ +export { default } from "./_dasherize"; +export * from "./_dasherize"; diff --git a/web/app/helpers/lowercase.js b/web/app/helpers/lowercase.js new file mode 100644 index 000000000..e0ff5c48d --- /dev/null +++ b/web/app/helpers/lowercase.js @@ -0,0 +1,2 @@ +export { default } from "./_lowercase"; +export * from "./_lowercase"; diff --git a/web/app/metrics-adapters/google-analytics-four.ts b/web/app/metrics-adapters/_google-analytics-four.ts similarity index 100% rename from web/app/metrics-adapters/google-analytics-four.ts rename to web/app/metrics-adapters/_google-analytics-four.ts diff --git a/web/app/metrics-adapters/google-analytics-four.js b/web/app/metrics-adapters/google-analytics-four.js new file mode 100644 index 000000000..1152d7a47 --- /dev/null +++ b/web/app/metrics-adapters/google-analytics-four.js @@ -0,0 +1,2 @@ +export { default } from "./_google-analytics-four"; +export * from "./_google-analytics-four"; diff --git a/web/app/routes/application.ts b/web/app/routes/application.ts index b2fc5597e..357940912 100644 --- a/web/app/routes/application.ts +++ b/web/app/routes/application.ts @@ -4,13 +4,13 @@ import { action } from "@ember/object"; import { inject as service } from "@ember/service"; import ConfigService from "hermes/services/config"; import FetchService from "hermes/services/fetch"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import RouterService from "@ember/routing/router-service"; import window from "ember-window-mock"; -import { REDIRECT_STORAGE_KEY } from "hermes/services/session"; +import { REDIRECT_STORAGE_KEY } from "hermes/services/_session"; import Transition from "@ember/routing/transition"; -import MetricsService from "hermes/services/metrics"; +import MetricsService from "hermes/services/_metrics"; export default class ApplicationRoute extends Route { @service declare config: ConfigService; diff --git a/web/app/routes/authenticate.ts b/web/app/routes/authenticate.ts index ffa9dce6f..2a4e3b6c6 100644 --- a/web/app/routes/authenticate.ts +++ b/web/app/routes/authenticate.ts @@ -2,7 +2,7 @@ import Route from "@ember/routing/route"; import { inject as service } from "@ember/service"; import ConfigService from "hermes/services/config"; import RouterService from "@ember/routing/router-service"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; export default class AuthenticateRoute extends Route { @service("config") declare configSvc: ConfigService; diff --git a/web/app/routes/authenticated.ts b/web/app/routes/authenticated.ts index 15b204d39..91b78f25b 100644 --- a/web/app/routes/authenticated.ts +++ b/web/app/routes/authenticated.ts @@ -2,7 +2,7 @@ import Route from "@ember/routing/route"; import { inject as service } from "@ember/service"; import AuthenticatedUserService from "hermes/services/authenticated-user"; import ConfigService from "hermes/services/config"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; export default class AuthenticatedRoute extends Route { @service("config") declare configSvc: ConfigService; diff --git a/web/app/routes/authenticated/dashboard.ts b/web/app/routes/authenticated/dashboard.ts index 6ceb5420b..c03bd026c 100644 --- a/web/app/routes/authenticated/dashboard.ts +++ b/web/app/routes/authenticated/dashboard.ts @@ -4,7 +4,7 @@ import AlgoliaService from "hermes/services/algolia"; import ConfigService from "hermes/services/config"; import FetchService from "hermes/services/fetch"; import RecentlyViewedDocsService from "hermes/services/recently-viewed-docs"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import AuthenticatedUserService from "hermes/services/authenticated-user"; // @ts-ignore - Not yet typed diff --git a/web/app/services/metrics.ts b/web/app/services/_metrics.ts similarity index 97% rename from web/app/services/metrics.ts rename to web/app/services/_metrics.ts index ef4c9590c..0e3dd5b2b 100644 --- a/web/app/services/metrics.ts +++ b/web/app/services/_metrics.ts @@ -2,7 +2,7 @@ import { getOwner, setOwner } from "@ember/application"; import { assert } from "@ember/debug"; import { inject as service } from "@ember/service"; import EmberMetricsService from "ember-metrics/services/metrics"; -import GoogleAnalyticsFourAdapter from "hermes/metrics-adapters/google-analytics-four"; +import GoogleAnalyticsFourAdapter from "hermes/metrics-adapters/_google-analytics-four"; import ConfigService from "./config"; export default class MetricsService extends EmberMetricsService { diff --git a/web/app/services/session.ts b/web/app/services/_session.ts similarity index 100% rename from web/app/services/session.ts rename to web/app/services/_session.ts diff --git a/web/app/services/algolia.ts b/web/app/services/algolia.ts index 8dbe700a2..84be396a3 100644 --- a/web/app/services/algolia.ts +++ b/web/app/services/algolia.ts @@ -14,7 +14,7 @@ import { FacetRecord, FacetRecords, } from "hermes/types/facets"; -import SessionService from "./session"; +import SessionService from "./_session"; export const HITS_PER_PAGE = 12; export const MAX_VALUES_PER_FACET = 100; diff --git a/web/app/services/authenticated-user.ts b/web/app/services/authenticated-user.ts index 2ea2cdbec..643a73163 100644 --- a/web/app/services/authenticated-user.ts +++ b/web/app/services/authenticated-user.ts @@ -5,7 +5,7 @@ import Store from "@ember-data/store"; import { assert } from "@ember/debug"; import { task } from "ember-concurrency"; import FetchService from "hermes/services/fetch"; -import SessionService from "./session"; +import SessionService from "./_session"; export interface AuthenticatedUser { name: string; diff --git a/web/app/services/fetch.ts b/web/app/services/fetch.ts index 16e203f6e..02e6dc28b 100644 --- a/web/app/services/fetch.ts +++ b/web/app/services/fetch.ts @@ -2,7 +2,7 @@ import Service from "@ember/service"; import fetch from "fetch"; import { inject as service } from "@ember/service"; import ConfigService from "hermes/services/config"; -import SessionService from "./session"; +import SessionService from "./_session"; interface FetchOptions { method?: string; diff --git a/web/app/services/metrics.js b/web/app/services/metrics.js new file mode 100644 index 000000000..4ddda939f --- /dev/null +++ b/web/app/services/metrics.js @@ -0,0 +1,2 @@ +export { default } from "./_metrics"; +export * from "./_metrics"; diff --git a/web/app/services/session.js b/web/app/services/session.js new file mode 100644 index 000000000..4197f4e5f --- /dev/null +++ b/web/app/services/session.js @@ -0,0 +1,2 @@ +export { default } from "./_session"; +export * from "./_session"; diff --git a/web/tests/acceptance/application-test.ts b/web/tests/acceptance/application-test.ts index 1cb8f7937..f34512f49 100644 --- a/web/tests/acceptance/application-test.ts +++ b/web/tests/acceptance/application-test.ts @@ -6,7 +6,7 @@ import { invalidateSession, } from "ember-simple-auth/test-support"; import { MirageTestContext, setupMirage } from "ember-cli-mirage/test-support"; -import SessionService from "hermes/services/session"; +import SessionService from "hermes/services/_session"; import { TEST_SUPPORT_URL } from "hermes/utils/hermes-urls"; module("Acceptance | application", function (hooks) { diff --git a/web/tests/unit/services/session-test.ts b/web/tests/unit/services/session-test.ts index 80608fa52..8effea843 100644 --- a/web/tests/unit/services/session-test.ts +++ b/web/tests/unit/services/session-test.ts @@ -1,6 +1,6 @@ import { module, test } from "qunit"; import { setupTest } from "ember-qunit"; -import { REDIRECT_STORAGE_KEY, isJSON } from "hermes/services/session"; +import { REDIRECT_STORAGE_KEY, isJSON } from "hermes/services/_session"; import window from "ember-window-mock"; const TEST_STORAGE_KEY = `test-${REDIRECT_STORAGE_KEY}`;