JakuJ / quantum-explorer

Bachelor's project: Compiler Explorer for Q#
https://qexplorer.herokuapp.com
GNU General Public License v3.0
3 stars 0 forks source link

Code sharing and code examples #68

Closed Adam-Kowalczyk closed 3 years ago

Adam-Kowalczyk commented 3 years ago

This PR adds integratoin with mssql database to share code. It contains new component ShareButton to display unique link and copy it. When link is opened, app loads the code from database.

Another functionality is loading preset code examples. A component ExamplesDropdown is implemented which loads code from files in specified directory and later shows it to user in form of dropdown list. After choosing one, it's loaded into the editor.

It closes #7 .

codecov[bot] commented 3 years ago

Codecov Report

Merging #68 (38e13fb) into develop (c41a076) will increase coverage by 0.29%. The diff coverage is 95.77%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #68      +/-   ##
===========================================
+ Coverage    93.68%   93.97%   +0.29%     
===========================================
  Files           26       31       +5     
  Lines          744      813      +69     
===========================================
+ Hits           697      764      +67     
- Misses          47       49       +2     
Flag Coverage Δ
unittests 93.97% <95.77%> (+0.29%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Explorer/Components/Editor.razor 85.71% <66.66%> (-4.29%) :arrow_down:
DatabaseHandler/CodeInformation.cs 75.00% <75.00%> (ø)
DatabaseHandler/CodeDatabaseHandler.cs 100.00% <100.00%> (ø)
DatabaseHandler/CodeDbContext.cs 100.00% <100.00%> (ø)
Explorer/Components/ExamplesDropdown.razor 100.00% <100.00%> (ø)
Explorer/Components/ShareButton.razor 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c41a076...38e13fb. Read the comment docs.