prividium 0.7.0 → 0.8.0
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.
|
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { log } from '@clack/prompts';
|
|
6
6
|
import color from 'kleur';
|
|
7
|
-
//
|
|
7
|
+
// biome-ignore lint/suspicious/noExplicitAny: CJS/ESM interop
|
|
8
8
|
const appDirsFn = appDirs.default;
|
|
9
9
|
const dirs = appDirsFn({ appName: 'prividium-proxy' });
|
|
10
10
|
const urlConfigSchema = z.object({
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
|
|
3
4
|
<head>
|
|
4
5
|
<meta charset="UTF-8">
|
|
5
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
7
|
<title>Prividium</title>
|
|
7
8
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
8
9
|
</head>
|
|
10
|
+
|
|
9
11
|
<body class="bg-gray-900 text-white flex items-center justify-center h-screen">
|
|
10
|
-
<div class="text-center">
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<div class="text-center">
|
|
13
|
+
<h1 id="main-title" class="text-2xl font-bold">Redirecting...</h1>
|
|
14
|
+
<div class="mt-4">
|
|
15
|
+
<svg class="animate-spin h-8 w-8 text-white mx-auto" xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
fill="none" viewBox="0 0 24 24">
|
|
17
|
+
<title>Loader</title>
|
|
18
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
19
|
+
<path class="opacity-75" fill="currentColor"
|
|
20
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
|
|
21
|
+
</path>
|
|
22
|
+
</svg>
|
|
23
|
+
</div>
|
|
17
24
|
</div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
).then(url => {
|
|
29
|
-
window.location.assign(url);
|
|
30
|
-
});
|
|
31
|
-
</script>
|
|
25
|
+
<script>
|
|
26
|
+
fetch('/redirect-uri').then(
|
|
27
|
+
(r) => {
|
|
28
|
+
return r.text();
|
|
29
|
+
},
|
|
30
|
+
console.error
|
|
31
|
+
).then(url => {
|
|
32
|
+
window.location.assign(url);
|
|
33
|
+
});
|
|
34
|
+
</script>
|
|
32
35
|
</body>
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
</html>
|
package/dist/sdk/popup-auth.js
CHANGED