-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from unyt-org/[email protected]
Prepare for [email protected]
- Loading branch information
Showing
12 changed files
with
163 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ endpoint: stage { | |
}, | ||
|
||
location: stage { | ||
prod: @+unyt-host-4 | ||
prod: @+unyt-private-1 | ||
}, | ||
|
||
domain: stage { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ const ed = await import("https://unpkg.com/@noble/[email protected]/index.js"); | |
const base32 = await import("https://cdn.jsdelivr.net/npm/[email protected]/+esm"); | ||
await import("https://cdn.jsdelivr.net/npm/[email protected]/src/sha3.min.js"); | ||
|
||
|
||
export type AddressData = { | ||
address: string; | ||
public: { | ||
|
@@ -81,7 +80,7 @@ async function generateOnionV3(keys: KeyPair | Promise<KeyPair> = generateKeys() | |
hash.update(version); | ||
|
||
const checksum = hash.digest().slice(0, 2); | ||
|
||
const decoded = new Uint8Array([...publicKey, ...checksum, ...version]); | ||
const address = base32.encode(Array.from(decoded)).toLowerCase().concat(".onion"); | ||
const _publicKey = getPublicKey(address); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
|
||
:host { | ||
display: flex; | ||
flex-direction: column; | ||
font-size: x-large; | ||
padding: 10px; | ||
width: 70%; | ||
margin: auto; | ||
align-items: center; | ||
margin-top: 40px; | ||
text-align: center; | ||
&>div { | ||
margin-top: 30px; | ||
width: 100%; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
&>h2 { | ||
width: 100%; | ||
} | ||
grid-gap: 20px; | ||
gap: 20px; | ||
display: flex; | ||
border-bottom: 1px solid gray; | ||
padding-bottom: 30px; | ||
&>input { | ||
flex: 1; | ||
padding: 20px; | ||
border-radius: var(--standard-border-radius); | ||
max-width: 300px; | ||
background-color: transparent; | ||
color: var(--text_highlight); | ||
padding-left: 20px; | ||
font-size: x-large; | ||
border: 2px solid var(--accent); | ||
} | ||
|
||
&.hidden { | ||
&>.button { | ||
opacity: 0.4; | ||
background-color: transparent; | ||
border-color: var(--red); | ||
color: var(--text_highlight); | ||
} | ||
} | ||
&>div { | ||
transition: opacity 0.2s; | ||
background-color: var(--text_highlight); | ||
border: 3px solid var(--text_highlight); | ||
border-radius: var(--standard-border-radius); | ||
padding: 10px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
box-sizing: border-box; | ||
color: var(--accent); | ||
&:hover { | ||
color: var(--text_highlight); | ||
background-color: transparent; | ||
} | ||
} | ||
&>.results { | ||
text-align: left; | ||
word-break: break-word; | ||
width: 100%; | ||
gap: 6px; | ||
font-family: monospace; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
&>#tor { | ||
span { | ||
max-width: 1000px; | ||
margin: auto; | ||
width: 100%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
b { | ||
width: 50%; | ||
} | ||
a { | ||
margin: auto; | ||
margin-bottom: 10px; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
slot#main { | ||
overflow-y: scroll; | ||
} | ||
.button { | ||
div.button { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import { MainPage } from "../common/components/MainPage.tsx"; | ||
export default <MainPage/> | ||
import { type Entrypoint } from "uix/providers/entrypoints.ts"; | ||
import { MainPage } from "common/components/MainPage.tsx"; | ||
export default <MainPage/> satisfies Entrypoint; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.