Skip to content

Commit fe6acd6

Browse files
committed
feat(dashboard): skeleton view
1 parent a499a22 commit fe6acd6

File tree

69 files changed

+3008
-329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3008
-329
lines changed

config/parser.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ var validate *validator.Validate
2424
type ViewType string
2525

2626
const (
27-
PRsView ViewType = "prs"
28-
IssuesView ViewType = "issues"
27+
DashboardsView ViewType = "dashboards"
28+
PRsView ViewType = "prs"
29+
IssuesView ViewType = "issues"
2930
)
3031

3132
type SectionConfig struct {
@@ -34,6 +35,11 @@ type SectionConfig struct {
3435
Limit *int `yaml:"limit,omitempty"`
3536
}
3637

38+
type DashboardsConfig struct {
39+
Title string
40+
Sections []SectionConfig `yaml:"sections"`
41+
}
42+
3743
type PrsSectionConfig struct {
3844
Title string
3945
Filters string
@@ -146,6 +152,7 @@ type ThemeConfig struct {
146152
}
147153

148154
type Config struct {
155+
Dashboards []DashboardsConfig `yaml:"dashboards"`
149156
PRSections []PrsSectionConfig `yaml:"prSections"`
150157
IssuesSections []IssuesSectionConfig `yaml:"issuesSections"`
151158
Defaults Defaults `yaml:"defaults"`
@@ -172,7 +179,7 @@ func (parser ConfigParser) getDefaultConfig() Config {
172179
},
173180
PrsLimit: 20,
174181
IssuesLimit: 20,
175-
View: PRsView,
182+
View: DashboardsView,
176183
RefetchIntervalMinutes: 30,
177184
Layout: LayoutConfig{
178185
Prs: PrsLayoutConfig{
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This folder stores temp files that Docusaurus' client bundler accesses.
2+
3+
DO NOT hand-modify files in this folder because they will be overwritten in the
4+
next build. You can clear all build artifacts (including this folder) with the
5+
`docusaurus clear` command.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default [
2+
require('/Users/dolevh/code/personal/gh-dash/docs/website/node_modules/.pnpm/infima@0.2.0-alpha.43/node_modules/infima/dist/css/default/default.css'),
3+
require('/Users/dolevh/code/personal/gh-dash/docs/website/node_modules/.pnpm/@docusaurus+theme-classic@2.4.0_@types+node@18.16.2_react-dom@17.0.2_react@17.0.2_ts-node@10.9.1_typescript@4.9.5/node_modules/@docusaurus/theme-classic/lib/prism-include-languages'),
4+
require('/Users/dolevh/code/personal/gh-dash/docs/website/node_modules/.pnpm/@docusaurus+theme-classic@2.4.0_@types+node@18.16.2_react-dom@17.0.2_react@17.0.2_ts-node@10.9.1_typescript@4.9.5/node_modules/@docusaurus/theme-classic/lib/nprogress'),
5+
require('/Users/dolevh/code/personal/gh-dash/docs/website/src/css/custom.css'),
6+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"blogPosts": [
3+
{
4+
"id": "mdx-blog-post",
5+
"metadata": {
6+
"permalink": "/blog/mdx-blog-post",
7+
"editUrl": "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/blog/2021-08-01-mdx-blog-post.mdx",
8+
"source": "@site/blog/2021-08-01-mdx-blog-post.mdx",
9+
"title": "MDX Blog Post",
10+
"description": "Blog posts support Docusaurus Markdown features, such as MDX.",
11+
"date": "2021-08-01T00:00:00.000Z",
12+
"formattedDate": "August 1, 2021",
13+
"tags": [
14+
{
15+
"label": "docusaurus",
16+
"permalink": "/blog/tags/docusaurus"
17+
}
18+
],
19+
"readingTime": 0.175,
20+
"hasTruncateMarker": false,
21+
"authors": [
22+
{
23+
"name": "Sébastien Lorber",
24+
"title": "Docusaurus maintainer",
25+
"url": "https://sebastienlorber.com",
26+
"imageURL": "https://github.com/slorber.png",
27+
"key": "slorber"
28+
}
29+
],
30+
"frontMatter": {
31+
"slug": "mdx-blog-post",
32+
"title": "MDX Blog Post",
33+
"authors": [
34+
"slorber"
35+
],
36+
"tags": [
37+
"docusaurus"
38+
]
39+
}
40+
},
41+
"content": "Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).\n\n:::tip\n\nUse the power of React to create interactive blog posts.\n\n```js\n<button onClick={() => alert('button clicked!')}>Click me!</button>\n```\n\n<button onClick={() => alert('button clicked!')}>Click me!</button>\n\n:::"
42+
}
43+
]
44+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permalink": "/blog",
3+
"page": 1,
4+
"postsPerPage": 10,
5+
"totalPages": 1,
6+
"totalCount": 1,
7+
"blogDescription": "Blog",
8+
"blogTitle": "Blog"
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Recent posts",
3+
"items": []
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permalink": "/blog/tags/docusaurus",
3+
"page": 1,
4+
"postsPerPage": 10,
5+
"totalPages": 1,
6+
"totalCount": 1,
7+
"blogDescription": "Blog",
8+
"blogTitle": "Blog"
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"label": "docusaurus",
3+
"permalink": "/blog/tags/docusaurus",
4+
"allTagsPath": "/blog/tags",
5+
"count": 1
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permalink": "/blog/tags/facebook",
3+
"page": 1,
4+
"postsPerPage": 10,
5+
"totalPages": 1,
6+
"totalCount": 1,
7+
"blogDescription": "Blog",
8+
"blogTitle": "Blog"
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"label": "facebook",
3+
"permalink": "/blog/tags/facebook",
4+
"allTagsPath": "/blog/tags",
5+
"count": 1
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permalink": "/blog/tags/hello",
3+
"page": 1,
4+
"postsPerPage": 10,
5+
"totalPages": 1,
6+
"totalCount": 1,
7+
"blogDescription": "Blog",
8+
"blogTitle": "Blog"
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"label": "hello",
3+
"permalink": "/blog/tags/hello",
4+
"allTagsPath": "/blog/tags",
5+
"count": 1
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permalink": "/blog/tags/hola",
3+
"page": 1,
4+
"postsPerPage": 10,
5+
"totalPages": 1,
6+
"totalCount": 1,
7+
"blogDescription": "Blog",
8+
"blogTitle": "Blog"
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"label": "hola",
3+
"permalink": "/blog/tags/hola",
4+
"allTagsPath": "/blog/tags",
5+
"count": 1
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"label": "docusaurus",
4+
"permalink": "/blog/tags/docusaurus",
5+
"count": 1
6+
}
7+
]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "docusaurus-plugin-content-blog",
3+
"id": "default"
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"permalink": "/blog/first-blog-post",
3+
"editUrl": "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/blog/2019-05-28-first-blog-post.md",
4+
"source": "@site/blog/2019-05-28-first-blog-post.md",
5+
"title": "First Blog Post",
6+
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet",
7+
"date": "2019-05-28T00:00:00.000Z",
8+
"formattedDate": "May 28, 2019",
9+
"tags": [
10+
{
11+
"label": "hola",
12+
"permalink": "/blog/tags/hola"
13+
},
14+
{
15+
"label": "docusaurus",
16+
"permalink": "/blog/tags/docusaurus"
17+
}
18+
],
19+
"readingTime": 0.12,
20+
"hasTruncateMarker": false,
21+
"authors": [
22+
{
23+
"name": "Gao Wei",
24+
"title": "Docusaurus Core Team",
25+
"url": "https://github.com/wgao19",
26+
"image_url": "https://github.com/wgao19.png",
27+
"imageURL": "https://github.com/wgao19.png"
28+
}
29+
],
30+
"frontMatter": {
31+
"slug": "first-blog-post",
32+
"title": "First Blog Post",
33+
"authors": {
34+
"name": "Gao Wei",
35+
"title": "Docusaurus Core Team",
36+
"url": "https://github.com/wgao19",
37+
"image_url": "https://github.com/wgao19.png",
38+
"imageURL": "https://github.com/wgao19.png"
39+
},
40+
"tags": [
41+
"hola",
42+
"docusaurus"
43+
]
44+
},
45+
"prevItem": {
46+
"title": "Long Blog Post",
47+
"permalink": "/blog/long-blog-post"
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"permalink": "/blog/long-blog-post",
3+
"editUrl": "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/blog/2019-05-29-long-blog-post.md",
4+
"source": "@site/blog/2019-05-29-long-blog-post.md",
5+
"title": "Long Blog Post",
6+
"description": "This is the summary of a very long blog post,",
7+
"date": "2019-05-29T00:00:00.000Z",
8+
"formattedDate": "May 29, 2019",
9+
"tags": [
10+
{
11+
"label": "hello",
12+
"permalink": "/blog/tags/hello"
13+
},
14+
{
15+
"label": "docusaurus",
16+
"permalink": "/blog/tags/docusaurus"
17+
}
18+
],
19+
"readingTime": 2.05,
20+
"hasTruncateMarker": true,
21+
"authors": [
22+
{
23+
"name": "Endilie Yacop Sucipto",
24+
"title": "Maintainer of Docusaurus",
25+
"url": "https://github.com/endiliey",
26+
"imageURL": "https://github.com/endiliey.png",
27+
"key": "endi"
28+
}
29+
],
30+
"frontMatter": {
31+
"slug": "long-blog-post",
32+
"title": "Long Blog Post",
33+
"authors": "endi",
34+
"tags": [
35+
"hello",
36+
"docusaurus"
37+
]
38+
},
39+
"prevItem": {
40+
"title": "MDX Blog Post",
41+
"permalink": "/blog/mdx-blog-post"
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"permalink": "/blog/mdx-blog-post",
3+
"editUrl": "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/blog/2021-08-01-mdx-blog-post.mdx",
4+
"source": "@site/blog/2021-08-01-mdx-blog-post.mdx",
5+
"title": "MDX Blog Post",
6+
"description": "Blog posts support Docusaurus Markdown features, such as MDX.",
7+
"date": "2021-08-01T00:00:00.000Z",
8+
"formattedDate": "August 1, 2021",
9+
"tags": [
10+
{
11+
"label": "docusaurus",
12+
"permalink": "/blog/tags/docusaurus"
13+
}
14+
],
15+
"readingTime": 0.175,
16+
"hasTruncateMarker": false,
17+
"authors": [
18+
{
19+
"name": "Sébastien Lorber",
20+
"title": "Docusaurus maintainer",
21+
"url": "https://sebastienlorber.com",
22+
"imageURL": "https://github.com/slorber.png",
23+
"key": "slorber"
24+
}
25+
],
26+
"frontMatter": {
27+
"slug": "mdx-blog-post",
28+
"title": "MDX Blog Post",
29+
"authors": [
30+
"slorber"
31+
],
32+
"tags": [
33+
"docusaurus"
34+
]
35+
}
36+
}

0 commit comments

Comments
 (0)