mirror of
https://github.com/Paillat-dev/svelte-github-calendar.git
synced 2026-03-03 02:44:55 +00:00
Compare commits
18 Commits
v0.1.0-alp
...
renovate/v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f80f8be373 | ||
| 91590b58f6 | |||
|
|
ed73195948 | ||
|
|
ad6cfba32e | ||
|
|
1637a0c6f8 | ||
|
|
2a03311cc5 | ||
|
|
31e6804a13 | ||
|
|
4d90c2b52a | ||
|
|
cfa86966d0 | ||
| b84b8fbb68 | |||
|
|
878fc76602 | ||
| f72676b535 | |||
| 10c156ffdb | |||
|
|
1060ca8a5e | ||
| cc6b0c5473 | |||
| 0466b503fe | |||
|
|
ca88cbbca0 | ||
|
|
d9e776683f |
22
.github/workflows/publish.yaml
vendored
22
.github/workflows/publish.yaml
vendored
@@ -17,12 +17,12 @@ jobs:
|
|||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 9
|
version: 10
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '24'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
@@ -36,6 +36,15 @@ jobs:
|
|||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "Publishing version: $VERSION"
|
echo "Publishing version: $VERSION"
|
||||||
|
|
||||||
|
if [[ $VERSION =~ - ]]; then
|
||||||
|
TAG=$(echo $VERSION | sed -E 's/.*-([^.]+).*/\1/')
|
||||||
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
|
echo "Prerelease detected, using tag: $TAG"
|
||||||
|
else
|
||||||
|
echo "tag=latest" >> $GITHUB_OUTPUT
|
||||||
|
echo "Stable release, using tag: latest"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Update package.json version
|
- name: Update package.json version
|
||||||
run: |
|
run: |
|
||||||
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version
|
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version
|
||||||
@@ -43,12 +52,5 @@ jobs:
|
|||||||
- name: Build package
|
- name: Build package
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Set publishing auth config
|
|
||||||
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
||||||
|
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
run: pnpm publish --access public --provenance --no-git-checks
|
run: pnpm publish --access public --no-git-checks --tag ${{ steps.version.outputs.tag }}
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|||||||
4
.github/workflows/quality.yaml
vendored
4
.github/workflows/quality.yaml
vendored
@@ -31,12 +31,12 @@ jobs:
|
|||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 9
|
version: 10
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '24'
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
"svelte-check": "^4.0.0",
|
"svelte-check": "^4.0.0",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"typescript-eslint": "^8.20.0",
|
"typescript-eslint": "^8.20.0",
|
||||||
"vite": "^7.0.4"
|
"vite": "^7.1.11"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svelte"
|
"svelte"
|
||||||
|
|||||||
728
pnpm-lock.yaml
generated
728
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
4
renovate.json
Normal file
4
renovate.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["config:recommended"]
|
||||||
|
}
|
||||||
@@ -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,244 +33,242 @@
|
|||||||
--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;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.ContributionCalendar-day[data-level='1'] {
|
.ContributionCalendar-day[data-level='1'] {
|
||||||
background-color: var(--color-calendar-graph-day-L1-bg) !important;
|
background-color: var(--color-calendar-graph-day-L1-bg) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ContributionCalendar-day[data-level='2'] {
|
.ContributionCalendar-day[data-level='2'] {
|
||||||
background-color: var(--color-calendar-graph-day-L2-bg) !important;
|
background-color: var(--color-calendar-graph-day-L2-bg) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ContributionCalendar-day[data-level='3'] {
|
.ContributionCalendar-day[data-level='3'] {
|
||||||
background-color: var(--color-calendar-graph-day-L3-bg) !important;
|
background-color: var(--color-calendar-graph-day-L3-bg) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ContributionCalendar-day[data-level='4'] {
|
.ContributionCalendar-day[data-level='4'] {
|
||||||
background-color: var(--color-calendar-graph-day-L4-bg) !important;
|
background-color: var(--color-calendar-graph-day-L4-bg) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.ContributionCalendar-grid {
|
table.ContributionCalendar-grid {
|
||||||
margin-bottom: 0pt !important;
|
margin-bottom: 0pt !important;
|
||||||
border-collapse: separate !important;
|
border-collapse: separate !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.ContributionCalendar-grid td {
|
table.ContributionCalendar-grid td {
|
||||||
padding: 4pt !important;
|
padding: 4pt !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.ContributionCalendar-grid td span.sr-only {
|
table.ContributionCalendar-grid td span.sr-only {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.ContributionCalendar-label span[aria-hidden='true'] {
|
td.ContributionCalendar-label span[aria-hidden='true'] {
|
||||||
font-size: 8pt !important;
|
font-size: 8pt !important;
|
||||||
left: -1pt !important;
|
left: -1pt !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
tool-tip {
|
tool-tip {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar .width-full > .float-left {
|
.calendar .width-full > .float-left {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar {
|
.calendar {
|
||||||
font-family: Helvetica, arial !important;
|
font-family: Helvetica, arial !important;
|
||||||
border: 1px solid #dddddd !important;
|
border: 1px solid #dddddd !important;
|
||||||
border-radius: 3px !important;
|
border-radius: 3px !important;
|
||||||
min-height: 243px !important;
|
min-height: 243px;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-graph text.wday,
|
.calendar-graph text.wday,
|
||||||
.calendar-graph text.month {
|
.calendar-graph text.month {
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
fill: #aaa !important;
|
fill: #aaa !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.px-md-5 {
|
div.px-md-5 {
|
||||||
height: 2rem !important;
|
height: 2rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.float-right {
|
div.float-right {
|
||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
padding: 0 14px 10px 0 !important;
|
padding: 0 14px 10px 0 !important;
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
float: right !important;
|
float: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.float-right div {
|
div.float-right div {
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
list-style: none !important;
|
list-style: none !important;
|
||||||
margin: 0 5px !important;
|
margin: 0 5px !important;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
bottom: -1px !important;
|
bottom: -1px !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.float-right span.sr-only {
|
div.float-right span.sr-only {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contrib-legend .legend li {
|
.contrib-legend .legend li {
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
width: 10px !important;
|
width: 10px !important;
|
||||||
height: 10px !important;
|
height: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-small {
|
.text-small {
|
||||||
font-size: 12px !important;
|
font-size: 12px !important;
|
||||||
color: #767676 !important;
|
color: #767676 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-graph {
|
.calendar-graph {
|
||||||
padding: 5px 0 0 !important;
|
padding: 5px 0 0 !important;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contrib-column {
|
.contrib-column {
|
||||||
padding: 15px 0 !important;
|
padding: 15px 0 !important;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
border-left: 1px solid #ddd !important;
|
border-left: 1px solid #ddd !important;
|
||||||
border-top: 1px solid #ddd !important;
|
border-top: 1px solid #ddd !important;
|
||||||
font-size: 11px !important;
|
font-size: 11px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contrib-column span {
|
.contrib-column span {
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contrib-column-first {
|
.contrib-column-first {
|
||||||
border-left: 0 !important;
|
border-left: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-column {
|
||||||
|
box-sizing: border-box !important;
|
||||||
|
display: table-cell !important;
|
||||||
|
width: 1% !important;
|
||||||
|
padding-right: 10px !important;
|
||||||
|
padding-left: 10px !important;
|
||||||
|
vertical-align: top !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contrib-number {
|
||||||
|
font-weight: 300 !important;
|
||||||
|
line-height: 1.3em !important;
|
||||||
|
font-size: 24px !important;
|
||||||
|
display: block !important;
|
||||||
|
color: #333 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar img.spinner {
|
||||||
|
width: 70px !important;
|
||||||
|
margin-top: 50px !important;
|
||||||
|
min-height: 70px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.monospace {
|
||||||
|
text-align: center !important;
|
||||||
|
color: #000 !important;
|
||||||
|
font-family: monospace !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.monospace a {
|
||||||
|
color: #1d75ab !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contrib-footer {
|
||||||
|
font-size: 11px !important;
|
||||||
|
padding: 0 10px 12px !important;
|
||||||
|
text-align: left !important;
|
||||||
|
width: 100% !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
|
height: 26px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar .text-muted {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left.text-muted {
|
||||||
|
float: left !important;
|
||||||
|
margin-left: 9px !important;
|
||||||
|
color: #767676 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left.text-muted a {
|
||||||
|
color: #4078c0 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left.text-muted a:hover,
|
||||||
|
.monospace a:hover {
|
||||||
|
text-decoration: underline !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.f4.text-normal.mb-3 {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.float-left.text-gray {
|
||||||
|
float: left !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#user-activity-overview {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-tooltip {
|
||||||
|
white-space: nowrap !important;
|
||||||
|
position: absolute !important;
|
||||||
|
z-index: 99999 !important;
|
||||||
|
padding: 10px !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
color: #959da5 !important;
|
||||||
|
text-align: center !important;
|
||||||
|
background: rgba(0, 0, 0, 0.85) !important;
|
||||||
|
border-radius: 3px !important;
|
||||||
|
display: none !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-tooltip strong {
|
||||||
|
color: #dfe2e5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-tooltip.is-visible {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-tooltip:after {
|
||||||
|
position: absolute !important;
|
||||||
|
bottom: -10px !important;
|
||||||
|
left: 50% !important;
|
||||||
|
width: 5px !important;
|
||||||
|
height: 5px !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
|
margin: 0 0 0 -5px !important;
|
||||||
|
content: ' ' !important;
|
||||||
|
border: 5px solid transparent !important;
|
||||||
|
border-top-color: rgba(0, 0, 0, 0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
text.ContributionCalendar-label {
|
||||||
|
fill: #ccc !important;
|
||||||
|
font-size: 11px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
.table-column {
|
.table-column {
|
||||||
box-sizing: border-box !important;
|
|
||||||
display: table-cell !important;
|
|
||||||
width: 1% !important;
|
|
||||||
padding-right: 10px !important;
|
|
||||||
padding-left: 10px !important;
|
|
||||||
vertical-align: top !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contrib-number {
|
|
||||||
font-weight: 300 !important;
|
|
||||||
line-height: 1.3em !important;
|
|
||||||
font-size: 24px !important;
|
|
||||||
display: block !important;
|
display: block !important;
|
||||||
color: #333 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.calendar img.spinner {
|
|
||||||
width: 70px !important;
|
|
||||||
margin-top: 50px !important;
|
|
||||||
min-height: 70px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.monospace {
|
|
||||||
text-align: center !important;
|
|
||||||
color: #000 !important;
|
|
||||||
font-family: monospace !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.monospace a {
|
|
||||||
color: #1d75ab !important;
|
|
||||||
text-decoration: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contrib-footer {
|
|
||||||
font-size: 11px !important;
|
|
||||||
padding: 0 10px 12px !important;
|
|
||||||
text-align: left !important;
|
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
box-sizing: border-box !important;
|
|
||||||
height: 26px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.calendar .text-muted {
|
|
||||||
color: inherit !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left.text-muted {
|
|
||||||
float: left !important;
|
|
||||||
margin-left: 9px !important;
|
|
||||||
color: #767676 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left.text-muted a {
|
|
||||||
color: #4078c0 !important;
|
|
||||||
text-decoration: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left.text-muted a:hover,
|
|
||||||
.monospace a:hover {
|
|
||||||
text-decoration: underline !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2.f4.text-normal.mb-3 {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.float-left.text-gray {
|
|
||||||
float: left !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#user-activity-overview {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-tooltip {
|
|
||||||
white-space: nowrap !important;
|
|
||||||
position: absolute !important;
|
|
||||||
z-index: 99999 !important;
|
|
||||||
padding: 10px !important;
|
|
||||||
font-size: 12px !important;
|
|
||||||
color: #959da5 !important;
|
|
||||||
text-align: center !important;
|
|
||||||
background: rgba(0, 0, 0, 0.85) !important;
|
|
||||||
border-radius: 3px !important;
|
|
||||||
display: none !important;
|
|
||||||
pointer-events: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-tooltip strong {
|
|
||||||
color: #dfe2e5 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-tooltip.is-visible {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-tooltip:after {
|
|
||||||
position: absolute !important;
|
|
||||||
bottom: -10px !important;
|
|
||||||
left: 50% !important;
|
|
||||||
width: 5px !important;
|
|
||||||
height: 5px !important;
|
|
||||||
box-sizing: border-box !important;
|
|
||||||
margin: 0 0 0 -5px !important;
|
|
||||||
content: ' ' !important;
|
|
||||||
border: 5px solid transparent !important;
|
|
||||||
border-top-color: rgba(0, 0, 0, 0.85);
|
|
||||||
}
|
|
||||||
|
|
||||||
text.ContributionCalendar-label {
|
|
||||||
fill: #ccc !important;
|
|
||||||
font-size: 11px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
|
||||||
.table-column {
|
|
||||||
display: block !important;
|
|
||||||
width: 100% !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,6 @@
|
|||||||
import { GitHubCalendar } from '../lib/index.js';
|
import { GitHubCalendar } from '../lib/index.js';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<GitHubCalendar username="Paillat-dev" class="w-full h-auto" />
|
<main>
|
||||||
|
<GitHubCalendar username="Paillat-dev" class="w-full h-auto" />
|
||||||
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user