From be0fe7340106e3a81818f6cdd9197c9302e31387 Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Mon, 2 Jan 2023 17:13:24 +0000 Subject: [PATCH 01/94] fix: intake role and add run sal --- core/src/elo/elo.resolver.ts | 14 +++++++++++--- core/src/franchise/player/player.service.ts | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/src/elo/elo.resolver.ts b/core/src/elo/elo.resolver.ts index 74491dd7d..b354a6aa7 100644 --- a/core/src/elo/elo.resolver.ts +++ b/core/src/elo/elo.resolver.ts @@ -6,6 +6,7 @@ import {DataSource} from "typeorm"; import {MLE_OrganizationTeam} from "../database/mledb"; import {GqlJwtGuard} from "../identity/auth/gql-auth-guard"; import {MLEOrganizationTeamGuard} from "../mledb/mledb-player/mle-organization-team.guard"; +import {EloConsumer} from "./elo.consumer"; import {EloService} from "./elo.service"; import type {NewPlayerBySalary} from "./elo-connector"; import {EloConnectorService, EloEndpoint} from "./elo-connector"; @@ -15,9 +16,9 @@ export class EloResolver { constructor( private readonly eloService: EloService, private readonly eloConnectorService: EloConnectorService, - @InjectDataSource() private readonly ds: DataSource, - ) { - } + private readonly eloConsumer: EloConsumer, + @InjectDataSource() private readonly ds: DataSource, + ) {} @Mutation(() => String) @UseGuards(GqlJwtGuard, MLEOrganizationTeamGuard(MLE_OrganizationTeam.MLEDB_ADMIN)) @@ -55,4 +56,11 @@ export class EloResolver { return false; } + + @Mutation(() => Boolean) + @UseGuards(GqlJwtGuard, MLEOrganizationTeamGuard(MLE_OrganizationTeam.MLEDB_ADMIN)) + async runSalaries(): Promise { + await this.eloConsumer.runSalaries(); + return true; + } } diff --git a/core/src/franchise/player/player.service.ts b/core/src/franchise/player/player.service.ts index e21b0089f..010a6f0e4 100644 --- a/core/src/franchise/player/player.service.ts +++ b/core/src/franchise/player/player.service.ts @@ -379,6 +379,7 @@ export class PlayerService { discordId: discordId, modePreference: preference, teamName: "Pend", + role: "NONE", } as MLE_Player; player = this.mle_playerRepository.create(player); From e875208b5d4f656cdfc7644f999e04a89508706f Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Sun, 8 Jan 2023 22:36:13 +0000 Subject: [PATCH 02/94] feat: mledb name sync --- .../administrator-commands.module.ts | 14 ++--- .../database-sync.marshal.ts | 51 +++++++++++++++++++ .../src/service-connectors/core/core.types.ts | 5 ++ .../GetNicknameByDiscordUser.schema.ts | 9 ++++ .../service-connectors/core/schemas/index.ts | 3 +- core/src/mledb/mledb-interface.module.ts | 6 +-- .../mledb-player/mledb-player.controller.ts | 35 +++++++++++++ 7 files changed, 113 insertions(+), 10 deletions(-) create mode 100644 clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts create mode 100644 common/src/service-connectors/core/schemas/GetNicknameByDiscordUser.schema.ts create mode 100644 core/src/mledb/mledb-player/mledb-player.controller.ts diff --git a/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts b/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts index fd7bdbb6a..ec57db92e 100644 --- a/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts +++ b/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts @@ -4,6 +4,7 @@ import {CoreModule, EventsModule} from "@sprocketbot/common"; import {DiscordModule} from "../../discord/discord.module"; import {EmbedModule} from "../../embed/embed.module"; import {CommandsModule} from "../../marshal"; +import {DatabaseSyncMarshal} from "./database-sync.marshal"; // import {CommandDecoratorTestMarshal} from "./command-decorator-test.marshal"; // import {DebugCommandsMarshal} from "./debug-commands.marshal"; import {DeveloperCommandsMarshal} from "./developer-commands.marshal"; @@ -20,13 +21,14 @@ import {DeveloperCommandsMarshal} from "./developer-commands.marshal"; EventsModule, ], providers: [ - // TODO scope by role before re-adding - // DebugCommandsMarshal, - // SprocketStatusMarshal, - // MiscCommandsMarshal, - // SprocketConfigurationMarshal, - // CommandDecoratorTestMarshal, + // TODO scope by role before re-adding + // DebugCommandsMarshal, + // SprocketStatusMarshal, + // MiscCommandsMarshal, + // SprocketConfigurationMarshal, + // CommandDecoratorTestMarshal, DeveloperCommandsMarshal, + DatabaseSyncMarshal, ], }) export class AdministratorCommandsModule {} diff --git a/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts b/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts new file mode 100644 index 000000000..c47b9857d --- /dev/null +++ b/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts @@ -0,0 +1,51 @@ +import {Logger} from "@nestjs/common"; +import {CoreEndpoint, ResponseStatus} from "@sprocketbot/common"; +import {Message} from "discord.js"; + +import {Command, Marshal} from "../../marshal"; + +export class DatabaseSyncMarshal extends Marshal { + private readonly logger = new Logger(DatabaseSyncMarshal.name); + + @Command({ + name: "syncNames", + args: [], + docs: "Sync all player names in the main MLE server.", + }) + async syncNames(m: Message): Promise { + if ( + ![ + "353194025995730945", // Adi + "105408136285818880", // Hyper + "423850557334093827", // Hoos + "470703275163779084", // Achilles + "243430304319143936", // Kunics + ].includes(m.author.id) + ) return; + + await m.reply("Starting sync..."); + + const serverId = "172404472637685760"; // MLE Main + const server = await this.botClient.guilds.fetch(serverId); + await server.members.fetch(); + + for (const member of server.members.cache.values()) { + const nicknameRequest = await this.coreService.send( + CoreEndpoint.GetNicknameByDiscordUser, + {discordId: member.id}, + ); + if (nicknameRequest.status === ResponseStatus.ERROR) { + this.logger.log(`Failed to get nickname for ${member.id}`); + continue; + } + + if (member.nickname === nicknameRequest.data) continue; + + await member.setNickname(nicknameRequest.data).catch(err => { + this.logger.error(err); + }); + } + + await m.reply("Sync complete!"); + } +} diff --git a/common/src/service-connectors/core/core.types.ts b/common/src/service-connectors/core/core.types.ts index 0fbe3f6a1..b2bcba5fd 100644 --- a/common/src/service-connectors/core/core.types.ts +++ b/common/src/service-connectors/core/core.types.ts @@ -31,6 +31,7 @@ export enum CoreEndpoint { GetMatchInformationAndStakeholders = "GetMatchInformationAndStakeholders", GetGameModeById = "GetGameModeById", GetGameByGameMode = "GetGameByGameMode", + GetNicknameByDiscordUser = "GetNicknameByDiscordUser", } export const CoreSchemas = { @@ -142,6 +143,10 @@ export const CoreSchemas = { input: Schemas.GetGameByGameMode_Request, output: Schemas.GetGameByGameMode_Response, }, + [CoreEndpoint.GetNicknameByDiscordUser]: { + input: Schemas.GetNicknameByDiscordUser_Request, + output: Schemas.GetNicknameByDiscordUser_Response, + }, }; export type CoreInput = z.infer; diff --git a/common/src/service-connectors/core/schemas/GetNicknameByDiscordUser.schema.ts b/common/src/service-connectors/core/schemas/GetNicknameByDiscordUser.schema.ts new file mode 100644 index 000000000..31998a8a4 --- /dev/null +++ b/common/src/service-connectors/core/schemas/GetNicknameByDiscordUser.schema.ts @@ -0,0 +1,9 @@ +import {z} from "zod"; + +export const GetNicknameByDiscordUser_Request = z.object({ + discordId: z.string(), +}); + +export const GetNicknameByDiscordUser_Response = z.string(); + +export type GetNicknameByDiscordUserResponse = z.infer; diff --git a/common/src/service-connectors/core/schemas/index.ts b/common/src/service-connectors/core/schemas/index.ts index 25ac53e0a..0148b46ea 100644 --- a/common/src/service-connectors/core/schemas/index.ts +++ b/common/src/service-connectors/core/schemas/index.ts @@ -2,8 +2,8 @@ export * from "./GenerateReportCard.schema"; export * from "./GetDiscordIdByUser.schema"; export * from "./GetFranchiseProfile.schema"; export * from "./GetFranchiseStaff.schema"; -export * from "./GetGameModeById.schema"; export * from "./GetGameByGameMode.schema"; +export * from "./GetGameModeById.schema"; export * from "./GetGameSkillGroupProfile.schema"; export * from "./GetGuildsByOrganizationId.schema"; export * from "./GetMatchById.schema"; @@ -12,6 +12,7 @@ export * from "./GetMatchInformationAndStakeholders.schema"; export * from "./GetMatchReportCardWebhooks.schema"; export * from "./GetMember.schema"; export * from "./GetMleMatchInfoAndStakeholders.schema"; +export * from "./GetNicknameByDiscordUser.schema"; export * from "./GetOrganizationByDiscordGuild.schema"; export * from "./GetOrganizationConfiguration"; export * from "./GetOrganizationDiscordGuildsByGuild.schema"; diff --git a/core/src/mledb/mledb-interface.module.ts b/core/src/mledb/mledb-interface.module.ts index c902a2648..b121a7c74 100644 --- a/core/src/mledb/mledb-interface.module.ts +++ b/core/src/mledb/mledb-interface.module.ts @@ -12,6 +12,7 @@ import {UtilModule} from "../util/util.module"; import {MledbMatchController} from "./mledb-match/mledb-match.controller"; import {MledbMatchService} from "./mledb-match/mledb-match.service"; import {MledbPlayerService} from "./mledb-player"; +import {MledbPlayerController} from "./mledb-player/mledb-player.controller"; import {MledbPlayerAccountService} from "./mledb-player-account"; import {MledbFinalizationService} from "./mledb-scrim"; @@ -39,7 +40,6 @@ import {MledbFinalizationService} from "./mledb-scrim"; MledbPlayerAccountService, MledbFinalizationService, ], - controllers: [MledbMatchController], + controllers: [MledbMatchController, MledbPlayerController], }) -export class MledbInterfaceModule { -} +export class MledbInterfaceModule {} diff --git a/core/src/mledb/mledb-player/mledb-player.controller.ts b/core/src/mledb/mledb-player/mledb-player.controller.ts new file mode 100644 index 000000000..9084eae60 --- /dev/null +++ b/core/src/mledb/mledb-player/mledb-player.controller.ts @@ -0,0 +1,35 @@ +import {Controller} from "@nestjs/common"; +import {MessagePattern, Payload} from "@nestjs/microservices"; +import {InjectRepository} from "@nestjs/typeorm"; +import {CoreEndpoint, CoreSchemas} from "@sprocketbot/common"; +import {Repository} from "typeorm"; + +import {MLE_Player, MLE_Team} from "../../database/mledb"; + +@Controller("mledb-player") +export class MledbPlayerController { + constructor( + @InjectRepository(MLE_Player) + private readonly playerRepository: Repository, + @InjectRepository(MLE_Team) + private readonly teamRepository: Repository, + ) {} + + @MessagePattern(CoreEndpoint.GetNicknameByDiscordUser) + async getNicknameByDiscordUser(@Payload() payload: unknown): Promise { + const data = CoreSchemas.GetNicknameByDiscordUser.input.parse(payload); + const player = await this.playerRepository.findOneOrFail({ + where: {discordId: data.discordId}, + }); + + if (player.teamName === "FP") { + return player.name; + } + + const team = await this.teamRepository.findOneOrFail({ + where: {name: player.teamName}, + }); + + return `${team.callsign} | ${player.name}`; + } +} From f102ef7122a36cae21539cd88aa6d6a02ae8b04e Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Tue, 10 Jan 2023 03:51:34 +0000 Subject: [PATCH 03/94] fix: intake --- core/src/franchise/player/player.resolver.ts | 119 ++++++++++--------- core/src/franchise/player/player.service.ts | 5 +- 2 files changed, 63 insertions(+), 61 deletions(-) diff --git a/core/src/franchise/player/player.resolver.ts b/core/src/franchise/player/player.resolver.ts index f6a689f5c..dd7c023e0 100644 --- a/core/src/franchise/player/player.resolver.ts +++ b/core/src/franchise/player/player.resolver.ts @@ -120,6 +120,7 @@ export class PlayerResolver { @Args("playerId", {type: () => Int}) playerId: number, @Args("salary", {type: () => Float}) salary: number, @Args("skillGroupId", {type: () => Int}) skillGroupId: number, + @Args("silent", {type: () => Boolean, nullable: true}) silent?: boolean, ): Promise { const player = await this.playerService.getPlayer({ where: {id: playerId}, @@ -158,8 +159,6 @@ export class PlayerResolver { }); const orgProfile = await this.organizationService.getOrganizationProfileForOrganization(player.member.organization.id); - if (player.skillGroup.id === skillGroupId) return "ERROR: This player is already in this skill group"; - const inputData: ManualSkillGroupChange = { id: playerId, salary: salary, @@ -170,69 +169,71 @@ export class PlayerResolver { await this.playerService.updatePlayerStanding(playerId, salary, skillGroupId); await this.eloConnectorService.createJob(EloEndpoint.SGChange, inputData); - await this.eventsService.publish(EventTopic.PlayerSkillGroupChanged, { - playerId: player.id, - name: player.member.profile.name, - organizationId: player.skillGroup.organizationId, - discordId: discordAccount.accountId, - old: { - id: player.skillGroup.id, - name: player.skillGroup.profile.description, - salary: player.salary, - discordEmojiId: player.skillGroup.profile.discordEmojiId, - }, - new: { - id: skillGroup.id, - name: skillGroup.profile.description, - salary: salary, - discordEmojiId: skillGroup.profile.discordEmojiId, - }, - }); + if (!silent) { + await this.eventsService.publish(EventTopic.PlayerSkillGroupChanged, { + playerId: player.id, + name: player.member.profile.name, + organizationId: player.skillGroup.organizationId, + discordId: discordAccount.accountId, + old: { + id: player.skillGroup.id, + name: player.skillGroup.profile.description, + salary: player.salary, + discordEmojiId: player.skillGroup.profile.discordEmojiId, + }, + new: { + id: skillGroup.id, + name: skillGroup.profile.description, + salary: salary, + discordEmojiId: skillGroup.profile.discordEmojiId, + }, + }); - await this.notificationService.send(NotificationEndpoint.SendNotification, { - type: NotificationType.BASIC, - userId: player.member.user.id, - notification: { - type: NotificationMessageType.DirectMessage, - userId: discordAccount.accountId, - payload: { - embeds: [ { - title: "You Have Ranked Out", - description: `You have been ranked out from ${player.skillGroup.profile.description} to ${skillGroup.profile.description}.`, - author: { - name: `${orgProfile.name}`, - }, - fields: [ - { - name: "New League", - value: `${skillGroup.profile.description}`, + await this.notificationService.send(NotificationEndpoint.SendNotification, { + type: NotificationType.BASIC, + userId: player.member.user.id, + notification: { + type: NotificationMessageType.DirectMessage, + userId: discordAccount.accountId, + payload: { + embeds: [ { + title: "You Have Ranked Out", + description: `You have been ranked out from ${player.skillGroup.profile.description} to ${skillGroup.profile.description}.`, + author: { + name: `${orgProfile.name}`, }, - { - name: "New Salary", - value: `${salary}`, + fields: [ + { + name: "New League", + value: `${skillGroup.profile.description}`, + }, + { + name: "New Salary", + value: `${salary}`, + }, + ], + footer: { + text: orgProfile.name, + }, + timestamp: Date.now(), + } ], + }, + brandingOptions: { + organizationId: player.member.organization.id, + options: { + author: { + icon: true, + }, + color: true, + thumbnail: true, + footer: { + icon: true, }, - ], - footer: { - text: orgProfile.name, - }, - timestamp: Date.now(), - } ], - }, - brandingOptions: { - organizationId: player.member.organization.id, - options: { - author: { - icon: true, - }, - color: true, - thumbnail: true, - footer: { - icon: true, }, }, }, - }, - }); + }); + } return "SUCCESS"; } diff --git a/core/src/franchise/player/player.service.ts b/core/src/franchise/player/player.service.ts index 010a6f0e4..0367dc8ef 100644 --- a/core/src/franchise/player/player.service.ts +++ b/core/src/franchise/player/player.service.ts @@ -196,7 +196,7 @@ export class PlayerService { relations: {member: {user: true, profile: true} }, }); - player = this.playerRepository.merge(player, {skillGroup, salary}); + player = this.playerRepository.merge(player, {skillGroupId: skillGroup.id, salary: salary}); this.memberProfileRepository.merge(player.member.profile, {name}); await runner.manager.save(player); @@ -213,7 +213,7 @@ export class PlayerService { runner, ); - if (skillGroup.id !== player.skillGroupId) await this.eloConnectorService.createJob(EloEndpoint.SGChange, { + await this.eloConnectorService.createJob(EloEndpoint.SGChange, { id: player.id, salary: salary, skillGroup: skillGroup.ordinal, @@ -301,6 +301,7 @@ export class PlayerService { ): Promise { const updatedPlayer = this.mle_playerRepository.merge(player, { updatedBy: "Sprocket FA Intake", + updatedAt: new Date(), name: name, salary: salary, league: league, From abd41027ab7e2cef6b0f0bfce83008914719d274 Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Tue, 17 Jan 2023 01:46:11 +0000 Subject: [PATCH 04/94] fix: scrim report cards --- core/src/scrim/scrim.service.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/core/src/scrim/scrim.service.ts b/core/src/scrim/scrim.service.ts index 3ede43b28..382e19495 100644 --- a/core/src/scrim/scrim.service.ts +++ b/core/src/scrim/scrim.service.ts @@ -166,7 +166,13 @@ export class ScrimService { } async getRelevantWebhooks(scrim: CoreInput): Promise> { - const skillGroupProfile = await this.gameSkillGroupService.getGameSkillGroupProfile(scrim.skillGroupId); + const skillGroup = await this.gameSkillGroupService.getGameSkillGroupById(scrim.skillGroupId, { + relations: { + profile: { + scrimReportCardWebhook: true, + }, + }, + }); // TODO: Refactor after we move to sprocket rosters const franchiseProfiles = await Promise.all(scrim.players.map(async p => { @@ -176,7 +182,11 @@ export class ScrimService { const franchise = await this.franchiseService.getFranchise({ where: {profile: {title: mleTeam.name} }, - relations: {profile: true}, + relations: { + profile: { + scrimReportCardWebhook: true, + }, + }, }).catch(() => null); if (!franchise) return undefined; @@ -184,7 +194,7 @@ export class ScrimService { })); return { - skillGroupWebhook: skillGroupProfile.scrimReportCardWebhook?.url, + skillGroupWebhook: skillGroup.profile.scrimReportCardWebhook?.url, franchiseWebhooks: Array.from(new Set(franchiseProfiles.map(fp => fp?.scrimReportCardWebhook?.url).filter(f => f))) as string[], }; } From 834339add79fc654500c6e77525e0afc88f534c5 Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Tue, 17 Jan 2023 01:48:51 +0000 Subject: [PATCH 05/94] fix: rankdown salary being applied before accept --- core/src/franchise/player/player.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/franchise/player/player.service.ts b/core/src/franchise/player/player.service.ts index 0367dc8ef..066d7be4c 100644 --- a/core/src/franchise/player/player.service.ts +++ b/core/src/franchise/player/player.service.ts @@ -584,7 +584,7 @@ export class PlayerService { playerDelta.rankout.salary, )); } else if (playerDelta.rankout.degreeOfStiffness === DegreeOfStiffness.SOFT) { - await this.updatePlayerStanding(playerDelta.playerId, playerDelta.rankout.salary); + await this.updatePlayerStanding(playerDelta.playerId, playerDelta.newSalary); const skillGroup = await this.skillGroupService.getGameSkillGroup({ where: { From f686fe42968c73113477d064e766cc1e395e923a Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Tue, 17 Jan 2023 09:54:30 -0600 Subject: [PATCH 06/94] fix: franchise report cards --- core/src/scrim/scrim.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/scrim/scrim.service.ts b/core/src/scrim/scrim.service.ts index 382e19495..8f6532648 100644 --- a/core/src/scrim/scrim.service.ts +++ b/core/src/scrim/scrim.service.ts @@ -190,7 +190,7 @@ export class ScrimService { }).catch(() => null); if (!franchise) return undefined; - return this.franchiseService.getFranchiseProfile(franchise.id); + return franchise.profile; })); return { From 9d7963cc1a5b3ddf4ace43ad0834cd65b1375dbd Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Sat, 28 Jan 2023 19:41:10 +0000 Subject: [PATCH 07/94] fix: crashing sub service --- common/src/filters/all-exceptions.filter.ts | 28 +++++++++++-------- .../replay-parse.subscriber.ts | 18 +++++++----- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/common/src/filters/all-exceptions.filter.ts b/common/src/filters/all-exceptions.filter.ts index 2279534be..02a0240c4 100644 --- a/common/src/filters/all-exceptions.filter.ts +++ b/common/src/filters/all-exceptions.filter.ts @@ -29,27 +29,33 @@ export class AllExceptionsFilter implements ExceptionFilter { catch(exception: unknown, host: ArgumentsHost): void { if (exception instanceof Error) { this.logger.error({ - name: exception.name, message: exception.message, stack: exception.stack, + name: exception.name, + message: exception.message, + stack: exception.stack, }); } else { - this.logger.error(`[NOT ERROR SUBTYPE] ${exception}`); + this.logger.error(`[NOT ERROR SUBTYPE] ${JSON.stringify(exception)}`); } const ctx = host.switchToHttp(); const response = ctx.getResponse(); - if (exception instanceof HttpException) { + if (["graphql", "rpc"].includes(host.getType())) { + // GraphQL and RPC do not have normal response methods (status/json), so there's nothing else we can do. + // Matchmaking service was crashing wish `response.status is not a function` on throwing an error. + return; + } else if (exception instanceof HttpException) { const status = exception.getStatus(); - response - .status(status) - .json({ - statusCode: status, - timestamp: new Date().toISOString(), - message: exception.message, - }); + response.status(status).json({ + statusCode: status, + timestamp: new Date().toISOString(), + message: exception.message, + }); } else { response.status(500).json({ - statusCode: 500, timestamp: new Date().toISOString(), message: "Internal Server Error", + statusCode: 500, + timestamp: new Date().toISOString(), + message: "Internal Server Error", }); } } diff --git a/microservices/submission-service/src/replay-submission/parse-subscriber/replay-parse.subscriber.ts b/microservices/submission-service/src/replay-submission/parse-subscriber/replay-parse.subscriber.ts index 0eb310680..8fc646c38 100644 --- a/microservices/submission-service/src/replay-submission/parse-subscriber/replay-parse.subscriber.ts +++ b/microservices/submission-service/src/replay-submission/parse-subscriber/replay-parse.subscriber.ts @@ -45,13 +45,17 @@ export class ReplayParseSubscriber { // eslint-disable-next-line @typescript-eslint/no-misused-promises observable.subscribe(async (p: ProgressMessage) => { - await this.submissionCrudService.updateItemProgress(submissionId, p); - - await this.eventsService.publish(EventTopic.SubmissionProgress, { - submissionId: submissionId, - redisKey: getSubmissionKey(submissionId), - }); - // TODO: Clean up subscription to prevent mem leak + try { + await this.submissionCrudService.updateItemProgress(submissionId, p); + + await this.eventsService.publish(EventTopic.SubmissionProgress, { + submissionId: submissionId, + redisKey: getSubmissionKey(submissionId), + }); + // TODO: Clean up subscription to prevent mem leak + } catch (e) { + this.logger.error(e); + } }); } } From edf38ebfcbd12d7cdfc4a1522ee6077aa30c24dc Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Sun, 5 Feb 2023 03:43:59 +0000 Subject: [PATCH 08/94] fix: bad merge --- core/src/elo/elo.resolver.ts | 2 +- core/src/franchise/player/player.service.ts | 2 +- core/src/mledb/mledb-interface.module.ts | 16 +++------------- .../mledb-player/mledb-player.controller.ts | 8 +++----- .../mledb/mledb-player/mledb-player.service.ts | 15 ++++++++------- 5 files changed, 16 insertions(+), 27 deletions(-) diff --git a/core/src/elo/elo.resolver.ts b/core/src/elo/elo.resolver.ts index 75b81ee24..f9799b2e5 100644 --- a/core/src/elo/elo.resolver.ts +++ b/core/src/elo/elo.resolver.ts @@ -57,7 +57,7 @@ export class EloResolver { } @Mutation(() => Boolean) - @UseGuards(GqlJwtGuard, MLEOrganizationTeamGuard(MLE_OrganizationTeam.MLEDB_ADMIN)) + @UseGuards(GraphQLJwtAuthGuard, MLEOrganizationTeamGuard(MLE_OrganizationTeam.MLEDB_ADMIN)) async runSalaries(): Promise { await this.eloConsumer.runSalaries(); return true; diff --git a/core/src/franchise/player/player.service.ts b/core/src/franchise/player/player.service.ts index d272f0acb..99f4ac007 100644 --- a/core/src/franchise/player/player.service.ts +++ b/core/src/franchise/player/player.service.ts @@ -255,7 +255,7 @@ export class PlayerService { ), ); } else { - await this.updatePlayerStanding(playerDelta.playerId, playerDelta.rankout.salary); + await this.updatePlayerStanding(playerDelta.playerId, playerDelta.newSalary); const skillGroup = await this.skillGroupRepository.findOneOrFail({ where: { diff --git a/core/src/mledb/mledb-interface.module.ts b/core/src/mledb/mledb-interface.module.ts index 2a1a28d80..d143621b9 100644 --- a/core/src/mledb/mledb-interface.module.ts +++ b/core/src/mledb/mledb-interface.module.ts @@ -13,9 +13,8 @@ import {MledbBridgeModule} from "./mledb-bridge/mledb_bridge.module"; import {MledbMatchController} from "./mledb-match/mledb-match.controller"; import {MledbMatchService} from "./mledb-match/mledb-match.service"; import {MledbPlayerService} from "./mledb-player"; -import {MledbPlayerResolver} from "./mledb-player/mledb-player.resolver"; import {MledbPlayerController} from "./mledb-player/mledb-player.controller"; -import {MledbPlayerAccountService} from "./mledb-player-account"; +import {MledbPlayerResolver} from "./mledb-player/mledb-player.resolver"; import {MledbFinalizationService} from "./mledb-scrim"; @Module({ @@ -31,17 +30,8 @@ import {MledbFinalizationService} from "./mledb-scrim"; SchedulingDatabaseModule, UtilModule, ], - providers: [ - MledbPlayerService, - MledbPlayerResolver, - MledbFinalizationService, - MledbMatchService, - ], - exports: [ - MledbMatchService, - MledbPlayerService, - MledbFinalizationService, - ], + providers: [MledbPlayerService, MledbPlayerResolver, MledbFinalizationService, MledbMatchService], + exports: [MledbMatchService, MledbPlayerService, MledbFinalizationService], controllers: [MledbMatchController, MledbPlayerController], }) export class MledbInterfaceModule {} diff --git a/core/src/mledb/mledb-player/mledb-player.controller.ts b/core/src/mledb/mledb-player/mledb-player.controller.ts index 9084eae60..0562a9a28 100644 --- a/core/src/mledb/mledb-player/mledb-player.controller.ts +++ b/core/src/mledb/mledb-player/mledb-player.controller.ts @@ -4,15 +4,13 @@ import {InjectRepository} from "@nestjs/typeorm"; import {CoreEndpoint, CoreSchemas} from "@sprocketbot/common"; import {Repository} from "typeorm"; -import {MLE_Player, MLE_Team} from "../../database/mledb"; +import {MLE_Player, MLE_Team} from "../database"; @Controller("mledb-player") export class MledbPlayerController { constructor( - @InjectRepository(MLE_Player) - private readonly playerRepository: Repository, - @InjectRepository(MLE_Team) - private readonly teamRepository: Repository, + @InjectRepository(MLE_Player) private readonly playerRepository: Repository, + @InjectRepository(MLE_Team) private readonly teamRepository: Repository, ) {} @MessagePattern(CoreEndpoint.GetNicknameByDiscordUser) diff --git a/core/src/mledb/mledb-player/mledb-player.service.ts b/core/src/mledb/mledb-player/mledb-player.service.ts index f5d4a52fa..18283bfae 100644 --- a/core/src/mledb/mledb-player/mledb-player.service.ts +++ b/core/src/mledb/mledb-player/mledb-player.service.ts @@ -159,6 +159,7 @@ export class MledbPlayerService { discordId: discordId, modePreference: preference, teamName: "Pend", + role: Role.NONE, } as MLE_Player; player = this.playerRepository.create(player); @@ -212,6 +213,7 @@ export class MledbPlayerService { ): Promise { const updatedPlayer = this.playerRepository.merge(player, { updatedBy: "Sprocket FA Intake", + updatedAt: new Date(), name: name, salary: salary, league: league, @@ -295,7 +297,7 @@ export class MledbPlayerService { relations: {member: {user: true, profile: true}}, }); - player = this.sprocketPlayerRepository.merge(player, {skillGroup, salary}); + player = this.sprocketPlayerRepository.merge(player, {skillGroupId: skillGroup.id, salary: salary}); this.sprocketMemberProfiledRepository.profileRepository.merge(player.member.profile, {name}); await runner.manager.save(player); @@ -312,12 +314,11 @@ export class MledbPlayerService { runner, ); - if (skillGroup.id !== player.skillGroupId) - await this.eloConnectorService.createJob(EloEndpoint.SGChange, { - id: player.id, - salary: salary, - skillGroup: skillGroup.ordinal, - }); + await this.eloConnectorService.createJob(EloEndpoint.SGChange, { + id: player.id, + salary: salary, + skillGroup: skillGroup.ordinal, + }); } else { const user = this.sprocketUserProfiledRepository.primaryRepository.create({}); From 849fdbd2a78f4ee4d5ec7dcb7d0c98d690a7409c Mon Sep 17 00:00:00 2001 From: Bryan Pikaard Date: Sun, 5 Feb 2023 03:44:58 +0000 Subject: [PATCH 09/94] fix: format --- .../administrator-commands.module.ts | 12 ++++++------ .../administrator-commands/database-sync.marshal.ts | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts b/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts index 1a16935b0..fe4e12ba3 100644 --- a/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts +++ b/clients/discord-bot/src/commands/administrator-commands/administrator-commands.module.ts @@ -15,12 +15,12 @@ import {DeveloperCommandsMarshal} from "./developer-commands.marshal"; @Module({ imports: [DiscordModule, CommandsModule, EmbedModule, CoreModule, EventsModule], providers: [ - // TODO scope by role before re-adding - // DebugCommandsMarshal, - // SprocketStatusMarshal, - // MiscCommandsMarshal, - // SprocketConfigurationMarshal, - // CommandDecoratorTestMarshal, + // TODO scope by role before re-adding + // DebugCommandsMarshal, + // SprocketStatusMarshal, + // MiscCommandsMarshal, + // SprocketConfigurationMarshal, + // CommandDecoratorTestMarshal, DeveloperCommandsMarshal, DatabaseSyncMarshal, ], diff --git a/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts b/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts index c47b9857d..362d6293c 100644 --- a/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts +++ b/clients/discord-bot/src/commands/administrator-commands/database-sync.marshal.ts @@ -21,7 +21,8 @@ export class DatabaseSyncMarshal extends Marshal { "470703275163779084", // Achilles "243430304319143936", // Kunics ].includes(m.author.id) - ) return; + ) + return; await m.reply("Starting sync..."); @@ -30,10 +31,9 @@ export class DatabaseSyncMarshal extends Marshal { await server.members.fetch(); for (const member of server.members.cache.values()) { - const nicknameRequest = await this.coreService.send( - CoreEndpoint.GetNicknameByDiscordUser, - {discordId: member.id}, - ); + const nicknameRequest = await this.coreService.send(CoreEndpoint.GetNicknameByDiscordUser, { + discordId: member.id, + }); if (nicknameRequest.status === ResponseStatus.ERROR) { this.logger.log(`Failed to get nickname for ${member.id}`); continue; From ccc148086aa270c90eb8ff7d3dec9c6863b8ea48 Mon Sep 17 00:00:00 2001 From: Brian D Date: Tue, 21 Feb 2023 00:11:15 -0600 Subject: [PATCH 10/94] chore: redo button variants --- .../lib/components/atoms/Button/Button.svelte | 43 ++++++++++--------- .../src/lib/components/atoms/Button/index.ts | 1 - .../src/lib/components/atoms/Button/types.ts | 16 +++++-- 3 files changed, 35 insertions(+), 25 deletions(-) diff --git a/clients/web/src/lib/components/atoms/Button/Button.svelte b/clients/web/src/lib/components/atoms/Button/Button.svelte index 3e3a08e32..d8b0a8ab2 100644 --- a/clients/web/src/lib/components/atoms/Button/Button.svelte +++ b/clients/web/src/lib/components/atoms/Button/Button.svelte @@ -1,25 +1,26 @@ -{#if type === "secondary"} - -{:else} - -{/if} + + + \ No newline at end of file diff --git a/clients/web/src/lib/components/atoms/Button/index.ts b/clients/web/src/lib/components/atoms/Button/index.ts index 5b9254749..8219bb0c2 100644 --- a/clients/web/src/lib/components/atoms/Button/index.ts +++ b/clients/web/src/lib/components/atoms/Button/index.ts @@ -1,2 +1 @@ export {default as Button} from "./Button.svelte"; -export {default as AltButton} from "./AltButton.svelte"; diff --git a/clients/web/src/lib/components/atoms/Button/types.ts b/clients/web/src/lib/components/atoms/Button/types.ts index e65e23c6f..c3bdbf00f 100644 --- a/clients/web/src/lib/components/atoms/Button/types.ts +++ b/clients/web/src/lib/components/atoms/Button/types.ts @@ -1,3 +1,13 @@ -export type ProgressBarVariant = "info" | "primary"; -export type ProgressBarSize = "sm" | "md" | "lg" | "xl"; -export type ProgressLocation = "hidden" | "inside" | "outside"; +export type ButtonVariant = + "default" | + "alt" | + "dark" | + "light" | + "success" | + "danger" | + "warning" +; + + +// export type ProgressBarSize = "sm" | "md" | "lg" | "xl"; +// export type ProgressLocation = "hidden" | "inside" | "outside"; From bdf3f0155d873dcd634fa27ac6ac6e8bb3ec5c5f Mon Sep 17 00:00:00 2001 From: Brian D Date: Tue, 21 Feb 2023 00:11:26 -0600 Subject: [PATCH 11/94] fix: typo --- clients/web/src/lib/components/atoms/Card/Card.svelte | 2 +- clients/web/src/lib/components/atoms/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/web/src/lib/components/atoms/Card/Card.svelte b/clients/web/src/lib/components/atoms/Card/Card.svelte index 1e5e56d34..7c29c966c 100644 --- a/clients/web/src/lib/components/atoms/Card/Card.svelte +++ b/clients/web/src/lib/components/atoms/Card/Card.svelte @@ -1,5 +1,5 @@
Date: Tue, 21 Feb 2023 00:11:35 -0600 Subject: [PATCH 12/94] feat: add centercard layout --- clients/web/src/lib/components/index.ts | 1 + .../layouts/CenterCard/CenterCard.story.svelte | 11 +++++++++++ .../components/layouts/CenterCard/CenterCard.svelte | 9 +++++++++ .../src/lib/components/layouts/CenterCard/index.ts | 1 + .../lib/components/layouts/Dashboard/Dashboard.svelte | 2 +- clients/web/src/lib/components/layouts/index.ts | 1 + 6 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 clients/web/src/lib/components/layouts/CenterCard/CenterCard.story.svelte create mode 100644 clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte create mode 100644 clients/web/src/lib/components/layouts/CenterCard/index.ts diff --git a/clients/web/src/lib/components/index.ts b/clients/web/src/lib/components/index.ts index cb66e1da4..8b81bfbb2 100644 --- a/clients/web/src/lib/components/index.ts +++ b/clients/web/src/lib/components/index.ts @@ -1,4 +1,5 @@ export * from "./abstract"; export * from "./actions"; export * from "./atoms"; +export * from "./layouts"; export * from "./molecules"; diff --git a/clients/web/src/lib/components/layouts/CenterCard/CenterCard.story.svelte b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.story.svelte new file mode 100644 index 000000000..0dbd91b56 --- /dev/null +++ b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.story.svelte @@ -0,0 +1,11 @@ + + + + + Page Content + + diff --git a/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte new file mode 100644 index 000000000..9a5d61d39 --- /dev/null +++ b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte @@ -0,0 +1,9 @@ + + +
+
+ +
+
\ No newline at end of file diff --git a/clients/web/src/lib/components/layouts/CenterCard/index.ts b/clients/web/src/lib/components/layouts/CenterCard/index.ts new file mode 100644 index 000000000..637518ce5 --- /dev/null +++ b/clients/web/src/lib/components/layouts/CenterCard/index.ts @@ -0,0 +1 @@ +export {default as CenterCard} from "./CenterCard.svelte" \ No newline at end of file diff --git a/clients/web/src/lib/components/layouts/Dashboard/Dashboard.svelte b/clients/web/src/lib/components/layouts/Dashboard/Dashboard.svelte index 5f69fbbe9..d2d222bbc 100644 --- a/clients/web/src/lib/components/layouts/Dashboard/Dashboard.svelte +++ b/clients/web/src/lib/components/layouts/Dashboard/Dashboard.svelte @@ -58,7 +58,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/clients/web/src/lib/images/logo/EpicGames.icon.ts b/clients/web/src/lib/images/logo/EpicGames.icon.ts new file mode 100644 index 000000000..60f6862b9 --- /dev/null +++ b/clients/web/src/lib/images/logo/EpicGames.icon.ts @@ -0,0 +1,25 @@ +import type { IconDefinition, IconName } from "@fortawesome/free-brands-svg-icons"; +import type { IconSource } from "@steeze-ui/svelte-icon/types"; + +// This is currently fairly brittle; the text/cutout isn't _actually_ cut out, it's just pretending. +export const EpicGames: IconSource = { + default: { + a: { + viewBox: `0 0 647.167 750.977`, + stroke: "none", + fill: "currentColor", + }, + path: [{ + "transform": "matrix(1.33333 0 0 -1.33333 -278.052 902.583)", + d: "M649.836 676.938h-397.22c-32.195 0-44.077-11.882-44.077-44.093V244.169c0-3.645.147-7.031.469-10.168.733-7.031.87-13.844 7.41-21.601.639-.76 7.315-5.728 7.315-5.728 3.59-1.761 6.043-3.058 10.093-4.688l195.596-81.948c10.154-4.655 14.4-6.47 21.775-6.323v-.001h.058c7.375-.145 11.62 1.669 21.776 6.324l195.595 81.948c4.05 1.63 6.502 2.927 10.094 4.688 0 0 6.676 4.968 7.314 5.728 6.539 7.757 6.677 14.57 7.41 21.6.322 3.138.47 6.524.47 10.169v388.676c0 32.21-11.883 44.093-44.078 44.093", + fill: "currentColor", + stroke: "none", + "clip-path": "M623.23 286.175l-.09-.897-.089-.985-.18-.897-.268-.896-.174-.807-.27-.897-.358-.807-.359-.718-.353-.806-.448-.717-.448-.718-.533-.717-.449-.717-.532-.627-.628-.628-.533-.538-.716-.628-.623-.538-.717-.538-.712-.442-.712-.538-.807-.448-.802-.359-.8-.448-.898-.359-.89-.359-.892-.268-.89-.27-.808-.268-.89-.18-.803-.179-.8-.179-.898-.18-.892-.089-.8-.09-.898-.09-.98-.09-.892-.089H595.65l-.893.089h-.98l-.892.09-.896.09-.98.09-.892.179-.89.09-.898.179-.892.179-.89.18-.892.179-.896.268-.802.18-.89.269-.893.269-.806.359-.89.269-.803.268-.892.359-.806.359-.802.359-.802.442-.806.359-.802.449-.712.447-.807.449-.712.448-.717.448-.712.538-.712.538-.717.538-.713.538-.627.538-.712.627.538.717.622.628.538.718.623.717.538.627.532.717.628.718.532.627.628.717.533.628.627.717.533.718.538.627.622.717.538.718.622.627.538.717.712-.538.802-.538.717-.538.802-.538.717-.448.802-.537.711-.449.808-.358.711-.449.802-.359.807-.358.801-.359.803-.269.806-.358.891-.269.892-.269.801-.269.897-.18.891-.179.891-.179.981-.09.896-.179h.892l.98-.089H599.13l.981.089.897.179.801.18.802.179.717.269.623.358.717.538.532.628.36.718.27.806.087.897v.179l-.088 1.076-.359.897-.449.627-.622.538-.718.538-.712.358-.8.359-.898.359-1.07.447-.623.18-.71.179-.808.27-.802.179-.89.269-.898.179-.98.269-.892.179-.98.269-.892.179-.897.269-.89.18-.892.269-.807.268-.89.18-.803.269-.8.269-.808.269-.98.359-.892.359-.892.358-.896.359-.8.448-.893.448-.717.448-.802.448-.712.538-.717.448-.622.539-.627.627-.623.628-.538.628-.532.627-.449.627-.443.718-.448.806-.359.622-.269.718-.263.807-.269.717-.18.897-.179.807-.09.896-.089.897-.09.985V314.859l.09.896.09.807.09.897.178.806.18.807.27.808.178.806.353.807.36.807.357.806.444.808.447.806.533.718.54.717.621.717.627.627.623.718.717.628.622.448.717.538.713.538.711.448.807.448.802.359.801.448.807.358.891.27.891.358.807.269.712.18.803.179.806.179.891.179.802.18.891.089.897.09.891.09.891.089h3.839l.981-.089.981-.09h.891l.986-.09.891-.179.981-.09.892-.179.807-.179.891-.179.891-.18.802-.179.896-.269.802-.269.802-.18.896-.358.802-.269.801-.358.802-.359.896-.359.802-.448.712-.359.807-.448.802-.448.712-.449.806-.538.713-.447.717-.539.712-.538.711-.537-.532-.718-.448-.717-.533-.717-.538-.718-.532-.806-.449-.717-.538-.718-.533-.717-.447-.717-.534-.718-.537-.717-.449-.717-.532-.807-.539-.717-.532-.717-.448-.717-.533-.717-.717.537-.8.449-.714.448-.717.538-.8.358-.719.449-.8.359-.713.358-.807.359-.712.358-.8.269-.718.359-.982.268-.89.27-.892.268-.897.18-.89.179-.892.18-.89.09-.898.089-.8.09h-1.963l-.98-.179-.898-.18-.8-.179-.713-.359-.628-.358-.802-.718-.538-.807-.352-.807-.09-.896v-.18l.09-1.165.442-.986.36-.538.621-.628.807-.448.712-.448.891-.359.986-.359 1.071-.358.712-.179.712-.269.807-.179.801-.269.891-.18.987-.269.981-.268.981-.27.98-.179.891-.269.981-.269.897-.179.892-.269.891-.269.801-.269.897-.269.802-.269.801-.269.986-.353.891-.449.891-.358.892-.448.807-.449.802-.448.711-.448.717-.538.713-.448.712-.628.717-.627.622-.718.627-.627.533-.718.538-.806.443-.717.45-.808.357-.717.27-.806.263-.807.18-.807.178-.897.18-.897.09-.896.09-.986v-2.152zm-62.594-17.926H509.494v65.258H561.08V318.713H526.537V308.045H557.6V294.154H526.537V283.038H561.528V268.249zm-65.214 0H479.09v38.589l-.447-.717-.533-.813-.449-.717-.532-.718-.448-.806-.539-.718-.442-.717-.449-.812-.532-.717-.449-.717-.537-.718-.443-.812-.538-.717-.443-.717-.449-.807-.538-.722-.443-.718-.538-.806-.442-.718-.538-.717-.443-.812-.449-.718-.537-.717-.443-.807-.538-.722-.443-.717-.538-.718-.449-.806-.443-.722-.537-.718-.443-.807-.538-.717-.448-.717-.533-.813-.448-.717h-.354l-.537.807-.449.723-.533.807-.448.717-.533.806-.448.723-.532.807-.449.718-.538.806-.443.717-.538.813-.442.717-.538.807-.449.717-.532.812-.449.717-.532.807-.538.717-.448.812-.533.717-.448.807-.533.717-.448.813-.533.717-.448.807-.538.717-.443.807-.538.723-.443.806-.538.718-.448.807-.532.716-.45.813-.532.717V268.249H428.036v65.258h18.299l.443-.718.448-.806.532-.712.45-.807.447-.717.443-.808.448-.711.534-.808.447-.717.45-.717.442-.801.448-.718.533-.806.448-.718.448-.801.443-.717.538-.717.45-.803.441-.716.448-.807.444-.718.538-.801.448-.718.442-.806.45-.712.442-.717.538-.807.448-.718.443-.807.448-.712.443-.807.54-.717.447-.801.443-.718.448.718.448.801.533.717.447.807.444.712.448.807.533.718.448.807.45.717.441.712.538.806.443.718.45.801.446.718.533.807.448.716.45.803.441.717.45.717.532.801.448.718.448.806.444.718.537.801.444.717.447.717.45.808.531.711.45.808.441.717.45.807.537.712.443.806.448.718H496.313v-65.258zM391.863 295.14l-.269.812-.353.897-.359.807-.269.812-.353.807-.358.897-.27.812-.359.807-.352.806-.27.812-.359.897-.263.807-.359.812-.359.807-.268.807-.354.901-.358.808-.269.806-.359.812-.353.897-.269.812-.359.807-.353-.807-.268-.812-.359-.897-.359-.812-.264-.806-.358-.808-.359-.901-.353-.807-.27-.807-.358-.812-.359-.807-.264-.897-.358-.812-.359-.806-.268-.807-.354-.812-.359-.897-.358-.807-.263-.812-.359-.807-.359-.897-.269-.812-.353-.807H392.221zm28.03-26.891h-17.498l-.354.808-.269.807-.358.807-.359.896-.264.802-.358.806-.359.807-.264.807-.358.807-.359.807-.268.807-.354.896-.359.807-.269.807-.359.807H371.871l-.354-.807-.269-.807-.359-.807-.358-.896-.264-.807-.358-.807-.359-.807-.269-.807-.353-.807-.359-.806-.269-.802-.354-.896-.358-.807-.269-.807-.359-.808h-18.024l.352.808.36.807.357.807.354.896.27.802.358.806.358.807.353.807.36.807.358.897.353.807.36.806.267.807.36.807.352.807.36.896.357.807.354.808.36.806.357.807.27.807.352.897.36.806.358.807.353.807.36.807.358.807.353.897.27.806.358.807.358.807.354.807.358.807.358.896.354.807.358.807.27.807.358.806.353.807.36.897.358.807.353.807.358.807.36.806.268.808.354.801.358.897.358.806.354.808.358.807.36.806.352.807.27.897.358.806.358.807.354.807.36.807.357.807.354.897.358.806.27.807.357.807.354.807.358.807.36.896.352.807.36.807.358.807.263.806.36.808.358.896.36.807.352.807.36.807.357.807.353.806.27.897.358.807.36.807.352.807h16.512l.358-.807.36-.807.353-.807.358-.897.27-.806.352-.807.36-.807.357-.807.36-.807.352-.896.36-.808.358-.806.263-.807.36-.807.358-.807.36-.896.352-.807.358-.807.36-.807.352-.807.27-.806.357-.897.354-.807.36-.807.357-.807.36-.807.352-.806.358-.897.27-.807.353-.806.358-.807.36-.808.358-.806.353-.897.36-.801.357-.808.264-.806.358-.807.36-.807.353-.807.358-.897.36-.807.358-.806.353-.807.27-.807.357-.807.354-.896.358-.807.36-.807.357-.807.354-.807.36-.806.267-.897.354-.807.358-.807.36-.807.352-.807.36-.806.358-.897.36-.807.262-.807.36-.806.358-.808.353-.807.358-.896.36-.807.357-.807.353-.807.27-.806.36-.807.352-.897.358-.807.358-.807.354-.807.358-.806.36-.802.27-.896.351-.807.36-.807.357-.808zm-78.193 8.334l-.717-.538-.623-.449-.717-.538-.712-.448-.712-.538-.717-.448-.712-.449-.807-.447-.802-.449-.802-.448-.806-.353-.802-.449-.89-.358-.802-.359-.897-.358-.8-.359-.804-.269-.806-.269-.802-.27-.89-.268-.802-.27-.897-.179-.802-.179-.89-.179-.897-.179-.892-.09-.98-.09-.892-.09-.98-.089-.898-.09-.98-.089h-3.84l-.89.089-.982.09-.89.089-.892.09-.897.09-.89.179-.893.18-.8.179-.897.179-.802.269-.89.179-.808.27-.802.358-.802.269-.89.359-.807.358-.802.358-.8.359-.809.448-.71.444-.803.448-.717.449-.712.447-.717.539-.712.537-.713.538-.627.538-.622.538-.628.628-.622.537-.628.628-.622.628-.538.627-.533.717-.538.628-.448.717-.533.718-.447.716-.444.718-.448.807-.448.717-.353.807-.359.807-.358.807-.354.806-.269.717-.359.808-.179.807-.264.806-.179.896-.269.808-.179.896-.09.807-.18.897-.088.806-.09.897-.085.897-.089.896V301.775l.09.986v.896l.083.897.091.986.18.891.088.897.18.807.268.896.18.897.263.807.27.896.268.807.36.897.353.806.358.807.36.807.352.807.448.807.448.717.444.718.447.717.45.717.531.717.538.717.533.717.538.629.622.627.538.628.623.626.627.629.622.537.717.628.623.538.712.538.717.448.712.538.718.448.711.448.802.449.807.448.801.448.802.359.806.358.892.449.712.268.891.27.808.358.801.18.801.269.896.179.802.269.891.179.892.09.896.179.892.09.89.089.892.09.897.09H315.9l.987-.09.981-.09h.891l.891-.089.981-.18.807-.089.891-.18.892-.179.806-.179.801-.179.803-.18.807-.269.801-.179.712-.269.807-.269.802-.358.801-.359.807-.359.802-.448.801-.359.718-.448.801-.448.712-.448.807-.449.712-.537.712-.449.717-.538.712-.538.717-.627.712-.538-.538-.718-.622-.627-.538-.717-.622-.717-.538-.718-.533-.627-.628-.717-.532-.717-.538-.629-.623-.717-.537-.717-.623-.717-.538-.628-.532-.717-.627-.717-.534-.717-.627-.628-.533-.717-.717.538-.712.627-.717.449-.712.538-.712.448-.717.449-.713.447-.8.449-.718.358-.712.359-.717.269-.802.269-.8.269-.808.179-.89.18-.892.179-.892.089-.98.09-.987.089H312.958l-.89-.089-.808-.09-.89-.179-.803-.18-.807-.268-.8-.269-.803-.359-.802-.358-.717-.448-.71-.449-.719-.449-.622-.537-.628-.538-.622-.538-.538-.627-.622-.628-.538-.717-.444-.628-.448-.717-.442-.807-.449-.717-.358-.807-.269-.807-.354-.807-.269-.896-.179-.892-.179-.806-.18-.987-.089-.896-.084-.896V299.802l.084-.896.09-.807.09-.897.178-.806.18-.808.18-.806.268-.807.264-.717.36-.896.357-.808.443-.807.448-.717.448-.717.533-.718.538-.627.622-.628.54-.627.62-.538.718-.538.712-.538.711-.448.717-.448.803-.359.801-.359.806-.358.892-.269.891-.269.897-.18.891-.179.891-.089.981-.09h2.051l.987.09.981.089.891.09.891.18.897.179.891.268.801.18.803.358.717.359.801.359.627.358.713.449v8.158h-13.032V306.252H342.322V277.12zM312.995 481.16h38.683v29.921h-38.683v61.086h40.223v29.922h-73.072V386.14h73.684v29.922h-40.835zM590.07 474.677v-48.744c0-8.639-3.993-12.647-12.278-12.647h-6.144c-8.595 0-12.588 4.008-12.588 12.647v136.362c0 8.638 3.993 12.646 12.588 12.646h5.527c8.29 0 12.283-4.008 12.283-12.646v-42.269h32.233v44.12c0 26.837-12.895 39.795-39.6 39.795h-15.97c-26.705 0-39.911-13.264-39.911-40.106V424.393c0-26.843 13.206-40.106 39.912-40.106h16.274c26.712 0 39.91 13.263 39.91 40.106v50.284zM475.995 386.138h32.854V602.09h-32.854zM428.326 506.146c0-8.639-3.987-12.652-12.277-12.652h-13.511v79.596h13.51c8.29 0 12.278-4.009 12.278-12.646zm-7.061 95.944h-51.577V386.138h32.85V464.5h18.727c26.71 0 39.91 13.263 39.91 40.1v57.384c0 26.842-13.2 40.106-39.91 40.106" + }, { + "transform": "matrix(1.33333 0 0 -1.33333 -278.052 902.583)", + d: "M623.23 286.175l-.09-.897-.089-.985-.18-.897-.268-.896-.174-.807-.27-.897-.358-.807-.359-.718-.353-.806-.448-.717-.448-.718-.533-.717-.449-.717-.532-.627-.628-.628-.533-.538-.716-.628-.623-.538-.717-.538-.712-.442-.712-.538-.807-.448-.802-.359-.8-.448-.898-.359-.89-.359-.892-.268-.89-.27-.808-.268-.89-.18-.803-.179-.8-.179-.898-.18-.892-.089-.8-.09-.898-.09-.98-.09-.892-.089H595.65l-.893.089h-.98l-.892.09-.896.09-.98.09-.892.179-.89.09-.898.179-.892.179-.89.18-.892.179-.896.268-.802.18-.89.269-.893.269-.806.359-.89.269-.803.268-.892.359-.806.359-.802.359-.802.442-.806.359-.802.449-.712.447-.807.449-.712.448-.717.448-.712.538-.712.538-.717.538-.713.538-.627.538-.712.627.538.717.622.628.538.718.623.717.538.627.532.717.628.718.532.627.628.717.533.628.627.717.533.718.538.627.622.717.538.718.622.627.538.717.712-.538.802-.538.717-.538.802-.538.717-.448.802-.537.711-.449.808-.358.711-.449.802-.359.807-.358.801-.359.803-.269.806-.358.891-.269.892-.269.801-.269.897-.18.891-.179.891-.179.981-.09.896-.179h.892l.98-.089H599.13l.981.089.897.179.801.18.802.179.717.269.623.358.717.538.532.628.36.718.27.806.087.897v.179l-.088 1.076-.359.897-.449.627-.622.538-.718.538-.712.358-.8.359-.898.359-1.07.447-.623.18-.71.179-.808.27-.802.179-.89.269-.898.179-.98.269-.892.179-.98.269-.892.179-.897.269-.89.18-.892.269-.807.268-.89.18-.803.269-.8.269-.808.269-.98.359-.892.359-.892.358-.896.359-.8.448-.893.448-.717.448-.802.448-.712.538-.717.448-.622.539-.627.627-.623.628-.538.628-.532.627-.449.627-.443.718-.448.806-.359.622-.269.718-.263.807-.269.717-.18.897-.179.807-.09.896-.089.897-.09.985V314.859l.09.896.09.807.09.897.178.806.18.807.27.808.178.806.353.807.36.807.357.806.444.808.447.806.533.718.54.717.621.717.627.627.623.718.717.628.622.448.717.538.713.538.711.448.807.448.802.359.801.448.807.358.891.27.891.358.807.269.712.18.803.179.806.179.891.179.802.18.891.089.897.09.891.09.891.089h3.839l.981-.089.981-.09h.891l.986-.09.891-.179.981-.09.892-.179.807-.179.891-.179.891-.18.802-.179.896-.269.802-.269.802-.18.896-.358.802-.269.801-.358.802-.359.896-.359.802-.448.712-.359.807-.448.802-.448.712-.449.806-.538.713-.447.717-.539.712-.538.711-.537-.532-.718-.448-.717-.533-.717-.538-.718-.532-.806-.449-.717-.538-.718-.533-.717-.447-.717-.534-.718-.537-.717-.449-.717-.532-.807-.539-.717-.532-.717-.448-.717-.533-.717-.717.537-.8.449-.714.448-.717.538-.8.358-.719.449-.8.359-.713.358-.807.359-.712.358-.8.269-.718.359-.982.268-.89.27-.892.268-.897.18-.89.179-.892.18-.89.09-.898.089-.8.09h-1.963l-.98-.179-.898-.18-.8-.179-.713-.359-.628-.358-.802-.718-.538-.807-.352-.807-.09-.896v-.18l.09-1.165.442-.986.36-.538.621-.628.807-.448.712-.448.891-.359.986-.359 1.071-.358.712-.179.712-.269.807-.179.801-.269.891-.18.987-.269.981-.268.981-.27.98-.179.891-.269.981-.269.897-.179.892-.269.891-.269.801-.269.897-.269.802-.269.801-.269.986-.353.891-.449.891-.358.892-.448.807-.449.802-.448.711-.448.717-.538.713-.448.712-.628.717-.627.622-.718.627-.627.533-.718.538-.806.443-.717.45-.808.357-.717.27-.806.263-.807.18-.807.178-.897.18-.897.09-.896.09-.986v-2.152zm-62.594-17.926H509.494v65.258H561.08V318.713H526.537V308.045H557.6V294.154H526.537V283.038H561.528V268.249zm-65.214 0H479.09v38.589l-.447-.717-.533-.813-.449-.717-.532-.718-.448-.806-.539-.718-.442-.717-.449-.812-.532-.717-.449-.717-.537-.718-.443-.812-.538-.717-.443-.717-.449-.807-.538-.722-.443-.718-.538-.806-.442-.718-.538-.717-.443-.812-.449-.718-.537-.717-.443-.807-.538-.722-.443-.717-.538-.718-.449-.806-.443-.722-.537-.718-.443-.807-.538-.717-.448-.717-.533-.813-.448-.717h-.354l-.537.807-.449.723-.533.807-.448.717-.533.806-.448.723-.532.807-.449.718-.538.806-.443.717-.538.813-.442.717-.538.807-.449.717-.532.812-.449.717-.532.807-.538.717-.448.812-.533.717-.448.807-.533.717-.448.813-.533.717-.448.807-.538.717-.443.807-.538.723-.443.806-.538.718-.448.807-.532.716-.45.813-.532.717V268.249H428.036v65.258h18.299l.443-.718.448-.806.532-.712.45-.807.447-.717.443-.808.448-.711.534-.808.447-.717.45-.717.442-.801.448-.718.533-.806.448-.718.448-.801.443-.717.538-.717.45-.803.441-.716.448-.807.444-.718.538-.801.448-.718.442-.806.45-.712.442-.717.538-.807.448-.718.443-.807.448-.712.443-.807.54-.717.447-.801.443-.718.448.718.448.801.533.717.447.807.444.712.448.807.533.718.448.807.45.717.441.712.538.806.443.718.45.801.446.718.533.807.448.716.45.803.441.717.45.717.532.801.448.718.448.806.444.718.537.801.444.717.447.717.45.808.531.711.45.808.441.717.45.807.537.712.443.806.448.718H496.313v-65.258zM391.863 295.14l-.269.812-.353.897-.359.807-.269.812-.353.807-.358.897-.27.812-.359.807-.352.806-.27.812-.359.897-.263.807-.359.812-.359.807-.268.807-.354.901-.358.808-.269.806-.359.812-.353.897-.269.812-.359.807-.353-.807-.268-.812-.359-.897-.359-.812-.264-.806-.358-.808-.359-.901-.353-.807-.27-.807-.358-.812-.359-.807-.264-.897-.358-.812-.359-.806-.268-.807-.354-.812-.359-.897-.358-.807-.263-.812-.359-.807-.359-.897-.269-.812-.353-.807H392.221zm28.03-26.891h-17.498l-.354.808-.269.807-.358.807-.359.896-.264.802-.358.806-.359.807-.264.807-.358.807-.359.807-.268.807-.354.896-.359.807-.269.807-.359.807H371.871l-.354-.807-.269-.807-.359-.807-.358-.896-.264-.807-.358-.807-.359-.807-.269-.807-.353-.807-.359-.806-.269-.802-.354-.896-.358-.807-.269-.807-.359-.808h-18.024l.352.808.36.807.357.807.354.896.27.802.358.806.358.807.353.807.36.807.358.897.353.807.36.806.267.807.36.807.352.807.36.896.357.807.354.808.36.806.357.807.27.807.352.897.36.806.358.807.353.807.36.807.358.807.353.897.27.806.358.807.358.807.354.807.358.807.358.896.354.807.358.807.27.807.358.806.353.807.36.897.358.807.353.807.358.807.36.806.268.808.354.801.358.897.358.806.354.808.358.807.36.806.352.807.27.897.358.806.358.807.354.807.36.807.357.807.354.897.358.806.27.807.357.807.354.807.358.807.36.896.352.807.36.807.358.807.263.806.36.808.358.896.36.807.352.807.36.807.357.807.353.806.27.897.358.807.36.807.352.807h16.512l.358-.807.36-.807.353-.807.358-.897.27-.806.352-.807.36-.807.357-.807.36-.807.352-.896.36-.808.358-.806.263-.807.36-.807.358-.807.36-.896.352-.807.358-.807.36-.807.352-.807.27-.806.357-.897.354-.807.36-.807.357-.807.36-.807.352-.806.358-.897.27-.807.353-.806.358-.807.36-.808.358-.806.353-.897.36-.801.357-.808.264-.806.358-.807.36-.807.353-.807.358-.897.36-.807.358-.806.353-.807.27-.807.357-.807.354-.896.358-.807.36-.807.357-.807.354-.807.36-.806.267-.897.354-.807.358-.807.36-.807.352-.807.36-.806.358-.897.36-.807.262-.807.36-.806.358-.808.353-.807.358-.896.36-.807.357-.807.353-.807.27-.806.36-.807.352-.897.358-.807.358-.807.354-.807.358-.806.36-.802.27-.896.351-.807.36-.807.357-.808zm-78.193 8.334l-.717-.538-.623-.449-.717-.538-.712-.448-.712-.538-.717-.448-.712-.449-.807-.447-.802-.449-.802-.448-.806-.353-.802-.449-.89-.358-.802-.359-.897-.358-.8-.359-.804-.269-.806-.269-.802-.27-.89-.268-.802-.27-.897-.179-.802-.179-.89-.179-.897-.179-.892-.09-.98-.09-.892-.09-.98-.089-.898-.09-.98-.089h-3.84l-.89.089-.982.09-.89.089-.892.09-.897.09-.89.179-.893.18-.8.179-.897.179-.802.269-.89.179-.808.27-.802.358-.802.269-.89.359-.807.358-.802.358-.8.359-.809.448-.71.444-.803.448-.717.449-.712.447-.717.539-.712.537-.713.538-.627.538-.622.538-.628.628-.622.537-.628.628-.622.628-.538.627-.533.717-.538.628-.448.717-.533.718-.447.716-.444.718-.448.807-.448.717-.353.807-.359.807-.358.807-.354.806-.269.717-.359.808-.179.807-.264.806-.179.896-.269.808-.179.896-.09.807-.18.897-.088.806-.09.897-.085.897-.089.896V301.775l.09.986v.896l.083.897.091.986.18.891.088.897.18.807.268.896.18.897.263.807.27.896.268.807.36.897.353.806.358.807.36.807.352.807.448.807.448.717.444.718.447.717.45.717.531.717.538.717.533.717.538.629.622.627.538.628.623.626.627.629.622.537.717.628.623.538.712.538.717.448.712.538.718.448.711.448.802.449.807.448.801.448.802.359.806.358.892.449.712.268.891.27.808.358.801.18.801.269.896.179.802.269.891.179.892.09.896.179.892.09.89.089.892.09.897.09H315.9l.987-.09.981-.09h.891l.891-.089.981-.18.807-.089.891-.18.892-.179.806-.179.801-.179.803-.18.807-.269.801-.179.712-.269.807-.269.802-.358.801-.359.807-.359.802-.448.801-.359.718-.448.801-.448.712-.448.807-.449.712-.537.712-.449.717-.538.712-.538.717-.627.712-.538-.538-.718-.622-.627-.538-.717-.622-.717-.538-.718-.533-.627-.628-.717-.532-.717-.538-.629-.623-.717-.537-.717-.623-.717-.538-.628-.532-.717-.627-.717-.534-.717-.627-.628-.533-.717-.717.538-.712.627-.717.449-.712.538-.712.448-.717.449-.713.447-.8.449-.718.358-.712.359-.717.269-.802.269-.8.269-.808.179-.89.18-.892.179-.892.089-.98.09-.987.089H312.958l-.89-.089-.808-.09-.89-.179-.803-.18-.807-.268-.8-.269-.803-.359-.802-.358-.717-.448-.71-.449-.719-.449-.622-.537-.628-.538-.622-.538-.538-.627-.622-.628-.538-.717-.444-.628-.448-.717-.442-.807-.449-.717-.358-.807-.269-.807-.354-.807-.269-.896-.179-.892-.179-.806-.18-.987-.089-.896-.084-.896V299.802l.084-.896.09-.807.09-.897.178-.806.18-.808.18-.806.268-.807.264-.717.36-.896.357-.808.443-.807.448-.717.448-.717.533-.718.538-.627.622-.628.54-.627.62-.538.718-.538.712-.538.711-.448.717-.448.803-.359.801-.359.806-.358.892-.269.891-.269.897-.18.891-.179.891-.089.981-.09h2.051l.987.09.981.089.891.09.891.18.897.179.891.268.801.18.803.358.717.359.801.359.627.358.713.449v8.158h-13.032V306.252H342.322V277.12zM312.995 481.16h38.683v29.921h-38.683v61.086h40.223v29.922h-73.072V386.14h73.684v29.922h-40.835zM590.07 474.677v-48.744c0-8.639-3.993-12.647-12.278-12.647h-6.144c-8.595 0-12.588 4.008-12.588 12.647v136.362c0 8.638 3.993 12.646 12.588 12.646h5.527c8.29 0 12.283-4.008 12.283-12.646v-42.269h32.233v44.12c0 26.837-12.895 39.795-39.6 39.795h-15.97c-26.705 0-39.911-13.264-39.911-40.106V424.393c0-26.843 13.206-40.106 39.912-40.106h16.274c26.712 0 39.91 13.263 39.91 40.106v50.284zM475.995 386.138h32.854V602.09h-32.854zM428.326 506.146c0-8.639-3.987-12.652-12.277-12.652h-13.511v79.596h13.51c8.29 0 12.278-4.009 12.278-12.646zm-7.061 95.944h-51.577V386.138h32.85V464.5h18.727c26.71 0 39.91 13.263 39.91 40.1v57.384c0 26.842-13.2 40.106-39.91 40.106", + fill: "var(--color-gray-800)", + stroke: "none" + }] + } +} \ No newline at end of file From 7a143699d974dc75158df326c41cca3087c28ada Mon Sep 17 00:00:00 2001 From: Brian D Date: Tue, 21 Feb 2023 00:48:08 -0600 Subject: [PATCH 16/94] feat: login page --- clients/web/package.json | 4 +- .../src/lib/actions/useOauthPopup.action.ts | 44 + .../web/src/lib/components/abstract/index.ts | 2 +- .../lib/components/atoms/Button/Button.svelte | 9 +- .../utilities/iconDefinitionToIconSource.ts | 17 + clients/web/src/routes/+layout.svelte | 1 + clients/web/src/routes/auth/+layout.svelte | 13 + .../web/src/routes/auth/callback/+page.svelte | 17 + .../web/src/routes/auth/login/+page.svelte | 43 + package-lock.json | 3034 +++++++++-------- 10 files changed, 1726 insertions(+), 1458 deletions(-) create mode 100644 clients/web/src/lib/actions/useOauthPopup.action.ts create mode 100644 clients/web/src/lib/utilities/iconDefinitionToIconSource.ts create mode 100644 clients/web/src/routes/auth/+layout.svelte create mode 100644 clients/web/src/routes/auth/callback/+page.svelte create mode 100644 clients/web/src/routes/auth/login/+page.svelte diff --git a/clients/web/package.json b/clients/web/package.json index 12d0a1241..e567f9664 100644 --- a/clients/web/package.json +++ b/clients/web/package.json @@ -15,7 +15,7 @@ "story:preview": "histoire preview" }, "devDependencies": { - "@histoire/plugin-svelte": "^0.12.4", + "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", @@ -30,7 +30,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-svelte3": "^4.0.0", "filedrop-svelte": "^0.1.2", - "histoire": "^0.12.4", + "histoire": "^0.15.4", "lodash.times": "^4.3.2", "nanoid": "^4.0.0", "postcss": "^8.4.14", diff --git a/clients/web/src/lib/actions/useOauthPopup.action.ts b/clients/web/src/lib/actions/useOauthPopup.action.ts new file mode 100644 index 000000000..3dd18dc5b --- /dev/null +++ b/clients/web/src/lib/actions/useOauthPopup.action.ts @@ -0,0 +1,44 @@ +import {browser} from "$app/environment"; + +/* + Handle popup logic at the module level to prevent multiple popups from appearing. + */ +let popup: Window; +let _callback: CallableFunction; +function receiveMessage(e: MessageEvent): void { + if (_callback) { + _callback(e); + } +} + +if (browser) { + window.addEventListener( + "message", + e => { + receiveMessage(e); + }, + false, + ); +} + +function openWindow(windowUrl: string, callback: CallableFunction): void { + if (popup) { + popup.close(); + } + // Open as a popup + const strWindowFeatures = "toolbar=no, menubar=no, width=600, height=700"; + const newWindow = window.open(windowUrl, "SprocketOAuth", strWindowFeatures); + if (newWindow === null) { + // Something is wrong? + } else { popup = newWindow } + _callback = callback; +} + +export function oauthPopup( + node: HTMLElement, + params: {windowUrl: string; callback: (x: MessageEvent) => unknown}, +): void { + node.addEventListener("click", () => { + openWindow(params.windowUrl, params.callback); + }); +} diff --git a/clients/web/src/lib/components/abstract/index.ts b/clients/web/src/lib/components/abstract/index.ts index 0c8935ef8..8947d8cb3 100644 --- a/clients/web/src/lib/components/abstract/index.ts +++ b/clients/web/src/lib/components/abstract/index.ts @@ -1,2 +1,2 @@ export * from "./Portal"; -export * from "./Toast"; +export * from "./Toast"; \ No newline at end of file diff --git a/clients/web/src/lib/components/atoms/Button/Button.svelte b/clients/web/src/lib/components/atoms/Button/Button.svelte index d8b0a8ab2..d3306767f 100644 --- a/clients/web/src/lib/components/atoms/Button/Button.svelte +++ b/clients/web/src/lib/components/atoms/Button/Button.svelte @@ -1,17 +1,22 @@ - diff --git a/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts b/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts new file mode 100644 index 000000000..00c551dd1 --- /dev/null +++ b/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts @@ -0,0 +1,17 @@ +import type { IconDefinition } from "@fortawesome/free-brands-svg-icons"; +import type { IconSource } from "@steeze-ui/svelte-icon/types"; + +export const IconDefinitionToIconSource = (input: IconDefinition): IconSource => { + return { + default: { + a: { + viewBox: `0 0 ${input.icon[0]} ${input.icon[1]}`, + stroke: "currentColor", + fill: "currentColor", + }, + path: [{ + d: input.icon[4].toString() + }] + } + } +} \ No newline at end of file diff --git a/clients/web/src/routes/+layout.svelte b/clients/web/src/routes/+layout.svelte index bd85457d4..4da9a0f91 100644 --- a/clients/web/src/routes/+layout.svelte +++ b/clients/web/src/routes/+layout.svelte @@ -1,4 +1,5 @@ diff --git a/clients/web/src/routes/auth/+layout.svelte b/clients/web/src/routes/auth/+layout.svelte new file mode 100644 index 000000000..fa38726e7 --- /dev/null +++ b/clients/web/src/routes/auth/+layout.svelte @@ -0,0 +1,13 @@ + + +
+ Sprocket Logo +

