@webqit/webflo 0.11.61 → 0.20.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +12 -0
- package/.github/workflows/publish.yml +48 -0
- package/.gitignore +2 -0
- package/LICENSE +2 -2
- package/README.md +71 -2050
- package/package.json +28 -13
- package/site/-/_.md +139 -0
- package/site/-/docs.old.md +2010 -0
- package/site/.vitepress/cache/deps/@braintree_sanitize-url 2.js +93 -0
- package/site/.vitepress/cache/deps/@braintree_sanitize-url.js +93 -0
- package/site/.vitepress/cache/deps/@braintree_sanitize-url.js 2.map +7 -0
- package/site/.vitepress/cache/deps/@braintree_sanitize-url.js.map +7 -0
- package/site/.vitepress/cache/deps/_metadata 2.json +85 -0
- package/site/.vitepress/cache/deps/_metadata.json +85 -0
- package/site/.vitepress/cache/deps/chunk-BUSYA2B4 2.js +9 -0
- package/site/.vitepress/cache/deps/chunk-BUSYA2B4.js +9 -0
- package/site/.vitepress/cache/deps/chunk-BUSYA2B4.js 2.map +7 -0
- package/site/.vitepress/cache/deps/chunk-BUSYA2B4.js.map +7 -0
- package/site/.vitepress/cache/deps/chunk-Q2AYPHVK 2.js +9719 -0
- package/site/.vitepress/cache/deps/chunk-Q2AYPHVK.js +9719 -0
- package/site/.vitepress/cache/deps/chunk-Q2AYPHVK.js 2.map +7 -0
- package/site/.vitepress/cache/deps/chunk-Q2AYPHVK.js.map +7 -0
- package/site/.vitepress/cache/deps/chunk-QAXAIFA7 2.js +12705 -0
- package/site/.vitepress/cache/deps/chunk-QAXAIFA7.js +12705 -0
- package/site/.vitepress/cache/deps/chunk-QAXAIFA7.js 2.map +7 -0
- package/site/.vitepress/cache/deps/chunk-QAXAIFA7.js.map +7 -0
- package/site/.vitepress/cache/deps/cytoscape 2.js +30278 -0
- package/site/.vitepress/cache/deps/cytoscape-cose-bilkent 2.js +4710 -0
- package/site/.vitepress/cache/deps/cytoscape-cose-bilkent.js +4710 -0
- package/site/.vitepress/cache/deps/cytoscape-cose-bilkent.js 2.map +7 -0
- package/site/.vitepress/cache/deps/cytoscape-cose-bilkent.js.map +7 -0
- package/site/.vitepress/cache/deps/cytoscape.js +30278 -0
- package/site/.vitepress/cache/deps/cytoscape.js 2.map +7 -0
- package/site/.vitepress/cache/deps/cytoscape.js.map +7 -0
- package/site/.vitepress/cache/deps/dayjs 2.js +285 -0
- package/site/.vitepress/cache/deps/dayjs.js +285 -0
- package/site/.vitepress/cache/deps/dayjs.js 2.map +7 -0
- package/site/.vitepress/cache/deps/dayjs.js.map +7 -0
- package/site/.vitepress/cache/deps/debug 2.js +453 -0
- package/site/.vitepress/cache/deps/debug.js +453 -0
- package/site/.vitepress/cache/deps/debug.js 2.map +7 -0
- package/site/.vitepress/cache/deps/debug.js.map +7 -0
- package/site/.vitepress/cache/deps/package 2.json +3 -0
- package/site/.vitepress/cache/deps/package.json +3 -0
- package/site/.vitepress/cache/deps/vitepress___@vue_devtools-api 2.js +4507 -0
- package/site/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4507 -0
- package/site/.vitepress/cache/deps/vitepress___@vue_devtools-api.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_core 2.js +584 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_core.js +584 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_core.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap 2.js +1166 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +1166 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js 2.js +1667 -0
- package/site/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +1667 -0
- package/site/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___minisearch 2.js +1815 -0
- package/site/.vitepress/cache/deps/vitepress___minisearch.js +1815 -0
- package/site/.vitepress/cache/deps/vitepress___minisearch.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vitepress___minisearch.js.map +7 -0
- package/site/.vitepress/cache/deps/vue 2.js +344 -0
- package/site/.vitepress/cache/deps/vue.js +344 -0
- package/site/.vitepress/cache/deps/vue.js 2.map +7 -0
- package/site/.vitepress/cache/deps/vue.js.map +7 -0
- package/site/.vitepress/config.ts +147 -0
- package/site/.vitepress/theme/custom.css +50 -0
- package/site/.vitepress/theme/index.ts +6 -0
- package/site/api/webflo-fetch/FormData.md +0 -0
- package/site/api/webflo-fetch/Headers.md +0 -0
- package/site/api/webflo-fetch/LiveResponse.md +0 -0
- package/site/api/webflo-fetch/Request.md +0 -0
- package/site/api/webflo-fetch/Response.md +0 -0
- package/site/api/webflo-fetch/fetch.md +0 -0
- package/site/api/webflo-routing/HttpCookies.md +0 -0
- package/site/api/webflo-routing/HttpEvent/respondWith.md +1 -0
- package/site/api/webflo-routing/HttpEvent/waitUntil.md +1 -0
- package/site/api/webflo-routing/HttpEvent/waitUntilNavigate.md +1 -0
- package/site/api/webflo-routing/HttpEvent.md +30 -0
- package/site/api/webflo-routing/HttpSession.md +0 -0
- package/site/api/webflo-routing/HttpState.md +0 -0
- package/site/api/webflo-routing/HttpUser.md +0 -0
- package/site/api/webflo-routing/handler/fetch.md +42 -0
- package/site/api/webflo-routing/handler/next.md +54 -0
- package/site/api/webflo-routing/handler.md +119 -0
- package/site/api.md +26 -0
- package/site/contributing.md +16 -0
- package/site/docs/advanced/lifecycles.md +20 -0
- package/site/docs/advanced/redirects.md +0 -0
- package/site/docs/advanced/routing.md +1 -0
- package/site/docs/advanced.md +9 -0
- package/site/docs/concepts/realtime.md +637 -0
- package/site/docs/concepts/rendering.md +60 -0
- package/site/docs/concepts/request-response.md +47 -0
- package/site/docs/concepts/routing.md +656 -0
- package/site/docs/concepts/state.md +44 -0
- package/site/docs/concepts/templates.md +48 -0
- package/site/docs/concepts.md +97 -0
- package/site/docs/getting-started.md +378 -0
- package/site/docs/tech-stack.md +56 -0
- package/site/docs.md +100 -0
- package/site/examples/pwa.md +10 -0
- package/site/examples/web.md +11 -0
- package/site/examples.md +10 -0
- package/site/faq.md +13 -0
- package/site/guides/guide-auth.md +13 -0
- package/site/guides/guide-file-upload.md +11 -0
- package/site/guides/guide-service-worker.md +10 -0
- package/site/guides/tutorial-1-todo.md +24 -0
- package/site/guides.md +15 -0
- package/site/index.md +39 -0
- package/site/public/img/brand/logo-670x670.png +0 -0
- package/site/recipes/realtime.md +11 -0
- package/site/recipes/streaming.md +15 -0
- package/site/reference/cli.md +11 -0
- package/site/reference/config.md +13 -0
- package/site/reference/tools.md +9 -0
- package/src/Context.js +3 -11
- package/src/config-pi/deployment/Env.js +6 -19
- package/src/config-pi/deployment/Layout.js +11 -3
- package/src/config-pi/runtime/Client.js +40 -48
- package/src/config-pi/runtime/Server.js +52 -20
- package/src/config-pi/runtime/client/Worker.js +22 -20
- package/src/config-pi/static/Init.js +57 -0
- package/src/config-pi/static/index.js +2 -0
- package/src/deployment-pi/origins/index.js +1 -1
- package/src/deployment-pi/util.js +161 -0
- package/src/index.js +3 -9
- package/src/init-pi/index.js +117 -0
- package/src/init-pi/templates/pwa/app/handler.server.js +8 -0
- package/src/init-pi/templates/pwa/app/page.html +7 -0
- package/src/init-pi/templates/pwa/package.json +19 -0
- package/src/init-pi/templates/pwa/public/assets/app.css +16 -0
- package/src/init-pi/templates/pwa/public/index.html +39 -0
- package/src/init-pi/templates/pwa/public/manifest.json +29 -0
- package/src/init-pi/templates/web/app/handler.server.js +8 -0
- package/src/init-pi/templates/web/app/page.html +7 -0
- package/src/init-pi/templates/web/package.json +19 -0
- package/src/init-pi/templates/web/public/assets/app.css +16 -0
- package/src/init-pi/templates/web/public/index.html +39 -0
- package/src/runtime-pi/WebfloRuntime.js +350 -0
- package/src/runtime-pi/index.js +3 -10
- package/src/runtime-pi/webflo-client/ClientSideCookies.js +17 -0
- package/src/runtime-pi/webflo-client/ClientSideWorkport.js +63 -0
- package/src/runtime-pi/webflo-client/DeviceCapabilities.js +213 -0
- package/src/runtime-pi/webflo-client/WebfloClient.js +500 -0
- package/src/runtime-pi/webflo-client/WebfloRootClient1.js +206 -0
- package/src/runtime-pi/webflo-client/WebfloRootClient2.js +113 -0
- package/src/runtime-pi/webflo-client/WebfloSubClient.js +118 -0
- package/src/runtime-pi/webflo-client/index.js +17 -0
- package/src/runtime-pi/webflo-client/webflo-codegen.js +469 -0
- package/src/runtime-pi/webflo-client/webflo-devmode.js +243 -0
- package/src/runtime-pi/webflo-client/webflo-embedded.js +50 -0
- package/src/runtime-pi/webflo-fetch/LiveResponse.js +437 -0
- package/src/runtime-pi/webflo-fetch/cookies.js +10 -0
- package/src/runtime-pi/webflo-fetch/fetch.js +16 -0
- package/src/runtime-pi/webflo-fetch/formdata.js +54 -0
- package/src/runtime-pi/webflo-fetch/headers.js +151 -0
- package/src/runtime-pi/webflo-fetch/index.js +5 -0
- package/src/runtime-pi/webflo-fetch/message.js +49 -0
- package/src/runtime-pi/webflo-fetch/request.js +62 -0
- package/src/runtime-pi/webflo-fetch/response.js +110 -0
- package/src/runtime-pi/webflo-fetch/util.js +28 -0
- package/src/runtime-pi/webflo-messaging/WQBroadcastChannel.js +10 -0
- package/src/runtime-pi/webflo-messaging/WQMessageChannel.js +26 -0
- package/src/runtime-pi/webflo-messaging/WQMessageEvent.js +87 -0
- package/src/runtime-pi/webflo-messaging/WQMessagePort.js +38 -0
- package/src/runtime-pi/webflo-messaging/WQRelayPort.js +47 -0
- package/src/runtime-pi/webflo-messaging/WQSockPort.js +113 -0
- package/src/runtime-pi/webflo-messaging/WQStarPort.js +104 -0
- package/src/runtime-pi/webflo-messaging/wq-message-port.js +404 -0
- package/src/runtime-pi/webflo-routing/HttpCookies.js +42 -0
- package/src/runtime-pi/webflo-routing/HttpEvent.js +112 -0
- package/src/runtime-pi/webflo-routing/HttpSession.js +11 -0
- package/src/runtime-pi/webflo-routing/HttpState.js +153 -0
- package/src/runtime-pi/webflo-routing/HttpUser.js +54 -0
- package/src/runtime-pi/webflo-routing/WebfloRouter.js +245 -0
- package/src/runtime-pi/webflo-server/ServerSideCookies.js +19 -0
- package/src/runtime-pi/webflo-server/ServerSideSession.js +38 -0
- package/src/runtime-pi/webflo-server/WebfloServer.js +937 -0
- package/src/runtime-pi/webflo-server/index.js +11 -0
- package/src/runtime-pi/webflo-server/messaging/Client.js +27 -0
- package/src/runtime-pi/webflo-server/messaging/ClientRequestRealtime.js +50 -0
- package/src/runtime-pi/webflo-server/messaging/Clients.js +25 -0
- package/src/runtime-pi/webflo-server/webflo-devmode.js +326 -0
- package/src/runtime-pi/{client → webflo-url}/Url.js +27 -76
- package/src/runtime-pi/webflo-url/index.js +1 -0
- package/src/runtime-pi/webflo-url/urlpattern.js +38 -0
- package/src/runtime-pi/{util-url.js → webflo-url/util.js} +5 -43
- package/src/runtime-pi/webflo-url/xURL.js +94 -0
- package/src/runtime-pi/webflo-worker/WebfloWorker.js +234 -0
- package/src/runtime-pi/webflo-worker/WorkerSideCookies.js +19 -0
- package/src/runtime-pi/webflo-worker/WorkerSideWorkport.js +18 -0
- package/src/runtime-pi/webflo-worker/index.js +11 -0
- package/src/services-pi/index.js +2 -0
- package/src/services-pi/push/index.js +23 -0
- package/src/util.js +10 -0
- package/src/{webflo.js → webflo-cli.js} +4 -4
- package/src/runtime-pi/Application.js +0 -29
- package/src/runtime-pi/Cookies.js +0 -82
- package/src/runtime-pi/HttpEvent.js +0 -107
- package/src/runtime-pi/Router.js +0 -130
- package/src/runtime-pi/Runtime.js +0 -21
- package/src/runtime-pi/client/Application.js +0 -76
- package/src/runtime-pi/client/Context.js +0 -7
- package/src/runtime-pi/client/Router.js +0 -48
- package/src/runtime-pi/client/Runtime.js +0 -525
- package/src/runtime-pi/client/Workport.js +0 -190
- package/src/runtime-pi/client/createStorage.js +0 -58
- package/src/runtime-pi/client/generate.js +0 -481
- package/src/runtime-pi/client/index.js +0 -21
- package/src/runtime-pi/client/worker/Application.js +0 -44
- package/src/runtime-pi/client/worker/Context.js +0 -7
- package/src/runtime-pi/client/worker/Runtime.js +0 -275
- package/src/runtime-pi/client/worker/Workport.js +0 -78
- package/src/runtime-pi/client/worker/index.js +0 -21
- package/src/runtime-pi/server/Application.js +0 -101
- package/src/runtime-pi/server/Context.js +0 -16
- package/src/runtime-pi/server/Router.js +0 -159
- package/src/runtime-pi/server/Runtime.js +0 -558
- package/src/runtime-pi/server/index.js +0 -21
- package/src/runtime-pi/util-http.js +0 -86
- package/src/runtime-pi/xFormData.js +0 -24
- package/src/runtime-pi/xHeaders.js +0 -146
- package/src/runtime-pi/xRequest.js +0 -46
- package/src/runtime-pi/xRequestHeaders.js +0 -109
- package/src/runtime-pi/xResponse.js +0 -33
- package/src/runtime-pi/xResponseHeaders.js +0 -117
- package/src/runtime-pi/xURL.js +0 -105
- package/src/runtime-pi/xfetch.js +0 -23
- package/src/runtime-pi/xxHttpMessage.js +0 -102
- package/src/static-pi/index.js +0 -11
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseTransition,
|
|
3
|
+
BaseTransitionPropsValidators,
|
|
4
|
+
Comment,
|
|
5
|
+
DeprecationTypes,
|
|
6
|
+
EffectScope,
|
|
7
|
+
ErrorCodes,
|
|
8
|
+
ErrorTypeStrings,
|
|
9
|
+
Fragment,
|
|
10
|
+
KeepAlive,
|
|
11
|
+
ReactiveEffect,
|
|
12
|
+
Static,
|
|
13
|
+
Suspense,
|
|
14
|
+
Teleport,
|
|
15
|
+
Text,
|
|
16
|
+
TrackOpTypes,
|
|
17
|
+
Transition,
|
|
18
|
+
TransitionGroup,
|
|
19
|
+
TriggerOpTypes,
|
|
20
|
+
VueElement,
|
|
21
|
+
assertNumber,
|
|
22
|
+
callWithAsyncErrorHandling,
|
|
23
|
+
callWithErrorHandling,
|
|
24
|
+
camelize,
|
|
25
|
+
capitalize,
|
|
26
|
+
cloneVNode,
|
|
27
|
+
compatUtils,
|
|
28
|
+
compile,
|
|
29
|
+
computed,
|
|
30
|
+
createApp,
|
|
31
|
+
createBaseVNode,
|
|
32
|
+
createBlock,
|
|
33
|
+
createCommentVNode,
|
|
34
|
+
createElementBlock,
|
|
35
|
+
createHydrationRenderer,
|
|
36
|
+
createPropsRestProxy,
|
|
37
|
+
createRenderer,
|
|
38
|
+
createSSRApp,
|
|
39
|
+
createSlots,
|
|
40
|
+
createStaticVNode,
|
|
41
|
+
createTextVNode,
|
|
42
|
+
createVNode,
|
|
43
|
+
customRef,
|
|
44
|
+
defineAsyncComponent,
|
|
45
|
+
defineComponent,
|
|
46
|
+
defineCustomElement,
|
|
47
|
+
defineEmits,
|
|
48
|
+
defineExpose,
|
|
49
|
+
defineModel,
|
|
50
|
+
defineOptions,
|
|
51
|
+
defineProps,
|
|
52
|
+
defineSSRCustomElement,
|
|
53
|
+
defineSlots,
|
|
54
|
+
devtools,
|
|
55
|
+
effect,
|
|
56
|
+
effectScope,
|
|
57
|
+
getCurrentInstance,
|
|
58
|
+
getCurrentScope,
|
|
59
|
+
getCurrentWatcher,
|
|
60
|
+
getTransitionRawChildren,
|
|
61
|
+
guardReactiveProps,
|
|
62
|
+
h,
|
|
63
|
+
handleError,
|
|
64
|
+
hasInjectionContext,
|
|
65
|
+
hydrate,
|
|
66
|
+
hydrateOnIdle,
|
|
67
|
+
hydrateOnInteraction,
|
|
68
|
+
hydrateOnMediaQuery,
|
|
69
|
+
hydrateOnVisible,
|
|
70
|
+
initCustomFormatter,
|
|
71
|
+
initDirectivesForSSR,
|
|
72
|
+
inject,
|
|
73
|
+
isMemoSame,
|
|
74
|
+
isProxy,
|
|
75
|
+
isReactive,
|
|
76
|
+
isReadonly,
|
|
77
|
+
isRef,
|
|
78
|
+
isRuntimeOnly,
|
|
79
|
+
isShallow,
|
|
80
|
+
isVNode,
|
|
81
|
+
markRaw,
|
|
82
|
+
mergeDefaults,
|
|
83
|
+
mergeModels,
|
|
84
|
+
mergeProps,
|
|
85
|
+
nextTick,
|
|
86
|
+
normalizeClass,
|
|
87
|
+
normalizeProps,
|
|
88
|
+
normalizeStyle,
|
|
89
|
+
onActivated,
|
|
90
|
+
onBeforeMount,
|
|
91
|
+
onBeforeUnmount,
|
|
92
|
+
onBeforeUpdate,
|
|
93
|
+
onDeactivated,
|
|
94
|
+
onErrorCaptured,
|
|
95
|
+
onMounted,
|
|
96
|
+
onRenderTracked,
|
|
97
|
+
onRenderTriggered,
|
|
98
|
+
onScopeDispose,
|
|
99
|
+
onServerPrefetch,
|
|
100
|
+
onUnmounted,
|
|
101
|
+
onUpdated,
|
|
102
|
+
onWatcherCleanup,
|
|
103
|
+
openBlock,
|
|
104
|
+
popScopeId,
|
|
105
|
+
provide,
|
|
106
|
+
proxyRefs,
|
|
107
|
+
pushScopeId,
|
|
108
|
+
queuePostFlushCb,
|
|
109
|
+
reactive,
|
|
110
|
+
readonly,
|
|
111
|
+
ref,
|
|
112
|
+
registerRuntimeCompiler,
|
|
113
|
+
render,
|
|
114
|
+
renderList,
|
|
115
|
+
renderSlot,
|
|
116
|
+
resolveComponent,
|
|
117
|
+
resolveDirective,
|
|
118
|
+
resolveDynamicComponent,
|
|
119
|
+
resolveFilter,
|
|
120
|
+
resolveTransitionHooks,
|
|
121
|
+
setBlockTracking,
|
|
122
|
+
setDevtoolsHook,
|
|
123
|
+
setTransitionHooks,
|
|
124
|
+
shallowReactive,
|
|
125
|
+
shallowReadonly,
|
|
126
|
+
shallowRef,
|
|
127
|
+
ssrContextKey,
|
|
128
|
+
ssrUtils,
|
|
129
|
+
stop,
|
|
130
|
+
toDisplayString,
|
|
131
|
+
toHandlerKey,
|
|
132
|
+
toHandlers,
|
|
133
|
+
toRaw,
|
|
134
|
+
toRef,
|
|
135
|
+
toRefs,
|
|
136
|
+
toValue,
|
|
137
|
+
transformVNodeArgs,
|
|
138
|
+
triggerRef,
|
|
139
|
+
unref,
|
|
140
|
+
useAttrs,
|
|
141
|
+
useCssModule,
|
|
142
|
+
useCssVars,
|
|
143
|
+
useHost,
|
|
144
|
+
useId,
|
|
145
|
+
useModel,
|
|
146
|
+
useSSRContext,
|
|
147
|
+
useShadowRoot,
|
|
148
|
+
useSlots,
|
|
149
|
+
useTemplateRef,
|
|
150
|
+
useTransitionState,
|
|
151
|
+
vModelCheckbox,
|
|
152
|
+
vModelDynamic,
|
|
153
|
+
vModelRadio,
|
|
154
|
+
vModelSelect,
|
|
155
|
+
vModelText,
|
|
156
|
+
vShow,
|
|
157
|
+
version,
|
|
158
|
+
warn,
|
|
159
|
+
watch,
|
|
160
|
+
watchEffect,
|
|
161
|
+
watchPostEffect,
|
|
162
|
+
watchSyncEffect,
|
|
163
|
+
withAsyncContext,
|
|
164
|
+
withCtx,
|
|
165
|
+
withDefaults,
|
|
166
|
+
withDirectives,
|
|
167
|
+
withKeys,
|
|
168
|
+
withMemo,
|
|
169
|
+
withModifiers,
|
|
170
|
+
withScopeId
|
|
171
|
+
} from "./chunk-QAXAIFA7.js";
|
|
172
|
+
import "./chunk-BUSYA2B4.js";
|
|
173
|
+
export {
|
|
174
|
+
BaseTransition,
|
|
175
|
+
BaseTransitionPropsValidators,
|
|
176
|
+
Comment,
|
|
177
|
+
DeprecationTypes,
|
|
178
|
+
EffectScope,
|
|
179
|
+
ErrorCodes,
|
|
180
|
+
ErrorTypeStrings,
|
|
181
|
+
Fragment,
|
|
182
|
+
KeepAlive,
|
|
183
|
+
ReactiveEffect,
|
|
184
|
+
Static,
|
|
185
|
+
Suspense,
|
|
186
|
+
Teleport,
|
|
187
|
+
Text,
|
|
188
|
+
TrackOpTypes,
|
|
189
|
+
Transition,
|
|
190
|
+
TransitionGroup,
|
|
191
|
+
TriggerOpTypes,
|
|
192
|
+
VueElement,
|
|
193
|
+
assertNumber,
|
|
194
|
+
callWithAsyncErrorHandling,
|
|
195
|
+
callWithErrorHandling,
|
|
196
|
+
camelize,
|
|
197
|
+
capitalize,
|
|
198
|
+
cloneVNode,
|
|
199
|
+
compatUtils,
|
|
200
|
+
compile,
|
|
201
|
+
computed,
|
|
202
|
+
createApp,
|
|
203
|
+
createBlock,
|
|
204
|
+
createCommentVNode,
|
|
205
|
+
createElementBlock,
|
|
206
|
+
createBaseVNode as createElementVNode,
|
|
207
|
+
createHydrationRenderer,
|
|
208
|
+
createPropsRestProxy,
|
|
209
|
+
createRenderer,
|
|
210
|
+
createSSRApp,
|
|
211
|
+
createSlots,
|
|
212
|
+
createStaticVNode,
|
|
213
|
+
createTextVNode,
|
|
214
|
+
createVNode,
|
|
215
|
+
customRef,
|
|
216
|
+
defineAsyncComponent,
|
|
217
|
+
defineComponent,
|
|
218
|
+
defineCustomElement,
|
|
219
|
+
defineEmits,
|
|
220
|
+
defineExpose,
|
|
221
|
+
defineModel,
|
|
222
|
+
defineOptions,
|
|
223
|
+
defineProps,
|
|
224
|
+
defineSSRCustomElement,
|
|
225
|
+
defineSlots,
|
|
226
|
+
devtools,
|
|
227
|
+
effect,
|
|
228
|
+
effectScope,
|
|
229
|
+
getCurrentInstance,
|
|
230
|
+
getCurrentScope,
|
|
231
|
+
getCurrentWatcher,
|
|
232
|
+
getTransitionRawChildren,
|
|
233
|
+
guardReactiveProps,
|
|
234
|
+
h,
|
|
235
|
+
handleError,
|
|
236
|
+
hasInjectionContext,
|
|
237
|
+
hydrate,
|
|
238
|
+
hydrateOnIdle,
|
|
239
|
+
hydrateOnInteraction,
|
|
240
|
+
hydrateOnMediaQuery,
|
|
241
|
+
hydrateOnVisible,
|
|
242
|
+
initCustomFormatter,
|
|
243
|
+
initDirectivesForSSR,
|
|
244
|
+
inject,
|
|
245
|
+
isMemoSame,
|
|
246
|
+
isProxy,
|
|
247
|
+
isReactive,
|
|
248
|
+
isReadonly,
|
|
249
|
+
isRef,
|
|
250
|
+
isRuntimeOnly,
|
|
251
|
+
isShallow,
|
|
252
|
+
isVNode,
|
|
253
|
+
markRaw,
|
|
254
|
+
mergeDefaults,
|
|
255
|
+
mergeModels,
|
|
256
|
+
mergeProps,
|
|
257
|
+
nextTick,
|
|
258
|
+
normalizeClass,
|
|
259
|
+
normalizeProps,
|
|
260
|
+
normalizeStyle,
|
|
261
|
+
onActivated,
|
|
262
|
+
onBeforeMount,
|
|
263
|
+
onBeforeUnmount,
|
|
264
|
+
onBeforeUpdate,
|
|
265
|
+
onDeactivated,
|
|
266
|
+
onErrorCaptured,
|
|
267
|
+
onMounted,
|
|
268
|
+
onRenderTracked,
|
|
269
|
+
onRenderTriggered,
|
|
270
|
+
onScopeDispose,
|
|
271
|
+
onServerPrefetch,
|
|
272
|
+
onUnmounted,
|
|
273
|
+
onUpdated,
|
|
274
|
+
onWatcherCleanup,
|
|
275
|
+
openBlock,
|
|
276
|
+
popScopeId,
|
|
277
|
+
provide,
|
|
278
|
+
proxyRefs,
|
|
279
|
+
pushScopeId,
|
|
280
|
+
queuePostFlushCb,
|
|
281
|
+
reactive,
|
|
282
|
+
readonly,
|
|
283
|
+
ref,
|
|
284
|
+
registerRuntimeCompiler,
|
|
285
|
+
render,
|
|
286
|
+
renderList,
|
|
287
|
+
renderSlot,
|
|
288
|
+
resolveComponent,
|
|
289
|
+
resolveDirective,
|
|
290
|
+
resolveDynamicComponent,
|
|
291
|
+
resolveFilter,
|
|
292
|
+
resolveTransitionHooks,
|
|
293
|
+
setBlockTracking,
|
|
294
|
+
setDevtoolsHook,
|
|
295
|
+
setTransitionHooks,
|
|
296
|
+
shallowReactive,
|
|
297
|
+
shallowReadonly,
|
|
298
|
+
shallowRef,
|
|
299
|
+
ssrContextKey,
|
|
300
|
+
ssrUtils,
|
|
301
|
+
stop,
|
|
302
|
+
toDisplayString,
|
|
303
|
+
toHandlerKey,
|
|
304
|
+
toHandlers,
|
|
305
|
+
toRaw,
|
|
306
|
+
toRef,
|
|
307
|
+
toRefs,
|
|
308
|
+
toValue,
|
|
309
|
+
transformVNodeArgs,
|
|
310
|
+
triggerRef,
|
|
311
|
+
unref,
|
|
312
|
+
useAttrs,
|
|
313
|
+
useCssModule,
|
|
314
|
+
useCssVars,
|
|
315
|
+
useHost,
|
|
316
|
+
useId,
|
|
317
|
+
useModel,
|
|
318
|
+
useSSRContext,
|
|
319
|
+
useShadowRoot,
|
|
320
|
+
useSlots,
|
|
321
|
+
useTemplateRef,
|
|
322
|
+
useTransitionState,
|
|
323
|
+
vModelCheckbox,
|
|
324
|
+
vModelDynamic,
|
|
325
|
+
vModelRadio,
|
|
326
|
+
vModelSelect,
|
|
327
|
+
vModelText,
|
|
328
|
+
vShow,
|
|
329
|
+
version,
|
|
330
|
+
warn,
|
|
331
|
+
watch,
|
|
332
|
+
watchEffect,
|
|
333
|
+
watchPostEffect,
|
|
334
|
+
watchSyncEffect,
|
|
335
|
+
withAsyncContext,
|
|
336
|
+
withCtx,
|
|
337
|
+
withDefaults,
|
|
338
|
+
withDirectives,
|
|
339
|
+
withKeys,
|
|
340
|
+
withMemo,
|
|
341
|
+
withModifiers,
|
|
342
|
+
withScopeId
|
|
343
|
+
};
|
|
344
|
+
//# sourceMappingURL=vue.js.map
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { defineConfig } from 'vitepress'
|
|
2
|
+
import { withMermaid } from 'vitepress-plugin-mermaid';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
title: 'Webflo',
|
|
6
|
+
description: 'A universal, standards-first web framework for building web-native apps.',
|
|
7
|
+
themeConfig: {
|
|
8
|
+
logo: false,
|
|
9
|
+
siteTitle: 'Webflo',
|
|
10
|
+
/*
|
|
11
|
+
// Site logo
|
|
12
|
+
logo: {
|
|
13
|
+
src: '/img/brand/linked-ql-logo.png',
|
|
14
|
+
height: 140
|
|
15
|
+
},
|
|
16
|
+
siteTitle: false,
|
|
17
|
+
*/
|
|
18
|
+
socialLinks: [
|
|
19
|
+
{ icon: 'github', link: 'https://github.com/webqit/webflo' },
|
|
20
|
+
],
|
|
21
|
+
nav: [
|
|
22
|
+
{ text: 'Docs', link: '/docs', activeMatch: '/docs' },
|
|
23
|
+
{ text: 'API', link: '/api', activeMatch: '/api/webflo-routing/handler' },
|
|
24
|
+
{ text: 'Guides', link: '/guides', activeMatch: '/guides' },
|
|
25
|
+
{ text: 'Examples', link: '/examples', activeMatch: '/examples' },
|
|
26
|
+
],
|
|
27
|
+
sidebar: {
|
|
28
|
+
'/': [
|
|
29
|
+
{
|
|
30
|
+
text: 'Getting Started',
|
|
31
|
+
items: [
|
|
32
|
+
{ text: 'Welcome', link: '/docs' },
|
|
33
|
+
{ text: 'Quickstart', link: '/docs/getting-started' },
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
text: 'Concepts',
|
|
38
|
+
items: [
|
|
39
|
+
{ text: 'Concepts Overview', link: '/docs/concepts' },
|
|
40
|
+
{ text: 'Webflo Routing', link: '/docs/concepts/routing' },
|
|
41
|
+
{ text: 'Rendering', link: '/docs/concepts/rendering' },
|
|
42
|
+
{ text: 'Templates', link: '/docs/concepts/templates' },
|
|
43
|
+
{ text: 'State Management', link: '/docs/concepts/state' },
|
|
44
|
+
{ text: 'Request/Response Lifecycle', link: '/docs/concepts/request-response' },
|
|
45
|
+
{ text: 'Webflo Realtime', link: '/docs/concepts/realtime' },
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: 'Advanced',
|
|
50
|
+
items: [
|
|
51
|
+
{ text: 'Advanced Overview', link: '/docs/advanced' },
|
|
52
|
+
{ text: 'Redirects', link: '/docs/advanced/redirects' },
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
text: 'API Reference',
|
|
57
|
+
items: [
|
|
58
|
+
{
|
|
59
|
+
text: 'Webflo Routing',
|
|
60
|
+
collapsed: true,
|
|
61
|
+
items: [
|
|
62
|
+
{ text: 'Handler', link: '/api/webflo-routing/handler' },
|
|
63
|
+
{ text: 'HttpEvent', link: '/api/webflo-routing/HttpEvent' },
|
|
64
|
+
{ text: 'next', link: '/api/webflo-routing/handler/next' },
|
|
65
|
+
{ text: 'fetch', link: '/api/webflo-routing/handler/fetch' },
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
text: 'Webflo Fetch',
|
|
70
|
+
collapsed: true,
|
|
71
|
+
items: [
|
|
72
|
+
{ text: 'fetch', link: '/api/webflo-fetch/fetch' },
|
|
73
|
+
{ text: 'Request', link: '/api/webflo-fetch/Request' },
|
|
74
|
+
{ text: 'Response', link: '/api/webflo-fetch/Response' },
|
|
75
|
+
{ text: 'LiveResponse', link: '/api/webflo-fetch/LiveResponse' },
|
|
76
|
+
{ text: 'FormData', link: '/api/webflo-fetch/FormData' },
|
|
77
|
+
{ text: 'Headers', link: '/api/webflo-fetch/Headers' },
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
text: 'Webflo Messaging',
|
|
82
|
+
collapsed: true,
|
|
83
|
+
items: [
|
|
84
|
+
{ text: 'MessageChannel', link: '/api/webflo-messaging/MessageChannel' },
|
|
85
|
+
{ text: 'MessagePort', link: '/api/webflo-messaging/MessagePort' },
|
|
86
|
+
{ text: 'MessageEvent', link: '/api/webflo-messaging/MessageEvent' },
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
text: 'Guides & Recipes',
|
|
93
|
+
items: [
|
|
94
|
+
{ text: 'Tutorial: Todo App', link: '/guides/tutorial-1-todo' },
|
|
95
|
+
{ text: 'Auth', link: '/guides/guide-auth' },
|
|
96
|
+
{ text: 'File Upload', link: '/guides/guide-file-upload' },
|
|
97
|
+
{ text: 'Service Worker', link: '/guides/guide-service-worker' },
|
|
98
|
+
{ text: 'Streaming', link: '/recipes/streaming' },
|
|
99
|
+
{ text: 'Realtime Patterns', link: '/recipes/realtime' },
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
text: 'Examples',
|
|
104
|
+
items: [
|
|
105
|
+
{ text: 'Web Example', link: '/examples/web' },
|
|
106
|
+
{ text: 'PWA Example', link: '/examples/pwa' },
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
text: 'Reference',
|
|
111
|
+
items: [
|
|
112
|
+
{ text: 'CLI', link: '/reference/cli' },
|
|
113
|
+
{ text: 'Config', link: '/reference/config' },
|
|
114
|
+
{ text: 'Tools', link: '/reference/tools' },
|
|
115
|
+
{ text: 'FAQ', link: '/faq' },
|
|
116
|
+
{ text: 'Contributing', link: '/contributing' },
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
footer: {
|
|
122
|
+
message: 'MIT Licensed',
|
|
123
|
+
copyright: '© webqit'
|
|
124
|
+
},
|
|
125
|
+
search: {
|
|
126
|
+
provider: 'local'
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
head: [
|
|
130
|
+
['meta', { name: 'theme-color', content: '#0f172a' }]
|
|
131
|
+
],
|
|
132
|
+
|
|
133
|
+
lang: 'en-US',
|
|
134
|
+
base: '/',
|
|
135
|
+
cleanUrls: true,
|
|
136
|
+
appearance: 'force-dark',
|
|
137
|
+
toc: { level: [1, 2] },
|
|
138
|
+
markdown: {
|
|
139
|
+
math: true,
|
|
140
|
+
theme: 'material-theme-palenight',
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
export default withMermaid(
|
|
146
|
+
defineConfig(config)
|
|
147
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Logo */
|
|
3
|
+
--vp-nav-logo-height: 40px;
|
|
4
|
+
|
|
5
|
+
/* Dark background for code blocks */
|
|
6
|
+
--vp-code-block-bg: #212327;
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
--vp-button-brand-text: black;
|
|
10
|
+
--vp-button-brand-hover-text: black;
|
|
11
|
+
--vp-button-brand-active-text: black;
|
|
12
|
+
|
|
13
|
+
--vp-c-brand-1: #e9c80d;
|
|
14
|
+
--vp-c-brand-2: gold;
|
|
15
|
+
--vp-c-brand-3: #ffbf00;
|
|
16
|
+
*/
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.VPHero .VPImage {
|
|
20
|
+
box-shadow: 0 0 5px black;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nowrap {
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h1 { counter-reset: h2_c; }
|
|
30
|
+
|
|
31
|
+
h2 {
|
|
32
|
+
counter-increment: h2_c;
|
|
33
|
+
counter-reset: h3_c;
|
|
34
|
+
}
|
|
35
|
+
h2:not(.title, .text, :has(em)):before { content: counter(h2_c) ". "; }
|
|
36
|
+
|
|
37
|
+
h3 {
|
|
38
|
+
counter-increment: h3_c;
|
|
39
|
+
counter-reset: h4_c;
|
|
40
|
+
}
|
|
41
|
+
h3:not(.text):before { content: counter(h2_c) "." counter(h3_c) ". "; }
|
|
42
|
+
|
|
43
|
+
h4 {
|
|
44
|
+
counter-increment: h4_c;
|
|
45
|
+
}
|
|
46
|
+
h4:not(.text):before { content: counter(h2_c) "." counter(h3_c) "." counter(h4_c) ". "; }
|
|
47
|
+
|
|
48
|
+
:is(h2, h3, h4)::before {
|
|
49
|
+
font-family: "Roboto Mono", monospace;
|
|
50
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `event.respondWith()`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `event.waitUntil()`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `event.waitUntilNavigate()`
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# HTTP Event
|
|
2
|
+
|
|
3
|
+
The `event` object represents the request and provides access to all request data, state, and lifecycle helpers.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
- `event.request`: Standard Request object
|
|
7
|
+
- `event.url`: Enhanced URL object
|
|
8
|
+
- `event.cookies`, `event.session`, `event.user`: State interfaces
|
|
9
|
+
- `event.client`: Realtime messaging
|
|
10
|
+
- `event.signal`: AbortSignal
|
|
11
|
+
- `event.state`, `event.detail`, `event.sdk`
|
|
12
|
+
|
|
13
|
+
## Methods
|
|
14
|
+
- `event.waitUntil(promise)`
|
|
15
|
+
- [`event.respondWith(data, ...)`](./HttpEvent/respondWith)
|
|
16
|
+
- `event.clone(init)` / `event.extend(init)`
|
|
17
|
+
- `event.abort()`
|
|
18
|
+
- `event.poll(callback, opts)`
|
|
19
|
+
- `event.lifeCycleComplete([promise])`
|
|
20
|
+
|
|
21
|
+
See [Lifecycle](/docs/concepts/lifecycle) for context and [Realtime](/docs/concepts/realtime) for live updates.
|
|
22
|
+
|
|
23
|
+
## Lifecycle
|
|
24
|
+
|
|
25
|
+
+ HttpEvent.signal aborts when
|
|
26
|
+
+ parent event's signal aborts
|
|
27
|
+
+ request's signal aborts
|
|
28
|
+
+ HttpEvent.abort() is called
|
|
29
|
+
+ handler returns, plus all handlers in subtree return; i.e. all handlers complete their lifecycle
|
|
30
|
+
+ root HttpEvent is aborted on any of the above or when Realtime closes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Handler::`fetch()`
|
|
2
|
+
|
|
3
|
+
Make inbound or outbound calls.
|
|
4
|
+
|
|
5
|
+
## Signature
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
// url can be string or URL
|
|
9
|
+
// url can be relative when string
|
|
10
|
+
// init can be Request instance or Request init
|
|
11
|
+
await fetch(url, init?);
|
|
12
|
+
await fetch(request);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Arguments
|
|
16
|
+
|
|
17
|
+
| Argument | Tyoe | Default | Description |
|
|
18
|
+
| :---------------- | :------------ | :------------ | :---------------------------- |
|
|
19
|
+
|
|
20
|
+
## Return Value
|
|
21
|
+
|
|
22
|
+
If relative, behaves and returns as [`next()`](next):
|
|
23
|
+
|
|
24
|
+
| Condition | Return type |
|
|
25
|
+
| :----------------------------------------- | :---------------------------- |
|
|
26
|
+
| Step handler is generator function | `Generator` object |
|
|
27
|
+
| Step handler is Quantum function | `State` object |
|
|
28
|
+
| Step handler uses `event.respondWith()` | `LiveResponse` |
|
|
29
|
+
| Step handler returns `LiveResponse` | `LiveResponse` |
|
|
30
|
+
| Step handler returns `Response` | `Response` |
|
|
31
|
+
| Step handler returns any other value. | That value |
|
|
32
|
+
|
|
33
|
+
Otherwise, behaves and returns as standard `fetch()`.
|
|
34
|
+
|
|
35
|
+
## Differences from `next()`:
|
|
36
|
+
|
|
37
|
+
intro
|
|
38
|
+
|
|
39
|
+
| `next()` | `fetch()` |
|
|
40
|
+
| :----------------------------------------- | :--------------------------------------- |
|
|
41
|
+
| Makes only inbound calls. | Can make both inbound or outbound calls. |
|
|
42
|
+
| Inherits current request. | |
|