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
...
928ef7b7e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
928ef7b7e8 | ||
| 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
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: '24'
|
||||
cache: 'pnpm'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
@@ -36,6 +36,15 @@ jobs:
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
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
|
||||
run: |
|
||||
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version
|
||||
@@ -43,12 +52,5 @@ jobs:
|
||||
- name: Build package
|
||||
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
|
||||
run: pnpm publish --access public --provenance --no-git-checks
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: pnpm publish --access public --no-git-checks --tag ${{ steps.version.outputs.tag }}
|
||||
|
||||
4
.github/workflows/quality.yaml
vendored
4
.github/workflows/quality.yaml
vendored
@@ -31,12 +31,12 @@ jobs:
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: '24'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
"svelte-check": "^4.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"typescript-eslint": "^8.20.0",
|
||||
"vite": "^7.0.4"
|
||||
"vite": "^7.1.11"
|
||||
},
|
||||
"keywords": [
|
||||
"svelte"
|
||||
|
||||
775
pnpm-lock.yaml
generated
775
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>
|
||||
|
||||
<div class={`calendar-holder ${className}`}>
|
||||
<div class="calendar"></div>
|
||||
</div>
|
||||
<div class={`calendar ${className}`}></div>
|
||||
|
||||
<style global>
|
||||
:root {
|
||||
@@ -35,7 +33,6 @@
|
||||
--color-calendar-graph-day-L4-bg: #0a4208 !important;
|
||||
}
|
||||
:global {
|
||||
.calendar-holder {
|
||||
.ContributionCalendar-day[data-level='0'] {
|
||||
background-color: var(--color-calendar-graph-day-bg) !important;
|
||||
}
|
||||
@@ -86,7 +83,7 @@
|
||||
font-family: Helvetica, arial !important;
|
||||
border: 1px solid #dddddd !important;
|
||||
border-radius: 3px !important;
|
||||
min-height: 243px !important;
|
||||
min-height: 243px;
|
||||
text-align: center !important;
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
@@ -275,5 +272,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -2,4 +2,6 @@
|
||||
import { GitHubCalendar } from '../lib/index.js';
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<GitHubCalendar username="Paillat-dev" class="w-full h-auto" />
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user