Skip to content

Commit fb32199

Browse files
committed
fix code block formatting
1 parent 3a0731a commit fb32199

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

RubberduckServices/SyntaxHighlighterService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System.Text;
2-
using Antlr4.Runtime;
1+
using Antlr4.Runtime;
32
using Antlr4.Runtime.Atn;
43
using Rubberduck.Parsing.Grammar;
54
using Rubberduck.SmartIndenter;
65
using RubberduckServices.Internal;
76
using RubberduckServices.Parsing;
7+
using System.Text;
88

99
namespace RubberduckServices;
1010

@@ -35,7 +35,7 @@ public class SyntaxHighlighterService : ISyntaxHighlighterService
3535
private readonly string _attributeValueClass;
3636

3737
public SyntaxHighlighterService(
38-
string cssKeywords = DefaultKeywordClass,
38+
string cssKeywords = DefaultKeywordClass,
3939
string cssStringLiterals = DefaultStringLiteralClass,
4040
string cssComments = CommentIntervalsListener.DefaultCommentClass,
4141
string cssAnnotations = AnnotationIntervalsListener.DefaultAnnotationClass,
@@ -93,7 +93,7 @@ public async Task<string> FormatAsync(string code)
9393
var tree = parser.startRule();
9494
FormatTokens(builder, tokens, listeners);
9595

96-
var lines = builder.ToString().Split(Environment.NewLine).ToArray();
96+
var lines = builder.ToString().Split("\n").ToArray();
9797
var indent = lines.LastOrDefault()?.TakeWhile(char.IsWhiteSpace)?.Count() ?? 0;
9898
var formattedLines = from line in lines
9999
let trimmed = line.Substring(indent)

rubberduckvba.Server/Api/Auth/AuthController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public ActionResult<UserViewModel> Index()
5151
}
5252
}
5353

54-
[HttpPost("signin")]
54+
[HttpPost("auth/signin")]
5555
[AllowAnonymous]
5656
public async Task<ActionResult> SignIn()
5757
{
@@ -81,7 +81,7 @@ public async Task<ActionResult> SignIn()
8181
return RedirectToAction("Index", "Home");
8282
}
8383

84-
[HttpGet("github")]
84+
[HttpGet("auth/github")]
8585
[AllowAnonymous]
8686
public async Task<ActionResult> GitHubCallback(string code, string state)
8787
{

rubberduckvba.client/angular.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
],
2828
"styles": [
2929
"node_modules/bootstrap/dist/css/bootstrap.min.css",
30-
"src/styles.css"
30+
"src/styles.css",
31+
"src/vbe.css"
3132
],
3233
"scripts": [],
3334
"browser": "src/main.ts"
@@ -97,7 +98,8 @@
9798
"src/assets"
9899
],
99100
"styles": [
100-
"src/styles.css"
101+
"src/styles.css",
102+
"src/vbe.css"
101103
],
102104
"scripts": [],
103105
"karmaConfig": "karma.conf.js"

rubberduckvba.client/src/app/components/nav-menu/nav-menu.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="container">
44
<a class="navbar-brand" [routerLink]="['/']">
55
<span>
6-
<img src="../../assets/vector-ducky-540.png" alt="Rubberduck logo" width="32" />
6+
<img src="../../assets/vector-ducky-dark.svg" alt="Rubberduck logo" width="32" />
77
<img alt="Rubberduck" height="24" class="mx-2" src="../../assets/rubberduck.svg" />
88
</span>
99
</a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
production: true,
3-
apiBaseUrl: 'https://test.api.rubberduckvba.com/'
3+
apiBaseUrl: 'https://localhost:44314/'
44
};

rubberduckvba.client/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
export const environment = {
66
production: false,
7-
apiBaseUrl: 'https://test.api.rubberduckvba.com/'
7+
apiBaseUrl: 'https://localhost:44314/'
88
};
99

1010
/*

0 commit comments

Comments
 (0)