Skip to content

Commit c9167cd

Browse files
committed
Initial commit
0 parents  commit c9167cd

27 files changed

Lines changed: 8500 additions & 0 deletions

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
cache: 'npm'
18+
19+
- name: Cache PureScript dependencies
20+
uses: actions/cache@v4
21+
with:
22+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
23+
path: |
24+
.spago
25+
output
26+
27+
- name: Install npm dependencies
28+
run: npm install
29+
30+
- name: Verify formatting
31+
run: npm run format:check
32+
33+
- name: Build source
34+
run: npm run build

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
bower_components/
3+
node_modules/
4+
output/
5+
output-es/
6+
generated-docs/
7+
dist/
8+
.pulp-cache/
9+
.psc-package/
10+
.psc*
11+
.purs*
12+
.psa*
13+
.spago
14+
.vscode

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2025 Nathan Faubion
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# registry-package-viewer
2+
3+
Client-side application for fetching and viewing the contents of packages uploaded to
4+
the PureScript Registry.
5+
6+
```sh
7+
npm install
8+
npm run build
9+
```

index.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>PureScript Registry</title>
8+
<link rel="stylesheet" href="./src/Registry/PackageViewer/App/styles.css">
9+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500|Roboto:400,500,700">
10+
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
11+
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
12+
<link rel="icon" type="image/png" href="/favicon-48x48.png" sizes="48x48">
13+
<script src="./index.js" type="module"></script>
14+
</head>
15+
16+
<body>
17+
<svg style="display: none">
18+
<defs>
19+
<!--
20+
Feather Icons
21+
22+
The MIT License (MIT)
23+
24+
Copyright (c) 2013-2023 Cole Bemis
25+
26+
Permission is hereby granted, free of charge, to any person obtaining a copy
27+
of this software and associated documentation files (the "Software"), to deal
28+
in the Software without restriction, including without limitation the rights
29+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30+
copies of the Software, and to permit persons to whom the Software is
31+
furnished to do so, subject to the following conditions:
32+
33+
The above copyright notice and this permission notice shall be included in all
34+
copies or substantial portions of the Software.
35+
36+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42+
SOFTWARE.
43+
-->
44+
<symbol id="feather-icon-file" viewBox="0 0 24 24">
45+
<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path>
46+
<polyline points="13 2 13 9 20 9"></polyline>
47+
</symbol>
48+
<symbol id="feather-icon-chevron-right" viewBox="0 0 24 24">
49+
<polyline points="9 18 15 12 9 6"></polyline>
50+
</symbol>
51+
52+
<!--
53+
The PureScript logo is licensed under the Creative Commons Attribution 4.0 license.
54+
Logo creator: Gareth Hughes, 2014
55+
-->
56+
<symbol id="purescript-logo" fill="currentColor" stroke="none" viewBox="0 0 700 700">
57+
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)">
58+
<path d="M5086 5149 l-150 -150 482 -482 482 -482 -482 -483 -482 -483 150 -150 150 -150
59+
569 568 c431 431 573 579 588 612 24 55 24 118 -2 174 -14 30 -176 199 -587 609 l-569
60+
567 -149 -150z" />
61+
<path d="M2360 4698 c47 -44 114 -108 150 -142 36 -34 100 -93 141 -132 l75 -70 994 1 c547
62+
1 996 3 997 3 1 1 -26 28 -60 60 -223 209 -348 325 -368 343 -21 18 -61 19 -1018 19
63+
l-996 0 85 -82z" />
64+
<path d="M1183 3658 c-601 -604 -591 -592 -597 -688 -6 -83 5 -95 602 -693 312 -312 570
65+
-566 575 -564 4 1 73 67 152 147 l145 145 -482 482 -481 481 482 483 482 482 -148 149
66+
c-81 81 -150 148 -153 148 -3 0 -262 -258 -577 -572z" />
67+
<path d="M2730 3712 c-6 -2 -23 -16 -38 -30 -15 -15 -90 -85 -167 -157 -76 -71 -164 -154
68+
-194 -182 l-56 -53 1000 0 1000 0 60 58 c77 73 306 287 352 330 29 26 32 32 17 33 -52
69+
3 -1965 4 -1974 1z" />
70+
<path d="M2361 2567 c47 -45 141 -134 209 -197 67 -63 130 -122 138 -130 14 -13 140 -15
71+
1014 -15 549 -1 998 0 998 1 0 3 -13 16 -150 144 -68 63 -133 124 -144 135 -12 11 -52 48
72+
-89 83 l-68 62 -997 0 -997 0 86 -83z" />
73+
</g>
74+
</symbol>
75+
</defs>
76+
</svg>
77+
78+
</body>
79+
80+
</html>

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const module =
2+
import.meta.env.DEV
3+
? import('./output/Main/index.js')
4+
: import('./output-es/Main/index.js')
5+
6+
module.then(({ main }) => main());

0 commit comments

Comments
 (0)