ebt-vue3 2.63.46 → 2.64.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ebt-vue3",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"description": "Vue3 Library for SuttaCentral Voice EBT-Sites",
|
|
5
5
|
"author": "Karl Lew",
|
|
6
6
|
"scripts": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"merkle-json": "^2.15.0",
|
|
42
42
|
"pinia": "^2.0.16",
|
|
43
43
|
"roboto-fontface": "*",
|
|
44
|
-
"scv-esm": "^1.140.
|
|
44
|
+
"scv-esm": "^1.140.216",
|
|
45
45
|
"serve-favicon": "^2.5.0",
|
|
46
46
|
"tmp": "^0.2.6",
|
|
47
47
|
"uuid": "^14.0.0",
|
package/src/ebt-settings.mjs
CHANGED
|
@@ -126,6 +126,7 @@ export default class EbtSettings {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
static get INITIAL_STATE() {
|
|
129
|
+
const SHOW_TUTORIAL = false;
|
|
129
130
|
const msg = 'EbtSettings.INITIAL_STATE';
|
|
130
131
|
const dbg = 0;
|
|
131
132
|
let NAV_LANG = typeof navigator === 'undefined'
|
|
@@ -173,12 +174,12 @@ export default class EbtSettings {
|
|
|
173
174
|
speakTranslation: true,
|
|
174
175
|
sutta_uid: undefined,
|
|
175
176
|
swooshVolume: 2,
|
|
176
|
-
tutorAsk:
|
|
177
|
-
tutorClose:
|
|
178
|
-
tutorPlay:
|
|
179
|
-
tutorSearch:
|
|
180
|
-
tutorSettings:
|
|
181
|
-
tutorWiki:
|
|
177
|
+
tutorAsk: SHOW_TUTORIAL,
|
|
178
|
+
tutorClose: SHOW_TUTORIAL,
|
|
179
|
+
tutorPlay: SHOW_TUTORIAL,
|
|
180
|
+
tutorSearch: SHOW_TUTORIAL,
|
|
181
|
+
tutorSettings: SHOW_TUTORIAL,
|
|
182
|
+
tutorWiki: SHOW_TUTORIAL,
|
|
182
183
|
theme: 'dark',
|
|
183
184
|
translator: 'sujato',
|
|
184
185
|
vnameRoot: 'Aditi',
|
package/src/stores/settings.mjs
CHANGED
|
@@ -64,6 +64,13 @@ export const useSettingsStore = defineStore('settings', {
|
|
|
64
64
|
addCard: null,
|
|
65
65
|
defaultLang: this.langTrans,
|
|
66
66
|
});
|
|
67
|
+
// If URL specifies a sutta not in saved cards, ignore saved cards
|
|
68
|
+
// so EbtCards can create a new card from the URL
|
|
69
|
+
let urlPath = window.location.hash.replace(/^.*\/#/, '');
|
|
70
|
+
let [ , context ] = urlPath.split('/');
|
|
71
|
+
if (context && !pathCard) {
|
|
72
|
+
savedState = null;
|
|
73
|
+
}
|
|
67
74
|
if (serverUrl === "https://s1.sc-voice.net/scv") {
|
|
68
75
|
savedState.serverUrl = EbtSettings.SERVERS[0].value;
|
|
69
76
|
dbg && console.log(msg, "[2]serverUrl", savedState.serverUrl);
|