diff --git a/layouts/default.vue b/layouts/default.vue
index 2a47514f8..8611377b4 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -159,7 +159,7 @@ export default defineComponent({
duration: 0,
action: [
{
- text: this.$t("reload").toString(),
+ text: this.$t("app.reload").toString(),
onClick: (_, toastObject) => {
toastObject.goAway(0)
window.location.reload()
diff --git a/layouts/error.vue b/layouts/error.vue
index c22b9a103..8861efbd2 100644
--- a/layouts/error.vue
+++ b/layouts/error.vue
@@ -3,7 +3,7 @@
{{ statusCode }}
{{ message }}
-
+
-
+
@@ -26,18 +26,18 @@
-
+
-
+
@@ -56,11 +56,11 @@
>
+
@@ -77,8 +83,10 @@
import {
computed,
defineComponent,
+ getCurrentInstance,
onBeforeUnmount,
onMounted,
+ ref,
useContext,
watch,
} from "@nuxtjs/composition-api"
@@ -105,6 +113,7 @@ import {
} from "~/helpers/utils/composables"
import { loadRequestFromSync, startRequestSync } from "~/helpers/fb/request"
import { onLoggedIn } from "~/helpers/fb/auth"
+import { HoppRESTRequest } from "~/helpers/types/HoppRESTRequest"
function bindRequestToURLParams() {
const {
@@ -173,7 +182,12 @@ function setupRequestSync() {
onLoggedIn(async () => {
if (Object.keys(route.value.query).length === 0) {
const request = await loadRequestFromSync()
- if (request) setRESTRequest(request)
+ if (request) {
+ console.log("sync le request nnd")
+
+ setRESTRequest(request)
+ // confirmSync.value = true
+ }
}
sub = startRequestSync()
@@ -188,6 +202,16 @@ function setupRequestSync() {
export default defineComponent({
components: { Splitpanes, Pane },
setup() {
+ const confirmSync = ref(false)
+
+ const internalInstance = getCurrentInstance()
+ console.log("yoo", internalInstance)
+
+ const syncRequest = (request: HoppRESTRequest) => {
+ console.log("syncinggg")
+ setRESTRequest(request)
+ }
+
const { subscribeToStream } = useStreamSubscriber()
setupRequestSync()
@@ -220,6 +244,8 @@ export default defineComponent({
PROXY_ENABLED: useSetting("PROXY_ENABLED"),
URL_EXCLUDES: useSetting("URL_EXCLUDES"),
EXPERIMENTAL_URL_BAR_ENABLED: useSetting("EXPERIMENTAL_URL_BAR_ENABLED"),
+ confirmSync,
+ syncRequest,
}
},
})
diff --git a/pages/realtime.vue b/pages/realtime.vue
index 315bd59ee..e8621e986 100644
--- a/pages/realtime.vue
+++ b/pages/realtime.vue
@@ -13,14 +13,14 @@
diff --git a/pages/settings.vue b/pages/settings.vue
index 19d9e90f0..41893e4fb 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -4,7 +4,7 @@
- {{ $t("account") }}
+ {{ $t("settings.account") }}
{{ $t("settings.account_description") }}
@@ -72,7 +72,7 @@
toggleSettings('syncCollections', !SYNC_COLLECTIONS)
"
>
- {{ $t("syncCollections") }}
+ {{ $t("settings.sync_collections") }}
@@ -82,7 +82,7 @@
toggleSettings('syncEnvironments', !SYNC_ENVIRONMENTS)
"
>
- {{ $t("syncEnvironments") }}
+ {{ $t("settings.sync_environments") }}
@@ -90,7 +90,7 @@
:on="SYNC_HISTORY"
@change="toggleSettings('syncHistory', !SYNC_HISTORY)"
>
- {{ $t("syncHistory") }}
+ {{ $t("settings.sync_history") }}
@@ -102,7 +102,7 @@
- {{ $t("theme") }}
+ {{ $t("settings.theme") }}
{{ $t("settings.theme_description") }}
@@ -111,7 +111,7 @@
- {{ $t("background") }}
+ {{ $t("settings.background") }}
@@ -178,7 +178,11 @@
{{ $t("settings.telemetry") }}
- {{ TELEMETRY_ENABLED ? $t("enabled") : $t("disabled") }}
+ {{
+ TELEMETRY_ENABLED
+ ? $t("state.enabled")
+ : $t("state.disabled")
+ }}
@@ -187,7 +191,11 @@
@change="toggleSetting('SHORTCUT_INDICATOR')"
>
{{ $t("settings.shortcuts_indicator") }}
- {{ SHORTCUT_INDICATOR ? $t("enabled") : $t("disabled") }}
+ {{
+ SHORTCUT_INDICATOR
+ ? $t("state.enabled")
+ : $t("state.disabled")
+ }}
@@ -196,13 +204,15 @@
@change="toggleSetting('LEFT_SIDEBAR')"
>
{{ $t("settings.navigation_sidebar") }}
- {{ LEFT_SIDEBAR ? $t("enabled") : $t("disabled") }}
+ {{
+ LEFT_SIDEBAR ? $t("state.enabled") : $t("state.disabled")
+ }}
{{ $t("layout.zen_mode") }}
- {{ ZEN_MODE ? $t("enabled") : $t("disabled") }}
+ {{ ZEN_MODE ? $t("state.enabled") : $t("state.disabled") }}
@@ -222,19 +232,19 @@
- {{ $t("extensions") }}
+ {{ $t("settings.extensions") }}
{{
- `${$t("extension_version")}: v${extensionVersion.major}.${
- extensionVersion.minor
- }`
+ `${$t("settings.extension_version")}: v${
+ extensionVersion.major
+ }.${extensionVersion.minor}`
}}
- {{ $t("extension_version") }}:
- {{ $t("extension_ver_not_reported") }}
+ {{ $t("settings.extension_version") }}:
+ {{ $t("settings.extension_ver_not_reported") }}
@@ -267,17 +277,17 @@
:on="EXTENSIONS_ENABLED"
@change="toggleSetting('EXTENSIONS_ENABLED')"
>
- {{ $t("extensions_use_toggle") }}
+ {{ $t("settings.extensions_use_toggle") }}
- {{ $t("proxy") }}
+ {{ $t("settings.proxy") }}
- {{ `${$t("official_proxy_hosting")} ${$t("read_the")}` }}
+ {{ `${$t("settings.official_proxy_hosting")} ${$t("read_the")}` }}
- {{ $t("proxy_use_toggle") }}
+ {{ $t("settings.proxy_use_toggle") }}
@@ -307,7 +317,7 @@
:disabled="!PROXY_ENABLED"
/>