fdb2 1.0.34 → 1.0.35

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.
@@ -1,5 +1,5 @@
1
1
  import { n as __esmMin } from "./rolldown-runtime.js";
2
- import { O as createVNode, R as openBlock, U as watch, V as resolveComponent, W as withCtx, d as init_vue_runtime_esm_bundler, k as defineComponent, l as init_vue_i18n, rt as unref, st as toDisplayString, u as useI18n, w as createElementBlock, x as createBaseVNode } from "./vue.js";
2
+ import { A as defineComponent, B as renderList, G as withCtx, H as resolveComponent, O as createTextVNode, S as createBaseVNode, T as createElementBlock, W as watch, b as Fragment, ct as toDisplayString, d as init_vue_runtime_esm_bundler, f as Transition, it as unref, k as createVNode, l as init_vue_i18n, u as useI18n, w as createCommentVNode, y as withModifiers, z as openBlock } from "./vue.js";
3
3
  import { b as defineStore, h as init__plugin_vue_export_helper, m as _plugin_vue_export_helper_default, x as init_pinia } from "./index.js";
4
4
  //#region src/stores/locale.ts
5
5
  var LOCALE_KEY, useLocaleStore;
@@ -34,13 +34,13 @@ var init_locale = __esmMin((() => {
34
34
  }));
35
35
  //#endregion
36
36
  //#region src/components/language-switcher/index.vue?vue&type=script&setup=true&lang.ts
37
- var _hoisted_1$1, _hoisted_2$1, index_vue_vue_type_script_setup_true_lang_default;
37
+ var _hoisted_1$2, _hoisted_2$2, index_vue_vue_type_script_setup_true_lang_default;
38
38
  var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
39
39
  init_vue_runtime_esm_bundler();
40
40
  init_vue_i18n();
41
41
  init_locale();
42
- _hoisted_1$1 = ["title"];
43
- _hoisted_2$1 = { class: "lang-label" };
42
+ _hoisted_1$2 = ["title"];
43
+ _hoisted_2$2 = { class: "lang-label" };
44
44
  index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
45
45
  __name: "index",
46
46
  setup(__props) {
@@ -59,7 +59,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
59
59
  class: "language-switcher",
60
60
  onClick: toggle,
61
61
  title: _ctx.$t("common.language")
62
- }, [_cache[0] || (_cache[0] = createBaseVNode("i", { class: "bi bi-translate" }, null, -1)), createBaseVNode("span", _hoisted_2$1, toDisplayString(unref(localeStore).isZhCN ? "EN" : "中"), 1)], 8, _hoisted_1$1);
62
+ }, [_cache[0] || (_cache[0] = createBaseVNode("i", { class: "bi bi-translate" }, null, -1)), createBaseVNode("span", _hoisted_2$2, toDisplayString(unref(localeStore).isZhCN ? "EN" : "中"), 1)], 8, _hoisted_1$2);
63
63
  };
64
64
  }
65
65
  });
@@ -78,44 +78,202 @@ var init_language_switcher = __esmMin((() => {
78
78
  language_switcher_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f7e165cd"]]);
79
79
  }));
80
80
  //#endregion
