mirror of
https://github.com/Paillat-dev/svelte-github-calendar.git
synced 2026-01-02 01:06:20 +00:00
Compare commits
6 Commits
v0.1.0-alp
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca88cbbca0 | ||
|
|
d9e776683f | ||
|
|
71af282bd2 | ||
|
|
be3af1f676 | ||
|
|
bacfd12dfc | ||
|
|
d16e4b2f1f |
@@ -41,7 +41,7 @@ npm install svelte-github-calendar
|
|||||||
## Props
|
## Props
|
||||||
|
|
||||||
| Prop | Type | Default | Description |
|
| Prop | Type | Default | Description |
|
||||||
|----------------|------------|--------------|------------------------------------------|
|
| -------------- | ---------- | ------------ | ---------------------------------------- |
|
||||||
| `username` | `string` | **Required** | GitHub username to display calendar for |
|
| `username` | `string` | **Required** | GitHub username to display calendar for |
|
||||||
| `summary_text` | `string` | `undefined` | Custom summary text template. |
|
| `summary_text` | `string` | `undefined` | Custom summary text template. |
|
||||||
| `proxy` | `function` | `undefined` | Custom proxy function for API requests |
|
| `proxy` | `function` | `undefined` | Custom proxy function for API requests |
|
||||||
@@ -65,6 +65,7 @@ This library is licensed under the MIT License. See the [LICENSE](LICENSE) file
|
|||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions are welcome! Feel free to:
|
Contributions are welcome! Feel free to:
|
||||||
|
|
||||||
- Report bugs
|
- Report bugs
|
||||||
- Suggest new features
|
- Suggest new features
|
||||||
- Submit pull requests
|
- Submit pull requests
|
||||||
@@ -73,5 +74,6 @@ Contributions are welcome! Feel free to:
|
|||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Calendar not loading
|
### Calendar not loading
|
||||||
|
|
||||||
- Ensure the username is valid and public
|
- Ensure the username is valid and public
|
||||||
- Verify network connectivity
|
- Verify network connectivity
|
||||||
|
|||||||
@@ -22,9 +22,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={`calendar-holder ${className}`}>
|
<div class={`calendar ${className}`}></div>
|
||||||
<div class="calendar"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style global>
|
<style global>
|
||||||
:root {
|
:root {
|
||||||
@@ -35,7 +33,6 @@
|
|||||||
--color-calendar-graph-day-L4-bg: #0a4208 !important;
|
--color-calendar-graph-day-L4-bg: #0a4208 !important;
|
||||||
}
|
}
|
||||||
:global {
|
:global {
|
||||||
.calendar-holder {
|
|
||||||
.ContributionCalendar-day[data-level='0'] {
|
.ContributionCalendar-day[data-level='0'] {
|
||||||
background-color: var(--color-calendar-graph-day-bg) !important;
|
background-color: var(--color-calendar-graph-day-bg) !important;
|
||||||
}
|
}
|
||||||
@@ -58,6 +55,7 @@
|
|||||||
|
|
||||||
table.ContributionCalendar-grid {
|
table.ContributionCalendar-grid {
|
||||||
margin-bottom: 0pt !important;
|
margin-bottom: 0pt !important;
|
||||||
|
border-collapse: separate !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.ContributionCalendar-grid td {
|
table.ContributionCalendar-grid td {
|
||||||
@@ -144,6 +142,10 @@
|
|||||||
font-size: 11px !important;
|
font-size: 11px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contrib-column span {
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.contrib-column-first {
|
.contrib-column-first {
|
||||||
border-left: 0 !important;
|
border-left: 0 !important;
|
||||||
}
|
}
|
||||||
@@ -191,6 +193,10 @@
|
|||||||
height: 26px !important;
|
height: 26px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar .text-muted {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
.left.text-muted {
|
.left.text-muted {
|
||||||
float: left !important;
|
float: left !important;
|
||||||
margin-left: 9px !important;
|
margin-left: 9px !important;
|
||||||
@@ -266,5 +272,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,4 +2,6 @@
|
|||||||
import { GitHubCalendar } from '../lib/index.js';
|
import { GitHubCalendar } from '../lib/index.js';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<main>
|
||||||
<GitHubCalendar username="Paillat-dev" class="w-full h-auto" />
|
<GitHubCalendar username="Paillat-dev" class="w-full h-auto" />
|
||||||
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user