-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
173 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,55 @@ | ||
<script lang="ts"> | ||
import { | ||
removeHyphensAndCapitalize, | ||
HomeCards, | ||
SupportBanner, | ||
TechInfo, | ||
BellActiveAltOutline, | ||
GlobeOutline, | ||
insertObjectToArray, | ||
excludeByTitle, | ||
cards, | ||
info, | ||
pkg | ||
} from 'runes-webkit'; | ||
import { removeHyphensAndCapitalize, HomeCards, SupportBanner, TechInfo, BellActiveAltOutline, InfoCircleOutline, cards, info } from 'runes-webkit'; | ||
const brand = { | ||
title: `${removeHyphensAndCapitalize(__NAME__)}`, | ||
description: `${__DESCRIPTION__}`, | ||
icon: BellActiveAltOutline, | ||
icon_class: 'text-blue-500' | ||
}; | ||
const cardsToExclude = ['Seven Props', 'Global Icon']; | ||
const filteredCards = [brand, ...cards]; | ||
const global_icons = { | ||
title: 'Global Icons', | ||
description: 'Use <code>IconSolid</code> and <code>IconOutline</code> to careat default icons.', | ||
icon: GlobeOutline, | ||
icon_class: 'text-purple-500' | ||
const originalSource = { | ||
title: 'Original source', | ||
description: `${__ORIGINAL_SOURCE_NAME__}`, | ||
icon: InfoCircleOutline, | ||
href: `${__ORIGINAL_SOURCE_URL__}`, | ||
icon_class: 'text-orange-500' | ||
} | ||
const license = { | ||
title: 'License', | ||
description: 'Released under the MIT License.', | ||
icon: InfoCircleOutline, | ||
href: `https://github.com/shinokada/${__NAME__}/blob/main/LICENSE`, | ||
icon_class: 'text-lime-500' | ||
} | ||
const newInfo = [originalSource, license, ...info]; | ||
const pkg = { | ||
pkgName: __NAME__, | ||
pkgVersion: __VERSION__, | ||
repoUrl: __GITHUBURL__, | ||
runaticsVersion: __RUNATICS_VERSION__, | ||
runesMetaTagsVersion: __RUNES_METATAGS_VERSION__, | ||
svelteVersion: __SVELTE_VERSION__, | ||
svelteKitVersion: __SVELTEKIT_VERSION__, | ||
svelte5uilib: __SVELTE_5_UI_LIB_VERSION__, | ||
svelteRuneHighlight: __SVELTE_RUNE_HIGHLIGHT_VERSION__, | ||
viteVersion: __VITE_VERSION__ | ||
}; | ||
let filteredCards = $state(insertObjectToArray(excludeByTitle(cards, cardsToExclude), global_icons, 6)) | ||
// let filteredCards = $state(excludeByTitle(cards, cardsToExclude)); | ||
const runaticsVersion = __RUNATICS_VERSION__; | ||
const runesMetaTagsVersion = __RUNES_METATAGS_VERSION__; | ||
let newPkg = $state({ ...pkg, runaticsVersion, runesMetaTagsVersion }); | ||
</script> | ||
|
||
<div class="relative mx-auto h-full max-w-7xl overflow-y-auto px-8 pb-20"> | ||
<SupportBanner> | ||
To Keep It Going, Please Show Your Love.<a href="https://ko-fi.com/Z8Z2CHALG" target="_blank" | ||
><img | ||
height="40" | ||
style="border:0px;height:40px;" | ||
src="https://storage.ko-fi.com/cdn/kofi3.png?v=3" | ||
alt="Buy Me a Coffee at ko-fi.com" | ||
/></a | ||
> | ||
</SupportBanner> | ||
<div class="relative h-full max-w-7xl mx-auto overflow-y-auto px-8 pb-20"> | ||
<SupportBanner> | ||
To Keep It Going, Please Show Your Love.<a href='https://ko-fi.com/Z8Z2CHALG' target='_blank'><img height='40' style='border:0px;height:40px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' alt='Buy Me a Coffee at ko-fi.com' /></a> | ||
</SupportBanner> | ||
|
||
<h1 class="my-8 flex justify-center">{removeHyphensAndCapitalize(__NAME__)}</h1> | ||
<h1 class='flex justify-center my-8'>{removeHyphensAndCapitalize(__NAME__)}</h1> | ||
|
||
<HomeCards cards={filteredCards} /> | ||
<h2 class="my-8 flex justify-center">Info</h2> | ||
<HomeCards cards={info} /> | ||
<TechInfo {...newPkg} /> | ||
</div> | ||
<HomeCards cards={filteredCards}/> | ||
<h2 class='flex justify-center my-8'>Info</h2> | ||
<HomeCards cards={newInfo} /> | ||
<TechInfo {...pkg} /> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
src/routes/guide/custom-icons/md/create-a-custom-component.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<script lang="ts"> | ||
import type { ComponentType } from 'svelte'; | ||
import type { Component } from 'svelte'; | ||
const config = { | ||
size: "xl", | ||
color: '#FF5733' | ||
}; | ||
import { IconSolid } from 'flowbite-svelte-icons'; | ||
export let icon: ComponentType; | ||
export let icon: Component; | ||
</script> | ||
|
||
<IconSolid {...config} {icon} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
declare const __NAME__: string; | ||
declare const __DESCRIPTION__: string; | ||
declare const __VERSION__: string; | ||
declare const __GITHUBURL__: string; | ||
declare const __ORIGINAL_SOURCE_NAME__: string; | ||
declare const __ORIGINAL_SOURCE_URL__: string; | ||
declare const __RUNATICS_VERSION__: string; | ||
declare const __RUNES_METATAGS_VERSION__: string; | ||
declare const __SVELTE_VERSION__: string; | ||
declare const __SVELTEKIT_VERSION__: string; | ||
declare const __SVELTE_RUNE_HIGHLIGHT_VERSION__: string; | ||
declare const __SVELTE_5_UI_LIB_VERSION__: string; | ||
declare const __VITE_VERSION__: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters