diff --git a/.github/workflows/qodana_code_quality.yml_ b/.github/workflows/qodana_code_quality.yml similarity index 100% rename from .github/workflows/qodana_code_quality.yml_ rename to .github/workflows/qodana_code_quality.yml diff --git a/package.json b/package.json index 4ec67e51..444ad60d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "@types/pouchdb": "^6.4.2", "@types/rangy": "^0.0.38", "@types/sanitize-html": "^2.9.0", - "@xenova/transformers": "^2.12.1", "axios": "^1.3.4", "buffer": "^6.0.3", "date-fns": "^3.1.0", diff --git a/qodana.yaml b/qodana.yaml index eec2f044..b1a43524 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -20,7 +20,7 @@ profile: #plugins: # - id: #(plugin id can be found at https://plugins.jetbrains.com) #Specify Qodana linter for analysis (Applied in CI/CD pipeline) -linter: jetbrains/qodana-jvm:latest +linter: jetbrains/qodana:latest include: - name: DuplicatedCode - name: JsCoverageInspection diff --git a/src-bex/background.ts b/src-bex/background.ts index a9423703..ab4ea254 100644 --- a/src-bex/background.ts +++ b/src-bex/background.ts @@ -19,18 +19,18 @@ chrome.runtime.onInstalled.addListener((callback) => { // getting error: "Service worker registration failed. Status code: 15" // Analytics.fireEvent('install-' + callback.reason); if (callback.reason !== OnInstalledReason.CHROME_UPDATE) { - chrome.tabs.create({ - active: true, - url: callback.previousVersion ? - "https://tabsets.web.app/#/updatedFrom/" + callback.previousVersion : - "https://tabsets.web.app/#/installed/" - }) + chrome.tabs.create({ + active: true, + url: callback.previousVersion ? + "https://tabsets.web.app/#/updatedFrom/" + callback.previousVersion : + "https://tabsets.web.app/#/installed/" + }) } }); chrome.omnibox.onInputEntered.addListener((text) => { const newURL = chrome.runtime.getURL("/www/index.html#/searchresult?t=" + encodeURIComponent(text)) - chrome.tabs.create({ url: newURL }) + chrome.tabs.create({url: newURL}) .catch((err) => console.log("background.js error", err)) }); @@ -88,6 +88,15 @@ chrome.runtime.onStartup.addListener(() => { } }) +chrome.runtime.onConnect.addListener(function (port) { + if (port.name === 'tabsetsSidepanel') { + //console.log("port3", port) + port.onDisconnect.addListener(async () => { + //alert('Sidepanel closed.'); + }); + } +}); + export default bexBackground((bridge, cons/* , allActiveConnections */) => { // bridge.on('some.event', ({data, respond}) => { // console.log('Event receieved, responding...') @@ -98,7 +107,7 @@ export default bexBackground((bridge, cons/* , allActiveConnections */) => { // bridge.send('highlight.content', { url: tab.url }) // }) - bridge.on('quasar.detect', ({ data, respond }) => { + bridge.on('quasar.detect', ({data, respond}) => { console.log("quasar.detect2", data) // Let's resolve the `send()` call's promise, this way we can await it on the other side then display a notification. respond() diff --git a/src/App.vue b/src/App.vue index 2d324c68..5c4e12f4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,21 +4,19 @@ diff --git a/src/components/dialogues/NewTabsetDialog.vue b/src/components/dialogues/NewTabsetDialog.vue index 94e85585..19465022 100644 --- a/src/components/dialogues/NewTabsetDialog.vue +++ b/src/components/dialogues/NewTabsetDialog.vue @@ -1,6 +1,10 @@ @@ -15,6 +19,8 @@ defineEmits([ const props = defineProps({ spaceId: {type: String, required: false}, + name: {type: String, default: ""}, + windowId: {type: Number, required: false}, fromPanel: {type: Boolean, default: false} }) diff --git a/src/components/dialogues/RenameWindowDialog.vue b/src/components/dialogues/RenameWindowDialog.vue new file mode 100644 index 00000000..4179b693 --- /dev/null +++ b/src/components/dialogues/RenameWindowDialog.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/components/dialogues/SuggestionDialog.vue b/src/components/dialogues/SuggestionDialog.vue index db7983d3..b9a7557e 100644 --- a/src/components/dialogues/SuggestionDialog.vue +++ b/src/components/dialogues/SuggestionDialog.vue @@ -13,6 +13,13 @@ Click here to decide later + + @@ -36,6 +44,7 @@ import {useRouter} from "vue-router"; import {useSuggestionsStore} from "src/stores/suggestionsStore"; import {Suggestion, SuggestionState, SuggestionType} from "src/models/Suggestion"; import NavigationService from "src/services/NavigationService"; +import AppService from "src/services/AppService"; defineEmits([ ...useDialogPluginComponent.emits @@ -91,4 +100,9 @@ const addSuggestion = () => { } } +const restart = () => { + useSuggestionsStore().removeSuggestion(props.suggestion.id) + AppService.restart("restarted=true") +} + diff --git a/src/components/dialogues/helper/NewTabsetDialogBody.vue b/src/components/dialogues/helper/NewTabsetDialogBody.vue index 501c0d36..57be7aa3 100644 --- a/src/components/dialogues/helper/NewTabsetDialogBody.vue +++ b/src/components/dialogues/helper/NewTabsetDialogBody.vue @@ -4,7 +4,8 @@ -
Add Tabset
+
Save Windows Tabs as Tabset
+
Add Tabset
@@ -20,31 +21,31 @@ ]" data-testid="newTabsetName"/> -