From 69313d135f444e7faac5eff8017e4679787b2e6a Mon Sep 17 00:00:00 2001 From: fowled Date: Fri, 19 Apr 2024 22:36:18 +0200 Subject: [PATCH] Updated node versions for workflows and other additions --- .github/workflows/client.yml | 2 +- .github/workflows/server.yml | 2 +- app/package.json | 2 +- app/src/events/ready.ts | 75 ++++++----- app/src/index.ts | 4 + pnpm-lock.yaml | 215 +++++++++++++++--------------- website/src/components/Navbar.vue | 4 +- 7 files changed, 153 insertions(+), 151 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 19f8f739..407ad880 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [16.6.x] + node-version: [20.x.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 0e65d659..99f0e4ce 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [16.6.x] + node-version: [20.x.x] steps: - uses: actions/checkout@v3 diff --git a/app/package.json b/app/package.json index c158ee1d..a1a8a2f3 100644 --- a/app/package.json +++ b/app/package.json @@ -32,7 +32,7 @@ "cors": "^2.8.5", "cross-env": "^7.0.3", "dayjs": "^1.11.7", - "discord.js": "^14.8.0", + "discord.js": "^14.14.1", "dotenv": "^16.0.3", "eslint": "^8.36.0", "express": "^4.18.2", diff --git a/app/src/events/ready.ts b/app/src/events/ready.ts index fc96ddf1..67534e29 100644 --- a/app/src/events/ready.ts +++ b/app/src/events/ready.ts @@ -10,70 +10,71 @@ module.exports = { once: true, async execute(Client: Discord.Client) { - let currentStatus = 0; - - switchStatuses(); - - setInterval(switchStatuses, 10 * 60000); + Client.user.setActivity("/help • bot.fowled.dev", { type: Discord.ActivityType.Custom }); log(`${chalk.yellow("logged in")} as ${chalk.magentaBright(Client.user.username)}`); await bootupChecks(); - function switchStatuses() { - const statuses = [ - { name: "/help", type: Discord.ActivityType.Watching }, - { - name: `${Client.guilds.cache.size.toString()} guilds`, - type: Discord.ActivityType.Competing, - }, - ]; - - Client.user.setActivity(statuses[currentStatus].name, { - type: statuses[currentStatus].type as Discord.ActivityType.Competing | Discord.ActivityType.Watching, - }); - - currentStatus === 0 ? currentStatus++ : currentStatus--; - } - async function bootupChecks() { const fetchCurrentGuilds = await supabase.from("guilds").select("guild_id"); const fetchUsers = await supabase.from("users").select(); - const addedGuilds = Client.guilds.cache.map(guild => guild.id).filter(x => !fetchCurrentGuilds.data.map(guild => guild.guild_id).includes(x)); - const removedGuilds = fetchCurrentGuilds.data.map(guild => guild.guild_id).filter(x => !Client.guilds.cache.map(guild => guild.id).includes(x)); + const addedGuilds = Client.guilds.cache + .map((guild) => guild.id) + .filter((x) => !fetchCurrentGuilds.data.map((guild) => guild.guild_id).includes(x)); + + const removedGuilds = fetchCurrentGuilds.data + .map((guild) => guild.guild_id) + .filter((x) => !Client.guilds.cache.map((guild) => guild.id).includes(x)); if (!addedGuilds.length && !removedGuilds.length) return; - for (const guild of addedGuilds) { // not using Parallel.all() here to avoid rate limits (needs to fetch a large amount of users) + for (const guild of addedGuilds) { + // not using Parallel.all() here to avoid rate limits (needs to fetch a large amount of users) const fetchGuild = Client.guilds.cache.get(guild); for (const user of fetchUsers.data) { - const fetchMutualGuilds = await supabase.from("users").select("guilds").like("user_id", user.user_id).single(); + const fetchMutualGuilds = await supabase + .from("users") + .select("guilds") + .like("user_id", user.user_id) + .single(); try { await fetchGuild.members.fetch({ user: user.user_id }); - await supabase.from("users").update({ guilds: [...fetchMutualGuilds.data.guilds, guild] }).like("user_id", user.user_id); - } catch { }; + await supabase + .from("users") + .update({ guilds: [...fetchMutualGuilds.data.guilds, guild] }) + .like("user_id", user.user_id); + } catch {} } await supabase.from("guilds").insert({ guild_id: guild }); } - await Promise.all(removedGuilds.map(async (guild) => { - const findPeopleInGuild = await supabase.from("users").select().contains("guilds", [guild]); + await Promise.all( + removedGuilds.map(async (guild) => { + const findPeopleInGuild = await supabase.from("users").select().contains("guilds", [guild]); - await Promise.all(findPeopleInGuild.data.map(async (user) => { - const removeGuild = user.guilds.filter(item => item !== guild); + await Promise.all( + findPeopleInGuild.data.map(async (user) => { + const removeGuild = user.guilds.filter((item) => item !== guild); - await supabase.from("users").update({ guilds: removeGuild }).like("user_id", user.user_id); - })); + await supabase.from("users").update({ guilds: removeGuild }).like("user_id", user.user_id); + }), + ); - await supabase.from("guilds").delete().like("guild_id", guild); - })); + await supabase.from("guilds").delete().like("guild_id", guild); + }), + ); - return log(`${chalk.greenBright("joined")} ${chalk.yellow(addedGuilds.length)} ${chalk.blueBright("guild(s)")} and ${chalk.red("left")} ${chalk.yellow(removedGuilds.length)} ${chalk.blueBright("guild(s)")}`); + return log( + `${chalk.greenBright("joined")} ${chalk.yellow(addedGuilds.length)} ${chalk.blueBright( + "guild(s)", + )} and ${chalk.red("left")} ${chalk.yellow(removedGuilds.length)} ${chalk.blueBright("guild(s)")}`, + ); } }, -}; \ No newline at end of file +}; diff --git a/app/src/index.ts b/app/src/index.ts index d27b0865..d4e5d2fb 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -110,6 +110,10 @@ function httpServer() { app.use(cors({ origin: process.env.CLIENT_URL })); + app.get("/", async (_req, res) => { + return res.send("Hello world"); + }); + app.get("/stats", async (_req, res) => { return res.send({ guilds: client.guilds.cache.size, users: await getUsersCount(client) }); }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3430e783..90d641bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ importers: specifier: ^1.11.7 version: 1.11.7 discord.js: - specifier: ^14.8.0 - version: 14.8.0 + specifier: ^14.14.1 + version: 14.14.1 dotenv: specifier: ^16.0.3 version: 16.0.3 @@ -1123,48 +1123,72 @@ packages: resolution: {integrity: sha512-RpfLEtTlyIxeNPGKcokS+p3BZII/Q3bYxryFRglh5H3A3T8q9fsLYm72VYAMEOOIBLEa8o93kFLiBDUWKrwXZA==} dev: false - /@discordjs/builders@1.5.0: - resolution: {integrity: sha512-7XxT78mnNBPigHn2y6KAXkicxIBFtZREGWaRZ249EC1l6gBUEP8IyVY5JTciIjJArxkF+tg675aZvsTNTKBpmA==} - engines: {node: '>=16.9.0'} + /@discordjs/builders@1.7.0: + resolution: {integrity: sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==} + engines: {node: '>=16.11.0'} dependencies: - '@discordjs/formatters': 0.2.0 - '@discordjs/util': 0.2.0 - '@sapphire/shapeshift': 3.8.1 - discord-api-types: 0.37.35 + '@discordjs/formatters': 0.3.3 + '@discordjs/util': 1.0.2 + '@sapphire/shapeshift': 3.9.7 + discord-api-types: 0.37.61 fast-deep-equal: 3.1.3 ts-mixer: 6.0.3 - tslib: 2.5.0 + tslib: 2.6.2 + dev: false + + /@discordjs/collection@1.5.3: + resolution: {integrity: sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==} + engines: {node: '>=16.11.0'} dev: false - /@discordjs/collection@1.4.0: - resolution: {integrity: sha512-hiOJyk2CPFf1+FL3a4VKCuu1f448LlROVuu8nLz1+jCOAPokUcdFAV+l4pd3B3h6uJlJQSASoZzrdyNdjdtfzQ==} - engines: {node: '>=16.9.0'} + /@discordjs/collection@2.0.0: + resolution: {integrity: sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==} + engines: {node: '>=18'} dev: false - /@discordjs/formatters@0.2.0: - resolution: {integrity: sha512-vn4oMSXuMZUm8ITqVOtvE7/fMMISj4cI5oLsR09PEQXHKeKDAMLltG/DWeeIs7Idfy6V8Fk3rn1e69h7NfzuNA==} - engines: {node: '>=16.9.0'} + /@discordjs/formatters@0.3.3: + resolution: {integrity: sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==} + engines: {node: '>=16.11.0'} dependencies: - discord-api-types: 0.37.35 + discord-api-types: 0.37.61 dev: false - /@discordjs/rest@1.6.0: - resolution: {integrity: sha512-HGvqNCZ5Z5j0tQHjmT1lFvE5ETO4hvomJ1r0cbnpC1zM23XhCpZ9wgTCiEmaxKz05cyf2CI9p39+9LL+6Yz1bA==} - engines: {node: '>=16.9.0'} + /@discordjs/rest@2.2.0: + resolution: {integrity: sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==} + engines: {node: '>=16.11.0'} dependencies: - '@discordjs/collection': 1.4.0 - '@discordjs/util': 0.2.0 + '@discordjs/collection': 2.0.0 + '@discordjs/util': 1.0.2 '@sapphire/async-queue': 1.5.0 - '@sapphire/snowflake': 3.4.0 - discord-api-types: 0.37.35 - file-type: 18.2.1 - tslib: 2.5.0 - undici: 5.21.0 + '@sapphire/snowflake': 3.5.1 + '@vladfrangu/async_event_emitter': 2.2.4 + discord-api-types: 0.37.61 + magic-bytes.js: 1.10.0 + tslib: 2.6.2 + undici: 5.27.2 dev: false - /@discordjs/util@0.2.0: - resolution: {integrity: sha512-/8qNbebFzLWKOOg+UV+RB8itp4SmU5jw0tBUD3ifElW6rYNOj1Ku5JaSW7lLl/WgjjxF01l/1uQPCzkwr110vg==} - engines: {node: '>=16.9.0'} + /@discordjs/util@1.0.2: + resolution: {integrity: sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==} + engines: {node: '>=16.11.0'} + dev: false + + /@discordjs/ws@1.0.2: + resolution: {integrity: sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==} + engines: {node: '>=16.11.0'} + dependencies: + '@discordjs/collection': 2.0.0 + '@discordjs/rest': 2.2.0 + '@discordjs/util': 1.0.2 + '@sapphire/async-queue': 1.5.0 + '@types/ws': 8.5.9 + '@vladfrangu/async_event_emitter': 2.2.4 + discord-api-types: 0.37.61 + tslib: 2.6.2 + ws: 8.14.2 + transitivePeerDependencies: + - bufferutil + - utf-8-validate dev: false /@esbuild/android-arm@0.15.14: @@ -1216,6 +1240,11 @@ packages: resolution: {integrity: sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@fastify/busboy@2.1.1: + resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==} + engines: {node: '>=14'} + dev: false + /@gar/promisify@1.1.3: resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==} requiresBuild: true @@ -1338,9 +1367,9 @@ packages: engines: {node: '>=v14.0.0', npm: '>=7.0.0'} dev: false - /@sapphire/shapeshift@3.8.1: - resolution: {integrity: sha512-xG1oXXBhCjPKbxrRTlox9ddaZTvVpOhYLmKmApD/vIWOV1xEYXnpoFs68zHIZBGbqztq6FrUPNPerIrO1Hqeaw==} - engines: {node: '>=v14.0.0', npm: '>=7.0.0'} + /@sapphire/shapeshift@3.9.7: + resolution: {integrity: sha512-4It2mxPSr4OGn4HSQWGmhFMsNFGfFVhWeRPCRwbH972Ek2pzfGRZtb0pJ4Ze6oIzcyh2jw7nUDa6qGlWofgd9g==} + engines: {node: '>=v16'} dependencies: fast-deep-equal: 3.1.3 lodash: 4.17.21 @@ -1351,6 +1380,11 @@ packages: engines: {node: '>=v14.0.0', npm: '>=7.0.0'} dev: false + /@sapphire/snowflake@3.5.1: + resolution: {integrity: sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==} + engines: {node: '>=v14.0.0', npm: '>=7.0.0'} + dev: false + /@supabase/functions-js@2.0.0: resolution: {integrity: sha512-ozb7bds2yvf5k7NM2ZzUkxvsx4S4i2eRKFSJetdTADV91T65g4gCzEs9L3LUXSrghcGIkUaon03VPzOrFredqg==} dependencies: @@ -1603,10 +1637,6 @@ packages: '@swc/core-win32-ia32-msvc': 1.2.220 '@swc/core-win32-x64-msvc': 1.2.220 - /@tokenizer/token@0.3.0: - resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} - dev: false - /@tootallnate/once@1.1.2: resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} engines: {node: '>= 6'} @@ -1769,8 +1799,8 @@ packages: '@types/webidl-conversions': 7.0.0 dev: false - /@types/ws@8.5.4: - resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} + /@types/ws@8.5.9: + resolution: {integrity: sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==} dependencies: '@types/node': 16.11.47 dev: false @@ -1912,6 +1942,11 @@ packages: vue: 3.2.39 dev: true + /@vladfrangu/async_event_emitter@2.2.4: + resolution: {integrity: sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==} + engines: {node: '>=v14.0.0', npm: '>=7.0.0'} + dev: false + /@volar/language-core@1.0.8: resolution: {integrity: sha512-uxYSOqBk8ZFSzGjUIPOBEFPOg8F3CE6cLO5meK95DODGIlUlPytGiy9sy8QZ9w7RpUH4XMOX3MH/G48SLgP07A==} dependencies: @@ -2357,13 +2392,6 @@ packages: node-gyp-build: 4.6.0 dev: false - /busboy@1.6.0: - resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} - engines: {node: '>=10.16.0'} - dependencies: - streamsearch: 1.1.0 - dev: false - /bytes@3.1.2: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} @@ -2761,27 +2789,28 @@ packages: path-type: 4.0.0 dev: true - /discord-api-types@0.37.35: - resolution: {integrity: sha512-iyKZ/82k7FX3lcmHiAvvWu5TmyfVo78RtghBV/YsehK6CID83k5SI03DKKopBcln+TiEIYw5MGgq7SJXSpNzMg==} + /discord-api-types@0.37.61: + resolution: {integrity: sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==} dev: false - /discord.js@14.8.0: - resolution: {integrity: sha512-UOxYtc/YnV7jAJ2gISluJyYeBw4e+j8gWn+IoqG8unaHAVuvZ13DdYN0M1f9fbUgUvSarV798inIrYFtDNDjwQ==} - engines: {node: '>=16.9.0'} + /discord.js@14.14.1: + resolution: {integrity: sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==} + engines: {node: '>=16.11.0'} dependencies: - '@discordjs/builders': 1.5.0 - '@discordjs/collection': 1.4.0 - '@discordjs/formatters': 0.2.0 - '@discordjs/rest': 1.6.0 - '@discordjs/util': 0.2.0 - '@sapphire/snowflake': 3.4.0 - '@types/ws': 8.5.4 - discord-api-types: 0.37.35 + '@discordjs/builders': 1.7.0 + '@discordjs/collection': 1.5.3 + '@discordjs/formatters': 0.3.3 + '@discordjs/rest': 2.2.0 + '@discordjs/util': 1.0.2 + '@discordjs/ws': 1.0.2 + '@sapphire/snowflake': 3.5.1 + '@types/ws': 8.5.9 + discord-api-types: 0.37.61 fast-deep-equal: 3.1.3 lodash.snakecase: 4.1.1 - tslib: 2.5.0 - undici: 5.21.0 - ws: 8.13.0 + tslib: 2.6.2 + undici: 5.27.2 + ws: 8.14.2 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -3350,15 +3379,6 @@ packages: dependencies: flat-cache: 3.0.4 - /file-type@18.2.1: - resolution: {integrity: sha512-Yw5MtnMv7vgD2/6Bjmmuegc8bQEVA9GmAyaR18bMYWKqsWDG9wgYZ1j4I6gNMF5Y5JBDcUcjRQqNQx7Y8uotcg==} - engines: {node: '>=14.16'} - dependencies: - readable-web-to-node-stream: 3.0.2 - strtok3: 7.0.0 - token-types: 5.0.1 - dev: false - /fill-range@7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} @@ -3905,6 +3925,10 @@ packages: engines: {node: '>=12'} dev: false + /magic-bytes.js@1.10.0: + resolution: {integrity: sha512-/k20Lg2q8LE5xiaaSkMXk4sfvI+9EGEykFS4b0CHHGWqDYU0bGUFSwchNOMA56D7TCs9GwVTkqe9als1/ns8UQ==} + dev: false + /magic-string@0.25.9: resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} dependencies: @@ -4470,11 +4494,6 @@ packages: engines: {node: '>=8'} dev: true - /peek-readable@5.0.0: - resolution: {integrity: sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==} - engines: {node: '>=14.16'} - dev: false - /pg-connection-string@2.5.0: resolution: {integrity: sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==} dev: false @@ -4720,13 +4739,6 @@ packages: util-deprecate: 1.0.2 dev: false - /readable-web-to-node-stream@3.0.2: - resolution: {integrity: sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==} - engines: {node: '>=8'} - dependencies: - readable-stream: 3.6.2 - dev: false - /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -5116,11 +5128,6 @@ packages: engines: {node: '>= 0.8'} dev: false - /streamsearch@1.1.0: - resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} - engines: {node: '>=10.0.0'} - dev: false - /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -5157,14 +5164,6 @@ packages: dev: false optional: true - /strtok3@7.0.0: - resolution: {integrity: sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==} - engines: {node: '>=14.16'} - dependencies: - '@tokenizer/token': 0.3.0 - peek-readable: 5.0.0 - dev: false - /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -5263,14 +5262,6 @@ packages: engines: {node: '>=0.6'} dev: false - /token-types@5.0.1: - resolution: {integrity: sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==} - engines: {node: '>=14.16'} - dependencies: - '@tokenizer/token': 0.3.0 - ieee754: 1.2.1 - dev: false - /toposort-class@1.0.1: resolution: {integrity: sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==} dev: false @@ -5354,6 +5345,10 @@ packages: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} dev: false + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + dev: false + /tsutils@3.21.0(typescript@4.9.0-dev.20221013): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} @@ -5428,11 +5423,11 @@ packages: resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} dev: false - /undici@5.21.0: - resolution: {integrity: sha512-HOjK8l6a57b2ZGXOcUsI5NLfoTrfmbOl90ixJDl0AEFG4wgHNDQxtZy15/ZQp7HhjkpaGlp/eneMgtsu1dIlUA==} - engines: {node: '>=12.18'} + /undici@5.27.2: + resolution: {integrity: sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==} + engines: {node: '>=14.0'} dependencies: - busboy: 1.6.0 + '@fastify/busboy': 2.1.1 dev: false /unique-filename@1.1.1: @@ -5693,8 +5688,8 @@ packages: /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - /ws@8.13.0: - resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + /ws@8.14.2: + resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 diff --git a/website/src/components/Navbar.vue b/website/src/components/Navbar.vue index f0ddb733..13c6e391 100644 --- a/website/src/components/Navbar.vue +++ b/website/src/components/Navbar.vue @@ -11,6 +11,8 @@ import { router } from "main"; const user = session.value?.user; +console.log(user) + const navigation = [ { name: "Features", link: "/" }, { name: "Support server", link: "https://discord.gg/9aT626ABdq" }, @@ -49,7 +51,7 @@ onMounted(async () => {