-
Notifications
You must be signed in to change notification settings - Fork 4
feat: improve dashboard experience and localization #928
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vinipiresdev
wants to merge
23
commits into
main
Choose a base branch
from
feat/extension-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
88a3c7a
feat: add icons, snapshots, UI improvements and more.
vinipiresdev 61cbd82
feat: feat: add icons, snapshots, UI improvements and more
vinipiresdev e2fdabf
style: fix linter issues
github-actions[bot] 3d49e40
a
vinipiresdev 688979f
chore: mudança no action.title
vinipiresdev 58ce6ee
feat: improve dashboard experience and localization
vinipiresdev 8712f41
style: fix linter issues
github-actions[bot] 5f48dd8
Merge branch 'main' into feat/extension-improvements
vinipiresdev 1a60019
style: fix linter issues
github-actions[bot] b8f3f4b
Update package.json
vinipiresdev f080c36
Update package.json
vinipiresdev ca826d8
Update package.json
vinipiresdev f233eab
Update package.json
vinipiresdev 1dd0523
Update package.json
vinipiresdev 271ab28
Update src/events/vscode.ts
vinipiresdev 83780f3
Update package.json
vinipiresdev 8895e0d
Update package.json
vinipiresdev 805e6cf
Update src/structures/UserTreeItem.ts
vinipiresdev 696a477
Update src/events/vscode.ts
vinipiresdev 974ec07
Update package.json
vinipiresdev d54d3d2
Update package.json
Gorniaky 8e94b4d
Update package.json
Gorniaky 0ccf4db
Update src/structures/UserTreeItem.ts
Gorniaky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
|---|---|---|
|
|
@@ -12,8 +12,11 @@ | |
| "ffmpeg", | ||
| "java", | ||
| "libgl", | ||
| "mysql", | ||
| "openssl", | ||
| "puppeteer", | ||
| "selenium", | ||
| "tesseract", | ||
| "tools" | ||
| ] | ||
| } | ||
|
|
||
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,39 @@ | ||
| import { t } from "@vscode/l10n"; | ||
| import { ProgressLocation, window } from "vscode"; | ||
| import { type RESTPostApiSubdomainResult, type TaskData } from "../../@types"; | ||
| import type ExtensionCore from "../../core/extension"; | ||
| import Command from "../../structures/Command"; | ||
|
|
||
| const SUBDOMAIN_NAME_REGEXP = /^[a-z0-9-]{2,20}$/; | ||
|
|
||
| export default class extends Command { | ||
| constructor(core: ExtensionCore) { | ||
| super(core, { | ||
| progress: { | ||
| location: ProgressLocation.Notification, | ||
| title: t("progress.subdomain.create.title"), | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| async run(_: TaskData, subdomainName?: string) { | ||
| if (typeof subdomainName !== "string" || !SUBDOMAIN_NAME_REGEXP.test(subdomainName)) { | ||
| subdomainName = await window.showInputBox({ | ||
| prompt: t("input.subdomain.prompt"), | ||
| validateInput(value) { | ||
| if (!SUBDOMAIN_NAME_REGEXP.test(value)) | ||
| return t("input.subdomain.validate"); | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| if (!subdomainName) throw Error(t("missing.subdomain")); | ||
|
|
||
| const response = await this.core.api.post<RESTPostApiSubdomainResult>(`/subdomain/${subdomainName}`); | ||
| if (!response) return; | ||
|
|
||
| void window.showInformationMessage(response.message ?? t("done")); | ||
|
|
||
| await this.core.user.fetch(true); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. existe um comando para atualizar a lista de subdomínios, é melhor utilizar e adaptar o que já existe |
||
| } | ||
| } | ||
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,35 @@ | ||
| import { t } from "@vscode/l10n"; | ||
| import { ProgressLocation, window } from "vscode"; | ||
| import { type RESTDeleteApiSubdomainResult, type TaskData } from "../../@types"; | ||
| import type ExtensionCore from "../../core/extension"; | ||
| import Command from "../../structures/Command"; | ||
| import type SubDomainTreeItem from "../../structures/SubDomainTreeItem"; | ||
|
|
||
| export default class extends Command { | ||
| constructor(core: ExtensionCore) { | ||
| super(core, { | ||
| progress: { | ||
| location: ProgressLocation.Notification, | ||
| title: t("progress.subdomain.delete.title"), | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| async run(_: TaskData, item: SubDomainTreeItem) { | ||
| const subdomainName = item.subdomain; | ||
|
|
||
| await this.confirmAction({ | ||
| action: subdomainName, | ||
| throwOnReject: true, | ||
| title: "action.title", | ||
| type: "showWarningMessage", | ||
| }); | ||
|
|
||
| const response = await this.core.api.delete<RESTDeleteApiSubdomainResult>(`/subdomain/${subdomainName}`); | ||
| if (!response) return; | ||
|
|
||
| void window.showInformationMessage(response.message ?? t("done")); | ||
|
|
||
| await this.core.user.fetch(true); | ||
| } | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mudanças desnecessárias, a tipagem já existe na lib da discloud