-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into use-jfrog-header-instead-o…
…f-basic-auth
- Loading branch information
Showing
157 changed files
with
21,500 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
*.tgz filter=lfs diff=lfs merge=lfs -text | ||
*.js linguist-vendored | ||
*.jsx linguist-vendored | ||
*.ts linguist-vendored | ||
*.tsx linguist-vendored |
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
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,10 @@ | ||
[package] | ||
name = "buffrs-registry" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
buffrs = { path = "../" } | ||
|
||
[build-dependencies] | ||
buffrs = { path = "../" } |
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,4 @@ | ||
[package] | ||
type = "api" | ||
name = "buffrs-registry" | ||
version = "0.0.1" |
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,5 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
fn main() { | ||
buffrs::build(buffrs::Language::Rust).expect("failed to compile protos"); | ||
} |
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 @@ | ||
DROP TABLE users; |
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,13 @@ | ||
CREATE TABLE users ( | ||
id SERIAL PRIMARY KEY, | ||
-- metadata | ||
name TEXT, | ||
email TEXT, | ||
avatar TEXT, | ||
-- static user token here | ||
token TEXT NOT NULL UNIQUE, | ||
-- timestamps | ||
created_at TIMESTAMPTZ NOT NULL, | ||
updated_at TIMESTAMPTZ NOT NULL, | ||
deleted_at TIMESTAMPTZ | ||
); |
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 @@ | ||
DROP TABLE package_owners; | ||
DROP TABLE packages; | ||
DROP TYPE package_type; |
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,22 @@ | ||
CREATE TYPE package_type AS ENUM('library', 'api'); | ||
|
||
CREATE TABLE packages ( | ||
id SERIAL PRIMARY KEY, | ||
-- metadata | ||
name TEXT NOT NULL, | ||
type package_type NOT NULL, | ||
-- timestamps | ||
created_at TIMESTAMPTZ NOT NULL, | ||
updated_at TIMESTAMPTZ NOT NULL, | ||
); | ||
|
||
CREATE TABLE package_owners ( | ||
id SERIAL PRIMARY KEY, | ||
-- references | ||
user_id INTEGER NOT NULL FOREIGN KEY ON(users) ON DELETE RESTRICT, | ||
package_id INTEGER NOT NULL FOREIGN KEY ON(packages) ON DELETE RESTRICT, | ||
created_by INTEGER FOREIGN KEY ON(users) ON DELETE RESTRICT, | ||
-- timestamps | ||
created_at TIMESTAMPTZ NOT NULL, | ||
deleted_at TIMESTAMPTZ | ||
); |
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 @@ | ||
DROP TABLE version_dependencies; | ||
DROP TABLE versions; | ||
DROP TABLE categories; |
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,37 @@ | ||
CREATE TABLE versions ( | ||
id SERIAL PRIMARY KEY, | ||
package_id INTEGER NOT NULL FOREIGN KEY on(packages) ON DELETE RESTRICT, | ||
version TEXT NOT NULL, | ||
|
||
checksum TEXT NOT NULL, -- sha3 256bit | ||
|
||
-- metadata | ||
authors TEXT[] NOT NULL, | ||
description TEXT NOT NULL, | ||
keywords TEXT[] NOT NULL, | ||
documentation TEXT, | ||
homepage TEXT, | ||
license TEXT, | ||
repository TEXT, | ||
-- timestamps | ||
created_at TIMESTAMPTZ NOT NULL, | ||
yanked_at TIMESTAMPTZ, | ||
|
||
CONSTRAINT unique_version UNIQUE (package_id, version) | ||
|
||
); | ||
|
||
|
||
CREATE TABLE version_dependencies ( | ||
id SERIAL PRIMARY KEY, | ||
version_id INTEGER NOT NULL, | ||
package_id INTEGER NOT NULL, | ||
requirement TEXT NOT NULL, | ||
); | ||
|
||
CREATE TABLE categories ( | ||
id SERIAL PRIMARY KEY, | ||
label TEXT NOT NULL UNIQUE, | ||
slug TEXT NOT NULL UNIQUE, | ||
created_at TIMESTAMPTZ NOT NULL | ||
); |
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,10 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
package buffrs.dependency; | ||
|
||
message Dependency { | ||
string name = 1; | ||
string version = 2; | ||
} |
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,17 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
import "package.proto"; | ||
import "dependency.proto"; | ||
|
||
package buffrs.manifest; | ||
|
||
message Manifest { | ||
buffrs.package.Package package = 1; | ||
repeated buffrs.dependency.Dependency dependencies = 2; | ||
} | ||
|
||
message LockFile { | ||
// tbd | ||
} |
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,21 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
package buffrs.package; | ||
|
||
enum Type { | ||
Library = 0; | ||
Api = 1; | ||
} | ||
|
||
message Package { | ||
buffrs.package.Type type = 1; | ||
string name = 2; | ||
string version = 3; | ||
} | ||
|
||
message Compressed { | ||
Package metadata = 1; | ||
bytes tgz = 2; | ||
} |
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,31 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
import "package.proto"; | ||
|
||
package buffrs.registry; | ||
|
||
service Registry { | ||
// Publish a package | ||
rpc Publish(PublishRequest) | ||
returns (PublishResponse); | ||
|
||
// Download a package | ||
rpc Download(DownloadRequest) | ||
returns (DownloadResponse); | ||
} | ||
|
||
message PublishRequest { | ||
buffrs.package.Compressed package = 1; | ||
} | ||
|
||
message PublishResponse {} | ||
|
||
message DownloadRequest { | ||
buffrs.package.Package package = 1; | ||
} | ||
|
||
message DownloadResponse { | ||
buffrs.package.Compressed package = 1; | ||
} |
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,22 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
import "package.proto"; | ||
import "dependency.proto"; | ||
|
||
package buffrs.resolver; | ||
|
||
service Resolver { | ||
// Resolve a set of dependencies to packages | ||
rpc Resolve(ResolveRequest) | ||
returns (ResolveResponse); | ||
} | ||
|
||
message ResolveRequest { | ||
repeated buffrs.dependency.Dependency dependencies = 1; | ||
} | ||
|
||
message ResolveResponse { | ||
repeated buffrs.package.Package packages = 1; | ||
} |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. |
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,8 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
pub mod config; | ||
pub mod context; | ||
pub mod db; | ||
pub mod proto; | ||
pub mod schema; | ||
pub mod storage; |
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,5 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
} |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. | ||
|
||
buffrs::include!(); |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. |
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 @@ | ||
// (c) Copyright 2023 Helsing GmbH. All rights reserved. |
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 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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,35 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
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,17 @@ | ||
const categories = ["aerospace", "finance", "computer-vision", "science"]; | ||
|
||
export async function generateStaticParams() { | ||
return categories.map((category) => ({ category })) | ||
} | ||
|
||
const Category = ({ params }: { params: { category: string } }): React.Element => { | ||
return ( | ||
<> | ||
<div className="py-8"> | ||
<h1 className="font-bold text-4xl">{params.category}</h1> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default Category; |
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,14 @@ | ||
import { Hero } from '@/components/hero/Hero' | ||
import { Categories as Cards } from '@/components/Categories' | ||
|
||
const Categories = (): React.Element => { | ||
return ( | ||
<> | ||
<Hero title="Categories" /> | ||
|
||
<Cards /> | ||
</> | ||
) | ||
} | ||
|
||
export default Categories; |
Binary file not shown.
Empty file.
Oops, something went wrong.