Skip to content

Commit

Permalink
rm imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen committed May 22, 2024
1 parent 5129878 commit 48d486d
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ROUTE_IMPORTS } from "../routes"
import { SETTINGS_IMPORTS } from "../settings"
import { INJECTION_ZONES } from "../widgets"
import { getWidgetImport, id, resolve } from "./utils"

Expand All @@ -11,10 +10,6 @@ const VIRTUAL_ROUTE_MODULES = ROUTE_IMPORTS.map((route) => {
return id(route)
})

const VIRTUAL_SETTING_MODULES = SETTINGS_IMPORTS.map((setting) => {
return id(setting)
})

/**
* All virtual modules that are used in the admin panel. Virtual modules are used
* to inject custom widgets, routes and settings. A virtual module is imported using
Expand All @@ -28,7 +23,6 @@ const VIRTUAL_SETTING_MODULES = SETTINGS_IMPORTS.map((setting) => {
export const VIRTUAL_MODULES = [
...VIRTUAL_WIDGET_MODULES,
...VIRTUAL_ROUTE_MODULES,
...VIRTUAL_SETTING_MODULES,
]

/**
Expand All @@ -44,10 +38,3 @@ export const RESOLVED_WIDGET_MODULES = VIRTUAL_WIDGET_MODULES.map((id) => {
export const RESOLVED_ROUTE_MODULES = VIRTUAL_ROUTE_MODULES.map((id) => {
return resolve(id)
})

/**
* Reolved paths to all virtual setting modules.
*/
export const RESOLVED_SETTING_MODULES = VIRTUAL_SETTING_MODULES.map((id) => {
return resolve(id)
})

0 comments on commit 48d486d

Please sign in to comment.