@geode/opengeodeweb-front 11.2.1-rc.1 → 11.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ export const useBackStore = defineStore("back", {
35
35
  return getRestApiPort(this.default_local_port);
36
36
  },
37
37
  base_url(): string {
38
- return this.base_url_for(useInfraStore().domain_name);
38
+ return this.base_url_for(useInfraStore().microservice_domain_name);
39
39
  },
40
40
  base_url_for(): (domain_name: string) => string {
41
41
  return (domain_name: string) => {
@@ -3,6 +3,9 @@ import { appMode } from "@ogw_shared/app_mode";
3
3
  import { setAppBaseUrl } from "@ogw_shared/scripts";
4
4
  import { useCloudStore } from "@ogw_front/stores/cloud";
5
5
 
6
+ const LOCALHOST = "localhost";
7
+ const IPV4_LOOPBACK = "127.0.0.1";
8
+
6
9
  interface ElectronApi {
7
10
  electronAPI: {
8
11
  project_folder_path: (args: { projectFolderPath: string }) => void;
@@ -53,6 +56,12 @@ export const useInfraStore = defineStore("infra", {
53
56
  microservices_busy(): boolean {
54
57
  return this.microservices.some((store: Microservice) => store.is_busy === true);
55
58
  },
59
+ // The local Flask microservices (Werkzeug) only listen on IPv4. With "localhost", browsers try ::1 first.
60
+ // Windows is slow to refuse it: every request to them would pay that delay.
61
+ // The page host stays in domain_name: the app store must remain same-origin (its API has no CORS).
62
+ microservice_domain_name(): string {
63
+ return this.domain_name === LOCALHOST ? IPV4_LOOPBACK : this.domain_name;
64
+ },
56
65
  },
57
66
  actions: {
58
67
  register_microservice(store: Microservice) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "11.2.1-rc.1",
3
+ "version": "11.2.1",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {
@@ -81,9 +81,9 @@
81
81
  "prepublishOnly": "npm run build"
82
82
  },
83
83
  "dependencies": {
84
- "@geode/cloud-api": "next",
85
- "@geode/opengeodeweb-back": "next",
86
- "@geode/opengeodeweb-viewer": "next",
84
+ "@geode/cloud-api": "latest",
85
+ "@geode/opengeodeweb-back": "latest",
86
+ "@geode/opengeodeweb-viewer": "latest",
87
87
  "@kitware/vtk.js": "33.3.0",
88
88
  "@mdi/font": "7.4.47",
89
89
  "@msgpack/msgpack": "2.8.0",