- Notifications
You must be signed in to change notification settings - Fork670
Enhanced Tree view#94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
14 commits Select commitHold shift + click to select a range
e90b44e
Add company plugin check
Vigilansc1a58b2
Store leetcode-cli root path in LeetCodeExecutor instead of binary path
Vigilansce204b9
Add companies and tags information to IProblem
Vigilans236a020
Add category tree view to explorer
Vigilans64badc5
Add `require-from-string` dependency
Vigilansd648f8a
Move getCompaniesAndTags from `list.ts` to `leetCodeExecutor.ts`
Vigilans21723fe
Minor fixes
Vigilans39071bf
Capitalize label name and sort labels
Vigilans3cb8743
Add favorite tree view
Vigilans86f17ac
Fix lint errors
Vigilans7e00062
Show AC/NotAC problems in treeview
Vigilans0153d84
Revert "Show AC/NotAC problems in treeview"
Vigilansd9abd5f
Option to hide solved problems
Vigilans7bffd54
Refactor
jdneoFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
55 changes: 33 additions & 22 deletionspackage-lock.json
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
10 changes: 9 additions & 1 deletionpackage.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
20 changes: 7 additions & 13 deletionssrc/commands/list.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletionssrc/commands/show.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletionssrc/explorer/LeetCodeNode.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) jdneo. All rights reserved. | ||
// Licensed under the MIT license. | ||
import { IProblem, ProblemState } from "../shared"; | ||
export class LeetCodeNode { | ||
constructor(private data: IProblem, private parentNodeName: string, private isProblemNode: boolean = true) { } | ||
public get locked(): boolean { | ||
return this.data.locked; | ||
} | ||
public get name(): string { | ||
return this.data.name; | ||
} | ||
public get state(): ProblemState { | ||
return this.data.state; | ||
} | ||
public get id(): string { | ||
return this.data.id; | ||
} | ||
public get passRate(): string { | ||
return this.data.passRate; | ||
} | ||
public get difficulty(): string { | ||
return this.data.difficulty; | ||
} | ||
public get tags(): string[] { | ||
return this.data.tags; | ||
} | ||
public get companies(): string[] { | ||
return this.data.companies; | ||
} | ||
public get isFavorite(): boolean { | ||
return this.data.isFavorite; | ||
} | ||
public get isProblem(): boolean { | ||
return this.isProblemNode; | ||
} | ||
public get parentName(): string { | ||
return this.parentNodeName; | ||
} | ||
} |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.