Compare commits
No commits in common. "457fb93718f460181ccacce53f11718eff88a13e" and "5772bc9bcd688dc7b01216f5d20527933c1e5ab1" have entirely different histories.
457fb93718
...
5772bc9bcd
3 changed files with 3 additions and 59 deletions
|
@ -1,34 +1,4 @@
|
||||||
---
|
---
|
||||||
import Logo from '../assets/mercury.svg'
|
import Logo from '../assets/mercury.svg'
|
||||||
import AstroLogo from '../assets/astro.svg'
|
|
||||||
import {siteConfig} from "../config";
|
|
||||||
|
|
||||||
const presets = [
|
|
||||||
'withastro',
|
|
||||||
'plain',
|
|
||||||
'plainwithastro',
|
|
||||||
'formula',
|
|
||||||
'iconsonly',
|
|
||||||
'none'
|
|
||||||
]
|
|
||||||
|
|
||||||
const preset = siteConfig.poweredByPreset
|
|
||||||
---
|
---
|
||||||
{preset === 'withastro' && <p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a> and <AstroLogo width={16} height={16}/> Astro </p>}
|
<p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a></p>
|
||||||
|
|
||||||
{preset === 'plain' && <p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank">mercury</a></p>}
|
|
||||||
|
|
||||||
{preset === 'plainwithastro' && <p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a> and <AstroLogo width={16} height={16}/> Astro </p>}
|
|
||||||
|
|
||||||
{preset === 'formula' && <p><a href="https://astro.build">Astro</a> + <a href="https://git.gb0.dev/gb/mercury">mercury</a> + love -> this awesome website</p>}
|
|
||||||
|
|
||||||
{preset === 'iconsonly' &&
|
|
||||||
<p>
|
|
||||||
<a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /></a>
|
|
||||||
<a href="https://astro.build" target="_blank"><AstroLogo width={16} height={16}/></a>
|
|
||||||
</p>
|
|
||||||
}
|
|
||||||
|
|
||||||
{preset === 'none' && <p></p>}
|
|
||||||
|
|
||||||
{(!presets.includes(preset) || preset === '') && <p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a></p>}
|
|
|
@ -43,30 +43,8 @@ const allData = [
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
// Import the echarts core module, which provides the necessary interfaces for using echarts.
|
import * as echarts from 'echarts';
|
||||||
import * as echarts from 'echarts/core';
|
console.log(JSON.parse(document.getElementById('heatmap-data')?.getAttribute('data-chartdata')))
|
||||||
import { HeatmapChart } from 'echarts/charts';
|
|
||||||
// Import the title, tooltip, calendar and visual map components
|
|
||||||
import {
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
VisualMapComponent,
|
|
||||||
CalendarComponent,
|
|
||||||
} from 'echarts/components';
|
|
||||||
|
|
||||||
// Import the Canvas renderer
|
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
|
||||||
|
|
||||||
// Register the required components
|
|
||||||
echarts.use([
|
|
||||||
HeatmapChart,
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
VisualMapComponent,
|
|
||||||
CalendarComponent,
|
|
||||||
CanvasRenderer
|
|
||||||
]);
|
|
||||||
|
|
||||||
function setupHeatmap() {
|
function setupHeatmap() {
|
||||||
const chartElement = document.getElementById('heatmap-chart');
|
const chartElement = document.getElementById('heatmap-chart');
|
||||||
if (!chartElement) {
|
if (!chartElement) {
|
||||||
|
|
|
@ -93,10 +93,6 @@ export const siteConfig = {
|
||||||
// footer
|
// footer
|
||||||
// yes you can write html safely here
|
// yes you can write html safely here
|
||||||
customFooter: '<i>I have no mouth, and I must SCREAM</i>',
|
customFooter: '<i>I have no mouth, and I must SCREAM</i>',
|
||||||
// the preset of the powered by text
|
|
||||||
// defaults to 'Powered by Mercury', see PoweredBy.astro for more details
|
|
||||||
// choose from 'default', 'withastro', 'plain', 'plainwithastro', 'formula', 'iconsonly' and 'none', any other value will be treated as 'default'
|
|
||||||
poweredByPreset: '',
|
|
||||||
// umami analytics
|
// umami analytics
|
||||||
// by enabling this, you can track the visitors of your site
|
// by enabling this, you can track the visitors of your site
|
||||||
siteAnalytics: {
|
siteAnalytics: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue