Skip to content

Commit

Permalink
fix code block formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Oct 28, 2024
1 parent 3a0731a commit fb32199
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions RubberduckServices/SyntaxHighlighterService.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Text;
using Antlr4.Runtime;
using Antlr4.Runtime;
using Antlr4.Runtime.Atn;
using Rubberduck.Parsing.Grammar;
using Rubberduck.SmartIndenter;
using RubberduckServices.Internal;
using RubberduckServices.Parsing;
using System.Text;

namespace RubberduckServices;

Expand Down Expand Up @@ -35,7 +35,7 @@ public class SyntaxHighlighterService : ISyntaxHighlighterService
private readonly string _attributeValueClass;

public SyntaxHighlighterService(
string cssKeywords = DefaultKeywordClass,
string cssKeywords = DefaultKeywordClass,
string cssStringLiterals = DefaultStringLiteralClass,
string cssComments = CommentIntervalsListener.DefaultCommentClass,
string cssAnnotations = AnnotationIntervalsListener.DefaultAnnotationClass,
Expand Down Expand Up @@ -93,7 +93,7 @@ public async Task<string> FormatAsync(string code)
var tree = parser.startRule();
FormatTokens(builder, tokens, listeners);

var lines = builder.ToString().Split(Environment.NewLine).ToArray();
var lines = builder.ToString().Split("\n").ToArray();
var indent = lines.LastOrDefault()?.TakeWhile(char.IsWhiteSpace)?.Count() ?? 0;
var formattedLines = from line in lines
let trimmed = line.Substring(indent)
Expand Down
4 changes: 2 additions & 2 deletions rubberduckvba.Server/Api/Auth/AuthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ActionResult<UserViewModel> Index()
}
}

[HttpPost("signin")]
[HttpPost("auth/signin")]
[AllowAnonymous]
public async Task<ActionResult> SignIn()
{
Expand Down Expand Up @@ -81,7 +81,7 @@ public async Task<ActionResult> SignIn()
return RedirectToAction("Index", "Home");
}

[HttpGet("github")]
[HttpGet("auth/github")]
[AllowAnonymous]
public async Task<ActionResult> GitHubCallback(string code, string state)
{
Expand Down
6 changes: 4 additions & 2 deletions rubberduckvba.client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
"src/styles.css",
"src/vbe.css"
],
"scripts": [],
"browser": "src/main.ts"
Expand Down Expand Up @@ -97,7 +98,8 @@
"src/assets"
],
"styles": [
"src/styles.css"
"src/styles.css",
"src/vbe.css"
],
"scripts": [],
"karmaConfig": "karma.conf.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<a class="navbar-brand" [routerLink]="['/']">
<span>
<img src="../../assets/vector-ducky-540.png" alt="Rubberduck logo" width="32" />
<img src="../../assets/vector-ducky-dark.svg" alt="Rubberduck logo" width="32" />
<img alt="Rubberduck" height="24" class="mx-2" src="../../assets/rubberduck.svg" />
</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion rubberduckvba.client/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const environment = {
production: true,
apiBaseUrl: 'https://test.api.rubberduckvba.com/'
apiBaseUrl: 'https://localhost:44314/'
};
2 changes: 1 addition & 1 deletion rubberduckvba.client/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export const environment = {
production: false,
apiBaseUrl: 'https://test.api.rubberduckvba.com/'
apiBaseUrl: 'https://localhost:44314/'
};

/*
Expand Down

0 comments on commit fb32199

Please sign in to comment.