@live-change/frontend-base 0.3.23 → 0.3.24
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/NavBar.vue +6 -3
- package/package.json +11 -11
- package/vite-config.js +22 -9
package/NavBar.vue
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
<div class="surface-overlay py-3 px-6 shadow-2 flex align-items-center justify-content-between
|
|
3
3
|
relative md:sticky top-0 z-5"
|
|
4
4
|
style="min-height: 80px" key="navbar">
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
<router-link to="/">
|
|
7
|
+
<img src="/images/logo.svg" alt="Image" height="40" class="mr-0 lg:mr-6">
|
|
8
|
+
</router-link>
|
|
6
9
|
<div class="hidden lg:flex">
|
|
7
10
|
<!-- place for desktop menu -->
|
|
8
11
|
</div>
|
|
9
12
|
<div class="flex flex-grow-1"></div>
|
|
10
13
|
<UserIcon />
|
|
11
14
|
|
|
12
|
-
|
|
13
15
|
<div class="static w-auto w-full surface-overlay left-0 top-100 z-1 shadow-none hidden">
|
|
14
16
|
<ul class="list-none p-0 m-0 flex align-items-center select-none flex-row border-top-none">
|
|
15
17
|
<li>
|
|
@@ -27,11 +29,11 @@
|
|
|
27
29
|
</ul>
|
|
28
30
|
</div>
|
|
29
31
|
|
|
30
|
-
|
|
31
32
|
<a v-ripple class="cursor-pointer block lg:hidden text-700 p-ripple ml-2 hover:surface-100 p-2"
|
|
32
33
|
v-styleclass="{ selector: '@next', enterClass: 'hidden', leaveToClass: 'hidden', hideOnOutsideClick: true }">
|
|
33
34
|
<i class="pi pi-bars text-4xl"></i>
|
|
34
35
|
</a>
|
|
36
|
+
|
|
35
37
|
<div class="align-items-center flex-grow-1 justify-content-between hidden absolute lg:static w-full surface-overlay left-0 top-100 z-1 shadow-2 lg:shadow-none">
|
|
36
38
|
<ul class="list-none p-0 m-0 flex lg:align-items-center select-none flex-column lg:flex-row">
|
|
37
39
|
<li>
|
|
@@ -109,6 +111,7 @@
|
|
|
109
111
|
</li>
|
|
110
112
|
</ul>
|
|
111
113
|
</div>
|
|
114
|
+
|
|
112
115
|
</div>
|
|
113
116
|
</template>
|
|
114
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/frontend-base",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --templatePath ../../base-frontend/index.html",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"@lezer/rust": "^1.0.1",
|
|
33
33
|
"@lezer/sass": "^1.0.3",
|
|
34
34
|
"@lezer/xml": "^1.0.2",
|
|
35
|
-
"@live-change/cli": "0.7.
|
|
35
|
+
"@live-change/cli": "0.7.39",
|
|
36
36
|
"@live-change/dao": "0.5.22",
|
|
37
37
|
"@live-change/dao-message": "0.5.22",
|
|
38
38
|
"@live-change/dao-sockjs": "0.5.22",
|
|
39
39
|
"@live-change/dao-vue3": "0.5.22",
|
|
40
40
|
"@live-change/dao-websocket": "0.5.22",
|
|
41
|
-
"@live-change/email-service": "0.3.
|
|
42
|
-
"@live-change/password-authentication-service": "0.3.
|
|
43
|
-
"@live-change/secret-code-service": "0.3.
|
|
44
|
-
"@live-change/secret-link-service": "0.3.
|
|
45
|
-
"@live-change/security-frontend": "^0.3.
|
|
46
|
-
"@live-change/session-service": "0.3.
|
|
47
|
-
"@live-change/user-service": "0.3.
|
|
41
|
+
"@live-change/email-service": "0.3.41",
|
|
42
|
+
"@live-change/password-authentication-service": "0.3.41",
|
|
43
|
+
"@live-change/secret-code-service": "0.3.41",
|
|
44
|
+
"@live-change/secret-link-service": "0.3.41",
|
|
45
|
+
"@live-change/security-frontend": "^0.3.24",
|
|
46
|
+
"@live-change/session-service": "0.3.41",
|
|
47
|
+
"@live-change/user-service": "0.3.41",
|
|
48
48
|
"@live-change/vue3-components": "0.2.34",
|
|
49
49
|
"@live-change/vue3-ssr": "0.2.34",
|
|
50
50
|
"@unhead/ssr": "^1.6.2",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"vue3-scroll-border": "0.1.5"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@live-change/codeceptjs-helper": "0.7.
|
|
98
|
+
"@live-change/codeceptjs-helper": "0.7.39",
|
|
99
99
|
"@wdio/selenium-standalone-service": "^8.15.0",
|
|
100
100
|
"codeceptjs": "^3.5.4",
|
|
101
101
|
"generate-password": "1.7.0",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"author": "",
|
|
108
108
|
"license": "BSD-3-Clause",
|
|
109
109
|
"description": "",
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "1dd8f7ad59e7e40c25cfde3fed2854bf295d069c"
|
|
111
111
|
}
|
package/vite-config.js
CHANGED
|
@@ -36,13 +36,16 @@ const ssrTransformCustomDir = () => {
|
|
|
36
36
|
|
|
37
37
|
let version = process.env.VERSION ?? 'unknown'
|
|
38
38
|
|
|
39
|
-
module.exports = async ({ command, mode }
|
|
39
|
+
module.exports = async ({ command, mode }, options = {
|
|
40
|
+
ssrDisabledDirectives: ['ripple', 'styleclass', 'badge', 'shared-element', 'lazy']
|
|
41
|
+
|
|
42
|
+
}) => {
|
|
40
43
|
//console.log("VITE CONFIG", command, mode)
|
|
41
44
|
return {
|
|
42
45
|
define: {
|
|
43
46
|
ENV_BASE_HREF: JSON.stringify(process.env.BASE_HREF || 'http://localhost:8001'),
|
|
44
|
-
ENV_BRAND_NAME: JSON.stringify("Example"),
|
|
45
|
-
ENV_BRAND_DOMAIN: JSON.stringify("example.com"),
|
|
47
|
+
ENV_BRAND_NAME: JSON.stringify(process.env.BRAND_NAME || "Example"),
|
|
48
|
+
ENV_BRAND_DOMAIN: JSON.stringify(process.env.BRAND_DOMAIN || "example.com"),
|
|
46
49
|
ENV_MODE: JSON.stringify(mode),
|
|
47
50
|
ENV_VERSION: JSON.stringify(version),
|
|
48
51
|
},
|
|
@@ -65,11 +68,7 @@ module.exports = async ({ command, mode }) => {
|
|
|
65
68
|
compilerOptions: {
|
|
66
69
|
// whitespace: "preserve",
|
|
67
70
|
directiveTransforms: {
|
|
68
|
-
|
|
69
|
-
'styleclass': ssrTransformCustomDir,
|
|
70
|
-
'badge': ssrTransformCustomDir,
|
|
71
|
-
'shared-element': ssrTransformCustomDir,
|
|
72
|
-
'lazy': ssrTransformCustomDir
|
|
71
|
+
...(Object.fromEntries(options.ssrDisabledDirectives.map(d => [d, ssrTransformCustomDir]))),
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
},
|
|
@@ -230,7 +229,21 @@ module.exports = async ({ command, mode }) => {
|
|
|
230
229
|
{ find: 'universal-websocket-client', replacement: 'universal-websocket-client/browser.js' },
|
|
231
230
|
{ find: 'sockjs-client', replacement: 'sockjs-client/dist/sockjs.min.js' }
|
|
232
231
|
],
|
|
233
|
-
}
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
resolvers: [{
|
|
235
|
+
fileToRequest (filePath) {
|
|
236
|
+
console.log('@@@', filePath);
|
|
237
|
+
if (filePath.startsWith(srcPath)) {
|
|
238
|
+
return `/@/${path.relative(srcPath, filePath)}`;
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
requestToFile (publicPath) {
|
|
242
|
+
if (publicPath.startsWith('/@/')) {
|
|
243
|
+
return path.join(srcPath, publicPath.replace(/^\/@\//, ''));
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
}],
|
|
234
247
|
}
|
|
235
248
|
}
|
|
236
249
|
|