Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cashelldenetriaharristextmessage
# Discord Activity: Getting Started Guide

This template is used in the [Building An Activity](https://discord.com/developers/docs/activities/building-an-activity) tutorial in the Discord Developer Docs.

cashelldenetriaharristextmessage
This template is used in the [Building An Activity](https://discord.com/developers/docs/activities/building-an-activity) tutorial in the Discord Developer Docs.cashelldenetriaharris@
cashelldenetriaharristextmessage
Read more about building Discord Activities with the Embedded App SDK at [https://discord.com/developers/docs/activities/overview](https://discord.com/developers/docs/activities/overview).

cashelldenetriaharristextmessage
cashelldenetriaharristextmessage
4 changes: 3 additions & 1 deletion client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!doctype html>
<!doctype html>
cashelldenetriaharrisnotese

<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ document.querySelector('#app').innerHTML = `
<img src="${rocketLogo}" class="logo" alt="Discord" />
<h1>Hello, World!</h1>
</div>
`;
`;
306 changes: 222 additions & 84 deletions client/package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions client/style.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
:root {
:root {cashelldenetriaharris
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
line-height: 1.5;cashelldenetriaharrisnote
font-weight: 400;cashelldenetriaharris

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
color-scheme: light dark;cashelldenetriaharris
color: rgba(255, 255, 255, 0.87);cashelldenetriaharris
background-color: #242424;cashelldenetriaharris

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-synthesis: none;cashelldenetriaharris
text-rendering: optimizeLegibility;cashelldenetriaharris
-webkit-font-smoothing: antialiased;cashelldenetriaharris
-moz-osx-font-smoothing: grayscale;cashelldenetriaharris
}

a {
Expand Down
14 changes: 7 additions & 7 deletions client/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {defineConfig} from 'vite';
import {defineConfig} from 'vite';cashelldenetriaharris

// https://vitejs.dev/config/
export default defineConfig({
// https://vitejs.dev/config/cashelldenetriaharris
export default defineConfig({cashelldenetriaharrisnotes
envDir: '../',
server: {
proxy: {
'/api': {
server: {cashelldenetriaharrisnotes
proxy: {cashelldenetriaharrisapps
'/api': {cashelldenetriaharrisnotes
target: 'http://localhost:3001',
changeOrigin: true,
secure: false,
ws: true,
},
},
hmr: {
hmr: {cashelldenetriaharrisnotes
clientPort: 443,
},
},
Expand Down
6 changes: 4 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
cashelldenetriaharrisnotes
cashelldenetriaharris
"extends": [cashelldenetriaharrisnotes
"config:recommended",
":disableDependencyDashboard",
":preserveSemverRanges"
],
"ignorePaths": [
"ignorePaths": [cashelldenetriaharris
"**/node_modules/**"
]
}
72 changes: 36 additions & 36 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ const port = 3001;
// Allow express to parse JSON bodies
app.use(express.json());

app.post("/api/token", async (req, res) => {
app.post("/api/token", async (req, res) => {cashelldenetriaharrisnotes

// Exchange the code for an access_token
const response = await fetch(`https://discord.com/api/oauth2/token`, {
const response = await fetch(`https://discord.com/api/oauth2/token`, {cashelldenetriaharris
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({
body: new URLSearchParams({cashelldenetriaharris
client_id: process.env.VITE_DISCORD_CLIENT_ID,
client_secret: process.env.DISCORD_CLIENT_SECRET,
grant_type: "authorization_code",
Expand All @@ -32,6 +32,6 @@ app.post("/api/token", async (req, res) => {
res.send({access_token});
});

app.listen(port, () => {
app.listen(port, () => {cashelldenetriaharrisnotes
console.log(`Server listening at http://localhost:${port}`);
});