diff --git a/packages/backend/Controllers/AuthenticationController.cs b/packages/backend/Controllers/AuthenticationController.cs index 9e12a8a..5d464d0 100644 --- a/packages/backend/Controllers/AuthenticationController.cs +++ b/packages/backend/Controllers/AuthenticationController.cs @@ -3,8 +3,11 @@ using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.RateLimiting; using Microsoft.Extensions.Options; using System.Security.Claims; +using System.Security.Cryptography; +using System.Text; using YaleAccess.Models; namespace YaleAccess.Controllers @@ -15,54 +18,60 @@ namespace YaleAccess.Controllers [Authorize] public class AuthenticationController(IOptions authenticationOptions, ILogger logger) : ControllerBase { + public const string LoginRateLimitPolicy = "login"; + [HttpPost("login")] [AllowAnonymous] + [EnableRateLimiting(LoginRateLimitPolicy)] public async Task Login([FromBody] string password) { - try + // Refuse to authenticate at all if no password has been configured + string expectedPassword = authenticationOptions.Value.Password; + if (string.IsNullOrEmpty(expectedPassword)) { - // Check if the password is correct - if (password != authenticationOptions.Value.Password) - { - return Unauthorized(new ApiResponse("Incorrect password.")); - } - - // Log the user in - List claims = new() - { - new Claim(ClaimTypes.Name, "YaleAccess") - }; - ClaimsIdentity claimsIdentity = new(claims, CookieAuthenticationDefaults.AuthenticationScheme); - ClaimsPrincipal claimsPrincipal = new(claimsIdentity); - - await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, claimsPrincipal); - - // Return the response - return Ok(new ApiResponse(true)); + logger.LogError("No authentication password has been configured, refusing all logins."); + return StatusCode(StatusCodes.Status500InternalServerError, new ApiResponse("Authentication is not configured.")); } - catch(Exception ex) + + // Check if the password is correct + if (!PasswordMatches(password, expectedPassword)) { - logger.LogError(ex, "An error occurred logging in."); - return BadRequest(new ApiResponse("An error occurred logging in.")); + logger.LogWarning("Failed login attempt from {RemoteIp}.", HttpContext.Connection.RemoteIpAddress); + return Unauthorized(new ApiResponse("Incorrect password.")); } + + // Log the user in + List claims = new() + { + new Claim(ClaimTypes.Name, "YaleAccess") + }; + ClaimsIdentity claimsIdentity = new(claims, CookieAuthenticationDefaults.AuthenticationScheme); + ClaimsPrincipal claimsPrincipal = new(claimsIdentity); + + await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, claimsPrincipal); + + // Return the response + return Ok(new ApiResponse(true)); } [HttpPost("logout")] [AllowAnonymous] public async Task Logout() { - try - { - // Sign the user out - await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); + // Sign the user out + await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); - return Ok(new ApiResponse(true)); - } - catch (Exception ex) - { - logger.LogError(ex, "An error occured logging out."); - return BadRequest(new ApiResponse("An error occured logging out.")); - } + return Ok(new ApiResponse(true)); + } + + /// + /// Compares the passwords in constant time (by comparing hashes, so differing lengths don't leak either). + /// + private static bool PasswordMatches(string? provided, string expected) + { + byte[] providedHash = SHA256.HashData(Encoding.UTF8.GetBytes(provided ?? string.Empty)); + byte[] expectedHash = SHA256.HashData(Encoding.UTF8.GetBytes(expected)); + return CryptographicOperations.FixedTimeEquals(providedHash, expectedHash); } } -} \ No newline at end of file +} diff --git a/packages/backend/Controllers/PeopleController.cs b/packages/backend/Controllers/PeopleController.cs index 300000d..bead360 100644 --- a/packages/backend/Controllers/PeopleController.cs +++ b/packages/backend/Controllers/PeopleController.cs @@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; +using System.Text.RegularExpressions; using YaleAccess.Data; using YaleAccess.Models; @@ -11,66 +12,62 @@ namespace YaleAccess.Controllers [Route("api/[controller]")] [EnableCors] [Authorize] - public class PeopleController(ILogger logger, YaleContext context) : ControllerBase + public partial class PeopleController(YaleContext context) : ControllerBase { + // Twilio requires numbers in E.164 format, e.g. +61400000000 + [GeneratedRegex(@"^\+[1-9]\d{6,14}$")] + private static partial Regex PhoneNumberRegex(); + [HttpGet] public async Task GetPeople() { - try - { - // Return all people - List people = await context.People.ToListAsync(); - return Ok(new ApiResponse(people)); - } - catch (Exception ex) - { - logger.LogError(ex, "An error occured retriving the people."); - return BadRequest(new ApiResponse("An error occured retriving the people.")); - } + // Return all people + List people = await context.People.ToListAsync(); + return Ok(new ApiResponse(people)); } [HttpPost] public async Task CreatePerson([FromBody] Person person) { - try - { - // Create a new person - Person newPerson = new() { Name = person.Name, PhoneNumber = person.PhoneNumber }; + // Validate the person + string name = person.Name?.Trim() ?? string.Empty; + string phoneNumber = person.PhoneNumber?.Trim() ?? string.Empty; - // Add the person - await context.AddAsync(newPerson); - await context.SaveChangesAsync(); - - // Return the newly created person - return Ok(new ApiResponse(newPerson)); - } - catch (Exception ex) + if (name.Length == 0 || name.Length > 100) { - logger.LogError(ex, "An error occured creating the person."); - return BadRequest(new ApiResponse("An error occured creating the person.")); + return BadRequest(new ApiResponse("The name is required and must be 100 characters or fewer.")); } + + if (!PhoneNumberRegex().IsMatch(phoneNumber)) + { + return BadRequest(new ApiResponse("The phone number must be in international format, e.g. +61400000000.")); + } + + // Create a new person and add them + Person newPerson = new() { Name = name, PhoneNumber = phoneNumber }; + await context.AddAsync(newPerson); + await context.SaveChangesAsync(); + + // Return the newly created person + return Ok(new ApiResponse(newPerson)); } [HttpDelete("{id}")] public async Task DeletePerson([FromRoute] int id) { - try + // Ensure the person exists + Person? person = await context.People.FindAsync(id); + if (person is null) { - // Ensure the person exists - Person person = await context.People.FindAsync(id) ?? throw new Exception("Person not found."); - - // Remove the person - context.Remove(person); - await context.SaveChangesAsync(); - - // Return the newly removed person - return Ok(new ApiResponse(person)); - } - catch (Exception ex) - { - logger.LogError(ex, "An error occured deletiong the person."); - return BadRequest(new ApiResponse("An error occured deletiong the person.")); + return NotFound(new ApiResponse("Person not found.")); } + + // Remove the person + context.Remove(person); + await context.SaveChangesAsync(); + + // Return the removed person + return Ok(new ApiResponse(person)); } } } diff --git a/packages/backend/Controllers/YaleController.cs b/packages/backend/Controllers/YaleController.cs index 3172612..979e7cd 100644 --- a/packages/backend/Controllers/YaleController.cs +++ b/packages/backend/Controllers/YaleController.cs @@ -23,119 +23,87 @@ namespace YaleAccess.Controllers [HttpGet("codes")] public async Task GetUserCodes() { - try + // Get the home code first + YaleUserCode homeCode = await yaleAccessor.GetCodeInformationAsync(codeOptions.Value.Home); + homeCode.IsHome = true; + + // Get the guest codes + List guestCodes = new(); + foreach (int code in Enumerable.Range(codeOptions.Value.GuestCodeRangeStart, codeOptions.Value.GuestCodeRangeCount)) { - // Get the home code first - YaleUserCode homeCode = await yaleAccessor.GetCodeInformationAsync(codeOptions.Value.Home); - homeCode.IsHome = true; - - // Get the guest codes - List guestCodes = new(); - foreach (int code in Enumerable.Range(codeOptions.Value.GuestCodeRangeStart, codeOptions.Value.GuestCodeRangeCount)) - { - guestCodes.Add(await yaleAccessor.GetCodeInformationAsync(code)); - } - - // Add the home code to the list - guestCodes.Add(homeCode); - - // Return the codes - return Ok(new ApiResponse(guestCodes)); - } - catch(Exception ex) - { - logger.LogError(ex, "An error occurred retriving the codes."); - return BadRequest(new ApiResponse("An error occurred retriving the codes.")); + guestCodes.Add(await yaleAccessor.GetCodeInformationAsync(code)); } + + // Add the home code to the list + guestCodes.Add(homeCode); + + // Return the codes + return Ok(new ApiResponse(guestCodes)); } [HttpPost("code/{id}")] public async Task SetUserCode([FromRoute] int id, [FromBody] string newCode) { - try + // First validate the user code + string validCode = YaleAccessor.ValidateCode(newCode); + if (validCode != string.Empty) { - // First validate the user code - string validCode = YaleAccessor.ValidateCode(newCode); - if (validCode != string.Empty) - { - return BadRequest(new ApiResponse(validCode)); - } - - // Set the new code - bool result = await yaleAccessor.SetUserCode(id, newCode); - - // Return the result - if (result) - { - logger.LogInformation("Updated code for user {id} to {code}", id, newCode); - return Ok(new ApiResponse(true)); - } - else - { - logger.LogInformation("Failed to update code for user {id} to {code}", id, newCode); - return BadRequest(new ApiResponse("An error occurred setting the code.")); - } + return BadRequest(new ApiResponse(validCode)); } - catch (Exception ex) + + // Set the new code (the code itself is never logged) + bool result = await yaleAccessor.SetUserCode(id, newCode); + + if (!result) { - logger.LogError(ex, "An error occurred setting the code."); - return BadRequest(new ApiResponse("An error occurred setting the code.")); + logger.LogWarning("Failed to update code for user {Id}", id); + return StatusCode(StatusCodes.Status502BadGateway, new ApiResponse("An error occurred setting the code.")); } + + logger.LogInformation("Updated code for user {Id}", id); + return Ok(new ApiResponse(true)); } [HttpPost("code/{id}/status")] public async Task SetUserCodeStatusAsAvailable([FromRoute] int id) { - try + // First validate the user code + string validCode = YaleAccessor.ValidateClearCode(id, codeOptions.Value.Home); + if (validCode != string.Empty) { - // First validate the user code - string validCode = YaleAccessor.ValidateClearCode(id, codeOptions.Value.Home); - if (validCode != string.Empty) - { - return BadRequest(new ApiResponse(validCode)); - } - - // Set the available status - bool result = await yaleAccessor.SetCodeAsAvailable(id); - - // Return the result - if (result) - { - logger.LogInformation("Updated code status for user {id} to available", id); - return Ok(new ApiResponse(true)); - } - else - { - logger.LogInformation("Failed to update code status for user {id} to available", id); - return BadRequest(new ApiResponse("An error occurred setting the code status.")); - } + return BadRequest(new ApiResponse(validCode)); } - catch (Exception ex) + + // Set the available status + bool result = await yaleAccessor.SetCodeAsAvailable(id); + + if (!result) { - logger.LogError(ex, "An error occurred setting the code status."); - return BadRequest(new ApiResponse("An error occurred setting the code status.")); + logger.LogWarning("Failed to update code status for user {Id} to available", id); + return StatusCode(StatusCodes.Status502BadGateway, new ApiResponse("An error occurred setting the code status.")); } + + logger.LogInformation("Updated code status for user {Id} to available", id); + return Ok(new ApiResponse(true)); } [HttpPost("code/{id}/send")] public async Task SendUserCode([FromRoute] int id, [FromBody] string phoneNumber) { - try - { - // Get the user code - YaleUserCode userCode = await yaleAccessor.GetCodeInformationAsync(id); + // Get the user code + YaleUserCode userCode = await yaleAccessor.GetCodeInformationAsync(id); - // Send the code via SMS to the phone number - await smsService.SendCodeViaSMSAsync(userCode.Code, phoneNumber); - - // Return success - return Ok(new ApiResponse(true)); - } - catch (Exception ex) + // There is nothing to send if the code isn't set + if (string.IsNullOrEmpty(userCode.Code)) { - logger.LogError(ex, "An error occurred sending the code."); - return BadRequest(new ApiResponse("An error occurred sending the code.")); + return BadRequest(new ApiResponse("This code is not set, so it cannot be sent.")); } + + // Send the code via SMS to the phone number + await smsService.SendCodeViaSMSAsync(userCode.Code, phoneNumber); + + // Return success + return Ok(new ApiResponse(true)); } } -} \ No newline at end of file +} diff --git a/packages/backend/Models/ApiResponse.cs b/packages/backend/Models/ApiResponse.cs index 70d7a8b..841dda3 100644 --- a/packages/backend/Models/ApiResponse.cs +++ b/packages/backend/Models/ApiResponse.cs @@ -7,7 +7,7 @@ public object? Data { get; set; } /// - /// If passing in data only then the resonse is successful + /// If passing in data only then the response is successful /// /// public ApiResponse(object data) diff --git a/packages/backend/Models/Options/TwiloOptions.cs b/packages/backend/Models/Options/TwilioOptions.cs similarity index 91% rename from packages/backend/Models/Options/TwiloOptions.cs rename to packages/backend/Models/Options/TwilioOptions.cs index c67d3e1..24ea0b8 100644 --- a/packages/backend/Models/Options/TwiloOptions.cs +++ b/packages/backend/Models/Options/TwilioOptions.cs @@ -1,6 +1,6 @@ namespace YaleAccess.Models.Options { - public class TwiloOptions + public class TwilioOptions { public const string Twilio = "Twilio"; diff --git a/packages/backend/Program.cs b/packages/backend/Program.cs index b960425..bcd508c 100644 --- a/packages/backend/Program.cs +++ b/packages/backend/Program.cs @@ -1,8 +1,12 @@ using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.HttpOverrides; +using Microsoft.AspNetCore.Diagnostics; using Microsoft.EntityFrameworkCore; +using System.Threading.RateLimiting; using OpenTelemetry.Logs; +using YaleAccess.Controllers; using YaleAccess.Data; +using YaleAccess.Models; using YaleAccess.Models.Options; using YaleAccess.Services; using YaleAccess.Services.Interfaces; @@ -42,7 +46,7 @@ try builder.Services.Configure(builder.Configuration.GetSection(CodesOptions.Codes)); builder.Services.Configure(builder.Configuration.GetSection(DevicesOptions.Devices)); builder.Services.Configure(builder.Configuration.GetSection(ZWaveOptions.ZWave)); - builder.Services.Configure(builder.Configuration.GetSection(TwiloOptions.Twilio)); + builder.Services.Configure(builder.Configuration.GetSection(TwilioOptions.Twilio)); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); @@ -86,6 +90,9 @@ try // Set HTTP only to true to prevent XSS attacks options.Cookie.HttpOnly = true; + // The frontend and API are served from the same site, so strict SameSite blocks cross-site (CSRF) requests + options.Cookie.SameSite = SameSiteMode.Strict; + // Set secure policy to always to prevent sending cookies over HTTP for production use, for development set to None if (builder.Environment.IsDevelopment()) options.Cookie.SecurePolicy = CookieSecurePolicy.None; @@ -102,6 +109,26 @@ try }; }); + // Rate limit login attempts per client IP to slow down password guessing + builder.Services.AddRateLimiter(options => + { + options.RejectionStatusCode = StatusCodes.Status429TooManyRequests; + options.AddPolicy(AuthenticationController.LoginRateLimitPolicy, context => + RateLimitPartition.GetFixedWindowLimiter( + context.Connection.RemoteIpAddress?.ToString() ?? "unknown", + _ => new FixedWindowRateLimiterOptions + { + PermitLimit = 5, + Window = TimeSpan.FromMinutes(1), + QueueLimit = 0 + })); + options.OnRejected = async (context, token) => + { + context.HttpContext.Response.StatusCode = StatusCodes.Status429TooManyRequests; + await context.HttpContext.Response.WriteAsJsonAsync(new ApiResponse("Too many login attempts. Please wait a minute and try again."), token); + }; + }); + var app = builder.Build(); // Create the database if it doesn't exist @@ -129,10 +156,24 @@ try app.UseCors(); + // Turn unhandled exceptions into a JSON 500 (after CORS, so the browser can still read the response) + app.UseExceptionHandler(errorApp => errorApp.Run(async context => + { + var exception = context.Features.Get()?.Error; + context.RequestServices.GetRequiredService() + .CreateLogger("UnhandledException") + .LogError(exception, "An unhandled error occurred handling {Method} {Path}.", context.Request.Method, context.Request.Path); + + context.Response.StatusCode = StatusCodes.Status500InternalServerError; + await context.Response.WriteAsJsonAsync(new ApiResponse("An unexpected error occurred.")); + })); + app.UseAuthentication(); app.UseAuthorization(); + app.UseRateLimiter(); + app.MapControllers(); app.Run(); @@ -147,3 +188,6 @@ catch (Exception ex) throw; } } + +// Exposes the entry point to the integration tests (WebApplicationFactory) +public partial class Program { } diff --git a/packages/backend/Services/SMSService.cs b/packages/backend/Services/SMSService.cs index 3998a34..c5974ce 100644 --- a/packages/backend/Services/SMSService.cs +++ b/packages/backend/Services/SMSService.cs @@ -5,23 +5,23 @@ using YaleAccess.Models.Options; namespace YaleAccess.Services { - public class SMSService(ILogger logger, IOptions twiloOptions) + public class SMSService(ILogger logger, IOptions twilioOptions) { public async Task SendCodeViaSMSAsync(string code, string phoneNumber) { // Create a Twilio client - TwilioClient.Init(twiloOptions.Value.AccountSid, twiloOptions.Value.AuthToken); + TwilioClient.Init(twilioOptions.Value.AccountSid, twilioOptions.Value.AuthToken); // Send the message var message = await MessageResource.CreateAsync( - body: $"{twiloOptions.Value.Message} {code}", - from: new Twilio.Types.PhoneNumber(twiloOptions.Value.FromNumber), + body: $"{twilioOptions.Value.Message} {code}", + from: new Twilio.Types.PhoneNumber(twilioOptions.Value.FromNumber), to: new Twilio.Types.PhoneNumber(phoneNumber) ); // Log the message + // (the message body contains the door code, so it is deliberately not logged) logger.LogInformation("SMS sent to {PhoneNumber} with message SID {MessageSid}.", phoneNumber, message.Sid); - logger.LogDebug("SMS message: {MessageBody}", message.Body); } } } diff --git a/packages/backend/Services/YaleAccessor.cs b/packages/backend/Services/YaleAccessor.cs index 85fcdbb..7539fba 100644 --- a/packages/backend/Services/YaleAccessor.cs +++ b/packages/backend/Services/YaleAccessor.cs @@ -223,7 +223,8 @@ namespace YaleAccess.Services } // The code must be numeric - if (!int.TryParse(newCode, out int _)) + // (int.TryParse would also accept signs and whitespace, so check each character) + if (!newCode.All(char.IsAsciiDigit)) { return "The code must be numeric."; } diff --git a/packages/frontend/app.vue b/packages/frontend/app/app.vue similarity index 100% rename from packages/frontend/app.vue rename to packages/frontend/app/app.vue diff --git a/packages/frontend/components/HealthCheck.vue b/packages/frontend/app/components/HealthCheck.vue similarity index 100% rename from packages/frontend/components/HealthCheck.vue rename to packages/frontend/app/components/HealthCheck.vue diff --git a/packages/frontend/components/LoginForm.vue b/packages/frontend/app/components/LoginForm.vue similarity index 100% rename from packages/frontend/components/LoginForm.vue rename to packages/frontend/app/components/LoginForm.vue diff --git a/packages/frontend/components/PeopleList.vue b/packages/frontend/app/components/PeopleList.vue similarity index 100% rename from packages/frontend/components/PeopleList.vue rename to packages/frontend/app/components/PeopleList.vue diff --git a/packages/frontend/components/UserCodeList.vue b/packages/frontend/app/components/UserCodeList.vue similarity index 100% rename from packages/frontend/components/UserCodeList.vue rename to packages/frontend/app/components/UserCodeList.vue diff --git a/packages/frontend/layouts/blank.vue b/packages/frontend/app/layouts/blank.vue similarity index 100% rename from packages/frontend/layouts/blank.vue rename to packages/frontend/app/layouts/blank.vue diff --git a/packages/frontend/layouts/default.vue b/packages/frontend/app/layouts/default.vue similarity index 100% rename from packages/frontend/layouts/default.vue rename to packages/frontend/app/layouts/default.vue diff --git a/packages/frontend/middleware/authentication.global.ts b/packages/frontend/app/middleware/authentication.global.ts similarity index 100% rename from packages/frontend/middleware/authentication.global.ts rename to packages/frontend/app/middleware/authentication.global.ts diff --git a/packages/frontend/pages/health.vue b/packages/frontend/app/pages/health.vue similarity index 100% rename from packages/frontend/pages/health.vue rename to packages/frontend/app/pages/health.vue diff --git a/packages/frontend/pages/index.vue b/packages/frontend/app/pages/index.vue similarity index 100% rename from packages/frontend/pages/index.vue rename to packages/frontend/app/pages/index.vue diff --git a/packages/frontend/pages/login.vue b/packages/frontend/app/pages/login.vue similarity index 100% rename from packages/frontend/pages/login.vue rename to packages/frontend/app/pages/login.vue diff --git a/packages/frontend/pages/people.vue b/packages/frontend/app/pages/people.vue similarity index 100% rename from packages/frontend/pages/people.vue rename to packages/frontend/app/pages/people.vue diff --git a/packages/frontend/types/api-response.ts b/packages/frontend/app/types/api-response.ts similarity index 100% rename from packages/frontend/types/api-response.ts rename to packages/frontend/app/types/api-response.ts diff --git a/packages/frontend/types/yale.ts b/packages/frontend/app/types/yale.ts similarity index 100% rename from packages/frontend/types/yale.ts rename to packages/frontend/app/types/yale.ts diff --git a/packages/frontend/components/Modal.vue b/packages/frontend/components/Modal.vue deleted file mode 100644 index 43429d8..0000000 --- a/packages/frontend/components/Modal.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/frontend/components/Navbar.vue b/packages/frontend/components/Navbar.vue deleted file mode 100644 index 2eb7a8f..0000000 --- a/packages/frontend/components/Navbar.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/PeopleListRow.vue b/packages/frontend/components/PeopleListRow.vue deleted file mode 100644 index 882b057..0000000 --- a/packages/frontend/components/PeopleListRow.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/frontend/components/UserCodeListRow.vue b/packages/frontend/components/UserCodeListRow.vue deleted file mode 100644 index ec62391..0000000 --- a/packages/frontend/components/UserCodeListRow.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/frontend/components/icon/eye-slash.vue b/packages/frontend/components/icon/eye-slash.vue deleted file mode 100644 index 8ebe0bf..0000000 --- a/packages/frontend/components/icon/eye-slash.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/eye.vue b/packages/frontend/components/icon/eye.vue deleted file mode 100644 index 1de6fb2..0000000 --- a/packages/frontend/components/icon/eye.vue +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/home.vue b/packages/frontend/components/icon/home.vue deleted file mode 100644 index 4e20675..0000000 --- a/packages/frontend/components/icon/home.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/pencil.vue b/packages/frontend/components/icon/pencil.vue deleted file mode 100644 index c826150..0000000 --- a/packages/frontend/components/icon/pencil.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/send.vue b/packages/frontend/components/icon/send.vue deleted file mode 100644 index 0ddd394..0000000 --- a/packages/frontend/components/icon/send.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/trash.vue b/packages/frontend/components/icon/trash.vue deleted file mode 100644 index c59e413..0000000 --- a/packages/frontend/components/icon/trash.vue +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/icon/x-mark.vue b/packages/frontend/components/icon/x-mark.vue deleted file mode 100644 index a2046de..0000000 --- a/packages/frontend/components/icon/x-mark.vue +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/packages/frontend/components/yale/Button.vue b/packages/frontend/components/yale/Button.vue deleted file mode 100644 index a8b84fa..0000000 --- a/packages/frontend/components/yale/Button.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/frontend/components/yale/FormInput.vue b/packages/frontend/components/yale/FormInput.vue deleted file mode 100644 index 0b6b927..0000000 --- a/packages/frontend/components/yale/FormInput.vue +++ /dev/null @@ -1,25 +0,0 @@ - - -~/types/html-input-types \ No newline at end of file diff --git a/packages/frontend/components/yale/FormSelect.vue b/packages/frontend/components/yale/FormSelect.vue deleted file mode 100644 index bbb4705..0000000 --- a/packages/frontend/components/yale/FormSelect.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/frontend/components/yale/Panel.vue b/packages/frontend/components/yale/Panel.vue deleted file mode 100644 index 68aca73..0000000 --- a/packages/frontend/components/yale/Panel.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/frontend/types/html-input-types.ts b/packages/frontend/types/html-input-types.ts deleted file mode 100644 index aab01d4..0000000 --- a/packages/frontend/types/html-input-types.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type HTMLInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'color'; - -export type HTMLButtonTypes = 'submit' | 'reset' | 'button'; \ No newline at end of file