@bananacool467/authtics-host 0.1.5 → 0.1.7
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/README.md +30 -7
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +401 -85
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -0
- package/dist/devPanel.d.ts +0 -1
- package/dist/devPanel.js +80 -79
- package/dist/index.d.ts +28 -3
- package/dist/index.js +2 -3
- package/dist/renderEngine.d.ts +1 -1
- package/dist/renderEngine.js +20 -20
- package/dist/rendererTempFiles.d.ts +1 -0
- package/dist/rendererTempFiles.js +7 -0
- package/dist/route.d.ts +4 -0
- package/dist/route.js +20 -10
- package/package.json +4 -4
- package/dist/fileLocator.d.ts +0 -4
- package/dist/fileLocator.js +0 -15
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Authtics Host
|
|
2
2
|
|
|
3
|
-
Version 0.1.
|
|
3
|
+
Version 0.1.7
|
|
4
4
|
License: MIT
|
|
5
5
|
|
|
6
6
|
Authtics Host is a framework inspired by Next.js. Authtics Host supports SSR (Server-Side Rendering) and uses esbuild.
|
|
@@ -11,11 +11,11 @@ Authtics Host is a framework inspired by Next.js. Authtics Host supports SSR (Se
|
|
|
11
11
|
|
|
12
12
|
To get **Authtics Host** use:
|
|
13
13
|
```bash
|
|
14
|
-
npm i @bananacool467/authtics-host@
|
|
14
|
+
npm i @bananacool467/authtics-host@latest
|
|
15
15
|
```
|
|
16
16
|
or
|
|
17
17
|
```bash
|
|
18
|
-
npm install @bananacool467/authtics-host@
|
|
18
|
+
npm install @bananacool467/authtics-host@latest
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
You can have auto paging enabled, auto paging checks your given directory for HTML and TSX files and then adds them to route. If auto filing is enabled, auto filing will check your given directory for files and add them accessible to route.
|
|
@@ -155,8 +155,8 @@ The Developer Panel is what you could use to help you debug your code. The Devel
|
|
|
155
155
|
**Route** — Shows information about the current route.
|
|
156
156
|
**Webpage Info** — Shows information about the website/webpage.
|
|
157
157
|
**Network** — Shows the current ping and shows sent fetches from the client and shows received from the server after fetching.
|
|
158
|
-
**Client Info** — Shows information about your client's User Agent, OS and FPS
|
|
159
|
-
**About Host** — Shows the current version of Authtics Host
|
|
158
|
+
**Client Info** — Shows information about your client's User Agent, OS **(Operating System)** and FPS **(Frames Per Second)**.
|
|
159
|
+
**About Host** — Shows the current version of *Authtics Host*.
|
|
160
160
|
**Server Info** — Shows how much heap was used and how much CPU was used on the server and how much requests there were and how much users are currently on the site and how long the site has been up.
|
|
161
161
|
|
|
162
162
|
The information the Developer Panel shows outside of the tabs is just your **DAT** (Developer Access Token).
|
|
@@ -171,7 +171,30 @@ The Developer Panel also have remote buttons:
|
|
|
171
171
|
```json
|
|
172
172
|
{ "message": "unhandled request" }
|
|
173
173
|
```
|
|
174
|
-
unless you click **Resume Users
|
|
174
|
+
unless you click **Resume Users**, to show a **Paused Screen** when `autoPaging` is **off** you have to go to your `authtics_host.config.ts` and then add:
|
|
175
|
+
```typescript
|
|
176
|
+
"hasPausedRoute": true
|
|
177
|
+
```
|
|
178
|
+
and then create a file like `paused.tsx` and then inside `App.tsx`, import `Paused` from `@bananacool467/authtics-host` and then import your `Paused` page and then add in `RouteMap`:
|
|
179
|
+
```tsx
|
|
180
|
+
<Paused page={paused} />
|
|
181
|
+
```
|
|
182
|
+
and if your using `autoPaging` then you just create a file named `_paused.tsx`.
|
|
183
|
+
|
|
184
|
+
## App APIs
|
|
185
|
+
|
|
186
|
+
You can add APIs like `get`, `post`, `del` and `put`.
|
|
187
|
+
|
|
188
|
+
You can use the get API, for example:
|
|
189
|
+
```typescript
|
|
190
|
+
app.get('/hi', (req, res) => {
|
|
191
|
+
res.text("Hello!");
|
|
192
|
+
})
|
|
193
|
+
```
|
|
194
|
+
Then when you go to `/hi` you see:
|
|
195
|
+
```
|
|
196
|
+
Hello!
|
|
197
|
+
```
|
|
175
198
|
|
|
176
199
|
## Developer Panel Notes And DAT (Developer Access Token)
|
|
177
200
|
|
|
@@ -195,7 +218,7 @@ But if you have multiple DATs, then use:
|
|
|
195
218
|
|
|
196
219
|
There isn't any limit of DATs you can add.
|
|
197
220
|
|
|
198
|
-
**(NOTE: Adding your DAT will give you access to Restart and Shutdown and Pause/Resume Users features)**
|
|
221
|
+
**(NOTE: Adding your DAT will give you access to Restart and Shutdown and Pause/Resume Users and other features in the Developer Panel)**
|
|
199
222
|
|
|
200
223
|
## Contacting The Developer Of Authtics Host
|
|
201
224
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export default class App {
|
|
|
8
8
|
post(routePath: string, handler: (req: IncomingMessage, res: ServerResponse) => void): void;
|
|
9
9
|
put(routePath: string, handler: (req: IncomingMessage, res: ServerResponse) => void): void;
|
|
10
10
|
delete(routePath: string, handler: (req: IncomingMessage, res: ServerResponse) => void): void;
|
|
11
|
+
remove(method: string, routePath: string): void;
|
|
11
12
|
}
|