diff --git a/Management.Gherkin/.gitignore b/Management.Gherkin/.gitignore deleted file mode 100644 index ac27860..0000000 --- a/Management.Gherkin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.feature.cs diff --git a/Management.Gherkin/Drivers/Driver.cs b/Management.Gherkin/Drivers/Driver.cs deleted file mode 100644 index d0a3a93..0000000 --- a/Management.Gherkin/Drivers/Driver.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace Management.Gherkin.Drivers -{ - public class Driver - { - - } -} diff --git a/Management.Gherkin/Features/Calculator.feature b/Management.Gherkin/Features/Calculator.feature deleted file mode 100644 index 3dadd75..0000000 --- a/Management.Gherkin/Features/Calculator.feature +++ /dev/null @@ -1,13 +0,0 @@ -Feature: Calculator -![Calculator](https://specflow.org/wp-content/uploads/2020/09/calculator.png) -Simple calculator for adding **two** numbers - -Link to a feature: [Calculator]($projectname$/Features/Calculator.feature) -***Further read***: **[Learn more about how to generate Living Documentation](https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/Generating-Documentation.html)** - -@mytag -Scenario: Add two numbers - Given the first number is 50 - And the second number is 70 - When the two numbers are added - Then the result should be 120 diff --git a/Management.Gherkin/Hooks/Hook.cs b/Management.Gherkin/Hooks/Hook.cs deleted file mode 100644 index 0fe82f4..0000000 --- a/Management.Gherkin/Hooks/Hook.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using TechTalk.SpecFlow; - -namespace Management.Gherkin.Hooks -{ - [Binding] - public class Hooks - { - - } -} diff --git a/Management.Gherkin/Management.Gherkin.csproj b/Management.Gherkin/Management.Gherkin.csproj deleted file mode 100644 index af02c45..0000000 --- a/Management.Gherkin/Management.Gherkin.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - net8.0 - - - - - - - - - - - - diff --git a/Management.Gherkin/Steps/CalculatorStepDefinitions.cs b/Management.Gherkin/Steps/CalculatorStepDefinitions.cs deleted file mode 100644 index bafba90..0000000 --- a/Management.Gherkin/Steps/CalculatorStepDefinitions.cs +++ /dev/null @@ -1,58 +0,0 @@ -using TechTalk.SpecFlow; - -namespace Management.Gherkin.Steps -{ - [Binding] - public sealed class CalculatorStepDefinitions - { - - // For additional details on SpecFlow step definitions see https://go.specflow.org/doc-stepdef - - private readonly ScenarioContext _scenarioContext; - - public CalculatorStepDefinitions(ScenarioContext scenarioContext) - { - _scenarioContext = scenarioContext; - } - - [Given("the first number is (.*)")] - public void GivenTheFirstNumberIs(int number) - { - //TODO: implement arrange (precondition) logic - // For storing and retrieving scenario-specific data see https://go.specflow.org/doc-sharingdata - // To use the multiline text or the table argument of the scenario, - // additional string/Table parameters can be defined on the step definition - // method. - - _scenarioContext.Pending(); - } - - [Given("the second number is (.*)")] - public void GivenTheSecondNumberIs(int number) - { - //TODO: implement arrange (precondition) logic - // For storing and retrieving scenario-specific data see https://go.specflow.org/doc-sharingdata - // To use the multiline text or the table argument of the scenario, - // additional string/Table parameters can be defined on the step definition - // method. - - _scenarioContext.Pending(); - } - - [When("the two numbers are added")] - public void WhenTheTwoNumbersAreAdded() - { - //TODO: implement act (action) logic - - _scenarioContext.Pending(); - } - - [Then("the result should be (.*)")] - public void ThenTheResultShouldBe(int result) - { - //TODO: implement assert (verification) logic - - _scenarioContext.Pending(); - } - } -} diff --git a/Management.Web/Shared/Course/CourseDetails.razor b/Management.Web/Shared/Course/CourseDetails.razor index 0d66d30..a8d017a 100644 --- a/Management.Web/Shared/Course/CourseDetails.razor +++ b/Management.Web/Shared/Course/CourseDetails.razor @@ -28,8 +28,6 @@ } } - - private void reload() { this.InvokeAsync(this.StateHasChanged); diff --git a/Management.Web/Shared/Module/Assignment/AssignmentDetails.razor b/Management.Web/Shared/Module/Assignment/AssignmentDetails.razor index b927656..8c5477b 100644 --- a/Management.Web/Shared/Module/Assignment/AssignmentDetails.razor +++ b/Management.Web/Shared/Module/Assignment/AssignmentDetails.razor @@ -25,7 +25,6 @@ { planner.StateHasChanged -= reload; } - private Modal? assignmentEditorModal { get; set; } private bool showAll { get; set; } = false; private void dropOnDate(DateTime dropDate) @@ -134,18 +133,15 @@ role="button" >
-
-
-
-
-
-
-

+
+
+
+
+

@Assignment.name

-
-
+
@if(isSyncedWithCanvas) { @if(planner.LocalCourse != null @@ -167,23 +163,15 @@ } else { -
Not Synced with Canvas
+ }
+ @if(!showAll) { -
- @* @if(Assignment.use_template) - { - var html = Assignment.GetDescriptionHtml(planner.LocalCourse?.AssignmentTemplates); - @((MarkupString) html) - } - else - { - @Assignment.description - } *@ +
Points: @Assignment.points_possible
Due At: @Assignment.due_at
@@ -191,45 +179,25 @@ else {
- @if(Assignment.use_template) - { - var html = Assignment.GetDescriptionHtml(planner.LocalCourse?.AssignmentTemplates); - @((MarkupString) html) - } - else - { - @Assignment.description - } - -
-
Points: @Assignment.points_possible
-
Due At: @Assignment.due_at
-
Lock At: @Assignment.lock_at
-
-
- Rubric -
- @foreach(var rubricItem in Assignment.rubric) - { -
-
- @rubricItem.Label -
-
- @rubricItem.Points -
-
- } -
-
Submission Types:
-
    - @foreach(var type in Assignment.submission_types) - { -
  • - @type -
  • - } -
+
+ + @((MarkupString) @Assignment.GetDescriptionHtml(planner.LocalCourse?.AssignmentTemplates)) +
+ +
+
Points: @Assignment.points_possible
+
Due At: @Assignment.due_at
+
Lock At: @Assignment.lock_at
+
Submission Types:
+
    + @foreach(var type in Assignment.submission_types) + { +
  • + @type +
  • + } +
+
} @@ -237,25 +205,45 @@ @if(!showAll) {
- ... + + +
} else {
- ... + + +
} @@ -267,5 +255,4 @@ Assignment="Assignment" Show="showUpdateForm" OnHide="@(() => showUpdateForm = false)" - Module="Module" /> \ No newline at end of file diff --git a/Management.Web/Shared/Module/Assignment/AssignmentForm/AssignmentDescriptionEditor.razor b/Management.Web/Shared/Module/Assignment/AssignmentForm/AssignmentDescriptionEditor.razor index 80beff6..a36ca38 100644 --- a/Management.Web/Shared/Module/Assignment/AssignmentForm/AssignmentDescriptionEditor.razor +++ b/Management.Web/Shared/Module/Assignment/AssignmentForm/AssignmentDescriptionEditor.razor @@ -1,3 +1,4 @@ +@using Markdig @inject CoursePlanner planner @@ -29,6 +30,7 @@ .LocalCourse? .AssignmentTemplates .FirstOrDefault(t => t.Id == TemplateId); + public string Preview => Markdown.ToHtml(Description); } @@ -109,17 +111,35 @@ } else { - -