aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--README.md143
-rw-r--r--envshare/.eslintrc.json (renamed from .eslintrc.json)0
-rw-r--r--envshare/.gitignore (renamed from .gitignore)0
-rw-r--r--envshare/LICENSE (renamed from LICENSE)0
-rw-r--r--envshare/README.md139
-rw-r--r--envshare/app/[compositeKey]/page.tsx (renamed from app/[compositeKey]/page.tsx)0
-rw-r--r--envshare/app/components/analytics.tsx (renamed from app/components/analytics.tsx)0
-rw-r--r--envshare/app/components/error.tsx (renamed from app/components/error.tsx)0
-rw-r--r--envshare/app/components/stats.tsx (renamed from app/components/stats.tsx)0
-rw-r--r--envshare/app/components/testimony.tsx (renamed from app/components/testimony.tsx)0
-rw-r--r--envshare/app/components/title.tsx (renamed from app/components/title.tsx)0
-rw-r--r--envshare/app/deploy/page.tsx (renamed from app/deploy/page.tsx)0
-rw-r--r--envshare/app/globals.css (renamed from app/globals.css)0
-rw-r--r--envshare/app/head.tsx (renamed from app/head.tsx)0
-rw-r--r--envshare/app/header.tsx (renamed from app/header.tsx)0
-rw-r--r--envshare/app/layout.tsx (renamed from app/layout.tsx)0
-rw-r--r--envshare/app/page.tsx (renamed from app/page.tsx)0
-rw-r--r--envshare/app/share/page.tsx (renamed from app/share/page.tsx)0
-rw-r--r--envshare/app/unseal/page.tsx (renamed from app/unseal/page.tsx)0
-rw-r--r--envshare/img/envshare.png (renamed from img/envshare.png)bin275552 -> 275552 bytes
-rw-r--r--envshare/jest.config.js (renamed from jest.config.js)0
-rw-r--r--envshare/next.config.js (renamed from next.config.js)0
-rw-r--r--envshare/package.json (renamed from package.json)0
-rw-r--r--envshare/pages/api/v1/load.ts (renamed from pages/api/v1/load.ts)0
-rw-r--r--envshare/pages/api/v1/og.tsx (renamed from pages/api/v1/og.tsx)0
-rw-r--r--envshare/pages/api/v1/secret/[id].ts (renamed from pages/api/v1/secret/[id].ts)0
-rw-r--r--envshare/pages/api/v1/secret/index.ts (renamed from pages/api/v1/secret/index.ts)0
-rw-r--r--envshare/pages/api/v1/store.ts (renamed from pages/api/v1/store.ts)0
-rw-r--r--envshare/pkg/constants.ts (renamed from pkg/constants.ts)0
-rw-r--r--envshare/pkg/encoding.test.ts (renamed from pkg/encoding.test.ts)0
-rw-r--r--envshare/pkg/encoding.ts (renamed from pkg/encoding.ts)0
-rw-r--r--envshare/pkg/encryption.test.ts (renamed from pkg/encryption.test.ts)0
-rw-r--r--envshare/pkg/encryption.ts (renamed from pkg/encryption.ts)0
-rw-r--r--envshare/pkg/id.ts (renamed from pkg/id.ts)0
-rw-r--r--envshare/pnpm-lock.yaml (renamed from pnpm-lock.yaml)0
-rw-r--r--envshare/postcss.config.js (renamed from postcss.config.js)0
-rw-r--r--envshare/public/fonts/Inter-SemiBold.ttf (renamed from public/fonts/Inter-SemiBold.ttf)bin315756 -> 315756 bytes
-rw-r--r--envshare/rome.json (renamed from rome.json)0
-rw-r--r--envshare/tailwind.config.js (renamed from tailwind.config.js)0
-rw-r--r--envshare/tsconfig.json (renamed from tsconfig.json)0
-rw-r--r--envshare/util/base58.ts (renamed from util/base58.ts)0
41 files changed, 143 insertions, 139 deletions
diff --git a/README.md b/README.md
index f890f9d..29859b8 100644
--- a/README.md
+++ b/README.md
@@ -1,139 +1,4 @@
-<div align="center">
- <h1 align="center">EnvShare</h1>
- <h5>Share Environment Variables Securely</h5>
-</div>
-
-<div align="center">
- <a href="https://envshare.dev">envshare.dev</a>
-</div>
-<br/>
-
-EnvShare is a simple tool to share environment variables securely. It uses
-**AES-GCM** to encrypt your data before sending it to the server. The encryption
-key never leaves your browser.
-
-## Features
-
-- **Shareable Links:** Share your environment variables securely by sending a
- link
-- **End-to-End Encryption:** AES-GCM encryption is used to encrypt your data
- before sending it to the server
-- **Limit number of reads:** Limit the number of times a link can be read
-- **Auto Expire:** Automatically expire links and delete data after a certain
- time
-
-<br/>
-
-![](img/envshare.png)
-
-## Built with
-
-- [Next.js](https://nextjs.org)
-- [tailwindcss](https://tailwindcss.com)
-- Deployed on [Vercel](https://vercel.com?utm_source=envshare)
-- Data stored on [Upstash](https://upstash.com?utm_source=envshare)
-
-## Deploy your own
-
-Detailed instructions can be found [here](https://envshare.dev/deploy)
-
-All you need is a Redis database on Upstash and a Vercel account. Click the
-button below to clone and deploy:
-
-[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=EnvShare&demo-description=Simple%20Next.js%20%2B%20Upstash%20app%20to%20share%20environment%20variables%20securely%20using%20AES-GCM%20encryption.&demo-url=https%3A%2F%2Fenvshare.dev%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F5SaFBHXp5FBFJbsTzVqIJ3%2Ff0f8382369b7642fd8103debb9025c11%2Fenvshare.png&project-name=EnvShare&repository-name=envshare&repository-url=https%3A%2F%2Fgithub.com%2Fchronark%2Fenvshare&from=templates&integration-ids=oac_V3R1GIpkoJorr6fqyiwdhl17)
-
-
-## Sponsors
-
-<table>
-<tr>
-<td>
- <img width="1000" height="0">
- <a href="https://upstash.com/?utm_source=envshare" >
- <img src="https://raw.githubusercontent.com/upstash/sponsorship/master/redis.png" alt="Upstash" width="260" align="right">
- </a>
-<h3>Upstash: Serverless Database for Redis</h3>
-
-<ul>
- <li>Serverless Redis with global replication and durable storage</li>
- <li>Price scales to zero with per request pricing</li>
- <li>Built-in REST API designed for serverless and edge functions</li>
- </ul>
-
-[Start for free in 30 seconds!](https://upstash.com/?utm_source=envshare)
-
-</td>
-</tr>
-</table>
-
-## Configuration
-
-### Environment Variables
-
-`ENABLE_VERCEL_ANALYTICS` Any truthy value will enable Vercel Analytics. This is turned off by default
-
-## Contributing
-
-This repository uses `pnpm` to manage dependencies. Install it using
-`npm install -g pnpm`
-
-Please run `pnpm fmt` before committing to format the code.
-
-## Docs
-
-Docs in the README are temporary and will be moved to the website soon.
-
-### API
-
-#### Store a secret
-
-**PLEASE NEVER EVER UPLOAD UNENCRYPTED SECRETS.**
-
-This endpoint is only meant to store **already encrypted** secrets. The
-encrypted secrets are stored in plain text.
-
-```sh-session
-$ curl -XPOST -s https://envshare.dev/api/v1/secret -d "already-encrypted-secret"
-```
-
-You can add optional headers to configure the ttl and number of reads.
-
-```sh-session
-$ curl -XPOST -s https://envshare.dev/api/v1/secret -d "already-encrypted-secret" -H "envshare-ttl: 3600" -H "envshare-reads: 10"
-```
-
-- Omitting the `envshare-ttl` header will set a default of 30 days. Disable the
- ttl by setting it to 0. (`envshare-ttl: 0`)
-- Omitting the `envshare-reads` header will simply disable it and allow reading
- for an unlimited number of times.
-
-This endpoint returns a JSON response with the secret id:
-
-```json
-{
- "data": {
- "id": "HdPbXgpvUvNk43oxSdK97u",
- "ttl": 86400,
- "reads": 2,
- "expiresAt": "2023-01-19T20:47:28.383Z",
- "url": "http://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u"
- }
-}
-```
-
-#### Retrieve a secret
-
-You need an id to retrieve a secret. The id is returned when you store a secret.
-
-```sh-session
-$ curl -s https://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u
-```
-
-```json
-{
- "data": {
- "secret": "Hello",
- "remainingReads": 1
- }
-}
-```
+# ChienDice(简系)
+
+ **简系**
+ 一个新的骰系。
diff --git a/.eslintrc.json b/envshare/.eslintrc.json
index bffb357..bffb357 100644
--- a/.eslintrc.json
+++ b/envshare/.eslintrc.json
diff --git a/.gitignore b/envshare/.gitignore
index a333bff..a333bff 100644
--- a/.gitignore
+++ b/envshare/.gitignore
diff --git a/LICENSE b/envshare/LICENSE
index e4712ee..e4712ee 100644
--- a/LICENSE
+++ b/envshare/LICENSE
diff --git a/envshare/README.md b/envshare/README.md
new file mode 100644
index 0000000..f890f9d
--- /dev/null
+++ b/envshare/README.md
@@ -0,0 +1,139 @@
+<div align="center">
+ <h1 align="center">EnvShare</h1>
+ <h5>Share Environment Variables Securely</h5>
+</div>
+
+<div align="center">
+ <a href="https://envshare.dev">envshare.dev</a>
+</div>
+<br/>
+
+EnvShare is a simple tool to share environment variables securely. It uses
+**AES-GCM** to encrypt your data before sending it to the server. The encryption
+key never leaves your browser.
+
+## Features
+
+- **Shareable Links:** Share your environment variables securely by sending a
+ link
+- **End-to-End Encryption:** AES-GCM encryption is used to encrypt your data
+ before sending it to the server
+- **Limit number of reads:** Limit the number of times a link can be read
+- **Auto Expire:** Automatically expire links and delete data after a certain
+ time
+
+<br/>
+
+![](img/envshare.png)
+
+## Built with
+
+- [Next.js](https://nextjs.org)
+- [tailwindcss](https://tailwindcss.com)
+- Deployed on [Vercel](https://vercel.com?utm_source=envshare)
+- Data stored on [Upstash](https://upstash.com?utm_source=envshare)
+
+## Deploy your own
+
+Detailed instructions can be found [here](https://envshare.dev/deploy)
+
+All you need is a Redis database on Upstash and a Vercel account. Click the
+button below to clone and deploy:
+
+[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=EnvShare&demo-description=Simple%20Next.js%20%2B%20Upstash%20app%20to%20share%20environment%20variables%20securely%20using%20AES-GCM%20encryption.&demo-url=https%3A%2F%2Fenvshare.dev%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F5SaFBHXp5FBFJbsTzVqIJ3%2Ff0f8382369b7642fd8103debb9025c11%2Fenvshare.png&project-name=EnvShare&repository-name=envshare&repository-url=https%3A%2F%2Fgithub.com%2Fchronark%2Fenvshare&from=templates&integration-ids=oac_V3R1GIpkoJorr6fqyiwdhl17)
+
+
+## Sponsors
+
+<table>
+<tr>
+<td>
+ <img width="1000" height="0">
+ <a href="https://upstash.com/?utm_source=envshare" >
+ <img src="https://raw.githubusercontent.com/upstash/sponsorship/master/redis.png" alt="Upstash" width="260" align="right">
+ </a>
+<h3>Upstash: Serverless Database for Redis</h3>
+
+<ul>
+ <li>Serverless Redis with global replication and durable storage</li>
+ <li>Price scales to zero with per request pricing</li>
+ <li>Built-in REST API designed for serverless and edge functions</li>
+ </ul>
+
+[Start for free in 30 seconds!](https://upstash.com/?utm_source=envshare)
+
+</td>
+</tr>
+</table>
+
+## Configuration
+
+### Environment Variables
+
+`ENABLE_VERCEL_ANALYTICS` Any truthy value will enable Vercel Analytics. This is turned off by default
+
+## Contributing
+
+This repository uses `pnpm` to manage dependencies. Install it using
+`npm install -g pnpm`
+
+Please run `pnpm fmt` before committing to format the code.
+
+## Docs
+
+Docs in the README are temporary and will be moved to the website soon.
+
+### API
+
+#### Store a secret
+
+**PLEASE NEVER EVER UPLOAD UNENCRYPTED SECRETS.**
+
+This endpoint is only meant to store **already encrypted** secrets. The
+encrypted secrets are stored in plain text.
+
+```sh-session
+$ curl -XPOST -s https://envshare.dev/api/v1/secret -d "already-encrypted-secret"
+```
+
+You can add optional headers to configure the ttl and number of reads.
+
+```sh-session
+$ curl -XPOST -s https://envshare.dev/api/v1/secret -d "already-encrypted-secret" -H "envshare-ttl: 3600" -H "envshare-reads: 10"
+```
+
+- Omitting the `envshare-ttl` header will set a default of 30 days. Disable the
+ ttl by setting it to 0. (`envshare-ttl: 0`)
+- Omitting the `envshare-reads` header will simply disable it and allow reading
+ for an unlimited number of times.
+
+This endpoint returns a JSON response with the secret id:
+
+```json
+{
+ "data": {
+ "id": "HdPbXgpvUvNk43oxSdK97u",
+ "ttl": 86400,
+ "reads": 2,
+ "expiresAt": "2023-01-19T20:47:28.383Z",
+ "url": "http://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u"
+ }
+}
+```
+
+#### Retrieve a secret
+
+You need an id to retrieve a secret. The id is returned when you store a secret.
+
+```sh-session
+$ curl -s https://envshare.dev/api/v1/secret/HdPbXgpvUvNk43oxSdK97u
+```
+
+```json
+{
+ "data": {
+ "secret": "Hello",
+ "remainingReads": 1
+ }
+}
+```
diff --git a/app/[compositeKey]/page.tsx b/envshare/app/[compositeKey]/page.tsx
index d91f182..d91f182 100644
--- a/app/[compositeKey]/page.tsx
+++ b/envshare/app/[compositeKey]/page.tsx
diff --git a/app/components/analytics.tsx b/envshare/app/components/analytics.tsx
index ef6a2ae..ef6a2ae 100644
--- a/app/components/analytics.tsx
+++ b/envshare/app/components/analytics.tsx
diff --git a/app/components/error.tsx b/envshare/app/components/error.tsx
index acf36d7..acf36d7 100644
--- a/app/components/error.tsx
+++ b/envshare/app/components/error.tsx
diff --git a/app/components/stats.tsx b/envshare/app/components/stats.tsx
index 31d74bc..31d74bc 100644
--- a/app/components/stats.tsx
+++ b/envshare/app/components/stats.tsx
diff --git a/app/components/testimony.tsx b/envshare/app/components/testimony.tsx
index 757a953..757a953 100644
--- a/app/components/testimony.tsx
+++ b/envshare/app/components/testimony.tsx
diff --git a/app/components/title.tsx b/envshare/app/components/title.tsx
index b9b7f3c..b9b7f3c 100644
--- a/app/components/title.tsx
+++ b/envshare/app/components/title.tsx
diff --git a/app/deploy/page.tsx b/envshare/app/deploy/page.tsx
index b515144..b515144 100644
--- a/app/deploy/page.tsx
+++ b/envshare/app/deploy/page.tsx
diff --git a/app/globals.css b/envshare/app/globals.css
index b764a11..b764a11 100644
--- a/app/globals.css
+++ b/envshare/app/globals.css
diff --git a/app/head.tsx b/envshare/app/head.tsx
index aecaa44..aecaa44 100644
--- a/app/head.tsx
+++ b/envshare/app/head.tsx
diff --git a/app/header.tsx b/envshare/app/header.tsx
index 872459a..872459a 100644
--- a/app/header.tsx
+++ b/envshare/app/header.tsx
diff --git a/app/layout.tsx b/envshare/app/layout.tsx
index 557407d..557407d 100644
--- a/app/layout.tsx
+++ b/envshare/app/layout.tsx
diff --git a/app/page.tsx b/envshare/app/page.tsx
index ba659ca..ba659ca 100644
--- a/app/page.tsx
+++ b/envshare/app/page.tsx
diff --git a/app/share/page.tsx b/envshare/app/share/page.tsx
index b6089f0..b6089f0 100644
--- a/app/share/page.tsx
+++ b/envshare/app/share/page.tsx
diff --git a/app/unseal/page.tsx b/envshare/app/unseal/page.tsx
index 0b63e6b..0b63e6b 100644
--- a/app/unseal/page.tsx
+++ b/envshare/app/unseal/page.tsx
diff --git a/img/envshare.png b/envshare/img/envshare.png
index 0e3dbf2..0e3dbf2 100644
--- a/img/envshare.png
+++ b/envshare/img/envshare.png
Binary files differ
diff --git a/jest.config.js b/envshare/jest.config.js
index 9c8fae4..9c8fae4 100644
--- a/jest.config.js
+++ b/envshare/jest.config.js
diff --git a/next.config.js b/envshare/next.config.js
index 73bfb7b..73bfb7b 100644
--- a/next.config.js
+++ b/envshare/next.config.js
diff --git a/package.json b/envshare/package.json
index d532535..d532535 100644
--- a/package.json
+++ b/envshare/package.json
diff --git a/pages/api/v1/load.ts b/envshare/pages/api/v1/load.ts
index ddbfac0..ddbfac0 100644
--- a/pages/api/v1/load.ts
+++ b/envshare/pages/api/v1/load.ts
diff --git a/pages/api/v1/og.tsx b/envshare/pages/api/v1/og.tsx
index dad6531..dad6531 100644
--- a/pages/api/v1/og.tsx
+++ b/envshare/pages/api/v1/og.tsx
diff --git a/pages/api/v1/secret/[id].ts b/envshare/pages/api/v1/secret/[id].ts
index 8b5f082..8b5f082 100644
--- a/pages/api/v1/secret/[id].ts
+++ b/envshare/pages/api/v1/secret/[id].ts
diff --git a/pages/api/v1/secret/index.ts b/envshare/pages/api/v1/secret/index.ts
index 423e7a0..423e7a0 100644
--- a/pages/api/v1/secret/index.ts
+++ b/envshare/pages/api/v1/secret/index.ts
diff --git a/pages/api/v1/store.ts b/envshare/pages/api/v1/store.ts
index c35e9b4..c35e9b4 100644
--- a/pages/api/v1/store.ts
+++ b/envshare/pages/api/v1/store.ts
diff --git a/pkg/constants.ts b/envshare/pkg/constants.ts
index 09cc451..09cc451 100644
--- a/pkg/constants.ts
+++ b/envshare/pkg/constants.ts
diff --git a/pkg/encoding.test.ts b/envshare/pkg/encoding.test.ts
index be0a7f8..be0a7f8 100644
--- a/pkg/encoding.test.ts
+++ b/envshare/pkg/encoding.test.ts
diff --git a/pkg/encoding.ts b/envshare/pkg/encoding.ts
index 2025133..2025133 100644
--- a/pkg/encoding.ts
+++ b/envshare/pkg/encoding.ts
diff --git a/pkg/encryption.test.ts b/envshare/pkg/encryption.test.ts
index 5d4cf15..5d4cf15 100644
--- a/pkg/encryption.test.ts
+++ b/envshare/pkg/encryption.test.ts
diff --git a/pkg/encryption.ts b/envshare/pkg/encryption.ts
index c9f0e9d..c9f0e9d 100644
--- a/pkg/encryption.ts
+++ b/envshare/pkg/encryption.ts
diff --git a/pkg/id.ts b/envshare/pkg/id.ts
index efdfb5e..efdfb5e 100644
--- a/pkg/id.ts
+++ b/envshare/pkg/id.ts
diff --git a/pnpm-lock.yaml b/envshare/pnpm-lock.yaml
index 5f8eccc..5f8eccc 100644
--- a/pnpm-lock.yaml
+++ b/envshare/pnpm-lock.yaml
diff --git a/postcss.config.js b/envshare/postcss.config.js
index 12a703d..12a703d 100644
--- a/postcss.config.js
+++ b/envshare/postcss.config.js
diff --git a/public/fonts/Inter-SemiBold.ttf b/envshare/public/fonts/Inter-SemiBold.ttf
index c6aeeb1..c6aeeb1 100644
--- a/public/fonts/Inter-SemiBold.ttf
+++ b/envshare/public/fonts/Inter-SemiBold.ttf
Binary files differ
diff --git a/rome.json b/envshare/rome.json
index 6bc4929..6bc4929 100644
--- a/rome.json
+++ b/envshare/rome.json
diff --git a/tailwind.config.js b/envshare/tailwind.config.js
index 5ddfa06..5ddfa06 100644
--- a/tailwind.config.js
+++ b/envshare/tailwind.config.js
diff --git a/tsconfig.json b/envshare/tsconfig.json
index fb1a26c..fb1a26c 100644
--- a/tsconfig.json
+++ b/envshare/tsconfig.json
diff --git a/util/base58.ts b/envshare/util/base58.ts
index 7eeee95..7eeee95 100644
--- a/util/base58.ts
+++ b/envshare/util/base58.ts