@bananacool467/authtics-host 0.0.2-beta.3 → 0.0.2-beta.4

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 CHANGED
@@ -1,13 +1,15 @@
1
1
  # Authtics Host
2
2
 
3
- Version 0.0.2-beta.3
3
+ Version 0.0.2-beta.4
4
4
  License: MIT
5
5
 
6
6
  **(NOTE: This version is in BETA, bugs are expected)**
7
7
 
8
8
  Authtics Host is a framework inspired by Next.js. Authtics Host supports SSR (Server-Side Rendering) and uses esbuild.
9
9
 
10
- ## Setting up
10
+ **(NOTE: The short name for Authtics Host is HostJS)**
11
+
12
+ ## Setting Up
11
13
 
12
14
  To get **Authtics Host** use:
13
15
  ```bash
package/dist/devPanel.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import React, { useState, useEffect, useRef } from 'react';
3
- import { ShieldCheck, CircleX, ChevronDown, ChevronUp, Bug, AlertTriangle, Info, ArrowLeft, Wifi, Terminal, Route, Globe, ChevronRight, ChevronLeft, Server, TriangleAlert } from 'lucide-react';
3
+ import { ShieldCheck, CircleX, ChevronDown, ChevronUp, Bug, AlertTriangle, Info, ArrowLeft, Wifi, Terminal, Route, Globe, ChevronRight, ChevronLeft, Server, TriangleAlert, Eye } from 'lucide-react';
4
4
  import Prism from 'prismjs';
5
5
  import 'prismjs/components/prism-javascript';
6
6
  Prism.languages.javascript['builtin'] = /\b(window|document|console|navigator|localStorage|sessionStorage|fetch|Promise|setTimeout|setInterval|clearTimeout|clearInterval|requestAnimationFrame|Math|JSON|Object|Array|String|Number|Boolean|Date|RegExp|Error|Map|Set|Symbol|Proxy|Reflect|performance|history|location|screen|crypto|indexedDB|alert|confirm|prompt)\b/;
@@ -191,6 +191,7 @@ export default function DevPanel() {
191
191
  const [users, setUsers] = useState(0);
192
192
  const [token, setToken] = useState(null);
193
193
  const [tokenLength, setTokenLength] = useState(0);
194
+ const [tokenHidden, setTokenHidden] = useState(true);
194
195
  const [consoleInputFocused, setConsoleInputFocused] = useState(false);
195
196
  const consoleInputRef = useRef(null);
196
197
  const overlayRef = useRef(null);
@@ -932,7 +933,6 @@ export default function DevPanel() {
932
933
  maxHeight: '260px',
933
934
  flexDirection: 'column',
934
935
  }, children: [_jsxs("div", { style: {
935
- display: 'flex',
936
936
  justifyContent: 'space-between',
937
937
  padding: '6px 10px',
938
938
  background: '#fff',
@@ -940,7 +940,24 @@ export default function DevPanel() {
940
940
  border: '1px solid #eee',
941
941
  fontSize: '12px',
942
942
  color: '#333',
943
- }, children: [_jsx("span", { style: { fontSize: '12px', color: '#333' }, children: "DAT (Developer Access Token)" }), _jsx("span", { style: { fontSize: '12px', color: 'blue' }, children: token })] }), tokenLength !== 16 ? (_jsx(_Fragment, { children: _jsxs("div", { style: {
943
+ display: 'flex'
944
+ }, children: [_jsx("span", { style: { fontSize: '12px', color: '#333', position: 'relative' }, children: "DAT (Developer Access Token)" }), _jsxs("div", { style: { position: 'relative',
945
+ display: 'inline-flex' }, children: [_jsx("span", { style: { fontSize: '12px', color: 'blue' }, children: token }), tokenHidden && (_jsxs("div", { style: {
946
+ position: 'absolute',
947
+ top: 0, left: 0,
948
+ marginTop: '-2.5px',
949
+ width: '100%', height: '100%',
950
+ backdropFilter: 'blur(10px)',
951
+ backgroundColor: 'rgba(255,255,255,0.3)',
952
+ cursor: 'pointer',
953
+ padding: '2.5px 2.5px',
954
+ borderRadius: '8px',
955
+ textAlign: 'center',
956
+ display: 'flex',
957
+ justifyContent: 'center',
958
+ alignItems: 'center',
959
+ gap: '4px'
960
+ }, onClick: () => setTokenHidden(false), children: [_jsx(Eye, { size: 12 }), "Click to reveal"] }))] })] }), tokenLength !== 16 ? (_jsx(_Fragment, { children: _jsxs("div", { style: {
944
961
  display: 'flex',
945
962
  background: '#ba4e4e',
946
963
  borderRadius: '10px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananacool467/authtics-host",
3
- "version": "0.0.2-beta.3",
3
+ "version": "0.0.2-beta.4",
4
4
  "description": "A Next.js-inspired SSR framework for Node.js with TypeScript and JSX support.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,7 +35,8 @@
35
35
  "lightweight",
36
36
  "hot-reload",
37
37
  "dev",
38
- "developer"
38
+ "developer",
39
+ "HostJS"
39
40
  ],
40
41
  "author": "bananacool467",
41
42
  "license": "MIT",