Skip to content

Conversation

ShayNehmad
Copy link
Collaborator

@ShayNehmad ShayNehmad commented May 27, 2020

See commit messages.

The result looks like this:

CTF_level_browser

@ShayNehmad ShayNehmad requested a review from sandspider2234 May 27, 2020 21:56
@ShayNehmad ShayNehmad self-assigned this May 27, 2020
Copy link
Collaborator

@sandspider2234 sandspider2234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole directory structure is a bit weird - there's some remainders from the refactor.

@@ -0,0 +1,163 @@
use log::{debug, info};
use petgraph::algo::is_cyclic_directed;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is it? My rustc shows that it's unused, but it's there in line 113. Weird.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's part of the tests - not compiled directly to the output binary. Moved the import into mod tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@sandspider2234 sandspider2234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more comments

branch = "master"
solution_checker = "echo No pushing to master. Read the README file; exit 1"
flags = [] # ["start-here"], but it's implicit in the readme
flags = ["start-here"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (1 == params.nodes.length) \{
levelName = data.nodes[params.nodes[0]].label;
console.log("Clicked on one node, it's this node: " + levelName);
document.location.href = "http://localhost:1313/levels/" + levelName;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a script parameter for prod/test, switching the href assignment accordingly

@ShayNehmad ShayNehmad merged commit 64957b0 into dev May 28, 2020
@ShayNehmad ShayNehmad deleted the feature/generate-levels-graph branch May 28, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants