From d2cc5a67f6129c30d5f87fde888d0a66afaa60e2 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 29 May 2021 15:02:17 -0700 Subject: [PATCH] chore: rename `qoot` => `qwik`. --- .prettierignore | 2 +- DEVELOPER.md | 2 +- LICENSE | 2 +- README.md | 12 ++---- ROADMAP.md | 2 +- WORKSPACE | 2 +- client/BUILD.bazel | 40 +++++++++---------- client/CONFIG.ts | 4 +- client/README.md | 8 ++-- client/assert/assert.ts | 4 +- client/assert/assert.unit.ts | 4 +- client/assert/index.ts | 4 +- client/cjs/BUILD.bazel | 2 +- client/cjs/index.ts | 4 +- client/cjs/package.json | 6 +-- client/component/README.md | 34 ++++++++-------- client/component/component.ts | 12 +++--- client/component/component.unit.ts | 4 +- client/component/index.ts | 4 +- client/config/index.ts | 4 +- client/config/qGlobal.ts | 6 +-- client/config/qGlobal.unit.ts | 4 +- client/entity/entity.ts | 8 ++-- client/entity/entity.unit.ts | 4 +- client/entity/entity_key.ts | 6 +-- client/entity/entity_key.unit.ts | 6 +-- client/entity/index.ts | 4 +- client/error/data.ts | 4 +- client/error/error.ts | 4 +- client/error/error.unit.ts | 4 +- client/error/stringify.ts | 4 +- client/event/README.md | 34 ++++++++-------- client/event/emit_event.ts | 8 ++-- client/event/emit_event.unit.ts | 4 +- client/event/event_entity.ts | 4 +- client/event/event_injector.ts | 4 +- client/event/event_injector.unit.ts | 4 +- client/event/index.ts | 4 +- client/event/inject_event_handler.ts | 6 +-- client/event/inject_event_handler.unit.ts | 4 +- client/event/provide_element.ts | 4 +- client/event/provide_element.unit.ts | 4 +- client/event/provide_event.ts | 4 +- client/event/provide_event.unit.ts | 4 +- client/event/provide_qrl_exp.ts | 6 +-- client/event/provide_qrl_exp.unit.ts | 4 +- client/event/provide_url.ts | 4 +- client/event/provide_url.unit.ts | 4 +- client/event/types.ts | 4 +- client/import/index.ts | 4 +- client/import/qImport.ts | 4 +- client/import/qImport.unit.ts | 4 +- client/import/qImport_default_unit.ts | 4 +- client/import/qImport_symbol_unit.ts | 4 +- client/import/qrl.ts | 6 +-- client/import/qrl.unit.ts | 4 +- client/index.ts | 4 +- client/injector/README.md | 6 +-- client/injector/base_injector.ts | 4 +- client/injector/base_injector.unit.ts | 4 +- client/injector/element_injector.ts | 4 +- client/injector/element_injector.unit.ts | 4 +- client/injector/get_injector.unit.ts | 4 +- client/injector/index.ts | 4 +- client/injector/inject.ts | 4 +- client/injector/inject.unit.ts | 4 +- client/injector/provide_injector.ts | 4 +- client/injector/provide_injector.unit.ts | 4 +- client/injector/provide_provider_of.ts | 4 +- client/injector/provide_provider_of.unit.ts | 4 +- client/injector/resolve_args.ts | 4 +- client/injector/resolve_args.unit.ts | 4 +- client/injector/types.ts | 10 ++--- client/package.json | 10 ++--- client/provider/index.ts | 4 +- client/provider/provide_component_prop.ts | 6 +-- .../provider/provide_component_prop.unit.ts | 4 +- client/provider/provide_component_props.ts | 4 +- .../provider/provide_component_props.unit.ts | 4 +- client/provider/provide_component_state.ts | 4 +- .../provider/provide_component_state.unit.ts | 4 +- client/provider/provide_entity.ts | 4 +- client/provider/provide_entity.unit.ts | 4 +- client/provider/provide_entity_state.ts | 4 +- client/provider/provide_entity_state.unit.ts | 4 +- client/{qoot.api.gold.md => qwik.api.gold.md} | 2 +- client/{qootloader.ts => qwikloader.ts} | 14 +++---- client/render/README.md | 4 +- client/render/index.ts | 4 +- client/render/jsx/attributes.ts | 4 +- client/render/jsx/attributes.unit.tsx | 4 +- client/render/jsx/factory.ts | 6 +-- client/render/jsx/host.ts | 6 +-- client/render/jsx/html.ts | 4 +- client/render/jsx/html_base.ts | 4 +- client/render/jsx/index.ts | 4 +- client/render/jsx/mark_dirty.ts | 6 +-- client/render/jsx/mark_dirty.unit.ts | 4 +- client/render/jsx/render.ts | 4 +- client/render/jsx/render.unit.tsx | 18 ++++----- client/render/jsx/types.ts | 4 +- client/render/serialize_state.ts | 4 +- client/render/serialize_state.unit.ts | 4 +- client/render/types.ts | 4 +- client/testing/BUILD.bazel | 4 +- client/testing/component_fixture.tsx | 4 +- client/testing/componentize.ts | 4 +- client/testing/element_fixture.ts | 4 +- client/testing/node_utils.ts | 14 +++---- client/testing/node_utils.unit.ts | 4 +- client/util/array.ts | 4 +- client/util/attributes.ts | 4 +- client/util/attributes.unit.ts | 8 ++-- client/util/base_uri.ts | 4 +- client/util/base_uri.unit.ts | 4 +- client/util/case.ts | 4 +- client/util/case.unit.ts | 4 +- client/util/dirname.ts | 4 +- client/util/dirname.unit.ts | 4 +- client/util/dom.ts | 4 +- client/util/dom.unit.ts | 8 ++-- client/util/dom_attrs.ts | 4 +- client/util/dom_attrs.unit.ts | 4 +- client/util/element.ts | 4 +- client/util/flyweight.ts | 4 +- client/util/function.ts | 4 +- client/util/global.ts | 4 +- client/util/markers.ts | 4 +- client/util/promises.ts | 4 +- client/util/qDev.ts | 4 +- client/util/string.ts | 4 +- client/util/string.unit.ts | 4 +- client/util/stringify.ts | 4 +- cypress/integration/bootloader_spec.ts | 6 +-- cypress/integration/hello_server_spec.ts | 4 +- cypress/integration/hello_static_spec.ts | 4 +- cypress/integration/todo_spec.ts | 6 +-- cypress/plugins/index.ts | 4 +- docs/BOOTSTRAP.md | 16 ++++---- docs/CHEAT_SHEET.md | 2 +- docs/LAZY_LOADING.md | 12 +++--- docs/MENTAL_MODEL.md | 32 +++++++-------- docs/QRL.md | 8 ++-- docs/REACTIVITY.md | 14 +++---- docs/README.md | 6 +-- docs/RESUMABLE.md | 2 +- generate/tsx/types.html | 4 +- integration/BUILD.bazel | 12 +++--- integration/README.md | 2 +- integration/hello_server/CONFIG.ts | 6 +-- integration/hello_server/Greeter.ts | 6 +-- integration/hello_server/Greeter_component.ts | 6 +-- .../hello_server/Greeter_input_onKeyup.ts | 6 +-- integration/hello_server/Greeter_template.tsx | 6 +-- integration/hello_server/README.md | 4 +- integration/hello_server/qoot.ts | 15 ------- integration/hello_server/qwik.ts | 15 +++++++ integration/hello_server/server_index.tsx | 8 ++-- integration/hello_static/README.md | 10 ++--- integration/hello_static/greet.ts | 4 +- integration/hello_static/index.html | 2 +- integration/hello_static/qoot.ts | 15 ------- integration/hello_static/qwik.ts | 15 +++++++ integration/package.json | 2 +- integration/specs/index.html | 2 +- ...tloader_spec.html => qwikloader_spec.html} | 12 +++--- ...{qootloader_spec.ts => qwikloader_spec.ts} | 4 +- integration/todo/CONFIG.ts | 6 +-- integration/todo/client.html | 4 +- integration/todo/data/Item.ts | 6 +-- integration/todo/data/Item_toggle.ts | 6 +-- integration/todo/data/Todo.ts | 8 ++-- integration/todo/data/Todo_archive.ts | 6 +-- integration/todo/data/Todo_newItem.ts | 6 +-- integration/todo/data/Todo_removeItem.ts | 6 +-- integration/todo/qoot.ts | 15 ------- integration/todo/qwik.ts | 15 +++++++ integration/todo/server_index.tsx | 8 ++-- integration/todo/ui/Footer.ts | 6 +-- integration/todo/ui/Footer_archive.ts | 6 +-- integration/todo/ui/Footer_selectFilter.ts | 6 +-- integration/todo/ui/Footer_template.tsx | 8 ++-- integration/todo/ui/Header.ts | 6 +-- integration/todo/ui/Header_addTodo.ts | 6 +-- integration/todo/ui/Header_component.ts | 6 +-- integration/todo/ui/Header_template.tsx | 6 +-- integration/todo/ui/Item.ts | 6 +-- integration/todo/ui/Item_component.ts | 6 +-- integration/todo/ui/Item_edit.ts | 8 ++-- integration/todo/ui/Item_remove.ts | 6 +-- integration/todo/ui/Item_template.tsx | 6 +-- integration/todo/ui/Item_toggle.ts | 8 ++-- integration/todo/ui/Main.ts | 6 +-- integration/todo/ui/Main_template.tsx | 6 +-- integration/todo/ui/TodoApp.ts | 6 +-- integration/todo/ui/TodoApp_template.tsx | 6 +-- package-lock.json | 3 +- package.json | 2 +- server/BUILD.bazel | 2 +- server/fs_util.ts | 4 +- server/main.ts | 22 +++++----- server/package.json | 2 +- tsconfig.base.json | 2 +- tsconfig.json | 2 +- 204 files changed, 613 insertions(+), 618 deletions(-) rename client/{qoot.api.gold.md => qwik.api.gold.md} (99%) rename client/{qootloader.ts => qwikloader.ts} (90%) delete mode 100644 integration/hello_server/qoot.ts create mode 100644 integration/hello_server/qwik.ts delete mode 100644 integration/hello_static/qoot.ts create mode 100644 integration/hello_static/qwik.ts rename integration/specs/{qootloader_spec.html => qwikloader_spec.html} (71%) rename integration/specs/{qootloader_spec.ts => qwikloader_spec.ts} (88%) delete mode 100644 integration/todo/qoot.ts create mode 100644 integration/todo/qwik.ts diff --git a/.prettierignore b/.prettierignore index a1c67a380ea..2c35f8e2b7e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,6 +2,6 @@ dist .history bazel-bin bazel-out -bazel-qoot +bazel-qwik bazel-testlogs **/*.gold.md \ No newline at end of file diff --git a/DEVELOPER.md b/DEVELOPER.md index 17e4886a327..0d4f035d5a1 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -67,7 +67,7 @@ Running cypress manually ## Publishing ``` -bazel run client:qoot_pkg.publish -- --tag=next +bazel run client:qwik_pkg.publish -- --tag=next ``` ## Pre-submit hooks diff --git a/LICENSE b/LICENSE index c46f51bb75e..abda14c58e6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 a-Qoot +Copyright (c) 2021 BuilderIO Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ff72727fb89..983d20948f6 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,9 @@ -# `Q-oot` `/kyo͞ot/` DOM-Centric, Resumable Web-App Framework +# `Qwik` DOM-Centric, Resumable Web-App Framework An Open-Source framework designed for best possible [time to interactive](https://web.dev/interactive/), by focusing on [resumability](./docs/RESUMABLE.md) of server-side-rendering of HTML, and [fine-grained lazy-loading](./docs/LAZY_LOADING.md) of code. ---- - -> _DISCLAIMER_: This project is an Open Source project of [Miško Hevery](https://github.com/mhevery) and is in no way associated with, endorsed by, or supported by [Google LLC](https://about.google). - ---- - ## Getting Started -- Visit [integration](./integration) folder for guided tours of Qoot to learn how it works. +- Visit [integration](./integration) folder for guided tours of Qwik to learn how it works. - Understand the difference between [resumable and replayable](./docs/RESUMABLE.md) applications. -- Learn about Qoot's high level [mental model](./docs/MENTAL_MODEL.md). +- Learn about Qwik's high level [mental model](./docs/MENTAL_MODEL.md). diff --git a/ROADMAP.md b/ROADMAP.md index 40ac438dc15..f738a5b07ca 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -22,7 +22,7 @@ ## Server -- [ ] Developer should `import 'qoot'`, and the server should translate it to relative URL. +- [ ] Developer should `import 'qwik'`, and the server should translate it to relative URL. ## STATE MANAGEMENT diff --git a/WORKSPACE b/WORKSPACE index f7833b7a932..93cec12698d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,5 +1,5 @@ workspace( - name = "qoot", + name = "qwik", managed_directories = {"@npm": ["node_modules"]}, ) diff --git a/client/BUILD.bazel b/client/BUILD.bazel index ad3b290b6eb..3be039823f5 100644 --- a/client/BUILD.bazel +++ b/client/BUILD.bazel @@ -9,7 +9,7 @@ package(default_visibility = ["//visibility:public"]) js_library( name = "client", - package_name = "qoot", + package_name = "qwik", srcs = ["package.json"], deps = [ ":project", @@ -21,7 +21,7 @@ ts_project( srcs = glob( ["**/*.ts"], exclude = [ - "qootloader.ts", + "qwikloader.ts", "**/*.unit.ts", "CONFIG.ts", ], @@ -46,30 +46,30 @@ ts_project( ) rollup_bundle( - name = "qoot", + name = "qwik", config_file = "//:rollup.config.js", entry_point = "index.js", deps = [":client"], ) terser_minified( - name = "qoot.min", - src = "qoot.js", + name = "qwik.min", + src = "qwik.js", config_file = "//:terser.config.json", sourcemap = False, terser_bin = "@npm//terser/bin:terser", ) ts_project( - name = "qootloader", - srcs = ["qootloader.ts"], + name = "qwikloader", + srcs = ["qwikloader.ts"], declaration = True, tsconfig = "//:tsconfig", ) terser_minified( - name = "qootloader.min", - src = "qootloader.js", + name = "qwikloader.min", + src = "qwikloader.js", config_file = "//:terser.config.json", sourcemap = False, terser_bin = "@npm//terser/bin:terser", @@ -106,8 +106,8 @@ mocha_test( api_extractor( name = "public_api_extractor", outs = [ - "qoot.d.ts", - ":qoot.api.md", + "qwik.d.ts", + ":qwik.api.md", ], args = [ "run", @@ -127,8 +127,8 @@ api_extractor( generated_file_test( name = "publicAPI.md", - src = ":qoot.api.gold.md", - generated = ":qoot.api.md", + src = ":qwik.api.gold.md", + generated = ":qwik.api.md", tags = ["unit"], ) @@ -141,19 +141,19 @@ genrule( ) pkg_npm( - name = "qoot_pkg", + name = "qwik_pkg", srcs = [ ":package.json", ], substitutions = {"//internal/": "//"}, deps = [ ":LICENSE", - ":qoot", - ":qoot.d.ts", - ":qoot.min", - ":qootloader", - ":qootloader.min", + ":qwik", + ":qwik.d.ts", + ":qwik.min", + ":qwikloader", + ":qwikloader.min", "//client/cjs:package.json", - "//client/cjs:qoot", + "//client/cjs:qwik", ], ) diff --git a/client/CONFIG.ts b/client/CONFIG.ts index 0a02558bea8..2f575dcc46d 100644 --- a/client/CONFIG.ts +++ b/client/CONFIG.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { setConfig } from './index.js'; diff --git a/client/README.md b/client/README.md index 7df09e3e44c..bd3d0829c4a 100644 --- a/client/README.md +++ b/client/README.md @@ -5,8 +5,8 @@ If you would like to build the distribution bundles then you can run these commands: ``` -bazel build client/qoot && ls -al dist/bin/client/qoot.js -bazel build client/qoot.min && ls -al dist/bin/client/qoot.min.js -bazel build client/qootloader && ls -al dist/bin/client/qootloader.js -bazel build client/qootloader.min && ls -al dist/bin/client/qootloader.min.js +bazel build client/qwik && ls -al dist/bin/client/qwik.js +bazel build client/qwik.min && ls -al dist/bin/client/qwik.min.js +bazel build client/qwikloader && ls -al dist/bin/client/qwikloader.js +bazel build client/qwikloader.min && ls -al dist/bin/client/qwikloader.min.js ``` diff --git a/client/assert/assert.ts b/client/assert/assert.ts index 4d4f0b5cadb..02986c918bc 100644 --- a/client/assert/assert.ts +++ b/client/assert/assert.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function assertDefined(value: any, text?: string) { diff --git a/client/assert/assert.unit.ts b/client/assert/assert.unit.ts index 006657ac44b..765552570cd 100644 --- a/client/assert/assert.unit.ts +++ b/client/assert/assert.unit.ts @@ -1,7 +1,7 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ diff --git a/client/assert/index.ts b/client/assert/index.ts index b2ef3c88f16..3a3061fb176 100644 --- a/client/assert/index.ts +++ b/client/assert/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export * from './assert.js'; diff --git a/client/cjs/BUILD.bazel b/client/cjs/BUILD.bazel index e36cb811c08..976fa8f1f4c 100644 --- a/client/cjs/BUILD.bazel +++ b/client/cjs/BUILD.bazel @@ -4,7 +4,7 @@ load("@npm//@bazel/typescript:index.bzl", "ts_project") package(default_visibility = ["//visibility:public"]) esbuild( - name = "qoot", + name = "qwik", entry_point = "index.ts", platform = "node", tool = select({ diff --git a/client/cjs/index.ts b/client/cjs/index.ts index 10c681b6440..b7b6d55b741 100644 --- a/client/cjs/index.ts +++ b/client/cjs/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export * from '../index.js'; diff --git a/client/cjs/package.json b/client/cjs/package.json index 1f77fd56d26..712bc26dc02 100644 --- a/client/cjs/package.json +++ b/client/cjs/package.json @@ -1,6 +1,6 @@ { - "description": "A CJS version of qoot", + "description": "A CJS version of qwik", "type": "commonjs", - "main": "./qoot.js", - "typings": "../qoot.d.ts" + "main": "./qwik.js", + "typings": "../qwik.d.ts" } diff --git a/client/component/README.md b/client/component/README.md index 3c7d5d89e02..35873dc9ba7 100644 --- a/client/component/README.md +++ b/client/component/README.md @@ -1,17 +1,17 @@ -# Qoot Components +# Qwik Components -A collection of Qoot Components in a tree structure make up a Qoot application. -The unique feature of Qoot Components is that they can be: +A collection of Qwik Components in a tree structure make up a Qwik application. +The unique feature of Qwik Components is that they can be: 1. Server-side pre-rendered: -1. The state of the Qoot Component serializes into the DOM attributes: -1. Qoot Components can rehydrate on the client out of order: -1. Qoot Components lazy load their behavioral handlers: -1. Qoot Components declare listeners (both event and broadcasts) declaratively +1. The state of the Qwik Component serializes into the DOM attributes: +1. Qwik Components can rehydrate on the client out of order: +1. Qwik Components lazy load their behavioral handlers: +1. Qwik Components declare listeners (both event and broadcasts) declaratively ## SSR -Qoot's goal is to have extremely fast startup times. Qoot achieves this by minimizing the amount of code the client needs to load and execute. This is done through: +Qwik's goal is to have extremely fast startup times. Qwik achieves this by minimizing the amount of code the client needs to load and execute. This is done through: 1. Server-side rendering: The server can pre-render the application. Most of the application UI never changes and so there is no need to bring the code to the client. 1. Fine-grained lazy loading: Only download code which needs to be executed now. If the application contains a button that is rarely clicked, then the code for the handler should not be downloaded unless the user interacts with the button. @@ -20,7 +20,7 @@ Qoot's goal is to have extremely fast startup times. Qoot achieves this by minim Most frameworks create replayable applications. By replayable, we mean that once the server renders the page, the client must re-run the whole application to get the client memory-heap into a state to be ready to interact with the users. Examples are: setting up listeners, subscribers, closures, and entity objects. The more complicated the page, the more complex the amount of code the client has to replay in order to get the client memory-heap into the right state. -In contrast, Qoot aims to be resumable. A resumable application can always be serialized and send across the wire. On the client-side, there is no need to replay any of the SSR code on the client. The application has all of the relevant information serialized in HTML in a form such that the client can resume where it left off. For example, once the chrome of the application is rendered there is no need ever to execute that code if the chrome is static. +In contrast, Qwik aims to be resumable. A resumable application can always be serialized and send across the wire. On the client-side, there is no need to replay any of the SSR code on the client. The application has all of the relevant information serialized in HTML in a form such that the client can resume where it left off. For example, once the chrome of the application is rendered there is no need ever to execute that code if the chrome is static. ## Out of order re-hydration @@ -40,7 +40,7 @@ In-order-hydration would be if one would start at a component and render everyth ## State -A component store state. There are three different kinds of states which Qoot recognizes: +A component store state. There are three different kinds of states which Qwik recognizes: 1. **Private State**: A private state of the component is a state which only matters to the component. For example, in case of a collapsible UI element, whether or not the element is collapsed is private state of the component. (A component can choose to expose its private state, but that is beyond the scope of this discussion.) 1. **Shared State**: A shared state is information that can be part of more than one component. Typically this is information that needs to be persisted on the server. Because it is shared between components it can't be serialized within each components because doing so would lead to duplication. An example would be a to-do item in a task tracking application. @@ -50,7 +50,7 @@ A component store state. There are three different kinds of states which Qoot re In traditional applications, listeners are problematic because they cause a lot of code to be downloaded even if the user never interacts with that listener. For example, a shopping checkout code may be very complex, but clicking on the purchase button is rare. A replayable application must set up a listener on the purchase button. The listener, in turn, needs a reference to the purchase entity. All of these objects need to be created and wired into the listener on application startup. This causes a lot of code to be downloaded which may never be executed. -Qoot solves this by having a declarative way of setting up listeners. The listeners only specify where the code lives (import.) Unless the event fires, the listener never loads the code. The result is that Qoot only loads code when it is strictly necessary and thus delays most of the work until later. This leads to fast startup time because only very little code needs to be downloaded, and even less needs to be executed. +Qwik solves this by having a declarative way of setting up listeners. The listeners only specify where the code lives (import.) Unless the event fires, the listener never loads the code. The result is that Qwik only loads code when it is strictly necessary and thus delays most of the work until later. This leads to fast startup time because only very little code needs to be downloaded, and even less needs to be executed. # Declaring Components @@ -128,7 +128,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import {} from './.js'; - import {Component} from './qoot.js'; + import {Component} from './qwik.js'; export State { // Serializable state of the component. @@ -143,7 +143,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { GreeterProps } from './Greeter.js'; - import { Component } from './qoot.js'; + import { Component } from './qwik.js'; export interface GreeterState { name: string; @@ -161,7 +161,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { Component } from './_component.js'; - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; // See: Component Injection for more details export default inject(Component, function (this:Component) { @@ -173,7 +173,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { GreeterComponent } from './greeter_component.js'; - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; export default inject(GreeterComponent, function (this: GreeterComponent) { return ( @@ -187,7 +187,7 @@ The private implementation consists of at a minimum of 1) one file representing - **Handler**: Handlers are optional, but most components will have one or more. Handlers are responsible for processing events. By convention, the handlers are named `__on.ts` (`greet_text_onClick.ts`) ```typescript - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; import { Component } from './_component.js'; export default inject(Component, function (this: Component) { @@ -200,7 +200,7 @@ The private implementation consists of at a minimum of 1) one file representing Example: ```typescript - import { inject, markDirty, provideQrlExp } from './qoot.js'; + import { inject, markDirty, provideQrlExp } from './qwik.js'; import { GreeterComponent } from './greeter_component.js'; export default inject(GreeterComponent, function (this: GreeterComponent, name: string) { diff --git a/client/component/component.ts b/client/component/component.ts index 00359fdeecc..d32d5208234 100644 --- a/client/component/component.ts +++ b/client/component/component.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { QRL } from '../import/qrl.js'; @@ -13,10 +13,10 @@ import { AttributeMarker } from '../util/markers.js'; import { getInjector } from '../injector/element_injector.js'; /** - * Base class for Qoot component. + * Base class for Qwik component. * - * All Qoot components are defined by a class that must inherit from `Component`. - * An instance of a Qoot component represents the transient state of that component. + * All Qwik components are defined by a class that must inherit from `Component`. + * An instance of a Qwik component represents the transient state of that component. * A component contains `$state` and `$keyProps` properties. * * Example: @@ -49,7 +49,7 @@ export class Component { hostElement: Element ): Promise { // TODO: Needs tests - const componentConstructor = (this as any) as ComponentConstructor; + const componentConstructor = this as any as ComponentConstructor; const componentTemplate = hostElement.getAttribute(AttributeMarker.ComponentTemplate); if (!componentTemplate) { hostElement.setAttribute( diff --git a/client/component/component.unit.ts b/client/component/component.unit.ts index 10b498eaf6d..b5ab05a9bd0 100644 --- a/client/component/component.unit.ts +++ b/client/component/component.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import '../CONFIG.js'; diff --git a/client/component/index.ts b/client/component/index.ts index 5e087fa93a7..65101db4019 100644 --- a/client/component/index.ts +++ b/client/component/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/client/config/index.ts b/client/config/index.ts index 54d9426c9bb..0ff0bd5069a 100644 --- a/client/config/index.ts +++ b/client/config/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export { QRLProtocolMap, QConfig, setConfig } from './qGlobal.js'; diff --git a/client/config/qGlobal.ts b/client/config/qGlobal.ts index daf578d45b9..f51034ffba1 100644 --- a/client/config/qGlobal.ts +++ b/client/config/qGlobal.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { qError, QError } from '../error/error.js'; @@ -11,7 +11,7 @@ import { dirname } from '../util/dirname.js'; import global from '../util/global.js'; /** - * Qoot configuration information. + * Qwik configuration information. * * @public */ diff --git a/client/config/qGlobal.unit.ts b/client/config/qGlobal.unit.ts index da5df8e29b2..0ca4d7b1ec2 100644 --- a/client/config/qGlobal.unit.ts +++ b/client/config/qGlobal.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/entity/entity.ts b/client/entity/entity.ts index ce05e6037a6..65c5d195321 100644 --- a/client/entity/entity.ts +++ b/client/entity/entity.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { AttributeMarker } from '../util/markers.js'; @@ -19,7 +19,7 @@ import { getInjector } from '../injector/element_injector.js'; /** * `Entity` allows creation of lazy loading class whose state is serializable. * - * Entities are a basic building block of Qoot applications. The basic idea behind entities + * Entities are a basic building block of Qwik applications. The basic idea behind entities * is that their state is serializable and thus a entity lifetime can span runtime environments * (i.e. entity instances can be created by the server and then used by the client). * @@ -149,7 +149,7 @@ import { getInjector } from '../injector/element_injector.js'; *
* ``` * - * Note: `$release()` is not the same thing as deleting/destroying the data. It merely tells Qoot to + * Note: `$release()` is not the same thing as deleting/destroying the data. It merely tells Qwik to * not serialize the state into the DOM/HTML. * * @public diff --git a/client/entity/entity.unit.ts b/client/entity/entity.unit.ts index 694fab2dce5..6978bd18451 100644 --- a/client/entity/entity.unit.ts +++ b/client/entity/entity.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/entity/entity_key.ts b/client/entity/entity_key.ts index 37cabaf4273..d4f38be5407 100644 --- a/client/entity/entity_key.ts +++ b/client/entity/entity_key.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { isValidAttribute } from '../error/data.js'; @@ -174,7 +174,7 @@ export function validateKeyPart(value: any): string { /** * Retrieve `EntityKey` from Entity State. * - * Qoot stores `EntityKey` in the state of the Entity as `$key` even + * Qwik stores `EntityKey` in the state of the Entity as `$key` even * if it is not declared in the State type. Use this method to retrieve it. * * This method is convenient when Entity key is needed but only Entity State is available. diff --git a/client/entity/entity_key.unit.ts b/client/entity/entity_key.unit.ts index 61629915f65..99f83dde39c 100644 --- a/client/entity/entity_key.unit.ts +++ b/client/entity/entity_key.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; @@ -80,7 +80,7 @@ describe('entity key', () => { it('should extract entity name', () => { expect(keyToEntityAttribute('foo:')).to.eql('::foo'); expect(keyToEntityAttribute('bar:baz')).to.eql('::bar'); - expect(keyToEntityAttribute('bar:baz:qoot')).to.eql('::bar'); + expect(keyToEntityAttribute('bar:baz:qwik')).to.eql('::bar'); expect(keyToEntityAttribute(':')).to.eql('::'); }); it('should complain on bad format', () => { diff --git a/client/entity/index.ts b/client/entity/index.ts index f6bfa54dcba..376c8251047 100644 --- a/client/entity/index.ts +++ b/client/entity/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/client/error/data.ts b/client/error/data.ts index a7c4f7e9d20..5c1ea824372 100644 --- a/client/error/data.ts +++ b/client/error/data.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { QError, qError } from '../error/error.js'; diff --git a/client/error/error.ts b/client/error/error.ts index dda2fa4bf2b..63df2b953cc 100644 --- a/client/error/error.ts +++ b/client/error/error.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { AttributeMarker } from 'client/util/markers.js'; diff --git a/client/error/error.unit.ts b/client/error/error.unit.ts index 006657ac44b..765552570cd 100644 --- a/client/error/error.unit.ts +++ b/client/error/error.unit.ts @@ -1,7 +1,7 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ diff --git a/client/error/stringify.ts b/client/error/stringify.ts index 50fde4c11e4..f9cc979b41e 100644 --- a/client/error/stringify.ts +++ b/client/error/stringify.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { isHtmlElement } from '../util/types.js'; diff --git a/client/event/README.md b/client/event/README.md index 3c7d5d89e02..35873dc9ba7 100644 --- a/client/event/README.md +++ b/client/event/README.md @@ -1,17 +1,17 @@ -# Qoot Components +# Qwik Components -A collection of Qoot Components in a tree structure make up a Qoot application. -The unique feature of Qoot Components is that they can be: +A collection of Qwik Components in a tree structure make up a Qwik application. +The unique feature of Qwik Components is that they can be: 1. Server-side pre-rendered: -1. The state of the Qoot Component serializes into the DOM attributes: -1. Qoot Components can rehydrate on the client out of order: -1. Qoot Components lazy load their behavioral handlers: -1. Qoot Components declare listeners (both event and broadcasts) declaratively +1. The state of the Qwik Component serializes into the DOM attributes: +1. Qwik Components can rehydrate on the client out of order: +1. Qwik Components lazy load their behavioral handlers: +1. Qwik Components declare listeners (both event and broadcasts) declaratively ## SSR -Qoot's goal is to have extremely fast startup times. Qoot achieves this by minimizing the amount of code the client needs to load and execute. This is done through: +Qwik's goal is to have extremely fast startup times. Qwik achieves this by minimizing the amount of code the client needs to load and execute. This is done through: 1. Server-side rendering: The server can pre-render the application. Most of the application UI never changes and so there is no need to bring the code to the client. 1. Fine-grained lazy loading: Only download code which needs to be executed now. If the application contains a button that is rarely clicked, then the code for the handler should not be downloaded unless the user interacts with the button. @@ -20,7 +20,7 @@ Qoot's goal is to have extremely fast startup times. Qoot achieves this by minim Most frameworks create replayable applications. By replayable, we mean that once the server renders the page, the client must re-run the whole application to get the client memory-heap into a state to be ready to interact with the users. Examples are: setting up listeners, subscribers, closures, and entity objects. The more complicated the page, the more complex the amount of code the client has to replay in order to get the client memory-heap into the right state. -In contrast, Qoot aims to be resumable. A resumable application can always be serialized and send across the wire. On the client-side, there is no need to replay any of the SSR code on the client. The application has all of the relevant information serialized in HTML in a form such that the client can resume where it left off. For example, once the chrome of the application is rendered there is no need ever to execute that code if the chrome is static. +In contrast, Qwik aims to be resumable. A resumable application can always be serialized and send across the wire. On the client-side, there is no need to replay any of the SSR code on the client. The application has all of the relevant information serialized in HTML in a form such that the client can resume where it left off. For example, once the chrome of the application is rendered there is no need ever to execute that code if the chrome is static. ## Out of order re-hydration @@ -40,7 +40,7 @@ In-order-hydration would be if one would start at a component and render everyth ## State -A component store state. There are three different kinds of states which Qoot recognizes: +A component store state. There are three different kinds of states which Qwik recognizes: 1. **Private State**: A private state of the component is a state which only matters to the component. For example, in case of a collapsible UI element, whether or not the element is collapsed is private state of the component. (A component can choose to expose its private state, but that is beyond the scope of this discussion.) 1. **Shared State**: A shared state is information that can be part of more than one component. Typically this is information that needs to be persisted on the server. Because it is shared between components it can't be serialized within each components because doing so would lead to duplication. An example would be a to-do item in a task tracking application. @@ -50,7 +50,7 @@ A component store state. There are three different kinds of states which Qoot re In traditional applications, listeners are problematic because they cause a lot of code to be downloaded even if the user never interacts with that listener. For example, a shopping checkout code may be very complex, but clicking on the purchase button is rare. A replayable application must set up a listener on the purchase button. The listener, in turn, needs a reference to the purchase entity. All of these objects need to be created and wired into the listener on application startup. This causes a lot of code to be downloaded which may never be executed. -Qoot solves this by having a declarative way of setting up listeners. The listeners only specify where the code lives (import.) Unless the event fires, the listener never loads the code. The result is that Qoot only loads code when it is strictly necessary and thus delays most of the work until later. This leads to fast startup time because only very little code needs to be downloaded, and even less needs to be executed. +Qwik solves this by having a declarative way of setting up listeners. The listeners only specify where the code lives (import.) Unless the event fires, the listener never loads the code. The result is that Qwik only loads code when it is strictly necessary and thus delays most of the work until later. This leads to fast startup time because only very little code needs to be downloaded, and even less needs to be executed. # Declaring Components @@ -128,7 +128,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import {} from './.js'; - import {Component} from './qoot.js'; + import {Component} from './qwik.js'; export State { // Serializable state of the component. @@ -143,7 +143,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { GreeterProps } from './Greeter.js'; - import { Component } from './qoot.js'; + import { Component } from './qwik.js'; export interface GreeterState { name: string; @@ -161,7 +161,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { Component } from './_component.js'; - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; // See: Component Injection for more details export default inject(Component, function (this:Component) { @@ -173,7 +173,7 @@ The private implementation consists of at a minimum of 1) one file representing ```typescript import { GreeterComponent } from './greeter_component.js'; - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; export default inject(GreeterComponent, function (this: GreeterComponent) { return ( @@ -187,7 +187,7 @@ The private implementation consists of at a minimum of 1) one file representing - **Handler**: Handlers are optional, but most components will have one or more. Handlers are responsible for processing events. By convention, the handlers are named `__on.ts` (`greet_text_onClick.ts`) ```typescript - import { inject } from './qoot.js'; + import { inject } from './qwik.js'; import { Component } from './_component.js'; export default inject(Component, function (this: Component) { @@ -200,7 +200,7 @@ The private implementation consists of at a minimum of 1) one file representing Example: ```typescript - import { inject, markDirty, provideQrlExp } from './qoot.js'; + import { inject, markDirty, provideQrlExp } from './qwik.js'; import { GreeterComponent } from './greeter_component.js'; export default inject(GreeterComponent, function (this: GreeterComponent, name: string) { diff --git a/client/event/emit_event.ts b/client/event/emit_event.ts index c286deef999..ee8ccb6682e 100644 --- a/client/event/emit_event.ts +++ b/client/event/emit_event.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { qImport, qParams, toBaseURI, toUrl } from '../import/qImport.js'; @@ -23,8 +23,8 @@ import { fromCamelToKebabCase } from '../util/case.js'; * # Example * ``` * - * - * + * + * * * ``` * diff --git a/client/event/emit_event.unit.ts b/client/event/emit_event.unit.ts index 8e22a9c49cf..73cd5c741e1 100644 --- a/client/event/emit_event.unit.ts +++ b/client/event/emit_event.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import '../CONFIG.js'; diff --git a/client/event/event_entity.ts b/client/event/event_entity.ts index 0d9c1b49663..a58ee87d39f 100644 --- a/client/event/event_entity.ts +++ b/client/event/event_entity.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { EntityKey } from '../entity/entity_key.js'; diff --git a/client/event/event_injector.ts b/client/event/event_injector.ts index ae345debec4..0ce593f61a2 100644 --- a/client/event/event_injector.ts +++ b/client/event/event_injector.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { EntityKey } from '../entity/entity_key.js'; diff --git a/client/event/event_injector.unit.ts b/client/event/event_injector.unit.ts index ba7cfa72637..68e7cc318bc 100644 --- a/client/event/event_injector.unit.ts +++ b/client/event/event_injector.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/index.ts b/client/event/index.ts index 2a91399e94b..b2ca2340335 100644 --- a/client/event/index.ts +++ b/client/event/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export { emitEvent } from './emit_event.js'; diff --git a/client/event/inject_event_handler.ts b/client/event/inject_event_handler.ts index 18d52a80877..b5b92a24fca 100644 --- a/client/event/inject_event_handler.ts +++ b/client/event/inject_event_handler.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { QRL } from '../import/qrl.js'; @@ -15,7 +15,7 @@ import { EventHandler } from './types.js'; /** * Create an event handler with injected values. * - * The function creates an `EventHandler` which is used by `qootloader.js` to dispatch events. + * The function creates an `EventHandler` which is used by `qwikloader.js` to dispatch events. * The function supports passing in a component and providers. * * Creating an event handler. Assume an event is declared in template like so: diff --git a/client/event/inject_event_handler.unit.ts b/client/event/inject_event_handler.unit.ts index ce9005cde98..e72a0e0728b 100644 --- a/client/event/inject_event_handler.unit.ts +++ b/client/event/inject_event_handler.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/provide_element.ts b/client/event/provide_element.ts index b876fa2044c..077494d54d3 100644 --- a/client/event/provide_element.ts +++ b/client/event/provide_element.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from '../injector/types.js'; diff --git a/client/event/provide_element.unit.ts b/client/event/provide_element.unit.ts index 1155afb8379..ce658b0f7f1 100644 --- a/client/event/provide_element.unit.ts +++ b/client/event/provide_element.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/provide_event.ts b/client/event/provide_event.ts index f2f73f44849..4fcc6033dd9 100644 --- a/client/event/provide_event.ts +++ b/client/event/provide_event.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from '../injector/types.js'; diff --git a/client/event/provide_event.unit.ts b/client/event/provide_event.unit.ts index a7ded278419..2442ac805cd 100644 --- a/client/event/provide_event.unit.ts +++ b/client/event/provide_event.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/provide_qrl_exp.ts b/client/event/provide_qrl_exp.ts index d4278a08d46..16f7ca8c3cc 100644 --- a/client/event/provide_qrl_exp.ts +++ b/client/event/provide_qrl_exp.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from '../injector/types.js'; @@ -14,7 +14,7 @@ import { EventEntity } from '../event/event_entity.js'; /** * Inject result of url expression evaluation. * - * Qoot supports URLs that embed parameters into the hash such as: `./somePath#foo?key1=value1`. + * Qwik supports URLs that embed parameters into the hash such as: `./somePath#foo?key1=value1`. * While injecting values as string is useful, it is often more useful to treat the value as an * expression and evaluate it. * diff --git a/client/event/provide_qrl_exp.unit.ts b/client/event/provide_qrl_exp.unit.ts index 405dab9fdfe..aee2ddbeee5 100644 --- a/client/event/provide_qrl_exp.unit.ts +++ b/client/event/provide_qrl_exp.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/provide_url.ts b/client/event/provide_url.ts index 2a67d39469e..6bb479ab8ab 100644 --- a/client/event/provide_url.ts +++ b/client/event/provide_url.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from '../injector/types.js'; diff --git a/client/event/provide_url.unit.ts b/client/event/provide_url.unit.ts index ca3fff17b4c..401a45d7d3e 100644 --- a/client/event/provide_url.unit.ts +++ b/client/event/provide_url.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/event/types.ts b/client/event/types.ts index dd182900484..534a34baf92 100644 --- a/client/event/types.ts +++ b/client/event/types.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { InjectedFunction } from '../injector/types.js'; diff --git a/client/import/index.ts b/client/import/index.ts index 18510cfbbc3..d860210f745 100644 --- a/client/import/index.ts +++ b/client/import/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export { qImport } from './qImport.js'; diff --git a/client/import/qImport.ts b/client/import/qImport.ts index 33ecd24c2bc..441e1bdc0fa 100644 --- a/client/import/qImport.ts +++ b/client/import/qImport.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { getConfig } from '../config/qGlobal.js'; diff --git a/client/import/qImport.unit.ts b/client/import/qImport.unit.ts index 2f5c68299b3..f891eed7797 100644 --- a/client/import/qImport.unit.ts +++ b/client/import/qImport.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/import/qImport_default_unit.ts b/client/import/qImport_default_unit.ts index 7a9d1ed2360..fe18e9ff46d 100644 --- a/client/import/qImport_default_unit.ts +++ b/client/import/qImport_default_unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export default 'DEFAULT_VALUE'; diff --git a/client/import/qImport_symbol_unit.ts b/client/import/qImport_symbol_unit.ts index 0f3a7f516bd..312abf711e7 100644 --- a/client/import/qImport_symbol_unit.ts +++ b/client/import/qImport_symbol_unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export const mySymbol = 'MY_SYMBOL_VALUE'; diff --git a/client/import/qrl.ts b/client/import/qrl.ts index 4ad9358565b..6ff75ee7b9e 100644 --- a/client/import/qrl.ts +++ b/client/import/qrl.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { assertEqual } from '../assert/index.js'; @@ -14,7 +14,7 @@ import { getFilePathFromFrame } from '../util/base_uri.js'; import { isPromise } from '../util/promises.js'; /** - * `QRL` (Qoot Resource Locator) represents an import which points to a lazy loaded resource. + * `QRL` (Qwik Resource Locator) represents an import which points to a lazy loaded resource. * * QRL is a URL pointing to a lazy loaded resource. Because the URLs need to be verified * (and possibly bundled) there needs to be a way to identify all URL strings in the system. diff --git a/client/import/qrl.unit.ts b/client/import/qrl.unit.ts index ea28f4bd345..b17cf7f5475 100644 --- a/client/import/qrl.unit.ts +++ b/client/import/qrl.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import '../CONFIG.js'; diff --git a/client/index.ts b/client/index.ts index b1a5f2fcf7e..f1b685f6df5 100644 --- a/client/index.ts +++ b/client/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export * from './component/index.js'; diff --git a/client/injector/README.md b/client/injector/README.md index 46cbcd38dfe..429feae7623 100644 --- a/client/injector/README.md +++ b/client/injector/README.md @@ -1,5 +1,5 @@ -# Qoot Injection +# Qwik Injection -Injection is a way in which Qoot assembles different parts of code and data into callback functions. The purpose of injection is to get all of the dependencies in declarative way. +Injection is a way in which Qwik assembles different parts of code and data into callback functions. The purpose of injection is to get all of the dependencies in declarative way. -Injection in Qoot is unique in that it can +Injection in Qwik is unique in that it can diff --git a/client/injector/base_injector.ts b/client/injector/base_injector.ts index 621d3b8dfef..09683c7de82 100644 --- a/client/injector/base_injector.ts +++ b/client/injector/base_injector.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { EntityKey } from '../entity/entity_key.js'; diff --git a/client/injector/base_injector.unit.ts b/client/injector/base_injector.unit.ts index 19f39d731b0..af2453c3b42 100644 --- a/client/injector/base_injector.unit.ts +++ b/client/injector/base_injector.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/element_injector.ts b/client/injector/element_injector.ts index a07bc687b98..e535780fe3f 100644 --- a/client/injector/element_injector.ts +++ b/client/injector/element_injector.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { diff --git a/client/injector/element_injector.unit.ts b/client/injector/element_injector.unit.ts index f848aee58fd..02f447bc6c6 100644 --- a/client/injector/element_injector.unit.ts +++ b/client/injector/element_injector.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/get_injector.unit.ts b/client/injector/get_injector.unit.ts index 098981b6b4d..8e270d29d3c 100644 --- a/client/injector/get_injector.unit.ts +++ b/client/injector/get_injector.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/index.ts b/client/injector/index.ts index d3aaaaab4e5..4bdfe98a2eb 100644 --- a/client/injector/index.ts +++ b/client/injector/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export { injectFunction, injectMethod } from './inject.js'; diff --git a/client/injector/inject.ts b/client/injector/inject.ts index 460544dda9e..80f6bebd25a 100644 --- a/client/injector/inject.ts +++ b/client/injector/inject.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import '../util/qDev.js'; diff --git a/client/injector/inject.unit.ts b/client/injector/inject.unit.ts index b107da858f9..a42f4a5cf95 100644 --- a/client/injector/inject.unit.ts +++ b/client/injector/inject.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/provide_injector.ts b/client/injector/provide_injector.ts index 188fdac7ffc..7e6a24ff1e4 100644 --- a/client/injector/provide_injector.ts +++ b/client/injector/provide_injector.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from './types.js'; diff --git a/client/injector/provide_injector.unit.ts b/client/injector/provide_injector.unit.ts index 704602217e5..ad1128d9aec 100644 --- a/client/injector/provide_injector.unit.ts +++ b/client/injector/provide_injector.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/provide_provider_of.ts b/client/injector/provide_provider_of.ts index f391ee08729..4bba2190b21 100644 --- a/client/injector/provide_provider_of.ts +++ b/client/injector/provide_provider_of.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider } from './types.js'; diff --git a/client/injector/provide_provider_of.unit.ts b/client/injector/provide_provider_of.unit.ts index 594b276ab10..330a8c5bec1 100644 --- a/client/injector/provide_provider_of.unit.ts +++ b/client/injector/provide_provider_of.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/resolve_args.ts b/client/injector/resolve_args.ts index be8a8e70b99..bbce51c4d98 100644 --- a/client/injector/resolve_args.ts +++ b/client/injector/resolve_args.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Injector, Provider, ValueOrProviderReturns } from './types.js'; diff --git a/client/injector/resolve_args.unit.ts b/client/injector/resolve_args.unit.ts index 6102a343fba..655d33d4d6b 100644 --- a/client/injector/resolve_args.unit.ts +++ b/client/injector/resolve_args.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/injector/types.ts b/client/injector/types.ts index 6a0bec16f86..d125f5c7e81 100644 --- a/client/injector/types.ts +++ b/client/injector/types.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { EntityKey } from '../entity/entity_key.js'; @@ -108,7 +108,7 @@ export interface Injector { * - All property keys are translated from kebab to camel case (with first char being * lowercase) * - `bind:` properties are stored reversed. (Binding id is stored in attribute key and - * binding property is stored in attribute value. [Reason: so that Qoot can use + * binding property is stored in attribute value. [Reason: so that Qwik can use * `querySelectAll` to find all binding ids in case of an update.]) * * Example @@ -198,7 +198,7 @@ export interface Injector { /** * Represents a class constructor. * - * This type is often used when Qoot needs to refer to classes constructors. + * This type is often used when Qwik needs to refer to classes constructors. * @public */ export interface ConcreteType extends Function { @@ -243,7 +243,7 @@ export interface InjectedFunction Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). diff --git a/client/qootloader.ts b/client/qwikloader.ts similarity index 90% rename from client/qootloader.ts rename to client/qwikloader.ts index 4f015cca10e..b4d158efc0d 100644 --- a/client/qootloader.ts +++ b/client/qwikloader.ts @@ -1,16 +1,16 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** - * @fileoverview This is qoot-loader. + * @fileoverview This is qwik-loader. * - * This code should be included too bootstrap qoot sub-framework. - * The purpose of the qoot-loader is to listen for browser events, find + * This code should be included too bootstrap qwik sub-framework. + * The purpose of the qwik-loader is to listen for browser events, find * corresponding event handler, and lazy load the code associated with the * handler. * @@ -66,7 +66,7 @@ interface QConfig { const handler = module[exportName]; if (!handler) throw new Error( - `QOOTLOADER-ERROR: import '${importPath}' does not export '${exportName}'.` + `QWIKLOADER-ERROR: import '${importPath}' does not export '${exportName}'.` ); handler(element, event, url); } @@ -108,6 +108,6 @@ interface QConfig { document.addEventListener(readystatechange, processReadyStateChange); processReadyStateChange(); })( - // Invoke qoot-loader. + // Invoke qwik-loader. document ); diff --git a/client/render/README.md b/client/render/README.md index bae126cfb17..f544e56c8e3 100644 --- a/client/render/README.md +++ b/client/render/README.md @@ -1,6 +1,6 @@ # `render` sub-system -Rendering sub-system of `Qoot`. Currently, only `JSX` implementation is present, but the system is designed to support other rendering systems provided that they abide by these rules: +Rendering sub-system of `Qwik`. Currently, only `JSX` implementation is present, but the system is designed to support other rendering systems provided that they abide by these rules: - Must be able to render by reusing existing DOM nodes (rather than replace existing DOM nodes). -- Must have a mechanism for rendering `Qoot` special attributes. +- Must have a mechanism for rendering `Qwik` special attributes. diff --git a/client/render/index.ts b/client/render/index.ts index b8db78be77b..01b627bb38a 100644 --- a/client/render/index.ts +++ b/client/render/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export { serializeState } from './serialize_state.js'; diff --git a/client/render/jsx/attributes.ts b/client/render/jsx/attributes.ts index d82e4f9b3c7..319a6bcf039 100644 --- a/client/render/jsx/attributes.ts +++ b/client/render/jsx/attributes.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { fromCamelToKebabCase } from '../../util/case.js'; import { stringify } from '../../util/stringify.js'; diff --git a/client/render/jsx/attributes.unit.tsx b/client/render/jsx/attributes.unit.tsx index ad3171cae23..19cee24dae0 100644 --- a/client/render/jsx/attributes.unit.tsx +++ b/client/render/jsx/attributes.unit.tsx @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/render/jsx/factory.ts b/client/render/jsx/factory.ts index 7d735e61329..3ed18b3614f 100644 --- a/client/render/jsx/factory.ts +++ b/client/render/jsx/factory.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { EMPTY_OBJ } from '../../util/flyweight.js'; @@ -60,7 +60,7 @@ export function jsxFactory( } /** - * Declares a JSX Qoot component. + * Declares a JSX Qwik component. * * For lazy loading it is important that a top-level component does not have direct reference to * a child component. Doing so would pull in tho child component and prevent the child component diff --git a/client/render/jsx/host.ts b/client/render/jsx/host.ts index 3031ca9feb7..a5caecf88cb 100644 --- a/client/render/jsx/host.ts +++ b/client/render/jsx/host.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { newError } from '../../assert/assert.js'; @@ -18,7 +18,7 @@ import type { JSXNode } from './types.js'; * * ``` * - * Qoot requires that components have [docs/HOST_ELEMENTS.ts] so that it is possible to have + * Qwik requires that components have [docs/HOST_ELEMENTS.ts] so that it is possible to have * asynchronous loading point. Host element is not owned by the component. At times it is * desirable for the component to render additional attributes on the host element. `` * servers that purpose. diff --git a/client/render/jsx/html.ts b/client/render/jsx/html.ts index 8e3d88bd122..864d7dbadbf 100644 --- a/client/render/jsx/html.ts +++ b/client/render/jsx/html.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /////////////////////////////////////////////////// diff --git a/client/render/jsx/html_base.ts b/client/render/jsx/html_base.ts index 88195e014d6..8c787e7eaf1 100644 --- a/client/render/jsx/html_base.ts +++ b/client/render/jsx/html_base.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { QRL } from 'client/import/qrl.js'; diff --git a/client/render/jsx/index.ts b/client/render/jsx/index.ts index b575854a449..936aa331011 100644 --- a/client/render/jsx/index.ts +++ b/client/render/jsx/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import './html.js'; diff --git a/client/render/jsx/mark_dirty.ts b/client/render/jsx/mark_dirty.ts index 58c40a4da1f..9553dd3c0be 100644 --- a/client/render/jsx/mark_dirty.ts +++ b/client/render/jsx/mark_dirty.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { isElement } from '../../util/element.js'; @@ -140,7 +140,7 @@ export function scheduleRender(document: QDocument): Promise { const hosts: HostElements = []; componentHosts.forEach((host) => { host.removeAttribute(AttributeMarker.EventRender); - const qrl = (host.getAttribute(AttributeMarker.ComponentTemplate)! as any) as QRL; + const qrl = host.getAttribute(AttributeMarker.ComponentTemplate)! as any as QRL; qDev && assertString(qrl); const props: Props = extractPropsFromElement(host); jsxRenderComponent(host, qrl, waitOn, props, document); diff --git a/client/render/jsx/mark_dirty.unit.ts b/client/render/jsx/mark_dirty.unit.ts index 1d4b636f6b3..da22d703117 100644 --- a/client/render/jsx/mark_dirty.unit.ts +++ b/client/render/jsx/mark_dirty.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/render/jsx/render.ts b/client/render/jsx/render.ts index 063d0a5f099..21d0a308643 100644 --- a/client/render/jsx/render.ts +++ b/client/render/jsx/render.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { AttributeMarker } from 'client/util/markers.js'; diff --git a/client/render/jsx/render.unit.tsx b/client/render/jsx/render.unit.tsx index 27a48228223..c5edb832530 100644 --- a/client/render/jsx/render.unit.tsx +++ b/client/render/jsx/render.unit.tsx @@ -1,16 +1,16 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; import '../../CONFIG.js'; import { QRL } from '../../import/index.js'; import { ElementFixture } from '../../testing/element_fixture.js'; -import { createGlobal, QootGlobal } from '../../testing/node_utils.js'; +import { createGlobal, QwikGlobal } from '../../testing/node_utils.js'; import { jsxDeclareComponent, jsxFactory } from './factory.js'; import { Host } from './host.js'; import type { JSX_IntrinsicElements } from './html.js'; @@ -23,7 +23,7 @@ const _needed_by_ide_: JSX_IntrinsicElements = null!; // eslint-disable-line @ty // TODO(test): add test where `` => `async function Foo` describe('render', () => { - let global: QootGlobal; + let global: QwikGlobal; let document: Document; let host: HTMLElement; beforeEach(() => { @@ -88,7 +88,7 @@ describe('render', () => { head, Hello World from Server - + , document ); @@ -97,7 +97,7 @@ describe('render', () => { '' + '' + 'Hello World from Server' + - '' + + '' + '' + '' ); @@ -108,7 +108,7 @@ describe('render', () => { Hello World from Server - + Hello World! @@ -120,7 +120,7 @@ describe('render', () => { '' + '' + 'Hello World from Server' + - '' + + '' + '' + 'Hello World!' + '' @@ -192,7 +192,7 @@ describe('render', () => { }); }); - describe('qoot properties', () => { + describe('qwik properties', () => { it('should render event', async () => { // possible prefixes: on, in, at, for, to, bind, tie // Event prefixes `.` to mean framework event such as ` diff --git a/client/render/jsx/types.ts b/client/render/jsx/types.ts index 972761197df..4d3d713f472 100644 --- a/client/render/jsx/types.ts +++ b/client/render/jsx/types.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Props } from '../../injector/types.js'; diff --git a/client/render/serialize_state.ts b/client/render/serialize_state.ts index 18bd45a8302..f1aa0bd7d65 100644 --- a/client/render/serialize_state.ts +++ b/client/render/serialize_state.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { AttributeMarker } from '../util/markers.js'; diff --git a/client/render/serialize_state.unit.ts b/client/render/serialize_state.unit.ts index 006657ac44b..765552570cd 100644 --- a/client/render/serialize_state.unit.ts +++ b/client/render/serialize_state.unit.ts @@ -1,7 +1,7 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ diff --git a/client/render/types.ts b/client/render/types.ts index 76ae100678a..7d733311682 100644 --- a/client/render/types.ts +++ b/client/render/types.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/client/testing/BUILD.bazel b/client/testing/BUILD.bazel index 3de6102d449..9374e11e35c 100644 --- a/client/testing/BUILD.bazel +++ b/client/testing/BUILD.bazel @@ -8,7 +8,7 @@ load("@npm//@bazel/typescript:index.bzl", "ts_project") js_library( name = "testing", - package_name = "qoot_testing", + package_name = "qwik_testing", srcs = ["package.json"], deps = [ ":project", @@ -55,7 +55,7 @@ ts_project( js_library( name = "unit_lib", - package_name = "qoot_testing", + package_name = "qwik_testing", srcs = ["package.json"], deps = [ ":unit_project", diff --git a/client/testing/component_fixture.tsx b/client/testing/component_fixture.tsx index 539b7422d55..f0d96ae9733 100644 --- a/client/testing/component_fixture.tsx +++ b/client/testing/component_fixture.tsx @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { AttributeMarker } from '../util/markers.js'; diff --git a/client/testing/componentize.ts b/client/testing/componentize.ts index daf7738a4bb..a2219320916 100644 --- a/client/testing/componentize.ts +++ b/client/testing/componentize.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { qImportSet } from '../import/qImport.js'; diff --git a/client/testing/element_fixture.ts b/client/testing/element_fixture.ts index 8d4889a8ca0..74d3cc04046 100644 --- a/client/testing/element_fixture.ts +++ b/client/testing/element_fixture.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { ElementInjector } from '../injector/element_injector.js'; diff --git a/client/testing/node_utils.ts b/client/testing/node_utils.ts index 55fc8cf3851..928bcba6fe2 100644 --- a/client/testing/node_utils.ts +++ b/client/testing/node_utils.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { default as global } from '../util/global.js'; @@ -12,19 +12,19 @@ import srcMap from 'source-map-support'; srcMap.install(); /** - * Partial Global used by Qoot Framework. + * Partial Global used by Qwik Framework. * - * A set of properties which the Qoot Framework expects to find on global. + * A set of properties which the Qwik Framework expects to find on global. */ -export interface QootGlobal { +export interface QwikGlobal { /** - * Document used by Qoot during rendering. + * Document used by Qwik during rendering. */ document: Document; } /** - * Create emulated `QootGlobal` useful for testing. + * Create emulated `QwikGlobal` useful for testing. */ export function createGlobal(baseUri: string) { if ((global as any).CustomEvent === undefined) { diff --git a/client/testing/node_utils.unit.ts b/client/testing/node_utils.unit.ts index 86ea689e838..7364085e096 100644 --- a/client/testing/node_utils.unit.ts +++ b/client/testing/node_utils.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/array.ts b/client/util/array.ts index 42fbb6ed309..6b0c335a64a 100644 --- a/client/util/array.ts +++ b/client/util/array.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function flattenArray(array: (T | T[])[], dst?: T[]): T[] { diff --git a/client/util/attributes.ts b/client/util/attributes.ts index 923b59cfda0..d8fde811c59 100644 --- a/client/util/attributes.ts +++ b/client/util/attributes.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { qError, QError } from '../error/error.js'; diff --git a/client/util/attributes.unit.ts b/client/util/attributes.unit.ts index dcb9a0c56c6..34083d92082 100644 --- a/client/util/attributes.unit.ts +++ b/client/util/attributes.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; @@ -15,10 +15,10 @@ describe('attributes', () => { it('should read attributes', () => { const fixture = new ElementFixture(); fixture.host.setAttribute('key', 'value'); - fixture.host.setAttribute('name', 'Qoot'); + fixture.host.setAttribute('name', 'Qwik'); expect(extractPropsFromElement(fixture.host)).to.eql({ key: 'value', - name: 'Qoot', + name: 'Qwik', }); }); it('should read bindings', () => { diff --git a/client/util/base_uri.ts b/client/util/base_uri.ts index b44cd6c6e65..71b022d136f 100644 --- a/client/util/base_uri.ts +++ b/client/util/base_uri.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import './qDev.js'; diff --git a/client/util/base_uri.unit.ts b/client/util/base_uri.unit.ts index acab2499d48..2f8de41fe79 100644 --- a/client/util/base_uri.unit.ts +++ b/client/util/base_uri.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/case.ts b/client/util/case.ts index f684adee397..966d2d3bda6 100644 --- a/client/util/case.ts +++ b/client/util/case.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ const camelToKebabCase = new Map(); diff --git a/client/util/case.unit.ts b/client/util/case.unit.ts index 44aea139e49..3f02689dec6 100644 --- a/client/util/case.unit.ts +++ b/client/util/case.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/dirname.ts b/client/util/dirname.ts index 2a274a7ac42..7fe82f43574 100644 --- a/client/util/dirname.ts +++ b/client/util/dirname.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/client/util/dirname.unit.ts b/client/util/dirname.unit.ts index 7898de3a90b..60d3c2821fb 100644 --- a/client/util/dirname.unit.ts +++ b/client/util/dirname.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/dom.ts b/client/util/dom.ts index 48151f2e056..d5a9bb332df 100644 --- a/client/util/dom.ts +++ b/client/util/dom.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/client/util/dom.unit.ts b/client/util/dom.unit.ts index fd15b5980e5..5b245c21ac1 100644 --- a/client/util/dom.unit.ts +++ b/client/util/dom.unit.ts @@ -1,17 +1,17 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; -import { createGlobal, QootGlobal } from '../testing/node_utils.js'; +import { createGlobal, QwikGlobal } from '../testing/node_utils.js'; import { isDomElementWithTagName } from './types.js'; describe('dom', () => { - let global: QootGlobal; + let global: QwikGlobal; let div: HTMLElement; let span: HTMLElement; let text: Text; diff --git a/client/util/dom_attrs.ts b/client/util/dom_attrs.ts index bc143e5d9f7..fbbc8eade13 100644 --- a/client/util/dom_attrs.ts +++ b/client/util/dom_attrs.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { qError, QError } from '../error/error.js'; diff --git a/client/util/dom_attrs.unit.ts b/client/util/dom_attrs.unit.ts index 9635f5d7476..e659eb6b43c 100644 --- a/client/util/dom_attrs.unit.ts +++ b/client/util/dom_attrs.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/element.ts b/client/util/element.ts index 759829749a3..ce95c6b9f53 100644 --- a/client/util/element.ts +++ b/client/util/element.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function isElement(value: any): value is Element { diff --git a/client/util/flyweight.ts b/client/util/flyweight.ts index a86755f0282..8d24bc3705c 100644 --- a/client/util/flyweight.ts +++ b/client/util/flyweight.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import './qDev.js'; diff --git a/client/util/function.ts b/client/util/function.ts index 7f9ac68d1df..1db493b0cfd 100644 --- a/client/util/function.ts +++ b/client/util/function.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function namedFn(name: string, delegate: T): T { diff --git a/client/util/global.ts b/client/util/global.ts index a98a13ce5c3..868504b1b25 100644 --- a/client/util/global.ts +++ b/client/util/global.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ declare const global: any; diff --git a/client/util/markers.ts b/client/util/markers.ts index 8fda369e7b0..3e8a054946b 100644 --- a/client/util/markers.ts +++ b/client/util/markers.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export const enum AttributeMarker { diff --git a/client/util/promises.ts b/client/util/promises.ts index 28cedd86e01..ba207e804d5 100644 --- a/client/util/promises.ts +++ b/client/util/promises.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { flattenArray } from './array.js'; diff --git a/client/util/qDev.ts b/client/util/qDev.ts index 47c1feef04d..3b0a8d52b36 100644 --- a/client/util/qDev.ts +++ b/client/util/qDev.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import global from './global.js'; diff --git a/client/util/string.ts b/client/util/string.ts index 4bb18f51ba6..537f2d9329f 100644 --- a/client/util/string.ts +++ b/client/util/string.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function caseInsensitiveCompare(a: any, b: any): boolean { diff --git a/client/util/string.unit.ts b/client/util/string.unit.ts index 2d4f6948c1f..c1c80cf6e03 100644 --- a/client/util/string.unit.ts +++ b/client/util/string.unit.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { expect } from 'chai'; diff --git a/client/util/stringify.ts b/client/util/stringify.ts index c3589aead66..e035ab56f82 100644 --- a/client/util/stringify.ts +++ b/client/util/stringify.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ export function stringify(value: any): string | null { diff --git a/cypress/integration/bootloader_spec.ts b/cypress/integration/bootloader_spec.ts index 619087aac1f..a4e7c46df3a 100644 --- a/cypress/integration/bootloader_spec.ts +++ b/cypress/integration/bootloader_spec.ts @@ -1,15 +1,15 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /// describe('bootloader_spec', () => { - beforeEach(() => cy.visit('/specs/qootloader_spec.html')); + beforeEach(() => cy.visit('/specs/qwikloader_spec.html')); it('should register all events', () => { cy.get('#click_test > button').click(); cy.get('#click_test > pre').should((pre) => expect(pre).to.have.text('PASSED')); diff --git a/cypress/integration/hello_server_spec.ts b/cypress/integration/hello_server_spec.ts index 183890ce72f..5eed3e1b57f 100644 --- a/cypress/integration/hello_server_spec.ts +++ b/cypress/integration/hello_server_spec.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /// diff --git a/cypress/integration/hello_static_spec.ts b/cypress/integration/hello_static_spec.ts index 6d70b01cc98..bf0f57449d3 100644 --- a/cypress/integration/hello_static_spec.ts +++ b/cypress/integration/hello_static_spec.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /// diff --git a/cypress/integration/todo_spec.ts b/cypress/integration/todo_spec.ts index 14c861ee45d..759f8ee0316 100644 --- a/cypress/integration/todo_spec.ts +++ b/cypress/integration/todo_spec.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /// @@ -41,7 +41,7 @@ describe('todo', () => { cy.wait(50); cy.get('.todo-list>li:first-child input.edit').type('123{enter}'); cy.get('.todo-list>li:first-child').should((item: any) => - expect(item).to.have.text('Read Qoot docs123') + expect(item).to.have.text('Read Qwik docs123') ); }); diff --git a/cypress/plugins/index.ts b/cypress/plugins/index.ts index 50cb1e1b149..0e6e7654ab2 100644 --- a/cypress/plugins/index.ts +++ b/cypress/plugins/index.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /// diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md index a4f37c371bc..f9c51d6309b 100644 --- a/docs/BOOTSTRAP.md +++ b/docs/BOOTSTRAP.md @@ -1,19 +1,19 @@ [![hackmd-github-sync-badge](https://hackmd.io/gSlQBtwzTkO6hWgw93wSmg/badge)](https://hackmd.io/gSlQBtwzTkO6hWgw93wSmg) -# Bootstrapping Qoot +# Bootstrapping Qwik -Qoot is designed to have the smallest amount of code which needs to be run on the client to bootstrap the application. The size of bootstrap code has direct impact on application [time to interactive](https://web.dev/interactive/). +Qwik is designed to have the smallest amount of code which needs to be run on the client to bootstrap the application. The size of bootstrap code has direct impact on application [time to interactive](https://web.dev/interactive/). -The bootstrapping code is known as `qootloader` and is tiny (around 500 bytes minified.) and can bootstrap in under one millisecond. The purpose of `qootloader` is to set up global browser event listeners for your application, such as `click` event. If an event fires, the `qootloader` looks for a corresponding `on:click` attribute which contains a [QRL](./QRL.md). The QRL tells `qootloader` from where the event handler for the `click` event should be downloaded. +The bootstrapping code is known as `qwikloader` and is tiny (around 500 bytes minified.) and can bootstrap in under one millisecond. The purpose of `qwikloader` is to set up global browser event listeners for your application, such as `click` event. If an event fires, the `qwikloader` looks for a corresponding `on:click` attribute which contains a [QRL](./QRL.md). The QRL tells `qwikloader` from where the event handler for the `click` event should be downloaded. ## Bootstrapping -To bootstrap a Qoot application one needs to insert this into the page: +To bootstrap a Qwik application one needs to insert this into the page: ```html - + ``` -- `src`: points to the location where the `qootloader.js` can be found. -- `async`: Tells the browser that it is not necessary to wait for the `qootloader` to load and execute before continuing to parse the HTML. The application will work without this, but adding `async` will slightly improve the startup time. -- `events`: An optional list of events which the `qootloader` should listen too. If the list is not provided the `qootloader` will listen to all of the browser events. While this may be convenient, it will result in longer bootstrap times. Listing the events is strongly preferred. +- `src`: points to the location where the `qwikloader.js` can be found. +- `async`: Tells the browser that it is not necessary to wait for the `qwikloader` to load and execute before continuing to parse the HTML. The application will work without this, but adding `async` will slightly improve the startup time. +- `events`: An optional list of events which the `qwikloader` should listen too. If the list is not provided the `qwikloader` will listen to all of the browser events. While this may be convenient, it will result in longer bootstrap times. Listing the events is strongly preferred. diff --git a/docs/CHEAT_SHEET.md b/docs/CHEAT_SHEET.md index 5476ecc3a61..3d3c8cb4638 100644 --- a/docs/CHEAT_SHEET.md +++ b/docs/CHEAT_SHEET.md @@ -2,7 +2,7 @@ ## Special HTML attributes -HTML attributes with the following syntax have a special meaning to Qoot. +HTML attributes with the following syntax have a special meaning to Qwik. 1. They always contain `:` characters to make them less likely to collide with existing attributes. 2. The consist of a "key" and a "value", separated by `=`, as described in the following tables. diff --git a/docs/LAZY_LOADING.md b/docs/LAZY_LOADING.md index 93f297e3c5f..de2060774ea 100644 --- a/docs/LAZY_LOADING.md +++ b/docs/LAZY_LOADING.md @@ -12,7 +12,7 @@ Frameworks also tend to have synchronous APIs making it hard for the developers ## Fined-grained lazy-loading as a core primitive -Qoot takes fine-grained lazy-loading to the extreme. Almost all Qoot APIs can be called asynchronously so that lazy-loading can be inserted in case it is needed. That is not to say that you should make everything lazy-loaded as there are tradeoffs, but rather that the framework allows just about anything lazy-loaded in case the need arises. +Qwik takes fine-grained lazy-loading to the extreme. Almost all Qwik APIs can be called asynchronously so that lazy-loading can be inserted in case it is needed. That is not to say that you should make everything lazy-loaded as there are tradeoffs, but rather that the framework allows just about anything lazy-loaded in case the need arises. Lazy loading directly impacts the amount of code which needs to be downloaded, parsed and executed resulting in improved [time to interactive](https://web.dev/interactive/) score. @@ -22,7 +22,7 @@ One of the biggest places where fine-grained lazy-loading can be applied is in t In practice this means that [heap-centric](./RESUMABLE.md) frameworks must execute all of the templates so that they can collect the event handlers and attach them to the DOM, just in case the user will perform an interaction. A developer could place dynamic imports in the event handlers, but in practice this is complicated because event bubbling is synchronous making composing event handlers hard. It also means that a heap-centric framework must download and execute all of the templates currently visible to the user. All of these complications slow down [time to interactive](https://web.dev/interactive/) and do not directly help the developer to do the right thing. -Qoot stores event handlers as string annotations in the DOM. This has several advantages: +Qwik stores event handlers as string annotations in the DOM. This has several advantages: - No template needs to be downloaded and rendered in order for the framework to know where the event handlers need to be registered. - No event handler code needs to be downloaded before it is needed. @@ -47,14 +47,14 @@ Let's say that the framework has determined that only the `` component n The reverse is also true. Let's say that `` has a button with a `click` handler. Clicking the button will cause the application to change state (which may be store in redux pattern.) Most current frameworks don't directly track state and so there is no way of knowing which other components need to be invalidated due to execution of the event handler. The only thing the framework can do is to re-render the whole application from the root just-in-case there is a component which depends on the state. We can say that the current approach causes "parent component-coupling". -> Yes, there are some frameworks which track data-flow through subscriptions (reactive frameworks), and such frameworks would know which exact component needs to be updated. The problem is that setting up these subscriptions necessitates the creation of closures which in turn need references to the components. Creation of these subscriptions forces all of the components to be materialized negating any benefits. (see: [Qoot reactivity](./REACTIVITY.md)) +> Yes, there are some frameworks which track data-flow through subscriptions (reactive frameworks), and such frameworks would know which exact component needs to be updated. The problem is that setting up these subscriptions necessitates the creation of closures which in turn need references to the components. Creation of these subscriptions forces all of the components to be materialized negating any benefits. (see: [Qwik reactivity](./REACTIVITY.md)) Child and parent component-coupling means that in practice all of the currently visible application must be downloaded and present for the application to be user interactive. As applications get bigger and more complicated this requirements means tha the application startup gets slower over time. -Qoot focuses on breaking these dependencies so that neither child nor parent component-coupling are an issue resulting in a rendering model which does not require that templates or event handlers are downloaded until they are needed. +Qwik focuses on breaking these dependencies so that neither child nor parent component-coupling are an issue resulting in a rendering model which does not require that templates or event handlers are downloaded until they are needed. -Breaking child component-coupling requires that the Qoot's rendering system understands where component boundaries are, and can conditionally enter child components based on dirty flag of the component. This means that the rendering pipeline of Qoot is asynchronous, and understands how to conditionally download component templates on as needed basis. (Contrast this to current generation frameworks which have synchronous rendering pipelines. This complicates async template loading, and the rendering always enters child components.) +Breaking child component-coupling requires that the Qwik's rendering system understands where component boundaries are, and can conditionally enter child components based on dirty flag of the component. This means that the rendering pipeline of Qwik is asynchronous, and understands how to conditionally download component templates on as needed basis. (Contrast this to current generation frameworks which have synchronous rendering pipelines. This complicates async template loading, and the rendering always enters child components.) ## Out of order component re-hydration -A key goal for Qoot is to allow components to re-hydrate and re-render only when it is necessary. The implication of this is that at times components can re-hydrate out of parent/child order. A non-obvious implication of this is that the framework rendering pipeline needs to understand how to render components from the root, skip non-hydrated components and continue with deep children. +A key goal for Qwik is to allow components to re-hydrate and re-render only when it is necessary. The implication of this is that at times components can re-hydrate out of parent/child order. A non-obvious implication of this is that the framework rendering pipeline needs to understand how to render components from the root, skip non-hydrated components and continue with deep children. diff --git a/docs/MENTAL_MODEL.md b/docs/MENTAL_MODEL.md index aaa3d23269a..a425bf7874e 100644 --- a/docs/MENTAL_MODEL.md +++ b/docs/MENTAL_MODEL.md @@ -2,7 +2,7 @@ ## Overview -Qoot is a different kind of framework. Qoot stores all of the application information in the DOM/HTML rather than in Javascript heap. The result is that the applications written in Qoot can be serialized and resumed where they left off. Qoot's design decisions are governed by: +Qwik is a different kind of framework. Qwik stores all of the application information in the DOM/HTML rather than in Javascript heap. The result is that the applications written in Qwik can be serialized and resumed where they left off. Qwik's design decisions are governed by: - **Serializability:** Ability of the application to be serialized into HTML at any time and resumed later. (This supports resumability and server-side-rendering.) - **Resumability:** Ability of the application to continue where it left off when it was serialized. (This is needed to have fast application startup times independent of application size.) @@ -14,12 +14,12 @@ Because of the above goals, some design decisions may feel foreign compared to t ## Component & Entities -Qoot applications consist of `Component`s and `Entity`s. +Qwik applications consist of `Component`s and `Entity`s. -- **Component:** Qoot applications UIs are built from a collection of Qoot `Component`s. `Component`s can communicate with each other only through `Props`, `Entity`s, and by listening to or emitting/broadcasting `Event`s. (See [reactivity](./REACTIVITY.md)). No other form of communication is allowed as it would go against the goals outlined above. +- **Component:** Qwik applications UIs are built from a collection of Qwik `Component`s. `Component`s can communicate with each other only through `Props`, `Entity`s, and by listening to or emitting/broadcasting `Event`s. (See [reactivity](./REACTIVITY.md)). No other form of communication is allowed as it would go against the goals outlined above. - **Entity:** `Entity`s represent application data or shared behavior between `Component`s and the application backend. `Entity`s do not have UI representation and must be injected into a `Component` to have their data rendered. `Entity`s can perform communication with the server or other external resources. -A Qoot application is a graph of `Component`s and `Entity`s that define data flow. The Qoot framework will hydrate `Component`s/`Entity`s on an as-needed basis to achieve the desired outcome. To do this, the Qoot framework must understand the data flow between `Component`s and `Entity`s to know which `Component` or `Entity` needs to be rehydrated and when. Most other frameworks do not have this understanding and need to re-render the whole application on any data update resulting in too much code that must be downloaded. (See [lazy loading](./LAZY_LOADING.md).) +A Qwik application is a graph of `Component`s and `Entity`s that define data flow. The Qwik framework will hydrate `Component`s/`Entity`s on an as-needed basis to achieve the desired outcome. To do this, the Qwik framework must understand the data flow between `Component`s and `Entity`s to know which `Component` or `Entity` needs to be rehydrated and when. Most other frameworks do not have this understanding and need to re-render the whole application on any data update resulting in too much code that must be downloaded. (See [lazy loading](./LAZY_LOADING.md).) ### Example @@ -29,7 +29,7 @@ TodoComponent <---------- TodoDataEntity +-> ItemComponent <----- +--> ItemDataEntity ``` -Above is a `Component`/`Entity` dependency graph of a hypothetical application. in Qoot, relationships between `Component`s and `Entity`s are expressed in the DOM/HTML. Depending on which object updates, Qoot understands which other `Component`s need to be rehydrated and re-rendered as well. (Without this understanding, Qoot would have to re-render the whole application indiscriminately.) +Above is a `Component`/`Entity` dependency graph of a hypothetical application. in Qwik, relationships between `Component`s and `Entity`s are expressed in the DOM/HTML. Depending on which object updates, Qwik understands which other `Component`s need to be rehydrated and re-rendered as well. (Without this understanding, Qwik would have to re-render the whole application indiscriminately.) ## Serializability of Components & Entities. @@ -37,7 +37,7 @@ Above is a `Component`/`Entity` dependency graph of a hypothetical application. A `Component` or `Entity` consist of: -- **`Props`:** These are a hash of key/value strings (`{[key:string]:string}`), which tell Qoot about the `Component` or `Entity`. +- **`Props`:** These are a hash of key/value strings (`{[key:string]:string}`), which tell Qwik about the `Component` or `Entity`. - **`Component`:** These are just the DOM attributes of the `Component`'s host element. If the attributes change, then the `Component` gets notified. These `Props` are serialized into the [host element](./HOST_ELEMENT.md). - **`Entity`:** The `Props` for a `Entity`s are usually serialized into a `EntityKey`, which uniquely identifies a entity instance. The `EntityKey` is constant for the lifetime of the entity. (For example `issue:org123:proj456:789` might identify an issue with id `789` in `org123/proj456`.) - **`State`:** A `Component` or `Entity` have a `State` which is a `JSON` serializable object. If an application is dehydrated then then the `State` is serialized into the DOM/HTML so that it can be quickly rehydrated on the client. @@ -111,29 +111,29 @@ expect(userEntity.$state).toEqual({ ## DOM Centric -A Qoot application is DOM-centric. All of the information about the application `Component`s, `Entity`s, `Event`s, and entity bindings are stored in the DOM as custom attributes. There is no runtime Qoot framework heap state (with the exception of caches for performance). The result is that a Qoot application can easily be rehydrated because the Qoot framework has no runtime information which needs to be recreated on the client. +A Qwik application is DOM-centric. All of the information about the application `Component`s, `Entity`s, `Event`s, and entity bindings are stored in the DOM as custom attributes. There is no runtime Qwik framework heap state (with the exception of caches for performance). The result is that a Qwik application can easily be rehydrated because the Qwik framework has no runtime information which needs to be recreated on the client. -Here are some common ways Qoot framework keeps state in DOM/HTML. +Here are some common ways Qwik framework keeps state in DOM/HTML. - ``: The `decl:template` attribute identifies a component boundary. It also points to the location where the template can be found in case of rehydration. `Component`s can be rehydrated and rendered independently of each other. - `
`: The `::user` attribute declares a `UserEntity` provider on this element's injector which points to the location where the `Entity` can be lazy loaded from. - `
`: The dehydrated, serialized form of a `UserEntity` with `Props: {id: 'some_user_id'}` and `State: {fullName: "Joe Someone", age: 20}`. -- ``: A entity binding to a `Component`. This tells Qoot that if the `State` of `UserEntity ` with `EntityKey`: `user:some_user_id` changes, the component `` will need to be re-rendered. -- # ``: The `on:click` attribute notifies Qoot framework that the component is interested in `click` events. The attribute points to the location where the click handler can be lazy-loaded from. +- ``: A entity binding to a `Component`. This tells Qwik that if the `State` of `UserEntity ` with `EntityKey`: `user:some_user_id` changes, the component `` will need to be re-rendered. +- # ``: The `on:click` attribute notifies Qwik framework that the component is interested in `click` events. The attribute points to the location where the click handler can be lazy-loaded from. `Component`s are similar to `Entity`s except they are associated with a specific UI host-element, and `Component`'s `Props` can change over time. ## DOM Centric -A Qoot application is DOM-centric. All of the information about the application `Component`s, `Entity`s, `Event`s, and entity bindings are stored in the DOM as custom attributes. There is no runtime Qoot framework heap state (with the exception of caches for performance). The result is that Qoot application can easily be rehydrated because Qoot framework has no runtime information which needs to be recreated on the client. +A Qwik application is DOM-centric. All of the information about the application `Component`s, `Entity`s, `Event`s, and entity bindings are stored in the DOM as custom attributes. There is no runtime Qwik framework heap state (with the exception of caches for performance). The result is that Qwik application can easily be rehydrated because Qwik framework has no runtime information which needs to be recreated on the client. -Here are some common ways Qoot framework keeps state in DOM/HTML. +Here are some common ways Qwik framework keeps state in DOM/HTML. - ``: The `::` attribute identifies a component boundary. It also points to the location where the template can be found in case of rehydration. `Component`s can be rehydrated and rendered independently of each other. - `
`: The `::user` attribute declares a `UserEntity` provider which points to the location where the `Entity` can be lazy loaded from. - `
`: A serialized form of a `UserEntity` with `Props: {id: 'some_user_id'}` and `State: {fullName: "Joe Someone", age: 20}`. -- ``: A entity binding to a `Component`. This tells Qoot that if the `State` of `UserEntity ` with `Key`: `user:some_user_id` changes, the component `` will need to be re-rendered. -- ``: The `on:click` attribute notifies Qoot framework that the component is interested in the `click` events. The attribute points to the location where the click handler can be lazy-loaded from. +- ``: A entity binding to a `Component`. This tells Qwik that if the `State` of `UserEntity ` with `Key`: `user:some_user_id` changes, the component `` will need to be re-rendered. +- ``: The `on:click` attribute notifies Qwik framework that the component is interested in the `click` events. The attribute points to the location where the click handler can be lazy-loaded from. -The benefit of the DOM centric approach is that all of the application state is already serialized in DOM/HTML. The Qoot framework itself has no additional information which it needs to store about the application. +The benefit of the DOM centric approach is that all of the application state is already serialized in DOM/HTML. The Qwik framework itself has no additional information which it needs to store about the application. -Another important benefit is that Qoot can use `querySelectorAll` to easily determine if there are any bindings for a `Entity` or if there are any listeners for a specific `Event` without having to consult any internal data structures. The DOM is Qoot's framework state. +Another important benefit is that Qwik can use `querySelectorAll` to easily determine if there are any bindings for a `Entity` or if there are any listeners for a specific `Event` without having to consult any internal data structures. The DOM is Qwik's framework state. diff --git a/docs/QRL.md b/docs/QRL.md index e991f5ecfb3..5d99aa8df32 100644 --- a/docs/QRL.md +++ b/docs/QRL.md @@ -1,6 +1,6 @@ # QRL -QRL is Qoot-URL. It is a URL which contains custom protocols which is understood by Qoot. All QRLs are syntactically valid URLs, however QRLs have custom protocols and so can't be used directly by the browser. +QRL is Qwik-URL. It is a URL which contains custom protocols which is understood by Qwik. All QRLs are syntactically valid URLs, however QRLs have custom protocols and so can't be used directly by the browser. ## Protocol @@ -17,7 +17,7 @@ Assume this HTML: 1. First the QRLs are often embedded in HTML. In such a case the relative nature should be from HTML not from the framework. However the HTML URL often has custom URL due to routing, and so really URL has nothing to do with where the actual location of the code resides. 2. To compose libraries, the library author does not know how the files will be layed out (or bundled) on the application server. So there needs to be a way to reefer to resources but give the configuration to the application developer. -For the above two reasons relative imports just don't make much sense in Qoot and should be avoided. Instead we need to use absolute URLs. However sprinkling absolute URLs all over the code base is equally problematic as it makes the code hard to refactor or move. +For the above two reasons relative imports just don't make much sense in Qwik and should be avoided. Instead we need to use absolute URLs. However sprinkling absolute URLs all over the code base is equally problematic as it makes the code hard to refactor or move. ```html @@ -62,13 +62,13 @@ setConfig({ }); ``` -The important part is the `baseURI` which gets set to the obsolete URL of this file (`import.meta.url` returns `file://path/to/CONFIG.js`.) This will tell Qoot to resolve all files which come from a `file://path/to/**` folder using this configuration. +The important part is the `baseURI` which gets set to the obsolete URL of this file (`import.meta.url` returns `file://path/to/CONFIG.js`.) This will tell Qwik to resolve all files which come from a `file://path/to/**` folder using this configuration. It is important that you import the `CONFIG.ts` file someplace from the root of the application so that the protocols can get configured before they are used. ## File extension -When Qoot imports a QRL it always imports it with a `.js` extension. +When Qwik imports a QRL it always imports it with a `.js` extension. ## Search Parameters diff --git a/docs/REACTIVITY.md b/docs/REACTIVITY.md index 3d28e7f94a9..3955b90f410 100644 --- a/docs/REACTIVITY.md +++ b/docs/REACTIVITY.md @@ -1,6 +1,6 @@ -# Qoot Reactivity +# Qwik Reactivity -Qoot is a component-level reactive, template-level reconciliation, rendering framework. +Qwik is a component-level reactive, template-level reconciliation, rendering framework. All frameworks face the problem of knowing when a component should be re-rendered. There are many different approaches to this problem. Generally, the solutions fall into these categories: @@ -10,12 +10,12 @@ All frameworks face the problem of knowing when a component should be re-rendere - **Structured state:** Stores the state of the application in a well-known location. The system guards state against data writes. Any writes to the state result in the whole application view being considered dirty. The reason why the whole application is dirty is because the system does not know which data will end up where, and so it has to assume that any component could be changed as a result of the system write. (Example would be a redux pattern.) - **Unstructured state:** state is stored in memory heap, and any execution of the code assumes that there was a property write which necessitates the invalidation of the view. This schedules the view for re-rendering. (Example would be Angular with zone.js) -The advantage of reactive systems is that the system knows when a subscriber needs to be updated (instead of updating the whole app.) The downside is that the system needs to set up and clean up the subscriptions. The subscriptions are usually function closures that close over a component instance and its template. Setting up these kinds of subscriptions would force code to be downloaded too early, defeating the goal of Qoot only to download the immediately necessary code. +The advantage of reactive systems is that the system knows when a subscriber needs to be updated (instead of updating the whole app.) The downside is that the system needs to set up and clean up the subscriptions. The subscriptions are usually function closures that close over a component instance and its template. Setting up these kinds of subscriptions would force code to be downloaded too early, defeating the goal of Qwik only to download the immediately necessary code. -Qoot takes a different approach to setting up the subscriptions. Qoot stores application state in entities. Components subscribe to entities to get notified of entity state change. The subscription creates a component-level reactive system. The subscription system gives Qoot knowledge to know when and which component should be invalidated and scheduled for re-rendering when the data store changes. This solves the issue of having to re-render the whole app on any state change. Knowing which components subscribe to which entity allows Qoot only to download and render the relevant components. +Qwik takes a different approach to setting up the subscriptions. Qwik stores application state in entities. Components subscribe to entities to get notified of entity state change. The subscription creates a component-level reactive system. The subscription system gives Qwik knowledge to know when and which component should be invalidated and scheduled for re-rendering when the data store changes. This solves the issue of having to re-render the whole app on any state change. Knowing which components subscribe to which entity allows Qwik only to download and render the relevant components. -> NOTE: One could build a redux system on top of Qoot entities. +> NOTE: One could build a redux system on top of Qwik entities. -The critical difference to standard subscription system based on function closures, the Qoot subscription system is based on DOM attributes. This allows the DOM to declare relationships between entities and components without allocating and executing any subscription listeners or releasing listeners when views go away. The subscription system in Qoot is fully declarative and has no runtime overhead of setting up the relationships. +The critical difference to standard subscription system based on function closures, the Qwik subscription system is based on DOM attributes. This allows the DOM to declare relationships between entities and components without allocating and executing any subscription listeners or releasing listeners when views go away. The subscription system in Qwik is fully declarative and has no runtime overhead of setting up the relationships. -> In practice, Qoot uses `querySelectorAll` to find all listeners interested in specific state changes and only re-hydrates the listening component if the component needs to be re-rendered. +> In practice, Qwik uses `querySelectorAll` to find all listeners interested in specific state changes and only re-hydrates the listening component if the component needs to be re-rendered. diff --git a/docs/README.md b/docs/README.md index b7df9e42c5e..275393189d9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# Qoot Documentation +# Qwik Documentation ## Understanding Concepts @@ -7,8 +7,8 @@ - [Resumable vs Replayable applications](./RESUMABLE.md) - Component's [host-element](./HOST_ELEMENT.md) - [Lazy Loading](./LAZY_LOADING.md) -- [Qoot URL](./QRL.md) -- [Qoot Reactivity](./REACTIVITY.md) +- [Qwik URL](./QRL.md) +- [Qwik Reactivity](./REACTIVITY.md) ## Getting Started diff --git a/docs/RESUMABLE.md b/docs/RESUMABLE.md index ddcc9c81980..126fe6de350 100644 --- a/docs/RESUMABLE.md +++ b/docs/RESUMABLE.md @@ -1,6 +1,6 @@ # Resumable vs Replayable -A key concept of Qoot applications is that they are resumable from server-side-rendered state. Best way to explain resumability is to understand how the current generation of frameworks are replayable. +A key concept of Qwik applications is that they are resumable from server-side-rendered state. Best way to explain resumability is to understand how the current generation of frameworks are replayable. ## Frameworks must understand the application diff --git a/generate/tsx/types.html b/generate/tsx/types.html index f679582a79b..e601ab31f35 100644 --- a/generate/tsx/types.html +++ b/generate/tsx/types.html @@ -3,10 +3,10 @@
 /**
 * @license
-* Copyright a-Qoot All Rights Reserved.
+* Copyright BuilderIO All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
-* found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+* found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
 */
 
 ///////////////////////////////////////////////////
diff --git a/integration/BUILD.bazel b/integration/BUILD.bazel
index b64db700f4b..0774a8cedbc 100644
--- a/integration/BUILD.bazel
+++ b/integration/BUILD.bazel
@@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"])
 
 js_library(
     name = "integration_lib",
-    package_name = "qoot_integration",
+    package_name = "qwik_integration",
     srcs = ["package.json"],
     deps = [
         ":integration",
@@ -45,9 +45,9 @@ nodejs_binary(
     data = [
         ":integration_lib",
         ":static_files",
-        "//client:qoot",
-        "//client:qootloader",
-        "//client:qootloader.min",
+        "//client:qwik",
+        "//client:qwikloader",
+        "//client:qwikloader.min",
         "//server",
         "@npm//domino",
     ],
@@ -56,7 +56,7 @@ nodejs_binary(
         "--node_options=--experimental-modules",
         "--nobazel_patch_module_resolver",
         "--root",
-        "qoot/client",
-        "qoot/integration",
+        "qwik/client",
+        "qwik/integration",
     ],
 )
diff --git a/integration/README.md b/integration/README.md
index 142b4496233..c1dced41c3d 100644
--- a/integration/README.md
+++ b/integration/README.md
@@ -6,7 +6,7 @@ This folder contains both e2e integration tests as well as examples of usage of
 
 - [`hello_static`](./hello_static/): The simplest possible app demonstrating lazy loading (but not server-side rendering.)
 - [`hello_server`](./hello_server/): A simple example with server-side rendering demonstrating re-hydration of the application on the client.
-- [`todo`](./todo/): Classical ToDo application implemented with Qoot.
+- [`todo`](./todo/): Classical ToDo application implemented with Qwik.
 
 ## Running
 
diff --git a/integration/hello_server/CONFIG.ts b/integration/hello_server/CONFIG.ts
index cb2a0f8081c..74588a25207 100644
--- a/integration/hello_server/CONFIG.ts
+++ b/integration/hello_server/CONFIG.ts
@@ -1,12 +1,12 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
-import { dirname, setConfig } from './qoot.js';
+import { dirname, setConfig } from './qwik.js';
 
 setConfig({
   baseURI: dirname(import.meta.url),
diff --git a/integration/hello_server/Greeter.ts b/integration/hello_server/Greeter.ts
index cdab11d6904..7949c8f7be0 100644
--- a/integration/hello_server/Greeter.ts
+++ b/integration/hello_server/Greeter.ts
@@ -1,12 +1,12 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
-import { jsxDeclareComponent, QRL } from './qoot.js';
+import { jsxDeclareComponent, QRL } from './qwik.js';
 
 /**
  * @fileoverview
diff --git a/integration/hello_server/Greeter_component.ts b/integration/hello_server/Greeter_component.ts
index f61fa595b1e..514c97bc023 100644
--- a/integration/hello_server/Greeter_component.ts
+++ b/integration/hello_server/Greeter_component.ts
@@ -1,13 +1,13 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
 import { GreeterProps } from './Greeter.js';
-import { Component, QRL } from './qoot.js';
+import { Component, QRL } from './qwik.js';
 
 /**
  * @fileoverview
diff --git a/integration/hello_server/Greeter_input_onKeyup.ts b/integration/hello_server/Greeter_input_onKeyup.ts
index 4394a2fb34f..8c3c9e394f6 100644
--- a/integration/hello_server/Greeter_input_onKeyup.ts
+++ b/integration/hello_server/Greeter_input_onKeyup.ts
@@ -1,12 +1,12 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
-import { injectEventHandler, markDirty, provideQrlExp } from './qoot.js';
+import { injectEventHandler, markDirty, provideQrlExp } from './qwik.js';
 import { GreeterComponent } from './Greeter_component.js';
 
 /**
diff --git a/integration/hello_server/Greeter_template.tsx b/integration/hello_server/Greeter_template.tsx
index 5efcff9b95f..fc96de0fc25 100644
--- a/integration/hello_server/Greeter_template.tsx
+++ b/integration/hello_server/Greeter_template.tsx
@@ -1,13 +1,13 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
 import { GreeterComponent } from './Greeter_component.js';
-import { injectMethod, jsxFactory, QRL } from './qoot.js';
+import { injectMethod, jsxFactory, QRL } from './qwik.js';
 
 /**
  * @fileoverview
diff --git a/integration/hello_server/README.md b/integration/hello_server/README.md
index 882bc53e605..05ccf316075 100644
--- a/integration/hello_server/README.md
+++ b/integration/hello_server/README.md
@@ -17,7 +17,7 @@ This example shows a trivial greeter application with server-side pre-rendering.
 1. The application gets kicked off by navigating to http://localhost:8080/hello_server and the browser sending a `GET` request.
 1. `GET` request is received by [`server/main.ts`](../../server/main.ts), which performs basic book-keeping and forwards the request to [`server_index.tsx`](./server_index.tsx). NOTE: The example uses JSX, but the system is designed to accept other rendering technologies.
 1. [`server/main.ts`](../../server/main.ts`) builds up basic HTML structure in JSX. The interesting bit is the [``](./Greeter.ts) component. See [Component](../../client/component) discussion about how components work.
-   - In Qoot, the components are broken into public [``](./Greeter.ts) part and private implementation. It is important that the only connection between the public [``](./Greeter.ts) and the private implementation is through [QRL](../../client/import#QRL). The QRL allows components to hydrate and execute independently of each other.
+   - In Qwik, the components are broken into public [``](./Greeter.ts) part and private implementation. It is important that the only connection between the public [``](./Greeter.ts) and the private implementation is through [QRL](../../client/import#QRL). The QRL allows components to hydrate and execute independently of each other.
 1. [`server/main.ts`](../../server/main.ts`) renders [``](./Greeter.ts) which in turn renders as ``. At this point the rendering finishes because there are no symbolic connections between the `` and its implementation. This is done intentionally so that the parent component can rehydrate/re-render without the child component being forced as well.
 1. The rendering system notices that `` is a component because it has `decl:template="./Greeter_template"` [QRL](../../client/import#QRL). The rendering system notices that the `GreeterProps` have changed (initial rendering) which in turn invalidates the `Greeter` component. This invalidation causes the rendering system to render the component. First step is to load [`Greeter_template`](./Greeter_template.tsx) and execute it.
 1. The `Greeter` component is created and initialized from the `GreeterProps`. The component is then used to create JSX, which is then rendered.
@@ -26,7 +26,7 @@ This example shows a trivial greeter application with server-side pre-rendering.
 
 At this point, the browser renders the page and waits for user interaction.
 
-1. User edits the `` which causes `keyup` event to be emitted by the browser which is intercepted by [`qootloader.js`](../../client/qootloader.ts) because of `on:keyup` attribute in ``.
+1. User edits the `` which causes `keyup` event to be emitted by the browser which is intercepted by [`qwikloader.js`](../../client/qwikloader.ts) because of `on:keyup` attribute in ``.
 1. [`./Greeter_onKeyup`](./Greeter_onKeyup.ts) is loaded and executed.
    ```
    export default injectEventHandler(
diff --git a/integration/hello_server/qoot.ts b/integration/hello_server/qoot.ts
deleted file mode 100644
index 84f5f408e70..00000000000
--- a/integration/hello_server/qoot.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * @license
- * Copyright a-Qoot All Rights Reserved.
- *
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
- */
-
-/**
- * @fileoverview
- *
- * This file is to simulate the import from `./qoot.js` which the server serves
- * as `//client/qoot.ts`
- */
-export * from 'qoot';
diff --git a/integration/hello_server/qwik.ts b/integration/hello_server/qwik.ts
new file mode 100644
index 00000000000..75d897743c0
--- /dev/null
+++ b/integration/hello_server/qwik.ts
@@ -0,0 +1,15 @@
+/**
+ * @license
+ * Copyright BuilderIO All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
+ */
+
+/**
+ * @fileoverview
+ *
+ * This file is to simulate the import from `./qwik.js` which the server serves
+ * as `//client/qwik.ts`
+ */
+export * from 'qwik';
diff --git a/integration/hello_server/server_index.tsx b/integration/hello_server/server_index.tsx
index 4daf9162375..ac7948c97f2 100644
--- a/integration/hello_server/server_index.tsx
+++ b/integration/hello_server/server_index.tsx
@@ -1,13 +1,13 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
 import './CONFIG.js';
-import { jsxFactory, jsxRender } from './qoot.js';
+import { jsxFactory, jsxRender } from './qwik.js';
 import { Greeter } from './Greeter.js';
 
 export const _needed_by_JSX_ = jsxFactory; // eslint-disable-line @typescript-eslint/no-unused-vars
@@ -23,7 +23,7 @@ export async function serverMain(document: Document) {
     
       
         Hello World from Server
-        
+        
       
       
         
diff --git a/integration/hello_static/README.md b/integration/hello_static/README.md
index cf065f83666..fbbd69ae636 100644
--- a/integration/hello_static/README.md
+++ b/integration/hello_static/README.md
@@ -15,17 +15,17 @@ This example shows a trivial greeter application that does not have a server-sid
 ## Tour
 
 1. Start the tour by examining [`index.html`](./index.html).
-2. **Notice**: Bootstrap `` (This is about ~500 bytes after minification, but before compression.)
-3. **Notice**: `on:click` attribute present on the button: ``. The value side of `on:click` points to [QRL](../../client/import#QRL) (Qoot Resource Locator, a play on words from URL and a way to distinguish it fro regular URL). The QRL points to a lazy loaded resource [`greet.ts`](./greet.ts), and a `click` exported function.
+2. **Notice**: Bootstrap `` (This is about ~500 bytes after minification, but before compression.)
+3. **Notice**: `on:click` attribute present on the button: ``. The value side of `on:click` points to [QRL](../../client/import#QRL) (Qwik Resource Locator, a play on words from URL and a way to distinguish it fro regular URL). The QRL points to a lazy loaded resource [`greet.ts`](./greet.ts), and a `click` exported function.
 4. **Notice**: Also notice `on:keyup` attribute on `` element.
 
 ## Runtime
 
 1. Static file [`index.html`](./index.html) gets served to the browser.
-1. Browser loads [`qootloader.js`](../../client/qootloader.ts).
-1. [`qootloader.js`](../../client/qootloader.ts) examines the browser and enumerates all possible events which the browser can fire. For each event [`qootloader.js`](../../client/qootloader.ts) sets up a listener for that event.
+1. Browser loads [`qwikloader.js`](../../client/qwikloader.ts).
+1. [`qwikloader.js`](../../client/qwikloader.ts) examines the browser and enumerates all possible events which the browser can fire. For each event [`qwikloader.js`](../../client/qwikloader.ts) sets up a listener for that event.
 
 At this point, the application is fully bootstrapped, and the user can interact with it. No more work will be performed by the browser until user interactions. For the next steps, open the browser developer tools to the networking tab to see how more code is loaded on an as-needed basis.
 
-1. User clicks on ``. The [`qootloader.js`](../../client/qootloader.ts) reads `./greet.click` and performs `(await import('./greet.js')).click(...)`. Notice that it extracts the resource URL and symbol name to execute from the [QRL](../../client/import#QRL). Also, notice that the browser lazy loads the necessary code on user interaction. NOTE: This example is missing bundling for simplicity, so the browser has to fetch a lot of small files; this would not be the case in production.
+1. User clicks on ``. The [`qwikloader.js`](../../client/qwikloader.ts) reads `./greet.click` and performs `(await import('./greet.js')).click(...)`. Notice that it extracts the resource URL and symbol name to execute from the [QRL](../../client/import#QRL). Also, notice that the browser lazy loads the necessary code on user interaction. NOTE: This example is missing bundling for simplicity, so the browser has to fetch a lot of small files; this would not be the case in production.
 1. `export function click` in [`greet.ts`](./greet.ts) performs the necessary operation. NOTE: this example is intentionally kept simple, so the click handler has to perform all of the DOM operations manually. In later examples, a more elegant way of processing the events is introduced.
diff --git a/integration/hello_static/greet.ts b/integration/hello_static/greet.ts
index 379354e9428..fa1e85674c7 100644
--- a/integration/hello_static/greet.ts
+++ b/integration/hello_static/greet.ts
@@ -1,9 +1,9 @@
 /**
  * @license
- * Copyright a-Qoot All Rights Reserved.
+ * Copyright BuilderIO All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE
+ * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
  */
 
 export function click(element: Element) {
diff --git a/integration/hello_static/index.html b/integration/hello_static/index.html
index 478214e65b6..521387bd1bd 100644
--- a/integration/hello_static/index.html
+++ b/integration/hello_static/index.html
@@ -16,5 +16,5 @@
       are lazy loaded on interacting with the page.
     

- + diff --git a/integration/hello_static/qoot.ts b/integration/hello_static/qoot.ts deleted file mode 100644 index 84f5f408e70..00000000000 --- a/integration/hello_static/qoot.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @license - * Copyright a-Qoot All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE - */ - -/** - * @fileoverview - * - * This file is to simulate the import from `./qoot.js` which the server serves - * as `//client/qoot.ts` - */ -export * from 'qoot'; diff --git a/integration/hello_static/qwik.ts b/integration/hello_static/qwik.ts new file mode 100644 index 00000000000..75d897743c0 --- /dev/null +++ b/integration/hello_static/qwik.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright BuilderIO All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE + */ + +/** + * @fileoverview + * + * This file is to simulate the import from `./qwik.js` which the server serves + * as `//client/qwik.ts` + */ +export * from 'qwik'; diff --git a/integration/package.json b/integration/package.json index 36255418920..a93aa472792 100644 --- a/integration/package.json +++ b/integration/package.json @@ -1,5 +1,5 @@ { - "name": "qoot_integration", + "name": "qwik_integration", "version": "0.0.0", "type": "module" } diff --git a/integration/specs/index.html b/integration/specs/index.html index 265ac416739..0578ad431a4 100644 --- a/integration/specs/index.html +++ b/integration/specs/index.html @@ -4,7 +4,7 @@ This folder contains end to end tests. diff --git a/integration/specs/qootloader_spec.html b/integration/specs/qwikloader_spec.html similarity index 71% rename from integration/specs/qootloader_spec.html rename to integration/specs/qwikloader_spec.html index ec25222298b..38a5eb9ef24 100644 --- a/integration/specs/qootloader_spec.html +++ b/integration/specs/qwikloader_spec.html @@ -1,7 +1,7 @@ - + @@ -10,13 +10,13 @@

it should register all events

-        Verify that qootloader:
+        Verify that qwikloader:
         - is loaded and
         - it can listen on all events an
         - and it can process protocol urls.
       
@@ -28,7 +28,7 @@

it should listen on non-bubbling event

Verify that non-bubbling events are correctly captured.
@@ -37,9 +37,9 @@

it should listen on non-bubbling event

it should set up `$init` event

-        Verify qootloader correctly fires `$init` event on start.
+        Verify qwikloader correctly fires `$init` event on start.
       
diff --git a/integration/specs/qootloader_spec.ts b/integration/specs/qwikloader_spec.ts similarity index 88% rename from integration/specs/qootloader_spec.ts rename to integration/specs/qwikloader_spec.ts index af07ffc32f8..f8d7527e6e8 100644 --- a/integration/specs/qootloader_spec.ts +++ b/integration/specs/qwikloader_spec.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /** diff --git a/integration/todo/CONFIG.ts b/integration/todo/CONFIG.ts index ca885b7014b..ea266f6418a 100644 --- a/integration/todo/CONFIG.ts +++ b/integration/todo/CONFIG.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { dirname, setConfig } from './qoot.js'; +import { dirname, setConfig } from './qwik.js'; setConfig({ baseURI: dirname(import.meta.url), diff --git a/integration/todo/client.html b/integration/todo/client.html index 3906b9ea195..63331af0196 100644 --- a/integration/todo/client.html +++ b/integration/todo/client.html @@ -1,7 +1,7 @@ ToDo Application - + @@ -9,6 +9,6 @@ -
+
diff --git a/integration/todo/data/Item.ts b/integration/todo/data/Item.ts index a9a9c01652c..2c6740cd062 100644 --- a/integration/todo/data/Item.ts +++ b/integration/todo/data/Item.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { QRL, Entity } from '../qoot.js'; +import { QRL, Entity } from '../qwik.js'; export interface ItemProps { id: string; diff --git a/integration/todo/data/Item_toggle.ts b/integration/todo/data/Item_toggle.ts index ee97d95e76c..be6c111589a 100644 --- a/integration/todo/data/Item_toggle.ts +++ b/integration/todo/data/Item_toggle.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { injectMethod, markDirty, provideEntity } from '../qoot.js'; +import { injectMethod, markDirty, provideEntity } from '../qwik.js'; import { TodoEntity } from './Todo.js'; import { ItemEntity } from './Item.js'; diff --git a/integration/todo/data/Todo.ts b/integration/todo/data/Todo.ts index 24c7415005b..c6cda5ee348 100644 --- a/integration/todo/data/Todo.ts +++ b/integration/todo/data/Todo.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { @@ -14,7 +14,7 @@ import { EntityKey, entityStateKey, toEntityKey, -} from '../qoot.js'; +} from '../qwik.js'; import { Item, ItemEntity } from './Item.js'; export interface TodoProps {} @@ -79,7 +79,7 @@ export class TodoEntity extends Entity { filter: 'all', nextId: 4, items: [ - ItemEntity.$hydrate(host, { id: '1' }, { completed: false, title: 'Read Qoot docs' }).$key, + ItemEntity.$hydrate(host, { id: '1' }, { completed: false, title: 'Read Qwik docs' }).$key, ItemEntity.$hydrate(host, { id: '2' }, { completed: false, title: 'Build HelloWorld' }) .$key, ItemEntity.$hydrate(host, { id: '3' }, { completed: false, title: 'Profit' }).$key, diff --git a/integration/todo/data/Todo_archive.ts b/integration/todo/data/Todo_archive.ts index 85bc1ada312..b7e717b2170 100644 --- a/integration/todo/data/Todo_archive.ts +++ b/integration/todo/data/Todo_archive.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { injectMethod, markDirty, getInjector } from '../qoot.js'; +import { injectMethod, markDirty, getInjector } from '../qwik.js'; import { TodoEntity } from './Todo.js'; export default injectMethod( diff --git a/integration/todo/data/Todo_newItem.ts b/integration/todo/data/Todo_newItem.ts index 0ae7ee19637..34932a88b48 100644 --- a/integration/todo/data/Todo_newItem.ts +++ b/integration/todo/data/Todo_newItem.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { injectMethod, markDirty } from '../qoot.js'; +import { injectMethod, markDirty } from '../qwik.js'; import { ItemEntity } from './Item.js'; import { TodoEntity } from './Todo.js'; diff --git a/integration/todo/data/Todo_removeItem.ts b/integration/todo/data/Todo_removeItem.ts index d002a69b1c3..cb0327c11dd 100644 --- a/integration/todo/data/Todo_removeItem.ts +++ b/integration/todo/data/Todo_removeItem.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { injectMethod, markDirty, EntityKey } from '../qoot.js'; +import { injectMethod, markDirty, EntityKey } from '../qwik.js'; import { ItemEntity } from './Item.js'; import { TodoEntity } from './Todo.js'; diff --git a/integration/todo/qoot.ts b/integration/todo/qoot.ts deleted file mode 100644 index 84f5f408e70..00000000000 --- a/integration/todo/qoot.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @license - * Copyright a-Qoot All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE - */ - -/** - * @fileoverview - * - * This file is to simulate the import from `./qoot.js` which the server serves - * as `//client/qoot.ts` - */ -export * from 'qoot'; diff --git a/integration/todo/qwik.ts b/integration/todo/qwik.ts new file mode 100644 index 00000000000..75d897743c0 --- /dev/null +++ b/integration/todo/qwik.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright BuilderIO All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE + */ + +/** + * @fileoverview + * + * This file is to simulate the import from `./qwik.js` which the server serves + * as `//client/qwik.ts` + */ +export * from 'qwik'; diff --git a/integration/todo/server_index.tsx b/integration/todo/server_index.tsx index c1a400ae6bc..1de79eca9b6 100644 --- a/integration/todo/server_index.tsx +++ b/integration/todo/server_index.tsx @@ -1,13 +1,13 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import './CONFIG.js'; -import { jsxFactory, jsxRender } from './qoot.js'; +import { jsxFactory, jsxRender } from './qwik.js'; import { ToDoApp } from './ui/TodoApp.js'; export const _needed_by_JSX_ = jsxFactory; // eslint-disable-line @typescript-eslint/no-unused-vars @@ -22,7 +22,7 @@ export async function serverMain(document: Document) { ToDo Application - + diff --git a/integration/todo/ui/Footer.ts b/integration/todo/ui/Footer.ts index 1309348232e..9f107fb182d 100644 --- a/integration/todo/ui/Footer.ts +++ b/integration/todo/ui/Footer.ts @@ -1,13 +1,13 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { TodoEntity } from '../data/Todo.js'; -import { jsxDeclareComponent, QRL, EntityKey } from '../qoot.js'; +import { jsxDeclareComponent, QRL, EntityKey } from '../qwik.js'; /** * @fileoverview diff --git a/integration/todo/ui/Footer_archive.ts b/integration/todo/ui/Footer_archive.ts index 1ed9b00e8ed..86060c7e54f 100644 --- a/integration/todo/ui/Footer_archive.ts +++ b/integration/todo/ui/Footer_archive.ts @@ -1,13 +1,13 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { TodoEntity } from '../data/Todo.js'; -import { injectEventHandler, provideEntity } from '../qoot.js'; +import { injectEventHandler, provideEntity } from '../qwik.js'; /** * @fileoverview diff --git a/integration/todo/ui/Footer_selectFilter.ts b/integration/todo/ui/Footer_selectFilter.ts index ac268ff4fb4..a0b97fba9da 100644 --- a/integration/todo/ui/Footer_selectFilter.ts +++ b/integration/todo/ui/Footer_selectFilter.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { injectEventHandler, provideEntity, provideEvent } from '../qoot.js'; +import { injectEventHandler, provideEntity, provideEvent } from '../qwik.js'; import { TodoEntity } from '../data/Todo.js'; export default injectEventHandler( diff --git a/integration/todo/ui/Footer_template.tsx b/integration/todo/ui/Footer_template.tsx index 65ff05264b6..6c5c8d6e02f 100644 --- a/integration/todo/ui/Footer_template.tsx +++ b/integration/todo/ui/Footer_template.tsx @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Todo, TodoEntity } from '../data/Todo.js'; @@ -16,7 +16,7 @@ import { Provider, EntityKey, Host, -} from '../qoot.js'; +} from '../qwik.js'; export const _needed_by_JSX_ = jsxFactory; // eslint-disable-line @typescript-eslint/no-unused-vars export default injectFunction( @@ -31,7 +31,7 @@ export default injectFunction(
  • {mode} diff --git a/integration/todo/ui/Header.ts b/integration/todo/ui/Header.ts index 521cef8661f..178b886ede0 100644 --- a/integration/todo/ui/Header.ts +++ b/integration/todo/ui/Header.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { jsxDeclareComponent, QRL } from '../qoot.js'; +import { jsxDeclareComponent, QRL } from '../qwik.js'; export interface HeaderProps {} diff --git a/integration/todo/ui/Header_addTodo.ts b/integration/todo/ui/Header_addTodo.ts index 8e9456f6648..6bf52409315 100644 --- a/integration/todo/ui/Header_addTodo.ts +++ b/integration/todo/ui/Header_addTodo.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { TodoEntity } from '../data/Todo.js'; @@ -13,7 +13,7 @@ import { provideEntity, markDirty, provideProviderOf, -} from '../qoot.js'; +} from '../qwik.js'; import { HeaderComponent } from './Header_component.js'; export default injectEventHandler( diff --git a/integration/todo/ui/Header_component.ts b/integration/todo/ui/Header_component.ts index 53e38b7cac0..fb80017a4d0 100644 --- a/integration/todo/ui/Header_component.ts +++ b/integration/todo/ui/Header_component.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { Component, QRL } from '../qoot.js'; +import { Component, QRL } from '../qwik.js'; import { HeaderProps } from './Header.js'; interface HeaderState { diff --git a/integration/todo/ui/Header_template.tsx b/integration/todo/ui/Header_template.tsx index e257e43010a..42b33f73ffb 100644 --- a/integration/todo/ui/Header_template.tsx +++ b/integration/todo/ui/Header_template.tsx @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { jsxFactory, QRL, injectMethod } from '../qoot.js'; +import { jsxFactory, QRL, injectMethod } from '../qwik.js'; import { HeaderComponent } from './Header_component.js'; export const _needed_by_JSX_ = jsxFactory; // eslint-disable-line @typescript-eslint/no-unused-vars diff --git a/integration/todo/ui/Item.ts b/integration/todo/ui/Item.ts index ead8033fbf0..af83b1ac1a3 100644 --- a/integration/todo/ui/Item.ts +++ b/integration/todo/ui/Item.ts @@ -1,13 +1,13 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import type { ItemEntity } from '../data/Item.js'; -import { jsxDeclareComponent, QRL, EntityKey } from '../qoot.js'; +import { jsxDeclareComponent, QRL, EntityKey } from '../qwik.js'; export interface ItemProps { $item: EntityKey; diff --git a/integration/todo/ui/Item_component.ts b/integration/todo/ui/Item_component.ts index 50b6dcc2003..5ba494ee95d 100644 --- a/integration/todo/ui/Item_component.ts +++ b/integration/todo/ui/Item_component.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { Component, QRL } from '../qoot.js'; +import { Component, QRL } from '../qwik.js'; import { ItemProps } from './Item.js'; interface ItemState {} diff --git a/integration/todo/ui/Item_edit.ts b/integration/todo/ui/Item_edit.ts index 0ec65ebe822..268f861c015 100644 --- a/integration/todo/ui/Item_edit.ts +++ b/integration/todo/ui/Item_edit.ts @@ -1,20 +1,20 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { ItemEntity } from '../data/Item.js'; -import { Provider, EntityKey } from '../qoot.js'; +import { Provider, EntityKey } from '../qwik.js'; import { injectEventHandler, markDirty, provideUrlProp, provideQrlExp, provideEntity, -} from '../qoot.js'; +} from '../qwik.js'; import { ItemComponent } from './Item_component.js'; export const begin = injectEventHandler( diff --git a/integration/todo/ui/Item_remove.ts b/integration/todo/ui/Item_remove.ts index 27f4c6861d6..d9941a629f1 100644 --- a/integration/todo/ui/Item_remove.ts +++ b/integration/todo/ui/Item_remove.ts @@ -1,14 +1,14 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { ItemEntity } from '../data/Item.js'; import { TodoEntity } from '../data/Todo.js'; -import { injectEventHandler, provideEntity, provideUrlProp, EntityKey, Provider } from '../qoot.js'; +import { injectEventHandler, provideEntity, provideUrlProp, EntityKey, Provider } from '../qwik.js'; export default injectEventHandler( // Providers diff --git a/integration/todo/ui/Item_template.tsx b/integration/todo/ui/Item_template.tsx index 18a0775f86e..0e05f201938 100644 --- a/integration/todo/ui/Item_template.tsx +++ b/integration/todo/ui/Item_template.tsx @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { Item, ItemEntity } from '../data/Item.js'; @@ -16,7 +16,7 @@ import { EntityKey, Provider, Host, -} from '../qoot.js'; +} from '../qwik.js'; import { ItemComponent } from './Item_component.js'; // TODO: remove this by changing jsxFactory over to import diff --git a/integration/todo/ui/Item_toggle.ts b/integration/todo/ui/Item_toggle.ts index 4471de9887b..08d60631eb8 100644 --- a/integration/todo/ui/Item_toggle.ts +++ b/integration/todo/ui/Item_toggle.ts @@ -1,14 +1,14 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { EntityKey, Provider } from '../qoot.js'; +import { EntityKey, Provider } from '../qwik.js'; import { ItemEntity } from '../data/Item.js'; -import { injectEventHandler, provideComponentProp, provideQrlExp, provideEntity } from '../qoot.js'; +import { injectEventHandler, provideComponentProp, provideQrlExp, provideEntity } from '../qwik.js'; export default injectEventHandler( // Providers diff --git a/integration/todo/ui/Main.ts b/integration/todo/ui/Main.ts index 38842ed36c2..a3f3be65d47 100644 --- a/integration/todo/ui/Main.ts +++ b/integration/todo/ui/Main.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { jsxDeclareComponent, QRL, EntityKey } from '../qoot.js'; +import { jsxDeclareComponent, QRL, EntityKey } from '../qwik.js'; import type { TodoEntity } from '../data/Todo.js'; export interface MainProps { diff --git a/integration/todo/ui/Main_template.tsx b/integration/todo/ui/Main_template.tsx index a6163d47630..42bd3f5181e 100644 --- a/integration/todo/ui/Main_template.tsx +++ b/integration/todo/ui/Main_template.tsx @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import type { TodoEntity } from '../data/Todo.js'; @@ -15,7 +15,7 @@ import { EntityKey, Provider, Host, -} from '../qoot.js'; +} from '../qwik.js'; import { Item } from './Item.js'; // TODO(file_layout): Rework the file layout. I think it should be in same directory as loading `template.ts` looks weird // - Main.ts // public.ts diff --git a/integration/todo/ui/TodoApp.ts b/integration/todo/ui/TodoApp.ts index efaba6d77ef..547255fddff 100644 --- a/integration/todo/ui/TodoApp.ts +++ b/integration/todo/ui/TodoApp.ts @@ -1,12 +1,12 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ -import { jsxDeclareComponent, QRL } from '../qoot.js'; +import { jsxDeclareComponent, QRL } from '../qwik.js'; export interface ToDoAppProps {} diff --git a/integration/todo/ui/TodoApp_template.tsx b/integration/todo/ui/TodoApp_template.tsx index 89d58031de9..9157f5938be 100644 --- a/integration/todo/ui/TodoApp_template.tsx +++ b/integration/todo/ui/TodoApp_template.tsx @@ -1,14 +1,14 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import { ItemEntity } from '../data/Item.js'; import { TodoEntity } from '../data/Todo.js'; -import { injectFunction, jsxFactory } from '../qoot.js'; +import { injectFunction, jsxFactory } from '../qwik.js'; import { Footer } from './Footer.js'; import { Header } from './Header.js'; import { Main } from './Main.js'; diff --git a/package-lock.json b/package-lock.json index 551f57d1642..5e24951b86b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,11 @@ { - "name": "qoot", + "name": "qwik", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { + "name": "qwik", "version": "0.0.0", "hasInstallScript": true, "license": "MIT", diff --git a/package.json b/package.json index f1d966e2f9f..004b51e0a52 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "qoot", + "name": "qwik", "version": "0.0.0", "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.", "main": "index.js", diff --git a/server/BUILD.bazel b/server/BUILD.bazel index cc91a45c342..e472844f3ab 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"]) js_library( name = "server", - package_name = "qoot_server", + package_name = "qwik_server", srcs = ["package.json"], deps = [ ":server_lib", diff --git a/server/fs_util.ts b/server/fs_util.ts index 58c10ad06e4..2d868a68aea 100644 --- a/server/fs_util.ts +++ b/server/fs_util.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ import * as fs from 'fs'; diff --git a/server/main.ts b/server/main.ts index 4ea0d344bc6..26e597db696 100644 --- a/server/main.ts +++ b/server/main.ts @@ -1,9 +1,9 @@ /** * @license - * Copyright a-Qoot All Rights Reserved. + * Copyright BuilderIO All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/a-Qoot/qoot/blob/main/LICENSE + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE */ /* eslint no-console: ["off"] */ import commander from 'commander'; @@ -13,7 +13,7 @@ import * as fs from 'fs'; import { dirname, join } from 'path'; import srcMap from 'source-map-support'; import { fileURLToPath } from 'url'; -import { serializeState } from 'qoot'; +import { serializeState } from 'qwik'; import { findFiles } from './fs_util.js'; @@ -39,12 +39,12 @@ async function main(__dirname: string, process: NodeJS.Process) { console.log('RUNFILES', RUNFILES); app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { - if (req.path.endsWith('/qoot.js') && req.path !== '/qoot.js') { + if (req.path.endsWith('/qwik.js') && req.path !== '/qwik.js') { res.type('application/javascript'); - if (qootBundle) { - res.write(qootBundle); + if (qwikBundle) { + res.write(qwikBundle); } else { - res.write("export * from '/qoot.js';"); + res.write("export * from '/qwik.js';"); } res.end(); } else { @@ -54,7 +54,7 @@ async function main(__dirname: string, process: NodeJS.Process) { // Set up static routes first const servePaths = opts.root.map((servePath: string) => join(RUNFILES, servePath)); - const qootBundle = readBundleContent(servePaths); + const qwikBundle = readBundleContent(servePaths); servePaths.forEach((path: string) => { if (fs.existsSync(path)) { @@ -93,10 +93,10 @@ async function main(__dirname: string, process: NodeJS.Process) { function readBundleContent(paths: string[]): string | null { for (let i = 0; i < paths.length; i++) { const path = paths[i]; - const qootPath = join(path, 'qoot.js'); - const content = fs.readFileSync(qootPath); + const qwikPath = join(path, 'qwik.js'); + const content = fs.readFileSync(qwikPath); if (content.length) { - console.log('Found Qoot bundle:', qootPath); + console.log('Found Qwik bundle:', qwikPath); return String(content); } } diff --git a/server/package.json b/server/package.json index e1c428df4f2..7af4d5c4d84 100644 --- a/server/package.json +++ b/server/package.json @@ -1,5 +1,5 @@ { - "name": "qoot_server", + "name": "qwik_server", "main": "server.js", "@comment type": "Setting type to 'module' is important as internally we use 'import' statements instead of 'require'.", "type": "module" diff --git a/tsconfig.base.json b/tsconfig.base.json index 25cb571230e..25eb4654c74 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -44,7 +44,7 @@ "baseUrl": "." /* Base directory to resolve non-absolute module names. */, "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - "qoot": ["client/index.ts"] + "qwik": ["client/index.ts"] }, "rootDirs": [ "." diff --git a/tsconfig.json b/tsconfig.json index af6d3e53f54..2b0745e5f73 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { "extends": "./tsconfig.base.json", - "exclude": ["bazel-bin/**", "bazel-out/**", "bazel-qoot/**", "bazel-testlogs/**", "dist/**"], + "exclude": ["bazel-bin/**", "bazel-out/**", "bazel-qwik/**", "bazel-testlogs/**", "dist/**"], "include": ["client/**/*.ts*", "server/**/*.ts*", "integration/**/*.ts*"] }