81
+ //#region src/platform/database/components/about.vue?vue&type=script&setup=true&lang.ts
82
+ var _hoisted_1$1, _hoisted_2$1, _hoisted_3$1, _hoisted_4$1, _hoisted_5$1, _hoisted_6$1, _hoisted_7$1, _hoisted_8$1, _hoisted_9$1, _hoisted_10$1, _hoisted_11$1, _hoisted_12, _hoisted_13, _hoisted_14, _hoisted_15, _hoisted_16, about_vue_vue_type_script_setup_true_lang_default;
83
+ var init_about_vue_vue_type_script_setup_true_lang = __esmMin((() => {
84
+ init_vue_runtime_esm_bundler();
85
+ init_vue_i18n();
86
+ _hoisted_1$1 = { class: "about-page" };
87
+ _hoisted_2$1 = { class: "about-header" };
88
+ _hoisted_3$1 = { class: "about-title" };
89
+ _hoisted_4$1 = { class: "about-content" };
90
+ _hoisted_5$1 = { class: "about-section" };
91
+ _hoisted_6$1 = { class: "about-section" };
92
+ _hoisted_7$1 = { class: "about-links" };
93
+ _hoisted_8$1 = {
94
+ href: "https://aigcwhere.com/opensource/fdb2",
95
+ target: "_blank",
96
+ class: "about-link"
97
+ };
98
+ _hoisted_9$1 = {
99
+ href: "https://github.com/fefeding/fdb2/",
100
+ target: "_blank",
101
+ class: "about-link"
102
+ };
103
+ _hoisted_10$1 = { class: "about-section" };
104
+ _hoisted_11$1 = { class: "feature-list" };
105
+ _hoisted_12 = { class: "about-section" };
106
+ _hoisted_13 = { class: "database-types" };
107
+ _hoisted_14 = { class: "db-name" };
108
+ _hoisted_15 = { class: "db-port" };
109
+ _hoisted_16 = { class: "about-section" };
110
+ about_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
111
+ __name: "about",
112
+ setup(__props) {
113
+ const { t } = useI18n();
114
+ const databaseTypes = [
115
+ {
116
+ name: "MySQL",
117
+ port: "3306"
118
+ },
119
+ {
120
+ name: "PostgreSQL",
121
+ port: "5432"
122
+ },
123
+ {
124
+ name: "SQLite",
125
+ port: "-"
126
+ },
127
+ {
128
+ name: "SQL Server",
129
+ port: "1433"
130
+ },
131
+ {
132
+ name: "Oracle",
133
+ port: "1521"
134
+ },
135
+ {
136
+ name: "CockroachDB",
137
+ port: "26257"
138
+ },
139
+ {
140
+ name: "MongoDB",
141
+ port: "27017"
142
+ },
143
+ {
144
+ name: "SAP HANA",
145
+ port: "39013"
146
+ },
147
+ {
148
+ name: "ClickHouse",
149
+ port: "8123"
150
+ }
151
+ ];
152
+ return (_ctx, _cache) => {
153
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [createBaseVNode("div", _hoisted_2$1, [_cache[1] || (_cache[1] = createBaseVNode("div", { class: "about-logo" }, [createBaseVNode("i", { class: "bi bi-database" })], -1)), createBaseVNode("div", _hoisted_3$1, [_cache[0] || (_cache[0] = createBaseVNode("h2", null, "fdb2", -1)), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.subtitle")), 1)])]), createBaseVNode("div", _hoisted_4$1, [
154
+ createBaseVNode("section", _hoisted_5$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.aboutTitle")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.aboutDesc")), 1)]),
155
+ createBaseVNode("section", _hoisted_6$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.getMoreInfo")), 1), createBaseVNode("div", _hoisted_7$1, [createBaseVNode("a", _hoisted_8$1, [_cache[2] || (_cache[2] = createBaseVNode("i", { class: "bi bi-globe" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("aboutPage.officialWebsite")), 1)]), createBaseVNode("a", _hoisted_9$1, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-github" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("aboutPage.githubRepo")), 1)])])]),
156
+ createBaseVNode("section", _hoisted_10$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.coreAdvantages")), 1), createBaseVNode("ul", _hoisted_11$1, [
157
+ createBaseVNode("li", null, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advZeroConfig")), 1)]),
158
+ createBaseVNode("li", null, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advCrossPlatform")), 1)]),
159
+ createBaseVNode("li", null, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLightweight")), 1)]),
160
+ createBaseVNode("li", null, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLocal")), 1)]),
161
+ createBaseVNode("li", null, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advOffline")), 1)])
162
+ ])]),
163
+ createBaseVNode("section", _hoisted_12, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.supportedDbTypes")), 1), createBaseVNode("div", _hoisted_13, [(openBlock(), createElementBlock(Fragment, null, renderList(databaseTypes, (db) => {
164
+ return createBaseVNode("div", {
165
+ class: "db-type",
166
+ key: db.name
167
+ }, [createBaseVNode("span", _hoisted_14, toDisplayString(db.name), 1), createBaseVNode("span", _hoisted_15, toDisplayString(db.port), 1)]);
168
+ }), 64))])]),
169
+ createBaseVNode("section", _hoisted_16, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.license")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.licenseDesc")), 1)])
170
+ ])]);
171
+ };
172
+ }
173
+ });
174
+ }));
175
+ //#endregion
176
+ //#region src/platform/database/components/about.vue?vue&type=style&index=0&scoped=ca1c586e&lang.css
177
+ var init_about_vue_vue_type_style_index_0_scoped_ca1c586e_lang = __esmMin((() => {}));
178
+ //#endregion
179
+ //#region src/platform/database/components/about.vue
180
+ var about_default;
181
+ var init_about$1 = __esmMin((() => {
182
+ init_about_vue_vue_type_script_setup_true_lang();
183
+ init_about_vue_vue_type_script_setup_true_lang();
184
+ init_about_vue_vue_type_style_index_0_scoped_ca1c586e_lang();
185
+ init__plugin_vue_export_helper();
186
+ about_default = /*#__PURE__*/ _plugin_vue_export_helper_default(about_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ca1c586e"]]);
187
+ }));
188
+ //#endregion
189
+ //#region src/stores/about.ts
190
+ var useAboutStore;
191
+ var init_about = __esmMin((() => {
192
+ init_pinia();
193
+ useAboutStore = defineStore("about", {
194
+ state: () => ({ visible: false }),
195
+ actions: {
196
+ open() {
197
+ this.visible = true;
198
+ },
199
+ close() {
200
+ this.visible = false;
201
+ },
202
+ toggle() {
203
+ this.visible = !this.visible;
204
+ }
205
+ }
206
+ });
207
+ }));
208
+ //#endregion
81
209
  //#region src/platform/database/layout.vue?vue&type=script&setup=true&lang.ts
82
- var _hoisted_1, _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5, _hoisted_6, _hoisted_7, layout_vue_vue_type_script_setup_true_lang_default;
210
+ var _hoisted_1, _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5, _hoisted_6, _hoisted_7, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, layout_vue_vue_type_script_setup_true_lang_default;
83
211
  var init_layout_vue_vue_type_script_setup_true_lang = __esmMin((() => {
84
212
  init_vue_runtime_esm_bundler();
85
213
  init_vue_i18n();
86
214
  init_language_switcher();
215
+ init_about$1();
216
+ init_about();
87
217
  _hoisted_1 = { class: "database-layout" };
88
218
  _hoisted_2 = { class: "top-toolbar" };
89
219
  _hoisted_3 = { class: "toolbar-left" };
90
220
  _hoisted_4 = { class: "toolbar-right" };
91
221
  _hoisted_5 = ["title"];
92
- _hoisted_6 = { class: "main-content-modern" };
93
- _hoisted_7 = { class: "content-wrapper" };
222
+ _hoisted_6 = ["title"];
223
+ _hoisted_7 = { class: "about-trigger-label" };
224
+ _hoisted_8 = { class: "main-content-modern" };
225
+ _hoisted_9 = { class: "content-wrapper" };
226
+ _hoisted_10 = { class: "about-modal" };
227
+ _hoisted_11 = ["title"];
94
228
  layout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
95
229
  __name: "layout",
96
230
  setup(__props) {
97
231
  const { t } = useI18n();
98
- const appVersion = "1.0.34";
232
+ const aboutStore = useAboutStore();
233
+ const appVersion = "1.0.35";
99
234
  return (_ctx, _cache) => {
100
235
  const _component_router_link = resolveComponent("router-link");
101
236
  const _component_router_view = resolveComponent("router-view");
102
- return openBlock(), createElementBlock("div", _hoisted_1, [createBaseVNode("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createVNode(_component_router_link, {
103
- to: "/database/index",
104
- class: "brand-link"
105
- }, {
106
- default: withCtx(() => [..._cache[0] || (_cache[0] = [createBaseVNode("div", { class: "brand-icon" }, [createBaseVNode("i", { class: "bi bi-database-gear" })], -1), createBaseVNode("span", { class: "brand-name" }, "fdb2", -1)])]),
107
- _: 1
108
- })]), createBaseVNode("div", _hoisted_4, [createBaseVNode("span", {
109
- class: "app-version",
110
- title: unref(t)("app.version")
111
- }, "v" + toDisplayString(unref(appVersion)), 9, _hoisted_5), createVNode(language_switcher_default)])]), createBaseVNode("main", _hoisted_6, [createBaseVNode("div", _hoisted_7, [createVNode(_component_router_view)])])]);
237
+ return openBlock(), createElementBlock("div", _hoisted_1, [
238
+ createBaseVNode("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createVNode(_component_router_link, {
239
+ to: "/database/index",
240
+ class: "brand-link"
241
+ }, {
242
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createBaseVNode("div", { class: "brand-icon" }, [createBaseVNode("i", { class: "bi bi-database-gear" })], -1), createBaseVNode("span", { class: "brand-name" }, "fdb2", -1)])]),
243
+ _: 1
244
+ })]), createBaseVNode("div", _hoisted_4, [
245
+ createBaseVNode("span", {
246
+ class: "app-version",
247
+ title: unref(t)("app.version")
248
+ }, "v" + toDisplayString(unref(appVersion)), 9, _hoisted_5),
249
+ createBaseVNode("button", {
250
+ class: "about-trigger",
251
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(aboutStore).open()),
252
+ title: unref(t)("common.about")
253
+ }, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-info-circle" }, null, -1)), createBaseVNode("span", _hoisted_7, toDisplayString(unref(t)("common.about")), 1)], 8, _hoisted_6),
254
+ createVNode(language_switcher_default)
255
+ ])]),
256
+ createBaseVNode("main", _hoisted_8, [createBaseVNode("div", _hoisted_9, [createVNode(_component_router_view)])]),
257
+ createVNode(Transition, { name: "about-fade" }, {
258
+ default: withCtx(() => [unref(aboutStore).visible ? (openBlock(), createElementBlock("div", {
259
+ key: 0,
260
+ class: "about-modal-overlay",
261
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(aboutStore).close(), ["self"]))
262
+ }, [createBaseVNode("div", _hoisted_10, [createBaseVNode("button", {
263
+ class: "about-modal-close",
264
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(aboutStore).close()),
265
+ title: unref(t)("common.close")
266
+ }, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-x-lg" }, null, -1)])], 8, _hoisted_11), createVNode(about_default)])])) : createCommentVNode("", true)]),
267
+ _: 1
268
+ })
269
+ ]);
112
270
  };
113
271
  }
114
272
  });
