Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nuxt/icon
/ functions
Functions
74 in github.com/nuxt/icon
⨍
Functions
74
◇
Types & classes
18
↓ 11 callers
Function
resolveBundleIcons
(options: ResolveBundleIconsOptions)
src/core/bundle.ts:63
↓ 9 callers
Function
appDir
()
test/client-bundle.test.ts:48
↓ 6 callers
Function
NuxtIconBundle
(options: NuxtIconVitePluginOptions = {})
src/vite.ts:95
↓ 6 callers
Method
loadClientBundleCollections
()
src/context.ts:148
↓ 5 callers
Function
createContext
(rootDir: string, workspaceDir: string, icons: string[], hookIcons: string[] = [])
test/client-bundle.test.ts:30
↓ 5 callers
Function
generateClientBundleCode
( collections: IconifyJSON[], options: GenerateClientBundleOptions = {}, )
src/core/bundle.ts:213
↓ 4 callers
Function
addIcon
(prefix: string, name: string, data: IconifyIcon)
src/core/bundle.ts:115
↓ 4 callers
Function
buildFixture
(plugin: ReturnType<typeof NuxtIconBundle>)
test/vite-plugin.test.ts:56
↓ 4 callers
Method
extractFromCode
( code: string, set: Set<string>, )
src/core/scan.ts:33
↓ 4 callers
Function
getResolvePaths
(nuxt: Nuxt)
src/collections.ts:3
↓ 3 callers
Function
loadCustomCollection
( collection: IconifyJSON | CustomCollection, rootDir: string, )
src/core/collections.ts:39
↓ 3 callers
Method
loadCustomCollection
(force = false)
src/context.ts:125
↓ 3 callers
Function
loadIcon
(name: string, timeout: number)
src/runtime/components/shared.ts:17
↓ 2 callers
Function
emptyDir
()
test/client-bundle.test.ts:50
↓ 2 callers
Function
getCSS
(icon: IconifyIcon, withLayer = true)
src/runtime/components/css.ts:111
↓ 2 callers
Function
getCollectionPath
(collection: string, resolvePaths: string[])
src/core/collections.ts:30
↓ 2 callers
Function
getKnownIconClasses
()
src/integrations/unocss.ts:13
↓ 2 callers
Function
hasFullCollection
(resolvePaths: string[])
src/core/collections.ts:13
↓ 2 callers
Function
installCollection
(dir: string, prefix: string, icon: string)
test/vite-plugin.test.ts:9
↓ 2 callers
Function
installCollection
(dir: string, prefix: string, icon: string)
test/client-bundle.test.ts:8
↓ 2 callers
Function
installCollection
(dir: string, prefix: string, icon: string)
test/bundle.test.ts:9
↓ 2 callers
Function
markUnresolved
(icon: string)
src/core/bundle.ts:130
↓ 2 callers
Function
mountCSS
(icon: IconifyIcon)
src/runtime/components/css.ts:131
↓ 2 callers
Function
resolveCustomizeFn
( customize: IconifyIconCustomizeCallback | boolean | null | undefined, globalCustomize: IconifyIconCustom
src/runtime/components/shared.ts:71
↓ 2 callers
Method
resolveServerBundle
()
src/context.ts:55
↓ 2 callers
Method
scanFiles
( cwd: string | string[], set: Set<string> = new Set(), )
src/core/scan.ts:48
↓ 2 callers
Function
useResolvedName
(getName: () => string)
src/runtime/components/shared.ts:48
↓ 2 callers
Function
wsDir
()
test/client-bundle.test.ts:49
↓ 1 callers
Method
_loadCustomCollection
()
src/context.ts:141
↓ 1 callers
Method
_resolveServerBundle
()
src/context.ts:67
↓ 1 callers
Function
createMatchRegex
( collections: string[] | Set<string>, )
src/core/scan.ts:78
↓ 1 callers
Function
discoverInstalledCollections
(resolvePaths: string[])
src/core/collections.ts:123
↓ 1 callers
Function
escapeCssSelector
(selector: string)
src/runtime/components/css.ts:16
↓ 1 callers
Function
filter
(selector: string)
src/runtime/components/css.ts:26
↓ 1 callers
Function
getAllSelectors
()
src/runtime/components/css.ts:20
↓ 1 callers
Function
getIcon
(name: string)
src/runtime/components/css.ts:96
↓ 1 callers
Function
getInstallCommand
(pkg: string)
src/runtime/server/api.ts:15
↓ 1 callers
Function
getRemoteEndpoint
(name: string)
src/bundle-server.ts:30
↓ 1 callers
Method
getRuntimeCollections
(runtimeOptions: NuxtIconRuntimeOptions)
src/context.ts:28
↓ 1 callers
Function
iconifyScopeDirs
* Returns the `@iconify-json` scope directory inside every `node_modules`, * deduped, walking up the tree like the Node resolver.
src/core/collections.ts:164
↓ 1 callers
Method
isFileMatch
(path: string)
src/core/scan.ts:44
↓ 1 callers
Function
load
(id)
src/vite.ts:138
↓ 1 callers
Function
loadCollection
(prefix: string)
src/core/bundle.ts:98
↓ 1 callers
Function
loadCustomCollections
()
src/vite.ts:111
↓ 1 callers
Function
parseCustomCollection
( collection: CustomCollection, rootDir: string, )
src/core/collections.ts:53
↓ 1 callers
Function
registerClientBundle
( ctx: NuxtIconModuleContext, )
src/bundle-client.ts:5
↓ 1 callers
Function
registerServerBundle
( ctx: NuxtIconModuleContext, )
src/bundle-server.ts:7
↓ 1 callers
Function
resolveCollection
( collection: string | IconifyJSON | CustomCollection | RemoteCollection, rootDir: string, )
src/core/collections.ts:17
↓ 1 callers
Function
resolveId
(id)
src/vite.ts:131
↓ 1 callers
Function
scanCssRules
(rules: CSSRuleList)
src/runtime/components/css.ts:35
↓ 1 callers
Method
setNitroPreset
(preset: string | undefined)
src/context.ts:51
↓ 1 callers
Function
setupCustomCollectionsWatcher
(options: ModuleOptions, nuxt: Nuxt, ctx: NuxtIconModuleContext)
src/module.ts:182
↓ 1 callers
Function
unocssIntegration
(nuxt: Nuxt, options: ModuleOptions)
src/integrations/unocss.ts:10
Method
'icon:clientBundleIcons'
(icons: Set<string>)
src/types.ts:62
Method
'icon:serverKnownCssClasses'
(selectors: string[])
src/types.ts:61
Function
configResolved
(config)
src/vite.ts:122
Function
configureServer
(server)
src/module.ts:193
Function
configureServer
(_server)
src/vite.ts:127
Method
constructor
( public readonly nuxt: Nuxt, public readonly options: ModuleOptions, )
src/context.ts:19
Method
constructor
(scanOptions: ClientBundleScanOptions | true)
src/core/scan.ts:12
Function
customIconLoader
(icons: string[], prefix: string)
src/runtime/plugin.ts:33
Function
generateBundle
()
src/integrations/unocss.ts:35
Function
get
()
src/integrations/unocss.ts:51
Function
getContents
()
src/bundle-server.ts:16
Function
getContents
()
src/bundle-client.ts:16
Function
getKey
(event: H3Event)
src/runtime/server/api.ts:75
Function
handleHotUpdate
({ file, read })
src/vite.ts:196
Function
normalizeIconName
(icon: string)
src/core/bundle.ts:54
Function
resolveId
(id: string)
src/module.ts:141
Function
setup
(options, nuxt)
src/module.ts:51
Function
setup
()
src/runtime/plugin.ts:8
Function
setup
(props, { slots })
src/runtime/components/svg.ts:22
Function
setup
(props, { slots })
src/runtime/components/index.ts:34
Function
setup
(props)
src/runtime/components/css.ts:82