hightjs 0.5.1 → 0.5.3
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/package.json +1 -1
- package/src/builder.js +8 -8
- package/src/hotReload.ts +4 -7
- package/src/router.ts +15 -13
- package/dist/adapters/express.d.ts +0 -7
- package/dist/adapters/express.js +0 -63
- package/dist/adapters/factory.d.ts +0 -23
- package/dist/adapters/factory.js +0 -122
- package/dist/adapters/fastify.d.ts +0 -25
- package/dist/adapters/fastify.js +0 -61
- package/dist/adapters/native.d.ts +0 -8
- package/dist/adapters/native.js +0 -198
- package/dist/api/console.d.ts +0 -94
- package/dist/api/console.js +0 -294
- package/dist/api/http.d.ts +0 -180
- package/dist/api/http.js +0 -469
- package/dist/bin/hightjs.d.ts +0 -2
- package/dist/bin/hightjs.js +0 -214
- package/dist/builder.d.ts +0 -32
- package/dist/builder.js +0 -581
- package/dist/client/DefaultNotFound.d.ts +0 -1
- package/dist/client/DefaultNotFound.js +0 -79
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.js +0 -24
- package/dist/client/clientRouter.d.ts +0 -58
- package/dist/client/clientRouter.js +0 -132
- package/dist/client/entry.client.d.ts +0 -1
- package/dist/client/entry.client.js +0 -455
- package/dist/components/Link.d.ts +0 -7
- package/dist/components/Link.js +0 -13
- package/dist/global/global.d.ts +0 -117
- package/dist/global/global.js +0 -17
- package/dist/helpers.d.ts +0 -20
- package/dist/helpers.js +0 -583
- package/dist/hotReload.d.ts +0 -32
- package/dist/hotReload.js +0 -548
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -494
- package/dist/loaders.d.ts +0 -1
- package/dist/loaders.js +0 -46
- package/dist/renderer.d.ts +0 -14
- package/dist/renderer.js +0 -380
- package/dist/router.d.ts +0 -101
- package/dist/router.js +0 -653
- package/dist/types/framework.d.ts +0 -37
- package/dist/types/framework.js +0 -2
- package/dist/types.d.ts +0 -192
- package/dist/types.js +0 -2
package/dist/components/Link.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Link = Link;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const clientRouter_1 = require("../client/clientRouter");
|
|
6
|
-
function Link({ href, children, ...props }) {
|
|
7
|
-
const handleClick = async (e) => {
|
|
8
|
-
e.preventDefault();
|
|
9
|
-
// Usa o novo sistema de router
|
|
10
|
-
await clientRouter_1.router.push(href);
|
|
11
|
-
};
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("a", { href: href, ...props, onClick: handleClick, children: children }));
|
|
13
|
-
}
|
package/dist/global/global.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type declarations for asset imports
|
|
3
|
-
* This allows TypeScript to understand imports of various file types
|
|
4
|
-
*/
|
|
5
|
-
declare module "*.md" {
|
|
6
|
-
const content: string;
|
|
7
|
-
export default content;
|
|
8
|
-
}
|
|
9
|
-
declare module "*.png" {
|
|
10
|
-
const src: string;
|
|
11
|
-
export default src;
|
|
12
|
-
}
|
|
13
|
-
declare module "*.jpg" {
|
|
14
|
-
const src: string;
|
|
15
|
-
export default src;
|
|
16
|
-
}
|
|
17
|
-
declare module "*.jpeg" {
|
|
18
|
-
const src: string;
|
|
19
|
-
export default src;
|
|
20
|
-
}
|
|
21
|
-
declare module "*.gif" {
|
|
22
|
-
const src: string;
|
|
23
|
-
export default src;
|
|
24
|
-
}
|
|
25
|
-
declare module "*.webp" {
|
|
26
|
-
const src: string;
|
|
27
|
-
export default src;
|
|
28
|
-
}
|
|
29
|
-
declare module "*.avif" {
|
|
30
|
-
const src: string;
|
|
31
|
-
export default src;
|
|
32
|
-
}
|
|
33
|
-
declare module "*.ico" {
|
|
34
|
-
const src: string;
|
|
35
|
-
export default src;
|
|
36
|
-
}
|
|
37
|
-
declare module "*.bmp" {
|
|
38
|
-
const src: string;
|
|
39
|
-
export default src;
|
|
40
|
-
}
|
|
41
|
-
declare module "*.tif" {
|
|
42
|
-
const src: string;
|
|
43
|
-
export default src;
|
|
44
|
-
}
|
|
45
|
-
declare module "*.tiff" {
|
|
46
|
-
const src: string;
|
|
47
|
-
export default src;
|
|
48
|
-
}
|
|
49
|
-
declare module "*.svg" {
|
|
50
|
-
const src: string;
|
|
51
|
-
export const svgContent: string;
|
|
52
|
-
export default src;
|
|
53
|
-
}
|
|
54
|
-
declare module "*.json" {
|
|
55
|
-
const value: any;
|
|
56
|
-
export default value;
|
|
57
|
-
}
|
|
58
|
-
declare module "*.txt" {
|
|
59
|
-
const content: string;
|
|
60
|
-
export default content;
|
|
61
|
-
}
|
|
62
|
-
declare module "*.woff" {
|
|
63
|
-
const src: string;
|
|
64
|
-
export default src;
|
|
65
|
-
}
|
|
66
|
-
declare module "*.woff2" {
|
|
67
|
-
const src: string;
|
|
68
|
-
export default src;
|
|
69
|
-
}
|
|
70
|
-
declare module "*.ttf" {
|
|
71
|
-
const src: string;
|
|
72
|
-
export default src;
|
|
73
|
-
}
|
|
74
|
-
declare module "*.otf" {
|
|
75
|
-
const src: string;
|
|
76
|
-
export default src;
|
|
77
|
-
}
|
|
78
|
-
declare module "*.eot" {
|
|
79
|
-
const src: string;
|
|
80
|
-
export default src;
|
|
81
|
-
}
|
|
82
|
-
declare module "*.mp3" {
|
|
83
|
-
const src: string;
|
|
84
|
-
export default src;
|
|
85
|
-
}
|
|
86
|
-
declare module "*.wav" {
|
|
87
|
-
const src: string;
|
|
88
|
-
export default src;
|
|
89
|
-
}
|
|
90
|
-
declare module "*.ogg" {
|
|
91
|
-
const src: string;
|
|
92
|
-
export default src;
|
|
93
|
-
}
|
|
94
|
-
declare module "*.m4a" {
|
|
95
|
-
const src: string;
|
|
96
|
-
export default src;
|
|
97
|
-
}
|
|
98
|
-
declare module "*.aac" {
|
|
99
|
-
const src: string;
|
|
100
|
-
export default src;
|
|
101
|
-
}
|
|
102
|
-
declare module "*.flac" {
|
|
103
|
-
const src: string;
|
|
104
|
-
export default src;
|
|
105
|
-
}
|
|
106
|
-
declare module "*.mp4" {
|
|
107
|
-
const src: string;
|
|
108
|
-
export default src;
|
|
109
|
-
}
|
|
110
|
-
declare module "*.webm" {
|
|
111
|
-
const src: string;
|
|
112
|
-
export default src;
|
|
113
|
-
}
|
|
114
|
-
declare module "*.ogv" {
|
|
115
|
-
const src: string;
|
|
116
|
-
export default src;
|
|
117
|
-
}
|
package/dist/global/global.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file is part of the HightJS Project.
|
|
4
|
-
* Copyright (c) 2025 itsmuzin
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
package/dist/helpers.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import http, { Server } from 'http';
|
|
3
|
-
import type { HightJSOptions } from './types';
|
|
4
|
-
import https from 'https';
|
|
5
|
-
export declare function app(options?: HightJSOptions): {
|
|
6
|
-
/**
|
|
7
|
-
* Integra com uma aplicação de qualquer framework (Express, Fastify, etc)
|
|
8
|
-
* O 'serverApp: any' é mantido para flexibilidade, já que pode ser de tipos diferentes.
|
|
9
|
-
*/
|
|
10
|
-
integrate: (serverApp: any) => Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* Inicia um servidor HightJS fechado (o usuário não tem acesso ao framework)
|
|
13
|
-
*/
|
|
14
|
-
init: () => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> | https.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
|
|
15
|
-
prepare: () => Promise<void>;
|
|
16
|
-
getRequestHandler: () => (req: any, res: any, next?: any) => Promise<void> | void;
|
|
17
|
-
setupWebSocket: (server: Server | any) => void;
|
|
18
|
-
executeInstrumentation: () => void;
|
|
19
|
-
};
|
|
20
|
-
export default app;
|