Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pgmanage/app/static/pgmanage_frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pgmanage/app/static/pgmanage_frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"vitest": "^3.2.4"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"@fortawesome/fontawesome-free": "^6.7.2",
"@imengyu/vue3-context-menu": "^1.3.3",
"@onekiloparsec/vue-power-tree": "github:onekiloparsec/vue-power-tree#9892260e386bc5963fa95dea9fc2912ca82a2928",
"@popperjs/core": "^2.11.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export default {
this.backupOptions.fileName = filePath;
},
openFileManagerModal() {
fileManagerStore.showModal(settingsStore.desktopMode, this.onFile, this.dialogType);
fileManagerStore.showModal(settingsStore.desktopMode, this.onFile, this.dialogType, 'Choose a backup destination');
},
resetToDefault() {
this.backupOptions = { ...this.backupOptionsDefault }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="d-flex align-items-center">
<button class="btn btn-icon btn-icon-primary me-2" title="Quick Search" @click="showQuickSearch">
<i class="fa-solid fa-magnifying-glass"></i>
<i class="fa-solid fa-magnifying-glass px-2"></i>
</button>
<div
:id="`${workspaceId}_switch`"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<splitpanes class="default-theme console-body" horizontal @resized="onResize">
<pane size="80">
<div ref="console" :id="`txt_console_${tabId}`" class="omnidb__txt-console me-2 h-100"></div>
<div ref="console" @contextmenu.stop.prevent="contextMenu" :id="`txt_console_${tabId}`" class="omnidb__txt-console me-2 h-100"></div>
</pane>

<pane size="20" class="ps-2 border-top">
Expand Down Expand Up @@ -99,6 +99,7 @@ import CancelButton from "./CancelSQLButton.vue";
import { tabStatusMap, requestState, queryRequestCodes, consoleModes } from "../constants";
import FileInputChangeMixin from '../mixins/file_input_mixin'
import BlockSizeSelector from "./BlockSizeSelector.vue";
import ContextMenu from "@imengyu/vue3-context-menu";

export default {
name: "ConsoleTab",
Expand Down Expand Up @@ -369,6 +370,27 @@ export default {
}
}
},
contextMenu(event) {
let option_list = [
{
label: "Copy",
icon: "fas fa-copy",
disabled: !this.terminal.hasSelection(),
onClick: () => {
document.execCommand("copy");
},
},
];

ContextMenu.showContextMenu({
theme: "pgmanage",
x: event.x,
y: event.y,
zIndex: 1000,
minWidth: 230,
items: option_list,
});
},
clearConsole() {
this.terminal.clear();
this.terminal.write(this.consoleHelp);
Expand Down
Loading