-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: future self, please forgive me and don't hit me with the baseb…
…all bat again!
- Loading branch information
Showing
7 changed files
with
98 additions
and
1,008 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
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
694 changes: 0 additions & 694 deletions
694
templates/astro/src/lit/components/DiscordComponentsWrapper.ts
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,95 @@ | ||
--- | ||
import { DiscordComponentsWrapper } from '../lit/components/DiscordComponentsWrapper'; | ||
import Layout from '../layouts/Layout.astro'; | ||
import DiscordComponents from '../react/components/DiscordComponents'; | ||
--- | ||
|
||
<Layout> | ||
<div> | ||
<div> | ||
<h1 class="logo">@skyra/discord-components-core</h1> | ||
<span | ||
>[<a | ||
title="GitHub repository" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components/">Github</a | ||
>]</span | ||
> | ||
</div> | ||
<h1 class="logo">@skyra/discord-components-core</h1> | ||
<span | ||
>[<a | ||
title="GitHub repository" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components/">Github</a | ||
>]</span | ||
> | ||
</div> | ||
|
||
<div> | ||
<h2>Explanation</h2> | ||
<div> | ||
<h2>Explanation</h2> | ||
<div> | ||
This website contains various samples for | ||
<a | ||
title="GitHub repository" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components/">@skyra/discord-components-core</a | ||
> | ||
which is a webcomponents library (powered by | ||
<a title="Lit website" class="link" target="_blank" rel="noopener noreferrer" href="https://lit.dev">Lit</a>) to create Discord-like | ||
messages with rich content. The always up-to-date version of this document can be found | ||
<a | ||
title="Demo index.html" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components-implementations/blob/main/templates/astro/src/pages/index.astro/">here</a | ||
>. | ||
</div> | ||
<DiscordComponentsWrapper client:only="lit" /> | ||
This website contains various samples for | ||
<a | ||
title="GitHub repository" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components/">@skyra/discord-components-core</a | ||
> | ||
which is a webcomponents library (powered by | ||
<a title="Lit website" class="link" target="_blank" rel="noopener noreferrer" href="https://lit.dev">Lit</a>) to create Discord-like | ||
messages with rich content. The always up-to-date version of this document can be found | ||
<a | ||
title="Demo index.html" | ||
class="link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/skyra-project/discord-components-implementations/blob/main/templates/astro/src/pages/react.astro">here</a | ||
>. | ||
</div> | ||
</div> | ||
<DiscordComponents client:only="react" /> | ||
</Layout> | ||
|
||
<script is:inline> | ||
window.$discordMessage = { | ||
profiles: { | ||
maximillian: { | ||
author: 'Maximillian Osborn', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avaone.png', | ||
roleColor: '#f9d61b' | ||
}, | ||
willard: { | ||
author: 'Willard Walton', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avatwo.png', | ||
roleColor: '#ffb12f' | ||
}, | ||
skyra: { | ||
author: 'Skyra', | ||
avatar: 'https://github.com/NM-EEA-Y.png', | ||
roleColor: '#1e88e5', | ||
bot: true, | ||
verified: true | ||
}, | ||
favna: { | ||
author: 'Favna', | ||
avatar: 'https://github.com/favna.png', | ||
roleColor: '#a155ab', | ||
roleIcon: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/booster.png', | ||
roleName: 'Booster' | ||
}, | ||
discordjs: { | ||
author: 'Discord.js Official #announcements', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/discordjs.png', | ||
roleColor: '#ffffff', | ||
server: true | ||
} | ||
<script is:inline> | ||
window.$discordMessage = { | ||
profiles: { | ||
maximillian: { | ||
author: 'Maximillian Osborn', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avaone.png', | ||
roleColor: '#f9d61b' | ||
}, | ||
emojis: { | ||
diamond: { | ||
name: 'diamond', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/diamond.png' | ||
}, | ||
dragonite: { | ||
name: 'dragonite', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/dragonite.png' | ||
}, | ||
sapphire: { | ||
name: 'sapphire', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/sapphire.png' | ||
} | ||
willard: { | ||
author: 'Willard Walton', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avatwo.png', | ||
roleColor: '#ffb12f' | ||
}, | ||
skyra: { | ||
author: 'Skyra', | ||
avatar: 'https://github.com/NM-EEA-Y.png', | ||
roleColor: '#1e88e5', | ||
bot: true, | ||
verified: true | ||
}, | ||
favna: { | ||
author: 'Favna', | ||
avatar: 'https://github.com/favna.png', | ||
roleColor: '#a155ab', | ||
roleIcon: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/booster.png', | ||
roleName: 'Booster' | ||
}, | ||
discordjs: { | ||
author: 'Discord.js Official #announcements', | ||
avatar: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/discordjs.png', | ||
roleColor: '#ffffff', | ||
server: true | ||
} | ||
}; | ||
</script> | ||
</Layout> | ||
}, | ||
emojis: { | ||
diamond: { | ||
name: 'diamond', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/diamond.png' | ||
}, | ||
dragonite: { | ||
name: 'dragonite', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/dragonite.png' | ||
}, | ||
sapphire: { | ||
name: 'sapphire', | ||
url: 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/sapphire.png' | ||
} | ||
} | ||
}; | ||
</script> |
This file was deleted.
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
Oops, something went wrong.