115
273
  }));
116
274
  //#endregion
117
- //#region src/platform/database/layout.vue?vue&type=style&index=0&scoped=1b6d65cc&lang.css
118
- var init_layout_vue_vue_type_style_index_0_scoped_1b6d65cc_lang = __esmMin((() => {}));
275
+ //#region src/platform/database/layout.vue?vue&type=style&index=0&scoped=a4581861&lang.css
276
+ var init_layout_vue_vue_type_style_index_0_scoped_a4581861_lang = __esmMin((() => {}));
119
277
  //#endregion
120
278
  //#region src/platform/database/layout.vue
121
279
  var layout_default;
@@ -123,8 +281,8 @@ var layout_default;
123
281
  __esmMin((() => {
124
282
  init_layout_vue_vue_type_script_setup_true_lang();
125
283
  init_layout_vue_vue_type_script_setup_true_lang();
126
- init_layout_vue_vue_type_style_index_0_scoped_1b6d65cc_lang();
284
+ init_layout_vue_vue_type_style_index_0_scoped_a4581861_lang();
127
285
  init__plugin_vue_export_helper();
128
- layout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(layout_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-1b6d65cc"]]);
286
+ layout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(layout_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a4581861"]]);
129
287
  }))();
130
288
  export { layout_default as default };
@@ -12963,4 +12963,4 @@ var init_core = __esmMin((() => {
12963
12963
  Number.POSITIVE_INFINITY;
12964
12964
  }));
12965
12965
  //#endregion
12966
- export { reactive as $, getCurrentInstance$1 as A, renderSlot as B, createCommentVNode as C, createTextVNode as D, createStaticVNode as E, onBeforeUnmount as F, withDirectives as G, resolveDynamicComponent as H, onMounted as I, init_reactivity_esm_bundler as J, effectScope as K, onUnmounted as L, init_runtime_core_esm_bundler as M, inject as N, createVNode as O, nextTick as P, onScopeDispose as Q, openBlock as R, createBlock as S, createSlots as T, watch as U, resolveComponent as V, withCtx as W, isRef as X, isReactive as Y, markRaw as Z, vShow as _, init_vue_router as a, normalizeClass as at, computed as b, createI18n as c, init_vue_runtime_esm_bundler as d, ref as et, createApp as f, vModelText as g, vModelSelect as h, createWebHistory as i, init_shared_esm_bundler as it, hasInjectionContext as j, defineComponent as k, init_vue_i18n as l, vModelCheckbox as m, useTitle as n, toRefs as nt, useRoute as o, normalizeStyle as ot, init_runtime_dom_esm_bundler as p, getCurrentScope as q, createRouter as r, unref as rt, useRouter as s, toDisplayString$1 as st, init_core as t, toRaw as tt, useI18n as u, withModifiers as v, createElementBlock as w, createBaseVNode as x, Fragment as y, renderList as z };
12966
+ export { onScopeDispose as $, defineComponent as A, renderList as B, createBlock as C, createStaticVNode as D, createSlots as E, nextTick as F, withCtx as G, resolveComponent as H, onBeforeUnmount as I, getCurrentScope as J, withDirectives as K, onMounted as L, hasInjectionContext as M, init_runtime_core_esm_bundler as N, createTextVNode as O, inject as P, markRaw as Q, onUnmounted as R, createBaseVNode as S, createElementBlock as T, resolveDynamicComponent as U, renderSlot as V, watch as W, isReactive as X, init_reactivity_esm_bundler as Y, isRef as Z, vModelText as _, init_vue_router as a, init_shared_esm_bundler as at, Fragment as b, createI18n as c, toDisplayString$1 as ct, init_vue_runtime_esm_bundler as d, reactive as et, Transition as f, vModelSelect as g, vModelCheckbox as h, createWebHistory as i, unref as it, getCurrentInstance$1 as j, createVNode as k, init_vue_i18n as l, init_runtime_dom_esm_bundler as m, useTitle as n, toRaw as nt, useRoute as o, normalizeClass as ot, createApp as p, effectScope as q, createRouter as r, toRefs as rt, useRouter as s, normalizeStyle as st, init_core as t, ref as tt, useI18n as u, vShow as v, createCommentVNode as w, computed as x, withModifiers as y, openBlock as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fdb2",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "electron/main.js",