MCPcopy Create free account

hub / github.com/PacktPublishing/Building-Your-Own-JavaScript-Framework / functions

Functions152 in github.com/PacktPublishing/Building-Your-Own-JavaScript-Framework

↓ 15 callersMethoderror
* Logs an error message. * * @param {string} message - The message to log at error level.
chapter7/componium/packages/app/logger.js:62
↓ 13 callersMethodon
* Subscribe to an event. * * @param {string} event - Name of the event. * @param {Function} cb - Callback function.
chapter6/componium-test/packages/browser/emit.js:22
↓ 5 callersMethodcreate
* Bootstraps and configures the server.
chapter7/componium/packages/server/server.js:47
↓ 5 callersFunctionisBrowser
()
chapter6/componium-test/packages/util/env.js:14
↓ 5 callersMethodrender
* Renders a given lit component along with necessary scripts and styles. * * @param {Function} component - The lit component to render. * @pa
chapter7/componium/packages/frontend/renderer.js:37
↓ 4 callersMethodcreateServer
* Creates a new server instance with the given options or default settings. * * @param {object} serverOpts - Configuration options for the serve
chapter7/componium/packages/index.js:50
↓ 4 callersMethodemit
* Emit an event. Calls all subscribed callbacks. * * @param {string} event - Name of the event. * @param {...*} [args] - Arguments to pass to
chapter6/componium-test/packages/browser/emit.js:33
↓ 4 callersMethodlisten
* Start listening for HTTP requests. * * @returns {Object} Server address object.
chapter6/componium-test/packages/browser/server.js:81
↓ 3 callersMethodaddClientView
* Registers a client-side view route.
chapter7/componium/packages/server/server.js:175
↓ 2 callersMethod_updateCommons
()
chapter2/hapi-libs/compression.js:37
↓ 2 callersMethodaddMiddleware
* Registers middleware. * * @param {string} name - Middleware name * @param {function} middleware - Middleware function
chapter7/componium/packages/server/router.js:32
↓ 2 callersMethodaddRoute
* Registers a route handler. * * @param {string} path - Route path * @param {function} handler - Route handler function * @param {string}
chapter7/componium/packages/server/router.js:22
↓ 2 callersMethodclose
* Close the server.
chapter6/componium-test/packages/browser/server.js:89
↓ 2 callersMethodencoding
(response, length)
chapter2/hapi-libs/compression.js:85
↓ 2 callersFunctiongetExitStatus
(result)
chapter6/componium-test/packages/util/env.js:18
↓ 2 callersMethodinfo
* Logs an informational message. * * @param {string} message - The message to log at info level.
chapter7/componium/packages/app/logger.js:44
↓ 2 callersFunctioninitDev
(dirPath)
chapter7/componium/packages/dev/init-dev.js:12
↓ 2 callersMethodinitialize
* Initializes core components of the application such as the logger and database. * * @return {ComponiumApp} Returns the current instance of the
chapter7/componium/packages/index.js:34
↓ 2 callersMethodloadRoute
* Updates the browser URL and displays the matched route template. * * @param {...string} urlSegs - Segments of the URL.
chapter7/componium/packages/frontend/router.js:40
↓ 2 callersMethodmultiply
(x, y)
chapter6/componium-test/fixtures/calculator.js:5
↓ 2 callersFunctionrender
* Render layout using Eta templates. * * @param {Object[]} testFiles - List of test files to include. * @returns {string} Rendered HTML layout.
chapter6/componium-test/packages/browser/render.js:22
↓ 2 callersMethodupdate
()
chapter7/componium/tests/sample/views/checker.old.js:24
↓ 2 callersMethodupdate
()
chapter7/componium/tests/basic-components/script.js:28
↓ 2 callersMethodwarn
* Logs a warning message. * * @param {string} message - The message to log at warn level.
chapter7/componium/packages/app/logger.js:53
↓ 1 callersMethod_loadInitialRoute
* Load the route based on the current URL when the router is first initialized.
chapter7/componium/packages/frontend/router.js:77
↓ 1 callersMethod_matchUrlToRoute
* Match a given URL to one of the defined routes. * * @param {Array} urlSegs - Segments of the URL. * @returns {Object} The matched route or
chapter7/componium/packages/frontend/router.js:59
↓ 1 callersMethodadd
(x, y)
chapter6/componium-test/fixtures/calculator.js:2
↓ 1 callersMethodaddRoute
* Registers a route handler.
chapter7/componium/packages/server/server.js:161
↓ 1 callersMethodaddStaticDirectory
* Registers a static directory handler. * * @param {string} path - Route path * @param {function} directory - Route directory to serve files
chapter7/componium/packages/server/server.js:216
↓ 1 callersMethodauthenticate
* Authenticates the connection to the database. * @throws {Error} Throws an error if the authentication fails.
chapter7/componium/packages/db/index.js:31
↓ 1 callersMethodboot
()
chapter10/adonisjs/providers/AppProvider.ts:11
↓ 1 callersFunctionbootstrap
()
chapter2/nest-js-application/src/main.ts:4
↓ 1 callersFunctionbootstrap
()
chapter1/nest2/src/main.ts:4
↓ 1 callersMethodcallback
()
chapter7/componium/tests/sample/views/checker.old.js:47
↓ 1 callersFunctioncheckFilesExist
(files)
chapter7/componium/tests/packages/dev/commands.test.js:17
↓ 1 callersMethodconnectedCallback
()
chapter7/componium/tests/basic-components/script.js:89
↓ 1 callersFunctioncopyDirectoryRecursive
(source, target)
chapter7/componium/packages/dev/init-dev.js:43
↓ 1 callersMethodcreateClientView
* Renders a client-side view.
chapter7/componium/packages/server/server.js:197
↓ 1 callersFunctioncreateExecutor
(environment, testFiles, options)
chapter6/componium-test/packages/runner/cli.js:42
↓ 1 callersFunctioncreateGraphqlServer
* Creates an Apollo GraphQL server and attaches it to Express. * * @param {object} app - Express app instance * @param {object} httpServer - Node H
chapter7/componium/packages/server/graphql.js:20
↓ 1 callersMethodcreateRouter
* Creates a nested router.
chapter7/componium/packages/server/server.js:204
↓ 1 callersFunctioncreateWindow
()
chapter1/electron/src/index.js:9
↓ 1 callersMethoddata
()
chapter7/componium/tests/sample/views/checker.old.js:25
↓ 1 callersMethoddata
()
chapter7/componium/tests/basic-components/script.js:30
↓ 1 callersMethodexecute
* Execute tests. * * @returns {Promise<Object>} Test result status.
chapter6/componium-test/packages/node/executor.js:28
↓ 1 callersFunctionfileRoutes
(dir, app, gql)
chapter7/componium/packages/server/file-router.js:21
↓ 1 callersFunctionfileRoutesInternal
(dir, app, gql)
chapter7/componium/packages/server/file-router.js:25
↓ 1 callersMethodgetHello
()
chapter2/nest-js-application/src/app.controller.ts:9
↓ 1 callersMethodgetHello
()
chapter1/nest2/src/app.controller.ts:9
↓ 1 callersMethodgetMessage
()
chapter2/nest-js-application/src/app.service.ts:6
↓ 1 callersMethodgetShowcase
()
chapter1/nest2/src/app.service.ts:5
↓ 1 callersFunctiongetTestFiles
(directory)
chapter6/componium-test/packages/runner/cli.js:37
↓ 1 callersMethodgetWeather
(latitude: number, longitude: number)
chapter5/angular-rxjs/src/app/book.service.ts:16
↓ 1 callersFunctionhelloReader
()
chapter6/componium-test/e2e/basic/basic.js:1
↓ 1 callersFunctioninstallDependencies
(dirPath)
chapter7/componium/packages/dev/init-dev.js:64
↓ 1 callersMethodminifyScripts
* Minify all JavaScript files in the components directory and save them to .componium/components. * This method uses the esbuild tool for minificat
chapter7/componium/packages/frontend/optimize.js:30
↓ 1 callersMethodreactive
(data)
chapter7/componium/tests/sample/views/checker.old.js:7
↓ 1 callersMethodreactive
(data)
chapter7/componium/tests/basic-components/script.js:8
↓ 1 callersMethodregister
()
chapter10/adonisjs/providers/AppProvider.ts:7
↓ 1 callersMethodrender
()
chapter7/componium/tests/sample/views/checker.old.js:20
↓ 1 callersMethodrender
()
chapter7/componium/tests/basic-components/script.js:23
↓ 1 callersFunctionrestartServer
* Kills the current server process (if running) and starts a new one.
chapter7/componium/packages/dev/commands.js:17
↓ 1 callersFunctionrunner
* Execute the test runner given a directory of tests * * @param {string[]} targetDirectory - The directories containing the test files to run. * @p
chapter6/componium-test/packages/runner/cli.js:17
↓ 1 callersFunctionsomeModule
()
chapter5/esbuild/src/some-module.js:1
↓ 1 callersMethodtemplate
()
chapter7/componium/tests/sample/views/checker.old.js:28
↓ 1 callersMethodtemplate
()
chapter7/componium/tests/basic-components/script.js:34
↓ 1 callersFunctiontoSnakeCase
(str)
chapter7/componium/packages/dev/create.js:77
FunctionApp
({ Component, pageProps })
chapter4/next-example-app/pages/_app.js:5
FunctionButtonReact
({ className, children, ...props })
chapter4/next-example-app/components/ButtonReact.js:23
FunctionButtonStyled
({ className, children, ...props })
chapter4/next-example-app/components/ButtonStyled.js:34
FunctionComponium
* Componium function provides an instance of the ComponiumInternal class. * * @return {ComponiumInternal} An instance of the ComponiumInternal class
chapter7/componium/packages/frontend/componium.js:26
FunctionRootLayout
({ children })
chapter3/next/src/app/layout.js:11
Method_read
(/* size */)
chapter2/hapi-libs/headers.js:168
Methodaccept
(request)
chapter2/hapi-libs/compression.js:62
MethodaddDecoder
(encoding, decoder)
chapter2/hapi-libs/compression.js:55
MethodaddEncoder
(encoding, encoder)
chapter2/hapi-libs/compression.js:46
MethodaddMiddleware
* Registers middleware.
chapter7/componium/packages/server/server.js:188
Methodcallback
()
chapter7/componium/tests/sample/views/checker.old.js:16
Methodcallback
()
chapter7/componium/tests/sample/views/checker.old.js:80
FunctionclientRender
(request, response)
chapter7/componium/tests/sample/views/client-render.js:1
Functionclientview
(request, response)
chapter7/componium/packages/template/_create/clientview.js:12
FunctionconfigureSuite
(suite)
chapter10/adonisjs/tests/bootstrap.ts:65
MethodconnectedCallback
()
chapter7/componium/tests/sample/components/client-render-two.js:21
MethodconnectedCallback
()
chapter7/componium/tests/basic-components/script.js:18
MethodconnectedCallback
()
chapter7/componium/tests/basic-components/script.js:53
Methodconstructor
* Constructor to set up the initial state of the application. * It creates a global `componium` object and initializes the models. * Additionall
chapter7/componium/packages/index.js:19
Methodconstructor
* Constructor for the Optimize class.
chapter7/componium/packages/frontend/optimize.js:22
Methodconstructor
* Constructor for the ComponiumRouter class. * * @param {HTMLElement} element - The DOM element to bind the router. * @param {Array} routes -
chapter7/componium/packages/frontend/router.js:13
Methodconstructor
* Constructs a ClientView instance. * * @param {string} name - The name of the view component. * @param {object} options - Configuration opti
chapter7/componium/packages/frontend/client-view.js:31
Methodconstructor
* Constructor for the Renderer class. * @param {string} name - The name of the component being rendered.
chapter7/componium/packages/frontend/renderer.js:24
Methodconstructor
* Constructor for the ComponiumInternal class.
chapter7/componium/packages/frontend/componium.js:18
Methodconstructor
* Initializes the winston logger with file and optional console transports.
chapter7/componium/packages/app/logger.js:15
Methodconstructor
* Constructor - initializes Express router.
chapter7/componium/packages/server/router.js:11
Methodconstructor
* Constructor * Initialize express and other directory options
chapter7/componium/packages/server/server.js:38
Methodconstructor
()
chapter7/componium/packages/template/_app/components/componium.js:6
Methodconstructor
* Constructs the database instance. * Uses a configuration-defined connection string or defaults to an in-memory SQLite database.
chapter7/componium/packages/db/index.js:17
Methodconstructor
()
chapter7/componium/tests/sample/components/client-render.js:6
Methodconstructor
()
chapter7/componium/tests/sample/components/navigated-component.js:14
Methodconstructor
()
chapter7/componium/tests/sample/components/nested-component.js:18
Methodconstructor
()
chapter7/componium/tests/sample/components/client-render-two.js:17
next →1–100 of 152, ranked by callers