mirror of
https://github.com/AIPexStudio/AIPex.git
synced 2026-05-13 18:51:35 +00:00
refactor: streamline website URL exports and clean up imports
- Moved website URL helper exports to a more appropriate location for better organization. - Removed redundant imports in `version-checker.ts` to enhance clarity and maintainability. - Improved overall code structure by consolidating related exports in the `index.ts` file.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
// Web authentication
|
||||
|
||||
// Website URL helpers
|
||||
export {
|
||||
buildWebsiteUrl,
|
||||
isWebsiteDomain,
|
||||
WEBSITE_HOST,
|
||||
WEBSITE_ORIGIN,
|
||||
} from "../config/website";
|
||||
// Sound effects
|
||||
export {
|
||||
playSoundEffect,
|
||||
@@ -50,10 +57,3 @@ export {
|
||||
hasAuthCookies,
|
||||
WEBSITE_URL,
|
||||
} from "./web-auth";
|
||||
// Website URL helpers
|
||||
export {
|
||||
buildWebsiteUrl,
|
||||
isWebsiteDomain,
|
||||
WEBSITE_HOST,
|
||||
WEBSITE_ORIGIN,
|
||||
} from "../config/website";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Checks the current extension version against the latest version from the server
|
||||
*/
|
||||
|
||||
import { buildWebsiteUrl, WEBSITE_URL } from "../config/website";
|
||||
import { buildWebsiteUrl } from "../config/website";
|
||||
|
||||
export interface VersionInfo {
|
||||
version: string;
|
||||
|
||||
Reference in New Issue
Block a user