Sprocket Login

+
+
+ + +
\ No newline at end of file diff --git a/clients/web/src/routes/auth/callback/+page.svelte b/clients/web/src/routes/auth/callback/+page.svelte new file mode 100644 index 000000000..afd6791aa --- /dev/null +++ b/clients/web/src/routes/auth/callback/+page.svelte @@ -0,0 +1,17 @@ + diff --git a/clients/web/src/routes/auth/login/+page.svelte b/clients/web/src/routes/auth/login/+page.svelte new file mode 100644 index 000000000..c5f73c10a --- /dev/null +++ b/clients/web/src/routes/auth/login/+page.svelte @@ -0,0 +1,43 @@ + + +

Sign in using:

+
+ + + + + + +
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1823cea49..11910b302 100644 --- a/package-lock.json +++ b/package-lock.json @@ -300,10 +300,12 @@ "version": "0.0.1", "dependencies": { "@faker-js/faker": "^7.6.0", + "@fontsource/montserrat": "^4.5.14", + "@fortawesome/free-brands-svg-icons": "^6.3.0", "echarts": "^5.4.1" }, "devDependencies": { - "@histoire/plugin-svelte": "^0.12.4", + "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", @@ -318,7 +320,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-svelte3": "^4.0.0", "filedrop-svelte": "^0.1.2", - "histoire": "^0.12.4", + "histoire": "^0.15.4", "lodash.times": "^4.3.2", "nanoid": "^4.0.0", "postcss": "^8.4.14", @@ -333,6 +335,78 @@ "vite": "^4.0.4" } }, + "clients/web/node_modules/@histoire/app": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.15.8.tgz", + "integrity": "sha512-kVMqd07PS7RyI+XGQ2pMxXcj/UtsuHZc3nwNV8CfislUir9eK+itQBI3K8okqFt513tX85zUe82Dob2knrJ9NQ==", + "dev": true, + "dependencies": { + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "@types/flexsearch": "^0.7.3", + "flexsearch": "0.7.21", + "shiki-es": "^0.2.0" + } + }, + "clients/web/node_modules/@histoire/controls": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.15.8.tgz", + "integrity": "sha512-P4BNxVXM+lkL45rTZHV8+aHXvuTo2o7uir0Is7iWxR7jOtMr3ujBa/NQBXrp6+5TPw5whJXYRNAPJ1+jXiVfpQ==", + "dev": true, + "dependencies": { + "@codemirror/commands": "^6.1.1", + "@codemirror/lang-json": "^6.0.0", + "@codemirror/language": "^6.2.1", + "@codemirror/lint": "^6.0.0", + "@codemirror/state": "^6.1.2", + "@codemirror/theme-one-dark": "^6.1.0", + "@codemirror/view": "^6.3.0", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8" + } + }, + "clients/web/node_modules/@histoire/plugin-svelte": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/plugin-svelte/-/plugin-svelte-0.15.8.tgz", + "integrity": "sha512-9W/I+W0u90lrhZu5yre8Jsb2S3/a8009HztXC890LAMVp9MJ285aQY09cVJBUso+q9h5tXVjz5sbZxfKFZ0Aqg==", + "dev": true, + "dependencies": { + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "change-case": "^4.1.2", + "launch-editor": "^2.6.0", + "pathe": "^0.2.0" + }, + "peerDependencies": { + "histoire": "^0.15.8", + "svelte": "^3.0.0" + } + }, + "clients/web/node_modules/@histoire/shared": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.15.8.tgz", + "integrity": "sha512-pHtCUJy6Zr8IUtKIXv4LCU80xD+5nx+bhqef6nfdVFsZhMp2WbtqGkIThUk74P/NPQTFoJSFECn/HmBqdXZlrg==", + "dev": true, + "dependencies": { + "@histoire/vendors": "^0.15.8", + "@types/fs-extra": "^9.0.13", + "@types/markdown-it": "^12.2.3", + "chokidar": "^3.5.3", + "pathe": "^0.2.0", + "picocolors": "^1.0.0" + }, + "peerDependencies": { + "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" + } + }, + "clients/web/node_modules/@histoire/vendors": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.15.8.tgz", + "integrity": "sha512-RVvJmWlpRHa5dEdcAB+IB8OYKvw2Mv/tXF/Xu42SP2PwKkgQnTkDXmg+2HPMu9Uc+2i0u2cc9Lz+hqvkvS34kQ==", + "dev": true + }, "clients/web/node_modules/@sveltejs/adapter-auto": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@sveltejs/adapter-auto/-/adapter-auto-1.0.3.tgz", @@ -410,6 +484,90 @@ "node": ">=12" } }, + "clients/web/node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "clients/web/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "clients/web/node_modules/acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "dev": true, + "dependencies": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "clients/web/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "clients/web/node_modules/cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", + "dev": true + }, + "clients/web/node_modules/data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "dev": true, + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "clients/web/node_modules/esbuild": { "version": "0.16.17", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.17.tgz", @@ -447,110 +605,322 @@ "@esbuild/win32-x64": "0.16.17" } }, - "clients/web/node_modules/magic-string": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", - "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==", + "clients/web/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dev": true, "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.13" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=12" + "node": ">= 6" } }, - "clients/web/node_modules/mime": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", - "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "clients/web/node_modules/globby": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", + "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", "dev": true, - "bin": { - "mime": "cli.js" + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.11", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^4.0.0" }, "engines": { - "node": ">=10.0.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "clients/web/node_modules/nanoid": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.1.tgz", - "integrity": "sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==", + "clients/web/node_modules/histoire": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.15.8.tgz", + "integrity": "sha512-weDuhDeguNy+9MNTm04OCk2tyJCKndzxp9pcOivxrIeuwmxA1nv7L5bye1YG7gjKWEOuifxRt9VWYAHo2Nc8VA==", "dev": true, + "dependencies": { + "@akryum/tinypool": "^0.3.1", + "@histoire/app": "^0.15.8", + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "@types/flexsearch": "^0.7.3", + "@types/markdown-it": "^12.2.3", + "birpc": "^0.1.1", + "change-case": "^4.1.2", + "chokidar": "^3.5.3", + "connect": "^3.7.0", + "defu": "^6.0.0", + "diacritics": "^1.3.0", + "flexsearch": "0.7.21", + "fs-extra": "^10.0.1", + "globby": "^13.1.1", + "gray-matter": "^4.0.3", + "jiti": "^1.16.0", + "jsdom": "^20.0.3", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.6.2", + "markdown-it-attrs": "^4.1.3", + "markdown-it-emoji": "^2.0.0", + "micromatch": "^4.0.5", + "mrmime": "^1.0.0", + "pathe": "^0.2.0", + "picocolors": "^1.0.0", + "sade": "^1.8.1", + "shiki-es": "^0.2.0", + "sirv": "^2.0.2", + "vite-node": "0.28.4" + }, "bin": { - "nanoid": "bin/nanoid.js" + "histoire": "bin.mjs" }, - "engines": { - "node": "^14 || ^16 || >=18" + "peerDependencies": { + "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" } }, - "clients/web/node_modules/postcss-load-config": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", - "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", + "clients/web/node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", "dev": true, "dependencies": { - "lilconfig": "^2.0.5", - "yaml": "^2.1.1" + "whatwg-encoding": "^2.0.0" }, "engines": { - "node": ">= 14" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } + "node": ">=12" } }, - "clients/web/node_modules/postcss-nested": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz", - "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==", + "clients/web/node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", "dev": true, "dependencies": { - "postcss-selector-parser": "^6.0.10" + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" }, "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.2.14" + "node": ">= 6" } }, - "clients/web/node_modules/rollup": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz", - "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==", + "clients/web/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, - "bin": { - "rollup": "dist/bin/rollup" + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "node": ">=0.10.0" } }, - "clients/web/node_modules/svelte-hmr": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.1.tgz", - "integrity": "sha512-BiKB4RZ8YSwRKCNVdNxK/GfY+r4Kjgp9jCLEy0DuqAKfmQtpL38cQK3afdpjw4sqSs4PLi3jIPJIFp259NkZtA==", + "clients/web/node_modules/jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "clients/web/node_modules/magic-string": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", + "integrity": "sha512-WcfidHrDjMY+eLjlU+8OvwREqHwpgCeKVBUpQ3OhYYuvfaYCUgcbuBzappNzZvg/v8onU3oQj+BYpkOJe9Iw4Q==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "clients/web/node_modules/nanoid": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.1.tgz", + "integrity": "sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "clients/web/node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "clients/web/node_modules/postcss-load-config": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", + "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", + "dev": true, + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "engines": { + "node": ">= 14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "clients/web/node_modules/postcss-nested": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz", + "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "clients/web/node_modules/rollup": { + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz", + "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "clients/web/node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "clients/web/node_modules/shiki-es": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.2.0.tgz", + "integrity": "sha512-RbRMD+IuJJseSZljDdne9ThrUYrwBwJR04FvN4VXpfsU3MNID5VJGHLAD5je/HGThCyEKNgH+nEkSFEWKD7C3Q==", + "dev": true + }, + "clients/web/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "clients/web/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "clients/web/node_modules/svelte-hmr": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.1.tgz", + "integrity": "sha512-BiKB4RZ8YSwRKCNVdNxK/GfY+r4Kjgp9jCLEy0DuqAKfmQtpL38cQK3afdpjw4sqSs4PLi3jIPJIFp259NkZtA==", "dev": true, "engines": { "node": "^12.20 || ^14.13.1 || >= 16" @@ -638,6 +1008,18 @@ "node": ">= 6" } }, + "clients/web/node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, "clients/web/node_modules/vite": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.3.tgz", @@ -687,43 +1069,159 @@ } } }, - "clients/web/node_modules/yaml": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", - "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", + "clients/web/node_modules/vite-node": { + "version": "0.28.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.28.4.tgz", + "integrity": "sha512-KM0Q0uSG/xHHKOJvVHc5xDBabgt0l70y7/lWTR7Q0pR5/MrYxadT+y32cJOE65FfjGmJgxpVEEY+69btJgcXOQ==", "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.4", + "mlly": "^1.1.0", + "pathe": "^1.1.0", + "picocolors": "^1.0.0", + "source-map": "^0.6.1", + "source-map-support": "^0.5.21", + "vite": "^3.0.0 || ^4.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, "engines": { - "node": ">= 14" + "node": ">=v14.16.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" } }, - "common": { - "name": "@sprocketbot/common", - "version": "0.2.18", - "license": "MIT", + "clients/web/node_modules/vite-node/node_modules/pathe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.0.tgz", + "integrity": "sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==", + "dev": true + }, + "clients/web/node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "dev": true, "dependencies": { - "@nestjs/common": "^8.2.3", - "@nestjs/microservices": "^8.2.3", - "@sprocketbot/gql-client": "^0.0.3", - "@types/amqplib": "^0.8.2", - "@types/ioredis": "^4.28.5", - "@types/jest": "^29.0.3", - "@types/node": "^17.0.13", - "amqp-connection-manager": "^3.7.0", - "amqplib": "^0.8.0", - "celery-node": "^0.5.8", - "config": "^3.3.6", - "ioredis": "^4.28.2", - "minio": "^7.0.26", - "nanoid": "^3.3.4", - "redis": "^4.0.4", - "rxjs": "^7.4.0", - "uuid": "^8.3.2", - "zod": "^3.2.0" + "xml-name-validator": "^4.0.0" }, - "devDependencies": { - "@types/config": "^0.0.40", - "@types/minio": "^7.0.12", - "@types/uuid": "^8.3.4", + "engines": { + "node": ">=14" + } + }, + "clients/web/node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "dev": true, + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dev": true, + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/ws": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", + "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "clients/web/node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "clients/web/node_modules/yaml": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", + "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "common": { + "name": "@sprocketbot/common", + "version": "0.2.18", + "license": "MIT", + "dependencies": { + "@nestjs/common": "^8.2.3", + "@nestjs/microservices": "^8.2.3", + "@sprocketbot/gql-client": "^0.0.3", + "@types/amqplib": "^0.8.2", + "@types/ioredis": "^4.28.5", + "@types/jest": "^29.0.3", + "@types/node": "^17.0.13", + "amqp-connection-manager": "^3.7.0", + "amqplib": "^0.8.0", + "celery-node": "^0.5.8", + "config": "^3.3.6", + "ioredis": "^4.28.2", + "minio": "^7.0.26", + "nanoid": "^3.3.4", + "redis": "^4.0.4", + "rxjs": "^7.4.0", + "uuid": "^8.3.2", + "zod": "^3.2.0" + }, + "devDependencies": { + "@types/config": "^0.0.40", + "@types/minio": "^7.0.12", + "@types/uuid": "^8.3.4", "rimraf": "^3.0.2", "typescript": "^4.5.2" } @@ -2561,6 +3059,15 @@ } } }, + "node_modules/@akryum/tinypool": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@akryum/tinypool/-/tinypool-0.3.1.tgz", + "integrity": "sha512-nznEC1ZA/m3hQDEnrGQ4c5gkaa9pcaVnw4LFJyzBAaR7E3nfiAPEHS3otnSafpZouVnoKeITl5D+2LsnwlnK8g==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@ampproject/remapping": { "version": "2.2.0", "license": "Apache-2.0", @@ -4100,6 +4607,32 @@ "npm": ">=6.0.0" } }, + "node_modules/@fontsource/montserrat": { + "version": "4.5.14", + "resolved": "https://registry.npmjs.org/@fontsource/montserrat/-/montserrat-4.5.14.tgz", + "integrity": "sha512-fTvrteVzuFUePhr4QYBGoK8G/YHLJ3IhF1HhKg0AxcFvZajJT7rM7ULdmKLSd2PkX44R3aaFZq1zDbmjbGGI+w==" + }, + "node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.3.0.tgz", + "integrity": "sha512-4BC1NMoacEBzSXRwKjZ/X/gmnbp/HU5Qqat7E8xqorUtBFZS+bwfGH5/wqOC2K6GV0rgEobp3OjGRMa5fK9pFg==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-brands-svg-icons": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.3.0.tgz", + "integrity": "sha512-xI0c+a8xnKItAXCN8rZgCNCJQiVAd2Y7p9e2ND6zN3J3ekneu96qrePieJ7yA7073C1JxxoM3vH1RU7rYsaj8w==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.3.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@graphql-tools/merge": { "version": "6.2.14", "license": "MIT", @@ -4148,73 +4681,6 @@ "version": "2.2.0", "license": "0BSD" }, - "node_modules/@histoire/app": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.12.4.tgz", - "integrity": "sha512-noemJQ3q5ofHbBJGJ9FgLIdoV4Feyn3zHMhOQjHZRPETdoAak2adALO4UWKVnFu75+R43SLtoV7HnK0TAPx5kw==", - "dev": true, - "dependencies": { - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4", - "@types/flexsearch": "^0.7.3", - "flexsearch": "0.7.21", - "shiki-es": "^0.1.2" - } - }, - "node_modules/@histoire/controls": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.12.4.tgz", - "integrity": "sha512-p4qa11vXqhSMsnXW1p+n7ZqawoHVErLFL24yNnA9peMuXnR306/0cvdAnsLMQJdq5mDNayOY5Di69YKVQ0Shqg==", - "dev": true, - "dependencies": { - "@codemirror/commands": "^6.1.1", - "@codemirror/lang-json": "^6.0.0", - "@codemirror/language": "^6.2.1", - "@codemirror/lint": "^6.0.0", - "@codemirror/state": "^6.1.2", - "@codemirror/theme-one-dark": "^6.1.0", - "@codemirror/view": "^6.3.0", - "@histoire/vendors": "^0.12.4" - } - }, - "node_modules/@histoire/plugin-svelte": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/plugin-svelte/-/plugin-svelte-0.12.4.tgz", - "integrity": "sha512-/bM5caUOjQ/vf6n4AVaGgHK5Z3yJvEF+SMp1KFDTBFqUFWbaC2d0sHNpuKJP8ilhfvtZVKBLdjRltbnT/+4gNQ==", - "dev": true, - "dependencies": { - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4" - }, - "peerDependencies": { - "histoire": "^0.12.4", - "svelte": "^3.0.0" - } - }, - "node_modules/@histoire/shared": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.12.4.tgz", - "integrity": "sha512-dVSrfsEu17KczjyHVW8yPvSlguhEV7hWjDSwsjlUrRdbe7hwztX4GbbcCIWvG5hy5gASpKpQq6FJa5uTs0HOsg==", - "dev": true, - "dependencies": { - "@types/fs-extra": "^9.0.13", - "@types/markdown-it": "^12.2.3", - "chokidar": "^3.5.3", - "pathe": "^0.2.0", - "picocolors": "^1.0.0" - }, - "peerDependencies": { - "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" - } - }, - "node_modules/@histoire/vendors": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.12.4.tgz", - "integrity": "sha512-NIi0krz19iSjPHhIsGLrW4Q3tvrCLfvCet2kFA8crKPX6inaMZm8g/+pDQBqlh9DRCXVbxV5RWQKcumrIFbrmw==", - "dev": true - }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.7", "dev": true, @@ -7797,6 +8263,15 @@ "node": ">= 0.8" } }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/call-bind": { "version": "1.0.2", "license": "MIT", @@ -9213,6 +9688,7 @@ "dev": true, "hasInstallScript": true, "license": "MIT", + "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -11158,726 +11634,555 @@ "node": "*" } }, - "node_modules/histoire": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.12.4.tgz", - "integrity": "sha512-q20Zncdh+GI2jDXiry1JS1DrN5qprKpl452AnS/P06Vgowqf79aG85E0XmhNpX2r8HI2HmIntwZ5FLd6hxYobQ==", - "dev": true, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "license": "MIT", "dependencies": { - "@histoire/app": "^0.12.4", - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4", - "@types/flexsearch": "^0.7.3", - "@types/markdown-it": "^12.2.3", - "birpc": "^0.1.1", - "change-case": "^4.1.2", - "chokidar": "^3.5.3", - "connect": "^3.7.0", - "defu": "^6.0.0", - "diacritics": "^1.3.0", - "flexsearch": "0.7.21", - "fs-extra": "^10.0.1", - "globby": "^13.1.1", - "gray-matter": "^4.0.3", - "jiti": "^1.16.0", - "jsdom": "^20.0.3", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.6.2", - "markdown-it-attrs": "^4.1.3", - "markdown-it-emoji": "^2.0.0", - "micromatch": "^4.0.5", - "mrmime": "^1.0.0", - "pathe": "^0.2.0", - "picocolors": "^1.0.0", - "sade": "^1.8.1", - "shiki-es": "^0.1.2", - "sirv": "^2.0.2", - "tinypool": "^0.1.2", - "vite-node": "0.26.0" - }, - "bin": { - "histoire": "bin.mjs" - }, - "peerDependencies": { - "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/histoire/node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "node_modules/hosted-git-info": { + "version": "4.1.0", "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, "engines": { - "node": ">= 10" + "node": ">=10" } }, - "node_modules/histoire/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "node_modules/hsl-regex": { + "version": "1.0.0", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } + "license": "MIT" }, - "node_modules/histoire/node_modules/acorn-globals": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", - "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "node_modules/hsla-regex": { + "version": "1.0.0", "dev": true, + "license": "MIT" + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "license": "MIT", "dependencies": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" } }, - "node_modules/histoire/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "node_modules/html-escaper": { + "version": "2.0.2", + "license": "MIT" + }, + "node_modules/html-tags": { + "version": "3.2.0", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.4.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/histoire/node_modules/cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", - "dev": true - }, - "node_modules/histoire/node_modules/data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dev": true, + "node_modules/http-errors": { + "version": "1.8.1", + "license": "MIT", "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.1" }, "engines": { - "node": ">=12" + "node": ">= 0.6" } }, - "node_modules/histoire/node_modules/domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "dev": true, - "dependencies": { - "webidl-conversions": "^7.0.0" - }, + "node_modules/http-errors/node_modules/depd": { + "version": "1.1.2", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 0.6" } }, - "node_modules/histoire/node_modules/entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", - "dev": true, + "node_modules/http-errors/node_modules/statuses": { + "version": "1.5.0", + "license": "MIT", "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" + "node": ">= 0.6" } }, - "node_modules/histoire/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dev": true, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" }, "engines": { "node": ">= 6" } }, - "node_modules/histoire/node_modules/globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", - "dev": true, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "license": "MIT", "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" + "agent-base": "6", + "debug": "4" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 6" } }, - "node_modules/histoire/node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, + "node_modules/human-signals": { + "version": "2.1.0", + "license": "Apache-2.0", "engines": { - "node": ">=12" + "node": ">=10.17.0" } }, - "node_modules/histoire/node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "node_modules/husky": { + "version": "8.0.1", "dev": true, - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "license": "MIT", + "bin": { + "husky": "lib/bin.js" }, "engines": { - "node": ">= 6" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" } }, - "node_modules/histoire/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, + "node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/histoire/node_modules/jsdom": { - "version": "20.0.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", - "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.2.0", "dev": true, - "dependencies": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=14" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } + "node": ">= 4" } }, - "node_modules/histoire/node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "node_modules/import-fresh": { + "version": "3.3.0", "dev": true, + "license": "MIT", "dependencies": { - "entities": "^4.4.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" }, "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/histoire/node_modules/saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, + "license": "MIT", "engines": { - "node": ">=v12.22.7" + "node": ">=4" } }, - "node_modules/histoire/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true, + "node_modules/import-local": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, "engines": { - "node": ">=12" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/histoire/node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "node_modules/import-meta-resolve": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-2.2.1.tgz", + "integrity": "sha512-C6lLL7EJPY44kBvA80gq4uMsVFw5x3oSKfuMl1cuZ2RkI5+UJqQXgn+6hlUew0y4ig7Ypt4CObAAIzU53Nfpuw==", "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.8.19" } }, - "node_modules/histoire/node_modules/w3c-xmlserializer": { + "node_modules/indent-string": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", "dev": true, - "dependencies": { - "xml-name-validator": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=14" + "node": ">=8" } }, - "node_modules/histoire/node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true, - "engines": { - "node": ">=12" + "node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/histoire/node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "license": "ISC" + }, + "node_modules/inquirer": { + "version": "7.3.3", "dev": true, + "license": "MIT", "dependencies": { - "iconv-lite": "0.6.3" + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.19", + "mute-stream": "0.0.8", + "run-async": "^2.4.0", + "rxjs": "^6.6.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6" }, "engines": { - "node": ">=12" + "node": ">=8.0.0" } }, - "node_modules/histoire/node_modules/whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "node_modules/inquirer/node_modules/rxjs": { + "version": "6.6.7", "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^1.9.0" + }, "engines": { - "node": ">=12" + "npm": ">=2.0.0" } }, - "node_modules/histoire/node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "node_modules/inquirer/node_modules/tslib": { + "version": "1.14.1", "dev": true, + "license": "0BSD" + }, + "node_modules/internal-slot": { + "version": "1.0.3", + "license": "MIT", "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" }, "engines": { - "node": ">=12" + "node": ">= 0.4" } }, - "node_modules/histoire/node_modules/ws": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", - "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", - "dev": true, + "node_modules/interpret": { + "version": "2.2.0", + "license": "MIT", "engines": { - "node": ">=10.0.0" + "node": ">= 0.10" + } + }, + "node_modules/ioredis": { + "version": "4.28.5", + "license": "MIT", + "dependencies": { + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.1", + "denque": "^1.1.0", + "lodash.defaults": "^4.2.0", + "lodash.flatten": "^4.4.0", + "lodash.isarguments": "^3.1.0", + "p-map": "^2.1.0", + "redis-commands": "1.7.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" + "engines": { + "node": ">=6" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" } }, - "node_modules/histoire/node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, + "node_modules/ioredis/node_modules/denque": { + "version": "1.5.1", + "license": "Apache-2.0", "engines": { - "node": ">=12" + "node": ">=0.10" } }, - "node_modules/hmac-drbg": { - "version": "1.0.1", + "node_modules/ipaddr.js": { + "version": "2.0.1", "license": "MIT", - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/hosted-git-info": { - "version": "4.1.0", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, "engines": { - "node": ">=10" + "node": ">= 10" } }, - "node_modules/hsl-regex": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/hsla-regex": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", + "node_modules/is-arguments": { + "version": "1.1.1", "license": "MIT", "dependencies": { - "whatwg-encoding": "^1.0.5" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/html-escaper": { - "version": "2.0.2", + "node_modules/is-arrayish": { + "version": "0.2.1", "license": "MIT" }, - "node_modules/html-tags": { - "version": "3.2.0", - "dev": true, + "node_modules/is-bigint": { + "version": "1.0.4", "license": "MIT", - "engines": { - "node": ">=8" + "dependencies": { + "has-bigints": "^1.0.1" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/http-errors": { - "version": "1.8.1", + "node_modules/is-binary-path": { + "version": "2.1.0", "license": "MIT", "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.1" + "binary-extensions": "^2.0.0" }, "engines": { - "node": ">= 0.6" + "node": ">=8" } }, - "node_modules/http-errors/node_modules/depd": { + "node_modules/is-boolean-object": { "version": "1.1.2", "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, "engines": { - "node": ">= 0.6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/http-errors/node_modules/statuses": { - "version": "1.5.0", + "node_modules/is-callable": { + "version": "1.2.4", "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", + "node_modules/is-color-stop": { + "version": "1.1.0", + "dev": true, "license": "MIT", "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" + "css-color-names": "^0.0.4", + "hex-color-regex": "^1.1.0", + "hsl-regex": "^1.0.0", + "hsla-regex": "^1.0.0", + "rgb-regex": "^1.0.1", + "rgba-regex": "^1.0.0" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", + "node_modules/is-core-module": { + "version": "2.9.0", "license": "MIT", "dependencies": { - "agent-base": "6", - "debug": "4" + "has": "^1.0.3" }, - "engines": { - "node": ">= 6" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/human-signals": { - "version": "2.1.0", - "license": "Apache-2.0", + "node_modules/is-date-object": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, "engines": { - "node": ">=10.17.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/husky": { - "version": "8.0.1", + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", "dev": true, - "license": "MIT", - "bin": { - "husky": "lib/bin.js" - }, "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" + "node": ">=0.10.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", + "node_modules/is-extglob": { + "version": "2.1.1", "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "5.2.0", - "dev": true, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", "license": "MIT", "engines": { - "node": ">= 4" + "node": ">=8" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "dev": true, + "node_modules/is-generator-fn": { + "version": "2.1.0", "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, "engines": { "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" } }, - "node_modules/import-local": { - "version": "3.1.0", + "node_modules/is-generator-function": { + "version": "1.0.10", "license": "MIT", "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-meta-resolve": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-2.2.1.tgz", - "integrity": "sha512-C6lLL7EJPY44kBvA80gq4uMsVFw5x3oSKfuMl1cuZ2RkI5+UJqQXgn+6hlUew0y4ig7Ypt4CObAAIzU53Nfpuw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/ini": { - "version": "1.3.8", - "license": "ISC" - }, - "node_modules/inquirer": { - "version": "7.3.3", - "dev": true, + "node_modules/is-glob": { + "version": "4.0.3", "license": "MIT", "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.19", - "mute-stream": "0.0.8", - "run-async": "^2.4.0", - "rxjs": "^6.6.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">=8.0.0" + "node": ">=0.10.0" } }, - "node_modules/inquirer/node_modules/rxjs": { - "version": "6.6.7", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^1.9.0" - }, + "node_modules/is-interactive": { + "version": "1.0.0", + "license": "MIT", "engines": { - "npm": ">=2.0.0" + "node": ">=8" } }, - "node_modules/inquirer/node_modules/tslib": { - "version": "1.14.1", - "dev": true, - "license": "0BSD" - }, - "node_modules/internal-slot": { - "version": "1.0.3", + "node_modules/is-negative-zero": { + "version": "2.0.2", "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/interpret": { - "version": "2.2.0", + "node_modules/is-number": { + "version": "7.0.0", "license": "MIT", "engines": { - "node": ">= 0.10" + "node": ">=0.12.0" } }, - "node_modules/ioredis": { - "version": "4.28.5", + "node_modules/is-number-object": { + "version": "1.0.7", "license": "MIT", "dependencies": { - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.1", - "denque": "^1.1.0", - "lodash.defaults": "^4.2.0", - "lodash.flatten": "^4.4.0", - "lodash.isarguments": "^3.1.0", - "p-map": "^2.1.0", - "redis-commands": "1.7.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=6" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ioredis" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ioredis/node_modules/denque": { - "version": "1.5.1", - "license": "Apache-2.0", + "node_modules/is-obj": { + "version": "2.0.0", + "license": "MIT", "engines": { - "node": ">=0.10" + "node": ">=8" } }, - "node_modules/ipaddr.js": { - "version": "2.0.1", + "node_modules/is-plain-obj": { + "version": "1.1.0", + "dev": true, "license": "MIT", "engines": { - "node": ">= 10" + "node": ">=0.10.0" } }, - "node_modules/is-arguments": { - "version": "1.1.1", + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.1.4", "license": "MIT", "dependencies": { "call-bind": "^1.0.2", @@ -11890,35 +12195,30 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "license": "MIT" - }, - "node_modules/is-bigint": { - "version": "1.0.4", + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", "license": "MIT", "dependencies": { - "has-bigints": "^1.0.1" + "call-bind": "^1.0.2" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", + "node_modules/is-stream": { + "version": "2.0.1", "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-boolean-object": { - "version": "1.1.2", + "node_modules/is-string": { + "version": "1.0.7", "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" }, "engines": { @@ -11928,214 +12228,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-callable": { - "version": "1.2.4", + "node_modules/is-symbol": { + "version": "1.0.4", "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-color-stop": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "css-color-names": "^0.0.4", - "hex-color-regex": "^1.1.0", - "hsl-regex": "^1.0.0", - "hsla-regex": "^1.0.0", - "rgb-regex": "^1.0.1", - "rgba-regex": "^1.0.0" - } - }, - "node_modules/is-core-module": { - "version": "2.9.0", - "license": "MIT", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-interactive": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-obj": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/is-regex": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.2" - }, + "dependencies": { + "has-symbols": "^1.0.2" + }, "engines": { "node": ">= 0.4" }, @@ -13737,6 +13835,16 @@ "node": "^12.20.0 || >=14" } }, + "node_modules/launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, "node_modules/leven": { "version": "3.1.0", "license": "MIT", @@ -16270,6 +16378,7 @@ "version": "2.78.1", "dev": true, "license": "MIT", + "peer": true, "bin": { "rollup": "dist/bin/rollup" }, @@ -16609,6 +16718,15 @@ "node": ">=8" } }, + "node_modules/shell-quote": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz", + "integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/shelljs": { "version": "0.8.5", "dev": true, @@ -16643,12 +16761,6 @@ "node": ">= 0.10" } }, - "node_modules/shiki-es": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.1.2.tgz", - "integrity": "sha512-eqtfk8idlYlSLAn0gp0Ly2+FbKc2d78IddigHSS4iHAnpXoY2kdRzyFGZOdi6TvemYMnRhZBi1HsSqZc5eNKqg==", - "dev": true - }, "node_modules/shorthash2": { "version": "1.0.3", "license": "MIT" @@ -17599,15 +17711,6 @@ "globrex": "^0.1.2" } }, - "node_modules/tinypool": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.1.3.tgz", - "integrity": "sha512-2IfcQh7CP46XGWGGbdyO4pjcKqsmVqFAPcXfPxcPXmOWt9cYkTP9HcDmGgsfijYoAEc4z9qcpM/BaBz46Y9/CQ==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/tmp": { "version": "0.0.33", "dev": true, @@ -18157,6 +18260,7 @@ "version": "3.1.8", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.15.9", "postcss": "^8.4.16", @@ -18193,38 +18297,6 @@ } } }, - "node_modules/vite-node": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.26.0.tgz", - "integrity": "sha512-nLtHWCv6reONl1oFsKhQ/LT7n3UNLpvVARAJlmGrQV6qSElht/9AdN41Pa+WSkw2Winh682UzM0Yw0GNlfqejw==", - "dev": true, - "dependencies": { - "debug": "^4.3.4", - "mlly": "^1.0.0", - "pathe": "^0.2.0", - "source-map": "^0.6.1", - "source-map-support": "^0.5.21", - "vite": "^3.0.0 || ^4.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": ">=v14.16.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/vite-node/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/vitefu": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.4.tgz", @@ -18732,6 +18804,12 @@ } }, "dependencies": { + "@akryum/tinypool": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@akryum/tinypool/-/tinypool-0.3.1.tgz", + "integrity": "sha512-nznEC1ZA/m3hQDEnrGQ4c5gkaa9pcaVnw4LFJyzBAaR7E3nfiAPEHS3otnSafpZouVnoKeITl5D+2LsnwlnK8g==", + "dev": true + }, "@ampproject/remapping": { "version": "2.2.0", "requires": { @@ -19692,7 +19770,25 @@ "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-7.6.0.tgz", "integrity": "sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw==" }, - "@graphql-tools/merge": { + "@fontsource/montserrat": { + "version": "4.5.14", + "resolved": "https://registry.npmjs.org/@fontsource/montserrat/-/montserrat-4.5.14.tgz", + "integrity": "sha512-fTvrteVzuFUePhr4QYBGoK8G/YHLJ3IhF1HhKg0AxcFvZajJT7rM7ULdmKLSd2PkX44R3aaFZq1zDbmjbGGI+w==" + }, + "@fortawesome/fontawesome-common-types": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.3.0.tgz", + "integrity": "sha512-4BC1NMoacEBzSXRwKjZ/X/gmnbp/HU5Qqat7E8xqorUtBFZS+bwfGH5/wqOC2K6GV0rgEobp3OjGRMa5fK9pFg==" + }, + "@fortawesome/free-brands-svg-icons": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.3.0.tgz", + "integrity": "sha512-xI0c+a8xnKItAXCN8rZgCNCJQiVAd2Y7p9e2ND6zN3J3ekneu96qrePieJ7yA7073C1JxxoM3vH1RU7rYsaj8w==", + "requires": { + "@fortawesome/fontawesome-common-types": "6.3.0" + } + }, + "@graphql-tools/merge": { "version": "6.2.14", "requires": { "@graphql-tools/schema": "^7.0.0", @@ -19731,66 +19827,6 @@ } } }, - "@histoire/app": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.12.4.tgz", - "integrity": "sha512-noemJQ3q5ofHbBJGJ9FgLIdoV4Feyn3zHMhOQjHZRPETdoAak2adALO4UWKVnFu75+R43SLtoV7HnK0TAPx5kw==", - "dev": true, - "requires": { - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4", - "@types/flexsearch": "^0.7.3", - "flexsearch": "0.7.21", - "shiki-es": "^0.1.2" - } - }, - "@histoire/controls": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.12.4.tgz", - "integrity": "sha512-p4qa11vXqhSMsnXW1p+n7ZqawoHVErLFL24yNnA9peMuXnR306/0cvdAnsLMQJdq5mDNayOY5Di69YKVQ0Shqg==", - "dev": true, - "requires": { - "@codemirror/commands": "^6.1.1", - "@codemirror/lang-json": "^6.0.0", - "@codemirror/language": "^6.2.1", - "@codemirror/lint": "^6.0.0", - "@codemirror/state": "^6.1.2", - "@codemirror/theme-one-dark": "^6.1.0", - "@codemirror/view": "^6.3.0", - "@histoire/vendors": "^0.12.4" - } - }, - "@histoire/plugin-svelte": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/plugin-svelte/-/plugin-svelte-0.12.4.tgz", - "integrity": "sha512-/bM5caUOjQ/vf6n4AVaGgHK5Z3yJvEF+SMp1KFDTBFqUFWbaC2d0sHNpuKJP8ilhfvtZVKBLdjRltbnT/+4gNQ==", - "dev": true, - "requires": { - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4" - } - }, - "@histoire/shared": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.12.4.tgz", - "integrity": "sha512-dVSrfsEu17KczjyHVW8yPvSlguhEV7hWjDSwsjlUrRdbe7hwztX4GbbcCIWvG5hy5gASpKpQq6FJa5uTs0HOsg==", - "dev": true, - "requires": { - "@types/fs-extra": "^9.0.13", - "@types/markdown-it": "^12.2.3", - "chokidar": "^3.5.3", - "pathe": "^0.2.0", - "picocolors": "^1.0.0" - } - }, - "@histoire/vendors": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.12.4.tgz", - "integrity": "sha512-NIi0krz19iSjPHhIsGLrW4Q3tvrCLfvCet2kFA8crKPX6inaMZm8g/+pDQBqlh9DRCXVbxV5RWQKcumrIFbrmw==", - "dev": true - }, "@humanwhocodes/config-array": { "version": "0.10.7", "dev": true, @@ -23476,6 +23512,12 @@ "bytes": { "version": "3.1.2" }, + "cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true + }, "call-bind": { "version": "1.0.2", "requires": { @@ -24446,6 +24488,7 @@ "esbuild": { "version": "0.15.12", "dev": true, + "peer": true, "requires": { "@esbuild/android-arm": "0.15.12", "@esbuild/linux-loong64": "0.15.12", @@ -25513,382 +25556,108 @@ "dependencies": { "argparse": { "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "hard-rejection": { - "version": "2.1.0", - "dev": true - }, - "has": { - "version": "1.0.3", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2" - }, - "has-flag": { - "version": "4.0.0" - }, - "has-property-descriptors": { - "version": "1.0.0", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3" - }, - "has-tostringtag": { - "version": "1.0.0", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "hash-base": { - "version": "3.1.0", - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "string_decoder": { - "version": "1.3.0", - "requires": { - "safe-buffer": "~5.2.0" - } - } - } - }, - "hash.js": { - "version": "1.1.7", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "header-case": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", - "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, - "requires": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, - "hex-color-regex": { - "version": "1.1.0", - "dev": true - }, - "hexoid": { - "version": "1.0.0", - "dev": true - }, - "highlight.js": { - "version": "10.7.3" - }, - "histoire": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.12.4.tgz", - "integrity": "sha512-q20Zncdh+GI2jDXiry1JS1DrN5qprKpl452AnS/P06Vgowqf79aG85E0XmhNpX2r8HI2HmIntwZ5FLd6hxYobQ==", - "dev": true, - "requires": { - "@histoire/app": "^0.12.4", - "@histoire/controls": "^0.12.4", - "@histoire/shared": "^0.12.4", - "@histoire/vendors": "^0.12.4", - "@types/flexsearch": "^0.7.3", - "@types/markdown-it": "^12.2.3", - "birpc": "^0.1.1", - "change-case": "^4.1.2", - "chokidar": "^3.5.3", - "connect": "^3.7.0", - "defu": "^6.0.0", - "diacritics": "^1.3.0", - "flexsearch": "0.7.21", - "fs-extra": "^10.0.1", - "globby": "^13.1.1", - "gray-matter": "^4.0.3", - "jiti": "^1.16.0", - "jsdom": "^20.0.3", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.6.2", - "markdown-it-attrs": "^4.1.3", - "markdown-it-emoji": "^2.0.0", - "micromatch": "^4.0.5", - "mrmime": "^1.0.0", - "pathe": "^0.2.0", - "picocolors": "^1.0.0", - "sade": "^1.8.1", - "shiki-es": "^0.1.2", - "sirv": "^2.0.2", - "tinypool": "^0.1.2", - "vite-node": "0.26.0" - }, - "dependencies": { - "@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true - }, - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - }, - "acorn-globals": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", - "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", - "dev": true, - "requires": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" - } - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", - "dev": true - }, - "data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dev": true, - "requires": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - } - }, - "domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "dev": true, - "requires": { - "webidl-conversions": "^7.0.0" - } - }, - "entities": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", - "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", - "dev": true - }, - "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", - "dev": true, - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - } - }, - "html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "requires": { - "whatwg-encoding": "^2.0.0" - } - }, - "http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dev": true, - "requires": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - } - }, - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - }, - "jsdom": { - "version": "20.0.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", - "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", - "dev": true, - "requires": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - } - }, - "parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dev": true, - "requires": { - "entities": "^4.4.0" - } - }, - "saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true - }, - "tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } - }, - "w3c-xmlserializer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", - "dev": true, - "requires": { - "xml-name-validator": "^4.0.0" - } - }, - "webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true - }, - "whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "iconv-lite": "0.6.3" + "sprintf-js": "~1.0.2" } }, - "whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "dev": true - }, - "whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "hard-rejection": { + "version": "2.1.0", + "dev": true + }, + "has": { + "version": "1.0.3", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-bigints": { + "version": "1.0.2" + }, + "has-flag": { + "version": "4.0.0" + }, + "has-property-descriptors": { + "version": "1.0.0", + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3" + }, + "has-tostringtag": { + "version": "1.0.0", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "hash-base": { + "version": "3.1.0", + "requires": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, - "ws": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", - "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", - "dev": true, - "requires": {} - }, - "xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true + "string_decoder": { + "version": "1.3.0", + "requires": { + "safe-buffer": "~5.2.0" + } } } }, + "hash.js": { + "version": "1.1.7", + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "header-case": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", + "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", + "dev": true, + "requires": { + "capital-case": "^1.0.4", + "tslib": "^2.0.3" + } + }, + "hex-color-regex": { + "version": "1.1.0", + "dev": true + }, + "hexoid": { + "version": "1.0.0", + "dev": true + }, + "highlight.js": { + "version": "10.7.3" + }, "hmac-drbg": { "version": "1.0.1", "requires": { @@ -27282,6 +27051,16 @@ } } }, + "launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dev": true, + "requires": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, "leven": { "version": "3.1.0" }, @@ -28935,6 +28714,7 @@ "rollup": { "version": "2.78.1", "dev": true, + "peer": true, "requires": { "fsevents": "~2.3.2" } @@ -29158,6 +28938,12 @@ "shebang-regex": { "version": "3.0.0" }, + "shell-quote": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz", + "integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==", + "dev": true + }, "shelljs": { "version": "0.8.5", "dev": true, @@ -29180,12 +28966,6 @@ } } }, - "shiki-es": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.1.2.tgz", - "integrity": "sha512-eqtfk8idlYlSLAn0gp0Ly2+FbKc2d78IddigHSS4iHAnpXoY2kdRzyFGZOdi6TvemYMnRhZBi1HsSqZc5eNKqg==", - "dev": true - }, "shorthash2": { "version": "1.0.3" }, @@ -29777,12 +29557,6 @@ "globrex": "^0.1.2" } }, - "tinypool": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.1.3.tgz", - "integrity": "sha512-2IfcQh7CP46XGWGGbdyO4pjcKqsmVqFAPcXfPxcPXmOWt9cYkTP9HcDmGgsfijYoAEc4z9qcpM/BaBz46Y9/CQ==", - "dev": true - }, "tmp": { "version": "0.0.33", "dev": true, @@ -30140,6 +29914,7 @@ "vite": { "version": "3.1.8", "dev": true, + "peer": true, "requires": { "esbuild": "^0.15.9", "fsevents": "~2.3.2", @@ -30148,28 +29923,6 @@ "rollup": "~2.78.0" } }, - "vite-node": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.26.0.tgz", - "integrity": "sha512-nLtHWCv6reONl1oFsKhQ/LT7n3UNLpvVARAJlmGrQV6qSElht/9AdN41Pa+WSkw2Winh682UzM0Yw0GNlfqejw==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "mlly": "^1.0.0", - "pathe": "^0.2.0", - "source-map": "^0.6.1", - "source-map-support": "^0.5.21", - "vite": "^3.0.0 || ^4.0.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, "vitefu": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.4.tgz", @@ -30219,7 +29972,9 @@ "version": "file:clients/web", "requires": { "@faker-js/faker": "^7.6.0", - "@histoire/plugin-svelte": "^0.12.4", + "@fontsource/montserrat": "^4.5.14", + "@fortawesome/free-brands-svg-icons": "*", + "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", @@ -30235,7 +29990,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-svelte3": "^4.0.0", "filedrop-svelte": "^0.1.2", - "histoire": "^0.12.4", + "histoire": "^0.15.4", "lodash.times": "^4.3.2", "nanoid": "^4.0.0", "postcss": "^8.4.14", @@ -30250,60 +30005,185 @@ "vite": "^4.0.4" }, "dependencies": { + "@histoire/app": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.15.8.tgz", + "integrity": "sha512-kVMqd07PS7RyI+XGQ2pMxXcj/UtsuHZc3nwNV8CfislUir9eK+itQBI3K8okqFt513tX85zUe82Dob2knrJ9NQ==", + "dev": true, + "requires": { + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "@types/flexsearch": "^0.7.3", + "flexsearch": "0.7.21", + "shiki-es": "^0.2.0" + } + }, + "@histoire/controls": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.15.8.tgz", + "integrity": "sha512-P4BNxVXM+lkL45rTZHV8+aHXvuTo2o7uir0Is7iWxR7jOtMr3ujBa/NQBXrp6+5TPw5whJXYRNAPJ1+jXiVfpQ==", + "dev": true, + "requires": { + "@codemirror/commands": "^6.1.1", + "@codemirror/lang-json": "^6.0.0", + "@codemirror/language": "^6.2.1", + "@codemirror/lint": "^6.0.0", + "@codemirror/state": "^6.1.2", + "@codemirror/theme-one-dark": "^6.1.0", + "@codemirror/view": "^6.3.0", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8" + } + }, + "@histoire/plugin-svelte": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/plugin-svelte/-/plugin-svelte-0.15.8.tgz", + "integrity": "sha512-9W/I+W0u90lrhZu5yre8Jsb2S3/a8009HztXC890LAMVp9MJ285aQY09cVJBUso+q9h5tXVjz5sbZxfKFZ0Aqg==", + "dev": true, + "requires": { + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "change-case": "^4.1.2", + "launch-editor": "^2.6.0", + "pathe": "^0.2.0" + } + }, + "@histoire/shared": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.15.8.tgz", + "integrity": "sha512-pHtCUJy6Zr8IUtKIXv4LCU80xD+5nx+bhqef6nfdVFsZhMp2WbtqGkIThUk74P/NPQTFoJSFECn/HmBqdXZlrg==", + "dev": true, + "requires": { + "@histoire/vendors": "^0.15.8", + "@types/fs-extra": "^9.0.13", + "@types/markdown-it": "^12.2.3", + "chokidar": "^3.5.3", + "pathe": "^0.2.0", + "picocolors": "^1.0.0" + } + }, + "@histoire/vendors": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.15.8.tgz", + "integrity": "sha512-RVvJmWlpRHa5dEdcAB+IB8OYKvw2Mv/tXF/Xu42SP2PwKkgQnTkDXmg+2HPMu9Uc+2i0u2cc9Lz+hqvkvS34kQ==", + "dev": true + }, "@sveltejs/adapter-auto": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@sveltejs/adapter-auto/-/adapter-auto-1.0.3.tgz", "integrity": "sha512-hc7O12YQqvZ1CD4fo1gMJuPzBZvuoG5kwxb2RRoz4fVoB8B2vuPO2cY751Ln0G6T/HMrAf8kCqw6Pg+wbxcstw==", "dev": true, "requires": { - "import-meta-resolve": "^2.2.0" + "import-meta-resolve": "^2.2.0" + } + }, + "@sveltejs/kit": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.8.3.tgz", + "integrity": "sha512-32tiLy5PPpt2lquK2p53/5wR+ghAXw0HymIBEezmwmwtzx7Xf36xw3RG3fDYQ9gyzon89T+JRweXgAv/qhhvSQ==", + "dev": true, + "requires": { + "@sveltejs/vite-plugin-svelte": "^2.0.0", + "@types/cookie": "^0.5.1", + "cookie": "^0.5.0", + "devalue": "^4.3.0", + "esm-env": "^1.0.0", + "kleur": "^4.1.5", + "magic-string": "^0.29.0", + "mime": "^3.0.0", + "sade": "^1.8.1", + "set-cookie-parser": "^2.5.1", + "sirv": "^2.0.2", + "tiny-glob": "^0.2.9", + "undici": "5.20.0" + } + }, + "@sveltejs/vite-plugin-svelte": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.0.2.tgz", + "integrity": "sha512-xCEan0/NNpQuL0l5aS42FjwQ6wwskdxC3pW1OeFtEKNZwRg7Evro9lac9HesGP6TdFsTv2xMes5ASQVKbCacxg==", + "dev": true, + "requires": { + "debug": "^4.3.4", + "deepmerge": "^4.2.2", + "kleur": "^4.1.5", + "magic-string": "^0.27.0", + "svelte-hmr": "^0.15.1", + "vitefu": "^0.2.3" + }, + "dependencies": { + "magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.4.13" + } + } + } + }, + "@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true + }, + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true + }, + "acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "dev": true, + "requires": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + }, + "cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", + "dev": true + }, + "data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dev": true, + "requires": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" } }, - "@sveltejs/kit": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.8.3.tgz", - "integrity": "sha512-32tiLy5PPpt2lquK2p53/5wR+ghAXw0HymIBEezmwmwtzx7Xf36xw3RG3fDYQ9gyzon89T+JRweXgAv/qhhvSQ==", + "domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", "dev": true, "requires": { - "@sveltejs/vite-plugin-svelte": "^2.0.0", - "@types/cookie": "^0.5.1", - "cookie": "^0.5.0", - "devalue": "^4.3.0", - "esm-env": "^1.0.0", - "kleur": "^4.1.5", - "magic-string": "^0.29.0", - "mime": "^3.0.0", - "sade": "^1.8.1", - "set-cookie-parser": "^2.5.1", - "sirv": "^2.0.2", - "tiny-glob": "^0.2.9", - "undici": "5.20.0" + "webidl-conversions": "^7.0.0" } }, - "@sveltejs/vite-plugin-svelte": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.0.2.tgz", - "integrity": "sha512-xCEan0/NNpQuL0l5aS42FjwQ6wwskdxC3pW1OeFtEKNZwRg7Evro9lac9HesGP6TdFsTv2xMes5ASQVKbCacxg==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "deepmerge": "^4.2.2", - "kleur": "^4.1.5", - "magic-string": "^0.27.0", - "svelte-hmr": "^0.15.1", - "vitefu": "^0.2.3" - }, - "dependencies": { - "magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.13" - } - } - } + "entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "dev": true }, "esbuild": { "version": "0.16.17", @@ -30335,6 +30215,132 @@ "@esbuild/win32-x64": "0.16.17" } }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "globby": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", + "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", + "dev": true, + "requires": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.11", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^4.0.0" + } + }, + "histoire": { + "version": "0.15.8", + "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.15.8.tgz", + "integrity": "sha512-weDuhDeguNy+9MNTm04OCk2tyJCKndzxp9pcOivxrIeuwmxA1nv7L5bye1YG7gjKWEOuifxRt9VWYAHo2Nc8VA==", + "dev": true, + "requires": { + "@akryum/tinypool": "^0.3.1", + "@histoire/app": "^0.15.8", + "@histoire/controls": "^0.15.8", + "@histoire/shared": "^0.15.8", + "@histoire/vendors": "^0.15.8", + "@types/flexsearch": "^0.7.3", + "@types/markdown-it": "^12.2.3", + "birpc": "^0.1.1", + "change-case": "^4.1.2", + "chokidar": "^3.5.3", + "connect": "^3.7.0", + "defu": "^6.0.0", + "diacritics": "^1.3.0", + "flexsearch": "0.7.21", + "fs-extra": "^10.0.1", + "globby": "^13.1.1", + "gray-matter": "^4.0.3", + "jiti": "^1.16.0", + "jsdom": "^20.0.3", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.6.2", + "markdown-it-attrs": "^4.1.3", + "markdown-it-emoji": "^2.0.0", + "micromatch": "^4.0.5", + "mrmime": "^1.0.0", + "pathe": "^0.2.0", + "picocolors": "^1.0.0", + "sade": "^1.8.1", + "shiki-es": "^0.2.0", + "sirv": "^2.0.2", + "vite-node": "0.28.4" + } + }, + "html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "dev": true, + "requires": { + "whatwg-encoding": "^2.0.0" + } + }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dev": true, + "requires": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + } + }, "magic-string": { "version": "0.29.0", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.29.0.tgz", @@ -30356,6 +30362,15 @@ "integrity": "sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==", "dev": true }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, + "requires": { + "entities": "^4.4.0" + } + }, "postcss-load-config": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", @@ -30384,6 +30399,33 @@ "fsevents": "~2.3.2" } }, + "saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, + "shiki-es": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.2.0.tgz", + "integrity": "sha512-RbRMD+IuJJseSZljDdne9ThrUYrwBwJR04FvN4VXpfsU3MNID5VJGHLAD5je/HGThCyEKNgH+nEkSFEWKD7C3Q==", + "dev": true + }, + "slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, "svelte-hmr": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.1.tgz", @@ -30440,6 +30482,15 @@ } } }, + "tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } + }, "vite": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vite/-/vite-4.1.3.tgz", @@ -30453,6 +30504,83 @@ "rollup": "^3.10.0" } }, + "vite-node": { + "version": "0.28.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.28.4.tgz", + "integrity": "sha512-KM0Q0uSG/xHHKOJvVHc5xDBabgt0l70y7/lWTR7Q0pR5/MrYxadT+y32cJOE65FfjGmJgxpVEEY+69btJgcXOQ==", + "dev": true, + "requires": { + "cac": "^6.7.14", + "debug": "^4.3.4", + "mlly": "^1.1.0", + "pathe": "^1.1.0", + "picocolors": "^1.0.0", + "source-map": "^0.6.1", + "source-map-support": "^0.5.21", + "vite": "^3.0.0 || ^4.0.0" + }, + "dependencies": { + "pathe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.0.tgz", + "integrity": "sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==", + "dev": true + } + } + }, + "w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "dev": true, + "requires": { + "xml-name-validator": "^4.0.0" + } + }, + "webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true + }, + "whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "dev": true, + "requires": { + "iconv-lite": "0.6.3" + } + }, + "whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true + }, + "whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dev": true, + "requires": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + } + }, + "ws": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", + "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "dev": true, + "requires": {} + }, + "xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true + }, "yaml": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", From f06126fa52bfb2e356e611cb1dddbdf526b4fe00 Mon Sep 17 00:00:00 2001 From: Brian D Date: Tue, 21 Feb 2023 16:53:50 -0600 Subject: [PATCH 17/94] fix: use steeze-ui icons --- clients/web/package.json | 2 +- clients/web/src/app.postcss | 2 +- .../src/lib/actions/useOauthPopup.action.ts | 4 +- .../web/src/lib/components/abstract/index.ts | 2 +- .../lib/components/atoms/Button/Button.svelte | 53 ++++++++----- .../src/lib/components/atoms/Button/types.ts | 11 +-- .../layouts/CenterCard/CenterCard.svelte | 15 ++-- .../components/layouts/CenterCard/index.ts | 2 +- .../web/src/lib/components/layouts/index.ts | 2 +- .../web/src/lib/images/logo/EpicGames.icon.ts | 25 ------ .../utilities/iconDefinitionToIconSource.ts | 17 ---- clients/web/src/routes/auth/+layout.svelte | 11 +-- .../web/src/routes/auth/login/+page.svelte | 79 +++++++++++++------ package-lock.json | 50 ++++-------- 14 files changed, 129 insertions(+), 146 deletions(-) delete mode 100644 clients/web/src/lib/images/logo/EpicGames.icon.ts delete mode 100644 clients/web/src/lib/utilities/iconDefinitionToIconSource.ts diff --git a/clients/web/package.json b/clients/web/package.json index e567f9664..d9ab0778a 100644 --- a/clients/web/package.json +++ b/clients/web/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", + "@steeze-ui/simple-icons": "^1.4.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", "@sveltejs/kit": "^1.1.1", @@ -48,7 +49,6 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "@fontsource/montserrat": "^4.5.14", - "@fortawesome/free-brands-svg-icons": "^6.3.0", "echarts": "^5.4.1" } } diff --git a/clients/web/src/app.postcss b/clients/web/src/app.postcss index b225ef702..1cbf7b110 100644 --- a/clients/web/src/app.postcss +++ b/clients/web/src/app.postcss @@ -5,4 +5,4 @@ body { font-family: "Montserrat"; -} \ No newline at end of file +} diff --git a/clients/web/src/lib/actions/useOauthPopup.action.ts b/clients/web/src/lib/actions/useOauthPopup.action.ts index 3dd18dc5b..3232ef947 100644 --- a/clients/web/src/lib/actions/useOauthPopup.action.ts +++ b/clients/web/src/lib/actions/useOauthPopup.action.ts @@ -30,7 +30,9 @@ function openWindow(windowUrl: string, callback: CallableFunction): void { const newWindow = window.open(windowUrl, "SprocketOAuth", strWindowFeatures); if (newWindow === null) { // Something is wrong? - } else { popup = newWindow } + } else { + popup = newWindow; + } _callback = callback; } diff --git a/clients/web/src/lib/components/abstract/index.ts b/clients/web/src/lib/components/abstract/index.ts index 8947d8cb3..0c8935ef8 100644 --- a/clients/web/src/lib/components/abstract/index.ts +++ b/clients/web/src/lib/components/abstract/index.ts @@ -1,2 +1,2 @@ export * from "./Portal"; -export * from "./Toast"; \ No newline at end of file +export * from "./Toast"; diff --git a/clients/web/src/lib/components/atoms/Button/Button.svelte b/clients/web/src/lib/components/atoms/Button/Button.svelte index d3306767f..af498aea9 100644 --- a/clients/web/src/lib/components/atoms/Button/Button.svelte +++ b/clients/web/src/lib/components/atoms/Button/Button.svelte @@ -1,31 +1,48 @@ - \ No newline at end of file + .button-default { + @apply text-white bg-info-600 hover:bg-info-700 focus:ring-info-800; + } + .button-alt { + @apply border focus:z-10 focus:ring-gray-700 bg-gray-800 text-gray-100 border-gray-600 hover:text-white hover:bg-gray-800; + } + .button-dark { + @apply text-white bg-gray-800 hover:bg-gray-700 focus:ring-gray-700 border-gray-700; + } + .button-light { + @apply border bg-gray-800 text-white border-gray-600 hover:bg-gray-700 hover:border-gray-600 focus:ring-gray-700; + } + .button-success { + @apply text-white bg-success-600 hover:bg-success-700 focus:ring-success-800; + } + .button-danger { + @apply text-white bg-danger-600 hover:bg-danger-700 focus:ring-danger-900; + } + .button-warning { + @apply text-white bg-warning-400 hover:bg-warning-500 focus:ring-warning-900; + } + diff --git a/clients/web/src/lib/components/atoms/Button/types.ts b/clients/web/src/lib/components/atoms/Button/types.ts index c3bdbf00f..ccb166c24 100644 --- a/clients/web/src/lib/components/atoms/Button/types.ts +++ b/clients/web/src/lib/components/atoms/Button/types.ts @@ -1,13 +1,4 @@ -export type ButtonVariant = - "default" | - "alt" | - "dark" | - "light" | - "success" | - "danger" | - "warning" -; - +export type ButtonVariant = "default" | "alt" | "dark" | "light" | "success" | "danger" | "warning"; // export type ProgressBarSize = "sm" | "md" | "lg" | "xl"; // export type ProgressLocation = "hidden" | "inside" | "outside"; diff --git a/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte index 9a5d61d39..129abc175 100644 --- a/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte +++ b/clients/web/src/lib/components/layouts/CenterCard/CenterCard.svelte @@ -1,9 +1,12 @@ -
-
- -
-
\ No newline at end of file +
+
+ +
+
diff --git a/clients/web/src/lib/components/layouts/CenterCard/index.ts b/clients/web/src/lib/components/layouts/CenterCard/index.ts index 637518ce5..536d59ecb 100644 --- a/clients/web/src/lib/components/layouts/CenterCard/index.ts +++ b/clients/web/src/lib/components/layouts/CenterCard/index.ts @@ -1 +1 @@ -export {default as CenterCard} from "./CenterCard.svelte" \ No newline at end of file +export {default as CenterCard} from "./CenterCard.svelte"; diff --git a/clients/web/src/lib/components/layouts/index.ts b/clients/web/src/lib/components/layouts/index.ts index a67b3a484..bdb0f5d41 100644 --- a/clients/web/src/lib/components/layouts/index.ts +++ b/clients/web/src/lib/components/layouts/index.ts @@ -1,2 +1,2 @@ export * from "./Dashboard"; -export * from "./CenterCard"; \ No newline at end of file +export * from "./CenterCard"; diff --git a/clients/web/src/lib/images/logo/EpicGames.icon.ts b/clients/web/src/lib/images/logo/EpicGames.icon.ts deleted file mode 100644 index 60f6862b9..000000000 --- a/clients/web/src/lib/images/logo/EpicGames.icon.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { IconDefinition, IconName } from "@fortawesome/free-brands-svg-icons"; -import type { IconSource } from "@steeze-ui/svelte-icon/types"; - -// This is currently fairly brittle; the text/cutout isn't _actually_ cut out, it's just pretending. -export const EpicGames: IconSource = { - default: { - a: { - viewBox: `0 0 647.167 750.977`, - stroke: "none", - fill: "currentColor", - }, - path: [{ - "transform": "matrix(1.33333 0 0 -1.33333 -278.052 902.583)", - d: "M649.836 676.938h-397.22c-32.195 0-44.077-11.882-44.077-44.093V244.169c0-3.645.147-7.031.469-10.168.733-7.031.87-13.844 7.41-21.601.639-.76 7.315-5.728 7.315-5.728 3.59-1.761 6.043-3.058 10.093-4.688l195.596-81.948c10.154-4.655 14.4-6.47 21.775-6.323v-.001h.058c7.375-.145 11.62 1.669 21.776 6.324l195.595 81.948c4.05 1.63 6.502 2.927 10.094 4.688 0 0 6.676 4.968 7.314 5.728 6.539 7.757 6.677 14.57 7.41 21.6.322 3.138.47 6.524.47 10.169v388.676c0 32.21-11.883 44.093-44.078 44.093", - fill: "currentColor", - stroke: "none", - "clip-path": "M623.23 286.175l-.09-.897-.089-.985-.18-.897-.268-.896-.174-.807-.27-.897-.358-.807-.359-.718-.353-.806-.448-.717-.448-.718-.533-.717-.449-.717-.532-.627-.628-.628-.533-.538-.716-.628-.623-.538-.717-.538-.712-.442-.712-.538-.807-.448-.802-.359-.8-.448-.898-.359-.89-.359-.892-.268-.89-.27-.808-.268-.89-.18-.803-.179-.8-.179-.898-.18-.892-.089-.8-.09-.898-.09-.98-.09-.892-.089H595.65l-.893.089h-.98l-.892.09-.896.09-.98.09-.892.179-.89.09-.898.179-.892.179-.89.18-.892.179-.896.268-.802.18-.89.269-.893.269-.806.359-.89.269-.803.268-.892.359-.806.359-.802.359-.802.442-.806.359-.802.449-.712.447-.807.449-.712.448-.717.448-.712.538-.712.538-.717.538-.713.538-.627.538-.712.627.538.717.622.628.538.718.623.717.538.627.532.717.628.718.532.627.628.717.533.628.627.717.533.718.538.627.622.717.538.718.622.627.538.717.712-.538.802-.538.717-.538.802-.538.717-.448.802-.537.711-.449.808-.358.711-.449.802-.359.807-.358.801-.359.803-.269.806-.358.891-.269.892-.269.801-.269.897-.18.891-.179.891-.179.981-.09.896-.179h.892l.98-.089H599.13l.981.089.897.179.801.18.802.179.717.269.623.358.717.538.532.628.36.718.27.806.087.897v.179l-.088 1.076-.359.897-.449.627-.622.538-.718.538-.712.358-.8.359-.898.359-1.07.447-.623.18-.71.179-.808.27-.802.179-.89.269-.898.179-.98.269-.892.179-.98.269-.892.179-.897.269-.89.18-.892.269-.807.268-.89.18-.803.269-.8.269-.808.269-.98.359-.892.359-.892.358-.896.359-.8.448-.893.448-.717.448-.802.448-.712.538-.717.448-.622.539-.627.627-.623.628-.538.628-.532.627-.449.627-.443.718-.448.806-.359.622-.269.718-.263.807-.269.717-.18.897-.179.807-.09.896-.089.897-.09.985V314.859l.09.896.09.807.09.897.178.806.18.807.27.808.178.806.353.807.36.807.357.806.444.808.447.806.533.718.54.717.621.717.627.627.623.718.717.628.622.448.717.538.713.538.711.448.807.448.802.359.801.448.807.358.891.27.891.358.807.269.712.18.803.179.806.179.891.179.802.18.891.089.897.09.891.09.891.089h3.839l.981-.089.981-.09h.891l.986-.09.891-.179.981-.09.892-.179.807-.179.891-.179.891-.18.802-.179.896-.269.802-.269.802-.18.896-.358.802-.269.801-.358.802-.359.896-.359.802-.448.712-.359.807-.448.802-.448.712-.449.806-.538.713-.447.717-.539.712-.538.711-.537-.532-.718-.448-.717-.533-.717-.538-.718-.532-.806-.449-.717-.538-.718-.533-.717-.447-.717-.534-.718-.537-.717-.449-.717-.532-.807-.539-.717-.532-.717-.448-.717-.533-.717-.717.537-.8.449-.714.448-.717.538-.8.358-.719.449-.8.359-.713.358-.807.359-.712.358-.8.269-.718.359-.982.268-.89.27-.892.268-.897.18-.89.179-.892.18-.89.09-.898.089-.8.09h-1.963l-.98-.179-.898-.18-.8-.179-.713-.359-.628-.358-.802-.718-.538-.807-.352-.807-.09-.896v-.18l.09-1.165.442-.986.36-.538.621-.628.807-.448.712-.448.891-.359.986-.359 1.071-.358.712-.179.712-.269.807-.179.801-.269.891-.18.987-.269.981-.268.981-.27.98-.179.891-.269.981-.269.897-.179.892-.269.891-.269.801-.269.897-.269.802-.269.801-.269.986-.353.891-.449.891-.358.892-.448.807-.449.802-.448.711-.448.717-.538.713-.448.712-.628.717-.627.622-.718.627-.627.533-.718.538-.806.443-.717.45-.808.357-.717.27-.806.263-.807.18-.807.178-.897.18-.897.09-.896.09-.986v-2.152zm-62.594-17.926H509.494v65.258H561.08V318.713H526.537V308.045H557.6V294.154H526.537V283.038H561.528V268.249zm-65.214 0H479.09v38.589l-.447-.717-.533-.813-.449-.717-.532-.718-.448-.806-.539-.718-.442-.717-.449-.812-.532-.717-.449-.717-.537-.718-.443-.812-.538-.717-.443-.717-.449-.807-.538-.722-.443-.718-.538-.806-.442-.718-.538-.717-.443-.812-.449-.718-.537-.717-.443-.807-.538-.722-.443-.717-.538-.718-.449-.806-.443-.722-.537-.718-.443-.807-.538-.717-.448-.717-.533-.813-.448-.717h-.354l-.537.807-.449.723-.533.807-.448.717-.533.806-.448.723-.532.807-.449.718-.538.806-.443.717-.538.813-.442.717-.538.807-.449.717-.532.812-.449.717-.532.807-.538.717-.448.812-.533.717-.448.807-.533.717-.448.813-.533.717-.448.807-.538.717-.443.807-.538.723-.443.806-.538.718-.448.807-.532.716-.45.813-.532.717V268.249H428.036v65.258h18.299l.443-.718.448-.806.532-.712.45-.807.447-.717.443-.808.448-.711.534-.808.447-.717.45-.717.442-.801.448-.718.533-.806.448-.718.448-.801.443-.717.538-.717.45-.803.441-.716.448-.807.444-.718.538-.801.448-.718.442-.806.45-.712.442-.717.538-.807.448-.718.443-.807.448-.712.443-.807.54-.717.447-.801.443-.718.448.718.448.801.533.717.447.807.444.712.448.807.533.718.448.807.45.717.441.712.538.806.443.718.45.801.446.718.533.807.448.716.45.803.441.717.45.717.532.801.448.718.448.806.444.718.537.801.444.717.447.717.45.808.531.711.45.808.441.717.45.807.537.712.443.806.448.718H496.313v-65.258zM391.863 295.14l-.269.812-.353.897-.359.807-.269.812-.353.807-.358.897-.27.812-.359.807-.352.806-.27.812-.359.897-.263.807-.359.812-.359.807-.268.807-.354.901-.358.808-.269.806-.359.812-.353.897-.269.812-.359.807-.353-.807-.268-.812-.359-.897-.359-.812-.264-.806-.358-.808-.359-.901-.353-.807-.27-.807-.358-.812-.359-.807-.264-.897-.358-.812-.359-.806-.268-.807-.354-.812-.359-.897-.358-.807-.263-.812-.359-.807-.359-.897-.269-.812-.353-.807H392.221zm28.03-26.891h-17.498l-.354.808-.269.807-.358.807-.359.896-.264.802-.358.806-.359.807-.264.807-.358.807-.359.807-.268.807-.354.896-.359.807-.269.807-.359.807H371.871l-.354-.807-.269-.807-.359-.807-.358-.896-.264-.807-.358-.807-.359-.807-.269-.807-.353-.807-.359-.806-.269-.802-.354-.896-.358-.807-.269-.807-.359-.808h-18.024l.352.808.36.807.357.807.354.896.27.802.358.806.358.807.353.807.36.807.358.897.353.807.36.806.267.807.36.807.352.807.36.896.357.807.354.808.36.806.357.807.27.807.352.897.36.806.358.807.353.807.36.807.358.807.353.897.27.806.358.807.358.807.354.807.358.807.358.896.354.807.358.807.27.807.358.806.353.807.36.897.358.807.353.807.358.807.36.806.268.808.354.801.358.897.358.806.354.808.358.807.36.806.352.807.27.897.358.806.358.807.354.807.36.807.357.807.354.897.358.806.27.807.357.807.354.807.358.807.36.896.352.807.36.807.358.807.263.806.36.808.358.896.36.807.352.807.36.807.357.807.353.806.27.897.358.807.36.807.352.807h16.512l.358-.807.36-.807.353-.807.358-.897.27-.806.352-.807.36-.807.357-.807.36-.807.352-.896.36-.808.358-.806.263-.807.36-.807.358-.807.36-.896.352-.807.358-.807.36-.807.352-.807.27-.806.357-.897.354-.807.36-.807.357-.807.36-.807.352-.806.358-.897.27-.807.353-.806.358-.807.36-.808.358-.806.353-.897.36-.801.357-.808.264-.806.358-.807.36-.807.353-.807.358-.897.36-.807.358-.806.353-.807.27-.807.357-.807.354-.896.358-.807.36-.807.357-.807.354-.807.36-.806.267-.897.354-.807.358-.807.36-.807.352-.807.36-.806.358-.897.36-.807.262-.807.36-.806.358-.808.353-.807.358-.896.36-.807.357-.807.353-.807.27-.806.36-.807.352-.897.358-.807.358-.807.354-.807.358-.806.36-.802.27-.896.351-.807.36-.807.357-.808zm-78.193 8.334l-.717-.538-.623-.449-.717-.538-.712-.448-.712-.538-.717-.448-.712-.449-.807-.447-.802-.449-.802-.448-.806-.353-.802-.449-.89-.358-.802-.359-.897-.358-.8-.359-.804-.269-.806-.269-.802-.27-.89-.268-.802-.27-.897-.179-.802-.179-.89-.179-.897-.179-.892-.09-.98-.09-.892-.09-.98-.089-.898-.09-.98-.089h-3.84l-.89.089-.982.09-.89.089-.892.09-.897.09-.89.179-.893.18-.8.179-.897.179-.802.269-.89.179-.808.27-.802.358-.802.269-.89.359-.807.358-.802.358-.8.359-.809.448-.71.444-.803.448-.717.449-.712.447-.717.539-.712.537-.713.538-.627.538-.622.538-.628.628-.622.537-.628.628-.622.628-.538.627-.533.717-.538.628-.448.717-.533.718-.447.716-.444.718-.448.807-.448.717-.353.807-.359.807-.358.807-.354.806-.269.717-.359.808-.179.807-.264.806-.179.896-.269.808-.179.896-.09.807-.18.897-.088.806-.09.897-.085.897-.089.896V301.775l.09.986v.896l.083.897.091.986.18.891.088.897.18.807.268.896.18.897.263.807.27.896.268.807.36.897.353.806.358.807.36.807.352.807.448.807.448.717.444.718.447.717.45.717.531.717.538.717.533.717.538.629.622.627.538.628.623.626.627.629.622.537.717.628.623.538.712.538.717.448.712.538.718.448.711.448.802.449.807.448.801.448.802.359.806.358.892.449.712.268.891.27.808.358.801.18.801.269.896.179.802.269.891.179.892.09.896.179.892.09.89.089.892.09.897.09H315.9l.987-.09.981-.09h.891l.891-.089.981-.18.807-.089.891-.18.892-.179.806-.179.801-.179.803-.18.807-.269.801-.179.712-.269.807-.269.802-.358.801-.359.807-.359.802-.448.801-.359.718-.448.801-.448.712-.448.807-.449.712-.537.712-.449.717-.538.712-.538.717-.627.712-.538-.538-.718-.622-.627-.538-.717-.622-.717-.538-.718-.533-.627-.628-.717-.532-.717-.538-.629-.623-.717-.537-.717-.623-.717-.538-.628-.532-.717-.627-.717-.534-.717-.627-.628-.533-.717-.717.538-.712.627-.717.449-.712.538-.712.448-.717.449-.713.447-.8.449-.718.358-.712.359-.717.269-.802.269-.8.269-.808.179-.89.18-.892.179-.892.089-.98.09-.987.089H312.958l-.89-.089-.808-.09-.89-.179-.803-.18-.807-.268-.8-.269-.803-.359-.802-.358-.717-.448-.71-.449-.719-.449-.622-.537-.628-.538-.622-.538-.538-.627-.622-.628-.538-.717-.444-.628-.448-.717-.442-.807-.449-.717-.358-.807-.269-.807-.354-.807-.269-.896-.179-.892-.179-.806-.18-.987-.089-.896-.084-.896V299.802l.084-.896.09-.807.09-.897.178-.806.18-.808.18-.806.268-.807.264-.717.36-.896.357-.808.443-.807.448-.717.448-.717.533-.718.538-.627.622-.628.54-.627.62-.538.718-.538.712-.538.711-.448.717-.448.803-.359.801-.359.806-.358.892-.269.891-.269.897-.18.891-.179.891-.089.981-.09h2.051l.987.09.981.089.891.09.891.18.897.179.891.268.801.18.803.358.717.359.801.359.627.358.713.449v8.158h-13.032V306.252H342.322V277.12zM312.995 481.16h38.683v29.921h-38.683v61.086h40.223v29.922h-73.072V386.14h73.684v29.922h-40.835zM590.07 474.677v-48.744c0-8.639-3.993-12.647-12.278-12.647h-6.144c-8.595 0-12.588 4.008-12.588 12.647v136.362c0 8.638 3.993 12.646 12.588 12.646h5.527c8.29 0 12.283-4.008 12.283-12.646v-42.269h32.233v44.12c0 26.837-12.895 39.795-39.6 39.795h-15.97c-26.705 0-39.911-13.264-39.911-40.106V424.393c0-26.843 13.206-40.106 39.912-40.106h16.274c26.712 0 39.91 13.263 39.91 40.106v50.284zM475.995 386.138h32.854V602.09h-32.854zM428.326 506.146c0-8.639-3.987-12.652-12.277-12.652h-13.511v79.596h13.51c8.29 0 12.278-4.009 12.278-12.646zm-7.061 95.944h-51.577V386.138h32.85V464.5h18.727c26.71 0 39.91 13.263 39.91 40.1v57.384c0 26.842-13.2 40.106-39.91 40.106" - }, { - "transform": "matrix(1.33333 0 0 -1.33333 -278.052 902.583)", - d: "M623.23 286.175l-.09-.897-.089-.985-.18-.897-.268-.896-.174-.807-.27-.897-.358-.807-.359-.718-.353-.806-.448-.717-.448-.718-.533-.717-.449-.717-.532-.627-.628-.628-.533-.538-.716-.628-.623-.538-.717-.538-.712-.442-.712-.538-.807-.448-.802-.359-.8-.448-.898-.359-.89-.359-.892-.268-.89-.27-.808-.268-.89-.18-.803-.179-.8-.179-.898-.18-.892-.089-.8-.09-.898-.09-.98-.09-.892-.089H595.65l-.893.089h-.98l-.892.09-.896.09-.98.09-.892.179-.89.09-.898.179-.892.179-.89.18-.892.179-.896.268-.802.18-.89.269-.893.269-.806.359-.89.269-.803.268-.892.359-.806.359-.802.359-.802.442-.806.359-.802.449-.712.447-.807.449-.712.448-.717.448-.712.538-.712.538-.717.538-.713.538-.627.538-.712.627.538.717.622.628.538.718.623.717.538.627.532.717.628.718.532.627.628.717.533.628.627.717.533.718.538.627.622.717.538.718.622.627.538.717.712-.538.802-.538.717-.538.802-.538.717-.448.802-.537.711-.449.808-.358.711-.449.802-.359.807-.358.801-.359.803-.269.806-.358.891-.269.892-.269.801-.269.897-.18.891-.179.891-.179.981-.09.896-.179h.892l.98-.089H599.13l.981.089.897.179.801.18.802.179.717.269.623.358.717.538.532.628.36.718.27.806.087.897v.179l-.088 1.076-.359.897-.449.627-.622.538-.718.538-.712.358-.8.359-.898.359-1.07.447-.623.18-.71.179-.808.27-.802.179-.89.269-.898.179-.98.269-.892.179-.98.269-.892.179-.897.269-.89.18-.892.269-.807.268-.89.18-.803.269-.8.269-.808.269-.98.359-.892.359-.892.358-.896.359-.8.448-.893.448-.717.448-.802.448-.712.538-.717.448-.622.539-.627.627-.623.628-.538.628-.532.627-.449.627-.443.718-.448.806-.359.622-.269.718-.263.807-.269.717-.18.897-.179.807-.09.896-.089.897-.09.985V314.859l.09.896.09.807.09.897.178.806.18.807.27.808.178.806.353.807.36.807.357.806.444.808.447.806.533.718.54.717.621.717.627.627.623.718.717.628.622.448.717.538.713.538.711.448.807.448.802.359.801.448.807.358.891.27.891.358.807.269.712.18.803.179.806.179.891.179.802.18.891.089.897.09.891.09.891.089h3.839l.981-.089.981-.09h.891l.986-.09.891-.179.981-.09.892-.179.807-.179.891-.179.891-.18.802-.179.896-.269.802-.269.802-.18.896-.358.802-.269.801-.358.802-.359.896-.359.802-.448.712-.359.807-.448.802-.448.712-.449.806-.538.713-.447.717-.539.712-.538.711-.537-.532-.718-.448-.717-.533-.717-.538-.718-.532-.806-.449-.717-.538-.718-.533-.717-.447-.717-.534-.718-.537-.717-.449-.717-.532-.807-.539-.717-.532-.717-.448-.717-.533-.717-.717.537-.8.449-.714.448-.717.538-.8.358-.719.449-.8.359-.713.358-.807.359-.712.358-.8.269-.718.359-.982.268-.89.27-.892.268-.897.18-.89.179-.892.18-.89.09-.898.089-.8.09h-1.963l-.98-.179-.898-.18-.8-.179-.713-.359-.628-.358-.802-.718-.538-.807-.352-.807-.09-.896v-.18l.09-1.165.442-.986.36-.538.621-.628.807-.448.712-.448.891-.359.986-.359 1.071-.358.712-.179.712-.269.807-.179.801-.269.891-.18.987-.269.981-.268.981-.27.98-.179.891-.269.981-.269.897-.179.892-.269.891-.269.801-.269.897-.269.802-.269.801-.269.986-.353.891-.449.891-.358.892-.448.807-.449.802-.448.711-.448.717-.538.713-.448.712-.628.717-.627.622-.718.627-.627.533-.718.538-.806.443-.717.45-.808.357-.717.27-.806.263-.807.18-.807.178-.897.18-.897.09-.896.09-.986v-2.152zm-62.594-17.926H509.494v65.258H561.08V318.713H526.537V308.045H557.6V294.154H526.537V283.038H561.528V268.249zm-65.214 0H479.09v38.589l-.447-.717-.533-.813-.449-.717-.532-.718-.448-.806-.539-.718-.442-.717-.449-.812-.532-.717-.449-.717-.537-.718-.443-.812-.538-.717-.443-.717-.449-.807-.538-.722-.443-.718-.538-.806-.442-.718-.538-.717-.443-.812-.449-.718-.537-.717-.443-.807-.538-.722-.443-.717-.538-.718-.449-.806-.443-.722-.537-.718-.443-.807-.538-.717-.448-.717-.533-.813-.448-.717h-.354l-.537.807-.449.723-.533.807-.448.717-.533.806-.448.723-.532.807-.449.718-.538.806-.443.717-.538.813-.442.717-.538.807-.449.717-.532.812-.449.717-.532.807-.538.717-.448.812-.533.717-.448.807-.533.717-.448.813-.533.717-.448.807-.538.717-.443.807-.538.723-.443.806-.538.718-.448.807-.532.716-.45.813-.532.717V268.249H428.036v65.258h18.299l.443-.718.448-.806.532-.712.45-.807.447-.717.443-.808.448-.711.534-.808.447-.717.45-.717.442-.801.448-.718.533-.806.448-.718.448-.801.443-.717.538-.717.45-.803.441-.716.448-.807.444-.718.538-.801.448-.718.442-.806.45-.712.442-.717.538-.807.448-.718.443-.807.448-.712.443-.807.54-.717.447-.801.443-.718.448.718.448.801.533.717.447.807.444.712.448.807.533.718.448.807.45.717.441.712.538.806.443.718.45.801.446.718.533.807.448.716.45.803.441.717.45.717.532.801.448.718.448.806.444.718.537.801.444.717.447.717.45.808.531.711.45.808.441.717.45.807.537.712.443.806.448.718H496.313v-65.258zM391.863 295.14l-.269.812-.353.897-.359.807-.269.812-.353.807-.358.897-.27.812-.359.807-.352.806-.27.812-.359.897-.263.807-.359.812-.359.807-.268.807-.354.901-.358.808-.269.806-.359.812-.353.897-.269.812-.359.807-.353-.807-.268-.812-.359-.897-.359-.812-.264-.806-.358-.808-.359-.901-.353-.807-.27-.807-.358-.812-.359-.807-.264-.897-.358-.812-.359-.806-.268-.807-.354-.812-.359-.897-.358-.807-.263-.812-.359-.807-.359-.897-.269-.812-.353-.807H392.221zm28.03-26.891h-17.498l-.354.808-.269.807-.358.807-.359.896-.264.802-.358.806-.359.807-.264.807-.358.807-.359.807-.268.807-.354.896-.359.807-.269.807-.359.807H371.871l-.354-.807-.269-.807-.359-.807-.358-.896-.264-.807-.358-.807-.359-.807-.269-.807-.353-.807-.359-.806-.269-.802-.354-.896-.358-.807-.269-.807-.359-.808h-18.024l.352.808.36.807.357.807.354.896.27.802.358.806.358.807.353.807.36.807.358.897.353.807.36.806.267.807.36.807.352.807.36.896.357.807.354.808.36.806.357.807.27.807.352.897.36.806.358.807.353.807.36.807.358.807.353.897.27.806.358.807.358.807.354.807.358.807.358.896.354.807.358.807.27.807.358.806.353.807.36.897.358.807.353.807.358.807.36.806.268.808.354.801.358.897.358.806.354.808.358.807.36.806.352.807.27.897.358.806.358.807.354.807.36.807.357.807.354.897.358.806.27.807.357.807.354.807.358.807.36.896.352.807.36.807.358.807.263.806.36.808.358.896.36.807.352.807.36.807.357.807.353.806.27.897.358.807.36.807.352.807h16.512l.358-.807.36-.807.353-.807.358-.897.27-.806.352-.807.36-.807.357-.807.36-.807.352-.896.36-.808.358-.806.263-.807.36-.807.358-.807.36-.896.352-.807.358-.807.36-.807.352-.807.27-.806.357-.897.354-.807.36-.807.357-.807.36-.807.352-.806.358-.897.27-.807.353-.806.358-.807.36-.808.358-.806.353-.897.36-.801.357-.808.264-.806.358-.807.36-.807.353-.807.358-.897.36-.807.358-.806.353-.807.27-.807.357-.807.354-.896.358-.807.36-.807.357-.807.354-.807.36-.806.267-.897.354-.807.358-.807.36-.807.352-.807.36-.806.358-.897.36-.807.262-.807.36-.806.358-.808.353-.807.358-.896.36-.807.357-.807.353-.807.27-.806.36-.807.352-.897.358-.807.358-.807.354-.807.358-.806.36-.802.27-.896.351-.807.36-.807.357-.808zm-78.193 8.334l-.717-.538-.623-.449-.717-.538-.712-.448-.712-.538-.717-.448-.712-.449-.807-.447-.802-.449-.802-.448-.806-.353-.802-.449-.89-.358-.802-.359-.897-.358-.8-.359-.804-.269-.806-.269-.802-.27-.89-.268-.802-.27-.897-.179-.802-.179-.89-.179-.897-.179-.892-.09-.98-.09-.892-.09-.98-.089-.898-.09-.98-.089h-3.84l-.89.089-.982.09-.89.089-.892.09-.897.09-.89.179-.893.18-.8.179-.897.179-.802.269-.89.179-.808.27-.802.358-.802.269-.89.359-.807.358-.802.358-.8.359-.809.448-.71.444-.803.448-.717.449-.712.447-.717.539-.712.537-.713.538-.627.538-.622.538-.628.628-.622.537-.628.628-.622.628-.538.627-.533.717-.538.628-.448.717-.533.718-.447.716-.444.718-.448.807-.448.717-.353.807-.359.807-.358.807-.354.806-.269.717-.359.808-.179.807-.264.806-.179.896-.269.808-.179.896-.09.807-.18.897-.088.806-.09.897-.085.897-.089.896V301.775l.09.986v.896l.083.897.091.986.18.891.088.897.18.807.268.896.18.897.263.807.27.896.268.807.36.897.353.806.358.807.36.807.352.807.448.807.448.717.444.718.447.717.45.717.531.717.538.717.533.717.538.629.622.627.538.628.623.626.627.629.622.537.717.628.623.538.712.538.717.448.712.538.718.448.711.448.802.449.807.448.801.448.802.359.806.358.892.449.712.268.891.27.808.358.801.18.801.269.896.179.802.269.891.179.892.09.896.179.892.09.89.089.892.09.897.09H315.9l.987-.09.981-.09h.891l.891-.089.981-.18.807-.089.891-.18.892-.179.806-.179.801-.179.803-.18.807-.269.801-.179.712-.269.807-.269.802-.358.801-.359.807-.359.802-.448.801-.359.718-.448.801-.448.712-.448.807-.449.712-.537.712-.449.717-.538.712-.538.717-.627.712-.538-.538-.718-.622-.627-.538-.717-.622-.717-.538-.718-.533-.627-.628-.717-.532-.717-.538-.629-.623-.717-.537-.717-.623-.717-.538-.628-.532-.717-.627-.717-.534-.717-.627-.628-.533-.717-.717.538-.712.627-.717.449-.712.538-.712.448-.717.449-.713.447-.8.449-.718.358-.712.359-.717.269-.802.269-.8.269-.808.179-.89.18-.892.179-.892.089-.98.09-.987.089H312.958l-.89-.089-.808-.09-.89-.179-.803-.18-.807-.268-.8-.269-.803-.359-.802-.358-.717-.448-.71-.449-.719-.449-.622-.537-.628-.538-.622-.538-.538-.627-.622-.628-.538-.717-.444-.628-.448-.717-.442-.807-.449-.717-.358-.807-.269-.807-.354-.807-.269-.896-.179-.892-.179-.806-.18-.987-.089-.896-.084-.896V299.802l.084-.896.09-.807.09-.897.178-.806.18-.808.18-.806.268-.807.264-.717.36-.896.357-.808.443-.807.448-.717.448-.717.533-.718.538-.627.622-.628.54-.627.62-.538.718-.538.712-.538.711-.448.717-.448.803-.359.801-.359.806-.358.892-.269.891-.269.897-.18.891-.179.891-.089.981-.09h2.051l.987.09.981.089.891.09.891.18.897.179.891.268.801.18.803.358.717.359.801.359.627.358.713.449v8.158h-13.032V306.252H342.322V277.12zM312.995 481.16h38.683v29.921h-38.683v61.086h40.223v29.922h-73.072V386.14h73.684v29.922h-40.835zM590.07 474.677v-48.744c0-8.639-3.993-12.647-12.278-12.647h-6.144c-8.595 0-12.588 4.008-12.588 12.647v136.362c0 8.638 3.993 12.646 12.588 12.646h5.527c8.29 0 12.283-4.008 12.283-12.646v-42.269h32.233v44.12c0 26.837-12.895 39.795-39.6 39.795h-15.97c-26.705 0-39.911-13.264-39.911-40.106V424.393c0-26.843 13.206-40.106 39.912-40.106h16.274c26.712 0 39.91 13.263 39.91 40.106v50.284zM475.995 386.138h32.854V602.09h-32.854zM428.326 506.146c0-8.639-3.987-12.652-12.277-12.652h-13.511v79.596h13.51c8.29 0 12.278-4.009 12.278-12.646zm-7.061 95.944h-51.577V386.138h32.85V464.5h18.727c26.71 0 39.91 13.263 39.91 40.1v57.384c0 26.842-13.2 40.106-39.91 40.106", - fill: "var(--color-gray-800)", - stroke: "none" - }] - } -} \ No newline at end of file diff --git a/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts b/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts deleted file mode 100644 index 00c551dd1..000000000 --- a/clients/web/src/lib/utilities/iconDefinitionToIconSource.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { IconDefinition } from "@fortawesome/free-brands-svg-icons"; -import type { IconSource } from "@steeze-ui/svelte-icon/types"; - -export const IconDefinitionToIconSource = (input: IconDefinition): IconSource => { - return { - default: { - a: { - viewBox: `0 0 ${input.icon[0]} ${input.icon[1]}`, - stroke: "currentColor", - fill: "currentColor", - }, - path: [{ - d: input.icon[4].toString() - }] - } - } -} \ No newline at end of file diff --git a/clients/web/src/routes/auth/+layout.svelte b/clients/web/src/routes/auth/+layout.svelte index fa38726e7..a7ac9f0c0 100644 --- a/clients/web/src/routes/auth/+layout.svelte +++ b/clients/web/src/routes/auth/+layout.svelte @@ -1,13 +1,14 @@ +
- Sprocket Logo + Sprocket Logo

Sprocket Login

-
+
- -
\ No newline at end of file + + diff --git a/clients/web/src/routes/auth/login/+page.svelte b/clients/web/src/routes/auth/login/+page.svelte index c5f73c10a..440ae0231 100644 --- a/clients/web/src/routes/auth/login/+page.svelte +++ b/clients/web/src/routes/auth/login/+page.svelte @@ -1,43 +1,76 @@

Sign in using:

- - - - - - -
\ No newline at end of file + diff --git a/package-lock.json b/package-lock.json index 11910b302..dc99471ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -301,12 +301,12 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "@fontsource/montserrat": "^4.5.14", - "@fortawesome/free-brands-svg-icons": "^6.3.0", "echarts": "^5.4.1" }, "devDependencies": { "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", + "@steeze-ui/simple-icons": "^1.4.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", "@sveltejs/kit": "^1.1.1", @@ -4612,27 +4612,6 @@ "resolved": "https://registry.npmjs.org/@fontsource/montserrat/-/montserrat-4.5.14.tgz", "integrity": "sha512-fTvrteVzuFUePhr4QYBGoK8G/YHLJ3IhF1HhKg0AxcFvZajJT7rM7ULdmKLSd2PkX44R3aaFZq1zDbmjbGGI+w==" }, - "node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.3.0.tgz", - "integrity": "sha512-4BC1NMoacEBzSXRwKjZ/X/gmnbp/HU5Qqat7E8xqorUtBFZS+bwfGH5/wqOC2K6GV0rgEobp3OjGRMa5fK9pFg==", - "hasInstallScript": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/@fortawesome/free-brands-svg-icons": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.3.0.tgz", - "integrity": "sha512-xI0c+a8xnKItAXCN8rZgCNCJQiVAd2Y7p9e2ND6zN3J3ekneu96qrePieJ7yA7073C1JxxoM3vH1RU7rYsaj8w==", - "hasInstallScript": true, - "dependencies": { - "@fortawesome/fontawesome-common-types": "6.3.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/@graphql-tools/merge": { "version": "6.2.14", "license": "MIT", @@ -6113,6 +6092,12 @@ "integrity": "sha512-VUkgSAbjLzsEuF4kDQDESANb/NNxqhkOMnrzD1VhB3tSGr7wVZ5FKS7aM2QZcKXjziwR6dbt7Nhs3fpZhqOi1A==", "dev": true }, + "node_modules/@steeze-ui/simple-icons": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@steeze-ui/simple-icons/-/simple-icons-1.4.0.tgz", + "integrity": "sha512-/RKpk28U5O+Wtdb+Ck2ChQHdmDOoISp2VkCO/SgDTkz7aJTmPUX/rpz/oBxpvP3ZYY+8p7iG2zdrdWp486VURQ==", + "dev": true + }, "node_modules/@steeze-ui/svelte-icon": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@steeze-ui/svelte-icon/-/svelte-icon-1.3.2.tgz", @@ -19775,19 +19760,6 @@ "resolved": "https://registry.npmjs.org/@fontsource/montserrat/-/montserrat-4.5.14.tgz", "integrity": "sha512-fTvrteVzuFUePhr4QYBGoK8G/YHLJ3IhF1HhKg0AxcFvZajJT7rM7ULdmKLSd2PkX44R3aaFZq1zDbmjbGGI+w==" }, - "@fortawesome/fontawesome-common-types": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.3.0.tgz", - "integrity": "sha512-4BC1NMoacEBzSXRwKjZ/X/gmnbp/HU5Qqat7E8xqorUtBFZS+bwfGH5/wqOC2K6GV0rgEobp3OjGRMa5fK9pFg==" - }, - "@fortawesome/free-brands-svg-icons": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.3.0.tgz", - "integrity": "sha512-xI0c+a8xnKItAXCN8rZgCNCJQiVAd2Y7p9e2ND6zN3J3ekneu96qrePieJ7yA7073C1JxxoM3vH1RU7rYsaj8w==", - "requires": { - "@fortawesome/fontawesome-common-types": "6.3.0" - } - }, "@graphql-tools/merge": { "version": "6.2.14", "requires": { @@ -21966,6 +21938,12 @@ "integrity": "sha512-VUkgSAbjLzsEuF4kDQDESANb/NNxqhkOMnrzD1VhB3tSGr7wVZ5FKS7aM2QZcKXjziwR6dbt7Nhs3fpZhqOi1A==", "dev": true }, + "@steeze-ui/simple-icons": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@steeze-ui/simple-icons/-/simple-icons-1.4.0.tgz", + "integrity": "sha512-/RKpk28U5O+Wtdb+Ck2ChQHdmDOoISp2VkCO/SgDTkz7aJTmPUX/rpz/oBxpvP3ZYY+8p7iG2zdrdWp486VURQ==", + "dev": true + }, "@steeze-ui/svelte-icon": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@steeze-ui/svelte-icon/-/svelte-icon-1.3.2.tgz", @@ -29973,9 +29951,9 @@ "requires": { "@faker-js/faker": "^7.6.0", "@fontsource/montserrat": "^4.5.14", - "@fortawesome/free-brands-svg-icons": "*", "@histoire/plugin-svelte": "^0.15.4", "@steeze-ui/heroicons": "^2.1.0", + "@steeze-ui/simple-icons": "^1.4.0", "@steeze-ui/svelte-icon": "^1.3.2", "@sveltejs/adapter-auto": "^1.0.1", "@sveltejs/kit": "^1.1.1", From 6daea7be0f875336f61ef96ba32700249a81fe3b Mon Sep 17 00:00:00 2001 From: Brian D Date: Wed, 22 Feb 2023 01:26:33 -0600 Subject: [PATCH 18/94] chore: add compact alert --- .../components/atoms/Alert/Alert.story.svelte | 21 +++++++++++-------- .../lib/components/atoms/Alert/Alert.svelte | 10 ++++++++- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/clients/web/src/lib/components/atoms/Alert/Alert.story.svelte b/clients/web/src/lib/components/atoms/Alert/Alert.story.svelte index 3b80e6f9d..15be21c04 100644 --- a/clients/web/src/lib/components/atoms/Alert/Alert.story.svelte +++ b/clients/web/src/lib/components/atoms/Alert/Alert.story.svelte @@ -1,7 +1,8 @@ @@ -17,18 +19,19 @@ + - - + + This alerts the user of something important! - - + +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sed scelerisque enim. Donec congue, @@ -42,8 +45,8 @@ - - + + Look at this

@@ -60,8 +63,8 @@ - - + + This alerts the user of something important! diff --git a/clients/web/src/lib/components/atoms/Alert/Alert.svelte b/clients/web/src/lib/components/atoms/Alert/Alert.svelte index deccb1548..826d480c3 100644 --- a/clients/web/src/lib/components/atoms/Alert/Alert.svelte +++ b/clients/web/src/lib/components/atoms/Alert/Alert.svelte @@ -8,6 +8,7 @@ export let variant: AlertVariant; export let withIcon = true; export let dismissible = true; + export let compact: boolean = false; let iconSrc: IconSource | undefined; switch (variant) { @@ -33,7 +34,7 @@ {#if !dismissed} -